:root {
  --bg: #050a12;
  --panel: rgba(8, 18, 32, 0.78);
  --panel-strong: rgba(10, 24, 42, 0.92);
  --panel-soft: rgba(18, 37, 58, 0.62);
  --ink: #f4f8ff;
  --muted: #8fa4ba;
  --line: rgba(96, 212, 255, 0.16);
  --line-strong: rgba(96, 212, 255, 0.34);
  --cyan: #35d8ff;
  --cyan-soft: rgba(53, 216, 255, 0.14);
  --gold: #d8aa4f;
  --gold-soft: rgba(216, 170, 79, 0.14);
  --green: #49d88f;
  --green-soft: rgba(73, 216, 143, 0.14);
  --amber: #f3c35b;
  --amber-soft: rgba(243, 195, 91, 0.16);
  --red: #ff6b64;
  --red-soft: rgba(255, 107, 100, 0.14);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 0%, rgba(53, 216, 255, 0.18), transparent 32%),
    radial-gradient(circle at 14% 12%, rgba(216, 170, 79, 0.12), transparent 24%),
    linear-gradient(180deg, #050a12 0%, #08111f 46%, #05070c 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(53, 216, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 216, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 78%);
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

[hidden] {
  display: none !important;
}

.app-shell {
  width: min(1240px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 0 46px;
  position: relative;
  z-index: 1;
}

.command-surface {
  isolation: isolate;
}

.topbar {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  min-height: 176px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(8, 18, 32, 0.92), rgba(13, 34, 58, 0.74)),
    var(--panel);
  border: 1px solid rgba(96, 212, 255, 0.2);
  border-radius: 10px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 10%, rgba(53, 216, 255, 0.26), transparent 30%),
    linear-gradient(90deg, transparent 0%, rgba(216, 170, 79, 0.08) 52%, transparent 100%);
}

.topbar::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 22px;
  width: min(360px, 46%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--gold));
  box-shadow: 0 0 26px rgba(53, 216, 255, 0.58);
}

.brand-block,
.topbar-actions {
  position: relative;
  z-index: 1;
}

.brand-block {
  max-width: 780px;
}

.eyebrow,
.section-label {
  display: block;
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  text-shadow: 0 0 30px rgba(53, 216, 255, 0.18);
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.25;
}

h3 {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.25;
}

.brand-block p,
.drawer-head p,
.slot-note,
.slot-internal-note {
  color: var(--muted);
  line-height: 1.6;
}

.topbar-actions,
.form-actions,
.section-head,
.calendar-head,
.drawer-head,
.sheet-dialog-head,
.slot-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.topbar-actions {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.save-status {
  min-width: 92px;
  padding: 7px 12px;
  color: var(--muted);
  background: rgba(5, 10, 18, 0.64);
  border: 1px solid rgba(96, 212, 255, 0.18);
  border-radius: 999px;
  font-size: 13px;
  text-align: center;
}

.save-status[data-tone="success"] {
  color: var(--green);
  background: var(--green-soft);
  border-color: rgba(73, 216, 143, 0.28);
}

.save-status[data-tone="danger"] {
  color: var(--red);
  background: var(--red-soft);
  border-color: rgba(255, 107, 100, 0.28);
}

.primary-button,
.ghost-button,
.small-button,
.segment-button,
.icon-button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 760;
}

.primary-button {
  padding: 0 16px;
  color: #031019;
  background: linear-gradient(135deg, var(--cyan), #a7efff);
  box-shadow: 0 0 26px rgba(53, 216, 255, 0.26);
}

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

.ghost-button,
.small-button {
  padding: 0 13px;
  color: var(--ink);
  background: rgba(5, 10, 18, 0.62);
  border-color: rgba(96, 212, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ghost-button:hover,
.small-button:hover {
  border-color: var(--line-strong);
  box-shadow: 0 0 22px rgba(53, 216, 255, 0.12);
}

.danger-button {
  color: var(--red);
}

.icon-button {
  width: 38px;
  padding: 0;
  color: var(--ink);
  background: rgba(5, 10, 18, 0.72);
  border-color: rgba(96, 212, 255, 0.18);
  font-size: 24px;
  line-height: 1;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  padding: 3px;
  background: rgba(5, 10, 18, 0.78);
  border: 1px solid rgba(96, 212, 255, 0.16);
  border-radius: 8px;
}

.segment-button {
  min-height: 36px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
}

.segment-button.active {
  color: #031019;
  background: linear-gradient(135deg, var(--cyan), #9beeff);
  box-shadow: 0 0 18px rgba(53, 216, 255, 0.24);
}

.filter-field,
label {
  display: grid;
  gap: 7px;
  color: #c7d7e7;
  font-size: 14px;
  font-weight: 680;
}

.filter-field {
  min-width: 230px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(5, 10, 18, 0.78);
  border: 1px solid rgba(96, 212, 255, 0.18);
  border-radius: 7px;
  outline: none;
}

select option {
  color: #0b1728;
}

textarea {
  min-height: 88px;
  padding-top: 10px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 216, 255, 0.14), 0 0 22px rgba(53, 216, 255, 0.14);
}

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

.summary-card {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(10, 24, 42, 0.88), rgba(7, 14, 26, 0.78));
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.summary-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 54px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan));
  box-shadow: 0 0 26px rgba(53, 216, 255, 0.34);
}

.summary-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.summary-card strong {
  color: var(--ink);
  font-size: 36px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(53, 216, 255, 0.14);
}

.summary-card.warning strong {
  color: var(--amber);
}

.summary-card.xiaobai {
  border-color: rgba(216, 170, 79, 0.28);
  background:
    linear-gradient(145deg, rgba(33, 27, 13, 0.76), rgba(8, 18, 32, 0.82));
}

.summary-card.xiaobai::after {
  background: linear-gradient(90deg, transparent, var(--gold));
  box-shadow: 0 0 26px rgba(216, 170, 79, 0.34);
}

.summary-card.xiaobai strong {
  color: var(--gold);
}

.summary-card.muted strong {
  color: #91a5b9;
}

.calendar-shell,
.admin-panel,
.session-form,
.sheet-dialog {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.calendar-shell {
  position: relative;
  overflow: hidden;
}

.calendar-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(53, 216, 255, 0.09), transparent 24%, transparent 78%, rgba(216, 170, 79, 0.06)),
    radial-gradient(circle at 22% 0%, rgba(53, 216, 255, 0.12), transparent 28%);
}

.calendar-head {
  position: relative;
  z-index: 1;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.weekday-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: rgba(5, 10, 18, 0.82);
  border-bottom: 1px solid var(--line);
}

.weekday-row span {
  padding: 10px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.calendar-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: rgba(96, 212, 255, 0.12);
}

.day-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 136px;
  padding: 10px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(10, 24, 42, 0.9), rgba(5, 10, 18, 0.84));
  border: 0;
  border-radius: 0;
  text-align: left;
}

.day-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.025);
}

.day-cell:hover,
.day-cell.selected {
  z-index: 1;
  outline: 1px solid rgba(53, 216, 255, 0.72);
  outline-offset: -1px;
  box-shadow: inset 0 0 0 1px rgba(53, 216, 255, 0.22), 0 0 26px rgba(53, 216, 255, 0.16);
}

.day-cell.today .day-head strong {
  color: #031019;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(53, 216, 255, 0.36);
}

.day-cell.ghost-day {
  min-height: 136px;
  background: rgba(5, 10, 18, 0.42);
  pointer-events: none;
}

.day-cell.has-live {
  background:
    linear-gradient(145deg, rgba(13, 33, 58, 0.96), rgba(5, 10, 18, 0.86));
}

.day-cell.has-xiaobai-live::before {
  border-color: rgba(216, 170, 79, 0.74);
  box-shadow: inset 0 0 0 1px rgba(216, 170, 79, 0.42), inset 0 0 24px rgba(216, 170, 79, 0.10);
}

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

.day-head strong {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #dbe9f6;
  font-size: 14px;
}

.day-badges,
.slot-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.tag,
.count-badge,
.pending-badge,
.xiaobai-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 780;
  white-space: nowrap;
}

.count-badge {
  color: #b8f3ff;
  background: var(--cyan-soft);
  border: 1px solid rgba(53, 216, 255, 0.2);
}

.pending-badge,
.status-pending {
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid rgba(243, 195, 91, 0.2);
}

.xiaobai-badge {
  color: #f2d68c;
  background: rgba(216, 170, 79, 0.10);
  border: 1px solid rgba(216, 170, 79, 0.28);
}

.anchor-tag,
.status-assigned {
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(73, 216, 143, 0.2);
}

.status-cancelled {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.day-live-list {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.day-live-item,
.day-live-more {
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 5px 7px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-live-item.status-assigned {
  color: #dfffee;
  background: rgba(73, 216, 143, 0.12);
  border-left: 2px solid var(--green);
}

.day-live-item.status-pending {
  color: #ffe0a3;
  background: rgba(243, 195, 91, 0.13);
  border-left: 2px solid var(--amber);
}

.day-live-item.status-cancelled {
  color: #8fa4ba;
  background: rgba(148, 163, 184, 0.10);
  border-left: 2px solid rgba(148, 163, 184, 0.4);
  text-decoration: line-through;
}

.day-live-more {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.admin-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  margin-top: 16px;
  padding: 18px;
}

.admin-section {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.anchor-form,
.password-form,
.login-form {
  display: grid;
  gap: 12px;
}

.anchor-list {
  display: grid;
  gap: 8px;
}

.anchor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 11px;
  background: rgba(5, 10, 18, 0.58);
  border: 1px solid rgba(96, 212, 255, 0.14);
  border-radius: 8px;
}

.anchor-row.disabled {
  opacity: 0.66;
}

.anchor-row > div:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.anchor-row strong,
.anchor-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.anchor-row > div:last-child {
  display: flex;
  flex-shrink: 0;
  gap: 7px;
}

.drawer,
.sheet-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.drawer-backdrop,
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(580px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 18px;
  background:
    radial-gradient(circle at 80% 0%, rgba(53, 216, 255, 0.16), transparent 28%),
    #07111f;
  border-left: 1px solid rgba(96, 212, 255, 0.2);
  box-shadow: -22px 0 70px rgba(0, 0, 0, 0.42);
}

.drawer-head {
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.drawer-head p {
  margin: 8px 0 0;
  font-size: 14px;
}

.day-slots {
  display: grid;
  gap: 8px;
}

.slot-card {
  display: grid;
  grid-template-columns: minmax(104px, 0.7fr) minmax(0, 1.3fr) auto;
  min-height: 58px;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  background:
    linear-gradient(145deg, rgba(10, 24, 42, 0.9), rgba(5, 10, 18, 0.78));
  border: 1px solid var(--line);
  border-radius: 9px;
}

.slot-card.status-cancelled {
  background: rgba(148, 163, 184, 0.08);
  opacity: 0.78;
}

.slot-card.slot-empty {
  background: rgba(5, 10, 18, 0.36);
  border-style: dashed;
}

.slot-time {
  color: var(--cyan);
  font-size: 15px;
  font-weight: 830;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(53, 216, 255, 0.22);
}

.slot-body {
  min-width: 0;
}

.slot-title-row {
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}

.slot-title-row h3 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-card.slot-empty .slot-body h3 {
  color: var(--muted);
  font-weight: 760;
}

.slot-tags {
  justify-content: flex-start;
  min-width: 0;
  gap: 5px;
}

.slot-note,
.slot-internal-note {
  margin: 8px 0 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.slot-internal-note {
  color: #d6bd80;
}

.slot-actions {
  display: flex;
  justify-content: flex-end;
}

.session-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 15px;
}

.form-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

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

.checkbox-field {
  align-content: end;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  min-height: 69px;
  padding: 11px;
  color: #f2d68c;
  background: rgba(216, 170, 79, 0.10);
  border: 1px solid rgba(216, 170, 79, 0.24);
  border-radius: 8px;
}

.checkbox-field input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
}

.sheet-modal {
  display: grid;
  place-items: center;
  padding: 20px;
}

.sheet-dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 20px;
}

.sheet-dialog-head {
  align-items: flex-start;
  margin-bottom: 14px;
}

.mobile-bottom-bar {
  display: none;
}

@media (max-width: 900px) {
  .app-shell {
    width: min(100% - 20px, 720px);
  }

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

  .topbar {
    min-height: 0;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

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

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

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

  .calendar-shell {
    overflow-x: auto;
  }

  .weekday-row,
  .calendar-grid {
    min-width: 680px;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: calc(100% - 16px);
    padding-top: 6px;
  }

  .topbar,
  .calendar-head,
  .admin-panel {
    padding: 14px;
  }

  .topbar {
    min-height: 0;
    gap: 10px;
    padding: 12px;
  }

  .topbar::after {
    right: 12px;
    bottom: 10px;
    width: min(220px, 48%);
  }

  .topbar-actions {
    gap: 8px;
  }

  .save-status,
  .topbar-actions .ghost-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .eyebrow {
    margin-bottom: 5px;
    font-size: 10px;
  }

  h1 {
    margin-bottom: 6px;
    font-size: 23px;
    line-height: 1.12;
  }

  .brand-block p {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.45;
  }

  .toolbar {
    gap: 10px;
    margin: 10px 0;
    padding: 10px;
  }

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

  .segment-button {
    min-height: 32px;
    padding: 0 10px;
  }

  .filter-field {
    gap: 5px;
    font-size: 12px;
  }

  .filter-field select {
    min-height: 36px;
  }

  .summary-grid {
    gap: 8px;
    margin-bottom: 10px;
  }

  .summary-card {
    min-height: 64px;
    padding: 10px;
  }

  .summary-card::after {
    right: 10px;
    bottom: 10px;
    width: 40px;
  }

  .summary-card span {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .summary-card strong {
    font-size: 24px;
  }

  .day-cell {
    min-height: 92px;
    padding: 6px;
  }

  .day-cell.ghost-day {
    min-height: 92px;
  }

  .day-badges {
    max-width: none;
  }

  .weekday-row,
  .calendar-grid {
    min-width: 0;
    width: 100%;
  }

  .weekday-row span {
    padding: 8px 2px;
    font-size: 11px;
  }

  .day-head {
    align-items: center;
    flex-direction: row;
    gap: 4px;
  }

  .day-head strong {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }

  .tag,
  .count-badge,
  .pending-badge,
  .xiaobai-badge {
    min-height: 17px;
    padding: 1px 4px;
    font-size: 9px;
  }

  .day-live-item,
  .day-live-more {
    padding: 3px 4px;
    font-size: 9px;
  }

  .day-live-item {
    font-size: 0;
    white-space: nowrap;
  }

  .day-live-item::after {
    content: attr(data-mobile-label);
    display: block;
    color: currentColor;
    font-size: 9px;
  }

  .drawer-panel {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(88vh, 780px);
    border-radius: 12px 12px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(96, 212, 255, 0.24);
  }

  .slot-card {
    grid-template-columns: minmax(78px, 0.72fr) minmax(0, 1.28fr) auto;
    min-height: 50px;
    gap: 6px;
    padding: 8px;
  }

  .slot-time {
    font-size: 12px;
  }

  .slot-title-row {
    flex-direction: row;
    align-items: center;
    gap: 5px;
  }

  .slot-title-row h3,
  .slot-card.slot-empty .slot-body h3 {
    font-size: 13px;
  }

  .slot-tags {
    gap: 3px;
  }

  .slot-actions {
    justify-content: flex-end;
  }

  .slot-actions button {
    width: auto;
    min-height: 32px;
    padding: 0 9px;
    font-size: 12px;
  }

  .form-actions button {
    width: 100%;
  }

  .form-head,
  .form-actions {
    flex-direction: column;
  }

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

  .anchor-row {
    align-items: stretch;
    flex-direction: column;
  }

  .anchor-row > div:last-child {
    justify-content: flex-start;
  }

  .mobile-bottom-bar {
    position: static;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 12px;
    padding: 7px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
  }

  .mobile-bottom-bar button {
    min-height: 42px;
    color: var(--ink);
    background: rgba(5, 10, 18, 0.68);
    border: 1px solid rgba(96, 212, 255, 0.16);
    border-radius: 8px;
    font-weight: 780;
  }

  .mobile-bottom-bar button.active {
    color: #031019;
    background: linear-gradient(135deg, var(--cyan), #9beeff);
  }
}
