:root {
  color-scheme: light;
  --bg: #f3fbf7;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-2: rgba(248, 255, 252, 0.94);
  --line: rgba(34, 153, 128, 0.18);
  --text: #0d1b17;
  --muted: #60756d;
  --mint: #1fc79f;
  --gold: #f5b84b;
  --pink: #f36f9f;
  --ink: #08110f;
  --danger: #ff7068;
  --ok: #1daa67;
  --topbar: rgba(247, 255, 251, 0.88);
  --input-bg: rgba(255, 255, 255, 0.78);
  --row-bg: rgba(255, 255, 255, 0.58);
  --ghost-bg: rgba(255, 255, 255, 0.62);
  --hero-base: rgba(255, 255, 255, 0.82);
  --shadow: 0 20px 60px rgba(12, 43, 35, 0.12);
}

body[data-theme="skyline"] {
  --bg: #f4f8ff;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-2: rgba(247, 251, 255, 0.94);
  --line: rgba(75, 138, 255, 0.18);
  --text: #101928;
  --muted: #637083;
  --mint: #2f7df6;
  --gold: #38c6d9;
  --pink: #7c6ff6;
  --topbar: rgba(247, 251, 255, 0.9);
  --hero-base: rgba(255, 255, 255, 0.84);
  --shadow: 0 20px 60px rgba(25, 72, 138, 0.14);
}

body[data-theme="peach"] {
  --bg: #fff8f4;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-2: rgba(255, 251, 248, 0.94);
  --line: rgba(231, 126, 91, 0.2);
  --text: #241812;
  --muted: #7e675c;
  --mint: #f07f5f;
  --gold: #f4bd55;
  --pink: #e95f96;
  --topbar: rgba(255, 250, 246, 0.9);
  --hero-base: rgba(255, 255, 255, 0.84);
  --shadow: 0 20px 60px rgba(136, 72, 38, 0.13);
}

body[data-theme="violet"] {
  --bg: #f8f6ff;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-2: rgba(251, 249, 255, 0.94);
  --line: rgba(133, 99, 255, 0.2);
  --text: #171326;
  --muted: #6c6480;
  --mint: #7b61ff;
  --gold: #47c6f3;
  --pink: #f067b3;
  --topbar: rgba(250, 248, 255, 0.9);
  --hero-base: rgba(255, 255, 255, 0.84);
  --shadow: 0 20px 60px rgba(62, 39, 132, 0.14);
}

body[data-theme="dark-web3"] {
  color-scheme: dark;
  --bg: #07100d;
  --panel: rgba(12, 22, 20, 0.92);
  --panel-2: rgba(18, 29, 26, 0.86);
  --line: rgba(151, 245, 220, 0.2);
  --text: #eefdf8;
  --muted: #9eb5ad;
  --mint: #48f2c2;
  --gold: #ffd166;
  --pink: #ff6b9e;
  --ink: #08110f;
  --danger: #ff7068;
  --ok: #73f59a;
  --topbar: rgba(7, 16, 13, 0.88);
  --input-bg: rgba(4, 10, 8, 0.72);
  --row-bg: rgba(4, 10, 8, 0.58);
  --ghost-bg: rgba(255, 255, 255, 0.04);
  --hero-base: rgba(12, 22, 20, 0.8);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--mint) 10%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--gold) 10%, transparent) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--mint) 18%, transparent), transparent 30%),
    radial-gradient(circle at 82% 4%, color-mix(in srgb, var(--pink) 12%, transparent), transparent 28%),
    var(--bg);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--topbar);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 238px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(72, 242, 194, 0.55);
  background: linear-gradient(135deg, var(--mint), var(--gold));
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 0 28px rgba(72, 242, 194, 0.28);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
}

.brand small,
.muted {
  color: var(--muted);
}

.main-nav,
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav a {
  padding: 9px 12px;
  border: 1px solid transparent;
  color: var(--muted);
}

.main-nav a:hover,
.ghost-button:hover {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.shell {
  width: min(1560px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
  padding: 34px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(72, 242, 194, 0.12), transparent 42%),
    linear-gradient(100deg, rgba(255, 209, 102, 0.1), rgba(255, 107, 158, 0.06)),
    var(--hero-base);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font-size: 44px;
  line-height: 1.08;
}

h2 {
  font-size: 22px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.status-strip div {
  display: grid;
  align-content: center;
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(7, 16, 13, 0.72);
}

.status-strip span {
  color: var(--muted);
}

.status-strip strong {
  margin-top: 10px;
  font-size: 42px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.2fr);
  grid-template-areas:
    "booking calendar"
    "member calendar";
  gap: 18px;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.booking-panel {
  grid-area: booking;
}

.calendar-panel {
  grid-area: calendar;
}

.member-panel {
  grid-area: member;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(72, 242, 194, 0.36);
  color: var(--mint);
  background: rgba(72, 242, 194, 0.08);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.price-sheet {
  display: grid;
  gap: 10px;
  padding: 18px 22px 0;
}

.slot-panel {
  display: grid;
  gap: 12px;
  padding: 18px 22px 0;
}

.slot-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(151, 245, 220, 0.14);
  background: var(--row-bg);
}

.slot-panel-head strong,
.slot-panel-head small {
  display: block;
}

.slot-panel-head small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.time-slot {
  min-height: 38px;
  border: 1px solid rgba(151, 245, 220, 0.18);
  background: var(--ghost-bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.time-slot:hover,
.time-slot.is-selected {
  border-color: var(--mint);
  background: color-mix(in srgb, var(--mint) 13%, var(--row-bg));
  color: var(--mint);
}

.time-slot.is-disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.rule-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 16px 22px 0;
}

.rule-summary span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(151, 245, 220, 0.16);
  background: var(--row-bg);
}

.rule-summary strong,
.rule-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rule-summary strong {
  color: var(--text);
  font-size: 13px;
}

.rule-summary small {
  color: var(--muted);
  font-size: 11px;
}

.price-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--panel-2);
  box-shadow: inset 4px 0 0 var(--item-color, var(--mint));
  cursor: pointer;
}

.price-row.is-selected {
  border-color: rgba(255, 209, 102, 0.7);
  background: rgba(255, 209, 102, 0.12);
}

.price-code {
  display: grid;
  place-items: center;
  width: 56px;
  height: 42px;
  color: var(--ink);
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.price-row strong,
.price-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.price-amount {
  text-align: right;
  color: var(--mint);
  font-weight: 900;
}

.booking-form,
.login-box,
.price-form {
  display: grid;
  gap: 12px;
  padding: 22px;
}

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

label,
.field-group {
  display: grid;
  gap: 7px;
}

label span,
.field-group > span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(151, 245, 220, 0.18);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  padding: 12px 13px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(72, 242, 194, 0.12);
}

.wide,
.form-summary {
  grid-column: 1 / -1;
}

.form-summary,
.ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-summary {
  padding-top: 4px;
}

.booking-confirmation {
  display: grid;
  gap: 14px;
  margin: 0 22px 22px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--mint) 36%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--mint) 12%, transparent), transparent 54%),
    var(--panel-2);
}

.booking-confirmation h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.booking-confirmation p {
  margin: 8px 0 0;
  line-height: 1.65;
}

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

.receipt-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(151, 245, 220, 0.14);
  background: var(--row-bg);
}

.receipt-grid strong,
.receipt-grid small,
.receipt-link input {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-grid small {
  color: var(--muted);
  font-size: 12px;
}

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

.receipt-actions a {
  display: inline-grid;
  place-items: center;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  border: 1px solid transparent;
  min-height: 42px;
  padding: 0 16px;
  color: var(--text);
  cursor: pointer;
}

.primary-button {
  background: linear-gradient(135deg, var(--mint), var(--gold));
  color: var(--ink);
  font-weight: 900;
}

.secondary-button {
  border-color: rgba(72, 242, 194, 0.45);
  background: rgba(72, 242, 194, 0.1);
  color: var(--mint);
  font-weight: 800;
}

.ghost-button,
.icon-button {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--ghost-bg);
}

.icon-button {
  width: 42px;
  padding: 0;
  font-size: 22px;
}

.month-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  padding: 16px 22px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.calendar-weekdays span {
  padding: 0 8px;
}

.calendar-grid {
  gap: 8px;
  padding: 0 22px 22px;
}

.day-cell {
  min-height: 122px;
  border: 1px solid rgba(151, 245, 220, 0.16);
  background: var(--row-bg);
  padding: 10px;
  cursor: pointer;
}

.day-cell:hover,
.day-cell.is-selected {
  border-color: var(--mint);
  background: rgba(72, 242, 194, 0.1);
}

.day-cell.is-open {
  box-shadow: inset 0 0 0 1px rgba(72, 242, 194, 0.04);
}

.day-cell.is-tight {
  border-color: rgba(255, 209, 102, 0.38);
  background: rgba(255, 209, 102, 0.08);
}

.day-cell.is-full {
  border-color: rgba(255, 112, 104, 0.36);
  background: rgba(255, 112, 104, 0.08);
}

.day-cell.is-closed {
  background: rgba(255, 255, 255, 0.025);
}

.day-cell.is-muted {
  opacity: 0.38;
}

.day-number {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-weight: 900;
}

.day-total {
  display: inline-flex;
  padding: 3px 6px;
  color: var(--ink);
  background: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.day-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.day-meta small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.login-box {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.login-box label {
  min-width: 0;
}

.admin-box {
  padding: 0 22px 22px;
}

.ops-card {
  margin-top: 18px;
  border: 1px solid rgba(151, 245, 220, 0.16);
  background:
    linear-gradient(135deg, rgba(72, 242, 194, 0.08), transparent 42%),
    var(--row-bg);
}

.ops-card:first-child {
  margin-top: 0;
}

.ops-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(151, 245, 220, 0.12);
}

.ops-card-head strong,
.ops-card-head small {
  display: block;
}

.ops-card-head small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.weekday-picker {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.weekday-picker label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  border: 1px solid rgba(151, 245, 220, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.weekday-picker input {
  width: auto;
}

.project-switcher,
.project-form {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.project-form {
  grid-template-columns: minmax(0, 1.2fr) 130px 110px;
  padding-top: 0;
}

.theme-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.theme-option {
  position: relative;
  min-width: 0;
  min-height: 124px;
  padding: 12px;
  border: 1px solid rgba(151, 245, 220, 0.16);
  background: var(--row-bg);
  cursor: pointer;
}

.theme-option input {
  position: absolute;
  top: 10px;
  right: 10px;
  width: auto;
}

.theme-option::before {
  content: "";
  display: block;
  height: 34px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: linear-gradient(135deg, var(--swatch-a), var(--swatch-b));
}

.theme-option strong,
.theme-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-option strong {
  color: var(--text);
}

.theme-option small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.theme-option:has(input:checked) {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint) 14%, transparent);
}

.theme-fresh-mint {
  --swatch-a: #c9f6e7;
  --swatch-b: #1fc79f;
}

.theme-skyline {
  --swatch-a: #d9ecff;
  --swatch-b: #2f7df6;
}

.theme-peach {
  --swatch-a: #ffe0ce;
  --swatch-b: #f07f5f;
}

.theme-violet {
  --swatch-a: #e7dcff;
  --swatch-b: #7b61ff;
}

.theme-dark-web3 {
  --swatch-a: #07100d;
  --swatch-b: #48f2c2;
}

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

.template-card {
  display: grid;
  gap: 8px;
  min-height: 136px;
  padding: 12px;
  border: 1px solid rgba(151, 245, 220, 0.16);
  background: var(--row-bg);
  box-shadow: inset 4px 0 0 var(--item-color, var(--mint));
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.template-card:hover {
  border-color: var(--mint);
}

.template-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.template-card strong,
.template-card small,
.template-card span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.template-card small,
.template-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.price-form {
  grid-template-columns: minmax(0, 1.2fr) 100px 120px auto;
  align-items: end;
  padding-left: 0;
  padding-right: 0;
}

.price-manager {
  display: grid;
  gap: 9px;
  padding: 0 14px 14px;
}

.price-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(151, 245, 220, 0.14);
  background: var(--row-bg);
  box-shadow: inset 4px 0 0 var(--item-color, var(--mint));
}

.price-admin-row.is-archived {
  opacity: 0.58;
}

.price-admin-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.price-admin-main strong,
.price-admin-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-admin-main small {
  color: var(--muted);
  font-size: 12px;
}

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

.sdk-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(151, 245, 220, 0.14);
  background: var(--row-bg);
}

.sdk-grid strong,
.sdk-grid small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sdk-grid small,
.sdk-code-wrap span {
  color: var(--muted);
  font-size: 12px;
}

.sdk-code-wrap {
  padding: 0 14px 14px;
}

.sdk-code {
  min-height: 168px;
  resize: vertical;
  color: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
}

.sdk-events {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 14px;
}

.sdk-events span {
  padding: 7px 10px;
  border: 1px solid rgba(151, 245, 220, 0.16);
  background: var(--ghost-bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.delivery-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(151, 245, 220, 0.14);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--gold) 8%, transparent), transparent 60%),
    var(--row-bg);
}

.delivery-grid strong,
.delivery-grid small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-grid small {
  color: var(--muted);
  font-size: 12px;
}

.delivery-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

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

.review-metrics span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(151, 245, 220, 0.14);
  background: var(--row-bg);
}

.review-metrics strong {
  font-size: 26px;
}

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

.review-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 12px;
}

.filter-button {
  min-height: 36px;
  border: 1px solid rgba(151, 245, 220, 0.16);
  background: var(--ghost-bg);
  color: var(--muted);
  padding: 0 12px;
  cursor: pointer;
}

.filter-button.is-active {
  border-color: var(--mint);
  background: color-mix(in srgb, var(--mint) 12%, transparent);
  color: var(--text);
  font-weight: 900;
}

.review-message-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 180px;
  gap: 10px;
  padding: 0 14px 14px;
}

.ledger-head {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.ledger {
  display: grid;
  gap: 9px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--row-bg);
}

.ledger-row.has-conflict {
  border-color: rgba(255, 112, 104, 0.42);
  background: color-mix(in srgb, var(--danger) 8%, var(--row-bg));
}

.ledger-row strong,
.ledger-row span {
  display: block;
}

.ledger-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.ledger-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-pending {
  color: var(--gold);
}

.status-approved {
  color: var(--ok);
}

.status-rejected {
  color: var(--danger);
}

.event-feed {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 14px;
}

.event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(151, 245, 220, 0.1);
}

.event-row:last-child {
  border-bottom: 0;
}

.event-row strong,
.event-row small {
  display: block;
}

.event-row small,
.event-row time {
  color: var(--muted);
  font-size: 12px;
}

.storage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.storage-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(151, 245, 220, 0.14);
  background: var(--row-bg);
}

.storage-grid strong,
.storage-grid small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-grid small {
  color: var(--muted);
  font-size: 12px;
}

.risk-line strong {
  color: var(--gold);
}

.storage-actions,
.drill-form {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

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

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

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  max-width: min(420px, calc(100% - 44px));
  padding: 14px 16px;
  border: 1px solid rgba(72, 242, 194, 0.38);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero-band,
  .workspace {
    grid-template-columns: 1fr;
  }

  .workspace {
    grid-template-areas:
      "booking"
      "calendar"
      "member";
  }

  .status-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    position: relative;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px;
  }

  .brand {
    min-width: 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .shell {
    width: min(100% - 24px, 1560px);
    padding-top: 16px;
  }

  .hero-band {
    padding: 22px;
  }

  h1 {
    font-size: 32px;
  }

  .status-strip,
  .booking-form,
  .receipt-grid,
  .receipt-actions,
  .time-slot-grid,
  .login-box,
  .price-form,
  .project-form,
  .rules-form,
  .theme-form,
  .template-grid,
  .sdk-grid,
  .delivery-grid,
  .review-metrics,
  .review-message-grid,
  .storage-grid,
  .storage-actions,
  .delivery-actions,
  .drill-form {
    grid-template-columns: 1fr;
  }

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

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

  .calendar-grid {
    gap: 6px;
  }

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

  .day-meta {
    display: none;
  }
}
