:root { color-scheme: dark; --bg: #151319; --panel: #211d26; --muted: #b6acba; --text: #f6f0eb; --accent: #e1afbd; --line: #3c333f; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.skip-link { position: absolute; top: -100px; padding: 14px; background: var(--bg); z-index: 10; }
.skip-link:focus { top: 8px; }
.site-header, main, .site-footer { max-width: 1240px; margin-inline: auto; padding-inline: 40px; }
.site-header { height: 98px; display: flex; align-items: center; gap: 34px; border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; font-size: 34px; font-weight: 750; letter-spacing: -2px; }
.brand span { color: var(--accent); }
.header-label { color: var(--muted); font-size: 13px; }
.text-button { margin-left: auto; padding: 12px 0 12px 12px; border: 0; color: var(--text); background: transparent; font-size: 13px; }
main { min-height: calc(100vh - 200px); padding-top: 20px; padding-bottom: 50px; }
.notice { font-size: 14px; line-height: 1.6; color: var(--accent); }
.notice:empty { display: none; }
.notice.error { color: #ffb6b6; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 2px; font-size: 10px; font-weight: 650; margin: 0 0 22px; }
h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 480; line-height: 1.08; letter-spacing: -2px; margin: 0; }
h1 em { font-family: Georgia, serif; font-weight: 400; color: var(--accent); }
h2 { margin: 0; font-size: 17px; font-weight: 550; }
.muted, .intro-copy { color: var(--muted); line-height: 1.7; font-size: 14px; }
.intro { display: flex; gap: 30px; align-items: flex-end; justify-content: space-between; padding: 34px 0 46px; }
.intro-copy { max-width: 320px; margin-bottom: 3px; }
.workspace { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.step-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.step { color: var(--accent); border: 1px solid var(--line); border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; font-size: 10px; }
.profiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.profile { padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; background: var(--panel); color: var(--text); text-align: left; position: relative; transition: border-color .15s; }
.profile[aria-pressed=true] { border-color: var(--accent); }
.profile:hover { border-color: #a97c91; }
.profile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.profile-name { display: flex; justify-content: space-between; align-items: center; padding: 12px 10px; font-size: 13px; }
.profile[aria-pressed=true] .profile-name::after { content: '✓'; color: var(--accent); }
.bubble-heading { margin-top: 35px; margin-bottom: 12px; }
.bubbles { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.bubble { padding: 12px 18px; min-height: 44px; border-radius: 40px; background: transparent; color: var(--text); border: 1px solid #685768; font-size: 13px; }
.bubble:hover { background: var(--panel); }
.bubble[aria-pressed=true] { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.result { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.image-placeholder { min-height: 430px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; background: radial-gradient(ellipse at 50% 40%, #453042 0, var(--panel) 70%); }
.spark { font-size: 70px; color: var(--accent); font-weight: 200; line-height: 1; margin-bottom: 30px; }
.image-placeholder h2 { font-family: Georgia, serif; font-size: 32px; line-height: 1.15; font-weight: 400; }
.image-placeholder p { color: var(--muted); font-size: 13px; margin-top: 18px; }
figure { margin: 0; }
#selected-image { width: 100%; max-height: 560px; min-height: 200px; object-fit: contain; display: block; background: #121015; }
figcaption { display: flex; justify-content: space-between; padding: 16px 22px; font-size: 14px; }
.caption-dot { color: var(--accent); }
.result-footer { border-top: 1px solid var(--line); padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.result-footer p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.secondary { border: 1px solid #685768; color: var(--text); background: transparent; border-radius: 30px; padding: 12px 16px; font-size: 12px; white-space: nowrap; }
.secondary:hover { background: #352b3a; }
.empty { color: var(--muted); line-height: 1.7; padding: 24px; background: var(--panel); border-radius: 12px; }
.login-panel { max-width: 560px; margin: 60px auto 40px; }
.login-panel .muted { margin: 24px 0; max-width: 440px; }
form { max-width: 400px; margin-top: 28px; }
label { display: block; margin: 18px 0 8px; font-size: 13px; }
input { display: block; width: 100%; border: 1px solid #685768; border-radius: 10px; background: var(--panel); color: var(--text); padding: 14px; }
.primary { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--accent); color: var(--bg); border: 0; border-radius: 10px; padding: 16px 20px; text-decoration: none; font-weight: 600; font-size: 14px; }
form .primary { width: 100%; margin-top: 24px; }
.help-link { color: var(--muted); font-size: 13px; margin-top: 22px; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 24px; color: var(--muted); font-size: 12px; }
@media (max-width: 800px) {
  .site-header, main, .site-footer { padding-inline: 22px; }
  .header-label { display: none; }
  .site-header { height: 78px; }
  .intro { display: block; padding-top: 24px; padding-bottom: 30px; }
  .intro-copy { margin-top: 24px; }
  .workspace { grid-template-columns: 1fr; gap: 32px; }
  .image-placeholder { min-height: 320px; }
  .login-panel { margin-top: 35px; }
  .result-footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
