/* =============================================================
   TaksongPro — design system
   Palette : asphalt / steel / paper / signal(orange) / lock(green)
   Type    : Pretendard (UI) + JetBrains Mono (instrument readouts)
   ============================================================= */

:root {
  --asphalt: #10141c;
  --asphalt-2: #171d28;
  --steel: #232c3b;
  --steel-line: #2f3a4b;

  --paper: #edeff2;
  --card: #ffffff;
  --line: #e0e4ea;
  --line-soft: #eef0f4;

  --ink: #151a21;
  --ink-2: #3d4757;
  --muted: #6b7684;
  --faint: #98a1ae;

  --signal: #ff5a00;
  --signal-dark: #e04e00;
  --signal-soft: #fff1e9;

  --lock: #00b96b;
  --lock-soft: #e6f8f0;

  --danger: #e5484d;
  --danger-soft: #fdeced;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(16, 20, 28, .06);
  --shadow-md: 0 6px 24px -8px rgba(16, 20, 28, .16);
  --shadow-lg: 0 24px 60px -20px rgba(16, 20, 28, .3);

  --wrap: 1140px;
  --nav-h: 66px;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
               "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.28; letter-spacing: -0.035em; font-weight: 800; }
p { margin: 0; }

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

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}

.band { padding: 84px 0; }
.band--tight { padding: 56px 0; }
.band--paper { background: var(--paper); }
.band--card { background: var(--card); }
.band--dark { background: var(--asphalt); color: #fff; }

/* eyebrow: a small instrument-style label */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signal);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--signal);
}
.eyebrow--muted { color: var(--faint); }
.eyebrow--muted::before { background: var(--faint); }

.band-title {
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  margin-bottom: 12px;
}
.band-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 58ch;
}
.band--dark .band-sub { color: #96a1b2; }

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(16, 20, 28, .93);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.nav__in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.brand em {
  font-style: normal;
  color: var(--signal);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 8px;
}
.nav__links a {
  font-size: 14.5px;
  font-weight: 600;
  color: #b3bcc9;
  transition: color .15s;
}
.nav__links a:hover { color: #fff; }
.nav__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__user {
  font-size: 13.5px;
  color: #8b95a4;
  font-weight: 500;
}
.nav__user b { color: #fff; font-weight: 700; }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.nav__toggle span {
  display: block;
  width: 17px;
  height: 1.8px;
  background: #fff;
  margin: 3.5px auto;
  border-radius: 2px;
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  cursor: pointer;
  transition: transform .12s ease, background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--signal {
  background: var(--signal);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(255, 90, 0, .8);
}
.btn--signal:hover { background: var(--signal-dark); }

.btn--ghost {
  background: transparent;
  color: #d5dbe3;
  border-color: rgba(255, 255, 255, .2);
}
.btn--ghost:hover { border-color: #fff; color: #fff; }

.btn--dark {
  background: var(--asphalt);
  color: #fff;
}
.btn--dark:hover { background: var(--steel); }

.btn--line {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
.btn--line:hover { border-color: var(--ink); }

.btn--sm { padding: 9px 15px; font-size: 13.5px; border-radius: 8px; }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 30px; font-size: 16px; }

.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* =============================================================
   HERO  — the signature: a live dispatch capture
   ============================================================= */
.hero {
  background: var(--asphalt);
  color: #fff;
  padding: 74px 0 90px;
  position: relative;
  overflow: hidden;
}
/* faint lane markings, the only ambient decoration */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    transparent 0 58px,
    rgba(255, 255, 255, .022) 58px 60px
  );
  pointer-events: none;
}
.hero__in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.05rem, 4.7vw, 3.3rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 .hl {
  color: var(--signal);
}
.hero__lead {
  font-size: 17px;
  line-height: 1.75;
  color: #a4aebc;
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__note {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  color: #6b7688;
  letter-spacing: .02em;
}

/* ---- the capture console ---- */
.console {
  background: var(--asphalt-2);
  border: 1px solid var(--steel-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.console__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid var(--steel-line);
}
.console__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lock);
  box-shadow: 0 0 0 0 rgba(0, 185, 107, .55);
  animation: pulse 1.9s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 185, 107, .5); }
  70%  { box-shadow: 0 0 0 7px rgba(0, 185, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 185, 107, 0); }
}
.console__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: #7d8899;
  text-transform: uppercase;
}
.console__clock {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.console__body { padding: 16px; min-height: 274px; }

/* order card that arrives on the feed */
.order {
  background: var(--steel);
  border: 1px solid var(--steel-line);
  border-radius: var(--r-md);
  padding: 14px 15px;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(-9px);
  animation: drop .32s ease forwards;
  position: relative;
}
@keyframes drop {
  to { opacity: 1; transform: translateY(0); }
}
.order--won {
  border-color: rgba(0, 185, 107, .55);
  background: linear-gradient(180deg, rgba(0, 185, 107, .12), rgba(0, 185, 107, .03));
}
.order__route {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 700;
  color: #eef2f7;
  margin-bottom: 9px;
  letter-spacing: -0.02em;
}
.order__arrow { color: var(--signal); font-size: 13px; }
.order__meta {
  display: flex;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #8b96a6;
  font-variant-numeric: tabular-nums;
}
.order__meta b { color: #cfd7e1; font-weight: 600; }

.order__stamp {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%) scale(.82);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--lock);
  color: #06251a;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  opacity: 0;
  animation: stamp .26s cubic-bezier(.2, 1.5, .4, 1) forwards;
}
@keyframes stamp {
  to { opacity: 1; transform: translateY(-50%) scale(1); }
}

.console__foot {
  border-top: 1px solid var(--steel-line);
  padding: 12px 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: rgba(0, 0, 0, .18);
}
.console__foot .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #6b7688;
}
.console__foot .v {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--lock);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

@media (prefers-reduced-motion: reduce) {
  .order, .order__stamp { animation: none; opacity: 1; transform: none; }
  .order__stamp { transform: translateY(-50%); }
  .console__dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* =============================================================
   PLATFORM STRIP
   ============================================================= */
.strip {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.strip__in {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.strip__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--paper);
}
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lock);
}
.chip--soon { color: var(--faint); }
.chip--soon::before { background: var(--faint); }

/* =============================================================
   FEATURES
   ============================================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}
.feat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px 28px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.feat:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feat__ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--signal-soft);
  color: var(--signal);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feat h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.feat p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* =============================================================
   CTA BANNER
   ============================================================= */
.cta {
  background: var(--asphalt);
  color: #fff;
  border-radius: 22px;
  padding: 52px 46px;
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}
.cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 8px;
}
.cta p { color: #96a1b2; font-size: 15.5px; }
.cta__act { margin-left: auto; display: flex; gap: 12px; }

/* =============================================================
   FOOTER
   ============================================================= */
.foot {
  background: var(--asphalt);
  color: #7d8899;
  padding: 40px 0 46px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 13.5px;
}
.foot__in {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.foot a { color: #9aa5b3; }
.foot a:hover { color: #fff; }
.foot__links { margin-left: auto; display: flex; gap: 18px; }

/* =============================================================
   AUTH PAGES
   ============================================================= */
.auth {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: 52px 22px 72px;
}
.auth__box {
  width: 100%;
  max-width: 452px;
}
.auth__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 38px 34px 34px;
}
.auth__head { margin-bottom: 26px; }
.auth__head h1 {
  font-size: 25px;
  margin-bottom: 7px;
}
.auth__head p {
  font-size: 14.5px;
  color: var(--muted);
}
.auth__alt {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
.auth__alt a {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1.5px solid var(--signal);
  padding-bottom: 1px;
}

/* =============================================================
   FORMS
   ============================================================= */
.field { margin-bottom: 17px; }
.field:last-of-type { margin-bottom: 0; }

.label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}
.label .req { color: var(--signal); margin-left: 2px; }
.label .opt {
  color: var(--faint);
  font-weight: 500;
  font-size: 12.5px;
  margin-left: 4px;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfd;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.input::placeholder { color: #b3bbc6; }
.input:focus {
  outline: none;
  background: #fff;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(255, 90, 0, .12);
}
.input.is-bad {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.hint {
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 6px;
  line-height: 1.6;
}
.err {
  font-size: 12.5px;
  color: var(--danger);
  margin-top: 6px;
  font-weight: 600;
}

.form-actions { margin-top: 26px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
  cursor: pointer;
}
.check input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--signal);
  flex-shrink: 0;
  cursor: pointer;
}
.check a { text-decoration: underline; text-underline-offset: 2px; }

/* =============================================================
   ALERTS
   ============================================================= */
.alert {
  display: flex;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
  font-weight: 500;
  border: 1px solid transparent;
}
.alert__ico { flex-shrink: 0; margin-top: 1px; }
.alert--ok    { background: var(--lock-soft);   color: #046b42; border-color: #b8ead3; }
.alert--error { background: var(--danger-soft); color: #a51c22; border-color: #f6c9cb; }
.alert--info  { background: var(--signal-soft); color: #a03700; border-color: #ffd6bd; }

/* =============================================================
   NOTICE PAGE  (verify sent / verify result)
   ============================================================= */
.notice {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: 52px 22px 72px;
}
.notice__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 44px 38px 38px;
  max-width: 470px;
  width: 100%;
  text-align: center;
}
.notice__ico {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}
.notice__ico--ok   { background: var(--lock-soft);   color: var(--lock); }
.notice__ico--wait { background: var(--signal-soft); color: var(--signal); }
.notice__ico--bad  { background: var(--danger-soft); color: var(--danger); }
.notice__card h1 { font-size: 23px; margin-bottom: 11px; }
.notice__card p {
  font-size: 14.8px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 8px;
}
.notice__card p strong { color: var(--ink); font-weight: 700; }
.notice__act {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.inline-form { display: inline; }
.linkbtn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1.5px solid var(--signal);
  cursor: pointer;
}

/* =============================================================
   MYPAGE
   ============================================================= */
.page-head {
  padding: 44px 0 26px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.page-head h1 { font-size: 27px; margin-bottom: 6px; }
.page-head p { color: var(--muted); font-size: 15px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  margin-top: 26px;
}
.panel h2 {
  font-size: 17px;
  margin-bottom: 18px;
}
.dl {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 0;
  font-size: 14.5px;
}
.dl dt {
  color: var(--faint);
  font-weight: 600;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.dl dd {
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-weight: 500;
}
.dl dt:last-of-type, .dl dd:last-of-type { border-bottom: none; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.badge--ok   { background: var(--lock-soft);   color: #046b42; }
.badge--wait { background: var(--signal-soft); color: #a03700; }
.badge--bad  { background: var(--danger-soft); color: #a51c22; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 980px) {
  .hero__in { grid-template-columns: 1fr; gap: 44px; }
  .console { max-width: 440px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__links,
  .nav__user { display: none; }
  .nav__toggle { display: block; }
  .nav__right { margin-left: 0; }

  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: var(--asphalt);
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    padding: 6px 22px 16px;
  }
  .nav.is-open .nav__links a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    font-size: 15px;
  }

  .band { padding: 58px 0; }
  .hero { padding: 52px 0 64px; }
  .grid-3 { grid-template-columns: 1fr; }
  .cta { padding: 36px 26px; }
  .cta__act { margin-left: 0; width: 100%; }
  .cta__act .btn { flex: 1; }
  .foot__in { flex-direction: column; align-items: flex-start; gap: 14px; }
  .foot__links { margin-left: 0; flex-wrap: wrap; }
  .auth__card { padding: 30px 24px 28px; }
  .notice__card { padding: 36px 24px 30px; }
  .dl { grid-template-columns: 1fr; }
  .dl dt { padding-bottom: 0; border-bottom: none; }
  .dl dd { padding-top: 3px; }
}

@media (max-width: 420px) {
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}

/* =============================================================
   STEP 2 — 1:1 INQUIRIES
   ============================================================= */

.page-head__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.backlink {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color .15s;
}
.backlink:hover { color: var(--ink); }

.panel__note {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--faint);
  margin-left: 8px;
  letter-spacing: -0.005em;
}

.textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.7;
  font-size: 15px;
}

.badge--off { background: #eceff3; color: #6b7684; }

/* ---------- empty state ---------- */
.empty {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 58px 30px 62px;
  text-align: center;
}
.empty__ico {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--faint);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.empty h2 { font-size: 19px; margin-bottom: 9px; }
.empty p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 42ch;
  margin: 0 auto;
}

/* ---------- inquiry list ---------- */
.inq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
}
.inq-list li + li { border-top: 1px solid var(--line-soft); }

.inq {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  transition: background .14s;
}
.inq:hover { background: #fafbfc; }
.inq__main { min-width: 0; flex: 1; }

.inq__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.inq__author {
  font-size: 12.5px;
  color: var(--faint);
  font-weight: 600;
}
.inq__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
  letter-spacing: -0.025em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inq__excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inq__side {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding-top: 2px;
}
.inq__clip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--paper);
  border-radius: 999px;
  padding: 4px 9px;
}
.inq__date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* ---------- pager ---------- */
.pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 26px;
}
.pager__n {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color .14s, color .14s;
}
.pager__n:hover { border-color: var(--ink); }
.pager__n.is-on {
  background: var(--asphalt);
  border-color: var(--asphalt);
  color: #fff;
}

/* ---------- thread ---------- */
.thread { display: flex; flex-direction: column; gap: 14px; }

.msg {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px 24px;
}
.msg--admin {
  border-color: rgba(255, 90, 0, .35);
  background: linear-gradient(180deg, #fffaf7, var(--card) 42%);
}
.msg__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.msg__who {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
}
.msg__tag {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--signal);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: -0.01em;
}
.msg__when {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.msg__body {
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink-2);
  word-break: break-word;
}

/* ---------- attachments ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
  margin-top: 18px;
}
.shot {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color .15s, transform .15s;
}
.shot:hover { border-color: var(--signal); transform: scale(1.02); }
.shot img { width: 100%; height: 100%; object-fit: cover; }

.attach {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.attach__row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfd;
  transition: border-color .14s, background .14s;
}
.attach__row:hover { border-color: var(--ink); background: var(--card); }
.attach__kind {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--signal);
  background: var(--signal-soft);
  padding: 4px 7px;
  border-radius: 5px;
  flex-shrink: 0;
}
.attach__name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.attach__size {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  flex-shrink: 0;
}

/* ---------- dropzone ---------- */
.drop {
  position: relative;
  border: 1.8px dashed var(--line);
  border-radius: var(--r-md);
  background: #fbfcfd;
  transition: border-color .15s, background .15s;
}
.drop:hover,
.drop.is-over {
  border-color: var(--signal);
  background: var(--signal-soft);
}
.drop__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.drop__inner {
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  pointer-events: none;
}
.drop--slim .drop__inner { padding: 18px 16px; }
.drop__inner svg { color: var(--faint); margin: 0 auto 10px; }
.drop__lead { font-size: 14px; line-height: 1.6; }
.drop__lead b { color: var(--ink); font-weight: 700; }
.drop__hint {
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 4px;
}

/* ---------- selected files ---------- */
.filelist {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fileitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px 9px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  font-size: 13.5px;
}
.fileitem.is-bad {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.fileitem__name {
  font-weight: 600;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.fileitem__size {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  flex-shrink: 0;
}
.fileitem.is-bad .fileitem__size { color: var(--danger); font-weight: 700; }
.fileitem__x {
  width: 24px;
  height: 24px;
  border: none;
  background: var(--paper);
  border-radius: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .13s, color .13s;
}
.fileitem__x:hover { background: var(--danger-soft); color: var(--danger); }

.filelist__sum {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}
.filelist__sum.is-bad { color: var(--danger); font-weight: 700; }

@media (max-width: 760px) {
  .inq { padding: 17px 18px; gap: 12px; }
  .inq__side { flex-direction: column; align-items: flex-end; gap: 7px; }
  .msg { padding: 18px 18px 20px; }
  .page-head__row { align-items: flex-start; }
  .shots { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
}

/* =============================================================
   STEP 3 — TUTORIALS · Q&A · ADMIN
   ============================================================= */

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn--danger {
  background: var(--card);
  color: var(--danger);
  border-color: #f3ccce;
}
.btn--danger:hover { background: var(--danger-soft); border-color: var(--danger); }

/* ---------- chips ---------- */
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0 6px;
}
.chip--link {
  cursor: pointer;
  transition: border-color .14s, background .14s, color .14s;
}
.chip--link::before { display: none; }
.chip--link:hover { border-color: var(--ink); }
.chip--link.is-on {
  background: var(--asphalt);
  border-color: var(--asphalt);
  color: #fff;
}
.chip__n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  margin-left: 3px;
}
.chip--link.is-on .chip__n { color: #8b95a4; }

/* ---------- search ---------- */
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 6px 8px 6px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(255, 90, 0, .12);
}
.search__ico { color: var(--faint); flex-shrink: 0; }
.search__in {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 8px 0;
  min-width: 0;
}
.search__in::placeholder { color: #b3bbc6; }

/* ---------- tutorials ---------- */
.vidsec { margin-top: 34px; }
.vidsec__h {
  font-size: 19px;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.vidsec__foot {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
  text-align: center;
}
.vidsec__foot a {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1.5px solid var(--signal);
}

.vids {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 18px;
}
.vid {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
.vid:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.vid__play {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: none;
  background: var(--asphalt);
  cursor: pointer;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.vid__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* YouTube hqdefault is 4:3 with letterbox bars — crop them off */
  transform: scale(1.36);
}
.vid__mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 20, 28, .05), rgba(16, 20, 28, .45));
  transition: background .16s;
}
.vid__play:hover .vid__mask { background: rgba(16, 20, 28, .3); }

.vid__btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--signal);
  color: #fff;
  display: grid;
  place-items: center;
  padding-left: 2px;
  box-shadow: 0 6px 20px -6px rgba(16, 20, 28, .6);
  transition: transform .16s;
}
.vid__play:hover .vid__btn { transform: translate(-50%, -50%) scale(1.09); }

.vid__time {
  position: absolute;
  right: 9px;
  bottom: 9px;
  background: rgba(16, 20, 28, .86);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
}

.vid__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  background: #000;
}

.vid__meta { padding: 16px 17px 18px; }
.vid__title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 6px;
}
.vid__desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Q&A ---------- */
.qna {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
}
.qa { position: relative; }
.qa + .qa { border-top: 1px solid var(--line-soft); }

.qa__q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 19px 22px;
  cursor: pointer;
  list-style: none;
  transition: background .14s;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__q:hover { background: #fafbfc; }

.qa__mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.qa__mark--a {
  background: var(--signal-soft);
  color: var(--signal);
}
.qa__text {
  flex: 1;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: -0.02em;
  min-width: 0;
}
.qa__pin {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--signal);
  padding: 2px 7px;
  border-radius: 5px;
  margin-right: 7px;
  vertical-align: 2px;
}
.qa__cat {
  font-size: 12px;
  color: var(--faint);
  font-weight: 600;
  flex-shrink: 0;
  padding-top: 3px;
}
.qa__chev {
  color: var(--faint);
  flex-shrink: 0;
  margin-top: 5px;
  transition: transform .2s;
}
details[open] .qa__chev { transform: rotate(180deg); }

.qa__a {
  display: flex;
  gap: 12px;
  padding: 4px 22px 24px 22px;
}
.qa__body {
  flex: 1;
  font-size: 14.8px;
  line-height: 1.8;
  color: var(--ink-2);
  padding-top: 2px;
  word-break: break-word;
}
.qa__edit {
  position: absolute;
  top: 19px;
  right: 22px;
  font-size: 12px;
  font-weight: 700;
  color: var(--faint);
  background: var(--paper);
  padding: 3px 9px;
  border-radius: 6px;
  z-index: 1;
}
.qa__edit:hover { color: var(--signal); background: var(--signal-soft); }

/* ---------- admin tabs ---------- */
.atabs {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.atabs__in {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
.atab {
  padding: 15px 16px 13px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color .14s, border-color .14s;
}
.atab:hover { color: var(--ink); }
.atab.is-on {
  color: var(--ink);
  border-bottom-color: var(--signal);
}
.atab__n {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--signal);
  border-radius: 999px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}

/* ---------- admin stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 19px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color .14s, transform .14s;
}
a.stat:hover { border-color: var(--ink); transform: translateY(-2px); }
.stat--alert { border-color: var(--signal); background: var(--signal-soft); }

.stat__k {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.stat__v {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.stat--alert .stat__v { color: var(--signal); }
.stat__s {
  font-size: 12px;
  color: var(--faint);
}

/* ---------- admin rows ---------- */
.arows {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
}
.arow {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
}
.arow + .arow { border-top: 1px solid var(--line-soft); }
.arow.is-hidden { background: #fafbfc; opacity: .68; }

.arow__thumb {
  width: 112px;
  height: 63px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--paper);
  flex-shrink: 0;
}
.arow__main { flex: 1; min-width: 0; }
.arow__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.arow__ord {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}
.arow__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.arow__sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.arow__link {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}
.arow__link:hover { color: var(--signal); }

.arow__act {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.iconbtn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
  transition: border-color .13s, color .13s, background .13s;
}
.iconbtn:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--paper);
}

/* ---------- youtube preview in admin form ---------- */
.ytpreview {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid var(--lock);
  background: var(--lock-soft);
  border-radius: 10px;
}
.ytpreview__img {
  width: 96px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--asphalt);
  flex-shrink: 0;
}
.ytpreview__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ytpreview__ok {
  font-size: 13px;
  font-weight: 700;
  color: #046b42;
}
.ytpreview__id {
  font-family: var(--mono);
  font-size: 11.5px;
  color: #35785d;
}

@media (max-width: 980px) {
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .grid2 { grid-template-columns: 1fr; }
  .vids { grid-template-columns: 1fr; }
  .qa__q { padding: 16px 16px; gap: 10px; }
  .qa__cat { display: none; }
  .qa__a { padding: 2px 16px 20px; }
  .qa__edit { top: auto; bottom: 10px; right: 16px; }

  .arow { flex-wrap: wrap; padding: 14px 15px; }
  .arow__thumb { width: 84px; height: 47px; }
  .arow__main { flex: 1 1 auto; }
  .arow__act { width: 100%; justify-content: flex-end; padding-top: 4px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 15px 15px 16px; }
  .stat__v { font-size: 25px; }
}

/* =============================================================
   STEP 4 — MEMBER ADMIN · PASSWORD RESET
   ============================================================= */

.auth__minor {
  text-align: center;
  margin-top: 16px;
  font-size: 13.5px;
}
.auth__minor a {
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color .14s, border-color .14s;
}
.auth__minor a:hover { color: var(--ink); border-color: var(--signal); }

.atab__n--soft {
  background: var(--paper);
  color: var(--muted);
}

.filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sortpick {
  display: flex;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 3px;
  margin-top: 20px;
}
.sortpick__o {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  transition: background .13s, color .13s;
}
.sortpick__o:hover { color: var(--ink); }
.sortpick__o.is-on { background: var(--asphalt); color: #fff; }

/* ---------- member table ---------- */
.tablewrap {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  overflow-x: auto;
}
.mtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 760px;
}
.mtable th {
  text-align: left;
  padding: 13px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--faint);
  letter-spacing: .01em;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.mtable td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.mtable tbody tr:last-child td { border-bottom: none; }
.mtable tbody tr:hover { background: #fafbfc; }
.mtable tbody tr.is-blocked { background: #fefbfb; }
.mtable tbody tr.is-blocked:hover { background: #fdf6f6; }

.mtable .ta-c { text-align: center; }
.mtable .ta-r { text-align: right; white-space: nowrap; }
.mtable .mono {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mname {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.mname:hover { color: var(--signal); }
.mmail {
  display: block;
  font-size: 12.5px;
  color: var(--faint);
}
.mnote {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  padding-left: 8px;
  border-left: 2px solid var(--line);
  line-height: 1.5;
}

.tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted);
  margin-left: 4px;
  vertical-align: 1px;
  letter-spacing: -0.01em;
}
.tag--adm { background: var(--signal); color: #fff; }

/* ---------- member actions ---------- */
.acts { display: flex; flex-direction: column; gap: 2px; }
.act {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}
.act:last-child { border-bottom: none; padding-bottom: 0; }
.act:first-child { padding-top: 0; }

.act__t { min-width: 0; }
.act__t b {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.act__t span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.act .btn { flex-shrink: 0; }

.panel--danger { border-color: #f1cdcf; }
.panel--danger h2 { color: var(--danger); }

.pwbox {
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #fff;
  background: var(--asphalt);
  border-radius: 11px;
  padding: 19px;
  text-align: center;
  user-select: all;
}

@media (max-width: 760px) {
  .filterbar { flex-direction: column; align-items: stretch; }
  .sortpick { margin-top: 10px; overflow-x: auto; }
  .act { flex-direction: column; align-items: flex-start; gap: 10px; }
  .act .btn { width: 100%; }
  .pwbox { font-size: 20px; letter-spacing: .08em; padding: 16px; }
}

/* =============================================================
   STEP 5 — DESIGN SETTINGS SCREEN
   ============================================================= */

.mono-in {
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: .02em;
}

/* ---------- colour swatches ---------- */
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color .13s, transform .13s;
}
.swatch:hover { border-color: var(--ink); transform: translateY(-1px); }
.swatch.is-on { border-color: var(--sw); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sw) 18%, transparent); }
.swatch__dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--sw);
  flex-shrink: 0;
}
.swatch__n {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pickrow {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pickrow input[type=color] {
  width: 44px;
  height: 44px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  cursor: pointer;
  flex-shrink: 0;
}
.pickrow .input { max-width: 130px; }
.pickrow__hint {
  font-size: 12.5px;
  color: var(--faint);
}

/* ---------- live preview ---------- */
.prev {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.prev__bar {
  padding: 8px 14px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--faint);
}
.prev__body {
  padding: 26px 24px 28px;
  background: var(--pv-dark, var(--asphalt));
}
.prev__eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pv-sig, var(--signal));
  margin-bottom: 10px;
}
.prev__h {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.035em;
  margin-bottom: 18px;
}
.prev__h b { color: var(--pv-sig, var(--signal)); font-weight: 900; }
.prev__row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.prev__btn {
  padding: 9px 17px;
  border-radius: 9px;
  background: var(--pv-sig, var(--signal));
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
}
.prev__ghost {
  padding: 9px 17px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.24);
  color: #d5dbe3;
  font-size: 13.5px;
  font-weight: 700;
}
.prev__badge {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--pv-lock, var(--lock));
  color: #06251a;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  margin-left: auto;
}

/* ---------- 3-part title input ---------- */
.tri {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
}
.tri__hl {
  max-width: 130px;
  text-align: center;
  font-weight: 700;
  color: var(--signal);
  border-color: var(--signal);
  background: var(--signal-soft);
}

/* ---------- feature card editor ---------- */
.cardbox {
  display: flex;
  gap: 13px;
  padding: 15px 0;
  border-top: 1px solid var(--line-soft);
}
.cardbox__n {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 8px;
}
.cardbox__f { flex: 1; min-width: 0; }

@media (max-width: 760px) {
  .tri { grid-template-columns: 1fr; }
  .tri__hl { max-width: none; }
  .swatches { grid-template-columns: 1fr 1fr; }
  .prev__badge { margin-left: 0; }
}

/* =============================================================
   CATEGORY PICKER  (replaces <datalist>, which was invisible)
   ============================================================= */

.catpick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}
.catchip {
  padding: 7px 13px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .13s, color .13s, background .13s;
}
.catchip:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.catchip.is-on {
  background: var(--asphalt);
  border-color: var(--asphalt);
  color: #fff;
}

/* =============================================================
   STEP 6 — INQUIRY CATEGORIES · REGION
   ============================================================= */

/* ---------- category badge (colour-coded so lists scan fast) ---------- */
.tbadge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.tbadge--1 { background: #eef2ff; color: #3730a3; }
.tbadge--2 { background: #ecfdf5; color: #065f46; }
.tbadge--3 { background: #fef3c7; color: #92400e; }
.tbadge--4 { background: #fee2e2; color: #991b1b; }
.tbadge--5 { background: #f1f5f9; color: #475569; }
.tbadge--6 { background: #fae8ff; color: #86198f; }

/* ---------- category picker on the inquiry form ---------- */
.types {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.type {
  position: relative;
  cursor: pointer;
}
.type input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.type__n {
  display: block;
  padding: 10px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  transition: border-color .13s, color .13s, background .13s, transform .13s;
}
.type:hover .type__n { border-color: var(--ink); color: var(--ink); }
.type input:checked + .type__n {
  background: var(--asphalt);
  border-color: var(--asphalt);
  color: #fff;
}
.type input:focus-visible + .type__n {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}

/* ---------- admin: category rows ---------- */
.panel.is-off { opacity: .62; background: #fafbfc; }

.tphead {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.tphead__n {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
}
.tphead__act {
  margin-left: auto;
  display: flex;
  gap: 5px;
}
.iconbtn--x:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-soft);
}

/* ---------- member table: region column ---------- */
.mregion {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 600;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .types { flex-direction: column; }
  .type__n { text-align: center; }
  .tphead__act { margin-left: 0; width: 100%; justify-content: flex-end; }
}

/* =============================================================
   STEP 7 — TUTORIAL CARD: clearer play affordance
   ============================================================= */

/* the thumbnail is a button — make that unmistakable */
.vid__play { cursor: pointer; }
.vid__play:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: -3px;
}
.vid__btn {
  width: 54px;
  height: 54px;
  box-shadow: 0 8px 24px -6px rgba(16, 20, 28, .75);
}
.vid__play:hover .vid__btn { transform: translate(-50%, -50%) scale(1.12); }
.vid__play:hover .vid__thumb { transform: scale(1.42); }
.vid__thumb { transition: transform .3s ease; }

/* "눌러서 재생" hint that slides in on hover */
.vid__play::after {
  content: "눌러서 재생";
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%) translateY(6px);
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(16, 20, 28, .82);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  opacity: 0;
  transition: opacity .16s, transform .16s;
  pointer-events: none;
  white-space: nowrap;
}
.vid__play:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* action row under the title */
.vid__acts {
  display: flex;
  gap: 7px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.vid__acts .btn { flex: 1; min-width: 0; }
.vid__acts .btn svg { flex-shrink: 0; }

/* once playing, the play button is pointless */
.vid.is-playing .vid__go { display: none; }
.vid.is-playing .vid__acts .btn { flex: 0 1 auto; }

@media (prefers-reduced-motion: reduce) {
  .vid__thumb, .vid__btn, .vid__play::after { transition: none; }
  .vid__play:hover .vid__thumb { transform: scale(1.36); }
}

@media (max-width: 760px) {
  /* touch devices never hover — keep the hint hidden, buttons do the job */
  .vid__play::after { display: none; }
}

/* =============================================================
   STEP 8 — HERO VIDEO (replaces the demo console when chosen)
   ============================================================= */

.heromedia {
  margin: 0;
  background: var(--asphalt-2);
  border: 1px solid var(--steel-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.heromedia__v {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}
.heromedia__cap {
  padding: 12px 16px;
  border-top: 1px solid var(--steel-line);
  background: rgba(0, 0, 0, .18);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8b96a6;
  text-align: center;
}

/* tall (portrait) phone recordings shouldn't run off the screen */
@media (min-width: 981px) {
  .heromedia { max-height: 560px; }
  .heromedia__v { max-height: 500px; object-fit: contain; }
}

/* ---------- admin: current video ---------- */
.vidnow {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fbfcfd;
  margin-bottom: 18px;
}
.vidnow__v {
  width: 148px;
  border-radius: 8px;
  background: #000;
  flex-shrink: 0;
}
.vidnow__t {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}
.vidnow__t b { font-size: 14px; font-weight: 700; color: var(--ink); }
.vidnow__t span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}
.vidnow__t .btn { margin-top: 5px; }

@media (max-width: 760px) {
  .vidnow { flex-direction: column; align-items: stretch; }
  .vidnow__v { width: 100%; }
}

/* =============================================================
   STEP 9 — HERO VIDEO PICKER: make the chosen file obvious
   ============================================================= */

.picked {
  margin-top: 12px;
  padding: 13px;
  border: 1.5px solid var(--signal);
  border-radius: var(--r-md);
  background: var(--signal-soft);
}
.picked__row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}
.picked__ico {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
  background: var(--signal);
  padding: 4px 7px;
  border-radius: 5px;
  flex-shrink: 0;
}
.picked__name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.picked__size {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

/* =============================================================
   STEP 10 — WIDE HERO VIDEO
   A 2520x1080 recording squeezed into the 400px column is 400x171px:
   nothing in it is legible. Landscape clips get the full width instead.
   ============================================================= */

.hero--wide { padding-bottom: 56px; }
.hero--wide .hero__in {
  grid-template-columns: 1fr;
  gap: 0;
}
.hero--wide .hero__lead { max-width: 62ch; }

.heromedia--wide {
  position: relative;
  z-index: 1;
  margin-top: 44px;
  max-height: none;
}
.heromedia--wide .heromedia__v {
  max-height: none;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 980px) {
  .heromedia--wide { margin-top: 34px; }
}

/* ---------- admin: quality read-out for the picked file ---------- */
.qmeta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 90, 0, .22);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
}
.qmeta b { color: var(--ink); font-weight: 700; }

.qwarn {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--danger);
  font-size: 13px;
  line-height: 1.6;
  color: #a51c22;
}
.qwarn b { font-weight: 700; }
.qok {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--lock);
  font-size: 13px;
  color: #046b42;
  font-weight: 600;
}

/* =============================================================
   STEP 11 — Q&A ATTACHMENTS (admin list)
   ============================================================= */

.attlist {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.attlist__i {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfd;
}
.attlist__th {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--paper);
  flex-shrink: 0;
  display: block;
}
.attlist__ext {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  background: var(--signal-soft);
  color: var(--signal);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.attlist__n {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attlist__s {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  flex-shrink: 0;
}

.arow__clip {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--paper);
  border-radius: 999px;
  padding: 1px 8px;
}
