
:root {
  --as-allowed: #065f46; --as-allowed-bg: #d1fae5;
  --as-dismissed: #991b1b; --as-dismissed-bg: #fee2e2;
  --as-split: #92400e; --as-split-bg: #fef3c7;
  --as-other: #374151; --as-other-bg: #f3f4f6;
  --as-pin-a: #047857; --as-pin-d: #b91c1c; --as-pin-s: #d97706; --as-pin-x: #64748b;
}
body.as-body { background: #fff; color: var(--text); font-family: var(--font); margin: 0; }

.as-app a, .as-page a, .ae-page a, .as-drawer a, .as-qpop a { color: var(--brand-dark); }

.as-app { display: flex; flex-direction: column; height: calc(calc(100dvh / var(--bs-zoom, 1)) - var(--nav-h)); min-height: 560px; }
.as-topbar { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--border); background: #fff; }
.as-search { position: relative; display: flex; align-items: center; flex: 1 1 300px; max-width: 560px; min-width: 260px; gap: 8px; margin: 0; }
.as-search input { flex: 1; min-width: 0; height: 42px; box-sizing: border-box; padding: 0 40px 0 38px; font: 400 15px var(--font); color: var(--text); background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius); }
.as-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.as-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13,148,136,.15); }
.as-search-ico { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.as-search-ico svg { width: 17px; height: 17px; display: block; }

.as-find-box { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
.as-find-box input { width: 100%; }
.as-q-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; color: var(--text-muted); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.as-q-clear[hidden] { display: none; }
.as-q-clear svg { width: 16px; height: 16px; }
.as-search-go { height: 42px; padding: 0 18px; font: 700 14.5px var(--font); color: #fff; background: var(--brand-dark); border: 0; border-radius: var(--radius); cursor: pointer; }
.as-search-go:hover { background: var(--brand-deep); }

.as-quick.hmp-quick { flex: 0 1 auto; }
.as-suggest { position: absolute; z-index: 1250; top: calc(100% + 4px); left: 0; right: 0; max-height: min(440px, calc(70vh / var(--bs-zoom, 1))); overflow-y: auto; padding: 6px; background: #fff; border: 1px solid var(--border-hover); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(15,20,25,.14); }
.as-suggest[hidden] { display: none; }
.as-sug-g + .as-sug-g, .as-sug-g + .as-sug-all { margin-top: 4px; border-top: 1px solid var(--border); padding-top: 4px; }
.as-sug-h { padding: 6px 10px 4px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.as-sug { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; color: var(--text); border-radius: var(--radius-sm); cursor: pointer; }
.as-sug.is-on { background: var(--bg); }
.as-sug-l { font-size: 14.5px; font-weight: 500; }
.as-sug-l b { font-weight: 700; }
.as-sug-all .as-sug-l { color: var(--brand-dark); font-weight: 600; }
.as-sug-g + .as-sug-all { padding-top: 8px; }

.as-sug-all { position: sticky; bottom: -6px; background: #fff; }
.as-sug-all.is-on { background: var(--bg); }
.as-sug-s { font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-quick { flex: 1 1 auto; }
.as-qf.is-set { background: var(--filter-tint); border-color: var(--filter-accent); }
.as-main { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 440px minmax(0, 1fr); }
.as-panel { position: relative; min-height: 0; border-right: 1px solid var(--border); background: #fff; display: flex; flex-direction: column; }
.as-handle, .as-peek { display: none; }
.as-panel-in { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 22px 32px; }
.as-h1 { margin: 22px 0 8px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.as-lede { margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }
.as-h2 { margin: 0 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; color: var(--text); }
.as-h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--text); }
.as-sub { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--text-secondary); }
.as-hsec { padding: 22px 0 4px; border-top: 1px solid var(--border); margin-top: 22px; }
.as-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 3px solid var(--text); border-bottom: 1px solid var(--border-hover); }
.as-fig { padding: 12px 12px 12px 0; }
.as-fig + .as-fig { padding-left: 12px; border-left: 1px solid var(--border); }
.as-fig-n { display: block; font-size: 24px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.as-fig-k { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.35; color: var(--text-secondary); }
.as-figs-live { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 12px 0 0; }
.as-figs-live .as-fig-n { font-size: 20px; }
.as-figs-wide { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 4px 0 32px; }
.as-figs-wide .as-fig { padding: 16px 18px 16px 0; }
.as-figs-wide .as-fig + .as-fig { padding-left: 18px; }
.as-figs-wide .as-fig-n { font-size: 28px; }
.as-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.as-tag { display: inline-flex; align-items: center; padding: 6px 11px; font: 600 13px var(--font); color: var(--text); background: #fff; border: 1px solid var(--border-strong); border-radius: 999px; cursor: pointer; white-space: nowrap; }
.as-tag:hover { border-color: var(--filter-accent); color: var(--filter-accent); }
.as-tag.is-on { border-style: solid; border-color: var(--filter-accent); color: var(--filter-accent); background: var(--filter-tint); }
.as-tag-static { cursor: default; padding: 3px 10px; font-size: 12.5px; }
.as-tag-static:hover { color: var(--text); border-color: var(--border-strong); }
.as-jobs { list-style: none; margin: 8px 0 0; padding: 0; }
.as-job { padding: 14px 0; border-top: 1px solid var(--border); }
.as-job:first-child { border-top: 0; padding-top: 4px; }
.as-job h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 700; }
.as-job p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.as-job-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px !important; }
.as-job-links a { font-size: 14px; font-weight: 600; text-decoration: none; }
.as-job-links a:hover { text-decoration: underline; }
.as-job-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 10px; }
.as-job-form label { display: grid; gap: 4px; flex: 1 1 150px; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.as-job-form select { height: 38px; padding: 0 8px; font: 500 14px var(--font); color: var(--text); background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); min-width: 0; width: 100%; }
.as-btn { height: 38px; padding: 0 16px; font: 700 14px var(--font); color: #fff; background: var(--brand-dark); border: 0; border-radius: var(--radius); cursor: pointer; white-space: nowrap; }
.as-btn:hover { background: var(--brand-deep); }
.as-btn-quiet { color: var(--text); background: #fff; border: 1px solid var(--border-strong); }
.as-btn-quiet:hover { background: var(--bg); }
.as-btn-link { padding: 0; font: 600 14px var(--font); color: var(--text-secondary); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.as-rows { list-style: none; margin: 0; padding: 0; }
.as-row { padding: 14px 8px; margin: 0 -8px; border-top: 1px solid var(--border); cursor: pointer; transition: background-color .12s; }
.as-rows > .as-row:first-child { border-top: 1px solid var(--border-hover); }
.as-row:hover { background: var(--bg); }
.as-row.is-active { background: var(--brand-bg); }
.as-row-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.as-date, .as-km { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.as-km { margin-left: auto; }
.as-addr { display: block; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--text) !important; text-decoration: none; }
.as-addr:hover { color: var(--brand-dark) !important; text-decoration: underline; }
.as-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--text-secondary); }
.as-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.as-chip { display: inline-flex; align-items: center; padding: 2px 9px; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); background: var(--bg); border: 1px solid var(--border-hover); border-radius: 999px; white-space: nowrap; }
.as-row-foot { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 8px; font-size: 12.5px; color: var(--text-muted); }
.as-case { font-family: var(--font-mono); font-size: 12px; }
.as-extract { position: relative; margin: 10px 0 0; padding: 8px 10px; font-size: 13.5px; line-height: 1.5; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); }
.as-extract mark, .as-letter mark { background: #fde68a; color: inherit; padding: 0 1px; border-radius: 2px; }
.as-more-link { margin: 12px 0 0; font-size: 14px; font-weight: 600; }
.as-pill { display: inline-flex; align-items: center; padding: 3px 10px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; white-space: nowrap; }
.as-pill-allowed { color: var(--as-allowed); background: var(--as-allowed-bg); }
.as-pill-dismissed { color: var(--as-dismissed); background: var(--as-dismissed-bg); }
.as-pill-split { color: var(--as-split); background: var(--as-split-bg); }
.as-pill-other { color: var(--as-other); background: var(--as-other-bg); }
.as-res-head { position: sticky; top: 0; z-index: 2; padding: 16px 0 0; background: #fff; }
.as-interp { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.4; }
.as-interp-sub { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-top: 2px; }
.as-interp a { font-weight: 600; }
#as-issue-note { margin-top: 12px; }
#as-issue-note p { font-size: 13px; color: var(--text-secondary); line-height: 1.45; }
.as-tabs { display: flex; align-items: center; gap: 4px; margin-top: 12px; border-bottom: 1px solid var(--border-hover); }
.as-tabs button { height: 38px; padding: 0 12px; font: 600 14px var(--font); color: var(--text-secondary); background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.as-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.as-sort { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 13px; color: var(--text-muted); }
.as-sort select { height: 30px; padding: 0 6px; font: 500 13px var(--font); color: var(--text); background: #fff; border: 1px solid var(--border-hover); border-radius: var(--radius-sm); }
.as-tab[hidden] { display: none; }
.as-tab[data-pane="list"] .as-rows > .as-row:first-child { border-top: 0; }
.as-empty { margin: 24px 0; font-size: 14.5px; line-height: 1.5; color: var(--text-secondary); }
.as-more-row { padding: 14px 0 0; }
.as-more { width: 100%; padding: 11px 16px; font: 600 14px var(--font); color: var(--text); background: #fff; border: 1px solid var(--border-hover); border-radius: var(--radius); cursor: pointer; }
.as-more:hover { background: var(--bg); }
.as-more[hidden] { display: none; }
.as-fsec { padding: 18px 0 4px; }
.as-fsec + .as-fsec { border-top: 1px solid var(--border); }
.as-fsec .as-h3 { margin-bottom: 8px; }
.as-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.as-table th, .as-table td { padding: 8px 8px 8px 0; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.as-table thead th { font-size: 12px; font-weight: 700; color: var(--text-muted); border-bottom: 1px solid var(--border-hover); }
.as-table tbody th { font-weight: 600; color: var(--text); }
.as-table .n { text-align: right; white-space: nowrap; }
.as-bar-col { width: 34%; }
.as-bar { position: relative; display: block; height: 8px; background: var(--bg); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border); }
.as-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand); border-radius: 999px; }
.as-bar-eng { position: absolute; top: -4px; width: 2px; height: 16px; margin-left: -1px; background: var(--text); border-radius: 1px; }
.as-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.as-cmp { margin: 0 0 10px; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

.as-mapwrap { position: relative; min-height: 0; }
#as-map.as-map { position: absolute; inset: 0; height: auto; }
.as-maptop { position: absolute; z-index: 3; top: 12px; left: 12px; right: 12px; display: flex; gap: 8px; pointer-events: none; }
.as-ctl { pointer-events: auto; height: 38px; padding: 0 14px; font: 600 13.5px var(--font); color: var(--text); background: #fff; border: 1px solid rgba(15,20,25,.1); border-radius: 999px; box-shadow: 0 1px 2px rgba(15,20,25,.09), 0 6px 16px -4px rgba(15,20,25,.14); cursor: pointer; }
.as-ctl:hover { border-color: var(--text-muted); }
.as-ctl[hidden] { display: none; }
.as-area-btn { margin: 0 auto; color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); }
.as-area-btn:hover { background: var(--brand-deep); }
.as-england-btn { margin-left: auto; }
.as-area-btn:not([hidden]) + .as-england-btn { margin-left: 0; }
.as-key { position: absolute; z-index: 3; left: 12px; bottom: 28px; display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 9px 12px; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); background: #fff; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(15,20,25,.09), 0 6px 16px -4px rgba(15,20,25,.14); }
.as-key span { display: inline-flex; align-items: center; gap: 6px; }
.as-key i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--border-hover); }
.as-key .k-a { background: var(--as-pin-a); } .as-key .k-d { background: var(--as-pin-d); } .as-key .k-s { background: var(--as-pin-s); } .as-key .k-x { background: var(--as-pin-x); }
.as-loading { position: absolute; z-index: 4; left: 50%; top: 64px; transform: translateX(-50%); padding: 8px 14px; font-size: 13px; font-weight: 500; color: #134e4a; background: rgba(255,255,255,.94); border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.as-loading[hidden] { display: none; }
.as-pop .maplibregl-popup-content { padding: 12px 14px; border-radius: var(--radius); box-shadow: 0 10px 28px rgba(15,20,25,.18); min-width: 220px; max-width: 280px; font-family: var(--font); }
.as-pop-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.as-pop-addr { font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--text); }
.as-pop-meta { margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--text-secondary); }
.as-pop-btn { display: inline-block; margin-top: 10px; padding: 7px 12px; font-size: 13px; font-weight: 700; color: #fff !important; background: var(--brand-dark); border-radius: var(--radius-sm); text-decoration: none; }

.as-qpop { width: 300px; }
.as-qpop .as-opts { display: grid; gap: 2px; max-height: 360px; overflow: auto; }
.as-opt { display: flex; align-items: center; gap: 10px; padding: 7px 6px; font-size: 14px; color: var(--text); border-radius: var(--radius-sm); cursor: pointer; }
.as-opt:hover { background: var(--bg); }
.as-opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--filter-accent); }
.as-opts-tags { display: flex !important; flex-wrap: wrap; gap: 6px !important; }
.as-opts-tags .as-opt { padding: 5px 10px; font-size: 13px; font-weight: 600; border: 1px solid var(--border-strong); border-radius: 999px; }
.as-opts-tags .as-opt input { display: none; }
.as-opts-tags .as-opt:has(input:checked) { border-style: solid; border-color: var(--filter-accent); color: var(--filter-accent); background: var(--filter-tint); }
.as-fg-note { margin: 0 0 8px; font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
.as-qpop-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.as-drawer { position: fixed; z-index: 1400; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%; display: flex; flex-direction: column; background: #fff; box-shadow: -12px 0 32px rgba(15,20,25,.16); }
.as-drawer[hidden] { display: none; }
.as-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.as-drawer-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.as-drawer-x { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; padding: 0; color: var(--text); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.as-drawer-x:hover { background: var(--bg); }
.as-drawer-x svg { width: 20px; height: 20px; }
.as-drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 4px 20px 20px; }
.as-fg { margin: 0; padding: 16px 0; border: 0; border-bottom: 1px solid var(--border); }
.as-fg legend { float: left; width: 100%; margin: 0 0 8px; padding: 0; font-size: 15px; font-weight: 700; }
.as-fg .as-opts { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.as-fg[data-key="dev"] .as-opts { grid-template-columns: 1fr; }
.as-range { clear: both; display: flex; gap: 10px; }
.as-range label { display: grid; gap: 4px; flex: 1; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.as-range input { height: 38px; padding: 0 8px; font: 500 14px var(--font); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
.as-drawer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--border); }
.as-drawer-foot .as-btn { height: 44px; padding: 0 22px; }
.as-scrim { position: fixed; inset: 0; z-index: 1350; background: rgba(15,20,25,.32); }
.as-scrim[hidden] { display: none; }

.as-page { max-width: 1236px; margin: 0 auto; padding: 22px 28px 64px; }
.as-page-narrow { max-width: 860px; }
.as-crumb { font-size: 13px; color: var(--text-secondary); margin: 0 0 18px; }
.as-crumb a { color: var(--text-secondary); text-decoration: none; }
.as-crumb a:hover { color: var(--text); text-decoration: underline; }
.as-crumb .sep { color: var(--border-strong); margin: 0 7px; }
.as-crumb [aria-current] { color: var(--text); font-weight: 600; }
.as-head { padding: 0 0 22px; margin: 0 0 26px; border-bottom: 1px solid var(--border-hover); }
.as-head-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; font-size: 14px; color: var(--text-secondary); }
.as-head-date { font-weight: 600; color: var(--text); }
.as-title { margin: 0; max-width: 900px; font-size: 32px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.as-head-sub { margin: 10px 0 0; max-width: 760px; font-size: 16px; line-height: 1.55; color: var(--text-secondary); }
.as-head-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 0; font-size: 14.5px; font-weight: 600; }
.as-head-links a { text-decoration: none; }
.as-head-links a:hover { text-decoration: underline; }
.as-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.as-colside { position: sticky; top: calc(var(--nav-h) + 16px); }
.as-sec { padding: 0 0 34px; }
.as-sec + .as-sec { padding-top: 30px; border-top: 1px solid var(--border); }
.as-sec > .as-h2 { margin-bottom: 14px; font-size: 21px; }
.as-sum { font-size: 17px !important; line-height: 1.6; color: var(--text); }
.as-plain { margin: 0 0 12px; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }
.as-plain a { font-weight: 600; }
.as-note { margin-top: 10px !important; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.as-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; }
.as-dl-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.as-dl dt { color: var(--text-muted); font-weight: 500; }
.as-dl dd { margin: 0; color: var(--text); font-weight: 600; line-height: 1.45; }
.as-dl dd a { font-weight: 600; }
.as-issues { list-style: none; margin: 0; padding: 0; }
.as-issue { padding: 12px 0; border-top: 1px solid var(--border); }
.as-issue:first-child { border-top: 0; padding-top: 2px; }
.as-issue-q { margin: 8px 0 4px !important; font-size: 15.5px; font-weight: 700; line-height: 1.4; }
.as-issue-a { font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }
.as-found { display: inline-block; margin-right: 6px; font-weight: 700; }
.as-found-app { color: var(--as-allowed); } .as-found-lpa { color: var(--as-dismissed); }
.as-conds { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.7; }
.as-letter-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 12px; }
.as-letter-find { position: relative; flex: 0 1 340px; }
.as-letter-find input { width: 100%; height: 40px; box-sizing: border-box; padding: 0 12px 0 36px; font: 400 14.5px var(--font); border: 1px solid var(--border-strong); border-radius: var(--radius); }
.as-letter-find input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13,148,136,.15); }
.as-letter-n { font-size: 13.5px; color: var(--text-muted); }
.as-letter { font-size: 15px; line-height: 1.7; color: var(--text); max-width: calc(68ch * var(--bs-ch, 1)); }
.as-letter h3 { margin: 18px 0 6px; font-size: 15px; font-weight: 700; }
.as-letter h3:first-child { margin-top: 0; }
.as-letter p { margin: 0 0 10px !important; }
.as-side-block { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.as-side-block p { margin: 0 0 4px; font-size: 14.5px; line-height: 1.5; }
.as-side-muted { color: var(--text-muted); }
.as-toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.as-toc a { text-decoration: none; font-weight: 500; }
.as-toc a:hover { text-decoration: underline; }
.as-issue-bars { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.as-issue-bars li { display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 12px; }
.as-issue-bars .as-tag { justify-self: start; }
.as-frame { border: 1px solid var(--border-hover); border-radius: var(--radius); overflow: hidden; }
.as-frame-in { padding: 18px 20px; }
.as-frame-h { margin: 0 0 12px; font-size: 18px; font-weight: 700; }
.as-frame-p { margin: 12px 0 0; font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.as-frame-p a { font-weight: 600; }
.as-search-inline { max-width: 620px; }
.as-search-inline input[type=search] { padding: 0 14px; }   
.as-search-inline .as-search-go { flex: none; }
.as-dl-app { grid-template-columns: 1fr; }
.as-dl-app dd a { margin-left: 8px; }

@media (max-width: 1100px) {
  .as-main { grid-template-columns: 380px minmax(0, 1fr); }
  .as-cols { grid-template-columns: 1fr; }
  .as-colside { position: static; }
}
@media (max-width: 767px) {
  .as-topbar { flex-wrap: wrap; gap: 8px; padding: 8px 14px; }
  .as-search { flex: 1 1 100%; max-width: none; min-width: 0; }
  .as-search-go { display: none; }
  .as-quick.hmp-quick { flex: 1 1 100%; overflow-x: auto; margin: 0 -14px; padding: 0 14px; }
  .as-quick .hmp-qf { display: inline-flex; }
  .as-peek { display: none !important; }
  .as-panel[data-snap="peek"] .as-peek { display: block !important; }
  .as-panel[data-snap="peek"] .as-panel-in { overflow: hidden; }
  .as-main { position: relative; display: block; }
  .as-mapwrap { position: absolute; inset: 0; }
  .as-key { display: none; }
  .as-maptop { top: 10px; left: 10px; right: 10px; }
  .as-panel { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 52%; border-right: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 24px rgba(15,20,25,.16); transition: height .22s var(--ease); }
  .as-panel[data-snap="peek"] { height: 112px; }
  .as-panel[data-snap="full"] { height: calc(100% - 8px); }
  .as-handle { display: flex; justify-content: center; flex: none; padding: 8px 0 4px; cursor: grab; touch-action: none; }
  .as-handle span { width: 40px; height: 5px; border-radius: 999px; background: var(--border-strong); }
  .as-peek { display: block; flex: none; padding: 0 14px 8px; font-size: 14px; font-weight: 700; touch-action: none; }
  .as-peek small { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-muted); }
  .as-panel-in { padding: 0 14px 24px; }
  .as-h1 { margin-top: 6px; font-size: 21px; }
  .as-figs-live { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-figs-live .as-fig:nth-child(3) { padding-left: 0; border-left: 0; }
  .as-figs-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-figs-wide .as-fig:nth-child(3) { padding-left: 0; border-left: 0; }
  .as-figs-wide .as-fig-n { font-size: 24px; }
  .as-drawer { width: 100%; top: 0; }
  .as-page { padding: 16px 14px 48px; }
  .as-title { font-size: 25px; }
  .as-head-sub { font-size: 15px; }
  .as-dl { grid-template-columns: 1fr; }
  .as-dl-row { grid-template-columns: 130px minmax(0, 1fr); }
  .as-cols { gap: 28px; }
  .as-issue-bars li { grid-template-columns: 1fr; gap: 6px; }
  .as-bar-col { width: 26%; }
  .as-table { font-size: 13px; }
}
.as-sort[hidden] { display: none; }
@media (max-width: 767px) { .as-sort select { max-width: 132px; } .as-tabs button { padding: 0 10px; } }
@media (max-width: 1100px) { .as-colside { order: -1; } .as-side-block { display: none; } }

.ae-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 0; font-size: 15px; color: var(--text-secondary); }
.ae-src { margin: 8px 0 0; font-size: 13px; color: var(--text-muted); }
.ae-issues .as-issue-q { margin-top: 2px !important; }
.as-found-neu { color: var(--text-secondary); }
.ae-issue-tags, .ae-tags, .ae-row-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; }
.ae-issue-tags a, .ae-tags a, .ae-row-tags span { display: inline-flex; align-items: center; padding: 2px 10px; font-size: 12.5px; font-weight: 600; color: var(--text); background: #fff; border: 1px solid var(--border-strong); border-radius: 999px; text-decoration: none; }
.ae-issue-tags a:hover, .ae-tags a:hover { border-color: var(--brand-dark); color: var(--brand-dark); }
.ae-tags a { padding: 5px 12px; font-size: 13.5px; }
.ae-costs { color: var(--text); font-size: 15px; }
.ae-row-sum { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--text); }
.ae-row-tags { margin-top: 6px; }
.ae-row-tags span { padding: 1px 8px; font-size: 12px; color: var(--text-secondary); border-color: var(--border-hover); }
.ae-letter-wrap { position: relative; max-height: 560px; overflow: hidden; }
.ae-letter-wrap.is-open { max-height: none; }
.ae-more { margin: 10px 0 0; height: 40px; padding: 0 16px; font: 600 14.5px var(--font); color: var(--text); background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer; }
.ae-more:hover { border-color: var(--brand-dark); color: var(--brand-dark); }
.ae-letter-head { margin: 0 0 16px; padding: 0 0 12px; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.ae-letter-head p { margin: 0 0 2px !important; }
.ae-pn { font-weight: 700; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.ae-costs-h { margin-top: 28px !important; padding-top: 16px; border-top: 1px solid var(--border); }
.ae-ibars { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 12px; }
.ae-ibars li { display: grid; grid-template-columns: 220px 1fr 230px; align-items: center; gap: 14px; }
.ae-ibar-t { font-size: 14.5px; font-weight: 600; text-decoration: none; }
.ae-ibar-t:hover { text-decoration: underline; }
.ae-ibar { position: relative; height: 10px; border-radius: 999px; background: var(--as-allowed-bg); overflow: hidden; }
.ae-ibar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--as-pin-d); }
.ae-ibar-n { font-size: 13.5px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.ae-lsearch { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.ae-lsearch .as-letter-find { flex: 1 1 320px; }
.ae-go { height: 40px; padding: 0 16px; font: 700 14.5px var(--font); color: #fff; background: var(--brand-dark); border: 0; border-radius: var(--radius); cursor: pointer; }
.ae-hits { list-style: none; margin: 0; padding: 0; }
.ae-hits li { padding: 12px 0; border-top: 1px solid var(--border); }
.ae-hit-meta { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 13.5px; color: var(--text-secondary); }
.ae-snip { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--text); }
.ae-snip mark { background: #fde68a; color: inherit; padding: 0 1px; border-radius: 2px; }
.ae-index { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.9; }
.ae-app-appeal { padding: 14px 0 0; border-top: 1px solid var(--border); }
.ae-app-h { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.ae-app-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 8px; font-size: 14.5px; color: var(--text-secondary); }
.ae-app-sum { margin: 0 0 10px; font-size: 15px; line-height: 1.6; color: var(--text); max-width: calc(68ch * var(--bs-ch, 1)); }
.ae-app-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; font-size: 14.5px; font-weight: 600; }
@media (max-width: 760px) {
  .ae-ibars li { grid-template-columns: 1fr; gap: 4px; }
  .ae-letter-wrap { max-height: 480px; }
}

.as-csec { margin: 28px 0; }
.as-csec .as-plain a, .as-bars a { color: var(--brand-dark); }
.as-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.as-bars li { display: grid; grid-template-columns: minmax(150px, 230px) minmax(60px, 1fr) 170px; align-items: center; gap: 12px; font-size: 14.5px; }
.as-bars a { font-weight: 600; text-decoration: none; }
.as-bars a:hover { text-decoration: underline; }
.as-bar { display: block; height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; }
.as-bar > span { display: block; height: 100%; background: var(--brand-dark); }
.as-bar-n { color: var(--text-secondary); font-size: 13.5px; white-space: nowrap; }
.as-csec .as-search-inline { margin-bottom: 12px; }
.as-csec .as-search-inline input { padding-left: 14px; }
@media (max-width: 767px) {
  .as-bars li { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .as-bars .as-bar { grid-column: 1 / -1; grid-row: 2; }
  .as-csec .as-search-inline .as-search-go { display: inline-block; }
}

.ae-page .as-crumb { padding: 0 16px; margin: 0 0 20px; }
.ae-page .as-head { padding: 0; margin: 0; border-bottom: 0; }
.ae-page .as-title { font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.ae-page .as-cols { margin-top: 32px; padding: 30px 16px 0; border-top: 1px solid var(--border-hover); }
@media (max-width: 1100px) { .ae-page .as-colside { display: none; } }
@media (max-width: 900px) {
  .ae-page .as-crumb { padding: 16px 16px 0; margin: 0 0 20px; }
  .ae-page .as-title { font-size: 26px; }
  .ae-page .as-cols { margin-top: 24px; padding-top: 24px; }
}
