
:root {
  color-scheme: light;
  --page: #f3f6f4;
  --card: #fff;
  --ink: #192b25;
  --muted: #5e7068;
  --line: #e3eae5;
  --primary: #17664d;
  --primary-dark: #10503d;
  --green-bg: #e5f3eb;
  --green-ink: #146046;
  --amber-bg: #fff2d8;
  --amber-ink: #855512;
  --red-bg: #fcebe8;
  --red-ink: #9b342e;
  --blue-bg: #e9effc;
  --blue-ink: #315c9b;
  --slate-bg: #edf1ef;
  --slate-ink: #52655b;
  --shadow: 0 2px 3px rgba(29, 52, 41, .035);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--page);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .56; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #5ea78c; outline-offset: 3px; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 10; padding: 10px 14px; background: white; color: var(--primary); }

.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; min-height: 0;
  padding: 23px 15px 14px; background: #fcfdfc; border-right: 1px solid var(--line); z-index: 4;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px; }
.brand strong { display: block; font-size: 25px; line-height: 1; letter-spacing: -.95px; }
.brand strong span { font-size: 12px; letter-spacing: 0; margin-left: 6px; color: var(--green-ink); }
.brand small { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; }
.workspace {
  display: flex; align-items: center; gap: 9px; min-height: 58px; padding: 9px;
  background: #f1f5f2; border: 1px solid #e8eee9; border-radius: 11px; margin: 22px 0 13px;
}
.workspace-icon { display: grid; place-items: center; width: 33px; height: 33px; flex: none; border-radius: 8px; color: var(--primary); background: #e0ede5; }
.workspace strong, .workspace span { display: block; font-size: 11.5px; }
.workspace span { color: var(--muted); margin-top: 3px; }
#nav { overflow: auto; flex: 1; scrollbar-width: thin; }
.nav-group + .nav-group { margin-top: 12px; }
.nav-label { padding: 0 10px 4px; color: #65786e; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .085em; }
.nav-link {
  display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 6px 9px; margin: 1px 0;
  border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 12.5px; color: #42584e;
}
.nav-link .icon { width: 17px; height: 17px; }
.nav-link:hover { background: #eff4f0; }
.nav-link.active { color: #125d44; background: #e3f1e8; font-weight: 700; }
.nav-count { margin-left: auto; padding: 1px 7px; border-radius: 12px; background: #e7ece8; font-size: 10px; }
.nav-link.active .nav-count { background: #d0e6d7; }
.sidebar-footer {
  display: flex; align-items: center; gap: 8px; margin-top: 9px; padding: 13px 7px 0; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 11px; white-space: nowrap;
}
.sidebar-footer small { margin-left: auto; font-size: inherit; }
.live-dot { width: 7px; height: 7px; background: #369470; border-radius: 100%; box-shadow: 0 0 0 3px #dfede5; }
.surface { min-width: 0; display: flex; flex-direction: column; }
.toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px clamp(15px, 2.1vw, 36px); min-height: 61px; background: #fcfdfc; border-bottom: 1px solid var(--line);
}
.crumb, .toolbar-actions { display: flex; align-items: center; gap: 11px; }
.crumb { color: var(--muted); white-space: nowrap; font-size: 12px; }
.crumb strong { color: var(--ink); font-size: 13px; }
.slash { color: #91a198; }
.demo-badge {
  border-radius: 5px; color: #4e6356; background: #edf1ee; padding: 3px 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase;
}
.role-button {
  display: inline-flex; align-items: center; gap: 7px; border-radius: 8px; background: #fff;
  border: 1px solid var(--line); padding: 5px 8px; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.role-button:hover, .site-scope select:hover { background: #f4f8f5; }
.role-button .icon { width: 14px; height: 14px; color: var(--muted); }
.avatar { display: grid; place-items: center; border-radius: 50%; width: 24px; height: 24px; flex: none; color: var(--green-ink); background: var(--green-bg); font-size: 12px; }
.site-scope select { max-width: 235px; font-size: 12px; min-height: 35px; }
.mobile-menu { display: none !important; }
.content { width: 100%; max-width: 1640px; margin-inline: auto; padding: 25px clamp(15px, 2.1vw, 36px) 30px; flex: 1; }
.content:focus { outline: 0; }
.footer { display: flex; justify-content: space-between; padding: 13px clamp(15px, 2.1vw, 36px); color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); }
.icon { width: 19px; height: 19px; flex: none; }
.icon-button {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line);
  background: white; color: #435a4f; padding: 0; flex: none;
}
.icon-button:hover { color: var(--primary); background: #edf5ef; }
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 35px; padding: 7px 12px;
  border: 1px solid transparent; border-radius: 8px; font-weight: 700; font-size: 12px; text-decoration: none; white-space: nowrap;
}
.button .icon { width: 15px; height: 15px; }
.button.primary { color: white; background: var(--primary); border-color: var(--primary); }
.button.primary:hover { background: var(--primary-dark); }
.button.secondary, .button.slim-button { color: #235947; background: white; border-color: #dbe7df; }
.button.secondary:hover, .button.slim-button:hover { background: #eef6f0; }
.button.slim-button { font-size: 11.5px; min-height: 30px; padding: 4px 8px; }
.button.text-button { color: var(--green-ink); padding: 4px 0; background: transparent; }
.button.text-button:hover, .row-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.button.text-button svg, .button.slim-button svg { width: 13px; height: 13px; }

.hero {
  position: relative; display: flex; align-items: center; overflow: hidden; isolation: isolate; min-height: 189px;
  padding: 23px 29px; border-radius: 15px; background: linear-gradient(110deg, #143c30 0%, #16523f 58%, #1b674e);
  color: #fff;
}
.hero-content { position: relative; z-index: 1; min-width: 0; }
.hero-kicker { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 10.5px; letter-spacing: .125em; color: #c0edcf; }
.hero-kicker svg { width: 15px; height: 15px; }
.hero h1 { margin-top: 6px; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.04em; }
.hero p { color: #d6eee3; margin-top: 8px; font-size: 13px; }
.hero p span { margin: 0 4px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-primary { background: #d4f3df; color: #103b2d; }
.hero-primary:hover { background: #bdefcc; }
.hero-secondary { color: #fff; border-color: #75a994; background: #205742; }
.hero-secondary:hover { background: #25654c; }
.hero-art { position: absolute; inset: 0 0 0 auto; height: 100%; width: min(65%, 700px); color: #95d7b4; opacity: .28; }
.hero-symbol {
  position: absolute; right: 12%; display: grid; place-items: center; width: 93px; height: 93px; border-radius: 26px;
  background: rgba(202, 240, 213, .11); border: 1px solid rgba(202, 240, 213, .27); color: #d8f6e3; transform: rotate(-8deg);
}
.hero-symbol svg { width: 47px; height: 47px; stroke-width: 1.15; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin: 14px 0; }
.metric {
  text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px 14px; box-shadow: var(--shadow);
}
.metric:hover { border-color: #9bbfa9; }
.metric-top { display: flex; justify-content: space-between; align-items: flex-start; }
.tile-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; flex: none; }
.tile-icon .icon { width: 17px; height: 17px; }
.green { color: var(--green-ink); background: var(--green-bg); }
.amber { color: var(--amber-ink); background: var(--amber-bg); }
.red { color: var(--red-ink); background: var(--red-bg); }
.blue { color: var(--blue-ink); background: var(--blue-bg); }
.slate { color: var(--slate-ink); background: var(--slate-bg); }
.metric-arrow { color: #7c9186; width: 15px; height: 15px; }
.metric strong { display: block; font-size: 27px; line-height: 1.12; margin-top: 8px; letter-spacing: -.04em; }
.metric-label { display: block; font-weight: 700; font-size: 13px; margin-top: 4px; }
.metric small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.52fr) minmax(0, 1fr); gap: 13px; }
.second-grid { margin-top: 13px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.section-heading {
  display: flex; align-items: start; justify-content: space-between; gap: 10px; padding: 15px 16px 11px;
}
.section-heading h2 { font-size: 15.5px; letter-spacing: -.012em; }
.section-heading p, .panel-note { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.section-heading .button { min-height: 27px; }
.panel-note { padding: 0 15px 14px; }
.pill {
  display: inline-flex; align-items: center; border-radius: 6px; padding: 3px 7px; font-size: 10.5px;
  font-weight: 700; white-space: nowrap; line-height: 1.35;
}
.agenda-list { list-style: none; padding: 0 15px 8px; }
.agenda-list li + li { border-top: 1px solid #edf0ee; }
.agenda-row, .site-row {
  display: flex; align-items: center; width: 100%; gap: 10px; border: 0; background: transparent; text-align: left; padding: 9px 0;
}
.agenda-row:hover, .site-row:hover { background: #f7faf7; }
.agenda-marker { display: block; align-self: stretch; width: 3px; border-radius: 3px; min-height: 26px; flex: none; }
.agenda-marker.red { background: #c96963; }
.agenda-marker.amber { background: #d59c42; }
.agenda-marker.slate { background: #9eb2a8; }
.agenda-info { min-width: 0; flex: 1; }
.agenda-info strong, .site-row strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.agenda-info small, .agenda-end small, .site-row small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.agenda-end { text-align: right; }
.stages { display: grid; gap: 9px; padding: 0 16px 15px; }
.stage {
  display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; padding: 0; align-items: center;
  background: transparent; border: 0; text-align: left; color: #465e52; font-size: 12px;
}
.stage > span { display: flex; align-items: center; gap: 6px; }
.stage:hover > span { color: var(--primary); text-decoration: underline; }
.stage-dot { width: 7px; height: 7px; border-radius: 50%; background: #829b8c; }
.stage-dot.progress { background: #6b96d0; }
.stage-dot.review { background: #d99b46; }
.stage-dot.closed { background: #4b9776; }
.stage progress {
  grid-column: 1 / -1; appearance: none; width: 100%; height: 5px; border: 0; border-radius: 6px; background: #eef2ee;
  color: #849f8f;
}
.stage progress::-webkit-progress-bar { background: #eef2ee; border-radius: 6px; }
.stage progress::-webkit-progress-value { background: currentColor; border-radius: 6px; }
.stage progress::-moz-progress-bar { background: currentColor; border-radius: 6px; }
.stage progress.progress { color: #6b96d0; }
.stage progress.review { color: #d99b46; }
.stage progress.closed { color: #4b9776; }
.closure-summary {
  display: flex; align-items: center; gap: 9px; margin: 1px 16px 15px; padding: 9px;
  background: #f1f6f2; border: 1px solid #e5eee7; border-radius: 8px;
}
.closure-summary strong, .closure-summary small { display: block; font-size: 11px; }
.closure-summary small { color: var(--muted); margin-top: 2px; }
.closure-summary b { margin-left: auto; font-size: 19px; color: var(--primary); }
.site-list { padding: 0 15px 9px; }
.site-row + .site-row { border-top: 1px solid #edf0ee; }
.site-row > span:nth-child(2) { flex: 1; }
.empty { padding: 25px 16px; text-align: center; color: var(--muted); }
.empty p { margin-top: 8px; }
.loading { padding: 32px; text-align: center; color: var(--muted); }
.loading .button { margin-top: 12px; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin: 3px 0 18px; }
.eyebrow {
  display: flex; align-items: center; gap: 6px; color: var(--primary); font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
}
.eyebrow .icon { width: 15px; height: 15px; }
.page-heading h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.045em; margin: 4px 0 3px; line-height: 1.17; }
.page-heading p { color: var(--muted); font-size: 13px; }
.heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; padding-bottom: 1px; }
.list-panel { overflow: clip; }
.table-tools, .table-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; padding: 12px 14px; }
.table-tools { border-bottom: 1px solid var(--line); }
.table-options { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
select, input:not([type="hidden"]), textarea {
  min-width: 0; min-height: 35px; padding: 7px 10px; border: 1px solid #d8e3dc;
  border-radius: 7px; background: #fff;
}
input::placeholder { color: #71847b; }
.searchbox {
  display: flex; align-items: center; gap: 3px; padding: 0 8px; color: var(--muted);
  border: 1px solid #d8e3dc; border-radius: 7px;
}
.searchbox input { border: none; width: clamp(150px, 18vw, 300px); padding-left: 6px; background: transparent; }
.searchbox .icon { width: 16px; height: 16px; }
.searchbox:focus-within { outline: 2px solid #62a78b; }
.searchbox input:focus { outline: none; }
.table-scroll { position: relative; overflow: auto; }
table { width: 100%; border-collapse: collapse; }
.table-scroll table { min-width: 720px; text-align: left; }
.table-scroll thead th {
  padding: 9px 11px; font-size: 11px; font-weight: 700; color: #53695d; background: #f4f7f4; border-bottom: 1px solid var(--line);
}
.table-scroll tbody td { padding: 11px; font-size: 12px; border-bottom: 1px solid #edf0ee; }
.table-scroll tbody tr:last-child td { border-bottom: 0; }
.table-scroll tbody tr:hover { background: #f9fbf9; }
.table-scroll th:first-child, .table-scroll td:first-child { padding-left: 15px; }
.table-scroll th:last-child, .table-scroll td:last-child { padding-right: 15px; }
.table-primary { min-width: 160px; width: 27%; }
.row-title { display: inline; color: var(--ink); font-weight: 700; border: 0; text-align: left; background: none; padding: 0; overflow-wrap: anywhere; }
.cell-note { color: var(--muted); display: block; font-size: 10.5px; margin-top: 3px; }
.table-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.danger-text { color: var(--red-ink); font-weight: 700; }
.score { display: inline-grid; place-items: center; border-radius: 7px; width: 31px; height: 28px; font-weight: 700; }
.matrix-panel, .coverage-panel { margin-bottom: 14px; }
.matrix-wrap { display: flex; align-items: center; gap: 20px; padding: 0 14px 14px; }
.matrix { width: min(100%, 478px); table-layout: fixed; }
.matrix th:first-child { width: 113px; }
.matrix td, .matrix th { border: 0; text-align: center; padding: 2px; font-size: 11px; color: var(--muted); }
.matrix td { position: relative; }
.matrix-cell { width: 100%; min-height: 24px; border: 1px solid transparent; border-radius: 4px; font-weight: 700; }
.matrix-cell:hover, .matrix-cell[aria-pressed="true"] { border-color: var(--ink); }
.matrix-cell b { display: inline-block; margin-left: 4px; border-radius: 4px; background: #ffffffba; min-width: 12px; font-size: 9px; }
.matrix-key { display: flex; flex-wrap: wrap; gap: 4px; max-width: 260px; }
.matrix-key strong, .matrix-key small { flex-basis: 100%; }
.matrix-key strong { margin-bottom: 3px; font-size: 12px; }
.matrix-key small { margin-top: 4px; font-size: 11px; color: var(--muted); }
.coverage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 8px; padding: 0 14px 10px; }
.coverage-card { border: 1px solid var(--line); border-radius: 8px; padding: 9px; font-size: 12px; }
.coverage-card > strong { display: block; margin-bottom: 6px; }
.coverage-row { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 6px 0; color: var(--muted); font-size: 11px; }
.coverage-row + .coverage-row { border-top: 1px solid var(--line); }
.coverage-row b { color: var(--ink); white-space: nowrap; }
.tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.tabs button {
  background: #fff; border: 1px solid var(--line); border-radius: 7px;
  min-height: 32px; padding: 6px 10px; color: #52665a; font-size: 12px; font-weight: 650;
}
.tabs button:hover, .tabs button[aria-pressed="true"] { background: var(--green-bg); border-color: #bcd7c7; color: var(--green-ink); }
.calendar-panel .agenda-row { min-height: 54px; }
.guide-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; margin-top: 14px; }
.flow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; padding: 0 15px 15px; }
.flow-step { padding: 10px; background: #f6f9f6; border: 1px solid var(--line); border-radius: 8px; }
.step-number { float: right; color: #547366; font-size: 11px; font-weight: 700; }
.flow-step h3 { margin-top: 5px; font-size: 12px; }
.flow-step p { margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.guide-rules dl { padding: 0 15px 15px; }
.guide-rules dt { margin-top: 9px; font-weight: 700; font-size: 12px; }
.guide-rules dd { margin-top: 3px; color: var(--muted); font-size: 12px; }
.sources ul { list-style: none; padding: 0 15px 15px; }
.sources li { padding: 8px 0; }
.sources li + li { border-top: 1px solid var(--line); }
.sources a { display: flex; justify-content: space-between; text-decoration: none; color: var(--green-ink); gap: 7px; }
.sources a:hover strong { text-decoration: underline; }
.sources strong, .sources small { display: block; font-size: 12px; }
.sources p, .sources small { margin-top: 3px; font-size: 11px; color: var(--muted); }
.sources .icon { width: 15px; height: 15px; }

body:has(dialog[open]) { overflow: hidden; }
dialog {
  width: min(590px, calc(100% - 28px)); max-width: none; max-height: calc(100% - 32px); padding: 0;
  color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 55px #173b2c38; overscroll-behavior: contain;
}
dialog.wide { width: min(955px, calc(100% - 28px)); }
dialog::backdrop { background: #152e27a1; }
.dialog-header {
  position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 16px 18px 12px; background: #fff; border-bottom: 1px solid var(--line);
}
.dialog-header h2 { margin-top: 3px; font-size: clamp(18px, 2.5vw, 23px); line-height: 1.19; overflow-wrap: anywhere; letter-spacing: -.02em; }
.dialog-kicker { color: var(--primary); font-weight: 700; font-size: 10px; letter-spacing: .08em; }
.dialog-header p { margin-top: 5px; font-size: 12px; color: var(--muted); }
.dialog-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 5px; flex: none; }
.dialog-footer {
  position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px;
  border-top: 1px solid var(--line); background: #fff; padding: 10px 17px;
}
.form-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 14px; padding: 15px 18px; }
.span-two { grid-column: 1 / -1; }
.form-field { display: grid; align-content: start; gap: 5px; min-width: 0; font-size: 12px; font-weight: 650; }
.form-field input, .form-field textarea, .form-field select { width: 100%; font-weight: 400; }
.form-field textarea { resize: vertical; }
.form-field small, .static-field span { font-size: 11px; font-weight: 400; color: var(--muted); }
.required { color: var(--red-ink); }
.static-field { display: grid; gap: 4px; align-content: center; border-radius: 7px; background: #f4f7f4; padding: 7px 9px; font-size: 12px; }
.form-hint { padding: 8px 10px; border-radius: 7px; background: #edf5f0; color: #335c4b; font-size: 12px; }
.form-error { margin: 0 18px 10px; padding: 8px 10px; color: var(--red-ink); background: var(--red-bg); border-radius: 7px; }
.criteria { padding: 7px 0; font-size: 12px; color: var(--muted); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 11px; padding: 13px; background: #f5f8f5; }
.detail-main, .detail-side { display: grid; gap: 10px; align-content: start; min-width: 0; }
.detail-card { padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; min-width: 0; }
.detail-heading { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.detail-card h3 { font-size: 13px; }
.detail-card p { margin-top: 6px; font-size: 12px; overflow-wrap: anywhere; }
.detail-card p small { display: block; color: var(--muted); margin-top: 2px; }
.muted { color: var(--muted); }
.record-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 10px; padding-top: 9px; }
.record-fields dt { color: var(--muted); font-size: 11px; }
.record-fields dd { margin-top: 2px; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.workflow-card { border-color: #cde2d4; }
.workflow-controls { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.warning-card { background: #fffbef; }
.warning-card ul { padding-left: 16px; margin-top: 5px; font-size: 12px; }
.related-list, .file-list { list-style: none; padding: 0; margin-top: 5px; }
.related-list li { padding: 6px 0; font-size: 12px; }
.related-list li + li, .file-list li + li { border-top: 1px solid var(--line); }
.related-list small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.reminder { display: flex; justify-content: space-between; align-items: center; gap: 5px; }
.training-history { border-top: 1px solid var(--line); }
.file-link { display: flex; align-items: center; width: 100%; gap: 7px; border: 0; text-align: left; color: var(--primary); background: transparent; padding: 6px 0; }
.file-link:hover { text-decoration: underline; }
.file-link span { min-width: 0; flex: 1; }
.file-link strong, .file-link small { display: block; overflow-wrap: anywhere; font-size: 11px; }
.file-link small { color: var(--muted); }
.history { position: relative; list-style: none; padding: 4px 0 0 8px; }
.history li { padding: 7px 0 7px 12px; border-left: 1px solid #d3e3d9; position: relative; }
.history li::before { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #55a284; left: -4px; top: 12px; }
.history-title { display: flex; justify-content: space-between; gap: 4px 8px; flex-wrap: wrap; font-size: 11.5px; }
.history-title small, .history li p { font-size: 10.5px; color: var(--muted); }
.history li p { margin-top: 3px; }
.history-note { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 5px; font-size: 11px; background: #f1f6f2; border-radius: 5px; padding: 5px; }
.role-list { padding: 11px 15px 15px; }
.role-option {
  display: flex; gap: 9px; align-items: center; width: 100%; padding: 9px;
  background: white; border: 1px solid var(--line); border-radius: 8px; text-align: left;
}
.role-option + .role-option { margin-top: 6px; }
.role-option:hover, .role-option.selected { background: #eef6f0; border-color: #c4dfcf; }
.role-option span:nth-child(2) { flex: 1; }
.role-option strong, .role-option small { display: block; font-size: 12px; }
.role-option small { margin-top: 3px; color: var(--muted); }
.toast { position: fixed; bottom: 15px; right: 15px; z-index: 6; max-width: min(420px, calc(100% - 30px));
  padding: 9px 13px; border-radius: 8px; background: #184c3b; color: #fff; box-shadow: var(--shadow); font-size: 12px; }
.toast.error { background: #892d27; }

@media (max-width: 1030px) {
  .shell { grid-template-columns: 201px minmax(0, 1fr); }
  .sidebar { padding-inline: 10px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .crumb > span { display: none; }
  .metrics { gap: 8px; }
  .metric { padding-inline: 10px; }
  .matrix-wrap { flex-wrap: wrap; gap: 10px; }
  .matrix-key { max-width: none; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { display: none; position: fixed; top: 57px; bottom: 0; width: min(250px, 89vw); height: auto; box-shadow: 10px 0 30px #15382822; }
  .sidebar.menu-open { display: flex; }
  .mobile-menu { display: grid !important; }
  .toolbar { position: sticky; top: 0; z-index: 5; min-height: 57px; padding: 6px 11px; gap: 6px; }
  .toolbar-actions { gap: 5px; }
  .site-scope select { max-width: 155px; }
  .content { padding-top: 13px; }
  .hero-symbol { right: 7%; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 550px) {
  .crumb strong, .demo-badge { display: none; }
  .hero { padding: 17px; }
  .hero-symbol { display: none; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid, .detail-layout, .form-body { grid-template-columns: minmax(0, 1fr); }
  .span-two { grid-column: auto; }
  .page-heading { display: grid; }
  .heading-actions { justify-content: flex-start; }
  .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-header { padding: 10px; gap: 6px; }
  .dialog-head-actions { max-width: 118px; }
  .dialog-head-actions .button { font-size: 10px; padding-inline: 5px; }
  .dialog-head-actions .icon-button { width: 29px; height: 29px; }
  .table-tools { align-items: stretch; flex-direction: column; }
  .searchbox input { width: 100%; }
  .footer { gap: 10px; }
}
@media print {
  body:has(dialog[open]) { overflow: visible; }
  body:has(dialog[open]) .shell, .toast, .skip-link, .dialog-head-actions, .detail-card button, .dialog-footer { display: none !important; }
  dialog[open] { position: static; display: block; margin: 0; max-height: none; max-width: none; width: 100%; overflow: visible; border: 0; box-shadow: none; }
  dialog::backdrop { display: none; }
  .dialog-header { position: static; }
  .detail-layout { display: block; background: white; }
  .detail-card { break-inside: avoid; margin-bottom: 8px; }
  .related-list .row-title, .file-list .file-link { display: flex !important; }
}
