:root {
  color-scheme: light;
  --bg: #eef3f8;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --ink: #172033;
  --muted: #657286;
  --line: #dce3ec;
  --line-soft: #edf1f6;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: #e6f7f2;
  --danger: #b42318;
  --idle: #d9f2e7;
  --busy: #fee8aa;
  --failed: #fee4e2;
  --pending: #eaf0ff;
  --locked: #fff1f3;
  --shadow: 0 14px 38px rgba(20, 32, 48, 0.08);
  --shadow-soft: 0 8px 24px rgba(20, 32, 48, 0.06);
}

body.skin-crayon {
  --bg: #fff4d7;
  --panel: #fffef8;
  --panel-soft: #fff8df;
  --ink: #202236;
  --muted: #635f69;
  --line: #25283d;
  --line-soft: #e8dcb8;
  --accent: #e23d3d;
  --accent-strong: #b9272e;
  --accent-soft: #ffe6d7;
  --idle: #c7f0d8;
  --busy: #ffe377;
  --failed: #ffd6d3;
  --pending: #dcebff;
  --locked: #ffdce8;
  --shadow: 0 12px 0 rgba(32, 34, 54, 0.1);
  --shadow-soft: 0 7px 0 rgba(32, 34, 54, 0.08);
  background:
    linear-gradient(90deg, rgba(226, 61, 61, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(25, 99, 208, 0.05) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

body.skin-crayon .sidebar,
body.skin-crayon .panel,
body.skin-crayon .summary-card,
body.skin-crayon .gpu-card {
  border-width: 2px;
}

body.skin-crayon .sidebar,
body.skin-crayon .panel,
body.skin-crayon .summary-card,
body.skin-crayon .gpu-card,
body.skin-crayon .side-status {
  box-shadow: var(--shadow-soft);
}

body.skin-crayon .side-brand strong {
  display: inline-flex;
  width: fit-content;
  padding: 3px 9px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #ffde59;
  color: var(--ink);
  transform: rotate(-1deg);
}

body.skin-crayon .side-brand span {
  color: #1963d0;
  font-weight: 800;
}

body.skin-crayon .side-nav a.active,
body.skin-crayon .side-nav a:hover,
body.skin-crayon .filter-button.active,
body.skin-crayon .chip-button:hover {
  outline: 2px solid var(--ink);
}

body.skin-crayon button,
body.skin-crayon .button-link,
body.skin-crayon .nav-action {
  border-width: 2px;
  box-shadow: 0 3px 0 rgba(32, 34, 54, 0.18);
}

body.skin-crayon .topbar {
  border-bottom: 2px solid var(--line);
  background: rgba(255, 254, 248, 0.94);
}

body.skin-crayon .gpu-card.idle {
  border-left-color: #29a86b;
}

body.skin-crayon .gpu-card.busy {
  border-left-color: #f6c600;
}

body.skin-crayon .gpu-card.locked {
  border-left-color: #e23d7a;
  background: #fff4fa;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 25px;
  letter-spacing: 0;
  line-height: 1.08;
}

h2 {
  font-size: 15px;
  letter-spacing: 0;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

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

.content-shell {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  height: 100vh;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 10px 0 28px rgba(20, 32, 48, 0.04);
}

.side-brand {
  display: grid;
  gap: 4px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.side-brand strong {
  color: var(--accent-strong);
  font-size: 28px;
  line-height: 1;
}

.side-brand span {
  color: var(--muted);
  font-size: 13px;
}

.side-nav {
  display: grid;
  align-content: start;
  gap: 6px;
}

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 600;
}

.side-nav a:hover,
.side-nav a.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.side-status {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-soft);
}

.side-status span,
.side-status small {
  color: var(--muted);
  font-size: 12px;
}

.side-status strong {
  font-size: 16px;
}

.side-status.online strong {
  color: #067647;
}

.side-status.stale strong {
  color: #93370d;
}

.side-status.offline strong {
  color: #b42318;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  border-bottom: 1px solid rgba(220, 227, 236, 0.82);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 24px rgba(20, 32, 48, 0.06);
}

.topbar-title {
  display: grid;
  gap: 5px;
}

.topbar p,
.panel-head p,
.panel-head span,
.muted {
  color: var(--muted);
}

nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-action {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-action:hover {
  background: var(--accent-strong);
  color: #fff;
}

.agent-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.agent-pill.online {
  border-color: #a6d6c8;
  background: #ecfdf3;
  color: #067647;
}

.agent-pill.stale {
  border-color: #fedf89;
  background: #fffaeb;
  color: #93370d;
}

.agent-pill.offline {
  border-color: #fecdca;
  background: #fef3f2;
  color: #b42318;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 22px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.span-2 {
  grid-column: span 2;
}

.panel,
.summary-grid {
  scroll-margin-top: 92px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.summary-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 116px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}

.summary-card:nth-child(2)::before {
  background: #2563eb;
}

.summary-card:nth-child(3)::before {
  background: #7c3aed;
}

.summary-card:nth-child(4)::before {
  background: #d97706;
}

.summary-card span,
.summary-card small {
  color: var(--muted);
  font-size: 13px;
}

.summary-card strong {
  font-size: 30px;
  line-height: 1;
}

.summary-card.attention {
  border-color: #fedf89;
  background: #fffaeb;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-head h2 {
  font-weight: 700;
}

.panel-head p {
  margin-top: 4px;
  font-size: 13px;
}

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

.gpu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gpu-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 32, 48, 0.05);
}

.gpu-card.idle {
  border-left: 4px solid #12b76a;
}

.gpu-card.busy {
  border-left: 4px solid #f59e0b;
}

.gpu-card.locked {
  border-left: 4px solid #c01048;
  background: linear-gradient(180deg, #fff 0%, #fff7f9 100%);
}

.gpu-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.gpu-title strong {
  font-size: 20px;
}

.gpu-title span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
}

.gpu-card.idle .gpu-title span {
  background: #ecfdf3;
  color: #067647;
}

.gpu-card.busy .gpu-title span {
  background: #fffaeb;
  color: #93370d;
}

.gpu-card.locked .gpu-title span {
  background: var(--locked);
  color: #a11043;
}

.gpu-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.gpu-metrics div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--panel-soft);
}

.gpu-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.gpu-metrics strong {
  font-size: 17px;
}

.gpu-card p,
.gpu-card li,
.process-list {
  font-size: 13px;
  line-height: 1.45;
}

.gpu-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.gpu-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.gpu-reasons span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
}

.gpu-booking-info {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-soft);
}

.gpu-booking-info div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.gpu-booking-info span {
  color: var(--muted);
  font-size: 12px;
}

.gpu-booking-info strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-list {
  margin-top: 10px;
  color: var(--muted);
}

.process-list summary {
  cursor: pointer;
}

.meter {
  height: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #e5eaf1;
  border-radius: 999px;
}

.meter i {
  display: block;
  height: 100%;
  background: var(--accent);
}

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

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-button,
.filter-button {
  width: auto;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.chip-button {
  padding: 7px 11px;
  font-size: 13px;
}

.chip-button:hover,
.filter-button:hover,
.filter-button.active {
  border-color: #99c5bc;
  background: #ecfdf3;
  color: var(--accent-strong);
}

.booking-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #bdebd5;
  border-radius: 6px;
  background: #f2fbf6;
  color: #067647;
  font-size: 13px;
}

.booking-preview strong {
  font-size: 14px;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

input,
select,
textarea,
button {
  width: 100%;
  font: inherit;
}

input,
select,
textarea {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #5fb3a7;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13);
  outline: 0;
}

button {
  border: 0;
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  background: var(--accent-strong);
}

button.ghost {
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid var(--line);
}

button.danger {
  min-width: 64px;
  padding: 6px 10px;
  background: var(--danger);
}

.button-link {
  font-size: 14px;
  font-weight: 600;
}

.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-soft);
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 11px;
  border-color: transparent;
  font-size: 13px;
}

.filter-button span {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #edf2f7;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 16px;
}

.stats-month {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-soft);
}

.stats-month:first-child {
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.stats-month-head,
.stats-row {
  display: grid;
  align-items: center;
  gap: 12px;
}

.stats-month-head {
  grid-template-columns: minmax(120px, 1fr) auto;
}

.stats-month-head span,
.stats-value {
  color: var(--muted);
  font-size: 13px;
}

.stats-bars {
  display: grid;
  gap: 8px;
}

.stats-row {
  grid-template-columns: minmax(160px, 220px) minmax(140px, 1fr) 72px;
}

.stats-user {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-bar {
  height: 10px;
  overflow: hidden;
  background: #e5eaf1;
  border-radius: 999px;
}

.stats-bar i {
  display: block;
  height: 100%;
  min-width: 2px;
  background: var(--accent);
}

.stats-value {
  text-align: right;
}

.lock-admin-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.lock-reason-cell {
  max-width: 280px;
  white-space: normal;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.purpose-cell {
  max-width: 280px;
  white-space: normal;
}

th {
  background: var(--panel-soft);
  color: var(--muted);
  font-weight: 600;
}

tbody tr:hover {
  background: #fbfcfe;
}

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

.compact th,
.compact td {
  padding-top: 8px;
  padding-bottom: 8px;
}

.empty {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 13px;
  background: #edf2f7;
  color: #344054;
}

.status.pending {
  background: var(--pending);
  color: #254a91;
}

.status.synced {
  background: var(--idle);
  color: #067647;
}

.status.ok {
  background: var(--idle);
  color: #067647;
}

.status.failed {
  background: var(--failed);
  color: #b42318;
}

.status.sms-sent {
  background: var(--idle);
  color: #067647;
}

.status.sms-failed {
  background: var(--failed);
  color: #b42318;
}

.status.sms-skipped,
.status.sms-off {
  background: #edf2f7;
  color: #667085;
}

.status.delete_requested {
  background: #fef0c7;
  color: #93370d;
}

.status.lock-active {
  background: var(--locked);
  color: #a11043;
}

.status.lock-expired,
.status.lock-unlocked {
  background: #edf2f7;
  color: #667085;
}

.status.lock-invalid {
  background: var(--failed);
  color: #b42318;
}

.block {
  display: block;
  margin-top: 4px;
  white-space: normal;
}

.phone-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto 72px;
  gap: 8px;
  align-items: center;
}

.rules-form {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) 72px;
  gap: 8px;
  align-items: center;
}

.checkline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.checkline input {
  width: auto;
}

.checkline span {
  margin: 0;
}

.sms-hint {
  margin-top: 10px;
  font-size: 13px;
}

.notice-config {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-soft);
}

.notice-config strong {
  display: block;
  margin-bottom: 4px;
}

.notice-config p {
  margin: 0;
}

.alert-list {
  display: grid;
  gap: 12px;
}

.alert-item {
  display: grid;
  gap: 10px;
  padding: 15px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-soft);
}

.alert-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.alert-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.alert-severity,
.alert-notice {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.alert-heading strong {
  min-width: 0;
  font-size: 16px;
  line-height: 1.35;
}

.alert-notice {
  background: #edf2f7;
  color: #667085;
}

.alert-notice.sms-sent {
  background: var(--idle);
  color: #067647;
}

.alert-notice.sms-failed {
  background: var(--failed);
  color: #b42318;
}

.alert-message {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.alert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
}

.alert-notice-detail {
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(180, 35, 24, 0.08);
  color: #9f1f16;
  font-size: 13px;
  line-height: 1.5;
}

.alert-item.critical {
  border-color: #f4b0a9;
  background: #fff4f2;
}

.alert-item.critical .alert-severity {
  background: var(--failed);
  color: #b42318;
}

.alert-item.warning {
  border-color: #f7d68f;
  background: #fff9e8;
}

.alert-item.warning .alert-severity {
  background: var(--busy);
  color: #7a4600;
}

.event-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  margin: 0;
  padding-left: 0;
  padding-right: 4px;
  overflow: auto;
  list-style: none;
  font-size: 14px;
}

.event-list li {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-soft);
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-width: 0;
  align-items: baseline;
}

.event-meta span {
  color: var(--muted);
  font-size: 12px;
}

.event-list p {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(420px, calc(100vw - 32px));
}

.login-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.login-panel h1 {
  margin-bottom: 22px;
}

.setup-warning {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #f79009;
  border-radius: 6px;
  background: #fffaeb;
  color: #93370d;
  font-size: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: min(680px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  z-index: 10;
}

.toast.good {
  background: var(--accent-strong);
}

.toast.bad {
  background: var(--danger);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    grid-template-rows: auto auto;
    gap: 12px;
    height: auto;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side-brand {
    padding-bottom: 10px;
  }

  .side-status {
    display: none;
  }

  .side-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .side-nav a {
    flex: 0 0 auto;
    min-height: 34px;
    white-space: nowrap;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .span-2 {
    grid-column: auto;
  }

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

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

@media (max-width: 620px) {
  h1 {
    font-size: 22px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-action {
    order: -1;
  }

  .agent-pill {
    max-width: 100%;
    white-space: normal;
  }

  .two,
  .gpu-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .panel,
  .summary-card,
  .gpu-card {
    padding: 14px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .head-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .summary-card {
    min-height: 98px;
  }

  .booking-preview {
    align-items: flex-start;
    flex-direction: column;
  }

  .notice-config {
    flex-direction: column;
  }

  .alert-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .alert-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .lock-admin-grid {
    grid-template-columns: 1fr;
  }

  .stats-month-head,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .stats-value {
    text-align: left;
  }

  .phone-form,
  .rules-form {
    grid-template-columns: 1fr;
  }

  .layout {
    padding: 12px;
  }
}
