:root {
  --bg: #e8edf2;
  --surface: #f7f4ef;
  --surface-soft: #eceff3;
  --ink: #17202a;
  --muted: #5d6775;
  --line: #cbd4dd;
  --primary: #c93428;
  --primary-dark: #98251d;
  --secondary: #116b5b;
  --blue: #2c62b8;
  --amber: #b7791f;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(20, 30, 45, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, #dfe6ed 0%, #eef0ed 46%, #dce4ea 100%);
  font-family: "Inter", Arial, sans-serif;
}

body[data-page="admin"],
body[data-page="generator"] {
  background: #dfe6ed;
  color: var(--ink);
}

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

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

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 46px);
  border-bottom: 1px solid rgba(23, 32, 42, 0.08);
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(16px);
}

.topbar-dark {
  border-bottom-color: rgba(23, 32, 42, 0.1);
  background: rgba(34, 47, 62, 0.92);
  color: #f8fafc;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--primary), #ef7d35);
  font-weight: 800;
}

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

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.topbar-dark .brand small {
  color: #bdc7d7;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-actions a {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.topbar-dark .nav-actions a {
  color: #d9e0e8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: white;
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(217, 45, 32, 0.22);
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  color: white;
  background: var(--secondary);
}

.button-ghost {
  color: var(--ink);
  background: #eef2f6;
  border-color: var(--line);
}

.topbar-dark .button-ghost,
.dashboard-header .button-ghost {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

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

.button-large {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button-row.compact {
  align-items: center;
  gap: 8px;
}

.icon-nav-button,
.icon-action-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #eef2f6;
}

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

.icon-nav-button strong {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  color: white;
  background: var(--primary);
  font-size: 11px;
  line-height: 1;
}

.topbar-dark .icon-nav-button {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.icon-action-button {
  width: 36px;
  height: 36px;
  min-width: 36px;
  color: #24364a;
  background: #f9faf9;
}

.icon-action-button.danger {
  color: var(--danger);
  background: #fff0ed;
  border-color: #f1b9b2;
}

.client-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  gap: 22px;
  align-items: start;
  width: min(1440px, calc(100% - 32px));
  margin: 22px auto;
}

.search-workspace,
.result-panel,
.page-band,
.account-panel,
.panel,
.login-card {
  background: var(--surface);
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-workspace {
  padding: clamp(22px, 4vw, 42px);
}

.result-panel {
  position: sticky;
  top: 88px;
  min-height: 560px;
  padding: 24px;
}

.section-kicker {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin-bottom: 26px;
  color: var(--muted);
  line-height: 1.7;
}

.quote-form,
.stack-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 14px;
}

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

.form-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--surface-soft);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.privacy-note {
  border-left: 4px solid var(--secondary);
  padding: 12px 14px;
  color: #3d4a5c;
  background: #eef8f5;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.result-empty {
  display: grid;
  min-height: 500px;
  align-content: center;
  gap: 10px;
  color: var(--muted);
}

.quote-result {
  display: grid;
  gap: 16px;
}

.quote-price {
  display: grid;
  gap: 6px;
  padding: 22px;
  color: white;
  background: #22303c;
  border-radius: 8px;
}

.quote-price strong {
  font-size: clamp(36px, 5vw, 58px);
}

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

.info-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: var(--surface-soft);
}

.info-box span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.page-band,
.account-panel {
  width: min(1440px, calc(100% - 32px));
  margin: 22px auto;
  padding: clamp(20px, 3vw, 34px);
}

.band-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.band-header p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.service-card {
  display: grid;
  gap: 12px;
  min-height: 230px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.service-card strong {
  font-size: 22px;
}

.service-card p {
  color: var(--muted);
  line-height: 1.55;
}

.service-card .service-price {
  color: var(--secondary);
  font-weight: 800;
}

.account-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1fr;
  gap: 16px;
}

.panel {
  padding: 20px;
  color: var(--ink);
}

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

.panel-heading h2 {
  margin: 0;
  font-size: 24px;
}

.legal-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.compact-list,
.admin-list,
.conversation-list {
  display: grid;
  gap: 10px;
}

.list-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.list-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  color: #7a3b00;
  background: #fff4df;
  font-size: 12px;
  font-weight: 800;
}

.badge.green {
  color: #075e50;
  background: #dff7f0;
}

.badge.blue {
  color: #1d4ed8;
  background: #e7efff;
}

.badge.red {
  color: #ffffff;
  background: #b42318;
}

.conversation-panel {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.conversation-list-wrap,
.conversation-thread {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.conversation-button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  color: var(--ink);
  background: #f9faf9;
}

.conversation-button.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.message-list {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 360px;
  max-height: 520px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef1f4;
}

.message {
  max-width: min(680px, 86%);
  padding: 12px 14px;
  border-radius: 8px;
  background: #f3eee6;
}

.message.own {
  justify-self: end;
}

.message.client-bubble {
  color: #17202a;
  background: #e8f1ed;
  border: 1px solid #c4ddd4;
}

.message.admin-bubble {
  color: white;
  background: #2c62b8;
  border: 1px solid #24549e;
}

.message.system-message {
  justify-self: center;
  max-width: min(560px, 92%);
  padding: 5px 10px;
  color: #5b6573;
  background: transparent;
  border: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.message.system-message small {
  margin-top: 2px;
  font-size: 10px;
  opacity: 0.65;
}

.message.message-deleted-client {
  background: #fff1d7;
  border-color: #d49a35;
}

.message-note {
  margin-top: 8px;
  color: #8a4b00;
  font-size: 12px;
  font-weight: 800;
}

.message-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.message-actions .small-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
}

.message-actions .small-icon svg {
  width: 15px;
  height: 15px;
}

.message small {
  display: block;
  margin-top: 6px;
  opacity: 0.75;
}

.attachments {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.attachments a {
  text-decoration: underline;
}

.message-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.45fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 24, 39, 0.72);
}

.modal {
  position: relative;
  width: min(100%, 520px);
  padding: 26px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-dialog-backdrop {
  z-index: 80;
  background:
    radial-gradient(circle at 50% 20%, rgba(31, 111, 139, 0.22), transparent 34%),
    rgba(13, 20, 31, 0.72);
  backdrop-filter: blur(3px);
}

.app-dialog {
  width: min(100%, 460px);
  padding: 24px;
  border: 1px solid rgba(120, 143, 164, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.app-dialog h2 {
  margin: 4px 42px 8px 0;
  font-size: 22px;
}

.app-dialog-message {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.55;
}

.app-dialog-input-wrap {
  display: block;
  margin-top: 16px;
}

.app-dialog-input-wrap input {
  width: 100%;
}

.app-dialog-actions {
  justify-content: flex-end;
  margin-top: 22px;
}

.icon-button {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font-weight: 800;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}

.check-line input {
  width: auto;
  margin-top: 4px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.form-error {
  margin: 0;
  color: var(--danger);
  font-weight: 800;
}

.consent-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  width: min(760px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.consent-banner p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 70;
  transform: translateX(-50%);
  max-width: min(560px, calc(100% - 32px));
  padding: 12px 16px;
  border-radius: 8px;
  color: white;
  background: #17202a;
  box-shadow: var(--shadow);
  font-weight: 700;
}

.auth-page {
  display: grid;
  min-height: calc(100vh - 72px);
  place-items: center;
  padding: 26px;
}

.login-card {
  display: grid;
  gap: 16px;
  width: min(100%, 520px);
  padding: 28px;
  color: var(--ink);
}

.admin-shell,
.generator-shell {
  width: min(1600px, calc(100% - 32px));
  margin: 22px auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: 8px;
  background: #22303c;
  color: #f8fafc;
}

.dashboard-header p {
  margin-bottom: 0;
  color: #bdc7d7;
}

.admin-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: 8px;
  background: #f7f4ef;
  box-shadow: var(--shadow);
}

.admin-menu-item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 14px;
  color: #304053;
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.admin-menu-item.active,
.admin-menu-item:hover {
  color: white;
  background: #22303c;
}

.admin-main {
  min-width: 0;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

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

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

.stat-card {
  padding: 18px;
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: 8px;
  background: #f7f4ef;
  color: var(--ink);
}

.stat-card span,
.stat-card strong {
  display: block;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.stat-card strong {
  margin-top: 8px;
  font-size: 34px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.8fr);
  gap: 18px;
}

.admin-grid .panel:nth-child(1),
.admin-grid .panel:nth-child(4) {
  grid-column: span 1;
}

.admin-conversation-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 12px;
}

.generator-layout {
  display: grid;
  grid-template-columns: minmax(340px, 460px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.generator-layout .panel {
  position: sticky;
  top: 88px;
}

.service-sheet {
  min-height: 900px;
  padding: 34px;
  border-radius: 8px;
  color: var(--ink);
  background: white;
  box-shadow: var(--shadow);
}

.sheet-header {
  padding: 30px;
  border-radius: 8px;
  color: white;
  background: #22303c;
}

.sheet-header h1 {
  margin-bottom: 8px;
}

.sheet-section {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.muted {
  color: var(--muted);
}

.account-page {
  width: min(1440px, calc(100% - 32px));
  margin: 22px auto;
}

.notification-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--ink);
  background: #eef2f6;
  font-weight: 800;
}

.topbar-dark .notification-button {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.notification-button strong {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  color: white;
  background: var(--primary);
  font-size: 12px;
}

.notification-panel {
  position: fixed;
  top: 72px;
  right: 18px;
  z-index: 60;
  width: min(420px, calc(100% - 36px));
  max-height: calc(100vh - 100px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

button.notification-item {
  width: 100%;
  color: var(--ink);
  text-align: left;
}

.list-item.unread {
  border-left: 4px solid var(--primary);
}

.focus-flash {
  animation: focusFlash 1.4s ease;
}

@keyframes focusFlash {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(201, 52, 40, 0);
  }
  20%,
  70% {
    box-shadow: 0 0 0 5px rgba(201, 52, 40, 0.18);
  }
}

.conversation-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

.conversation-list-item .close-conversation {
  min-height: 32px;
  padding: 7px 9px;
  font-size: 12px;
}

.conversation-button small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.conversation-context {
  margin-bottom: 10px;
  padding: 12px;
  border-left: 4px solid var(--secondary);
  border-radius: 8px;
  background: #e8f1ed;
  color: #173b33;
  font-weight: 800;
}

.compact-form {
  margin-bottom: 16px;
}

.garage-panel {
  margin-top: 18px;
}

.garage-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.garage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

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

.garage-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.appointment-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef1f4;
}

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

.availability-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.availability-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.legend-dot.free {
  background: #dff7f0;
  border-color: #a9ded2;
}

.legend-dot.busy {
  background: #b42318;
  border-color: #8f1d14;
}

.legend-dot.cooldown {
  background: #f6c453;
  border-color: #c58a12;
}

.appointment-selection-summary {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9faf9;
  font-weight: 800;
}

.appointment-hidden-fields {
  display: none;
}

.availability-day {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9faf9;
}

.availability-day strong {
  font-size: 13px;
}

.availability-day div {
  display: grid;
  gap: 6px;
}

.slot-pill {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 800;
}

.slot-pill.free {
  color: #075e50;
  background: #dff7f0;
  border-color: #a9ded2;
}

.slot-pill.busy {
  color: #ffffff;
  background: #b42318;
  border-color: #8f1d14;
  cursor: not-allowed;
  opacity: 0.95;
}

.slot-pill.cooldown {
  color: #4f3200;
  background: #f6c453;
  border-color: #c58a12;
  cursor: not-allowed;
}

.slot-pill.off-selected {
  color: #ffffff;
  background: #b42318;
  border-color: #8f1d14;
}

.off-day-pill {
  width: 100%;
}

.price-plus {
  color: var(--secondary);
  font-weight: 900;
}

.appointment-options {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9faf9;
}

.appointment-option-line em {
  color: var(--secondary);
  font-style: normal;
  font-weight: 900;
}

.appointment-total {
  display: grid;
  gap: 4px;
  margin: 8px 0;
  padding: 10px 12px;
  border: 1px solid #bdd8d0;
  border-radius: 8px;
  background: #edf7f4;
}

.appointment-total strong {
  color: #075e50;
}

.slot-pill.selected {
  color: white;
  background: var(--secondary);
}

.vehicle-photo,
.mini-vehicle-photo {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.vehicle-photo {
  max-height: 260px;
  margin-bottom: 16px;
}

.mini-vehicle-photo {
  max-height: 160px;
}

.dashboard-panel {
  margin-bottom: 18px;
}

.hourly-chart {
  display: grid;
  grid-template-columns: repeat(24, minmax(22px, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 150px;
}

.hour-bar {
  display: grid;
  gap: 6px;
  justify-items: center;
  color: var(--muted);
  font-size: 11px;
}

.hour-bar div {
  display: flex;
  align-items: end;
  width: 100%;
  height: 96px;
  border-radius: 8px;
  background: #e4e9ee;
  overflow: hidden;
}

.hour-bar strong {
  display: block;
  width: 100%;
  align-self: end;
  background: linear-gradient(180deg, var(--blue), var(--secondary));
}

.print-body {
  background: white;
  padding: 20px;
}

.print-frame {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.admin-list .button-row,
.list-item .button-row {
  margin-top: 8px;
}

@media (max-width: 1120px) {
  .client-shell,
  .admin-layout,
  .admin-grid,
  .generator-layout,
  .account-grid,
  .conversation-panel {
    grid-template-columns: 1fr;
  }

  .result-panel,
  .admin-sidebar,
  .generator-layout .panel {
    position: static;
  }

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

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

@media (max-width: 720px) {
  .topbar,
  .band-header,
  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .form-row.two,
  .form-row.three,
  .service-grid,
  .stats-grid,
  .info-grid,
  .availability-calendar,
  .message-form,
  .consent-banner {
    grid-template-columns: 1fr;
  }

  .consent-actions,
  .garage-item,
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .result-panel,
  .search-workspace,
  .page-band,
  .account-panel,
  .panel,
  .login-card {
    padding: 18px;
  }

  h1 {
    font-size: 34px;
  }
}

@media print {
  body {
    background: white !important;
  }

  .topbar,
  .generator-layout .panel {
    display: none !important;
  }

  .generator-shell {
    width: 100%;
    margin: 0;
  }

  .service-sheet {
    box-shadow: none;
    border-radius: 0;
  }
}
