/* Cẩm Nang Bay — component styles. Every value comes from tokens.css; nothing here re-declares a token. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 24px; background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
.cn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-4); }
.cn-stack { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); }
.cn-icon { flex: none; display: block; }

/* ---------- Button ---------- */
.cn-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: var(--tap-target); min-width: var(--tap-target); padding: 0 var(--space-4); border: 1px solid transparent; border-radius: var(--radius-md); font: inherit; font-size: 16px; font-weight: 600; line-height: 20px; white-space: nowrap; text-decoration: none; cursor: pointer; user-select: none; -webkit-user-select: none; transition: background-color .18s ease-out, border-color .18s ease-out, box-shadow .18s ease-out, transform .12s ease-out; }
.cn-btn-sm { height: var(--control-sm); min-width: var(--control-sm); padding: 0 var(--space-3); font-size: 14px; }
.cn-btn-icononly { padding: 0; }
.cn-btn-block { display: flex; width: 100%; }
.cn-btn-primary { background: var(--primary); color: var(--on-primary); }
.cn-btn-primary:hover { background: var(--primary-hover); }
.cn-btn-secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--line-strong); }
.cn-btn-secondary:hover { background: var(--surface-sunken); }
.cn-btn-ghost { background: transparent; color: var(--primary); }
.cn-btn-ghost:hover { background: var(--primary-soft); }
.cn-btn-danger { background: var(--danger); color: var(--on-danger); }
.cn-btn-danger:hover { background-image: linear-gradient(#0000001f, #0000001f); }
.cn-btn-danger-ghost { background: transparent; color: var(--danger); }
.cn-btn-danger-ghost:hover { background: var(--danger-soft); }
.cn-btn:active:not(:disabled) { transform: scale(.97); }
.cn-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.cn-btn:disabled { cursor: not-allowed; }
.cn-btn:disabled:not(.is-loading) { opacity: .45; }
.cn-btn.is-loading { cursor: progress; }

/* ---------- Spinner ---------- */
.cn-spinner { display: inline-block; flex: none; border: 2px solid currentColor; border-right-color: transparent; border-radius: var(--radius-full); animation: cn-spin .7s linear infinite; }
@keyframes cn-spin { to { transform: rotate(360deg); } }

/* ---------- Badge ---------- */
.cn-badge { display: inline-flex; align-items: center; gap: var(--space-1); height: 24px; padding: 0 var(--space-2); border-radius: var(--radius-full); background: var(--surface-sunken); color: var(--ink); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.cn-badge-dom { background: var(--dom-soft); color: var(--dom); }
.cn-badge-intl { background: var(--intl-soft); color: var(--intl); }
.cn-badge-primary { background: var(--primary-soft); color: var(--primary); }
.cn-badge-success { background: var(--success-soft); color: var(--success); }
.cn-badge-danger { background: var(--danger-soft); color: var(--danger); }

/* ---------- SyncStatus ---------- */
.cn-sync { display: inline-flex; align-items: center; gap: var(--space-2); height: 32px; padding: 0 var(--space-3); border-radius: var(--radius-full); background: var(--surface-sunken); color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.cn-sync-meta { font-weight: 400; color: var(--ink-muted); }
.cn-sync-synced .cn-icon { color: var(--success); }
.cn-sync-syncing .cn-spinner { color: var(--primary); }
.cn-sync-offline { background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ---------- SegmentedControl ---------- */
.cn-seg { display: inline-flex; gap: var(--space-1); padding: var(--space-1); border-radius: var(--radius-lg); background: var(--surface-sunken); max-width: 100%; overflow-x: auto; }
.cn-seg-block { display: flex; width: 100%; }
.cn-seg-block .cn-seg-opt { flex: 1 1 0; }
.cn-seg-opt { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--tap-target); padding: var(--space-1) var(--space-4); border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink-muted); font: inherit; font-size: 16px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color .18s ease-out, color .18s ease-out, box-shadow .18s ease-out; }
.cn-seg-opt:hover { color: var(--ink); }
.cn-seg-opt.is-on { background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-sm); }
.cn-seg-opt:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.cn-seg-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 20px; }
.cn-seg-hint { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }

/* ---------- SectionNav ---------- */
.cn-nav { background: var(--surface-raised); }
.cn-nav-h { border-bottom: 1px solid var(--line); }
.cn-nav-v { border-right: 1px solid var(--line); width: var(--rail); }
.cn-nav-list { display: flex; gap: var(--space-1); margin: 0; padding: var(--space-2) var(--space-4); list-style: none; overflow-x: auto; scrollbar-width: none; }
.cn-nav-list::-webkit-scrollbar { display: none; }
.cn-nav-v .cn-nav-list { flex-direction: column; overflow: visible; padding: var(--space-3); }
.cn-nav-item { display: flex; align-items: center; gap: var(--space-2); width: 100%; min-height: var(--tap-target); padding: 0 var(--space-3); border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink-muted); font: inherit; font-size: 14px; font-weight: 600; text-align: left; white-space: nowrap; cursor: pointer; transition: background-color .18s ease-out, color .18s ease-out; }
.cn-nav-v .cn-nav-item { font-size: 16px; padding: var(--space-2) var(--space-3); }
.cn-nav-item:hover:not(:disabled) { background: var(--surface-sunken); color: var(--ink); }
.cn-nav-item[aria-current="page"] { background: var(--primary-soft); color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.cn-nav-item:disabled { opacity: .45; cursor: not-allowed; }
.cn-nav-item:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.cn-nav-text { display: flex; flex-direction: column; min-width: 0; }
.cn-nav-hint { font-size: 12px; line-height: 16px; font-weight: 500; white-space: normal; }

/* ---------- RouteCard ---------- */
.cn-route { display: block; width: 100%; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); color: var(--ink); font: inherit; text-align: left; box-shadow: var(--shadow-sm); cursor: pointer; transition: box-shadow .18s ease-out, border-color .18s ease-out, transform .12s ease-out; }
.cn-route:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.cn-route:active { transform: scale(.99); }
.cn-route:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.cn-route-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.cn-route-dur { display: inline-flex; align-items: center; gap: var(--space-1); margin-left: auto; font-size: 14px; line-height: 20px; color: var(--ink-muted); white-space: nowrap; }
.cn-route-legs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.cn-route-ap-to { text-align: right; }
.cn-route-code { font-family: var(--font-mono); font-size: 24px; line-height: 28px; font-weight: 600; letter-spacing: .02em; }
.cn-route-city { margin-top: var(--space-1); font-size: 16px; line-height: 24px; font-weight: 600; }
.cn-route-name { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.cn-route-gmt { margin-top: var(--space-1); font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); }
.cn-route-path { display: flex; align-items: center; gap: var(--space-1); height: 28px; color: var(--primary); }
.cn-route-line { width: clamp(12px, 5vw, 48px); border-top: 2px dotted var(--line-strong); }
.cn-route-plane { transform: rotate(90deg); }
.cn-route-note { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* ---------- RouteHero (departure board) ---------- */
.cn-hero { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--board); color: var(--on-board); }
.cn-hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); }
.cn-hero-actions { display: flex; gap: var(--space-2); margin-left: auto; }
.cn-hero-legs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.cn-hero-to { text-align: right; }
.cn-hero-code { font-family: var(--font-mono); font-size: 40px; line-height: 44px; font-weight: 600; color: var(--signal); }
.cn-flaps { display: inline-flex; gap: var(--space-1); }
.cn-flap { position: relative; display: inline-block; min-width: 1.15ch; padding: 0 var(--space-1); border-radius: var(--radius-sm); background: var(--board-tile); text-align: center; }
.cn-flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--board); }
.cn-hero-city { margin-top: var(--space-3); font-size: 17px; line-height: 24px; font-weight: 600; }
.cn-hero-name { font-size: 14px; line-height: 20px; color: var(--on-board-muted); }
.cn-hero-gmt { font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--on-board-muted); }
.cn-hero-mid { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); padding-top: var(--space-2); font-size: 14px; line-height: 20px; color: var(--on-board-muted); white-space: nowrap; }
.cn-hero-mid .cn-icon { color: var(--on-board); }
.cn-hero-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-3) var(--space-4); margin: var(--space-6) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--board-tile); }
.cn-hero-meta dt { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-board-muted); }
.cn-hero-meta dd { margin: var(--space-1) 0 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--on-board); }
@media (max-width: 520px) {
  .cn-hero { padding: var(--space-4); }
  .cn-hero-code { font-size: 28px; line-height: 32px; }
  .cn-hero-mid span { display: none; }
}

/* ---------- SectorTable ---------- */
.cn-sectors { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); }
.cn-sectors-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; line-height: 24px; }
.cn-sectors-table caption { padding: var(--space-3) var(--space-4); text-align: left; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.cn-sectors-table th, .cn-sectors-table td { padding: var(--space-3) var(--space-4); text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.cn-sectors-table thead th { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); background: var(--surface-sunken); }
.cn-th-sub { display: block; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }
.cn-sector-name { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.cn-sector-time { display: block; font-family: var(--font-mono); font-size: 15px; line-height: 24px; font-weight: 500; white-space: nowrap; }
.cn-sector-plus { margin-left: 2px; font-size: 11px; color: var(--ink-muted); }
.cn-sector-tz { display: block; font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* ---------- StandardItem ---------- */
.cn-std { padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); }
.cn-std-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-3); }
.cn-std-title { margin: 0; font-size: 17px; line-height: 24px; font-weight: 600; }
.cn-std-title-en { display: block; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); }
.cn-std-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cn-std-list { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.cn-std-point { display: flex; flex-direction: column; padding-left: var(--space-4); position: relative; }
.cn-std-point::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--line-strong); }
.cn-std-point.is-changed::before { background: var(--primary); width: 8px; height: 8px; left: 1px; top: 9px; }
.cn-std-label { font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--primary); }
.cn-std-vi { font-size: 16px; line-height: 24px; }
.cn-std-en { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.cn-std-img { width: 100%; max-width: 280px; margin-top: var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-md); }

/* ---------- SectionHeader ---------- */
.cn-sh { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3) var(--space-4); padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.cn-sh-eyebrow { margin: 0 0 var(--space-1); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.cn-sh-title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; }
.cn-sh-sub { margin: var(--space-1) 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.cn-sh-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- Checklist ---------- */
.cn-checklist { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); }
.cn-checklist-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); }
.cn-checklist-title { margin: 0; font-size: 17px; line-height: 24px; font-weight: 600; }
.cn-checklist-count { font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); white-space: nowrap; }
.cn-progress { height: 4px; background: var(--surface-sunken); }
.cn-progress-bar { height: 100%; background: var(--success); transition: width .25s ease-out; }
.cn-check { position: relative; display: flex; align-items: flex-start; gap: var(--space-3); min-height: var(--tap-target); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line); cursor: pointer; transition: background-color .15s ease-out; }
.cn-checklist-items > .cn-check:first-child { border-top: 0; }
.cn-check:hover { background: var(--surface); }
.cn-check-input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.cn-check-box { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-raised); color: var(--surface-raised); transition: background-color .15s ease-out, border-color .15s ease-out, transform .12s ease-out; }
.cn-check:active .cn-check-box { transform: scale(.92); }
.cn-check-input:checked + .cn-check-box { background: var(--success); border-color: var(--success); color: var(--on-success); }
.cn-check-input:focus-visible + .cn-check-box { box-shadow: var(--focus-ring); }
.cn-check-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cn-check-label { font-size: 16px; line-height: 24px; }
.cn-check-note { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.cn-check.is-done .cn-check-label { color: var(--ink-muted); }
.cn-check-meta { flex: none; font-family: var(--font-mono); font-size: 14px; line-height: 24px; font-weight: 500; color: var(--ink-muted); white-space: nowrap; }
.cn-check.is-done .cn-check-meta { color: var(--success); }

/* ---------- MenuItem ---------- */
.cn-dish { display: flex; gap: var(--space-4); padding: var(--space-4); border-top: 1px solid var(--line); background: var(--surface-raised); }
.cn-dish:first-child { border-top: 0; }
.cn-dish-img { flex: none; width: 112px; height: 84px; border-radius: var(--radius-md); background: var(--surface-sunken); object-fit: cover; }
.cn-dish-body { flex: 1; min-width: 0; }
.cn-dish-course { margin: 0 0 var(--space-1); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.cn-dish-primary { margin: 0; font-size: 17px; line-height: 24px; font-weight: 600; }
.cn-dish-secondary { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.cn-dish-desc { margin: var(--space-2) 0 0; font-size: 14px; line-height: 20px; }
.cn-dish-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
@media (max-width: 420px) { .cn-dish-img { width: 88px; height: 66px; } }

/* ---------- RestSchedule ---------- */
.cn-rest { padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); }
.cn-rest-na { display: flex; align-items: center; gap: var(--space-2); color: var(--ink-muted); }
.cn-rest-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-3); }
.cn-rest-place { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; }
.cn-rest-total { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.cn-rest-rules { display: flex; flex-direction: column; gap: var(--space-1); margin: 0 0 var(--space-4); padding: 0; list-style: none; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.cn-rest-rules li { display: flex; gap: var(--space-2); }
.cn-rest-rules .cn-icon { margin-top: 2px; }
.cn-rest-track { position: relative; height: 40px; overflow: hidden; border-radius: var(--radius-md); background: var(--surface-sunken); }
.cn-rest-seg { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.cn-rest-seg-0 { background: var(--primary); color: var(--on-primary); }
.cn-rest-seg-1 { background: var(--primary-soft); color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.cn-rest-seg-2 { background: var(--surface-raised); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line-strong); }
.cn-rest-scale { display: flex; justify-content: space-between; margin-top: var(--space-1); font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.cn-rest-list { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.cn-rest-shift { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2) var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.cn-rest-key { width: 14px; height: 14px; margin-top: 5px; border-radius: var(--radius-sm); }
.cn-rest-shift-title { font-weight: 600; }
.cn-rest-len { font-weight: 400; color: var(--ink-muted); }
.cn-rest-time { font-family: var(--font-mono); font-size: 15px; line-height: 24px; font-weight: 500; }
.cn-rest-local { color: var(--ink-muted); white-space: pre; }
.cn-rest-crew { grid-column: 2; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cn-chip { display: inline-flex; align-items: center; gap: var(--space-2); height: 28px; padding: 0 var(--space-3) 0 var(--space-1); border-radius: var(--radius-full); background: var(--surface-sunken); font-size: 14px; line-height: 20px; white-space: nowrap; }
.cn-chip-av { display: grid; place-items: center; width: 20px; height: 20px; border-radius: var(--radius-full); background: var(--surface-raised); font-size: 10px; font-weight: 700; }
.cn-chip-role { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink-muted); }

/* ---------- TransportCard ---------- */
.cn-transport { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); }
@media (min-width: 640px) { .cn-transport-has-map { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.cn-transport-body { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-4); }
.cn-transport-label { margin: 0; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.cn-transport-time { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); }
.cn-transport-clock { font-family: var(--font-mono); font-size: 40px; line-height: 44px; font-weight: 600; }
.cn-transport-tz { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.cn-stops { margin: 0; padding: 0; list-style: none; }
.cn-stop { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-3); padding-bottom: var(--space-4); }
.cn-stop:last-child { padding-bottom: 0; }
.cn-stop:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 22px; bottom: 2px; border-left: 2px dotted var(--line-strong); }
.cn-stop-dot { width: 14px; height: 14px; margin: 5px auto 0; border: 2px solid var(--primary); border-radius: var(--radius-full); background: var(--surface-raised); }
.cn-stop:last-child .cn-stop-dot { background: var(--primary); }
.cn-stop-title { font-weight: 600; }
.cn-stop-sub { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.cn-transport-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.cn-transport-note { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.cn-transport-map { position: relative; min-height: 200px; background: var(--surface-sunken); }

/* ---------- HotlineRow ---------- */
.cn-hotline { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line); background: var(--surface-raised); }
.cn-hotline:first-child { border-top: 0; }
.cn-hotline-body { flex: 1; min-width: 0; }
.cn-hotline-label { font-weight: 600; }
.cn-hotline-sub { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.cn-hotline-phone { font-family: var(--font-mono); font-size: 15px; line-height: 24px; font-weight: 500; color: var(--link); text-decoration: none; }
.cn-hotline-phone:hover { text-decoration: underline; }

/* ---------- TextField ---------- */
.cn-field { display: flex; flex-direction: column; gap: var(--space-2); }
.cn-field-label { font-size: 14px; line-height: 20px; font-weight: 600; }
.cn-field-box { display: flex; align-items: center; min-height: var(--tap-target); overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); transition: border-color .15s ease-out, box-shadow .15s ease-out; }
.cn-field-box:focus-within { border-color: var(--primary); box-shadow: var(--focus-ring); }
.cn-field.is-error .cn-field-box { border-color: var(--danger); }
.cn-field-icon { margin-left: var(--space-3); color: var(--ink-muted); }
.cn-field-input { flex: 1; min-width: 0; height: 42px; padding: 0 var(--space-3); border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
.cn-field-input::placeholder { color: var(--ink-muted); }
.cn-field-suffix { align-self: stretch; display: flex; align-items: center; padding: 0 var(--space-3); border-left: 1px solid var(--line); background: var(--surface-sunken); color: var(--ink-muted); font-size: 16px; white-space: nowrap; }
.cn-field-hint, .cn-field-error { display: flex; align-items: flex-start; gap: var(--space-1); margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.cn-field-error { color: var(--danger); }
.cn-field-error .cn-icon { margin-top: 2px; }

/* ---------- OtpInput ---------- */
.cn-otp { display: flex; flex-direction: column; gap: var(--space-2); }
.cn-otp-cells { display: flex; gap: var(--space-2); }
.cn-otp-cell { width: 48px; height: 56px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); font-family: var(--font-mono); font-size: 24px; font-weight: 600; text-align: center; caret-color: var(--primary); transition: border-color .15s ease-out, box-shadow .15s ease-out; }
.cn-otp-cell:nth-child(3) { margin-right: var(--space-3); }
.cn-otp-cell:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus-ring); }
.cn-otp.is-error .cn-otp-cell { border-color: var(--danger); }
.cn-otp-cell:disabled { opacity: .45; }
@media (max-width: 380px) { .cn-otp-cell { width: 40px; height: 52px; } .cn-otp-cell:nth-child(3) { margin-right: var(--space-1); } }

/* ---------- AccountRow ---------- */
.cn-acct { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line); background: var(--surface-raised); }
.cn-acct:first-child { border-top: 0; }
.cn-acct-av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--primary-soft); color: var(--primary); font-size: 14px; font-weight: 700; }
.cn-acct.is-disabled .cn-acct-av { background: var(--surface-sunken); color: var(--ink-muted); }
.cn-acct-body { flex: 1 1 220px; min-width: 0; }
.cn-acct-name { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-weight: 600; }
.cn-acct-email { font-size: 14px; line-height: 20px; color: var(--ink-muted); overflow-wrap: anywhere; }
.cn-acct-meta { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.cn-acct-actions { display: flex; gap: var(--space-2); margin-left: auto; }

/* ---------- PDF / print sheet ---------- */
.cn-sheet { width: 794px; min-height: 1123px; margin: 0 auto; padding: 48px 56px; background: var(--surface-raised); color: var(--ink); font-size: 13px; line-height: 18px; }
.cn-sheet-head { display: flex; justify-content: space-between; gap: var(--space-4); padding-bottom: var(--space-3); border-bottom: 2px solid var(--ink); }
.cn-sheet-brand { font-size: 16px; line-height: 20px; font-weight: 700; }
.cn-sheet-doc { font-family: var(--font-mono); font-size: 12px; line-height: 16px; text-align: right; color: var(--ink-muted); }
.cn-sheet-title { margin: var(--space-4) 0 var(--space-1); font-size: 20px; line-height: 28px; font-weight: 700; }
.cn-sheet-sub { margin: 0 0 var(--space-4); color: var(--ink-muted); }
.cn-sheet-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: var(--space-4); border: 1px solid var(--line-strong); }
.cn-sheet-meta div { padding: var(--space-2) var(--space-3); border-left: 1px solid var(--line-strong); }
.cn-sheet-meta div:first-child { border-left: 0; }
.cn-sheet-meta dt { font-size: 10px; line-height: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.cn-sheet-meta dd { margin: 0; font-weight: 600; }
.cn-sheet-group { margin: var(--space-4) 0 var(--space-2); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cn-sheet-table { width: 100%; border-collapse: collapse; }
.cn-sheet-table th { padding: 6px var(--space-2); border-bottom: 1px solid var(--ink); font-size: 10px; line-height: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-align: left; color: var(--ink-muted); }
.cn-sheet-table td { padding: var(--space-2); border-bottom: 1px solid var(--line); vertical-align: top; }
.cn-sheet-table .en { display: block; font-size: 11px; line-height: 15px; color: var(--ink-muted); }
.cn-sheet-box { display: inline-block; width: 16px; height: 16px; border: 1.5px solid var(--ink); border-radius: 3px; vertical-align: -3px; }
.cn-sheet-box.is-done { background: var(--ink); }
.cn-sheet-fill { display: inline-block; min-width: 72px; border-bottom: 1px solid var(--line-strong); }
.cn-sheet-sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-8); }
.cn-sheet-sign div { padding-top: 40px; border-bottom: 1px solid var(--ink); }
.cn-sheet-sign span { display: block; margin-top: var(--space-1); font-size: 11px; line-height: 15px; color: var(--ink-muted); }
.cn-sheet-foot { display: flex; justify-content: space-between; margin-top: var(--space-6); padding-top: var(--space-2); border-top: 1px solid var(--line); font-size: 11px; line-height: 15px; color: var(--ink-muted); }
@media print {
  @page { size: A4; margin: 12mm; }
  .cn-sheet { width: auto; min-height: 0; padding: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .cn-spinner { animation-duration: 1.6s; }
  .cn-btn:active:not(:disabled), .cn-route:active, .cn-check:active .cn-check-box { transform: none; }
  .cn-progress-bar { transition: none; }
}
