/* sco.kr — fff.css 위에 얼굴·도구 화면. 어두운 작업실(보라 빛) 머리·첫 화면, 큰 타일, 둥근 단추. 움직임·흐림 장식 없음. */
.b-sco { --accent: light-dark(#6d28d9, #b794ff); --accent-ink: light-dark(#ffffff, #160a2e); --ink2: #ece9ff; --night: #120d22;
  --bg2: light-dark(#f6f4fb, #15121f); --line: light-dark(#e6e1f2, #2a2538); --radius: 16px; }
.cat-privacy { --c: light-dark(#6d28d9, #b794ff); --c-bg: light-dark(#efe9ff, #261c40); }
.cat-edit { --c: light-dark(#db2777, #f9a8d4); --c-bg: light-dark(#fde7f1, #3a1a2b); }
.b-sco .top { background: var(--night); border-bottom: 1px solid #2a2140; }
.b-sco .top .logo, .b-sco .top .logo b, .b-sco .top-nav a { color: var(--ink2); }
.b-sco .top .logo span { color: rgb(236 233 255 / .65); }
.b-sco .logo .mark { background: linear-gradient(135deg, #8b5cf6, #ec4899); color: #fff; border-radius: 9px; }
.b-sco .top-nav a:hover { background: rgb(255 255 255 / .08); }
.b-sco .lang summary { color: var(--ink2); border-color: rgb(255 255 255 / .2); }
.b-sco .btn { border-radius: 12px; font-weight: 800; }
.b-sco .btn-primary { background: linear-gradient(135deg, #7c3aed, #db2777); border: 0; color: #fff; }
.b-sco .foot { background: var(--night); color: rgb(236 233 255 / .7); border-top: 0; }
.b-sco .foot a, .b-sco .foot-dir a { color: rgb(236 233 255 / .78); }
.b-sco .foot-h { color: var(--ink2); }
.b-sco .foot-dir { border-bottom-color: rgb(255 255 255 / .12); }
.b-sco [hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* 첫 화면 */
.s-hero { background: radial-gradient(60% 80% at 85% 20%, rgb(139 92 246 / .45), transparent 70%), radial-gradient(50% 70% at 10% 100%, rgb(236 72 153 / .28), transparent 70%), var(--night); color: var(--ink2); }
.s-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
@media (max-width: 820px) { .s-hero-in { grid-template-columns: 1fr; } .s-demo { display: none; } }
.s-hero h1 { color: #fff; font-size: clamp(2rem, 1.2rem + 3vw, 3.1rem); font-weight: 900; letter-spacing: -.03em; }
.s-hero .lead { color: rgb(236 233 255 / .82); }
.s-hero .badges li { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .18); color: #fff; box-shadow: none; }
.s-demo { display: grid; place-items: center; }
.s-shot { position: relative; width: min(100%, 340px); aspect-ratio: 4 / 3; border-radius: 14px; background: #f5f3ff; box-shadow: 0 24px 60px rgb(0 0 0 / .45); padding: 34px 18px 18px; display: grid; gap: 10px; align-content: start; }
.s-shot::before { content: ""; position: absolute; top: 12px; left: 14px; width: 42px; height: 10px; border-radius: 5px; background: radial-gradient(circle at 5px 5px, #ff5f57 4px, transparent 4.5px), radial-gradient(circle at 21px 5px, #febc2e 4px, transparent 4.5px), radial-gradient(circle at 37px 5px, #28c840 4px, transparent 4.5px); }
.s-shot i { display: block; height: 12px; border-radius: 6px; background: #ddd6fe; }
.s-shot i:nth-child(2) { width: 70%; } .s-shot i:nth-child(3) { width: 85%; }
.s-blur { display: block; height: 54px; border-radius: 10px; background: repeating-linear-gradient(90deg, #c4b5fd 0 14px, #a78bfa 14px 28px), #a78bfa; filter: blur(3px); }
.s-pix { display: block; height: 40px; width: 60%; border-radius: 6px; background: conic-gradient(#f9a8d4 25%, #f472b6 0 50%, #f9a8d4 0 75%, #f472b6 0) 0 0 / 14px 14px; }
/* 도구 타일 */
.s-tiles { padding-top: 12px; }
.s-cat { font-size: 1.1rem; margin: 28px 0 12px; color: var(--c); }
.s-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.s-tile { position: relative; display: grid; gap: 6px; min-height: 150px; padding: 20px; border-radius: 20px; text-decoration: none; color: var(--ink); background: linear-gradient(160deg, var(--c-bg), var(--card) 70%); border: 1px solid var(--line); }
.s-tile:hover { border-color: var(--c); }
.s-tile .ico { font-size: 1.8rem; }
.s-tile b { font-size: 1.15rem; }
.s-tile span:not(.ico) { color: var(--dim); font-size: .95rem; }
.s-tile em { position: absolute; inset-inline-end: 18px; bottom: 14px; font-style: normal; font-weight: 900; color: var(--c); }
.s-how { padding-top: 30px; }
.s-how h2 { font-size: 1.35rem; margin: 0 0 14px; }
.s-how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.s-how li { display: flex; gap: 12px; padding: 16px; border-radius: 16px; background: var(--bg2); }
.s-how li b { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff; }
/* 도구 화면 */
.sco .drop-small { min-height: 120px; }
.work { margin-top: 16px; display: grid; gap: 12px; }
.bar-opts { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg2); }
.bar-opts .opt { min-width: 160px; flex: 1; }
.bar-opts .acts { margin: 0; }
.bar-opts input[type=color] { width: 100%; min-height: 48px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.stage { display: grid; place-items: center; padding: 12px; border-radius: 16px; background: repeating-conic-gradient(var(--bg2) 0 25%, var(--card) 0 50%) 0 0 / 22px 22px; border: 1px solid var(--line); overflow: auto; }
.stage canvas { max-width: 100%; height: auto; display: block; touch-action: none; cursor: crosshair; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; flex-basis: 100%; }
.swatches legend { font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.sw { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line); cursor: pointer; }
.sw.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.sw-color { width: 44px; height: 44px; padding: 2px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); }
.exif-item { grid-template-columns: 96px 1fr; align-items: start; }
.exif-item img { width: 96px; height: auto; max-height: 140px; object-fit: contain; }
.exif-box { display: grid; gap: 6px; min-width: 0; }
.exif-box .btn { justify-self: start; }
.exif-dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; font-size: .95rem; }
.exif-dl dt { color: var(--dim); }
.exif-dl dd { margin: 0; overflow-wrap: anywhere; }
.ocr-name { margin: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stitch-list .item { grid-template-columns: 52px 1fr auto; }
.stitch-list .item img { width: 52px; height: 52px; }
.err { color: var(--bad); font-weight: 700; }
.done { margin: 0; font-weight: 700; }
@media (max-width: 520px) { .exif-item { grid-template-columns: 1fr; } .exif-item img { width: 100%; max-height: 200px; } }
.bar-opts .sw-color { width: 44px; min-height: 44px; height: 44px; flex: none; }

/* 배경 지우기 */
.cut-auto { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.cut-auto .hint { margin: 0; }
.pens { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; border: 0; padding: 0; margin: 0; }
.pens legend { font-size: .85rem; color: var(--muted); margin-bottom: 4px; padding: 0; }
.pen { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer; font-size: .92rem; }
.pen input { margin: 0; }
.pen:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cut-stage { position: relative; }
.cut-stage .ring { position: absolute; left: 0; top: 0; border: 2px solid #fff; outline: 1px solid rgba(0,0,0,.6); border-radius: 50%; pointer-events: none; }
@media (pointer: coarse) { .pen { min-height: 44px; } }
