:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #202e29;
  background: #f6f7f3;
  --dark: #153a34;
  --green: #215f4c;
  --muted: #52645c;
  --line: #dce4dc;
  --paper: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
button { background: none; }
a { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 2px solid #408d73;
  outline-offset: 3px;
}
.skip, .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus { z-index: 5; top: 10px; left: 10px; width: auto; height: auto; padding: 10px; clip-path: none; background: white; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex: none; }
[data-icon] svg { width: 17px; height: 17px; }
.shell { display: grid; grid-template-columns: 234px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #14352f;
  color: #e9f0e9;
  padding: 27px 16px 18px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 6px; text-decoration: none; font-size: 16px; font-weight: 700; }
.brand small { display: block; color: #abc3b8; font-size: 11px; font-weight: 500; margin-top: 3px; }
.sidebar nav { margin-top: 39px; }
.nav-label { font-size: 10px; font-weight: 700; letter-spacing: .13em; color: #a7c0b3; margin: 0 0 9px 10px; }
.kra-label { margin-top: 30px; }
.nav-link {
  width: 100%;
  min-height: 43px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  text-align: left;
  font-size: 12.5px;
  color: #d3e3d9;
}
.nav-link:hover, .nav-link.active { background: #254b41; color: #f7fff9; }
.nav-link.active { border-color: #365b51; font-weight: 650; }
.nav-number { display: grid; place-items: center; width: 23px; height: 23px; flex: none; border-radius: 6px; background: #2b5146; color: #c4dfcf; font-size: 10px; font-weight: 650; }
.overview { padding-left: 12px; }
.storage { margin-top: auto; padding: 13px 9px 0; display: flex; align-items: start; gap: 9px; border-top: 1px solid #34534a; color: #b8d1c3; font-size: 11px; line-height: 1.5; }
.storage strong, .storage small { display: block; }
.storage small { font-size: 10.5px; }
.topbar {
  min-height: 66px;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.breadcrumb, .top-actions { display: flex; align-items: center; gap: 9px; }
.breadcrumb { color: var(--muted); font-size: 13px; }
.breadcrumb strong { color: #283a32; }
.breadcrumb svg { width: 13px; height: 13px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid #d3ded5;
  border-radius: 8px;
  padding: 7px 12px;
  background: #fff;
  color: #284a3d;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
}
.button:hover, .icon-button:hover { background: #edf5ee; border-color: #b5cbbd; }
.button:disabled { opacity: .55; cursor: default; }
.button.quiet { border-color: transparent; }
.button.primary { background: var(--green); color: #fff; border-color: var(--green); }
.button.primary:hover { background: #174b3c; }
.button.compact { min-height: 34px; }
main { width: min(100%, 1400px); padding: 27px 32px 22px; margin: 0 auto; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 195px;
  display: flex;
  align-items: center;
  padding: 27px 32px;
  color: #fff;
  background: linear-gradient(108deg, #1a463b 4%, #215445 68%, #316959 100%);
  border: 1px solid #225343;
  border-radius: 16px;
}
.hero-copy { z-index: 1; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 5px 9px;
  border: 1px solid #547e6b;
  border-radius: 20px;
  background: #244e40;
  color: #e1eedc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .105em;
}
.hero-tag span { width: 6px; height: 6px; border-radius: 50%; background: #e6ca80; }
h1 { margin: 12px 0 6px; font-size: clamp(30px, 3.1vw, 47px); line-height: 1.08; letter-spacing: -.055em; }
.hero-copy > p:last-child { max-width: 470px; margin: 0; color: #e0eee5; font-size: 14px; line-height: 1.55; }
.hero-art { position: absolute; right: 0; top: 50%; transform: translateY(-50%); height: 112%; width: auto; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0 29px; }
.stat { display: flex; align-items: start; justify-content: space-between; gap: 8px; padding: 15px; min-height: 99px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.stat-label { margin: 0; font-size: 12px; font-weight: 650; color: var(--muted); }
.stat strong { display: block; margin-top: 4px; font-size: 28px; line-height: 1.03; letter-spacing: -.045em; }
.stat small { display: block; margin-top: 5px; color: var(--muted); font-size: 10.5px; }
.stat-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; color: #315f50; background: #e7f1e9; }
.stat-icon.progress { color: #795512; background: #f8efd9; }
.stat-icon.pending { color: #4f5d61; background: #edf1f1; }
.checklist { scroll-margin-top: 16px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
h2 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.section-heading p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(145px, 188px) minmax(132px, 165px); gap: 9px; }
.search, .select-filter {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  color: var(--muted);
}
.search [data-icon] { position: absolute; left: 12px; pointer-events: none; }
.select-filter [data-icon] { position: absolute; right: 10px; pointer-events: none; }
.search input, .select-filter select { width: 100%; min-height: 40px; border: 1px solid #d7e0d7; background: white; border-radius: 8px; font-size: 12px; }
.search input { padding: 8px 12px 8px 37px; }
.search input::placeholder { color: #586962; opacity: 1; }
.select-filter select { appearance: none; padding: 7px 30px 7px 11px; text-overflow: ellipsis; color: #2c4137; }
.result-count { margin: 10px 1px 9px; font-size: 11px; color: var(--muted); }
.kra { margin-bottom: 9px; border: 1px solid var(--line); border-radius: 11px; background: white; overflow: clip; scroll-margin-top: 12px; }
.kra > summary { display: flex; align-items: center; gap: 11px; list-style: none; padding: 11px 14px; min-height: 61px; }
.kra > summary::-webkit-details-marker { display: none; }
.kra > summary:hover { background: #f8fbf8; }
.kra[open] > summary { background: #f1f6ef; border-bottom: 1px solid var(--line); }
.kra-number { width: 35px; height: 35px; display: grid; place-items: center; flex: none; border-radius: 8px; background: #dfebe0; color: #265545; font-size: 12px; font-weight: 750; }
.kra-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; }
.kra-progress { color: var(--muted); font-size: 11px; white-space: nowrap; }
.kra-toggle { color: #436457; }
.kra[open] .kra-toggle { transform: rotate(180deg); }
.objective { padding: 0 14px; }
.objective h3 { margin: 0; padding: 13px 0 8px; font-size: 11px; font-weight: 700; color: #4b655a; letter-spacing: .025em; }
.mov-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 106px 116px 17px; gap: 10px; align-items: center; padding: 9px 2px; min-height: 52px; border: 0; border-top: 1px solid #e9eee8; text-align: left; }
.mov-row:hover { background: #f6faf6; }
.mov-title { display: flex; align-items: start; gap: 9px; min-width: 0; font-size: 13px; font-weight: 650; line-height: 1.4; }
.mov-title [data-icon] { margin-top: 1px; color: #517061; }
.mov-title [data-icon] svg { width: 15px; height: 15px; }
.mov-meta { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.mov-meta svg { width: 14px; height: 14px; }
.mov-row > [data-icon]:last-child { color: #557466; }
.status { display: inline-flex; justify-self: start; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 700; white-space: nowrap; background: #edf1ee; color: #445850; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.status.progress { background: #faf0d8; color: #77541b; }
.status.complete { background: #e1f1e4; color: #276348; }
.status.na { background: #efecf4; color: #5b5269; }
.empty { padding: 28px; text-align: center; background: white; border: 1px dashed #cbd9ce; border-radius: 10px; color: var(--muted); font-size: 14px; }
main > footer { margin-top: 21px; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
dialog { color: inherit; border: 1px solid var(--line); padding: 0; }
dialog::backdrop { background: #0c262380; }
body:has(dialog[open]) { overflow: hidden; }
#details {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 580px);
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border-radius: 17px 0 0 17px;
  box-shadow: -12px 0 40px #183b3130;
}
#editor { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.drawer-head, .drawer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.drawer-head p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 650; }
.drawer-footer { justify-content: end; border-bottom: 0; border-top: 1px solid var(--line); }
.drawer-body { overflow-y: auto; padding: 19px 20px 23px; }
.drawer-body h2 { margin-bottom: 6px; font-size: 26px; }
.drawer-body h3 { margin: 0; font-size: 15px; }
.detail-objective { margin: 0 0 14px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.source { padding: 12px; border: 1px solid #d8e6d7; border-radius: 9px; background: #f1f7ef; margin-bottom: 16px; }
.source p { white-space: pre-line; margin: 7px 0 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.source small { display: block; margin-top: 7px; font-size: 11px; color: var(--muted); }
.source .guidance { color: #365748; font-size: 12px; }
.field { display: grid; gap: 5px; min-width: 0; color: #30463b; font-size: 12px; font-weight: 650; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; border: 1px solid #cfdcd3; padding: 8px; min-height: 39px; border-radius: 7px; background: #fff; font-size: 13px; font-weight: 400; }
.field textarea { min-height: 86px; resize: vertical; }
.editor-error { padding: 9px 12px; border-radius: 7px; background: #fbede6; color: #813d2b; font-size: 13px; }
.detail-status { margin-bottom: 16px; }
.detail-status p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.option { margin-bottom: 14px; }
.check-field { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 12px; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--green); }
.contributor-section { margin: 18px 0; }
.contributor-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.contributor-section > p { color: var(--muted); font-size: 12px; margin: 6px 0 10px; line-height: 1.4; }
.person { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 8px; }
.person-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.person-status { align-items: center; }
.person-label { font-size: 13px; overflow-wrap: anywhere; }
.person-label small { display: block; color: var(--muted); margin-top: 3px; }
.icon-button { display: inline-grid; place-items: center; padding: 0; width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--line); color: #3f6254; }
.confirm { width: min(410px, calc(100% - 24px)); border-radius: 12px; padding: 20px; }
.confirm p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.confirm-actions { display: flex; gap: 8px; justify-content: end; }
.access-dialog { width: min(500px, calc(100% - 24px)); }
.access-head, .access-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.access-row { padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; min-height: 45px; }
.access-row strong { overflow-wrap: anywhere; }
.access-row span { color: var(--muted); }
.access-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-top: 14px; }
.access-backup { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.access-backup h3 { margin: 0 0 8px; font-size: 14px; }
.access-backup button { margin: 0 3px 4px 0; }
.notice { position: fixed; z-index: 4; right: 16px; bottom: 16px; max-width: min(390px, calc(100% - 32px)); padding: 11px 15px; background: #153d32; color: #fff; border: 1px solid #3b6758; border-radius: 9px; font-size: 13px; box-shadow: 0 5px 24px #173b3230; }
@media (max-width: 1020px) {
  .shell { grid-template-columns: 192px minmax(0, 1fr); }
  .sidebar { padding-inline: 10px; }
  main, .topbar { padding-inline: 22px; }
  .hero-art { right: -40px; opacity: .7; }
  .hero-copy > p:last-child { max-width: 370px; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; padding: 11px 15px; overflow: visible; flex-direction: row; justify-content: space-between; align-items: center; gap: 9px; }
  .brand { padding: 0; font-size: 14px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .brand small { font-size: 10px; }
  .sidebar nav { display: none; }
  .storage { border: 0; padding: 0; margin-top: 0; gap: 5px; }
  .storage small { display: none; }
  .topbar { min-height: 50px; padding: 7px 14px; }
  main { padding: 15px 14px 18px; }
  .hero { min-height: 174px; padding: 20px; }
  .hero-art { right: -80px; opacity: .34; }
  .hero-copy > p:last-child { font-size: 13px; max-width: 330px; }
  .stats { gap: 8px; margin: 11px 0 20px; }
  .stat { padding: 9px; }
}
@media (max-width: 490px) {
  .breadcrumb span { display: none; }
  .top-actions { gap: 3px; }
  .top-actions .button { min-height: 34px; padding-inline: 7px; gap: 4px; font-size: 11px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-height: 75px; }
  .stat strong { font-size: 24px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .search { grid-column: 1 / -1; }
  .kra > summary { gap: 7px; padding-inline: 9px; }
  .kra-name { font-size: 12px; }
  .kra-progress { font-size: 10px; }
  .kra-number { width: 27px; height: 27px; }
  .objective { padding-inline: 9px; }
  .mov-row { grid-template-columns: minmax(0, 1fr) auto 15px; gap: 6px; }
  .mov-meta { display: none; }
  .mov-title { gap: 5px; font-size: 12px; }
}
