:root {
  --policy-ink: #17251f;
  --policy-muted: #74817b;
  --policy-line: #dce5df;
  --policy-green: #1e6958;
  --policy-green-deep: #103e37;
  --policy-mint: #e7f3ed;
  --policy-cream: #f8f5ec;
  --policy-orange: #d97941;
}

body { background: #f4f6f2; }
.policy-site-main { min-height: 100vh; max-width: 1540px; margin: 0 auto; padding: 26px clamp(18px, 4vw, 58px) 80px; background: radial-gradient(circle at 82% 0%, rgba(221, 239, 229, .72), transparent 30%), #f4f6f2; }
.policy-topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.policy-topbar-left { min-width: 0; display: flex; align-items: center; gap: 12px; }
.policy-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--policy-ink); text-decoration: none; }
.policy-brand-mark { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px 14px 14px 5px; color: #fff; background: var(--policy-green-deep); box-shadow: 7px 7px 0 rgba(30, 105, 88, .13); font: 900 21px/1 serif; }
.policy-brand strong, .policy-brand small { display: block; }
.policy-brand strong { font-size: 16px; letter-spacing: .04em; }
.policy-brand small { margin-top: 2px; color: var(--policy-muted); font-size: 10px; letter-spacing: .12em; }
.policy-account { display: flex; align-items: center; gap: 14px; color: var(--policy-muted); font-size: 12px; }
.policy-account a { padding: 8px 12px; border: 1px solid var(--policy-line); border-radius: 99px; color: var(--policy-green-deep); background: rgba(255,255,255,.58); font-weight: 750; text-decoration: none; }
.policy-account a:hover { border-color: #9dc5b6; background: #fff; }
.policy-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 22px; align-items: start; }
.policy-content-column { min-width: 0; }
.policy-sidebar { position: sticky; top: 18px; min-width: 0; height: calc(100vh - 36px); max-height: calc(100vh - 36px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #b6cec0 transparent; }
.policy-nav { padding: 16px 12px 18px; border: 1px solid var(--policy-line); border-radius: 16px; background: rgba(255,255,255,.78); box-shadow: 0 8px 28px rgba(37,69,57,.05); }
.policy-nav-heading { display: flex; align-items: center; gap: 10px; padding: 3px 7px 15px; border-bottom: 1px solid var(--policy-line); }
.policy-nav-mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--policy-green-deep); font-weight: 900; }
.policy-nav-heading strong, .policy-nav-heading small { display: block; }
.policy-nav-heading strong { color: var(--policy-ink); font-size: 14px; }
.policy-nav-heading small { margin-top: 3px; color: var(--policy-muted); font-size: 10px; }
.policy-nav-home, .policy-nav-group a { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 7px 8px; border-radius: 8px; color: #64766c; text-decoration: none; }
.policy-nav-home { margin: 12px 0 8px; color: var(--policy-green-deep); background: #f0f6f1; }
.policy-nav-home span { font-size: 16px; }
.policy-nav-home strong, .policy-nav-group a strong { flex: 1; font-size: 11px; font-weight: 700; }
.policy-nav-home em, .policy-nav-group a em { min-width: 22px; padding: 2px 5px; border-radius: 10px; color: #7c9084; background: #eef3ef; font-size: 9px; font-style: normal; text-align: center; }
.policy-nav-home.active, .policy-nav-group a.active { color: var(--policy-green-deep); background: #dff0e6; }
.policy-nav-home.active em, .policy-nav-group a.active em { color: #fff; background: var(--policy-green); }
.policy-nav-home:hover, .policy-nav-group a:hover { color: var(--policy-green-deep); background: #e8f2eb; }
.policy-nav-group { margin-top: 16px; }
.policy-nav-group h3 { margin: 0 8px 5px; color: #9aa9a0; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.policy-nav-group a { min-height: 31px; }
.nav-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #b3c9ba; }
.policy-nav-group a.active .nav-dot { background: #d47c42; box-shadow: 0 0 0 3px #fff0e5; }

.policy-hero { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; min-height: 255px; padding: clamp(28px, 5vw, 58px); overflow: hidden; border-radius: 30px; color: #fff; background: linear-gradient(116deg, #123e38 0%, #1b6657 55%, #2d8069 100%); box-shadow: 0 22px 44px rgba(24, 74, 62, .18); }
.policy-hero::before, .policy-hero::after { position: absolute; content: ""; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; pointer-events: none; }
.policy-hero::before { width: 410px; height: 410px; right: -100px; top: -220px; }
.policy-hero::after { width: 270px; height: 270px; right: 100px; bottom: -205px; }
.policy-hero-copy, .policy-hero-action { position: relative; z-index: 1; }
.policy-hero-copy { max-width: 760px; }
.policy-eyebrow, .policy-kicker { color: #a8d7c3; font-size: 10px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.policy-hero h1 { max-width: 650px; margin: 13px 0 13px; font-size: clamp(31px, 4.3vw, 54px); line-height: 1.08; letter-spacing: -.055em; }
.policy-hero h1 em { color: #f5d78f; font-style: normal; }
.policy-hero p { max-width: 680px; margin: 0; color: rgba(255,255,255,.76); font-size: 13px; line-height: 1.8; }
.policy-hero-meta { display: flex; align-items: center; gap: 8px; margin-top: 25px; color: rgba(255,255,255,.76); font-size: 10px; }
.hero-dot, .live-pulse { width: 7px; height: 7px; border-radius: 50%; background: #f5d78f; box-shadow: 0 0 0 5px rgba(245,215,143,.15); }
.hero-divider { color: rgba(255,255,255,.3); }
.policy-hero-action { min-width: 170px; padding: 17px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(6, 45, 39, .2); backdrop-filter: blur(10px); }
.action-caption { display: block; margin-bottom: 10px; color: rgba(255,255,255,.6); font-size: 10px; letter-spacing: .08em; }
.policy-primary-button { min-height: 42px; padding: 9px 14px; border: 0; border-radius: 10px; color: var(--policy-green-deep); background: #f5d78f; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 850; cursor: pointer; }
.policy-primary-button:hover { background: #ffe5a8; }
.policy-primary-button:disabled { opacity: .66; cursor: wait; }
.button-icon { font-size: 17px; line-height: 1; }
.policy-alert, .policy-live-status { margin: 16px 0; padding: 12px 16px; border-radius: 12px; font-size: 12px; }
.policy-alert.success { color: var(--policy-green-deep); background: var(--policy-mint); }
.policy-alert.danger { color: #9c3e38; background: #fbeceb; }
.policy-live-status { display: flex; align-items: center; gap: 10px; color: #315fc5; background: #eaf0fd; }
.policy-live-status .live-pulse { background: #315fc5; box-shadow: 0 0 0 5px rgba(49,95,197,.13); }
.policy-live-status span:last-child { color: #6478aa; }

.policy-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin: 17px 0; }
.policy-stat-card { position: relative; min-height: 136px; padding: 20px 20px 17px; overflow: hidden; border: 1px solid var(--policy-line); border-radius: 17px; background: rgba(255,255,255,.83); box-shadow: 0 8px 24px rgba(37, 69, 57, .045); }
.policy-stat-card.accent { border-top: 4px solid var(--policy-green); }
.policy-stat-card.warning { border-top: 4px solid var(--policy-orange); }
.policy-stat-card > span, .policy-stat-card > small { display: block; color: var(--policy-muted); }
.policy-stat-card > span { font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.policy-stat-card > strong { display: block; margin: 9px 0 4px; color: var(--policy-ink); font-size: 34px; line-height: 1; letter-spacing: -.06em; }
.policy-stat-card > small { font-size: 10px; }
.policy-stat-card > i { position: absolute; right: 18px; bottom: 13px; color: #c9ddd4; font: 900 41px/1 Georgia, serif; font-style: normal; }

.policy-topic-strip { display: flex; align-items: center; gap: 22px; padding: 15px 0 18px; border-bottom: 1px solid var(--policy-line); }
.policy-section-label { min-width: 94px; }
.policy-section-label span, .policy-section-label small { display: block; }
.policy-section-label span { color: var(--policy-ink); font-size: 11px; font-weight: 850; }
.policy-section-label small { margin-top: 3px; color: var(--policy-muted); font-size: 9px; }
.policy-topic-list { display: flex; min-width: 0; gap: 8px; overflow-x: auto; padding-bottom: 3px; }
.policy-topic { min-width: max-content; padding: 8px 12px; border: 1px solid transparent; border-radius: 10px; color: var(--policy-muted); text-decoration: none; background: rgba(255,255,255,.5); }
.policy-topic:hover, .policy-topic.active { border-color: #b8d5c9; color: var(--policy-green-deep); background: var(--policy-mint); }
.policy-topic strong, .policy-topic small { display: block; }
.policy-topic strong { font-size: 10px; }
.policy-topic small { margin-top: 2px; font-size: 8px; }

.policy-main-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .7fr); gap: 17px; align-items: start; margin-top: 18px; }
.policy-panel { min-width: 0; padding: 22px; border: 1px solid var(--policy-line); border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: 0 8px 24px rgba(37, 69, 57, .045); }
.policy-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.policy-panel-heading.compact { align-items: center; }
.policy-panel-heading h2 { margin: 6px 0 4px; color: var(--policy-ink); font-size: 19px; letter-spacing: -.035em; }
.policy-panel-heading p { margin: 0; color: var(--policy-muted); font-size: 10px; }
.policy-count-badge, .policy-live-label { padding: 6px 9px; border-radius: 99px; color: var(--policy-green); background: var(--policy-mint); font-size: 9px; font-weight: 850; white-space: nowrap; }
.policy-live-label { color: #b46a36; background: #fff2df; letter-spacing: .1em; }
.policy-filter-form { display: grid; grid-template-columns: minmax(180px, 1fr) 130px 130px auto; gap: 8px; margin-bottom: 15px; }
.policy-filter-form select, .policy-search, .policy-filter-button { min-height: 38px; border: 1px solid var(--policy-line); border-radius: 9px; background: #fbfcfa; }
.policy-search { display: flex; align-items: center; gap: 8px; padding: 0 11px; color: var(--policy-green); }
.policy-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--policy-ink); font-size: 11px; }
.policy-filter-form select { padding: 0 9px; color: var(--policy-ink); font-size: 10px; }
.policy-filter-button { padding: 0 14px; color: #fff; background: var(--policy-green); font-size: 10px; font-weight: 800; cursor: pointer; }
.policy-filter-button:hover { background: var(--policy-green-deep); }
.policy-feed-list { display: grid; gap: 9px; }
.policy-feed-card { padding: 16px 17px; border: 1px solid var(--policy-line); border-radius: 13px; background: #fff; }
.policy-feed-card.unread { border-left: 3px solid var(--policy-orange); padding-left: 15px; }
.policy-feed-card:hover { border-color: #b5d0c3; box-shadow: 0 8px 20px rgba(30, 105, 88, .06); }
.policy-feed-line { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--policy-muted); font-size: 9px; }
.policy-region { padding: 3px 7px; border-radius: 99px; color: var(--policy-green); background: var(--policy-mint); font-weight: 800; }
.policy-feed-line time { margin-left: auto; }
.policy-status { padding: 3px 7px; border-radius: 99px; font-size: 8px; font-weight: 800; }
.policy-status.new { color: #a65029; background: #fff0e6; }
.policy-status.read { color: var(--policy-green); background: var(--policy-mint); }
.policy-status.archived { color: var(--policy-muted); background: #eef1ef; }
.policy-feed-card h3 { margin: 8px 0 5px; font-size: 14px; line-height: 1.45; }
.policy-feed-card h3 a { color: var(--policy-ink); text-decoration: none; }
.policy-feed-card h3 a:hover { color: var(--policy-green); }
.policy-feed-card p { margin: 0; color: #5e6d67; font-size: 10px; line-height: 1.65; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.policy-feed-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; }
.policy-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.policy-tags span { padding: 3px 7px; border-radius: 99px; color: #487265; background: #edf5f0; font-size: 8px; font-weight: 750; }
.policy-feed-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.policy-feed-actions a, .policy-feed-actions button { color: var(--policy-green); font-size: 9px; font-weight: 800; text-decoration: none; }
.policy-feed-actions button { padding: 0; border: 0; background: none; cursor: pointer; }
.policy-feed-actions a:hover, .policy-feed-actions button:hover { color: var(--policy-orange); }
.policy-empty { padding: 50px 20px; text-align: center; color: var(--policy-muted); }
.policy-empty strong { color: var(--policy-ink); font-size: 13px; }
.policy-empty p { margin: 6px 0 0; font-size: 10px; }
.policy-empty.small { padding: 25px 8px; }

.policy-side-column { display: grid; gap: 17px; }
.policy-run-list { border-top: 1px solid var(--policy-line); }
.policy-run-item { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 9px; align-items: center; min-height: 65px; padding: 10px 0; border-bottom: 1px solid var(--policy-line); }
.policy-run-item:last-child { border-bottom: 0; }
.policy-run-item strong, .policy-run-item small { display: block; }
.policy-run-item strong { color: var(--policy-ink); font-size: 10px; }
.policy-run-item small { margin-top: 4px; color: var(--policy-muted); font-size: 8px; line-height: 1.45; }
.policy-run-item > b { color: var(--policy-orange); font-size: 12px; }
.run-state { width: 8px; height: 8px; border-radius: 50%; background: #a3ada8; }
.run-state.success { background: var(--policy-green); box-shadow: 0 0 0 4px var(--policy-mint); }
.run-state.partial, .run-state.running, .run-state.queued { background: #d49a43; box-shadow: 0 0 0 4px #fff3df; }
.run-state.failed { background: #b4433f; box-shadow: 0 0 0 4px #fbeceb; }
.policy-note-card { padding: 23px; border-radius: 18px; color: #eafff3; background: #1a4e43; }
.note-mark { display: block; margin-bottom: 15px; color: #f5d78f; font-size: 21px; }
.policy-note-card h3 { margin: 0 0 7px; font-size: 16px; }
.policy-note-card p { margin: 0; color: rgba(234,255,243,.72); font-size: 10px; line-height: 1.75; }

.policy-sites-panel { margin-top: 17px; }
.policy-site-editor { margin: 12px 0; border: 1px solid #c5ddd2; border-radius: 12px; background: #f7fcf8; }
.policy-site-editor > summary { padding: 13px 15px; color: var(--policy-green); font-size: 11px; font-weight: 850; cursor: pointer; }
.policy-site-editor .source-edit-form { padding: 0 15px 16px; }
.policy-site-directory { display: grid; gap: 8px; }
.policy-directory-item { overflow: hidden; border: 1px solid var(--policy-line); border-radius: 12px; background: #fff; }
.policy-directory-item.healthy { border-color: #c7ded3; }
.policy-directory-item.error { border-color: #ebc8c5; }
.policy-directory-item > summary { display: grid; grid-template-columns: 9px minmax(180px, 1.6fr) 100px 70px 90px 14px; align-items: center; gap: 11px; min-height: 62px; padding: 9px 13px; list-style: none; cursor: pointer; }
.policy-directory-item > summary::-webkit-details-marker { display: none; }
.policy-directory-item > summary:hover, .policy-directory-item[open] > summary { background: #f8fbf9; }
.directory-status { width: 8px; height: 8px; border-radius: 50%; background: #b0bbb5; }
.directory-status.ok { background: var(--policy-green); box-shadow: 0 0 0 4px var(--policy-mint); }
.directory-status.error { background: #b4433f; box-shadow: 0 0 0 4px #fbeceb; }
.directory-status.empty, .directory-status.partial, .directory-status.unchecked { background: #d49a43; box-shadow: 0 0 0 4px #fff3df; }
.directory-name strong, .directory-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.directory-name strong { color: var(--policy-ink); font-size: 11px; }
.directory-name small { margin-top: 2px; color: var(--policy-muted); font-size: 8px; }
.directory-region, .directory-health { color: var(--policy-muted); font-size: 9px; }
.directory-count { text-align: center; }
.directory-count strong, .directory-count small { display: block; }
.directory-count strong { color: var(--policy-ink); font-size: 15px; line-height: 1; }
.directory-count small { margin-top: 3px; color: var(--policy-muted); font-size: 8px; }
.directory-health { padding: 4px 7px; border-radius: 99px; text-align: center; background: #f0f3f1; }
.policy-directory-item.healthy .directory-health { color: var(--policy-green); background: var(--policy-mint); }
.policy-directory-item.error .directory-health { color: #a03f3b; background: #fbeceb; }
.policy-directory-body { padding: 15px 16px 17px 34px; border-top: 1px solid var(--policy-line); background: #fbfdfb; }
.directory-facts { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 14px; }
.directory-facts span, .directory-facts strong { display: block; }
.directory-facts span { color: var(--policy-muted); font-size: 8px; }
.directory-facts strong, .directory-facts a { display: block; margin-top: 4px; color: var(--policy-ink); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.directory-facts a { color: var(--policy-green); font-weight: 800; text-decoration: none; }
.directory-error { display: flex; gap: 8px; margin-top: 13px; padding: 9px 11px; border-radius: 9px; color: #963d39; background: #fff0ee; font-size: 9px; }
.directory-error strong { white-space: nowrap; }
.directory-note { margin: 12px 0 0; color: var(--policy-muted); font-size: 9px; }

.policy-site-main .source-edit-form input, .policy-site-main .source-edit-form select { min-height: 36px; border-color: var(--policy-line); border-radius: 8px; }
.policy-site-main .source-edit-form label { font-size: 10px; }
.policy-site-main .source-edit-form label > span { color: var(--policy-muted); font-size: 9px; }
.policy-site-main .login-page { background: transparent; }
.policy-site-main .login-card { box-shadow: 0 20px 60px rgba(24, 72, 58, .12); }

@media (max-width: 960px) {
  .policy-layout { grid-template-columns: 1fr; gap: 14px; }
  .policy-sidebar { position: sticky; top: 0; z-index: 5; height: auto; max-height: none; overflow: visible; }
  .policy-nav { display: flex; align-items: center; gap: 10px; overflow-x: auto; padding: 8px; border-radius: 12px; }
  .policy-nav-heading { flex: 0 0 auto; padding: 4px 10px 4px 3px; border: 0; border-right: 1px solid var(--policy-line); }
  .policy-nav-heading small, .policy-nav-group h3 { display: none; }
  .policy-nav-home, .policy-nav-group { flex: 0 0 auto; margin: 0; }
  .policy-nav-home, .policy-nav-group a { min-height: 32px; white-space: nowrap; }
  .policy-nav-group { display: flex; gap: 5px; }
  .policy-nav-group a { background: #f5f8f5; }
  .policy-hero { align-items: flex-start; flex-direction: column; }
  .policy-hero-action { min-width: 190px; }
  .policy-main-grid { grid-template-columns: 1fr; }
  .policy-side-column { grid-template-columns: 1fr 1fr; }
  .policy-directory-item > summary { grid-template-columns: 9px minmax(180px, 1fr) 75px 70px 14px; }
  .directory-health { display: none; }
}
@media (max-width: 650px) {
  .policy-site-main { padding: 18px 13px 50px; }
  .policy-topbar { margin-bottom: 18px; }
  .policy-account > span { display: none; }
  .policy-hero { min-height: 0; padding: 27px 22px; border-radius: 22px; }
  .policy-hero h1 { font-size: 34px; }
  .policy-hero-action { width: 100%; }
  .policy-hero-action form, .policy-hero-action button { width: 100%; }
  .policy-stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .policy-stat-card { min-height: 116px; padding: 15px; }
  .policy-stat-card > strong { font-size: 28px; }
  .policy-stat-card > i { right: 12px; bottom: 9px; font-size: 32px; }
  .policy-topic-strip { display: block; }
  .policy-section-label { margin-bottom: 9px; }
  .policy-panel { padding: 16px 13px; border-radius: 15px; }
  .policy-filter-form { grid-template-columns: 1fr 1fr; }
  .policy-search { grid-column: 1 / -1; }
  .policy-filter-button { min-height: 36px; }
  .policy-feed-line time { margin-left: 0; }
  .policy-feed-footer { align-items: flex-start; flex-direction: column; }
  .policy-side-column { grid-template-columns: 1fr; }
  .policy-directory-item > summary { grid-template-columns: 9px minmax(0, 1fr) 56px 14px; gap: 8px; }
  .directory-region, .directory-health { display: none; }
  .policy-directory-body { padding-left: 16px; }
  .directory-facts { grid-template-columns: 1fr 1fr; gap: 12px; }
  .directory-facts > div:last-child { grid-column: 1 / -1; }
}

.focus-panel { margin-top: 18px; }
.focus-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding-bottom: 20px; border-bottom: 1px solid var(--policy-line); }
.focus-filters label { display: grid; gap: 6px; color: #52675c; font-size: 13px; flex: 1 1 150px; }
.focus-filters input, .focus-filters select { width: 100%; padding: 10px; border: 1px solid var(--policy-line); border-radius: 7px; background: white; }
.focus-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.focus-card { padding: 20px; border: 1px solid var(--policy-line); border-radius: 10px; background: #fff; margin-top: 10px; min-width: 0; }
.focus-card h3 { font-size: 17px; line-height: 1.6; margin: 12px 0 6px; }
.focus-card h3 a { color: #173c30; text-decoration: none; }
.focus-card p, .focus-action { font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.focus-card small { color: #687d71; }
.focus-labels { display: flex; flex-wrap: wrap; gap: 6px; }
.focus-labels span, .focus-labels a { font-size: 12px; padding: 4px 8px; border-radius: 5px; background: #eaf2ed; color: #245a46; text-decoration: none; }
.focus-labels .focus-level { color: #954724; background: #fff0e4; }
.focus-action { background: #f2f6f3; padding: 12px; margin: 12px 0; }
.focus-detail { display: block; font-size: 13px; color: #1e6958; }
.detail-title { font-size: 25px; line-height: 1.5; }
.focus-panel blockquote { border-left: 3px solid #a8c4b5; padding: 10px 14px; margin: 12px 0; font-size: 14px; line-height: 1.8; background: #f6f9f7; overflow-wrap: anywhere; }
.focus-panel summary { padding: 12px 0; cursor: pointer; color: #1e6958; }
.change-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.change-columns > div { min-width: 0; }
.change-columns > div:first-child blockquote { background: #fff1ed; }
.change-columns > div:last-child blockquote { background: #eaf6ee; }
.evidence-paragraph { font-size: 14px; line-height: 1.9; scroll-margin-top: 20px; overflow-wrap: anywhere; }
.evidence-paragraph:target { background: #fff1b3; outline: 2px solid #ddbb53; }
.predecessor-form { display: grid; gap: 12px; max-width: 700px; }
.predecessor-form label { display: grid; gap: 6px; }
.predecessor-form textarea { min-height: 90px; }
@media(max-width: 780px) { .focus-list, .change-columns { grid-template-columns: 1fr; } }

/* Live policy workspace */
#focus { border-radius: 16px; box-shadow: 0 8px 32px #163b3508; }
#focus .policy-panel-heading h2 { font-size: 23px; letter-spacing: -.02em; }
#focus .policy-panel-heading p { font-size: 13px; }
.results-count { white-space: nowrap; padding: 9px 13px; border: 1px solid #dce7df; border-radius: 9px; color: #52675c; font-size: 13px; }
.results-count b { color: #173c30; font-size: 19px; }
.watch-coverage { margin-bottom: 16px; font-size: 13px; color: #697c70; }
.focus-filters { background: #f5f8f6; border: 1px solid #e3ebe6; padding: 16px; border-radius: 12px; gap: 12px; }
.focus-filters .focus-search-label { order: -1; flex: 1 1 100%; }
.focus-search-label input { font-size: 16px; padding: 13px 16px; background: white; }
.focus-filters select { min-height: 42px; font-size: 14px; cursor: pointer; }
.focus-filters input:focus, .focus-filters select:focus { outline: 2px solid #6a9c87; outline-offset: 2px; }
.live-enabled .filter-submit { display: none; }
.filter-feedback { min-height: 42px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
#active-filters { display: flex; flex-wrap: wrap; gap: 7px; }
#active-filters button { border: 1px solid #bfd6c9; border-radius: 20px; padding: 6px 10px; background: #edf5ef; color: #255c45; cursor: pointer; }
#filter-status { font-size: 12px; color: #6e8076; margin-left: auto; }
#filter-retry { color: #923e24; background: #fff0e7; padding: 6px 12px; border: 1px solid #edc7b4; border-radius: 6px; cursor: pointer; }
#policy-results { transition: opacity 150ms ease; min-height: 180px; }
.filter-loading #policy-results { opacity: .45; pointer-events: none; }
.filter-loading #filter-status::before { content: ''; display: inline-block; width: 10px; height: 10px; border: 2px solid #c4d8cc; border-top-color: #22654a; border-radius: 50%; margin-right: 7px; animation: policy-spin .7s linear infinite; }
@keyframes policy-spin { to { transform: rotate(360deg); } }
#policy-results .focus-list { margin-top: 0; gap: 18px; }
#policy-results .focus-card { display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
#policy-results .focus-card:hover { border-color: #96b7a4; box-shadow: 0 6px 22px #204c3610; }
#policy-results .focus-card h3 { font-size: 18px; }
#policy-results .focus-card > p { color: #53685a; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
#policy-results .focus-labels a:hover { background: #cee5d7; }
#policy-results .focus-detail { margin-top: auto; padding-top: 12px; font-weight: 600; text-decoration: none; }
.focus-pagination { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 24px 0 6px; font-size: 14px; }
.focus-pagination a { padding: 9px 14px; border: 1px solid #d4e2d8; border-radius: 8px; color: #22563f; text-decoration: none; }
.focus-empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: #6e8076; background: #f8faf8; border-radius: 12px; }
.focus-empty strong { font-size: 18px; color: #284838; }
@media(max-width: 650px) { #focus .policy-panel-heading h2 { font-size: 18px; } .focus-filters { padding: 12px; } .focus-filters label { flex-basis: 120px; } .results-count { padding: 7px; font-size: 11px; } }
@media(prefers-reduced-motion: reduce) { #policy-results, #policy-results .focus-card { transition: none; } .filter-loading #filter-status::before { animation: none; } }

/* Homepage overview: the feed remains a separate reading workspace. */
.policy-dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; padding: 4px 0 16px; border-bottom: 1px solid var(--policy-line); }
.policy-dashboard-heading h1 { margin: 7px 0 4px; color: var(--policy-ink); font-size: clamp(25px, 3vw, 34px); letter-spacing: -.05em; }
.policy-dashboard-heading p { margin: 0; color: var(--policy-muted); font-size: 11px; }
.policy-dashboard-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.policy-dashboard-actions form { margin: 0; }
.policy-secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 13px; border: 1px solid var(--policy-line); border-radius: 10px; color: var(--policy-green-deep); background: #fff; font-size: 10px; font-weight: 800; text-decoration: none; }
.policy-secondary-button:hover { border-color: #a8c9b7; background: var(--policy-mint); }
.policy-dashboard-heading + .policy-live-status { margin-top: 14px; }
.dashboard-stats { margin-top: 15px; }
.dashboard-stats .policy-stat-card { min-height: 118px; padding: 16px; }
.dashboard-stats .policy-stat-card > strong { font-size: 31px; }
.dashboard-stats .policy-stat-card > strong em { margin-left: 2px; color: #9baaa1; font-size: 12px; font-style: normal; letter-spacing: 0; }
.policy-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .72fr); gap: 14px; align-items: start; margin-top: 14px; }
.policy-dashboard-grid .policy-panel { min-width: 0; }
.dashboard-recent-list { display: grid; gap: 2px; }
.dashboard-recent-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 10px 0; border-top: 1px solid #edf1ee; color: var(--policy-ink); text-decoration: none; }
.dashboard-recent-item > div { min-width: 0; }
.dashboard-recent-item span, .dashboard-recent-item strong, .dashboard-recent-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-recent-item span { color: #8a9991; font-size: 9px; }
.dashboard-recent-item strong { margin-top: 4px; font-size: 11px; }
.dashboard-recent-item small { margin-top: 3px; color: #7f9085; font-size: 9px; }
.dashboard-recent-item > b { flex: 0 0 auto; padding: 4px 6px; border-radius: 5px; color: #587365; background: var(--policy-mint); font-size: 9px; }
.dashboard-recent-item:hover strong, .dashboard-text-link:hover { color: var(--policy-green); }
.policy-dashboard-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.policy-dashboard-side > * { min-width: 0; }
.policy-dashboard-side .policy-panel { margin: 0; }
.dashboard-priority-item { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 8px; align-items: start; padding: 9px 0; border-top: 1px solid #edf1ee; color: var(--policy-ink); text-decoration: none; }
.dashboard-priority-item > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #a15b36; background: #fff1e8; font-size: 11px; font-weight: 850; }
.dashboard-priority-item strong, .dashboard-priority-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-priority-item strong { font-size: 10px; }
.dashboard-priority-item small { margin-top: 3px; color: var(--policy-muted); font-size: 9px; }
.dashboard-text-link { color: var(--policy-green); font-size: 10px; font-weight: 800; text-decoration: none; }
.dashboard-run-summary { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px; background: #f5f9f5; }
.dashboard-run-summary strong, .dashboard-run-summary small { display: block; }
.dashboard-run-summary strong { color: var(--policy-ink); font-size: 10px; }
.dashboard-run-summary small { margin-top: 3px; color: var(--policy-muted); font-size: 9px; }
.dashboard-run-message { margin: 9px 0 0; color: var(--policy-muted); font-size: 9px; line-height: 1.6; }
.dashboard-muted { color: var(--policy-muted); font-size: 10px; line-height: 1.7; }
.dashboard-topic-panel { margin-top: 14px; }
.dashboard-topic-list { display: flex; flex-wrap: wrap; gap: 7px; }
.dashboard-topic-list a { min-width: 125px; padding: 9px 11px; border: 1px solid var(--policy-line); border-radius: 9px; color: var(--policy-ink); background: #fbfdfb; text-decoration: none; }
.dashboard-topic-list a:hover { border-color: #add0bd; background: var(--policy-mint); }
.dashboard-topic-list strong, .dashboard-topic-list small { display: block; }
.dashboard-topic-list strong { font-size: 10px; }
.dashboard-topic-list small { margin-top: 3px; color: var(--policy-muted); font-size: 8px; }

@media (max-width: 780px) {
  .policy-dashboard-heading { align-items: flex-start; flex-direction: column; }
  .policy-dashboard-actions { width: 100%; }
  .policy-dashboard-actions > *, .policy-dashboard-actions form, .policy-dashboard-actions button { flex: 1; width: 100%; }
  .policy-dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .dashboard-stats { grid-template-columns: 1fr 1fr; gap: 7px; }
  .dashboard-stats .policy-stat-card { min-height: 105px; padding: 12px; }
  .dashboard-stats .policy-stat-card > strong { font-size: 26px; }
  .dashboard-recent-item { align-items: flex-start; }
  .dashboard-recent-item > b { max-width: 58px; white-space: normal; }
  .dashboard-topic-list a { min-width: calc(50% - 4px); }
}

/* Data dashboard charts. All values are calculated from policy_items/policy_sites. */
.policy-dashboard-charts { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 14px; margin-top: 14px; }
.policy-chart-panel { min-width: 0; margin: 0; }
.policy-chart-panel .policy-panel-heading { align-items: center; }
.policy-chart-total { padding: 5px 8px; border-radius: 99px; color: var(--policy-green); background: var(--policy-mint); font-size: 9px; font-weight: 850; white-space: nowrap; }
.policy-column-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; gap: 9px; height: 164px; padding: 4px 3px 0; border-bottom: 1px solid var(--policy-line); }
.policy-column-item { min-width: 0; height: 100%; display: grid; grid-template-rows: 22px minmax(0, 1fr) 21px; align-items: end; text-align: center; }
.policy-column-value { color: var(--policy-ink); font-size: 9px; font-weight: 850; }
.policy-column-track { position: relative; height: 118px; display: flex; align-items: flex-end; border-radius: 6px 6px 0 0; background: repeating-linear-gradient(to top, transparent 0 28px, #edf3ef 29px 30px); }
.policy-column-track i { display: block; width: 100%; min-height: 3px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #4b9e7d, var(--policy-green)); box-shadow: 0 3px 8px rgba(30,105,88,.12); }
.policy-column-item small { color: #83928a; font-size: 9px; }
.policy-donut-layout { display: flex; align-items: center; gap: 18px; min-height: 164px; }
.policy-donut { position: relative; width: 126px; height: 126px; flex: 0 0 126px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--policy-green) 0 var(--coverage), #e7eee9 var(--coverage) 100%); }
.policy-donut::after { position: absolute; inset: 16px; content: ""; border-radius: 50%; background: #fff; }
.policy-donut > span { position: relative; z-index: 1; color: var(--policy-ink); font-size: 27px; font-weight: 900; letter-spacing: -.06em; }
.policy-donut > span small { margin-left: 1px; color: var(--policy-muted); font-size: 11px; letter-spacing: 0; }
.policy-donut-legend { min-width: 0; flex: 1; }
.policy-donut-legend > div { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 7px; align-items: center; padding: 5px 0; border-bottom: 1px solid #edf1ee; }
.policy-donut-legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--policy-green); }
.policy-donut-legend i.pending { background: #d9e4dd; }
.policy-donut-legend span { color: var(--policy-muted); font-size: 9px; }
.policy-donut-legend strong { color: var(--policy-ink); font-size: 11px; }
.policy-donut-legend a { display: inline-block; margin-top: 12px; color: var(--policy-green); font-size: 9px; font-weight: 850; text-decoration: none; }
.policy-health-mini { margin-top: 8px; padding-top: 9px; border-top: 1px solid #edf1ee; }
.policy-health-mini > span { display: block; margin-bottom: 6px; color: #83928a; font-size: 9px; font-weight: 850; }
.policy-health-row { display: grid; grid-template-columns: 45px minmax(0,1fr) 25px; gap: 7px; align-items: center; margin-top: 5px; }
.policy-health-row b { color: #50665a; font-size: 9px; font-weight: 650; }
.policy-health-row > div { height: 6px; overflow: hidden; border-radius: 99px; background: #edf2ef; }
.policy-health-row i { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: var(--policy-green); }
.policy-health-row i.warning { background: var(--policy-orange); }
.policy-health-row i.muted { background: #a6bbb0; }
.policy-health-row strong { color: var(--policy-ink); font-size: 9px; text-align: right; }
.policy-horizontal-chart { display: grid; gap: 11px; padding-top: 2px; }
.policy-horizontal-row { display: grid; grid-template-columns: 87px minmax(0,1fr) 30px; align-items: center; gap: 9px; color: var(--policy-ink); text-decoration: none; }
.policy-horizontal-row > span { overflow: hidden; color: #50665a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.policy-horizontal-row > div { height: 9px; overflow: hidden; border-radius: 99px; background: #edf2ef; }
.policy-horizontal-row i { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: var(--policy-green); }
.policy-horizontal-row i.high, .policy-horizontal-row i.warning { background: var(--policy-orange); }
.policy-horizontal-row i.medium { background: #c39a45; }
.policy-horizontal-row i.low, .policy-horizontal-row i.muted { background: #a6bbb0; }
.policy-horizontal-row > strong { color: var(--policy-ink); font-size: 11px; text-align: right; }
.policy-horizontal-row:hover > span { color: var(--policy-green); }
.topic-chart { gap: 8px; }
.topic-chart .policy-horizontal-row { grid-template-columns: minmax(90px, 1.15fr) minmax(0, 1fr) 25px; }

.is-detail-card { cursor: pointer; }
.is-detail-card:focus-visible { outline: 3px solid rgba(30,105,88,.28); outline-offset: 3px; }
.policy-feed-card.is-detail-card:hover, #policy-results .focus-card.is-detail-card:hover { transform: translateY(-1px); }

@media (max-width: 780px) {
  .policy-dashboard-charts { grid-template-columns: 1fr 1fr; }
  .policy-chart-wide { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .policy-dashboard-charts { grid-template-columns: 1fr; gap: 9px; }
  .policy-chart-wide { grid-column: auto; }
  .policy-column-chart { gap: 5px; }
  .policy-donut-layout { gap: 12px; }
  .policy-donut { width: 108px; height: 108px; flex-basis: 108px; }
  .policy-donut::after { inset: 14px; }
  .policy-horizontal-row { grid-template-columns: 80px minmax(0,1fr) 28px; gap: 7px; }
}

/* Content-first home: useful signals replace the decorative hero. */
.policy-command-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 4px 0 20px; border-bottom: 1px solid var(--policy-line); }
.policy-command-bar h1 { margin: 8px 0 5px; color: var(--policy-ink); font-size: clamp(26px, 3.5vw, 40px); letter-spacing: -.055em; }
.policy-command-bar p { max-width: 600px; margin: 0; color: var(--policy-muted); font-size: 11px; }
.policy-command-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.policy-command-actions > div { min-width: 66px; padding-left: 13px; border-left: 1px solid var(--policy-line); }
.policy-command-actions > div strong, .policy-command-actions > div span { display: block; }
.policy-command-actions > div strong { color: var(--policy-ink); font-size: 22px; line-height: 1; letter-spacing: -.05em; }
.policy-command-actions > div span { margin-top: 5px; color: var(--policy-muted); font-size: 9px; white-space: nowrap; }
.policy-command-actions .policy-primary-button { min-height: 38px; padding: 8px 13px; color: #fff; background: var(--policy-green); }
.policy-command-actions .policy-primary-button:hover { background: var(--policy-green-deep); }
.policy-highlights { margin-top: 19px; }
.policy-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.policy-section-heading h2 { margin: 5px 0 3px; color: var(--policy-ink); font-size: 20px; letter-spacing: -.04em; }
.policy-section-heading p { margin: 0; color: var(--policy-muted); font-size: 10px; }
.policy-highlight-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.policy-highlight-card { min-width: 0; min-height: 278px; padding: 15px; border: 1px solid var(--policy-line); border-top: 3px solid #9dbeb0; border-radius: 14px; background: #fff; box-shadow: 0 7px 18px rgba(37, 69, 57, .045); }
.policy-highlight-card.importance-high { border-top-color: var(--policy-orange); }
.policy-highlight-card.importance-medium { border-top-color: #d1a74d; }
.highlight-top, .highlight-meta, .highlight-footer { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.importance-badge, .score-badge, .content-badge { padding: 4px 7px; border-radius: 99px; font-size: 8px; font-weight: 850; white-space: nowrap; }
.importance-badge { color: #9c4d2a; background: #fff0e5; }
.importance-medium .importance-badge { color: #87671f; background: #fff4d9; }
.importance-low .importance-badge { color: #4a7666; background: var(--policy-mint); }
.score-badge { color: var(--policy-green); background: #eef5f0; }
.score-badge strong { font-size: 13px; }
.policy-highlight-card h3 { min-height: 62px; margin: 14px 0 8px; font-size: 12px; line-height: 1.55; }
.policy-highlight-card h3 a { color: var(--policy-ink); text-decoration: none; }
.policy-highlight-card h3 a:hover { color: var(--policy-green); }
.highlight-meta { align-items: flex-start; flex-direction: column; color: var(--policy-muted); font-size: 8px; }
.highlight-meta b { color: #aa6036; font-weight: 800; }
.policy-highlight-card > p { min-height: 58px; margin: 12px 0 7px; color: #5c6d65; font-size: 9px; line-height: 1.65; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.policy-highlight-card > p.muted-copy { color: var(--policy-muted); }
.highlight-points { min-height: 44px; margin: 7px 0 10px; padding-left: 15px; color: #506a60; font-size: 8px; line-height: 1.6; }
.highlight-points li { margin: 2px 0; }
.highlight-footer { margin-top: auto; padding-top: 10px; border-top: 1px solid #edf1ed; }
.content-badge { color: var(--policy-muted); background: #f0f3f1; }
.content-badge.ok { color: var(--policy-green); background: var(--policy-mint); }
.content-badge.error { color: #a03f3b; background: #fbeceb; }
.highlight-footer a { color: var(--policy-green); font-size: 9px; font-weight: 800; text-decoration: none; }
.highlight-footer a:hover { color: var(--policy-orange); }
.compact-stats { margin-top: 17px; }
.compact-stats .policy-stat-card { min-height: 104px; padding: 15px 17px; }
.compact-stats .policy-stat-card > strong { margin-top: 7px; font-size: 28px; }

.importance-inline { padding: 3px 7px; border-radius: 99px; color: #9c4d2a; background: #fff0e5; font-size: 8px; font-weight: 850; }
.importance-inline.medium { color: #87671f; background: #fff4d9; }
.importance-inline.low { color: #4a7666; background: var(--policy-mint); }
.policy-deadline { display: inline-flex; align-items: center; gap: 7px; margin: 8px 0 2px; padding: 5px 8px; border-radius: 7px; color: #9c4d2a; background: #fff5eb; font-size: 9px; }
.policy-deadline span { color: #b97953; }
.policy-deadline strong { font-weight: 850; }
.policy-summary-block { margin-top: 9px; padding: 9px 11px; border-left: 2px solid #c3d9ce; background: #f7faf7; }
.policy-summary-block > span { display: block; margin-bottom: 4px; color: var(--policy-green); font-size: 8px; font-weight: 850; letter-spacing: .08em; }
.policy-summary-block p { margin: 0; color: #53675d; font-size: 10px; line-height: 1.65; }
.policy-key-points { margin: 9px 0 0; padding: 0 0 0 15px; color: #53675d; font-size: 9px; line-height: 1.65; }
.policy-key-points li { margin: 2px 0; }
.policy-content-details { margin-top: 10px; border-top: 1px dashed #d9e4dd; }
.policy-content-details summary { padding: 9px 0 0; color: var(--policy-green); font-size: 9px; font-weight: 800; cursor: pointer; }
.policy-content-text { max-height: 340px; overflow: auto; padding: 10px; margin-top: 8px; border-radius: 8px; color: #4e6258; background: #f7faf7; font-size: 10px; line-height: 1.8; white-space: pre-wrap; }
.policy-content-missing { margin-top: 10px; color: #a36c35; font-size: 9px; }

@media (max-width: 1180px) {
  .policy-highlight-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .policy-command-bar { align-items: flex-start; flex-direction: column; }
  .policy-command-actions { width: 100%; }
  .policy-command-actions > div { flex: 1 1 0; }
  .policy-highlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .policy-command-actions { gap: 8px; }
  .policy-command-actions > div { min-width: 0; padding-left: 8px; }
  .policy-command-actions .policy-primary-button { width: 100%; }
  .policy-command-actions form { flex: 1 1 100%; }
  .policy-highlight-grid { grid-template-columns: 1fr; }
  .policy-highlight-card { min-height: 0; }
  .policy-highlight-card h3 { min-height: 0; }
  .policy-highlight-card > p, .highlight-points { min-height: 0; }
}

/* Document reader: the detail page keeps the brief beside the source text. */
.policy-nav-toggle { display: none; border: 1px solid var(--policy-line); border-radius: 8px; padding: 8px 11px; color: var(--policy-green-deep); background: #fff; cursor: pointer; font-size: 12px; font-weight: 750; }
.policy-detail-page .policy-nav-toggle { display: inline-flex; align-items: center; gap: 6px; }
.policy-nav-backdrop { display: none; }
.policy-detail-page .policy-layout { grid-template-columns: 1fr; }
.policy-detail-page .policy-sidebar { display: none; }
.policy-reader-topbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.policy-reader-topbar .policy-topbar-left { min-width: 0; }
.policy-topbar-reader-title { min-width: 0; max-width: min(760px, 100%); margin: 0; justify-self: center; overflow: hidden; color: var(--policy-ink); font-size: clamp(13px, 1.35vw, 18px); font-weight: 850; line-height: 1.25; letter-spacing: -.025em; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.policy-detail-page.policy-nav-open .policy-sidebar { display: block; position: fixed; z-index: 20; top: 80px; left: max(18px, calc((100vw - 1540px) / 2 + 18px)); width: 232px; height: calc(100vh - 98px); max-height: calc(100vh - 98px); }
.policy-detail-page.policy-nav-open .policy-nav-backdrop { display: block; position: fixed; z-index: 15; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(13,36,29,.24); cursor: default; }
.policy-detail-page.policy-nav-open .policy-sidebar .policy-nav { box-shadow: 0 18px 45px rgba(16,62,55,.22); }
.reader-backbar { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; color: #7a8c81; font-size: 12px; }
.reader-backbar a { color: var(--policy-green); text-decoration: none; font-weight: 700; }
.reader-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-top: 0; }
.reader-heading-compact { padding-top: 11px; padding-bottom: 11px; }
.reader-heading-compact .reader-heading-main { min-width: 0; }
.reader-heading-compact .reader-heading-main p { margin-top: 4px; }
.reader-heading h1 { margin: 8px 0; max-width: 850px; color: var(--policy-ink); font-size: clamp(24px, 3vw, 36px); line-height: 1.45; letter-spacing: -.04em; }
.reader-heading p { margin: 0; color: var(--policy-muted); font-size: 12px; }
.reader-heading p a { color: var(--policy-green); font-weight: 750; }
.reader-heading-score { flex: 0 0 110px; padding: 12px; border-left: 1px solid var(--policy-line); text-align: center; }
.reader-heading-score strong, .reader-heading-score span { display: block; }
.reader-heading-score strong { color: var(--policy-green-deep); font-size: 34px; line-height: 1; }
.reader-heading-score span { margin-top: 6px; color: var(--policy-muted); font-size: 10px; }
.reader-layout { display: grid; grid-template-columns: minmax(250px, .58fr) minmax(0, 1.82fr); gap: 14px; align-items: start; margin-top: 12px; }
.reader-brief { min-width: 0; max-height: calc(100vh - 135px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #b6cec0 transparent; }
.reader-brief-card { padding: 20px; border: 1px solid var(--policy-line); border-radius: 15px; background: #fff; }
.reader-brief-title, .reader-source-toolbar, .reader-finding-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.reader-brief-title h2 { margin: 5px 0 0; color: var(--policy-ink); font-size: 21px; }
.reader-read-label { padding: 5px 8px; border-radius: 5px; color: #36705a; background: #e9f4ed; font-size: 10px; }
.reader-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.reader-tags span, .reader-change-counts span { padding: 5px 8px; border-radius: 5px; color: #557466; background: #edf4ef; font-size: 10px; }
.reader-tags .reader-score-tag { color: #9b4d2a; background: #fff0e5; font-weight: 800; }
.reader-scope { margin: 14px 0; color: #5d7165; font-size: 12px; line-height: 1.8; }
.reader-section-label { margin: 18px 0 8px; padding-top: 13px; border-top: 1px solid #e7eee9; color: #86978d; font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.reader-findings { display: grid; gap: 9px; }
.reader-finding { padding: 12px; border: 1px solid #e1ebe4; border-radius: 9px; background: #f9fbf9; }
.reader-finding-head strong { color: var(--policy-ink); font-size: 13px; }
.reader-finding-head small { color: var(--policy-muted); font-size: 10px; }
.reader-finding p { margin: 6px 0 8px; color: #596f62; font-size: 11px; line-height: 1.75; }
.reader-evidence-links { display: flex; flex-wrap: wrap; gap: 6px; }
.reader-evidence-links a { color: var(--policy-green); font-size: 10px; font-weight: 750; text-decoration: none; }
.reader-muted { color: var(--policy-muted); font-size: 12px; line-height: 1.8; }
.reader-version-summary { display: grid; gap: 5px; padding: 10px 11px; border-radius: 8px; background: #f5f8f5; }
.reader-main-summary { margin: 8px 0; color: var(--policy-ink); font-size: 12px; line-height: 1.65; font-weight: 700; }
.reader-version-summary strong { color: var(--policy-ink); font-size: 11px; }
.reader-version-summary span { color: var(--policy-muted); font-size: 10px; }
.reader-version-summary a { color: var(--policy-green); font-weight: 750; text-decoration: none; }
.reader-change-counts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.reader-review-box { margin-top: 18px; border-top: 1px solid #e7eee9; color: #687b70; font-size: 11px; }
.reader-review-box summary { padding: 12px 0; color: var(--policy-green); font-weight: 750; cursor: pointer; }
.reader-review-box p { line-height: 1.7; }
.reader-source { min-width: 0; height: calc(100vh - 135px); max-height: calc(100vh - 135px); overflow-y: auto; border: 1px solid var(--policy-line); border-radius: 15px; background: #fff; box-shadow: 0 8px 25px rgba(37,69,57,.045); scrollbar-width: thin; scrollbar-color: #b6cec0 transparent; }
.reader-source-toolbar { position: sticky; top: 0; z-index: 2; padding: 15px 22px; border-bottom: 1px solid #e6ede8; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); }
.reader-source-toolbar strong, .reader-source-toolbar span, .reader-source-toolbar a { display: block; }
.reader-source-toolbar strong { margin-top: 4px; color: var(--policy-ink); font-size: 15px; }
.reader-source-toolbar > div:last-child { display: flex; align-items: center; gap: 12px; color: var(--policy-muted); font-size: 10px; }
.reader-source-toolbar > div:last-child a { color: var(--policy-green); text-decoration: none; font-weight: 750; }
.reader-document { padding: 25px clamp(22px, 4vw, 54px) 45px; }
.reader-document-meta { display: flex; flex-wrap: wrap; gap: 9px 15px; padding-bottom: 17px; margin-bottom: 8px; border-bottom: 1px solid #e9efeb; color: var(--policy-muted); font-size: 10px; }
.reader-document-meta a { color: var(--policy-green); font-weight: 750; text-decoration: none; }
.reader-paragraph { position: relative; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; margin: 0; padding: 9px 0; color: #3f5548; font-family: Georgia, 'Noto Serif SC', serif; font-size: 15px; line-height: 2.05; overflow-wrap: anywhere; scroll-margin-top: 72px; }
.paragraph-number { align-self: start; padding-top: 3px; color: #9cad9f; font-family: system-ui, sans-serif; font-size: 10px; line-height: 1.2; text-align: right; text-decoration: none; }
.reader-paragraph:hover .paragraph-number, .paragraph-number:hover { color: var(--policy-green); }
.reader-paragraph:target { background: #fffbea; box-shadow: inset 3px 0 #dfb849; }
.reader-citation-flash { animation: reader-flash 1.5s ease; }
@keyframes reader-flash { 0%,100% { background: #fffbea; } 30% { background: #ffe49b; } }
.reader-no-source { padding: 70px 30px; text-align: center; color: var(--policy-muted); }
.reader-no-source strong { color: var(--policy-ink); font-size: 16px; }
.reader-no-source p { font-size: 12px; }
.reader-no-source a { color: var(--policy-green); font-size: 12px; font-weight: 750; }
.reader-comparison { border-top: 9px solid #f3f6f3; padding-bottom: 32px; }
.reader-comparison-note { margin: 18px 22px; padding: 11px 13px; border-left: 3px solid #c6d8cb; color: #667a6e; background: #f5f8f5; font-size: 11px; line-height: 1.7; }
.reader-change-row { padding: 16px 22px; border-top: 1px solid #e8eee9; }
.reader-change-row h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; color: var(--policy-ink); font-size: 14px; }
.reader-change-row h3 > span { padding: 4px 8px; border-radius: 5px; color: #9a4d2a; background: #fff0e6; font-size: 11px; }
.reader-change-row h3 small { padding: 4px 7px; border-radius: 5px; color: #557466; background: #edf4ef; font-size: 10px; font-weight: 500; }
.reader-change-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reader-change-columns > div { min-width: 0; }
.reader-change-columns > div > strong { display: block; color: #84958b; font-size: 10px; }
.reader-change-columns blockquote { margin: 7px 0; padding: 9px 11px; border-left: 3px solid #e2b1a1; color: #52665a; background: #fff5f1; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.reader-change-columns > div:last-child blockquote { border-color: #a9ceb6; background: #f1f9f3; }
.reader-change-columns blockquote a { color: var(--policy-green); font-size: 10px; font-weight: 750; text-decoration: none; }
.reader-impact { margin: 10px 0 0; padding: 8px 10px; color: #52695a; background: #f5f8f5; font-size: 11px; line-height: 1.7; }
.reader-archive { margin: 0 22px 14px; border: 1px solid #e0e9e2; border-radius: 8px; }
.reader-archive summary { padding: 12px 14px; color: var(--policy-green); font-size: 12px; font-weight: 750; cursor: pointer; }
.reader-archive-meta { padding: 0 22px; font-size: 10px; }.reader-archive-meta a { color: var(--policy-green); }
.reader-archive .reader-paragraph { margin: 0 22px; font-size: 13px; }
@media (max-width: 1100px) { .reader-layout { grid-template-columns: minmax(240px, .65fr) minmax(0, 1.5fr); } .reader-paragraph { font-size: 14px; } }
@media (max-width: 960px) { .policy-detail-page.policy-nav-open .policy-sidebar { position: fixed; top: 70px; left: 13px; width: min(232px, calc(100vw - 26px)); height: calc(100vh - 84px); max-height: calc(100vh - 84px); overflow-y: auto; } }
@media (max-width: 780px) { .policy-reader-topbar { grid-template-columns: auto minmax(0,1fr) auto; gap: 8px; } .policy-reader-topbar .policy-topbar-left { gap: 6px; } .policy-topbar-reader-title { font-size: 12px; } .reader-heading { display: block; } .reader-heading-score { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 15px; padding: 9px 0 0; border-left: 0; border-top: 1px solid var(--policy-line); text-align: left; } .reader-heading-score strong { font-size: 27px; } .reader-layout { display: block; } .reader-brief { max-height: none; overflow: visible; } .reader-source { height: auto; max-height: none; margin-top: 14px; border-radius: 12px; } .reader-document { padding: 20px 15px 32px; } .reader-paragraph { grid-template-columns: 23px minmax(0,1fr); gap: 7px; font-size: 14px; line-height: 1.9; } .reader-change-columns { grid-template-columns: 1fr; } .reader-change-row { padding: 14px 15px; } .reader-comparison-note { margin: 14px 15px; } .reader-archive { margin-left: 15px; margin-right: 15px; } }

/* Compact density: keep the information hierarchy while giving content more room. */
.policy-site-main { padding: 18px clamp(16px, 3vw, 42px) 54px; }
.policy-topbar { gap: 16px; margin-bottom: 16px; }
.policy-brand { gap: 8px; }
.policy-brand-mark { width: 34px; height: 34px; border-radius: 10px 10px 10px 4px; box-shadow: 4px 4px 0 rgba(30, 105, 88, .11); font-size: 16px; }
.policy-brand strong { font-size: 14px; }
.policy-brand small { margin-top: 1px; font-size: 9px; }
.policy-account { gap: 10px; font-size: 11px; }
.policy-account a { padding: 6px 9px; }
.policy-layout { grid-template-columns: 204px minmax(0, 1fr); gap: 16px; }
.policy-sidebar { top: 12px; height: calc(100vh - 24px); max-height: calc(100vh - 24px); }
.policy-nav { padding: 10px 8px 12px; border-radius: 12px; }
.policy-nav-heading { gap: 7px; padding: 2px 5px 10px; }
.policy-nav-mark { width: 24px; height: 24px; border-radius: 7px; font-size: 12px; }
.policy-nav-heading strong { font-size: 12px; }
.policy-nav-heading small { margin-top: 1px; font-size: 9px; }
.policy-nav-home, .policy-nav-group a { gap: 6px; min-height: 28px; padding: 5px 6px; }
.policy-nav-home { margin: 8px 0 5px; }
.policy-nav-home span { font-size: 14px; }
.policy-nav-home strong, .policy-nav-group a strong { font-size: 10px; }
.policy-nav-home em, .policy-nav-group a em { min-width: 18px; padding: 2px 4px; font-size: 8px; }
.policy-nav-group { margin-top: 10px; }
.policy-nav-group h3 { margin: 0 6px 3px; font-size: 8px; }
.policy-nav-group a { min-height: 26px; }
.policy-hero { min-height: 190px; padding: clamp(22px, 3vw, 34px); border-radius: 20px; }
.policy-hero h1 { margin: 8px 0; font-size: clamp(26px, 3.2vw, 42px); }
.policy-hero p { font-size: 12px; line-height: 1.65; }
.policy-hero-meta { margin-top: 17px; }
.policy-hero-action { min-width: 150px; padding: 13px; border-radius: 12px; }
.policy-primary-button { min-height: 36px; padding: 7px 11px; }
.policy-alert, .policy-live-status { margin: 11px 0; padding: 9px 12px; font-size: 11px; }
.policy-stat-grid { gap: 10px; margin: 12px 0; }
.policy-stat-card { min-height: 96px; padding: 13px 14px 12px; border-radius: 13px; }
.policy-stat-card > span { font-size: 10px; }
.policy-stat-card > strong { margin: 7px 0 3px; font-size: 28px; }
.policy-stat-card > small { font-size: 9px; }
.policy-stat-card > i { right: 13px; bottom: 10px; font-size: 32px; }
.policy-topic-strip { gap: 14px; padding: 10px 0 12px; }
.policy-topic { padding: 6px 9px; border-radius: 8px; }
.policy-main-grid { gap: 12px; margin-top: 12px; }
.policy-panel { padding: 16px; border-radius: 14px; }
.policy-panel-heading { gap: 12px; margin-bottom: 12px; }
.policy-panel-heading h2 { margin: 4px 0 3px; font-size: 17px; }
.policy-count-badge, .policy-live-label { padding: 5px 8px; font-size: 8px; }
.policy-filter-form { gap: 6px; margin-bottom: 10px; }
.policy-filter-form select, .policy-search, .policy-filter-button { min-height: 34px; border-radius: 8px; }
.policy-search { padding: 0 9px; }
.policy-filter-form select { padding: 0 8px; font-size: 9px; }
.policy-filter-button { padding: 0 11px; font-size: 9px; }
.policy-feed-list { gap: 7px; }
.policy-feed-card { padding: 13px 14px; border-radius: 11px; }
.policy-feed-card.unread { padding-left: 12px; }
.policy-feed-card h3 { margin: 6px 0 4px; font-size: 13px; }
.policy-feed-footer { margin-top: 8px; }
.policy-side-column { gap: 12px; }
.policy-run-item { min-height: 55px; padding: 8px 0; }
.policy-note-card { padding: 17px; border-radius: 14px; }
.policy-sites-panel { margin-top: 12px; }
.policy-directory-item > summary { min-height: 54px; padding: 7px 10px; gap: 8px; }
.policy-directory-body { padding: 12px 13px 13px 29px; }

#focus .policy-panel-heading h2 { font-size: 18px; }
#focus .policy-panel-heading p { font-size: 11px; }
.results-count { padding: 6px 9px; font-size: 11px; }
.results-count b { font-size: 16px; }
.watch-coverage { margin-bottom: 10px; font-size: 11px; }
.focus-filters { gap: 8px; padding: 11px; border-radius: 10px; }
.focus-filters label { gap: 4px; font-size: 11px; }
.focus-filters input, .focus-filters select { padding: 8px; font-size: 12px; }
.focus-search-label input { padding: 9px 11px; font-size: 13px; }
.focus-filters select { min-height: 34px; font-size: 12px; }
.filter-feedback { min-height: 32px; gap: 8px; margin-top: 8px; }
#active-filters { gap: 5px; }
#active-filters button { padding: 4px 8px; font-size: 11px; }
#filter-status { font-size: 11px; }
#policy-results .focus-list { gap: 10px; }
#policy-results .focus-card { padding: 14px; border-radius: 9px; }
#policy-results .focus-card h3 { font-size: 15px; line-height: 1.45; }
#policy-results .focus-card > p, .focus-action { font-size: 12px; line-height: 1.65; }
#policy-results .focus-card > p { -webkit-line-clamp: 3; }
#policy-results .focus-detail { padding-top: 8px; font-size: 11px; }
.focus-labels { gap: 4px; }
.focus-labels span, .focus-labels a { padding: 3px 6px; font-size: 10px; }
.focus-pagination { gap: 16px; padding: 16px 0 4px; font-size: 12px; }
.focus-pagination a { padding: 7px 10px; }

.policy-command-bar { gap: 16px; padding-bottom: 12px; }
.policy-command-bar h1 { margin: 5px 0 3px; font-size: clamp(23px, 2.8vw, 32px); }
.policy-command-bar p { font-size: 10px; }
.policy-command-actions { gap: 10px; }
.policy-command-actions > div { min-width: 58px; padding-left: 9px; }
.policy-command-actions > div strong { font-size: 18px; }
.policy-command-actions > div span { margin-top: 3px; font-size: 8px; }
.policy-command-actions .policy-primary-button { min-height: 34px; padding: 7px 10px; }
.policy-highlights { margin-top: 14px; }
.policy-section-heading { gap: 12px; margin-bottom: 9px; }
.policy-section-heading h2 { margin: 4px 0 2px; font-size: 17px; }
.policy-section-heading p { font-size: 9px; }
.policy-highlight-card { min-height: 235px; padding: 12px; border-radius: 11px; }
.policy-highlight-card h3 { min-height: 52px; margin: 10px 0 6px; font-size: 11px; }
.policy-highlight-card > p { min-height: 49px; margin: 9px 0 5px; }
.highlight-points { min-height: 36px; margin: 5px 0 7px; }
.highlight-footer { padding-top: 7px; }
.compact-stats { margin-top: 12px; }
.compact-stats .policy-stat-card { min-height: 88px; padding: 12px 14px; }
.compact-stats .policy-stat-card > strong { margin-top: 5px; font-size: 25px; }

.reader-backbar { margin-bottom: 8px; font-size: 11px; }
.reader-heading { gap: 16px; }
.reader-heading h1 { margin: 5px 0 6px; font-size: clamp(21px, 2.5vw, 30px); line-height: 1.32; }
.reader-heading p { font-size: 11px; }
.reader-heading-score { flex-basis: 84px; padding: 8px; }
.reader-heading-score strong { font-size: 27px; }
.reader-heading-score span { margin-top: 4px; font-size: 9px; }
.reader-layout { gap: 12px; margin-top: 12px; }
.reader-brief-card { padding: 15px; border-radius: 12px; }
.reader-brief-title h2 { margin-top: 4px; font-size: 17px; }
.reader-tags { gap: 4px; margin-top: 10px; }
.reader-tags span, .reader-change-counts span { padding: 4px 7px; font-size: 9px; }
.reader-scope { margin: 11px 0; font-size: 11px; line-height: 1.65; }
.reader-section-label { margin: 14px 0 6px; padding-top: 10px; font-size: 9px; }
.reader-findings { gap: 7px; }
.reader-finding { padding: 10px; }
.reader-finding-head strong { font-size: 12px; }
.reader-finding-head small { font-size: 9px; }
.reader-finding p { margin: 5px 0 6px; font-size: 10px; line-height: 1.65; }
.reader-evidence-links { gap: 5px; }
.reader-evidence-links a { font-size: 9px; }
.reader-version-summary { padding: 8px 9px; }
.reader-version-summary strong { font-size: 10px; }
.reader-version-summary span { font-size: 9px; }
.reader-source { border-radius: 12px; }
.reader-source-toolbar { padding: 11px 16px; }
.reader-source-toolbar strong { margin-top: 3px; font-size: 13px; }
.reader-source-toolbar > div:last-child { gap: 9px; font-size: 9px; }
.reader-document { padding: 18px clamp(18px, 3vw, 40px) 34px; }
.reader-document-meta { gap: 7px 12px; padding-bottom: 12px; margin-bottom: 5px; font-size: 9px; }
.reader-comparison-note { margin: 13px 16px; font-size: 10px; }
.reader-change-row { padding: 13px 16px; }
.reader-archive { margin-bottom: 10px; }

@media (max-width: 960px) {
  .policy-layout { grid-template-columns: 1fr; gap: 10px; }
  .policy-sidebar { position: sticky; top: 0; height: auto; max-height: none; overflow: visible; }
  .policy-nav { padding: 6px; }
  .policy-nav-home, .policy-nav-group a { min-height: 27px; }
  .policy-detail-page.policy-nav-open .policy-sidebar { top: 58px; height: calc(100vh - 70px); max-height: calc(100vh - 70px); }
}
@media (max-width: 650px) {
  .policy-site-main { padding: 14px 11px 40px; }
  .policy-topbar { margin-bottom: 12px; }
  .policy-brand-mark { width: 30px; height: 30px; font-size: 14px; }
  .policy-brand strong { font-size: 13px; }
  .policy-brand small { display: none; }
  .policy-account { gap: 7px; }
  .policy-account a { padding: 5px 8px; }
  .policy-hero { padding: 22px 18px; }
  .policy-hero h1 { font-size: 29px; }
  .policy-panel { padding: 13px 11px; }
  .policy-command-bar h1 { font-size: 24px; }
  .policy-command-actions > div strong { font-size: 17px; }
  .policy-stat-card { min-height: 90px; padding: 12px; }
  .policy-stat-card > strong { font-size: 25px; }
  .reader-heading h1 { font-size: 22px; }
  .reader-heading-score { margin-top: 11px; padding-top: 7px; }
  .reader-document { padding: 16px 13px 28px; }
  .reader-source-toolbar { padding: 10px 13px; }
  .policy-detail-page.policy-nav-open .policy-sidebar { top: 52px; height: calc(100vh - 64px); max-height: calc(100vh - 64px); }
}

/* Update-first policy workspace: compact primary controls, optional secondary filters. */
.policy-site-main .policy-sidebar { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #b6cec0 transparent; }
.policy-site-main .policy-command-bar { align-items: center; gap: 14px; padding-bottom: 9px; }
.policy-site-main .policy-command-bar h1 { margin: 3px 0 2px; font-size: clamp(24px, 2.5vw, 29px); }
.policy-site-main .policy-command-actions { gap: 8px; }
.policy-site-main .policy-command-actions > div { min-width: 54px; padding-left: 8px; }
.policy-site-main .policy-command-actions > div strong { font-size: 17px; }
.policy-site-main .policy-command-actions > div span { margin-top: 2px; font-size: 8px; }
.policy-site-main .policy-command-actions .policy-primary-button { min-height: 32px; padding: 6px 9px; }
.policy-site-main #focus { margin-top: 9px; padding: 13px; }
.policy-site-main #focus .policy-panel-heading { margin-bottom: 8px; }
.policy-site-main #focus .policy-panel-heading h2 { margin: 3px 0 2px; font-size: 16px; }
.policy-site-main #focus .policy-panel-heading p { font-size: 10px; }
.policy-site-main .watch-coverage { margin-bottom: 8px; font-size: 10px; }
.policy-site-main .focus-filters { position: relative; display: grid; grid-template-columns: minmax(250px, 2fr) minmax(125px, .9fr) minmax(125px, .9fr) auto auto auto; align-items: end; gap: 6px; padding: 7px; border-radius: 9px; }
.policy-site-main .focus-filters label { min-width: 0; display: grid; gap: 3px; flex: initial; color: #52675c; font-size: 9px; }
.policy-site-main .focus-filters .focus-search-label { order: initial; flex: initial; }
.policy-site-main .focus-filters label > span { color: #74817b; font-size: 9px; font-weight: 700; }
.policy-site-main .focus-filters input,
.policy-site-main .focus-filters select { min-height: 32px; padding: 6px 8px; border-radius: 7px; font-size: 11px; }
.policy-site-main .focus-search-label input { padding: 6px 9px; font-size: 11px; }
.policy-site-main .focus-advanced-filters { position: relative; min-width: 92px; }
.policy-site-main .focus-advanced-filters > summary { min-height: 32px; padding: 0 8px; border: 1px solid var(--policy-line); border-radius: 7px; color: var(--policy-green-deep); background: #fff; display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 750; cursor: pointer; list-style: none; white-space: nowrap; }
.policy-site-main .focus-advanced-filters > summary::-webkit-details-marker { display: none; }
.policy-site-main .focus-advanced-filters > summary b { margin-left: auto; font-size: 14px; transition: transform .18s ease; }
.policy-site-main .focus-advanced-filters[open] > summary b { transform: rotate(180deg); }
.policy-site-main .focus-advanced-filters[open] { z-index: 4; }
.policy-site-main .focus-advanced-grid { position: absolute; top: calc(100% + 4px); right: 0; width: min(330px, calc(100vw - 44px)); padding: 8px; border: 1px solid var(--policy-line); border-radius: 9px; background: #fff; box-shadow: 0 10px 28px rgba(24, 74, 62, .14); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.policy-site-main .focus-advanced-grid label { display: grid; gap: 3px; }
.policy-site-main .focus-advanced-grid input,
.policy-site-main .focus-advanced-grid select { min-height: 32px; padding: 6px 8px; font-size: 11px; }
.policy-site-main .focus-filters .policy-primary-button { min-height: 32px; padding: 6px 10px; font-size: 10px; white-space: nowrap; }
.policy-site-main .focus-filters > a { min-height: 32px; padding: 0 3px; color: var(--policy-muted); display: inline-flex; align-items: center; font-size: 10px; text-decoration: none; white-space: nowrap; }
.policy-site-main .filter-feedback { min-height: 24px; gap: 6px; margin-top: 5px; }
.policy-site-main #active-filters { gap: 4px; }
.policy-site-main #active-filters button { padding: 3px 7px; font-size: 10px; }
.policy-site-main #filter-status { font-size: 10px; }
.policy-site-main #policy-results .focus-list { gap: 8px; }
.policy-site-main #policy-results .focus-card { padding: 12px; }
.policy-site-main #policy-results .focus-card h3 { margin-top: 5px; font-size: 14px; }
.policy-site-main #policy-results .focus-card > p { font-size: 11px; }

@media (max-width: 1100px) {
  .policy-site-main .focus-filters { grid-template-columns: minmax(220px, 1.7fr) minmax(115px, .8fr) minmax(115px, .8fr) auto auto auto; }
}

@media (max-width: 960px) {
  .policy-site-main .policy-sidebar { overflow: visible; }
  .policy-site-main .focus-filters { grid-template-columns: minmax(220px, 1fr) minmax(115px, .7fr) minmax(115px, .7fr) auto auto auto; }
}

@media (max-width: 650px) {
  .policy-site-main .policy-command-bar { display: block; padding-bottom: 8px; }
  .policy-site-main .policy-command-actions { margin-top: 8px; justify-content: flex-start; }
  .policy-site-main #focus { padding: 11px; }
  .policy-site-main .focus-filters { grid-template-columns: 1fr 1fr; gap: 5px; padding: 7px; }
  .policy-site-main .focus-filters .focus-search-label { grid-column: 1 / -1; }
  .policy-site-main .focus-advanced-filters { grid-column: 1 / -1; }
  .policy-site-main .focus-advanced-grid { position: static; width: auto; margin-top: 4px; box-shadow: none; }
  .policy-site-main .focus-filters .policy-primary-button,
  .policy-site-main .focus-filters > a { justify-content: center; width: 100%; }
}

@media (min-width: 961px) {
  .policy-site-main .focus-filters > label { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px; }
  .policy-site-main .focus-filters > label > span { white-space: nowrap; }
}

@media (min-width: 961px) {
  .policy-site-main:not(.policy-detail-page) .policy-sidebar { height: calc(100vh - 83px); max-height: calc(100vh - 83px); }
}

/* Keep the document title on the visual center line of the reader header. */
.policy-detail-page .policy-reader-topbar { position: relative; display: flex; }
.policy-detail-page .policy-topbar-reader-title { position: absolute; z-index: 1; left: 50%; width: min(760px, calc(100% - 220px)); transform: translateX(-50%); }
.policy-detail-page .policy-topbar-left, .policy-detail-page .policy-account { position: relative; z-index: 2; }
.policy-detail-page.policy-nav-open .policy-reader-topbar { z-index: 16; }

@media (max-width: 960px) {
  .policy-detail-page .policy-topbar-left .policy-brand > span:last-child { display: none; }
  .policy-detail-page .policy-topbar-reader-title { width: calc(100% - 210px); }
}

/* 详情页紧凑信息层：元信息同行，首屏优先保留正文阅读空间。 */
.policy-detail-page .reader-meta-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px; min-height: 27px; padding-bottom: 7px; border-bottom: 1px solid var(--policy-line); }
.policy-detail-page .reader-back-link { flex: 0 0 auto; color: var(--policy-green); font-size: 10px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.policy-detail-page .reader-meta-line { min-width: 0; flex: 1 1 480px; display: flex; align-items: center; flex-wrap: wrap; gap: 3px 10px; color: var(--policy-muted); font-size: 10px; line-height: 1.4; }
.policy-detail-page .reader-meta-line > * + *::before { content: "·"; margin-right: 10px; color: #a8b7ae; }
.policy-detail-page .reader-meta-line a { color: var(--policy-green); font-weight: 750; text-decoration: none; white-space: nowrap; }
.policy-detail-page .reader-meta-score { flex: 0 0 auto; display: flex; align-items: baseline; gap: 5px; padding-left: 11px; border-left: 1px solid var(--policy-line); }
.policy-detail-page .reader-meta-score strong { color: var(--policy-green-deep); font-size: 19px; line-height: 1; }
.policy-detail-page .reader-meta-score span { color: var(--policy-muted); font-size: 9px; }
.policy-detail-page .reader-layout { margin-top: 10px; }
.policy-detail-page .reader-brief-title { align-items: baseline; }
.policy-detail-page .reader-brief-title h2 { margin: 0; font-size: 18px; }
.policy-detail-page .reader-read-label { padding: 4px 7px; font-size: 9px; }
.policy-detail-page .reader-source-toolbar { padding: 10px 18px; }
.policy-detail-page .reader-source-title { display: flex !important; align-items: baseline; gap: 8px; }
.policy-detail-page .reader-source-title strong { display: inline; margin: 0; font-size: 13px; }
.policy-detail-page .reader-source-title span { display: inline; font-size: 9px; }
.policy-detail-page .reader-toolbar-status { color: var(--policy-muted); font-size: 9px; white-space: nowrap; }
.policy-detail-page .reader-brief, .policy-detail-page .reader-source { max-height: calc(100vh - 112px); }
.policy-detail-page .reader-source { height: calc(100vh - 112px); }

@media (max-width: 650px) {
  .policy-detail-page .reader-meta-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 10px; }
  .policy-detail-page .reader-meta-line { grid-column: 1 / -1; flex-basis: auto; padding-top: 4px; border-top: 1px solid #edf2ee; }
  .policy-detail-page .reader-meta-score { grid-column: 2; grid-row: 1; justify-self: end; padding-left: 8px; }
  .policy-detail-page .reader-brief, .policy-detail-page .reader-source { max-height: none; }
  .policy-detail-page .reader-source { height: auto; }
  .policy-detail-page .reader-source-toolbar { padding: 9px 13px; }
}
.policy-scan-header { display:flex; align-items:center; justify-content:space-between; gap:15px; margin:0 0 12px; }
.policy-items-page .policy-main-grid { grid-template-columns:minmax(0,1fr); }
.policy-scan-header h1 { margin:0 0 3px; font-size:26px; color:var(--policy-ink); }
.policy-scan-header p { margin:0; color:var(--policy-muted); font-size:12px; }
.policy-scan-header .policy-primary-button, .policy-command-actions a.policy-primary-button { text-decoration:none; }
.policy-scan-guide { display:flex; gap:12px; align-items:center; margin-bottom:10px; padding:12px 15px; font-size:12px; }
.policy-scan-guide span { color:var(--policy-muted); }
.policy-scan-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-bottom:12px; }
.policy-scan-stats > div { padding:11px 14px; border:1px solid var(--policy-line); border-radius:10px; background:#fff; }
.policy-scan-stats span, .policy-scan-stats strong { display:block; }
.policy-scan-stats span { color:var(--policy-muted); font-size:10px; }
.policy-scan-stats strong { margin-top:3px; font-size:23px; color:var(--policy-green-deep); }
.policy-scan-live { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin-bottom:12px; background:#f0f8f2; }
.policy-scan-live > span:not(.live-pulse) { flex:1; min-width:200px; overflow-wrap:anywhere; }
.policy-scan-live small { color:var(--policy-muted); }
.policy-scan-history { margin-bottom:12px; }
.policy-scan-run { border-top:1px solid var(--policy-line); }
.policy-scan-run > summary { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:11px 3px; cursor:pointer; font-size:11px; list-style:none; }
.policy-scan-run > summary::-webkit-details-marker { display:none; }
.policy-scan-run > summary strong { font-size:13px; }
.policy-scan-run > summary b { margin-left:auto; color:var(--policy-green); }
.policy-scan-run-body { padding:0 0 12px 18px; }
.policy-scan-run-body p { margin:0 0 7px; font-size:11px; color:var(--policy-muted); }
.policy-scan-review { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; margin-bottom:9px; padding:8px 10px; border-radius:7px; background:#f0f7f2; font-size:11px; }
.policy-scan-review span { color:var(--policy-muted); }
.policy-scan-review details { flex-basis:100%; }
.policy-scan-site-results { max-height:360px; overflow:auto; border:1px solid var(--policy-line); border-radius:8px; }
.policy-scan-site-results > div { display:grid; grid-template-columns:8px minmax(130px,.7fr) minmax(220px,2fr) 45px; align-items:center; gap:9px; padding:7px 10px; border-bottom:1px solid #edf1ee; font-size:10px; }
.policy-scan-site-results > div span:nth-child(3) { color:var(--policy-muted); overflow-wrap:anywhere; }
.policy-scan-errors { margin-top:9px; font-size:11px; }
.policy-scan-errors li { margin:5px 0; overflow-wrap:anywhere; }
.policy-scan-editor { padding:14px; border-top:1px solid var(--policy-line); }
.policy-scan-editor-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; }
@media(max-width:720px) { .policy-scan-header { align-items:flex-start; flex-direction:column; } .policy-scan-stats { grid-template-columns:repeat(2,1fr); } .policy-scan-guide { display:block; } .policy-scan-site-results > div { grid-template-columns:8px minmax(100px,1fr) 38px; } .policy-scan-site-results > div span:nth-child(3) { grid-column:2 / -1; } }
