/* LUKI's product interpretation of web/DESIGN.md. No remote fonts or assets. */
:root {
  font-family: Inter, "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
  font-feature-settings: "cv01", "cv05", "cv09", "cv11", "ss03", "ss07";
  color-scheme: dark;
}
body, body[data-theme=mono], body[data-theme=glow] {
  background: #090909; color: #fff; color-scheme: dark;
  --muted: #aaa; --line: #2b2b2b; --pill: #1c1c1c; --surface: #141414;
  --accent: #0099ff;
}
::selection { background: #0099ff; color: #fff; }
.app { max-width: 1240px; padding: 0 48px; }
.header { height: 88px; gap: 24px; }
body[data-theme=mono] .brand-logo, .brand-logo { filter: none; width: 96px; }
.header .room { font-size: 13px; }
.header .demo { background: var(--surface); border: 0; padding: 8px 12px; }
.header .text-button { font-size: 13px; }
.steps { gap: 22px; margin-top: 22px; }
.steps button { min-height: 44px; border-bottom: 2px solid transparent; }
.steps button[aria-current] { border-bottom-color: var(--accent); font-weight: 500; }
.steps > span { color: #555; }
.screen { padding: 48px 0 64px; }
.eyebrow, .setup-copy > .eyebrow { font-size: 11px; letter-spacing: 2px; }
.setup { grid-template-columns: minmax(0,1fr) 400px; gap: 80px; padding-top: 48px; }
.setup h1 { font-size: clamp(40px,4.9vw,68px); line-height: 1.14; letter-spacing: -.055em; font-weight: 500; margin: 22px 0 26px; word-break: keep-all; }
.intro { font-size: 15px; line-height: 1.85; color: #aaa; word-break: keep-all; }
.setup .disclosure { border-left-color: #393939; margin-top: 32px; }
.disclosure strong { font-size: 14px; font-weight: 500; }
.disclosure p { color: #aaa; }
.guide { gap: 12px; }
.guide b { border-color: #393939; }
.experience-strip { margin-top: 32px; }
body[data-theme=mono] .experience-strip img, body[data-theme=glow] .experience-strip img { border-color: #090909; }
.setup-card { background: #141414; border: 1px solid #262626; border-radius: 30px; padding: 28px; box-shadow: 0 20px 60px #0005; position: relative; isolation: isolate; }
.setup-card:before { content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; background: radial-gradient(ellipse at 100% 0%,#6a4cf528,transparent 60%); pointer-events: none; }
.card-heading h2 { font-size: 18px; letter-spacing: -.5px; }
.pill { background: #1c1c1c; border: 0; padding: 8px 12px; color: #bbb; }
.upload-preview { background: #1c1c1c; border: 1px solid #333; border-radius: 20px; height: 290px; }
.photo-outline { color: #999; }
.upload-preview.has-photo { background: #eae9e5; }
.button, body[data-theme=mono] .primary, body[data-theme=glow] .primary {
  min-height: 48px; border-radius: 100px; font-size: 14px; font-weight: 500; transition: transform .18s, background .18s, box-shadow .18s;
}
.primary, body[data-theme=mono] .primary, body[data-theme=glow] .primary { background: #fff; color: #090909; border: 1px solid #fff; }
.secondary { background: #1c1c1c; color: #fff; border: 1px solid #333; }
.button:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 5px 18px #0003; }
.button:not(:disabled):active { transform: scale(.98); }
button:disabled { opacity: .5; }
.text-button { min-height: 44px; font-size: 13px; }
.text-button:hover { color: #8acfff; }
button:focus-visible, a:focus-visible, .canvas:focus-visible, body[data-theme=mono] :focus-visible, .upload-label:focus-within { outline: 3px solid var(--accent); outline-offset: 4px; }
.section-heading { margin-bottom: 34px; }
.section-heading h1 { font-size: 44px; line-height: 1.22; letter-spacing: -.05em; font-weight: 500; }
.resume-card { background: #141414; border-color: #262626; border-radius: 20px; padding: 22px; }
.resume-card strong { font-size: 16px; }
.candidate-intro { margin-bottom: 24px; }
.garment-grid { gap: 24px; }
.garment-grid .thumb { border-radius: 20px; padding: 10px; background: #141414; border: 1px solid #262626; color: #aaa; }
.garment-grid .thumb-photo { height: 370px; border-radius: 15px; margin-bottom: 14px; }
.garment-grid .thumb > span:last-child { padding: 0 5px 6px; font-size: 14px; }
.thumb.active { color: #fff; }
.thumb.active .thumb-photo, body[data-theme=mono] .thumb.active .thumb-photo { border-color: #0099ff; }
.garment-grid .thumb.active { border-color: #0099ff; }
.garment-grid .thumb.active .thumb-photo { box-shadow: none; }
.garment-grid .thumb.active .thumb-photo, body[data-theme=mono] .garment-grid .thumb.active .thumb-photo { border-color: transparent; }
.check { background: #0099ff; color: #fff; width: 24px; height: 24px; line-height: 24px; }
.candidate-hint { font-size: 13px; }
.import-row { padding-top: 26px; margin-top: 30px; }
.setup-actions { padding-top: 24px; }
.room-toolbar { margin-bottom: 26px; }
.room-toolbar h1 { font-size: 32px; line-height: 1.3; letter-spacing: -.045em; }
.workspace { grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); gap: 56px; }
.viewer { border-radius: 30px; box-shadow: 0 20px 60px #0004; }
.photo-label, .photo-count { color: #222; background: #ffffffe6; }
.compare { min-height: 44px; color: #222; background: #fffffff0; }
.compare[aria-pressed=true] { background: #090909; border-color: #0099ff; color: #fff; }
.controls .mode { background: #141414; border-color: #262626; }
.mode button { min-height: 40px; }
.mode button[aria-pressed=true], body[data-theme=mono] .mode button[aria-pressed=true] { background: #333; color: #fff; }
.swatch { background: linear-gradient(135deg,#d44df0,#6a4cf5); }
.selection, body[data-theme=mono] .selection { background: #141414; border: 1px solid #262626; color: #fff; border-radius: 20px; padding: 26px; margin: 24px 0 16px; }
.selection:before { background: radial-gradient(ellipse at 95% 100%,#6a4cf5a0,transparent 75%),radial-gradient(ellipse at 0% 0%,#d44df070,transparent 65%),#141414; }
body[data-theme=mono] .selection:before { opacity: 0; }
body[data-theme=glow] .selection:before { opacity: 1; }
.selection .eyebrow, .look-detail, body[data-theme=mono] .selection .eyebrow, body[data-theme=mono] .look-detail { color: #bbb; }
.selection h2 { font-size: 27px; letter-spacing: -.04em; }
.large-number, body[data-theme=mono] .large-number { color: #aaa; }
.nav-button, body[data-theme=mono] .nav-button { min-height: 44px; background: #262626; border: 1px solid #393939; color: #fff; }
.nav-button:hover { background: #393939; }
.progress span, body[data-theme=mono] .progress span { background: #666; }
.progress span.active, body[data-theme=mono] .progress span.active { background: #fff; }
.status-card { background: #141414; border-color: #262626; padding: 14px 16px; border-radius: 15px; font-size: 13px; }
.status-card[data-state=failed] { border-color: #ff8f8f; }
.status-card[data-state=failed] p { color: #ffb2b2; }
.reference-row { padding: 20px 0; }
.reference-copy strong { font-size: 14px; }
.reference-preview { width: 48px; height: 60px; border-radius: 10px; }
.action-row { margin: 20px 0 28px; }
.thumb-photo { height: 140px; }
.thumbnails { gap: 14px; }
.closet-heading .text-button { min-height: 44px; }
.saved-grid { gap: 24px; }
.saved-card { background: #141414; border: 1px solid #262626; padding: 12px; border-radius: 20px; }
.saved-card:hover { box-shadow: 0 12px 32px #0004; }
.saved-card > img { height: 360px; border-radius: 15px; }
.saved-card h2 { font-size: 19px; letter-spacing: -.03em; }
.saved-card p { font-size: 12px; }
.empty-state { background: #141414; border-color: #333; border-radius: 30px; }
.toast { background: #1c1c1c; border-color: #444; border-radius: 20px; box-shadow: 0 12px 40px #0008; }
.toast-action { color: #8acfff; border-bottom-color: #8acfff; min-height: 44px; }
.app-footer { padding: 28px 0 36px; }
.app-footer a { color: #8acfff; }
h1[tabindex="-1"]:focus-visible { outline: none; }
@media(min-width:1000px) { .viewer { height: min(720px,calc(100svh - 48px)); } }
@media(max-width:900px) {
  .app { padding: 0 28px; }
  .setup { grid-template-columns: minmax(0,1fr) 330px; gap: 36px; }
  .setup h1 { font-size: 44px; }
  .workspace { gap: 30px; }
  .garment-grid .thumb-photo { height: 280px; }
  .selection h2 { font-size: 23px; }
}
@media(max-width:620px) {
  .app { padding: 0 18px; max-width: 460px; }
  .header { height: 76px; gap: 10px; }
  .brand-logo, body[data-theme=mono] .brand-logo { width: 78px; }
  .header .text-button { font-size: 11px; }
  .header .demo { padding: 7px 9px; font-size: 10px; }
  .steps { margin-top: 8px; gap: 7px; }
  .steps button { font-size: 11px; }
  .screen { padding: 30px 0 40px; }
  .setup { gap: 28px; }
  .setup h1 { font-size: 41px; letter-spacing: -.05em; line-height: 1.17; margin: 20px 0; }
  .intro { font-size: 13px; }
  .setup .disclosure { margin-top: 24px; }
  .setup-card { padding: 22px; border-radius: 25px; }
  .upload-preview { height: 245px; }
  .section-heading h1 { font-size: 32px; line-height: 1.3; }
  .section-heading { margin-bottom: 24px; }
  .resume-card { padding: 18px; }
  .resume-card strong { font-size: 14px; }
  .candidate-intro { gap: 10px; }
  .garment-grid { gap: 8px; }
  .garment-grid .thumb { padding: 4px; border-radius: 15px; }
  .garment-grid .thumb-photo { height: 185px; border-radius: 11px; padding: 2px; margin-bottom: 9px; }
  .garment-grid .thumb > span:last-child { font-size: 11px; padding: 0 3px 5px; }
  .check { bottom: 8px; right: 6px; width: 22px; height: 22px; line-height: 22px; }
  .candidate-hint { font-size: 12px; }
  .room-toolbar { margin-bottom: 20px; }
  .room-toolbar h1 { font-size: 24px; line-height: 1.35; }
  .room-toolbar > .text-button { padding-top: 0; }
  .viewer { height: clamp(390px,61svh,530px); border-radius: 25px; }
  .workspace { gap: 18px; }
  .gesture { font-size: 10px; }
  .compare { font-size: 11px; }
  .selection, body[data-theme=mono] .selection { margin: 16px 0; padding: 22px; }
  .selection h2 { font-size: 24px; }
  .selection .eyebrow { font-size: 11px; }
  .status-card { font-size: 12px; }
  .reference-copy strong { font-size: 12px; }
  .reference-row .text-button { font-size: 11px; }
  .action-row #download { min-height: 44px; }
  .thumb-photo { height: 115px; }
  .saved-grid { gap: 10px; }
  .saved-card { padding: 8px; border-radius: 18px; }
  .saved-card > img { height: 225px; border-radius: 12px; }
  .saved-card h2 { font-size: 15px; }
  .saved-card p { font-size: 11px; }
  .saved-card .button { font-size: 11px; min-height: 44px; }
  .saved-card .text-button { font-size: 11px; }
  .mobile-dock, body[data-theme=glow] .mobile-dock, .setup-actions, body[data-theme=glow] .setup-actions { background: #141414f5; border-color: #333; box-shadow: 0 -10px 40px #0005; }
  .dock-arrow { width: 40px; height: 44px; border-radius: 100px; background: #262626; }
  .mobile-dock .button { min-height: 44px; border-radius: 100px; }
  .mobile-dock strong { font-size: 11px; }
  .setup-actions .primary { min-height: 48px; }
  body[data-screen=room] { padding-bottom: 86px; }
  .app-footer { font-size: 10px; }
}
@media(max-width:360px) {
  .app { padding: 0 14px; }
  .header { gap: 7px; }
  .header .demo { padding: 6px 7px; font-size: 9px; }
  .header .text-button { font-size: 10px; }
  .brand-logo, body[data-theme=mono] .brand-logo { width: 66px; }
  .setup h1 { font-size: 35px; }
  .room-toolbar h1 { font-size: 21px; }
  .garment-grid .thumb-photo { height: 160px; }
  .garment-grid .thumb > span:last-child { font-size: 10px; }
  .mobile-dock { gap: 6px; padding-left: 12px; padding-right: 12px; }
  .dock-arrow { width: 36px; }
  .saved-card > img { height: 195px; }
}
@media(prefers-reduced-motion:reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .button:not(:disabled):hover, .button:not(:disabled):active { transform: none; }
}
