:root {
  color-scheme: light;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color: #162521;
  background: #f4f7f5;
  --paper: #fff;
  --line: #dce6e1;
  --muted: #586963;
  --sidebar: #102621;
  --accent: #146548;
  --accent-hover: #0d5038;
  --mint: #9fe9bb;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #3da673;
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 3vw, 2.65rem); line-height: 1.08; letter-spacing: -.052em; }
h2 { font-size: 1.28rem; letter-spacing: -.03em; }
h3 { font-size: 1.05rem; }
p { line-height: 1.55; }
small, .muted { color: var(--muted); }
.brand { display: flex; align-items: center; gap: 12px; color: #f1fff7; }
.brand strong { display: block; font-size: 1.18rem; letter-spacing: -.04em; }
.brand small { display: block; margin-top: 2px; font-size: .81rem; color: #b8ccc3; }
.brand-mark { display: grid; width: 41px; height: 41px; flex: 0 0 41px; place-items: center; border-radius: 13px; background: #a4edbf; }
.brand-mark i { width: 20px; height: 20px; border: 2px solid #174a34; border-radius: 6px; transform: rotate(45deg); position: relative; }
.brand-mark i::after { content: ""; position: absolute; inset: 4px; background: #174a34; border-radius: 2px; }
.shell { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--sidebar); color: #ddede5; padding: 27px 17px 18px; display: flex; flex-direction: column; gap: 36px; position: sticky; top: 0; height: 100vh; }
.rail .brand { padding-left: 7px; }
.rail nav { display: grid; gap: 5px; }
.nav-label { padding: 0 11px; margin-bottom: 7px; color: #adbfba; font-size: .79rem; letter-spacing: .085em; text-transform: uppercase; font-weight: 700; }
.nav { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px 11px; border: 1px solid transparent; background: none; color: #d5e4de; border-radius: 8px; font-size: .92rem; }
.nav:hover { background: #1c392f; }
.nav[aria-current="page"] { color: #d9ffe8; background: #244436; border-color: #335443; font-weight: 700; }
.nav-symbol { color: #a9dfbd; text-align: center; font-size: 1.1rem; width: 20px; flex: 0 0 20px; }
.nav-count { margin-left: auto; font-size: .78rem; background: #a4edbf; color: #153b2b; border-radius: 9px; padding: 1px 6px; }
.rail-footer { margin-top: auto; border-top: 1px solid #335047; padding-top: 13px; display: grid; gap: 9px; }
.account { display: flex; align-items: center; gap: 10px; padding: 5px 7px; min-width: 0; }
.account > div { min-width: 0; }
.account strong, .account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account strong { font-size: .9rem; color: #f2fbf7; }
.account small { font-size: .78rem; color: #b4c7be; margin-top: 2px; }
.avatar { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; font-size: .77rem; font-weight: 750; background: #314e42; color: #c6f1d5; border-radius: 50%; }
.workspace { min-width: 0; }
.topbar { min-height: 64px; border-bottom: 1px solid var(--line); background: #ffffffdb; display: flex; align-items: center; justify-content: space-between; padding: 11px clamp(20px, 4vw, 47px); gap: 12px; }
.topbar strong { font-size: .92rem; }
.content { max-width: 1360px; margin: 0 auto; padding: 32px clamp(20px, 4vw, 47px) 46px; }
.page-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; margin-bottom: 25px; }
.page-head p { margin-top: 8px; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; min-height: 38px; color: #1c3c30; background: #fff; border: 1px solid #cddbd4; border-radius: 8px; text-decoration: none; font-size: .9rem; font-weight: 650; white-space: nowrap; }
.button:hover { background: #edf4ef; }
.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.primary:hover { background: var(--accent-hover); color: #fff; }
.danger { background: #a53338; color: #fff; border-color: #a53338; }
.danger:hover { background: #89252b; color: #fff; }
.subtle { background: none; border-color: transparent; }
.small { font-size: .83rem; min-height: 33px; padding: 6px 10px; }
.actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.app-icon { width: 43px; height: 43px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 11px; font-weight: 800; letter-spacing: -.045em; }
.teal { color: #125a45; background: #d7f3e4; }
.violet { color: #5c3982; background: #ece0fa; }
.blue { color: #274e7c; background: #e1edfb; }
.amber { color: #774d13; background: #f9edcf; }
.badge { display: inline-flex; align-items: center; border-radius: 20px; padding: 4px 9px; font-size: .78rem; line-height: 1.15; font-weight: 650; background: #e9eeeb; color: #485e55; white-space: nowrap; }
.badge.good { background: #dcf3e5; color: #245c40; }
.badge.attention { background: #f9edcf; color: #775014; }
.empty { min-height: 204px; background: #fff; border: 1px dashed #c7d8cf; border-radius: 13px; display: grid; align-content: center; justify-items: center; text-align: center; gap: 8px; padding: 25px; }
.empty p { color: var(--muted); max-width: 480px; }
.empty-icon { font-size: 1.55rem; display: grid; width: 43px; height: 43px; place-items: center; color: #246648; border-radius: 12px; background: #e5f3eb; }
.panel { background: white; border: 1px solid var(--line); border-radius: 13px; }
.identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.identity strong, .identity small { display: block; }
.identity small { margin-top: 3px; font-size: .81rem; }
.search, input, select, textarea { border: 1px solid #bfcfc7; border-radius: 8px; background: #fff; color: #172b22; padding: 9px 11px; width: 100%; }
textarea { resize: vertical; min-height: 74px; }
label { display: grid; gap: 6px; color: #20382e; font-size: .9rem; font-weight: 650; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.field-note { font-size: .82rem; font-weight: 400; color: var(--muted); }
form { display: grid; gap: 16px; }
.form-error { color: #a52632; min-height: 20px; font-size: .87rem; }
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(260px, .9fr) minmax(370px, 1.1fr); background: #fff; }
.login-identity { display: flex; min-height: 100%; flex-direction: column; padding: clamp(28px, 6vw, 78px); gap: 37px; overflow: hidden; color: #f4fef8; position: relative; background: radial-gradient(ellipse at 85% 105%, #287257, transparent 63%), #102e25; }
.login-identity > * { position: relative; z-index: 1; }
.login-identity::after { content: ""; width: 380px; height: 380px; position: absolute; bottom: -184px; right: -130px; border-radius: 32%; border: 1px solid #aaf1c469; transform: rotate(35deg); box-shadow: 0 0 0 40px #adf9c717, 0 0 0 80px #adf9c711, 0 0 0 120px #adf9c70e; }
.login-copy { margin: auto 0; }
.login-copy h1 { font-size: clamp(2.5rem, 5vw, 4rem); max-width: 470px; }
.login-copy p { color: #c3ddce; max-width: 340px; margin-top: 16px; }
.login-body { display: grid; align-items: center; justify-items: center; padding: 36px 30px; }
.login-card { width: min(100%, 365px); }
.login-card h2 { font-size: 2rem; }
.login-card > p { margin: 7px 0 22px; color: var(--muted); }
.login-card .button { min-height: 43px; }
.environment { font-size: .85rem; color: #c1ddcd; }
dialog { padding: 0; border: 1px solid var(--line); width: min(560px, calc(100% - 32px)); color: inherit; border-radius: 15px; box-shadow: 0 20px 70px #112c2760; max-height: calc(100vh - 40px); }
dialog::backdrop { background: #0c221ccc; }
.dialog-content { padding: 24px; display: grid; gap: 17px; }
.dialog-content .actions { justify-content: flex-end; }
.dialog-content footer { display: flex; justify-content: flex-end; gap: 8px; }
.notice { position: fixed; right: 20px; bottom: 20px; max-width: 420px; z-index: 10; background: #214e3c; color: #fff; border-radius: 9px; padding: 13px 17px; box-shadow: 0 6px 20px #15372b25; font-size: .93rem; overflow-wrap: anywhere; }
.notice.error { background: #8b3037; }
@media (max-width: 760px) {
  .shell { grid-template-columns: 162px minmax(0, 1fr); }
  .rail { padding-inline: 10px; }
  .rail .brand { gap: 7px; padding-left: 1px; }
  .rail .brand-mark { width: 33px; height: 33px; flex-basis: 33px; }
  .rail .brand strong { font-size: 1rem; }
  .rail .brand small { font-size: .73rem; }
}
@media (max-width: 560px) {
  .shell { display: block; }
  .rail { position: static; height: auto; gap: 14px; padding: 12px; }
  .rail nav { display: flex; flex-wrap: wrap; gap: 3px; }
  .rail .nav-label, .rail .nav-symbol, .rail-footer .account { display: none; }
  .nav { width: auto; padding: 7px; }
  .rail-footer { position: absolute; top: 8px; right: 10px; padding: 0; border: 0; }
  .topbar { min-height: 45px; }
  .page-head { flex-wrap: wrap; align-items: start; }
  .login { display: block; }
  .login-identity { min-height: 220px; gap: 16px; }
  .login-copy h1 { font-size: 2.25rem; }
}
