:root {
  color-scheme: light;
  --paper: #f3f1ea;
  --paper-2: #e8e5dc;
  --ink: #162328;
  --muted: #68777a;
  --line: #d4d6ce;
  --orange: #ff6a36;
  --orange-light: #ffede5;
  --green: #245d4a;
  --green-light: #e1eee5;
  --blue: #dceaf0;
  --white: #fffef9;
  --red: #a74333;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 14px; line-height: 1.5; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0,1fr); }
.sidebar { min-height: 100vh; position: sticky; top: 0; height: 100vh; padding: 28px 16px 18px; display: flex; flex-direction: column; background: #15252a; color: #e7ede7; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 0 10px 31px; border-bottom: 1px solid #324348; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; color: #15252a; background: var(--orange); border-radius: 50%; font-family: var(--serif); font-size: 30px; line-height: 1; }
.brand-mark span { color: var(--white); }
.brand-word { font-size: 18px; letter-spacing: -.9px; font-weight: 800; line-height: 1.05; }
.brand-word > span { color: var(--orange); }
.brand-word small { display: block; margin-top: 6px; color: #99aaa7; letter-spacing: 1.6px; font-size: 8px; font-weight: 700; }
.nav-caption { margin: 29px 12px 9px; color: #86999a; font: 10px var(--mono); letter-spacing: 1px; }
.sidebar nav { display: grid; gap: 4px; }
.nav-link { width: 100%; min-height: 44px; border: 0; border-radius: 7px; background: transparent; color: #b8c4c0; text-align: left; display: flex; align-items: center; gap: 11px; padding: 0 12px; font-size: 13px; transition: background .18s, color .18s; }
.nav-link:hover { background: #20343a; color: white; }
.nav-link.active { background: #263b40; color: white; box-shadow: inset 3px 0 var(--orange); }
.nav-link.active .nav-glyph { color: var(--orange); }
.nav-glyph { display: inline-grid; width: 18px; place-items: center; font-size: 20px; color: #87a09e; line-height: 1; }
.nav-badge { margin-left: auto; min-width: 22px; height: 20px; display: grid; place-items: center; border-radius: 99px; padding: 0 5px; background: #42585b; color: white; font-size: 10px; }
.sidebar-bottom { margin-top: auto; }
.source-mini { margin: 18px 6px 11px; border-top: 1px solid #324348; padding: 18px 8px 5px; display: flex; align-items: center; gap: 10px; color: #99aaa7; font-size: 10px; line-height: 1.4; }
.source-mini i, .session-chip i, .live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7abc89; box-shadow: 0 0 0 3px #315143; }
.source-mini strong { color: #d9e2dc; font-weight: 600; }
.sidebar-note { margin: 0 14px; color: #7c9291; font-size: 10px; line-height: 1.6; }
.app-area { min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 62px; padding: 0 clamp(22px,4vw,56px); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.crumb { display: flex; gap: 10px; align-items: center; color: var(--muted); font: 10px var(--mono); letter-spacing: .6px; }
.crumb strong { color: var(--ink); font: 12px var(--sans); font-weight: 650; letter-spacing: 0; }
.crumb-slash { color: #c1c5bd; }
.top-right { display: flex; gap: 12px; align-items: center; }
.session-chip { display: flex; align-items: center; gap: 9px; color: #536568; font-size: 11px; }
.session-chip i { width: 6px; height: 6px; box-shadow: none; }
.icon-button { width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-family: var(--serif); }
main { width: 100%; max-width: 1440px; flex: 1; margin: 0 auto; padding: 36px clamp(22px,4vw,56px) 50px; }
.view { display: none; animation: appear .25s ease both; }
.view.active { display: block; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { color: #718083; font: 10px var(--mono); letter-spacing: 1.05px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 15px; font: 500 clamp(36px,5vw,61px)/1.02 var(--serif); letter-spacing: -2.5px; }
h1 em { color: #62777a; font-weight: 400; }
h2 { margin: 7px 0 10px; font: 500 27px/1.14 var(--serif); letter-spacing: -.7px; }
h3 { margin-bottom: 7px; font-size: 15px; }
.lead { max-width: 580px; margin-bottom: 26px; color: #637477; font-size: 15px; line-height: 1.65; }
.lead.compact { margin: 8px 0 0; font-size: 13px; }
.home-grid { min-height: 400px; display: grid; grid-template-columns: minmax(0,1.4fr) minmax(295px,.8fr); gap: clamp(30px,7vw,100px); align-items: center; }
.home-main { padding: 5px 0 0; }
.home-main .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 21px; }
.live-dot { width: 7px; height: 7px; box-shadow: none; }
.home-main h1 { max-width: 720px; }
.home-main .lead { max-width: 525px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 23px 0 29px; }
.button { min-height: 43px; display: inline-flex; justify-content: center; align-items: center; gap: 13px; padding: 0 17px; border-radius: 4px; text-decoration: none; font-size: 12px; font-weight: 700; transition: background .18s, transform .18s; }
.button:hover { transform: translateY(-1px); }
.button-dark { border: 1px solid var(--ink); background: var(--ink); color: white; }
.button-dark:hover { background: #274247; }
.button-dark span { color: var(--orange); font-size: 16px; }
.button-quiet { border: 1px solid transparent; background: transparent; color: #5e7071; }
.button-quiet:hover { background: #e6e6dd; }
.button-outline { min-height: 39px; border: 1px solid #adb8b5; background: transparent; color: var(--ink); }
.button-outline:hover { background: #e8ede8; }
.button-danger { min-height: 39px; border: 1px solid #d5a79e; background: #fff7f4; color: #913c2f; }
.button-danger:hover { background: #ffe9e2; }
.source-strip { display: flex; gap: 12px; align-items: center; max-width: 620px; padding-top: 17px; border-top: 1px solid var(--line); }
.source-logo { width: 38px; height: 31px; display: grid; place-items: center; color: white; background: #315f6e; font: 11px var(--mono); font-weight: bold; letter-spacing: 1px; }
.source-strip p { margin: 0; color: #768285; font-size: 10px; line-height: 1.55; }
.source-strip strong { color: #405255; font-weight: 600; }
.source-strip a { margin-left: auto; color: #4b6568; font-size: 10px; white-space: nowrap; }
.home-aside { position: relative; padding: 21px 22px 20px; background: var(--white); border: 1px solid #dcddd5; box-shadow: 9px 9px 0 #e7e3d8; }
.home-aside::before { content: ""; position: absolute; top: -6px; left: 16px; width: 42px; height: 10px; transform: rotate(-2deg); background: #e9c27c; opacity: .8; }
.aside-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #e5e6df; color: #748183; font: 9px var(--mono); letter-spacing: .8px; }
.fresh-pill { padding: 4px 7px; background: #ecf2e6; color: #4a704f; font-size: 8px; }
.fresh-pill.error { background: #fff0e9; color: #9d4b37; }
.live-card { min-height: 157px; padding: 17px 0 11px; }
.live-card .skeleton-line { height: 10px; width: 76%; margin: 0 0 10px; background: #e8ebe5; border-radius: 2px; animation: pulse 1s ease-in-out infinite alternate; }
.live-card .skeleton-line.wide { width: 95%; height: 14px; }
.live-card .skeleton-line.short { width: 48%; }
.loading-line { padding-top: 5px; color: #718183; font-size: 11px; }
@keyframes pulse { to { opacity: .5; } }
.live-kicker { margin-bottom: 9px; color: #789096; font: 9px var(--mono); letter-spacing: .6px; }
.live-title { margin-bottom: 13px; font: 500 21px/1.18 var(--serif); }
.live-meta { display: grid; gap: 5px; color: #6c7a7b; font-size: 10px; }
.live-meta strong { color: #334a4d; font-weight: 650; }
.live-deadline { display: inline-flex; align-items: center; gap: 8px; padding: 7px 9px; background: #f8f0df; color: #755d31; font: 10px var(--mono); }
.as-of { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid #e5e6df; color: #859194; font-size: 9px; }
.as-of span:first-child { color: #4d6467; font: 10px var(--mono); }
.text-link { display: inline-flex; align-items: center; gap: 9px; border: 0; background: none; color: #315c61; padding: 0; font-size: 11px; font-weight: 700; text-decoration: none; }
.text-link:hover { color: #ba4828; }
.home-annotation { display: flex; gap: 9px; margin-top: 18px; padding: 12px; background: #f3f3ee; color: #718083; }
.home-annotation p { margin: 0; font-size: 10px; line-height: 1.5; }
.annotation-mark { color: var(--orange); font: 18px var(--serif); }
.home-lower { margin-top: 46px; padding-top: 25px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 17px; }
.section-heading h2 { margin-bottom: 0; }
.small-status { color: #8a9695; font-size: 10px; }
.step-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.step-card { min-height: 145px; padding: 16px 17px 14px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); background: transparent; text-align: left; transition: border-color .18s, background .18s; }
.step-card:hover { border-color: #7e9a9a; background: #f9f8f2; }
.step-no { color: var(--orange); font: 11px var(--mono); }
.step-card strong { margin: 9px 0 4px; font: 500 18px var(--serif); }
.step-card span:not(.step-no) { color: #7a898a; font-size: 10px; }
.step-card b { margin-top: auto; padding-top: 11px; color: #456266; font-size: 10px; }
.page-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-title-row h1 { margin: 10px 0 0; font-size: clamp(36px,4vw,51px); letter-spacing: -1.8px; }
.api-mark { display: grid; gap: 3px; padding: 11px 14px; border-left: 2px solid var(--orange); }
.api-mark span { color: #487450; font: 9px var(--mono); letter-spacing: 1px; }
.api-mark strong { font-family: var(--serif); font-size: 16px; font-weight: 500; }
.api-mark small { color: #79898a; font-size: 9px; }
.search-form { display: grid; grid-template-columns: 1.7fr 1fr 1.2fr .8fr; gap: 13px; padding: 19px; border: 1px solid var(--line); background: #eeeee7; }
.filter-field { min-width: 0; display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; }
.filter-field > span, .filter-field legend { color: #52666a; font-size: 10px; font-weight: 700; }
.filter-field small { color: #869294; font-size: 9px; line-height: 1.45; }
.filter-field input, .filter-field textarea, .filter-field select, .checklist-select-wrap select, .add-check-form input { width: 100%; border: 1px solid #d2d7d1; border-radius: 2px; background: var(--white); padding: 10px 11px; font-size: 12px; outline-offset: 0; }
.filter-field input::placeholder, .filter-field textarea::placeholder, .add-check-form input::placeholder { color: #a3acad; }
.search-submit { grid-column: 1/-1; margin-top: 2px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.search-submit > div { color: #758486; font-size: 10px; }
.search-glyph { color: var(--orange); font-size: 18px; }
.results-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 31px 0 13px; }
.results-toolbar h2 { margin: 5px 0 0; font-size: 23px; }
.freshness { color: #718183; font: 10px var(--mono); }
.results-list { display: grid; gap: 9px; }
.result-card { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 170px; gap: 20px; padding: 17px 18px; border: 1px solid var(--line); background: var(--white); }
.result-card:hover { border-color: #9baead; }
.result-card h3 { max-width: 850px; margin: 6px 0 7px; font: 500 19px/1.25 var(--serif); }
.result-overline { display: flex; flex-wrap: wrap; gap: 7px 12px; color: #788688; font: 9px var(--mono); }
.result-org { margin-bottom: 10px; color: #596b6e; font-size: 11px; }
.result-fields { display: flex; flex-wrap: wrap; gap: 5px; }
.signal-chip { padding: 4px 7px; background: #e8f0e8; color: #476a50; font-size: 9px; }
.signal-chip.off { background: #f0efe8; color: #85847c; }
.signal-chip.unknown { background: #f7eee0; color: #886b38; }
.signal-chip.info { background: #e9eef2; color: #526976; }
.result-side { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; border-left: 1px solid #e5e7e0; padding-left: 17px; }
.match-label { color: #4a6b53; font-size: 10px; font-weight: 700; }
.match-label.low { color: #7a7d75; }
.result-deadline { display: grid; gap: 3px; color: #718183; font-size: 9px; }
.result-deadline strong { color: #243d42; font: 11px var(--mono); }
.result-actions { display: flex; gap: 10px; align-items: center; }
.tiny-button { min-height: 30px; padding: 0 9px; border: 1px solid #cbd2ce; border-radius: 2px; background: transparent; color: #436267; font-size: 9px; font-weight: 700; }
.tiny-button:hover { border-color: #789291; background: #f2f6f0; }
.tiny-button.saved { color: #6e7c58; background: #edf1df; }
.notice-banner { margin: 12px 0; padding: 11px 13px; border-left: 3px solid var(--orange); background: #fff2eb; color: #875340; font-size: 11px; }
.notice-banner.error { border-color: var(--red); background: #fff0ec; color: #8e3d31; }
.hidden { display: none !important; }
.load-more-wrap { display: flex; align-items: center; gap: 12px; padding: 18px 0; }
.load-more-wrap span { color: #899495; font-size: 10px; }
.legal-note { margin: 6px 0 0; max-width: 850px; color: #849091; font-size: 10px; line-height: 1.6; }
.profile-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(260px,.7fr); gap: 34px; align-items: start; }
.profile-fields { display: grid; gap: 21px; padding: 21px; border: 1px solid var(--line); background: var(--white); }
.profile-fields .filter-field { gap: 8px; }
.profile-fields .filter-field > span, .profile-fields .filter-field legend { font-size: 11px; }
.profile-fields textarea { resize: vertical; line-height: 1.6; }
.profile-fields .filter-field small { font-size: 10px; }
.province-picker legend { padding: 0; margin-bottom: 10px; }
.province-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 14px; }
.province-option { display: flex; align-items: center; gap: 7px; color: #52666a; font-size: 10px; }
.province-option input { width: 15px; height: 15px; accent-color: var(--green); }
.profile-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-actions { display: flex; gap: 15px; align-items: center; }
.form-actions [role=status] { color: #3e7251; font-size: 10px; }
.profile-explainer { padding: 21px; background: #e7ebe4; border-top: 3px solid var(--green); }
.profile-explainer h2 { margin: 10px 0 17px; font-size: 28px; }
.explain-row { display: grid; grid-template-columns: 29px 1fr; gap: 9px; padding: 12px 0; border-top: 1px solid #ccd5ce; }
.explain-row b { color: #68847b; font: 10px var(--mono); }
.explain-row p { margin: 0; color: #6b7a78; font-size: 10px; line-height: 1.6; }
.explain-row strong { color: #304d4b; }
.warning-card { margin-top: 13px; padding: 11px; background: #f6ebd9; color: #816948; font-size: 10px; line-height: 1.5; }
.profile-stamp { padding: 9px 13px; border: 1px solid #c8cdc4; color: #7e8d89; font: 9px/1.8 var(--mono); letter-spacing: .7px; transform: rotate(2deg); }
.profile-stamp strong { color: #b94f32; font-size: 13px; }
.empty-state { min-height: 150px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; padding: 28px; border: 1px dashed #c8d0ca; background: rgba(255,254,249,.55); color: #81908f; text-align: center; }
.empty-state strong { color: #405456; font: 500 19px var(--serif); }
.empty-state span { max-width: 460px; font-size: 10px; line-height: 1.6; }
.empty-mark { color: var(--orange); font: 28px var(--serif); }
.empty-state .button { margin-top: 12px; }
.detail-back { display: flex; justify-content: space-between; align-items: center; margin: 0 0 21px; }
.detail-back .eyebrow { letter-spacing: 1px; }
.detail-head { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 30px; align-items: start; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.detail-head h1 { margin: 8px 0 12px; font-size: clamp(30px,4vw,47px); letter-spacing: -1.6px; }
.detail-description { max-width: 900px; margin-bottom: 14px; color: #6d7d7e; font-size: 12px; line-height: 1.6; }
.detail-side-caption { margin: 9px 0 12px; }
.source-disclosure { margin-top: 13px; }
.live-notice-deadline-row { margin-top: 12px; }
.live-notice-action-row { margin-top: 11px; }
.detail-side { padding: 15px; background: #e7ebe4; }
.detail-side .button { width: 100%; margin-top: 7px; }
.detail-meta-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin: 17px 0 25px; background: var(--line); border: 1px solid var(--line); }
.meta-cell { min-height: 76px; padding: 13px; background: #f9f8f1; }
.meta-cell span { display: block; margin-bottom: 6px; color: #899394; font: 9px var(--mono); text-transform: uppercase; letter-spacing: .5px; }
.meta-cell strong { color: #3c5356; font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.detail-section { margin: 22px 0; }
.detail-section h2 { margin: 0 0 12px; font-size: 22px; }
.match-breakdown { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.match-signal { display: flex; gap: 9px; align-items: flex-start; padding: 10px 11px; border: 1px solid #d8ddd6; background: #fbfaf5; color: #657477; font-size: 10px; }
.match-signal i { width: 8px; height: 8px; flex: none; margin-top: 4px; border-radius: 50%; background: #93a69a; }
.match-signal.off i { background: #d7a36e; }
.match-signal.unknown i { background: #b7b6a7; }
.match-signal.info i { background: #7893a2; }
.match-warning { margin-top: 10px; padding: 10px 12px; background: #f7efde; color: #7c6845; font-size: 10px; }
.source-text { max-height: 400px; overflow: auto; padding: 15px; border: 1px solid var(--line); background: var(--white); color: #647377; white-space: pre-wrap; font: 10px/1.7 var(--mono); }
.detail-source-actions { display: flex; gap: 9px; align-items: center; margin-top: 12px; }
.large-count { color: #32515a; font: 45px/1 var(--serif); text-align: right; }
.large-count small { display: block; color: #879394; font: 10px var(--sans); text-align: right; }
.checklist-number { padding: 10px 12px; background: #e2ebe2; color: #416549; font: 25px/1 var(--serif); text-align: center; }
.checklist-number small { display: block; margin-top: 4px; color: #788d7c; font: 9px var(--sans); }
.checklist-select-wrap { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 15px; align-items: center; max-width: 800px; }
.checklist-select-wrap label, .add-check-form label { color: #52666a; font-size: 10px; font-weight: 700; }
.checklist-context { margin: 14px 0 18px; color: #78898a; font-size: 10px; }
.add-check-form { max-width: 800px; margin: 21px 0 16px; }
.add-check-form > div { display: flex; gap: 8px; margin-top: 6px; }
.add-check-form input { flex: 1; }
.add-check-form small { color: #909998; font-size: 9px; }
.checklist-items { max-width: 800px; display: grid; gap: 7px; }
.check-item { display: grid; grid-template-columns: 25px minmax(0,1fr) 34px; gap: 11px; align-items: center; padding: 12px 13px; border: 1px solid var(--line); background: var(--white); }
.check-item input { width: 16px; height: 16px; accent-color: var(--green); }
.check-item span { color: #40585a; font-size: 11px; }
.check-item.done span { color: #8c9996; text-decoration: line-through; }
.check-item button { border: 0; background: transparent; color: #a67368; font-size: 16px; }
.check-item .check-item-system { color: #96a297; text-align: center; }
.data-layout { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.data-card { padding: 21px; border: 1px solid var(--line); background: var(--white); }
.data-card h2 { margin: 9px 0 11px; }
.data-card p { max-width: 490px; color: #718183; font-size: 11px; line-height: 1.65; }
.status-list { margin: 18px 0; border-top: 1px solid #e2e5dd; }
.status-list div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid #e2e5dd; }
.status-list dt { color: #899596; font: 9px var(--mono); }
.status-list dd { margin: 0; color: #4d666a; font-size: 10px; overflow-wrap: anywhere; }
.inline-button { width: max-content; min-height: 34px; font-size: 10px; }
.privacy-list { margin: 15px 0; padding-left: 18px; color: #718183; font-size: 10px; line-height: 1.7; }
.privacy-list li { margin: 5px 0; }
.data-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 7px; }
#delete-message { color: #8d4035; font-size: 10px; }
.privacy-emblem { width: 57px; height: 57px; display: grid; place-content: center; border: 1px solid #bdc8bf; border-radius: 50%; color: #476d58; font: 22px var(--serif); text-align: center; }
.privacy-emblem span { color: #7b8d86; font: 7px var(--mono); letter-spacing: .6px; }
.wide-note { max-width: 800px; margin-top: 19px; }
.footer { min-height: 49px; padding: 12px clamp(22px,4vw,56px); display: flex; justify-content: space-between; gap: 15px; align-items: center; border-top: 1px solid var(--line); color: #849192; font: 9px var(--mono); letter-spacing: .2px; }
.footer a { color: #5f797b; text-decoration: none; }
.toast { position: fixed; z-index: 20; right: 23px; bottom: 23px; max-width: 360px; padding: 12px 16px; transform: translateY(12px); opacity: 0; pointer-events: none; background: #20363b; color: white; box-shadow: 0 5px 20px #15252a33; font-size: 11px; transition: opacity .2s, transform .2s; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: #8b4234; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1060px) {
  .shell { grid-template-columns: 210px minmax(0,1fr); }
  .search-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-wide { grid-column: span 2; }
  .home-grid { gap: 32px; }
  .result-card { grid-template-columns: minmax(0,1fr) 145px; }
}
@media (max-width: 780px) {
  .shell { display: block; padding-bottom: 64px; }
  .sidebar { position: fixed; z-index: 12; left: 0; right: 0; top: auto; bottom: 0; width: 100%; height: 61px; min-height: 0; padding: 0 7px env(safe-area-inset-bottom); flex-direction: row; align-items: center; background: #15252a; box-shadow: 0 -5px 20px #17272c22; }
  .brand, .nav-caption, .sidebar-bottom { display: none; }
  .sidebar nav { width: 100%; display: flex; justify-content: space-around; gap: 0; }
  .nav-link { width: auto; min-width: 54px; min-height: 52px; padding: 4px 7px; flex-direction: column; justify-content: center; gap: 1px; border-radius: 4px; font-size: 8px; }
  .nav-link.active { box-shadow: inset 0 3px var(--orange); }
  .nav-glyph { width: 20px; font-size: 19px; }
  .nav-badge { position: absolute; margin: -23px 0 0 27px; min-width: 16px; height: 15px; font-size: 8px; }
  .topbar { height: 52px; padding: 0 17px; }
  main { padding: 25px 17px 40px; }
  .home-grid { grid-template-columns: 1fr; gap: 29px; }
  .home-main { padding-top: 4px; }
  .home-main h1 { font-size: clamp(39px,10vw,56px); }
  .home-aside { max-width: 560px; }
  .home-lower { margin-top: 35px; }
  .step-cards { grid-template-columns: 1fr; }
  .step-card { min-height: 122px; }
  .footer { padding: 12px 17px; flex-wrap: wrap; }
  .profile-layout { grid-template-columns: 1fr; gap: 14px; }
  .detail-head { grid-template-columns: 1fr; }
  .detail-side { max-width: none; }
  .detail-side .button { width: auto; }
  .detail-meta-grid { grid-template-columns: repeat(2,1fr); }
  .data-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .session-chip { font-size: 9px; }
  .page-title-row { align-items: flex-start; flex-direction: column; }
  .page-title-row h1 { font-size: 39px; }
  .api-mark, .profile-stamp, .large-count, .checklist-number { display: none; }
  .search-form { grid-template-columns: 1fr; padding: 14px; }
  .filter-wide { grid-column: auto; }
  .search-submit { align-items: flex-start; flex-direction: column; }
  .result-card { grid-template-columns: 1fr; gap: 13px; }
  .result-side { border-left: 0; border-top: 1px solid #e5e7e0; padding: 11px 0 0; gap: 9px; }
  .result-actions { width: 100%; justify-content: space-between; }
  .profile-fields { padding: 15px; }
  .profile-pair { grid-template-columns: 1fr; }
  .province-grid { grid-template-columns: 1fr 1fr; }
  .form-actions { align-items: flex-start; flex-direction: column; }
  .match-breakdown { grid-template-columns: 1fr; }
  .checklist-select-wrap { grid-template-columns: 1fr; gap: 7px; }
  .detail-meta-grid { grid-template-columns: 1fr 1fr; }
  .footer span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
