
:root {
  --bg: #05070b;
  --bg-2: #0b111a;
  --panel: rgba(11, 15, 23, 0.82);
  --panel-strong: rgba(15, 20, 30, 0.96);
  --panel-soft: rgba(226, 232, 240, 0.055);
  --line: rgba(226, 210, 176, 0.13);
  --line-strong: rgba(241, 230, 200, 0.26);
  --text: #f8fafc;
  --muted: #aab0ba;
  --soft: #d7dee8;
  --gold: #d8c08a;
  --rose: #b8928d;
  --champagne: #f1e6c8;
  --success: #79d8b0;
  --warning: #d8c08a;
  --danger: #f08a8a;
  --info: #9db8d8;
  --shadow: 0 30px 96px rgba(0, 0, 0, 0.58);
  --shadow-soft: 0 16px 54px rgba(0, 0, 0, 0.34);
  --glow-gold: 0 0 0 1px rgba(216, 192, 138, 0.15), 0 22px 70px rgba(72, 86, 116, 0.16);
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 11px;
  --sidebar: 280px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }
html, body { max-width: 100%; overflow-x: hidden; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% -10%, rgba(70, 90, 120, 0.16), transparent 32%),
    radial-gradient(circle at 92% 0%, rgba(216, 192, 138, 0.09), transparent 29%),
    linear-gradient(135deg, #04060a 0%, #0a1018 44%, #05070b 100%);
  letter-spacing: 0;
}

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

button, input, textarea, select { font: inherit; }
img, svg, video, canvas { max-width: 100%; }

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 20px;
}

.login-shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.13);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(226, 232, 240, 0.10), rgba(15, 23, 42, 0.70));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.login-story {
  min-height: 640px;
  padding: 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(160deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.48)),
    radial-gradient(circle at 18% 18%, rgba(216, 192, 138, 0.18), transparent 28%);
}

.login-card {
  padding: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(5, 7, 11, 0.58);
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #05070b;
  font-weight: 800;
  background: linear-gradient(135deg, var(--champagne), var(--gold) 52%, var(--rose));
  box-shadow: 0 16px 46px rgba(216, 192, 138, 0.18);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.login-story h1,
.page-title h1,
.hero h1 {
  margin: 0;
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: 0;
}

.login-story h1 { max-width: 560px; font-size: clamp(44px, 6vw, 76px); }
.login-card h1 { margin: 0 0 10px; font-size: 34px; }
.page-title h1 { font-size: 36px; }
.hero h1 { font-size: clamp(40px, 5vw, 64px); }

.lead, .page-title p, .hero p, .login-card p {
  color: var(--muted);
  line-height: 1.65;
}

.brand-subtitle {
  margin: 14px 0 0;
  color: #f4dfad;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 680;
  letter-spacing: 0.02em;
}

.lead { max-width: 560px; font-size: 18px; }

.feature-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.chip, .pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid rgba(241, 230, 200, 0.14);
  border-radius: 999px;
  color: rgba(241, 230, 200, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.075), rgba(255, 248, 236, 0.035)),
    rgba(6, 9, 14, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

.pill.success { color: #a6e6c4; border-color: rgba(123, 217, 165, 0.24); background: rgba(123, 217, 165, 0.085); }
.pill.warning { color: #ead69d; border-color: rgba(244, 200, 107, 0.28); background: rgba(244, 200, 107, 0.09); }
.pill.danger { color: #f3aaaa; border-color: rgba(255, 139, 139, 0.28); background: rgba(255, 139, 139, 0.085); }
.pill.info { color: #b8cbe0; border-color: rgba(158, 200, 255, 0.22); background: rgba(158, 200, 255, 0.075); }

.status-tag {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: rgba(241, 230, 200, 0.6);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.field { margin: 22px 0; }
.field label {
  display: block;
  margin-bottom: 10px;
  color: #f6f1e6;
  font-size: 13px;
  font-weight: 880;
  letter-spacing: 0.02em;
}

.optional-label {
  margin-left: 6px;
  color: rgba(219, 228, 240, 0.58);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-help {
  margin: 9px 0 0;
  color: rgba(219, 228, 240, 0.62);
  font-size: 12px;
  line-height: 1.45;
}

.auth-error {
  margin: 8px 0 2px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 139, 139, 0.40);
  border-radius: 14px;
  color: #ffd7d7;
  background:
    linear-gradient(135deg, rgba(98, 26, 35, 0.62), rgba(42, 11, 18, 0.54));
  box-shadow: 0 14px 36px rgba(94, 18, 26, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 780;
}

.auth-success {
  margin: 8px 0 14px;
  padding: 13px 15px;
  border: 1px solid rgba(126, 211, 165, 0.36);
  border-radius: 14px;
  color: #d9ffe8;
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.44), rgba(6, 35, 24, 0.42));
  box-shadow: 0 14px 36px rgba(20, 83, 45, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 780;
}

.reset-session-button {
  margin-top: 12px;
}

.access-note {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(216, 192, 138, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(216, 192, 138, 0.095), rgba(226, 232, 240, 0.040)),
    rgba(2, 6, 12, 0.34);
}

.access-note strong {
  color: var(--champagne);
  font-size: 14px;
}

.access-note span,
.access-steps span {
  color: rgba(215, 222, 232, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.access-steps {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.access-steps div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(203, 213, 225, 0.13);
  border-radius: 16px;
  background: rgba(226, 232, 240, 0.045);
}

.access-steps strong {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #05070b;
  background: linear-gradient(135deg, var(--champagne), var(--gold));
  font-size: 13px;
  font-weight: 950;
}

.access-actions {
  display: grid;
  gap: 10px;
}

.input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 0 17px;
  border: 1.5px solid rgba(203, 213, 225, 0.32);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(2, 6, 12, 0.88), rgba(10, 16, 26, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 12px 30px rgba(0, 0, 0, 0.20);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input::placeholder { color: rgba(215, 222, 232, 0.48); }

select.input {
  appearance: none;
  position: relative;
  z-index: 2;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 22px,
    calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
  text-overflow: ellipsis;
}

.textarea {
  min-height: 148px;
  height: auto;
  padding-top: 14px;
  resize: vertical;
  line-height: 1.55;
}

.input:focus {
  border-color: rgba(241, 230, 200, 0.86);
  box-shadow: 0 0 0 4px rgba(216, 192, 138, 0.18), 0 18px 50px rgba(0, 0, 0, 0.28);
  background: #0b1019;
}

.password-field {
  position: relative;
}

.password-field .input {
  padding-right: 64px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(233, 200, 133, 0.48);
  border-radius: 12px;
  color: #fff1c8;
  background:
    linear-gradient(180deg, rgba(55, 45, 26, 0.92), rgba(17, 14, 11, 0.88));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle:hover,
.password-toggle.is-visible {
  border-color: rgba(255, 232, 176, 0.74);
  color: #fff9e8;
  background:
    linear-gradient(180deg, rgba(105, 82, 38, 0.95), rgba(48, 35, 17, 0.92));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), 0 0 0 4px rgba(233, 200, 133, 0.10);
}

.password-toggle:focus-visible {
  outline: 3px solid rgba(233, 200, 133, 0.30);
  outline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(241, 230, 200, 0.20);
  border-radius: 12px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(32, 39, 52, 0.86), rgba(8, 12, 20, 0.90));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(241, 230, 200, 0.34);
  background: linear-gradient(180deg, rgba(47, 56, 72, 0.92), rgba(14, 20, 31, 0.94));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.065);
}
.btn:active { transform: translateY(0); box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.28); }
.btn:focus-visible { outline: 3px solid rgba(233, 200, 133, 0.28); outline-offset: 3px; }

.btn.primary {
  color: #23170e;
  border: 0;
  background: linear-gradient(135deg, #fff2cf, var(--gold) 58%, #b89072);
  box-shadow: 0 12px 34px rgba(233, 200, 133, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.50);
}

.btn.success {
  color: #102216;
  border: 0;
  background: linear-gradient(135deg, #d7ffe4, var(--success) 58%, #5fc489);
  box-shadow: 0 18px 48px rgba(123, 217, 165, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.btn.gold {
  color: #23170e;
  border-color: rgba(233, 200, 133, 0.32);
  background: linear-gradient(135deg, rgba(255, 241, 207, 0.22), rgba(233, 200, 133, 0.18));
}

.btn.danger {
  color: var(--danger);
  border-color: rgba(255, 139, 139, 0.32);
  background: rgba(255, 139, 139, 0.08);
}

.btn.full { width: 100%; min-height: 42px; }

.support-entry-button {
  min-height: 42px;
  padding: 0 16px;
  border-color: rgba(216, 192, 138, 0.38);
  color: var(--champagne);
  background: linear-gradient(135deg, rgba(216, 192, 138, 0.18), rgba(15, 23, 42, 0.82));
}

.support-modal-open {
  overflow: hidden;
}

.modal-open {
  overflow: hidden;
}

.support-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(2, 6, 12, 0.72);
  backdrop-filter: blur(20px);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(16px);
  animation: modalFadeIn 160ms ease both;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  position: relative;
  padding: 30px;
  border: 1px solid rgba(216, 192, 138, 0.26);
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 0%, rgba(216, 192, 138, 0.13), transparent 38%),
    linear-gradient(145deg, rgba(17, 24, 39, 0.98), rgba(3, 7, 14, 0.96));
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: modalRiseIn 180ms ease both;
}

.modal-panel h2 {
  margin: 0 0 8px;
  color: #fff7e8;
  font-size: 28px;
  letter-spacing: 0;
}

.modal-panel p {
  color: rgba(215, 222, 232, 0.76);
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 248, 236, 0.16);
  border-radius: 999px;
  color: var(--champagne);
  background: rgba(255, 248, 236, 0.06);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: rgba(233, 200, 133, 0.42);
  background: rgba(233, 200, 133, 0.12);
  outline: none;
}

.assign-time-form {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalRiseIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.support-modal-backdrop[hidden] {
  display: none;
}

.support-modal {
  position: relative;
  width: min(760px, 100%);
  max-height: min(900px, 92dvh);
  overflow: auto;
  padding: 30px;
  border: 1.5px solid rgba(216, 192, 138, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 192, 138, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(17, 24, 36, 0.98), rgba(5, 7, 11, 0.96));
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.support-modal h2 {
  margin: 0 0 8px;
  color: #fff7e8;
  font-size: clamp(30px, 5vw, 44px);
}

.support-modal h3 {
  margin: 22px 0 10px;
  color: #fff7e8;
}

.support-modal p {
  color: var(--muted);
  line-height: 1.6;
}

.support-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(216, 192, 138, 0.24);
  border-radius: 14px;
  color: var(--champagne);
  background: rgba(255, 248, 236, 0.06);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.support-actions,
.support-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.support-ticket-form {
  margin-top: 12px;
  padding-top: 4px;
}

.support-context-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.support-context-preview div {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(203, 213, 225, 0.14);
  border-radius: 16px;
  background: rgba(255, 248, 236, 0.045);
}

.support-context-preview strong,
.support-context-preview span {
  display: block;
}

.support-context-preview strong {
  color: rgba(216, 192, 138, 0.92);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.support-context-preview span {
  margin-top: 6px;
  color: var(--soft);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.support-common {
  margin-top: 18px;
}

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

.support-common-grid button {
  min-height: 74px;
  padding: 13px;
  border: 1px solid rgba(216, 192, 138, 0.16);
  border-radius: 16px;
  color: #fff7e8;
  background: rgba(255, 248, 236, 0.052);
  cursor: pointer;
  text-align: left;
  font-weight: 850;
}

.support-common-grid button span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.support-status {
  min-height: 22px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 780;
}

.support-status.success { color: var(--success); }
.support-status.warning { color: var(--warning); }
.support-status.danger { color: var(--danger); }
.support-status.info { color: var(--info); }

.support-history {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(203, 213, 225, 0.12);
}

.support-ticket-history {
  display: grid;
  gap: 8px;
}

.support-history-row {
  width: 100%;
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(216, 192, 138, 0.16);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 248, 236, 0.045);
  cursor: pointer;
  text-align: left;
}

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

.support-history-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.support-self-ticket {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(203, 213, 225, 0.14);
  border-radius: 18px;
  background: rgba(2, 6, 12, 0.32);
}

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

.support-stat .pill {
  margin-top: 12px;
}

.support-center-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 16px;
  align-items: start;
}

.support-filter-form,
.support-admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.support-admin-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  margin-top: 18px;
}

.support-ticket-list {
  display: grid;
  gap: 10px;
}

.support-ticket-row {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid rgba(203, 213, 225, 0.14);
  border-radius: 18px;
  background: rgba(255, 248, 236, 0.045);
}

.support-ticket-row.active,
.support-ticket-row:hover {
  border-color: rgba(216, 192, 138, 0.36);
  background: rgba(216, 192, 138, 0.085);
}

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

.support-ticket-row span,
.support-ticket-row p {
  color: var(--muted);
}

.support-ticket-row p {
  margin: 7px 0 0;
}

.support-ticket-detail-card {
  position: sticky;
  top: 24px;
}

.support-message-box,
.support-reply,
.support-activity,
.support-attachments-placeholder {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(203, 213, 225, 0.14);
  border-radius: 18px;
  background: rgba(255, 248, 236, 0.045);
}

.support-message-box strong {
  color: var(--gold);
}

.support-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0;
}

.support-replies {
  margin-top: 18px;
}

.support-reply.internal {
  border-color: rgba(216, 192, 138, 0.32);
  background: rgba(216, 192, 138, 0.075);
}

.support-reply.customer {
  border-color: rgba(157, 184, 216, 0.24);
}

.support-reply-form {
  margin-top: 14px;
}

.notice {
  margin: 16px 0;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--soft);
  background: linear-gradient(135deg, rgba(255, 248, 236, 0.075), rgba(255, 248, 236, 0.035));
  line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.notice.warning { color: var(--warning); border-color: rgba(244, 200, 107, 0.26); background: rgba(244, 200, 107, 0.09); }
.notice.danger { color: var(--danger); border-color: rgba(255, 139, 139, 0.30); background: rgba(255, 139, 139, 0.09); }
.notice.success { color: var(--success); border-color: rgba(110, 231, 183, 0.30); background: rgba(110, 231, 183, 0.09); }

.app {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
}

.sidebar {
  position: sticky;
  top: 0;
  height: calc(100vh - env(safe-area-inset-top));
  height: calc(100dvh - env(safe-area-inset-top));
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(148, 163, 184, 0.07), transparent 36%),
    rgba(5, 7, 11, 0.88);
  backdrop-filter: blur(24px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 24px;
}

.brand strong { display: block; font-size: 15px; }
.brand span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }

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

.nav a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(241, 230, 200, 0.075);
  border-radius: 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.01em;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav a:hover { color: var(--text); background: rgba(255, 248, 236, 0.055); border-color: rgba(241, 230, 200, 0.16); }
.nav a.active {
  color: var(--champagne);
  background:
    linear-gradient(135deg, rgba(216, 192, 138, 0.14), rgba(148, 163, 184, 0.06)),
    rgba(10, 14, 22, 0.88);
  border-color: rgba(216, 192, 138, 0.34);
  box-shadow: inset 2px 0 0 rgba(216, 192, 138, 0.72), 0 12px 32px rgba(0, 0, 0, 0.22);
}

.support-admin-badge {
  min-width: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  padding: 0 7px;
  border-radius: 999px;
  color: #2a0f12;
  background: linear-gradient(135deg, #ffd7d7, var(--danger));
  font-size: 11px;
  font-weight: 950;
}

.sidebar-footer {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 20px;
  display: grid;
  gap: 12px;
}

.user-badge {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 248, 236, 0.05);
}

.user-badge strong { display: block; font-size: 14px; }
.user-badge span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }

.main {
  min-width: 0;
  padding: 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.topbar-title { color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.owner-alert-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(216, 192, 138, 0.24);
  border-radius: 999px;
  color: #fff7e8;
  background: rgba(255, 248, 236, 0.06);
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.owner-alert-bell.has-alerts {
  border-color: rgba(255, 177, 92, 0.62);
  background: linear-gradient(135deg, rgba(133, 77, 14, 0.42), rgba(69, 26, 3, 0.34));
  box-shadow: 0 12px 34px rgba(133, 77, 14, 0.20);
}

.owner-alert-bell strong {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #281404;
  background: #f4cf82;
  font-size: 12px;
}

.hero {
  padding: 38px;
  border: 1px solid rgba(203, 213, 225, 0.14);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(226, 232, 240, 0.09), rgba(15, 23, 42, 0.42)),
    radial-gradient(circle at 88% 12%, rgba(216, 192, 138, 0.14), transparent 32%);
  box-shadow: var(--shadow-soft);
}

.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

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

.kpi, .card, .empty-state {
  border: 1px solid rgba(241, 230, 200, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 248, 236, 0.055), rgba(12, 17, 26, 0.40)),
    var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.card {
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.card:hover {
  border-color: rgba(241, 230, 200, 0.19);
  box-shadow: 0 20px 66px rgba(0, 0, 0, 0.38);
}

.kpi { padding: 18px; min-height: 118px; box-shadow: var(--glow-gold); }
.kpi span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.kpi strong { display: block; margin-top: 14px; color: #fff7e8; font-size: 30px; letter-spacing: 0; line-height: 1; }
.kpi small { display: block; margin-top: 8px; color: var(--muted); }

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

.grid > *,
.form-grid > *,
.catalog-filter > *,
.toolbar > *,
.card-header > *,
.page-header > *,
.service-catalog-card > *,
.import-review-row > *,
.import-fields > * {
  min-width: 0;
}

.card { padding: 24px; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.card-header, .page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.card h2, .card h3, .page-title h1 { margin: 0; }
.card h2 { color: #fff7e8; font-size: 20px; letter-spacing: 0; }
.card h3 { color: #fff7e8; font-size: 17px; letter-spacing: 0; }
.card p { color: rgba(215, 222, 232, 0.70); line-height: 1.55; }

.list { display: grid; gap: 10px; }
.row-card {
  display: grid;
  gap: 8px;
  padding: 15px;
  border: 1px solid rgba(241, 230, 200, 0.12);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 248, 236, 0.050), rgba(12, 17, 26, 0.50)),
    rgba(7, 11, 18, 0.72);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.row-card:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 192, 138, 0.28);
  background:
    linear-gradient(145deg, rgba(216, 192, 138, 0.075), rgba(12, 17, 26, 0.54)),
    rgba(7, 11, 18, 0.80);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.row-card strong { font-size: 14px; }
.row-card span, .meta { color: rgba(215, 222, 232, 0.68); font-size: 12px; line-height: 1.55; }

.conversation-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.conversation-row > div:first-child {
  min-width: 0;
}

.conversation-row > div:first-child span {
  display: block;
  margin-top: 4px;
}

.inbox-toolbar {
  margin-bottom: 16px;
}

.conversation-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(190px, 0.8fr) auto auto;
  gap: 12px;
  align-items: end;
}

.conversation-inbox-list {
  gap: 12px;
}

.conversation-control-card {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
}

.conversation-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 192, 138, 0.30);
  border-radius: 16px;
  color: #17120a;
  background: linear-gradient(135deg, #f7dfaa, #c9a75e);
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(216, 192, 138, 0.16);
}

.conversation-card-main {
  min-width: 0;
}

.conversation-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.conversation-card-title strong {
  color: #fff7e8;
  font-size: 15px;
}

.conversation-phone,
.conversation-preview {
  display: block;
  margin-top: 4px;
}

.conversation-preview {
  margin-bottom: 0;
  color: rgba(248, 250, 252, 0.78);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-preview {
  color: rgba(216, 192, 138, 0.90);
  font-weight: 800;
}

.conversation-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.inbox-skeleton {
  display: flex;
  gap: 6px;
  opacity: 0.42;
}

.inbox-skeleton span {
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(216, 192, 138, 0.12), rgba(216, 192, 138, 0.34), rgba(216, 192, 138, 0.12));
}

.notification-card {
  padding: 20px;
  border-color: rgba(233, 200, 133, 0.18);
  background:
    linear-gradient(145deg, rgba(233, 200, 133, 0.08), rgba(255, 248, 236, 0.045)),
    rgba(255, 248, 236, 0.04);
}

.quick-action-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(190px, 0.8fr) minmax(160px, 0.7fr);
  gap: 10px;
  align-items: end;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(233, 200, 133, 0.20);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(233, 200, 133, 0.14), transparent 38%),
    rgba(255, 248, 236, 0.052);
}

.quick-action-panel .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.quick-primary {
  min-height: 58px;
  font-size: 15px;
}

.quick-action-note {
  margin: 0 0 12px;
  color: var(--success);
  font-size: 13px;
  font-weight: 800;
}

.toggle-line {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--soft);
  background: rgba(255, 248, 236, 0.06);
  font-weight: 750;
}

.compliance-card {
  display: grid;
  gap: 12px;
}

.toggle-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.empty-state {
  padding: 28px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255, 248, 236, 0.08), rgba(255, 248, 236, 0.035)),
    radial-gradient(circle at 50% 0%, rgba(233, 200, 133, 0.10), transparent 44%);
}

.empty-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 18px;
  color: var(--gold);
  background: rgba(233, 200, 133, 0.11);
  border: 1px solid rgba(233, 200, 133, 0.24);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
}

.data-table th, .data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(241, 213, 170, 0.10);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.data-table td { color: var(--soft); font-size: 14px; }

.readiness { display: grid; gap: 10px; }
.ready-row {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid rgba(241, 213, 170, 0.10);
}
.ready-row strong { min-width: 0; color: #f8fafc; font-size: 13px; overflow-wrap: anywhere; }
.ready-row .pill { justify-content: center; max-width: 100%; }
.status-value {
  min-width: 0;
  max-width: 100%;
  color: var(--soft);
  font-size: 12px;
  font-weight: 760;
  overflow-wrap: anywhere;
  text-align: right;
}
.ready-row:last-child { border-bottom: 0; }

.page-header {
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(226, 232, 240, 0.070), rgba(15, 23, 42, 0.34)),
    radial-gradient(circle at 100% 0%, rgba(216, 192, 138, 0.10), transparent 34%);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}
.page-title p { margin: 10px 0 0; max-width: 760px; }

.page-title .eyebrow {
  margin-bottom: 12px;
}

.page-title h1 {
  font-size: clamp(38px, 4vw, 58px);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.schedule-toolbar .btn {
  min-width: 132px;
}

.schedule-controls {
  margin-bottom: 16px;
  border-color: rgba(216, 192, 138, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 192, 138, 0.10), transparent 30%),
    linear-gradient(145deg, rgba(226, 232, 240, 0.070), rgba(15, 23, 42, 0.46)),
    rgba(7, 11, 18, 0.84);
}

.schedule-control-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
}

.compact-field {
  margin: 0;
}

.compact-field .input {
  min-height: 52px;
}

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

.filter-apply {
  min-width: 150px;
  min-height: 52px;
}

.branch-setup-card {
  border-color: rgba(216, 192, 138, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 192, 138, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(226, 232, 240, 0.075), rgba(15, 23, 42, 0.48)),
    rgba(8, 13, 21, 0.84);
}

.branch-count-field {
  max-width: 420px;
}

.branch-card-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.branch-card {
  padding: 20px;
  border: 1.5px solid rgba(216, 192, 138, 0.20);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(216, 192, 138, 0.075), rgba(226, 232, 240, 0.038)),
    rgba(5, 7, 11, 0.48);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.branch-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.branch-card-header span {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.branch-card-header strong {
  display: block;
  margin-top: 5px;
  color: #fff7e8;
  font-size: 19px;
}

.view-switcher {
  display: inline-flex;
  gap: 6px;
  margin-top: 18px;
  padding: 6px;
  border: 1px solid rgba(203, 213, 225, 0.16);
  border-radius: 18px;
  background: rgba(2, 6, 12, 0.46);
}

.view-switcher a {
  min-width: 86px;
  padding: 10px 14px;
  border-radius: 13px;
  color: rgba(215, 222, 232, 0.70);
  text-align: center;
  font-size: 13px;
  font-weight: 850;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.view-switcher a:hover {
  color: var(--text);
  background: rgba(226, 232, 240, 0.075);
}

.view-switcher a.active {
  color: #23170e;
  background: linear-gradient(135deg, var(--champagne), var(--gold) 58%, var(--rose));
  box-shadow: 0 12px 30px rgba(216, 192, 138, 0.20);
}

.manual-booking-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(216, 192, 138, 0.20);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(216, 192, 138, 0.10), rgba(226, 232, 240, 0.045)),
    rgba(8, 13, 21, 0.80);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.manual-booking-bar strong {
  display: block;
  color: #fff7e8;
  font-size: 16px;
}

.manual-booking-bar span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.manual-booking-bar .btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

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

.schedule-stat {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(203, 213, 225, 0.15);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(226, 232, 240, 0.075), rgba(15, 23, 42, 0.34)),
    rgba(10, 15, 24, 0.82);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.20);
}

.schedule-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.schedule-stat strong {
  display: block;
  margin-top: 16px;
  color: #fff7e8;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.05;
}

.conflict-stat {
  border-color: rgba(240, 138, 138, 0.36);
  background:
    linear-gradient(145deg, rgba(240, 138, 138, 0.10), rgba(15, 23, 42, 0.34)),
    rgba(10, 15, 24, 0.82);
}

.conflict-stat strong {
  color: #ffd7d7;
}

.schedule-board {
  overflow: hidden;
  border-color: rgba(216, 192, 138, 0.18);
}

.schedule-placeholder {
  min-height: 320px;
  display: grid;
  place-content: center;
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed rgba(216, 192, 138, 0.30);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 192, 138, 0.11), transparent 42%),
    rgba(255, 248, 236, 0.035);
}

.schedule-placeholder h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.schedule-placeholder p {
  max-width: 560px;
  margin: 0 auto;
}

.schedule-timeline {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.13);
  border-radius: 22px;
  background: rgba(2, 6, 12, 0.34);
}

.schedule-slot {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 74px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.10);
}

.schedule-slot:last-child {
  border-bottom: 0;
}

.schedule-slot.has-bookings {
  background:
    linear-gradient(90deg, rgba(216, 192, 138, 0.09), transparent 54%),
    rgba(255, 248, 236, 0.030);
}

.schedule-slot.is-drag-over {
  outline: 2px solid rgba(216, 192, 138, 0.62);
  outline-offset: -2px;
  background:
    linear-gradient(90deg, rgba(216, 192, 138, 0.16), rgba(121, 216, 176, 0.055)),
    rgba(255, 248, 236, 0.05);
}

.schedule-time {
  padding: 18px 14px;
  border-right: 1px solid rgba(203, 213, 225, 0.10);
  color: rgba(241, 230, 200, 0.86);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.schedule-lane {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 10px 12px;
}

.slot-hint {
  color: rgba(215, 222, 232, 0.34);
  font-size: 12px;
  font-weight: 760;
}

.schedule-booking-card {
  border: 1px solid rgba(216, 192, 138, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(216, 192, 138, 0.095), rgba(226, 232, 240, 0.045)),
    rgba(9, 14, 23, 0.92);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.schedule-booking-card[draggable="true"] {
  cursor: grab;
}

.schedule-booking-card[draggable="true"]:active,
.schedule-booking-card.is-dragging {
  cursor: grabbing;
}

.schedule-booking-card.is-dragging {
  opacity: 0.68;
  transform: scale(0.992);
}

.schedule-booking-card.move-preview {
  border-color: rgba(121, 216, 176, 0.48);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.30), 0 0 0 4px rgba(121, 216, 176, 0.12);
}

.schedule-booking-card.has-conflict {
  border-color: rgba(240, 138, 138, 0.56);
  background:
    linear-gradient(145deg, rgba(240, 138, 138, 0.13), rgba(216, 192, 138, 0.055)),
    rgba(28, 10, 16, 0.72);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.30), 0 0 0 1px rgba(240, 138, 138, 0.18);
}

.schedule-booking-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  cursor: pointer;
  list-style: none;
}

.schedule-booking-card summary::-webkit-details-marker {
  display: none;
}

.schedule-booking-card summary strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff7e8;
  font-size: 15px;
}

.schedule-booking-card summary span {
  display: block;
  margin-top: 4px;
  color: rgba(215, 222, 232, 0.72);
  font-size: 13px;
}

.booking-card-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.booking-detail-panel {
  padding: 0 16px 16px;
}

.conflict-note {
  margin: 0 16px 12px;
  padding: 10px 12px;
  border: 1px solid rgba(240, 138, 138, 0.32);
  border-radius: 13px;
  color: #ffd7d7;
  background: rgba(240, 138, 138, 0.09);
  font-size: 12px;
  font-weight: 780;
}

.schedule-conflict-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 15px 16px;
  border: 1px solid rgba(240, 138, 138, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(240, 138, 138, 0.12), rgba(216, 192, 138, 0.055)),
    rgba(30, 12, 18, 0.68);
}

.schedule-conflict-banner strong {
  display: block;
  color: #ffe2e2;
  font-size: 14px;
}

.schedule-conflict-banner p {
  margin: 4px 0 0;
  color: rgba(255, 226, 226, 0.76);
}

.warning-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  color: #2a0f12;
  background: linear-gradient(135deg, #ffd7d7, var(--danger));
  box-shadow: 0 10px 24px rgba(240, 138, 138, 0.22);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.card-warning {
  width: 19px;
  height: 19px;
  font-size: 12px;
}

.booking-detail-panel .detail-list {
  padding: 16px;
  border: 1px solid rgba(203, 213, 225, 0.12);
  border-radius: 16px;
  background: rgba(2, 6, 12, 0.36);
}

.schedule-empty {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.schedule-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(170px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.schedule-day-column,
.schedule-month-cell {
  min-width: 0;
  border: 1px solid rgba(203, 213, 225, 0.13);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(226, 232, 240, 0.055), rgba(216, 192, 138, 0.035)),
    rgba(2, 6, 12, 0.28);
}

.schedule-day-column {
  min-height: 260px;
  padding: 12px;
}

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

.schedule-day-header strong {
  color: #fff7e8;
  font-size: 13px;
}

.schedule-mini-empty {
  min-height: 110px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(216, 192, 138, 0.22);
  border-radius: 14px;
  color: rgba(215, 222, 232, 0.48);
  font-size: 12px;
  font-weight: 760;
}

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

.schedule-month-weekday {
  color: rgba(241, 230, 200, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.schedule-month-cell {
  min-height: 128px;
  padding: 10px;
}

.schedule-month-cell.is-outside-month {
  opacity: 0.46;
}

.schedule-month-date {
  margin-bottom: 8px;
  color: var(--champagne);
  font-size: 12px;
  font-weight: 900;
}

.schedule-month-item {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid rgba(216, 192, 138, 0.18);
  border-radius: 12px;
  background: rgba(216, 192, 138, 0.07);
}

.schedule-month-item.has-conflict {
  border-color: rgba(240, 138, 138, 0.42);
  background: rgba(240, 138, 138, 0.10);
}

.schedule-month-item strong,
.schedule-month-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-month-item strong {
  color: #fff7e8;
  font-size: 11px;
}

.schedule-month-item span,
.schedule-more {
  color: rgba(215, 222, 232, 0.70);
  font-size: 11px;
}

.schedule-more {
  display: inline-block;
  margin-top: 8px;
  font-weight: 800;
}

.inline-action-status {
  display: block;
  min-height: 18px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.inline-action-status.success { color: var(--success); }
.inline-action-status.danger { color: var(--danger); }
.inline-action-status.info { color: var(--info); }
.inline-action-status.warning { color: var(--warning); }

.conversation-thread {
  display: grid;
  gap: 12px;
}

.conversation-thread.newest-first {
  padding-top: 2px;
}

.conversation-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 16px;
  align-items: start;
}

.conversation-main-card {
  min-width: 0;
}

.conversation-side-panel {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 22px;
}

.conversation-side-card {
  padding: 18px;
}

.sticky-conversation-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(18px);
}

.sticky-section-header {
  position: sticky;
  top: 0;
  z-index: 4;
  padding-top: 4px;
  background: linear-gradient(180deg, rgba(8, 13, 21, 0.96), rgba(8, 13, 21, 0.80) 74%, transparent);
  backdrop-filter: blur(14px);
}

.timeline-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 2px;
  color: rgba(216, 192, 138, 0.78);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(216, 192, 138, 0.28), transparent);
}

.latest-divider {
  margin-top: 0;
  color: #f1e6c8;
}

.message-bubble {
  max-width: min(720px, 100%);
  min-width: min(320px, 100%);
  padding: 15px 16px;
  border: 1px solid rgba(241, 230, 200, 0.12);
  border-radius: 18px 18px 18px 7px;
  background:
    linear-gradient(145deg, rgba(255, 248, 236, 0.060), rgba(12, 17, 26, 0.52)),
    rgba(8, 12, 20, 0.72);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.message-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.message-bubble.outbound {
  margin-left: auto;
  border-color: rgba(121, 216, 176, 0.18);
  border-radius: 18px 18px 7px 18px;
  background:
    linear-gradient(145deg, rgba(121, 216, 176, 0.075), rgba(12, 17, 26, 0.52)),
    rgba(7, 18, 15, 0.62);
}

.message-bubble.failed-message {
  border-color: rgba(240, 138, 138, 0.40);
  background:
    linear-gradient(145deg, rgba(240, 138, 138, 0.13), rgba(12, 17, 26, 0.54)),
    rgba(30, 8, 11, 0.64);
}

.message-bubble.system-message {
  max-width: 100%;
  margin: 0 auto;
  border-style: dashed;
  opacity: 0.82;
}

.operator-composer {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(216, 192, 138, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 192, 138, 0.12), transparent 30%),
    rgba(7, 11, 18, 0.94);
  box-shadow: 0 -16px 50px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.operator-composer p {
  margin: 4px 0 0;
  font-size: 12px;
}

.operator-composer textarea {
  min-height: 92px;
  resize: vertical;
}

.composer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.composer-actions.secondary-actions {
  justify-content: flex-start;
}

.quick-reply-grid {
  display: grid;
  gap: 8px;
}

.quick-reply-chip {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 192, 138, 0.20);
  border-radius: 14px;
  color: rgba(248, 250, 252, 0.92);
  background: rgba(255, 248, 236, 0.055);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.quick-reply-chip:hover,
.quick-reply-chip:focus-visible {
  border-color: rgba(216, 192, 138, 0.42);
  background: rgba(216, 192, 138, 0.11);
  transform: translateY(-1px);
  outline: none;
}

.ai-review-panel {
  border-color: rgba(121, 216, 176, 0.18);
}

.ai-review-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px 12px;
}

.ai-review-grid span {
  color: rgba(216, 192, 138, 0.74);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.ai-review-grid strong {
  color: rgba(248, 250, 252, 0.90);
  font-size: 12px;
  line-height: 1.45;
}

.customer-context-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  border-color: rgba(216, 192, 138, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 192, 138, 0.10), transparent 34%),
    linear-gradient(145deg, rgba(216, 192, 138, 0.070), rgba(15, 23, 42, 0.54)),
    rgba(8, 13, 21, 0.84);
}

.customer-context-card strong {
  display: block;
  margin-top: 4px;
  color: #fff7e8;
  font-size: 18px;
}

.meta-label {
  color: rgba(216, 192, 138, 0.78);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(233, 200, 133, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(233, 200, 133, 0.115), rgba(15, 23, 42, 0.34)),
    rgba(8, 12, 20, 0.74);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22), inset 3px 0 0 rgba(216, 192, 138, 0.62);
}

.owner-alert-banner,
.owner-alert-detail-card {
  border: 1px solid rgba(255, 177, 92, 0.34);
  background:
    linear-gradient(135deg, rgba(133, 77, 14, 0.20), rgba(15, 23, 42, 0.40)),
    rgba(8, 12, 20, 0.82);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.26), inset 3px 0 0 rgba(245, 158, 11, 0.68);
}

.owner-alert-banner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: 18px 0;
  padding: 20px;
  border-radius: 22px;
}

.owner-alert-banner h2 {
  margin: 10px 0 6px;
  color: #fff7e8;
}

.owner-alert-banner p,
.owner-alert-card span {
  color: rgba(241, 245, 249, 0.82);
}

.owner-alert-card {
  border-color: rgba(255, 177, 92, 0.24);
}

.owner-alert-highlight,
.owner-alert-card[data-push-highlight="true"] {
  border-color: rgba(245, 158, 11, 0.68);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(15, 23, 42, 0.56)),
    rgba(8, 12, 20, 0.90);
  box-shadow: 0 22px 64px rgba(245, 158, 11, 0.18), inset 3px 0 0 rgba(245, 158, 11, 0.88);
}

.push-conversation-summary {
  border: 1px solid rgba(216, 192, 138, 0.34);
  background:
    radial-gradient(circle at 92% 0%, rgba(216, 192, 138, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(7, 11, 18, 0.88));
}

.actionable-summary-grid {
  margin-top: 14px;
}

.push-action-toolbar {
  margin-top: 16px;
  justify-content: flex-start;
}

.owner-alert-actions {
  align-items: stretch;
  justify-content: flex-end;
}

.owner-alert-actions form {
  margin: 0;
}

.owner-alert-inline {
  color: #fbd38d;
  font-weight: 760;
}

.owner-reply-context,
.notification-device-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(240, 204, 134, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.tap-action-options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.choice-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(216, 192, 138, 0.24);
  border-radius: 18px;
  background: rgba(7, 11, 18, 0.58);
  cursor: pointer;
}

.choice-card input {
  margin-top: 3px;
}

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

.choice-card small {
  margin-top: 4px;
  color: var(--muted);
}

.owner-reply-context div {
  display: grid;
  gap: 4px;
}

.owner-reply-context span,
.notification-device-card .meta {
  color: rgba(226, 232, 240, 0.66);
  font-size: 0.82rem;
}

.owner-reply-form {
  display: grid;
  gap: 12px;
}

.import-upload-zone,
.import-job-status {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px dashed rgba(240, 204, 134, 0.38);
  background:
    linear-gradient(135deg, rgba(240, 204, 134, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(8, 12, 20, 0.52);
}

.import-upload-zone strong {
  color: #fff7e8;
  font-size: 1rem;
}

.import-upload-zone span,
.raw-extraction-text {
  color: rgba(226, 232, 240, 0.72);
}

.import-select-toolbar {
  justify-content: flex-start;
  margin: 12px 0;
}

.raw-extraction-text {
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  padding: 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-browser-notification-status][data-tone="success"] {
  color: #86efac;
}

[data-browser-notification-status][data-tone="warning"] {
  color: #fbd38d;
}

[data-browser-notification-status][data-tone="danger"] {
  color: #fecaca;
}

.diagnostics-summary .kpi strong {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.diagnostics-grid {
  align-items: start;
}

.diagnostics-card {
  border-color: rgba(212, 175, 55, 0.20);
  background:
    linear-gradient(145deg, rgba(12, 17, 28, 0.96), rgba(18, 24, 38, 0.88)),
    rgba(15, 23, 42, 0.92);
}

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

.diagnostic-check,
.diagnostic-action-card,
.diagnostic-device-panel,
.diagnostic-action-result,
.diagnostic-event,
.go-live-item {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.diagnostic-check,
.diagnostic-action-result {
  padding: 16px;
}

.diagnostic-check[data-diagnostic-status="OK"],
.diagnostic-action-result[data-diagnostic-status="OK"] {
  border-color: rgba(52, 211, 153, 0.30);
}

.diagnostic-check[data-diagnostic-status="FAILED"],
.diagnostic-action-result[data-diagnostic-status="FAILED"] {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(127, 29, 29, 0.16);
}

.diagnostic-check[data-diagnostic-status="WARNING"],
.diagnostic-check[data-diagnostic-status="NOT_CONFIGURED"],
.diagnostic-action-result[data-diagnostic-status="WARNING"],
.diagnostic-action-result[data-diagnostic-status="NOT_CONFIGURED"] {
  border-color: rgba(251, 191, 36, 0.36);
  background: rgba(120, 53, 15, 0.14);
}

.diagnostic-check-main,
.diagnostic-event,
.diagnostic-event-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.diagnostic-check-main strong,
.diagnostic-action-card strong,
.diagnostic-event strong {
  display: block;
  color: #f8fafc;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.diagnostic-check-main p,
.diagnostic-action-card p,
.diagnostic-event p {
  margin: 6px 0 0;
  color: #cbd5e1;
  line-height: 1.5;
}

.diagnostic-check-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  color: #94a3b8;
  font-size: 12px;
}

.diagnostic-details {
  margin-top: 12px;
}

.diagnostic-details summary {
  cursor: pointer;
  color: #facc15;
  font-size: 12px;
  font-weight: 700;
}

.diagnostic-details pre {
  max-height: 260px;
  overflow: auto;
  margin: 10px 0 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.62);
  color: #dbeafe;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.45;
}

.diagnostic-device-panel {
  padding: 16px;
  margin-bottom: 14px;
}

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

.diagnostic-action-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.diagnostic-action-card .field.compact {
  gap: 6px;
}

.diagnostics-output {
  margin-top: 16px;
}

.diagnostics-output:empty {
  display: none;
}

.go-live-checklist {
  display: grid;
  gap: 10px;
}

.go-live-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  color: #e2e8f0;
  cursor: pointer;
}

.go-live-item input {
  width: 18px;
  height: 18px;
  accent-color: #d4af37;
}

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

.diagnostic-event {
  padding: 14px 16px;
}

.diagnostic-event-meta {
  align-items: center;
  flex: 0 0 auto;
}

.btn.small {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
}

.danger-text {
  color: #fecaca;
}

.delivery-status,
.ai-details {
  margin-top: 10px;
}

.delivery-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(215, 222, 232, 0.72);
  font-size: 12px;
}

.delivery-status span:first-child {
  color: rgba(216, 192, 138, 0.78);
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ai-details {
  border-top: 1px solid rgba(241, 230, 200, 0.10);
  padding-top: 10px;
}

.ai-details summary {
  cursor: pointer;
  color: rgba(216, 192, 138, 0.86);
  font-size: 12px;
  font-weight: 850;
}

.ai-details[open] {
  padding: 12px;
  border: 1px solid rgba(241, 230, 200, 0.12);
  border-radius: 14px;
  background: rgba(2, 6, 12, 0.30);
}

.ai-details-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  margin-top: 10px;
}

.ai-details-grid span {
  color: rgba(216, 192, 138, 0.74);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.ai-details-grid strong {
  color: rgba(248, 250, 252, 0.90);
  font-size: 12px;
  font-weight: 720;
}

.message-bubble p {
  margin: 8px 0 0;
  color: rgba(248, 250, 252, 0.88);
  line-height: 1.62;
  font-size: 14px;
}

.voice-message-display {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(216, 192, 138, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(216, 192, 138, 0.12), transparent 40%),
    linear-gradient(145deg, rgba(216, 192, 138, 0.085), rgba(15, 23, 42, 0.28)),
    rgba(8, 13, 21, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.voice-message-display strong {
  color: #fff7e8;
  font-size: 14px;
}

.voice-message-display p {
  margin: 0;
  color: rgba(248, 250, 252, 0.92);
}

.voice-transcript {
  display: grid;
  gap: 6px;
}

.voice-transcript span,
.voice-message-fields span {
  color: rgba(216, 192, 138, 0.78);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.voice-transcript p {
  color: #fff7e8;
  font-size: 14px;
}

.voice-message-fields {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 12px;
  padding-top: 4px;
}

.voice-message-fields strong {
  color: rgba(248, 250, 252, 0.92);
  font-size: 12px;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.unscheduled-section {
  margin-top: 16px;
}

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

.unscheduled-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(216, 192, 138, 0.18);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(216, 192, 138, 0.065), rgba(15, 23, 42, 0.42)),
    rgba(8, 13, 21, 0.74);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.unscheduled-card:hover,
.unscheduled-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(233, 200, 133, 0.46);
  background:
    linear-gradient(145deg, rgba(216, 192, 138, 0.11), rgba(15, 23, 42, 0.48)),
    rgba(8, 13, 21, 0.82);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.30), 0 0 0 3px rgba(233, 200, 133, 0.10);
  outline: none;
}

.unscheduled-card:active {
  transform: translateY(0);
}

.unscheduled-card h3 {
  margin: 16px 0 8px;
  color: #fff7e8;
  font-size: 17px;
}

.unscheduled-card p {
  margin: 0;
}

.open-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 860;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.open-card-link::after {
  content: "→";
  font-size: 14px;
  transform: translateY(-1px);
}

.booking-next-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(203, 213, 225, 0.12);
}

.booking-next-actions .meta {
  flex-basis: 100%;
  margin: 2px 0 0;
}

.console-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
  gap: 16px;
  align-items: start;
}

.test-panel,
.preview-panel { min-height: 560px; }

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

.sample-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 10px 0 18px;
}

.sample-btn {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(241, 213, 170, 0.16);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 248, 236, 0.055);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.sample-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(233, 200, 133, 0.36);
  background: rgba(233, 200, 133, 0.09);
}

.chat-preview {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.chat-bubble {
  max-width: 92%;
  padding: 16px;
  border: 1px solid rgba(241, 213, 170, 0.18);
  border-radius: 20px 20px 20px 6px;
  background: linear-gradient(145deg, rgba(255, 248, 236, 0.10), rgba(255, 248, 236, 0.045));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.chat-bubble span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.chat-bubble p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.output-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.output-metric {
  min-height: 82px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(241, 213, 170, 0.12);
  border-radius: 16px;
  background: rgba(255, 248, 236, 0.045);
}

.output-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-card {
  padding: 24px;
  margin-top: 20px;
  border: 1.5px solid rgba(203, 213, 225, 0.20);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 248, 236, 0.055), rgba(12, 18, 28, 0.82)),
    rgba(8, 13, 21, 0.82);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.status-rail {
  position: sticky;
  top: 28px;
  align-self: start;
  border-color: rgba(216, 192, 138, 0.16);
}

.detail-card h3 {
  margin: 0 0 12px;
  font-size: 19px;
}

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

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

.detail-list div {
  min-width: 0;
}

.detail-list dt {
  color: rgba(216, 192, 138, 0.90);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-list dd {
  margin: 5px 0 0;
  color: #f8fafc;
  overflow-wrap: anywhere;
}

.safety-card {
  border-color: rgba(121, 216, 176, 0.22);
  background:
    linear-gradient(145deg, rgba(121, 216, 176, 0.070), rgba(15, 23, 42, 0.38)),
    rgba(15, 23, 42, 0.46);
}

.detection-card {
  border-color: rgba(216, 192, 138, 0.20);
  background:
    radial-gradient(circle at 96% 0%, rgba(216, 192, 138, 0.11), transparent 34%),
    linear-gradient(145deg, rgba(226, 232, 240, 0.070), rgba(15, 23, 42, 0.40));
}

.detection-actions {
  margin-top: 12px;
}

.detection-cta {
  min-width: 220px;
  color: #23170e;
  border: 0;
  background: linear-gradient(135deg, var(--champagne), var(--gold) 58%, var(--rose));
  box-shadow: 0 18px 48px rgba(233, 200, 133, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.detection-result {
  margin: 18px 0 0;
  padding: 22px;
  border: 1.5px solid rgba(203, 213, 225, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(241, 230, 200, 0.10), rgba(8, 13, 21, 0.88)),
    rgba(5, 7, 11, 0.86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.detection-result.success {
  border-color: rgba(121, 216, 176, 0.38);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), inset 4px 0 0 rgba(121, 216, 176, 0.78);
}

.detection-result.warning {
  border-color: rgba(216, 192, 138, 0.40);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), inset 4px 0 0 rgba(216, 192, 138, 0.78);
}

.diagnostic-note {
  margin-top: 16px !important;
  padding: 14px 15px;
  border: 1px solid rgba(216, 192, 138, 0.24);
  border-radius: 16px;
  color: #efe6d4 !important;
  background: rgba(216, 192, 138, 0.075);
}

.stale-note[hidden],
.detection-result[hidden] {
  display: none;
}

.detection-details {
  margin-top: 12px;
}

.detection-apply {
  margin-top: 14px;
  min-width: 240px;
}

.whatsapp-ai-mode-card {
  border-color: rgba(216, 192, 138, 0.24);
  background:
    radial-gradient(circle at 92% 4%, rgba(216, 192, 138, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(255, 248, 236, 0.060), rgba(8, 13, 21, 0.86));
}

.mode-segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 18px 0;
  padding: 6px;
  border: 1px solid rgba(241, 230, 200, 0.13);
  border-radius: 18px;
  background: rgba(2, 6, 12, 0.42);
}

.mode-button {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(203, 213, 225, 0.12);
  border-radius: 14px;
  color: var(--soft);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(15, 23, 42, 0.42)),
    rgba(15, 23, 42, 0.60);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.060);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.mode-button strong {
  display: block;
  margin-bottom: 6px;
  color: #fff7e8;
  font-size: 14px;
  font-weight: 850;
}

.mode-button span {
  display: block;
  color: rgba(226, 232, 240, 0.72);
  font-size: 11px;
  line-height: 1.45;
}

.mode-button:hover,
.mode-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(216, 192, 138, 0.52);
  background:
    linear-gradient(145deg, rgba(216, 192, 138, 0.13), rgba(15, 23, 42, 0.58)),
    rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24), 0 0 0 3px rgba(216, 192, 138, 0.12);
  outline: none;
}

.mode-button.active {
  border-color: rgba(216, 192, 138, 0.78);
  background:
    linear-gradient(135deg, rgba(216, 192, 138, 0.26), rgba(120, 80, 40, 0.18)),
    rgba(19, 24, 33, 0.86);
  box-shadow: 0 14px 34px rgba(216, 192, 138, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mode-status-message {
  min-height: 22px;
  margin-top: 12px !important;
  color: rgba(226, 232, 240, 0.82) !important;
  font-size: 13px;
  font-weight: 750;
}

.mode-status-message[data-tone="success"] { color: #9de8c3 !important; }
.mode-status-message[data-tone="danger"] { color: #ffb4b4 !important; }
.mode-status-message[data-tone="info"] { color: #d8c08a !important; }

form > .btn.primary[type="submit"] {
  min-width: 180px;
  min-height: 40px;
}

.settings-save-bar {
  position: sticky;
  bottom: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(216, 192, 138, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(13, 18, 27, 0.94), rgba(15, 23, 42, 0.82)),
    rgba(5, 7, 11, 0.88);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
}

.settings-save-bar strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.settings-save-bar span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.setup-progress-card {
  overflow: hidden;
}

.setup-progress-track {
  height: 10px;
  margin: 16px 0 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.setup-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(216, 192, 138, 0.96), rgba(255, 245, 196, 0.86));
  box-shadow: 0 0 22px rgba(216, 192, 138, 0.26);
}

.setup-checklist,
.setup-choice-grid,
.service-card-list {
  display: grid;
  gap: 12px;
}

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

.setup-choice-card {
  display: grid;
  gap: 8px;
  min-height: 136px;
  padding: 18px;
  border: 1px solid rgba(216, 192, 138, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-decoration: none;
}

.setup-choice-card.selected {
  border-color: rgba(216, 192, 138, 0.42);
  background: rgba(216, 192, 138, 0.10);
}

.setup-choice-card.disabled {
  opacity: 0.58;
}

.setup-choice-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.setup-check-item,
.service-catalog-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(216, 192, 138, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-decoration: none;
}

.service-catalog-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

.setup-check-item:hover,
.service-catalog-card:hover {
  border-color: rgba(216, 192, 138, 0.34);
  background: rgba(255, 255, 255, 0.065);
}

.setup-check-item.complete {
  border-color: rgba(52, 211, 153, 0.28);
}

.setup-check-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(216, 192, 138, 0.13);
  color: var(--gold);
  font-weight: 900;
}

.setup-check-item strong,
.setup-check-item em {
  display: block;
}

.setup-check-item em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.catalog-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto auto;
  gap: 10px;
  margin-bottom: 18px;
}

.service-form {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.compact-textarea {
  min-height: 92px;
}

.bulk-textarea {
  min-height: 150px;
}

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

.toggle-row label,
.toggle-line {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 192, 138, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 240, 232, 0.86);
  font-size: 13px;
  font-weight: 700;
}

.service-card-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  min-width: 0;
}

.service-card-title strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.service-catalog-card.inactive {
  opacity: 0.68;
}

.service-catalog-card p {
  margin: 0 0 6px;
  color: rgba(244, 240, 232, 0.84);
  overflow-wrap: anywhere;
}

.service-catalog-card .toolbar {
  justify-content: flex-end;
}

.service-catalog-card .toolbar form,
.service-catalog-card .toolbar .btn {
  min-width: 0;
}

.service-catalog-card .meta,
.bulk-preview,
.import-fields,
.import-review-form,
.import-review-list,
.import-row-footer {
  min-width: 0;
  max-width: 100%;
}

.bulk-preview {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.import-upload-placeholder {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px dashed rgba(216, 192, 138, 0.34);
  border-radius: 18px;
  background: rgba(216, 192, 138, 0.08);
}

.import-upload-placeholder strong,
.import-upload-placeholder span {
  display: block;
}

.import-upload-placeholder span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.import-review-form,
.import-review-list {
  display: grid;
  gap: 14px;
}

.import-review-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.import-review-row.needs-review {
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(251, 191, 36, 0.055);
}

.import-select {
  display: grid;
  place-items: center;
  align-self: start;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(216, 192, 138, 0.2);
  border-radius: 16px;
  background: rgba(9, 12, 18, 0.42);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.import-fields {
  display: grid;
  gap: 12px;
}

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

.import-save-bar {
  margin-top: 6px;
}

.onboarding-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.onboarding-steps {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(216, 192, 138, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow-soft);
}

.onboarding-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
}

.onboarding-step.active {
  border-color: rgba(216, 192, 138, 0.42);
  background: rgba(216, 192, 138, 0.11);
}

.onboarding-step.complete {
  border-color: rgba(52, 211, 153, 0.24);
}

.onboarding-step span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(216, 192, 138, 0.14);
  color: var(--gold);
  font-weight: 900;
}

.onboarding-step strong,
.onboarding-step em {
  display: block;
}

.onboarding-step em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.onboarding-panel {
  min-height: 520px;
}

.wizard-heading {
  margin-bottom: 22px;
}

.wizard-heading h2 {
  margin: 4px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
}

.wizard-heading p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
}

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

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 8px;
}

.setup-dashboard-strip {
  margin: 18px 0;
}

.setup-missing-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

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

.legal-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 18px;
  background:
    radial-gradient(circle at top left, rgba(216, 192, 138, 0.18), transparent 34%),
    linear-gradient(135deg, #070a10 0%, #101723 52%, #070a10 100%);
}

.legal-card {
  width: min(860px, 100%);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(216, 192, 138, 0.24);
  border-radius: 28px;
  background: rgba(10, 14, 22, 0.88);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.legal-card h1 {
  margin: 10px 0 24px;
  color: var(--text);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
}

.legal-copy {
  display: grid;
  gap: 16px;
  color: rgba(244, 240, 232, 0.86);
  font-size: 16px;
  line-height: 1.75;
}

.legal-copy p { margin: 0; }

.legal-copy a,
.legal-back-link {
  color: var(--gold);
  text-decoration: none;
}

.legal-copy a:hover,
.legal-back-link:hover { text-decoration: underline; }

.legal-back-link {
  display: inline-flex;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .console-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  html, body, .app, .main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .app { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; padding-top: 18px; }
  .sidebar-footer { position: static; margin-top: 18px; }
  .main { padding: 18px max(14px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
  .login-shell { grid-template-columns: 1fr; }
  .login-story { min-height: auto; padding: 30px; }
  .login-card { padding: 30px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .grid,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .grid > *,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-12 {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
  }

  .card {
    width: 100%;
    max-width: 100%;
    padding: 18px;
    overflow: visible;
  }

  .card-header,
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .card-header h2,
  .card-header h3,
  .card-header p,
  .page-title h1,
  .page-title p,
  .empty-state,
  .field,
  .field label,
  .meta {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .topbar { flex-direction: column; align-items: stretch; }
  .topbar-actions .support-entry-button { width: 100%; }
  .support-modal { padding: 24px 18px; border-radius: 22px; }
  .support-actions .btn,
  .support-submit-row .btn { width: 100%; }
  .mode-segmented { grid-template-columns: 1fr; }
  .mode-button { min-height: 80px; }
  .support-context-preview,
  .support-common-grid,
  .support-summary-grid,
  .support-center-grid,
  .support-filter-form,
  .support-admin-form { grid-template-columns: 1fr; }
  .conversation-filter-form,
  .conversation-control-card,
  .conversation-workspace,
  .customer-context-card { grid-template-columns: 1fr; }
  .conversation-side-panel,
  .sticky-conversation-header,
  .sticky-section-header { position: static; }
  .conversation-card-actions {
    justify-content: flex-start;
  }
  .conversation-preview {
    white-space: normal;
  }
  .operator-composer {
    position: static;
  }
  .support-ticket-detail-card { position: static; }
  .form-grid,
  .output-grid,
  .detail-list,
  .catalog-filter {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .input,
  .btn,
  select.input,
  textarea.input,
  .catalog-filter .btn,
  .catalog-filter a.btn,
  .service-form .btn,
  .import-upload-placeholder,
  .bulk-textarea {
    width: 100%;
    max-width: 100%;
  }

  select.input {
    min-height: 56px;
    background-position:
      calc(100% - 18px) 22px,
      calc(100% - 12px) 22px;
  }
  .schedule-control-row { grid-template-columns: 1fr; }
  .schedule-toolbar .btn,
  .filter-apply,
  .view-switcher,
  .view-switcher a { width: 100%; }
  .branch-card { padding: 16px; }
  .branch-card-header { flex-direction: column; align-items: stretch; }
  .manual-booking-bar { flex-direction: column; align-items: stretch; }
  .schedule-summary { grid-template-columns: 1fr; }
  .schedule-week-grid { grid-template-columns: 1fr; overflow-x: visible; }
  .schedule-month-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-slot { grid-template-columns: 1fr; }
  .schedule-time {
    border-right: 0;
    border-bottom: 1px solid rgba(203, 213, 225, 0.10);
    text-align: left;
  }
  .schedule-booking-card summary { flex-direction: column; align-items: flex-start; }
  .booking-card-meta { justify-content: flex-start; }
  .unscheduled-grid { grid-template-columns: 1fr; }
  .quick-action-panel { grid-template-columns: 1fr; }
  .setup-check-item,
  .setup-choice-grid,
  .service-catalog-card,
  .import-review-row { grid-template-columns: 1fr; align-items: stretch; }
  .setup-choice-card,
  .service-catalog-card,
  .import-review-row {
    width: 100%;
    max-width: 100%;
  }
  .service-catalog-card {
    gap: 14px;
  }
  .service-card-title,
  .import-row-footer,
  .toolbar,
  .toggle-row {
    width: 100%;
    align-items: stretch;
  }
  .service-card-title .pill,
  .import-row-footer .pill,
  .feature-row .pill {
    max-width: 100%;
    justify-content: flex-start;
    text-align: left;
  }
  .toggle-row label,
  .toggle-line {
    width: 100%;
    align-items: flex-start;
    line-height: 1.45;
  }
  .import-select {
    display: flex;
    justify-content: flex-start;
    width: 100%;
  }
  .import-save-bar,
  .settings-save-bar {
    position: static;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .onboarding-shell { grid-template-columns: 1fr; }
  .onboarding-steps { position: static; }
  .wizard-actions { justify-content: stretch; }
  .wizard-actions .btn { flex: 1 1 160px; }
  .summary-grid { grid-template-columns: 1fr; }
  .service-catalog-card .toolbar,
  .service-catalog-card .toolbar form,
  .service-catalog-card .toolbar .btn { justify-content: flex-start; width: 100%; }
  .diagnostics-action-grid { grid-template-columns: 1fr; }
  .diagnostic-check-main,
  .diagnostic-event,
  .diagnostic-event-meta {
    flex-direction: column;
    align-items: stretch;
  }
  .diagnostic-event-meta .btn { width: 100%; }
  .ready-row { display: grid; grid-template-columns: 1fr; }
  .status-value { text-align: left; }
  .settings-save-bar { position: static; flex-direction: column; align-items: stretch; }
}
