:root {
  --bg: #f7f6fb; --card: #ffffff; --ink: #1d1b26; --mute: #6b6880; --line: #e3e0ee;
  --accent: #6d4aff; --accent-ink: #ffffff; --alt: #0f9d7a; --warn: #c2410c; --chip: #efecf8;
  --shadow: 0 1px 2px rgba(20,10,60,.06), 0 6px 24px rgba(20,10,60,.06);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121119; --card: #1c1a26; --ink: #ecebf5; --mute: #a19db8; --line: #2e2b3d;
    --accent: #8f73ff; --alt: #2cc79f; --warn: #fb923c; --chip: #272436; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 system-ui, -apple-system, "Segoe UI",
  "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
a { color: var(--accent); }
button, input, textarea { font: inherit; color: inherit; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; max-width: 1180px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 17px; }
.topright { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.server { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute);
  background: var(--card); border: 1px solid var(--line); padding: 5px 11px; border-radius: 99px; }
.server i { width: 8px; height: 8px; border-radius: 50%; background: #aaa; }
.server.ok i { background: #22c55e; } .server.busy i { background: #f59e0b; } .server.off i { background: #ef4444; }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; max-width: 1180px; margin: 0 auto;
  scrollbar-width: none; }
@media (min-width: 701px) { .tabs { flex-wrap: wrap; overflow-x: visible; } }   /* 14 tabs: wrap instead of hiding some off-screen */
.tabs button { flex: none; border: 1px solid var(--line); background: var(--card); padding: 9px 14px;
  border-radius: 12px; cursor: pointer; white-space: nowrap; }
.tabs button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

main { max-width: 1180px; margin: 0 auto; padding: 0 16px 24px; }
.panel { display: none; gap: 18px; grid-template-columns: minmax(300px, 400px) 1fr; align-items: start; }
.panel.on { display: grid; }
@media (max-width: 820px) { .panel.on { grid-template-columns: 1fr; } }

.controls { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.lbl { font-weight: 600; font-size: 14px; }
textarea, input[type=text], input:not([type]) { width: 100%; border: 1px solid var(--line); background: var(--bg);
  border-radius: 12px; padding: 10px 12px; resize: vertical; }
textarea:focus, input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button, .aspects button { border: 1px solid transparent; background: var(--chip); padding: 6px 10px;
  border-radius: 99px; cursor: pointer; font-size: 13px; }
.chips button.on, .aspects button.on { border-color: var(--accent); color: var(--accent); background: transparent; }
.chips input[type=color] { width: 34px; height: 30px; border: none; padding: 0; background: none; cursor: pointer; }
.aspects { display: flex; flex-wrap: wrap; gap: 6px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.more summary { cursor: pointer; color: var(--mute); font-size: 13px; }
.more label { display: block; font-size: 13px; margin-top: 8px; color: var(--mute); }
.hint { margin: 0; color: var(--mute); font-size: 13px; }
.go { border: none; background: var(--accent); color: var(--accent-ink); padding: 13px 16px;
  border-radius: 14px; font-weight: 700; cursor: pointer; font-size: 16px; }
.go.alt { background: var(--alt); }
.go small { display: block; font-weight: 400; font-size: 12px; opacity: .85; }
.go:disabled { opacity: .5; cursor: progress; }
.ghost { border: 1px solid var(--line); background: transparent; padding: 6px 10px; border-radius: 10px; cursor: pointer; }
.brush label { display: flex; align-items: center; gap: 8px; font-size: 13px; }

.drops { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.drop { position: relative; aspect-ratio: 1; border: 2px dashed var(--line); border-radius: 14px;
  display: grid; place-items: center; cursor: pointer; color: var(--mute); font-size: 12px; text-align: center;
  overflow: hidden; background: var(--bg); }
.drop.big { grid-column: 1 / -1; aspect-ratio: auto; min-height: 110px; }
.drop.over { border-color: var(--accent); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop .x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.6); color: #fff; cursor: pointer; line-height: 1; z-index: 2; }
.drop .n { position: absolute; left: 4px; top: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px;
  padding: 1px 6px; border-radius: 6px; z-index: 2; }

.stage { min-height: 320px; display: flex; flex-direction: column; gap: 14px; }
.empty { border: 2px dashed var(--line); border-radius: 18px; min-height: 320px; display: grid; place-items: center;
  color: var(--mute); }
.status { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.status .bar { height: 6px; background: var(--chip); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.status .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s; }
.status.err { border-color: var(--warn); color: var(--warn); }
.result { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); }
.imgbox { background: repeating-conic-gradient(#8881 0 25%, transparent 0 50%) 0 0 / 20px 20px; display: grid; place-items: center; }
.result img { display: block; max-width: 100%; max-height: 75vh; }
.result figcaption { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.meta { color: var(--mute); font-size: 12px; word-break: break-word; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.btn { border: 1px solid var(--line); background: var(--bg); padding: 6px 10px; border-radius: 10px; cursor: pointer;
  font-size: 13px; text-decoration: none; color: var(--ink); }
.btn.dl { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.canvas-wrap { position: relative; border-radius: 18px; overflow: hidden; touch-action: none; background: var(--card);
  border: 1px solid var(--line); }
.canvas-wrap canvas { display: block; width: 100%; height: auto; }
.canvas-wrap canvas.mask { position: absolute; inset: 0; opacity: .5; cursor: crosshair; }
.ts:empty { display: none; }
.lang { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 99px;
  padding: 5px 8px; font-size: 13px; cursor: pointer; max-width: 150px; }
.navlinks .lang { margin-right: 2px; }

footer { max-width: 1180px; margin: 20px auto 40px; padding: 0 16px; color: var(--mute); font-size: 13px; }
footer .small { font-size: 12px; }

/* 3D */
.r3d model-viewer { display: block; width: 100%; height: min(70vh, 560px); background: radial-gradient(circle at 50% 40%, var(--card), var(--bg)); --poster-color: transparent; }

/* 작업 흐름 (flow.js) */
.fl-cmp { position: relative; display: inline-block; line-height: 0; max-width: 100%; }
.fl-cmp .fl-before, .fl-cmp i, .fl-cmp input, .fl-cmp .fl-tag { display: none; }
.fl-cmp.on .fl-before { display: block; position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; }
.fl-cmp.on i { display: block; position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35); pointer-events: none; }
.fl-cmp.on input { display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.fl-cmp.on .fl-tag { display: block; position: absolute; top: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px;
  line-height: 1.5; padding: 1px 8px; border-radius: 99px; pointer-events: none; }
.fl-tag.l { left: 8px; } .fl-tag.r { right: 8px; }
.btn.on { border-color: var(--accent); color: var(--accent); }
.fl-next { display: flex; gap: 6px; }
.fl-next input { flex: 1; min-width: 0; padding: 7px 10px; }
.fl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 6px; }
.fl-cell { position: relative; aspect-ratio: 1; border: 3px solid transparent; border-radius: 12px; background: var(--bg);
  overflow: hidden; padding: 0; cursor: pointer; display: grid; place-items: center; color: var(--mute); font-size: 20px; }
.fl-cell:disabled { cursor: default; }
.fl-cell:not(:disabled):hover, .fl-cell.on { border-color: var(--accent); }
.result .fl-cell img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; }
.fl-cell.busy { animation: fl-pulse 1.2s ease-in-out infinite; }
@keyframes fl-pulse { 50% { opacity: .45; } }
.fl-tree, #hist-stage { min-width: 0; }
.fl-tree { display: flex; flex-direction: column; gap: 6px; }
.result { position: relative; }
.result > .rm { position: absolute; top: 8px; right: 8px; z-index: 4; border: 0; border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; background: rgba(0,0,0,.55); color: #fff; }
.result > .rm:hover { background: rgba(0,0,0,.75); }
.result > .rm.warn, .fl-del.warn { background: #d92d20; color: #fff; }
.rm-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--mute); margin-bottom: 8px; }
.fl-row { display: flex; align-items: stretch; gap: 6px; }
.fl-row .fl-node { flex: 1; min-width: 0; }
.fl-del { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 0 10px; cursor: pointer; font-size: 13px; }
.fl-node { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line); background: var(--card);
  border-radius: 12px; padding: 6px; cursor: pointer; min-width: 0; overflow: hidden; }
.fl-node.on { border-color: var(--accent); }
.fl-node img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none;
  background: repeating-conic-gradient(#8882 0 25%, transparent 0 50%) 0 0 / 12px 12px; }
.fl-node span { min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.fl-node small { color: var(--mute); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 3D 파일 보기 */
.v3-drop { border: 2px dashed var(--line); border-radius: 14px; min-height: 96px; display: grid; place-items: center;
  text-align: center; padding: 12px; cursor: pointer; color: var(--mute); font-size: 13px; background: var(--bg); }
.v3-drop.over { border-color: var(--accent); color: var(--accent); }
.v3-host { position: relative; width: 100%; height: min(72vh, 680px); min-height: 360px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: #15151c; touch-action: none; }
.v3-host canvas { display: block; width: 100%; height: 100%; }
.v3-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #9aa; pointer-events: none; text-align: center; padding: 16px; }
.v3-host.over { outline: 3px solid var(--accent); outline-offset: -3px; }
.v3-checks { display: grid; gap: 6px; font-size: 13px; }
.v3-checks label { display: flex; align-items: center; gap: 8px; }
.v3-info { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 12px; color: var(--mute); }
.v3-info b { color: var(--ink); font-weight: 600; text-align: right; }
.v3-tree { max-height: 220px; overflow: auto; font-size: 12px; margin-top: 6px; }
.v3-tree div { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.v3-tree input { margin: 0; }
.v3-empty[hidden] { display: none; }
.v3-clip video { display: block; width: 100%; max-height: 60vh; background: #000; }
.v3-clip[hidden] { display: none; }
.v3-linkbox { display: flex; flex-direction: column; gap: 6px; }
.v3-linkbox code { font-size: 12px; word-break: break-all; flex: 1 1 220px; }
#v3-rec.rec { background: #d33; animation: v3pulse 1s infinite; }
@keyframes v3pulse { 50% { opacity: .65; } }

.st-range { display: inline-flex; gap: 4px; margin-left: 8px; }
.st-range .btn { padding: 2px 8px; font-size: 12px; }
.st-range .btn.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.st-wrap { overflow-x: auto; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 64px; padding: 4px 0 14px; }
.bars i { flex: 1; min-width: 3px; background: var(--accent); border-radius: 3px 3px 0 0; position: relative; opacity: .85; }
.bars i:hover { opacity: 1; }
.bars i.zero { background: var(--line); }
.bars i span { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); font-size: 9px; color: var(--mute); font-style: normal; }
.aitag { font-size: 12px; color: var(--mute); margin: 4px 0 6px; }
/* 결과 카드: 자주 쓰는 버튼만 앞에, 나머지는 더보기 */
.result details.more { margin-top: 2px; }
.result details.more > summary { cursor: pointer; font-size: 13px; color: var(--mute); padding: 4px 2px; list-style: none; }
.result details.more > summary::-webkit-details-marker { display: none; }
.result details.more[open] > summary { margin-bottom: 6px; }
/* 패션 코디 피팅 (fashion.js) */
.fa-grid { display: grid; grid-template-columns: 1fr; gap: 6px; }
.fa-slot { display: grid; grid-template-columns: 9.5em 1fr; gap: 8px; align-items: center; font-size: 13px; }
.fa-slot input { min-width: 0; }
.fa-slot > label { cursor: pointer; }
.fa-in { display: flex; gap: 6px; min-width: 0; }
.fa-in input { flex: 1; }
.fa-opt-btn { flex: none; border: 1px solid var(--line); background: var(--chip); border-radius: 8px; padding: 0 12px; cursor: pointer; }
.fa-opt-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.fa-opts { grid-column: 1 / -1; padding: 2px 0 8px; }
.fa-opts button { font-size: 12px; padding: 5px 9px; }
.fa-item { display: flex; gap: 8px; align-items: center; margin: 4px 0; }
.fa-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.fa-report { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; font-size: 14px; }
.fa-report h3 { margin: 0; font-size: 17px; }.fa-report p { margin: 0; }.fa-report ul { margin: 0; padding-left: 18px; }
.fa-pal { display: flex; flex-wrap: wrap; gap: 6px; }
.fa-sw { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px 3px 4px; font-size: 12px; }
.fa-sw i { width: 18px; height: 18px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.15); }
.fa-sug { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; background: var(--card); }
.fa-sug .fa-slots-line { font-size: 12px; color: var(--mute); }
@media (max-width: 520px) { .fa-slot { grid-template-columns: 1fr; gap: 2px; } }
.fa-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; vertical-align: -2px; margin-right: 6px; border: 1px solid rgba(0,0,0,.2); }
.fa-dyes button { display: inline-flex; align-items: center; }
.fa-dyehead { display: flex; align-items: center; gap: 6px; }.fa-dyehead .fa-dot { margin: 0; width: 18px; height: 18px; }
.fa-men { display: none !important; }
#fashion.fa-showmen .fa-men { display: grid !important; }
#fashion.fa-showmen .row.fa-men { display: flex !important; }
.fa-kids { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; display: grid; gap: 8px; }
.fa-kids > summary { cursor: pointer; font-weight: 600; }

.finopts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 8px 4px 0; font-size: 13px; }
.finopts[hidden] { display: none; }
.finopts label { display: inline-flex; align-items: center; gap: 6px; }
.finopts input[type=range] { width: 140px; }

.tx-edit { padding: 8px 4px 0; display: grid; gap: 8px; }
.tx-edit[hidden] { display: none; }
.tx-edit textarea { width: 100%; }
.tx-edit .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.tx-edit input[type=range] { width: 130px; }
.tx-edit .tx-tabs .btn { padding: 5px 11px; font-size: 13px; }
.tx-edit .tx-tabs .btn.on { outline: 2px solid var(--accent, #4f8cff); }

/* 패션: 날씨 반영 · 내 옷장 */
.fa-wx { display: grid; gap: 8px; margin: 6px 0 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.fa-wx .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.fa-wx input[type=text] { flex: 1 1 180px; min-width: 0; }
.fa-wx .fa-report ul { margin: 6px 0 8px; padding-left: 18px; }
.fa-wx .fa-report[hidden], .fa-wx .chips[hidden] { display: none; }
.fa-cl-add { cursor: pointer; display: inline-block; }
.fa-cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 8px 0; }
.fa-cl-card { position: relative; display: grid; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); min-width: 0; }
.fa-cl-card.on { outline: 2px solid var(--accent); }
.fa-cl-card > input[type=checkbox] { position: absolute; top: 8px; left: 8px; z-index: 1; width: 18px; height: 18px; }
.fa-cl-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--chip); border-radius: 8px; cursor: pointer; }
.fa-cl-card input[type=text], .fa-cl-card select { width: 100%; min-width: 0; font-size: 13px; }
.fa-cl-foot { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.fa-cl-foot { flex-wrap: wrap; }
.fa-cl-foot .hint { font-size: 12px; flex: 1 0 100%; }
.fa-cl-foot button { flex: 1; min-width: 0; padding: 4px 0; }
.fa-sv-link { display: block; font-size: 13px; color: var(--mute); margin: 6px 0; }
.fa-rec-th { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.fa-rec-th img { width: 56px; height: 56px; object-fit: contain; background: var(--chip); border-radius: 8px; }
.fa-wk-wx { flex: 1 1 100%; font-size: 12px; margin: -2px 0 4px 2.6em; }
.fa-wk-wx.warn { color: var(--warn); }
.fa-pref { display: block; font-size: 13px; color: var(--mute); margin: 4px 0 10px; }
.fa-cl-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 4px; }
.fa-cl-filter select, .fa-cl-filter input[type=search] { min-width: 0; font-size: 13px; }
.fa-cl-filter input[type=search] { flex: 1 1 120px; }
.fa-cl-seasons { display: flex; gap: 3px; }
.fa-sn { flex: 1; min-width: 0; padding: 3px 0; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--mute); cursor: pointer; }
.fa-sn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fa-cl-wear { font-size: 11px; }
.fa-lg-nav { justify-content: center; gap: 14px; }
.fa-lg-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin: 6px 0; }
.fa-lg-h { text-align: center; font-size: 12px; color: var(--mute); padding: 2px 0; }
.fa-lg-day { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 46px; padding: 3px 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); cursor: pointer; overflow: hidden; text-align: left; }
.fa-lg-day .n { font-size: 12px; font-weight: 700; }
.fa-lg-day .t { font-size: 10px; color: var(--accent); line-height: 1.15; word-break: break-all; }
.fa-lg-day.has { background: var(--chip); }
.fa-lg-day.today { outline: 2px solid var(--alt); }
.fa-lg-day.sel { outline: 2px solid var(--accent); }
.fa-lg-edit { display: grid; gap: 6px; margin: 8px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.fa-lg-edit[hidden] { display: none; }
.fa-lg-edit select, .fa-lg-edit input { width: 100%; min-width: 0; }
.fa-bk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0; padding: 8px 10px; border: 1px solid var(--warn); border-radius: 10px; font-size: 13px; }
.fa-bk[hidden] { display: none; }
.fa-badge { color: var(--warn); font-size: 12px; font-weight: 700; }
.fa-warn { color: var(--warn); }
.fa-bar { display: grid; grid-template-columns: 7.5em 1fr 2em; align-items: center; gap: 6px; margin: 3px 0; font-size: 13px; }
.fa-bar-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fa-bar-t { height: 10px; background: var(--chip); border-radius: 5px; overflow: hidden; }
.fa-bar-t i { display: block; height: 100%; background: var(--accent); border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.fa-bar-n { text-align: right; color: var(--mute); }
.fa-th-n { display: inline-flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--mute); }
.fa-th-n img { width: 56px; height: 56px; object-fit: contain; background: var(--chip); border-radius: 8px; }
.fa-basics { list-style: none; padding: 0; margin: 4px 0; font-size: 14px; }
.fa-basics li.no { color: var(--warn); }
.fa-fv-off { display: none !important; }
.fa-fv { position: sticky; top: 0; z-index: 4; padding: 6px 0; margin: 4px 0 10px; background: var(--bg); }
.fa-fv button { flex: 1 1 auto; }
.fa-cl-card.off { opacity: .55; }
.fa-off.on { outline: 2px solid var(--warn); }
.fa-heart { font-size: 16px; padding: 2px 8px; }
.fa-heart.on { color: #e0457b; }
.fa-aitag { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--accent); }
.fa-aitag button { padding: 2px 8px; font-size: 11px; }
.fa-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0; }
.fa-pair img { width: 56px; height: 56px; object-fit: contain; background: var(--chip); border-radius: 8px; }
.fa-fv button:focus-visible, .fa-lg-day:focus-visible, .fa-cl-card button:focus-visible, .fa-sn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.chips button[aria-pressed="true"]:focus-visible { outline: 3px solid var(--alt); outline-offset: 2px; }

/* 옷장 사진 다듬기 · 배경 지우기 다듬기 (a small window), the day pictures of the outfit calendar (2026-10-05) */
.fa-cl-foot button { flex: 1 0 28px; }
.fa-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(0, 0, 0, .55); }
.fa-modal-box { width: min(100%, 640px); max-height: 100%; overflow: auto; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; display: grid; gap: 8px; outline: none; }
.fa-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fa-modal-body { display: grid; gap: 8px; min-width: 0; }
.fa-modal-body .row { flex-wrap: wrap; }
.fa-crop { display: block; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; touch-action: none; cursor: crosshair; background: var(--chip); }
.fa-checker { background-color: #ffffff; background-image: linear-gradient(45deg, #cfcfd6 25%, transparent 25%, transparent 75%, #cfcfd6 75%), linear-gradient(45deg, #cfcfd6 25%, transparent 25%, transparent 75%, #cfcfd6 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; cursor: default; }
.fa-bgcmp { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fa-bgsolid { align-items: center; gap: 6px 10px; }
.fa-bgsolid input[type=range] { flex: 1 1 120px; min-width: 0; }
.fa-modal button:focus-visible, .fa-modal input:focus-visible, .fa-crop:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.fa-lg-th { width: 100%; height: 24px; object-fit: cover; border-radius: 4px; margin-top: 2px; }
.fa-lg-photo { display: grid; gap: 6px; }
.fa-lg-ph { text-align: center; }
.fa-lg-ph[hidden] { display: none; }
.fa-lg-ph img { max-width: 160px; max-height: 200px; border-radius: 10px; border: 1px solid var(--line); object-fit: contain; background: var(--chip); }
.fa-modal-body [hidden] { display: none !important; }
/* a closet card's single column must not grow with its content (long season names in Vietnamese pushed the page 24px wide) */
.fa-cl-card { grid-template-columns: minmax(0, 1fr); }
.fa-cl-seasons { min-width: 0; }
/* the two previews of the background window sit side by side on a phone too */
.fa-bgcmp canvas { flex: 1 1 130px; max-width: 280px; min-width: 0; height: auto; }

/* search / first-screen text: the h1 under the header and the Korean guide section under the tool (guides = seo.py).
   .ko-only is hidden on every other language -- the guides exist in Korean only, and a crawler is shown Korean (i18n.js). */
/* what only the owner sees (the AI 3D model runs on this PC's GPU): html gets .is-owner from app.js when /api/config says owner (this PC's own address) */
.owner-only { display: none; flex-direction: column; gap: 12px; }
html.is-owner .owner-only { display: flex; }
.seo-h1 { max-width: 1180px; margin: 0 auto; padding: 0 16px 8px; font-size: 14px; font-weight: 600; color: var(--mute); }
html:not([lang="ko"]) .ko-only { display: none !important; }
.about { max-width: 1180px; margin: 6px auto 0; padding: 0 16px; line-height: 1.65; }
.about h2 { font-size: 18px; margin: 0 0 4px; }
.about h3 { font-size: 15px; margin: 18px 0 6px; }
.about .lead { color: var(--mute); margin: 0 0 12px; }
.about p { margin: 0 0 8px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.about-grid a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--ink); text-decoration: none; }
.about-grid a:hover, .about-grid a:focus-visible { border-color: var(--accent); }
.about-grid a b { display: block; color: var(--accent); margin-bottom: 2px; }
.about-grid a span { font-size: 13px; color: var(--mute); }
