@font-face {
  font-family: "Noto Sans SC";
  src: url("fonts/NotoSansSC-VF.woff2") format("woff2"),
       url("fonts/NotoSansSC-VF.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --paper: #fafbfc;
  --surface: #fff;
  --ink: #282c35;
  --muted: #666b77;
  --accent: #76556c;
  --accent-soft: #f3edf2;
  --line: #e5e7ec;
  --success: #43634f;
  --success-soft: #edf3ee;
  --radius-panel: 16px;
  --radius-control: 12px;
  --radius-status: 6px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-title: 36px;
  --text-hero: 52px;
  --duration-fast: 160ms;
  --duration-normal: 200ms;
  --ease-out: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--text-base)/1.8 var(--font-sans); -webkit-font-smoothing: antialiased; }
button, input, summary { font: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a, button, summary, input { -webkit-tap-highlight-color: transparent; }
:is(a, button, summary, input, [tabindex]):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--font-sans); font-weight: 600; }
strong { font-weight: 600; }
svg { flex-shrink: 0; }
time, .fact, .meta { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.skip { position: fixed; top: -100px; left: 20px; z-index: 10; padding: 12px 20px; background: var(--surface); border-radius: var(--radius-control); }
.skip:focus { top: 12px; }

/* 婚礼筹备首页 */
.entrance-shell { max-width: 1216px; margin: auto; padding: 0 48px; }
.entrance-brand { display: flex; align-items: center; gap: 12px; height: 96px; font-size: var(--text-base); font-weight: 500; }
.entrance-brand svg { width: 38px; height: 32px; color: var(--accent); }
.entrance-main { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 72px; min-height: calc(100svh - 96px); padding: 32px 0 72px; }
.entrance-copy h1 { margin: 0 0 24px; font-size: clamp(36px,4.2vw,52px); line-height: 1.45; letter-spacing: -.04em; }
.entrance-copy p { margin: 0 0 36px; font-size: var(--text-base); color: var(--muted); }
.entrance-art { height: min(56vw,560px); overflow: hidden; border-radius: 24px; background: var(--accent-soft); }
.entrance-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.catalog-layout { display: grid; grid-template-columns: 232px minmax(0,1fr); min-height: 100vh; max-width: 1680px; margin: auto; }
.catalog-sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; display: flex; flex-direction: column; padding: 32px 24px 24px; background: var(--surface); border-right: 1px solid var(--line); }
.catalog-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; font-size: var(--text-lg); font-weight: 600; color: var(--ink); text-decoration: none; }
.catalog-brand svg { width: 40px; height: 32px; color: var(--accent); }
.catalog-sidebar-note { font-size: var(--text-xs); color: var(--muted); margin: 8px 0 28px; }
.catalog-nav { display: flex; flex-direction: column; gap: 4px; }
.catalog-nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 10px; font-size: var(--text-sm); color: var(--muted); text-decoration: none; transition: background var(--duration-fast), color var(--duration-fast); }
.catalog-nav a:hover { background: var(--paper); color: var(--ink); }
.catalog-nav a.current { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.catalog-nav-label { margin: 20px 12px 4px; color: var(--muted); font-size: var(--text-xs); }
.catalog-sidebar-return { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: auto; padding: 28px 12px 8px; font-size: var(--text-sm); text-decoration: none; }
.catalog-sidebar-return:hover { text-decoration: underline; }
.catalog-workspace { min-width: 0; padding: 40px clamp(28px,4vw,64px); }
.catalog-intro { padding: 0 0 28px; }
.catalog-intro h1 { font-size: var(--text-title); line-height: 1.45; letter-spacing: -.035em; margin: 0 0 12px; }
.catalog-intro p { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.catalog-section-title { font-size: var(--text-lg); font-weight: 500; margin: 0 0 20px; }
.catalog-workspace .home-resources { margin-top: 44px; }
.home-shell { max-width: 1328px; padding: 0 48px; margin: auto; }
.home-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 104px; border-bottom: 1px solid var(--line); }
.home-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-height: 44px; font-size: 18px; font-weight: 600; letter-spacing: -.025em; }
.home-brand svg { width: 38px; height: 32px; color: var(--accent); }
.home-nav { display: flex; gap: 36px; align-items: center; }
.home-nav a { position: relative; display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; color: var(--muted); font-size: var(--text-sm); transition: color var(--duration-fast); }
.home-nav a:hover, .home-nav a.current { color: var(--accent); }
.home-nav a.current { font-weight: 600; }
.home-nav a.current::after { content: ""; position: absolute; height: 2px; left: 0; right: 0; bottom: 2px; background: var(--accent); border-radius: 2px; }
.home-main { min-width: 0; }
.home-hero { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(40px,6vw,88px); align-items: center; padding: 48px 0 52px; }
.hero-copy { animation: hero-enter 420ms var(--ease-out) both; }
.home-intro { margin: 0 0 24px; display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: var(--text-sm); font-weight: 500; }
.home-intro span { width: 24px; height: 1px; background: currentColor; }
.home-hero h1 { font-size: clamp(36px,4.1vw,52px); letter-spacing: -.045em; line-height: 1.42; font-weight: 600; margin: 0 0 24px; }
.home-description { color: var(--muted); font-size: var(--text-sm); line-height: 2; margin: 0; max-width: 35em; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 32px; }
.button-primary, .button-text { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; font-size: var(--text-sm); text-decoration: none; transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast); }
.button-primary { background: var(--accent); color: white; padding: 12px 22px; border: 1px solid var(--accent); border-radius: var(--radius-control); font-weight: 500; }
.button-primary:hover { background: #634559; border-color: #634559; text-decoration: none; }
.button-text { color: var(--accent); }
.button-text:hover { text-decoration: underline; }
.hero-footnote { font-size: var(--text-xs); color: var(--muted); margin-top: 36px; }
.home-visual { position: relative; height: clamp(400px,39vw,500px); margin: 0; border-radius: 24px; overflow: hidden; background: #ede9eb; isolation: isolate; }
.home-visual > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; }
.home-visual figcaption { position: absolute; bottom: 24px; left: 24px; right: 24px; display: flex; align-items: center; gap: 20px; padding: 16px 20px; background: rgb(255 255 255 / .91); border: 1px solid rgb(255 255 255 / .85); border-radius: 12px; color: var(--accent); font-size: var(--text-xs); line-height: 1.8; }
.home-visual figcaption strong { font-weight: 500; font-size: var(--text-sm); }
.cover-rings { width: 64px; height: 42px; }
.hero-ring { stroke-dasharray: 1; stroke-dashoffset: 0; animation: ring-enter 1000ms var(--ease-out) both; transform-origin: center; }
.hero-ring.second { animation-delay: 120ms; }
.home-basics { display: grid; grid-template-columns: repeat(4,1fr); padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-basics > div { padding: 0 32px; border-left: 1px solid var(--line); }
.home-basics > div:first-child { padding-left: 0; border-left: 0; }
.home-basics span { display: block; color: var(--muted); font-size: var(--text-xs); margin-bottom: 8px; }
.home-basics strong { display: block; font-size: var(--text-base); font-weight: 500; }
.home-next { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 24px; align-items: center; margin: 40px 0 64px; padding: 28px 32px; background: var(--accent-soft); border: 1px solid #e9dfe6; border-radius: var(--radius-panel); }
.next-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--accent); }
.section-kicker { margin: 0 0 8px; color: var(--accent); font-size: var(--text-xs); font-weight: 500; }
.home-next h2 { font-size: var(--text-lg); line-height: 1.6; letter-spacing: -.02em; margin: 0 0 8px; font-weight: 500; }
.home-next p:not(.section-kicker) { font-size: var(--text-sm); color: var(--muted); line-height: 1.8; margin: 0; }
.next-link { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-size: var(--text-sm); white-space: nowrap; text-decoration: none; }
.next-link:hover { text-decoration: underline; }
.home-directory, .home-resources { scroll-margin-top: 24px; }
.home-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.home-section-heading h2 { font-size: var(--text-xl); line-height: 1.6; letter-spacing: -.03em; font-weight: 500; margin: 0; }
.home-section-heading > p { color: var(--muted); font-size: var(--text-sm); line-height: 1.8; margin: 0 0 3px; }
.searchbar { display: flex; align-items: center; gap: 12px; min-height: 52px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); padding: 0 16px; margin-bottom: 24px; transition: border-color var(--duration-fast), box-shadow var(--duration-fast); }
.searchbar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #76556c18; }
.searchbar svg { color: var(--muted); }
.searchbar input { width: 100%; min-width: 0; background: transparent; color: var(--ink); border: 0; padding: 12px 0; font-size: var(--text-sm); }
.searchbar input::placeholder { color: var(--muted); }
.searchbar input:focus { outline: 0; }
.searchbar button { border: 0; background: transparent; color: var(--accent); min-height: 44px; min-width: 44px; font-size: var(--text-sm); white-space: nowrap; }
.directory { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.category { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); align-self: start; transition: border-color var(--duration-normal); scroll-margin-top: 24px; }
.category:hover { border-color: #c8bbc4; }
.category[open] { border-color: #d6c8d1; }
.category summary { list-style: none; display: grid; grid-template-columns: 40px minmax(0,1fr) 16px; grid-template-rows: auto auto; column-gap: 16px; row-gap: 6px; align-items: center; cursor: pointer; padding: 24px; border-radius: var(--radius-panel); min-height: 112px; }
.category summary::-webkit-details-marker { display: none; }
.category summary strong { font-size: var(--text-base); font-weight: 500; line-height: 1.5; grid-column: 2; grid-row: 1; }
.category summary small { color: var(--muted); font-size: var(--text-xs); grid-column: 2; grid-row: 2; line-height: 1.65; }
.category-icon { grid-column: 1; grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 44px; color: var(--accent); }
.category-icon svg { width: 24px; height: 24px; }
.summary-toggle { grid-column: 3; grid-row: 1 / 3; color: var(--muted); transition: transform var(--duration-fast); display: flex; }
.summary-toggle svg { width: 16px; height: 16px; }
.category[open] .summary-toggle { transform: rotate(180deg); }
.category-body { margin: 0 24px; padding: 20px 0 24px; border-top: 1px solid var(--line); }
.category[open] .category-body { animation: content-enter var(--duration-normal) var(--ease-out); }
.empty-category { font-size: var(--text-sm); color: var(--muted); margin: 0; line-height: 1.8; }
.no-results { text-align: center; color: var(--muted); font-size: var(--text-sm); padding: 32px 24px; border: 1px dashed var(--line); border-radius: var(--radius-panel); }
.home-resources { margin-top: 64px; }
.resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.topic-link { display: block; padding: 28px; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); text-decoration: none; transition: background var(--duration-fast), border-color var(--duration-fast); }
.topic-link:hover { background: var(--accent-soft); border-color: #d6c8d1; text-decoration: none; }
.topic-title { display: block; font-size: var(--text-lg); font-weight: 500; line-height: 1.6; color: var(--ink); }
.topic-description { font-size: var(--text-sm); color: var(--muted); margin: 12px 0 24px; line-height: 1.8; }
.topic-meta, .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: var(--text-xs); }
.status, .badge { display: inline-flex; align-items: center; padding: 2px 8px; background: var(--success-soft); color: var(--success); border-radius: var(--radius-status); font-size: var(--text-xs); font-weight: 500; }
.home-closing { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin: 64px 0 0; padding: 40px 0; border-top: 1px solid var(--line); }
.home-closing h2 { font-size: var(--text-xl); font-weight: 500; letter-spacing: -.03em; margin: 0 0 12px; }
.home-closing p { color: var(--muted); font-size: var(--text-sm); margin: 0; }
.home-footer { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--muted); font-size: var(--text-xs); }
.page-footer { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; color: var(--muted); font-size: var(--text-xs); }

/* 所有事项页面共用的正文、目录与组件 */
.wrap { max-width: 1160px; padding: 32px 48px 48px; margin: auto; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 20px; font-size: var(--text-sm); }
.top a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.top a:hover { text-decoration: underline; }
.top span { color: var(--muted); font-size: var(--text-xs); }
.wrap > header { padding: 40px 0 36px; }
.wrap h1 { font-size: var(--text-title); line-height: 1.45; letter-spacing: -.035em; margin: 0 0 20px; }
.lead { font-size: var(--text-lg); max-width: 42em; line-height: 1.85; margin: 24px 0 16px; }
.limit { max-width: 52em; color: var(--muted); font-size: var(--text-sm); line-height: 1.9; }
.layout { display: grid; grid-template-columns: 168px minmax(0,1fr); gap: 48px; }
.toc { align-self: start; position: sticky; top: 24px; padding-left: 16px; border-left: 2px solid #e2d5df; font-size: var(--text-sm); }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.content { min-width: 0; }
.content section { margin-bottom: 40px; scroll-margin-top: 24px; }
.content h2 { font-size: var(--text-xl); line-height: 1.5; letter-spacing: -.025em; margin: 0 0 20px; }
.content h3 { font-size: var(--text-lg); line-height: 1.6; font-weight: 500; margin: 0 0 12px; }
.content p { margin: 12px 0; max-width: 42em; }
.content li { margin: 8px 0; }
.content ul, .content ol { padding-left: 24px; }
.recommendation { background: var(--accent-soft); border-radius: var(--radius-panel); padding: 24px 28px; margin-bottom: 20px; }
.recommendation p:first-child { margin-top: 0; }
.recommendation p:last-child { margin-bottom: 0; }
.approach { padding: 24px 0; border-bottom: 1px solid var(--line); }
.approach:first-of-type { padding-top: 0; }
.recommended { display: inline-flex; vertical-align: middle; font-size: var(--text-xs); padding: 2px 8px; margin-left: 8px; font-weight: 500; background: var(--accent-soft); color: var(--accent); border-radius: var(--radius-status); }
.project { background: var(--surface); padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius-panel); margin: 20px 0; }
.project .type { color: var(--muted); font-size: var(--text-xs); margin: 0 0 12px; }
.project h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.sources { font-size: var(--text-sm); display: flex; flex-wrap: wrap; gap: 0 20px; }
.sources a { display: inline-flex; align-items: center; min-height: 44px; }
.note { font-size: var(--text-sm); color: var(--muted); }
.evidence { border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); padding: 16px 24px; }
.evidence summary { cursor: pointer; font-weight: 500; min-height: 44px; display: list-item; align-content: center; }
.evidence p, .evidence li { font-size: var(--text-sm); }
.page-footer { margin-top: 40px; align-items: center; }
.page-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.token-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.token { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control); padding: 16px; min-width: 0; }
.token::before { content: ""; display: block; height: 32px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--swatch); }
.token--paper { --swatch: var(--paper); }
.token--surface { --swatch: var(--surface); }
.token--ink { --swatch: var(--ink); }
.token--muted { --swatch: var(--muted); }
.token--accent { --swatch: var(--accent); }
.token--accent-soft { --swatch: var(--accent-soft); }
.token--line { --swatch: var(--line); }
.token p { margin: 4px 0 0; font-size: var(--text-sm); color: var(--muted); }
.token strong, .token span { display: block; }
.token span { font-size: var(--text-sm); color: var(--muted); }
.type-sample { padding: 24px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-panel); font-size: var(--text-xl); line-height: 1.8; }
.standard-table { width: 100%; overflow-x: auto; margin-top: 24px; border-radius: var(--radius-control); font-size: var(--text-sm); }
.standard-table table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.standard-table th:first-child { width: 100px; }
.standard-table th, .standard-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.standard-table th { font-weight: 500; background: var(--accent-soft); }
.standard-table td:first-child { font-weight: 500; }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .88em; overflow-wrap: anywhere; background: var(--accent-soft); border-radius: 4px; padding: 2px 4px; }

/* 场地选型：档案正文、证据与临时评分 */
.venue-document { scroll-behavior: auto; }
.assessment-page .venue-header > p { margin-bottom: 16px; }
.assessment-context { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.assessment-context span { border: 1px solid var(--line); padding: 5px 10px; border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 13px; }
.assessment-boundary { font-size: 14px; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.assessment-page main > .assessment-section { margin-top: 28px; }
.assessment-controls { gap: 12px; }
.assessment-controls label { min-width: 150px; }
.assessment-table-wrap { overflow: auto; max-height: 74vh; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.assessment-table { border-spacing: 0; border-collapse: separate; table-layout: fixed; width: 1730px; min-width: 1730px; font-size: 13px; line-height: 1.75; }
.assessment-table th, .assessment-table td { padding: 16px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--surface); }
.assessment-table th { position: sticky; top: 0; z-index: 3; background: var(--accent-soft); font-weight: 500; white-space: nowrap; }
.assessment-table th:nth-child(1) { width: 150px; }
.assessment-table th:nth-child(2) { width: 175px; }
.assessment-table th:nth-child(3) { width: 105px; }
.assessment-table th:nth-child(4) { width: 115px; }
.assessment-table th:nth-child(5) { width: 90px; }
.assessment-table th:nth-child(6) { width: 130px; }
.assessment-table th:nth-child(7) { width: 310px; }
.assessment-table th:nth-child(8) { width: 380px; }
.assessment-table th:nth-child(9) { width: 275px; }
.assessment-table td { overflow-wrap: anywhere; }
.assessment-table :is(th,td):nth-child(1) { position: sticky; left: 0; z-index: 2; min-width: 150px; max-width: 150px; }
.assessment-table :is(th,td):nth-child(2) { position: sticky; left: 150px; z-index: 2; min-width: 175px; max-width: 175px; box-shadow: 1px 0 var(--line); }
.assessment-table th:nth-child(1), .assessment-table th:nth-child(2) { z-index: 4; }
.assessment-table td:nth-child(3) { min-width: 105px; }
.assessment-table td:nth-child(4) { min-width: 115px; font-variant-numeric: tabular-nums; }
.assessment-table td:nth-child(5) { min-width: 90px; }
.assessment-table td:nth-child(6) { min-width: 130px; }
.assessment-table td:nth-child(7) { min-width: 310px; }
.assessment-table td:nth-child(8) { min-width: 380px; }
.assessment-table td:nth-child(9) { min-width: 275px; }
.assessment-table small { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.assessment-table a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 12px; }
.assessment-table tr:last-child td { border-bottom: 0; }
.assessment-table tr:hover td { background: #fcf9fc; }
.assessment-status, .assessment-verdict { display: inline-block; padding: 3px 7px; border-radius: 5px; background: #f3f0ea; color: #755f3d; font-size: 12px; }
.assessment-table [data-trigger="na"] .assessment-verdict, .assessment-table [data-status="未到阶段"] .assessment-status { background: #f0f1f4; color: var(--muted); }
.assessment-support { margin-top: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); scroll-margin-top: 24px; }
.assessment-support > summary { cursor: pointer; min-height: 56px; padding: 16px 20px; font-size: 16px; font-weight: 500; }
.assessment-support-body { padding: 4px 24px 24px; }
.assessment-support-body h3 { margin-top: 24px; }
.assessment-support-body :is(p,li) { font-size: 14px; }
.assessment-support-body li { margin: 12px 0; }
.assessment-footnote { margin-top: 24px; }
@media (max-width: 640px) {
  .assessment-page .venue-header h1 { font-size: 27px; }
  .assessment-page .assessment-controls { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .assessment-controls label { min-width: 0 !important; }
  .assessment-controls select { min-width: 0; }
  .assessment-controls button { grid-column: 1 / -1; }
  .assessment-table-wrap { max-height: 70vh; }
  .assessment-table { width: 1680px; min-width: 1680px; }
  .assessment-table th:nth-child(1) { width: 125px; }
  .assessment-table th:nth-child(2) { width: 150px; }
  .assessment-table :is(th,td):nth-child(1) { min-width: 125px; max-width: 125px; }
  .assessment-table :is(th,td):nth-child(2) { position: static; left: auto; min-width: 150px; max-width: 150px; box-shadow: none; }
  .assessment-table th:nth-child(2) { position: sticky; top: 0; z-index: 3; }
  .assessment-support-body { padding-inline: 16px; }
}
@media print {
  .assessment-controls { display: none; }
  .assessment-table-wrap { max-height: none; overflow: visible; }
  .assessment-table { min-width: 0; font-size: 9px; }
  .assessment-table :is(th,td) { position: static !important; min-width: 0 !important; max-width: none !important; padding: 5px; }
}
.venue-page .catalog-workspace { padding-top: 36px; }
.venue-header h1 { font-size: 36px; line-height: 1.45; letter-spacing: -.035em; margin: 8px 0 16px; }
.venue-header > p { color: var(--muted); max-width: 48em; margin: 16px 0 24px; }
.venue-page main > section { margin-top: 48px; scroll-margin-top: 24px; }
.venue-page h2 { font-size: 24px; font-weight: 600; margin: 0 0 16px; }
.venue-page h3 { font-size: 20px; font-weight: 500; margin: 0 0 12px; }
.venue-page h4 { font-size: 16px; font-weight: 600; margin: 24px 0 12px; }
.venue-page p { max-width: 58em; }
.venue-kicker { color: var(--accent); font-size: 12px; margin: 0; }
.venue-brief { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; gap: 20px; }
.venue-brief span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.venue-brief strong { font-size: 18px; font-weight: 500; }
.venue-callout { padding: 22px 26px; background: var(--accent-soft); border-radius: 16px; margin: 24px 0; }
.venue-callout p { margin: 8px 0; }
.venue-callout p:first-child { margin-top: 0; }
.venue-callout p:last-child { margin-bottom: 0; }
.venue-note { font-size: 13px; line-height: 1.8; color: var(--muted); }
.venue-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.venue-panel { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.venue-panel p { font-size: 14px; }
.venue-panel ul, .venue-panel ol { padding-left: 21px; margin: 12px 0 0; }
.venue-panel li { margin: 8px 0; font-size: 14px; }
.venue-pill { display: inline-flex; padding: 3px 9px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 500; }
.venue-pill.warn { background: #f6ede0; color: #795427; }
.venue-pill.neutral { background: #eef0f3; color: #5c626e; }
.venue-controls { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; margin: 20px 0 12px; }
.venue-controls label { display: flex; flex-direction: column; gap: 8px; min-width: 180px; flex: 1; font-size: 13px; color: var(--muted); }
.venue-page :is(input:not([type=checkbox]),select,textarea) { font: inherit; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; min-height: 44px; padding: 10px 12px; width: 100%; }
.venue-page :is(select,textarea):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.venue-page button { font: inherit; }
.venue-clear { border: 1px solid var(--line); background: var(--surface); padding: 10px 16px; min-height: 44px; border-radius: 10px; color: var(--accent); }
.venue-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.venue-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-width: 0; }
.venue-card figure { margin: 0; }
.venue-card img { width: 100%; height: 220px; object-fit: contain; display: block; background: var(--accent-soft); }
.venue-card figcaption { padding: 8px 20px 0; font-size: 12px; color: var(--muted); }
.venue-card figcaption a { display: inline-flex; align-items: center; min-height: 44px; }
.venue-card-content { padding: 16px 20px 24px; }
.venue-card h3 { font-size: 19px; line-height: 1.5; margin: 12px 0; }
.venue-card p { font-size: 14px; margin: 8px 0; }
.venue-card .venue-card-price { font-size: 16px; font-weight: 500; color: var(--accent); }
.venue-card .venue-open { display: inline-flex; min-height: 44px; align-items: center; margin-top: 8px; font-size: 14px; }
.venue-image-unavailable { min-height: 150px; padding: 28px 24px; display: grid; align-content: center; background: var(--accent-soft); font-size: 14px; color: var(--muted); }
.venue-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin-top: 20px; background: var(--surface); }
.venue-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.75; }
.venue-table.wide { min-width: 1120px; }
.venue-table th, .venue-table td { text-align: left; padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.venue-table th { background: var(--accent-soft); font-weight: 500; }
.venue-table tr:last-child td { border-bottom: 0; }
.venue-table td:first-child { min-width: 150px; font-weight: 500; }
.venue-table td small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 6px; }
.venue-table .source-link { display: inline; min-height: 0; font-size: 12px; }
.venue-table a { overflow-wrap: anywhere; }
.venue-profile { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin: 24px 0; scroll-margin-top: 24px; }
.venue-profile > header { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.venue-profile > header h3 { font-size: 24px; margin: 8px 0; }
.venue-profile .venue-original { margin: 20px 0; padding: 16px 20px; border-left: 3px solid #ccb7c6; background: #faf7fa; font-size: 14px; }
.venue-profile .venue-original p { margin: 4px 0; }
.venue-profile p, .venue-profile li { font-size: 14px; }
.venue-profile ul, .venue-profile ol { padding-left: 22px; }
.venue-profile li { margin: 12px 0; }
.venue-facts { margin: 20px 0 0; }
.venue-facts li > a, .venue-review a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 12px; font-size: 12px; }
.venue-facts .fact-limit { display: block; color: var(--muted); font-size: 12px; }
.venue-review { padding: 16px 20px; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
.venue-review h5 { font-size: 14px; margin: 0 0 8px; }
.venue-review p { margin: 8px 0; }
.venue-steps { padding-left: 22px; }
.venue-steps li { margin: 16px 0; }
.venue-gates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: 0; padding: 0; margin: 20px 0; }
.venue-gates legend { margin-bottom: 12px; font-weight: 500; }
.venue-gates label { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; min-height: 48px; }
.venue-gates input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.venue-score-output { padding: 20px 24px; border-radius: 14px; background: var(--accent-soft); margin-top: 20px; }
.venue-score-output strong { display: block; font-size: 24px; margin-bottom: 8px; }
.venue-score-output p { margin: 0; font-size: 14px; }
.venue-page textarea { min-height: 300px; line-height: 1.8; resize: vertical; font-size: 14px; }
.venue-budget-result { font-size: 22px !important; font-weight: 500; color: var(--accent); }
.venue-sources { font-size: 13px; color: var(--muted); }
.venue-sources a { display: inline-flex; min-height: 44px; align-items: center; margin-right: 20px; }
.venue-page .catalog-nav a { min-height: 44px; }
.venue-page .catalog-nav .venue-subnav { padding-left: 22px; font-size: 12px; }
@media (max-width: 1100px) {
  .venue-brief { grid-template-columns: 1fr 1fr; }
  .venue-columns, .venue-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .venue-header h1 { font-size: 30px; }
  .venue-brief { padding: 20px; }
  .venue-brief strong { font-size: 16px; }
  .venue-page .catalog-nav a { min-height: 44px; }
  .venue-page .catalog-nav .venue-subnav { padding-left: 12px; font-size: 14px; }
  .venue-profile, .venue-panel { padding: 20px; }
  .venue-profile > header { flex-direction: column; }
  .venue-profile > header h3 { font-size: 21px; }
  .venue-gates { grid-template-columns: 1fr; }
  .venue-controls { gap: 12px; }
  .venue-controls label { min-width: 100%; }
  .venue-table th, .venue-table td { padding: 12px; }
  .venue-callout { padding: 20px; }
}

@keyframes hero-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ring-enter { from { opacity: 0; stroke-dashoffset: 1; transform: rotate(-10deg); } to { opacity: 1; stroke-dashoffset: 0; transform: rotate(0); } }
@keyframes content-enter { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) {
  .catalog-layout { grid-template-columns: 208px minmax(0,1fr); }
  .catalog-sidebar { padding-inline: 20px; }
  .catalog-brand { font-size: 18px; }
  .catalog-workspace .directory, .catalog-workspace .resource-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .entrance-shell { padding-inline: 32px; }
  .entrance-main { gap: 40px; }
  .entrance-copy h1 { font-size: 38px; }
  .entrance-copy p { font-size: var(--text-sm); }
  .home-shell { padding-inline: 32px; }
  .home-header { min-height: 88px; }
  .home-nav { gap: 24px; }
  .home-hero { gap: 32px; }
  .home-hero h1 { font-size: 36px; }
  .hero-actions { gap: 16px; }
  .home-visual { height: 400px; }
  .home-visual figcaption { left: 16px; right: 16px; bottom: 16px; padding: 12px; gap: 12px; }
  .cover-rings { width: 44px; }
  .home-next { padding: 24px; grid-template-columns: 44px minmax(0,1fr); gap: 20px; }
  .next-mark { width: 44px; height: 44px; }
  .next-link { grid-column: 2; }
  .home-section-heading { align-items: start; }
  .home-section-heading > p { max-width: 170px; }
  .wrap { padding: 28px 32px 40px; }
  .layout { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 0 20px; }
  .toc a { padding: 8px 0; }
}
@media (max-width: 800px) {
  .home-hero { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .home-hero h1 { font-size: 42px; }
  .home-visual { height: auto; }
  .home-visual img { height: 340px; object-position: 50% 45%; }
  .home-visual figcaption { position: static; padding: 20px; border: 0; border-radius: 0; background: #f8f5f7; }
  .hero-footnote { margin-top: 24px; }
  .home-section-heading { flex-direction: column; gap: 12px; }
  .home-section-heading > p { max-width: none; }
}
@media (max-width: 640px) {
  .catalog-layout { display: block; }
  .catalog-sidebar { position: static; height: auto; overflow: visible; padding: 16px 20px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .catalog-brand { flex-direction: row; align-items: center; gap: 10px; min-height: 44px; font-size: var(--text-base); }
  .catalog-brand svg { width: 32px; height: 26px; }
  .catalog-sidebar-note, .catalog-nav-label, .catalog-sidebar-return { display: none; }
  .catalog-nav { flex-direction: row; gap: 8px; overflow-x: auto; padding: 8px 4px; margin: 4px -4px 0; }
  .catalog-nav a { flex: 0 0 auto; white-space: nowrap; }
  .catalog-workspace { padding: 24px 20px; }
  .catalog-intro h1 { font-size: 30px; }
  .entrance-shell { padding-inline: 24px; }
  .entrance-brand { height: 76px; }
  .entrance-main { grid-template-columns: 1fr; gap: 32px; min-height: 0; padding: 28px 0 32px; }
  .entrance-copy h1 { font-size: 34px; margin-bottom: 16px; }
  .entrance-copy p { margin-bottom: 28px; }
  .entrance-art { height: 260px; border-radius: 20px; }
  .catalog-intro { padding-top: 0; }
  .home-shell { padding-inline: 20px; }
  .home-header { flex-wrap: wrap; gap: 8px; padding: 20px 0 12px; }
  .home-brand { font-size: var(--text-base); }
  .home-nav { width: 100%; justify-content: space-between; gap: 20px; }
  .home-nav a { min-height: 44px; }
  .home-hero { padding: 32px 0; gap: 28px; }
  .home-intro { margin-bottom: 16px; font-size: var(--text-xs); }
  .home-hero h1 { font-size: clamp(29px,8.1vw,34px); margin-bottom: 20px; }
  .home-description { font-size: var(--text-sm); }
  .hero-actions { gap: 12px 24px; margin-top: 24px; }
  .button-primary { padding-inline: 16px; }
  .hero-footnote { margin-top: 20px; }
  .home-visual { height: auto; border-radius: 20px; }
  .home-visual img { height: 320px; }
  .home-basics { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding: 24px 0; }
  .home-basics > div { padding: 0 0 0 20px; }
  .home-basics > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .home-next { margin: 28px 0 48px; gap: 16px; padding: 20px; }
  .home-next h2 { font-size: var(--text-base); }
  .home-next p:not(.section-kicker) { font-size: var(--text-xs); }
  .home-section-heading { margin-bottom: 24px; }
  .home-section-heading h2 { font-size: var(--text-lg); }
  .directory, .resource-grid { grid-template-columns: 1fr; gap: 12px; }
  .category summary { min-height: 100px; padding: 20px 16px; column-gap: 12px; }
  .category-body { margin-inline: 20px; padding-block: 16px 20px; }
  .home-resources { margin-top: 48px; }
  .topic-link { padding: 24px; }
  .topic-title { font-size: var(--text-base); }
  .home-closing { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 48px; padding: 32px 0; }
  .home-closing h2 { font-size: var(--text-lg); }
  .home-footer, .page-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  .wrap { padding: 20px; }
  .top { gap: 16px; font-size: var(--text-sm); }
  .top span { max-width: 180px; text-align: right; }
  .wrap > header { padding: 32px 0 24px; }
  .wrap h1 { font-size: 30px; }
  .lead { font-size: var(--text-base); }
  .content h2 { font-size: var(--text-xl); }
  .content h3 { font-size: var(--text-lg); }
  .project, .recommendation { padding: 20px; }
  .token-grid { grid-template-columns: 1fr; }
  .standard-table th, .standard-table td { padding: 12px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-copy, .hero-ring, .category-body { opacity: 1; transform: none; stroke-dashoffset: 0; }
}
@media print {
  body { background: white; }
  .catalog-sidebar { display: none; }
  .catalog-layout { display: block; }
  .catalog-workspace { padding: 0; }
  .home-nav, .searchbar, .home-visual, .hero-actions, .toc { display: none; }
  .home-hero, .layout, .directory, .resource-grid { display: block; }
  .home-shell, .wrap { padding: 0; max-width: none; }
  .home-hero { padding: 16px 0; }
  .category, .project, .approach, .home-next, .topic-link { break-inside: avoid; }
  .category { margin-bottom: 12px; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  a { color: inherit; }
}

/* Supplier assessment uses the shared type, colour and spacing system. */
.editor-bar { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:24px 0 32px; padding:16px 20px; border:1px solid var(--line); border-radius:12px; background:var(--surface); font-size:13px; }
.editor-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.editor-secondary { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 16px; background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:8px; font:inherit; font-size:13px; text-decoration:none; cursor:pointer; }
.editor-secondary:hover { border-color:var(--accent); background:var(--accent-soft); }
.editor-bar button:disabled, .editor-secondary:disabled { opacity:.5; cursor:not-allowed; }
.assessment-section-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.assessment-section-head h2 { margin:4px 0 0; }
.assessment-cover { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:20px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.assessment-cover dl { display:grid; grid-template-columns:repeat(4,minmax(100px,1fr)); gap:20px; flex:1; margin:0; }
.assessment-cover dt { color:var(--muted); font-size:12px; margin-bottom:6px; }
.assessment-cover dd { margin:0; font-size:14px; overflow-wrap:anywhere; }
.assessment-scoreline { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:24px 0; border-bottom:1px solid var(--line); }
.assessment-scoreline > div { padding-inline:24px; border-left:1px solid var(--line); }
.assessment-scoreline > div:first-child { padding-left:0; border:0; }
.assessment-scoreline span { display:block; font-size:12px; color:var(--muted); margin-bottom:8px; }
.assessment-scoreline strong { display:block; font-size:24px; font-weight:550; line-height:1.4; font-variant-numeric:tabular-nums; }
.assessment-scoreline small { font-size:13px; color:var(--muted); font-weight:400; }
#score-grade { font-size:20px; } #score-grade[data-grade="strong"] { color:var(--success); } #score-grade:is([data-grade="low"],[data-grade="veto"]) { color:#a0403d; }
.assessment-table.formal-assessment { width:1450px; min-width:1450px; }
.formal-assessment :is(th,td):nth-child(n) { min-width:0; max-width:none; }
.formal-assessment th:nth-child(1) { width:155px; }
.formal-assessment th:nth-child(2) { width:175px; }
.formal-assessment th:nth-child(3) { width:290px; }
.formal-assessment th:nth-child(4) { width:100px; }
.formal-assessment th:nth-child(5) { width:80px; }
.formal-assessment th:nth-child(6) { width:125px; }
.formal-assessment th:nth-child(7) { width:140px; }
.formal-assessment th:nth-child(8) { width:95px; }
.formal-assessment th:nth-child(9) { width:100px; }
.formal-assessment th:nth-child(10) { width:90px; }
.formal-assessment :is(th,td):nth-child(2) { left:155px; }
.formal-assessment td { padding:16px 12px; }
.formal-assessment th { padding:13px 12px; background:#f4f5f7; }
.formal-assessment td strong { font-weight:500; }
.formal-assessment .assessment-number { color:var(--muted); display:block; font-size:11px; margin-bottom:4px; }
.formal-assessment .assessment-unit { font-size:12px; font-weight:400; color:var(--muted); }
.formal-assessment small { line-height:1.6; margin-top:6px; }
.formal-assessment .row-edit { padding-inline:12px; }
.formal-assessment .assessment-status, .formal-assessment .assessment-verdict { padding:0; background:none; font-weight:500; }
.formal-assessment [data-trigger="yes"] .assessment-verdict { color:#a0403d; }
.editor-field { display:block; max-width:440px; margin:20px 0; font-size:13px; }
.editor-panel { border:1px solid var(--line); border-radius:12px; padding:24px; margin:20px 0; background:var(--surface); }
.editor-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.editor-grid label { display:flex; flex-direction:column; gap:8px; font-size:13px; min-width:0; }
.editor-grid input, .editor-grid select, .editor-grid textarea, .editor-field select { width:100%; min-width:0; min-height:44px; padding:10px 12px; border:1px solid #cdd1d9; border-radius:8px; background:var(--surface); color:var(--ink); font:inherit; line-height:1.65; }
.editor-grid textarea { resize:vertical; }
.editor-grid small { color:var(--muted); }
.editor-wide { grid-column:1 / -1; }
.editor-check, .editor-grid .editor-check { display:flex; flex-direction:row; align-items:center; gap:10px; min-height:44px; font-size:13px; }
.editor-check input { flex:none; width:18px; height:18px; min-height:0; accent-color:var(--accent); }
.editor-error { font-size:13px; color:#9e403d; }
.editor-error:empty { display:none; }
.editor-dialog { width:min(720px,calc(100% - 32px)); max-height:90vh; padding:28px; border:1px solid var(--line); border-radius:16px; color:var(--ink); background:var(--surface); box-shadow:0 20px 80px #20243033; }
.editor-dialog::backdrop { background:#20243066; backdrop-filter:blur(3px); }
.editor-dialog-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:20px; }
.editor-dialog-heading h2 { margin:0; font-size:24px; }
.editor-close { min-width:44px; min-height:44px; flex:none; border:1px solid var(--line); border-radius:50%; background:none; font-size:24px; cursor:pointer; }
.editor-dialog p { font-size:13px; line-height:1.9; }
.editor-ai { margin:20px 0; padding:16px; border-radius:10px; background:#f4f5f7; font-size:13px; }
.editor-ai summary { cursor:pointer; min-height:44px; display:flex; align-items:center; font-weight:500; }
.editor-ai a { display:inline-flex; align-items:center; min-height:44px; margin-right:12px; }
.editor-preview { padding:14px 16px; background:var(--accent-soft); border-radius:8px; }
.editor-dialog .editor-check { margin-top:16px; }
.editor-dialog .editor-actions { margin-top:20px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
[hidden] { display:none !important; }
@media(max-width:1000px) {
  .assessment-cover { align-items:flex-start; }
  .assessment-cover dl { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .assessment-scoreline > div { padding-inline:16px; }
}
@media(max-width:640px) {
  .editor-bar { align-items:flex-start; flex-direction:column; margin:20px 0; padding:16px; }
  .editor-bar .editor-actions { width:100%; }
  .assessment-section-head { align-items:flex-start; gap:12px; }
  .assessment-section-head h2 { font-size:20px; }
  .assessment-cover { flex-direction:column; }
  .assessment-cover dl { width:100%; }
  .assessment-scoreline { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 0; }
  .assessment-scoreline > div:nth-child(3) { padding-left:0; border:0; }
  .assessment-scoreline strong { font-size:22px; }
  #score-grade { font-size:18px; }
  .formal-assessment :is(th,td):nth-child(2) { left:auto; }
  .formal-assessment th:nth-child(1) { width:130px; }
  .formal-assessment :is(th,td):nth-child(1) { min-width:130px; max-width:130px; }
  .editor-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
  .editor-wide { grid-column:auto; }
  .editor-panel { padding:16px; }
  .editor-dialog { padding:20px; width:calc(100% - 24px); max-height:92vh; }
}
@media print {
  .editor-bar, .editor-dialog, #assessment-controls, #edit-context, #assessment-config, .assessment-section-head > a, .row-edit { display:none !important; }
  .assessment-table.formal-assessment { width:100%; min-width:0; font-size:8px; }
  .formal-assessment th:nth-child(n) { width:auto; }
  .formal-assessment :is(th,td):nth-child(n) { min-width:0; max-width:none; }
  .formal-assessment small { font-size:7px; }
}
/* Place decision columns before the longer evaluation standards. */
.formal-assessment th:nth-child(3) { width:125px; }
.formal-assessment th:nth-child(4) { width:140px; }
.formal-assessment th:nth-child(5) { width:95px; }
.formal-assessment th:nth-child(6) { width:100px; }
.formal-assessment th:nth-child(7) { width:80px; }
.formal-assessment th:nth-child(8) { width:100px; }
.formal-assessment th:nth-child(9) { width:290px; }
.formal-assessment :is(th,td):last-child { position:sticky; right:0; z-index:2; box-shadow:-1px 0 var(--line); }
.formal-assessment th:last-child { z-index:4; }
@media(max-width:640px) {
 .formal-assessment td:last-child { position:static; box-shadow:none; }
 .formal-assessment th:last-child { right:auto; z-index:3; }
}
@media print { .formal-assessment th:nth-child(n) { width:auto; } }

/* The same assessment rows become readable cards on phones. */
.session-tools:empty { display:none; }
.catalog-nav a.current { box-shadow:inset 0 0 0 1px var(--accent); }
.editor-dialog { max-height:90vh; max-height:90dvh; overflow-y:auto; overscroll-behavior:contain; }
@media screen and (max-width:900px) {
  html { scroll-padding-bottom:140px; }
  body { overflow-wrap:anywhere; }
  .catalog-sidebar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:0 12px; }
  .catalog-sidebar .catalog-nav { grid-column:1 / -1; grid-row:2; min-width:0; scrollbar-width:thin; padding-bottom:10px; }
  .catalog-sidebar .catalog-nav a { padding-inline:14px; min-height:44px; }
  .catalog-sidebar .session-tools { align-self:center; }
  .catalog-workspace { min-width:0; padding-inline:16px; }
  .catalog-intro h1, .venue-header h1 { font-size:28px; }
  .category summary { padding-inline:14px; }
  .category-body { margin-inline:14px; }
  .category-body .topic-link, .resource-grid .topic-link { padding:20px 16px; }
  .searchbar input, .venue-page :is(input:not([type=checkbox]),select,textarea), .editor-grid :is(input,select,textarea), .editor-field select { font-size:16px; min-width:0; }
  .assessment-page .catalog-workspace { padding-bottom:160px; }
  .assessment-page .editor-bar { position:fixed; z-index:20; left:0; right:0; bottom:0; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; margin:0; padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px)); border:0; border-top:1px solid var(--line); border-radius:0; background:var(--surface); box-shadow:0 -6px 24px #282c3510; }
  .editor-bar #save-status { min-width:0; font-size:12px; line-height:1.65; }
  .editor-bar .editor-actions { width:auto; }
  .editor-bar .button-primary { min-height:48px; padding:12px 16px; white-space:nowrap; font-size:14px; }
  .editor-bar #editable-link { font-size:12px; }
  .assessment-section-head { margin-bottom:16px; }
  .assessment-section-head > a { flex-shrink:0; }
  .assessment-controls label:first-child { grid-column:1 / -1; }
  .assessment-controls label:last-child { grid-column:1 / -1; }
  .assessment-controls { padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
  .assessment-scoreline { gap:18px 0; padding-block:20px; }
  .assessment-scoreline > div { padding-inline:16px; }
  .assessment-scoreline span { line-height:1.5; }
  .assessment-scoreline strong { font-size:22px; }
  .assessment-cover { gap:16px; }
  .assessment-cover dl { gap:16px; }
  .assessment-cover #edit-context { width:100%; }
  .assessment-table-wrap { overflow:visible; max-height:none; border:0; border-radius:0; background:transparent; }
  .assessment-table.formal-assessment { display:block; width:100%; min-width:0; font-size:14px; }
  .formal-assessment thead { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .formal-assessment tbody { display:block; }
  .formal-assessment tbody tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:0 0 16px; overflow:hidden; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
  .formal-assessment tbody tr td:nth-child(n) { position:static; display:block; width:auto; min-width:0; max-width:none; padding:12px 16px; border:0; box-shadow:none; background:transparent; }
  .formal-assessment tbody tr td::before { display:block; margin-bottom:5px; font-size:12px; font-weight:400; color:var(--muted); content:attr(data-label); }
  .formal-assessment tbody td:nth-child(1), .formal-assessment tbody td:nth-child(2), .formal-assessment tbody td:nth-child(9), .formal-assessment tbody td:nth-child(10) { grid-column:1 / -1; }
  .formal-assessment tbody tr td:nth-child(1) { padding:12px 16px 8px; background:var(--accent-soft); font-size:12px; color:var(--muted); }
  .formal-assessment tbody td:nth-child(1)::before, .formal-assessment tbody td:nth-child(2)::before, .formal-assessment tbody td:nth-child(10)::before { display:none; }
  .formal-assessment tbody td:nth-child(1) strong { color:var(--accent); font-size:13px; }
  .formal-assessment tbody td:nth-child(1) small { display:inline; margin-left:8px; }
  .formal-assessment tbody tr td:nth-child(2) { padding-top:10px; padding-bottom:16px; border-bottom:1px solid var(--line); }
  .formal-assessment tbody td:nth-child(2) strong { font-size:17px; font-weight:600; line-height:1.5; }
  .formal-assessment .assessment-number { display:inline; margin:0 8px 0 0; font-size:13px; color:var(--accent); }
  .formal-assessment tbody td:nth-child(3)::before { content:'达成情况'; }
  .formal-assessment tbody td:nth-child(4)::before { content:'评分情况'; }
  .formal-assessment tbody td:nth-child(5)::before { content:'是否否决项'; }
  .formal-assessment tbody td:nth-child(6)::before { content:'否决结果'; }
  .formal-assessment tbody td:nth-child(7)::before { content:'权重'; }
  .formal-assessment tbody td:nth-child(8)::before { content:'判定方式'; }
  .formal-assessment tbody td:nth-child(9)::before { content:'考核标准'; }
  .formal-assessment tbody td:nth-child(4) > strong { font-size:20px; }
  .formal-assessment tbody tr td:nth-child(9) { border-top:1px solid var(--line); font-size:13px; line-height:1.85; }
  .formal-assessment tbody tr td:nth-child(10) { padding-top:4px; padding-bottom:16px; }
  .formal-assessment .row-edit { width:100%; min-height:46px; background:var(--accent-soft); color:var(--accent); border-color:transparent; font-size:14px; }
  .formal-assessment .assessment-status, .formal-assessment .assessment-verdict { font-size:14px; }
  .formal-assessment [data-trigger="yes"] { border-color:#a0403d; }
  .assessment-support > summary { padding:16px; font-size:15px; }
  .assessment-support-body { padding-inline:14px; }
  .venue-profile, .venue-panel { padding:16px; }
  .venue-profile .venue-original, .venue-review, .venue-callout { padding:14px; }
  .venue-card img { height:auto; max-height:300px; }
  .editor-dialog { width:calc(100% - 24px); max-height:90vh; max-height:90dvh; padding:18px; border-radius:16px; }
  .editor-dialog-heading { position:sticky; top:-18px; z-index:2; padding:14px 0; margin-top:-14px; background:var(--surface); gap:12px; }
  .editor-dialog-heading h2 { font-size:21px; }
  .editor-dialog .editor-grid { grid-template-columns:minmax(0,1fr); }
  .editor-dialog textarea { min-height:128px; }
  .editor-dialog .editor-actions { position:sticky; bottom:-18px; z-index:2; display:grid; grid-template-columns:minmax(0,1fr); margin:20px -18px -18px; padding:12px 18px calc(12px + env(safe-area-inset-bottom,0px)); border-top:1px solid var(--line); background:var(--surface); }
  .editor-dialog .editor-actions button { width:100%; min-height:46px; }
  .editor-dialog .editor-actions + .venue-note { margin-top:28px; }
  .editor-dialog .editor-check { align-items:flex-start; line-height:1.7; padding-block:8px; }
  .editor-dialog .editor-check input { margin-top:3px; }
  .editor-dialog p, .editor-dialog label { font-size:14px; }
  .editor-panel .editor-actions { align-items:stretch; }
  .editor-panel .editor-actions button { flex:1 1 auto; }
}

/* Access key entry follows the existing wedding cover and shared controls. */
.access-form { max-width:390px; margin-top:24px; }
.access-form > label, .auth-dialog form > label:not(.auth-remember) { display:block; font-size:14px; font-weight:500; margin-bottom:8px; }
.auth-key-control { display:grid; grid-template-columns:minmax(0,1fr) 56px; min-width:0; border:1px solid #b9bdc7; border-radius:10px; background:var(--surface); }
.auth-key-control:focus-within { outline:3px solid var(--accent-soft); border-color:var(--accent); }
.auth-key-control input { min-width:0; width:100%; min-height:48px; padding:12px; border:0; border-radius:10px 0 0 10px; background:transparent; color:var(--ink); font:inherit; font-size:16px; letter-spacing:.025em; }
.auth-key-control input:focus { outline:none; }
.auth-key-control button { min-height:48px; min-width:48px; padding:8px; border:0; border-left:1px solid var(--line); background:transparent; color:var(--accent); font:inherit; font-size:13px; cursor:pointer; border-radius:0 10px 10px 0; }
.auth-remember { display:flex; align-items:center; gap:10px; min-height:44px; margin-top:8px; font-size:14px; cursor:pointer; }
.auth-remember input { width:18px; height:18px; flex:none; accent-color:var(--accent); }
.entrance-copy .auth-hint, .auth-hint { color:var(--muted); font-size:12px; line-height:1.7; margin:0 0 14px; }
.entrance-copy .auth-message, .auth-message { font-size:14px; line-height:1.7; color:var(--muted); margin:12px 0; overflow-wrap:anywhere; }
.auth-message:empty { display:none; }
.auth-message[data-state="error"] { color:#9e403d; }
.auth-message[data-state="success"] { color:var(--success); }
.access-form > .button-primary { width:100%; min-height:48px; border:0; cursor:pointer; font:inherit; font-size:15px; }
.access-form button:disabled, .auth-dialog button:disabled { opacity:.55; cursor:wait; }
[data-session-tools] { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; color:var(--muted); font-size:12px; }
.home-session { margin-top:16px; }
.session-logout { min-height:44px; padding:8px 12px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); font:inherit; font-size:13px; cursor:pointer; }
.catalog-sidebar [data-session-tools] { margin-top:16px; }
.auth-dialog { width:min(440px,calc(100% - 32px)); max-height:90vh; max-height:90dvh; overflow:auto; overscroll-behavior:contain; padding:28px; border:1px solid var(--line); border-radius:16px; background:var(--surface); color:var(--ink); }
.auth-dialog::backdrop { background:#282c3566; backdrop-filter:blur(2px); }
.auth-dialog h2 { margin:0 0 12px; font-size:24px; }
.auth-dialog p { font-size:14px; line-height:1.8; }
.auth-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:20px; }
.auth-actions button { min-height:48px; font:inherit; cursor:pointer; }
.auth-lock-screen { position:fixed; inset:0; z-index:10000; display:grid; place-items:center; padding:24px; background:var(--paper); overflow:auto; }
.auth-lock-card { width:min(100%,430px); padding:24px; border:1px solid var(--line); background:var(--surface); border-radius:16px; }
.auth-lock-card h1 { font-size:25px; margin:0 0 16px; }
.auth-lock-card p { font-size:15px; line-height:1.8; color:var(--muted); }
.auth-lock-card a { display:flex; align-items:center; min-height:44px; margin-top:16px; }
.auth-pending body > :not(#auth-lock-screen):not(#auth-reauth):not(script) { visibility:hidden !important; }
.auth-pending #auth-lock-screen, .auth-pending #auth-reauth { visibility:visible; }
@media (max-width:640px) {
  .entrance-brand { height:64px; }
  .entrance-main { padding-top:16px; gap:24px; }
  .entrance-copy h1 { font-size:32px; }
  .entrance-copy > p { margin-bottom:20px; }
  .access-form { max-width:none; margin-top:16px; }
  .entrance-art { height:190px; }
  .auth-dialog { padding:20px; width:calc(100% - 24px); }
  .auth-actions { display:grid; grid-template-columns:minmax(0,1fr); }
  .auth-actions button { width:100%; justify-content:center; }
  .catalog-sidebar [data-session-tools] { margin-top:4px; }
  .auth-lock-screen { padding:20px max(20px,env(safe-area-inset-right)) 20px max(20px,env(safe-area-inset-left)); }
}
@media (max-width:640px) and (max-height:600px) { .entrance-art { display:none; } }

.assessment-extra-filters, .assessment-filter-grid { display:contents; }
.assessment-extra-filters > summary, .assessment-scheme > summary { display:none; }
@media screen and (max-width:900px) {
 .catalog-layout { display:block; }
 .catalog-sidebar { position:static; height:auto; overflow:visible; padding:12px 16px; border-right:0; border-bottom:1px solid var(--line); }
 .catalog-brand { flex-direction:row; min-height:44px; gap:10px; font-size:16px; }
 .catalog-brand svg { width:32px; height:26px; }
 .catalog-sidebar-note,.catalog-nav-label,.catalog-sidebar-return { display:none; }
 .catalog-nav { flex-direction:row; overflow-x:auto; gap:8px; margin:4px -4px 0; }
 .catalog-nav a { flex:0 0 auto; white-space:nowrap; }
 .catalog-sidebar [data-session-tools] { margin:0; }
 .venue-page .catalog-workspace { padding-top:20px; }
 .assessment-page .venue-header > p { font-size:14px; line-height:1.7; margin:8px 0; }
 .assessment-page .venue-header > .venue-kicker { font-size:11px; margin:0; }
 .assessment-page .venue-header h1 { margin:6px 0; }
 .assessment-context { gap:4px 10px; margin-block:12px; }
 .assessment-context span { background:transparent; border:0; padding:0; font-size:12px; }
 .assessment-page main > .assessment-section { margin-top:20px; }
 .assessment-section-head .venue-kicker { margin:0; font-size:11px; }
 .assessment-section-head h2 { font-size:19px; }
 .assessment-page .assessment-controls { display:grid; grid-template-columns:minmax(0,1fr); padding:12px 14px; gap:8px; }
 .assessment-controls label:first-child,.assessment-controls label:last-child { grid-column:auto; }
 .assessment-extra-filters { display:block; }
 .assessment-extra-filters > summary { display:list-item; min-height:44px; padding-block:10px; font-size:13px; cursor:pointer; }
 .assessment-filter-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding-bottom:8px; }
 .assessment-filter-grid label:last-child { grid-column:1 / -1; }
 .assessment-scheme { margin:14px 0 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
 .assessment-scheme > summary { display:list-item; min-height:44px; padding:10px 0; font-size:13px; cursor:pointer; }
 .assessment-scheme .assessment-cover { border:0; padding-top:8px; }
 .assessment-scoreline { gap:10px 0; padding-block:12px; }
 .assessment-scoreline span { font-size:11px; line-height:1.5; margin-bottom:4px; }
 .assessment-scoreline strong { font-size:20px; }
 #score-explanation { font-size:12px; line-height:1.7; margin:12px 0; }
 .editor-dialog,.auth-dialog { top:calc(var(--visual-top,0px) + 12px); bottom:auto; margin:0 auto; max-height:calc(var(--visual-height,100dvh) - 24px); }
}

/* The candidate gallery is part of the venue assessment, independent of table filters. */
.assessment-page #candidates { scroll-margin-top:24px; }
.assessment-page #candidates .venue-cards { align-items:start; gap:16px; }
.assessment-page #candidates .venue-card-content { padding:16px 18px; }
.assessment-page #candidates .venue-card h3 { margin:6px 0; font-size:19px; }
.assessment-page #candidates .venue-card p { margin:6px 0; line-height:1.7; }
.assessment-page #candidates .venue-card .venue-open,
.assessment-page #candidates [data-assess-supplier],
.assessment-page #selected-photos { display:inline-flex; align-items:center; min-height:44px; margin:0; overflow-wrap:anywhere; }
.assessment-page #candidates [data-assess-supplier] { margin-right:16px; font-size:14px; }
.assessment-page .venue-gallery { margin-top:14px; border-top:1px solid var(--line); scroll-margin-top:24px; }
.assessment-page .venue-gallery > summary { min-height:48px; padding:12px 16px; color:var(--accent); font-size:14px; font-weight:500; cursor:pointer; }
.assessment-page .venue-gallery-filter-status { display:inline-block; margin-left:12px; font-size:12px; font-weight:400; color:var(--muted); }
.assessment-page #candidates .venue-photo-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) auto; align-items:end; gap:12px; margin:20px 0 12px; }
.assessment-page #candidates .venue-photo-filters label { display:grid; gap:6px; min-width:0; font-size:13px; color:var(--muted); }
.assessment-page :is(#photo-area,#photo-kind,#photo-hotel) { min-width:0; min-height:44px; font-size:16px; }
.assessment-page #photo-filter-reset { min-height:44px; padding:10px 14px; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--accent); font:inherit; font-size:14px; cursor:pointer; }
.assessment-page #photo-filter-count { margin:8px 0; font-size:13px; line-height:1.75; color:var(--muted); }
.assessment-page #photo-area-guide { padding:12px 16px; border-left:3px solid var(--accent); background:var(--accent-soft); font-size:14px; line-height:1.8; }
.assessment-page #photo-area-guide > :first-child { margin-top:0; }
.assessment-page #photo-area-guide > :last-child { margin-bottom:0; }
.assessment-page .gallery-photo-empty { padding:16px; font-size:14px; line-height:1.8; color:var(--muted); }
.assessment-page .venue-gallery > summary:focus-visible,
.assessment-page .venue-photo-link:focus-visible,
.assessment-page .venue-photo-dialog :is(button,a):focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.assessment-page .venue-gallery figure { margin:0 0 16px; }
.assessment-page .venue-gallery figure + figure { padding-top:16px; border-top:1px solid var(--line); }
.assessment-page .venue-gallery figcaption { padding:10px 16px 0; line-height:1.75; overflow-wrap:anywhere; }
.assessment-page .venue-photo-link { position:relative; display:block; min-height:44px; cursor:zoom-in; }
.assessment-page .venue-photo-link::after { content:'点击放大'; position:absolute; right:12px; bottom:12px; padding:5px 10px; border-radius:6px; background:#242830e6; color:#fff; font-size:12px; line-height:1.6; pointer-events:none; }
.assessment-page .venue-gallery .venue-photo-link img { width:100%; height:220px; max-height:none; object-fit:contain; background:var(--accent-soft); }
.assessment-page:has(.venue-photo-dialog[open]) { overflow:hidden; }
.assessment-page .venue-photo-dialog { width:min(1120px,calc(100% - 40px)); max-width:calc(100% - 40px); max-height:calc(100vh - 40px); max-height:calc(100dvh - 40px); padding:0 20px 20px; overflow:auto; overscroll-behavior:contain; border:1px solid var(--line); border-radius:16px; background:var(--surface); color:var(--ink); }
.assessment-page .venue-photo-dialog::backdrop { background:#171c28cc; }
.assessment-page .venue-photo-dialog-head { position:sticky; top:0; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; background:var(--surface); }
.assessment-page .venue-photo-dialog h2 { margin:0; font-size:18px; line-height:1.55; overflow-wrap:anywhere; }
.assessment-page .venue-photo-close { flex:none; min-width:64px; min-height:44px; padding:8px 14px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); font:inherit; cursor:pointer; }
.assessment-page .venue-photo-dialog figure { margin:0; }
.assessment-page .venue-photo-dialog .venue-photo-full { display:block; width:100%; height:auto; max-height:66vh; max-height:66dvh; object-fit:contain; background:var(--accent-soft); }
.assessment-page .venue-photo-dialog figcaption { margin-top:12px; font-size:14px; line-height:1.8; color:var(--muted); overflow-wrap:anywhere; }
.assessment-page .venue-photo-dialog :is(figcaption a,.venue-photo-original) { display:inline-flex; align-items:center; min-height:44px; margin-right:12px; overflow-wrap:anywhere; }
.assessment-page .venue-photo-error { font-size:14px; color:var(--muted); }
@media (max-width:640px) {
 .assessment-page #candidates .venue-cards { grid-template-columns:minmax(0,1fr); }
 .assessment-page #candidates .venue-photo-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .assessment-page #photo-filter-reset { width:100%; }
 .assessment-page .venue-gallery-filter-status { margin-left:8px; }
 .assessment-page #candidates .venue-card-content { padding:14px 16px; }
 .assessment-page .venue-gallery .venue-photo-link img { height:auto; max-height:300px; }
 .assessment-page .venue-photo-dialog { width:calc(100% - 20px); max-width:calc(100% - 20px); max-height:calc(100vh - 20px); max-height:calc(100dvh - 20px); padding:0 14px 14px; border-radius:12px; }
 .assessment-page .venue-photo-dialog-head { gap:12px; padding:10px 0; }
 .assessment-page .venue-photo-dialog h2 { font-size:16px; }
 .assessment-page .venue-photo-dialog .venue-photo-full { max-height:60vh; max-height:60dvh; }
}
@media (prefers-reduced-motion:reduce) {
 .assessment-page :is(#candidates,.venue-gallery,.venue-photo-dialog) { scroll-behavior:auto; animation:none; transition:none; }
}
.assessment-page .photo-method { margin:12px 0; padding:0 16px; border:1px solid var(--line); border-radius:12px; background:var(--surface); font-size:14px; line-height:1.8; }
.assessment-page :is(.photo-method,.photo-crosscheck,.photo-verification) > summary { min-height:44px; padding:10px 0; cursor:pointer; color:var(--accent); }
.assessment-page .photo-method a { overflow-wrap:anywhere; }
.assessment-page .photo-crosscheck { padding:0 16px 12px; font-size:13px; line-height:1.8; }
.assessment-page .photo-crosscheck a { display:inline-flex; min-height:44px; align-items:center; margin-right:12px; }
.assessment-page .photo-verification { margin-top:8px; border-top:1px solid var(--line); }
.assessment-page .photo-score { font-weight:500; color:var(--ink); }
.assessment-page .photo-matrix-wrap { max-width:100%; overflow:auto; }
.assessment-page .photo-matrix { border-collapse:collapse; min-width:650px; width:100%; font-size:13px; }
.assessment-page .photo-matrix :is(th,td) { padding:8px 10px; border-bottom:1px solid var(--line); text-align:left; }
.assessment-page .photo-matrix a { display:inline-flex; min-height:44px; min-width:44px; align-items:center; }

/* Structured supplier assessment: one table, with rules and evidence on demand. */
.structured-assessment .structured-intro { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.structured-assessment .structured-intro h1 { margin-top:6px; font-size:30px; }
.structured-assessment .structured-intro > button { flex:none; }
.structured-assessment .structured-intro p { margin-bottom:0; }
.structured-assessment .structured-filters { display:flex; align-items:flex-start; flex-wrap:wrap; gap:14px 24px; margin:24px 0; }
.structured-assessment .structured-filters label { display:flex; flex-direction:column; gap:8px; min-width:180px; font-size:13px; }
.structured-assessment .structured-filters select { display:block; min-height:44px; width:100%; border:1px solid var(--line); border-radius:8px; padding:10px 12px; font:inherit; color:var(--ink); background:var(--surface); }
.structured-assessment .structured-filters details { flex:1; padding-top:22px; }
.structured-assessment .structured-filters summary { display:list-item; padding:10px 0; min-height:44px; cursor:pointer; font-size:13px; color:var(--muted); }
.structured-assessment .structured-filter-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:12px; }
.structured-assessment .structured-scheme { margin:12px 0; font-size:13px; }
.structured-assessment .structured-scheme > summary { padding:10px 0; min-height:44px; cursor:pointer; color:var(--accent); }
.structured-assessment .structured-result { display:flex; flex-wrap:wrap; gap:14px 30px; padding:16px 0; border-block:1px solid var(--line); font-size:13px; color:var(--muted); }
.structured-assessment .structured-result strong { display:inline; margin-left:8px; font-size:16px; font-weight:550; color:var(--ink); }
.structured-assessment .structured-result small { font-size:12px; font-weight:400; color:var(--muted); }
.structured-assessment #score-grade { font-size:16px; }
.structured-assessment .assessment-table-wrap { max-height:none; }
.structured-assessment .formal-assessment { width:100%; min-width:1070px; table-layout:fixed; }
.structured-assessment .formal-assessment th:nth-child(1) { width:125px; }
.structured-assessment .formal-assessment th:nth-child(2) { width:150px; }
.structured-assessment .formal-assessment th:nth-child(3) { width:220px; }
.structured-assessment .formal-assessment th:nth-child(4) { width:155px; }
.structured-assessment .formal-assessment th:nth-child(5) { width:70px; }
.structured-assessment .formal-assessment th:nth-child(6) { width:70px; }
.structured-assessment .formal-assessment th:nth-child(7) { width:90px; }
.structured-assessment .formal-assessment th:nth-child(8) { width:125px; }
.structured-assessment .formal-assessment :is(th,td):nth-child(2) { left:125px; }
.structured-assessment .formal-assessment td { vertical-align:top; overflow-wrap:anywhere; }
.structured-assessment .formal-assessment td:nth-child(3) { font-size:13px; }
.structured-assessment .formal-assessment td:nth-child(4) button { text-align:left; justify-content:flex-start; }
.structured-assessment .structured-footnote { margin-block:20px; max-width:90ch; }
.structured-assessment .structured-dialog { width:min(960px,calc(100% - 40px)); }
.structured-assessment .structured-dialog h3 { font-size:16px; margin:16px 0 8px; }
.structured-assessment .structured-dialog fieldset { border:0; padding:0; margin:0; min-width:0; }
.structured-assessment .structured-dialog legend { font-size:16px; font-weight:550; padding:0; margin-bottom:16px; }
.structured-assessment .structured-dialog fieldset:disabled { opacity:.75; }
.structured-assessment #row-back { margin-bottom:12px; }
.structured-assessment .structured-current { padding:14px 0; border-block:1px solid var(--line); font-size:15px; font-weight:500; }
.structured-assessment .structured-child-wrap { max-width:100%; overflow:auto; margin:20px 0; }
.structured-assessment .structured-child-table { width:100%; border-collapse:collapse; font-size:13px; }
.structured-assessment .structured-child-table :is(th,td) { padding:12px; border:1px solid var(--line); text-align:left; vertical-align:top; line-height:1.8; }
.structured-assessment .structured-child-table th { background:var(--accent-soft); font-weight:500; }
.structured-assessment .structured-child-table td:nth-child(1) { width:32%; }
.structured-assessment .structured-child-table td:nth-child(2) { width:20%; }
.structured-assessment .structured-child-table td:last-child { width:115px; }
.structured-assessment .structured-child-table small { display:block; color:var(--muted); line-height:1.8; }
.structured-assessment .structured-child-table p { margin:5px 0 0; }
.structured-assessment :is(.structured-evidence,.structured-rubric,#legacy-record) { margin:20px 0; border-top:1px solid var(--line); }
.structured-assessment :is(.structured-evidence,.structured-rubric,#legacy-record) > summary { min-height:44px; padding:12px 0; cursor:pointer; font-size:14px; color:var(--accent); }
.structured-assessment .structured-rubric-list { list-style:none; padding:0; margin:0 0 20px; }
.structured-assessment .structured-rubric-list li { display:flex; justify-content:space-between; gap:16px; padding:10px 0; border-bottom:1px solid var(--line); font-size:13px; line-height:1.8; }
.structured-assessment .structured-rubric-list strong { white-space:nowrap; font-weight:500; }
.structured-assessment .structured-photo-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.structured-assessment .structured-photo-grid figure { margin:0; min-width:0; padding-bottom:14px; border-bottom:1px solid var(--line); }
.structured-assessment .structured-photo-grid img { display:block; width:100%; height:230px; object-fit:contain; background:var(--accent-soft); }
.structured-assessment .structured-photo-grid figcaption { font-size:13px; line-height:1.9; margin-top:10px; overflow-wrap:anywhere; }
.structured-assessment .structured-photo-grid figcaption p { margin:6px 0; }
.structured-assessment .structured-photo-grid figcaption a { display:inline-flex; align-items:center; min-height:44px; margin-right:8px; }
.structured-assessment #row-profile-content .venue-profile { border:0; padding:0; box-shadow:none; }
.structured-assessment #row-profile-content .venue-profile h3 { font-size:19px; }
.structured-assessment #row-profile-content .venue-columns { display:block; }
.structured-assessment #row-profile-content .venue-callout { background:transparent; border:1px solid var(--line); }
.structured-assessment .config-selector { display:flex; gap:12px; align-items:end; margin-bottom:22px; flex-wrap:wrap; }
.structured-assessment .config-selector .editor-field { flex:1; min-width:200px; max-width:none; margin:0; }
.structured-assessment .config-selector select { margin-top:8px; }
.structured-assessment .structured-option { display:grid; grid-template-columns:minmax(0,1fr) 125px 120px auto; align-items:end; gap:10px; margin-bottom:14px; padding-bottom:14px; border-bottom:1px solid var(--line); }
.structured-assessment .structured-option label { font-size:12px; }
.structured-assessment .structured-option input { min-width:0; }
.structured-assessment .evidence-area-options { display:flex; flex-wrap:wrap; gap:6px 18px; }
.structured-assessment .evidence-area-options legend { width:100%; font-size:13px; font-weight:400; margin:0 0 6px; }
.structured-assessment .structured-tiers { margin-top:30px; padding-top:22px; border-top:1px solid var(--line); }
.structured-assessment .structured-tiers button { margin-top:14px; }
.structured-assessment .editor-ai h3 { margin-top:0; }
.structured-assessment #dialog-ai-sources { padding-left:18px; margin:8px 0; }
.structured-assessment #dialog-ai-sources:empty { display:none; }
.structured-assessment :is(button,input,select,textarea):focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media screen and (max-width:900px) {
 .structured-assessment .structured-intro { align-items:flex-start; flex-direction:column; gap:16px; }
 .structured-assessment .structured-intro > button { width:100%; }
 .structured-assessment .structured-filters { display:block; }
 .structured-assessment .structured-filters label { min-width:0; }
 .structured-assessment .structured-filters details { padding-top:8px; }
 .structured-assessment .structured-filter-fields { grid-template-columns:minmax(0,1fr); }
 .structured-assessment .structured-result { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
 .structured-assessment .structured-result strong { display:block; margin:4px 0 0; }
 .structured-assessment .formal-assessment { min-width:0; table-layout:auto; }
 .structured-assessment .formal-assessment tbody tr td:nth-child(n) { grid-column:auto; }
 .structured-assessment .formal-assessment tbody tr td:is(:nth-child(1),:nth-child(2),:nth-child(3),:nth-child(8)) { grid-column:1 / -1; }
 .structured-assessment .formal-assessment tbody tr td:nth-child(n)::before { content:attr(data-label); }
 .structured-assessment .formal-assessment tbody tr td:is(:nth-child(1),:nth-child(2),:nth-child(8))::before { display:none; }
 .structured-assessment .formal-assessment tbody tr td:nth-child(3) { border-bottom:1px solid var(--line); padding-bottom:16px; }
 .structured-assessment .formal-assessment tbody tr td:nth-child(8) { padding-bottom:16px; }
 .structured-assessment .formal-assessment .row-edit { width:100%; }
 .structured-assessment .structured-dialog { width:calc(100% - 20px); }
 .structured-assessment .structured-child-table { display:block; }
 .structured-assessment .structured-child-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .structured-assessment .structured-child-table tbody { display:block; }
 .structured-assessment .structured-child-table tr { display:block; padding:14px 0; border-block-end:1px solid var(--line); }
 .structured-assessment .structured-child-table td:nth-child(n) { display:block; width:100%; border:0; padding:6px 0; }
 .structured-assessment .structured-child-table td:nth-child(1) strong { font-size:16px; }
 .structured-assessment .structured-child-table td:nth-child(2)::before { content:'得分：'; }
 .structured-assessment .structured-child-table button { width:100%; }
 .structured-assessment .structured-photo-grid { grid-template-columns:minmax(0,1fr); }
 .structured-assessment .structured-photo-grid img { height:auto; max-height:360px; }
 .structured-assessment .structured-option { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .structured-assessment .structured-option label:first-child { grid-column:1 / -1; }
 .structured-assessment .structured-option button { grid-column:1 / -1; }
 .structured-assessment .config-selector .editor-field { flex-basis:100%; min-width:0; }
 .structured-assessment .config-selector button { flex:1; }
 .structured-assessment :is(input:not([type=checkbox]),select,textarea) { font-size:16px; }
 .structured-assessment #row-form .editor-actions { position:static; margin:20px 0; padding:12px 0; }
 .structured-assessment #criterion-form .editor-actions { position:static; margin:20px 0; padding:12px 0; }
 .structured-assessment .evidence-area-options .editor-check { font-size:14px; }
}
@media print {
 .structured-assessment .structured-intro button, .structured-assessment #assessment-scheme { display:none; }
 .structured-assessment .formal-assessment { min-width:0; width:100%; }
 .structured-assessment .formal-assessment th:nth-child(n) { width:auto; }
}
.structured-assessment .assessment-score-button { width:100%; min-height:44px; padding:0; border:0; background:transparent; color:var(--ink); font:inherit; text-align:left; cursor:pointer; }
.structured-assessment .assessment-score-button:hover { color:var(--accent); }
.structured-assessment .assessment-score-button strong { text-decoration:underline; text-underline-offset:4px; text-decoration-color:var(--line); }
.structured-assessment .assessment-score-button small { display:block; }
/* Keep the table near the top; spacing changes apply only to this page. */
.structured-assessment .catalog-workspace { padding-top:24px; }
.structured-assessment .structured-intro { padding-bottom:8px; }
.structured-assessment .structured-intro h1 { margin:4px 0 4px; font-size:28px; }
.structured-assessment .structured-intro .venue-kicker { font-size:12px; }
.structured-assessment main > #assessment-table { margin-top:14px; }
.structured-assessment .editor-bar { min-height:54px; margin:14px 0; padding:4px 12px; border-radius:8px; }
.structured-assessment .editor-bar .button-primary { min-height:44px; padding:9px 16px; font-size:13px; }
.structured-assessment .structured-filters { margin:12px 0; gap:10px 20px; }
.structured-assessment .structured-filters label { gap:4px; }
.structured-assessment .structured-filters details { padding-top:18px; }
.structured-assessment #score-explanation { margin:10px 0 12px; font-size:12px; line-height:1.7; max-width:100%; }
.structured-assessment .structured-dialog textarea { min-height:90px; }
.structured-assessment .structured-dialog #row-source { min-height:72px; }
@media screen and (max-width:900px) {
 .structured-assessment .catalog-workspace { padding-top:16px; }
 .structured-assessment .structured-intro { gap:12px; }
 .structured-assessment .structured-intro h1 { font-size:27px; }
 .structured-assessment .editor-bar { min-height:0; margin:0; padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px)); border-radius:0; }
 .structured-assessment .structured-filters details { padding-top:4px; }
 .structured-assessment .structured-dialog textarea { min-height:110px; }
}
@media screen and (min-width:901px) {
 .structured-assessment .editor-bar { margin-block:8px; }
 .structured-assessment main > #assessment-table { margin-top:10px; }
 .structured-assessment .structured-filters > label { flex-direction:row; align-items:center; gap:12px; }
 .structured-assessment .structured-filters > label select { width:220px; }
 .structured-assessment .structured-filters details { padding-top:0; }
}
@media (min-width:901px) {
 .structured-assessment .formal-assessment { min-width:900px; }
 .structured-assessment .formal-assessment th:nth-child(1) { width:110px; }
 .structured-assessment .formal-assessment th:nth-child(2) { width:140px; }
 .structured-assessment .formal-assessment th:nth-child(3) { width:auto; }
 .structured-assessment .formal-assessment th:nth-child(4) { width:135px; }
 .structured-assessment .formal-assessment th:nth-child(5) { width:55px; }
 .structured-assessment .formal-assessment th:nth-child(6) { width:60px; }
 .structured-assessment .formal-assessment th:nth-child(7) { width:80px; }
 .structured-assessment .formal-assessment th:nth-child(8) { width:110px; }
 .structured-assessment .formal-assessment :is(th,td):nth-child(2) { left:110px; }
}

/* One hotel per row. Criteria and scoring rules are shared column headers. */
.structured-assessment .assessment-matrix-wrap {
  max-width:100%; width:100%; overflow:auto; overscroll-behavior-x:contain;
  max-height:74vh; max-height:74dvh; border:1px solid var(--line); border-radius:10px;
  background:var(--surface); scrollbar-gutter:stable;
}
.structured-assessment .assessment-matrix-wrap:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.structured-assessment .assessment-table.assessment-matrix.formal-assessment {
  --matrix-cell-width:152px; --matrix-supplier-width:166px; --matrix-summary-width:184px; --matrix-group-height:54px;
  display:table; table-layout:fixed; border-collapse:separate; border-spacing:0;
  width:calc(var(--matrix-supplier-width) + var(--matrix-summary-width) + var(--matrix-columns,28) * var(--matrix-cell-width));
  min-width:100%; max-width:none; margin:0; font-size:13px; line-height:1.65;
}
.structured-assessment .assessment-matrix.formal-assessment thead {
  display:table-header-group; position:static; width:auto; height:auto; margin:0; padding:0;
  clip-path:none; overflow:visible; white-space:normal;
}
.structured-assessment .assessment-matrix.formal-assessment tbody { display:table-row-group; }
.structured-assessment .assessment-matrix.formal-assessment tr {
  display:table-row; margin:0; padding:0; border:0; border-radius:0; overflow:visible; background:var(--surface);
}
.structured-assessment .assessment-table.assessment-matrix.formal-assessment :is(th,td):nth-child(n) {
  display:table-cell; width:var(--matrix-cell-width); min-width:var(--matrix-cell-width); max-width:none;
  left:auto; right:auto; margin:0; padding:12px; border:0; border-right:1px solid var(--line);
  border-bottom:1px solid var(--line); border-radius:0; box-shadow:none; background:var(--surface);
  text-align:left; vertical-align:middle; white-space:normal; font-size:13px; color:var(--ink); overflow-wrap:anywhere;
}
.structured-assessment .assessment-table.assessment-matrix.formal-assessment tbody tr td:nth-child(n) {
  position:static; grid-column:auto; padding:12px; border-right:1px solid var(--line); border-bottom:1px solid var(--line);
}
.structured-assessment .assessment-matrix.formal-assessment tbody tr td:nth-child(n)::before { display:none; content:none; }
.structured-assessment .assessment-table.assessment-matrix.formal-assessment thead th:nth-child(n) {
  position:sticky; top:0; z-index:4; background:var(--accent-soft); vertical-align:top; font-weight:500;
}
.structured-assessment .assessment-table.assessment-matrix.formal-assessment .matrix-group-head th:nth-child(n) {
  width:auto; min-width:0; padding:7px 12px; vertical-align:middle;
}
.structured-assessment .assessment-table.assessment-matrix.formal-assessment .matrix-leaf-head th:nth-child(n) { top:var(--matrix-group-height); }
.structured-assessment .assessment-table.assessment-matrix.formal-assessment .matrix-supplier:nth-child(n) {
  width:var(--matrix-supplier-width); min-width:var(--matrix-supplier-width); max-width:var(--matrix-supplier-width);
  position:sticky; left:0; z-index:3; background:var(--surface); box-shadow:1px 0 var(--line);
}
.structured-assessment .assessment-table.assessment-matrix.formal-assessment thead .matrix-supplier:nth-child(n) { z-index:7; background:var(--accent-soft); }
.structured-assessment .assessment-table.assessment-matrix.formal-assessment tbody .matrix-supplier:nth-child(n) { top:auto; }
.structured-assessment .assessment-table.assessment-matrix.formal-assessment .matrix-summary:nth-child(n) {
  width:var(--matrix-summary-width); min-width:var(--matrix-summary-width); border-right:1px solid var(--line); background:#faf9fc;
}
.structured-assessment .assessment-table.assessment-matrix.formal-assessment thead .matrix-summary:nth-child(n) { background:var(--accent-soft); }
.structured-assessment .assessment-matrix.formal-assessment tbody tr:last-child :is(td,th) { border-bottom:0; }
.structured-assessment .assessment-matrix.formal-assessment tbody tr:hover td { background:#fcf9fc; }
.structured-assessment .assessment-matrix.formal-assessment .matrix-supplier strong { display:block; font-size:14px; font-weight:550; color:var(--ink); line-height:1.6; }
.structured-assessment .assessment-matrix.formal-assessment .matrix-supplier small { display:block; margin:6px 0; font-size:11px; line-height:1.65; color:var(--muted); }
.structured-assessment .assessment-matrix.formal-assessment [data-context-supplier] { display:block; min-height:44px; width:100%; padding:6px 0; border:0; background:transparent; color:var(--ink); font:inherit; font-size:14px; font-weight:550; line-height:1.65; text-align:left; cursor:pointer; text-decoration:underline; text-decoration-color:var(--line); text-underline-offset:4px; }
.structured-assessment .assessment-matrix.formal-assessment [data-context-supplier]:hover { color:var(--accent); text-decoration-color:var(--accent); }
.structured-assessment .assessment-matrix.formal-assessment [data-config-item] {
  display:block; width:100%; min-height:44px; padding:3px 0; border:0; background:transparent;
  font:inherit; color:var(--ink); text-align:left; line-height:1.65; cursor:pointer;
}
.structured-assessment .assessment-matrix.formal-assessment [data-config-item]:hover { color:var(--accent); }
.structured-assessment .assessment-matrix.formal-assessment [data-config-item] small { margin:4px 0 0; font-size:11px; color:var(--muted); font-weight:400; }
.structured-assessment .assessment-matrix.formal-assessment .matrix-score-button {
  width:100%; min-height:56px; display:flex; align-items:flex-start; justify-content:center; flex-direction:column;
  gap:3px; padding:2px 0; border:0; background:transparent; font:inherit; color:var(--ink); text-align:left;
}
.structured-assessment .assessment-matrix.formal-assessment .matrix-score-button strong { font-size:16px; font-weight:550; text-decoration-color:var(--line); }
.structured-assessment .assessment-matrix.formal-assessment .matrix-score-button small { display:block; margin:0; font-size:11px; color:var(--muted); font-weight:400; }
.structured-assessment .assessment-matrix.formal-assessment .matrix-score-button:hover strong { color:var(--accent); text-decoration-color:var(--accent); }
.structured-assessment .assessment-matrix.formal-assessment .matrix-summary strong { display:block; font-size:16px; font-weight:550; }
.structured-assessment .assessment-matrix.formal-assessment .matrix-summary small { margin:4px 0 0; font-size:11px; line-height:1.7; }
.structured-assessment .matrix-manual-result { display:block; margin-top:10px; padding-top:10px; border-top:1px solid var(--line); font-size:13px; font-weight:400; }
.structured-assessment .structured-filters > label:has(#assess-group) select { width:260px; }
@media screen and (max-width:900px) {
  .structured-assessment .catalog-sidebar { padding:8px 12px; gap:0 8px; }
  .structured-assessment .catalog-brand { gap:8px; height:44px; min-height:44px; font-size:14px; }
  .structured-assessment .catalog-brand svg { width:28px; height:24px; }
  .structured-assessment .catalog-nav { margin:0; padding-bottom:0; gap:6px; }
  .structured-assessment .catalog-nav a { min-height:44px; padding:8px 12px; font-size:13px; }
  .structured-assessment .catalog-workspace { padding-top:12px; }
  .structured-assessment .structured-intro { gap:8px; padding-bottom:0; }
  .structured-assessment .structured-intro h1 { font-size:24px; line-height:1.3; margin:2px 0 4px; }
  .structured-assessment .structured-intro .venue-kicker { font-size:11px; line-height:1.5; }
  .structured-assessment .structured-intro p { font-size:13px; line-height:1.6; }
  .structured-assessment .structured-intro > button { min-height:44px; padding-block:8px; }
  .structured-assessment main > #assessment-table { margin-top:10px; }
  .structured-assessment .assessment-matrix-wrap { max-height:65vh; max-height:65dvh; border:1px solid var(--line); border-radius:8px; overflow:auto; }
  .structured-assessment .assessment-table.assessment-matrix.formal-assessment { --matrix-supplier-width:126px; --matrix-cell-width:140px; --matrix-summary-width:168px; }
  .structured-assessment .assessment-table.assessment-matrix.formal-assessment :is(th,td):nth-child(n),
  .structured-assessment .assessment-table.assessment-matrix.formal-assessment tbody tr td:nth-child(n) { padding:10px; font-size:12px; }
  .structured-assessment .assessment-matrix.formal-assessment .matrix-supplier strong { font-size:13px; }
  .structured-assessment .assessment-matrix.formal-assessment .matrix-score-button strong { font-size:15px; }
  .structured-assessment .structured-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:10px 0; }
  .structured-assessment .structured-filters > label { display:grid; grid-template-columns:minmax(0,1fr); gap:4px; font-size:12px; line-height:1.5; }
  .structured-assessment .structured-filters > label select,
  .structured-assessment .structured-filters > label:has(#assess-group) select { width:100%; min-height:44px; padding:8px; font-size:16px; }
}
@media print {
  .structured-assessment .assessment-matrix-wrap { overflow:auto; max-height:none; }
  .structured-assessment .assessment-matrix.formal-assessment [data-config-item],
  .structured-assessment .assessment-matrix.formal-assessment .matrix-score-button { color:var(--ink); }
  .structured-assessment .assessment-matrix.formal-assessment [data-context-supplier] { display:block; min-height:0; padding:0; border:0; background:transparent; color:inherit; text-decoration:none; cursor:default; }
}
