:root {
  color-scheme: light;
  --green: #178342;
  --green-deep: #141a16;
  --green-bright: #00a956;
  --yellow: #e8ff3a;
  --red: #f04432;
  --paper: #f6f1e7;
  --ink: #171b18;
  --muted: #69716b;
  --line: #ded8cb;
  --shadow: 0 16px 40px rgba(20, 26, 22, .1);
  --font-body: "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  --font-display: "Arial Black", "Impact", "Bahnschrift", sans-serif;
  --font-condensed: "Impact", "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
  --font-mono: "Cascadia Code", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 15px/1.6 var(--font-body);
}
h1, h2, h3, .brand {
  font-family: var(--font-display);
  line-height: 1.15;
}
h1, h2, h3 { letter-spacing: -.035em; }
h1 { margin: 0 0 24px; font-size: clamp(1.85rem, 3vw, 2.55rem); letter-spacing: -.045em; text-transform: uppercase; }
h2 { font-size: clamp(1.55rem, 2.5vw, 2.15rem); letter-spacing: -.04em; }
h3 { font-size: 1.12rem; letter-spacing: -.025em; }
a { color: var(--green-bright); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}
.brand b { color: var(--red); }
.logo { display: block; width: auto; height: 66px; object-fit: contain; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 17px;
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(20, 26, 22, .16);
  font: inherit;
  font-weight: 800;
  letter-spacing: .035em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover {
  color: #fff;
  background: var(--green-bright);
  border-color: var(--green-bright);
  box-shadow: 0 8px 18px rgba(20, 26, 22, .22);
  transform: translateY(-2px);
}
.btn.ghost { color: var(--green); background: #fff; border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { color: var(--green-deep); background: #f5f8f2; border-color: var(--green-bright); }
.btn.big { min-height: 50px; padding: 12px 22px; font-size: 16px; }
button { font: inherit; }

input, select {
  max-width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d5ddd4;
  border-radius: 9px;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus { border-color: var(--green-bright); box-shadow: 0 0 0 3px rgba(0, 169, 86, .14); outline: 0; }
input[type="file"] { padding: 5px; }
label { display: block; margin: 14px 0; color: #34443b; font-size: .88rem; font-weight: 750; letter-spacing: .025em; }
label input { display: block; width: 100%; margin-top: 6px; }
.password-field { position: relative; margin-top: 6px; }
.password-field input { margin-top: 0; padding-right: 52px; }
.password-toggle, .captcha-refresh {
  display: inline-grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--green-deep);
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  place-items: center;
}
.password-toggle { position: absolute; top: 1px; right: 1px; }
.password-toggle:hover, .captcha-refresh:hover { color: var(--green-bright); background: rgba(0,169,86,.08); }
.password-toggle svg, .captcha-refresh svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.password-toggle svg[hidden] { display: none; }
.captcha-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.captcha-refresh { width: 36px; height: 36px; color: var(--green); background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(20,26,22,.06); transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.captcha-refresh:hover { background: #f0f7ec; border-color: rgba(23,131,66,.35); box-shadow: 0 4px 10px rgba(20,26,22,.1); transform: translateY(-1px); }
.captcha-refresh svg { width: 19px; height: 19px; stroke-width: 1.7; }
.captcha-refresh .dice-dot { fill: currentColor; stroke: none; }
.captcha-refresh:active { transform: scale(.92); }
.captcha-refresh.is-rotating svg { animation: captcha-shuffle .32s ease; }
.captcha-refresh:disabled { cursor: wait; opacity: .7; }
.captcha-status { display: block; margin-top: 6px; color: #a62f25; font-size: .8rem; font-weight: 650; }
.captcha-status[hidden] { display: none; }
@keyframes captcha-shuffle { 50% { transform: translateY(-2px) scale(1.08); } }

.card {
  position: relative;
  margin-bottom: 18px;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(226, 232, 223, .95);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(17, 47, 34, .045);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), border-color .28s ease, box-shadow .28s ease;
}
.app main .card:hover { border-color: #d3dfd1; box-shadow: 0 18px 38px rgba(17,47,34,.1); translate: 0 -4px; }
.card h3 { margin-top: 0; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.row.card { padding: 16px; }
.row input, .row select { flex: 0 1 auto; }
.inl { display: inline; }
.lnk { padding: 0; color: var(--red); background: none; border: 0; font: inherit; cursor: pointer; }
.lnk:hover { text-decoration: underline; }
.flash {
  margin: 0 0 18px;
  padding: 13px 16px;
  color: #634a00;
  background: #fff6d8;
  border: 1px solid #f1df9e;
  border-left: 4px solid var(--yellow);
  border-radius: 10px;
}
.flash.bad { color: #812c24; background: #fff0ec; border-color: #f2d0c8; border-left-color: var(--red); }
.lowtxt { color: var(--red); font-weight: 800; }

table {
  display: block;
  width: 100%;
  margin: 0 0 20px;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 5px 18px rgba(17, 47, 34, .035);
}
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #edf0ea; white-space: nowrap; }
th { color: #53665b; background: #eee9df; font-family: var(--font-body); font-size: .75rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
table tr { transition: background .2s ease, box-shadow .2s ease; }
table tr:hover td { background: #f6f9f3; }
.r { text-align: right; }
code { padding: 3px 7px; color: var(--green-deep); background: #edf2eb; border-radius: 6px; font-family: var(--font-mono); font-size: .88em; }

.app { display: flex; min-height: 100vh; background: var(--paper); }
.app aside {
  position: sticky;
  top: 0;
  display: flex;
  flex: 0 0 252px;
  flex-direction: column;
  gap: 26px;
  width: 252px;
  height: 100vh;
  padding: 24px 18px 20px;
  overflow-y: auto;
  color: #f4f8f2;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(245, 197, 24, .12), transparent 38%),
    linear-gradient(160deg, #202a23, var(--green-deep) 75%);
  box-shadow: 12px 0 35px rgba(12, 48, 37, .1);
}
.app aside::before {
  position: absolute;
  top: -24%;
  left: -60%;
  width: 220%;
  height: 45%;
  background: linear-gradient(110deg, transparent 35%, rgba(232,255,58,.16) 50%, transparent 65%);
  pointer-events: none;
  content: "";
  animation: sidebar-glint 11s ease-in-out infinite;
}
.app aside > * { position: relative; }
.app aside .brand {
  align-self: center;
  width: min(100%, 112px);
  padding: 4px;
  background: #fff;
  border: 1px solid rgba(245, 197, 24, .7);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .13);
}
.app aside .logo { width: 100%; height: auto; max-width: none; margin: auto; }
.app aside nav { display: flex; flex-direction: column; gap: 6px; }
.app aside nav .nav-help { color: rgba(255,255,255,.82); border: 1px solid transparent; border-radius: 10px; }
.app aside nav .nav-help > summary { position: relative; padding: 10px 12px; border-radius: 10px; cursor: pointer; list-style: none; transition: color .24s ease, background .24s ease; }
.app aside nav .nav-help > summary::-webkit-details-marker { display: none; }
.app aside nav .nav-help > summary::after { position: absolute; top: 50%; right: 15px; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; content: ""; transform: translateY(-65%) rotate(45deg); }
.app aside nav .nav-help[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
.app aside nav .nav-help > summary:hover, .app aside nav .nav-help[open] > summary { color: #fff; background: rgba(255,255,255,.08); }
.app aside nav .nav-help > div { padding-left: 9px; }
.app aside nav .nav-help a { display: block; font-size: .92rem; }
.app aside nav .nav-help a.on { color: #fff; }
.prd-intro { max-width: 1040px; margin-right: auto; margin-left: auto; background: linear-gradient(135deg, #fff 60%, #f3f8ed); }
.prd-intro > p:last-child { max-width: 75ch; margin-bottom: 0; font-size: 1.05rem; }
.prd-kicker { margin: 0 0 10px; color: var(--green); font-size: .75rem; font-weight: 900; letter-spacing: .14em; }
.prd-layout { max-width: 1040px; margin: 0 auto; }
.app main nav.prd-toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: stretch; gap: 8px; margin-bottom: 18px; }
.app main nav.prd-toc h2 { grid-column: 1 / -1; margin: 0 0 2px; font-size: 1.1rem; }
.app main nav.prd-toc a { display: block; min-width: 0; padding: 8px 10px; color: #34443b; background: #f7f8f4; border: 1px solid #edf0ea; border-radius: 8px; font-size: .9rem; text-align: center; text-decoration: none; transform: none; }
.app main nav.prd-toc a:hover { color: var(--green); background: #f0f7ec; }
.prd-content { min-width: 0; }
.prd-content .card { scroll-margin-top: 20px; }
.prd-content h2 { margin: 0 0 12px; font-size: 1.35rem; }
.prd-content p:last-child, .prd-content ul:last-child, .prd-content ol:last-child { margin-bottom: 0; }
.prd-content .trd-schema { display: table; table-layout: fixed; width: 100%; }
.prd-content .trd-schema th, .prd-content .trd-schema td { white-space: normal; overflow-wrap: anywhere; }
.prd-content .trd-schema th:first-child, .prd-content .trd-schema td:first-child { width: 150px; }
.prd-requirements { padding-left: 24px; }
.prd-requirements li { margin-bottom: 12px; padding-left: 5px; }
.prd-requirements li:last-child { margin-bottom: 0; }
.app aside nav a {
  position: relative;
  padding: 10px 12px;
  color: rgba(255,255,255,.82);
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  overflow: hidden;
  transition: color .24s ease, background .24s ease, border-color .24s ease, transform .24s cubic-bezier(.2,.8,.2,1);
}
.app aside nav a::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.12) 48%, transparent 76%);
  content: "";
  opacity: 0;
  transform: translateX(-120%);
  transition: opacity .2s ease;
}
.app aside nav a:hover::after { opacity: 1; animation: nav-glint .65s ease both; }
.app aside nav a:hover, .app aside nav a.on {
  color: #fff;
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.08);
  transform: translateX(2px);
}
.app aside nav a.on::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -1px;
  width: 3px;
  background: var(--yellow);
  border-radius: 0 4px 4px 0;
  content: "";
}
.app aside .brand { color: var(--green); }
.app aside .brand b { color: var(--red); }
.me { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid rgba(255,255,255,.15); font-size: 14px; }
.me small { color: rgba(255,255,255,.66); }
.me a { display: inline-block; margin-top: 5px; color: var(--yellow); font-weight: 700; }
.app main {
  position: relative;
  isolation: isolate;
  flex: 1;
  width: auto;
  max-width: 1600px;
  min-width: 0;
  margin: 0 auto;
  padding: 36px clamp(22px, 4vw, 58px);
  overflow: hidden;
}
.app main::before {
  position: absolute;
  z-index: -1;
  top: -18%;
  right: -25%;
  width: 85%;
  height: 65%;
  background: radial-gradient(ellipse, rgba(232,255,58,.13), rgba(0,169,86,.04) 35%, transparent 70%);
  pointer-events: none;
  content: "";
  animation: ambient-drift 16s ease-in-out infinite alternate;
}
.app main > h1 { position: relative; padding-bottom: 17px; border-bottom: 1px solid var(--line); font-family: var(--font-condensed); font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: .005em; }
.app main > h1::after {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--red));
  border-radius: 4px;
  content: "";
  animation: title-sweep .8s .2s both;
  transform-origin: left;
}
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 22px; }
.stat {
  position: relative;
  min-height: 138px;
  overflow: hidden;
  background: linear-gradient(145deg, #fff 50%, #f5f8f2);
}
.stat::before {
  position: absolute;
  top: -38px;
  right: -32px;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(39,115,76,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(0,169,86,.03), 0 0 0 25px rgba(232,255,58,.04);
  content: "";
  transition: transform .6s cubic-bezier(.2,.8,.2,1), border-color .3s ease;
}
.stat:hover::before { border-color: rgba(179,36,30,.28); transform: scale(1.16) rotate(18deg); }
.stat::after {
  position: absolute;
  right: -20px;
  bottom: -34px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(232,255,58,.3), transparent 68%);
  content: "";
}
.stat small { color: var(--muted); font-weight: 650; }
.stat b { display: block; margin-top: 8px; color: var(--green); font: 900 29px/1.15 var(--font-display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.stat.warn b { color: var(--red); }
canvas { max-width: 100%; }
.app main .grid2 > .card { overflow: hidden; }
.app main .grid2 > .card h3 { position: relative; padding-bottom: 12px; }
.app main .grid2 > .card h3::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--green-bright));
  border-radius: 4px;
  content: "";
  transition: width .35s ease;
}
.app main .grid2 > .card:hover h3::after { width: 76px; }
.app main canvas { transform-origin: center; animation: chart-arrive .8s .18s both; }
.app main > h1, .app main > .flash, .app main > .card, .app main > .row,
.app main > .grid4, .app main > .grid2, .app main > table, .app main > .paper,
.app main > p {
  animation: rise-in .62s cubic-bezier(.2,.8,.2,1) both;
}
.app main > :nth-child(2) { animation-delay: .08s; }
.app main > :nth-child(3) { animation-delay: .16s; }
.app main > :nth-child(4) { animation-delay: .24s; }
.app main > :nth-child(5) { animation-delay: .32s; }
.app main .grid4 > *, .app main .grid2 > * {
  animation: rise-in .65s cubic-bezier(.2,.8,.2,1) both;
}
.app main .grid4 > :nth-child(2), .app main .grid2 > :nth-child(2) { animation-delay: .08s; }
.app main .grid4 > :nth-child(3), .app main .grid2 > :nth-child(3) { animation-delay: .16s; }
.app main .grid4 > :nth-child(4), .app main .grid2 > :nth-child(4) { animation-delay: .24s; }
.app main .grid2 > :nth-child(5) { animation-delay: .32s; }
.app main .grid2 > :nth-child(6) { animation-delay: .4s; }

.login {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: 28px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  place-items: center;
  background:
    radial-gradient(ellipse at 12% 90%, rgba(240,68,50,.2), transparent 32%),
    radial-gradient(ellipse at 86% 12%, rgba(232,255,58,.12), transparent 27%),
    linear-gradient(135deg, #101512, #1a241d 58%, #101512);
}
.login::before, .login::after { position: fixed; z-index: 0; pointer-events: none; content: ""; }
.login::before {
  top: -110px;
  right: -90px;
  width: 410px;
  height: 410px;
  border: 1px solid rgba(232,255,58,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(232,255,58,.035), 0 0 0 58px rgba(232,255,58,.025);
  background: conic-gradient(from 25deg, transparent 0 70%, rgba(232,255,58,.55) 82%, transparent 91%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 calc(100% - 1px));
  animation: orbit 18s linear infinite;
}
.login::after {
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 34px, rgba(232,255,58,.08) 35px 36px);
  opacity: .6;
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 75%);
  mask-image: linear-gradient(120deg, #000, transparent 75%);
  animation: pattern-pan 32s linear infinite;
}
.loginbox {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(270px, .9fr) minmax(330px, 1.1fr);
  grid-template-rows: auto auto auto 1fr auto auto;
  column-gap: clamp(28px, 5vw, 58px);
  align-items: center;
  width: min(900px, 94vw);
  margin: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 32px 90px rgba(0,0,0,.38), 0 3px 0 var(--yellow) inset;
  animation: login-arrive .8s cubic-bezier(.2,.8,.2,1) both;
}
.loginbox::before {
  position: absolute;
  inset: 9px;
  z-index: -1;
  background: radial-gradient(ellipse at 5% 10%, rgba(232,255,58,.18), transparent 40%);
  border-radius: 14px;
  content: "";
  pointer-events: none;
}
.loginbox .auth-visual {
  position: relative;
  display: flex;
  grid-column: 1;
  grid-row: 1 / 7;
  flex-direction: column;
  align-self: stretch;
  justify-content: flex-end;
  min-height: 480px;
  margin: 0;
  padding: 36px 28px 150px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #171d19 0%, #171d19 55%, #202a23 55%, #202a23 100%);
  border: 1px solid #29342c;
  border-radius: 13px;
}
.loginbox .auth-visual::before, .loginbox .auth-visual::after { position: absolute; z-index: 0; pointer-events: none; content: ""; }
.loginbox .auth-visual::before {
  right: -125px;
  bottom: -120px;
  width: 250px;
  height: 250px;
  border: 22px solid var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(232,255,58,.08), 0 0 0 34px rgba(232,255,58,.05);
  animation: orbit 24s linear infinite;
}
.loginbox .auth-visual::after {
  right: 38px;
  bottom: 52px;
  width: 72px;
  height: 72px;
  background: var(--red);
  transform: rotate(45deg);
  animation: auth-float 5s ease-in-out infinite;
}
.auth-brand { position: absolute; top: 28px; left: 28px; z-index: 1; display: inline-flex; }
.auth-brand .logo { width: 76px; height: auto; filter: drop-shadow(0 5px 9px rgba(0,0,0,.24)); }
.auth-kicker {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-bottom: 12px;
  color: var(--yellow);
  font: 800 .72rem/1 var(--font-body);
  letter-spacing: .19em;
}
.auth-visual strong {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  color: #fff;
  font: 900 clamp(3.1rem, 5.2vw, 5.25rem)/.82 var(--font-condensed);
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.auth-visual p {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin: 19px 0 0;
  color: rgba(255,255,255,.73);
  font-size: .9rem;
  line-height: 1.55;
}
.loginbox h2 {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 20px 0 4px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 850;
  letter-spacing: -.055em;
  text-align: left;
  text-transform: none;
}
.loginintro { grid-column: 2; grid-row: 2; margin: 0 0 12px; color: var(--muted); }
.loginbox > .flash { grid-column: 2; grid-row: 3; margin-bottom: 8px; }
.loginbox form { grid-column: 2; grid-row: 4; width: 100%; align-self: start; }
.loginbox .btn:not(.ghost) { width: 100%; margin-top: 10px; }
.loginbox .demo {
  grid-column: 2;
  grid-row: 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.loginbox .demo small { grid-column: 1 / -1; color: var(--muted); font-size: .84rem; font-weight: 650; }
.loginbox .demo .btn { width: 100%; min-width: 0; margin: 0; padding: 8px 6px; font-size: .82rem; letter-spacing: .015em; }
.loginbox .account-help { grid-column: 2; grid-row: 6; display: grid; gap: 8px; margin-top: 12px; }
.loginbox .account-help > .btn { width: 100%; min-height: 40px; margin: 0; }
.loginbox .landing-link { justify-self: center; color: var(--muted); font-size: .88rem; font-weight: 650; text-decoration: none; }
.loginbox .landing-link:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.registerbox .register-links { grid-column: 2; grid-row: 5; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; color: var(--muted); font-size: .9rem; }
.loginbox.otp-stage { grid-template-rows: auto auto auto auto auto auto auto; }
.loginbox.otp-stage .auth-visual { grid-row: 1 / 8; }
.loginbox.otp-stage h2 { grid-row: 1; }
.loginbox.otp-stage .loginintro { grid-row: 2; }
.loginbox.otp-stage > .flash { grid-row: 3; }
.loginbox.otp-stage .otp-verify { grid-column: 2; grid-row: 4; }
.loginbox.otp-stage .otp-actions { grid-column: 2; grid-row: 5; display: flex; justify-content: center; margin: 8px 0 0; }
.loginbox.otp-stage .otp-actions + .otp-actions { grid-row: 6; margin-top: 0; }
.loginbox.otp-stage > .register-links { grid-row: 7; }
@keyframes auth-float { 50% { transform: translateY(-12px) rotate(58deg); } }
.registerbox .register-links a { color: var(--green); font-weight: 800; text-underline-offset: 3px; }

.land { background: var(--paper); scroll-padding-top: 92px; }
.land section[id] { scroll-margin-top: 92px; }
.land .top {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(20px, 6vw, 92px);
  background: rgba(246,241,231,.92);
  border-bottom: 1px solid rgba(222,216,203,.8);
  backdrop-filter: blur(16px);
}
.land .top::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--yellow), var(--green-bright), var(--red), transparent);
  content: "";
  transform: scaleX(.3);
  transform-origin: center;
  animation: header-line .75s .1s ease-out both;
}
.land .top .logo { height: 74px; }
.top nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); }
.top nav a:not(.btn) { color: #47574d; font-weight: 650; text-decoration: none; }
.top nav a:not(.btn):hover { color: var(--red); }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(38px, 8vw, 110px);
  min-height: 620px;
  padding: 70px clamp(22px, 9vw, 140px) 88px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(251,247,238,.96) 0%, rgba(248,244,233,.9) 43%, rgba(28,78,49,.54) 100%),
    url("landing-cafeteria.jpg") center 48% / cover no-repeat;
}
.hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 53%, rgba(232,255,58,.12)),
    radial-gradient(rgba(23,131,66,.16) .8px, transparent .8px) 0 0 / 24px 24px;
  content: "";
  opacity: .28;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(115deg, transparent 40%, #000 100%);
  mask-image: linear-gradient(115deg, transparent 40%, #000 100%);
}
.hero::before {
  position: absolute;
  right: -150px;
  bottom: -330px;
  width: 690px;
  height: 690px;
  border: 1px solid rgba(23,131,66,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(23,131,66,.025), 0 0 0 70px rgba(23,131,66,.018);
  content: "";
  animation: hero-orbit 72s linear infinite;
}
.hero > div { position: relative; z-index: 1; }
.hero > div:first-child { animation: hero-copy .6s .06s both; }
.hero h1 { max-width: 760px; margin: 0 0 20px; color: var(--ink); font-family: var(--font-condensed); font-size: clamp(3rem, 5.2vw, 5.6rem); font-weight: 900; letter-spacing: .005em; line-height: .91; text-transform: uppercase; }
.hero h1::first-line { color: var(--green); }
.hero h1 { text-wrap: balance; }
.hero p { max-width: 58ch; color: #536259; font-size: clamp(1.05rem, 1.3vw, 1.2rem); }
.hero p .btn { margin: 10px 8px 0 0; }
.receipt {
  position: relative;
  width: min(100%, 370px);
  justify-self: center;
  padding: 28px;
  color: #28332d;
  background: #fff;
  border: 1px solid #e8e9df;
  border-radius: 5px 5px 18px 18px;
  box-shadow: 0 20px 42px rgba(24,52,36,.12), 0 6px 0 -3px var(--yellow);
  font-family: "Courier New", monospace;
  transform: rotate(2deg);
  animation: receipt-float 8s ease-in-out infinite, receipt-arrive .65s .12s both;
}
.receipt::before {
  position: absolute;
  top: -13px;
  right: 18px;
  width: 58px;
  height: 26px;
  background: var(--red);
  border: 4px solid var(--paper);
  border-radius: 20px;
  content: "";
  transform: rotate(8deg);
}
.receipt > b { display: block; color: var(--green); font: 900 1.4rem var(--font-display); letter-spacing: .12em; }
.receipt > small { display: block; color: #747d76; font-size: .72rem; letter-spacing: .035em; }
.receipt div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.receipt hr { margin: 16px 0; border: 0; border-top: 2px dashed #d1d6ce; }
.receipt .tot { color: var(--green); font-weight: 800; font-size: 1.1rem; }
.land section { padding: 76px clamp(22px, 9vw, 140px); }
.land section h2 { margin: 0 0 32px; color: var(--green-deep); font-family: var(--font-condensed); font-size: clamp(2.1rem, 4vw, 3.4rem); letter-spacing: .015em; line-height: .98; text-transform: uppercase; }
.land #features { background: #fff; }
.land #features .grid3 > div {
  position: relative;
  min-height: 175px;
  padding: 24px 22px;
  background: linear-gradient(145deg, #fff, #f8faf6);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(17,47,34,.04);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  animation: rise-in .55s cubic-bezier(.2,.8,.2,1) both;
}
.land #features .grid3 > div:nth-child(2) { animation-delay: .08s; }
.land #features .grid3 > div:nth-child(3) { animation-delay: .16s; }
.land #features .grid3 > div:nth-child(4) { animation-delay: .24s; }
.land #features .grid3 > div:nth-child(5) { animation-delay: .32s; }
.land #features .grid3 > div:nth-child(6) { animation-delay: .4s; }
.land #features .grid3 > div:hover { border-color: #cbd9ce; box-shadow: var(--shadow); translate: 0 -3px; }
.land #features .grid3 > div::before { display: block; width: 28px; height: 4px; margin-bottom: 20px; background: var(--yellow); border-radius: 4px; content: ""; }
.land #features h3 { margin: 0 0 8px; color: var(--green); font-family: var(--font-display); font-size: 1.12rem; text-transform: uppercase; }
.land #features p { margin-bottom: 0; color: var(--muted); }
.land section.dark {
  position: relative;
  overflow: hidden;
  color: #f4f8f2;
  background:
    radial-gradient(ellipse at 92% 18%, rgba(232,255,58,.2), transparent 25%),
    linear-gradient(120deg, #245c3b, #27824b);
}
.land section.dark::after {
  position: absolute;
  top: -140px;
  right: -90px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(232,255,58,.24);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(232,255,58,.045), 0 0 0 60px rgba(232,255,58,.025);
  content: "";
}
.land section.dark > * { position: relative; z-index: 1; }
.land section.dark h2 { color: #fff; }
.dark li { margin: 10px 0; }
.dark code { color: #fff3bd; background: rgba(255,255,255,.13); }
.land .workflow { background: #eee9df; }
.workflow-intro { max-width: 62ch; margin: -14px 0 30px; color: var(--muted); font-size: 1.05rem; }
.workflow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 30px; }
.workflow-steps article { min-height: 200px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 22px rgba(20,26,22,.045); transition: transform .22s ease, box-shadow .22s ease; }
.workflow-steps article:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.workflow-steps article > span { color: var(--green); font: 800 .75rem/1 var(--font-body); letter-spacing: .12em; }
.workflow-steps h3 { margin: 20px 0 8px; color: var(--ink); font: 850 1.35rem/1.15 var(--font-body); letter-spacing: -.035em; }
.workflow-steps p { margin: 0; color: var(--muted); }
.workflow > .btn { min-width: 190px; }
.land footer { padding: 28px clamp(22px, 9vw, 140px); color: #718076; background: #fff; border-top: 1px solid var(--line); }
.paper { max-width: 1000px; margin: auto; padding: clamp(20px, 4vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.user-form-card h2, .users-heading h2 { margin: 0; color: var(--green-deep); font-family: var(--font-condensed); letter-spacing: .02em; text-transform: uppercase; }
.user-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 12px; }
.user-form-heading { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 12px; }
.user-form-heading h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
.user-form-heading .btn { flex: 0 0 auto; }
.user-form label { min-width: 0; margin: 0; }
.user-form input, .user-form select { width: 100%; }
.user-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.users-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.users-heading > span { color: var(--muted); font-size: .86rem; font-weight: 700; }
.users-list { display: grid; gap: 10px; }
.user-card { display: grid; grid-template-columns: minmax(210px, 1fr) 100px 100px auto; align-items: center; gap: 18px; margin: 0; padding: 14px 18px; }
.user-identity { display: flex; min-width: 0; align-items: center; gap: 12px; }
.user-avatar { display: grid; flex: 0 0 42px; width: 42px; height: 42px; color: var(--green); background: #edf4ed; border: 1px solid #dfeadd; border-radius: 13px; font-family: var(--font-display); font-size: 1.15rem; place-items: center; }
.user-identity h3 { margin: 0 0 3px; overflow: hidden; color: var(--ink); font-family: var(--font-body); font-size: .98rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.user-handle { color: var(--muted); font-size: .83rem; }
.user-email { display: block; overflow-wrap: anywhere; color: var(--muted); font-size: .8rem; }
.user-role, .user-status { width: fit-content; padding: 5px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.user-role { color: #485b50; background: #f0f3ef; }
.user-role.admin { color: #755600; background: #fff5d5; }
.user-status.enabled { color: #17613c; background: #eaf5ed; }
.user-status.disabled { color: #8d3931; background: #fff0ec; }
.user-status.pending { color: #795800; background: #fff3cc; }
.user-status.unverified { color: #875227; background: #fff0dc; }
.user-card-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.user-card-actions .btn { min-height: 34px; padding: 5px 10px; font-size: .8rem; }
.user-card-actions .btn.approve { color: #fff; background: var(--green); border-color: var(--green); }
.user-card-actions .btn.approve:hover { background: var(--green-bright); border-color: var(--green-bright); }
.user-card-actions .btn.danger { color: var(--red); background: #fff; border-color: #f0d7d2; box-shadow: none; }
.user-card-actions .btn.danger:hover { color: #fff; background: var(--red); border-color: var(--red); }
.current-user { padding: 5px 10px; color: var(--green); background: #edf4ed; border-radius: 999px; font-size: .78rem; font-weight: 800; }

@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes receipt-float { 0%, 100% { transform: translateY(0) rotate(1deg); } 50% { transform: translateY(-4px) rotate(2deg); } }
@keyframes receipt-arrive { from { opacity: 0; translate: 8px 5px; } to { opacity: 1; translate: 0 0; } }
@keyframes hero-copy { from { opacity: 0; translate: -10px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes hero-orbit { to { transform: rotate(360deg); } }
@keyframes login-arrive { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes ambient-drift { from { translate: -4% -2%; scale: .92; } to { translate: 5% 7%; scale: 1.08; } }
@keyframes sidebar-glint { 0%, 54% { translate: -35% 0; opacity: 0; } 70% { opacity: 1; } 92%, 100% { translate: 35% 130%; opacity: 0; } }
@keyframes nav-glint { to { transform: translateX(120%); } }
@keyframes title-sweep { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes chart-arrive { from { opacity: 0; scale: .96; } to { opacity: 1; scale: 1; } }
@keyframes header-line { to { transform: scaleX(1); } }
@keyframes pattern-pan { to { background-position: 44px 44px, 8% 82%; } }
@media (prefers-reduced-motion: no-preference) {
  .btn:not(.ghost) { position: relative; overflow: hidden; }
  .btn:not(.ghost)::after {
    position: absolute;
    inset: -80% auto -80% -50%;
    width: 35%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
    content: "";
    transform: translateX(-160%) rotate(18deg);
  }
  .btn:not(.ghost):hover::after { animation: button-glint .65s ease; }
}
@keyframes button-glint { to { transform: translateX(650%) rotate(18deg); } }

@media print {
  .noprint, .app aside { display: none !important; }
  .app main { width: 100%; padding: 0; overflow: visible; }
  .paper { max-width: none; padding: 0; border: 0; border-radius: 0; }
  table { box-shadow: none; }
}
@media (max-width: 900px) {
  .app aside { flex-basis: 210px; width: 210px; }
  .hero { min-height: 560px; gap: 35px; padding-right: 7vw; padding-left: 7vw; }
  .receipt { padding: 23px; }
  .user-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-card { grid-template-columns: minmax(180px, 1fr) 80px 90px; gap: 12px; }
  .user-card-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 700px) {
  .app { display: block; }
  .app aside { position: static; width: 100%; height: auto; padding: 12px 16px; gap: 12px; }
  .app aside .brand { align-self: flex-start; width: auto; padding: 4px 8px; }
  .app aside .logo { width: auto; height: 56px; }
  .app aside nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .app aside nav a { padding: 8px 10px; font-size: .9rem; }
  .app aside nav .nav-help { position: relative; }
  .app aside nav .nav-help > summary { padding: 8px 10px; font-size: .9rem; }
  .app aside nav .nav-help > div { position: static; min-width: 0; padding: 2px 0 2px 8px; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
  .app aside nav .nav-help > div a { display: inline-flex; margin: 2px; }
  .app aside nav a.on::before { top: auto; right: 10px; bottom: 2px; left: 10px; width: auto; height: 2px; }
  .me { margin-top: 0; padding: 10px 2px 0; }
  .app main { width: 100%; padding: 25px 16px; }
  .land .top { position: relative; flex-wrap: wrap; padding: 8px 18px 14px; }
  .land .top .logo { height: 64px; }
  .top nav { flex-wrap: wrap; gap: 8px 16px; }
  .top nav .btn { min-height: 38px; padding: 7px 12px; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 65px 24px 76px;
    background-image:
      linear-gradient(180deg, rgba(251,247,238,.96), rgba(248,244,233,.9) 54%, rgba(233,240,229,.76)),
      url("landing-cafeteria.jpg");
    background-position: center, center;
  }
  .hero::after { opacity: .12; }
  .hero h1 { font-size: clamp(2.4rem, 10vw, 3.8rem); }
  .receipt { width: min(88%, 370px); margin-top: 12px; }
  .land section { padding: 58px 22px; }
  .workflow-steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .workflow-steps article { min-height: 0; }
  .login { min-height: 100svh; padding: 22px 14px; }
  .loginbox {
    display: block;
    width: min(440px, 100%);
    padding: 12px;
    border-radius: 22px;
  }
  .loginbox .auth-visual {
    min-height: 228px;
    margin: 0;
    padding: 96px 20px 27px;
    border-radius: 12px;
  }
  .auth-brand { top: 20px; left: 20px; }
  .auth-brand .logo { width: 66px; }
  .auth-kicker { margin-bottom: 8px; font-size: .66rem; }
  .auth-visual strong { font-size: clamp(2.7rem, 12vw, 3.2rem); }
  .auth-visual p { margin-top: 11px; font-size: .82rem; }
  .loginbox .auth-visual::before { right: -112px; bottom: -96px; width: 220px; height: 220px; border-width: 18px; }
  .loginbox .auth-visual::after { right: 28px; bottom: 49px; width: 48px; height: 48px; }
  .loginbox h2 { margin: 22px 12px 3px; font-size: 1.8rem; }
  .loginintro { margin: 0 12px 14px; font-size: .94rem; }
  .loginbox > .flash { margin: 0 10px 12px; }
  .loginbox form { width: auto; margin: 0 10px; }
  .loginbox label { margin: 12px 0; }
  .loginbox .demo { margin: 18px 10px 8px; }
  .loginbox .account-help { margin: 12px 10px 8px; }
  .registerbox .register-links { margin: 14px 10px 8px; }
  .user-form { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .user-form-heading { margin-bottom: 2px; }
  .user-form label { margin: 3px 0; }
  .user-form label input, .user-form label select { min-height: 38px; padding-top: 7px; padding-bottom: 7px; }
  .user-form-actions { padding-top: 4px; }
  .user-card { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .user-card .user-identity { grid-column: 1 / -1; }
  .user-card-actions { grid-column: 1 / -1; }
}
@media (max-width: 430px) {
  .top nav { width: 100%; justify-content: space-between; }
  .top nav a:not(.btn) { font-size: .88rem; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { min-height: 112px; padding: 14px; }
  .stat b { font-size: 22px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .loginbox { padding: 10px; }
  .loginbox .auth-visual { min-height: 218px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
