:root {
  --admin-bg: #f3f1eb;
  --admin-panel: #fbfaf6;
  --admin-white: #ffffff;
  --admin-ink: #17221e;
  --admin-muted: #7d8982;
  --admin-line: #e4e1d9;
  --admin-line-strong: #d6d2c8;
  --admin-side: #0c1814;
  --admin-side-soft: #12231d;
  --admin-lime: #d9ff75;
  --admin-mint: #81dec1;
  --admin-red: #c9675e;
  --admin-gold: #d7bd66;
  --admin-blue: #8ec1d7;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--admin-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--admin-ink);
  background: var(--admin-bg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

[hidden] {
  display: none !important;
}

.admin-ambient {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.admin-ambient span {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}

.admin-ambient span:nth-child(1) {
  width: 620px;
  height: 620px;
  right: -260px;
  top: -240px;
  background: radial-gradient(circle, rgba(170, 209, 110, .12), transparent 68%);
}

.admin-ambient span:nth-child(2) {
  width: 500px;
  height: 500px;
  left: -280px;
  bottom: -240px;
  background: radial-gradient(circle, rgba(92, 151, 125, .08), transparent 68%);
}

.admin-ambient span:nth-child(3) {
  width: 1px;
  height: 1px;
  left: 52%;
  top: 38%;
  background: transparent;
  box-shadow:
    0 0 0 110px rgba(18, 35, 29, .018),
    0 0 0 220px rgba(18, 35, 29, .012),
    0 0 0 330px rgba(18, 35, 29, .007);
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.admin-brand > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-brand strong {
  color: #f2f5f3;
  font-size: 18px;
  letter-spacing: -.035em;
}

.admin-brand small {
  color: #60756a;
  font-size: 8px;
  letter-spacing: .15em;
}

.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: var(--admin-side);
  background: var(--admin-lime);
  border-radius: 12px 12px 12px 4px;
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.9;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(480px, 1.08fr) minmax(420px, .92fr);
  background: #f4f2ec;
}

.login-aside {
  position: relative;
  min-height: 100vh;
  padding: 46px max(55px, calc((100vw - 1380px) / 3));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #dce6df;
  background:
    radial-gradient(circle at 74% 58%, rgba(194, 239, 103, .08), transparent 32%),
    linear-gradient(135deg, #07110e, #0d1d18 62%, #0a1511);
}

.login-aside::before {
  content: "";
  position: absolute;
  width: 740px;
  height: 740px;
  right: -290px;
  bottom: -320px;
  border: 1px solid rgba(216,255,112,.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 75px rgba(216,255,112,.013),
    0 0 0 150px rgba(216,255,112,.009),
    0 0 0 225px rgba(216,255,112,.006);
}

.login-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 75%);
}

.login-aside > * {
  position: relative;
  z-index: 2;
}

.login-quote {
  margin-block: auto;
  padding-block: 80px;
}

.login-quote > span {
  color: #71877a;
  font-size: 9px;
  letter-spacing: .18em;
}

.login-quote h1 {
  margin: 26px 0 24px;
  font-size: clamp(49px, 5.1vw, 76px);
  line-height: 1.12;
  letter-spacing: -.065em;
  font-weight: 500;
}

.login-quote h1 em {
  color: var(--admin-lime);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.login-quote p {
  max-width: 430px;
  margin: 0;
  color: #8a9b92;
  font-size: 14px;
  line-height: 1.85;
}

.login-metrics {
  display: flex;
  gap: 45px;
}

.login-metrics div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.login-metrics strong {
  color: #e4ebe6;
  font-size: 16px;
  font-weight: 500;
}

.login-metrics span {
  color: #60766a;
  font-size: 9px;
}

.login-grid-note {
  margin-top: 32px;
  color: #40564a;
  font-size: 8px;
  letter-spacing: .13em;
}

.login-panel {
  position: relative;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: min(430px, 100%);
}

.login-kicker {
  color: #8a968f;
  font-size: 9px;
  letter-spacing: .17em;
}

.login-card h2 {
  margin: 20px 0 9px;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -.04em;
}

.login-card > p {
  margin: 0 0 36px;
  color: #8a928d;
  font-size: 13px;
}

.login-card form {
  display: flex;
  flex-direction: column;
}

.login-card label {
  margin: 18px 0 8px;
  color: #56615b;
  font-size: 11px;
  font-weight: 600;
}

.field-wrap {
  height: 54px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #d8d4ca;
  border-radius: 12px;
  background: #fbfaf7;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field-wrap:focus-within {
  border-color: #81947f;
  background: white;
  box-shadow: 0 0 0 4px rgba(78, 105, 85, .07);
}

.field-wrap svg {
  width: 19px;
  height: 19px;
  color: #9ca49e;
}

.field-wrap input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  color: var(--admin-ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.field-wrap input::placeholder {
  color: #adb2ae;
}

.password-toggle {
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #9ba39d;
  background: transparent;
  border: 0;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.password-toggle.active {
  color: #344d3f;
}

.login-error {
  margin: 15px 0 0 !important;
  padding: 10px 12px;
  color: #a0443f !important;
  background: #f8e9e6;
  border-radius: 8px;
  font-size: 11px !important;
}

.login-submit {
  height: 55px;
  margin-top: 25px;
  padding: 0 11px 0 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ecf4ee;
  background: #132820;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease;
}

.login-submit svg {
  width: 33px;
  height: 33px;
  padding: 8px;
  color: #17271f;
  background: var(--admin-lime);
  border-radius: 8px;
}

.login-submit:hover {
  transform: translateY(-2px);
  background: #1a3429;
}

.login-submit.loading {
  opacity: .7;
  pointer-events: none;
}

.login-foot {
  margin-top: 28px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  color: #7f8a84;
  border-top: 1px solid #dfdcd4;
  font-size: 10px;
}

.login-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.login-foot i {
  width: 5px;
  height: 5px;
  background: #70a17c;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(112,161,124,.1);
}

.login-foot a:hover {
  color: #304b3b;
}

.login-copyright {
  position: absolute;
  bottom: 25px;
  color: #a1a8a3;
  font-size: 8px;
  letter-spacing: .04em;
}

.admin-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  width: 250px;
  padding: 28px 20px 18px;
  display: flex;
  flex-direction: column;
  color: #c2d0c8;
  background: var(--admin-side);
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 310px;
  background:
    radial-gradient(circle at 0 100%, rgba(184,225,104,.07), transparent 58%);
  pointer-events: none;
}

.sidebar > * {
  position: relative;
  z-index: 2;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-close {
  display: none;
  color: #82968a;
  background: transparent;
  border: 0;
  font-size: 24px;
}

.sidebar-label {
  margin: 37px 12px 12px;
  color: #4f675a;
  font-size: 8px;
  letter-spacing: .15em;
}

.sidebar-label.secondary {
  margin-top: 30px;
}

.sidebar-nav {
  display: grid;
  gap: 4px;
}

.admin-nav-item {
  width: 100%;
  height: 46px;
  padding: 0 12px 0 9px;
  display: grid;
  grid-template-columns: 31px 1fr auto;
  align-items: center;
  gap: 10px;
  color: #91a49a;
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-align: left;
  font-size: 12px;
  transition: color 160ms ease, background 160ms ease;
}

.nav-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 8px;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
}

.admin-nav-item small {
  min-width: 27px;
  padding: 3px 7px;
  color: #74897d;
  background: rgba(255,255,255,.04);
  border-radius: 99px;
  font-size: 8px;
  text-align: center;
}

.admin-nav-item:hover {
  color: #dbe4de;
  background: rgba(255,255,255,.025);
}

.admin-nav-item.active {
  color: #eff4f1;
  background: rgba(255,255,255,.065);
  box-shadow: inset 2px 0 var(--admin-lime);
}

.admin-nav-item.active .nav-icon {
  color: var(--admin-lime);
  border-color: rgba(216,255,112,.16);
  background: rgba(216,255,112,.06);
}

.nav-dot {
  width: 5px;
  height: 5px;
  background: var(--admin-lime);
  border-radius: 50%;
}

.nav-dot.danger {
  background: #df746b;
  box-shadow: 0 0 0 4px rgba(223,116,107,.08);
}

.sidebar-shortcuts {
  display: grid;
  gap: 3px;
}

.sidebar-shortcuts a {
  height: 38px;
  padding: 0 9px;
  display: grid;
  grid-template-columns: 27px 1fr auto;
  align-items: center;
  gap: 9px;
  color: #81968a;
  border-radius: 8px;
  font-size: 10px;
}

.sidebar-shortcuts a:hover {
  color: #dce6e0;
  background: rgba(255,255,255,.025);
}

.sidebar-shortcuts svg {
  width: 15px;
  height: 15px;
}

.sidebar-shortcuts span {
  color: #52695c;
}

.sidebar-status {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.sidebar-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-status-head > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sidebar-status-head i {
  width: 6px;
  height: 6px;
  background: var(--admin-mint);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(129,222,193,.08);
}

.sidebar-status-head i.offline {
  background: #d1846e;
  box-shadow: 0 0 0 4px rgba(209,132,110,.08);
}

.sidebar-status-head b {
  color: #c9d5ce;
  font-size: 9px;
  font-weight: 500;
}

.sidebar-status-head small {
  color: #50685a;
  font-size: 7px;
  letter-spacing: .1em;
}

.sidebar-status p {
  margin: 6px 0 14px 13px;
  color: #586f62;
  font-size: 8px;
}

.status-metric {
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  color: #6e8477;
  border-top: 1px solid rgba(255,255,255,.055);
  font-size: 8px;
}

.status-metric strong {
  color: #becbc3;
  font-size: 10px;
  font-weight: 500;
}

.sidebar-user {
  margin-top: 12px;
  padding: 11px 5px 0;
  display: grid;
  grid-template-columns: 35px 1fr 30px;
  align-items: center;
  gap: 9px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.sidebar-avatar {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: #18271f;
  background: #dbe7c6;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.sidebar-user > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-user strong {
  overflow: hidden;
  color: #d6e0da;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user small {
  color: #5e7467;
  font-size: 7px;
}

.sidebar-user button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #667d6f;
  background: transparent;
  border: 0;
  border-radius: 7px;
}

.sidebar-user button:hover {
  color: #d8e3dc;
  background: rgba(255,255,255,.04);
}

.sidebar-user svg {
  width: 17px;
  height: 17px;
}

.sidebar-backdrop {
  position: fixed;
  z-index: 35;
  inset: 0;
  background: rgba(3, 9, 6, .48);
  backdrop-filter: blur(2px);
}

.admin-main {
  grid-column: 2;
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 94px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--admin-line);
  background: rgba(243,241,235,.88);
  backdrop-filter: blur(18px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-left p {
  margin: 0 0 5px;
  color: #919b95;
  font-size: 8px;
  letter-spacing: .15em;
}

.topbar-left h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.menu-button {
  display: none;
  width: 39px;
  height: 39px;
  padding: 0;
  place-items: center;
  color: #3f5047;
  background: #faf9f5;
  border: 1px solid var(--admin-line);
  border-radius: 9px;
}

.menu-button svg {
  width: 19px;
  height: 19px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-date {
  margin-right: 10px;
  color: #8d9791;
  font-size: 10px;
}

.topbar-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: #67746d;
  background: #faf9f5;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
}

.topbar-icon:hover {
  color: #243b30;
  background: white;
}

.topbar-icon svg {
  width: 16px;
  height: 16px;
}

.topbar-desk {
  height: 39px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #eef4ef;
  background: #152a21;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}

.topbar-desk span {
  color: var(--admin-lime);
}

.admin-content {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 30px 38px 55px;
}

.admin-page {
  display: none;
  animation: page-in 260ms ease both;
}

.admin-page.active {
  display: block;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.welcome-kicker,
.page-heading > div > span,
.settings-panel-head > div > span {
  color: #9da69f;
  font-size: 8px;
  letter-spacing: .16em;
}

.welcome-row h2 {
  margin: 10px 0 8px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.04em;
}

.welcome-row p {
  margin: 0;
  color: #8b958f;
  font-size: 11px;
}

.primary-action,
.secondary-action,
.text-action {
  height: 42px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-action {
  color: #eef5f0;
  background: #162b22;
  border: 1px solid #162b22;
}

.primary-action svg,
.secondary-action svg {
  width: 15px;
  height: 15px;
}

.primary-action:hover {
  transform: translateY(-1px);
  background: #203c2f;
}

.primary-action.loading,
.secondary-action.loading {
  opacity: .65;
  pointer-events: none;
}

.secondary-action {
  color: #58655e;
  background: #fbfaf7;
  border: 1px solid var(--admin-line);
}

.secondary-action:hover {
  color: #22372c;
  border-color: #c9c4b9;
  background: white;
}

.secondary-action.compact {
  height: 37px;
  padding-inline: 13px;
}

.kpi-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.kpi-card {
  position: relative;
  min-height: 164px;
  padding: 19px;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 13px;
  background: var(--admin-panel);
}

.kpi-card.featured {
  color: #e9f1eb;
  background:
    radial-gradient(circle at 90% 100%, rgba(216,255,112,.1), transparent 42%),
    #12251d;
  border-color: #12251d;
}

.kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-head > span {
  color: #7d8881;
  font-size: 9px;
}

.featured .kpi-head > span {
  color: #849a8d;
}

.kpi-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.kpi-icon svg {
  width: 15px;
  height: 15px;
}

.kpi-icon.lime { color: #243124; background: var(--admin-lime); }
.kpi-icon.mint { color: #2c5a4d; background: #d7eee6; }
.kpi-icon.gold { color: #6a5823; background: #f2ead1; }
.kpi-icon.blue { color: #37596a; background: #e1eef3; }

.kpi-card > strong {
  display: block;
  margin-top: 18px;
  font-size: 34px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.055em;
}

.kpi-foot {
  position: absolute;
  left: 19px;
  right: 19px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kpi-foot span,
.kpi-foot small {
  font-size: 7.5px;
}

.kpi-foot small {
  color: #9ba39d;
}

.featured .kpi-foot small {
  color: #6e8578;
}

.trend.up { color: #578369; }
.trend.neutral { color: #8d9791; }

.kpi-decoration {
  position: absolute;
  width: 150px;
  height: 150px;
  right: -52px;
  bottom: -68px;
  border: 1px solid rgba(216,255,112,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(216,255,112,.012);
}

.dashboard-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.45fr .55fr;
  gap: 13px;
}

.panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--admin-line);
  border-radius: 13px;
  background: var(--admin-panel);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-head > div > span {
  color: #a0a8a2;
  font-size: 7px;
  letter-spacing: .15em;
}

.panel-head h3 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.panel-chip,
.live-pill {
  padding: 5px 8px;
  color: #6e7e75;
  background: #f0eee7;
  border: 1px solid #e5e1d8;
  border-radius: 99px;
  font-size: 7px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5c846b;
}

.live-pill i {
  width: 5px;
  height: 5px;
  background: #72a281;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(114,162,129,.1);
}

.traffic-summary {
  margin-top: 20px;
  display: flex;
  gap: 35px;
}

.traffic-summary div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.traffic-summary strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.04em;
}

.traffic-summary span {
  color: #929b95;
  font-size: 8px;
}

.flow-chart {
  height: 175px;
  margin-top: 17px;
  padding: 0 4px;
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 10px;
}

.chart-y {
  padding-bottom: 21px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #b2b8b3;
  font-size: 6px;
}

.chart-bars {
  padding: 0 8px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e4e1da;
  background-image: linear-gradient(#efede7 1px, transparent 1px);
  background-size: 100% 25%;
}

.chart-bars > span {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.chart-bars i {
  width: min(31px, 70%);
  height: var(--h);
  background: #d7ddd3;
  border-radius: 5px 5px 0 0;
  transition: height 350ms ease;
}

.chart-bars i.today {
  background: #7da078;
  box-shadow: 0 7px 20px rgba(86,125,84,.12);
}

.chart-bars small {
  position: absolute;
  bottom: -20px;
  color: #9fa7a1;
  font-size: 6px;
}

.chart-note {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  color: #87948c;
  font-size: 7px;
}

.chart-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-note i {
  width: 5px;
  height: 5px;
  background: #7da078;
  border-radius: 50%;
}

.chart-note small {
  color: #a1a8a3;
  font-size: 7px;
}

.system-panel {
  display: flex;
  flex-direction: column;
}

.system-orbit {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 20px auto 8px;
  display: grid;
  place-items: center;
}

.system-core {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #1d3025;
  background: var(--admin-lime);
  border-radius: 50%;
  box-shadow: 0 0 35px rgba(183,230,96,.15);
}

.system-core svg {
  width: 24px;
  height: 24px;
}

.system-ring {
  position: absolute;
  border: 1px solid #e1ded6;
  border-radius: 50%;
}

.system-ring.one { inset: 31px; }
.system-ring.two { inset: 7px; border-color: #eeebe4; }

.system-node {
  position: absolute;
  padding: 5px 7px;
  color: #7c8881;
  background: #f6f4ee;
  border: 1px solid #e5e1d8;
  border-radius: 99px;
  font-size: 6px;
}

.node-one { top: 12px; right: 17px; }
.node-two { left: 0; top: 93px; }
.node-three { right: 1px; bottom: 21px; }

.system-list {
  margin: auto 0 0;
  padding: 12px 0 0;
  list-style: none;
  border-top: 1px solid var(--admin-line);
}

.system-list li {
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
  color: #7f8983;
  font-size: 8px;
}

.system-list li span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.system-list i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.system-list i.ok {
  background: #6da17c;
}

.system-list strong {
  color: #505d55;
  font-size: 8px;
  font-weight: 500;
}

.recent-panel,
.activity-panel {
  min-height: 260px;
}

.recent-panel .panel-head a,
.text-action {
  color: #6e8176;
  font-size: 8px;
  background: transparent;
  border: 0;
}

.recent-list,
.activity-list {
  margin-top: 17px;
  display: grid;
  gap: 2px;
}

.recent-row {
  padding: 9px 6px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
}

.recent-row:hover {
  background: #f1efe9;
}

.recent-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
}

.recent-avatar.coral { background: #a66f5c; }
.recent-avatar.mint { background: #4b7c6e; }
.recent-avatar.blue { background: #5d8492; }
.recent-avatar.gold { background: #9c8555; }
.recent-avatar.plum { background: #705d6f; }

.recent-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recent-copy strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #3c4b43;
  font-size: 9px;
  font-weight: 600;
}

.recent-copy em {
  padding: 2px 5px;
  color: #69836f;
  background: #e7eee5;
  border-radius: 99px;
  font-size: 5.5px;
  font-style: normal;
  font-weight: 500;
}

.recent-copy em.waiting {
  color: #907543;
  background: #f2ead7;
}

.recent-copy em.closed {
  color: #8b918d;
  background: #ecebe7;
}

.recent-copy small {
  overflow: hidden;
  color: #939b96;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-row time {
  align-self: start;
  margin-top: 4px;
  color: #a4aba6;
  font-size: 6px;
}

.activity-row {
  position: relative;
  padding: 10px 5px 10px 19px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.activity-row::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 20px;
  bottom: -12px;
  width: 1px;
  background: #e8e5de;
}

.activity-row:last-child::before {
  display: none;
}

.activity-mark {
  position: absolute;
  left: 2px;
  top: 15px;
  width: 9px;
  height: 9px;
  background: #eff2ed;
  border: 2px solid #8aac8e;
  border-radius: 50%;
}

.activity-mark.warning { border-color: #c49a57; }
.activity-mark.error { border-color: #c56c62; }
.activity-mark.success { border-color: #72a17d; }
.activity-mark.info { border-color: #7a9fb0; }

.activity-row > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.activity-row strong {
  color: #49564e;
  font-size: 8px;
  font-weight: 500;
}

.activity-row small {
  overflow: hidden;
  color: #969e99;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-row time {
  color: #a6ada8;
  font-size: 6px;
}

.panel-empty,
.table-empty {
  padding: 35px 15px;
  color: #9ba39e;
  text-align: center;
  font-size: 9px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 25px;
}

.page-heading h2 {
  margin: 9px 0 7px;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -.045em;
}

.page-heading p {
  margin: 0;
  color: #8b958f;
  font-size: 10px;
}

.card-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.card-stats article {
  padding: 17px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: var(--admin-panel);
}

.card-stat-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}

.card-stat-icon svg {
  width: 17px;
  height: 17px;
}

.card-stat-icon.total { color: #466257; background: #e1eae4; }
.card-stat-icon.active { color: #42775f; background: #dceddf; }
.card-stat-icon.disabled { color: #8d6a61; background: #f0e2de; }
.card-stat-icon.expiring { color: #856f32; background: #f2ead2; }

.card-stats article > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-stats small {
  color: #8b958f;
  font-size: 8px;
}

.card-stats strong {
  font-size: 21px;
  font-weight: 600;
}

.table-panel,
.log-panel {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 13px;
  background: var(--admin-panel);
}

.table-toolbar {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--admin-line);
}

.table-search {
  height: 38px;
  min-width: 250px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #f8f6f1;
}

.table-search:focus-within {
  border-color: #aeb4ac;
  background: white;
}

.table-search svg {
  width: 15px;
  height: 15px;
  color: #9fa7a1;
}

.table-search input {
  width: 100%;
  color: #34423a;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 9px;
}

.table-search input::placeholder {
  color: #abb1ad;
}

.filter-tabs {
  padding: 3px;
  display: flex;
  gap: 2px;
  background: #f0eee8;
  border-radius: 8px;
}

.filter-tabs button {
  height: 31px;
  padding: 0 12px;
  color: #7e8982;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 8px;
}

.filter-tabs button.active {
  color: #24372d;
  background: white;
  box-shadow: 0 1px 4px rgba(29,45,36,.08);
}

.table-toolbar > .secondary-action {
  margin-left: auto;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 12px 16px;
  color: #949d97;
  background: #f7f5f0;
  border-bottom: 1px solid var(--admin-line);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: .04em;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #eeece6;
  color: #5d6962;
  font-size: 8px;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: #faf9f5;
}

.data-table .align-right {
  text-align: right;
}

.card-identity {
  display: flex;
  align-items: center;
  gap: 11px;
}

.card-mini {
  position: relative;
  width: 43px;
  height: 29px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #315044;
  background: #deeadf;
  border: 1px solid #cbdccd;
  border-radius: 6px;
}

.card-mini i {
  position: absolute;
  width: 15px;
  height: 15px;
  right: -3px;
  bottom: -3px;
  background: rgba(255,255,255,.4);
  border-radius: 50%;
}

.card-mini b {
  font-size: 6px;
  font-weight: 600;
}

.card-identity > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-identity strong {
  color: #34423a;
  font-size: 9px;
  font-weight: 600;
}

.card-identity code {
  color: #9aa29d;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  letter-spacing: .04em;
}

.type-pill {
  padding: 4px 7px;
  color: #6a7770;
  background: #eeede8;
  border-radius: 5px;
  font-size: 7px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 7px;
}

.status-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.status-pill.active { color: #568066; }
.status-pill.active i { background: #6fa180; box-shadow: 0 0 0 3px rgba(111,161,128,.1); }
.status-pill.disabled { color: #9a6b62; }
.status-pill.disabled i { background: #c47a6d; }
.status-pill.expired { color: #9c837a; }
.status-pill.expired i { background: #b59a8e; }

.expiry-copy {
  color: #606c65;
}

.expiry-copy.soon {
  color: #947439;
}

.expiry-warning {
  display: block;
  margin-top: 3px;
  color: #b09054;
  font-size: 6px;
}

.muted-cell {
  color: #8d9690;
}

.row-actions {
  display: inline-flex;
  gap: 4px;
}

.row-actions button {
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #7e8982;
  background: #f7f5f0;
  border: 1px solid #e7e3db;
  border-radius: 6px;
}

.row-actions button:hover {
  color: #344b3f;
  background: white;
}

.row-actions button.danger:hover {
  color: #ad5148;
  background: #fbf1ef;
  border-color: #edcfc9;
}

.row-actions svg {
  width: 13px;
  height: 13px;
}

.table-footer {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  color: #9aa29d;
  background: #f8f6f1;
  border-top: 1px solid var(--admin-line);
  font-size: 7px;
}

.card-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.card-empty > span {
  color: #a4b0a8;
  font-size: 22px;
}

.card-empty strong {
  color: #5f6c64;
  font-size: 11px;
}

.card-empty p {
  margin: 0;
  font-size: 8px;
}

.settings-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
}

.profile-preview {
  padding: 16px;
  border: 1px solid var(--admin-line);
  border-radius: 13px;
  background: var(--admin-panel);
  text-align: center;
}

.profile-banner {
  position: relative;
  height: 125px;
  display: grid;
  place-items: end center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 15%, rgba(216,255,112,.1), transparent 35%),
    #12241c;
  border-radius: 9px;
}

.banner-orbit {
  position: absolute;
  width: 180px;
  height: 180px;
  left: 50%;
  top: -75px;
  transform: translateX(-50%);
  border: 1px solid rgba(216,255,112,.09);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(216,255,112,.015);
}

.large-avatar {
  position: relative;
  width: 68px;
  height: 68px;
  margin-bottom: -26px;
  display: grid;
  place-items: center;
  color: #1c3024;
  background: #dce8c8;
  border: 4px solid var(--admin-panel);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 23px;
  z-index: 2;
}

.profile-preview h3 {
  margin: 38px 0 5px;
  font-family: var(--serif);
  font-size: 17px;
}

.profile-preview > p {
  margin: 0;
  color: #8e9892;
  font-size: 8px;
}

.profile-security {
  margin-top: 25px;
  padding: 15px 0;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--admin-line);
  border-bottom: 1px solid var(--admin-line);
}

.profile-security span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #69766e;
  font-size: 8px;
  text-align: left;
}

.profile-security i {
  width: 5px;
  height: 5px;
  background: #72a17f;
  border-radius: 50%;
}

.profile-id {
  margin-top: 16px;
  padding: 11px;
  display: flex;
  justify-content: space-between;
  color: #8e9792;
  background: #f3f1eb;
  border-radius: 7px;
  font-size: 7px;
}

.profile-id code {
  color: #46574d;
  font-size: 7px;
}

.settings-main {
  display: grid;
  gap: 13px;
}

.settings-panel {
  padding: 22px;
  border: 1px solid var(--admin-line);
  border-radius: 13px;
  background: var(--admin-panel);
}

.settings-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--admin-line);
}

.settings-panel-head h3 {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.secure-label {
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #65806f;
  background: #e9f0e8;
  border-radius: 99px;
  font-size: 7px;
}

.secure-label svg {
  width: 12px;
  height: 12px;
}

.form-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-grid label.full {
  grid-column: span 2;
}

.form-grid label > span {
  color: #59665e;
  font-size: 9px;
  font-weight: 600;
}

.form-grid label > span small {
  margin-left: 4px;
  color: #a3aaa5;
  font-size: 7px;
  font-weight: 400;
}

.form-grid label > span b {
  float: right;
  color: #a1a8a3;
  font-size: 7px;
  font-weight: 400;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.log-toolbar select {
  width: 100%;
  color: #33423a;
  background: #f8f6f1;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  outline: 0;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.form-grid input,
.form-grid select {
  height: 42px;
  padding: 0 12px;
  font-size: 10px;
}

.form-grid textarea {
  padding: 11px 12px;
  resize: vertical;
  font-size: 10px;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.log-toolbar select:focus {
  background: white;
  border-color: #9ba99f;
  box-shadow: 0 0 0 3px rgba(68,96,75,.06);
}

.form-actions {
  margin-top: 22px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--admin-line);
}

.form-actions > span {
  color: #969e99;
  font-size: 8px;
}

.settings-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.settings-notes article {
  padding: 17px;
  display: flex;
  gap: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #f8f6f1;
}

.note-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #526a5d;
  background: #e3ebe3;
  border-radius: 8px;
}

.note-icon svg {
  width: 15px;
  height: 15px;
}

.settings-notes strong {
  color: #45534a;
  font-size: 9px;
}

.settings-notes p {
  margin: 5px 0 0;
  color: #878f8a;
  font-size: 8px;
  line-height: 1.7;
}

.logs-heading {
  align-items: flex-end;
}

.heading-actions {
  display: flex;
  gap: 8px;
}

.log-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.log-overview article {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 11px;
  background: var(--admin-panel);
}

.log-dot {
  width: 9px;
  height: 9px;
  border: 2px solid #7fa4b4;
  border-radius: 50%;
}

.log-dot.success { border-color: #72a17d; }
.log-dot.warning { border-color: #c29a57; }
.log-dot.error { border-color: #c66f65; }

.log-overview article > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.log-overview small {
  color: #8f9892;
  font-size: 8px;
}

.log-overview strong {
  font-size: 17px;
  font-weight: 600;
}

.log-toolbar {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--admin-line);
}

.log-toolbar .table-search {
  flex: 1;
}

.log-toolbar select {
  width: auto;
  height: 37px;
  padding: 0 28px 0 10px;
  font-size: 8px;
}

.log-console {
  min-height: 420px;
  max-height: 570px;
  overflow-y: auto;
  background: #fbfaf7;
}

.log-row {
  min-height: 58px;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 64px 47px 54px minmax(0, 1fr) 135px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #efede7;
}

.log-row:hover {
  background: #f7f5f0;
}

.log-time {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.log-time strong {
  color: #5f6b64;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 500;
}

.log-time span {
  color: #a5aca7;
  font-size: 6px;
}

.log-level {
  width: fit-content;
  padding: 3px 6px;
  color: #567588;
  background: #e8f0f4;
  border-radius: 4px;
  font-size: 6px;
}

.log-level.success { color: #558066; background: #e7f0e8; }
.log-level.warning { color: #96783d; background: #f4ecd9; }
.log-level.error { color: #a95049; background: #f7e5e2; }

.log-category {
  color: #867e71;
  font-size: 7px;
}

.log-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.log-content strong {
  color: #3d4b43;
  font-size: 9px;
  font-weight: 500;
}

.log-content small {
  overflow: hidden;
  color: #939b96;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-actor {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
}

.log-actor b {
  overflow: hidden;
  color: #59655e;
  font-size: 8px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-actor small {
  color: #a0a7a2;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 6px;
}

.log-empty {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #a1aaa4;
}

.log-empty span {
  font-size: 25px;
}

.log-empty strong {
  margin-top: 10px;
  color: #637068;
  font-size: 11px;
}

.log-empty p {
  margin: 7px 0 0;
  font-size: 8px;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(8, 16, 12, .5);
  backdrop-filter: blur(5px);
  animation: backdrop-in 180ms ease both;
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.admin-modal {
  width: min(570px, 100%);
  padding: 26px;
  background: var(--admin-panel);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 17px;
  box-shadow: 0 30px 100px rgba(7,16,12,.3);
  animation: modal-in 220ms ease both;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(9px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-head span {
  color: #9ca49e;
  font-size: 8px;
  letter-spacing: .15em;
}

.modal-head h2 {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: 24px;
}

.modal-close {
  width: 32px;
  height: 32px;
  color: #7e8982;
  background: #f2f0ea;
  border: 0;
  border-radius: 8px;
  font-size: 19px;
}

.modal-intro {
  margin: 12px 0 0;
  color: #8c958f;
  font-size: 9px;
}

.modal-actions {
  margin-top: 22px;
  padding-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--admin-line);
}

.toast-stack {
  position: fixed;
  z-index: 200;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-toast {
  min-width: 200px;
  max-width: 360px;
  padding: 12px 15px;
  color: #eaf2ec;
  background: #173026;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  box-shadow: 0 12px 35px rgba(7,16,12,.24);
  font-size: 10px;
  animation: toast-in 220ms ease both;
}

.admin-toast.error {
  background: #7d3934;
}

.admin-toast.warning {
  color: #332b18;
  background: #e4cf8b;
}

.admin-toast.leaving {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .admin-app { grid-template-columns: 220px minmax(0, 1fr); }
  .sidebar { width: 220px; padding-inline: 15px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .card-stats { grid-template-columns: 1fr 1fr; }
  .table-toolbar { flex-wrap: wrap; }
  .table-toolbar > .secondary-action { margin-left: 0; }
  .log-row { grid-template-columns: 58px 44px 45px minmax(0, 1fr) 105px; }
}

@media (max-width: 900px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .login-panel { min-height: 100vh; padding: 30px 22px; }
  .admin-app { display: block; }
  .sidebar {
    width: 260px;
    transform: translateX(-105%);
    transition: transform 220ms ease;
    box-shadow: 20px 0 70px rgba(3,9,6,.2);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: block; }
  .admin-main { min-height: 100vh; }
  .menu-button { display: grid; }
  .admin-topbar { padding-inline: 22px; }
  .admin-content { padding-inline: 22px; }
  .topbar-date { display: none; }
  .settings-layout { grid-template-columns: 1fr; }
  .profile-preview { max-width: none; }
  .settings-notes { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .admin-topbar { height: 80px; padding-inline: 14px; }
  .topbar-desk { display: none; }
  .topbar-right { gap: 7px; }
  .admin-content { padding: 20px 14px 40px; }
  .welcome-row { align-items: flex-start; flex-direction: column; gap: 18px; }
  .welcome-row h2 { font-size: 23px; line-height: 1.45; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-card { min-height: 145px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .traffic-summary { gap: 20px; }
  .flow-chart { gap: 4px; }
  .chart-bars { gap: 7px; padding-inline: 2px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 17px; }
  .page-heading h2 { font-size: 27px; }
  .card-stats { grid-template-columns: 1fr; }
  .table-toolbar { padding: 12px; }
  .table-search { width: 100%; min-width: 0; }
  .filter-tabs { width: 100%; overflow-x: auto; }
  .filter-tabs button { flex: 1; white-space: nowrap; }
  .table-toolbar > .secondary-action { width: 100%; }
  .data-table { min-width: 850px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.full { grid-column: auto; }
  .form-actions { align-items: flex-start; flex-direction: column; }
  .form-actions .primary-action { width: 100%; }
  .heading-actions { width: 100%; }
  .heading-actions > * { flex: 1; }
  .log-overview { grid-template-columns: 1fr 1fr; }
  .log-toolbar { flex-wrap: wrap; }
  .log-toolbar .table-search { flex-basis: 100%; }
  .log-toolbar select { flex: 1; }
  .log-row {
    padding: 12px;
    grid-template-columns: 55px 44px 1fr;
    gap: 7px;
  }
  .log-category { display: none; }
  .log-content { grid-column: 3; }
  .log-actor { grid-column: 1 / -1; margin-top: 5px; text-align: left; }
  .table-footer { gap: 12px; flex-direction: column; }
  .modal-backdrop { padding: 12px; }
  .admin-modal { max-height: calc(100vh - 24px); padding: 20px; overflow-y: auto; }
  .toast-stack { left: 14px; right: 14px; bottom: 14px; }
  .admin-toast { max-width: none; }
}
