:root {
  --primary: #4f7c0f;
  --primary-dark: #3f620b;
  --primary-fill: #b7f34a;
  --primary-bright: #caff62;
  --primary-soft: #eaf7ce;
  --primary-pale: #f5faeb;
  --primary-ink: #26370d;
  --forest: #101b0d;
  --navy: #101b0d;
  --ink: #182230;
  --muted: #667085;
  --line: #dce6cc;
  --surface: #f5f7f0;
  --success: #4f7c0f;
  --danger: #d92d20;
  --shadow: 0 24px 70px rgba(38, 55, 13, 0.12);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.page-shell {
  display: grid;
  grid-template-columns: minmax(390px, 0.92fr) minmax(520px, 1.08fr);
  min-height: 100vh;
  background: var(--surface);
}

.brand-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  padding: 46px 54px 38px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 15%, rgba(183, 243, 74, 0.22), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(111, 170, 30, 0.18), transparent 30%),
    linear-gradient(145deg, #15220f 0%, #0d170b 55%, #16210e 100%);
}

.brand-panel__grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.11) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.orb--one { width: 360px; height: 360px; right: -170px; top: 16%; border: 1px solid rgba(183, 243, 74, 0.28); box-shadow: inset 0 0 80px rgba(183, 243, 74, 0.08); }
.orb--two { width: 230px; height: 230px; left: -130px; bottom: 8%; border: 1px solid rgba(126, 190, 38, 0.24); }
.orb--three { width: 12px; height: 12px; right: 19%; bottom: 16%; background: var(--primary-fill); box-shadow: 0 0 32px 8px rgba(183, 243, 74, 0.42); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,0.19), rgba(255,255,255,0.06));
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}
.brand__mark svg { width: 23px; height: 23px; }
.brand__name { font-size: 21px; font-weight: 720; letter-spacing: -0.5px; }

.brand-panel__content { width: 100%; max-width: 520px; margin: auto 0; padding: 72px 0 54px; }
.eyebrow, .auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--primary-fill);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--primary-fill); box-shadow: 0 0 0 4px rgba(183, 243, 74, 0.14); }
.brand-panel h1 { margin: 23px 0 20px; font-size: clamp(42px, 4.2vw, 61px); line-height: 1.07; letter-spacing: -2.6px; font-weight: 720; }
.brand-panel h1 span { color: var(--primary-fill); }
.brand-panel__lead { max-width: 440px; margin: 0; color: #b9c5ad; font-size: 16px; line-height: 1.75; }

.feature-list { display: grid; gap: 12px; margin-top: 39px; }
.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 430px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(10px);
}
.feature-item__icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 auto; color: var(--primary-fill); border-radius: 10px; background: rgba(183, 243, 74, 0.12); }
.feature-item__icon svg { width: 20px; height: 20px; }
.feature-item strong, .feature-item span { display: block; }
.feature-item strong { margin-bottom: 3px; color: #f3f8ec; font-size: 13px; font-weight: 650; }
.feature-item div span { color: #97a78a; font-size: 12px; }

.brand-panel__footer { display: flex; align-items: center; gap: 15px; color: #8fa07f; }
.brand-panel__footer p { margin: 0; font-size: 12px; }
.avatar-stack { display: flex; padding-left: 8px; }
.avatar-stack span { display: grid; place-items: center; width: 30px; height: 30px; margin-left: -8px; color: var(--primary-ink); border: 2px solid #15220f; border-radius: 50%; background: var(--primary-fill); font-size: 9px; font-weight: 750; }
.avatar-stack span:nth-child(2) { color: #eef8df; background: #3d5b18; }
.avatar-stack span:nth-child(3) { color: var(--primary-fill); background: #26370d; }

.auth-panel { position: relative; display: grid; place-items: center; min-height: 100vh; padding: 48px 36px; overflow: hidden; }
.auth-panel::before { content: ""; position: absolute; width: 360px; height: 360px; right: -180px; top: -180px; border-radius: 50%; background: rgba(183, 243, 74, 0.12); filter: blur(4px); pointer-events: none; }
.mobile-brand { display: none; }
.auth-card { position: relative; width: 100%; max-width: 424px; }
.auth-card__header { margin-bottom: 31px; }
.auth-kicker { color: var(--primary); font-size: 10px; letter-spacing: 1.55px; }
.auth-card h2 { margin: 12px 0 9px; color: #151b2b; font-size: 35px; line-height: 1.15; letter-spacing: -1.35px; font-weight: 730; }
.auth-card__header p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.alert { display: flex; align-items: flex-start; gap: 10px; margin: -8px 0 20px; padding: 12px 14px; color: #b42318; border: 1px solid #fecdca; border-radius: 11px; background: #fef3f2; font-size: 13px; line-height: 1.5; animation: reveal 180ms ease-out; }
.alert svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.alert--warning { color: #935b05; border-color: #fedf89; background: #fffaeb; }

.field { margin-bottom: 20px; }
.field label { display: inline-block; margin-bottom: 8px; color: #344054; font-size: 12px; font-weight: 650; }
.field__label-row { display: flex; align-items: center; justify-content: space-between; }
.caps-hint { margin-bottom: 8px; color: #b54708; font-size: 10px; font-weight: 600; }
.input-shell { display: flex; align-items: center; height: 52px; border: 1px solid #d8dce7; border-radius: 12px; background: #fff; transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.input-shell:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 124, 15, 0.12); }
.input-shell.is-invalid { border-color: #f04438; box-shadow: 0 0 0 4px rgba(240, 68, 56, 0.08); animation: shake 260ms ease; }
.input-icon { width: 19px; height: 19px; flex: 0 0 auto; margin-left: 16px; color: #98a2b3; }
.input-shell input { width: 100%; min-width: 0; height: 100%; padding: 0 14px 0 11px; color: var(--ink); border: 0; outline: 0; background: transparent; font-size: 14px; }
.input-shell input::placeholder { color: #98a2b3; }
.password-toggle { display: grid; place-items: center; width: 44px; height: 40px; flex: 0 0 auto; margin-right: 5px; padding: 0; color: #98a2b3; border: 0; border-radius: 8px; background: transparent; cursor: pointer; transition: color 150ms ease, background 150ms ease; }
.password-toggle:hover { color: var(--primary); background: var(--primary-pale); }
.password-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.password-toggle svg { width: 19px; height: 19px; }
.field-error { display: block; min-height: 0; margin-top: 5px; color: var(--danger); font-size: 11px; }
.field-error:empty { display: none; }

.session-note { display: flex; align-items: center; gap: 9px; margin: 2px 0 24px; color: #7a8294; font-size: 11px; line-height: 1.5; }
.session-note__icon { display: inline-flex; width: 17px; height: 17px; flex: 0 0 auto; color: var(--primary); }
.session-note__icon svg { width: 17px; height: 17px; }

.primary-button { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 52px; padding: 0 20px; overflow: hidden; color: var(--primary-ink); border: 0; border-radius: 12px; background: linear-gradient(115deg, var(--primary-bright), var(--primary-fill)); box-shadow: 0 12px 24px rgba(79, 124, 15, 0.2); font-size: 14px; font-weight: 760; cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease; }
.primary-button::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 25%, rgba(255,255,255,0.35) 50%, transparent 75%); transform: translateX(-120%); transition: transform 550ms ease; }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(79, 124, 15, 0.26); filter: saturate(1.08); }
.primary-button:hover::before { transform: translateX(120%); }
.primary-button:active { transform: translateY(0); }
.primary-button:focus-visible { outline: 3px solid rgba(79, 124, 15, 0.3); outline-offset: 3px; }
.primary-button:disabled { cursor: wait; opacity: 0.8; transform: none; }
.button-arrow { display: inline-flex; transition: transform 160ms ease; }
.button-arrow svg { width: 19px; height: 19px; }
.primary-button:hover .button-arrow { transform: translateX(3px); }
.spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(38,55,13,0.22); border-top-color: var(--primary-ink); border-radius: 50%; animation: spin 650ms linear infinite; }
.primary-button.is-loading .button-label, .primary-button.is-loading .button-arrow { display: none; }
.primary-button.is-loading .spinner { display: inline-block; }

.auth-card__footer { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin-top: 27px; color: #98a2b3; font-size: 10px; line-height: 1.6; text-align: center; }
.auth-card__footer svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; }

.page-shell.is-dashboard { display: block; background: #f1f5e9; }
.is-dashboard .brand-panel { display: none; }
.is-dashboard .auth-panel { display: block; min-height: 100vh; padding: 0 0 42px; }
.is-dashboard .auth-panel::before { display: none; }
.device-dashboard { width: 100%; animation: reveal 260ms ease-out; }

.device-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 16px 24px;
  color: var(--primary-ink);
  background: linear-gradient(105deg, var(--primary-bright) 0%, var(--primary-fill) 58%, #a8e63a 100%);
  box-shadow: 0 8px 24px rgba(79, 124, 15, 0.18);
}
.device-header__brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.device-header__logo { display: grid; place-items: center; width: 47px; height: 47px; flex: 0 0 auto; color: var(--primary-fill); border: 1px solid rgba(38,55,13,0.22); border-radius: 12px; background: var(--primary-ink); box-shadow: 0 7px 16px rgba(38,55,13,0.14); }
.device-header__logo svg { width: 27px; height: 27px; }
.device-header h1 { margin: 0; font-size: clamp(18px, 2vw, 25px); font-weight: 800; letter-spacing: 0.6px; }
.device-header p { margin: 5px 0 0; color: rgba(38,55,13,0.65); font-size: 10px; letter-spacing: 0.25px; }
.device-header__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.header-button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 17px; border: 0; border-radius: 7px; font-size: 10px; font-weight: 800; letter-spacing: 0.45px; text-transform: uppercase; cursor: pointer; transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease; }
.header-button:hover { transform: translateY(-1px); filter: brightness(1.04); }
.header-button:active { transform: translateY(0); }
.header-button:focus-visible { outline: 3px solid rgba(38,55,13,0.3); outline-offset: 3px; }
.header-button svg { width: 16px; height: 16px; }
.header-button--new { color: var(--primary-fill); background: var(--primary-ink); box-shadow: 0 7px 16px rgba(38,55,13,0.18); }
.header-button--logout { color: #fff; background: #c73f45; box-shadow: 0 7px 16px rgba(120,30,34,0.18); }

.session-strip { display: flex; align-items: center; gap: 8px; min-height: 33px; padding: 7px 24px; color: #526b23; border-bottom: 1px solid #dce9bf; background: #edf7d9; font-size: 10px; }
.session-strip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px rgba(79,124,15,0.12); }
.session-strip strong { color: var(--primary-ink); font-variant-numeric: tabular-nums; }
.session-strip__user { margin-left: auto; color: #78934a; }
.session-strip.is-expiring { color: #b42318; background: #fef3f2; border-color: #fecdca; }
.session-strip.is-expiring strong { color: #b42318; }
.session-strip.is-expiring .session-strip__dot { background: #f04438; box-shadow: 0 0 0 3px #fee4e2; }

.device-workspace { width: 100%; margin: 0; padding: 16px 20px 0; }
.bulk-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 13px; padding: 11px 14px; border: 1px solid #dce6cc; border-radius: 9px; background: #fff; box-shadow: 0 4px 14px rgba(38,55,13,0.04); }
.bulk-toggle { display: inline-flex; align-items: center; gap: 9px; color: #3d5120; font-size: 11px; cursor: pointer; user-select: none; }
.bulk-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.bulk-toggle__track { position: relative; width: 30px; height: 17px; border-radius: 999px; background: #d7dfca; transition: background 160ms ease; }
.bulk-toggle__track span { position: absolute; width: 13px; height: 13px; left: 2px; top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.18); transition: transform 160ms ease; }
.bulk-toggle input:checked + .bulk-toggle__track { background: var(--primary-fill); }
.bulk-toggle input:checked + .bulk-toggle__track span { transform: translateX(13px); background: var(--primary-ink); }
.bulk-toggle input:focus-visible + .bulk-toggle__track { outline: 3px solid rgba(79,124,15,0.22); outline-offset: 2px; }
.bulk-bar__actions { display: flex; align-items: center; gap: 8px; }
.bulk-button { min-height: 30px; padding: 0 12px; border: 1px solid transparent; border-radius: 6px; font-size: 10px; font-weight: 680; cursor: pointer; transition: background 150ms ease, border-color 150ms ease, opacity 150ms ease; }
.bulk-button:disabled { cursor: not-allowed; opacity: 0.48; }
.bulk-button--enable { color: #3f620b; border-color: #c9e99a; background: #eef8df; }
.bulk-button--enable:not(:disabled):hover { background: #e2f3c7; }
.bulk-button--disable { color: #9a6700; border-color: #f5d785; background: #fff8df; }
.bulk-button--disable:not(:disabled):hover { background: #fff1bf; }
.bulk-button--delete { color: #b42318; border-color: #f7b7b2; background: #fef0ef; }
.bulk-button--delete:not(:disabled):hover { background: #fee2df; }

.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 15px; border: 1px solid #dce6cc; border-bottom: 0; border-radius: 9px 9px 0 0; background: #fff; }
.search-box { display: flex; align-items: center; gap: 8px; color: #5b6b48; font-size: 11px; font-weight: 620; }
.search-box input { width: 235px; height: 32px; padding: 0 11px; color: #2f3d22; border: 1px solid #d5dfc7; border-radius: 6px; outline: none; background: #fff; font-size: 11px; transition: border-color 150ms ease, box-shadow 150ms ease; }
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,124,15,0.1); }
.search-box input::placeholder { color: #9aa68c; }
.entries-control { display: flex; align-items: center; gap: 7px; color: #7b886b; font-size: 10px; }
.entries-control select { height: 30px; padding: 0 24px 0 8px; color: #465435; border: 1px solid #d5dfc7; border-radius: 6px; outline: none; background: #fff; font-size: 10px; cursor: pointer; }
.entries-control select:focus { border-color: var(--primary); }

.table-scroll { overflow-x: auto; border: 1px solid #dce6cc; background: #fff; }
.device-table { width: 100%; min-width: 1120px; border-collapse: collapse; table-layout: auto; }
.device-table th { height: 40px; padding: 0 11px; color: #52633b; border-bottom: 1px solid #dce8c5; background: #f2f8e7; font-size: 9px; font-weight: 800; letter-spacing: 0.35px; text-align: left; white-space: nowrap; }
.device-table th button { display: inline-flex; align-items: center; gap: 6px; padding: 0; color: inherit; border: 0; background: transparent; font: inherit; letter-spacing: inherit; cursor: pointer; }
.device-table th button span { color: #93a47d; font-size: 11px; }
.device-table th button.is-sorted { color: #3f620b; }
.device-table th button.is-sorted span { color: #3f620b; }
.device-table td { height: 48px; padding: 6px 11px; color: #56624c; border-bottom: 1px solid #edf1e7; font-size: 10px; vertical-align: middle; }
.device-table tbody tr:last-child td { border-bottom: 0; }
.device-table tbody tr:hover { background: #f8fbf1; }
.device-table tbody tr.is-selected { background: #edf8d7; }
.device-table .select-cell { width: 40px; text-align: center; }
.device-table input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--primary); cursor: pointer; }
.device-operator { color: #2f3d22; font-weight: 700; }
.device-user-id { color: #47543b; font-variant-numeric: tabular-nums; }
.device-group { color: #718061; font-size: 9px; font-weight: 650; letter-spacing: 0.25px; }
.device-serial { color: #4f7c0f; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; font-weight: 700; }
.limit-editor { display: flex; align-items: center; gap: 5px; }
.limit-editor input { width: 49px; height: 28px; padding: 0 6px; color: #3d4d2e; border: 1px solid #d8e1cc; border-radius: 5px; outline: none; text-align: center; font-size: 10px; }
.limit-editor input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(79,124,15,0.1); }
.limit-save { display: grid; place-items: center; width: 27px; height: 27px; padding: 0; color: #3f620b; border: 1px solid #cfe3ad; border-radius: 5px; background: #f1f8e4; cursor: pointer; }
.limit-save:hover { background: #e4f2ce; }
.limit-save svg { width: 14px; height: 14px; }
.status-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 84px; min-height: 23px; padding: 0 8px; border: 1px solid transparent; border-radius: 5px; font-size: 8px; font-weight: 780; letter-spacing: 0.25px; white-space: nowrap; }
.status-badge--active { color: #3f620b; border-color: #c9e99a; background: #eef8df; }
.status-badge--inactive { color: #b42318; border-color: #f4b7bc; background: #fef0f1; }
.status-badge--blocked { color: #8a5a00; border-color: #efd27c; background: #fff6d9; }
.row-actions { display: flex; align-items: center; gap: 5px; }
.row-action { display: grid; place-items: center; width: 29px; height: 27px; padding: 0; border: 1px solid #dbe3d1; border-radius: 5px; background: #fff; cursor: pointer; transition: background 140ms ease, border-color 140ms ease, color 140ms ease; }
.row-action svg { width: 14px; height: 14px; }
.row-action--edit { color: #4f7c0f; }
.row-action--edit:hover { border-color: #c9e99a; background: #f1f8e4; }
.row-action--toggle { color: #4f7c0f; }
.row-action--toggle:hover { border-color: #c9e99a; background: #eef8df; }
.row-action--toggle.is-disable { color: #9a6700; }
.row-action--toggle.is-disable:hover { border-color: #efd27c; background: #fff6d9; }
.row-action--delete { color: #c73f45; }
.row-action--delete:hover { border-color: #f4b7b2; background: #fef0ef; }
.key-button { min-width: 79px; height: 28px; padding: 0 9px; color: var(--primary-ink); border: 0; border-radius: 5px; background: var(--primary-fill); font-size: 8px; font-weight: 800; letter-spacing: 0.25px; cursor: pointer; transition: background 140ms ease, transform 140ms ease; }
.key-button:hover { background: var(--primary-bright); transform: translateY(-1px); }
.key-button--not-set { color: #8a977b; border: 1px solid #dfe6d6; background: #f6f8f2; cursor: default; }
.key-button--not-set:hover { background: #f6f8f2; transform: none; }
.empty-row td { height: 160px; color: #8a977b; text-align: center; }
.empty-state strong { display: block; margin-bottom: 6px; color: #52633b; font-size: 13px; }
.empty-state span { font-size: 10px; }

.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 15px; color: #7b886b; border: 1px solid #dce6cc; border-top: 0; border-radius: 0 0 9px 9px; background: #fff; font-size: 10px; }
.pagination { display: flex; align-items: center; gap: 10px; }
.pagination button { height: 29px; padding: 0 10px; color: #4f7c0f; border: 1px solid #d5e3bd; border-radius: 5px; background: #fff; font-size: 9px; font-weight: 700; cursor: pointer; }
.pagination button:not(:disabled):hover { background: #f1f8e4; }
.pagination button:disabled { color: #a8b19b; cursor: not-allowed; background: #fafbf7; }
.pagination span { min-width: 68px; color: #778569; text-align: center; font-size: 9px; }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(16,27,13,0.52); backdrop-filter: blur(5px); animation: fade-in 160ms ease-out; }
.modal-card { width: 100%; max-width: 610px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 25px; border: 1px solid rgba(255,255,255,0.5); border-radius: 17px; background: #fff; box-shadow: 0 28px 80px rgba(16,27,13,0.3); animation: modal-in 190ms ease-out; }
.modal-card--small { max-width: 390px; text-align: center; }
.modal-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.modal-kicker { color: var(--primary); font-size: 9px; font-weight: 760; letter-spacing: 1.3px; text-transform: uppercase; }
.modal-card h2 { margin: 7px 0 0; color: #26370d; font-size: 24px; letter-spacing: -0.65px; }
.modal-card--small h2 { margin-top: 14px; }
.modal-card--small p { margin: 9px auto 0; max-width: 290px; color: #748367; font-size: 12px; line-height: 1.65; }
.icon-button { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; padding: 0; color: #7d8a6e; border: 1px solid #dfe7d5; border-radius: 8px; background: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.icon-button:hover { color: #3f620b; background: #f4f9ec; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modal-field { display: grid; gap: 7px; color: #536444; font-size: 11px; font-weight: 650; }
.modal-field input, .modal-field select { width: 100%; height: 41px; padding: 0 11px; color: #334329; border: 1px solid #d9e2cf; border-radius: 8px; outline: none; background: #fff; font-size: 12px; font-weight: 450; }
.modal-field input:focus, .modal-field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,124,15,0.1); }
.modal-field input::placeholder { color: #9ca88f; }
.checkbox-field { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: #637453; font-size: 11px; cursor: pointer; }
.checkbox-field input { width: 14px; height: 14px; accent-color: var(--primary); }
.modal-card__footer { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 25px; padding-top: 18px; border-top: 1px solid #e7eedf; }
.modal-button { min-height: 37px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; }
.modal-button--secondary { color: #6d7b5f; border-color: #dbe4d1; background: #fff; }
.modal-button--secondary:hover { background: #f6f9f1; }
.modal-button--primary { color: var(--primary-ink); background: var(--primary-fill); }
.modal-button--primary:hover { background: var(--primary-bright); }
.modal-button--danger { color: #fff; background: #d92d20; }
.modal-button--danger:hover { background: #b42318; }
.confirm-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto; color: #d92d20; border-radius: 50%; background: #fee4e2; font-size: 23px; font-weight: 800; }
.toast { position: fixed; z-index: 80; right: 24px; bottom: 24px; max-width: min(380px, calc(100vw - 32px)); padding: 13px 16px; color: #fff; border-radius: 10px; background: #26370d; box-shadow: 0 14px 36px rgba(38,55,13,0.24); font-size: 12px; line-height: 1.5; animation: toast-in 200ms ease-out; }
.toast--success { background: #3f620b; }
.toast--error { background: #b42318; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1050px) {
  .page-shell { grid-template-columns: minmax(340px, 0.82fr) minmax(470px, 1.18fr); }
  .brand-panel { padding: 38px 38px 32px; }
  .brand-panel__content { padding: 58px 0 42px; }
  .brand-panel h1 { font-size: 45px; }
  .feature-item { max-width: 380px; }
}

@media (max-width: 820px) {
  .page-shell { display: block; }
  .brand-panel { display: none; }
  .auth-panel { min-height: 100vh; padding: 36px 24px; }
  .mobile-brand { position: absolute; top: 28px; left: 28px; display: flex; align-items: center; gap: 10px; color: #26370d; font-size: 18px; font-weight: 720; letter-spacing: -0.4px; }
  .mobile-brand .brand__mark { width: 34px; height: 34px; color: var(--primary-ink); border: 0; border-radius: 10px; background: linear-gradient(145deg, var(--primary-bright), var(--primary-fill)); }
  .mobile-brand .brand__mark svg { width: 20px; height: 20px; }
  .auth-card { max-width: 410px; padding-top: 62px; }
  .is-dashboard .auth-panel { padding: 0 0 32px; }
  .is-dashboard .mobile-brand { display: none; }
  .device-header { align-items: flex-start; padding: 17px 20px; }
  .device-header__logo { width: 40px; height: 40px; }
  .device-header__actions { gap: 7px; }
  .header-button { min-height: 35px; padding: 0 11px; font-size: 10px; }
  .session-strip { padding-inline: 20px; }
  .device-workspace { padding-inline: 14px; }
  .bulk-bar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .bulk-bar__actions { width: 100%; flex-wrap: wrap; }
  .table-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .search-box, .search-box input { width: 100%; }
  .table-footer { align-items: flex-start; flex-direction: column; }
  .pagination { align-self: flex-end; }
}

@media (max-width: 600px) {
  .auth-panel { align-items: start; padding: 26px 20px 36px; }
  .mobile-brand { position: static; margin-bottom: 48px; }
  .auth-card { padding-top: 0; }
  .auth-card__header { margin-bottom: 26px; }
  .auth-card h2 { font-size: 31px; }
  .device-header { display: block; padding: 15px 16px; }
  .device-header__brand { gap: 10px; }
  .device-header h1 { font-size: 17px; letter-spacing: 0.35px; }
  .device-header p { display: none; }
  .device-header__actions { margin-top: 13px; }
  .header-button { flex: 1; }
  .session-strip { flex-wrap: wrap; padding-inline: 16px; }
  .session-strip__user { width: 100%; margin-left: 14px; }
  .device-workspace { padding: 12px 9px 0; }
  .bulk-bar { padding: 10px; }
  .bulk-button { flex: 1; min-width: 100px; padding-inline: 7px; font-size: 9px; }
  .table-toolbar { padding: 11px; }
  .entries-control { align-self: flex-end; }
  .table-footer { padding: 11px; }
  .modal-backdrop { padding: 12px; }
  .modal-card { padding: 20px; border-radius: 14px; }
  .modal-grid { grid-template-columns: 1fr; gap: 12px; }
  .modal-card__footer { flex-wrap: wrap; }
  .modal-button { flex: 1; }
  .toast { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
