:root {
  --proto-bg: #edf1f6;
  --proto-panel: #ffffff;
  --proto-ink: #182230;
  --proto-muted: #657287;
  --proto-line: #dfe5ed;
  --proto-blue: #1874c7;
  --proto-blue-dark: #0d5da3;
  --proto-blue-soft: #eaf4fe;
  --proto-green: #55b737;
  --proto-green-dark: #368f1f;
  --proto-green-soft: #eff9ec;
  --proto-orange: #f08a24;
  --proto-orange-soft: #fff4e8;
  --proto-red: #e5484d;
  --proto-red-soft: #fff0f0;
  --proto-purple: #7757d7;
  --proto-purple-soft: #f2efff;
  --admin-side: #263243;
  --admin-side-2: #1f2a39;
  --mobile-ink: #2c343d;
  --mobile-muted: #78818c;
  --mobile-ground: #f4f6f8;
  --shadow-sm: 0 4px 14px rgba(27, 40, 58, .08);
  --shadow-lg: 0 18px 48px rgba(25, 37, 55, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--proto-ink);
  background: var(--proto-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, h4, p { margin-top: 0; }

/* Prototype chrome */
.prototype-app { min-height: 100vh; }
.prototype-topbar {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto 0;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(15, 25, 39, .97);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.prototype-brand { display: flex; align-items: center; gap: 11px; }
.prototype-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, #2a91e8, #1264ae);
  font: 800 21px/1 Georgia, serif;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 18px rgba(17,102,180,.3);
}
.prototype-brand strong { display: block; font-size: 15px; letter-spacing: .02em; }
.prototype-brand small { display: block; margin-top: 1px; color: #9eacbd; font-size: 11px; }
.prototype-context { display: flex; align-items: center; gap: 14px; }
.context-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #38475a; border-radius: 20px; color: #bac5d2; font-size: 11px; }
.context-chip i { width: 7px; height: 7px; border-radius: 50%; background: #5dd544; box-shadow: 0 0 0 3px rgba(93,213,68,.15); }
.review-tools { position: relative; }
.review-tools > summary { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #425268; border-radius: 7px; color: #d5dde7; background: #253245; font-size: 11px; cursor: pointer; list-style: none; }
.review-tools > summary::-webkit-details-marker { display: none; }
.review-tools > summary span { color: #8795a7; transition: transform .2s; }
.review-tools[open] > summary span { transform: rotate(180deg); }
.review-tools-panel { position: absolute; top: 43px; right: 0; width: 292px; padding: 16px; color: var(--proto-ink); background: #fff; border: 1px solid #d9e1ea; border-radius: 10px; box-shadow: 0 18px 50px rgba(8,20,35,.28); }
.review-tools-panel:before { content: ""; position: absolute; top: -6px; right: 27px; width: 10px; height: 10px; background: #fff; border-top: 1px solid #d9e1ea; border-left: 1px solid #d9e1ea; transform: rotate(45deg); }
.review-tools-panel > strong { display: block; font-size: 13px; }
.review-tools-panel > p { margin: 5px 0 13px; color: var(--proto-muted); font-size: 10px; line-height: 1.6; }
.state-control { display: flex; align-items: center; gap: 8px; color: #aeb9c7; font-size: 11px; }
.state-control select { min-width: 96px; padding: 7px 26px 7px 10px; color: #fff; background: #253245; border: 1px solid #425268; border-radius: 7px; outline: none; }
.review-tools-panel .state-control { justify-content: space-between; color: #5f6d80; }
.review-tools-panel .state-control select { min-width: 165px; color: #263345; background: #fff; border-color: #cfd8e3; }
.review-reset { width: 100%; margin-top: 11px; padding: 7px 10px; color: var(--proto-blue); background: var(--proto-blue-soft); border: 0; border-radius: 6px; font-size: 10.5px; font-weight: 650; }
.icon-button { width: 34px; height: 34px; border: 1px solid #3c4b5d; border-radius: 8px; color: #dce3eb; background: #253245; }

.prototype-layout { min-height: 100vh; padding-top: 66px; }
.prototype-sidebar {
  position: fixed;
  z-index: 90;
  top: 66px;
  bottom: 0;
  left: 0;
  width: 252px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--proto-line);
  transition: transform .24s ease;
}
.prototype-sidebar.is-collapsed { transform: translateX(-252px); }
.sidebar-scroll { flex: 1; overflow: auto; padding: 18px 13px; }
.nav-eyebrow { margin: 0 10px 9px; color: #a0a9b7; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.page-index-title { margin-top: 18px; padding-top: 15px; border-top: 1px solid #edf0f4; }
.journey-shortcuts { display: grid; gap: 6px; }
.journey-shortcuts > button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px; color: #455366; background: #f8fafc; border: 1px solid #e3e8ef; border-radius: 8px; text-align: left; }
.journey-shortcuts > button:hover { color: var(--proto-blue); background: #f3f9ff; border-color: #a8cce9; }
.journey-shortcuts > button.is-active { color: var(--proto-blue-dark); background: var(--proto-blue-soft); border-color: #9dc8e9; box-shadow: inset 3px 0 0 var(--proto-blue); }
.journey-shortcuts > button > span:nth-child(2) { min-width: 0; flex: 1; }
.journey-shortcuts b, .journey-shortcuts small { display: block; }
.journey-shortcuts b { font-size: 11px; }
.journey-shortcuts small { margin-top: 1px; color: #8a96a5; font-size: 8.5px; }
.journey-shortcuts i { color: #9aa5b3; font-size: 8px; font-style: normal; }
.journey-icon { flex: 0 0 auto; display: grid !important; place-items: center; width: 27px; height: 27px; border-radius: 7px; font-size: 9px !important; font-weight: 800; }
.journey-icon.blue { color: var(--proto-blue); background: var(--proto-blue-soft); }
.journey-icon.green { color: var(--proto-green-dark); background: var(--proto-green-soft); }
.journey-icon.gray { color: #647184; background: #edf0f4; }
.prototype-nav { display: flex; flex-direction: column; gap: 3px; }
.proto-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  color: #536174;
  background: transparent;
  text-align: left;
  font-size: 12px;
}
.proto-nav-item:hover { background: #f4f7fa; color: var(--proto-ink); }
.proto-nav-item.is-active { color: var(--proto-blue); background: var(--proto-blue-soft); font-weight: 650; }
.proto-nav-item.is-in-journey:after { content: ""; width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: #8cc2e8; }
.proto-nav-item.is-active.is-in-journey:after { background: var(--proto-blue); box-shadow: 0 0 0 3px rgba(24,116,199,.12); }
.proto-nav-item > span { flex: 0 0 30px; color: #98a4b3; font-size: 9px; font-weight: 800; letter-spacing: .02em; }
.proto-nav-item.is-active > span { color: var(--proto-blue); }
.nav-group-title { margin: 15px 10px 5px; color: #98a4b3; font-size: 10px; font-weight: 700; }
.pending-group { margin: 7px 3px 0; }
.pending-group summary { padding: 7px 8px; color: #7b8796; font-size: 11px; cursor: pointer; list-style: none; }
.pending-group summary::-webkit-details-marker { display: none; }
.pending-group summary:before { content: "›"; display: inline-block; margin-right: 7px; transition: transform .2s; }
.pending-group[open] summary:before { transform: rotate(90deg); }
.pending-group summary b { float: right; padding: 0 6px; border-radius: 10px; background: #eef1f5; color: #8a96a5; font-size: 9px; }
.pending-items { padding: 2px 0 4px 17px; }
.pending-items button { display: block; width: 100%; padding: 5px 7px; border: 0; color: #8792a0; background: transparent; text-align: left; font-size: 10.5px; }
.pending-items button:hover { color: var(--proto-blue); }
.sidebar-foot { display: flex; align-items: center; gap: 9px; padding: 13px 17px; border-top: 1px solid #edf0f4; background: #fafbfc; }
.sidebar-foot .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: var(--proto-green); box-shadow: 0 0 0 3px rgba(85,183,55,.12); }
.sidebar-foot b, .sidebar-foot small { display: block; }
.sidebar-foot b { font-size: 10.5px; }
.sidebar-foot small { color: #8b96a4; font-size: 9px; }

.prototype-stage { min-height: calc(100vh - 66px); margin-left: 252px; transition: margin-left .24s ease; }
.prototype-stage.nav-collapsed { margin-left: 0; }
.page-meta-bar {
  position: sticky;
  z-index: 70;
  top: 66px;
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--proto-line);
  background: rgba(250,251,253,.94);
  backdrop-filter: blur(12px);
}
.page-meta-bar > div { display: flex; align-items: center; gap: 9px; }
.page-id-label { min-width: 32px; padding: 3px 7px; border-radius: 4px; color: #fff; background: #243246; font-size: 9px; font-weight: 800; text-align: center; }
.page-meta-bar strong { font-size: 12px; }
.meta-actions { color: #8793a2; font-size: 10.5px; }
.meta-actions button { padding: 3px 8px; border: 1px solid #d9e0e8; border-radius: 5px; color: #607084; background: #fff; }
.interaction-guide {
  position: sticky;
  z-index: 65;
  top: 115px;
  display: grid;
  grid-template-columns: auto minmax(280px,1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 66px;
  padding: 10px 20px;
  background: rgba(240,247,253,.97);
  border-bottom: 1px solid #cbddec;
  box-shadow: 0 5px 15px rgba(39,78,110,.055);
  backdrop-filter: blur(12px);
}
.guide-step { min-width: 72px; padding: 6px 9px; color: var(--proto-blue-dark); background: #dceefe; border-radius: 6px; font-size: 9px; font-weight: 800; text-align: center; letter-spacing: .03em; }
.guide-copy { min-width: 0; }
.guide-copy strong { display: block; margin-bottom: 2px; font-size: 12px; }
.guide-copy p { margin: 0; overflow: hidden; color: #617186; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.guide-actions { display: flex; align-items: center; gap: 6px; }
.guide-actions button { padding: 6px 10px; color: #536478; background: #fff; border: 1px solid #cdd9e4; border-radius: 6px; font-size: 9.5px; white-space: nowrap; }
.guide-actions button:hover:not(:disabled) { color: var(--proto-blue); border-color: #9fc8e8; }
.guide-actions button.primary { color: #fff; background: var(--proto-blue); border-color: var(--proto-blue); }
.guide-actions button:disabled { opacity: .42; }
.guide-actions .guide-locate { color: var(--proto-blue-dark); background: #fff; border-color: #a8cce9; }
.guide-actions .guide-exit { color: #7d8998; background: transparent; border-color: transparent; }
.is-guide-target { position: relative !important; z-index: 3; outline: 3px solid rgba(35,139,220,.38) !important; outline-offset: 3px; animation: guidePulse 1.25s ease-in-out 2; }
@keyframes guidePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(35,139,220,.28); } 50% { box-shadow: 0 0 0 9px rgba(35,139,220,0); } }
.prototype-page { display: none; padding: 27px 28px 60px; animation: pageIn .28s ease; }
.prototype-page.is-active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* Generic typography / buttons */
.eyebrow { display: block; margin-bottom: 6px; color: var(--proto-blue); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.ui-button { padding: 8px 14px; border: 1px solid #d5dde7; border-radius: 7px; color: #344154; background: #fff; font-weight: 650; }
.ui-button.primary { color: #fff; border-color: var(--proto-blue); background: var(--proto-blue); }
.ui-button.primary:hover { background: var(--proto-blue-dark); }
.ui-button.light { color: var(--proto-blue); border-color: #bfd9ef; background: #f5faff; }
.ui-button.large { padding: 11px 18px; }
.ui-button.full { width: 100%; }
.text-button { border: 0; color: var(--proto-blue); background: none; font-size: 12px; }

/* Cover */
.cover-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, .8fr);
  gap: 44px;
  min-height: 390px;
  padding: 58px 58px 46px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 12%, rgba(57,151,234,.25), transparent 26%),
    linear-gradient(135deg, #101c2b 0%, #172c43 58%, #123a5c 100%);
  box-shadow: var(--shadow-lg);
}
.cover-hero:before { content: ""; position: absolute; width: 360px; height: 360px; left: -110px; bottom: -270px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.018), 0 0 0 140px rgba(255,255,255,.012); }
.cover-copy { position: relative; z-index: 2; align-self: center; }
.version-pill { display: inline-block; padding: 5px 9px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; color: #9ed2ff; background: rgba(255,255,255,.05); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.cover-copy h1 { max-width: 650px; margin: 19px 0 16px; font-size: clamp(32px, 4vw, 54px); line-height: 1.12; letter-spacing: -.04em; }
.cover-copy p { max-width: 680px; margin-bottom: 25px; color: #b8c7d7; font-size: 14px; line-height: 1.85; }
.cover-actions { display: flex; gap: 10px; }
.cover-actions .ui-button.primary { border-color: #2c91e7; background: #2183d7; }
.cover-actions .ui-button.light { color: #d5e9fa; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.06); }
.cover-structure { position: relative; z-index: 2; align-self: center; padding: 23px; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; background: rgba(11,23,37,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.structure-top, .structure-level > div { border: 1px solid rgba(142,202,250,.24); border-radius: 9px; background: rgba(31,78,115,.28); }
.structure-top { padding: 13px 14px; }
.structure-top span, .structure-level span { display: block; margin-bottom: 4px; color: #73bff7; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.structure-top b, .structure-level b { display: block; font-size: 12px; }
.structure-line { width: 1px; height: 17px; margin: 0 auto; background: rgba(152,190,220,.38); }
.structure-level { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.structure-level > div { min-width: 0; padding: 11px 12px; }
.structure-level small { display: block; margin-top: 4px; color: #90a4b7; font-size: 9px; }
.structure-branch { display: flex; justify-content: space-around; height: 18px; padding: 0 8%; }
.structure-branch i { width: 1px; height: 18px; background: rgba(152,190,220,.38); }
.structure-level.small { grid-template-columns: repeat(3, 1fr); }
.structure-level.small > div { padding: 9px 10px; }
.cover-structure > p { margin: 16px 0 0; color: #91a7bb; font-size: 9.5px; text-align: center; }
.cover-structure > p strong { color: #ffb060; }
.role-path-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 18px; }
.role-path-card { display: flex; flex-direction: column; min-height: 250px; padding: 20px; background: #fff; border: 1px solid var(--proto-line); border-radius: 13px; box-shadow: var(--shadow-sm); }
.role-path-card header { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px 9px; padding-bottom: 13px; border-bottom: 1px solid #e9edf2; }
.role-path-card header span { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; font-size: 10px; font-weight: 800; }
.admin-path header span { color: var(--proto-blue); background: var(--proto-blue-soft); }
.user-path header span { color: var(--proto-green-dark); background: var(--proto-green-soft); }
.overview-path header span { color: #5e6a79; background: #eef1f4; }
.role-path-card header b { font-size: 14px; }
.role-path-card header em { color: #8c97a5; font-size: 9px; font-style: normal; }
.role-path-card ol { flex: 1; margin: 14px 0 16px; padding-left: 22px; color: #647184; font-size: 10.5px; line-height: 1.85; }
.role-path-card button { width: 100%; padding: 9px 11px; color: var(--proto-blue); background: #f5faff; border: 1px solid #bdd9ef; border-radius: 7px; font-weight: 700; }
.user-path button { color: var(--proto-green-dark); background: var(--proto-green-soft); border-color: #b9ddb0; }
.overview-path button { color: #596779; background: #f4f6f8; border-color: #d5dce4; }
.principle-drawer { margin-top: 15px; background: #fff; border: 1px solid var(--proto-line); border-radius: 11px; }
.principle-drawer > summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; color: #59677a; font-size: 11px; cursor: pointer; list-style: none; }
.principle-drawer > summary::-webkit-details-marker { display: none; }
.principle-drawer > summary b { color: var(--proto-blue); font-size: 9px; }
.principle-drawer[open] > summary { border-bottom: 1px solid #e9edf2; }
.principle-drawer .decision-grid { margin: 0; padding: 14px; }
.decision-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.decision-card { padding: 19px; border: 1px solid var(--proto-line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.decision-card > span { display: inline-block; color: #a8b3c1; font: 800 10px/1 monospace; }
.decision-card h3 { margin: 10px 0 7px; font-size: 14px; }
.decision-card p { margin: 0; color: var(--proto-muted); font-size: 11px; line-height: 1.7; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 36px 0 15px; }
.section-heading span { color: var(--proto-blue); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.section-heading h2 { margin: 2px 0 0; font-size: 20px; }
.journey-flow { display: flex; align-items: stretch; gap: 7px; padding: 16px; overflow-x: auto; border: 1px solid var(--proto-line); border-radius: 14px; background: #fff; }
.journey-flow > button { flex: 1 0 125px; min-width: 0; padding: 14px 12px; border: 1px solid #e1e7ee; border-radius: 9px; color: var(--proto-ink); background: #f9fbfd; text-align: left; }
.journey-flow > button:hover { border-color: #9fc9ec; background: var(--proto-blue-soft); }
.journey-flow em { display: inline-block; margin-bottom: 10px; padding: 2px 5px; border-radius: 3px; color: var(--proto-blue); background: #e3f1fc; font-size: 8px; font-style: normal; font-weight: 800; }
.journey-flow b, .journey-flow small { display: block; }
.journey-flow b { margin-bottom: 4px; font-size: 12px; }
.journey-flow small { color: var(--proto-muted); font-size: 9px; }
.journey-flow > i { align-self: center; color: #a9b5c3; font-style: normal; }
.scope-note { display: flex; gap: 12px; margin-top: 16px; padding: 14px 16px; border: 1px solid #f0d49d; border-radius: 10px; background: #fffaf0; }
.scope-icon { flex: 0 0 auto; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: #fff; background: var(--proto-orange); font: 700 12px/1 Georgia; }
.scope-note strong { font-size: 12px; }
.scope-note p { margin: 3px 0 0; color: #8b6a34; font-size: 10.5px; }

/* Sitemap */
.page-title-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 21px; }
.page-title-row h1 { margin-bottom: 5px; font-size: 28px; letter-spacing: -.02em; }
.page-title-row p { margin: 0; color: var(--proto-muted); font-size: 12px; }
.legend { display: flex; gap: 15px; color: var(--proto-muted); font-size: 10px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend-done { background: var(--proto-green); }
.legend-pending { border: 1px solid #9da9b7; background: transparent; }
.ia-columns { display: grid; grid-template-columns: 1.1fr .9fr; gap: 17px; align-items: start; }
.ia-column { padding: 19px; border: 1px solid var(--proto-line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.ia-column > header { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; padding-bottom: 14px; border-bottom: 1px solid #e9edf2; }
.ia-column > header.h5-header { margin-top: 22px; }
.ia-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; font-size: 11px; font-weight: 800; }
.ia-icon.blue { color: var(--proto-blue); background: var(--proto-blue-soft); }
.ia-icon.orange { color: #d46c08; background: var(--proto-orange-soft); }
.ia-icon.green { color: var(--proto-green-dark); background: var(--proto-green-soft); }
.ia-column header h2 { margin: 0; font-size: 16px; }
.ia-column header p { margin: 2px 0 0; color: var(--proto-muted); font-size: 10px; }
.ia-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.ia-list.compact { grid-template-columns: 1fr; }
.ia-list button { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px dashed #dfe4ea; border-radius: 8px; color: #566477; background: #fafbfc; text-align: left; }
.ia-list button:hover { border-color: #a9cbe8; background: #f5faff; }
.ia-list button.done { border-style: solid; color: var(--proto-ink); background: #fff; }
.ia-list button > b { flex: 0 0 30px; color: #8b98a8; font-size: 9px; }
.ia-list button.done > b { color: var(--proto-blue); }
.ia-list button > span { min-width: 0; flex: 1; font-size: 11px; font-weight: 650; }
.ia-list button small { display: block; overflow: hidden; margin-top: 2px; color: #929dac; font-size: 8px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.ia-list button em { flex: 0 0 auto; color: #9aa5b2; font-size: 8px; font-style: normal; }
.ia-list button.done em { color: var(--proto-green-dark); }
.ia-rule { margin-top: 11px; padding: 11px; border-radius: 8px; background: var(--proto-orange-soft); }
.ia-rule strong { color: #b66110; font-size: 10px; }
.ia-rule p { margin: 4px 0 0; color: #8e6b48; font-size: 9px; }

/* State system */
.state-demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.state-demo-grid article { min-height: 150px; padding: 20px; border: 1px solid var(--proto-line); border-radius: 12px; background: #fff; }
.state-symbol { display: grid; place-items: center; width: 35px; height: 35px; margin-bottom: 17px; border-radius: 10px; color: var(--proto-blue); background: var(--proto-blue-soft); font-size: 17px; font-weight: 700; }
.spinner-symbol:before { content: ""; width: 15px; height: 15px; border: 2px solid #a9d0ef; border-top-color: var(--proto-blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-symbol { color: var(--proto-red); background: var(--proto-red-soft); }
.lock-symbol { color: #6c7785; background: #eff1f4; }
.readonly-symbol { color: #b36a13; background: var(--proto-orange-soft); }
.conflict-symbol { color: var(--proto-purple); background: var(--proto-purple-soft); }
.state-demo-grid h3 { margin-bottom: 5px; font-size: 14px; }
.state-demo-grid p { margin: 0; color: var(--proto-muted); font-size: 10.5px; line-height: 1.7; }
.spec-panel { margin-top: 18px; padding: 23px; border: 1px solid var(--proto-line); border-radius: 14px; background: #fff; }
.spec-panel-title span { color: var(--proto-blue); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.spec-panel-title h2 { margin: 3px 0 20px; font-size: 18px; }
.write-flow { display: flex; align-items: center; gap: 8px; }
.write-node { flex: 1; padding: 15px; border: 1px solid #dee5ed; border-radius: 9px; background: #fafbfd; }
.write-node.emphasis { border-color: #9fc9ec; background: var(--proto-blue-soft); }
.write-node > b { display: grid; place-items: center; width: 20px; height: 20px; margin-bottom: 10px; border-radius: 50%; color: #fff; background: #8b9aaa; font-size: 9px; }
.write-node.emphasis > b { background: var(--proto-blue); }
.write-node strong, .write-node small { display: block; }
.write-node strong { font-size: 11px; }
.write-node small { margin-top: 3px; color: var(--proto-muted); font-size: 8.5px; }
.write-flow > i { color: #9facba; font-style: normal; }
.contract-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.contract-grid > div { padding: 11px; border-radius: 8px; background: #f5f7fa; }
.contract-grid strong { font-size: 10px; }
.contract-grid p { margin: 4px 0 0; color: var(--proto-muted); font-size: 9px; }

/* Screen framing */
.screen-intro { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.screen-intro > div:first-child { display: flex; align-items: center; gap: 11px; }
.screen-intro h1 { margin: 0; font-size: 19px; }
.screen-intro p { margin: 3px 0 0; color: var(--proto-muted); font-size: 10px; }
.screen-id { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--proto-blue); background: var(--proto-blue-soft); font-size: 10px; font-weight: 800; }
.screen-id.orange { color: #c76b13; background: var(--proto-orange-soft); }
.screen-id.green { color: var(--proto-green-dark); background: var(--proto-green-soft); }
.screen-links { display: flex; gap: 5px; }
.screen-links button { padding: 5px 8px; border: 0; color: var(--proto-blue); background: transparent; font-size: 10px; }
.annotation-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 13px; }
.annotation-strip > div { padding: 12px 13px; border: 1px solid var(--proto-line); border-left: 3px solid var(--proto-blue); border-radius: 7px; background: #fff; }
.annotation-strip b { font-size: 10px; }
.annotation-strip p { margin: 3px 0 0; color: var(--proto-muted); font-size: 9px; line-height: 1.6; }

/* Admin shell */
.admin-window { position: relative; min-width: 1080px; overflow: hidden; border: 1px solid #cfd7e1; border-radius: 10px; background: #fff; box-shadow: var(--shadow-lg); }
.admin-top { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; color: #fff; background: #182435; }
.admin-wordmark { display: flex; align-items: center; gap: 8px; }
.admin-wordmark > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; color: #fff; background: var(--proto-blue); font-size: 9px; font-weight: 800; }
.admin-wordmark b { font-size: 12px; letter-spacing: .04em; }
.admin-account { display: flex; align-items: center; gap: 8px; color: #c5ced8; font-size: 9px; }
.admin-account i { color: #7f8c9b; font-style: normal; }
.admin-account > b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #d4e8fa; background: #31465f; font-size: 9px; }
.draft-state { display: flex; align-items: center; gap: 6px; color: #99a9ba; font-size: 9px; }
.draft-state i { width: 6px; height: 6px; border-radius: 50%; background: #58c23c; }
.draft-state span { color: #68798b; }
.admin-body { display: flex; min-height: 610px; }
.admin-side { flex: 0 0 160px; padding: 12px 0; color: #b7c0cc; background: var(--admin-side); }
.admin-side p { margin: 10px 15px 5px; color: #647185; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.admin-side a { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 13px; color: #b7c0cc; text-decoration: none; font-size: 9.5px; cursor: pointer; }
.admin-side a:hover { color: #fff; background: rgba(255,255,255,.04); }
.admin-side a.active { color: #fff; background: var(--proto-blue); }
.admin-side a > i { display: grid; place-items: center; width: 25px; height: 18px; border-radius: 4px; color: #8f9baa; background: rgba(255,255,255,.055); font-size: 7px; font-style: normal; }
.admin-side a.active > i { color: #fff; background: rgba(255,255,255,.15); }
.admin-side a > em { position: absolute; right: 10px; padding: 0 5px; border-radius: 8px; color: #fff; background: var(--proto-red); font-size: 7px; font-style: normal; }
.admin-main { flex: 1; min-width: 0; padding: 14px 15px 20px; background: #f4f6f9; }
.admin-crumb { margin-bottom: 10px; color: #8995a4; font-size: 8.5px; }
.admin-crumb span { margin: 0 5px; color: #c3c9d0; }
.admin-page-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.admin-page-title h2 { margin: 0; font-size: 15px; }
.admin-page-title p { margin: 2px 0 0; color: #7e8998; font-size: 8.5px; }
.admin-page-title h2 .status-tag { vertical-align: 2px; }
.title-actions { display: flex; gap: 6px; }
.admin-btn { padding: 5px 10px; border: 1px solid #ccd5df; border-radius: 4px; color: #455366; background: #fff; font-size: 8.5px; }
.admin-btn:hover { border-color: #7cb3e0; color: var(--proto-blue); }
.admin-btn.primary { color: #fff; border-color: var(--proto-blue); background: var(--proto-blue); }
.admin-btn.primary:hover { background: var(--proto-blue-dark); }
.admin-btn.danger-outline { color: var(--proto-red); border-color: #efb5b7; }
.admin-btn.full { width: 100%; margin-top: 8px; padding: 7px; }
.admin-link { padding: 3px 5px; border: 0; color: var(--proto-blue); background: transparent; font-size: 8.5px; }
.round-icon { width: 26px; height: 26px; border: 1px solid #d1d9e2; border-radius: 50%; color: #687688; background: #fff; font-size: 10px; }
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 11px; }
.metric-row.five { grid-template-columns: repeat(5, 1fr); }
.metric-row > div { padding: 10px 12px; border: 1px solid #e4e8ee; border-radius: 5px; background: #fff; }
.metric-row span, .metric-row b, .metric-row small { display: block; }
.metric-row span { color: #768294; font-size: 8px; }
.metric-row b { margin: 4px 0 1px; font-size: 17px; font-weight: 650; }
.metric-row small { color: #9ba5b1; font-size: 7.5px; }
.metric-row .up, .green-text { color: #3a9b20; }
.danger-text { color: var(--proto-red) !important; }
.admin-panel { border: 1px solid #e1e6ec; border-radius: 5px; background: #fff; }
.filter-bar { display: flex; align-items: center; gap: 6px; padding: 10px 11px; border-bottom: 1px solid #edf0f3; }
.filter-bar.multi { flex-wrap: wrap; }
.filter-spacer { flex: 1; }
.admin-input, .admin-select { height: 26px; display: flex; align-items: center; gap: 5px; min-width: 90px; padding: 0 8px; border: 1px solid #d4dbe4; border-radius: 4px; color: #7b8796; background: #fff; font-size: 8px; }
.admin-input.search { min-width: 145px; }
.admin-input.search span { color: #a0a9b4; }
.admin-select { justify-content: space-between; }
.admin-select.wide { min-width: 170px; }
.admin-select span { color: #9ca7b5; }
.refresh-note { color: #9ba5b1; font-size: 7.5px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; color: #475568; font-size: 8px; }
.admin-table th { padding: 8px 8px; color: #768293; background: #f8fafc; font-weight: 650; text-align: left; white-space: nowrap; }
.admin-table td { padding: 9px 8px; border-top: 1px solid #eef1f4; vertical-align: middle; }
.admin-table tr:hover td { background: #fbfdff; }
.admin-table td b { color: #303c4d; font-weight: 650; }
.admin-table td small { display: block; margin-top: 2px; color: #929dab; font-size: 7px; }
.race-cell { display: flex; align-items: center; gap: 8px; min-width: 180px; }
.race-thumb { display: grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; border-radius: 7px; color: #fff; background: linear-gradient(145deg,#3f80a8,#234a69); font-size: 10px; font-weight: 800; }
.race-thumb.relay { background: linear-gradient(145deg,#8a5dd9,#4e337e); }
.race-thumb.online { background: linear-gradient(145deg,#4bbba6,#226f65); }
.date-range small { margin-top: 1px !important; }
.status-tag { display: inline-block; padding: 1px 5px; border: 1px solid transparent; border-radius: 3px; font-size: 7px; font-style: normal; font-weight: 600; white-space: nowrap; }
.status-tag.success { color: #3c8f25; border-color: #b9dda9; background: #f1f9ee; }
.status-tag.info { color: #276fae; border-color: #b5d2eb; background: #eef6fd; }
.status-tag.warning { color: #aa6b0c; border-color: #edcf99; background: #fff7e9; }
.status-tag.neutral { color: #717c8a; border-color: #d6dce3; background: #f6f7f8; }
.status-tag.purple { color: #6b50bf; border-color: #cfc5f0; background: var(--proto-purple-soft); }
.number-link, .table-link, .task-link { padding: 0; border: 0; color: var(--proto-blue); background: none; font-size: inherit; }
.table-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.table-actions button { padding: 0; border: 0; color: var(--proto-blue); background: none; font-size: 7.5px; }
.muted { color: #a0a9b3; }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; color: #8d98a6; font-size: 7.5px; }
.table-footer div { display: flex; gap: 3px; }
.table-footer button { width: 21px; height: 21px; border: 1px solid #d9dfe6; color: #748092; background: #fff; font-size: 8px; }
.table-footer button.active { color: #fff; border-color: var(--proto-blue); background: var(--proto-blue); }

/* A02 edit */
.event-side { flex-basis: 177px; }
.event-mini { display: flex; align-items: center; gap: 8px; margin: 7px 9px 13px; padding: 9px; border-radius: 5px; background: rgba(255,255,255,.05); }
.event-mini > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 6px; color: #d8eeff; background: #36566f; font-size: 9px; font-weight: 800; }
.event-mini b, .event-mini small { display: block; }
.event-mini b { max-width: 105px; overflow: hidden; color: #e2e7ed; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.event-mini small { margin-top: 2px; color: #8794a4; font-size: 7px; }
.edit-main { padding-bottom: 0; }
.sticky-title { padding: 0 1px; }
.edit-layout { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 10px; }
.completion-rail { align-self: start; padding: 10px; border: 1px solid #e1e6ec; border-radius: 5px; background: #fff; }
.completion-total { padding: 4px 5px 10px; border-bottom: 1px solid #edf0f3; }
.completion-total span { color: #7d8998; font-size: 8px; }
.completion-total b { float: right; font-size: 12px; }
.completion-total > i { display: block; height: 4px; margin-top: 7px; overflow: hidden; border-radius: 3px; background: #e8edf2; }
.completion-total > i em { display: block; height: 100%; border-radius: inherit; background: var(--proto-green); }
.completion-rail button { width: 100%; display: flex; align-items: center; gap: 6px; padding: 6px 4px; border: 0; color: #536174; background: transparent; text-align: left; font-size: 8px; }
.completion-rail button > span { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; color: #fff; background: #b7c0cb; font-size: 7px; }
.completion-rail button.complete > span { background: var(--proto-green); }
.completion-rail button.warning > span { background: var(--proto-orange); }
.completion-rail button.blocked > span { background: var(--proto-red); }
.completion-rail button > em { margin-left: auto; color: #9ca6b3; font-size: 6.8px; font-style: normal; }
.completion-rail button.warning > em { color: #b66c10; }
.completion-rail button.blocked > em { color: var(--proto-red); }
.form-card { margin-bottom: 9px; padding: 12px; border: 1px solid #e1e6ec; border-radius: 5px; background: #fff; }
.form-card > header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 11px; padding-bottom: 9px; border-bottom: 1px solid #eef1f4; }
.form-card h3 { margin: 0; font-size: 11px; }
.form-card header p { margin: 2px 0 0; color: #8994a2; font-size: 7.5px; }
.save-mark { color: var(--proto-green-dark); font-size: 7.5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px 16px; }
.field-row { display: flex; flex-direction: column; gap: 5px; color: #4f5e70; font-size: 8px; }
.field-row.full { grid-column: 1 / -1; }
.field-row > span { font-weight: 650; }
.field-row > span b { color: var(--proto-red); }
.field-row > small { color: #929dab; font-size: 7px; }
.radio-cards { display: grid; gap: 7px; }
.radio-cards.three { grid-template-columns: repeat(3, 1fr); }
.radio-cards label { display: flex; gap: 5px; padding: 8px; border: 1px solid #dce2e9; border-radius: 5px; cursor: pointer; }
.radio-cards label.selected { border-color: var(--proto-blue); background: #f4f9fd; }
.radio-cards input { width: 11px; height: 11px; margin: 1px 0 0; accent-color: var(--proto-blue); }
.radio-cards b, .radio-cards small { display: block; }
.radio-cards b { font-size: 8px; }
.radio-cards small { margin-top: 2px; color: #8b96a4; font-size: 6.5px; line-height: 1.45; }
.input-with-unit { width: 150px; display: flex; border: 1px solid #d6dde5; border-radius: 4px; overflow: hidden; }
.input-with-unit input { min-width: 0; width: 100%; padding: 5px 7px; border: 0; outline: none; font-size: 8px; }
.input-with-unit em { padding: 5px 8px; color: #7b8796; background: #f5f7f9; font-size: 7.5px; font-style: normal; }
.switch-row { display: flex; align-items: center; gap: 7px; }
.switch { position: relative; width: 29px; height: 16px; padding: 0; border: 0; border-radius: 9px; background: #c7ced6; }
.switch i { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: left .2s; }
.switch.on { background: var(--proto-blue); }
.switch.on i { left: 15px; }
.admin-select.wide { width: 185px; }
.inline-summary { display: flex; align-items: center; gap: 7px; padding: 8px; border-radius: 5px; background: #f7f9fb; }
.inline-summary > b { font-size: 8px; }
.inline-summary > small { margin-left: auto; color: #8894a2; font-size: 7px; }
.editable-field-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.editable-field-list > div { position: relative; padding: 9px; border: 1px solid #e2e7ed; border-radius: 5px; }
.editable-field-list span { font-size: 8px; font-weight: 650; }
.editable-field-list > div > b { float: right; padding: 1px 5px; border-radius: 3px; font-size: 6.5px; }
.tag-ok { color: var(--proto-green-dark); background: var(--proto-green-soft); }
.tag-lock { color: #778290; background: #eff1f4; }
.editable-field-list small { display: block; clear: both; padding-top: 4px; color: #929ca9; font-size: 6.8px; }

/* A03 batches */
.batch-page { padding-bottom: 0; }
.hierarchy-banner { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; padding: 7px 10px; border: 1px solid #cfe0ef; border-radius: 5px; color: #627083; background: #f3f8fc; font-size: 7.5px; }
.hierarchy-banner span { padding: 1px 4px; border-radius: 3px; color: var(--proto-blue); background: #deeffd; font-size: 6.5px; font-weight: 700; }
.hierarchy-banner b { font-size: 7.5px; }
.hierarchy-banner i { color: #a9b3bf; font-style: normal; }
.batch-layout { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 9px; }
.batch-list { align-self: start; border: 1px solid #e0e5eb; border-radius: 5px; background: #fff; }
.batch-list-head { display: flex; align-items: center; justify-content: space-between; padding: 9px; border-bottom: 1px solid #edf0f3; font-size: 8px; }
.batch-list-head button { border: 0; color: var(--proto-blue); background: none; font-size: 7px; }
.batch-item { position: relative; width: 100%; display: flex; align-items: flex-start; gap: 7px; padding: 10px 8px; border: 0; border-bottom: 1px solid #edf0f3; color: #485669; background: #fff; text-align: left; }
.batch-item:last-child { border-bottom: 0; }
.batch-item:hover { background: #fafcff; }
.batch-item.active { background: #edf6fd; box-shadow: inset 3px 0 0 var(--proto-blue); }
.type-badge { display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 5px; color: var(--proto-blue); background: #dcedfb; font-size: 8px; font-weight: 800; }
.type-badge.purple { color: #6c4ac7; background: var(--proto-purple-soft); }
.type-badge.orange { color: #c66a12; background: var(--proto-orange-soft); }
.type-badge.green { color: var(--proto-green-dark); background: var(--proto-green-soft); }
.batch-item > div { min-width: 0; flex: 1; }
.batch-item b, .batch-item small { display: block; }
.batch-item b { font-size: 8px; }
.batch-item small { margin-top: 2px; color: #8995a4; font-size: 6.5px; }
.batch-item em { display: block; height: 3px; margin-top: 6px; overflow: hidden; border-radius: 2px; background: #e3e8ee; }
.batch-item em i { display: block; height: 100%; background: var(--proto-blue); }
.batch-item > strong { position: absolute; top: 8px; right: 7px; }
.batch-editor { min-width: 0; }
.batch-editor-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border: 1px solid #e0e5eb; border-radius: 5px 5px 0 0; background: #fff; }
.batch-editor-head > div { display: flex; align-items: center; gap: 6px; }
.batch-editor-head h3 { margin: 0; font-size: 11px; }
.config-tabs { display: flex; gap: 13px; padding: 0 10px; border: 1px solid #e0e5eb; border-top: 0; background: #fff; }
.config-tabs button { padding: 8px 0 7px; border: 0; border-bottom: 2px solid transparent; color: #7d8998; background: transparent; font-size: 7.5px; }
.config-tabs button.active { color: var(--proto-blue); border-bottom-color: var(--proto-blue); font-weight: 650; }
.batch-form-card { margin-top: 8px; padding: 11px; border: 1px solid #e0e5eb; border-radius: 5px; background: #fff; }
.batch-form-card > header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 9px; }
.batch-form-card h4 { margin: 0; font-size: 9.5px; }
.batch-form-card header p { margin: 2px 0 0; color: #8d98a5; font-size: 7px; }
.group-type-selector { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.group-type-selector button { display: flex; align-items: center; gap: 6px; padding: 7px; border: 1px solid #dce2e9; border-radius: 5px; color: #4d5b6c; background: #fff; text-align: left; }
.group-type-selector button.active { color: var(--proto-blue); border-color: var(--proto-blue); background: #f3f9fe; }
.group-type-selector button > b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: #eef2f6; font-size: 8px; }
.group-type-selector button.active > b { color: #fff; background: var(--proto-blue); }
.group-type-selector span, .group-type-selector small { display: block; }
.group-type-selector span { font-size: 7.5px; font-weight: 650; }
.group-type-selector small { margin-top: 1px; color: #949eaa; font-size: 5.8px; font-weight: 400; }
.type-config { display: none; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.type-config.active { display: grid; }
.field-mini { min-height: 54px; padding: 7px; border-radius: 5px; background: #f6f8fa; }
.field-mini > span, .field-mini > b, .field-mini > small { display: block; }
.field-mini > span { color: #8792a0; font-size: 6.5px; }
.field-mini > b { margin-top: 4px; font-size: 8px; }
.field-mini > small { margin-top: 2px; color: #929ca8; font-size: 6px; }
.mini-options { display: flex; margin-top: 4px; }
.mini-options button { padding: 3px 5px; border: 1px solid #d7dee6; color: #778494; background: #fff; font-size: 6px; }
.mini-options button + button { border-left: 0; }
.mini-options button.active { color: #fff; border-color: var(--proto-blue); background: var(--proto-blue); }
.inherit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.inherit-grid > div { display: flex; flex-direction: column; gap: 3px; padding: 7px; border-left: 2px solid #c5d9eb; background: #f6f9fb; }
.inherit-grid span { color: #84909e; font-size: 6.5px; }
.inherit-grid b { font-size: 7.5px; }
.compact-table td, .compact-table th { padding: 6px; }
.inherit-tag { display: inline-block; padding: 1px 4px; border-radius: 3px; color: #657487; background: #eef1f4; font-size: 6.5px; }

/* A04 orders */
.saved-filter-row { display: flex; align-items: center; gap: 5px; padding: 7px 11px; border-bottom: 1px solid #edf0f3; color: #8a95a3; font-size: 7.5px; }
.saved-filter-row button { padding: 3px 7px; border: 1px solid #dce2e8; border-radius: 10px; color: #687587; background: #fff; font-size: 7px; }
.saved-filter-row button.active { color: var(--proto-blue); border-color: #a9cee9; background: #f2f8fd; }
.saved-filter-row button b { color: var(--proto-red); }
.order-code b { font-family: "SFMono-Regular", Consolas, monospace; }
.people-stack span { display: block; }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; }
.status-dot.success { background: var(--proto-green); }
.status-dot.warning { background: var(--proto-orange); }
.status-dot.info { background: var(--proto-blue); }
.dual-status { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.highlight-row td { background: #fffdf8; }
.task-link { font-size: 7.5px; }

/* A05 review */
.review-window .admin-body { min-height: 670px; }
.review-progress { display: flex; align-items: center; gap: 12px; color: #9eabb9; font-size: 8px; }
.review-progress i { width: 1px; height: 14px; background: #3b495a; }
.review-progress b { color: #fff; }
.review-main { padding: 0; overflow: hidden; }
.review-toolbar { height: 45px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-bottom: 1px solid #dfe5eb; background: #fff; }
.review-tabs { flex: 1; align-self: stretch; display: flex; gap: 14px; }
.review-tabs button { padding: 0 3px; border: 0; border-bottom: 2px solid transparent; color: #7a8695; background: transparent; font-size: 8px; }
.review-tabs button.active { color: var(--proto-blue); border-bottom-color: var(--proto-blue); font-weight: 650; }
.review-tabs b { color: var(--proto-red); }
.review-workspace { height: 625px; display: grid; grid-template-columns: 177px minmax(390px, 1fr) 183px; }
.review-queue { overflow: auto; border-right: 1px solid #dfe5eb; background: #f8fafc; }
.queue-head { display: flex; align-items: center; justify-content: space-between; padding: 9px; color: #6e7b8b; font-size: 7px; }
.queue-head b { color: #344153; font-size: 8px; }
.queue-card { width: calc(100% - 12px); margin: 0 6px 6px; padding: 8px; border: 1px solid #e1e6ec; border-radius: 5px; color: #485668; background: #fff; text-align: left; }
.queue-card.active { border-color: #91bee3; background: #f4f9fd; box-shadow: inset 2px 0 0 var(--proto-blue); }
.queue-card > div, .queue-card footer { display: flex; align-items: center; justify-content: space-between; }
.queue-card > div > b { font: 650 7px/1.2 monospace; }
.queue-card > strong { display: block; margin-top: 6px; color: #344052; font-size: 8px; }
.queue-card p { margin: 2px 0 6px; color: #84909e; font-size: 7px; }
.queue-card footer { padding-top: 5px; border-top: 1px solid #edf0f3; color: #83909f; font-size: 6.5px; }
.queue-card footer em { color: #b46c12; font-style: normal; }
.review-detail { overflow: auto; padding: 10px; background: #f4f6f9; }
.review-order-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.review-order-head h3 { margin: 0; font-size: 10px; }
.review-order-head p { margin: 2px 0 0; color: #8793a1; font-size: 7px; }
.review-order-head > div:last-child { display: flex; align-items: center; gap: 5px; }
.review-alert { display: flex; gap: 9px; margin-bottom: 7px; padding: 7px 8px; border: 1px solid #c9def0; border-radius: 5px; color: #4c6e8b; background: #eff7fd; font-size: 7px; }
.review-alert b { flex: 0 0 auto; color: var(--proto-blue); }
.person-review-card { margin-bottom: 7px; padding: 9px; border: 1px solid #e0e5eb; border-radius: 5px; background: #fff; }
.person-review-card > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.person-review-card > header > div { display: flex; align-items: center; gap: 7px; }
.person-avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; background: var(--proto-blue); font-size: 8px; font-weight: 700; }
.person-avatar.child { background: var(--proto-green); }
.person-review-card header b, .person-review-card header small { display: block; }
.person-review-card header b { font-size: 8px; }
.person-review-card header small { margin-top: 1px; color: #8d98a5; font-size: 6.5px; }
.attachment-compare { display: grid; grid-template-columns: 1.05fr .95fr 1.2fr .75fr; gap: 6px; align-items: stretch; }
.attachment-compare > div:first-child { padding: 6px; border-radius: 4px; background: #f6f8fa; }
.attachment-compare span, .attachment-compare b, .attachment-compare small { display: block; }
.attachment-compare span { color: #8793a1; font-size: 6px; }
.attachment-compare b { margin-top: 2px; font-size: 7px; }
.attachment-compare small { margin-top: 2px; color: #929ca8; font-size: 5.8px; }
.file-card { padding: 6px; border: 1px solid #e0e5eb; border-radius: 4px; color: #4b586a; background: #fff; text-align: left; }
.file-card.old { opacity: .7; background: #f7f8fa; }
.file-card.current { border-color: #9bc5e7; background: #f4f9fd; }
.field-decision { display: flex; flex-direction: column; gap: 4px; }
.field-decision button { flex: 1; padding: 4px; border: 1px solid #d9e0e7; border-radius: 3px; color: #758191; background: #fff; font-size: 6px; }
.field-decision button.selected { color: var(--proto-green-dark); border-color: #abd59a; background: #f2faef; }
.review-history { text-align: center; }
.review-history button { padding: 5px; border: 0; color: var(--proto-blue); background: transparent; font-size: 7px; }
.review-actions-panel { padding: 11px; border-left: 1px solid #dfe5eb; background: #fff; }
.review-actions-panel h3 { margin-bottom: 9px; font-size: 10px; }
.decision-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
.decision-summary > div { padding: 6px; border-radius: 4px; background: #f5f7f9; }
.decision-summary span, .decision-summary b { display: block; }
.decision-summary span { color: #8894a2; font-size: 6px; }
.decision-summary b { margin-top: 2px; font-size: 7px; }
.review-note { display: block; margin-top: 10px; color: #647184; font-size: 7px; }
.review-note textarea { width: 100%; height: 50px; margin-top: 4px; padding: 6px; resize: none; border: 1px solid #d8dfe7; border-radius: 4px; outline: none; font-size: 7px; }
.key-rule { margin-top: 12px; padding: 8px; border-left: 2px solid var(--proto-orange); background: var(--proto-orange-soft); }
.key-rule b { color: #a96112; font-size: 7px; }
.key-rule p { margin: 3px 0 0; color: #8e704d; font-size: 6px; line-height: 1.5; }

/* Existing SaaS admin visual alignment
 * Source of truth: global.css + ant-design-theme.css + new/common.css.
 * The public H5 screens below intentionally keep the tenant-theme treatment. */
.admin-window {
  min-width: 1280px;
  border-color: #d9d9d9;
  border-radius: 8px;
  color: rgba(0, 0, 0, .85);
  background: #fff;
  box-shadow: 0 2px 8px rgba(26, 100, 207, .08);
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
}
.admin-window button,
.admin-window input,
.admin-window select,
.admin-window textarea { font-size: 12px; }
.admin-window small { font-size: 11px; }
.admin-top {
  height: 60px;
  justify-content: flex-start;
  gap: 0;
  padding: 0 18px 0 0;
  color: #49657e;
  background: #fff;
  border-bottom: 1px solid #eef1f4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05), 0 1px 2px rgba(0, 0, 0, .03);
}
.admin-wordmark {
  align-self: stretch;
  flex: 0 0 auto;
  gap: 0;
}
.admin-wordmark > span {
  position: relative;
  width: 195px;
  height: 60px;
  border-radius: 0;
  color: transparent;
  background: #242c34;
  box-shadow: none;
}
.admin-wordmark > span:before {
  content: "最游";
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: #1874c7;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22);
  font-size: 12px;
  font-weight: 700;
}
.admin-wordmark b {
  margin: 0 20px;
  color: #111;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}
.admin-system-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  white-space: nowrap;
}
.admin-system-links button,
.admin-edition {
  padding: 8px 9px;
  border: 0;
  color: #49657e;
  background: transparent;
  font-size: 12px;
}
.admin-system-links button:hover { color: #233; background: #fff; }
.admin-edition { color: #7b8998; }
.admin-account {
  gap: 7px;
  margin-left: 6px;
  padding-left: 12px;
  border-left: 1px solid #edf0f3;
  color: #49657e;
  font-size: 12px;
}
.admin-account i { color: #8a96a3; }
.admin-account > b {
  width: 30px;
  height: 30px;
  color: #fff;
  background: #1874c7;
  font-size: 11px;
}
.draft-state,
.review-progress {
  flex: 0 0 auto;
  color: #778698;
  font-size: 11px;
}
.draft-state span { color: #9aa5b2; }
.draft-state i { width: 7px; height: 7px; }
.review-progress i { height: 18px; background: #d9dfe5; }
.review-progress b { color: #1874c7; }
.admin-body { min-height: 680px; }
.admin-side,
.admin-side.event-side {
  flex: 0 0 195px;
  padding: 8px 10px 20px;
  color: #cdd0d8;
  background: #242c34;
}
.admin-side p {
  margin: 16px 10px 6px;
  color: #788493;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
}
.admin-side a {
  gap: 8px;
  margin: 2px 0;
  padding: 12px 10px;
  border-radius: 6px;
  color: #cdd0d8;
  font-size: 12px;
  text-shadow: 0 1px 0 #000;
}
.admin-side a:hover { color: #fff; background: #424c56; }
.admin-side a.active { color: #fff; background: #275dcd; }
.admin-side a > i {
  width: 31px;
  height: auto;
  border-radius: 0;
  color: #aeb7c1;
  background: transparent;
  font-size: 9px;
}
.admin-side a.active > i { color: #fff; background: transparent; }
.admin-side a > em { right: 9px; padding: 1px 6px; border-radius: 10px; font-size: 9px; }
.event-mini {
  gap: 9px;
  margin: 8px 0 14px;
  padding: 10px;
  border-radius: 6px;
  background: #1f2831;
}
.event-mini > span { width: 34px; height: 34px; border-radius: 50%; font-size: 11px; }
.event-mini b { max-width: 116px; color: #fff; font-size: 11px; }
.event-mini small { color: #8995a2; font-size: 10px; }
.admin-main { padding: 20px 24px 28px; background: #fff; }
.admin-crumb { margin-bottom: 13px; color: #8693a1; font-size: 12px; }
.admin-page-title { margin-bottom: 16px; }
.admin-page-title h2 { font-size: 20px; font-weight: 500; }
.admin-page-title p { margin-top: 4px; color: #7b8794; font-size: 12px; }
.title-actions { gap: 8px; }
.admin-btn {
  min-height: 34px;
  padding: 7px 14px;
  border-color: #d9d9d9;
  border-radius: 5px;
  color: rgba(0, 0, 0, .85);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .045);
  font-size: 12px;
}
.admin-btn:hover { color: #1874c7; border-color: #1874c7; }
.admin-btn.primary { border-color: #1874c7; background: #1874c7; }
.admin-btn.primary:hover { border-color: #1c88e3; background: #1c88e3; }
.admin-btn.full { margin-top: 10px; padding: 8px 12px; }
.admin-link { padding: 4px 6px; color: #1874c7; font-size: 12px; }
.round-icon { width: 34px; height: 34px; border-color: #d9d9d9; font-size: 14px; }
.metric-row { gap: 10px; margin-bottom: 14px; }
.metric-row > div {
  padding: 15px 18px;
  border-color: #eceff2;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05), 0 1px 2px rgba(0, 0, 0, .03);
}
.metric-row span { color: #687687; font-size: 12px; }
.metric-row b { margin: 5px 0 2px; font-size: 24px; }
.metric-row small { color: #939eaa; font-size: 11px; }
.admin-panel {
  border-color: #d9d9d9;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(26, 100, 207, .06);
}
.filter-bar { gap: 8px; padding: 13px 14px; border-color: #ededed; }
.admin-input,
.admin-select {
  height: 34px;
  min-width: 116px;
  padding: 0 10px;
  border-color: #d9d9d9;
  border-radius: 6px;
  color: rgba(0, 0, 0, .65);
  font-size: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.admin-input:hover,
.admin-select:hover { border-color: #1874c7; }
.admin-input.search { min-width: 190px; }
.admin-select.wide { width: auto; min-width: 215px; }
.refresh-note { font-size: 11px; }
.admin-table { color: rgba(0, 0, 0, .75); font-size: 12px; }
.admin-table th {
  padding: 12px 9px;
  color: rgba(0, 0, 0, .65);
  background: #fafafa;
  border-bottom: 1px solid #d9d9d9;
  font-size: 12px;
}
.admin-table td { padding: 12px 9px; border-color: #ededed; }
.admin-table tr:hover td { background: #fafcff; }
.admin-table td b { color: rgba(0, 0, 0, .85); }
.admin-table td small { margin-top: 3px; color: #929aa5; font-size: 11px; }
.race-cell { gap: 10px; min-width: 250px; }
.race-thumb { width: 44px; height: 44px; border-radius: 5px; font-size: 13px; }
.admin-window .status-tag { padding: 2px 7px; border-radius: 4px; font-size: 10px; }
.table-actions { gap: 9px; }
.table-actions button,
.task-link { color: #1874c7; font-size: 12px; }
.table-footer { padding: 11px 14px; font-size: 11px; }
.table-footer button { width: 28px; height: 28px; font-size: 11px; }

/* Event edit and batch screens */
.edit-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 14px; }
.completion-rail { padding: 13px; border-color: #d9d9d9; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.04); }
.completion-total { padding: 5px 6px 12px; }
.completion-total span { font-size: 12px; }
.completion-total b { font-size: 16px; }
.completion-rail button { gap: 8px; padding: 8px 5px; font-size: 11px; }
.completion-rail button > span { width: 18px; height: 18px; font-size: 9px; }
.completion-rail button > em { font-size: 9px; }
.form-card { margin-bottom: 12px; padding: 16px; border-color: #d9d9d9; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.04); }
.form-card > header { margin-bottom: 14px; padding-bottom: 12px; }
.form-card h3 { font-size: 15px; }
.form-card header p { margin-top: 3px; font-size: 11px; }
.save-mark { font-size: 11px; }
.form-grid { gap: 14px 20px; }
.field-row { gap: 7px; font-size: 12px; }
.field-row > small { font-size: 11px; }
.radio-cards { gap: 9px; }
.radio-cards label { gap: 7px; padding: 11px; border-radius: 6px; }
.radio-cards input { width: 14px; height: 14px; }
.radio-cards b { font-size: 12px; }
.radio-cards small { font-size: 10px; }
.input-with-unit { width: 190px; border-color: #d9d9d9; border-radius: 6px; }
.input-with-unit input { padding: 7px 9px; font-size: 12px; }
.input-with-unit em { padding: 7px 10px; font-size: 11px; }
.switch { width: 38px; height: 20px; border-radius: 11px; }
.switch i { width: 16px; height: 16px; }
.switch.on i { left: 20px; }
.inline-summary { flex-wrap: wrap; gap: 9px; padding: 11px; border-radius: 6px; }
.inline-summary > b { font-size: 12px; }
.inline-summary > small { flex: 1 0 100%; margin-left: 0; font-size: 10px; }
.editable-field-list { gap: 9px; }
.editable-field-list > div { padding: 12px; border-radius: 6px; }
.editable-field-list span { font-size: 12px; }
.editable-field-list > div > b { padding: 2px 7px; font-size: 10px; }
.editable-field-list small { padding-top: 6px; font-size: 10px; }
.hierarchy-banner { gap: 8px; margin-bottom: 12px; padding: 10px 13px; border-radius: 6px; font-size: 11px; }
.hierarchy-banner span { padding: 2px 6px; font-size: 10px; }
.hierarchy-banner b { font-size: 11px; }
.batch-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 12px; }
.batch-list { border-color: #d9d9d9; border-radius: 8px; }
.batch-list-head { padding: 12px; font-size: 12px; }
.batch-list-head button { font-size: 11px; }
.batch-item { gap: 9px; padding: 13px 11px; }
.type-badge { width: 30px; height: 30px; border-radius: 6px; font-size: 11px; }
.batch-item b { font-size: 12px; }
.batch-item small { font-size: 10px; }
.batch-editor-head { padding: 12px 14px; border-color: #d9d9d9; border-radius: 8px 8px 0 0; }
.batch-editor-head h3 { font-size: 15px; }
.config-tabs { gap: 20px; padding: 0 14px; border-color: #d9d9d9; }
.config-tabs button { padding: 11px 0 9px; font-size: 11px; }
.batch-form-card { margin-top: 11px; padding: 14px; border-color: #d9d9d9; border-radius: 8px; }
.batch-form-card > header { margin-bottom: 12px; }
.batch-form-card h4 { font-size: 14px; }
.batch-form-card header p { font-size: 10px; }
.group-type-selector { gap: 8px; }
.group-type-selector button { gap: 8px; padding: 10px; border-radius: 6px; }
.group-type-selector button > b { width: 30px; height: 30px; font-size: 11px; }
.group-type-selector span { font-size: 11px; }
.group-type-selector small { font-size: 9px; }
.type-config { gap: 8px; margin-top: 10px; }
.field-mini { min-height: 72px; padding: 10px; border-radius: 6px; }
.field-mini > span { font-size: 10px; }
.field-mini > b { margin-top: 5px; font-size: 12px; }
.field-mini > small { font-size: 9px; }
.mini-options button { padding: 4px 7px; font-size: 9px; }
.inherit-grid { gap: 8px; }
.inherit-grid > div { gap: 4px; padding: 10px; }
.inherit-grid span { font-size: 10px; }
.inherit-grid b { font-size: 11px; }
.compact-table td,
.compact-table th { padding: 9px; }
.inherit-tag { padding: 2px 6px; font-size: 9px; }

/* Independent order and review screens */
.saved-filter-row { gap: 7px; padding: 10px 14px; font-size: 11px; }
.saved-filter-row button { padding: 5px 10px; font-size: 10px; }
.status-dot { width: 7px; height: 7px; }
.review-window .admin-body { min-height: 740px; }
.review-main { padding: 0; background: #fff; }
.review-toolbar { height: 54px; gap: 10px; padding: 0 14px; }
.review-tabs { gap: 20px; }
.review-tabs button { padding: 0 4px; font-size: 12px; }
.review-workspace { height: 686px; grid-template-columns: 230px minmax(510px, 1fr) 240px; }
.queue-head { padding: 12px; font-size: 10px; }
.queue-head b { font-size: 12px; }
.queue-card { width: calc(100% - 16px); margin: 0 8px 8px; padding: 11px; border-radius: 6px; }
.queue-card > div > b { font-size: 10px; }
.queue-card > strong { margin-top: 8px; font-size: 12px; }
.queue-card p { margin: 3px 0 8px; font-size: 10px; }
.queue-card footer { padding-top: 7px; font-size: 9px; }
.review-detail { padding: 14px; background: #f5f5f5; }
.review-order-head { margin-bottom: 11px; }
.review-order-head h3 { font-size: 15px; }
.review-order-head p { margin-top: 3px; font-size: 10px; }
.review-alert { gap: 10px; margin-bottom: 10px; padding: 10px 11px; border-radius: 6px; font-size: 10px; }
.person-review-card { margin-bottom: 10px; padding: 12px; border-radius: 6px; }
.person-review-card > header { margin-bottom: 11px; }
.person-avatar { width: 34px; height: 34px; font-size: 11px; }
.person-review-card header b { font-size: 12px; }
.person-review-card header small { font-size: 10px; }
.attachment-compare { gap: 8px; }
.attachment-compare > div:first-child,
.file-card { padding: 9px; border-radius: 5px; }
.attachment-compare span { font-size: 9px; }
.attachment-compare b { margin-top: 3px; font-size: 10px; }
.attachment-compare small { font-size: 8px; }
.field-decision { gap: 6px; }
.field-decision button { padding: 6px; font-size: 9px; }
.review-history button { padding: 7px; font-size: 10px; }
.review-actions-panel { padding: 14px; }
.review-actions-panel h3 { margin-bottom: 12px; font-size: 14px; }
.decision-summary { gap: 7px; }
.decision-summary > div { padding: 9px; border-radius: 5px; }
.decision-summary span { font-size: 9px; }
.decision-summary b { font-size: 11px; }
.review-note { margin-top: 13px; font-size: 10px; }
.review-note textarea { height: 64px; margin-top: 6px; padding: 8px; border-radius: 6px; font-size: 11px; }
.key-rule { margin-top: 14px; padding: 10px; }
.key-rule b { font-size: 10px; }
.key-rule p { font-size: 9px; }

/* Mobile design stage */
.mobile-design { position: relative; min-height: 760px; display: grid; grid-template-columns: 390px minmax(300px, 520px); justify-content: center; gap: 42px; padding: 32px 28px; overflow: hidden; border: 1px solid #d6dde6; border-radius: 16px; background: radial-gradient(circle at 30% 12%, #fff 0, #f5f8fb 36%, #e9eef4 100%); box-shadow: var(--shadow-lg); }
.mobile-design:before { content: ""; position: absolute; inset: auto -150px -230px auto; width: 500px; height: 500px; border: 1px solid rgba(24,116,199,.08); border-radius: 50%; box-shadow: 0 0 0 90px rgba(24,116,199,.025), 0 0 0 180px rgba(24,116,199,.015); }
.phone-frame { position: relative; z-index: 2; width: 375px; height: 720px; display: flex; flex-direction: column; overflow: hidden; border: 8px solid #15202d; border-radius: 38px; background: #fff; box-shadow: 0 28px 54px rgba(20,31,46,.25); }
.phone-frame:before { content: ""; position: absolute; z-index: 10; top: 7px; left: 50%; width: 92px; height: 20px; transform: translateX(-50%); border-radius: 12px; background: #15202d; }
.phone-status { position: relative; z-index: 5; flex: 0 0 29px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: #2d3540; background: #fff; font-size: 10px; font-weight: 650; }
.phone-status div { font-size: 8px; letter-spacing: .03em; }
.phone-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; background: var(--mobile-ground); }
.phone-scroll::-webkit-scrollbar { display: none; }
.phone-home-indicator { position: absolute; z-index: 20; bottom: 4px; left: 50%; width: 110px; height: 4px; transform: translateX(-50%); border-radius: 3px; background: #17202b; }
.mobile-nav { position: relative; flex: 0 0 42px; display: flex; align-items: center; justify-content: center; padding: 0 12px; border-bottom: 1px solid #edf0f2; background: #fff; }
.mobile-nav > button { position: absolute; left: 10px; padding: 4px; border: 0; color: #444f5c; background: none; font-size: 22px; line-height: 1; }
.mobile-nav > b { font-size: 14px; }
.mobile-nav > span { position: absolute; right: 12px; color: #74808e; font-size: 10px; }
.mobile-nav > span em { color: var(--proto-green-dark); font-style: normal; }
.mobile-steps { flex: 0 0 4px; display: flex; gap: 2px; background: #eef1f3; }
.mobile-steps i { flex: 1; background: #dde2e6; }
.mobile-steps i.active { background: var(--proto-green); }
.design-notes { position: relative; z-index: 2; align-self: center; }
.design-notes h2 { margin: 4px 0 17px; font-size: 24px; letter-spacing: -.03em; }
.note-card { margin-bottom: 10px; padding: 13px 14px; border: 1px solid #dce3eb; border-radius: 9px; background: rgba(255,255,255,.88); box-shadow: 0 3px 10px rgba(35,49,66,.05); }
.note-card b { font-size: 11px; }
.note-card p { margin: 4px 0 0; color: var(--proto-muted); font-size: 9.5px; line-height: 1.7; }
.flow-mini { padding: 14px; border-radius: 10px; color: #fff; background: #18283a; }
.flow-mini > b { font-size: 10px; }
.flow-mini p { margin: 4px 0 11px; color: #b6c3d1; font-size: 9px; }
.flow-mini .ui-button { width: 100%; }

/* H01 */
.home-scroll { background: #fff; }
.race-hero-mobile { position: relative; height: 255px; overflow: hidden; color: #fff; background: linear-gradient(150deg, rgba(17,34,51,.22), rgba(10,22,33,.76)), linear-gradient(135deg,#5f91a6 0%,#315968 35%,#132f3d 100%); }
.race-hero-mobile:before, .race-hero-mobile:after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.race-hero-mobile:before { width: 260px; height: 260px; right: -110px; top: -70px; box-shadow: 0 0 0 35px rgba(255,255,255,.035),0 0 0 70px rgba(255,255,255,.02); }
.race-hero-mobile:after { width: 190px; height: 80px; left: -40px; bottom: -42px; transform: rotate(-8deg); border-radius: 50%; box-shadow: 80px -20px 0 -1px rgba(255,255,255,.03); }
.hero-top { position: relative; z-index: 2; display: flex; justify-content: space-between; padding: 10px 12px; }
.hero-top button { width: 29px; height: 29px; border: 0; border-radius: 50%; color: #fff; background: rgba(0,0,0,.22); }
.hero-content { position: absolute; z-index: 2; left: 22px; right: 20px; bottom: 22px; }
.hero-content > span { font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.hero-content h2 { margin: 6px 0 4px; font-size: 28px; line-height: 1.08; letter-spacing: -.04em; }
.hero-content p { margin: 0 0 15px; color: rgba(255,255,255,.82); font-size: 10px; }
.hero-content > div { display: inline-flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 5px; background: rgba(0,0,0,.28); }
.hero-content > div b, .hero-content > div small { font-size: 8px; }
.hero-content > div b { color: #bff1af; }
.hero-content > div small { color: rgba(255,255,255,.72); }
.notice-ticker { display: flex; align-items: center; gap: 8px; margin: 10px 12px 0; padding: 9px 10px; border-radius: 7px; background: #f5f8fa; }
.notice-ticker span { flex: 0 0 auto; padding: 1px 4px; border-radius: 3px; color: #fff; background: var(--proto-green); font-size: 7px; }
.notice-ticker p { flex: 1; margin: 0; overflow: hidden; color: #5e6977; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.notice-ticker i { color: #a4adb8; font-style: normal; }
.mobile-quick-grid { display: grid; grid-template-columns: repeat(4,1fr); padding: 14px 12px 8px; }
.mobile-quick-grid button { display: flex; flex-direction: column; align-items: center; gap: 5px; border: 0; color: #555f6c; background: none; font-size: 8px; }
.mobile-quick-grid i { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: var(--proto-green-dark); background: var(--proto-green-soft); font-size: 13px; font-style: normal; }
.mobile-section { padding: 11px 12px; background: #f5f6f7; }
.mobile-section > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mobile-section > header h3 { margin: 0; font-size: 13px; }
.mobile-section > header span { color: #8a949f; font-size: 7px; }
.group-mobile-card { margin-bottom: 9px; padding: 11px; border-radius: 9px; background: #fff; box-shadow: 0 2px 8px rgba(35,47,61,.06); }
.group-mobile-head { display: flex; align-items: center; justify-content: space-between; }
.group-mobile-head > div { display: flex; align-items: center; gap: 8px; }
.group-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 8px; color: var(--proto-blue); background: var(--proto-blue-soft); font-size: 8px; font-weight: 800; }
.group-icon.family { color: var(--proto-green-dark); background: var(--proto-green-soft); }
.group-icon.relay { color: #b56916; background: var(--proto-orange-soft); }
.group-mobile-head h4 { margin: 0; color: #333d49; font-size: 11px; }
.group-mobile-head p { margin: 2px 0 0; color: #8a949f; font-size: 7px; }
.group-mobile-head > b { color: #e25a3f; font-size: 14px; }
.group-mobile-head > b small { color: #87919c; font-size: 7px; font-weight: 400; }
.group-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; }
.group-tags span { padding: 2px 5px; border-radius: 3px; color: #687482; background: #f3f5f7; font-size: 6.5px; }
.stock-line { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.stock-line > span { flex: 1; height: 3px; overflow: hidden; border-radius: 2px; background: #edf0f2; }
.stock-line i { display: block; height: 100%; background: var(--proto-green); }
.stock-line small { color: #7f8995; font-size: 6.5px; }
.group-mobile-card footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid #edf0f2; }
.group-mobile-card footer > span { color: #8a949f; font-size: 7px; }
.group-mobile-card footer button { padding: 6px 12px; border: 0; border-radius: 14px; color: #fff; background: var(--proto-green); font-size: 8px; font-weight: 650; }
.group-mobile-card.disabled { opacity: .67; }
.group-mobile-card footer button:disabled { background: #c9ced3; }
.content-block { margin-top: 7px; }
.guide-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.guide-grid button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 2px; border: 0; border-radius: 7px; color: #606b78; background: #fff; font-size: 7px; }
.guide-grid span { font-size: 14px; color: #526b80; }
.mobile-footer-brand { padding: 14px; color: #a2aab3; background: #f5f6f7; text-align: center; font-size: 6.5px; }

/* Generic H5 components / H02 */
.apply-scroll, .continue-scroll, .order-detail-scroll, .self-edit-scroll { padding: 10px 10px 86px; }
.apply-step { display: none; }
.apply-step.active { display: block; animation: mobileFade .2s ease; }
@keyframes mobileFade { from { opacity: .35; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.mobile-banner { margin-bottom: 9px; padding: 9px 10px; border-radius: 7px; }
.mobile-banner b { display: block; font-size: 9px; }
.mobile-banner p { margin: 3px 0 0; font-size: 7.5px; line-height: 1.55; }
.mobile-banner.info { color: #376e9b; background: #eaf4fc; }
.mobile-banner.success { color: #398825; background: #edf8e9; }
.mobile-banner.warning { color: #9b6416; background: #fff5e5; }
.mobile-banner.neutral { color: #65717f; background: #edf0f3; }
.mobile-card { margin-bottom: 9px; padding: 11px; border-radius: 8px; background: #fff; box-shadow: 0 1px 5px rgba(29,42,57,.055); }
.card-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.card-title > span { color: #333d48; font-size: 10px; font-weight: 700; }
.card-title button { padding: 0; border: 0; color: var(--proto-green-dark); background: none; font-size: 7px; }
.card-title em { color: #8b96a1; font-size: 6.5px; font-style: normal; }
.selected-group { display: flex; align-items: center; gap: 8px; padding-bottom: 9px; border-bottom: 1px solid #edf0f2; }
.selected-group > div { flex: 1; }
.selected-group b, .selected-group small { display: block; }
.selected-group b { font-size: 9px; }
.selected-group small { margin-top: 2px; color: #89939f; font-size: 7px; }
.selected-group strong { color: #df5840; font-size: 13px; }
.mobile-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #f0f2f4; font-size: 8px; }
.mobile-row:last-child { border-bottom: 0; }
.mobile-row > span { flex: 0 0 auto; color: #89939f; }
.mobile-row > b { color: #3f4955; text-align: right; font-weight: 550; }
.eligibility-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid #f0f2f4; }
.eligibility-row:first-of-type { border-top: 0; }
.eligibility-row > i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; background: var(--proto-green); font-size: 8px; font-style: normal; }
.eligibility-row b, .eligibility-row small { display: block; }
.eligibility-row b { font-size: 8px; }
.eligibility-row small { color: #8b96a1; font-size: 6.5px; }
.applicant-card > header, .edit-person-card > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; padding-bottom: 8px; border-bottom: 1px solid #edf0f2; }
.applicant-card > header > div, .edit-person-card > header > div { display: flex; align-items: center; gap: 7px; }
.person-index { display: grid; place-items: center; flex: 0 0 auto; width: 23px; height: 23px; border-radius: 50%; color: #fff; background: var(--proto-blue); font-size: 8px; font-weight: 700; }
.person-index.child { background: var(--proto-green); }
.applicant-card header b, .applicant-card header small, .edit-person-card header b, .edit-person-card header small { display: block; }
.applicant-card header b, .edit-person-card header b { font-size: 9px; }
.applicant-card header small, .edit-person-card header small { color: #8c96a1; font-size: 6.5px; }
.applicant-card label, .edit-person-card label { display: block; margin-bottom: 9px; }
.applicant-card label > span, .edit-person-card label > span { display: block; margin-bottom: 4px; color: #525d69; font-size: 7.5px; }
.applicant-card input, .edit-person-card input { width: 100%; padding: 8px; border: 1px solid #dfe3e7; border-radius: 5px; color: #37414d; background: #fff; outline: none; font-size: 8px; }
.applicant-card input:focus, .edit-person-card input:focus { border-color: var(--proto-green); box-shadow: 0 0 0 2px rgba(85,183,55,.1); }
.applicant-card input[readonly] { color: #7c8793; background: #f5f6f7; }
.fake-select { display: flex; align-items: center; justify-content: space-between; padding: 8px; border: 1px solid #dfe3e7; border-radius: 5px; color: #37414d; font-size: 8px; }
.fake-select.placeholder { color: #a0a8b1; }
.fake-select i { color: #9aa3ad; font-style: normal; }
.attachment-field { margin-top: 11px; padding-top: 9px; border-top: 1px dashed #dfe4e9; }
.attachment-field > header { display: flex; align-items: flex-start; justify-content: space-between; }
.attachment-field header b, .attachment-field header small { display: block; }
.attachment-field header b { font-size: 8px; }
.attachment-field header small { margin-top: 2px; color: #8c96a1; font-size: 6.5px; }
.attachment-field header button { padding: 0; border: 0; color: var(--proto-green-dark); background: none; font-size: 7px; }
.upload-file { display: flex; align-items: center; gap: 7px; margin-top: 7px; padding: 7px; border: 1px solid #dfe5ea; border-radius: 6px; background: #f8fafb; }
.upload-file > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 5px; color: #fff; background: #e06b5e; font-size: 6px; font-weight: 700; }
.upload-file > div { flex: 1; min-width: 0; }
.upload-file b, .upload-file small { display: block; }
.upload-file b { overflow: hidden; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.upload-file small { color: #8a949f; font-size: 6px; }
.upload-file button { border: 0; color: #9aa3ad; background: none; }
.upload-zone { width: 100%; display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 7px; padding: 11px; border: 1px dashed #cfd7df; border-radius: 6px; color: #87929f; background: #fafbfc; }
.upload-zone b { color: var(--proto-green-dark); font-size: 13px; }
.upload-zone span { font-size: 7px; }
.confirm-person { display: flex; align-items: center; gap: 7px; padding: 7px 0; border-top: 1px solid #f0f2f4; }
.confirm-person > div { flex: 1; }
.confirm-person b, .confirm-person small { display: block; }
.confirm-person b { font-size: 8px; }
.confirm-person small { color: #89949f; font-size: 6.5px; }
.confirm-person > i { color: var(--proto-green-dark); font-size: 6.5px; font-style: normal; }
.price-row, .coupon-row { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border: 0; color: #687481; background: none; font-size: 8px; }
.price-row b, .coupon-row b { color: #3d4753; }
.price-row.discount b { color: #de5a43; }
.coupon-row { border-top: 1px solid #f0f2f4; }
.price-total { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 5px; padding-top: 8px; border-top: 1px solid #e5e8eb; }
.price-total span { font-size: 9px; font-weight: 650; }
.price-total span small { display: block; margin-top: 2px; color: #8d97a2; font-size: 6px; font-weight: 400; }
.price-total > b { color: #df543d; font-size: 17px; }
.agreement { display: flex; gap: 6px; align-items: flex-start; color: #606b78; font-size: 7px; line-height: 1.5; }
.agreement input { width: 12px; height: 12px; margin: 0; accent-color: var(--proto-green); }
.agreement b { color: var(--proto-green-dark); }
.signature-summary { display: flex; justify-content: space-between; margin-top: 9px; padding-top: 8px; border-top: 1px solid #eff1f3; font-size: 7px; }
.signature-summary span { color: #7d8792; }
.signature-summary b { color: #4d5966; }
.mobile-bottom-bar { position: absolute; z-index: 12; right: 0; bottom: 8px; left: 0; min-height: 61px; display: flex; align-items: center; gap: 9px; padding: 8px 12px 14px; border-top: 1px solid #e9ecef; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }
.mobile-bottom-bar.single { display: block; }
.apply-price { flex: 1; }
.apply-price span { display: block; color: #78838f; font-size: 7px; }
.apply-price b { color: #df553e; font-size: 16px; }
.mobile-primary { min-width: 138px; padding: 10px 14px; border: 0; border-radius: 7px; color: #fff; background: var(--proto-green); font-size: 11px; font-weight: 650; }
.mobile-primary:disabled { background: #cbd1d6; }
.mobile-secondary { padding: 9px 12px; border: 1px solid #d9dfe4; border-radius: 6px; color: #596573; background: #fff; font-size: 9px; }
.mobile-secondary.full { width: 100%; }
.segmented-control { display: flex; gap: 4px; margin-bottom: 12px; padding: 3px; border-radius: 8px; background: #e6ebf0; }
.segmented-control button { flex: 1; padding: 7px 8px; border: 0; border-radius: 6px; color: #657284; background: transparent; font-size: 8px; }
.segmented-control button.active { color: var(--proto-blue); background: #fff; box-shadow: 0 2px 5px rgba(31,44,60,.09); font-weight: 650; }
.segmented-control.vertical { flex-direction: column; }
.segmented-control.vertical button { text-align: left; }

/* H03 */
.continue-state { display: none; }
.continue-state.active { display: block; animation: mobileFade .2s ease; }
.result-hero { margin: -10px -10px 10px; padding: 28px 18px 22px; color: #fff; text-align: center; }
.result-hero.success { background: linear-gradient(155deg,#5fbe42,#3b9725); }
.result-hero.waiting { background: linear-gradient(155deg,#efa745,#d47a1d); }
.result-hero.danger { background: linear-gradient(155deg,#ef7b67,#d95145); }
.result-hero > span { display: grid; place-items: center; width: 41px; height: 41px; margin: 0 auto 9px; border: 2px solid rgba(255,255,255,.75); border-radius: 50%; font-size: 19px; }
.result-hero h2 { margin: 0 0 4px; font-size: 17px; }
.result-hero p { margin: 0; color: rgba(255,255,255,.85); font-size: 8px; }
.countdown-card { margin: -22px 15px 10px; padding: 11px; border-radius: 8px; background: #fff; box-shadow: 0 7px 20px rgba(37,55,73,.13); text-align: center; }
.countdown-card span, .countdown-card b, .countdown-card small { display: block; }
.countdown-card span { color: #818c98; font-size: 7px; }
.countdown-card b { margin: 2px 0; color: #d75a3e; font: 700 20px/1.3 "DIN Alternate", monospace; letter-spacing: .04em; }
.countdown-card small { color: #979fa8; font-size: 6px; }
.price-red { color: #df553e !important; }
.amber-text { color: #b97816 !important; }
.timeline-card { padding-left: 18px; }
.timeline-item { position: relative; display: flex; gap: 9px; min-height: 41px; }
.timeline-item:not(:last-child):after { content: ""; position: absolute; top: 20px; left: 8px; bottom: 0; width: 1px; background: #dfe4e8; }
.timeline-item > i { position: relative; z-index: 2; display: grid; place-items: center; flex: 0 0 auto; width: 17px; height: 17px; border: 1px solid #cfd6dd; border-radius: 50%; color: #8a949f; background: #fff; font-size: 6px; font-style: normal; }
.timeline-item.done > i { color: #fff; border-color: var(--proto-green); background: var(--proto-green); }
.timeline-item.current > i { color: #fff; border-color: var(--proto-blue); background: var(--proto-blue); }
.timeline-item b, .timeline-item small { display: block; }
.timeline-item b { font-size: 8px; }
.timeline-item small { color: #8b95a0; font-size: 6.5px; }
.target-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid #eff1f3; }
.target-row > div { flex: 1; }
.target-row b, .target-row small { display: block; }
.target-row b { font-size: 8px; }
.target-row small { color: #8b95a0; font-size: 6.5px; }
.target-row > i { color: #9da5af; font-style: normal; }

/* H04 */
.order-status-hero { display: flex; align-items: center; gap: 12px; margin: -10px -10px 10px; padding: 20px 18px; color: #fff; background: linear-gradient(145deg,#4da831,#62c342); }
.pulse-ring { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; box-shadow: 0 0 0 6px rgba(255,255,255,.12); font-size: 15px; }
.order-status-hero h2 { margin: 0; font-size: 16px; }
.order-status-hero p { margin: 2px 0 0; color: rgba(255,255,255,.85); font-size: 8px; }
.edit-entry { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; padding: 10px 11px; border: 1px solid #b9dda9; border-radius: 8px; background: #f1f9ed; }
.edit-entry b { display: block; color: #3a8527; font-size: 9px; }
.edit-entry p { margin: 2px 0 0; color: #6f8f66; font-size: 6.5px; }
.edit-entry button { padding: 5px 7px; border: 0; border-radius: 4px; color: #fff; background: var(--proto-green); font-size: 7px; }
.applicant-summary { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid #eff1f3; }
.applicant-summary > div { flex: 1; }
.applicant-summary b, .applicant-summary small, .applicant-summary p { display: block; }
.applicant-summary b { font-size: 8px; }
.applicant-summary b i { margin-left: 3px; }
.applicant-summary small { color: #858f9b; font-size: 6.5px; }
.applicant-summary p { margin: 3px 0 0; color: var(--proto-green-dark); font-size: 6px; }
.applicant-summary > i { color: #a0a8b1; font-style: normal; }
.compact-timeline > div { position: relative; display: flex; gap: 8px; min-height: 34px; }
.compact-timeline > div > i { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 3px; border: 2px solid #fff; border-radius: 50%; background: #c5ccd3; box-shadow: 0 0 0 1px #c5ccd3; }
.compact-timeline > div.done > i { background: var(--proto-green); box-shadow: 0 0 0 1px var(--proto-green); }
.compact-timeline > div:not(:last-child):after { content: ""; position: absolute; top: 13px; left: 3px; bottom: 0; width: 1px; background: #dfe4e8; }
.compact-timeline b, .compact-timeline small { display: block; }
.compact-timeline b { font-size: 8px; }
.compact-timeline small { color: #8b95a0; font-size: 6.5px; }
.mobile-action-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; }
.mobile-action-grid button { display: flex; align-items: center; gap: 7px; padding: 9px; border: 0; border-radius: 6px; color: #586472; background: #f5f7f8; font-size: 7.5px; }
.mobile-action-grid i { color: var(--proto-green-dark); font-size: 12px; font-style: normal; }

/* H12 */
.self-edit-state { display: none; }
.self-edit-state.active { display: block; animation: mobileFade .2s ease; }
.edit-scope-tip { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.edit-scope-tip span { padding: 3px 6px; border-radius: 10px; color: var(--proto-green-dark); background: var(--proto-green-soft); font-size: 7px; font-weight: 650; }
.edit-scope-tip p { margin: 0; color: #87919d; font-size: 6.5px; }
.edit-person-card > header button { padding: 0; border: 0; color: var(--proto-green-dark); background: none; font-size: 6.5px; }
.edit-person-card label > small { display: block; margin-top: 3px; color: #8a949f; font-size: 6px; }
.changed-hint { color: #b66a12 !important; }
.mobile-verify-input { display: flex; }
.mobile-verify-input input { min-width: 0; border-radius: 5px 0 0 5px; }
.mobile-verify-input button { flex: 0 0 72px; border: 1px solid #dfe3e7; border-left: 0; border-radius: 0 5px 5px 0; color: var(--proto-green-dark); background: #f7faf6; font-size: 7px; }
.locked-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding: 8px; border-radius: 5px; background: #f3f5f6; }
.locked-field span { color: #697582; font-size: 7px; }
.locked-field b { color: #9099a3; font-size: 6px; font-weight: 500; text-align: right; }
.locked-field.warning { background: #fff5e7; }
.locked-field.warning b { color: #a8752b; }
.closed-illustration { padding: 30px 15px 22px; text-align: center; }
.closed-illustration > span { display: grid; place-items: center; width: 53px; height: 53px; margin: 0 auto 12px; border-radius: 50%; color: #7b8794; background: #e4e8eb; font-size: 22px; }
.closed-illustration h2 { margin: 0 0 5px; font-size: 15px; }
.closed-illustration p { margin: 0; color: #8b95a0; font-size: 8px; }
.link-green { color: var(--proto-green-dark) !important; }
.mobile-card-copy { color: #697582; font-size: 8px; line-height: 1.65; }
.state-explain { display: none; margin-bottom: 10px; padding: 11px; border-left: 3px solid var(--proto-blue); border-radius: 0 7px 7px 0; background: #fff; }
.state-explain.active { display: block; }
.state-explain b { font-size: 10px; }
.state-explain p { margin: 3px 0 0; color: var(--proto-muted); font-size: 9px; }

/* Modal / drawer / toast */
.modal-root { position: fixed; z-index: 300; inset: 0; display: none; }
.modal-root.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12,20,31,.58); backdrop-filter: blur(2px); animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.prototype-modal { position: absolute; top: 50%; left: 50%; width: min(520px, calc(100vw - 34px)); max-height: calc(100vh - 50px); overflow: auto; transform: translate(-50%,-50%); border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.3); animation: modalIn .22s ease; }
@keyframes modalIn { from { opacity: 0; transform: translate(-50%,-47%) scale(.98); } }
.prototype-modal.wide { width: min(690px, calc(100vw - 34px)); }
.prototype-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(620px, calc(100vw - 30px)); overflow: auto; background: #fff; box-shadow: -20px 0 55px rgba(0,0,0,.22); animation: drawerIn .25s ease; }
@keyframes drawerIn { from { transform: translateX(30px); opacity: .5; } }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid #e8ecf1; }
.modal-header h2 { margin: 0; font-size: 17px; }
.modal-header p { margin: 3px 0 0; color: var(--proto-muted); font-size: 10px; }
.modal-close { width: 28px; height: 28px; border: 0; border-radius: 6px; color: #687587; background: #f3f5f7; }
.modal-body { padding: 18px 20px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 20px; border-top: 1px solid #e8ecf1; background: #fafbfc; }
.modal-form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.modal-field { display: block; }
.modal-field.full { grid-column: 1 / -1; }
.modal-field > span { display: block; margin-bottom: 5px; color: #5b6878; font-size: 10px; font-weight: 650; }
.modal-field input, .modal-field textarea, .modal-field select { width: 100%; padding: 8px 9px; border: 1px solid #d8dfe7; border-radius: 6px; outline: none; color: #344153; background: #fff; font-size: 10px; }
.modal-field textarea { min-height: 70px; resize: vertical; }
.modal-hint { display: block; margin-top: 4px; color: #8c97a4; font-size: 8px; }
.check-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 15px; }
.check-summary > div { padding: 11px; border-radius: 7px; background: #f4f6f8; }
.check-summary span, .check-summary b { display: block; }
.check-summary span { color: #748092; font-size: 8px; }
.check-summary b { margin-top: 2px; font-size: 16px; }
.check-summary .ok b { color: var(--proto-green-dark); }
.check-summary .warn b { color: #b86d13; }
.check-summary .error b { color: var(--proto-red); }
.check-list { display: flex; flex-direction: column; gap: 7px; }
.check-item { display: grid; grid-template-columns: 23px minmax(0,1fr) auto; align-items: start; gap: 8px; padding: 10px; border: 1px solid #e2e7ed; border-radius: 7px; }
.check-item > i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 9px; font-style: normal; }
.check-item.error > i { background: var(--proto-red); }
.check-item.warn > i { background: var(--proto-orange); }
.check-item.ok > i { background: var(--proto-green); }
.check-item b, .check-item small { display: block; }
.check-item b { font-size: 10px; }
.check-item small { margin-top: 2px; color: #83909f; font-size: 8px; }
.check-item button { padding: 2px 5px; border: 0; color: var(--proto-blue); background: none; font-size: 8px; }
.impact-banner { margin-bottom: 13px; padding: 11px 12px; border-left: 3px solid var(--proto-orange); border-radius: 0 7px 7px 0; color: #79572c; background: var(--proto-orange-soft); }
.impact-banner.danger { border-left-color: var(--proto-red); color: #824247; background: var(--proto-red-soft); }
.impact-banner strong { font-size: 10px; }
.impact-banner p { margin: 3px 0 0; font-size: 8px; }
.impact-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; margin-bottom: 13px; }
.impact-grid > div { padding: 9px; border: 1px solid #e2e7ed; border-radius: 6px; }
.impact-grid span, .impact-grid b { display: block; }
.impact-grid span { color: #84909f; font-size: 8px; }
.impact-grid b { margin-top: 2px; font-size: 10px; }
.diff-list { display: flex; flex-direction: column; gap: 7px; }
.diff-row { display: grid; grid-template-columns: 1fr 1fr 24px 1fr; gap: 7px; align-items: center; padding: 9px; border: 1px solid #e2e7ed; border-radius: 6px; }
.diff-row > div span, .diff-row > div b { display: block; }
.diff-row span { color: #84909f; font-size: 7px; }
.diff-row b { margin-top: 2px; font-size: 9px; }
.diff-row > i { color: var(--proto-blue); font-style: normal; text-align: center; }
.drawer-section { padding: 15px 20px; border-bottom: 1px solid #e8ecf1; }
.drawer-section h3 { margin-bottom: 10px; font-size: 12px; }
.drawer-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.drawer-grid > div { padding: 8px; border-radius: 6px; background: #f5f7f9; }
.drawer-grid span, .drawer-grid b { display: block; }
.drawer-grid span { color: #82909e; font-size: 8px; }
.drawer-grid b { margin-top: 3px; font-size: 9px; }
.drawer-person { margin-bottom: 8px; padding: 10px; border: 1px solid #e1e7ed; border-radius: 7px; }
.drawer-person header { display: flex; justify-content: space-between; margin-bottom: 7px; }
.drawer-person header b { font-size: 10px; }
.drawer-person p { margin: 0; color: #718092; font-size: 8px; }
.prototype-toast { position: fixed; z-index: 500; top: 82px; left: 50%; display: none; transform: translateX(-50%); padding: 9px 14px; border-radius: 7px; color: #fff; background: rgba(24,34,48,.94); box-shadow: 0 9px 25px rgba(0,0,0,.2); font-size: 10px; }
.prototype-toast.is-visible { display: block; animation: toastIn .2s ease; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%,-6px); } }

/* Universal page-state simulator */
.state-host { position: relative; }
.state-host.is-readonly:after { content: "只读演示：所有写操作由服务端权限或阶段门禁关闭"; position: absolute; z-index: 80; top: 10px; left: 50%; transform: translateX(-50%); padding: 6px 11px; border: 1px solid #f0d093; border-radius: 14px; color: #9f6819; background: #fff8e8; box-shadow: var(--shadow-sm); font-size: 8px; }
.state-host.is-readonly button:not([data-go]) { pointer-events: none; filter: grayscale(.6); opacity: .56; }
.global-state-layer { position: absolute; z-index: 75; inset: 0; display: grid; place-items: center; border-radius: inherit; background: rgba(248,250,252,.94); backdrop-filter: blur(2px); }
.state-card { max-width: 360px; padding: 24px; text-align: center; }
.state-card > i { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 13px; border-radius: 14px; color: var(--proto-blue); background: var(--proto-blue-soft); font-size: 22px; font-style: normal; }
.state-card.loading > i:before { content: ""; width: 20px; height: 20px; border: 3px solid #b9d7ef; border-top-color: var(--proto-blue); border-radius: 50%; animation: spin .8s linear infinite; }
.state-card.error > i { color: var(--proto-red); background: var(--proto-red-soft); }
.state-card.forbidden > i { color: #687587; background: #edf0f3; }
.state-card h3 { margin-bottom: 6px; font-size: 16px; }
.state-card p { margin: 0 0 13px; color: var(--proto-muted); font-size: 10px; }

/* v1.32 task guidance and confirmed-rule callouts */
.radio-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.task-focus-card { border-left: 4px solid var(--proto-blue); background: linear-gradient(90deg, #f8fcff 0, #fff 28%); }
.access-link-summary { align-items: flex-start; }
.access-link-summary > b { min-width: 0; overflow-wrap: anywhere; }
.inline-summary.compact { align-content: center; min-height: 54px; }
.danger-link { color: var(--proto-red) !important; }
.form-use-warning { margin: 0 0 12px; }
.rule-grid > div { min-height: 76px; }
.rule-grid small { display: block; margin-top: 4px; color: #8793a2; font-size: 10px; line-height: 1.45; }
.excluded-rule { border-color: #efd3d3 !important; background: #fff8f8 !important; }
.excluded-rule strong { color: #bf4a50; }
.account-session-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: center; margin-bottom: 9px; padding: 10px; border: 1px solid #cfe5c7; border-radius: 7px; background: #f4fbf1; }
.account-session-card > span { padding: 3px 6px; border-radius: 10px; color: #fff; background: var(--proto-green-dark); font-size: 7px; font-weight: 700; }
.account-session-card b, .account-session-card small { display: block; }
.account-session-card b { color: #365342; font-size: 9px; }
.account-session-card small { margin-top: 2px; color: #72847a; font-size: 7px; }
.account-session-card button { padding: 0; border: 0; color: var(--proto-green-dark); background: none; font-size: 7px; }
.access-notice { margin: 9px 10px 0; }
.current-form-note { border: 1px dashed #cbd3dc; }
.confirm-check { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 10px; border-radius: 6px; color: #4f5d6e; background: #f5f7f9; font-size: 10px; }
.confirm-check input { margin-top: 2px; accent-color: var(--proto-blue); }

/* Responsive */
@media (max-width: 1180px) {
  .prototype-sidebar { width: 220px; }
  .prototype-stage { margin-left: 220px; }
  .prototype-sidebar.is-collapsed { transform: translateX(-220px); }
  .cover-hero { grid-template-columns: 1fr; padding: 44px; }
  .cover-structure { max-width: 650px; }
  .role-path-grid { grid-template-columns: repeat(2,1fr); }
  .overview-path { grid-column: 1 / -1; min-height: 0; }
  .decision-grid { grid-template-columns: repeat(2,1fr); }
  .ia-columns { grid-template-columns: 1fr; }
  .mobile-design { grid-template-columns: 375px minmax(270px,420px); gap: 25px; }
}
@media (max-width: 880px) {
  .prototype-context .context-chip, .state-control > span { display: none; }
  .review-tools > summary { padding: 7px 8px; }
  .review-tools-panel .state-control > span { display: block; }
  .prototype-sidebar { transform: translateX(-252px); box-shadow: 12px 0 30px rgba(0,0,0,.13); }
  .prototype-sidebar.is-mobile-open { transform: translateX(0); }
  .prototype-stage { margin-left: 0; }
  .prototype-page { padding: 20px 15px 45px; overflow-x: auto; }
  .page-meta-bar { padding: 0 15px; }
  .meta-actions > span { display: none; }
  .interaction-guide { grid-template-columns: auto minmax(0,1fr); gap: 8px 11px; top: 115px; padding: 9px 13px; }
  .guide-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .guide-copy p { white-space: normal; line-height: 1.45; }
  .cover-hero { min-width: 0; padding: 34px 25px; border-radius: 15px; }
  .role-path-grid, .decision-grid, .state-demo-grid, .contract-grid { grid-template-columns: 1fr 1fr; }
  .overview-path { grid-column: 1 / -1; }
  .journey-flow { min-width: 900px; }
  .admin-window { min-width: 1050px; }
  .mobile-design { min-width: 0; grid-template-columns: 1fr; justify-items: center; padding: 25px 12px; }
  .design-notes { width: min(100%, 520px); }
  .annotation-strip { min-width: 760px; }
}
@media (max-width: 520px) {
  .prototype-topbar { padding: 0 12px; }
  .prototype-brand small { display: none; }
  .prototype-context { gap: 6px; }
  .review-tools > summary { font-size: 0; }
  .review-tools > summary:before { content: "工具"; font-size: 10px; }
  .review-tools-panel { position: fixed; top: 60px; right: 10px; left: 10px; width: auto; }
  .state-control select { min-width: 150px; padding-left: 6px; font-size: 10px; }
  .interaction-guide { position: relative; top: auto; grid-template-columns: 1fr; }
  .guide-step { justify-self: start; }
  .guide-actions { grid-column: 1; justify-content: flex-start; overflow-x: auto; }
  .guide-actions .guide-locate { display: none; }
  .prototype-page { padding: 15px 8px 36px; }
  .screen-intro { padding: 0 5px; }
  .screen-intro p, .screen-links { display: none; }
  .phone-frame { width: 355px; max-width: calc(100vw - 24px); }
  .role-path-grid, .decision-grid, .state-demo-grid, .contract-grid { grid-template-columns: 1fr; }
  .overview-path { grid-column: auto; }
  .cover-copy h1 { font-size: 34px; }
  .structure-level.small { grid-template-columns: 1fr; }
  .structure-branch { display: none; }
  .structure-level.small > div { margin-top: 8px; }
  .ia-list { grid-template-columns: 1fr; }
  .write-flow { min-width: 760px; }
  .spec-panel { overflow-x: auto; }
}
