@import url("tokens/colors.css");
@import url("tokens/fonts.css");
@import url("tokens/spacing.css");
@import url("tokens/typography.css");

/*
 * Neora Design System integration layer
 * Source: /Neora Design System (2026-07-21)
 * Existing class names are retained so authentication, admin and tutor scripts
 * continue to work while every screen shares the same visual language.
 */

:root {
  --brand: var(--teal-600);
  --brand-dark: var(--grey-900);
  --brand-light: var(--nr-bg-brand-weak);
  --navy: var(--text-primary);
  --text: var(--text-primary);
  --text-soft: var(--text-secondary);
  --bg: var(--nr-bg-primary);
  --bg-soft: var(--nr-bg-secondary);
  --line: var(--border-secondary);
  --accent-cta: var(--fill-brand);
  --radius: var(--radius-xl);
  --maxw: 1120px;
}

html { font-size: 17px; scroll-behavior: smooth; }
html.font-large { font-size: 21px; }

body {
  min-width: 320px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--fill-weak);
  line-height: 1.6;
  letter-spacing: -0.005em;
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font-family: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--text-brand); text-underline-offset: 3px; }

/* Korean action labels use body tracking; wide tracking is reserved for short English labels. */
.admin-cta,
.outline-action { letter-spacing: -0.005em; }
img { max-width: 100%; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--teal-500) 38%, transparent);
  outline-offset: 2px;
}

.container { max-width: var(--maxw); padding-inline: var(--space-6); }

/* Top navigation */
header {
  min-height: 72px;
  background: color-mix(in srgb, var(--white) 96%, transparent);
  border-bottom: 1px solid var(--border-secondary);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 72px;
  max-width: 1240px;
  padding: var(--space-3) var(--space-6);
  gap: var(--space-3);
}

.logo { gap: var(--space-2); }
.logo img { width: 146px; }
.logo span {
  color: var(--text-brand);
  font-size: var(--caption-size);
  font-weight: 700;
  letter-spacing: .08em;
}

.nav-links { gap: var(--space-1); }
.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-4);
  border-radius: var(--radius-m);
  color: var(--text-secondary);
  font-size: var(--label-m-size);
  font-weight: var(--label-m-w);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav-links a:hover { color: var(--text-primary); background: var(--fill-secondary); }
.nav-links a.active { color: var(--text-brand); background: var(--nr-bg-brand-weak); }

.nav-tools { gap: var(--space-2); }
.font-toggle,
.account-trigger {
  min-height: 44px;
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-m);
  background: var(--white);
  color: var(--text-primary);
  box-shadow: none;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.font-toggle { padding: 0 var(--space-4); font-size: var(--label-m-size); }
.font-toggle:hover,
.account-trigger:hover { background: var(--fill-secondary); border-color: var(--border-strong); }
.account-trigger { padding: 4px var(--space-3) 4px 4px; border-radius: var(--radius-full); }
.account-avatar { width: 36px; height: 36px; background: var(--fill-primary); }
.account-label strong { font-size: var(--label-s-size); }
.account-label small { color: var(--text-tertiary); font-size: var(--caption-s-size); }
.account-arrow { color: var(--text-tertiary); }
.account-dropdown {
  top: calc(100% + var(--space-2));
  width: 208px;
  padding: var(--space-2);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3);
}
.account-dropdown a,
.account-dropdown button {
  min-height: 44px;
  padding: 0 var(--space-3);
  display: flex;
  align-items: center;
  border-radius: var(--radius-m);
  color: var(--text-primary);
  font-size: var(--body-2-size);
}

/* Keep the primary menu at the visual center, independent of side controls. */
@media (min-width: 1180px) {
  .nav {
    max-width: 1600px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
  }

  .nav > .logo {
    grid-column: 1;
    justify-self: start;
  }

  .nav > .nav-links {
    grid-column: 2;
    justify-self: center;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .nav > .nav-tools,
  .nav > .font-toggle {
    grid-column: 3;
    justify-self: end;
    margin-left: 0;
  }
}
.account-dropdown a:hover,
.account-dropdown button:hover { background: var(--fill-secondary); }

/* Typography and page rhythm */
main { background: var(--fill-weak); }
section { padding: var(--space-16) 0; }
section.alt { background: var(--fill-secondary); }
h1, h2, h3, h4,
.hero h1,
.section-title,
.deck-hero h1,
.chapter-sub,
.modal-head h3,
.account-hero h1,
.profile-top h2,
.quick-card h2,
.inquiry-hero h1,
.board-toolbar h2,
.form-title,
.detail-head h2,
.intro h1,
.auth-box h1,
.auth-box h2,
.reset-box h1,
.tutor-heading h1,
.starter strong,
.adm-head h1,
.section-heading h2 {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.22; font-weight: 700; }
.section-title { font-size: var(--h1-size); line-height: var(--h1-lh); font-weight: 700; }
.section-sub { max-width: 660px; margin-inline: auto; color: var(--text-secondary); font-size: var(--body-1-size); }

.eyebrow,
.reset-label,
.tutor-heading .eyebrow,
.admin-eyebrow,
.section-heading span,
.deck-hero .crumb {
  color: var(--text-brand) !important;
  font-size: var(--caption-size) !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
}

/* Hero images remain edge-to-edge: no translucent copy card, no image radius. */
.hero { padding: var(--space-16) 0; background: var(--fill-secondary); }
.hero-photo {
  min-height: 540px;
  isolation: isolate;
  border-radius: 0;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--white) 82%, transparent) 0%, color-mix(in srgb, var(--white) 48%, transparent) 42%, transparent 68%);
  pointer-events: none;
}
.hero-photo .hero-copy { max-width: 640px; }
.hero.hero-photo h1,
.hero.hero-photo p,
.hero.hero-photo h1 strong { color: var(--text-primary); text-shadow: none; }
.hero.hero-photo p { font-size: var(--body-1-size); font-weight: 500; line-height: 1.65; }
.hero.hero-values::before { background: linear-gradient(90deg, rgba(38,75,89,.86) 0%, rgba(38,75,89,.48) 46%, transparent 72%); }
.hero.hero-values h1,
.hero.hero-values p,
.hero.hero-values h1 strong { color: var(--white); }
.hero-actions { gap: var(--space-3); }

/* Actions */
.btn,
.auth-btn,
.reset-btn,
.new-button,
.submit-button,
.send-button,
.admin-cta,
.outline-action,
.act button,
.small-action,
.card-actions a,
.card-actions button,
.icon-btn,
.outline-btn,
.cta-btn,
.asset-action,
.rail-btn,
.stock-category-tabs button,
.project-item button,
.layer-actions button,
.danger-btn,
.export-actions button {
  min-height: 48px;
  padding: 0 var(--space-5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-l);
  font-size: var(--label-m-size);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: none;
  transform: none;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn:hover,
.card-link:hover { transform: none; }
.btn-primary,
.auth-btn,
.reset-btn,
.new-button,
.submit-button,
.send-button,
.admin-cta,
.cta-btn {
  border: 1px solid var(--fill-brand);
  background: var(--fill-brand);
  color: var(--text-alt);
}
.btn-primary:hover,
.auth-btn:hover,
.reset-btn:hover,
.new-button:hover,
.submit-button:hover,
.send-button:hover,
.admin-cta:hover,
.cta-btn:hover { background-image: linear-gradient(var(--overlay-press), var(--overlay-press)); }
.btn-outline,
.outline-action,
.outline-btn {
  border: 1px solid var(--border-secondary);
  background: var(--fill-secondary);
  color: var(--text-primary);
  margin-left: 0;
}
button:disabled, .btn[aria-disabled="true"] { opacity: var(--disabled-opacity); cursor: default; }

/* Cards, lists and disclosure */
.cards { gap: var(--space-4); }
.card,
.step,
.value-item,
.profile-card,
.quick-card,
.auth-box,
.reset-box,
.inquiry-list,
.inquiry-panel,
.admin-card,
.template-admin-card,
.asset-admin-card {
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: none;
}
.card { padding: var(--space-6); }
.card h3, .step h3, .value-item h3 { color: var(--text-primary); }
.card p, .step p { color: var(--text-secondary); }
.card-link { transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.card-link:hover .card { border-color: var(--border-brand); background: var(--nr-bg-brand-weak); }
.feature-icon { width: 44px; height: 44px; }
.step { padding: var(--space-6); gap: var(--space-5); }
.step-num,
.step-num.icon-step {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radius-l);
  background: var(--nr-bg-brand-weak);
  color: var(--text-brand);
  font-size: var(--title-1-size);
}
.step .tip,
.value-item .easy,
.members-note,
.privacy-note,
.answer-box,
.notice-card,
.tip-card,
.palette-note,
.preflight,
.brand-check {
  border: 0;
  border-left: 3px solid var(--border-brand);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  background: var(--nr-bg-brand-weak);
  color: var(--text-primary);
}
.value-item { padding: var(--space-6); }
.value-item h3 [lang="en"] { color: var(--text-tertiary); }

details {
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-xl);
  background: var(--white);
}
summary { min-height: 64px; display: flex; align-items: center; color: var(--text-primary); }
summary::after { color: var(--text-brand); }
details[open] { border-color: var(--border-brand); }
details .answer { color: var(--text-secondary); }
.faq-notice {
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--nr-bg-brand-weak);
}
.faq-group h2 { font-family: var(--font-sans); font-weight: 700; }
.notice { border: 1px solid var(--border-secondary); border-radius: var(--radius-xl); background: var(--white); color: var(--text-secondary); }

/* Forms */
.field label,
.form-field label,
.admin-field span,
.inline-form span { color: var(--text-secondary); font-size: var(--label-s-size); font-weight: 600; }
.field input,
.form-field input,
.form-field textarea,
.composer textarea,
.tutor-widget-form textarea,
.admin-field input,
.admin-field select,
.inline-form input,
.asset-admin-toolbar select,
.asset-edit-row input,
.asset-edit-row select,
.category-row input,
.control-group textarea,
.control-group select,
.control-row input,
.control-row select,
.title-field input {
  min-height: 48px;
  padding: 0 var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-m);
  outline: 0;
  background: var(--fill-secondary);
  color: var(--text-primary);
  font-size: 16px;
  transition: background var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.form-field textarea,
.composer textarea,
.tutor-widget-form textarea,
.control-group textarea { padding-block: var(--space-3); }
.field input:focus,
.form-field input:focus,
.form-field textarea:focus,
.composer textarea:focus,
.tutor-widget-form textarea:focus,
.admin-field input:focus,
.admin-field select:focus,
.inline-form input:focus,
.title-field input:focus {
  border: 1.5px solid var(--border-primary);
  outline: 0;
  background: var(--white);
}
.msg { border-radius: var(--radius-m); }
.msg.err { background: color-mix(in srgb, var(--red-500) 8%, var(--white)); color: var(--text-danger); }
.msg.ok { background: var(--nr-bg-brand-weak); color: var(--text-brand); }

/* Account */
.account-hero,
.inquiry-hero { padding: var(--space-12) 0 var(--space-8); background: var(--fill-secondary); border-color: var(--border-secondary); }
.account-hero h1,
.inquiry-hero h1 { font-size: var(--display-2-size); font-weight: 700; }
.profile-layout { gap: var(--space-5); padding: var(--space-8) 0 var(--space-16); }
.profile-card, .quick-card { padding: var(--space-6); }
.profile-mark { background: var(--fill-primary); }
.role-chip,
.status,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 var(--space-2);
  border: 0;
  border-radius: var(--radius-s);
  background: var(--nr-bg-brand-weak);
  color: var(--text-brand);
  font-size: var(--caption-size);
  font-weight: 600;
}
.quick-link { min-height: 64px; padding: var(--space-4) 0; }

/* Inquiry board */
.privacy-icon { border: 0; border-radius: var(--radius-s); background: var(--white); color: var(--text-brand); }
.board-grid { gap: var(--space-4); }
.inquiry-list, .inquiry-panel { overflow: hidden; }
.inquiry-list button { min-height: 72px; border-color: var(--border-secondary); color: var(--text-primary); }
.inquiry-list button:hover,
.inquiry-list button.active { background: var(--nr-bg-brand-weak); }
.inquiry-panel { padding: var(--space-6); }
.status.answered { background: var(--fill-primary); color: var(--white); }
.delete-button { min-height: 40px; border: 1px solid var(--border-secondary); border-radius: var(--radius-m); color: var(--text-danger); }

/* Login, registration and password recovery */
.landing { gap: var(--space-12); padding: var(--space-16) 0; }
.intro h1 { font-size: clamp(2rem, 4vw, var(--display-2-size)); font-weight: 700; }
.intro h1 strong { color: var(--text-brand); font-weight: 700; }
.intro li { min-height: 52px; display: flex; align-items: center; gap: var(--space-3); }
.intro li span { width: 28px; height: 28px; margin: 0; display: inline-grid; place-items: center; flex: 0 0 28px; }
.intro li span img { width: 24px; height: 24px; }
.auth-box, .reset-box { padding: var(--space-8); }
.auth-box h1, .auth-box h2, .reset-box h1 { font-weight: 700; }
.auth-btn, .reset-btn { width: 100%; }
.operator-notice { background: var(--nr-bg-brand-weak); border-color: var(--border-brand); }

/* Culture deck */
.deck-hero { background: var(--white); }
.deck-hero h1 { font-size: clamp(2.2rem, 5vw, var(--display-1-size)); font-weight: 700; }
.chapter { background: var(--white); border-color: var(--border-secondary); }
.chapter:nth-of-type(even) { background: var(--fill-secondary); }
.chapter-title { color: var(--text-brand); font-size: var(--caption-size); font-weight: 700; letter-spacing: .08em; }
.chapter-sub { font-size: var(--h2-size); font-weight: 700; }
.pills { gap: var(--space-2); }
.pill {
  min-height: 40px;
  padding: 0 var(--space-4);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--text-primary);
  font-size: var(--label-m-size);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.pill:hover { border-color: var(--border-brand); background: var(--nr-bg-brand-weak); transform: none; }
.pill.solid, .pill.cta { border-color: var(--fill-brand); background: var(--fill-brand); color: var(--white); }
.pill.deep { border-color: var(--fill-primary); background: var(--fill-primary); color: var(--white); }
dialog.deck-modal { border-radius: var(--radius-2xl); box-shadow: var(--shadow-3); }
.modal-head { background: var(--fill-primary); }
.modal-close { width: 40px; height: 40px; border-radius: var(--radius-m); }
.modal-body .easy { background: var(--nr-bg-brand-weak); border-radius: 0 var(--radius-m) var(--radius-m) 0; }

/* AI tutor */
.tutor-wrap { max-width: 920px; }
.tutor-heading h1 { font-size: var(--display-2-size); font-weight: 700; }
.model-bar { border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; background: var(--fill-secondary); }
.model-name { color: var(--text-brand); }
.status-dot,
.tutor-widget-status i { background: var(--grey-400); }
.model-status.ready .status-dot,
.model-status.responding .status-dot,
.tutor-widget-status.ready i,
.tutor-widget-status.responding i { background: var(--green-500); border: 0; }
.chat-panel { border-radius: 0 0 var(--radius-2xl) var(--radius-2xl); overflow: hidden; }
.bubble,
.tutor-widget-bubble { border-radius: var(--radius-xl); }
.message.assistant .bubble,
.tutor-widget-message.assistant .tutor-widget-bubble { border-radius: var(--radius-xs) var(--radius-xl) var(--radius-xl) var(--radius-xl); background: var(--fill-secondary); }
.message.user .bubble,
.tutor-widget-message.user .tutor-widget-bubble { border-radius: var(--radius-xl) var(--radius-xs) var(--radius-xl) var(--radius-xl); background: var(--fill-primary); }
.suggestions button,
.tutor-widget-suggestions button {
  min-height: 36px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--nr-bg-brand-weak);
  color: var(--text-brand);
  font-weight: 600;
}
.composer { background: var(--white); }
.send-button { min-width: 96px; }

.tutor-widget { right: var(--space-5); bottom: var(--space-5); }
.tutor-float-button {
  min-height: 56px;
  padding: 6px var(--space-5) 6px 6px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--fill-brand);
  box-shadow: var(--shadow-toast);
}
.tutor-float-button:hover,
.tutor-float-button:focus-visible { background: var(--fill-brand); background-image: linear-gradient(var(--overlay-press), var(--overlay-press)); outline: 0; }
.tutor-float-icon { width: 44px; height: 44px; color: var(--text-brand); }
.tutor-widget-panel { border-radius: var(--radius-3xl); box-shadow: var(--shadow-3); }
.tutor-widget-head { background: var(--fill-primary); }
.tutor-widget-head strong { font-family: var(--font-sans); font-weight: 700; }
.tutor-widget-hide { border: 0; border-radius: var(--radius-m); }
.tutor-widget-hide:hover { background: var(--overlay-press); outline: 0; }
.tutor-widget-log, .tutor-widget-foot { background: var(--fill-weak); }
.tutor-widget-form button { width: 72px; border-radius: var(--radius-m); background: var(--fill-brand); }

/* Admin */
.admin-main { background: var(--fill-weak); }
.adm-head h1, .section-heading h2 { font-weight: 700; }
.admin-tabs { border-color: var(--border-secondary); gap: var(--space-1); }
.admin-tabs button {
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 0;
  border-radius: var(--radius-m) var(--radius-m) 0 0;
  color: var(--text-secondary);
}
.admin-tabs button.active { background: var(--nr-bg-brand-weak); color: var(--text-brand); box-shadow: inset 0 -2px var(--teal-500); }
.stat { border-color: var(--border-secondary); border-radius: var(--radius-xl); }
.mtable { border-color: var(--border-secondary); border-radius: var(--radius-xl); overflow: hidden; }
.mtable th { background: var(--fill-secondary); color: var(--text-secondary); }
.mtable td { border-color: var(--border-secondary); }
.act .b-ok { border-color: var(--fill-brand); background: var(--fill-brand); }
.act .b-reset { background: var(--fill-primary); }
.admin-upload { border-radius: var(--radius-xl); background: var(--fill-weak); }
.template-admin-preview, .asset-admin-image { border-radius: var(--radius-m); }
.admin-toast, .toast { border-radius: var(--radius-full); background: var(--fill-primary); box-shadow: var(--shadow-toast); }

/* Design studio: preserve workspace geometry, align controls and surfaces. */
.studio-body { font-family: var(--font-sans); color: var(--text-primary); background: var(--fill-secondary); }
.studio-topbar { background: var(--white); border-color: var(--border-secondary); }
.studio-brand { letter-spacing: .08em; }
.studio-brand em { border-radius: var(--radius-s); background: var(--nr-bg-brand-weak); color: var(--text-brand); }
.tool-rail { background: var(--fill-primary); }
.rail-btn { min-height: 64px; padding: var(--space-2); border-radius: var(--radius-m); color: rgba(255,255,255,.72); }
.rail-btn.active, .rail-btn:hover { background: rgba(82,179,188,.18); box-shadow: none; }
.asset-panel, .property-panel, .workspace-toolbar, .page-strip { border-color: var(--border-secondary); }
.template-preview,
.stock-image-card,
.asset-action,
.shape-grid button,
.project-item,
.page-thumb,
.add-page-btn { border-color: var(--border-secondary); border-radius: var(--radius-m); box-shadow: none; }
.template-preview:hover,
.stock-image-card:hover,
.asset-action:hover { border-color: var(--border-brand); transform: none; }
.workspace { background: var(--fill-secondary); }
.workspace-toolbar, .page-strip { background: var(--fill-weak); }
.canvas-shell { box-shadow: var(--shadow-3); }
.modal-backdrop { background: var(--overlay-scrim); }
.export-modal { border-radius: var(--radius-2xl); box-shadow: var(--shadow-3); }

footer { margin-top: 0; background: var(--fill-primary); color: rgba(255,255,255,.72); }

@media (max-width: 860px) {
  .container { padding-inline: var(--space-5); }
  header, .nav { min-height: 64px; }
  .nav { padding: var(--space-2) var(--space-4); }
  .logo img { width: 126px; }
  .nav-links {
    margin-inline: calc(var(--space-4) * -1);
    padding: var(--space-1) var(--space-4) var(--space-2);
    gap: var(--space-1);
  }
  .nav-links a { min-height: 40px; padding: 0 var(--space-3); font-size: var(--label-s-size); }
  .account-trigger { border-color: transparent; }
  .account-dropdown { position: fixed; top: 66px; right: var(--space-4); }
  .landing { gap: var(--space-8); }
}

@media (max-width: 640px) {
  html { font-size: 16px; }
  html.font-large { font-size: 19px; }
  body { line-height: 1.55; }
  .container { padding-inline: var(--space-5); }
  section { padding: var(--space-12) 0; }
  .hero { padding: var(--space-12) 0; }
  .hero-photo { min-height: 500px; text-align: left; align-items: flex-end; padding-bottom: var(--space-8); }
  .hero-photo::before,
  .hero.hero-values::before {
    background: linear-gradient(0deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.84) 43%, rgba(255,255,255,.10) 74%);
  }
  .hero.hero-photo h1,
  .hero.hero-photo p,
  .hero.hero-photo h1 strong,
  .hero.hero-values h1,
  .hero.hero-values p,
  .hero.hero-values h1 strong { color: var(--text-primary); }
  .hero h1 { font-size: 2rem; line-height: 1.25; }
  .hero.hero-photo p { font-size: var(--body-2-size); }
  .hero-actions { grid-template-columns: 1fr; }
  .btn { min-height: 52px; width: 100%; padding: 0 var(--space-5); }
  .cards { gap: var(--space-3); }
  .card, .step, .value-item, .profile-card, .quick-card, .auth-box, .reset-box { padding: var(--space-5); border-radius: var(--radius-xl); }
  .step { flex-direction: row; gap: var(--space-4); }
  .step-num { flex-basis: 44px; width: 44px; height: 44px; }
  .section-title { font-size: var(--h2-size); }
  .section-sub { font-size: var(--body-2-size); margin-bottom: var(--space-8); }
  .account-hero h1, .inquiry-hero h1, .tutor-heading h1 { font-size: var(--h1-size); }
  .profile-layout { padding-top: var(--space-5); }
  .board-grid { margin-bottom: var(--space-12); }
  .inquiry-panel { padding: var(--space-5); }
  .auth-box, .reset-box { box-shadow: none; }
  .deck-hero h1 { font-size: 2.1rem; }
  .chapter { padding: var(--space-10) 0; }
  .pills { gap: var(--space-2); }
  .pill { min-height: 44px; }
  dialog.deck-modal { width: calc(100% - 32px); max-height: calc(100dvh - 32px); }
  .modal-head, .modal-body { padding: var(--space-5); }
  .composer { flex-direction: row; padding: var(--space-3); }
  .send-button { min-width: 72px; min-height: 48px; padding: 0 var(--space-3); }
  .tutor-widget { right: var(--space-3); bottom: calc(var(--space-3) + env(safe-area-inset-bottom)); }
  .tutor-widget.open { background: var(--overlay-scrim); }
  .tutor-widget-panel { height: 90dvh; border-radius: var(--radius-3xl) var(--radius-3xl) 0 0; }
  .tutor-widget-form { align-items: flex-end; }
  .tutor-widget-form button { min-height: 48px; }
  footer { padding-bottom: calc(var(--space-10) + env(safe-area-inset-bottom)); }
}

/* Claude Design source-of-truth compatibility
 * Page-specific legacy CSS is intentionally overridden here.
 */
body h1,
body h2,
body h3,
body h4,
body .section-title,
body .chapter-sub,
body .form-title,
body .starter strong,
body .preview-toolbar strong {
  font-family: var(--font-sans) !important;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -.02em;
}

.analytics-summary-card strong,
.self-map-summary-card strong {
  font-family: var(--font-sans) !important;
  font-weight: 700;
  letter-spacing: -.02em;
}

.products-hero h1,
.product-catalog h2,
.product-detail-heading h1,
.product-detail-placeholder h2,
.growth-hero h1,
.detail-calculator-heading h2,
.goal-action-card h3,
.result-card h2,
.tool-step > h2,
.self-intro h2,
.question-card h2,
.guidance-card h3,
.orders-hero h1,
.customer-order-head h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -.02em;
}

.product-card,
.product-detail-placeholder,
.customer-order-card,
.growth-main,
.growth-summary,
.growth-card,
.income-goal-planner,
.goal-assumptions,
.team-reward-estimator,
.self-intro,
.question-card,
.result-card,
.summary-item,
.guidance-card,
.analytics-card,
.catalog-admin-card,
.studio-order-admin-card {
  border-color: var(--border-secondary);
  border-radius: var(--radius-2xl);
  box-shadow: none;
}

.product-search input,
.orders-toolbar select,
.orders-toolbar input,
.form-field input,
.form-field select,
.form-field textarea,
.product-row input,
.product-row select,
.money-input,
.inline-choice,
.utm-builder textarea,
.order-admin-field input,
.order-admin-field select,
.order-admin-field textarea {
  border-color: var(--border-secondary);
  border-radius: var(--radius-m);
}

.product-category-tabs button,
.product-admin-edit,
.orders-toolbar button,
.income-presets button,
.step-tab,
.btn-tool,
.scale-option span,
.catalog-admin-actions a,
.catalog-admin-actions button {
  border-radius: var(--radius-l);
}

.goal-action-card,
.guidance-card,
.result-highlight,
.order-admin-guide,
.print-pricing-admin,
.order-shipping-box {
  border-left: 1px solid var(--border-secondary);
}

.studio-update-dialog h2,
.panel-heading h1,
.panel-heading h2,
.empty-preview h2,
.detail-section h2,
.project-title input {
  font-family: var(--font-sans) !important;
  font-weight: 700;
  letter-spacing: -.02em;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
