/* editorial design system — shared tokens & base components
   v1.2 · 2026-05-23 */

@font-face {
  font-family: "Magnolia Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Magnolia Script"),
       url("../fonts/MagnoliaScript-Regular.woff2") format("woff2"),
       url("../fonts/MagnoliaScript-Regular.woff") format("woff");
}

:root {
  /* core palette */
  --press-black: #111111;
  --warm-black: #1F1E1C;
  --ink-black: #212122;
  --tiger-orange: #F96815;
  --tiger-red: #8B0029;
  --ivory-paper: #F7F0DF;

  /* light theme grays */
  --white: #FFFFFF;
  --gray-50: #FAFAF8;
  --gray-100: #F2F1EE;
  --gray-200: #E5E4E0;
  --gray-300: #D1D0CC;
  --gray-400: #A8A6A0;
  --gray-500: #6F6D67;
  --gray-700: #3C3A36;

  /* dark theme */
  --d-text-1: rgba(255,255,255,1);
  --d-text-2: rgba(255,255,255,.7);
  --d-text-3: rgba(255,255,255,.4);
  --d-border: rgba(255,255,255,.12);
  --d-border-strong: rgba(255,255,255,.22);
  --d-surface-1: #181715;
  --d-surface-2: #1F1E1C;
  --d-surface-3: #26241F;

  /* spacing */
  --xs: 0.4rem;
  --sm: 0.8rem;
  --md: 1.6rem;
  --lg: 2.4rem;
  --xl: 3.2rem;
  --2xl: 4.8rem;
  --3xl: 6.4rem;

  /* radius */
  --r-none: 0;
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-pill: 999px;

  /* motion */
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --ease-inout: cubic-bezier(.65,.05,.36,1);
  --d-fast: 120ms;
  --d-med: 200ms;
  --d-slow: 320ms;

  /* fonts */
  --f-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --f-script: "Magnolia Script", "Sacramento", cursive;
}

html {
  font-size: 62.5%;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--f-body); font-size: 1.5rem; font-weight: 500; line-height: 1.7; }

/* ========= LOGO WORDMARK ========= */
.logo-wm {
  font-family: var(--f-script);
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-block;
  font-weight: 400;
}

/* inline-in-prose wordmark — for body text occurrences of "editorial".
   per playbook §9: 평문 내 editorial은 항상 Magnolia Script. */
.wm {
  font-family: var(--f-script);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.005em;
  font-size: 1.18em;
  line-height: 0.92;
  vertical-align: -0.04em;
}

/* ========= BUTTONS ========= */
.btn {
  font-family: var(--f-body);
  font-weight: 650;
  font-size: 1.4rem;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 0 1.6rem;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: background var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out);
  white-space: nowrap;
  user-select: none;
}
.btn:focus-visible {
  outline: 2px solid var(--tiger-orange);
  outline-offset: 2px;
}
.btn--sm { height: 32px; padding: 0 1.2rem; font-size: 1.3rem; }
.btn--md { height: 40px; padding: 0 1.6rem; font-size: 1.4rem; }
.btn--lg { height: 48px; padding: 0 2rem; font-size: 1.5rem; }

/* dark theme buttons */
.btn--d-primary { background: var(--tiger-orange); color: var(--press-black); }
.btn--d-primary:hover { background: var(--white); color: var(--press-black); }
.btn--d-secondary { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.14); }
.btn--d-secondary:hover { background: rgba(255,255,255,.14); }
.btn--d-ghost { background: transparent; color: var(--white); }
.btn--d-ghost:hover { background: rgba(255,255,255,.06); }

/* ========= FORMAT PILL ========= */
.format-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  background: var(--gray-100);
  color: var(--gray-700);
  font-family: var(--f-mono);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-xs);
  line-height: 1;
}
.format-pill--dark {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}
.format-pill--accent {
  background: rgba(249,104,21,0.12);
  color: #B85215;
}

/* ========= DROPZONE ========= */
.dropzone {
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--r-md);
  padding: var(--3xl) var(--xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--md);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s var(--ease-out), background 0.15s var(--ease-out);
  text-align: center;
}
.dropzone:hover { border-color: var(--gray-400); background: var(--gray-50); }
.dropzone.is-dragover { border-color: var(--tiger-orange); border-style: solid; background: rgba(249,104,21,0.04); }
.dropzone--dark {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.02);
  color: var(--white);
}
.dropzone--dark:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.04); }
.dropzone--dark.is-dragover { border-color: var(--tiger-orange); background: rgba(249,104,21,0.08); }
.dropzone-icon { font-size: 32px; color: var(--gray-400); }
.dropzone--dark .dropzone-icon { color: var(--d-text-3); }
.dropzone-text { font-size: 1.5rem; font-weight: 650; color: var(--press-black); }
.dropzone--dark .dropzone-text { color: var(--white); }
.dropzone-sub { font-size: 1.3rem; color: var(--gray-500); line-height: 1.55; }
.dropzone--dark .dropzone-sub { color: var(--d-text-3); }

/* ========= DESIGN SYSTEM COMPONENTS ========= */
.btn--primary { background: var(--press-black); color: var(--white); }
.btn--primary:hover { background: var(--tiger-orange); color: var(--press-black); }
.btn--primary.is-disabled,
.btn--primary:disabled { background: var(--gray-200); color: var(--gray-400); }
.btn--secondary { background: var(--gray-50); color: var(--press-black); }
.btn--secondary:hover { background: var(--gray-100); }
.btn--tertiary { background: transparent; color: var(--tiger-orange); border-color: var(--tiger-orange); }
.btn--tertiary:hover { background: var(--tiger-orange); color: var(--white); }
.btn--ghost { background: transparent; color: var(--press-black); }
.btn--ghost:hover { background: var(--gray-50); }
.btn--destructive { background: #DC2626; color: #FFFFFF; }
.btn--destructive:hover { background: #B91C1C; color: #FFFFFF; }
.btn--icon { padding: 0; width: 40px; }
.btn--icon.btn--sm { width: 32px; }
.btn--icon.btn--lg { width: 48px; }

.field { display: flex; flex-direction: column; gap: 0.6rem; min-width: 280px; }
.field-label { font-size: 1.3rem; font-weight: 650; color: var(--press-black); }
.field-helper { font-size: 1.2rem; color: var(--gray-500); }
.field-helper.error { color: var(--tiger-red); }
.input,
.select,
.select-input {
  font-family: var(--f-body);
  font-size: 1.4rem;
  font-weight: 500;
  height: 40px;
  padding: 0 1.2rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--press-black);
  border-radius: var(--r-sm);
  transition: border-color var(--d-fast) var(--ease-out), background var(--d-fast) var(--ease-out);
  width: 100%;
}
.input::placeholder { color: var(--gray-300); }
.input:hover,
.select:hover,
.select-input:hover { border-color: var(--gray-300); }
.input:focus,
.select:focus,
.select-input:focus { outline: none; border-color: var(--tiger-orange); box-shadow: 0 0 0 2px rgba(249,104,21,.18); }
.input:disabled,
.select:disabled { background: var(--gray-50); color: var(--gray-300); cursor: not-allowed; border-color: var(--gray-200); }
.input.is-error { border-color: var(--tiger-red); box-shadow: 0 0 0 2px rgba(139,0,41,.16); }
.input--dark { background: rgba(255,255,255,.04); color: var(--white); border-color: rgba(255,255,255,.14); }
.input--dark::placeholder { color: rgba(255,255,255,.3); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input { padding-left: 3.6rem; }
.input-wrap .input.no-prefix { padding-left: 1.2rem; }
.input-wrap .prefix,
.input-wrap .suffix {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.input-wrap .prefix { left: 1.2rem; }
.input-wrap .suffix { right: 1.2rem; pointer-events: auto; cursor: pointer; }
.textarea {
  font-family: var(--f-body);
  font-size: 1.4rem;
  font-weight: 500;
  min-height: 100px;
  padding: 1rem 1.2rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--press-black);
  line-height: 1.6;
  resize: vertical;
  width: 100%;
}
.textarea:focus { outline: none; border-color: var(--tiger-orange); box-shadow: 0 0 0 2px rgba(249,104,21,.18); }

.check,
.radio { display: inline-flex; align-items: center; gap: 0.8rem; cursor: pointer; font-size: 1.4rem; color: var(--press-black); }
.check input,
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.check .box,
.radio .box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--d-fast) var(--ease-out);
  flex-shrink: 0;
}
.check .box { border-radius: var(--r-xs); }
.radio .box { border-radius: 50%; }
.check input:checked + .box,
.radio input:checked + .box { background: var(--press-black); border-color: var(--press-black); }
.check input:checked + .box::after { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(-45deg) translate(1px,-1px); }
.radio input:checked + .box::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--white); }
.toggle { display: inline-flex; align-items: center; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .track { position: relative; width: 32px; height: 18px; border-radius: var(--r-pill); background: var(--gray-200); transition: background var(--d-fast) var(--ease-out); flex-shrink: 0; }
.toggle .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); transition: transform var(--d-fast) var(--ease-out); }
.toggle input:checked + .track { background: var(--press-black); }
.toggle input:checked + .track::after { transform: translateX(14px); }

.topnav { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 var(--lg); border-bottom: 1px solid var(--d-border); background: transparent; }
.topnav .left { display: flex; align-items: center; gap: var(--xl); }
.topnav .mark { font-family: var(--f-script); font-size: 2.6rem; color: var(--white); letter-spacing: -0.02em; line-height: 1; }
.topnav .links { display: flex; gap: var(--lg); }
.topnav .links a { color: var(--d-text-2); text-decoration: none; font-size: 1.4rem; font-weight: 500; }
.topnav .right { display: flex; align-items: center; gap: var(--md); }
.topnav.is-light { border-bottom-color: var(--gray-200); }
.topnav.is-light .mark,
.topnav.is-light .links a,
.topnav.is-light .right a { color: var(--press-black); }
.icon-btn { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--r-sm); background: transparent; color: inherit; cursor: pointer; position: relative; }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border-radius: 999px; background: var(--tiger-orange); }
.user-chip { display: inline-flex; align-items: center; gap: 0.8rem; padding: 0.4rem; border: 0; border-radius: var(--r-pill); background: transparent; color: inherit; cursor: pointer; font-family: inherit; }
.user-chip .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--gray-200); color: var(--gray-700); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 650; }
.user-chip .name { font-size: 1.3rem; font-weight: 500; padding-right: 0.4rem; }

.sidebar { width: 240px; background: var(--gray-50); border-right: 1px solid var(--gray-200); padding: var(--md); display: flex; flex-direction: column; height: 100vh; flex-shrink: 0; position: sticky; top: 0; }
.sidebar .mark { font-family: var(--f-script); font-size: 2.4rem; color: var(--press-black); letter-spacing: -0.02em; padding: 0.8rem 1.2rem; margin-bottom: var(--md); text-decoration: none; display: inline-block; }
.sidebar .group { display: flex; flex-direction: column; gap: 0.4rem; }
.sidebar .group + .group { margin-top: auto; }
.sidebar .nav-item { min-height: 38px; display: flex; align-items: center; gap: 1rem; padding: 0 1.2rem; box-sizing: border-box; border-radius: var(--r-sm); color: var(--press-black); text-decoration: none; font-size: 1.4rem; font-weight: 500; line-height: 1; cursor: pointer; }
.sidebar .nav-item:hover { background: var(--gray-100); }
.sidebar .nav-item.is-active { background: var(--gray-100); font-weight: 650; }
.sidebar .nav-item .icon { font-size: 1.8rem; color: var(--gray-500); }
.sidebar .nav-item.is-active .icon { color: var(--tiger-orange); }

.tabs { display: flex; border-bottom: 1px solid var(--gray-200); gap: var(--lg); }
.tab { padding: 1rem 0; font-size: 1.4rem; font-weight: 500; color: var(--gray-500); cursor: pointer; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; font-family: inherit; }
.tab:hover { color: var(--press-black); }
.tab.is-active { color: var(--press-black); border-bottom-color: var(--press-black); font-weight: 650; }
.pagination { display: inline-flex; gap: 0.4rem; align-items: center; }
.page-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--gray-200); background: var(--white); color: var(--press-black); border-radius: var(--r-sm); font-family: var(--f-mono); font-size: 1.2rem; cursor: pointer; }
.page-btn:hover { background: var(--gray-50); }
.page-btn.is-active { background: var(--press-black); color: var(--white); border-color: var(--press-black); }
.page-btn[disabled] { color: var(--gray-300); cursor: not-allowed; background: var(--gray-50); }
.crumbs { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.3rem; color: var(--gray-500); }
.crumbs a { color: var(--gray-500); text-decoration: none; }
.crumbs a:hover { color: var(--press-black); }
.crumbs .sep { color: var(--gray-300); font-family: var(--f-mono); }
.crumbs .current { color: var(--press-black); }

.modal { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-md); box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.06); width: 100%; max-width: 560px; max-height: calc(100% - 4rem); overflow: hidden; display: flex; flex-direction: column; }
.modal--sm { max-width: 400px; }
.modal--md { max-width: 560px; }
.modal--lg { max-width: 720px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 2rem 2.4rem 1.2rem; gap: var(--md); flex-shrink: 0; }
.modal-title { font-size: 2rem; font-weight: 650; line-height: 1.4; margin: 0; color: var(--press-black); }
.modal-close { width: 32px; height: 32px; margin: -0.4rem; display: flex; align-items: center; justify-content: center; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--gray-500); cursor: pointer; font-size: 18px; flex-shrink: 0; }
.modal-close:hover { background: var(--gray-50); color: var(--press-black); }
.modal-body { padding: 0 2.4rem; font-size: 1.4rem; line-height: 1.7; color: var(--gray-700); flex: 1 1 auto; overflow-y: auto; }
.modal-body > p { color: inherit; margin: 0 0 var(--md); max-width: none; }
.modal-footer { display: flex; justify-content: flex-end; align-items: center; gap: var(--sm); padding: 1.6rem 2.4rem 2rem; flex-shrink: 0; }
.modal-footer--between { justify-content: space-between; }
.modal-footer--stacked { flex-direction: column; align-items: stretch; gap: 0.8rem; }
.modal-step-bar { display: flex; gap: 0.4rem; padding: 0 2.4rem 0.8rem; }
.modal-step-bar .seg { flex: 1; height: 3px; border-radius: 2px; background: var(--gray-200); }
.modal-step-bar .seg.is-done,
.modal-step-bar .seg.is-active { background: var(--tiger-orange); }
.modal-stepper-meta { font-family: var(--f-mono); font-size: 1.1rem; letter-spacing: 0.08em; color: var(--gray-500); text-transform: uppercase; margin: 0 0 var(--sm); }

.dropdown-menu { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-sm); box-shadow: 0 8px 24px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.04); padding: 0.4rem; min-width: 200px; }
.dropdown-item { width: 100%; display: flex; align-items: center; gap: 0.8rem; border: 0; background: transparent; padding: 0.8rem 1rem; border-radius: var(--r-xs); color: var(--press-black); font: 500 1.3rem var(--f-body); text-align: left; cursor: pointer; }
.dropdown-item:hover { background: var(--gray-50); }
.dropdown-item .icon { color: var(--gray-500); font-size: 16px; }
.tooltip { display: inline-block; padding: 0.6rem 0.9rem; background: var(--press-black); color: var(--white); font-size: 1.2rem; border-radius: var(--r-xs); font-weight: 500; white-space: nowrap; }
.toast { min-width: 320px; max-width: 420px; display: flex; align-items: center; gap: 1rem; padding: 1.4rem 1.6rem; border: 1px solid var(--gray-200); border-radius: var(--r-sm); background: var(--white); color: var(--press-black); box-shadow: 0 8px 24px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.04); }
.alert { display: flex; align-items: flex-start; gap: 1rem; padding: 1.2rem 1.4rem; border: 1px solid var(--gray-200); border-radius: var(--r-sm); background: var(--gray-50); color: var(--gray-700); font-size: 1.3rem; line-height: 1.6; }

.badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.8rem; border-radius: var(--r-pill); background: var(--gray-100); color: var(--gray-700); font-size: 1.1rem; font-weight: 650; line-height: 1; white-space: nowrap; }
.badge--ink { background: var(--press-black); color: var(--white); }
.badge--orange { background: var(--tiger-orange); color: var(--press-black); }
.badge--success { background: rgba(22,163,74,0.12); color: #15803D; }
.badge--warning { background: rgba(220,38,38,0.12); color: #B91C1C; }
.badge--outline { background: transparent; border: 1px solid var(--gray-300); }
.status-dot { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.2rem; font-weight: 500; color: var(--gray-700); }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gray-400); flex-shrink: 0; }
.status-dot--processing::before { background: var(--tiger-orange); animation: pulse 1.4s infinite ease-in-out; }
.status-dot--done::before { background: #16A34A; }
.status-dot--failed::before { background: #DC2626; }
.status-dot--queued::before { background: var(--gray-400); }
.status-progress { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.2rem; font-weight: 500; color: var(--press-black); }
.status-progress svg { width: 14px; height: 14px; flex-shrink: 0; }
.status-progress .track { fill: none; stroke: var(--gray-200); stroke-width: 3; }
.status-progress .fill { fill: none; stroke: var(--tiger-orange); stroke-width: 3; stroke-linecap: butt; transform: rotate(-90deg); transform-origin: center; }
.status-progress .pct { color: var(--tiger-orange); font-family: var(--f-mono); font-size: 1.1rem; }
.tag { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.8rem; background: var(--gray-100); color: var(--press-black); border-radius: var(--r-xs); font-size: 1.2rem; font-weight: 500; line-height: 1; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1.1rem; background: var(--white); border: 1px solid var(--gray-200); color: var(--gray-700); border-radius: var(--r-pill); font-size: 1.2rem; font-weight: 500; cursor: pointer; line-height: 1; }
.chip:hover { border-color: var(--gray-300); color: var(--press-black); }
.chip.is-active { background: var(--press-black); border-color: var(--press-black); color: var(--white); }
.chip .count { font-family: var(--f-mono); font-size: 1.05rem; font-weight: 500; opacity: 0.7; }

.progress { width: 100%; height: 6px; background: var(--gray-100); border-radius: var(--r-pill); overflow: hidden; }
.progress-bar { display: block; height: 100%; background: var(--tiger-orange); border-radius: inherit; }
.skeleton { display: block; position: relative; overflow: hidden; background: var(--gray-100); border-radius: var(--r-sm); }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent); animation: shimmer 1.6s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.skeleton--text { height: 1em; margin-bottom: 0.6rem; }
.skeleton--text.is-short { width: 60%; margin-bottom: 0; }
.skeleton--box { height: 80px; }
.skeleton--circle { border-radius: 50%; }

.tbl { width: 100%; border-collapse: collapse; font-size: 1.3rem; background: var(--white); }
.tbl th,
.tbl td { text-align: left; padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--gray-200); color: var(--press-black); vertical-align: middle; }
.tbl th { font-weight: 650; font-size: 1.15rem; letter-spacing: 0.06em; color: var(--gray-500); text-transform: uppercase; border-bottom: 1px solid var(--gray-300); background: var(--white); white-space: nowrap; }
.tbl tbody tr { transition: background var(--d-fast) var(--ease-out); }
.tbl tbody tr:hover { background: var(--gray-50); }
.tbl-row-actions,
.row-actions { display: inline-flex; gap: 0.4rem; justify-content: flex-end; opacity: 0; transition: opacity var(--d-fast) var(--ease-out); }
.tbl tbody tr:hover .tbl-row-actions,
.tbl tbody tr:hover .row-actions { opacity: 1; }
.tbl th.is-sortable { cursor: pointer; user-select: none; }
.tbl th.is-sortable::after { content: ""; display: inline-block; width: 0; height: 0; margin-left: 0.4rem; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid var(--gray-300); vertical-align: middle; }
.tbl th.is-sorted-desc { color: var(--press-black); }
.tbl th.is-sorted-desc::after { border-top-color: var(--press-black); }
.card { display: flex; flex-direction: column; gap: var(--md); padding: var(--lg); border: 1px solid var(--gray-200); border-radius: var(--r-sm); background: var(--white); }
.card--raised { border-color: transparent; box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04); }
.card-title { margin: 0; color: var(--press-black); font-size: 1.6rem; font-weight: 650; line-height: 1.4; }
.card-body { margin: 0; color: var(--gray-700); font-size: 1.3rem; line-height: 1.6; }
.divider-text { display: flex; align-items: center; gap: var(--md); color: var(--gray-500); font-size: 1.2rem; }
.divider-text::before,
.divider-text::after { content: ""; flex: 1; height: 1px; background: var(--gray-200); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--3xl) var(--xl); gap: var(--md); }
.empty-illustration { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-sm); background: var(--gray-100); color: var(--gray-400); font-size: 32px; }
.empty-title { margin: 0; color: var(--press-black); font-size: 1.8rem; font-weight: 650; }
.empty-body { margin: 0; max-width: 36ch; color: var(--gray-500); font-size: 1.3rem; }
.btn-social { width: 100%; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem; padding: 0 1.6rem; border: 1px solid transparent; border-radius: var(--r-sm); font: 650 1.4rem/1 var(--f-body); cursor: pointer; white-space: nowrap; }
.btn-social .icon { width: 22px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.btn-social--kakao { background: #FEE500; color: #191919; }
.btn-social--naver { background: #03C75A; color: #FFFFFF; }
.btn-social--google { background: #FFFFFF; color: #1F1F1F; border-color: var(--gray-200); }

.option-card { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; padding: 1rem 1.1rem; border: 1px solid var(--gray-200); border-radius: var(--r-sm); background: var(--white); cursor: pointer; }
.option-card:hover { background: var(--gray-50); }
.option-card strong { display: block; color: var(--press-black); font-size: 1.35rem; }
.option-card span span { display: block; margin-top: 0.18rem; color: var(--gray-500); font-size: 1.22rem; line-height: 1.5; }

/* ========= HERO ROTATOR ========= */
.hero-rotator {
  position: relative;
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
}
.hero-rotator .rot-phrase {
  position: absolute;
  top: 0; left: 0;
  white-space: nowrap;
  animation: rot-cycle 9.9s infinite;
  animation-fill-mode: both;
  opacity: 0;
  transform: translateY(-100%);
}
.hero-rotator .rot-phrase:nth-child(1) { position: relative; }
.hero-rotator .rot-phrase:nth-child(2) { animation-delay: 3.3s; }
.hero-rotator .rot-phrase:nth-child(3) { animation-delay: 6.6s; }
@keyframes rot-cycle {
  0%     { opacity: 0; transform: translateY(-100%); }
  3.03%  { opacity: 1; transform: translateY(0); }
  33.33% { opacity: 1; transform: translateY(0); }
  36.36% { opacity: 0; transform: translateY(100%); }
  100%   { opacity: 0; transform: translateY(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-rotator .rot-phrase { animation: none; opacity: 1; transform: none; position: relative; }
  .hero-rotator .rot-phrase + .rot-phrase { display: none; }
}
