/* ==========================================================================
   초대 코드 허브 — prototype stylesheet
   화이트 배경 · 선명한 보더 · 16/24px 그리드 · 모바일 반응형
   ========================================================================== */

:root {
  --ink: #14161a;
  --ink-soft: #3a3f47;
  --muted: #747a84;
  --muted-2: #9aa0a8;
  --line: #e4e5e8;
  --line-soft: #eff0f2;
  --line-strong: #cfd1d6;
  --surface: #f7f7f5;
  --accent: #d0451f;
  --accent-soft: #fdf4f0;
  --ok: #157f4b;
  --wrap: 1120px;
  --pad: 24px;
  --gap: 16px;
  --radius: 12px;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

::selection { background: #ffe2d6; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark.small { width: 22px; height: 22px; border-radius: 6px; font-size: 11px; }

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-domain {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.site-nav a, .nav-button {
  padding: 6px 0;
  border: 0;
  background: none;
  color: inherit;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover, .nav-button:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* --------------------------------------------------------------------------
   Home — hero
   -------------------------------------------------------------------------- */

.hero { padding: 72px 0 40px; max-width: 760px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(208, 69, 31, 0.1);
}

.hero-title {
  margin-top: 16px;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.hero-lead {
  margin-top: 20px;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  word-break: keep-all;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat { padding: 16px 24px 16px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }

.stat dt {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.stat dd {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 4px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat dd .unit { font-size: 13px; font-weight: 500; color: var(--muted); }

.stat dd.stat-date { font-family: var(--mono); font-size: 17px; font-weight: 500; letter-spacing: 0; }

/* --------------------------------------------------------------------------
   Home — filter + grid
   -------------------------------------------------------------------------- */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }

.filter {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.filter:hover { border-color: var(--line-strong); color: var(--ink); }
.filter[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.toolbar-note {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
}

.search-field { flex: 0 0 190px; }
.search-field .input { height: 36px; }
.search-field input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
}
.search-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(316px, 1fr));
  gap: var(--gap);
  margin-top: 24px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.card:hover {
  border-color: var(--ink);
  box-shadow: 0 10px 28px rgba(20, 22, 26, 0.07);
  transform: translateY(-2px);
}

.card-link {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  padding: var(--pad);
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.card-titles { min-width: 0; flex: 1 1 auto; }

.card-titles h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.card-vendor {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
}

.card-arrow {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1.35;
  color: var(--muted-2);
  transition: color 140ms ease, transform 140ms ease;
}
.card:hover .card-arrow { color: var(--ink); transform: translate(1px, -1px); }

.card-tagline {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
}

.card-foot b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.foot-dot { width: 2px; height: 2px; border-radius: 50%; background: var(--line-strong); }

.chip {
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}
.chip.warm { border-color: #f0d3c7; background: var(--accent-soft); color: var(--accent); }

.skeleton {
  height: 208px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(100deg, #fafafa 30%, #f2f2f2 50%, #fafafa 70%);
  background-size: 240% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { to { background-position: -120% 0; } }

/* --------------------------------------------------------------------------
   Home — how to
   -------------------------------------------------------------------------- */

.howto {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.section-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.howto-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 24px;
}

.howto-list li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.howto-num {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.howto-list h3 {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.howto-list p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  word-break: keep-all;
}

/* --------------------------------------------------------------------------
   Detail
   -------------------------------------------------------------------------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 24px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.back-link:hover { color: var(--ink); }

.detail-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--line);
}

.detail-head .mark {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  font-size: 17px;
  background: #fff;
}

.detail-titles { min-width: 0; }

.detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.detail-meta .sep { color: var(--line-strong); }

.detail-title {
  margin-top: 6px;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.detail-lead {
  margin-top: 10px;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  word-break: keep-all;
}

.detail-actions { display: flex; align-items: center; gap: 8px; padding-top: 4px; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  padding: 32px 0 80px;
}

.stack { display: grid; gap: var(--gap); }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: var(--pad);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.panel-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* benefit */
.benefit-headline {
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.03em;
  font-weight: 700;
  word-break: keep-all;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
}

.benefit-item { background: #fff; padding: 14px 16px; }
.benefit-item dt { font-size: 12px; color: var(--muted); }
.benefit-item dd { margin-top: 2px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }

.panel-note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* code rows */
.slot-group + .slot-group { margin-top: 24px; }

.slot-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.code-list { border-top: 0; }

.code-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}
.code-row:first-of-type { border-top: 0; padding-top: 6px; }

.row-index {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  text-align: center;
  letter-spacing: 0.02em;
}

.tag-op {
  display: grid;
  place-items: center;
  width: 28px;
  height: 24px;
  border: 1px solid #f0d3c7;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.code-main { min-width: 0; }

.code-value {
  display: block;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-value.is-url {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.code-meta {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-row.is-reported .code-value { color: var(--muted-2); text-decoration: line-through; }

.row-actions { display: flex; align-items: center; gap: 4px; }
.row-actions.is-operator::after { content: ""; display: block; width: 52px; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #000; }
.btn.small { height: 34px; padding: 0 12px; font-size: 13px; }
.btn.copied { border-color: var(--ok); color: var(--ok); background: #f4fbf7; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.link-button {
  width: 52px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted-2);
  font-size: 12.5px;
  text-align: center;
}
.link-button:hover { color: var(--accent); background: var(--accent-soft); }

/* list toolbar */
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.mode-chip {
  padding: 3px 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}

.list-empty {
  padding: 28px 0 12px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

/* form */
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: var(--gap);
}

.field { display: block; min-width: 0; }

.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.field-label .optional { font-weight: 400; color: var(--muted-2); }

.input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  font-size: 14.5px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.input.is-mono { font-family: var(--mono); letter-spacing: 0.04em; }
.input::placeholder { color: var(--muted-2); letter-spacing: 0; font-family: inherit; }
.input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 22, 26, 0.08);
}
.input[aria-invalid="true"] { border-color: var(--accent); }

.field-hint { margin-top: 6px; font-size: 11.5px; color: var(--muted); }

.field-error {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #f0d3c7;
  border-radius: 8px;
  background: var(--accent-soft);
  color: #8f2f14;
  font-size: 12.5px;
}
.field-error.show { display: block; }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.form-note { font-size: 12px; color: var(--muted); }
.form-note b { font-weight: 600; color: var(--ink-soft); }

/* guide */
.guide-deadline {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--accent-soft);
  font-size: 13px;
  line-height: 1.6;
  color: #7a2a12;
  word-break: keep-all;
}

.step {
  border-top: 1px solid var(--line-soft);
}
.step:first-of-type { border-top: 0; }

.step summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
}
.step summary::-webkit-details-marker { display: none; }

.step-title {
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step-plus {
  flex: 0 0 auto;
  position: relative;
  width: 12px;
  height: 12px;
  color: var(--muted);
}
.step-plus::before, .step-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 1px;
  background: currentColor;
}
.step-plus::after { transform: rotate(90deg); transition: transform 140ms ease; }
.step[open] .step-plus::after { transform: rotate(0deg); }
.step[open] .step-plus { color: var(--ink); }

.step-body {
  padding: 0 24px 16px 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  word-break: keep-all;
}

.checklist { display: grid; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
}
.check input {
  appearance: none;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after {
  content: "";
  display: block;
  width: 4px;
  height: 8px;
  margin: 1px auto 0;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(42deg);
}
.check input:checked + span { color: var(--muted-2); text-decoration: line-through; }

/* referral tools + Oregon browser */
.referral-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.referral-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--surface);
}
.referral-card strong { font-size: 14px; }
.referral-card .panel-note { margin-top: 4px; }
.referral-action { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.referral-action .input { min-width: 0; height: 36px; font-size: 12px; }
.referral-action .btn { flex: 0 0 auto; }

.browser-panel { overflow: hidden; }
.browser-warning { margin-top: -8px; margin-bottom: 16px; }
.browser-status { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.browser-status.is-ok { color: var(--ok); }
.browser-status.is-warn { color: #b45309; }
.browser-status.is-down { color: var(--accent); }
/* 터널이 끊긴 뒤 재연결 안내 — 주소가 바뀐 상황을 화면 하나로 알린다 */
.browser-notice { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; margin: 0 0 16px; padding: 14px 16px; border: 1px solid #fecaca; border-radius: 10px; background: #fef2f2; }
.browser-notice[hidden] { display: none; }
.browser-notice.is-warn { border-color: #fde68a; background: #fffbeb; }
.browser-notice-title { display: block; font-size: 13px; }
.browser-notice-text { margin-top: 4px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.browser-notice-meta { margin-top: 6px; font-size: 11px; font-family: var(--mono); color: #b45309; }
.browser-notice-meta[hidden] { display: none; }
.browser-notice-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.browser-frame.is-down, .browser-placeholder.is-down { opacity: .25; pointer-events: none; }
.browser-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 20px; align-items: start; }
.browser-frame { display: block; width: 100%; min-height: 360px; border: 1px solid var(--line); border-radius: 8px; background: #111; }
.browser-actions { display: flex; gap: 8px; margin-top: 10px; }
.browser-guide { padding: 18px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); }
.browser-guide h3 { font-size: 15px; }
.browser-guide ol { display: grid; gap: 14px; margin-top: 16px; counter-reset: browser-step; }
.browser-guide li { display: grid; gap: 2px; padding-left: 24px; position: relative; }
.browser-guide li::before { counter-increment: browser-step; content: counter(browser-step, decimal-leading-zero); position: absolute; left: 0; top: 1px; color: var(--accent); font-family: var(--mono); font-size: 11px; }
.browser-guide li b { font-size: 13px; }
.browser-guide li span { font-size: 12px; line-height: 1.55; color: var(--muted); }
.browser-code-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.browser-code-action .code-value { font-size: 13px; }

.bf-expiry, .bf-updated { margin-top: 10px; font-size: 12px; color: var(--accent); }
.bf-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.bf-card .panel-note { margin-top: 0; }
.bf-card .btn { align-self: flex-start; margin-top: auto; }
.bf-notes { margin-top: 56px; padding-bottom: 80px; }

/* disclaimer */
.disclaimer {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.disclaimer h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.disclaimer p {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  word-break: keep-all;
}

/* sidebar */
.side { display: grid; gap: var(--gap); }
.side .panel { position: sticky; top: 88px; }

.fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.fact:last-of-type { border-bottom: 0; }
.fact dt { flex: 0 0 auto; font-size: 12.5px; color: var(--muted); }
.fact dd { font-size: 12.5px; font-weight: 600; text-align: right; color: var(--ink-soft); word-break: keep-all; }

.side-actions { display: grid; gap: 8px; margin-top: 16px; }
.side-actions .btn { width: 100%; }

.side-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted-2);
  word-break: keep-all;
}

/* --------------------------------------------------------------------------
   Empty page
   -------------------------------------------------------------------------- */

.empty-page { padding: 96px 0 120px; max-width: 560px; }
.empty-page .btn { margin-top: 24px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: grid;
  gap: 12px;
  padding-top: 32px;
  padding-bottom: 56px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-domain {
  padding-left: 8px;
  border-left: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted-2);
}

.footer-note {
  max-width: 640px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  word-break: keep-all;
}

.footer-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   Dialog + toast
   -------------------------------------------------------------------------- */

.rules-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(20, 22, 26, 0.18);
}
.rules-dialog::backdrop { background: rgba(20, 22, 26, 0.4); }

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }

.icon-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 14px;
}
.icon-button:hover { border-color: var(--line); color: var(--ink); }

.dialog-body { display: grid; gap: 20px; padding: 24px; }

.rule h3 { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.rule p { margin-top: 6px; font-size: 13px; line-height: 1.7; color: var(--muted); word-break: keep-all; }

.dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0 0 14px 14px;
}
.muted-small { font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.dialog-foot .muted-small { max-width: 360px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 12px 32px rgba(20, 22, 26, 0.24);
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .side .panel { position: static; }
  .detail-head { grid-template-columns: 56px minmax(0, 1fr); }
  .detail-head .mark { width: 56px; height: 56px; }
  .detail-actions { grid-column: 1 / -1; padding-top: 0; }
}

@media (max-width: 760px) {
  :root { --pad: 20px; }
  .brand-domain { display: none; }
  .header-inner { height: 60px; }
  .hero { padding: 48px 0 32px; }
  .hero-title { font-size: clamp(30px, 8vw, 38px); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 12px; }
  .stat dt { font-size: 10.5px; }
  .stat dd { font-size: 19px; }
  .stat dd.stat-date { font-size: 14px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .howto { margin-top: 56px; padding-top: 32px; }
  .howto-list { grid-template-columns: minmax(0, 1fr); }
  .toolbar { align-items: flex-end; }
  .toolbar-note { display: none; }
  .search-field { flex: 1 1 140px; }
  .referral-grid { grid-template-columns: minmax(0, 1fr); }
  .browser-layout { grid-template-columns: minmax(0, 1fr); }
  .browser-frame { min-height: 300px; }
  .browser-notice { grid-template-columns: minmax(0, 1fr); }
  .browser-notice-actions { justify-content: flex-start; }
  .browser-panel .panel-head { display: grid; gap: 4px; align-items: start; }
  .browser-panel .panel-title { word-break: keep-all; }
  .detail-grid { padding-bottom: 56px; }
  .benefit-list { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { width: 100%; }
  .code-row { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; }
  .btn.small { padding: 0 10px; }
  .link-button { padding: 0 6px; }
  .footer-inner { padding-bottom: 40px; }
  .dialog-foot { flex-direction: column; align-items: stretch; }
  .dialog-foot .muted-small { max-width: none; }
}

@media (max-width: 420px) {
  .site-nav { gap: 16px; font-size: 13px; }
  .step-body { padding-right: 0; }
  .code-value { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .card:hover { transform: none; }
}

/* ==========================================================================
   1칸 등록 · 실시간 보드 · SEO 페이지 (2026-11-26)
   ========================================================================== */

.hero-intro { display: grid; gap: 10px; margin-top: 14px; }
.hero-intro .hero-lead { margin: 0; }

.quick-register {
  margin: 28px 0 8px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(20, 22, 26, 0.04);
}
.quick-row { display: flex; gap: 8px; }
.quick-row .input { height: 48px; font-size: 15px; flex: 1 1 auto; }
.quick-row .btn { height: 48px; padding: 0 22px; font-size: 14px; }
.quick-status { min-height: 18px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.quick-status.is-ok { color: var(--ok); }
.quick-status.is-warn { color: var(--accent); }
.quick-hint { margin-top: 2px; font-size: 11.5px; line-height: 1.6; color: var(--muted-2); }

.quick-result {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  display: grid;
  gap: 12px;
}
.quick-result[hidden] { display: none; }
.quick-result-head { display: flex; align-items: center; gap: 12px; }
.quick-result-head strong { font-size: 14.5px; letter-spacing: -0.01em; }
.quick-result-note { margin-top: 2px; font-size: 12px; color: var(--muted); }
.quick-result-code { display: flex; align-items: center; gap: 10px; }
.quick-result-code .code-value { font-size: 16px; }
.quick-result-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.mark.small {
  width: 30px; height: 30px; border-radius: 8px;
  font-size: 10.5px; display: inline-flex; align-items: center; justify-content: center;
}

.live-board { margin: 40px 0 8px; }
.live-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.live-meta { font-size: 12px; color: var(--muted); }
.live-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.live-item + .live-item { border-top: 1px solid var(--line-soft); }
.live-empty { padding: 22px; font-size: 13px; color: var(--muted); }
.live-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.live-main { min-width: 0; flex: 1 1 auto; display: grid; gap: 3px; }
.live-top { display: flex; align-items: baseline; gap: 8px; }
.live-service { font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; }
.live-service:hover { color: var(--accent); }
.live-ago { font-size: 11px; color: var(--muted-2); }
.live-code {
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.04em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.live-code.is-url { font-size: 12.5px; color: var(--ink-soft); }
.live-side { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.live-copies { font-size: 11.5px; color: var(--muted); white-space: nowrap; }

.crumbs { margin: 24px 0 8px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumb-sep { color: var(--line-strong); }

.seo-head { padding: 16px 0 28px; max-width: 780px; }
.seo-head .hero-title { margin-top: 10px; }
.seo-head .hero-lead { margin-top: 12px; }
.seo-actions { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }

.seo-block { padding: 32px 0; border-top: 1px solid var(--line); max-width: 820px; }
.seo-block h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.seo-block p { font-size: 14.5px; line-height: 1.8; color: var(--ink-soft); margin-bottom: 10px; word-break: keep-all; }
.seo-list { display: grid; gap: 8px; margin: 8px 0 0; }
.seo-list li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.75; color: var(--ink-soft); word-break: keep-all; }
.seo-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.seo-steps { display: grid; gap: 16px; counter-reset: seo-step; }
.seo-steps li { display: grid; gap: 4px; padding-left: 34px; position: relative; }
.seo-steps li::before { counter-increment: seo-step; content: counter(seo-step, decimal-leading-zero); position: absolute; left: 0; top: 1px; font-family: var(--mono); font-size: 11px; color: var(--accent); }
.seo-steps b { font-size: 14px; }
.seo-steps span { font-size: 13.5px; line-height: 1.75; color: var(--muted); word-break: keep-all; }

.faq-list { display: grid; gap: 10px; }
.faq { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #fff; }
.faq summary { cursor: pointer; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.faq p { margin-top: 10px; margin-bottom: 0; font-size: 13.5px; }

.related-list { display: flex; flex-wrap: wrap; gap: 8px; }
.related-list a {
  display: inline-block; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 12.5px; color: var(--ink-soft);
}
.related-list a:hover { border-color: var(--ink); color: var(--ink); }

.article { padding-bottom: 64px; }
.seo-cta { margin-top: 8px; padding: 28px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); }
.seo-cta h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.seo-cta p { margin: 8px 0 16px; font-size: 13.5px; color: var(--muted); word-break: keep-all; }

.footer-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 4px; }
.footer-links a { font-size: 11.5px; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

.browser-placeholder { display: grid; gap: 12px; min-height: 200px; align-content: center; padding: 24px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--surface); }
.browser-placeholder .btn { justify-self: start; }

.panel-note.is-empty { margin-top: 0; }

@media (max-width: 760px) {
  .quick-row { flex-direction: column; }
  .quick-row .btn { width: 100%; }
  .live-row { flex-wrap: wrap; }
  .live-side { width: 100%; justify-content: space-between; }
}

@media (max-width: 760px) {
  .site-nav { gap: 14px; flex-wrap: nowrap; }
  .site-nav a[data-nav="guide"] { display: none; }
  .brand-domain { display: none; }
}
