:root {
  --bg: #09070f;
  --bg-soft: #120d1d;
  --bg-elevated: #171125;
  --panel: rgba(20, 14, 31, 0.92);
  --panel-strong: rgba(28, 19, 44, 0.96);
  --line: rgba(175, 138, 255, 0.18);
  --line-strong: rgba(185, 143, 255, 0.32);
  --text: #f5efff;
  --muted: #b7a8d8;
  --accent: #9f6fff;
  --accent-strong: #7b42f6;
  --accent-soft: rgba(159, 111, 255, 0.18);
  --ok: #59d68b;
  --warn: #ffc46b;
  --danger: #ff7c98;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

#seed-data {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(144, 86, 255, 0.24), transparent 28%),
    radial-gradient(circle at bottom right, rgba(78, 19, 163, 0.28), transparent 34%),
    linear-gradient(180deg, #05040a 0%, #0b0713 44%, #120a1e 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI Variable", "Segoe UI", "Yu Gothic UI", sans-serif;
}

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

.inline-link {
  color: #d9c9ff;
  text-decoration: none;
}

.inline-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.shell {
  display: grid;
  grid-template-columns: 252px 1fr;
  min-height: 100vh;
}

.shell-modern {
  background:
    linear-gradient(90deg, #25264a 0 252px, transparent 252px),
    linear-gradient(180deg, rgba(116, 47, 178, 0.18), transparent 120px),
    radial-gradient(circle at top right, rgba(182, 70, 255, 0.2), transparent 22%),
    linear-gradient(180deg, #2a2348 0%, #3a2360 42%, #60238b 100%);
}

.sidebar {
  padding: 24px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(7, 6, 12, 0.95), rgba(15, 10, 23, 0.94));
  backdrop-filter: blur(18px);
}

.sidebar-modern {
  background: linear-gradient(180deg, rgba(35, 38, 76, 0.98), rgba(33, 35, 68, 0.96));
  border-right-color: rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #ff72d8, #8b57ff);
  box-shadow: 0 10px 24px rgba(129, 62, 242, 0.28);
}

.brand h1,
.topbar h2,
.panel-head h3 {
  margin: 0;
}

.brand h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand p,
.eyebrow {
  margin: 4px 0 0;
  color: var(--muted);
}

.nav {
  display: grid;
  gap: 12px;
}

.nav-item {
  width: 100%;
  padding: 15px 16px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: 0.18s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.04);
}

.nav-item strong,
.nav-item span {
  display: block;
}

.nav-item strong {
  font-size: 15px;
}

.nav-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.nav-item.active {
  border-color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(90deg, #8e2dff 0%, #f00088 100%);
  box-shadow:
    inset 0 0 0 1px rgba(19, 13, 37, 0.8),
    0 8px 18px rgba(85, 20, 135, 0.18);
}

.nav-item.active span,
.nav-item.active strong {
  color: #ffffff;
}

.sidebar-card,
.panel,
.modal-card,
.login-card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(25, 17, 38, 0.94), rgba(14, 10, 22, 0.95));
  box-shadow: var(--shadow);
}

.sidebar-card {
  margin-top: 22px;
  padding: 18px 18px;
}

.sidebar-card h2 {
  margin: 0 0 12px;
  font-size: 15px;
}

.sidebar-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.main {
  padding: 26px;
}

.main-modern {
  padding: 0 26px 26px;
}

.topbar,
.panel-head,
.toolbar,
.pagination,
.modal-actions,
.topbar-actions {
  display: flex;
  align-items: center;
}

.topbar,
.panel-head,
.pagination {
  justify-content: space-between;
}

.topbar {
  gap: 16px;
  margin-bottom: 18px;
}

.topbar-modern {
  margin: 0 -26px 24px;
  padding: 14px 26px 14px;
  min-height: 58px;
  background: linear-gradient(90deg, rgba(60, 47, 110, 0.94), rgba(110, 39, 170, 0.94));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-actions,
.toolbar,
.modal-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-modern .ghost-button,
.topbar-modern .primary-button {
  height: 40px;
  border-radius: 13px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.stats-grid,
.content-grid,
.form-grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.compact-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
  gap: 14px;
}

.content-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.panel {
  padding: 20px;
  background: linear-gradient(180deg, rgba(37, 27, 66, 0.96), rgba(25, 18, 45, 0.98));
  border-color: rgba(255, 255, 255, 0.06);
}

.panel-table {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(55, 42, 95, 0.9), rgba(55, 39, 93, 0.9));
}

.panel-head {
  gap: 10px;
  margin-bottom: 14px;
}

.panel-head-spread {
  padding: 22px 22px 18px;
  margin-bottom: 0;
}

.panel-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.section-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pill.low {
  background: rgba(89, 214, 139, 0.12);
  color: #9ff0bf;
}

.pill.high {
  background: rgba(255, 124, 152, 0.12);
  color: #ffadc0;
}

.pill.neutral {
  background: var(--accent-soft);
  color: #dbc8ff;
}

.stat-card,
.alert-card,
.launch-card,
.log-card,
.event-card {
  border-radius: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
}

.stat-card-modern {
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-areas:
    "icon label"
    "value value";
  align-items: start;
  column-gap: 14px;
  row-gap: 14px;
  min-height: 116px;
  padding: 18px 20px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(58, 45, 102, 0.92), rgba(49, 36, 88, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stat-icon {
  grid-area: icon;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.stat-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tone-blue {
  background: linear-gradient(135deg, #1ca8ff, #306dff);
}

.tone-green {
  background: linear-gradient(135deg, #05d56d, #14ba54);
}

.tone-orange {
  background: linear-gradient(135deg, #ff9817, #ff5f2b);
}

.tone-pink {
  background: linear-gradient(135deg, #cf49ff, #ff4dbd);
}

.stat-copy {
  display: contents;
  min-width: 0;
}

.stat-copy span {
  grid-area: label;
  align-self: center;
  color: #d1c0f5;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
}

.stat-card strong {
  grid-area: value;
  display: block;
  margin-top: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-card span,
.stack small,
.info-list p {
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 12px;
}

.event-card,
.log-card {
  position: relative;
  overflow: hidden;
  border-left: 4px solid rgba(159, 111, 255, 0.95);
  background: linear-gradient(180deg, rgba(42, 31, 72, 0.94), rgba(33, 25, 57, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.16);
}

.event-card::after,
.log-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 42%);
}

.event-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.event-card-danger {
  border-left-color: #ff6c95;
}

.event-card-warn {
  border-left-color: #ff9856;
}

.event-card-success {
  border-left-color: #ff7fa6;
}

.event-card-accent {
  border-left-color: #9c6dff;
}

.event-card-neutral {
  border-left-color: #7f5cff;
}

.event-meta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d7c7ff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.event-card-danger .event-meta {
  background: rgba(255, 108, 149, 0.14);
  color: #ffb1c6;
}

.event-card-warn .event-meta {
  background: rgba(255, 152, 86, 0.14);
  color: #ffc499;
}

.event-card-success .event-meta {
  background: rgba(255, 127, 166, 0.12);
  color: #ffc0d7;
}

.event-card strong,
.log-card strong {
  display: block;
  margin-bottom: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.event-card p,
.log-card p {
  margin: 0;
  line-height: 1.65;
  color: #f2ebff;
  font-size: 14px;
}

#alerts-list .event-card,
#launch-list .event-card {
  min-height: 108px;
}

#launch-list .event-card p {
  color: #f7f1ff;
}

.toolbar {
  margin-bottom: 14px;
}

.toolbar-split {
  justify-content: space-between;
  padding: 0 22px 18px;
  margin-bottom: 0;
  gap: 14px;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}

.selection-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
}

.selection-bar .ghost-button {
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
}

.table-count {
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(18, 13, 30, 0.72);
  color: #cabbeb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.search-field {
  min-width: 320px;
  position: relative;
}

.search-field::before {
  content: "⌕";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8d80ae;
  font-size: 15px;
  pointer-events: none;
}

.search-field .text-input {
  padding-left: 38px;
}

.filter-select {
  width: auto;
  min-width: 0;
  max-width: none;
}

.text-input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.text-input:focus,
textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(159, 111, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.text-input {
  height: 42px;
  padding: 0 14px;
}

select.text-input,
option {
  background: #1a1327;
  color: var(--text);
}

select.text-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #ffffff 50%),
    linear-gradient(135deg, #ffffff 50%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08));
  background-position:
    calc(100% - 18px) 17px,
    calc(100% - 12px) 17px,
    calc(100% - 34px) 10px;
  background-size:
    5px 5px,
    5px 5px,
    1px 20px;
  background-repeat: no-repeat;
  border-color: rgba(255, 255, 255, 0.06);
  background-color: rgba(18, 13, 30, 0.9);
  font-size: 14px;
  width: fit-content;
  min-width: 158px;
}

select.text-input:hover {
  background-color: rgba(24, 17, 39, 0.96);
}

select.text-input:focus {
  background-color: rgba(44, 29, 74, 0.92);
  border-color: rgba(171, 131, 255, 0.34);
  box-shadow: 0 0 0 3px rgba(120, 74, 238, 0.14);
}

textarea {
  min-height: 240px;
  padding: 14px;
  resize: vertical;
  font: 13px/1.6 Consolas, monospace;
  background: #140f1f;
  color: #f7f2ff;
}

.primary-button,
.ghost-button {
  height: 44px;
  padding: 0 16px;
  border-radius: 15px;
  cursor: pointer;
  transition: 0.18s ease;
}

.primary-button {
  border: 1px solid rgba(196, 172, 255, 0.35);
  background: linear-gradient(180deg, #a970ff, #7337f2);
  color: #fff;
}

.primary-button-small {
  height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, #9f42ff, #ff1494);
}

.primary-button:hover {
  filter: brightness(1.06);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ghost-button:disabled,
.primary-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.actions-col {
  position: relative;
}

.actions-col .ghost-button {
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
}

.manage-license-button {
  min-width: 92px;
  justify-content: center;
}

.table-wrap {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.table-wrap-modern {
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
}

.table-wrap-modern table {
  min-width: 980px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}

.checkbox-col {
  width: 42px;
  text-align: center;
}

.row-selector,
.checkbox-col input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #c356ff;
  cursor: pointer;
}

.key-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(139, 82, 255, 0.18);
  color: #e8d7ff;
  font-family: Consolas, monospace;
  font-size: 13px;
  max-width: 100%;
  word-break: break-all;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill-active {
  background: rgba(34, 205, 112, 0.16);
  color: #87f0ba;
}

.status-pill-unused {
  background: rgba(163, 133, 255, 0.16);
  color: #d9c7ff;
}

.status-pill-danger {
  background: rgba(255, 86, 122, 0.16);
  color: #ff9db1;
}

.status-pill-warn {
  background: rgba(255, 176, 54, 0.16);
  color: #ffd18a;
}

.status-pill-muted {
  background: rgba(255, 255, 255, 0.08);
  color: #d0c4e6;
}

.muted-value {
  color: #8f83ac;
}

th {
  color: var(--muted);
  font-weight: 600;
  background: rgba(26, 21, 51, 0.72);
  letter-spacing: 0.04em;
  font-size: 11px;
}

tbody tr {
  transition: background 0.16s ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.028);
}

.table-action-button {
  height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 12px;
}

tr:last-child td {
  border-bottom: none;
}

.pagination,
.modal-actions {
  margin-top: 14px;
}

.modal-actions {
  padding: 0;
  margin-bottom: 0;
  list-style: none;
  justify-content: flex-end;
}

.modal-actions-split {
  justify-content: space-between;
  align-items: center;
}

.modal-actions-left,
.modal-actions-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.danger-button {
  border-color: rgba(255, 124, 152, 0.3);
  color: #ffafc0;
}

.pagination {
  justify-content: flex-end;
  gap: 10px;
}

.info-list {
  display: grid;
  gap: 14px;
}

.info-list strong {
  display: block;
  margin-bottom: 5px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-item {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  min-width: 0;
}

.detail-item strong {
  display: block;
  margin-bottom: 8px;
}

.detail-item p {
  margin: 0;
  color: var(--muted);
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.modal {
  width: min(720px, calc(100vw - 24px));
  border: none;
  padding: 0;
  background: transparent;
  color: var(--text);
  margin: auto;
  inset: 0;
  overflow: hidden;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.68);
}

.modal-card {
  padding: 20px;
  margin: 0;
  width: 100%;
  max-height: min(86vh, 920px);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(33, 23, 52, 0.98), rgba(17, 12, 27, 0.99));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-card.wide {
  width: min(880px, calc(100vw - 24px));
}

#result-modal {
  width: min(880px, calc(100vw - 24px));
}

#reseller-result-modal {
  width: min(880px, calc(100vw - 24px));
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 6px;
}

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

.form-grid label span {
  color: var(--muted);
  font-size: 13px;
}

.hint,
.result-meta {
  color: var(--muted);
}

.hint {
  margin-top: 12px;
  line-height: 1.6;
}

.maintenance-panel {
  margin-bottom: 20px;
}

.maintenance-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-tile {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.info-tile strong {
  display: block;
  margin-bottom: 8px;
}

.info-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.text-area-input {
  min-height: 92px;
  resize: vertical;
  padding: 14px 16px;
}

.result-meta {
  margin-bottom: 12px;
}

#result-keys {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 320px;
  max-height: 48vh;
  margin: 0;
  overflow: auto;
  resize: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#reseller-result-keys,
#reseller-result-credentials {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 320px;
  max-height: 48vh;
  margin: 0;
  overflow: auto;
  resize: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.login-body {
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at top center, rgba(159, 111, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #05040a, #11091c);
  background-size: 48px 48px, 48px 48px, auto, auto;
}

.login-shell {
  width: min(1040px, 100%);
  display: grid;
  gap: 28px;
}

.login-hero {
  text-align: center;
}

.login-kicker {
  margin: 0 0 12px;
  color: #ccb5ff;
  letter-spacing: 0.42em;
  font-size: 13px;
  text-transform: uppercase;
}

.login-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
}

.login-hero p,
.login-sub {
  color: var(--muted);
}

.login-card {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 26px;
}

.stack {
  gap: 14px;
}

.login-head {
  text-align: center;
  margin-bottom: 22px;
}

.login-head h2 {
  margin: 0;
  font-size: 42px;
}

.login-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-form label {
  display: grid;
  gap: 8px;
}

.login-form label span {
  color: var(--text);
  font-weight: 700;
}

.login-input {
  height: 58px;
  border-radius: 16px;
  font-size: 16px;
}

.login-submit {
  height: 56px;
  border: 1px solid rgba(196, 172, 255, 0.35);
  border-radius: 16px;
  background: linear-gradient(180deg, #a970ff, #7337f2);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
}

.login-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.login-note strong {
  display: block;
  margin-bottom: 6px;
}

.login-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 1120px) {
  .shell,
  .content-grid,
  .stats-grid,
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .compact-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .main,
  .sidebar {
    padding: 18px;
  }

  .toolbar,
  .topbar-actions,
  .modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-split,
  .panel-head-spread,
  .panel-head-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-left {
    flex-wrap: wrap;
  }

  .table-count {
    margin-left: 0;
  }

  .search-field {
    min-width: 0;
  }

  .selection-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-actions-left,
  .modal-actions-right {
    width: 100%;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .manage-license-button {
    width: 100%;
  }
}
