@font-face { font-family: "Amatic SC"; font-weight: 700; font-display: swap; src: url("/assets/fonts/amatic-sc-700.woff2") format("woff2"); }
:root {
  color-scheme: light dark;
  --bg: #f4f6f6; --card: #fff; --text: #182022; --muted: #5a686b; --line: #dde3e4;
  --accent: #0f766e; --accent-text: #0d6b64; --accent-soft: #e2f4f1; --on-accent: #fff;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111617; --card: #1b2224; --text: #edf2f2; --muted: #9eabad; --line: #2f3a3c;
    --accent: #0f766e; --accent-text: #5eead4; --accent-soft: #123430; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
a { color: var(--accent-text); }
.inner { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--text); text-decoration: none; }
.site-nav { display: flex; gap: 14px; font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--accent-text); }
main { padding: 22px 0 40px; }
h1 { font-size: clamp(24px, 6vw, 34px); line-height: 1.25; letter-spacing: -.02em; margin: 0 0 6px; }
h2 { font-size: 21px; line-height: 1.35; margin: 34px 0 10px; letter-spacing: -.01em; }
.lead { color: var(--muted); margin: 0 0 16px; font-size: 16px; }
.small { font-size: 13.5px; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 0 0 16px; }

.finder { position: relative; display: flex; justify-content: center; background: #0b0e10; border-radius: 10px; overflow: hidden; }
#view { display: block; max-width: 100%; max-height: 68vh; width: auto; height: auto; }
#view.flash { animation: flash .28s ease-out; }
@keyframes flash { from { filter: brightness(3); } to { filter: none; } }
@media (prefers-reduced-motion: reduce) { #view.flash { animation: none; } }
#sample-tag { position: absolute; top: 10px; left: 10px; padding: 2px 9px; font-size: 12.5px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; }

.acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.acts .btn { flex: 1; min-width: 120px; }
.btn { display: inline-block; font: inherit; font-weight: 700; text-align: center; text-decoration: none; padding: 11px 16px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(.93); }
.btn.file { position: relative; overflow: hidden; }
.btn.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.btn.file:focus-within { outline: 3px solid var(--accent-text); outline-offset: 2px; }
#act-idle .primary { flex-basis: 100%; }
#act-live { justify-content: center; flex-wrap: nowrap; }
#act-live .btn { flex: 1; min-width: 0; }
#shutter { flex: none; width: 72px; height: 72px; border-radius: 50%; padding: 0; border: 4px solid var(--accent); background: var(--card); cursor: pointer; box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 40px var(--accent); }
#shutter:active { transform: scale(.94); }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
#status { font-size: 14px; margin: 10px 0 0; color: var(--accent-text); font-weight: 600; }
#status:empty { display: none; }

.opts { margin-top: 16px; display: grid; gap: 14px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.seg.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 6px; }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; text-align: center; padding: 10px 4px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.seg input:checked + span { background: var(--accent-soft); border-color: var(--accent-text); color: var(--accent-text); font-weight: 700; }
.seg input:focus-visible + span { outline: 3px solid var(--accent-text); outline-offset: 2px; }
label.fld { display: block; font-weight: 700; font-size: 14px; }
label.fld small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
input[type=text] { display: block; width: 100%; margin-top: 6px; min-height: 46px; padding: 10px 12px; font: inherit; font-weight: 400; font-size: 16px; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14.5px; min-height: 38px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 14px; }
th, td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; }
th { font-size: 13.5px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.more { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.more a { display: block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-size: 14.5px; background: var(--card); }
.install { padding: 6px 12px; font-size: 13.5px; white-space: nowrap; }
.ad-slot { margin: 22px 0; min-height: 100px; }
.ad-slot.preview { border: 2px dashed var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.ad-label { display: block; font-size: 11px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding: 22px 0 34px; font-size: 13.5px; color: var(--muted); }
.site-footer p { margin: 0 0 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.site-footer a { color: var(--muted); }
@media (max-width: 560px) {
  .site-nav { display: none; }
  .card { padding: 12px; }
}
