:root {
  --bg: #F5F5F7; --card: #FFFFFF; --ink: #1D1D1F; --ink2: #6E6E73; --line: rgba(0,0,0,.10);
  --accent: #E8412C; --fill: rgba(0,0,0,.05); --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000000; --card: #1C1C1E; --ink: #F5F5F7; --ink2: #A1A1A6; --line: rgba(255,255,255,.14); --fill: rgba(255,255,255,.08); --shadow: none; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", system-ui, sans-serif; }
a { color: inherit; }
[hidden] { display: none !important; }
.top { display: flex; align-items: center; justify-content: space-between; max-width: 760px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .02em; }
.lang { border: 0; background: var(--fill); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; }
main { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }
.hero { text-align: center; padding: 28px 0 22px; }
h1 { font-size: clamp(32px, 7vw, 48px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 12px; }
.feats { list-style: none; padding: 0; margin: 22px 0 8px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; text-align: left; }
@media (min-width: 640px) { .feats { grid-template-columns: repeat(4, 1fr); } }
.feats li { position: relative; background: var(--card); border-radius: 18px; padding: 14px 12px 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 3px; }
.feats b { font-size: 15px; letter-spacing: -.01em; line-height: 1.3; }
.feats small { font-size: 12.5px; line-height: 1.4; }
.feats em { position: absolute; top: 12px; right: 12px; font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(52,199,89,.15); color: #1F9D47; }
.feats em.app { background: rgba(232,65,44,.12); color: var(--accent); }
.ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; margin-bottom: 6px; position: relative; }
.i1 { background: linear-gradient(135deg, #FF6A4D, #E8412C); }
.i2 { background: linear-gradient(135deg, #FFB833, #F57310); }
.i3 { background: linear-gradient(135deg, #5AC8FA, #2F7CF6); }
.i3::before, .i3::after { content: ""; position: absolute; width: 10px; height: 14px; border-radius: 2px; background: #fff; top: 10px; }
.i3::before { left: 7px; } .i3::after { right: 7px; opacity: .75; }
.i4 { background: linear-gradient(135deg, #34C759, #1F9D47); }
.i4::before { content: ""; position: absolute; inset: 8px; border: 2px dashed rgba(255,255,255,.9); border-radius: 3px; }
.i4::after { content: ""; position: absolute; inset: 12px; background: #fff; border-radius: 2px; }
.lead { color: var(--ink2); margin: 0 auto; max-width: 30em; font-size: 17px; }
h2 { font-size: 20px; letter-spacing: -.01em; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 0 0 8px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 16px; border: 2px dashed var(--line); border-radius: 22px; background: var(--card); text-align: center; cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.drop:active { transform: scale(.99); }
.drop.over { border-color: var(--accent); }
.drop-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); position: relative; margin-bottom: 6px; }
.drop-icon::before, .drop-icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 2px; transform: translate(-50%, -50%); }
.drop-icon::before { width: 20px; height: 3px; } .drop-icon::after { width: 3px; height: 20px; }
.hint, .sub, small { color: var(--ink2); font-size: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.row.center { justify-content: center; } .row.end { justify-content: flex-end; }
button { font: inherit; cursor: pointer; }
.primary { display: block; width: 100%; border: 0; border-radius: 999px; padding: 15px 20px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 17px; margin-top: 18px; transition: transform .1s ease, opacity .2s; }
.row .primary { width: auto; flex: 1; margin-top: 0; }
.primary.small { flex: 0 0 auto; width: auto; margin-top: 0; padding: 10px 22px; font-size: 15px; }
.primary:active, .secondary:active { transform: scale(.97); }
.primary:disabled { opacity: .45; }
.secondary { border: 0; border-radius: 999px; padding: 12px 20px; background: var(--fill); color: var(--ink); font-weight: 600; }
.row .secondary { flex: 1; }
.row.center .secondary, .row.end .secondary { flex: 0 0 auto; }
.link { border: 0; background: none; color: var(--ink2); text-decoration: underline; padding: 6px; margin: 0 auto; }
.work, .done { background: var(--card); border-radius: 22px; padding: 20px 16px; margin-top: 16px; box-shadow: var(--shadow); }
.items { list-style: none; margin: 0 0 8px; padding: 0; }
.items li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.items li:last-child { border-bottom: 0; }
.thumb { flex: 0 0 44px; height: 44px; border-radius: 8px; background: var(--fill) center/cover no-repeat; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--ink2); }
.meta { flex: 1; min-width: 0; }
.meta b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta span { color: var(--ink2); font-size: 13px; }
.mini { border: 0; background: var(--fill); color: var(--ink); width: 34px; height: 34px; border-radius: 50%; font-size: 14px; line-height: 1; flex: 0 0 auto; }
.mini:disabled { opacity: .3; }
.group { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 10px; }
.seg { display: flex; gap: 4px; background: var(--fill); padding: 3px; border-radius: 12px; margin: 4px 0 8px; }
.seg button { flex: 1; border: 0; background: none; color: var(--ink); padding: 9px 6px; border-radius: 9px; font-size: 14px; }
.seg button.on { background: var(--card); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.more summary { cursor: pointer; font-weight: 600; padding: 4px 0 10px; }
.field { display: block; margin: 10px 0; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
input[type=text], textarea { width: 100%; font: inherit; color: var(--ink); background: var(--fill); border: 1px solid transparent; border-radius: 12px; padding: 11px 12px; }
input[type=text]:focus, textarea:focus { outline: none; border-color: var(--accent); }
.check { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.note { min-height: 1.5em; color: var(--ink2); font-size: 14px; text-align: center; margin: 10px 0 0; }
.note.err { color: var(--accent); }
.bar { height: 4px; border-radius: 2px; background: var(--fill); overflow: hidden; margin-top: 12px; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s ease; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 28px; }
.facts div { background: var(--card); border-radius: 18px; padding: 16px; }
.facts p { margin: 0; color: var(--ink2); font-size: 14px; }
dialog { border: 0; border-radius: 20px; padding: 18px; width: min(560px, calc(100vw - 32px)); background: var(--card); color: var(--ink); }
dialog::backdrop { background: rgba(0,0,0,.4); }
dialog form > * + * { margin-top: 10px; }
.foot { text-align: center; color: var(--ink2); font-size: 13px; padding: 10px 16px max(24px, env(safe-area-inset-bottom)); }
.doc { max-width: 680px; margin: 0 auto; padding: 0 16px 40px; }
.doc p, .doc li { color: var(--ink2); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
