@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --paper: #f5f0e8;
  --surface: #fffaf1;
  --surface-strong: #ffffff;
  --ink: #17202a;
  --muted: #5c6570;
  --line: #d8cfc1;
  --teal: #0d736e;
  --teal-deep: #084c4b;
  --coral: #d15a42;
  --gold: #b77a18;
  --mist: #dbe8ea;
  --sage: #889d83;
  --shadow: 0 18px 60px rgba(23, 32, 42, 0.13);
  --dashboard-gap: 14px;
  --panel-pad: 16px;
}

/* Marketing-aligned application theme */
body.dashboard-active {
  background:
    radial-gradient(circle at 92% 0%, rgba(64, 183, 166, 0.12), transparent 30rem),
    #f7f4ed;
  color: #173140;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

body.dashboard-active h1,
body.dashboard-active h2,
body.dashboard-active h3,
body.dashboard-active .brand-lockup,
body.dashboard-active button,
body.dashboard-active .dashboard-jump-nav a {
  font-family: "Manrope", "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

body.dashboard-active .dashboard {
  gap: 16px;
  padding: clamp(12px, 1.5vw, 22px);
}

body.dashboard-active .app-bar {
  min-height: 94px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px clamp(18px, 2.6vw, 32px);
  background:
    radial-gradient(circle at 80% 20%, rgba(64, 183, 166, 0.18), transparent 20rem),
    #102d3c;
  color: white;
  box-shadow: 0 20px 52px rgba(9, 36, 49, 0.18);
}

body.dashboard-active .dashboard-lockup img {
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

body.dashboard-active .dashboard-lockup strong { color: #fff; }
body.dashboard-active .dashboard-lockup span { color: #62d1bf; }

body.dashboard-active .app-bar .quiet-button {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.dashboard-active .app-bar .quiet-button:hover,
body.dashboard-active .app-bar .quiet-button:focus-visible {
  border-color: rgba(98, 209, 191, 0.6);
  background: rgba(98, 209, 191, 0.16);
}

body.dashboard-active .dashboard-jump-nav {
  border-color: rgba(8, 124, 115, 0.14);
  border-radius: 12px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(16, 45, 60, 0.08);
  backdrop-filter: blur(16px);
}

body.dashboard-active .dashboard-jump-nav a {
  min-height: 36px;
  border-color: #d7e4e1;
  padding: 0 14px;
  background: #fff;
  color: #102d3c;
  font-size: 0.78rem;
  font-weight: 800;
}

body.dashboard-active .dashboard-jump-nav a:hover,
body.dashboard-active .dashboard-jump-nav a:focus-visible {
  border-color: #40b7a6;
  background: #eaf7f3;
  color: #087c73;
}

body.dashboard-active .metric,
body.dashboard-active .panel,
body.dashboard-active .dashboard-card-group,
body.dashboard-active .dashboard-card-group > section,
body.dashboard-active .settings-hub,
body.dashboard-active .beta-card,
body.dashboard-active .team-card,
body.dashboard-active .billing-card,
body.dashboard-active .email-card,
body.dashboard-active .sms-card,
body.dashboard-active .compliance-card,
body.dashboard-active .activity-card,
body.dashboard-active .support-inbox-card,
body.dashboard-active .issues-card,
body.dashboard-active .readiness-card,
body.dashboard-active .help-card,
body.dashboard-active .trust-card,
body.dashboard-active .account-card,
body.dashboard-active .setup-card {
  border-color: #dbe4e3;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
}

body.dashboard-active .metric {
  min-height: 72px;
  padding: 14px 16px;
  box-shadow: 0 10px 28px rgba(16, 45, 60, 0.05);
}

body.dashboard-active .metric span { color: #65757d; }
body.dashboard-active .metric strong { color: #102d3c; font-family: "Manrope", sans-serif; }

body.dashboard-active .dashboard-card-group {
  border-color: rgba(8, 124, 115, 0.1);
  padding: 16px;
  background: rgba(234, 247, 243, 0.34);
}

body.dashboard-active .dashboard-card-group > section {
  box-shadow: 0 10px 28px rgba(16, 45, 60, 0.055);
}

body.dashboard-active .section-heading h2,
body.dashboard-active .dashboard-group-heading h2 { color: #102d3c; }

body.dashboard-active .eyebrow {
  color: #087c73;
  letter-spacing: 0.1em;
  opacity: 1;
}

body.dashboard-active input,
body.dashboard-active select,
body.dashboard-active textarea {
  border-color: #d8e2df;
  border-radius: 9px;
  background: #fff;
  color: #173140;
  box-shadow: inset 0 1px 2px rgba(16, 45, 60, 0.025);
}

body.dashboard-active input:focus,
body.dashboard-active select:focus,
body.dashboard-active textarea:focus {
  border-color: #40b7a6;
  outline: 3px solid rgba(64, 183, 166, 0.14);
  box-shadow: none;
}

body.dashboard-active button:not(.quiet-button):not(.danger-button),
body.dashboard-active .button-link {
  border-radius: 9px;
  background: #087c73;
  color: #fff;
  box-shadow: 0 8px 18px rgba(8, 124, 115, 0.12);
}

body.dashboard-active button:not(.quiet-button):not(.danger-button):hover,
body.dashboard-active button:not(.quiet-button):not(.danger-button):focus-visible {
  background: #065f59;
  transform: translateY(-1px);
}

body.dashboard-active .quiet-button,
body.dashboard-active .repair-links a {
  border-color: #d5dfdc;
  border-radius: 9px;
  background: #fff;
  color: #173140;
}

body.dashboard-active .quiet-button:hover,
body.dashboard-active .repair-links a:hover {
  border-color: #40b7a6;
  background: #eaf7f3;
  color: #087c73;
}

body.dashboard-active .pill,
body.dashboard-active .channel-pill,
body.dashboard-active .delivery-pill,
body.dashboard-active .badge {
  min-height: 32px;
  background: #e2f0ec;
  color: #075f59;
}

body.dashboard-active .channel-pill { background: #f5ead6; color: #78500e; }
body.dashboard-active .badge.warning { background: #f9e3dd; color: #963c28; }

body.dashboard-active .job-button {
  border-radius: 10px;
  background: #fff;
}

body.dashboard-active .job-button.active,
body.dashboard-active .job-button[aria-current="true"] {
  border-color: #087c73;
  background: #ffffff !important;
  color: #102f3e;
  box-shadow: inset 4px 0 0 #087c73;
}

body.dashboard-active .job-card.selected {
  border-color: #8bc9c1;
  box-shadow: 0 12px 28px rgba(8, 124, 115, 0.1);
}

body.dashboard-active .job-customer {
  color: #102f3e;
  font-size: 1.02rem;
  line-height: 1.25;
}

body.dashboard-active .job-vehicle {
  color: #263f4b !important;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.4;
}

body.dashboard-active .job-vehicle-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
}

body.dashboard-active .job-demo-badge {
  border: 1px solid #d9b66a;
  border-radius: 999px;
  padding: 2px 7px;
  background: #fff6dc;
  color: #77520e;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.dashboard-active .job-progress {
  border: 1px solid rgba(180, 69, 46, 0.12);
  background: #f9e6e1;
  color: #8e3524;
}

body.dashboard-active .job-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

body.dashboard-active .job-vehicle-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid #c9e5df;
  border-radius: 12px;
  background-color: #e7f5f1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24' fill='none' stroke='%23087c73' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 15.5h2l2.4-5.2A3 3 0 0 1 10.1 8.5h8.8a3 3 0 0 1 2.5 1.3l2.2 3.2 4.4 1.5v4H3z'/%3E%3Cpath d='M8 13h14M11 9l-1.8 4M18 9l3 4'/%3E%3Ccircle cx='8' cy='18.5' r='2.5' fill='%23ffffff'/%3E%3Ccircle cx='24' cy='18.5' r='2.5' fill='%23ffffff'/%3E%3Cpath d='M4 15.5h3M25 14h2'/%3E%3C/svg%3E"), linear-gradient(145deg, #eef9f6, #dff2ed);
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: 31px 23px, 100% 100%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

body.dashboard-active .job-progress-track {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfeae7;
}

body.dashboard-active .job-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #087c73, #42b7a5);
}

body.dashboard-active .job-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.dashboard-active .job-stage,
body.dashboard-active .job-eta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d6e5e1;
  border-radius: 999px;
  padding: 6px 10px;
  background: #ffffff;
  color: #173b49;
  font-size: 0.78rem;
  font-weight: 850;
}

body.dashboard-active .job-detail-icon {
  width: 15px;
  height: 15px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

body.dashboard-active .job-stage-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087c73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.4 2.4-2.8-2.8Z'/%3E%3C/svg%3E");
}

body.dashboard-active .job-eta-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087c73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
}

body.dashboard-active .stage-options label {
  border-color: #d5dfdc;
  border-radius: 8px;
  background: #fff;
  color: #173140;
}

body.dashboard-active .stage-options label:has(input:checked) {
  border-color: #087c73;
  background: #087c73;
  color: #fff;
}

body.dashboard-active .customer-preview,
body.dashboard-active .message-preview,
body.dashboard-active .tracking-preview {
  border-color: #dbe4e3;
  border-radius: 10px;
  background: #fbfcfa;
}

@media (max-width: 760px) {
  body.dashboard-active .dashboard { padding: 9px; }
  body.dashboard-active .app-bar { border-radius: 12px; padding: 14px; }
  body.dashboard-active .dashboard-jump-nav { top: 5px; padding: 6px; }
  body.dashboard-active .dashboard-card-group { padding: 10px; }
  body.dashboard-active .metric { min-height: 62px; padding: 11px 12px; }
}

/* Shared, optically centered Settings cog for header and sidebar. */
body.dashboard-active .dashboard-jump-nav a:nth-child(9)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087c73' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.09a2 2 0 0 1 1 1.73v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.38a2 2 0 0 0-.73-2.73l-.15-.09a2 2 0 0 1-1-1.74v-.51a2 2 0 0 1 1-1.73l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
}

body.dashboard-active #settings-button::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.09a2 2 0 0 1 1 1.73v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.38a2 2 0 0 0-.73-2.73l-.15-.09a2 2 0 0 1-1-1.74v-.51a2 2 0 0 1 1-1.73l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

/* Final notification-center isolation. Generic dashboard button rules are
   intentionally prevented from overriding the bell and notification cards. */
body.dashboard-active button#notification-toggle.header-alert {
  position: relative;
  display: grid;
  width: 46px;
  min-width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
}

body.dashboard-active button#notification-toggle.header-alert::before {
  width: 23px;
  height: 23px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E") center / contain no-repeat;
  content: "";
}

body.dashboard-active button#notification-toggle.header-alert:hover,
body.dashboard-active button#notification-toggle.header-alert:focus-visible,
body.dashboard-active button#notification-toggle.header-alert[aria-expanded="true"] {
  border-color: rgba(98, 213, 198, 0.72);
  background: rgba(98, 213, 198, 0.15);
  box-shadow: 0 0 0 3px rgba(98, 213, 198, 0.12);
}

body.dashboard-active button#notification-toggle.header-alert > span {
  top: -6px;
  right: -6px;
  z-index: 2;
  min-width: 21px;
  height: 21px;
  border: 2px solid #073b45;
  background: #d85d45;
  line-height: 1;
}

body.dashboard-active #notification-panel.notification-panel {
  width: min(420px, calc(100vw - 32px));
  border-color: #ccdcda;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(8, 35, 43, 0.28), 0 4px 14px rgba(8, 35, 43, 0.1);
}

body.dashboard-active #notification-panel > header {
  align-items: center;
  padding: 19px 18px 16px;
  background: linear-gradient(135deg, #edf8f5 0%, #fff 72%);
}

body.dashboard-active #notification-panel #notification-list.notification-list {
  gap: 9px;
  padding: 10px;
  background: #f7faf9;
}

body.dashboard-active #notification-panel #notification-list button.notification-item {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid #dce8e5;
  border-radius: 13px;
  padding: 14px;
  background: #fff;
  color: #173140;
  box-shadow: 0 4px 12px rgba(22, 55, 63, 0.05);
}

body.dashboard-active #notification-panel #notification-list button.notification-item.unread {
  border-color: #b9ddd6;
  background: linear-gradient(100deg, #ebf8f5 0%, #f8fcfb 58%, #fff 100%);
  box-shadow: inset 4px 0 #0e8b81, 0 6px 16px rgba(22, 89, 81, 0.08);
}

body.dashboard-active #notification-panel #notification-list button.notification-item:hover,
body.dashboard-active #notification-panel #notification-list button.notification-item:focus-visible {
  border-color: #75bcb2;
  background: #f3faf8;
  color: #173140;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(22, 89, 81, 0.12);
}

body.dashboard-active #notification-panel .notification-item-icon {
  width: 44px;
  height: 44px;
  border: 1px solid #b8dcd6;
  border-radius: 12px;
  background-color: #dff2ee;
  color: #087c73;
}

body.dashboard-active #notification-panel .notification-app_status {
  background-color: #087c73;
  background-image: url("./assets/statusline-icon.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 31px;
}

body.dashboard-active #notification-panel .notification-app_status::before { content: none; }
body.dashboard-active #notification-panel .notification-item-copy { gap: 4px; }
body.dashboard-active #notification-panel .notification-item-source { color: #087c73; font-size: .66rem; }
body.dashboard-active #notification-panel .notification-item-copy strong { color: #102d3c; font-size: .9rem; line-height: 1.25; }
body.dashboard-active #notification-panel .notification-item-copy > span:not(.notification-item-source) {
  display: -webkit-box;
  overflow: hidden;
  color: #4e626c;
  font-size: .77rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
body.dashboard-active #notification-panel .notification-item-copy time { color: #72868e; font-size: .69rem; font-weight: 700; }
body.dashboard-active #notification-panel .notification-unread {
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #0e8b81;
}

body.dashboard-active #notification-panel > footer {
  padding: 10px;
  border-top: 1px solid #e1ebe8;
  background: #fff;
}

body.dashboard-active #notification-panel #notification-view-all.quiet-button {
  width: 100%;
  border: 1px solid #c7dcd7;
  border-radius: 10px;
  padding: 10px 14px;
  background: #f5faf8;
  color: #087c73;
  font-weight: 800;
  box-shadow: none;
}

body.dashboard-active #notification-panel #notification-view-all.quiet-button:hover,
body.dashboard-active #notification-panel #notification-view-all.quiet-button:focus-visible {
  border-color: #75bcb2;
  background: #eaf7f3;
  color: #075f59;
}

body.dashboard-active .dashboard-jump-nav a[href="#conversation-section"] {
  position: relative;
}

body.dashboard-active .dashboard-jump-nav .nav-unread-badge {
  position: static;
  z-index: 2;
  display: grid;
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 999px;
  padding: 0 4px;
  background: #d85d45;
  color: #fff;
  font-size: .64rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(126, 42, 28, .2);
}

body.dashboard-active .dashboard-jump-nav a.active .nav-unread-badge {
  border-color: rgba(255, 255, 255, .72);
  background: #e2644b;
}

body.dashboard-active .dashboard-jump-nav .nav-unread-badge.hidden {
  display: none;
}

body.dashboard-active .account-bar > div.shop-menu {
  position: relative;
  display: block;
  min-width: 0 !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  text-align: left;
}

body.dashboard-active .account-bar > div.shop-menu::after { content: none !important; }

body.dashboard-active #shop-menu-toggle.shop-menu-toggle {
  display: flex;
  min-width: 218px;
  min-height: 54px;
  gap: 11px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, .23);
  border-radius: 11px;
  padding: 8px 12px 8px 14px;
  background: rgba(255, 255, 255, .075);
  color: #fff;
  text-align: left;
  box-shadow: none;
}

body.dashboard-active #shop-menu-toggle:hover,
body.dashboard-active #shop-menu-toggle:focus-visible,
body.dashboard-active #shop-menu-toggle[aria-expanded="true"] {
  border-color: rgba(98, 209, 191, .64);
  background: rgba(98, 209, 191, .14);
  box-shadow: 0 0 0 3px rgba(98, 209, 191, .1);
}

body.dashboard-active #shop-menu-toggle .shop-menu-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

body.dashboard-active #shop-menu-toggle .shop-menu-copy strong,
body.dashboard-active #shop-menu-toggle .shop-menu-copy span {
  grid-column: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.dashboard-active #shop-menu-toggle .shop-menu-copy strong { color: #fff; font-size: .87rem; }
body.dashboard-active #shop-menu-toggle .shop-menu-copy span { color: rgba(255, 255, 255, .76); font-size: .73rem; }

body.dashboard-active .shop-menu-chevron {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 1.8px solid rgba(255, 255, 255, .78);
  border-bottom: 1.8px solid rgba(255, 255, 255, .78);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

body.dashboard-active #shop-menu-toggle[aria-expanded="true"] .shop-menu-chevron {
  transform: translateY(2px) rotate(-135deg);
}

body.dashboard-active #shop-menu-panel.shop-menu-panel {
  position: absolute;
  z-index: 85;
  top: calc(100% + 11px);
  right: 0;
  display: block;
  width: min(330px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid #cadbd7;
  border-radius: 16px;
  background: #fff;
  color: #102d3c;
  text-align: left;
  box-shadow: 0 24px 70px rgba(8, 35, 43, .27), 0 4px 14px rgba(8, 35, 43, .09);
}

body.dashboard-active #shop-menu-panel.hidden { display: none; }

body.dashboard-active #shop-menu-panel > header {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #dfe9e6;
  background: linear-gradient(135deg, #edf8f5, #fff 74%);
}

body.dashboard-active #shop-menu-panel > header > span:last-child { display: grid; gap: 2px; }
body.dashboard-active #shop-menu-panel small { color: #60747d; font-size: .69rem; line-height: 1.35; }
body.dashboard-active #shop-menu-panel > header small { color: #087c73; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
body.dashboard-active #shop-menu-panel > header strong { color: #102d3c; font-size: .9rem; }

body.dashboard-active .shop-menu-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 11px;
  background: #087c73;
}

body.dashboard-active .shop-menu-mark img { width: 31px; height: 31px; object-fit: contain; }

body.dashboard-active #shop-menu-panel .shop-menu-actions {
  display: grid;
  gap: 5px;
  padding: 9px;
}

body.dashboard-active #shop-menu-panel .shop-menu-actions > button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  width: 100%;
  gap: 10px;
  align-items: center;
  border: 0;
  border-radius: 10px;
  padding: 10px;
  background: transparent;
  color: #173140;
  text-align: left;
  box-shadow: none;
}

body.dashboard-active #shop-menu-panel .shop-menu-actions > button:hover,
body.dashboard-active #shop-menu-panel .shop-menu-actions > button:focus-visible {
  background: #edf8f5;
  color: #075f59;
}

body.dashboard-active #shop-menu-panel .shop-menu-actions > button > span:first-child {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  background: #dff1ed;
  color: transparent;
  font-size: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 19px;
}

body.dashboard-active #shop-menu-panel .shop-menu-actions > button:nth-child(1) > span:first-child {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087c73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5M9 21v-7h6v7'/%3E%3C/svg%3E");
}

body.dashboard-active #shop-menu-panel .shop-menu-actions > button:nth-child(2) > span:first-child {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087c73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

body.dashboard-active #shop-menu-panel .shop-menu-actions > button:nth-child(3) > span:first-child {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087c73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
}

body.dashboard-active #shop-menu-panel .shop-menu-actions > button > span:last-child {
  display: grid;
  min-width: 0;
  grid-column: 2;
  gap: 2px;
  color: #173140;
}
body.dashboard-active #shop-menu-panel .shop-menu-actions strong { color: inherit; font-size: .78rem; }

body.dashboard-active .shop-menu-note {
  margin: 0;
  border-top: 1px solid #e3ece9;
  padding: 11px 15px 13px;
  background: #f8fbfa;
  color: #6b7f87;
  font-size: .68rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  body.dashboard-active #shop-menu-toggle.shop-menu-toggle { min-width: 0; }
  body.dashboard-active #shop-menu-panel.shop-menu-panel { position: fixed; top: 82px; right: 12px; left: 12px; width: auto; }
}


/* Compact dashboard preview of the real customer tracking experience. */
body.dashboard-active .dashboard[data-view="customer"] .preview-panel {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body.dashboard-active .customer-preview-card {
  gap: 16px;
  border-color: #dbe6e3;
  border-radius: 16px;
  padding: clamp(20px, 3vw, 30px);
  background: #fff;
  box-shadow: 0 14px 38px rgba(17, 54, 66, 0.07);
}

body.dashboard-active .customer-preview-card > .section-heading {
  margin-bottom: 0;
  border-bottom: 1px solid #e4ecea;
  padding-bottom: 14px;
}

body.dashboard-active .customer-preview-card .quiet-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid #d5e2df;
  border-radius: 9px;
  padding: 0 14px;
  background: #fff;
  color: #08776f;
  font-weight: 900;
}

body.dashboard-active .customer-preview-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border-radius: 14px;
  padding: 20px 22px;
  background:
    radial-gradient(circle at 4% 5%, rgba(82, 199, 185, 0.16), transparent 18rem),
    #f5fbf9;
}

body.dashboard-active .customer-preview-intro h3 {
  margin: 3px 0 0;
  color: #10283b;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  letter-spacing: -0.045em;
}

body.dashboard-active .customer-preview-intro > p:last-child {
  max-width: 300px;
  margin: 0;
  color: #607681;
  font-size: 0.84rem;
  text-align: right;
}

body.dashboard-active .customer-preview-phone {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 14px 20px;
  border-color: #dce8e5;
  border-radius: 14px;
  padding: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(82, 199, 185, 0.1), transparent 18rem),
    #fff;
}

body.dashboard-active .customer-preview-phone > div:first-child,
body.dashboard-active .customer-preview-phone .portal-progress,
body.dashboard-active .customer-preview-phone > p {
  grid-column: 1;
}

body.dashboard-active .customer-preview-phone > dl {
  grid-column: 2;
  grid-row: 1 / span 3;
  grid-template-columns: 1fr;
}

body.dashboard-active .customer-preview-phone dl > div {
  display: grid;
  align-content: center;
  min-height: 82px;
  border: 1px solid #dce8e5;
  border-radius: 12px;
  padding: 13px 15px;
  background: #fbfdfc;
}

body.dashboard-active .customer-preview-phone > div:first-child > span {
  color: #08776f;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.dashboard-active .customer-preview-phone strong {
  margin-top: 7px;
  color: #173044;
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  letter-spacing: -0.03em;
}

body.dashboard-active .customer-preview-phone dt {
  color: #6b7d86;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.dashboard-active .customer-preview-phone dd {
  margin-top: 5px;
  color: #173044;
  font-size: 0.95rem;
}

body.dashboard-active .customer-preview-phone > p {
  margin: 0;
  border-left: 4px solid #2d968d;
  padding: 8px 0 8px 12px;
  color: #526a75;
  font-weight: 750;
}

body.dashboard-active .customer-preview-phone .portal-progress.mini {
  height: 11px;
}

body.dashboard-active .preview-checks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.dashboard-active .preview-check {
  position: relative;
  min-height: 68px;
  gap: 3px;
  border-color: #dce8e5;
  border-radius: 12px;
  padding: 12px 14px 12px 48px;
  background: #fbfdfc;
}

body.dashboard-active .preview-check::before {
  content: "✓";
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #dff3ee;
  color: #08776f;
  font-size: 0.76rem;
  font-weight: 950;
}

body.dashboard-active .preview-check.blocked {
  border-color: #efd9c4;
  background: #fffaf3;
}

body.dashboard-active .preview-check.blocked::before {
  content: "!";
  background: #f8e9d6;
  color: #986116;
}

body.dashboard-active .preview-check strong {
  color: #173044;
  font-size: 0.86rem;
}

body.dashboard-active .preview-check span {
  color: #667a84;
  font-size: 0.78rem;
  line-height: 1.4;
}

@media (max-width: 760px) {
  body.dashboard-active .customer-preview-intro {
    display: grid;
  }

  body.dashboard-active .customer-preview-intro > p:last-child {
    text-align: left;
  }

  body.dashboard-active .customer-preview-phone {
    grid-template-columns: 1fr;
  }

  body.dashboard-active .customer-preview-phone > dl {
    grid-column: 1;
    grid-row: auto;
  }

  body.dashboard-active .preview-checks {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.dashboard-active *,
  body.dashboard-active *::before,
  body.dashboard-active *::after { transition: none !important; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, rgba(209, 90, 66, 0.1), transparent 32rem),
    radial-gradient(circle at top right, rgba(13, 115, 110, 0.17), transparent 25rem),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body.dashboard-active {
  background:
    linear-gradient(135deg, rgba(209, 90, 66, 0.08), transparent 34rem),
    radial-gradient(circle at top right, rgba(13, 115, 110, 0.13), transparent 28rem),
    #f6f1e9;
}

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

button,
select {
  cursor: pointer;
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.18rem;
  line-height: 1.22;
  letter-spacing: 0;
}

a {
  color: var(--teal-deep);
  font-weight: 850;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.brand-mark {
  display: block;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(8, 76, 75, 0.2);
}

.brand-lockup {
  display: inline-flex;
  max-width: 100%;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.brand-lockup img {
  width: 92px;
  height: auto;
  flex: 0 0 auto;
  border-radius: 22%;
  display: block;
}

.brand-lockup strong {
  color: #102333;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 950;
  line-height: 0.95;
}

.brand-lockup span {
  color: var(--teal);
}

.eyebrow {
  margin: 0 0 7px;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.68;
}

.muted {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.section-note {
  max-width: 28rem;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.feedback {
  min-height: 19px;
  margin: 0;
  color: var(--teal-deep);
  font-size: 0.85rem;
  font-weight: 800;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 15px;
  background: var(--teal);
  color: white;
  font-weight: 900;
}

button:hover {
  background: var(--teal-deep);
}

.quiet-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.quiet-button:hover {
  background: rgba(23, 32, 42, 0.07);
}

.quiet-button.sound-on {
  border-color: rgba(13, 115, 110, 0.36);
  background: rgba(13, 115, 110, 0.14);
  color: var(--teal-deep);
}

.danger-inline {
  color: #8a2d1c;
}

.danger-inline:hover {
  background: rgba(209, 90, 66, 0.13);
}

.danger-button {
  border: 1px solid rgba(209, 90, 66, 0.28);
  background: rgba(209, 90, 66, 0.13);
  color: #8a2d1c;
}

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

label,
legend {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  outline: none;
}

input,
select {
  padding: 0 12px;
}

textarea {
  min-height: 96px;
  resize: vertical;
  padding: 12px;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 115, 110, 0.16);
}

form {
  display: grid;
  gap: 14px;
}

fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.field-grid {
  display: grid;
  gap: 12px;
}

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

.login-shell {
  --login-edge-cover: linear-gradient(transparent, transparent);
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(32px, 5vw, 78px);
  background: #071d27;
}

.login-shell::after {
  position: fixed;
  z-index: -2;
  inset: 0;
  background:
    var(--login-edge-cover),
    linear-gradient(90deg, rgba(2, 12, 16, 0.88) 0%, rgba(2, 12, 16, 0.58) 34%, rgba(2, 12, 16, 0.18) 58%, rgba(2, 12, 16, 0.62) 100%),
    linear-gradient(0deg, rgba(2, 12, 16, 0.36), rgba(2, 12, 16, 0.22)),
    url("./assets/body-shop-progress.png") calc(100% - clamp(170px, 15vw, 250px)) center / cover no-repeat,
    linear-gradient(90deg, #102630 0%, #263a43 100%);
  content: "";
}

@media (min-width: 861px) {
  .login-shell {
    --login-edge-cover: linear-gradient(
      90deg,
      transparent 0%,
      transparent calc(100% - clamp(218px, 15vw, 298px)),
      rgba(30, 49, 58, 0.88) calc(100% - clamp(170px, 15vw, 250px)),
      #263a43 100%
    );
  }
}

.login-shell::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 26% 24%, rgba(255, 255, 255, 0.12), transparent 22%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 44%, rgba(0, 0, 0, 0.14));
  content: "";
}

.login-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(460px, 1fr) minmax(450px, 560px);
  width: min(1380px, 100%);
  min-height: min(850px, calc(100vh - 84px));
  gap: clamp(54px, 6.6vw, 110px);
  align-items: center;
  border-radius: 8px;
}

.login-art {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100vh - 96px));
  align-items: center;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.login-art::after {
  content: none;
}

.login-art img {
  display: none;
}

.login-art-content {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 520px;
  gap: 32px;
  padding: 0;
  color: white;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.42);
}

.login-art-content h2 {
  max-width: 10.7ch;
  margin: 0;
  color: white;
  font-size: clamp(3.45rem, 4.75vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.login-art-content p {
  max-width: 26rem;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.15rem, 1.55vw, 1.5rem);
  line-height: 1.42;
}

.login-benefits {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.login-benefits li {
  display: flex;
  gap: 18px;
  align-items: center;
  color: white;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
}

.login-benefits span {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(167, 244, 237, 0.12);
  border-radius: 50%;
  background-color: transparent;
  background-image: radial-gradient(circle at 42% 38%, rgba(39, 177, 168, 0.32), rgba(5, 67, 68, 0.2) 62%, rgba(2, 37, 42, 0.08));
  background-position: center;
  background-repeat: no-repeat;
  background-size: 25px 25px, 100% 100%;
  color: #d7fffa;
  font-size: 0;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(221, 255, 252, 0.1), 0 8px 22px rgba(0, 92, 89, 0.24);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.login-benefits span::before {
  content: none;
}

.login-benefits li:nth-child(1) span {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='25' viewBox='0 0 24 24' fill='none' stroke='%23c8fbf7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3Cpath d='M8 9h8M8 13h5'/%3E%3C/svg%3E"), radial-gradient(circle at 42% 38%, rgba(39, 177, 168, 0.32), rgba(5, 67, 68, 0.2) 62%, rgba(2, 37, 42, 0.08));
}

.login-benefits li:nth-child(2) span::before {
  content: none;
}

.login-benefits li:nth-child(2) span {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='25' viewBox='0 0 24 24' fill='none' stroke='%23c8fbf7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.4 2.4-2.8-2.8z'/%3E%3C/svg%3E"), radial-gradient(circle at 42% 38%, rgba(39, 177, 168, 0.32), rgba(5, 67, 68, 0.2) 62%, rgba(2, 37, 42, 0.08));
}

.login-benefits li:nth-child(3) span::before {
  content: none;
}

.login-benefits li:nth-child(3) span {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='25' viewBox='0 0 24 24' fill='none' stroke='%23c8fbf7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"), radial-gradient(circle at 42% 38%, rgba(39, 177, 168, 0.32), rgba(5, 67, 68, 0.2) 62%, rgba(2, 37, 42, 0.08));
}

.login-proof-card {
  max-width: 338px;
  margin: 0;
  border: 1px solid rgba(102, 214, 205, 0.38);
  border-radius: 8px;
  padding: 20px;
  background: rgba(5, 53, 49, 0.48);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  text-shadow: none;
}

.proof-stars {
  margin-bottom: 9px;
  color: #ffc43d;
  font-size: 1rem;
  letter-spacing: 0;
}

.login-proof-card blockquote,
.login-proof-card figcaption {
  margin: 0;
  color: white;
  line-height: 1.5;
}

.login-proof-card figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
}

.login-value-card {
  display: grid;
  gap: 9px;
}

.login-value-card .proof-eyebrow {
  color: #8de6dc;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.login-value-card h3,
.login-value-card p {
  margin: 0;
  color: white;
}

.login-value-card h3 {
  font-size: 1.08rem;
  line-height: 1.3;
}

.login-value-card p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  line-height: 1.5;
}

.login-value-card > strong {
  margin-top: 3px;
  color: #8de6dc;
  font-size: 0.86rem;
}

.login-form {
  align-content: center;
  width: min(558px, 100%);
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 24px;
  padding: clamp(34px, 4.2vw, 52px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 250, 0.96)),
    white;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.34);
}

.login-form.hidden {
  display: none;
}

.login-form .brand-lockup {
  margin-bottom: 30px;
}

.login-form .brand-lockup img {
  width: 94px;
}

.login-form .brand-lockup strong {
  font-size: clamp(3rem, 4vw, 4.1rem);
}

.login-form h1 {
  margin: 0;
  font-size: clamp(1.85rem, 2.5vw, 2.25rem);
  line-height: 1;
}

.auth-switches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

#show-signup,
#show-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

#show-signup::before,
#show-reset::before {
  content: "";
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

#show-signup::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23122435' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10v10h16V10'/%3E%3Cpath d='M3 10l2-6h14l2 6'/%3E%3Cpath d='M3 10c0 1.4 1 2.5 2.3 2.5S7.7 11.4 7.7 10c0 1.4 1 2.5 2.3 2.5s2.3-1.1 2.3-2.5c0 1.4 1 2.5 2.3 2.5S17 11.4 17 10c0 1.4 1 2.5 2.3 2.5S21 11.4 21 10'/%3E%3Cpath d='M8 20v-5h8v5'/%3E%3C/svg%3E");
}

#show-reset::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23122435' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-2.64-6.36L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3C/svg%3E");
}

.quiet-link {
  color: var(--teal-deep);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.login-copy {
  max-width: 25rem;
  margin: 10px 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.demo-login-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 4px 0 26px;
  padding: 18px 20px;
  border: 1px solid rgba(13, 115, 110, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(230, 248, 246, 0.92)),
    #eef7f4;
  box-shadow: 0 12px 26px rgba(16, 35, 51, 0.08);
}

.demo-login-icon {
  position: relative;
  width: 58px;
  height: 48px;
  border-radius: 8px;
  background-color: rgba(13, 115, 110, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%230d736e' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='12' x='3' y='4' rx='2'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 32px 32px;
}

.demo-login-icon::before {
  content: none;
}

.demo-login-icon::after {
  content: none;
}

.demo-login-card strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 1.05rem;
}

.demo-login-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.demo-login-card .quiet-button {
  min-width: 108px;
  white-space: nowrap;
}

#login-form label {
  position: relative;
}

#login-form input[name="email"],
#login-form input[name="password"] {
  padding-left: 46px;
  background-color: white;
  background-position: 15px center;
  background-repeat: no-repeat;
  background-size: 19px 19px;
}

#login-form input[name="email"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%237d8b99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

#login-form input[name="password"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%237d8b99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

#login-form label:has(input[name="email"])::before,
#login-form label:has(input[name="password"])::before {
  content: none;
}

#login-form label:has(input[name="email"])::after {
  content: none;
}

#login-form label:has(input[name="password"])::before {
  content: none;
}

#login-form label:has(input[name="password"])::after {
  content: none;
}

#login-form > button[type="submit"] {
  position: relative;
  margin-top: 8px;
  min-height: 58px;
  box-shadow: 0 16px 26px rgba(13, 115, 110, 0.24);
}

#login-form > button[type="submit"]::after {
  position: absolute;
  right: 22px;
  top: 50%;
  width: 16px;
  height: 16px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  content: "";
}

.login-trust-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.4;
}

.text-button {
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--teal-deep);
  font: inherit;
  font-weight: 900;
}

.text-button:hover {
  background: transparent;
  color: var(--teal);
}

.auth-divider {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.auth-switches:last-child {
  gap: 12px;
  margin-top: 14px;
}

.auth-switches:last-child .quiet-link + .quiet-link::before {
  margin-right: 12px;
  color: var(--muted);
  content: "•";
}

#show-signup,
#show-reset {
  position: static;
  padding-left: 18px;
  padding-right: 18px;
}

#show-signup::after {
  content: none;
}

#show-reset::after {
  content: none;
}

.dashboard {
  display: grid;
  align-content: start;
  gap: var(--dashboard-gap);
  min-height: 100vh;
  width: min(1760px, 100%);
  margin: 0 auto;
  padding: 16px;
}

.app-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 86px;
  padding: 14px clamp(16px, 2.4vw, 26px);
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 8px;
  background: #142b2d;
  color: #fbf3e7;
  box-shadow: var(--shadow);
}

.app-bar h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 3.4rem);
}

.app-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.dashboard-lockup {
  margin-bottom: 0;
}

.dashboard-lockup img {
  width: 64px;
}

.dashboard-lockup strong {
  color: #fbf3e7;
  font-size: clamp(1.65rem, 2.3vw, 2.55rem);
}

.dashboard-lockup span {
  color: #4fc1b8;
}

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

.account-bar div {
  display: grid;
  gap: 3px;
  text-align: right;
}

.account-bar span:not(.pill) {
  color: rgba(251, 243, 231, 0.72);
  font-size: 0.87rem;
}

.pill,
.channel-pill,
.delivery-pill,
.badge {
  display: inline-grid;
  min-height: 31px;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(13, 115, 110, 0.14);
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.app-bar .pill {
  background: rgba(255, 255, 255, 0.16);
  color: #fbf3e7;
}

.dashboard-jump-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 7px;
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 10px 26px rgba(22, 32, 42, 0.09);
  scrollbar-width: thin;
}

.dashboard-jump-nav a {
  display: inline-grid;
  flex: 0 0 auto;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(13, 115, 110, 0.18);
  border-radius: 999px;
  padding: 0 11px;
  background: #fffaf1;
  color: var(--teal-deep);
  font-size: 0.8rem;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: start;
}

.dashboard-jump-nav a:hover,
.dashboard-jump-nav a:focus-visible {
  border-color: rgba(13, 115, 110, 0.38);
  background: rgba(13, 115, 110, 0.1);
  outline: none;
}

.channel-pill {
  background: rgba(183, 122, 24, 0.17);
  color: #744800;
}

.delivery-pill {
  background: rgba(136, 157, 131, 0.21);
  color: #35513c;
}

.badge.warning {
  background: rgba(209, 90, 66, 0.15);
  color: #8a2d1c;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--dashboard-gap);
}

.metric,
.panel {
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.93);
}

.metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 64px;
  align-content: center;
  align-items: center;
  padding: 12px 14px;
}

.metric span {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 850;
}

.metric strong {
  font-size: 1.7rem;
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(285px, 0.85fr) minmax(480px, 1.45fr) minmax(320px, 0.9fr);
  gap: var(--dashboard-gap);
  align-items: start;
}

.dashboard-card-grid {
  display: grid;
  gap: 20px;
  align-items: start;
}

.dashboard-card-group {
  display: block;
  columns: 3 300px;
  column-gap: var(--dashboard-gap);
  border: 1px solid rgba(23, 32, 42, 0.09);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 250, 241, 0.56);
}

.dashboard-group-heading {
  column-span: all;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  min-height: 54px;
  margin-bottom: var(--dashboard-gap);
  break-inside: avoid;
}

.dashboard-group-heading h2 {
  font-size: 1.28rem;
}

.dashboard-group-heading > span {
  max-width: 26rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.4;
  text-align: right;
}

.dashboard-card-group > section {
  display: grid;
  width: 100%;
  margin: 0 0 var(--dashboard-gap);
  min-width: 0;
  break-inside: avoid;
}

.settings-hub {
  column-span: all;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(13, 115, 110, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.settings-tabs button {
  min-height: 36px;
  border: 1px solid rgba(13, 115, 110, 0.2);
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--surface);
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-weight: 900;
}

.settings-tabs button.active,
.settings-tabs button[aria-selected="true"] {
  border-color: rgba(13, 115, 110, 0.52);
  background: rgba(13, 115, 110, 0.12);
  box-shadow: inset 0 0 0 1px rgba(13, 115, 110, 0.1);
}

.settings-stack {
  display: grid;
  gap: 12px;
}

.settings-form {
  display: none;
  gap: 12px;
}

.settings-form:has(.settings-tab-panel.active:not(.hidden)) {
  display: grid;
}

.settings-tab-panel {
  display: none;
}

.settings-tab-panel.active:not(.hidden) {
  display: grid;
  gap: 12px;
}

.settings-save-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.settings-save-row .feedback {
  margin: 0;
}

.panel {
  min-width: 0;
  padding: var(--panel-pad);
}

.panel,
.preview-panel > section,
.repair-panel > section {
  scroll-margin-top: 76px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

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

.section-actions button {
  min-height: 36px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.section-heading.compact {
  margin-bottom: 10px;
}

.job-list,
.archive-list,
.history-list {
  display: grid;
  gap: 8px;
}

.job-list {
  margin-bottom: 16px;
}

.archive-section {
  margin-bottom: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.archive-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.archive-card div,
.archive-card span,
.archive-card time {
  display: grid;
  gap: 4px;
}

.archive-card span,
.archive-card time {
  color: var(--muted);
  font-size: 0.8rem;
}

.job-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.job-card.selected {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.job-button {
  display: grid;
  width: 100%;
  min-height: 132px;
  gap: 11px;
  justify-items: start;
  padding: 15px 16px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.job-button:hover {
  background: rgba(13, 115, 110, 0.08);
  color: var(--ink);
}

.job-topline {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.job-progress {
  display: grid;
  min-width: 52px;
  min-height: 29px;
  place-items: center;
  border-radius: 6px;
  background: rgba(209, 90, 66, 0.14);
  color: #8a2d1c;
  font-size: 0.81rem;
  font-weight: 950;
}

.job-vehicle,
.job-meta,
.history-card span,
.history-card time {
  color: var(--muted);
  font-size: 0.86rem;
}

.job-meta {
  color: var(--teal-deep);
  font-weight: 850;
}

.job-reminder {
  border-radius: 6px;
  padding: 5px 7px;
  background: rgba(183, 122, 24, 0.16);
  color: #744800;
  font-size: 0.76rem;
  font-weight: 900;
}

.job-reminder.due {
  background: rgba(209, 90, 66, 0.16);
  color: #8a2d1c;
}

.new-job-form {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.consent-row,
.consent-badges,
.form-actions,
.message-actions,
.repair-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.consent-row label,
.tone-box label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--ink);
}

.consent-row input,
.tone-box input {
  min-height: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--teal);
}

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

.repair-links a {
  display: grid;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: var(--surface-strong);
  text-decoration: none;
}

.repair-links a[aria-disabled="true"] {
  color: var(--muted);
  pointer-events: none;
}

.quiet-link[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.48;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.consent-badges {
  margin-bottom: 12px;
}

.edit-job-form {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(219, 232, 234, 0.42);
}

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

#update-form {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.stage-picker legend,
.tone-box legend {
  margin-bottom: 8px;
}

.stage-options {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.stage-options label {
  position: relative;
  display: grid;
  min-height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  text-align: center;
}

.stage-options input {
  position: absolute;
  inset: 0;
  min-height: 0;
  margin: 0;
  opacity: 0;
}

.stage-options label:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.update-grid {
  grid-template-columns: minmax(135px, 0.85fr) minmax(170px, 1fr) minmax(170px, 1fr);
}

.range-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 9px;
  background: var(--surface-strong);
}

input[type="range"] {
  min-height: 0;
  margin: 0;
  border: 0;
  padding: 0;
  accent-color: var(--coral);
  box-shadow: none;
}

output {
  display: grid;
  min-height: 30px;
  place-items: center;
  border-radius: 6px;
  background: rgba(209, 90, 66, 0.14);
  color: #8a2d1c;
  font-size: 0.86rem;
  font-weight: 950;
}

.tone-box {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(136, 157, 131, 0.13);
}

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

.tone-box.horizontal legend {
  grid-column: 1 / -1;
}

.history-section {
  margin-top: 14px;
}

.reminder-section {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.reminder-form {
  grid-template-columns: minmax(220px, 0.8fr) minmax(200px, 1fr);
  align-items: end;
}

.reminder-list {
  display: grid;
  gap: 9px;
}

.reminder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.72);
}

.reminder-row.due {
  border-color: rgba(209, 90, 66, 0.4);
  background: rgba(209, 90, 66, 0.09);
}

.reminder-row div {
  display: grid;
  gap: 3px;
}

.reminder-row time {
  color: var(--muted);
  font-size: 0.84rem;
}

.audit-section {
  margin-top: 14px;
}

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

.audit-grid h3 {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

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

.audit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.74);
}

.audit-row.status-sent {
  border-color: rgba(13, 115, 110, 0.34);
  background: rgba(13, 115, 110, 0.08);
}

.audit-row.failed,
.audit-row.status-failed {
  border-color: rgba(209, 90, 66, 0.42);
  background: rgba(209, 90, 66, 0.09);
}

.audit-row.delayed,
.audit-row.status-pending {
  border-color: rgba(183, 122, 24, 0.38);
  background: rgba(183, 122, 24, 0.1);
}

.audit-row strong,
.audit-row span,
.audit-row time,
.audit-row em {
  overflow-wrap: anywhere;
}

.audit-row span,
.audit-row time,
.audit-row em {
  color: var(--muted);
  font-size: 0.8rem;
}

.audit-row time {
  grid-column: 2;
  grid-row: 1;
  white-space: nowrap;
}

.audit-row em {
  grid-column: 1 / -1;
  color: #8a2d1c;
  font-style: normal;
}

.message-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 2px 9px;
  background: rgba(88, 104, 123, 0.12);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: capitalize;
}

.message-status.status-sent {
  background: rgba(13, 115, 110, 0.14);
  color: #07544f;
}

.message-status.status-failed {
  background: rgba(209, 90, 66, 0.15);
  color: #8a2d1c;
}

.message-status.status-pending {
  background: rgba(183, 122, 24, 0.15);
  color: #7b4b08;
}

.history-card {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: var(--surface-strong);
}

.conversation-section {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.notification-readiness {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(13, 115, 110, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: rgba(13, 115, 110, 0.08);
}

.notification-readiness.attention {
  border-color: rgba(206, 85, 59, 0.24);
  background: rgba(206, 85, 59, 0.08);
}

.notification-readiness div {
  display: grid;
  gap: 3px;
}

.notification-readiness strong {
  color: var(--ink);
}

.notification-readiness span,
.notification-readiness em {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.notification-readiness em {
  font-style: normal;
}

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

.conversation-reply-form {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.conversation-reply-form select,
.conversation-reply-form textarea {
  margin-top: 6px;
}

.conversation-item {
  display: grid;
  gap: 8px;
  max-width: min(88%, 680px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
}

.conversation-item.outbound {
  justify-self: end;
  background: rgba(13, 115, 110, 0.1);
}

.conversation-item.inbound {
  justify-self: start;
}

.conversation-item.open {
  border-color: rgba(13, 115, 110, 0.42);
}

.conversation-item.status-sent {
  border-color: rgba(13, 115, 110, 0.28);
  background: rgba(13, 115, 110, 0.08);
}

.conversation-item.outbound.status-sent {
  background: rgba(13, 115, 110, 0.12);
}

.conversation-item.status-failed {
  border-color: rgba(209, 90, 66, 0.46);
  background: rgba(209, 90, 66, 0.1);
}

.conversation-item.status-pending {
  border-color: rgba(183, 122, 24, 0.38);
  background: rgba(183, 122, 24, 0.09);
}

.conversation-item p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.5;
}

.conversation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.conversation-meta span,
.conversation-meta time {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.conversation-handle {
  justify-self: start;
}

.photo-section {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.photo-form {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
  align-items: end;
}

.photo-visibility {
  display: flex;
  min-height: 44px;
  gap: 8px;
  align-items: center;
  color: var(--ink);
}

.photo-visibility input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--teal);
}

.photo-list,
.portal-photo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 12px;
}

.portal-photo-list {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.photo-card,
.portal-photo {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.portal-photo-list .portal-empty-state {
  grid-column: 1 / -1;
}

.photo-card img,
.portal-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--mist);
}

.portal-photo img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: 8px;
}

.photo-card div {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.photo-card span,
.portal-photo figcaption {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.portal-photo figcaption {
  border-top: 1px solid rgba(23, 32, 42, 0.08);
  padding: 10px 12px 12px;
  background: rgba(255, 250, 241, 0.82);
}

.portal-empty-state {
  margin: 0;
  background: rgba(13, 115, 110, 0.045);
}

.history-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.history-card p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 0.91rem;
  line-height: 1.45;
}

.preview-panel {
  display: grid;
  gap: 10px;
}

.message-card {
  min-height: 172px;
  border: 1px solid rgba(13, 115, 110, 0.18);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 240, 232, 0.94)),
    var(--surface-strong);
}

#message-preview {
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.62;
  white-space: pre-wrap;
}

.customer-preview-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.customer-preview-phone {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(13, 115, 110, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-strong);
}

.customer-preview-phone span,
.customer-preview-phone dt,
.customer-preview-phone p {
  color: var(--muted);
}

.customer-preview-phone strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 1.04rem;
}

.customer-preview-phone dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.customer-preview-phone dd,
.customer-preview-phone dt {
  margin: 0;
}

.customer-preview-phone dd {
  color: var(--ink);
  font-weight: 900;
}

.portal-progress.mini {
  height: 9px;
}

.preview-checks {
  display: grid;
  gap: 8px;
}

.preview-check {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(13, 115, 110, 0.16);
  border-radius: 8px;
  padding: 10px;
  background: rgba(13, 115, 110, 0.06);
}

.preview-check strong {
  color: var(--teal-deep);
}

.preview-check span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.preview-check.blocked {
  border-color: rgba(202, 88, 57, 0.26);
  background: rgba(202, 88, 57, 0.08);
}

.preview-check.blocked strong {
  color: var(--coral);
}

.beta-card,
.settings-hub,
.team-card,
.billing-card,
.email-card,
.sms-card,
.compliance-card,
.activity-card,
.support-inbox-card,
.issues-card,
.readiness-card,
.help-card,
.trust-card,
.account-card,
.setup-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(219, 232, 234, 0.54);
}

.team-card,
.settings-hub,
.billing-card,
.email-card,
.sms-card,
.compliance-card,
.activity-card,
.support-inbox-card,
.issues-card,
.readiness-card,
.help-card,
.trust-card,
.account-card,
.setup-card {
  background: rgba(255, 255, 255, 0.68);
}

.dashboard-card-group > section {
  display: grid;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(23, 32, 42, 0.045);
}

.dashboard-card-group > section > .section-heading.compact {
  margin-bottom: 0;
}

.dashboard-card-group form {
  gap: 11px;
}

.dashboard-card-group textarea {
  min-height: 78px;
}

.password-form {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

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

.support-form h3 {
  margin: 0;
  font-size: 1.15rem;
}

.sms-test-form {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.compact-details {
  border: 1px solid rgba(13, 115, 110, 0.16);
  border-radius: 8px;
  background: rgba(13, 115, 110, 0.045);
}

.compact-details summary {
  min-height: 42px;
  padding: 11px 12px;
  color: var(--teal-deep);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 950;
}

.compact-details[open] summary {
  border-bottom: 1px solid rgba(13, 115, 110, 0.14);
}

.compact-details > :not(summary) {
  margin: 12px;
}

.template-details .field-grid,
.integration-details .sms-provider-list,
.integration-details .sms-webhooks {
  margin-top: 0;
}

.empty-state {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  border: 1px dashed rgba(13, 115, 110, 0.24);
  border-radius: 8px;
  padding: 14px;
  background: rgba(13, 115, 110, 0.05);
}

.empty-state-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(13, 115, 110, 0.12);
  color: var(--teal-deep);
  font-size: 1.15rem;
  font-weight: 950;
  line-height: 1;
}

.empty-state strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.portal-empty-state {
  grid-template-columns: 1fr;
  gap: 4px;
}

.empty-state span {
  display: inline-flex;
  margin-top: 10px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 900;
}

.empty-state-action {
  width: auto;
  min-height: 34px;
  margin-top: 10px;
  padding: 6px 11px;
  font-size: 0.78rem;
}

.attention {
  border-color: rgba(13, 115, 110, 0.7);
  box-shadow: 0 0 0 4px rgba(13, 115, 110, 0.12), var(--shadow);
}

.onboarding-wizard {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(13, 115, 110, 0.28);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(134px, 100%), 1fr));
  gap: 6px;
}

.onboarding-step {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 44px;
  padding: 7px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
}

.onboarding-step span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(183, 122, 24, 0.16);
  color: #744800;
  font-size: 0.78rem;
  font-weight: 950;
}

.onboarding-step.ready span,
.onboarding-step.active span {
  background: rgba(13, 115, 110, 0.14);
  color: var(--teal-deep);
}

.onboarding-step.active {
  border-color: rgba(13, 115, 110, 0.48);
  background: rgba(13, 115, 110, 0.08);
}

.onboarding-step strong {
  overflow-wrap: anywhere;
  font-size: 0.82rem;
}

.onboarding-body {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
}

.onboarding-body h3,
.onboarding-body p {
  margin: 0;
}

.onboarding-body p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.48;
}

.onboarding-state {
  color: var(--teal-deep);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

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

.rehearsal-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(183, 122, 24, 0.28);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.96), rgba(219, 232, 234, 0.72)),
    var(--surface);
}

.rehearsal-card p {
  max-width: 48rem;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.38;
}

.rehearsal-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.demo-tour {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(13, 115, 110, 0.35);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.demo-tour-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-tour-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.demo-tour-step span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: rgba(183, 122, 24, 0.14);
  color: #744800;
  font-size: 0.68rem;
}

.demo-tour-step.active {
  border-color: rgba(13, 115, 110, 0.55);
  color: var(--teal-deep);
  background: rgba(13, 115, 110, 0.08);
}

.demo-tour-step.active span,
.demo-tour-step.done span {
  background: rgba(13, 115, 110, 0.16);
  color: var(--teal-deep);
}

.demo-tour-body {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
}

.demo-tour-body h3,
.demo-tour-body p { margin: 0; }

.demo-tour-body p {
  color: var(--muted);
  line-height: 1.48;
}

.demo-tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.activity-list {
  display: grid;
  gap: 9px;
}

.activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.74);
}

.activity-row.warning {
  border-color: rgba(183, 122, 24, 0.38);
  background: rgba(183, 122, 24, 0.1);
}

.activity-row.danger {
  border-color: rgba(209, 90, 66, 0.42);
  background: rgba(209, 90, 66, 0.09);
}

.activity-row.info {
  border-color: rgba(13, 115, 110, 0.38);
  background: rgba(13, 115, 110, 0.1);
}

.activity-row > div:first-child {
  display: grid;
  gap: 3px;
}

.activity-row span,
.activity-row p,
.activity-row time {
  margin: 0;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.4;
}

.activity-row time {
  font-weight: 900;
}

.activity-row button {
  white-space: nowrap;
}

.activity-actions {
  display: grid;
  gap: 7px;
}

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

.support-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.74);
}

.support-row.open {
  border-color: rgba(183, 122, 24, 0.38);
  background: rgba(183, 122, 24, 0.1);
}

.support-row.handled {
  opacity: 0.72;
}

.support-row > div:first-child {
  display: grid;
  gap: 3px;
}

.support-row span,
.support-row p,
.support-row time {
  margin: 0;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.4;
}

.support-row time {
  font-weight: 900;
}

.support-actions {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.issue-list {
  display: grid;
  gap: 9px;
}

.issue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.74);
}

.issue-row.failed {
  border-color: rgba(209, 90, 66, 0.42);
  background: rgba(209, 90, 66, 0.09);
}

.issue-row.delayed {
  border-color: rgba(183, 122, 24, 0.38);
  background: rgba(183, 122, 24, 0.1);
}

.issue-row > div:first-child {
  display: grid;
  gap: 3px;
}

.issue-actions {
  display: grid;
  gap: 7px;
  justify-items: stretch;
}

.issue-actions button {
  white-space: nowrap;
}

.issue-row span,
.issue-row em,
.issue-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.4;
}

.issue-row em {
  font-style: normal;
  font-weight: 900;
}

.readiness-summary,
.readiness-list {
  display: grid;
  gap: 9px;
}

.help-list {
  display: grid;
  gap: 9px;
}

.trust-list {
  display: grid;
  gap: 9px;
}

.help-list article,
.trust-list article {
  border: 1px solid rgba(13, 115, 110, 0.14);
  border-radius: 8px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.72);
}

.help-list strong,
.trust-list strong {
  color: var(--teal-deep);
}

.help-list p,
.trust-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.38;
}

.help-assistant-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(430px, calc(100vw - 36px));
  max-height: min(680px, calc(100vh - 36px));
  overflow: hidden;
  border: 1px solid rgba(23, 32, 42, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.98);
  box-shadow: var(--shadow);
}

.help-assistant-header {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #142b2d;
  color: #fbf3e7;
}

.help-assistant-header h2 {
  color: #fbf3e7;
}

.help-assistant-header .quiet-button {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: #fbf3e7;
}

.help-assistant-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 260px;
  overflow-y: auto;
  padding: 14px;
}

.help-message {
  width: fit-content;
  max-width: 92%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.45;
  white-space: pre-wrap;
}

.help-message.user {
  justify-self: end;
  border-color: rgba(13, 115, 110, 0.28);
  background: rgba(13, 115, 110, 0.1);
  color: var(--teal-deep);
}

.help-message.assistant {
  justify-self: start;
}

.help-message.thinking {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-width: 56px;
  min-height: 40px;
}

.thinking-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
  animation: thinking-pulse 0.95s ease-in-out infinite;
}

.thinking-dot:nth-child(2) {
  animation-delay: 0.14s;
}

.thinking-dot:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes thinking-pulse {
  0%,
  80%,
  100% {
    opacity: 0.32;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.help-assistant-prompts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 12px;
}

.help-assistant-prompts button {
  min-height: 38px;
  border: 1px solid rgba(13, 115, 110, 0.22);
  background: rgba(13, 115, 110, 0.1);
  color: var(--teal-deep);
  font-size: 0.78rem;
}

.help-assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.help-assistant-form input {
  margin-top: 0;
}

.readiness-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.readiness-runtime,
.readiness-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.readiness-runtime {
  display: grid;
  gap: 4px;
  padding: 11px;
}

.readiness-runtime span,
.readiness-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.readiness-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px;
}

.readiness-row > span {
  display: grid;
  min-height: 28px;
  place-items: center;
  border-radius: 6px;
  background: rgba(183, 122, 24, 0.16);
  color: #744800;
  font-size: 0.72rem;
  font-weight: 950;
}

.readiness-row.ready > span {
  background: rgba(13, 115, 110, 0.14);
  color: var(--teal-deep);
}

.readiness-row div {
  display: grid;
  gap: 3px;
}

.sms-setup {
  display: grid;
  gap: 9px;
}

.sms-status,
.sms-option-grid article,
.sms-provider-list article,
.sms-env-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.sms-status {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
}

.sms-status.ready {
  border-color: rgba(13, 115, 110, 0.32);
  background: rgba(13, 115, 110, 0.08);
}

.sms-status p,
.sms-option-grid p,
.sms-provider-list p,
.sms-steps,
.sms-tech-list {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.42;
}

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

.sms-provider-list {
  display: grid;
  gap: 7px;
}

.sms-provider-list article {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
}

.sms-option-grid article {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.sms-env-list {
  display: grid;
  gap: 6px;
}

.sms-env-list article {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  font-size: 0.74rem;
}

.sms-env-list span {
  overflow-wrap: anywhere;
  color: var(--muted);
}

.sms-webhooks {
  display: grid;
  gap: 8px;
}

.sms-webhooks input {
  font-size: 0.76rem;
}

.sms-steps {
  padding-left: 18px;
}

.sms-tech-list {
  padding-left: 18px;
}

.compliance-list {
  display: grid;
  gap: 9px;
}

.compliance-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.72);
}

.compliance-row > span {
  display: grid;
  min-height: 28px;
  place-items: center;
  border-radius: 6px;
  background: rgba(183, 122, 24, 0.16);
  color: #744800;
  font-size: 0.7rem;
  font-weight: 950;
}

.compliance-row.ready > span {
  background: rgba(13, 115, 110, 0.14);
  color: var(--teal-deep);
}

.compliance-row div {
  display: grid;
  gap: 3px;
}

.compliance-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.beta-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.52;
}

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

.usage-list,
.plan-list {
  display: grid;
  gap: 8px;
}

.usage-list {
  margin-bottom: 8px;
}

.usage-row {
  display: flex;
  min-height: 34px;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.usage-row span {
  display: grid;
  gap: 2px;
}

.usage-row em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.usage-row strong {
  color: var(--ink);
}

.usage-row.near-limit {
  border-color: rgba(183, 122, 24, 0.38);
  background: rgba(183, 122, 24, 0.08);
}

.usage-row.near-limit em {
  color: #7b4b08;
}

.usage-row.at-limit {
  border-color: rgba(209, 90, 66, 0.42);
  background: rgba(209, 90, 66, 0.09);
}

.usage-row.at-limit em {
  color: #8a2d1c;
}

.billing-limit-notice {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(183, 122, 24, 0.34);
  border-radius: 8px;
  padding: 11px;
  background: rgba(183, 122, 24, 0.09);
}

.billing-limit-notice.blocked {
  border-color: rgba(209, 90, 66, 0.4);
  background: rgba(209, 90, 66, 0.09);
}

.billing-limit-notice strong,
.billing-limit-notice p {
  margin: 0;
}

.billing-limit-notice p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.42;
}

.billing-promo-note {
  margin: 0;
  border: 1px solid rgba(183, 122, 24, 0.32);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(183, 122, 24, 0.08);
  color: #6f4307;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.35;
}

.plan-button {
  display: grid;
  min-height: 66px;
  justify-items: start;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.7);
  text-align: left;
}

.plan-button span {
  color: var(--muted);
  font-size: 0.78rem;
}

.plan-actions {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.plan-checkout {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 36px;
  padding: 8px 10px;
  font-size: 0.78rem;
  text-align: center;
}

.plan-checkout span {
  color: var(--teal-deep);
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.setup-theme-grid {
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1fr);
}

.accent-field {
  display: grid;
  gap: 10px;
}

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

.accent-swatches button {
  position: relative;
  min-height: 42px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: var(--swatch);
  color: transparent;
}

.accent-swatches button.selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(13, 115, 110, 0.16);
}

.accent-swatches button::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  content: "";
}

.accent-publish-note {
  margin: 2px 0 4px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

/* Preset colors must win over the global dashboard button treatment. */
body.dashboard-active .accent-swatches button:not(.quiet-button):not(.danger-button) {
  border: 2px solid transparent;
  background: var(--swatch);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: none;
}

body.dashboard-active .accent-swatches button:not(.quiet-button):not(.danger-button):hover,
body.dashboard-active .accent-swatches button:not(.quiet-button):not(.danger-button):focus-visible {
  background: var(--swatch);
  filter: brightness(1.08);
  transform: none;
}

body.dashboard-active .accent-swatches button.selected:not(.quiet-button):not(.danger-button) {
  border-color: #fff;
  outline: 3px solid var(--swatch);
  outline-offset: 1px;
}

.custom-color-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px auto;
  gap: 8px;
  align-items: center;
}

.custom-color-row input[type="color"] {
  width: 58px;
  min-height: 42px;
  height: 42px;
  margin-top: 0;
  padding: 4px;
}

.custom-color-row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.team-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-strong);
}

.team-row.pending {
  background: rgba(219, 232, 234, 0.5);
}

.team-identity {
  display: grid;
  gap: 3px;
}

.team-row span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.83rem;
}

.team-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.team-controls select {
  width: auto;
  min-width: 118px;
  margin-top: 0;
}

.team-controls button {
  min-height: 38px;
  padding-inline: 12px;
}

.team-row em {
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  text-transform: capitalize;
}

.portal-shell {
  display: grid;
  gap: 22px;
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 18px 56px;
}

.portal-hero {
  position: relative;
  display: grid;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 22px;
  background: #142b2d;
  box-shadow: 0 24px 70px rgba(8, 44, 49, 0.18);
}

.portal-hero > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.58;
}

.portal-hero > div {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  min-height: inherit;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 44px);
  background:
    linear-gradient(90deg, rgba(8, 48, 55, 0.98), rgba(8, 48, 55, 0.78) 52%, rgba(8, 48, 55, 0.2)),
    linear-gradient(0deg, rgba(8, 48, 55, 0.72), transparent 68%);
  color: #fbf3e7;
}

.portal-logo {
  display: block;
  width: min(160px, 100%);
  max-width: 100%;
  max-height: 76px;
  margin-bottom: 16px;
  object-fit: contain;
  object-position: left center;
}

.portal-brand-lockup {
  min-width: 0;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.portal-brand-lockup img {
  width: 62px;
  height: 62px;
  border-radius: 15px;
}

.portal-brand-lockup strong {
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -0.055em;
}

.portal-hero h1 {
  max-width: 720px;
  margin: 3px 0 6px;
  font-size: clamp(2.1rem, 5vw, 4.35rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.portal-hero .eyebrow {
  color: #75d8ce;
}

.portal-brand-lockup strong {
  min-width: 0;
  color: #fbf3e7;
  overflow-wrap: anywhere;
}

.portal-brand-lockup span {
  color: #75d8ce;
}

.portal-hero p {
  max-width: 34rem;
  margin-bottom: 0;
  line-height: 1.55;
}

.portal-hero #portal-contact {
  margin-top: 12px;
  color: rgba(251, 243, 231, 0.78);
  font-size: 0.88rem;
  font-weight: 850;
}

.portal-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.portal-trust-row span {
  display: inline-grid;
  min-height: 30px;
  place-items: center;
  border: 1px solid rgba(251, 243, 231, 0.2);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(251, 243, 231, 0.9);
  font-size: 0.75rem;
  font-weight: 900;
}

.portal-status {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.portal-access {
  display: grid;
  align-content: start;
  margin-top: -58px;
  padding-inline: 18px;
  position: relative;
  z-index: 2;
}

.portal-access.hidden {
  display: none;
}

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

.portal-access-card {
  width: min(600px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(13, 115, 110, 0.16);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 24px 65px rgba(20, 43, 45, 0.15);
}

.portal-access-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 16px;
  background: rgba(13, 115, 110, 0.1);
  color: var(--tracking-accent, var(--teal));
}

.portal-access-icon svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.portal-access-card h2 {
  margin-top: 3px;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.035em;
}

.portal-access-card > .muted {
  margin: 8px 0 22px;
  font-size: 1rem;
  line-height: 1.55;
}

.portal-access-form label {
  font-weight: 850;
}

.portal-access-form input {
  min-height: 54px;
  margin-top: 8px;
  border-radius: 12px;
  padding-inline: 16px;
  background: #fff;
  font-size: 1rem;
}

.portal-access-form button {
  min-height: 54px;
  border-radius: 12px;
  font-size: 1rem;
}

.portal-access-trust {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  margin-top: 22px;
  border-top: 1px solid rgba(13, 115, 110, 0.12);
  padding-top: 18px;
}

.portal-access-trust > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(13, 115, 110, 0.12);
  color: var(--tracking-accent, var(--teal));
  font-weight: 950;
}

.portal-access-trust strong,
.portal-access-trust p {
  margin: 0;
}

.portal-access-trust p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.42;
}

.portal-card {
  grid-column: span 6;
  min-width: 0;
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 30px);
  background: rgba(255, 250, 241, 0.94);
  box-shadow: 0 10px 30px rgba(23, 32, 42, 0.06);
}

.portal-summary-card,
.portal-message-card,
.portal-photo-card {
  grid-column: span 12;
}

.portal-summary-card {
  display: grid;
  gap: 16px;
  border-color: rgba(13, 115, 110, 0.2);
  background:
    linear-gradient(135deg, rgba(13, 115, 110, 0.1), transparent 45%),
    rgba(255, 250, 241, 0.96);
}

.portal-summary-card .section-heading {
  align-items: center;
}

.portal-summary-card #portal-vehicle {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.portal-summary-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
  gap: 12px;
}

.portal-summary-meta > div {
  border: 1px solid rgba(13, 115, 110, 0.14);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.portal-summary-meta span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.portal-summary-meta strong {
  display: block;
  color: var(--teal-deep);
  font-size: 1.05rem;
}

.portal-summary-card #portal-note {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.48;
}

.portal-summary-card #portal-next {
  border-left: 4px solid var(--tracking-accent, var(--teal));
  padding-left: 12px;
  font-weight: 800;
}

.portal-progress {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(13, 115, 110, 0.12);
}

.portal-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--tracking-accent, var(--teal)), var(--coral));
}

.portal-action-form {
  display: grid;
  gap: 10px;
}

.portal-message-form {
  margin-top: 12px;
  border-top: 1px solid rgba(23, 32, 42, 0.1);
  padding-top: 12px;
}

.portal-message-form h3 {
  margin: 0;
  font-size: 1rem;
}

.portal-message-form textarea {
  min-height: 108px;
}

.portal-preferences-form {
  display: grid;
  gap: 10px;
}

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

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

.portal-action-grid label,
.portal-preference-list label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(13, 115, 110, 0.16);
  border-radius: 8px;
  min-height: 50px;
  padding: 10px;
  background: rgba(13, 115, 110, 0.05);
  color: var(--ink);
}

.portal-action-grid label:has(input:checked) {
  border-color: rgba(13, 115, 110, 0.46);
  background: rgba(13, 115, 110, 0.12);
}

.portal-message-form .portal-action-grid label {
  min-height: 44px;
}

.portal-preference-list span {
  display: grid;
  gap: 3px;
}

.portal-preference-list strong,
.portal-preference-list em {
  display: block;
}

.portal-preference-list em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.35;
}

.portal-action-grid input,
.portal-preference-list input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--tracking-accent, var(--teal));
}

.portal-conversation {
  display: grid;
  gap: 10px;
}

.portal-notification-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  border: 1px solid rgba(13, 115, 110, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: rgba(13, 115, 110, 0.06);
}

.portal-notification-box[data-state="enabled"] {
  border-color: rgba(13, 115, 110, 0.34);
  background: rgba(13, 115, 110, 0.1);
}

.portal-notification-box[data-state="blocked"],
.portal-notification-box[data-state="unsupported"] {
  border-color: rgba(183, 122, 24, 0.26);
  background: rgba(183, 122, 24, 0.08);
}

.portal-notification-box strong,
.portal-notification-box p {
  margin: 0;
}

.portal-notification-box p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.portal-notification-box .portal-notification-help {
  margin-top: 6px;
  color: var(--teal-deep);
  font-weight: 850;
}

.portal-notification-box button {
  white-space: nowrap;
}

.portal-conversation-item {
  display: grid;
  gap: 7px;
  max-width: min(92%, 720px);
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.portal-conversation-item.outbound {
  justify-self: start;
  border-color: rgba(13, 115, 110, 0.24);
  border-left: 4px solid var(--tracking-accent, var(--teal));
  background: rgba(13, 115, 110, 0.08);
}

.portal-conversation-item.inbound {
  justify-self: end;
  border-color: rgba(23, 32, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.portal-conversation-item div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.portal-conversation-item span,
.portal-conversation-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.portal-conversation-item p {
  color: var(--ink);
}

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

.portal-stage {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(13, 115, 110, 0.12);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.58);
}

.portal-stage span {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(13, 115, 110, 0.28);
  border-radius: 999px;
  background: #fffaf1;
}

.portal-stage strong {
  color: var(--ink);
}

.portal-stage em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-stage.complete span,
.portal-stage.current span {
  border-color: var(--tracking-accent, var(--teal));
  background: var(--tracking-accent, var(--teal));
}

.portal-stage.current strong,
.portal-stage.current em {
  color: var(--tracking-accent, var(--teal-deep));
}

/* Customer tracking dashboard */
body:has(.portal-shell) {
  background:
    radial-gradient(circle at 18% 12%, rgba(82, 199, 185, 0.14), transparent 30rem),
    #f8fbfa;
  color: #153044;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

body:has(.portal-shell) h1,
body:has(.portal-shell) h2,
body:has(.portal-shell) h3,
body:has(.portal-shell) button {
  font-family: "Manrope", "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

body:has(.portal-shell) .portal-access-form button,
body:has(.portal-shell) .portal-action-form button,
body:has(.portal-shell) .portal-preferences-form button {
  background: var(--tracking-accent, var(--teal));
}

body:has(.portal-shell) .portal-private-badge,
body:has(.portal-shell) .portal-progress-label {
  border: 1px solid color-mix(in srgb, var(--tracking-accent, var(--teal)) 24%, white);
  background: color-mix(in srgb, var(--tracking-accent, var(--teal)) 12%, white);
  color: var(--tracking-accent, var(--teal));
}

.portal-shell {
  width: min(1240px, 100%);
  gap: 28px;
  padding: 0 28px 52px;
}

.portal-hero {
  min-height: 86px;
  margin-inline: -28px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid #dbe6e3;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.portal-hero > img {
  display: none;
}

.portal-hero > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  width: min(1240px, calc(100% - 56px));
  min-height: 86px;
  margin: auto;
  padding: 12px 0;
  background: none;
  color: #153044;
}

.portal-brand-lockup {
  grid-row: 1 / 3;
  margin: 0;
}

.portal-brand-lockup img {
  width: 48px;
  height: 48px;
  border-radius: 11px;
}

.portal-brand-lockup strong {
  color: #153044;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.portal-brand-lockup span {
  color: #149b8f;
}

.portal-hero .eyebrow,
.portal-hero h1,
.portal-hero #portal-welcome,
.portal-trust-row,
.portal-logo:not(.hidden) {
  display: none;
}

.portal-hero #portal-contact {
  grid-column: 3;
  grid-row: 1 / 3;
  margin: 0;
  color: #47616f;
  font-size: 0.9rem;
}

.portal-hero #portal-contact::before {
  content: "Questions? Your shop is here to help.  ";
  color: #74868f;
  font-weight: 600;
}

.portal-access {
  margin-top: 20px;
}

.portal-status {
  gap: 20px;
}

.portal-customer-intro {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 2px 2px;
}

.portal-customer-intro h2 {
  max-width: 680px;
  margin: 4px 0 6px;
  color: #10283b;
  font-size: clamp(2rem, 5vw, 4.2rem);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.portal-customer-intro p:last-child {
  margin: 0;
  color: #637884;
  font-size: 1.05rem;
}

.portal-private-badge,
.portal-progress-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 13px;
  background: #e7f5f1;
  color: #08776f;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.portal-card {
  border-color: #dbe6e3;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(17, 54, 66, 0.055);
}

.portal-summary-card {
  grid-column: span 12;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  padding: clamp(24px, 4vw, 38px);
  background:
    radial-gradient(circle at 8% 4%, rgba(82, 199, 185, 0.13), transparent 22rem),
    #fff;
}

.portal-summary-card .section-heading,
.portal-summary-card #portal-note,
.portal-summary-card #portal-next,
.portal-summary-card .portal-progress {
  grid-column: 1;
}

.portal-summary-card .portal-summary-meta {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: stretch;
  grid-template-columns: 1fr;
}

.portal-summary-meta > div {
  display: grid;
  align-content: center;
  min-height: 105px;
  border-color: #dce8e5;
  background: #fbfdfc;
}

.portal-summary-card #portal-note {
  font-size: 1.1rem;
}

.portal-steps-card {
  order: 2;
  grid-column: span 12;
}

.portal-stage-list {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 0;
  margin-top: 18px;
}

.portal-stage {
  position: relative;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 7px;
  border: 0;
  padding: 4px 12px 12px;
  background: transparent;
  text-align: center;
}

.portal-stage:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 25px;
  left: calc(50% + 23px);
  width: calc(100% - 46px);
  border-top: 2px dashed #ccd9dc;
}

.portal-stage span {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-width: 2px;
  background: #fff;
  box-shadow: 0 0 0 7px #fff;
}

.portal-stage.complete:not(:last-child)::after {
  border-top-style: solid;
  border-color: var(--tracking-accent, var(--teal));
}

.portal-stage.current span {
  box-shadow: 0 0 0 7px #eaf6f4;
}

.portal-stage strong {
  font-size: 0.9rem;
}

.portal-photo-card {
  order: 4;
  grid-column: span 6;
}

.portal-message-card {
  order: 5;
  grid-column: span 6;
}

.portal-history-card {
  order: 3;
  grid-column: span 6;
}

.portal-preferences-card {
  order: 6;
  grid-column: span 6;
}

.portal-conversation-item,
.history-card,
.portal-notification-box,
.portal-action-grid label,
.portal-preference-list label {
  border-radius: 12px;
}

@media (max-width: 760px) {
  .portal-shell {
    padding-inline: 16px;
  }

  .portal-hero {
    margin-inline: -16px;
  }

  .portal-hero > div {
    width: calc(100% - 32px);
  }

  .portal-hero #portal-contact::before {
    display: none;
  }

  .portal-customer-intro {
    display: grid;
    align-items: start;
  }

  .portal-private-badge {
    justify-self: start;
  }

  .portal-summary-card {
    grid-template-columns: 1fr;
  }

  .portal-summary-card .portal-summary-meta {
    grid-column: 1;
    grid-row: auto;
  }

  .portal-stage-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .portal-stage {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    justify-items: start;
    text-align: left;
  }

  .portal-stage span {
    width: 34px;
    height: 34px;
    box-shadow: none;
  }

  .portal-stage:not(:last-child)::after {
    top: 42px;
    bottom: -10px;
    left: 28px;
    width: 0;
    border-top: 0;
    border-left: 2px dashed #ccd9dc;
  }

  .portal-stage.complete:not(:last-child)::after {
    border-left-style: solid;
  }

  .portal-history-card,
  .portal-photo-card,
  .portal-message-card,
  .portal-preferences-card {
    grid-column: span 12;
  }
}

@media (max-width: 1220px) {
  .dashboard-grid {
    grid-template-columns: minmax(260px, 0.9fr) minmax(450px, 1.35fr);
  }

  .dashboard-card-group {
    columns: 2 300px;
  }

  .preview-panel {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  }

  .dashboard-card-group > section,
  .dashboard-card-group > .email-card,
  .dashboard-card-group > .sms-card,
  .dashboard-card-group > .trust-card,
  .dashboard-card-group > .setup-card {
    margin-bottom: var(--dashboard-gap);
  }

  .preview-panel .section-heading,
  .preview-panel .message-actions {
    grid-column: 1 / -1;
  }

  .customer-preview-card {
    align-self: start;
  }

  .portal-shell {
    width: min(980px, 100%);
  }

  .portal-card {
    grid-column: span 12;
  }
}

@media (max-width: 860px) {
  :root {
    --dashboard-gap: 12px;
    --panel-pad: 14px;
  }

  html {
    scroll-padding-top: 104px;
  }

  .login-shell,
  .dashboard,
  .portal-shell {
    padding: 12px;
  }

  .login-shell::after {
    background-position: center, center, center, 72% center, center;
  }

  .login-panel,
  .dashboard-grid,
  .dashboard-card-grid,
  .preview-panel,
  .portal-shell,
  .rehearsal-card,
  .update-grid {
    grid-template-columns: 1fr;
  }

  .login-panel {
    min-height: 0;
    gap: 12px;
  }

  .login-art {
    min-height: 300px;
    max-height: none;
  }

  .login-form {
    justify-self: stretch;
    padding: 22px;
  }

  .login-art-content {
    gap: 18px;
    padding: 22px;
  }

  .login-art-content h2 {
    font-size: 2.2rem;
  }

  .login-art-content p {
    font-size: 1rem;
  }

  .login-benefits {
    gap: 8px;
  }

  .login-benefits li {
    font-size: 0.84rem;
  }

  .login-benefits span {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    font-size: 0;
  }

  .login-proof-card {
    display: none;
  }

  .login-form .brand-lockup img {
    width: 64px;
  }

  .login-form .brand-lockup strong {
    font-size: 2.15rem;
  }

  .demo-login-card {
    grid-template-columns: 1fr;
  }

  .demo-login-card .quiet-button {
    width: 100%;
  }

  .dashboard-card-group {
    columns: 1;
  }

  .rehearsal-actions {
    justify-items: start;
  }

  .dashboard-jump-nav {
    top: 8px;
    margin-inline: -2px;
    padding: 6px;
    gap: 6px;
  }

  .dashboard-jump-nav a {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

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

  .app-bar,
  .repair-header {
    align-items: start;
    flex-direction: column;
  }

  .account-bar,
  .account-bar div,
  .dashboard-group-heading {
    justify-content: start;
    text-align: left;
  }

  .account-bar {
    width: 100%;
  }

  .account-bar > .quiet-button {
    flex: 1 1 calc(50% - 6px);
    min-width: 140px;
  }

  .account-bar > div {
    flex: 1 1 100%;
  }

  .panel,
  .preview-panel > section,
  .repair-panel > section {
    scroll-margin-top: 112px;
  }

  .dashboard-group-heading {
    align-items: start;
    flex-direction: column;
    min-height: 0;
  }

  .dashboard-group-heading > span {
    max-width: none;
    text-align: left;
  }

  .dashboard-card-group > section,
  .dashboard-card-group > .email-card,
  .dashboard-card-group > .sms-card,
  .dashboard-card-group > .trust-card,
  .dashboard-card-group > .setup-card {
    margin-bottom: var(--dashboard-gap);
  }

  .team-row,
  .team-controls {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .team-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .team-controls select {
    width: 100%;
  }

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

  .form-actions,
  .message-actions,
  .repair-links,
  .section-actions {
    align-items: stretch;
  }

  .form-actions button,
  .message-actions button,
  .repair-links a,
  .section-actions button {
    flex: 1 1 auto;
    min-width: min(100%, 150px);
    justify-content: center;
  }

  .tone-box.horizontal,
  .audit-grid,
  .readiness-summary,
  .sms-option-grid,
  .portal-action-grid,
  .reminder-form,
  .photo-form,
  .setup-theme-grid,
  .edit-grid,
  .two-up {
    grid-template-columns: 1fr;
  }

  .portal-hero {
    min-height: 0;
  }

  .portal-hero > img {
    object-position: center 36%;
  }

  .portal-hero > div {
    min-height: 250px;
    padding: 16px;
    background:
      linear-gradient(0deg, rgba(20, 43, 45, 0.94), rgba(20, 43, 45, 0.54)),
      linear-gradient(90deg, rgba(20, 43, 45, 0.92), transparent);
  }

  .portal-brand-lockup img {
    width: 48px;
  }

  .portal-brand-lockup strong {
    font-size: clamp(1.35rem, 7vw, 1.7rem);
  }

  .portal-logo {
    width: min(150px, 100%);
    max-height: 64px;
  }

  .portal-hero h1 {
    max-width: 100%;
    font-size: clamp(1.7rem, 8vw, 2.1rem);
    line-height: 1.06;
    overflow-wrap: anywhere;
  }

  .portal-hero p {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .portal-hero #portal-contact {
    font-size: 0.82rem;
    overflow-wrap: anywhere;
  }

  .portal-shell {
    gap: 10px;
    padding: 10px;
  }

  .portal-card {
    padding: 13px;
  }

  .portal-summary-card #portal-vehicle {
    font-size: 1.55rem;
  }

  .portal-summary-card .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .portal-summary-meta,
  .portal-notification-box {
    grid-template-columns: 1fr;
  }

  .portal-conversation-item {
    max-width: 100%;
  }

  .portal-trust-row {
    gap: 6px;
    margin-top: 10px;
  }

  .portal-trust-row span {
    min-height: 28px;
    padding: 0 9px;
    font-size: 0.7rem;
  }

  .portal-access-card {
    width: 100%;
  }

  .portal-summary-card {
    gap: 12px;
  }

  .portal-photo-list {
    gap: 10px;
  }

  .portal-photo img {
    aspect-ratio: 4 / 3;
    padding: 6px;
  }

  .portal-conversation-item {
    padding: 11px;
  }

  .portal-stage {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .portal-stage em {
    grid-column: 2;
  }

  .portal-notification-box button {
    width: 100%;
  }

  .help-assistant-panel {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .help-assistant-prompts,
  .help-assistant-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  :root {
    --dashboard-gap: 10px;
    --panel-pad: 12px;
  }

  html {
    scroll-padding-top: 98px;
  }

  .dashboard {
    padding: 9px;
  }

  .app-bar {
    gap: 12px;
    min-height: 0;
    padding: 13px;
  }

  .app-brand {
    gap: 10px;
  }

  .dashboard-lockup img {
    width: 50px;
  }

  .dashboard-lockup strong {
    font-size: clamp(1.42rem, 8vw, 1.85rem);
  }

  .app-bar .eyebrow {
    font-size: 0.68rem;
  }

  .account-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 7px;
  }

  .account-bar span:not(.pill) {
    font-size: 0.8rem;
  }

  .account-bar > div {
    grid-column: 1 / -1;
  }

  .account-bar #plan-pill {
    width: 100%;
    justify-content: center;
  }

  .account-bar #help-assistant-button {
    grid-column: span 2;
  }

  .account-bar > .quiet-button {
    width: 100%;
    flex-basis: auto;
    min-width: 0;
    min-height: 38px;
    padding: 0 8px;
  }

  .app-bar .pill {
    min-height: 28px;
    padding: 0 9px;
    font-size: 0.72rem;
  }

  .dashboard-jump-nav {
    top: 6px;
    border-radius: 8px;
    padding: 5px;
  }

  .dashboard-jump-nav a {
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.75rem;
  }

  .metric {
    min-height: 58px;
    padding: 10px 11px;
  }

  .metric span {
    font-size: 0.76rem;
  }

  .metric strong {
    font-size: 1.45rem;
  }

  .dashboard-card-group {
    padding: 10px;
  }

  .panel,
  .preview-panel > section,
  .repair-panel > section {
    scroll-margin-top: 104px;
  }

  .section-heading {
    gap: 10px;
  }

  .job-button {
    min-height: 78px;
    padding: 11px;
  }

  .job-topline {
    gap: 8px;
  }

  .stage-options {
    gap: 6px;
  }

  .stage-options label {
    min-height: 40px;
    padding: 0 6px;
    font-size: 0.78rem;
  }

  .form-actions button,
  .message-actions button,
  .repair-links a,
  .section-actions button {
    min-height: 42px;
  }
}

/* Compact customer conversation inspired by the tracking-page reference. */
.portal-message-card {
  align-self: start;
}

.portal-message-card > .section-heading {
  margin-bottom: 8px;
}

.portal-notification-box {
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 0 16px;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f2f8f7;
}

.portal-notification-box strong {
  font-size: 0.8rem;
}

.portal-notification-box p {
  font-size: 0.75rem;
}

.portal-notification-box .portal-notification-help {
  display: none;
}

.portal-notification-box button {
  min-height: 34px;
  border-radius: 8px;
  padding-inline: 11px;
  font-size: 0.75rem;
}

.portal-conversation {
  gap: 0;
  margin: 2px 0 12px;
}

.portal-conversation-item,
.portal-conversation-item.outbound,
.portal-conversation-item.inbound {
  position: relative;
  justify-self: stretch;
  max-width: none;
  min-height: 72px;
  gap: 4px;
  border: 0;
  border-bottom: 1px solid #e3ebe9;
  border-radius: 0;
  padding: 12px 8px 12px 54px;
  background: transparent;
}

.portal-conversation-item::before {
  content: "You";
  position: absolute;
  top: 13px;
  left: 5px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #dff3ee;
  color: #08776f;
  font-size: 0.68rem;
  font-weight: 950;
}

.portal-conversation-item.outbound::before {
  content: "SL";
  background: #dcedf8;
  color: #176ea5;
}

.portal-conversation-item div {
  justify-content: flex-start;
  gap: 7px;
}

.portal-conversation-item strong {
  color: #173044;
  font-size: 0.86rem;
}

.portal-conversation-item span {
  font-size: 0.7rem;
}

.portal-conversation-item p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 2px;
  color: #405865;
  font-size: 0.8rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.portal-reply-details {
  margin-top: 10px;
}

.portal-reply-details summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #d7e3e0;
  border-radius: 10px;
  background: #fff;
  color: #08776f;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.portal-reply-details summary::-webkit-details-marker {
  display: none;
}

.portal-reply-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* Match the shop conversation workspace to the customer tracking thread. */
body.dashboard-active .conversation-section {
  gap: 0;
  border: 1px solid #dbe6e3;
  border-radius: 14px;
  padding: clamp(18px, 2.4vw, 28px);
  background: #fff;
  box-shadow: 0 12px 34px rgba(17, 54, 66, 0.055);
}

body.dashboard-active .conversation-section > .section-heading {
  margin-bottom: 12px;
}

body.dashboard-active .conversation-thread {
  gap: 0;
}

body.dashboard-active .conversation-item,
body.dashboard-active .conversation-item.outbound,
body.dashboard-active .conversation-item.inbound,
body.dashboard-active .conversation-item.status-sent,
body.dashboard-active .conversation-item.outbound.status-sent,
body.dashboard-active .conversation-item.status-pending,
body.dashboard-active .conversation-item.status-failed {
  position: relative;
  justify-self: stretch;
  max-width: none;
  min-height: 88px;
  gap: 5px;
  border: 0;
  border-bottom: 1px solid #e2ebe9;
  border-radius: 0;
  padding: 16px 12px 16px 68px;
  background: transparent;
}

body.dashboard-active .conversation-item::before {
  content: attr(data-avatar);
  position: absolute;
  top: 16px;
  left: 10px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #dcedf8;
  color: #176ea5;
  font-size: 0.72rem;
  font-weight: 950;
}

body.dashboard-active .conversation-item.inbound::before {
  background: #dff3ee;
  color: #08776f;
}

body.dashboard-active .conversation-item.open {
  background: linear-gradient(90deg, rgba(223, 243, 238, 0.45), transparent 58%);
}

body.dashboard-active .conversation-meta {
  gap: 6px 9px;
}

body.dashboard-active .conversation-meta strong {
  color: #173044;
  font-size: 0.9rem;
}

body.dashboard-active .conversation-meta span,
body.dashboard-active .conversation-meta time {
  color: #6b7d86;
  font-size: 0.72rem;
  font-weight: 700;
}

body.dashboard-active .conversation-item .message-status {
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  background: #e7f3f0;
  color: #08776f;
  font-size: 0.66rem;
  font-weight: 900;
}

body.dashboard-active .conversation-body {
  display: -webkit-box;
  overflow: hidden;
  max-width: 920px;
  color: #405865;
  font-size: 0.88rem;
  line-height: 1.52;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

body.dashboard-active .conversation-handle {
  justify-self: start;
  min-height: 32px;
  margin-top: 4px;
  padding: 0 11px;
  font-size: 0.72rem;
}

body.dashboard-active .conversation-reply-details {
  margin-top: 12px;
}

body.dashboard-active .conversation-reply-details summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #d7e3e0;
  border-radius: 10px;
  background: #fff;
  color: #08776f;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

body.dashboard-active .conversation-reply-details summary::-webkit-details-marker {
  display: none;
}

body.dashboard-active .conversation-reply-details summary svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

body.dashboard-active .conversation-reply-details summary:hover,
body.dashboard-active .conversation-reply-details summary:focus-visible {
  border-color: #36a99d;
  background: #eef8f6;
  outline: none;
}

body.dashboard-active .conversation-reply-details[open] summary {
  border-radius: 10px 10px 0 0;
  background: #eef8f6;
}

body.dashboard-active .conversation-reply-form {
  grid-template-columns: minmax(180px, 0.3fr) minmax(0, 1fr) auto;
  align-items: end;
  border: 1px solid #d7e3e0;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  padding: 14px;
  background: #fbfdfc;
}

body.dashboard-active .conversation-reply-form button {
  min-height: 44px;
}

@media (max-width: 760px) {
  body.dashboard-active .conversation-item,
  body.dashboard-active .conversation-item.outbound,
  body.dashboard-active .conversation-item.inbound {
    padding-left: 58px;
  }

  body.dashboard-active .conversation-item::before {
    left: 4px;
  }

  body.dashboard-active .conversation-reply-form {
    grid-template-columns: 1fr;
  }
}

.portal-reply-details summary:hover,
.portal-reply-details summary:focus-visible {
  border-color: #36a99d;
  background: #eef8f6;
  outline: none;
}

.portal-reply-details[open] summary {
  border-color: #bcded8;
  border-radius: 10px 10px 0 0;
  background: #eef8f6;
}

.portal-reply-details .portal-message-form {
  margin-top: 0;
  border: 1px solid #d7e3e0;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  padding: 16px;
  background: #fbfdfc;
}

@media (max-width: 520px) {
  .portal-notification-box {
    grid-template-columns: 1fr;
  }

  .portal-notification-box button {
    width: 100%;
  }

  .portal-conversation-item,
  .portal-conversation-item.outbound,
  .portal-conversation-item.inbound {
    padding-left: 50px;
  }
}

/* Keep the marketing canvas after legacy dashboard background declarations. */
body.dashboard-active {
  background:
    radial-gradient(circle at 92% 0%, rgba(64, 183, 166, 0.12), transparent 30rem),
    #f7f4ed;
}

/* Reference-driven dashboard polish */
body.dashboard-active .app-bar {
  border-radius: 0;
  margin: calc(clamp(12px, 1.5vw, 22px) * -1) calc(clamp(12px, 1.5vw, 22px) * -1) 0;
  padding-inline: clamp(22px, 3vw, 44px);
  background:
    radial-gradient(circle at 65% 0%, rgba(27, 139, 130, 0.25), transparent 26rem),
    linear-gradient(105deg, #062d37, #092631 72%, #061f2a);
}

body.dashboard-active .dashboard-lockup { gap: 12px; }
body.dashboard-active .dashboard-lockup img { width: 58px; }
body.dashboard-active .dashboard-lockup strong { font-size: clamp(1.65rem, 2.4vw, 2.35rem); }

body.dashboard-active .account-bar > .quiet-button {
  position: relative;
  min-height: 54px;
  padding: 22px 15px 5px;
  font-size: 0.7rem;
}

body.dashboard-active .account-bar > .quiet-button::before {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 17px;
  height: 17px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transform: translateX(-50%);
  content: "";
}

body.dashboard-active #help-assistant-button::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a6 6 0 0 0-6 6v3a4 4 0 0 1-2 3.46V17h16v-2.54A4 4 0 0 1 18 11V8a6 6 0 0 0-6-6Z'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E"); }
body.dashboard-active #settings-button::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19 12a7 7 0 0 0-.1-1l2-1.5-2-3.4-2.4 1A7 7 0 0 0 15 6l-.3-2.6h-4L10.4 6A7 7 0 0 0 9 7.1l-2.4-1-2 3.4 2 1.5a7 7 0 0 0 0 2l-2 1.5 2 3.4 2.4-1A7 7 0 0 0 10.4 18l.3 2.6h4L15 18a7 7 0 0 0 1.5-1.1l2.4 1 2-3.4-2-1.5a7 7 0 0 0 .1-1Z'/%3E%3C/svg%3E"); }
body.dashboard-active #account-button::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
body.dashboard-active #logout::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 17l5-5-5-5M15 12H3M15 3h5v18h-5'/%3E%3C/svg%3E"); }

body.dashboard-active .dashboard-jump-nav { gap: 9px; padding: 12px 14px; }
body.dashboard-active .dashboard-jump-nav a { gap: 8px; border-color: transparent; padding: 0 13px; background: transparent; }
body.dashboard-active .dashboard-jump-nav a::before {
  display: inline-grid;
  width: 21px;
  height: 21px;
  place-items: center;
  color: #087c73;
  font-size: 1rem;
  content: "•";
}
body.dashboard-active .dashboard-jump-nav a:nth-child(1)::before { content: "⌘"; }
body.dashboard-active .dashboard-jump-nav a:nth-child(2)::before { content: "⌘"; transform: rotate(45deg); }
body.dashboard-active .dashboard-jump-nav a:nth-child(3)::before { content: "◌"; }
body.dashboard-active .dashboard-jump-nav a:nth-child(4)::before { content: "▣"; }
body.dashboard-active .dashboard-jump-nav a:nth-child(5)::before { content: "♙"; }
body.dashboard-active .dashboard-jump-nav a:nth-child(6)::before { content: "▤"; }
body.dashboard-active .dashboard-jump-nav a:nth-child(7)::before { content: "✓"; }
body.dashboard-active .dashboard-jump-nav a:nth-child(8)::before { content: "+"; }
body.dashboard-active .dashboard-jump-nav a:nth-child(9)::before { content: "⚙"; }
body.dashboard-active .dashboard-jump-nav a:hover { background: #eaf7f3; }

body.dashboard-active .metric {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 136px;
  gap: 20px;
  align-items: center;
  padding: 22px;
}

body.dashboard-active .metric-icon {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background-color: #e4f4ef;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 32px;
}

body.dashboard-active .metric-updates .metric-icon { background-color: #fff2d8; }
body.dashboard-active .metric-reminders .metric-icon { background-color: #f1e9fa; }
body.dashboard-active .metric-sends .metric-icon { background-color: #e3f2fb; }
body.dashboard-active .metric-repairs .metric-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087c73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.4 2.4-2.8-2.8Z'/%3E%3Cpath d='m5 5 14 14'/%3E%3C/svg%3E"); }
body.dashboard-active .metric-updates .metric-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d59000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9M10 21h4'/%3E%3C/svg%3E"); }
body.dashboard-active .metric-reminders .metric-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23805cc2' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18M8 14h2M14 14h2M8 18h2'/%3E%3C/svg%3E"); }
body.dashboard-active .metric-sends .metric-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b78c7' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='m22 2-7 20-4-9-9-4Z'/%3E%3Cpath d='M22 2 11 13'/%3E%3C/svg%3E"); }

body.dashboard-active .metric-copy { display: grid; gap: 5px; }
body.dashboard-active .metric-copy > span { color: #173140; font-size: 0.84rem; font-weight: 800; }
body.dashboard-active .metric-copy strong { font-size: 2rem; }
body.dashboard-active .metric-copy small { color: #65757d; font-size: 0.76rem; }

body.dashboard-active .onboarding-wizard,
body.dashboard-active .rehearsal-card,
body.dashboard-active .demo-tour {
  border-radius: 14px;
  padding: clamp(20px, 2.4vw, 30px);
  box-shadow: 0 12px 34px rgba(16, 45, 60, 0.055);
}

body.dashboard-active .onboarding-wizard { gap: 18px; background: #fff; }
body.dashboard-active .onboarding-steps { gap: 10px; }
body.dashboard-active .onboarding-step { min-height: 48px; border-color: transparent; border-radius: 9px; background: transparent; }
body.dashboard-active .onboarding-step.active { background: linear-gradient(90deg, #e6f4f0, #f4faf8); }
body.dashboard-active .onboarding-body { min-height: 150px; border-radius: 12px; padding: 22px; background: linear-gradient(100deg, #fff, #f4faf8); }
body.dashboard-active .rehearsal-card { min-height: 130px; border-color: #f1dbac; background: linear-gradient(105deg, #fffaf0, #fff); }
body.dashboard-active .demo-tour { border-color: #cce1ee; background: linear-gradient(105deg, #f3f9fd, #fff); }

@media (max-width: 820px) {
  body.dashboard-active .app-bar { margin: -9px -9px 0; border-radius: 0; }
  body.dashboard-active .account-bar > .quiet-button { min-height: 42px; padding: 0 8px; }
  body.dashboard-active .account-bar > .quiet-button::before { content: none; }
  body.dashboard-active .metric { grid-template-columns: 52px 1fr; min-height: 96px; gap: 13px; padding: 14px; }
  body.dashboard-active .metric-icon { width: 52px; height: 52px; border-radius: 13px; background-size: 26px; }
  body.dashboard-active .metric-copy strong { font-size: 1.55rem; }
  body.dashboard-active .dashboard-jump-nav a::before { display: none; }
}

/* Exact dashboard navigation icon set */
body.dashboard-active .dashboard-jump-nav a::before {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  transform: none;
  content: "";
}

body.dashboard-active .dashboard-jump-nav a:nth-child(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087c73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.4 2.4-2.8-2.8Z'/%3E%3Cpath d='m5 5 14 14'/%3E%3C/svg%3E");
}

body.dashboard-active .dashboard-jump-nav a:nth-child(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087c73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M12 3v4M12 17v4M3 12h4M17 12h4M5.6 5.6l2.8 2.8M15.6 15.6l2.8 2.8M18.4 5.6l-2.8 2.8M8.4 15.6l-2.8 2.8'/%3E%3C/svg%3E");
}

body.dashboard-active .dashboard-jump-nav a:nth-child(3)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087c73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4Z'/%3E%3Cpath d='M8 9h8M8 13h5'/%3E%3C/svg%3E");
}

body.dashboard-active .dashboard-jump-nav a:nth-child(4)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087c73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V2h6v2M9 9h6M9 13h6M9 17h4'/%3E%3C/svg%3E");
}

body.dashboard-active .dashboard-jump-nav a:nth-child(5)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087c73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E");
}

body.dashboard-active .dashboard-jump-nav a:nth-child(6)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087c73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2'/%3E%3Cpath d='M8 6h8M8 10h2M14 10h2M8 14h2M14 14h2M8 18h2M14 18h2'/%3E%3C/svg%3E");
}

body.dashboard-active .dashboard-jump-nav a:nth-child(7)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087c73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

body.dashboard-active .dashboard-jump-nav a:nth-child(8)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087c73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E");
}

body.dashboard-active .dashboard-jump-nav a:nth-child(9)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087c73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19 12a7 7 0 0 0-.1-1l2-1.5-2-3.4-2.4 1A7 7 0 0 0 15 6l-.3-2.6h-4L10.4 6A7 7 0 0 0 9 7.1l-2.4-1-2 3.4 2 1.5a7 7 0 0 0 0 2l-2 1.5 2 3.4 2.4-1A7 7 0 0 0 10.4 18l.3 2.6h4L15 18a7 7 0 0 0 1.5-1.1l2.4 1 2-3.4-2-1.5a7 7 0 0 0 .1-1Z'/%3E%3C/svg%3E");
}

/* Clear guide numbering and persistent collapse controls. */
body.dashboard-active .guide-collapsible-content {
  display: grid;
  gap: 14px;
}

body.dashboard-active .guide-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  justify-content: flex-end;
}

body.dashboard-active .guide-collapse-toggle {
  position: relative;
  min-height: 36px;
  padding: 0 34px 0 12px;
  color: #31505e;
  font-size: 0.76rem;
  font-weight: 850;
}

body.dashboard-active .guide-collapse-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 160ms ease;
}

body.dashboard-active .collapsible-dashboard-card.is-collapsed .guide-collapse-toggle::after {
  transform: translateY(-30%) rotate(-135deg);
}

body.dashboard-active .collapsible-dashboard-card.is-collapsed {
  min-height: 0;
  gap: 0;
  padding-block: 16px;
}

body.dashboard-active .collapsible-dashboard-card.is-collapsed .guide-collapsible-content,
body.dashboard-active .rehearsal-card.is-collapsed .rehearsal-actions,
body.dashboard-active .rehearsal-card.is-collapsed #rehearsal-content > p:last-child {
  display: none;
}

body.dashboard-active .rehearsal-card {
  position: relative;
  padding-right: 176px;
}

body.dashboard-active .rehearsal-collapse-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
}

body.dashboard-active .rehearsal-card.is-collapsed {
  grid-template-columns: 1fr;
}

body.dashboard-active .onboarding-step span,
body.dashboard-active .demo-tour-step span {
  border: 2px solid rgba(8, 124, 115, 0.3);
  background: #fff;
  color: #064f4b;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 2px 7px rgba(16, 45, 60, 0.12);
}

body.dashboard-active .onboarding-step span {
  width: 28px;
  height: 28px;
}

body.dashboard-active .onboarding-step {
  grid-template-columns: 28px minmax(0, 1fr);
}

body.dashboard-active .demo-tour-step span {
  width: 23px;
  height: 23px;
  font-size: 0.72rem;
}

body.dashboard-active .onboarding-step.ready span,
body.dashboard-active .onboarding-step.active span,
body.dashboard-active .demo-tour-step.active span,
body.dashboard-active .demo-tour-step.done span {
  border-color: #087c73;
  background: #087c73;
  color: #fff;
}

@media (max-width: 760px) {
  body.dashboard-active .rehearsal-card {
    padding-right: 20px;
    padding-top: 64px;
  }

  body.dashboard-active .rehearsal-collapse-toggle {
    top: 14px;
    right: 14px;
  }

  body.dashboard-active .guide-heading-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  body.dashboard-active .dashboard-jump-nav a::before { display: none; }
}

/* Reference-matched navigation geometry and active state */
body.dashboard-active .dashboard-jump-nav {
  justify-content: flex-start;
  gap: 5px;
  min-height: 68px;
  padding: 9px 12px;
}

body.dashboard-active .dashboard-jump-nav a {
  display: inline-flex;
  min-height: 48px;
  gap: 9px;
  align-items: center;
  border-radius: 9px;
  padding: 0 15px;
  font-size: 0.8rem;
}

body.dashboard-active .dashboard-jump-nav a:first-child {
  background: #073b42;
  color: #fff;
  box-shadow: 0 8px 18px rgba(7, 59, 66, 0.16);
}

body.dashboard-active .dashboard-jump-nav a:first-child::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.4 2.4-2.8-2.8Z'/%3E%3Cpath d='m5 5 14 14'/%3E%3C/svg%3E");
}

body.dashboard-active .dashboard-jump-nav a:first-child:hover,
body.dashboard-active .dashboard-jump-nav a:first-child:focus-visible {
  background: #062f35;
  color: #fff;
}

@media (max-width: 820px) {
  body.dashboard-active .dashboard-jump-nav { min-height: 52px; padding: 6px; }
  body.dashboard-active .dashboard-jump-nav a { min-height: 38px; padding: 0 12px; }
  body.dashboard-active .dashboard-jump-nav a::before { display: none; }
}

/* Prevent legacy glyphs from appearing beneath the SVG navigation icons. */
body.dashboard-active .dashboard-jump-nav a:nth-child(n)::before {
  color: transparent;
  font-size: 0;
  content: "";
}

/* Shop selector, attention bell, and account avatar */
body.dashboard-active .account-bar > div:not(.notification-center) {
  min-width: 190px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 9px 32px 9px 12px;
  background: rgba(255, 255, 255, 0.07);
}

body.dashboard-active .account-bar > div:not(.notification-center)::after {
  align-self: center;
  justify-self: end;
  grid-column: 2;
  grid-row: 1 / span 2;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  content: "⌄";
}

body.dashboard-active .account-bar > div:not(.notification-center) strong,
body.dashboard-active .account-bar > div:not(.notification-center) span { grid-column: 1; }

body.dashboard-active .header-alert {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.07);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9M10 21h4'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px;
  text-decoration: none;
}

body.dashboard-active .header-alert span {
  position: absolute;
  top: -5px;
  right: -5px;
  display: none;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid #102d3c;
  border-radius: 99px;
  background: #d15a42;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
}

body.dashboard-active .header-alert.has-attention span { display: grid; }

body.dashboard-active .notification-center {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.dashboard-active .notification-center::after { content: none; }

body.dashboard-active .notification-panel {
  position: absolute;
  z-index: 80;
  top: calc(100% + 12px);
  right: 0;
  width: min(390px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid #d7e3e0;
  border-radius: 14px;
  background: #fff;
  color: #102d3c;
  box-shadow: 0 24px 70px rgba(8, 35, 43, 0.25);
}

body.dashboard-active .notification-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #e2ebe9;
  background: linear-gradient(135deg, #f2faf7, #fff);
}

body.dashboard-active .notification-panel .eyebrow { margin: 0 0 4px; }

body.dashboard-active .notification-panel h2 {
  margin: 0;
  color: #102d3c;
  font-size: 1rem;
}

body.dashboard-active .notification-panel .text-button {
  flex: 0 0 auto;
  padding: 4px;
  color: #087c73;
  font-size: 0.72rem;
}

body.dashboard-active .notification-panel .text-button:disabled {
  color: #8a9ca3;
  cursor: default;
}

body.dashboard-active .notification-list {
  display: grid;
  max-height: min(520px, 62vh);
  overflow-y: auto;
}

body.dashboard-active .notification-item {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  width: 100%;
  gap: 11px;
  align-items: start;
  border: 0;
  border-bottom: 1px solid #e7eeec;
  border-radius: 0;
  padding: 14px 16px;
  background: #fff;
  color: #173140;
  text-align: left;
  box-shadow: none;
}

body.dashboard-active .notification-item:hover,
body.dashboard-active .notification-item:focus-visible { background: #f3faf8; color: #173140; }
body.dashboard-active .notification-item.unread { background: #f1faf7; }

body.dashboard-active .notification-item-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: #dff1ed;
  color: #087c73;
}

body.dashboard-active .notification-item-icon::before {
  font-size: 0.78rem;
  font-weight: 950;
  content: "SL";
}

body.dashboard-active .notification-customer_reply::before,
body.dashboard-active .notification-customer_action::before { content: "MSG"; font-size: .6rem; }
body.dashboard-active .notification-support_request::before,
body.dashboard-active .notification-support_message::before { content: "SUP"; font-size: .6rem; }
body.dashboard-active .notification-delivery_issue::before { content: "!"; font-size: 1rem; }
body.dashboard-active .notification-reminder_due::before { content: "ETA"; font-size: .58rem; }

body.dashboard-active .notification-item-copy { display: grid; min-width: 0; gap: 3px; }
body.dashboard-active .notification-item-source { color: #087c73; font-size: .64rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
body.dashboard-active .notification-item-copy strong { color: #102d3c; font-size: .82rem; line-height: 1.3; }
body.dashboard-active .notification-item-copy > span:not(.notification-item-source) { overflow: hidden; color: #50656f; font-size: .74rem; line-height: 1.4; text-overflow: ellipsis; }
body.dashboard-active .notification-item-copy time { color: #7c8d94; font-size: .66rem; }

body.dashboard-active .notification-unread {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #0e8b81;
}

body.dashboard-active .notification-empty { padding: 28px 20px; text-align: center; }
body.dashboard-active .notification-empty strong { color: #102d3c; }
body.dashboard-active .notification-empty p { margin: 6px 0 0; color: #60737c; font-size: .78rem; line-height: 1.5; }

body.dashboard-active .notification-panel > footer { padding: 12px 16px; background: #f8fbfa; }
body.dashboard-active .notification-panel > footer .quiet-button { width: 100%; }

body.dashboard-active #account-button {
  width: 46px;
  min-width: 46px;
  padding: 0;
  font-size: 0;
}

body.dashboard-active #account-button::before {
  top: 50%;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #102d3c;
  font-size: 0.7rem;
  font-weight: 800;
  transform: translate(-50%, -50%);
  content: attr(data-initials);
}

body.dashboard-active #help-assistant-button::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 1.2 3.8L17 8l-3.8 1.2L12 13l-1.2-3.8L7 8l3.8-1.2Z'/%3E%3Cpath d='m18 14 .8 2.2L21 17l-2.2.8L18 20l-.8-2.2L15 17l2.2-.8ZM5 13l.6 1.4L7 15l-1.4.6L5 17l-.6-1.4L3 15l1.4-.6Z'/%3E%3C/svg%3E");
}

/* Wide-screen application sidebar */
@media (min-width: 1180px) {
  body.dashboard-active .dashboard {
    grid-template-columns: 218px minmax(0, 1fr);
    column-gap: 18px;
  }

  body.dashboard-active .app-bar { grid-column: 1 / -1; }

  body.dashboard-active .dashboard > :not(.app-bar):not(.dashboard-jump-nav) {
    grid-column: 2;
  }

  body.dashboard-active .dashboard-jump-nav {
    position: sticky;
    top: 18px;
    grid-column: 1;
    grid-row: 2 / span 7;
    display: flex;
    height: calc(100vh - 128px);
    min-height: 580px;
    align-self: start;
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
    overflow: visible auto;
    padding: 14px 10px;
  }

  body.dashboard-active .dashboard-jump-nav a {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
    padding: 0 13px;
  }

  body.dashboard-active .dashboard-jump-nav a::before { display: inline-block; }
}

@media (max-width: 820px) {
  body.dashboard-active .header-alert { width: 38px; height: 38px; flex-basis: 38px; }
  body.dashboard-active .account-bar > div:not(.notification-center) { min-width: 0; padding: 7px 10px; }
  body.dashboard-active .account-bar > div:not(.notification-center)::after { content: none; }
  body.dashboard-active .notification-panel { position: fixed; top: 84px; right: 12px; left: 12px; width: auto; }
  body.dashboard-active #account-button { width: 100%; min-width: 0; font-size: 0.72rem; }
  body.dashboard-active #account-button::before { content: none; }
}

/* Scroll-aware section navigation */
body.dashboard-active .dashboard-jump-nav a.active,
body.dashboard-active .dashboard-jump-nav a[aria-current="location"] {
  background: #073b42;
  color: #fff;
  box-shadow: 0 8px 18px rgba(7, 59, 66, 0.16);
}

body.dashboard-active .dashboard-jump-nav a.active::before,
body.dashboard-active .dashboard-jump-nav a[aria-current="location"]::before {
  filter: brightness(0) invert(1);
}

body.dashboard-active .dashboard-jump-nav:has(a.active) a:first-child:not(.active) {
  background: transparent;
  color: #102d3c;
  box-shadow: none;
}

body.dashboard-active .dashboard-jump-nav:has(a.active) a:first-child:not(.active)::before {
  filter: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087c73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.4 2.4-2.8-2.8Z'/%3E%3Cpath d='m5 5 14 14'/%3E%3C/svg%3E");
}

body.dashboard-active .dashboard-jump-nav a:focus-visible {
  outline: 3px solid rgba(64, 183, 166, 0.34);
  outline-offset: 2px;
}

body.dashboard-active .dashboard > section,
body.dashboard-active .dashboard-grid > *,
body.dashboard-active [id$="-card"] {
  scroll-margin-top: 90px;
}

/* Focused sidebar workspaces */
body.dashboard-active .dashboard[data-view] .onboarding-wizard,
body.dashboard-active .dashboard[data-view] .rehearsal-card,
body.dashboard-active .dashboard[data-view] .demo-tour,
body.dashboard-active .dashboard[data-view] .dashboard-grid,
body.dashboard-active .dashboard[data-view] .dashboard-card-grid {
  display: none;
}

body.dashboard-active .dashboard[data-view="queue"] .onboarding-wizard:not(.hidden),
body.dashboard-active .dashboard[data-view="queue"] .rehearsal-card:not(.hidden),
body.dashboard-active .dashboard[data-view="queue"] .demo-tour:not(.hidden),
body.dashboard-active .dashboard[data-view="queue"] .dashboard-grid,
body.dashboard-active .dashboard[data-view="repair"] .dashboard-grid,
body.dashboard-active .dashboard[data-view="conversation"] .dashboard-grid,
body.dashboard-active .dashboard[data-view="customer"] .dashboard-grid {
  display: grid;
}

body.dashboard-active .dashboard[data-view] .dashboard-grid {
  grid-template-columns: minmax(0, 1fr);
}

body.dashboard-active .dashboard[data-view] .dashboard-grid > * { display: none; }
body.dashboard-active .dashboard[data-view="queue"] #jobs-panel,
body.dashboard-active .dashboard[data-view="repair"] #selected-repair-panel,
body.dashboard-active .dashboard[data-view="conversation"] #selected-repair-panel,
body.dashboard-active .dashboard[data-view="customer"] .preview-panel {
  display: grid;
}

body.dashboard-active .dashboard[data-view="conversation"] #selected-repair-panel > * { display: none; }
body.dashboard-active .dashboard[data-view="conversation"] #selected-repair-panel > #conversation-section {
  display: grid;
  margin: 0;
  border: 0;
  padding: 0;
}

body.dashboard-active .dashboard[data-view="repair"] #conversation-section { display: none; }

body.dashboard-active .dashboard[data-view="customer"] .preview-panel > * { display: none; }
body.dashboard-active .dashboard[data-view="customer"] .preview-panel > #customer-preview-card {
  display: grid;
  margin: 0;
}

body.dashboard-active .dashboard[data-view="team"] .dashboard-card-grid,
body.dashboard-active .dashboard[data-view="billing"] .dashboard-card-grid,
body.dashboard-active .dashboard[data-view="delivery"] .dashboard-card-grid,
body.dashboard-active .dashboard[data-view="help"] .dashboard-card-grid,
body.dashboard-active .dashboard[data-view="settings"] .dashboard-card-grid {
  display: grid;
}

body.dashboard-active .dashboard[data-view] .dashboard-card-grid > .dashboard-card-group { display: none; }
body.dashboard-active .dashboard[data-view="delivery"] .dashboard-card-group:has(#issues-card),
body.dashboard-active .dashboard[data-view="help"] .dashboard-card-group:has(#help-card),
body.dashboard-active .dashboard[data-view="settings"] .dashboard-card-group:has(#settings-panel),
body.dashboard-active .dashboard[data-view="team"] .dashboard-card-group:has(#settings-panel),
body.dashboard-active .dashboard[data-view="billing"] .dashboard-card-group:has(#settings-panel) {
  display: grid;
  columns: auto;
}

body.dashboard-active .dashboard[data-view="help"] .dashboard-card-group:has(#help-card) > section,
body.dashboard-active .dashboard[data-view="settings"] .dashboard-card-group:has(#settings-panel) > section,
body.dashboard-active .dashboard[data-view="team"] .dashboard-card-group:has(#settings-panel) > section,
body.dashboard-active .dashboard[data-view="billing"] .dashboard-card-group:has(#settings-panel) > section {
  display: none;
}

body.dashboard-active .dashboard[data-view="help"] .dashboard-card-group:has(#help-card) > #help-card,
body.dashboard-active .dashboard[data-view="settings"] .dashboard-card-group:has(#settings-panel) > #settings-panel,
body.dashboard-active .dashboard[data-view="team"] .dashboard-card-group:has(#settings-panel) > #settings-panel,
body.dashboard-active .dashboard[data-view="billing"] .dashboard-card-group:has(#settings-panel) > #settings-panel {
  display: grid;
}

body.dashboard-active .dashboard[data-view="help"] .dashboard-card-group:has(#help-card) > .dashboard-group-heading,
body.dashboard-active .dashboard[data-view="settings"] .dashboard-card-group:has(#settings-panel) > .dashboard-group-heading,
body.dashboard-active .dashboard[data-view="team"] .dashboard-card-group:has(#settings-panel) > .dashboard-group-heading,
body.dashboard-active .dashboard[data-view="billing"] .dashboard-card-group:has(#settings-panel) > .dashboard-group-heading {
  display: none;
}

body.dashboard-active .dashboard[data-view] .dashboard-grid,
body.dashboard-active .dashboard[data-view] .dashboard-card-grid {
  animation: dashboard-view-in 180ms ease-out;
}

@keyframes dashboard-view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.dashboard-active .dashboard[data-view] .dashboard-grid,
  body.dashboard-active .dashboard[data-view] .dashboard-card-grid { animation: none; }
}

body.dashboard-active h2[tabindex="-1"]:focus,
body.dashboard-active h3[tabindex="-1"]:focus {
  outline: none;
}

/* Clean settings gear: one SVG source, no legacy glyph underneath. */
body.dashboard-active .dashboard-jump-nav a:nth-child(9)::before {
  color: transparent;
  font-size: 0;
  transform: none;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087c73' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4.25'/%3E%3Cpath d='M12 2.5v2M12 19.5v2M4.6 4.6 6 6M18 18l1.4 1.4M2.5 12h2M19.5 12h2M4.6 19.4 6 18M18 6l1.4-1.4'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
}

/* Keep the customer dashboard header compact on the smallest screens. */
@media (max-width: 520px) {
  body:has(.portal-shell) {
    overflow-x: hidden;
  }

  .portal-shell {
    width: 100%;
    gap: 18px;
    padding: 0 14px 36px;
  }

  .portal-hero {
    min-height: 72px;
    margin-inline: -14px;
    background: rgba(255, 255, 255, 0.96);
  }

  .portal-hero > img {
    display: none;
  }

  .portal-hero > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    width: calc(100% - 28px);
    min-height: 72px;
    margin: auto;
    padding: 10px 0;
    background: none;
    color: #153044;
  }

  .portal-brand-lockup {
    grid-row: auto;
  }

  .portal-brand-lockup img {
    width: 42px;
    height: 42px;
  }

  .portal-brand-lockup strong {
    color: #153044;
    font-size: 1.45rem;
  }

  .portal-hero #portal-contact {
    grid-column: 2;
    grid-row: auto;
    max-width: 145px;
    color: #607681;
    font-size: 0.72rem;
    text-align: right;
  }

  .portal-hero #portal-contact::before {
    content: none;
  }

  .portal-customer-intro {
    padding-top: 14px;
  }

  .portal-customer-intro h2 {
    font-size: 2.25rem;
  }

  .portal-card,
  .portal-summary-card {
    min-width: 0;
    padding: 18px;
  }
}

/* Final Settings icon override: identical cog geometry in both locations. */
body.dashboard-active .dashboard-jump-nav a:nth-child(9)::before {
  color: transparent;
  font-size: 0;
  transform: none;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087c73' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.09a2 2 0 0 1 1 1.73v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.38a2 2 0 0 0-.73-2.73l-.15-.09a2 2 0 0 1-1-1.74v-.51a2 2 0 0 1 1-1.73l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
}

body.dashboard-active #settings-button::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.09a2 2 0 0 1 1 1.73v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.38a2 2 0 0 0-.73-2.73l-.15-.09a2 2 0 0 1-1-1.74v-.51a2 2 0 0 1 1-1.73l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

/* Account avatar menu */
body.dashboard-active .account-menu { position: relative; display: block; }

body.dashboard-active .account-menu-panel {
  position: absolute;
  z-index: 90;
  top: calc(100% + 10px);
  right: 0;
  width: min(310px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid #c9ddda;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(12, 47, 58, 0.2);
}

body.dashboard-active .account-menu-panel > header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px;
  border-bottom: 1px solid #dce9e7;
  background: #f2f9f7;
}

body.dashboard-active .account-menu-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  background: #0a7f77;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
}

body.dashboard-active .account-menu-panel header > span:last-child { display: grid; min-width: 0; gap: 2px; }
body.dashboard-active .account-menu-panel header strong { color: #102d3c; font-size: .88rem; }
body.dashboard-active .account-menu-panel header small { color: #60737c; font-size: .72rem; text-transform: capitalize; }

body.dashboard-active .account-menu-panel > button {
  display: grid;
  width: 100%;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #edf3f2;
  border-radius: 0;
  background: #fff;
  color: #163645;
  text-align: left;
}

body.dashboard-active .account-menu-panel > button:hover,
body.dashboard-active .account-menu-panel > button:focus-visible { background: #edf7f5; }
body.dashboard-active .account-menu-panel > button > span:first-child { color: #0a7f77; font-size: 1.1rem; text-align: center; }
body.dashboard-active .account-menu-panel > button > span:last-child { display: grid; gap: 2px; }
body.dashboard-active .account-menu-panel > button strong { font-size: .8rem; }
body.dashboard-active .account-menu-panel > button small { color: #667982; font-size: .68rem; font-weight: 600; }
body.dashboard-active .account-menu-panel > .account-menu-logout { border-bottom: 0; color: #9a3c2c; }
body.dashboard-active .account-menu-panel > .account-menu-logout > span:first-child { color: #b84e3d; }

/* Keep the account popover isolated from legacy header and primary-button rules. */
body.dashboard-active .account-bar > div.account-menu {
  display: block;
  width: 46px;
  min-width: 46px;
  flex: 0 0 46px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

body.dashboard-active .account-bar > div.account-menu::after { content: none; }

body.dashboard-active #account-menu-panel {
  width: min(292px, calc(100vw - 24px));
  color: #173140;
}

body.dashboard-active #account-menu-panel > header {
  min-height: 70px;
  padding: 13px 14px;
}

body.dashboard-active #account-menu-panel > header strong,
body.dashboard-active #account-menu-panel > header small,
body.dashboard-active #account-menu-panel > header span {
  grid-column: auto;
}

body.dashboard-active #account-menu-panel > button:not(.quiet-button):not(.danger-button) {
  min-height: 62px;
  height: auto;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  padding: 11px 14px;
  border-radius: 0;
  background: #fff;
  color: #173140;
  box-shadow: none;
  transform: none;
}

body.dashboard-active #account-menu-panel > button:not(.quiet-button):not(.danger-button):hover,
body.dashboard-active #account-menu-panel > button:not(.quiet-button):not(.danger-button):focus-visible {
  background: #edf7f5;
  color: #075f59;
  transform: none;
}

body.dashboard-active #account-menu-panel > button > span:first-child {
  display: grid;
  width: 36px;
  height: 36px;
  grid-column: auto;
  place-items: center;
  border-radius: 9px;
  background: #dff1ed;
  color: #087c73;
  font-size: 1rem;
}

body.dashboard-active #account-menu-panel > button > span:last-child,
body.dashboard-active #account-menu-panel > button > span:last-child strong,
body.dashboard-active #account-menu-panel > button > span:last-child small {
  grid-column: auto;
}

body.dashboard-active #account-menu-panel > button > span:last-child strong {
  color: #173140;
  font-size: .8rem;
  line-height: 1.25;
}

body.dashboard-active #account-menu-panel > button > span:last-child small {
  color: #657983;
  font-size: .68rem;
  line-height: 1.35;
}

body.dashboard-active #account-menu-panel > button.account-menu-logout > span:first-child {
  background: #fae9e5;
  color: #b84e3d;
}

body.dashboard-active #account-menu-panel > button.account-menu-logout > span:last-child strong {
  color: #9a3c2c;
}

@media (max-width: 820px) {
  body.dashboard-active .account-bar > div.account-menu {
    width: 44px;
    min-width: 44px;
    flex-basis: 44px;
    grid-column: auto;
    padding: 0;
  }

  body.dashboard-active #account-menu-panel {
    position: fixed;
    top: 78px;
    right: 12px;
    width: min(292px, calc(100vw - 24px));
  }
}


/* Keep the account initials fully contained by the header control. */
body.dashboard-active #account-button {
  position: relative;
  display: grid;
  width: 46px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  overflow: visible;
}

body.dashboard-active #account-button::before {
  position: static;
  inset: auto;
  width: 32px;
  height: 32px;
  transform: none;
}
