/* Admin panel — same design tokens as the public website. */
:root {
  --green-900: #052a1a; --green-800: #083d26; --green-700: #0b5233; --green-600: #0f6b43; --green-500: #158455;
  --green-100: #e6f2ec; --green-050: #f3f8f5;
  --gold-700: #8a6300; --gold-500: #d29b06; --gold-300: #f2c94c; --gold-100: #fdf3d8;
  --red-700: #8f1015; --red-600: #b4121b; --red-100: #fbe9ea;
  --blue-700: #0d4a72; --blue-100: #e7f0f7;
  --ink: #111a16; --ink-soft: #33403a; --slate: #5b6661; --slate-600: #4e5a55;
  --line: #dde3e0; --line-soft: #eceff0; --bg: #f6f8f7; --card: #ffffff;
  --font-display: "Outfit", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 8px; --radius-lg: 14px;
  --shadow-1: 0 1px 2px rgba(9, 30, 20, .06), 0 1px 3px rgba(9, 30, 20, .08);
  --shadow-2: 0 4px 12px rgba(9, 30, 20, .08), 0 2px 4px rgba(9, 30, 20, .06);
  --shadow-3: 0 18px 48px rgba(9, 30, 20, .22);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --sidebar: 256px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); color: var(--green-900); margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
a { color: var(--green-700); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--slate); } .small { font-size: .85rem; } .nowrap { white-space: nowrap; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { background: var(--green-900); color: #cfe0d5; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; border-right: 1px solid rgba(255, 255, 255, .06); }
.sidebar__brand { display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px; color: #fff; text-decoration: none; }
.sidebar__brand img { width: 40px; height: 40px; object-fit: contain; }
.sidebar__brand strong { display: block; font-family: var(--font-display); font-size: 1rem; line-height: 1.15; }
.sidebar__brand span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-300); }
.nav { padding: 6px 12px 24px; display: grid; gap: 2px; }
.nav__group { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #7fa08c; padding: 16px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--radius); color: #cfe0d5; text-decoration: none; font-weight: 500; position: relative; transition: background .2s var(--ease), color .2s var(--ease); }
.nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav a[aria-current="page"] { background: rgba(242, 201, 76, .14); color: #fff; }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-300); }
.nav a svg { flex: none; opacity: .9; }
.nav .count { margin-left: auto; background: var(--gold-300); color: var(--green-900); font-size: .72rem; font-weight: 700; border-radius: 100px; padding: 1px 8px; }
.sidebar__foot { margin-top: auto; padding: 14px 20px; font-size: .78rem; color: #7fa08c; border-top: 1px solid rgba(255, 255, 255, .08); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar__spacer { flex: 1; }
.iconbtn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); cursor: pointer; position: relative; transition: background .2s var(--ease), border-color .2s var(--ease); }
.iconbtn:hover { background: var(--green-050); border-color: var(--green-500); }
.iconbtn .dot { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 100px; background: var(--red-600); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
.menu-toggle { display: none; }
[hidden] { display: none !important; }
svg.i { display: block; flex: none; }
.userchip { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 100px; background: #fff; cursor: pointer; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.userchip small { display: block; color: var(--slate); font-size: .72rem; line-height: 1; text-transform: capitalize; }
.userchip strong { font-size: .85rem; line-height: 1.2; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); padding: 6px; z-index: 40; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; text-align: left; border-radius: var(--radius); color: var(--ink-soft); text-decoration: none; cursor: pointer; font-size: .9rem; }
.menu a:hover, .menu button:hover { background: var(--green-050); }
.menu hr { border: 0; border-top: 1px solid var(--line-soft); margin: 4px 0; }
.menu__head { padding: 8px 12px; font-size: .8rem; color: var(--slate); }
.pos-rel { position: relative; }

.content { padding: 28px; max-width: 1280px; width: 100%; }
.pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.pagehead p { margin: 4px 0 0; color: var(--slate); max-width: 62ch; }

/* ---------- Cards, buttons, badges ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.card__body { padding: 20px; }
.grid { display: grid; gap: 18px; }
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius); border: 1px solid var(--green-600); background: var(--green-600); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; font-size: .9rem; transition: background .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease); white-space: nowrap; }
.btn:hover { background: var(--green-700); border-color: var(--green-700); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--gold { background: var(--gold-300); border-color: var(--gold-300); color: var(--green-900); }
.btn--gold:hover { background: #ffd76a; border-color: #ffd76a; }
.btn--ghost { background: #fff; color: var(--green-700); border-color: var(--line); }
.btn--ghost:hover { background: var(--green-050); border-color: var(--green-500); }
.btn--danger { background: #fff; color: var(--red-700); border-color: #f0c4c6; }
.btn--danger:hover { background: var(--red-100); border-color: var(--red-600); }
.btn--sm { padding: 5px 10px; font-size: .82rem; }
.btn--icon { padding: 6px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 100px; background: var(--green-100); color: var(--green-800); white-space: nowrap; }
.badge--gold { background: var(--gold-100); color: var(--gold-700); }
.badge--red { background: var(--red-100); color: var(--red-700); }
.badge--blue { background: var(--blue-100); color: var(--blue-700); }
.badge--gray { background: #eef1f0; color: var(--slate-600); }

/* ---------- Stat tiles ---------- */
.stat { display: flex; gap: 14px; align-items: center; padding: 18px; text-decoration: none; color: inherit; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
a.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--green-500); }
.stat__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; flex: none; }
.stat__icon--gold { background: var(--gold-100); color: var(--gold-700); }
.stat__icon--red { background: var(--red-100); color: var(--red-700); }
.stat__n { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: 1; color: var(--green-900); }
.stat__l { font-size: .82rem; color: var(--slate); margin-top: 4px; }

/* ---------- Tables / lists ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .search { height: 38px; display: flex; align-items: center; }
.toolbar select.input { height: 38px; min-width: 140px; }
.toolbar .btn { height: 38px; padding: 0 16px; }
.search { position: relative; flex: 1; min-width: 220px; max-width: 380px; display: flex; align-items: center; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--slate); pointer-events: none; z-index: 2; }
.search input {
  width: 100%; height: 38px; padding: 0 12px 0 38px !important; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; -webkit-appearance: none; appearance: none;
  font: inherit; font-size: .9rem; line-height: normal; box-sizing: border-box;
}
.search input::-webkit-search-decoration,
.search input::-webkit-search-cancel-button,
.search input::-webkit-search-results-button,
.search input::-webkit-search-results-decoration {
  -webkit-appearance: none; display: none;
}
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); font-weight: 700; padding: 12px 16px; background: var(--green-050); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr { transition: background .15s var(--ease); }
.table tbody tr:hover { background: var(--green-050); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.cell-title { font-weight: 600; color: var(--green-900); display: flex; align-items: center; gap: 12px; }
.cell-title small { display: block; font-weight: 400; color: var(--slate); }
.thumb { width: 52px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--green-100); flex: none; }
.empty { padding: 48px 20px; text-align: center; color: var(--slate); }
.empty svg { width: 36px; height: 36px; color: var(--green-500); margin: 0 auto 10px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .field > .label { font-weight: 600; font-size: .85rem; color: var(--green-900); }
.field .hint { font-size: .8rem; color: var(--slate); }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=url], .field input[type=number], .field input[type=datetime-local], .field select, .field textarea {
  width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); font: inherit; font-size: .9rem; box-sizing: border-box;
}
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=url], .field input[type=number], .field input[type=datetime-local] {
  height: 38px;
}
select, .field select, select.input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6661' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) center;
  background-size: 14px 14px;
  padding: 0 32px 0 12px !important;
  height: 38px;
  line-height: 36px;
  cursor: pointer;
  vertical-align: middle;
}
select::-ms-expand { display: none; }
.field textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .search input:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(21, 132, 85, .16); }
.field--error input, .field--error textarea, .field--error select { border-color: var(--red-600); }
.form-grid { display: grid; gap: 0 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 40px; height: 22px; border-radius: 100px; background: #c9d2ce; position: relative; transition: background .2s var(--ease); flex: none; }
.switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform .2s var(--ease); }
.switch input:checked + i { background: var(--green-600); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.alert { padding: 12px 14px; border-radius: var(--radius); font-size: .9rem; margin-bottom: 14px; }
.alert--error { background: var(--red-100); color: var(--red-700); border: 1px solid #f0c4c6; }
.alert--ok { background: var(--green-100); color: var(--green-800); border: 1px solid #c4e0d1; }
.alert--info { background: var(--blue-100); color: var(--blue-700); }

/* image field */
.imgfield { display: flex; gap: 12px; align-items: center; }
.imgfield__preview { width: 96px; height: 72px; border-radius: 8px; border: 1px dashed var(--line); background: var(--bg); object-fit: cover; flex: none; display: grid; place-items: center; color: var(--slate); font-size: .75rem; overflow: hidden; }
.imgfield__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Rich text ---------- */
.rte { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.rte:focus-within { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(21, 132, 85, .16); }
.rte__bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: var(--green-050); border-bottom: 1px solid var(--line); }
.rte__bar button { border: 0; background: none; padding: 6px 10px; border-radius: 6px; cursor: pointer; font-weight: 600; color: var(--ink-soft); min-width: 34px; }
.rte__bar button:hover { background: #fff; box-shadow: var(--shadow-1); }
.rte__bar .sep { width: 1px; background: var(--line); margin: 4px 4px; }
.rte__area { min-height: 260px; max-height: 520px; overflow: auto; padding: 14px 16px; outline: none; line-height: 1.7; }
.rte__area:empty::before { content: attr(data-placeholder); color: #9aa6a1; }
.prose h2 { font-size: 1.35rem; margin: 1.2em 0 .4em; } .prose h3 { font-size: 1.1rem; margin: 1em 0 .3em; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1em; }
.prose img { border-radius: 8px; margin: 1em 0; }
.prose blockquote { border-left: 4px solid var(--gold-500); padding: 4px 16px; background: var(--gold-100); border-radius: 0 8px 8px 0; }
.prose a { color: var(--blue-700); }

/* ---------- Modal / drawer / toast ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(5, 20, 12, .55); display: flex; justify-content: flex-end; animation: fade .2s var(--ease); }
.overlay--center { justify-content: center; align-items: center; padding: 20px; }
@keyframes fade { from { opacity: 0; } }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
@keyframes pop { from { transform: translateY(12px) scale(.97); opacity: 0; } }
.drawer { width: min(760px, 100%); height: 100%; background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow-3); animation: slideIn .28s var(--ease); }
.modal { width: min(560px, 100%); max-height: 90vh; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-3); display: flex; flex-direction: column; animation: pop .22s var(--ease); }
.modal--wide { width: min(920px, 100%); }
.drawer__head, .modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__body, .modal__body { padding: 20px; overflow-y: auto; flex: 1; }
.drawer__foot, .modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--green-050); }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 10px; }
.toast { background: var(--green-900); color: #fff; padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow-3); display: flex; gap: 10px; align-items: center; animation: pop .25s var(--ease); max-width: 360px; font-size: .9rem; }
.toast--error { background: var(--red-700); }

/* media grid */
.media-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.media-item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; cursor: pointer; text-align: left; padding: 0; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.media-item:hover { border-color: var(--green-500); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.media-item.is-selected { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(21, 132, 85, .25); }
.media-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--green-100); }
.media-item span { display: block; padding: 8px 10px; font-size: .78rem; color: var(--slate-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius-lg); padding: 22px; text-align: center; color: var(--slate); background: var(--green-050); transition: border-color .2s var(--ease), background .2s var(--ease); }
.dropzone.is-over { border-color: var(--green-500); background: var(--green-100); }

/* chart */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 8px; }
.bars div { flex: 1; background: var(--green-100); border-radius: 4px 4px 0 0; position: relative; min-height: 4px; transition: background .2s var(--ease); }
.bars div:hover { background: var(--green-500); }
.bars div b { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: .72rem; color: var(--slate-600); font-weight: 600; }
.bars-x { display: flex; justify-content: space-between; font-size: .72rem; color: var(--slate); margin-top: 6px; }

/* messages */
.split { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 18px; align-items: start; }
.msglist { max-height: 70vh; overflow-y: auto; }
.msgrow { display: block; width: 100%; text-align: left; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line-soft); background: #fff; cursor: pointer; transition: background .15s var(--ease); }
.msgrow:hover { background: var(--green-050); }
.msgrow.is-active { background: var(--green-100); }
.msgrow.is-new strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); margin-right: 8px; }
.msgrow small { color: var(--slate); display: block; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; margin: 0 0 18px; }
.kv dt { color: var(--slate); font-size: .85rem; } .kv dd { margin: 0; word-break: break-word; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); }
.timeline li:last-child { border-bottom: 0; }
.timeline .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-500); margin-top: 7px; flex: none; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; background: var(--bg); }
.login__art { background: radial-gradient(900px 500px at 10% -10%, rgba(21, 132, 85, .6), transparent 60%), radial-gradient(700px 420px at 100% 110%, rgba(210, 155, 6, .28), transparent 60%), var(--green-900); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.login__art h2 { color: #fff; font-size: 2.1rem; max-width: 16ch; }
.login__art p { color: #cfe0d5; max-width: 40ch; font-size: 1rem; line-height: 1.6; }
.login__art em { font-style: normal; color: var(--gold-300); }
.login__form { display: grid; place-items: center; padding: 32px 24px; background: #f6f8f7; }
.login__box {
  width: min(420px, 100%);
  padding: 36px 32px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(5, 42, 26, .08);
}
.login__brand { margin-bottom: 20px; display: flex; justify-content: flex-start; }
.login__brand img { width: 56px; height: 56px; object-fit: contain; }
.login__box h1 { margin-bottom: 6px; font-size: 1.6rem; color: var(--green-900); }
.login__box p.muted { margin-bottom: 22px; font-size: .92rem; }
.login__box .field { margin-bottom: 18px; }
.login__box .btn { height: 42px; font-size: .95rem; font-weight: 700; }
.flag { height: 4px; background: linear-gradient(90deg, var(--red-600) 0 33.3%, var(--gold-300) 33.3% 66.6%, var(--green-600) 66.6% 100%); }

/* Password show/hide toggle */
.password-wrap { position: relative; width: 100%; display: flex; align-items: center; }
.password-wrap input { padding-right: 42px !important; width: 100%; }
.btn--eye {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; padding: 6px 8px; cursor: pointer; color: var(--slate);
  display: grid; place-items: center; border-radius: 4px; transition: color .15s var(--ease);
}
.btn--eye:hover { color: var(--green-700); }
.btn--eye:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 1px; }

@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 60; width: min(86vw, 300px); transform: translateX(-102%); transition: transform .28s var(--ease); }
  .sidebar.is-open { transform: none; box-shadow: var(--shadow-3); }
  .scrim { position: fixed; inset: 0; background: rgba(5, 20, 12, .5); z-index: 50; animation: fade .2s var(--ease); }
  .menu-toggle { display: inline-grid; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
  .split { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login__art { display: none; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .userchip div { display: none; }
  .userchip { padding: 4px; }
  .grid--2 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
.table td:first-child { min-width: 230px; }
