:root {
  --navy: #16305c;
  --navy-dark: #0d2346;
  --navy-soft: #eaf1fa;
  --blue-pale: #f3f7fc;
  --blue-surface: #f7faff;
  --gold: #b8873b;
  --gold-dark: #765319;
  --gold-soft: #f5ead5;
  --beige: #f5efe4;
  --ivory: #fbfaf7;
  --canvas: var(--blue-pale);
  --surface: #ffffff;
  --surface-soft: var(--blue-surface);
  --ink: #14233d;
  --muted: #626a76;
  --soft-muted: #8a9099;
  --line: #dce5f0;
  --line-strong: #c9d6e5;
  --forest: var(--navy);
  --forest-dark: var(--navy-dark);
  --forest-soft: var(--navy-soft);
  --mint: #e4effb;
  --coral: #f6e4df;
  --slate: #e6edf2;
  --blue: #e4edf4;
  --violet: #ece8f5;
  --danger: #a44e3c;
  --sidebar-width: 238px;
  --content-width: 1360px;
  --shadow-small: 0 8px 22px rgba(22, 48, 92, 0.09);
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  letter-spacing: -0.014em;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(184, 135, 59, 0.48);
  outline-offset: 2px;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

[hidden] {
  display: none !important;
}

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

.app-shell {
  min-height: 100vh;
}

.profile-onboarding {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow-y: auto;
  background: var(--ivory);
}

.profile-onboarding::before,
.profile-onboarding::after {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 48, 92, 0.11), rgba(243, 247, 252, 0));
  content: "";
}

.profile-onboarding::before { top: -210px; right: -120px; }
.profile-onboarding::after { bottom: -260px; left: -140px; }

.onboarding-card {
  width: min(790px, 100%);
  margin: auto;
  padding: 18px 0 32px;
}

.onboarding-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 18px;
}

.onboarding-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.onboarding-head-actions span {
  color: #7c878d;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
}

.onboarding-head-actions button {
  height: 30px;
  padding: 0 10px;
  border: 1px solid #dbe2e6;
  border-radius: 7px;
  background: #fff;
  color: #657078;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.onboarding-progress {
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: #e8edf0;
}

.onboarding-progress i {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
  transition: width 220ms ease;
}

.onboarding-step {
  padding: 52px 2px 12px;
  animation: onboarding-in 220ms ease both;
}

@keyframes onboarding-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.onboarding-kicker {
  margin: 0 0 11px;
  color: var(--gold-dark);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .16em;
}

.onboarding-step h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 780;
  letter-spacing: -.055em;
  line-height: 1.15;
}

.onboarding-description {
  max-width: 650px;
  margin: 14px 0 27px;
  color: #707a80;
  font-size: 12px;
  line-height: 1.65;
}

.profile-choice-grid {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-choice-grid { grid-template-columns: repeat(3, 1fr); }
.identity-choice-grid { grid-template-columns: repeat(5, 1fr); }

.profile-choice-grid label {
  position: relative;
  cursor: pointer;
}

.profile-choice-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-choice-grid label > span {
  display: grid;
  min-height: 78px;
  align-content: center;
  gap: 5px;
  padding: 14px 15px;
  border: 1px solid #dce3e7;
  border-radius: 11px;
  background: #fff;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.profile-choice-grid label:hover > span {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.profile-choice-grid input:checked + span {
  border-color: var(--navy);
  background: var(--navy-soft);
  box-shadow: 0 0 0 1px var(--navy), 0 8px 20px rgba(22, 48, 92, .1);
}

.profile-choice-grid input:focus-visible + span { outline: 3px solid rgba(184, 135, 59, .42); outline-offset: 2px; }
.profile-choice-grid b { font-size: 12px; }
.profile-choice-grid small { color: #879198; font-size: 9px; line-height: 1.35; }
.identity-choice-grid label > span { min-height: 58px; place-items: center; padding: 10px; }

.profile-field-label {
  display: block;
  margin: 0 0 10px;
  color: #59636a;
  font-size: 10px;
  font-weight: 750;
}

.identity-choice-grid .profile-field-label { grid-column: 1 / -1; }

.segmented-question,
.career-question {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 25px 0 0;
  padding: 0;
  border: 0;
}

.segmented-question legend,
.career-question legend { flex: 0 0 100%; }
.segmented-question label,
.career-question label { position: relative; cursor: pointer; }
.segmented-question input,
.career-question input { position: absolute; opacity: 0; }
.segmented-question span,
.career-question span {
  display: grid;
  min-width: 118px;
  height: 39px;
  place-items: center;
  padding: 0 14px;
  border: 1px solid #dbe2e6;
  border-radius: 8px;
  background: #fff;
  color: #58636a;
  font-size: 10px;
  font-weight: 680;
}

.segmented-question input:checked + span,
.career-question input:checked + span { border-color: var(--navy); background: var(--navy-soft); color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 12px;
}

.profile-form-grid .career-question { grid-column: span 2; margin: 0; }
.profile-input { display: grid; align-content: end; gap: 8px; }
.profile-input > span:first-child { color: #59636a; font-size: 10px; font-weight: 750; }
.profile-input small { color: #9aa3a8; font-weight: 500; }
.profile-input > input,
.input-with-unit {
  width: 100%;
  height: 40px;
  border: 1px solid #dbe2e6;
  border-radius: 8px;
  background: #fff;
}
.profile-input > input { padding: 0 11px; color: #30383d; font-size: 11px; }
.input-with-unit { display: flex; align-items: center; overflow: hidden; }
.input-with-unit input { width: 100%; height: 100%; padding: 0 4px 0 11px; border: 0; outline: 0; background: transparent; font-size: 11px; }
.input-with-unit b { padding-right: 11px; color: #8a9499; font-size: 9px; }
.insurance-question { align-content: end; margin: 0; }
.insurance-question span { min-width: 80px; }

.current-projects-box {
  margin-top: 24px;
  padding: 15px;
  border: 1px solid #dfe5e8;
  border-radius: 11px;
  background: #f8fafb;
}

.current-projects-box > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.current-projects-box > div:first-child span { display: grid; gap: 4px; }
.current-projects-box b { font-size: 10px; }
.current-projects-box small { color: #879198; font-size: 8px; line-height: 1.45; }
.current-projects-box > div:first-child button { border: 0; background: transparent; color: var(--navy); cursor: pointer; font-size: 9px; font-weight: 800; }
#currentProjectRows { display: grid; gap: 7px; margin-top: 10px; }
#currentProjectRows:empty { margin-top: 0; }
.current-project-row { display: grid; grid-template-columns: minmax(150px, 1fr) 145px 120px 28px; gap: 7px; }
.current-project-row input,
.current-project-row select { min-width: 0; height: 35px; padding: 0 9px; border: 1px solid #dbe2e6; border-radius: 7px; background: #fff; color: #4b555b; font-size: 9px; }
.current-project-row button { border: 0; background: transparent; color: #929ca1; cursor: pointer; font-size: 17px; }

.profile-form-error { min-height: 18px; margin: 12px 2px 0; color: #a44e3c; font-size: 10px; }
.onboarding-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 5px 2px 0; }
.onboarding-actions button { height: 43px; padding: 0 25px; border-radius: 9px; cursor: pointer; font-size: 11px; font-weight: 750; }
.onboarding-back { border: 1px solid #dbe2e6; background: #fff; color: #606b71; }
.onboarding-next { border: 1px solid var(--navy); background: var(--navy); color: #fff; }
.onboarding-next:hover { background: var(--navy-dark); }
.onboarding-next:disabled { opacity: .55; cursor: wait; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 28px 18px 20px;
  border-right: 1px solid var(--line);
  background: #f8fbff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2400 / 662;
  border-radius: 4px;
  background: transparent;
  object-fit: contain;
  object-position: left center;
}

.onboarding-head .brand-logo { width: 210px; }

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--forest);
  color: #fff;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.65;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.brand-copy small {
  color: var(--soft-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.primary-nav {
  display: grid;
  gap: 4px;
  margin-top: 42px;
}

.nav-item {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #606763;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  transition: background 150ms ease, color 150ms ease;
}

.nav-item:hover {
  background: var(--navy-soft);
  color: var(--ink);
}

.nav-item.is-active {
  background: var(--navy);
  color: #fff;
}

.nav-item svg {
  width: 19px;
  height: 19px;
}

.nav-count {
  min-width: 22px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 10px;
  background: #edf0f2;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 20px;
  text-align: center;
}

.nav-item.is-active .nav-count {
  background: var(--gold);
  color: var(--navy-dark);
}

.nav-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.nav-section > p {
  margin: 0 12px 8px;
  color: var(--soft-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.sync-card {
  margin-top: auto;
  padding: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--navy-soft);
}

.sync-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-card-head strong {
  font-size: 12px;
  font-weight: 750;
}

.live-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #3f9a72;
  box-shadow: 0 0 0 3px rgba(63, 154, 114, 0.12);
}

.sync-card p {
  margin: 9px 0 13px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.sync-card button {
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.profile-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
}

.sidebar-foot > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.sidebar-foot strong {
  font-size: 11px;
  font-weight: 700;
}

.sidebar-foot small {
  color: var(--soft-muted);
  font-size: 9px;
}

.sidebar-foot button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--soft-muted);
  cursor: pointer;
}

.main-content {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.mobile-header {
  display: none;
}

.content-wrap {
  width: min(var(--content-width), calc(100% - 64px));
  margin: 0 auto;
  padding: 52px 0 72px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.page-description {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.head-actions {
  display: flex;
  width: min(390px, 45vw);
  flex: 0 0 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 11px;
}

.personalize-button {
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 20px 13px 22px;
  border: 1px solid var(--navy);
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 30px rgba(22, 48, 92, 0.22);
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.personalize-button > span {
  display: grid;
  gap: 3px;
}

.personalize-button strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.personalize-button small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}

.personalize-button svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  stroke-width: 2;
}

.personalize-button:hover {
  background: var(--navy-dark);
  box-shadow: 0 15px 34px rgba(22, 48, 92, 0.28);
  transform: translateY(-1px);
}

.head-utility-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
}

.account-button {
  height: 39px;
  max-width: 170px;
  padding: 0 13px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: #4d5550;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-button.is-authenticated {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--navy);
}

.last-sync {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 18px;
  border-right: 1px solid var(--line-strong);
}

.last-sync > span:last-child {
  display: grid;
  gap: 2px;
}

.last-sync strong {
  color: #4d5550;
  font-size: 10px;
  font-weight: 700;
}

.last-sync small {
  color: var(--soft-muted);
  font-size: 9px;
}

.refresh-button {
  display: flex;
  height: 39px;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.refresh-button:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-small);
}

.refresh-button svg {
  width: 17px;
  height: 17px;
}

.refresh-button.is-loading svg {
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.notice-strip {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--ivory);
}

.notice-label {
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: 4px;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.notice-strip p {
  margin: 0;
  color: #5d6d75;
  font-size: 10px;
  line-height: 1.45;
}

.notice-strip button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #7c8b92;
  cursor: pointer;
  font-size: 17px;
}

.notice-strip .receipt-open-button {
  flex: 0 0 auto;
  height: 25px;
  margin-left: auto;
  padding: 0 8px;
  border: 1px solid #cbd9df;
  border-radius: 5px;
  background: #fff;
  color: #496572;
  font-size: 8px;
  font-weight: 750;
}

.notice-strip.is-running { border-color: #cbded5; background: #f0f7f3; }
.notice-strip.is-running .notice-label { background: #dceee5; color: #205b45; }
.notice-strip.is-error { border-color: #e7cfd3; background: #faf3f4; }
.notice-strip.is-error .notice-label { background: #f2dfe2; color: #873e49; }
.receipt-issue-list span { max-width: 76%; color: #873e49; text-align: right; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.summary-card {
  position: relative;
  display: grid;
  grid-template-columns: 43px 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 13px;
  min-height: 93px;
  padding: 17px 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.summary-card:hover {
  transform: translateY(-1px);
  border-color: #d4dad6;
  box-shadow: var(--shadow-small);
}

.summary-icon {
  display: grid;
  grid-row: 1 / span 2;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 10px;
}

.summary-icon.mint { background: var(--navy-soft); color: var(--navy); }
.summary-icon.coral { background: var(--coral); color: #9f4f3f; }
.summary-icon.sky { background: var(--slate); color: #47697c; }
.summary-icon.seasonal { background: #e7eef5; color: #416b89; }

.summary-icon svg {
  width: 20px;
  height: 20px;
}

.summary-card > span:nth-child(2) {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.summary-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.summary-card strong {
  font-size: 23px;
  font-weight: 770;
  letter-spacing: -0.04em;
}

.summary-card em {
  grid-column: 2;
  color: var(--soft-muted);
  font-size: 9px;
  font-style: normal;
}

.summary-card em b {
  color: var(--danger);
}

.summary-arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 15px;
  color: #a7aca8;
}

.explorer {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.explorer-toolbar {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 17px;
  border-bottom: 1px solid var(--line);
}

.search-box {
  display: flex;
  width: min(470px, 55%);
  height: 39px;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.search-box:focus-within {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(184, 135, 59, 0.16);
}

.search-box svg {
  width: 17px;
  color: #858c87;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}

.search-box input::placeholder {
  color: #a2a7a3;
}

.search-box kbd {
  padding: 3px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--soft-muted);
  font-family: inherit;
  font-size: 8px;
}

.view-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f5f6;
}

.view-switch button {
  display: flex;
  height: 31px;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
}

.view-switch button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(28, 35, 31, 0.08);
}

.view-switch svg {
  width: 15px;
  height: 15px;
}

.explorer-body {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 660px;
}

.filter-panel {
  padding: 21px 18px 28px;
  border-right: 1px solid var(--line);
  background: #f8fafb;
}

.mobile-filter-head,
.mobile-apply-button {
  display: none;
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-head strong {
  font-size: 12px;
  font-weight: 760;
}

.reset-button {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #8a918c;
  cursor: pointer;
  font-size: 9px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.filter-group {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 19px 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.filter-group:last-of-type {
  border-bottom: 0;
}

.filter-group legend {
  width: 100%;
  margin-bottom: 4px;
  padding: 0;
  color: #4f5752;
  font-size: 10px;
  font-weight: 740;
}

.help-button {
  display: inline-grid;
  width: 15px;
  height: 15px;
  margin-left: 4px;
  place-items: center;
  border: 1px solid #cfd4d0;
  border-radius: 50%;
  background: transparent;
  color: var(--soft-muted);
  cursor: help;
  font-size: 8px;
}

.radio-row,
.check-row {
  display: flex;
  min-height: 22px;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #5d655f;
  font-size: 10px;
}

.radio-row:hover,
.check-row:hover {
  color: var(--ink);
}

.radio-row input,
.check-row input,
.field-chips input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.radio-row::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border: 1px solid #c6ccc8;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 3px #fff;
}

.radio-row:has(input:checked)::before {
  border-color: var(--forest);
  background: var(--forest);
}

.radio-row:has(input:focus-visible)::before,
.check-row:has(input:focus-visible)::before,
.field-chips label:has(input:focus-visible) span {
  outline: 3px solid rgba(184, 135, 59, 0.42);
  outline-offset: 2px;
}

.radio-row small {
  margin-left: auto;
  color: #a0a6a2;
  font-size: 9px;
}

.field-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.field-chips label {
  cursor: pointer;
}

.field-chips span {
  display: block;
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: #707772;
  font-size: 9px;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.field-chips label:hover span {
  border-color: var(--gold);
  color: var(--forest);
}

.field-chips label:has(input:checked) span {
  border-color: var(--navy);
  background: var(--navy-soft);
  color: var(--navy);
  font-weight: 700;
}

.check-row::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border: 1px solid #c6ccc8;
  border-radius: 3px;
  background: #fff;
}

.check-row:has(input:checked)::before {
  border-color: var(--forest);
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='m3 7 2.4 2.4L11 4.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.check-row small {
  margin-left: auto;
  color: #a0a6a2;
  font-size: 8px;
}

.results-panel {
  min-width: 0;
  padding: 21px 23px 30px;
}

.results-head {
  display: flex;
  min-height: 35px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.results-head h2 {
  margin: 1px 0 0;
  font-size: 13px;
  font-weight: 760;
}

.results-head h2 span {
  margin-left: 3px;
  color: var(--forest);
}

.results-head h2 small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.sort-select {
  position: relative;
  flex: 0 0 auto;
}

.sort-select select {
  height: 31px;
  padding: 0 29px 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  appearance: none;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
}

.sort-select svg {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 12px;
  pointer-events: none;
  color: #858c87;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.active-filter {
  display: inline-flex;
  height: 22px;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  border: 1px solid #d8c59f;
  border-radius: 5px;
  background: var(--gold-soft);
  color: var(--navy);
  cursor: pointer;
  font-size: 8px;
}

.active-filter b {
  color: #799286;
  font-size: 11px;
  font-weight: 500;
}

.announcement-list {
  display: grid;
  gap: 9px;
}

.results-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.results-pagination[hidden] { display: none; }
.results-pagination p { margin: 0; color: var(--muted); font-size: 9px; font-weight: 650; white-space: nowrap; }
.pagination-controls, .pagination-controls > span { display: flex; align-items: center; gap: 5px; }
.pagination-controls button { min-width: 32px; height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--navy); cursor: pointer; font-size: 9px; font-weight: 750; }
.pagination-controls button[aria-current="page"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.pagination-controls button:disabled { cursor: not-allowed; opacity: .42; }
.pagination-controls button:not(:disabled):hover { border-color: #8aa4c4; background: var(--navy-soft); }
.pagination-controls button[aria-current="page"]:hover { background: var(--navy-dark); }
.pagination-ellipsis { display: grid; min-width: 20px; place-items: center; color: #8b938e; font-size: 11px; }

.announcement-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 18px;
  min-height: 145px;
  padding: 18px 18px 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.announcement-card:hover {
  transform: translateY(-1px);
  border-color: #ccd4cf;
  box-shadow: 0 7px 20px rgba(27, 37, 31, 0.06);
}

.announcement-card.is-forecast {
  border-style: dashed;
  border-color: #bdced8;
  background: #fbfdff;
}

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

.card-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.source-badge,
.status-badge,
.verified-badge {
  display: inline-flex;
  height: 20px;
  align-items: center;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 740;
}

.source-badge {
  background: #eef2f3;
  color: #505853;
}

.source-badge[data-source="nrf"],
.source-badge[data-source="moe"] {
  background: var(--gold-soft);
  color: var(--navy);
}

.source-badge[data-source="khidi"],
.source-badge[data-source="iitp"],
.source-badge[data-source="ketep"] {
  background: var(--blue);
  color: #3c6280;
}

.source-badge[data-source="private"] {
  background: var(--violet);
  color: #665582;
}

.source-badge[data-source="campus"] {
  background: var(--slate);
  color: #496779;
}

.source-badge[data-source="society"] {
  background: #f3e8ec;
  color: #7f5361;
}

.status-badge.new {
  background: #e7f3ec;
  color: #2f7355;
}

.status-badge.closing {
  background: #f8e9e5;
  color: #a34f3c;
}

.status-badge.upcoming {
  background: #e8eef5;
  color: #486987;
}

.status-badge.forecast {
  background: #e6edf5;
  color: #3e6380;
}

.verified-badge {
  gap: 3px;
  padding: 0;
  color: #849089;
  font-weight: 600;
}

.verified-badge svg {
  width: 12px;
  height: 12px;
  color: #4d8a6d;
}

.verified-badge.is-forecast {
  color: #58758a;
}

.verified-badge.is-collected {
  color: #647784;
}

.announcement-title {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #202522;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.4;
  text-align: left;
}

.announcement-title:hover {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.announcement-summary {
  display: -webkit-box;
  margin: 7px 0 11px;
  overflow: hidden;
  color: #747b76;
  font-size: 10px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.field-tag,
.career-tag,
.applicant-tag {
  display: inline-flex;
  height: 22px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f8fafb;
  color: #707873;
  font-size: 8px;
}

.career-tag {
  border-color: #dfe5e8;
  background: #f5f8fa;
  color: #65737a;
}

.card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  padding-left: 17px;
  border-left: 1px solid var(--line);
}

.save-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #858c87;
  cursor: pointer;
}

.save-button:hover,
.save-button.is-saved {
  border-color: var(--gold);
  background: var(--forest-soft);
  color: var(--forest);
}

.save-button.is-saved svg {
  fill: currentColor;
}

.save-button svg {
  width: 15px;
  height: 15px;
}

.deadline-block {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.deadline-block small {
  color: #949a96;
  font-size: 8px;
}

.deadline-block strong {
  color: #38403b;
  font-size: 12px;
  font-weight: 760;
}

.deadline-block b {
  margin-top: 3px;
  color: var(--forest);
  font-size: 17px;
  font-weight: 780;
  letter-spacing: -0.035em;
}

.deadline-block b.is-urgent {
  color: var(--danger);
}

.deadline-block b.is-upcoming {
  color: #527492;
  font-size: 11px;
}

.detail-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.detail-link svg {
  width: 12px;
}

.empty-state {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-state > span {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border-radius: 50%;
  background: #f1f4f5;
  color: #8c938e;
  font-size: 22px;
}

.empty-state strong {
  margin-top: 13px;
  font-size: 13px;
}

.empty-state p {
  margin: 6px 0 13px;
  color: var(--muted);
  font-size: 10px;
}

.empty-state button {
  height: 31px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.calendar-view {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(22, 48, 92, 0.07);
}

.calendar-head {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
}

.calendar-head > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.calendar-head > div > span {
  display: grid;
  min-width: 180px;
  gap: 3px;
  text-align: center;
}

.calendar-head small {
  color: #70818a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.calendar-head h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.035em;
}

.calendar-head p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.calendar-head button {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  color: #4e5a54;
  font-size: 10px;
  font-weight: 700;
}

.calendar-head > div button {
  width: 34px;
  padding: 0;
  font-size: 15px;
}

.calendar-head .calendar-actions { gap: 7px; }
.calendar-head .calendar-actions button { width: auto; padding: 0 10px; font-size: 9px; }
.calendar-head .calendar-actions #openAlertSettings { border-color: var(--forest); background: var(--forest); color: #fff; }
.calendar-sync-note { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: var(--navy-soft); color: var(--muted); font-size: 9px; line-height: 1.5; }
.calendar-sync-note strong { flex: 0 0 auto; color: var(--navy); }
.calendar-sync-note span { flex: 1; }
.calendar-sync-note button { padding: 0; border: 0; background: transparent; color: var(--forest); cursor: pointer; font-size: 9px; font-weight: 800; text-decoration: underline; }
.calendar-sync-note .calendar-sync-now { min-height: 30px; padding: 0 10px; border-radius: 6px; background: var(--forest); color: #fff; text-decoration: none; white-space: nowrap; }
.calendar-profile-row { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.calendar-profile-row label { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; cursor: pointer; font-size: 9px; }
.calendar-profile-row label input { position: absolute; opacity: 0; }
.calendar-profile-row label span { position: relative; width: 29px; height: 17px; border-radius: 999px; background: #cbd3ce; transition: background .15s ease; }
.calendar-profile-row label span::after { position: absolute; top: 3px; left: 3px; width: 11px; height: 11px; border-radius: 50%; background: #fff; content: ""; transition: transform .15s ease; }
.calendar-profile-row label input:checked + span { background: var(--forest); }
.calendar-profile-row label input:checked + span::after { transform: translateX(12px); }
.calendar-profile-row label input:disabled + span { opacity: .45; }
.calendar-profile-row p { flex: 1; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.calendar-profile-row button { padding: 0; border: 0; background: transparent; color: var(--forest); cursor: pointer; font-size: 9px; font-weight: 800; text-decoration: underline; }

.calendar-head button:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.calendar-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.calendar-mobile-hint {
  display: none;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-weekdays {
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.calendar-weekdays span {
  padding: 12px 0;
  color: #6f7a74;
  font-size: 10px;
  font-weight: 750;
  text-align: center;
}

.calendar-weekdays span:first-child { color: #a65348; }
.calendar-weekdays span:last-child { color: #486d8c; }

.calendar-day {
  min-height: 146px;
  padding: 10px 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.is-outside {
  background: var(--ivory);
  color: #b6bbb7;
}

.calendar-day.is-outside .calendar-event { opacity: .5; }

.calendar-day.is-today {
  background: var(--navy-soft);
  box-shadow: inset 0 0 0 2px var(--gold);
}

.calendar-date {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  margin-bottom: 7px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 720;
}

.calendar-day.is-today .calendar-date {
  background: var(--forest);
  color: #fff;
}

.calendar-event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  width: 100%;
  min-height: 31px;
  align-items: start;
  gap: 5px;
  margin: 4px 0 0;
  padding: 6px 7px;
  overflow: hidden;
  border: 0;
  border-left: 3px solid #c96b58;
  border-radius: 5px;
  background: #f8ece8;
  color: #674940;
  cursor: pointer;
  font-size: 10px;
  line-height: 1.35;
  text-align: left;
}

.calendar-event:hover {
  filter: brightness(.975);
  box-shadow: 0 2px 8px rgba(35, 44, 39, .08);
}

.calendar-event b {
  font-size: 9px;
  font-weight: 850;
}

.calendar-event span {
  display: -webkit-box;
  overflow: hidden;
  font-weight: 650;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.calendar-event.is-posted {
  border-left-color: #4d906f;
  background: #eaf3ee;
  color: #3c6653;
}

.calendar-event.is-forecast {
  border-left-color: #6386a0;
  background: #edf3f7;
  color: #3d6079;
}

.calendar-more {
  margin: 6px 2px 0;
  color: #687770;
  font-size: 8px;
  font-weight: 700;
}

.calendar-legend {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding: 13px 18px;
  background: var(--surface-soft);
}

.calendar-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #858c87;
  font-size: 9px;
}

.calendar-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.legend-new { background: #6ba184; }
.legend-deadline { background: #d47b67; }
.legend-forecast { background: #6386a0; }

@media (min-width: 961px) {
  .explorer-body.is-calendar { grid-template-columns: minmax(0, 1fr); }
  .explorer-body.is-calendar .filter-panel { display: none; }
  .explorer-body.is-calendar .results-panel { padding: 28px 30px 34px; }
}

dialog {
  padding: 0;
  border: 0;
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(20, 26, 22, 0.36);
  backdrop-filter: blur(2px);
}

.funding-login-dialog {
  width: min(440px, calc(100% - 28px));
  margin: auto;
  border-radius: 14px;
  background: transparent;
}

.funding-login-card {
  position: relative;
  display: grid;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(20, 29, 23, .24);
}

.funding-login-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #f2f5f6;
  color: #777f79;
  cursor: pointer;
  font-size: 21px;
}

#fundingLoginView,
.funding-account-view {
  display: grid;
  gap: 13px;
}

#fundingLoginView[hidden],
.funding-account-view[hidden] {
  display: none;
}

.funding-login-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--forest-soft);
  color: var(--forest);
}

.funding-login-mark svg { width: 22px; }
#fundingLoginView > p:first-of-type,
.funding-account-view > p:first-of-type { margin: 2px 0 -7px; color: var(--forest); font-size: 9px; font-weight: 850; letter-spacing: .14em; }
#fundingLoginView h2,
.funding-account-view h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
#fundingLoginView > span:not(.funding-login-mark),
.funding-account-view > span:not(.funding-login-mark) { color: var(--muted); font-size: 12px; line-height: 1.65; }
.funding-google-start,
.funding-logout-button { height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; cursor: pointer; font-size: 12px; font-weight: 750; }
.funding-google-start:disabled { cursor: wait; opacity: .62; }
.funding-google-start[hidden] { display: none; }
.funding-google-host { min-height: 44px; display: flex; align-items: center; justify-content: center; }
.funding-google-host[hidden] { display: none; }
.funding-login-status { min-height: 18px; margin: -3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }
.funding-login-status.is-error { color: #a44b43; }
#fundingLoginView > small { color: var(--soft-muted); font-size: 9px; line-height: 1.55; text-align: center; }
.funding-logout-button { margin-top: 4px; background: #f8faf9; }

.pro-launch-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 22px; margin: 14px 0 20px; padding: 18px 22px; border: 1px solid #b7c9df; border-radius: 12px; background: linear-gradient(120deg, var(--navy-soft), #fff); box-shadow: 0 8px 26px rgba(22, 48, 92, .08); }
.pro-launch-banner div:first-child { display: grid; gap: 4px; }
.pro-launch-banner div:first-child > span, .pro-eyebrow { color: var(--gold-dark); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.pro-launch-banner strong { font-size: 17px; letter-spacing: -.02em; }
.pro-launch-banner p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.pro-launch-price { display: grid; justify-items: end; }
.pro-launch-price del { color: #999; font-size: 9px; }
.pro-launch-price b { color: var(--navy); font-size: 20px; }
.pro-launch-price small { color: #81755b; font-size: 8px; }
.pro-launch-banner > button { min-height: 42px; padding: 0 15px; border: 0; border-radius: 8px; background: var(--navy); color: #fff; cursor: pointer; font-size: 10px; font-weight: 800; }
.pro-launch-banner > button:hover { background: var(--navy-dark); }

.pro-dialog { width: min(720px, calc(100% - 28px)); max-height: calc(100vh - 30px); margin: auto; border-radius: 14px; background: transparent; }
.pro-dialog-card { position: relative; display: grid; gap: 16px; max-height: calc(100vh - 30px); padding: 30px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 26px 80px rgba(20, 29, 23, .24); }
.pro-dialog-card h2 { margin: -8px 0 0; font-size: 27px; letter-spacing: -.04em; }
.pro-dialog-card .pro-lead { margin: -7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.dialog-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 7px; background: #f2f5f6; color: #777f79; cursor: pointer; font-size: 20px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-grid section { display: grid; align-content: start; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfc; }
.plan-grid section.is-pro { border-color: #9fb6d2; background: var(--navy-soft); }
.plan-grid section > span { color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.plan-grid section > strong { font-size: 23px; }
.plan-grid section > small { margin-top: -8px; color: #887551; font-size: 9px; }
.plan-grid ul { display: grid; gap: 7px; margin: 0; padding-left: 17px; color: #4e5b54; font-size: 10px; line-height: 1.45; }
.billing-toggle { display: flex; width: fit-content; padding: 2px; border-radius: 7px; background: var(--navy-soft); }
.billing-toggle button { padding: 5px 10px; border: 0; border-radius: 5px; background: transparent; color: #796b4b; cursor: pointer; font-size: 9px; font-weight: 800; }
.billing-toggle button.is-active { background: #fff; color: #6e4d10; box-shadow: 0 1px 5px rgba(62, 47, 15, .12); }
.launch-terms { display: flex; gap: 8px; padding: 11px 13px; border-radius: 8px; background: #f6f1e3; color: #76674c; font-size: 9px; line-height: 1.45; }
.launch-terms b { color: #835c16; }
.trial-button { min-height: 44px; border: 0; border-radius: 8px; background: var(--forest); color: #fff; cursor: pointer; font-size: 11px; font-weight: 800; }
.provider-note { margin: -8px 0 0; color: #8a675d; font-size: 9px; line-height: 1.55; text-align: center; }
.pro-dialog details { color: var(--muted); font-size: 9px; }
.pro-dialog details p { line-height: 1.6; }
.alert-master, .match-alert-preview { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfb; }
.alert-master span, .match-alert-preview span { display: grid; flex: 1; gap: 3px; }
.alert-master b, .match-alert-preview b { font-size: 11px; }
.alert-master small, .match-alert-preview small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.match-alert-preview em { padding: 5px 8px; border-radius: 999px; background: #edf1f2; color: #738079; font-size: 8px; font-style: normal; font-weight: 800; }
.alert-offsets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; border: 0; }
.alert-offsets legend { margin-bottom: 8px; color: var(--muted); font-size: 9px; font-weight: 750; }
.alert-offsets label input { position: absolute; opacity: 0; }
.alert-offsets label span { display: grid; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; font-size: 10px; font-weight: 750; }
.alert-offsets label input:checked + span { border-color: var(--forest); background: var(--forest-soft); color: var(--forest); }
.compact-dialog { max-width: 520px; }
.calendar-help-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.calendar-help-list li { display: grid; gap: 4px; padding: 13px; border-radius: 8px; background: #f7f9f8; }
.calendar-help-list b { font-size: 11px; }
.calendar-help-list span { color: var(--muted); font-size: 10px; line-height: 1.6; }
.calendar-add-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.calendar-add-actions a { display: flex; min-height: 38px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--forest); font-size: 9px; font-weight: 800; text-decoration: none; }
.pro-forecast-lock { display: grid; gap: 5px; padding: 13px; border: 1px dashed #c9b57f; border-radius: 8px; background: #fffaf0; }
.pro-forecast-lock b { color: #765319; font-size: 10px; }
.pro-forecast-lock span { color: #806f51; font-size: 9px; line-height: 1.5; }
.pro-forecast-lock button { width: fit-content; padding: 0; border: 0; background: transparent; color: #765319; cursor: pointer; font-size: 9px; font-weight: 800; text-decoration: underline; }

.detail-dialog {
  width: min(590px, calc(100% - 30px));
  max-height: min(760px, calc(100vh - 32px));
  margin: auto;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 29, 23, 0.2);
}

.dialog-shell {
  display: flex;
  max-height: min(760px, calc(100vh - 32px));
  flex-direction: column;
}

.dialog-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.dialog-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dialog-head span {
  padding: 4px 6px;
  border-radius: 4px;
  background: var(--forest-soft);
  color: var(--forest);
  font-size: 8px;
  font-weight: 750;
}

.dialog-head strong {
  font-size: 10px;
}

.dialog-head button,
.sources-dialog-head button {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: #f2f5f6;
  color: #777f79;
  cursor: pointer;
  font-size: 19px;
}

.dialog-content {
  overflow-y: auto;
  padding: 24px 25px 28px;
}

.dialog-kicker {
  display: flex;
  gap: 6px;
}

.dialog-content h2 {
  margin: 12px 0 9px;
  font-size: 21px;
  font-weight: 770;
  letter-spacing: -0.035em;
  line-height: 1.38;
}

.dialog-summary {
  margin: 0;
  color: #68706b;
  font-size: 11px;
  line-height: 1.65;
}

.dialog-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.dialog-meta-grid > div {
  min-height: 66px;
  padding: 12px;
  background: #fff;
}

.dialog-meta-grid small,
.detail-section h3 {
  display: block;
  margin: 0 0 5px;
  color: #8d948f;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.dialog-meta-grid strong {
  color: #404742;
  font-size: 10px;
  font-weight: 680;
  line-height: 1.5;
}

.detail-section {
  margin-top: 22px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.detail-section h3 {
  margin-bottom: 10px;
  color: #555d58;
  font-size: 10px;
}

.detail-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0 0 0 16px;
  color: #6b736e;
  font-size: 10px;
  line-height: 1.55;
}

.forecast-notice {
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px dashed #b8cbd7;
  border-radius: 8px;
  background: #f2f7fa;
  color: #3f6177;
}

.forecast-notice strong,
.forecast-notice span {
  display: block;
  font-size: 9px;
}

.forecast-notice p {
  margin: 6px 0;
  font-size: 10px;
  line-height: 1.55;
}

.document-section ul {
  padding: 0;
  list-style: none;
}

.document-section li {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.document-section a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #3f5f72;
  text-decoration: none;
}

.document-section a span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 8px;
}

.document-section p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.source-link-button {
  display: flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 23px;
  border-radius: 7px;
  background: var(--forest);
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 750;
}

.source-link-button:hover {
  background: var(--forest-dark);
}

.source-link-button svg {
  width: 14px;
}

.dialog-caution {
  margin: 10px 0 0;
  color: #979e99;
  font-size: 8px;
  line-height: 1.45;
  text-align: center;
}

.sources-dialog {
  width: min(540px, calc(100% - 30px));
  max-height: calc(100vh - 40px);
  margin: auto;
  padding: 24px;
  border-radius: 13px;
  box-shadow: 0 24px 70px rgba(20, 29, 23, 0.2);
}

.sources-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.sources-dialog-head p {
  margin: 0 0 5px;
  color: var(--forest);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.sources-dialog h2 {
  margin: 0;
  font-size: 20px;
}

.sources-intro {
  margin: 13px 0 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.source-status-list {
  display: grid;
  max-height: 420px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}

.source-status-item {
  display: grid;
  grid-template-columns: 31px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
}

.source-initial {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 7px;
  background: #eef2f3;
  color: var(--forest);
  font-size: 9px;
  font-weight: 800;
}

.source-status-item > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.source-status-item strong {
  font-size: 10px;
}

.source-status-item small {
  color: var(--soft-muted);
  font-size: 8px;
}

.source-health {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #54816a;
  font-size: 8px;
}

.source-health i,
.sources-dialog-foot i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #58a079;
}

.sources-dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
}

.sources-dialog-foot span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #5c665f;
  font-size: 9px;
}

.sources-dialog-foot button {
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--forest);
  color: #fff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.eligibility-badge {
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 800;
}

.eligibility-badge.is-eligible { background: #e6f2ec; color: #2b7054; }
.eligibility-badge.is-review { background: #e9eff4; color: #536d7b; }
.eligibility-badge.is-blocked { background: #f3e9e7; color: #995343; }

.decision-panel {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #dce6e0;
  border-radius: 9px;
  background: #f3f8f5;
}

.decision-panel.is-review { border-color: #dbe4e9; background: #f3f7f9; }
.decision-panel.is-blocked { border-color: #ebd9d5; background: #faf4f3; }
.decision-panel > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.decision-panel small { color: #758079; font-size: 8px; font-weight: 700; }
.decision-panel strong { color: #2c6d52; font-size: 11px; }
.decision-panel.is-review strong { color: #536f7e; }
.decision-panel.is-blocked strong { color: #995343; }
.decision-panel ul { display: grid; gap: 4px; margin: 10px 0 0; padding: 9px 0 0 16px; border-top: 1px solid rgba(80, 100, 90, .11); color: #65706a; font-size: 9px; line-height: 1.5; }
.rule-copy { margin: 0; color: #68716c; font-size: 10px; line-height: 1.65; }

.evidence-box {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 13px;
  border: 1px solid #dfe5e8;
  border-radius: 8px;
  background: #f8fafb;
}
.evidence-box small { color: #7b878d; font-size: 8px; font-weight: 750; text-transform: uppercase; }
.evidence-box strong { color: #49545a; font-size: 9px; }
.evidence-box p { margin: 0; color: #727d82; font-size: 9px; line-height: 1.5; }
.evidence-box span { color: #99a2a7; font-size: 8px; }

.receipt-dialog { width: min(610px, calc(100% - 30px)); }
.receipt-content { max-height: 460px; overflow-y: auto; }
.receipt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.receipt-grid > div { display: grid; gap: 5px; min-height: 66px; align-content: center; padding: 12px; background: #fff; }
.receipt-grid .receipt-wide { grid-column: 1 / -1; }
.receipt-grid small { color: #8b959a; font-size: 8px; font-weight: 700; }
.receipt-grid strong { color: #39444a; font-size: 10px; line-height: 1.45; }
.receipt-grid code { overflow: hidden; color: #819097; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 7px; text-overflow: ellipsis; }
.receipt-source-list { display: grid; gap: 1px; margin: 13px 0 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--line); list-style: none; }
.receipt-source-list li { display: flex; justify-content: space-between; padding: 9px 11px; background: #fff; font-size: 9px; }
.receipt-source-list span { color: #668071; }
.receipt-summary { margin: 12px 1px 0; color: #69747a; font-size: 9px; line-height: 1.6; }
.receipt-empty { padding: 32px 10px; text-align: center; }
.receipt-empty strong { font-size: 12px; }
.receipt-empty p { margin: 8px auto 0; color: #7d888e; font-size: 9px; line-height: 1.6; }
.source-health.is-muted { color: #8b959a; }
.source-health.is-muted i { background: #b2bbc0; }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: flex;
  min-width: 220px;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid #d8e3dc;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 15px 40px rgba(20, 29, 23, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 170ms ease, transform 170ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast > span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest-soft);
  color: var(--forest);
  font-size: 10px;
  font-weight: 800;
}

.toast p {
  margin: 0;
  font-size: 10px;
  font-weight: 650;
}

@media (max-width: 1180px) {
  :root { --sidebar-width: 210px; }
  .content-wrap { width: calc(100% - 40px); }
  .explorer-body { grid-template-columns: 205px minmax(0, 1fr); }
  .announcement-card { grid-template-columns: minmax(0, 1fr) 132px; }
  .summary-card { grid-template-columns: 39px 1fr auto; gap: 2px 10px; padding-inline: 13px; }
  .summary-icon { width: 39px; height: 39px; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-card em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 960px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    height: 62px;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
  }
  .mobile-header .brand-logo { width: 148px; max-height: 41px; }
  .mobile-filter-trigger {
    display: flex;
    height: 34px;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
  }
  .mobile-filter-trigger svg { width: 15px; }
  .mobile-filter-trigger span {
    display: grid;
    min-width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 9px;
    background: var(--forest);
    color: #fff;
    font-size: 8px;
  }
  .content-wrap { width: calc(100% - 34px); padding-top: 33px; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .explorer-body { display: block; min-height: 600px; }
  .filter-panel {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    display: flex;
    width: min(360px, calc(100vw - 34px));
    max-height: 100vh;
    flex-direction: column;
    padding: 0 20px 18px;
    overflow-y: auto;
    border-right: 1px solid var(--line);
    background: #fff;
    transform: translateX(-105%);
    transition: transform 200ms ease;
  }
  .filter-panel.is-open { transform: translateX(0); }
  .mobile-filter-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    min-height: 60px;
    align-items: center;
    justify-content: space-between;
    margin: 0 -2px;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }
  .mobile-filter-head strong { font-size: 15px; }
  .mobile-filter-head button {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--muted);
    font-size: 21px;
  }
  .filter-head { margin-top: 17px; }
  .mobile-apply-button {
    position: sticky;
    bottom: 0;
    display: block;
    min-height: 43px;
    margin-top: 12px;
    border: 0;
    border-radius: 7px;
    background: var(--forest);
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 750;
  }
  .mobile-scrim {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(20, 26, 22, 0.38);
  }
}

@media (max-width: 680px) {
  .profile-onboarding { place-items: start center; padding: 18px; }
  .onboarding-card { padding-top: 4px; }
  .onboarding-step { padding-top: 35px; }
  .onboarding-step h1 { font-size: 29px; }
  .field-choice-grid { grid-template-columns: repeat(2, 1fr); }
  .identity-choice-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-form-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-form-grid .career-question { grid-column: 1 / -1; }
  .current-project-row { grid-template-columns: 1fr 1fr 28px; }
  .current-project-row .project-name { grid-column: 1 / -1; }
  .current-project-row .project-end { grid-column: 1; }
  .current-project-row .project-role { grid-column: 2; }
  .current-project-row button { grid-column: 3; grid-row: 2; }
  .onboarding-actions { position: sticky; bottom: -1px; padding: 10px 0; background: rgba(255, 255, 255, .96); }
  .onboarding-actions button { flex: 1; }
  .content-wrap { width: calc(100% - 28px); padding: 27px 0 50px; }
  .page-head { align-items: stretch; flex-direction: column; gap: 22px; }
  .page-head h1 { font-size: 32px; }
  .page-description { max-width: 300px; font-size: 11px; line-height: 1.5; }
  .head-actions { width: 100%; }
  .personalize-button { min-width: 0; min-height: 72px; }
  .head-utility-actions { width: 100%; }
  .account-button { max-width: none; flex: 1; }
  .last-sync { display: none; }
  .refresh-button { width: 39px; padding: 0; justify-content: center; }
  .refresh-button span { display: none; }
  .notice-strip { align-items: flex-start; }
  .notice-strip p { font-size: 9px; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-card:last-child { grid-column: auto; }
  .summary-card { min-height: 78px; }
  .explorer-toolbar { align-items: stretch; flex-direction: column; padding: 12px; }
  .search-box { width: 100%; }
  .view-switch { width: 100%; }
  .view-switch button { flex: 1; justify-content: center; }
  .results-panel { padding: 18px 13px 24px; }
  .announcement-card { grid-template-columns: 1fr; gap: 13px; padding: 15px; }
  .card-side {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: end;
    gap: 13px;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .save-button { grid-column: 3; grid-row: 1; }
  .deadline-block { grid-column: 1; grid-row: 1; justify-items: start; }
  .deadline-block b { font-size: 14px; }
  .detail-link { grid-column: 2; grid-row: 1; align-self: center; }
  .verified-badge { display: none; }
  .results-pagination { align-items: stretch; flex-direction: column; gap: 10px; padding: 11px; }
  .results-pagination p { text-align: center; }
  .pagination-controls { width: 100%; justify-content: space-between; }
  .pagination-controls > span { min-width: 0; overflow-x: auto; padding: 1px; }
  .pagination-controls button { flex: 0 0 auto; min-width: 30px; padding: 0 8px; }
  .calendar-head { min-height: 72px; padding: 0 13px; }
  .calendar-head { align-items: stretch; flex-direction: column; gap: 8px; padding: 12px; }
  .calendar-head .calendar-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .calendar-head .calendar-actions button { width: auto; }
  .calendar-sync-note { align-items: flex-start; flex-wrap: wrap; }
  .calendar-sync-note span { flex-basis: calc(100% - 100px); }
  .calendar-profile-row { align-items: flex-start; flex-wrap: wrap; }
  .calendar-profile-row p { flex-basis: 100%; order: 3; }
  .calendar-head > div { gap: 7px; }
  .calendar-head > div > span { min-width: 145px; }
  .calendar-head h3 { font-size: 17px; }
  .calendar-head p { font-size: 8px; }
  .calendar-mobile-hint { display: block; margin: 0; padding: 8px 13px; border-bottom: 1px solid var(--line); background: #f5f8fa; color: #647985; font-size: 8px; }
  .calendar-weekdays, .calendar-grid { width: 760px; }
  .calendar-day { min-height: 132px; padding: 8px 7px; }
  .calendar-event { min-height: 29px; padding: 5px 6px; font-size: 9px; }
  .calendar-legend { justify-content: flex-start; min-width: 0; gap: 12px; overflow-x: auto; }
  .pro-launch-banner { grid-template-columns: 1fr; gap: 13px; }
  .pro-launch-price { justify-items: start; }
  .pro-launch-banner > button { width: 100%; }
  .pro-dialog-card { padding: 25px 18px; }
  .plan-grid { grid-template-columns: 1fr; }
  .dialog-content { padding: 20px 18px 23px; }
  .dialog-content h2 { font-size: 18px; }
  .dialog-meta-grid { grid-template-columns: 1fr; }
  .toast { right: 14px; bottom: 14px; left: 14px; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Arche services */
.arche-store { margin-top: 26px; padding: 46px 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.store-heading { max-width: 680px; margin: 0 auto 34px; text-align: center; }
.store-heading > p, .service-eyebrow { margin: 0 0 9px; color: #486987; font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.store-heading h2 { margin: 0 0 10px; color: #1d2d41; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; }
.store-heading > span { color: var(--muted); font-size: 12px; line-height: 1.6; }
.order-health { display: flex; width: fit-content; align-items: center; gap: 6px; margin: 14px auto 0; padding: 5px 9px; border-radius: 999px; background: #f2f5f6; color: #7c8580; font-size: 8px; font-weight: 700; }
.order-health i { width: 6px; height: 6px; border-radius: 50%; background: #8c9791; }
.order-health.is-healthy { background: var(--forest-soft); color: var(--forest); }
.order-health.is-healthy i { background: #4d8a6d; }
.order-health.is-failed { background: #f7e8e4; color: var(--danger); }
.order-health.is-failed i { background: var(--danger); }
.diagnosis-feature, .book-feature { display: grid; grid-template-columns: minmax(240px, .85fr) minmax(300px, 1.15fr); gap: 30px; align-items: center; }
.diagnosis-preview { color: #486987; text-align: center; text-decoration: none; }
.diagnosis-preview img { display: block; width: 100%; max-height: 520px; object-fit: contain; border: 1px solid var(--line); box-shadow: 0 18px 45px rgba(29, 45, 65, .1); }
.diagnosis-preview span { display: block; margin-top: 10px; font-size: 10px; font-weight: 700; }
.service-card { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; }
.service-card.is-featured { border-color: #9db4c5; box-shadow: 0 12px 30px rgba(52, 79, 99, .08); }
.service-card h3 { margin: 0 0 9px; color: #1d2d41; font-size: 19px; letter-spacing: -.025em; }
.service-card > p:not(.service-eyebrow) { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.service-card ul { display: grid; gap: 8px; margin: 20px 0; padding: 0; list-style: none; }
.service-card li { position: relative; padding-left: 18px; color: #4f5953; font-size: 10px; }
.service-card li::before { content: "✓"; position: absolute; left: 0; color: var(--forest); font-weight: 850; }
.service-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 18px 0 14px; }
.service-price del { color: #9ca49f; font-size: 10px; }
.service-price strong { color: #1d2d41; font-size: 24px; }
.service-price small { width: 100%; color: var(--muted); font-size: 8px; }
.service-card > button { width: 100%; min-height: 43px; border: 0; border-radius: 7px; background: #1d2d41; color: #fff; cursor: pointer; font-size: 11px; font-weight: 780; }
.service-card > button:hover { background: #294761; }
.service-card > button:disabled { opacity: .45; cursor: not-allowed; }
.service-note { display: block; margin-top: 9px; color: #89918c; font-size: 8px; text-align: center; }
.book-feature { grid-template-columns: minmax(260px, .9fr) minmax(0, 1.6fr); margin-top: 46px; padding-top: 42px; border-top: 1px solid var(--line); }
.book-visual img { display: block; width: 100%; filter: drop-shadow(0 18px 24px rgba(29, 45, 65, .12)); }
.book-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.service-card.compact { height: 100%; padding: 23px; }
.recommended-label { position: absolute; top: -11px; left: 18px; padding: 4px 9px; border-radius: 5px; background: #5f7f96; color: #fff; font-size: 8px; font-weight: 800; }
.arche-footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px 4px 6px; color: var(--muted); font-size: 9px; }
.arche-footer a { color: #3f6177; font-weight: 700; text-decoration: none; }
.order-dialog { width: min(500px, calc(100% - 28px)); margin: auto; padding: 0; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 26px 80px rgba(20, 29, 23, .24); }
.order-dialog form { padding: 25px; }
.order-form-view header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.order-form-view header p { margin: 0 0 4px; color: #486987; font-size: 8px; font-weight: 850; letter-spacing: .14em; }
.order-form-view h2, .order-done-view h2 { margin: 0; color: #1d2d41; font-size: 20px; }
.order-form-view header button { width: 31px; height: 31px; border: 0; border-radius: 6px; background: #f2f5f6; cursor: pointer; font-size: 18px; }
.order-product { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 18px; padding: 12px 13px; border-radius: 7px; background: #edf3f7; color: #294761; font-size: 11px; }
.order-form-view > label:not(.order-consent) { display: grid; gap: 6px; margin-bottom: 13px; color: #5f6862; font-size: 9px; font-weight: 750; }
.order-form-view input[type="text"], .order-form-view input[type="email"] { height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 7px; outline: 0; font-size: 11px; }
.order-form-view input:focus { border-color: #849fb2; box-shadow: 0 0 0 3px rgba(72, 105, 135, .08); }
.order-consent { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.order-consent input { margin-top: 2px; }
.order-info { margin: 15px 0 0; padding: 11px 12px; border: 1px solid #d5e0e7; border-radius: 7px; background: #f4f8fa; color: #526d80; font-size: 9px; line-height: 1.55; }
.order-error { min-height: 17px; margin: 7px 0 0; color: var(--danger); font-size: 9px; }
.order-actions { display: grid; grid-template-columns: .45fr 1fr; gap: 8px; margin-top: 8px; }
.order-actions button, .order-done-view button { min-height: 42px; border: 0; border-radius: 7px; cursor: pointer; font-size: 11px; font-weight: 760; }
.order-cancel { background: #eef1f2; color: var(--muted); }
.order-submit, .order-done-view button { background: #1d2d41; color: #fff; }
.order-submit:disabled { opacity: .5; }
.order-done-view { padding: 20px 8px 8px; text-align: center; }
.order-done-view > span { display: grid; width: 44px; height: 44px; place-items: center; margin: 0 auto 14px; border-radius: 50%; background: var(--forest-soft); color: var(--forest); font-size: 20px; }
.order-done-view p { margin: 14px 0 20px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.order-done-view p strong { color: #1d2d41; font-size: 14px; }
.order-done-view button { width: 100%; }

@media (max-width: 900px) {
  .arche-store { padding: 34px 22px; }
  .diagnosis-feature, .book-feature { grid-template-columns: 1fr; }
  .diagnosis-preview img { max-height: 440px; }
  .book-visual { max-width: 520px; margin: 0 auto; }
}

@media (max-width: 620px) {
  .arche-store { margin-top: 16px; padding: 30px 16px; }
  .book-products { grid-template-columns: 1fr; }
  .arche-footer { flex-direction: column; }
  .order-dialog form { padding: 20px; }
}

/* First-visit interactive guide */
.tour-replay-button { min-height: 36px; padding: 0 13px; border: 1px solid #c9d7e6; border-radius: 8px; background: #fff; color: var(--navy); cursor: pointer; font-size: 10px; font-weight: 800; white-space: nowrap; }
.tour-replay-button:hover { border-color: var(--navy); background: var(--navy-soft); }
.tour-replay-button:focus-visible { outline: 3px solid rgba(184, 135, 59, .32); outline-offset: 2px; }
.guided-tour { position: fixed; inset: 0; z-index: 900; pointer-events: none; }
.tour-spotlight { position: fixed; z-index: 901; border: 2px solid #fff; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(7, 20, 42, .72), 0 0 0 5px rgba(184, 135, 59, .82), 0 16px 46px rgba(5, 15, 32, .28); pointer-events: none; transition: inset 220ms ease, width 220ms ease, height 220ms ease; }
.tour-popover { position: fixed; z-index: 902; display: grid; gap: 10px; max-height: calc(100vh - 40px); padding: 21px; overflow: auto; border: 1px solid #d7e2ef; border-radius: 16px; background: #fff; box-shadow: 0 24px 80px rgba(7, 26, 57, .28); pointer-events: auto; }
.tour-popover > header, .tour-popover > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tour-popover > header span { color: var(--gold-dark); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.tour-popover > header button { padding: 5px 2px; border: 0; background: transparent; color: #64748b; cursor: pointer; font-size: 10px; font-weight: 750; }
.tour-progress { height: 4px; overflow: hidden; border-radius: 999px; background: #e4ebf4; }
.tour-progress i { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--navy), #315d97); transition: width 220ms ease; }
.tour-step-label { margin: 2px 0 -5px; color: #6f7f91; font-size: 9px; font-weight: 850; }
.tour-popover h2 { margin: 0; color: var(--navy-dark); font-size: 21px; line-height: 1.25; letter-spacing: -.03em; }
.tour-description { margin: 0; color: #536276; font-size: 11px; line-height: 1.7; }
.tour-simulation { min-height: 96px; padding: 13px; border: 1px solid #dce6f1; border-radius: 11px; background: var(--blue-pale); }
.tour-popover > footer { margin-top: 2px; }
.tour-popover > footer button { min-height: 40px; padding: 0 16px; border: 1px solid #d4deea; border-radius: 8px; background: #fff; color: #536276; cursor: pointer; font-size: 10px; font-weight: 800; }
.tour-popover > footer button:last-child { margin-left: auto; border-color: var(--navy); background: var(--navy); color: #fff; }
.tour-popover button:focus-visible { outline: 3px solid rgba(184, 135, 59, .35); outline-offset: 2px; }
.tour-profile-demo { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.tour-profile-demo span { padding: 7px 9px; border: 1px solid #c4d5e8; border-radius: 999px; background: #fff; color: var(--navy); font-size: 9px; font-weight: 800; animation: tour-chip-in 420ms ease both; }
.tour-profile-demo span:nth-child(2) { animation-delay: 120ms; }.tour-profile-demo span:nth-child(3) { animation-delay: 240ms; }
.tour-profile-demo strong { width: 100%; margin-top: 3px; color: #28745a; font-size: 10px; }
@keyframes tour-chip-in { from { opacity: 0; transform: translateY(7px) scale(.96); } to { opacity: 1; transform: none; } }
.tour-match-demo { display: grid; gap: 5px; }
.tour-match-demo > span { width: fit-content; padding: 4px 7px; border-radius: 999px; background: #dcefe8; color: #24644f; font-size: 8px; font-weight: 850; }
.tour-match-demo strong { color: var(--navy-dark); font-size: 12px; }.tour-match-demo p, .tour-match-demo small { margin: 0; color: #64748b; font-size: 9px; }
.tour-match-demo i { height: 6px; overflow: hidden; border-radius: 999px; background: #dce4ed; }.tour-match-demo i b { display: block; height: 100%; border-radius: inherit; background: var(--navy); animation: tour-match-fill 900ms ease both; }
@keyframes tour-match-fill { from { width: 0 !important; } }
.tour-calendar-demo { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; }.tour-calendar-demo > span { color: var(--navy); font-weight: 850; }.tour-calendar-demo ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 0; padding: 0; list-style: none; }.tour-calendar-demo li { min-height: 37px; padding: 4px; border-radius: 6px; background: #fff; color: #7d8996; font-size: 8px; }.tour-calendar-demo li.has-event { background: #dfeaf7; color: var(--navy); font-weight: 850; }.tour-calendar-demo li em { display: block; margin-top: 4px; color: #55769c; font-size: 6px; font-style: normal; }.tour-calendar-demo strong { grid-column: 2; color: #315d97; font-size: 9px; }
.tour-access-demo { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }.tour-access-demo span { padding: 5px 8px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 8px; font-weight: 850; text-align: center; }.tour-access-demo span.pro { background: var(--gold); }.tour-access-demo b { color: #42536a; font-size: 9px; }

@media (max-width: 720px) {
  .tour-replay-button { min-height: 34px; padding-inline: 10px; }
  .guided-tour::after { content: ""; position: fixed; inset: 0; z-index: 900; background: rgba(7, 20, 42, .18); }
  .tour-spotlight { border-radius: 11px; }
  .tour-popover { inset: auto 10px 10px; z-index: 903; width: auto !important; max-height: min(55vh, 470px); padding: 17px; border-radius: 14px; }
  .tour-popover h2 { font-size: 18px; }
  .tour-description { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .tour-spotlight, .tour-progress i, .tour-profile-demo span, .tour-match-demo i b { animation: none; transition: none; }
}
