/* ================================================================
   OBR.KR  v4  --  Production Stylesheet
   Background: #fafaf9  |  Brand: #2563eb  |  Accent: #7c3aed
   Fonts: Inter, Space Grotesk, JetBrains Mono
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700;800&display=swap');

/* ============================================================
   RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* palette */
  --bg: #fafaf9;
  --surface: #ffffff;
  --ink: #111111;
  --ink-secondary: #444444;
  --muted: #777777;
  --light: #aaaaaa;
  --line: #eaeae8;
  --line-strong: rgba(0, 0, 0, 0.14);

  /* brand */
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-soft: rgba(37, 99, 235, 0.08);
  --brand-strong: #1e40af;

  /* accent */
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-soft: rgba(124, 58, 237, 0.08);

  /* status */
  --success: #059669;
  --success-soft: rgba(5, 150, 105, 0.10);
  --warning: #d97706;
  --warning-soft: rgba(217, 119, 6, 0.10);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.10);

  /* extra palette */
  --orange: #ea580c;
  --orange-soft: rgba(234, 88, 12, 0.10);
  --rose: #e11d48;
  --rose-soft: rgba(225, 29, 72, 0.10);
  --sky: #0284c7;
  --sky-soft: rgba(2, 132, 199, 0.10);

  /* surface variants */
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: rgba(255, 255, 255, 0.97);

  /* elevation */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.10);

  /* radii */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* spacing (8px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* fonts */
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.2s;
}


/* ============================================================
   BASE
   ============================================================ */
html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

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

ul, ol {
  list-style: none;
}


/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.22);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.12) transparent;
}


/* ============================================================
   SELECTION
   ============================================================ */
::selection {
  background: rgba(37, 99, 235, 0.18);
  color: var(--ink);
}


/* ============================================================
   1.  GNB  --  Global Navigation Bar
   ============================================================ */
.gnb {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.gnb-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 54px;
  gap: 28px;
}

.gnb-logo {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.gnb-logo b {
  color: var(--brand);
}

.gnb-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

/* -- category wrapper -- */
.gnb-cat {
  position: relative;
}

/* -- trigger (current v4) -- */
.gnb-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
  background: none;
  border: none;
}

a.gnb-trigger {
  color: var(--muted);
}

.gnb-trigger:hover,
.gnb-cat:hover > .gnb-trigger {
  color: var(--brand);
  background: #eff5ff;
}

/* -- dropdown menu (current v4) -- */
.gnb-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 210;
}

.gnb-cat:hover > .gnb-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.gnb-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.gnb-menu a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: all 0.12s;
}

.gnb-menu a:hover {
  background: #eff5ff;
  color: var(--brand);
}

.gnb-menu .sep {
  height: 1px;
  background: #f3f3f1;
  margin: 4px 8px;
}

/* -- backwards-compat: old class names -- */
.gnb-cat-label {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

a.gnb-cat-label {
  color: var(--muted);
}

a.gnb-cat-label:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}

span.gnb-cat-label:hover,
.gnb-cat:hover > .gnb-cat-label {
  color: var(--brand);
  background: #eff5ff;
}

.gnb-drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 210;
}

.gnb-cat:hover > .gnb-drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.gnb-drop::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.gnb-drop a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: all 0.12s;
}

.gnb-drop a:hover {
  background: #eff5ff;
  color: var(--brand);
}

/* Hide old topbar when GNB is present */
.gnb ~ .page-shell .topbar,
.gnb + .page-shell .topbar {
  display: none;
}


/* ============================================================
   2.  PAGE LAYOUT
   ============================================================ */
.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.page-shell.narrow {
  max-width: 920px;
}

.page-shell.compare-shell {
  max-width: calc(100vw - 48px);
  width: 100%;
}


/* ============================================================
   3.  MAIN CONTENT WRAPPERS
   ============================================================ */
.translator-main,
.home-main,
.pdf-editor-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}


/* ============================================================
   4.  HERO  --  All Variants
   ============================================================ */

/* -- base 2-col hero grid -- */
.hero,
.translator-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

/* -- single-column workbench variants -- */
.hero-workbench,
.translator-hero-workbench,
.translator-hero.translator-hero-workbench {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

/* -- hero copy (left card) -- */
.hero-copy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-copy-compact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* -- hero panel (right card) -- */
.hero-panel,
.hero-workbench-panel {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(37, 99, 235, 0.02) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* -- hero headings -- */
.hero h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.hero-panel h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

/* -- hero text -- */
.hero-text,
.hero-panel-text {
  color: var(--ink-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* -- hero actions row -- */
.hero-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}


/* ============================================================
   5.  EYEBROW & BADGES
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin-bottom: 10px;
}

.panel-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-pill.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-pill.muted {
  background: rgba(0, 0, 0, 0.05);
  color: var(--muted);
}


/* ============================================================
   6.  FEATURE TAGS
   ============================================================ */
.hero-feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-feature-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: #f3f3f1;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
}


/* ============================================================
   7.  LIMIT PILLS
   ============================================================ */
.hero-limit-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-limit-pill {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--surface);
}

.hero-limit-pill small {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero-limit-pill strong {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}


/* ============================================================
   8.  KPI CARDS
   ============================================================ */
.hero-kpi-grid,
.hero-kpi-grid-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hero-kpi-grid-compact {
  gap: 8px;
}

.hero-kpi-card {
  display: grid;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.hero-kpi-card-brand,
.hero-kpi-card.tone-brand {
  background: var(--brand-soft);
  border-color: rgba(37, 99, 235, 0.12);
}

.hero-kpi-card-soft,
.hero-kpi-card.tone-soft {
  background: #fafaf9;
  border-color: var(--line);
}

.hero-kpi-card span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero-kpi-card strong {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
}

.hero-kpi-card p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}


/* ============================================================
   9.  MINI CARDS (hero right panel)
   ============================================================ */
.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.hero-mini-card {
  background: rgba(37, 99, 235, 0.03);
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-lg);
  padding: 14px;
  font-size: 0.85rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}


/* ============================================================
   10. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  line-height: 1.4;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  box-shadow: var(--shadow-sm), 0 2px 8px rgba(37, 99, 235, 0.18);
}

.btn.primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  box-shadow: var(--shadow), 0 4px 12px rgba(37, 99, 235, 0.22);
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn.secondary:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--line-strong);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--brand);
  color: #ffffff;
  border: 1px solid var(--brand);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  box-shadow: var(--shadow-sm);
}

.submit-btn:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--brand);
  color: #ffffff;
  border: 1px solid var(--brand);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.google-btn:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  background: transparent;
  color: var(--ink-secondary);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.copy-btn:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--line-strong);
  color: var(--ink);
}

.delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger-soft);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.delete-btn:hover {
  background: var(--danger-soft);
  border-color: rgba(220, 38, 38, 0.25);
}


/* ============================================================
   11. FORMS  --  Link Shortener (create-form)
   ============================================================ */
.create-form {
  display: grid;
  gap: 14px;
}

.create-form label {
  display: grid;
  gap: 6px;
}

.create-form span {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
}

.create-form input,
.create-form textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.create-form input:focus,
.create-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
  outline: none;
}

.create-form input::placeholder,
.create-form textarea::placeholder {
  color: var(--light);
}


/* ============================================================
   12. FORMS  --  Translator
   ============================================================ */
.translator-form {
  display: grid;
  gap: 14px;
}

.translator-field {
  display: grid;
  gap: 6px;
}

.translator-field > span,
.translator-field > label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
}

.translator-form input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]),
.translator-form textarea,
.translator-form select,
.translator-textarea {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.98) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--ink);
  width: 100%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.translator-form textarea,
.translator-textarea {
  min-height: 120px;
  resize: vertical;
}

.translator-form input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]):focus,
.translator-form textarea:focus,
.translator-form select:focus,
.translator-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
  background: #fff;
  outline: none;
}

.translator-form input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"])::placeholder,
.translator-form textarea::placeholder,
.translator-textarea::placeholder {
  color: var(--light);
}

.translator-select,
.translator-input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  width: 100%;
}

.translator-select:focus,
.translator-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
  outline: none;
}

.translator-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23777' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}

.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/* ============================================================
   13. DROPZONE
   ============================================================ */
.dropzone {
  position: relative;
  border: 2px dashed rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-lg);
  min-height: 160px;
  background: var(--surface);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}

.dropzone:hover {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.02);
}

.dropzone.is-dragover {
  border-color: var(--brand);
  border-style: solid;
  background: rgba(37, 99, 235, 0.05);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.dropzone-inner {
  display: grid;
  place-items: center;
  padding: 24px;
  min-height: 160px;
  text-align: center;
  pointer-events: none;
}

.dropzone-inner strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.dropzone-inner p,
.dropzone-inner span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  width: 100%;
  height: 100%;
}


/* ============================================================
   14. STATUS & RESULT SECTIONS
   ============================================================ */
.translator-status-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.status-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--dur) var(--ease);
}

.status-card:hover {
  box-shadow: var(--shadow-sm);
}

.status-card[data-empty="true"] {
  border-style: dashed;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 32px 20px;
  justify-content: center;
  align-items: center;
}

.section-head {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.section-head h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}


/* ============================================================
   15. METRICS / SERVICES / CREATED / MAKER SECTIONS
   ============================================================ */
.metrics-section,
.services-section,
.created-section,
.maker-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.maker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}


/* ============================================================
   16. METRIC CARDS
   ============================================================ */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: box-shadow var(--dur) var(--ease);
}

.metric-card:hover {
  box-shadow: var(--shadow-sm);
}

.metric-card span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.metric-card strong {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}

.metric-card p {
  font-size: 0.78rem;
  color: var(--muted);
}


/* ============================================================
   17. FEEDBACK BANNERS
   ============================================================ */
.feedback {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

.feedback-success {
  background: var(--success-soft);
  border: 1px solid rgba(5, 150, 105, 0.2);
  color: var(--success);
}

.feedback-error {
  background: var(--danger-soft);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: var(--danger);
}

.feedback-soft {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--line);
  color: var(--ink-secondary);
}


/* ============================================================
   18. SERVICE CARDS
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-card h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.service-card p {
  font-size: 0.85rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.service-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-feature-list span {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: #f3f3f1;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.service-card-foot {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: auto;
}


/* ============================================================
   19. GUIDE CARDS & PANELS
   ============================================================ */
.guide-card {
  background: #f9f9f8;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  font-size: 0.85rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.guide-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-panel h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}


/* ============================================================
   20. LINK CARDS (shortener)
   ============================================================ */
.link-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow var(--dur) var(--ease);
}

.link-card:hover {
  box-shadow: var(--shadow);
}

.link-card-head {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.link-card-fresh {
  border-left: 3px solid var(--brand);
}

.link-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.link-value-group {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.card-title-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.card-metrics {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.slug-caption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.target-link {
  color: var(--muted);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 400px;
}


/* ============================================================
   21. META GRID (job details table)
   ============================================================ */
.meta-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.meta-grid dt {
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--bg);
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--ink);
}

.meta-grid dd {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-secondary);
  font-size: 0.85rem;
  word-break: break-all;
}

.meta-grid dt:last-of-type,
.meta-grid dd:last-of-type {
  border-bottom: none;
}


/* ============================================================
   22. COMPARE VIEW (PDF translator compare)
   ============================================================ */
.compare-shell {
  max-width: calc(100vw - 48px);
  width: 100%;
}

.compare-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.compare-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.compare-card-head {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}

.compare-page-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.compare-page-row:last-child {
  border-bottom: none;
}

.compare-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compare-row-head h3 {
  font-size: 1rem;
  font-weight: 700;
}

.compare-page-kicker {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

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

.compare-sheet {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-panel-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0;
}

img.compare-page-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
}

.compare-page-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-note {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  padding: 16px 0;
}

.status-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .compare-page-grid {
    grid-template-columns: 1fr;
  }
}

.compare-page-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.compare-text {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.compare-note {
  background: var(--warning-soft);
  border: 1px solid rgba(217, 119, 6, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--warning);
  line-height: 1.5;
}

.compare-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-panel-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.compare-pdf-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}

.compare-pdf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.compare-pdf-panel {
  padding: 16px 20px;
  border-right: 1px solid var(--line);
}

.compare-pdf-panel:last-child {
  border-right: none;
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.compare-row-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 10px 20px;
  background: var(--bg);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.compare-sheet {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
}


/* ============================================================
   23. ADMIN
   ============================================================ */
.admin-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-hero h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
}

.admin-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-section h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.admin-jobs-grid,
.admin-links-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-job-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow var(--dur) var(--ease);
}

.admin-job-card:hover {
  box-shadow: var(--shadow-sm);
}

.admin-job-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.admin-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-job-meta span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.admin-job-error {
  background: var(--danger-soft);
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--danger);
  font-family: var(--font-mono);
  word-break: break-all;
}

/* -- auth -- */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 420px;
  margin: 48px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.auth-card h1 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  color: var(--ink);
}

.auth-summary {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  text-align: center;
  line-height: 1.6;
}

/* -- setup -- */
.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.setup-grid > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
}


/* ============================================================
   24. PDF EDITOR
   ============================================================ */
.pdf-editor-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdf-editor-hero h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
}

.pdf-editor-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pdf-editor-pages {
  display: grid;
  gap: 20px;
}

.pdf-editor-page-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pdf-editor-page-head {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.pdf-editor-page-canvas {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f5f5f4;
}

.pdf-editor-page-canvas img,
.pdf-editor-page-canvas canvas {
  display: block;
  width: 100%;
}

.pdf-editor-overlay {
  position: absolute;
  inset: 0;
}

.pdf-editor-block {
  position: absolute;
}

.pdf-editor-span {
  position: absolute;
  background: transparent;
  border: 1px solid transparent;
  cursor: text;
  padding: 1px 2px;
  font-size: inherit;
  line-height: inherit;
  transition: background 0.1s, border-color 0.1s;
  outline: none;
  resize: none;
  overflow: hidden;
}

.pdf-editor-span:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.15);
}

.pdf-editor-span:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-soft);
  z-index: 5;
}

.pdf-editor-span.modified {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--orange);
  box-shadow: 0 0 0 2px var(--orange-soft);
}

.pdf-editor-new-span {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--brand);
  box-shadow: 0 0 0 2px var(--brand-soft);
  padding: 2px 4px;
  font-size: inherit;
  line-height: inherit;
  outline: none;
  cursor: text;
  z-index: 6;
}

.pdf-editor-muted {
  color: var(--muted);
  font-size: 0.82rem;
}

.pdf-editor-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.pdf-editor-save-result {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  background: var(--success-soft);
  border: 1px solid rgba(5, 150, 105, 0.2);
  color: var(--success);
}


/* ============================================================
   25. EMPTY STATES
   ============================================================ */
.empty-card {
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.compact-empty {
  border: 2px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}


/* ============================================================
   26. NOT FOUND (404)
   ============================================================ */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  gap: 16px;
}

.not-found h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--ink);
}

.not-found p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 400px;
  line-height: 1.6;
}


/* ============================================================
   27. STATE MODIFIERS
   ============================================================ */
.is-done {
  opacity: 0.5;
  pointer-events: none;
}

.is-dragover {
  border-color: var(--brand) !important;
  background: rgba(37, 99, 235, 0.04) !important;
}


/* ============================================================
   28. SMOOTH TRANSITIONS (global)
   ============================================================ */
a,
button,
input,
textarea,
select,
.btn,
.service-card,
.link-card,
.metric-card,
.status-card,
.admin-job-card,
.hero-kpi-card {
  transition: all var(--dur) var(--ease);
}


/* ============================================================
   29. RESPONSIVE  --  Tablet (max-width: 900px)
   ============================================================ */
@media (max-width: 900px) {

  /* hero to single column */
  .hero,
  .translator-hero {
    grid-template-columns: 1fr;
  }

  /* service grid single col */
  .service-grid {
    grid-template-columns: 1fr;
  }

  /* compare grid single col */
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .compare-page-grid,
  .compare-page-row {
    grid-template-columns: 1fr;
  }

  .compare-pdf-grid {
    grid-template-columns: 1fr;
  }

  .compare-pdf-panel {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .compare-pdf-panel:last-child {
    border-bottom: none;
  }

  /* metric grid to 2 columns */
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* kpi grid to 2 columns */
  .hero-kpi-grid,
  .hero-kpi-grid-compact {
    grid-template-columns: repeat(2, 1fr);
  }

  /* admin metric grid to 2 columns */
  .admin-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* maker grid single col */
  .maker-grid {
    grid-template-columns: 1fr;
  }

  /* setup grid single col */
  .setup-grid {
    grid-template-columns: 1fr;
  }

  /* mini grid single col */
  .hero-mini-grid {
    grid-template-columns: 1fr;
  }

  /* page shell tighter padding */
  .page-shell {
    padding: 0 18px 36px;
  }

  /* target link max width */
  .target-link {
    max-width: 260px;
  }
}


/* ============================================================
   30. RESPONSIVE  --  Mobile (max-width: 640px)
   ============================================================ */
@media (max-width: 640px) {

  body {
    font-size: 14px;
  }

  /* page shell mobile padding */
  .page-shell {
    padding: 0 14px 28px;
  }

  /* hero heading smaller */
  .hero h1 {
    font-size: 1.4rem;
  }

  .hero-panel h2 {
    font-size: 1.1rem;
  }

  /* hero copy/panel tighter padding */
  .hero-copy,
  .hero-panel,
  .hero-workbench-panel {
    padding: 20px;
  }

  /* kpi grid single col */
  .hero-kpi-grid,
  .hero-kpi-grid-compact {
    grid-template-columns: 1fr;
  }

  .hero-kpi-card strong {
    font-size: 1.2rem;
  }

  /* metric grid single col */
  .metric-grid {
    grid-template-columns: 1fr;
  }

  /* admin metric single col */
  .admin-metric-grid {
    grid-template-columns: 1fr;
  }

  /* service card tighter */
  .service-card {
    padding: 18px;
  }

  /* link card tighter */
  .link-card {
    padding: 14px;
  }

  .link-card-head {
    flex-direction: column;
    gap: 8px;
  }

  /* card metrics wrap */
  .card-metrics {
    flex-wrap: wrap;
  }

  /* section head stack on small */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* hero actions wrap */
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* form panel tighter */
  .form-panel {
    padding: 18px;
  }

  /* admin hero tighter */
  .admin-hero {
    padding: 20px;
  }

  /* auth card tighter */
  .auth-card {
    padding: 24px;
    margin: 24px auto;
  }

  /* compare grid single col already handled */

  /* compare card head */
  .compare-card-head {
    padding: 12px 16px;
    font-size: 0.88rem;
  }

  /* pdf editor shell tighter */
  .pdf-editor-shell {
    padding: 16px;
  }

  /* dropzone smaller */
  .dropzone {
    min-height: 120px;
  }

  .dropzone-inner {
    min-height: 120px;
    padding: 16px;
  }

  /* target link */
  .target-link {
    max-width: 180px;
  }

  /* limit pills wrap */
  .hero-limit-strip {
    gap: 6px;
  }

  .hero-limit-pill {
    padding: 8px 12px;
  }

  .hero-limit-pill strong {
    font-size: 1rem;
  }

  /* GNB mobile */
  .gnb-inner {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 16px 12px;
    gap: 8px;
  }

  .gnb-logo {
    order: 1;
  }

  .gnb-lang {
    order: 2;
    margin-left: auto;
    position: static;
  }

  .gnb-nav {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding-top: 2px;
    border-top: none;
  }

  .gnb-nav::-webkit-scrollbar {
    display: none;
  }

  /* meta grid stack */
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .meta-grid dt {
    border-right: none;
    border-bottom: none;
    padding: 8px 14px 4px;
  }

  .meta-grid dd {
    padding: 4px 14px 10px;
  }
}


/* ============================================================
   31. PRINT
   ============================================================ */
@media print {

  .gnb {
    position: static;
    border-bottom: 1px solid #ccc;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .gnb-menu,
  .gnb-drop {
    display: none !important;
  }

  body {
    background: #fff;
    font-size: 12pt;
  }

  .page-shell {
    max-width: none;
    padding: 0;
  }

  .hero,
  .translator-hero {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .metric-grid,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .btn,
  .submit-btn,
  .google-btn,
  .copy-btn,
  .delete-btn {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .service-card,
  .link-card,
  .status-card,
  .hero-copy,
  .hero-panel {
    box-shadow: none;
    break-inside: avoid;
  }

  .dropzone,
  .file-input {
    display: none;
  }
}

/* ===== Progress Bar ===== */
.progress-wrap {
  padding: 14px 0;
}
.progress-bar-bg {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #eaeae8;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 2px;
}
.progress-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: #444;
}

/* ===== Language Selector ===== */
.gnb-lang {
  position: relative;
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.gnb-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid #eaeae8;
  background: #fff;
  color: #777;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.gnb-lang-btn:hover {
  color: #2563eb;
  border-color: #aaa;
  background: #eff5ff;
}
.gnb-lang-btn::before {
  content: none;
}
.gnb-lang-btn svg {
  display: block;
}
.gnb-lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 180px;
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #eaeae8;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 220;
}
.gnb-lang-menu.open,
.gnb-lang:focus-within .gnb-lang-menu,
.gnb-lang:hover .gnb-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.gnb-lang-menu a {
  display: block;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #444;
  cursor: pointer;
  transition: 0.12s;
}
.gnb-lang-menu a:hover {
  background: #eff5ff;
  color: #2563eb;
}
.gnb-lang-menu a.active {
  background: #2563eb;
  color: #fff;
}
.gnb-lang-menu::-webkit-scrollbar {
  width: 4px;
}
.gnb-lang-menu::-webkit-scrollbar-track {
  background: transparent;
}
.gnb-lang-menu::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}
@media (max-width: 700px) {
  .gnb-lang-menu {
    position: absolute;
    right: 0;
    left: auto;
    top: calc(100% + 8px);
    width: 180px;
    max-height: 320px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  }
}

/* Language dropdown stability: keep the hover path connected to the menu. */
.gnb-lang {
  position: relative;
}
.gnb-lang::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: 100%;
  height: 14px;
  z-index: 219;
}
.gnb-lang-menu {
  top: calc(100% + 4px);
}
@media (max-width: 700px) {
  .gnb-lang {
    position: relative;
  }
  .gnb-lang-menu {
    top: calc(100% + 4px);
  }
}

/* Utility tool usability boost */
.util-enhance-bar,
.util-sample-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 12px;
}
.util-sample-row {
  padding: 10px;
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(239, 245, 255, .8), rgba(255, 255, 255, .92));
}
.util-sample-label {
  font-size: .72rem;
  font-weight: 800;
  color: #475569;
  letter-spacing: .02em;
}
.util-pill-btn,
.util-copy-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 999px;
  background: #fff;
  color: #1d4ed8;
  font-size: .74rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.util-pill-btn:hover,
.util-copy-mini:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, .38);
  box-shadow: 0 6px 18px rgba(37, 99, 235, .10);
}
.util-copy-mini {
  width: fit-content;
  margin-top: 6px;
  border-radius: 8px;
}
.util-live-stats {
  margin-top: 8px;
  color: #64748b;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .72rem;
}
[data-json-formatter-page] textarea,
[data-base64-page] textarea,
[data-crc-page] textarea,
[data-hash-page] textarea {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 1px rgba(37,99,235,.06);
}

/* QR and utility result placement fixes */
.util-result-actions {
  justify-content: flex-end;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(37, 99, 235, .10);
}
[data-json-result-card] .translator-textarea,
[data-base64-result-card] .translator-textarea {
  width: 100%;
}
.translator-checkline,
[data-qr-page] [data-qr-form] label.translator-checkline,
[data-qr-page] [data-qr-form] details label.translator-checkline {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: fit-content;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(67, 53, 43, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
}
.translator-checkline input[type="checkbox"],
[data-qr-page] [data-qr-form] label.translator-checkline input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--brand, #2563eb);
}
.translator-checkline span,
[data-qr-page] [data-qr-form] label.translator-checkline span {
  margin: 0;
  font-size: .84rem;
  line-height: 1.35;
  color: #43352b;
  font-weight: 700;
}
[data-qr-page] [data-qr-group="wifi"] .translator-checkline {
  margin-top: 4px;
}

/* Audio tool drag upload upgrade */
.audio-upload-field {
  display: grid;
  gap: 10px;
}
.audio-dropzone {
  min-height: 190px;
  border-color: rgba(5, 150, 105, .28);
  background:
    radial-gradient(circle at 18% 20%, rgba(5, 150, 105, .10), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(37, 99, 235, .10), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(240,253,250,.94));
  overflow: hidden;
}
.audio-dropzone:hover,
.audio-dropzone.is-dragover {
  border-color: rgba(5, 150, 105, .68);
  background:
    radial-gradient(circle at 18% 20%, rgba(5, 150, 105, .16), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(37, 99, 235, .14), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,1), rgba(236,253,245,.98));
  box-shadow: 0 0 0 4px rgba(5,150,105,.10), 0 18px 42px rgba(15,118,110,.10);
}
.audio-dropzone-inner {
  min-height: 190px;
  gap: 6px;
}
.audio-drop-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 18px;
  background: linear-gradient(135deg, #059669, #2563eb);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(5, 150, 105, .20);
}
.audio-file-label {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(5,150,105,.16);
  color: #047857 !important;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .72rem !important;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audio-file-list {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}
.audio-file-list[hidden] {
  display: none;
}
.audio-file-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 118, 110, .12);
  border-radius: 12px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 5px 18px rgba(15, 118, 110, .04);
}
.audio-file-index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(5, 150, 105, .10);
  color: #047857;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .72rem;
  font-weight: 900;
}
.audio-file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #172033;
  font-size: .82rem;
  font-weight: 800;
}
.audio-file-meta {
  color: #64748b;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .72rem;
  white-space: nowrap;
}
.audio-dropzone.is-invalid {
  border-color: rgba(220,38,38,.6);
  box-shadow: 0 0 0 4px rgba(220,38,38,.10);
}
@media (max-width: 640px) {
  .audio-file-row {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .audio-file-meta {
    grid-column: 2;
  }
}

/* Audio Pro Timeline Editor */
.audio-pro-editor {
  position: relative;
  overflow: hidden;
  padding: 18px !important;
  border: 1px solid rgba(15, 23, 42, .22) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(37, 99, 235, .18), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(5, 150, 105, .16), transparent 32%),
    linear-gradient(180deg, #151b2a 0%, #0f172a 100%) !important;
  color: #e5e7eb;
  box-shadow: 0 28px 70px rgba(15, 23, 42, .18);
}
.audio-pro-editor strong,
.audio-pro-editor span,
.audio-pro-editor .field-hint {
  color: inherit;
}
.audio-pro-editor [data-audio-trim-file-name] {
  color: #94a3b8 !important;
}
.audio-pro-editor audio {
  width: 100% !important;
  margin: 0 0 12px !important;
  filter: saturate(.9) contrast(1.05);
}
.audio-pro-monitor {
  margin: -4px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 14px;
  background: rgba(2, 6, 23, .42);
}
.audio-pro-monitor-head,
.audio-pro-timebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.audio-pro-monitor-head span,
.audio-pro-timebar span {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #93c5fd !important;
}
.audio-pro-monitor-head strong,
.audio-pro-timebar strong {
  display: inline-flex;
  min-width: 86px;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 9px;
  background: rgba(15, 23, 42, .82);
  border: 1px solid rgba(59, 130, 246, .26);
  color: #bfdbfe !important;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .76rem;
}
.audio-pro-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
}
.audio-pro-toolbar .btn {
  min-height: 34px;
  padding: 8px 9px;
  border-color: rgba(148, 163, 184, .24) !important;
  background: rgba(15, 23, 42, .62) !important;
  color: #dbeafe !important;
  font-size: .72rem;
  box-shadow: none !important;
}
.audio-pro-toolbar .btn:hover {
  border-color: rgba(96, 165, 250, .55) !important;
  background: rgba(30, 41, 59, .86) !important;
}
[data-audio-waveform-shell] {
  margin-top: 8px;
  border-color: rgba(96, 165, 250, .20) !important;
  background: linear-gradient(180deg, rgba(2, 6, 23, .82), rgba(15, 23, 42, .78)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 14px 40px rgba(0,0,0,.18);
}
[data-audio-waveform-track] {
  height: 188px !important;
}
[data-audio-waveform] {
  height: 188px !important;
  background:
    linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px) 0 0 / 48px 100%,
    linear-gradient(180deg, rgba(15,23,42,.95), rgba(2,6,23,.82)) !important;
}
[data-audio-waveform-ruler] {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 24px;
  z-index: 3;
  pointer-events: none;
  border-bottom: 1px solid rgba(148, 163, 184, .14);
  background: linear-gradient(180deg, rgba(15,23,42,.9), rgba(15,23,42,.42));
}
.audio-ruler-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(148, 163, 184, .28);
}
.audio-ruler-tick span {
  position: absolute;
  top: 4px;
  left: 5px;
  color: #94a3b8 !important;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .62rem;
  white-space: nowrap;
}
[data-audio-waveform-selection] {
  background: rgba(37, 99, 235, .22) !important;
  border-left-color: #60a5fa !important;
  border-right-color: #2dd4bf !important;
}
[data-audio-waveform-left-mask],
[data-audio-waveform-right-mask] {
  background: rgba(2, 6, 23, .58) !important;
}
[data-audio-waveform-start-handle],
[data-audio-waveform-end-handle] {
  width: 18px !important;
  border-left-width: 3px !important;
  cursor: ew-resize;
}
[data-audio-waveform-playhead] {
  width: 3px !important;
  background: #f97316 !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 0 22px rgba(249,115,22,.58) !important;
}
.audio-pro-editor input[type="range"] {
  accent-color: #60a5fa;
}
.audio-pro-editor .translator-input,
.audio-pro-editor .translator-select {
  background: rgba(15, 23, 42, .64) !important;
  border-color: rgba(148, 163, 184, .22) !important;
  color: #f8fafc !important;
}
.audio-pro-editor .translator-field > span {
  color: #cbd5e1 !important;
}
@media (max-width: 720px) {
  .audio-pro-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  [data-audio-waveform-track],
  [data-audio-waveform] {
    height: 160px !important;
  }
}
