:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17231e;
  background: #f3f6f2;
  font-synthesis: none;
  --green-950: #07271d;
  --green-900: #0b3b2c;
  --green-800: #15513d;
  --green-100: #deeee6;
  --gold: #e4b64e;
  --line: #dce4de;
  --muted: #728078;
  --paper: #ffffff;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 286px 1fr; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 28px 22px 22px;
  display: flex; flex-direction: column; color: white;
  background: radial-gradient(circle at 0 0, #205d46 0, transparent 34%), linear-gradient(180deg, #0d402f, #07291f);
}
.brand { display: flex; align-items: center; gap: 13px; padding: 0 5px 24px; }
.brand img { width: 51px; height: 51px; border-radius: 50%; box-shadow: 0 10px 28px #041a1355; }
.brand strong { display: block; letter-spacing: .08em; font-size: 19px; }
.brand span { display: block; margin-top: 4px; color: #d8c07b; font-size: 10px; letter-spacing: .31em; }
.lab-card { display: flex; gap: 11px; align-items: center; padding: 14px; border: 1px solid #ffffff24; border-radius: 16px; background: #ffffff0d; }
.lab-card strong, .lab-card small { display: block; }
.lab-card strong { font-size: 13px; }
.lab-card small { color: #afc0b8; margin-top: 3px; }
.lab-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px #e4b64e22; }
.navigation { margin-top: 30px; }
.navigation > p { padding: 0 12px; color: #809c8f; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.nav-item { width: 100%; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 10px; margin: 6px 0; padding: 11px; border: 1px solid transparent; border-radius: 14px; color: #b9c8c1; text-align: left; background: transparent; }
.nav-item:hover { background: #ffffff0a; color: white; }
.nav-item.active { color: white; border-color: #dcb14d55; background: linear-gradient(90deg, #ffffff17, #ffffff09); box-shadow: inset 4px 0 var(--gold); }
.nav-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #ffffff0c; font-size: 19px; }
.nav-item.active .nav-icon { color: var(--green-950); background: var(--gold); }
.nav-item strong, .nav-item small { display: block; }
.nav-item strong { font-size: 14px; }
.nav-item small { margin-top: 3px; color: #82998e; font-size: 11px; }
.sidebar-footer { margin-top: auto; padding: 17px 12px 0; border-top: 1px solid #ffffff18; }
.sidebar-footer span, .sidebar-footer small { display: block; }
.sidebar-footer span { color: var(--gold); font-weight: 800; font-size: 12px; letter-spacing: .12em; }
.sidebar-footer small { margin-top: 5px; color: #82998e; }

.main-area { min-width: 0; }
.topbar { min-height: 112px; display: flex; align-items: center; gap: 18px; padding: 24px 38px; border-bottom: 1px solid var(--line); background: #ffffffd9; backdrop-filter: blur(16px); }
.topbar h1 { margin: 5px 0 0; font-size: clamp(20px, 2vw, 29px); letter-spacing: -.035em; }
.eyebrow { color: #77867e; font-size: 10px; font-weight: 900; letter-spacing: .19em; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.safe-badge { padding: 9px 12px; border-radius: 999px; color: #236146; background: #e4f2e9; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.menu-button { display: none; border: 0; background: transparent; font-size: 24px; }
.primary-button, .secondary-button, .icon-button { border: 0; border-radius: 12px; font-weight: 750; }
.primary-button { padding: 13px 17px; color: white; background: var(--green-900); box-shadow: 0 7px 18px #0b3b2c22; }
.primary-button:hover { background: var(--green-800); }
.secondary-button { padding: 12px 16px; color: #34443c; background: #edf1ee; }
.icon-button { width: 42px; height: 42px; color: #526159; background: #f0f3f1; font-size: 25px; }
.content { padding: 34px 38px 60px; }

.hero { position: relative; overflow: hidden; min-height: 248px; padding: 34px; border-radius: 25px; color: white; background: linear-gradient(125deg, #0a3528 0%, #15523d 58%, #2e6748 100%); box-shadow: 0 18px 44px #133b2c1c; }
.hero::after { content: ""; position: absolute; right: -50px; top: -100px; width: 320px; height: 320px; border: 1px solid #ffffff20; border-radius: 50%; box-shadow: 0 0 0 46px #ffffff08, 0 0 0 92px #ffffff05; }
.hero > * { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; padding: 8px 11px; border-radius: 999px; color: #183d2c; background: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.hero h2 { max-width: 680px; margin: 20px 0 12px; font-size: clamp(29px, 4vw, 47px); line-height: 1.02; letter-spacing: -.05em; }
.hero p { max-width: 610px; margin: 0; color: #c9d8d0; line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; margin-top: 25px; }
.hero .primary-button { color: #153527; background: var(--gold); }
.hero .secondary-button { color: white; background: #ffffff14; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 34px 0 16px; }
.section-head h2 { margin: 0; font-size: 20px; }
.section-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 21px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 8px 24px #17392d09; }
.card-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 23px; border-radius: 13px; color: #1b5a40; background: var(--green-100); font-size: 20px; }
.card h3 { margin: 0; font-size: 16px; }
.card p { min-height: 42px; margin: 8px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.card-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; border-top: 1px solid #edf0ee; color: #7c8982; font-size: 11px; }
.text-button { border: 0; padding: 0; color: #15513d; background: transparent; font-weight: 800; }
.empty-panel { display: grid; place-items: center; min-height: 380px; padding: 40px; border: 1px dashed #bccac2; border-radius: 22px; text-align: center; background: #ffffff80; }
.empty-icon { display: grid; place-items: center; width: 74px; height: 74px; margin: auto; border-radius: 22px; color: #2d654c; background: #deeee6; font-size: 32px; }
.empty-panel h2 { margin: 18px 0 8px; }
.empty-panel p { max-width: 520px; margin: 0 0 22px; color: var(--muted); line-height: 1.6; }
.info-list { display: grid; gap: 12px; max-width: 760px; }
.info-row { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.info-row strong { color: #536159; font-size: 12px; }
.info-row span { font-size: 13px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: #071b1580; backdrop-filter: blur(6px); }
.modal-backdrop.hidden { display: none; }
.modal { width: min(520px, 100%); padding: 27px; border-radius: 22px; background: white; box-shadow: 0 30px 90px #051a1360; }
.modal-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 22px; }
.modal h2 { margin: 5px 0 0; }
.modal label { display: block; margin: 15px 0; color: #35463e; font-size: 12px; font-weight: 750; }
.modal input, .modal textarea { width: 100%; margin-top: 8px; padding: 14px; border: 1px solid #cfd9d3; border-radius: 12px; outline: none; }
.modal textarea { min-height: 96px; resize: vertical; }
.modal input:focus, .modal textarea:focus { border-color: #287154; box-shadow: 0 0 0 4px #28715416; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 21px; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 15; width: 286px; transform: translateX(-102%); transition: transform .2s ease; box-shadow: 18px 0 50px #071b1540; }
  .sidebar.open { transform: translateX(0); }
  .menu-button { display: block; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .topbar { min-height: 88px; padding: 17px; }
  .topbar .eyebrow, .safe-badge { display: none; }
  .topbar-actions .primary-button { padding: 11px 12px; font-size: 12px; }
  .content { padding: 20px 16px 45px; }
  .hero { padding: 27px 22px; border-radius: 20px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .info-row { grid-template-columns: 1fr; gap: 7px; }
}
