@font-face {
  font-family: Inter;
  src: url("./inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --base: #f3f5f1;
  --sidebar: #f9faf7;
  --paper: #fff;
  --line: #e1e7df;
  --line-soft: #edf0eb;
  --ink: #202c24;
  --muted: #5f6d62;
  --quiet: #566b5c;
  --green: #265a42;
  --green-dark: #194730;
  --green-tint: #e6efe5;
  --danger: #9e3a28;
  --side-width: 240px;
  --header-height: 70px;
  --card-radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; min-width: 320px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--base);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .65; cursor: default; }
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3, strong { font-weight: 650; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #28694b; outline-offset: 3px; }
::selection { background: #dcebd8; color: #143b2b; }
svg { flex-shrink: 0; }
.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; z-index: 30; top: 8px; left: 8px; padding: 12px; background: white; }
.muted { color: var(--muted); }
.amber { color: #845915; }

.app-shell { min-height: 100dvh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  width: var(--side-width);
  background: var(--sidebar);
  border-right: 1px solid var(--line);
}
.brand {
  height: var(--header-height);
  padding: 0 23px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #1b4e37;
  color: #e0f1d7;
  flex: 0 0 38px;
  position: relative;
  box-shadow: 0 2px 4px #163d301d;
}
.brand-logo svg:first-child { position: absolute; left: 12px; top: 4px; }
.brand-logo svg:last-child { position: absolute; left: 7px; top: 12px; transform: perspective(30px) rotateX(35deg); }
.brand strong, .project-owner strong { display: block; font-size: 14px; line-height: 1.32; letter-spacing: -.025em; }
.brand small, .project-owner small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.sidebar-nav { padding: 27px 13px; overflow: auto; }
.section-label {
  color: var(--quiet);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.4;
  text-transform: uppercase;
}
.sidebar-nav .section-label { padding: 0 12px 9px; }
.sidebar-nav .docs-label { margin-top: 28px; }
.nav-link {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 12px;
  margin-bottom: 3px;
  border-radius: 8px;
  color: #405247;
  font-size: 12.6px;
  font-weight: 560;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-link svg { color: #486353; }
.nav-link:hover { background: #eef2ec; color: var(--green-dark); }
.nav-link.selected { background: #e5eee2; color: #18482f; font-weight: 680; }
.nav-link small {
  margin-left: auto; min-width: 21px; padding: 1px 5px; border-radius: 5px; text-align: center;
  font-size: 10.5px; font-weight: 700; color: #80551b; background: #f8eed5;
}
.sidebar-bottom { margin-top: auto; padding: 11px 21px 19px; }
.private-label { display: flex; align-items: center; gap: 6px; color: #456250; font-size: 11px; font-weight: 600; padding: 0 3px 14px; }
.project-owner { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding: 14px 0 0 2px; }
.owner-avatar {
  display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%;
  background: #e4eee2; color: #315d40; font-size: 11px; font-weight: 740;
}
.project-owner strong { font-size: 12px; }
.project-owner small { font-size: 10.5px; }

.main-shell { margin-left: var(--side-width); }
.topbar {
  position: sticky; top: 0; z-index: 4;
  min-height: var(--header-height); padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.breadcrumbs, .topbar-actions, .topbar time { display: flex; align-items: center; gap: 10px; }
.breadcrumbs { color: var(--muted); font-size: 12.5px; min-width: 0; }
.breadcrumbs strong { color: var(--ink); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb-root { white-space: nowrap; }
.crumb-divider { color: #79877a; }
.topbar-actions { gap: 21px; flex-shrink: 0; }
.topbar time { gap: 7px; color: var(--muted); font-size: 12px; }
.mobile-toggle, .mobile-backdrop { display: none !important; }
.page-content { max-width: 1540px; padding: 26px 32px 39px; margin: 0 auto; outline: none; }
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: 0 2px 4px #1c302803;
  min-width: 0;
}

.button, .icon-button, .text-link, .row-title, .chip-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  text-decoration: none; border: 0; background: transparent; padding: 0; line-height: 1.35;
}
.button {
  min-height: 40px; border-radius: 8px; padding: 0 13px; font-size: 12.5px;
  font-weight: 650; border: 1px solid transparent; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.primary { color: #fff; background: var(--green); border-color: var(--green); }
.primary:hover:not(:disabled) { background: var(--green-dark); border-color: var(--green-dark); }
.secondary { color: #385445; background: #fff; border-color: #dce5dc; }
.secondary:hover:not(:disabled) { background: #f1f6ef; border-color: #cddcce; }
.icon-button { width: 33px; height: 33px; flex: 0 0 33px; border-radius: 7px; color: #576b5e; }
.icon-button:hover:not(:disabled) { background: #eaf1e9; color: var(--green-dark); }
.text-link { color: #285e44; font-size: 12.2px; font-weight: 660; text-align: left; justify-content: start; }
.text-link:hover, .row-title:hover { color: #155638; text-decoration: underline; text-underline-offset: .2em; }
.row-title { color: #26392d; text-align: left; justify-content: start; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 237px; padding: 28px 30px 28px;
  display: grid; align-items: center;
  border: 1px solid #245540; border-radius: 17px;
  color: #f6fbf1;
  background: linear-gradient(103deg, #194734 4%, #20503c 52%, #2a5a44 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 670px; }
.hero-kicker {
  display: flex; align-items: center; gap: 8px;
  color: #e1efdb; font-size: 11px; font-weight: 650; letter-spacing: .095em; text-transform: uppercase;
}
.hero-kicker > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: #bee0a2; box-shadow: 0 0 0 3px #a9d69b29; margin-right: 2px; }
.hero-sep { color: #a0bba5; }
.hero h1 { margin-top: 11px; font-size: clamp(30px, 3.35vw, 49px); line-height: 1.035; letter-spacing: -.063em; font-weight: 680; text-wrap: balance; }
.hero-subtitle { color: #e0edde; margin-top: 12px; font-size: 14px; line-height: 1.55; }
.hero-button { color: #204e36; background: #eaf2e5; margin-top: 22px; padding: 0 12px; }
.hero-button:hover { background: #f5f9f1; }

.solar-art { position: absolute; inset: 0 0 0 auto; z-index: 0; width: min(46%, 540px); pointer-events: none; overflow: hidden; mask-image: linear-gradient(to right, transparent, black 17%); }
.solar-art::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, #b8ddbe06 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, #b8ddbe06 0 1px, transparent 1px 22px);
}
.solar-orbit, .solar-sun, .solar-terrain, .solar-panels { position: absolute; }
.solar-orbit { width: 316px; height: 316px; border-radius: 50%; border: 1px solid #bce5be22; right: -10px; top: -66px;
  box-shadow: 0 0 0 28px #bce5be0d, 0 0 0 62px #bce5be09, 0 0 0 101px #bce5be06; }
.solar-sun { width: 48px; height: 48px; right: 81px; top: 27px; border-radius: 50%; background: #bce09b15; border: 1px solid #c5e5b89b;
  box-shadow: 0 0 0 8px #bce5be19, 0 0 0 18px #bce5be0a, inset 0 0 20px #c5e5b81f; }
.solar-terrain { width: 520px; height: 190px; right: -105px; top: 78px;
  transform: perspective(290px) rotateX(51deg) rotateZ(-23deg);
  background: repeating-linear-gradient(0deg, #cce6d51c 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, #cce6d51c 0 1px, transparent 1px 22px);
  mask-image: radial-gradient(ellipse, black 16%, transparent 78%);
}
.solar-panels { width: 258px; height: 105px; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr;
  gap: 3px; right: 113px; top: 90px; padding: 3px; border: 1px solid #acd0a88a; border-radius: 3px;
  background: #173f33; transform: skewX(-22deg) rotate(-14deg) scaleY(.83);
  box-shadow: -2px 5px 0 #8daf9c34, -4px 8px 0 #183728b0, 0 20px 50px #102c2290; }
.solar-panels i { border: 1px solid #badfba65; border-radius: 1px; min-width: 0; position: relative;
  background: repeating-linear-gradient(to bottom, #c4e2c125 0 1px, transparent 1px 8px), linear-gradient(135deg, #64917a5c, #265640); }
.solar-panels i::after { content: ""; position: absolute; inset: 0 47% 0 auto; width: 1px; background: #cae2c95a; }
.solar-panels-far { width: 165px; height: 77px; grid-template-columns: repeat(4, 1fr); right: 22px; top: 143px; transform: skewX(-22deg) rotate(-14deg) scaleY(.78); }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 17px 0 19px; }
.stat-card {
  min-height: 132px; min-width: 0; position: relative; display: flex; flex-direction: column; align-items: start;
  padding: 14px 15px 13px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--card-radius); text-align: left;
  transition: border-color .15s, background .15s, transform .15s;
}
.stat-card:hover { border-color: #adc4b0; background: #f9fcf8; transform: translateY(-1px); }
.stat-symbol, .priority-icon, .section-icon, .entry-symbol {
  width: 35px; height: 35px; flex: 0 0 35px; border-radius: 9px;
  display: inline-grid; place-items: center; color: #316348; background: #e8f0e5;
}
.stat-symbol.blue { background: #e9eff5; color: #3e607b; }
.stat-symbol.gold { background: #f8eedb; color: #875e1e; }
.stat-symbol.mint { background: #e3f1e7; color: #2f6646; }
.stat-arrow { position: absolute; top: 17px; right: 15px; color: #62776a; }
.stat-value { font-size: 29px; line-height: 1; font-weight: 690; margin-top: 9px; letter-spacing: -.045em; }
.stat-label { margin-top: 5px; font-size: 12.5px; font-weight: 650; line-height: 1.25; }
.stat-note { margin-top: 3px; font-size: 11.2px; color: var(--muted); line-height: 1.3; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 2.48fr) minmax(258px, 1fr); gap: 15px; align-items: start; }
.overview-side { display: grid; gap: 15px; min-width: 0; }
.panel-head {
  min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 17px 13px;
}
.panel-head h2 { font-size: 17px; letter-spacing: -.033em; line-height: 1.25; }
.panel-head p, .section-head p { margin-top: 4px; color: var(--muted); line-height: 1.5; font-size: 12.5px; }
.panel-head .text-link { flex-shrink: 0; }
.section-icon { width: 33px; height: 33px; flex-basis: 33px; }
.priority-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-soft); }
.priority-list > li + li { border-top: 1px solid var(--line-soft); }
.priority-list button { text-align: left; background: transparent; border: none; width: 100%; display: flex; align-items: start; gap: 9px; padding: 12px 14px; }
.priority-list button:hover { background: #f6f9f4; }
.priority-icon { width: 31px; height: 31px; flex: 0 0 31px; border-radius: 8px; }
.priority-icon.warn { color: #93652c; background: #fbefde; }
.priority-info { display: grid; gap: 3px; min-width: 0; }
.priority-info strong { font-size: 12px; line-height: 1.38; }
.priority-info > span { font-size: 11px; color: var(--muted); line-height: 1.45; }
.priority-arrow { margin: 2px 0 0 auto; color: #728678; }
.panel-foot { padding: 12px 15px; border-top: 1px solid var(--line-soft); }
.quiet-note { color: var(--muted); font-size: 12.5px; padding: 13px 17px 17px; line-height: 1.5; }

.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: #f6f8f4; }
th, td { border-top: 1px solid var(--line-soft); }
th { font-size: 11.4px; color: #54655a; font-weight: 680; white-space: nowrap; padding: 10px 13px; }
td { vertical-align: middle; padding: 11px 13px; line-height: 1.35; font-size: 12px; }
th:first-child, td:first-child { padding-left: 17px; }
tbody tr:hover { background: #fbfcfa; }
.work-table .row-sub { white-space: normal; margin-top: 3px; }
.row-sub { color: var(--muted); font-size: 10.7px; line-height: 1.38; }
.row-sub span { padding: 0 2px; color: #7c8b7c; }
.row-area, .row-owner { color: #46564b; }
.row-status { min-width: 9rem; }
.row-date { white-space: nowrap; color: #3b5144; font-variant-numeric: tabular-nums; }
.row-date small { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; white-space: normal; }
.row-date .late-date + small { color: #8c523d; }
.row-arrow, .work-table th:last-child { width: 45px; padding: 0 8px 0 0; }
.inline-flag { display: flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 10.5px; white-space: nowrap; }
.late-date { color: var(--danger); font-weight: 600; }

.pill {
  display: inline-flex; align-items: center; gap: 5px; width: max-content; max-width: 100%;
  padding: 3px 7px; border-radius: 5px; font-size: 10.45px; line-height: 1.35; font-weight: 670; white-space: nowrap;
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 6px; }
.stage-open { --pill-bg: #f7eed9; --pill-ink: #775514; }
.stage-ordered { --pill-bg: #eaeef7; --pill-ink: #4d5880; }
.stage-planned { --pill-bg: #e7f0fa; --pill-ink: #315b83; }
.stage-received { --pill-bg: #e0eee7; --pill-ink: #285d48; }
.stage-done { --pill-bg: #e7f0e1; --pill-ink: #305f34; }
.pill[class*="stage-"] { background: var(--pill-bg); color: var(--pill-ink); }
.review-done { background: #e7f0e1; color: #305c36; }
.review-reviewing { background: #e8eff8; color: #365e7b; }
.review-pending { background: #f4efdf; color: #6e561d; }
.danger-pill { background: #f9ede7; color: #923d2c; }
.blocked-pill { background: #f7eed9; color: #775514; }

.workflow-panel { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 23px; margin-top: 16px; padding: 13px 16px; }
.workflow-title { display: flex; align-items: center; gap: 7px; color: var(--green); }
.workflow-title h2 { font-size: 12.5px; color: var(--ink); }
.workflow { display: flex; list-style: none; gap: 8px 16px; padding: 0; margin: 0; flex-wrap: wrap; }
.workflow li { display: flex; gap: 6px; align-items: center; font-size: 11.1px; font-weight: 590; color: var(--quiet); }
.workflow li:not(:last-child)::after { content: "→"; color: #788b7d; margin-left: 6px; }
.workflow-dot { display: grid; place-items: center; width: 11px; height: 11px; border: 1px solid var(--pill-ink); border-radius: 50%; background: var(--pill-bg); color: var(--pill-ink); }
.workflow-detail { border: 1px solid var(--line); background: #f9fbf7; border-radius: 10px; padding: 11px; }
.workflow-detail .workflow-dot { width: 14px; height: 14px; }
.workflow .current { color: var(--pill-ink); font-weight: 750; }
.workflow .current .workflow-dot { background: var(--pill-ink); box-shadow: 0 0 0 2px var(--pill-bg); }

.section-head { display: flex; justify-content: space-between; gap: 14px; align-items: end; margin: 5px 0 23px; }
.section-head h1 { font-size: clamp(26px, 3.5vw, 38px); line-height: 1.13; letter-spacing: -.057em; font-weight: 680; }
.section-head p { margin-top: 7px; font-size: 13.4px; max-width: 700px; }
.tabs-line {
  display: flex; gap: 5px 17px; flex-wrap: wrap; align-items: stretch; min-height: 53px;
  padding: 3px 16px 0; border-bottom: 1px solid var(--line);
}
.tabs-line button {
  border: 0; border-bottom: 2px solid transparent; background: transparent; color: #5a6c5e;
  display: inline-flex; align-items: center; gap: 6px; min-height: 39px; padding: 5px 3px;
  font-weight: 620; font-size: 12px; white-space: nowrap;
}
.tabs-line button:hover { color: var(--green-dark); }
.tabs-line button[aria-pressed="true"] { color: var(--green-dark); border-bottom-color: #356b50; }
.tabs-line button span, .count-square {
  padding: 1px 5px; border-radius: 5px; font-size: 10px; font-weight: 670; color: var(--green); background: #edf3eb;
}
.filters-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 13px 16px; }
.search-input, .filter-select {
  min-width: 0; display: flex; align-items: center; gap: 7px; min-height: 37px;
  border: 1px solid #dce5dc; border-radius: 8px; color: #536b5a; background: #fff;
}
.search-input { padding: 0 9px; width: min(270px, 100%); }
.search-input input, .filter-select select { min-width: 0; border: 0; color: var(--ink); background: none; min-height: 35px; outline: none; font-size: 12px; }
.search-input input { flex: 1; }
.search-input input::placeholder { color: #617366; }
.search-input:focus-within, .filter-select:focus-within { border-color: #709d7d; box-shadow: 0 0 0 2px #dcece0; }
.filter-select { position: relative; max-width: min(100%, 310px); }
.filter-select select { width: 100%; appearance: none; padding: 0 28px 0 10px; cursor: pointer; text-overflow: ellipsis; }
.filter-select svg { position: absolute; right: 8px; pointer-events: none; }
.sort-button { min-height: 37px; }
.sort-asc { transform: rotate(180deg); }
.clear-chip {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid #dce5dc; border-radius: 7px;
  background: #f1f6ef; color: #315e46; min-height: 33px; padding: 0 8px; font-size: 11.5px; font-weight: 650;
}
.table-summary { border-top: 1px solid var(--line-soft); color: var(--muted); padding: 12px 17px; font-size: 11.5px; }
.empty-state { text-align: center; display: grid; gap: 7px; justify-items: center; padding: 39px 18px 45px; }
.empty-icon { padding: 12px; display: grid; border-radius: 12px; color: var(--green); background: #ecf3e9; margin-bottom: 3px; }
.empty-state h3 { font-size: 15px; letter-spacing: -.01em; }
.empty-state p { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.empty-state .button { margin-top: 8px; }

.deadline-list { border-top: 1px solid var(--line-soft); }
.deadline-row {
  display: grid; grid-template-columns: minmax(190px, .95fr) minmax(260px, 1.45fr) 33px; gap: 14px;
  padding: 15px 17px; align-items: start;
}
.deadline-row + .deadline-row { border-top: 1px solid var(--line-soft); }
.deadline-row:hover { background: #fcfdfa; }
.deadline-main .row-title { display: flex; margin-top: 3px; font-size: 14px; }
.deadline-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.deadline-copy { color: #465a4e; display: grid; gap: 4px; font-size: 12px; line-height: 1.55; }
.deadline-copy strong { color: #294b37; }
.deadline-next { margin-top: 2px; }
.dependency-links { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 11.5px; }
.chip-link { padding: 3px 6px; font-size: 10.5px; font-weight: 700; color: #325c45; border-radius: 5px; background: #eaf2e9; white-space: nowrap; }
.chip-link:hover { background: #dcebdc; }

.matrix-table td:not(:first-child) { text-align: center; color: #41574a; font-variant-numeric: tabular-nums; }
.matrix-table th:not(:first-child) { text-align: center; }
.matrix-table td { padding-top: 12px; padding-bottom: 12px; }
.matrix-person { display: flex; align-items: center; gap: 9px; }
.matrix-person strong { display: block; }
.matrix-person small { display: block; color: var(--muted); margin-top: 3px; font-size: 10.7px; }
.person-initials { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; background: #e5efe5; color: #2d6444; font-size: 10px; font-weight: 730; }
.person-color-1 { background: #e9eff6; color: #3b5b78; }
.person-color-2 { background: #f5edda; color: #7d5928; }
.person-color-3 { background: #eeedf5; color: #61547d; }

.timeline { padding: 0 17px 15px; }
.timeline-month { border-radius: 7px; background: #f2f6f0; padding: 8px 10px; color: #48604f; font-size: 12px; font-weight: 690; margin: 4px 0 0; }
.timeline-row {
  display: grid; grid-template-columns: 90px 36px minmax(0, 1fr) 33px;
  gap: 10px; align-items: start; padding: 15px 8px 14px; border-bottom: 1px solid var(--line-soft);
}
.timeline-date { display: grid; gap: 3px; color: #405748; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.timeline-date span, .timeline-attribution { font-size: 11px; color: var(--muted); }
.timeline-content .row-title { font-size: 14px; }
.timeline-content p, .document-card p, .detail-entry-list p { color: #536358; margin-top: 4px; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-line; }
.journal-meta, .timeline-attribution { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.journal-meta { margin-bottom: 3px; color: var(--muted); font-size: 11px; }
.event-type { color: var(--green); font-weight: 670; }
.entry-certainty { color: var(--muted); }
.entry-certainty.amber { color: #825b1d; }
.timeline-attribution, .entry-links { margin-top: 7px; }
.entry-links { display: flex; flex-wrap: wrap; gap: 5px 10px; }
.entry-links .text-link { overflow-wrap: anywhere; }
.event-action { margin-top: 7px; }

.document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; padding: 0 16px 16px; }
.document-card { display: flex; flex-direction: column; align-items: start; gap: 3px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.document-top { display: flex; align-items: center; gap: 6px; width: 100%; margin-bottom: 6px; }
.document-top .pill { margin-left: auto; }
.document-kind, .document-date, .document-bottom .muted { font-size: 10.9px; color: var(--muted); }
.document-kind { color: var(--green); font-weight: 650; }
.document-card .row-title { font-size: 14px; }
.document-bottom { display: flex; width: 100%; gap: 5px; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 9px; }
.review-note { padding: 6px 8px; color: #46634f; background: #f1f6ef; display: flex; align-items: start; gap: 6px; border-radius: 6px; margin-top: 3px; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }

.revision-list { border-top: 1px solid var(--line-soft); }
.revision-row + .revision-row { border-top: 1px solid var(--line-soft); }
.revision-row summary {
  list-style: none; display: grid; grid-template-columns: 35px minmax(0, 1fr) auto 17px;
  gap: 9px; cursor: pointer; padding: 12px 16px; align-items: center;
}
.revision-row summary::-webkit-details-marker { display: none; }
.revision-row summary:hover { background: #f8faf6; }
.revision-title, .revision-date { display: grid; gap: 3px; color: #344f3e; font-size: 12px; }
.revision-title span, .revision-date small { color: var(--muted); font-size: 10.6px; }
.expand-indicator { color: var(--green); transition: transform .15s; }
.revision-row[open] .expand-indicator { transform: rotate(45deg); }
.revision-detail { padding: 1px 16px 13px 61px; }
.revision-detail dl { display: grid; gap: 5px; }
.revision-detail dl > div { padding: 8px; background: #f8faf7; border-radius: 7px; }
.revision-detail dt { color: var(--muted); font-size: 11px; margin-bottom: 3px; font-weight: 650; }
.revision-detail dd { display: flex; align-items: start; flex-wrap: wrap; gap: 4px 6px; font-size: 12px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.revision-detail dd span { padding: 2px 5px; border-radius: 4px; }
.revision-detail dd svg { margin-top: 4px; color: #637568; }
.diff-before { background: #f7ede7; color: #824c3c; }
.diff-after { background: #eaf2e8; color: #325d44; }
.revision-links { display: flex; flex-wrap: wrap; gap: 8px 13px; margin-top: 8px; }

.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0 0 0 auto; padding: 0;
  color: var(--ink); width: min(620px, 100%); max-width: 100%; max-height: none; height: 100dvh; border: 0;
  background: #fff; box-shadow: -14px 0 45px #183a2b23; overflow: hidden;
}
.drawer::backdrop { background: #152a21aa; }
.drawer-content { display: flex; flex-direction: column; height: 100%; }
.drawer-header { display: flex; align-items: start; justify-content: space-between; gap: 10px; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin-top: 4px; font-size: clamp(22px, 5vw, 28px); line-height: 1.12; letter-spacing: -.047em; text-wrap: pretty; }
.close-drawer { margin: -3px -3px 0 0; }
.draw-back { margin: 0 0 8px; }
.drawer-body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 15px 22px 20px; }
.drawer-footer { flex-shrink: 0; border-top: 1px solid var(--line); padding: 11px 22px; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.detail-top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.area-label { font-size: 11.8px; color: var(--muted); }
.detail-section { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.detail-section:last-child { border: 0; }
.detail-section h3 { display: flex; align-items: center; gap: 7px; color: #254933; font-size: 14px; margin-bottom: 9px; }
.detail-field + .detail-field { margin-top: 8px; }
.detail-field dt { color: var(--muted); font-size: 11.1px; font-weight: 650; margin-bottom: 3px; }
.detail-field dd, .detail-section > p { font-size: 12.4px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.detail-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.detail-columns .detail-field + .detail-field { margin-top: 0; }
.field-open { color: #77581d; font-weight: 620; }
.date-caption { color: var(--muted); margin-top: 2px; font-size: 11.3px; }
.date-caption.late-date { color: var(--danger); }
.detail-warning { display: flex; align-items: start; gap: 7px; padding: 9px; margin: 9px 0 0; color: #765020; background: #fbf2df; border: 1px solid #eee2c9; border-radius: 8px; font-size: 12px; line-height: 1.45; }
.detail-warning p, .detail-warning .dependency-links { margin-top: 4px; }
.detail-entry-list article { display: grid; grid-template-columns: 35px minmax(0, 1fr) 33px; gap: 7px; padding: 9px 0; }
.detail-entry-list article + article { border-top: 1px solid var(--line-soft); }
.editor-form { display: grid; gap: 14px; }
.editor-form fieldset { border: 0; margin: 0; padding: 0 0 12px; min-width: 0; display: grid; gap: 9px; border-bottom: 1px solid var(--line-soft); }
.editor-form fieldset:last-child { border: 0; }
.editor-form h3 { color: #2e513a; font-size: 13px; margin-bottom: 1px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.field > span, .file-box strong { color: #374f3f; font-size: 11.7px; font-weight: 680; }
.field small, .file-box small { display: block; color: var(--muted); font-size: 10.6px; line-height: 1.4; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; min-height: 36px; border: 1px solid #dbe4dc; border-radius: 7px; padding: 7px 8px;
  background: #fff; font-size: 12.5px; color: var(--ink);
}
.field textarea { resize: vertical; line-height: 1.5; }
.editor-form .muted { font-size: 11.5px; }
.form-error { margin: 0; }
.form-error .text-link { margin-top: 5px; display: flex; }
.dependency-picker { padding: 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 11.5px; color: var(--green-dark); }
.dependency-picker summary { cursor: pointer; font-weight: 650; }
.dependency-picker > div { display: grid; gap: 4px; margin-top: 8px; }
.dependency-picker label { display: flex; align-items: center; gap: 5px; }
.dependency-picker input { accent-color: #2a6246; }
.file-box { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; border: 1px dashed #c8d7c9; border-radius: 7px; padding: 8px; }
.file-box input { max-width: 100%; font-size: 11.5px; }
.file-box strong { display: block; }
.file-box input::file-selector-button { border: 1px solid var(--line); padding: 4px 6px; border-radius: 5px; background: #f3f6f1; color: #345240; margin-right: 5px; cursor: pointer; }
.toast-region { position: fixed; right: 17px; bottom: 17px; z-index: 8; }
.toast { background: #244e39; color: white; padding: 9px 13px; border-radius: 8px; font-size: 12px; box-shadow: 0 3px 12px #11291e42; }
.sign-in { min-height: 100dvh; display: grid; place-items: center; padding: 18px; }
.sign-in section { padding: 24px; max-width: 410px; }
.sign-in h1 { letter-spacing: -.04em; }
.sign-in p { margin: 8px 0 16px; color: var(--muted); line-height: 1.5; }

@media (max-width: 1250px) {
  :root { --side-width: 220px; }
  .topbar { padding-inline: 23px; }
  .page-content { padding-inline: 23px; }
  .overview-grid { grid-template-columns: minmax(0, 2.4fr) minmax(225px, 1fr); }
  .compact-table .row-owner { min-width: 88px; }
  th, td { padding-inline: 9px; }
  .row-status { min-width: 8.3rem; }
}

@media (max-width: 1080px) {
  .overview-grid { grid-template-columns: 1fr; }
  .overview-side { grid-row: 2; }
  .priority-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .priority-list > li + li { border-top: 0; border-left: 1px solid var(--line-soft); }
  .document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solar-panels { right: 68px; }
  .solar-panels-far { right: -22px; }
}

@media (max-width: 840px) {
  :root { --header-height: 59px; --side-width: 232px; }
  .main-shell { margin-left: 0; }
  .sidebar { z-index: 9; visibility: hidden; transform: translateX(-100%); transition: transform .2s, visibility .2s; }
  .sidebar.mobile-open { visibility: visible; transform: translateX(0); }
  .mobile-toggle { display: inline-flex !important; margin-left: -5px; }
  .mobile-backdrop { display: block !important; position: fixed; inset: 0; z-index: 8; border: 0; background: #182e23aa; }
  .page-content { padding: 18px 18px 33px; }
  .topbar { padding-inline: 18px; }
  .solar-art { width: 45%; }
}

@media (max-width: 600px) {
  .topbar, .topbar-actions, .breadcrumbs { gap: 6px; }
  .topbar time, .crumb-root, .crumb-divider { display: none; }
  .topbar, .page-content { padding-inline: 13px; }
  .topbar .button { min-height: 36px; padding: 0 8px; font-size: 12px; }
  .page-content { padding-top: 13px; }
  .hero { padding: 20px 16px; min-height: 198px; }
  .hero h1 { font-size: 33px; max-width: 420px; }
  .hero-subtitle { font-size: 12.8px; max-width: 80%; }
  .hero-kicker { font-size: 9.5px; }
  .hero-button { margin-top: 15px; min-height: 35px; }
  .solar-art { opacity: .35; width: 62%; }
  .solar-sun { right: 20px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 10px 0; }
  .stat-card { min-height: 110px; padding: 9px; }
  .stat-symbol { width: 29px; height: 29px; flex-basis: 29px; }
  .stat-symbol svg { width: 17px; }
  .stat-arrow { right: 9px; top: 10px; }
  .stat-value { font-size: 24px; margin-top: 5px; }
  .stat-label { font-size: 11.7px; }
  .stat-note { font-size: 10.3px; }
  .panel-head { min-height: 56px; padding: 9px 10px; }
  .panel-head h2 { font-size: 15px; }
  .panel-head p, .panel-head .text-link { font-size: 11px; }
  .overview-grid { gap: 9px; }
  .priority-list { grid-template-columns: 1fr; }
  .priority-list > li + li { border-left: 0; border-top: 1px solid var(--line-soft); }
  .workflow-panel { margin-top: 9px; padding: 9px; }
  .workflow { gap: 6px 8px; }
  .workflow li { font-size: 10px; }
  .workflow li:not(:last-child)::after { margin-left: 3px; }
  .section-head { flex-wrap: wrap; margin: 4px 0 12px; align-items: start; }
  .section-head p { font-size: 12px; }
  .tabs-line { gap: 0 9px; padding-inline: 9px; }
  .tabs-line button { font-size: 10.7px; }
  .filters-line { padding: 8px 9px; }
  .search-input { width: 100%; }
  .work-table thead th:not(:first-child):not(:last-child) { display: none; }
  .work-table tbody { display: block; }
  .work-table thead { display: none; }
  .work-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto) 28px; padding: 8px 9px; border-top: 1px solid var(--line-soft); gap: 4px 7px; }
  .work-table td { padding: 0; border: 0; min-width: 0; }
  .work-table td:first-child { grid-column: 1 / 3; }
  .work-table .row-area { display: none; }
  .work-table .row-owner { grid-column: 1; grid-row: 2; font-size: 11.3px; align-self: center; }
  .work-table .row-status { grid-column: 1; grid-row: 3; }
  .work-table .row-date { grid-column: 2; grid-row: 2 / 4; text-align: right; align-self: center; font-size: 11px; }
  .work-table .row-arrow { grid-column: 3; grid-row: 1 / 4; width: 28px; align-self: center; }
  .work-table .icon-button { width: 28px; }
  .matrix-table { min-width: 625px; }
  .deadline-row { grid-template-columns: minmax(0, 1fr) 28px; padding: 9px; gap: 6px; }
  .deadline-copy { grid-column: 1; font-size: 11.3px; }
  .deadline-row > .icon-button { grid-column: 2; grid-row: 1 / 3; }
  .timeline { padding-inline: 9px; }
  .timeline-row { padding: 9px 1px; grid-template-columns: 26px minmax(0, 1fr) 28px; gap: 4px 6px; }
  .timeline-row .entry-symbol { grid-column: 1; width: 26px; height: 26px; grid-row: 1 / 3; }
  .timeline-row .entry-symbol svg { width: 14px; }
  .timeline-date { grid-column: 2; grid-row: 1; display: flex; gap: 7px; }
  .timeline-content { grid-column: 2; grid-row: 2; }
  .timeline-row > .icon-button { grid-column: 3; grid-row: 1 / 3; width: 28px; }
  .document-grid { grid-template-columns: 1fr; padding: 0 9px 9px; }
  .revision-row summary { padding-inline: 9px; }
  .revision-detail { padding: 0 9px 8px 50px; }
  .drawer-header, .drawer-body, .drawer-footer { padding-inline: 12px; }
  .detail-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}

.login-panel{width:min(440px,100%);border-top:5px solid #f5cf00}.login-home{display:inline-block;font-weight:700;margin-bottom:24px;color:#202c24}.login-panel h1{font-size:30px}.login-panel label{display:block;font-size:16px;margin:12px 0 6px}.login-panel input[type=text],.login-panel input[type=password]{width:100%;padding:12px;border:1px solid #a5aea6;border-radius:6px;font-size:18px}.login-panel input[type=submit]{border:0;background:#f5cf00;color:#111;padding:13px 24px;font-weight:700;border-radius:5px;font-size:17px;cursor:pointer}.login-panel .login-remember label{display:flex;gap:8px;align-items:center;font-size:14px}.sidebar-bottom .nav-link{margin-top:5px}
.private-portal{width:min(100% - 36px,1040px);margin:0 auto;padding:28px 0 50px;font-size:17px;line-height:1.55}.portal-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:8px 0 28px;border-bottom:1px solid var(--line)}.portal-brand{font-size:23px;font-weight:750;color:#172a20;text-decoration:none}.portal-logout{color:#263c2e;font-size:16px;text-decoration:underline}.portal-intro{padding:36px 0 25px}.portal-kicker{font-size:14px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:#48614e}.portal-intro h1{font-size:clamp(30px,5vw,42px);line-height:1.2;margin:8px 0 12px}.portal-intro>p:last-child{color:#526257}.portal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.portal-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;background:white;border:1px solid var(--line);border-top:5px solid #f5cf00;border-radius:12px;padding:28px;box-shadow:0 5px 20px #17322208}.portal-card-label{font-size:14px;font-weight:700;color:#506455}.portal-card h2{font-size:27px;line-height:1.25}.portal-card>p:not(.portal-card-label){color:#526257;margin-bottom:8px}.portal-button,.portal-download{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 20px;border-radius:5px;text-decoration:none;font-size:16px;font-weight:750;background:#f5cf00;color:#111;line-height:1.4}.portal-button{margin-top:auto}.portal-button:hover,.portal-download:hover{background:#e4bf00;color:#111}.portal-card small,.portal-backup small{font-size:13px;color:#56655a;line-height:1.5}.portal-backup{display:grid;grid-template-columns:1fr auto;align-items:center;gap:16px 24px;margin-top:28px;padding:25px;border:1px solid var(--line);border-radius:12px;background:#fff}.portal-backup h2{font-size:21px;margin-bottom:7px}.portal-backup p{font-size:15px;color:#526257}.portal-backup small{grid-column:1/-1}.private-portal a:focus-visible{outline:3px solid #246b99;outline-offset:4px}@media(max-width:650px){.private-portal{width:calc(100% - 28px);padding-top:15px}.portal-header{padding-bottom:18px}.portal-brand{font-size:20px}.portal-intro{padding-top:27px}.portal-grid{grid-template-columns:1fr;gap:16px}.portal-card{padding:23px}.portal-backup{grid-template-columns:1fr;padding:22px}.portal-download{justify-self:start}.portal-backup small{grid-column:auto}}
