:root{
  --bg:#031109;
  --bg-deep:#021009;
  --sidebar:#02110a;
  --panel:#0b1f16;
  --panel-2:#0d241a;
  --line:#214b37;
  --line-soft:#173a2a;
  --text:#f4f7f5;
  --muted:#879a90;
  --green:#21a975;
  --green-bright:#27bd84;
  --gold:#d1b255;
  --gold-bg:#2a2712;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:
    radial-gradient(900px 680px at 37% 18%,rgba(22,89,59,.08),transparent 62%),
    linear-gradient(180deg,#03120b 0%,#020e08 100%);
  color:var(--text);
  font-family:"Segoe UI",Tahoma,Arial,sans-serif;
  min-height:100vh;
}
button,a{font:inherit}
.app-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:228px minmax(0,1fr);
  direction:rtl;
}
.sidebar{
  position:sticky;
  top:0;
  height:100vh;
  padding:20px 16px;
  background:var(--sidebar);
  border-left:1px solid #173629;
}
.identity{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:54px;
  padding-bottom:17px;
  border-bottom:1px solid #163528;
}
.logo{
  width:38px;
  height:38px;
  border-radius:10px;
  display:grid;
  place-items:center;
  border:1px solid #126743;
  color:#47d298;
  font-weight:800;
  font-size:18px;
}
.identity strong{display:block;font-size:14px;line-height:1.2}
.identity small{display:block;margin-top:4px;color:#83978c;font-size:10px}
.side-section{display:flex;flex-direction:column;gap:5px;margin-top:18px}
.section-label{
  color:var(--gold);
  font-size:9px;
  font-weight:800;
  letter-spacing:.15em;
  padding:0 9px 5px;
}
.side-link{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:43px;
  padding:10px 12px;
  border-radius:10px;
  color:#8ea398;
  border:1px solid transparent;
  text-decoration:none;
  font-size:12px;
}
.side-link span{font-size:15px;opacity:.9}
.side-link.active{
  color:#fff;
  background:#08271a;
  border-color:#0f4f34;
}
.content{
  min-width:0;
  padding:0 26px 34px;
}
.topbar{
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.sample-note{text-align:right}
.sample-note span{
  display:block;
  color:var(--gold);
  font-weight:800;
  font-size:9px;
  letter-spacing:.14em;
}
.sample-note small{
  display:block;
  margin-top:5px;
  color:#83978d;
  font-size:11px;
}
.utility{display:flex;gap:9px;direction:ltr}
.utility button{
  height:36px;
  min-width:36px;
  padding:0 10px;
  border-radius:10px;
  border:1px solid #234735;
  background:#06170f;
  color:#dce7e1;
}
.utility .help{min-width:76px}
.mode-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  margin:0 0 16px;
  padding:5px;
  border:1px solid #173d2d;
  border-radius:13px;
  background:#06160f;
}
.tab{
  height:43px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#7f9589;
  font-weight:700;
  font-size:12px;
}
.tab.active{
  background:var(--green);
  color:white;
}
.panel{
  background:linear-gradient(180deg,#0b1f16 0%,#091b13 100%);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:none;
}
.hero-panel{
  padding:24px 18px 18px;
  min-height:318px;
}
.hero-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.hero-top>div{max-width:770px}
.eyebrow{
  display:block;
  color:var(--gold);
  margin-bottom:14px;
  font-size:9px;
  font-weight:800;
  letter-spacing:.14em;
}
.hero-panel h1{
  margin:0 0 9px;
  font-size:31px;
  line-height:1.22;
}
.hero-panel p{
  margin:0;
  max-width:760px;
  color:#8fa399;
  font-size:13px;
  line-height:1.8;
}
.actions{display:flex;gap:8px;margin-top:16px}
.primary,.secondary,.audit{
  border-radius:9px;
  padding:9px 14px;
  cursor:pointer;
  text-decoration:none;
  font-weight:700;
}
.primary{
  color:#fff;
  background:#2bb17b;
  border:1px solid #2bb17b;
}
.secondary{
  color:#eef4f1;
  background:#071811;
  border:1px solid #29503c;
}
.audit{
  color:#181306;
  background:#d0af58;
  border:1px solid #d0af58;
}
.small{padding:7px 11px;font-size:11px}
.sample-pill{
  margin-top:28px;
  white-space:nowrap;
  padding:8px 11px;
  border-radius:999px;
  color:#ddc45f;
  background:#2b2915;
  border:1px solid #75692a;
  font-size:10px;
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-top:24px;
}
.stat{
  min-height:110px;
  padding:16px 14px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  border-radius:14px;
  border:1px solid #224c37;
  background:rgba(8,31,21,.54);
}
.stat span{color:#83988d;font-size:10px}
.stat strong{font-size:20px}
.stat em{
  width:max-content;
  padding:4px 7px;
  border-radius:999px;
  font-size:9px;
  font-style:normal;
  color:#7bc6a3;
  background:#0b2c1e;
  border:1px solid #24593f;
}
.stat em.gold,.gold{
  color:#d6bd5b;
  background:#282612;
  border-color:#655a2a;
}
.split-grid{
  display:grid;
  grid-template-columns:1.6fr .94fr;
  gap:13px;
  margin-top:13px;
}
.split-grid>.panel{padding:22px 18px}
.panel h2{margin:0 0 12px;font-size:18px}
.muted{margin:0 0 13px;color:#879b90;font-size:12px;line-height:1.75}
.task-row,.version-row,.check-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:56px;
  padding:12px 0;
  border-top:1px solid #1c3d2d;
}
.task-row:first-of-type,.version-row:first-of-type,.check-row:first-of-type{border-top:0}
.task-row strong,.version-row strong{display:block;font-size:12px}
.task-row small,.version-row small{
  display:block;
  margin-top:4px;
  color:#7f9288;
  font-size:9px;
}
.badge{
  flex:0 0 auto;
  padding:4px 7px;
  border-radius:999px;
  color:#d7c05a;
  background:#282613;
  border:1px solid #625a2a;
  font-size:8px;
}
.check-row{font-size:11px}
.check-row em{
  padding:4px 7px;
  border-radius:999px;
  color:#79caa4;
  background:#0b2b1d;
  border:1px solid #25583f;
  font-size:9px;
  font-style:normal;
}
#versions{
  margin-top:13px;
  padding:22px 18px;
}
.version-row button{margin-right:auto}
.split-grid:last-child{grid-template-columns:1.58fr .93fr}
@media(max-width:980px){
  .app-shell{grid-template-columns:1fr}
  .sidebar{position:static;height:auto;border-left:0;border-bottom:1px solid #173629}
  .side-section{display:grid;grid-template-columns:repeat(2,1fr)}
  .content{padding:0 16px 28px}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .split-grid,.split-grid:last-child{grid-template-columns:1fr}
}
@media(max-width:620px){
  .topbar{padding:12px 0;align-items:flex-start}
  .sample-note{max-width:62%}
  .utility .help{display:none}
  .mode-tabs{grid-template-columns:1fr}
  .hero-top{flex-direction:column}
  .sample-pill{margin-top:0}
  .hero-panel h1{font-size:25px}
  .stats-grid{grid-template-columns:1fr}
  .side-section{grid-template-columns:1fr}
  .actions{flex-wrap:wrap}
}
