/* palette declarations and global styling */
:root {
  --navy: #0a1f44;
  --navy-soft: #12325f;
  --gold: #d4a017;
  --gold-soft: #f5dc8d;
  --gold-dark: #a67400;
  --teal: #116e6a;
  --teal-dark: #0d5753;
  --ink: #1f2937;
  --muted: #667085;
  --line: #d9e0ea;
  --paper: #ffffff;
  --mist: #f5f8fc;
  --warm: #fff8e8;
  --sage: #e6f0ed;
  --success: #146c43;
  --shadow: 0 18px 42px rgba(10, 31, 68, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

main[id],
section[id] {
  scroll-margin-top: 104px;
}

img {
  display: block;
  max-width: 100%;
}

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

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

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 16px;
  z-index: 40;
  padding: 12px 16px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  color: var(--navy);
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateY(-140%);
}

.skip-link:focus-visible {
  transform: translateY(16px);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-header,
.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 12px clamp(18px, 5vw, 64px);
  color: var(--paper);
  background: rgba(10, 31, 68, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.site-header {
  grid-template-columns: auto 1fr auto;
}

.admin-header {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.admin-header-start {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.header-sign-out {
  min-height: 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(212, 160, 23, 0.85);
  border-radius: 8px;
  background: var(--paper);
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 1rem;
  text-transform: uppercase;
}

.brand small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
  font-weight: 750;
}

.site-nav a,
.header-call {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover,
.header-call:hover,
.site-footer a:hover {
  color: var(--gold);
}

.header-actions,
.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.crm-top-nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  font-weight: 850;
  text-decoration: none;
}

.crm-top-nav-link[hidden] {
  display: none !important;
}

.crm-top-nav-action {
  display: none;
}

.crm-top-nav-link svg {
  width: 16px;
  height: 16px;
}

.crm-top-nav-link:hover,
.crm-top-nav-link:focus-visible {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.crm-top-nav-link.is-active,
.crm-top-nav-link[aria-current="page"] {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
}

.crm-menu-toggle {
  display: none;
}

.header-call {
  gap: 8px;
  color: var(--paper);
  font-weight: 850;
}

.header-book {
  min-height: 42px;
  padding: 10px 14px;
}

.icon-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: var(--paper);
  background: transparent;
}

.icon-button-visible {
  display: inline-grid;
}

.icon-button-dark {
  color: var(--navy);
  border-color: rgba(10, 31, 68, 0.12);
  background: var(--paper);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  color: var(--navy);
  background: var(--paper);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
}

.button.primary:hover {
  background: #e6b534;
}

.button.secondary {
  color: var(--paper);
  background: var(--teal);
  border-color: var(--teal);
}

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

.button.subtle {
  color: var(--navy);
  background: var(--mist);
  border-color: var(--line);
}

.button svg,
.header-call svg,
.hero-proof svg,
.contact-panel svg,
.contact-actions svg,
.trust-list svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.hero {
  min-height: clamp(600px, 86svh, 820px);
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  padding: 78px clamp(20px, 6vw, 80px) 72px;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(10, 31, 68, 0.96), rgba(10, 31, 68, 0.78) 46%, rgba(10, 31, 68, 0.22)),
    url("assets/stock-tech-help-laptop.jpg") 58% center / cover no-repeat;
}

.hero-content {
  width: min(720px, 100%);
}

.hero-logo {
  width: clamp(112px, 11vw, 164px);
  height: auto;
  margin-bottom: 20px;
  border: 3px solid rgba(212, 160, 23, 0.9);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero h1,
.admin-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.98;
}

.hero h1 {
  max-width: 13ch;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  font-weight: 850;
}

.section,
.issue-section,
.booking-section,
.contact-section,
.crm-section {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px);
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading > .eyebrow {
  color: var(--navy);
}

.section-heading h2,
.booking-intro h2,
.split-content h2,
.offer-band h2,
.contact-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
}

.section-heading p:not(.eyebrow),
.booking-intro p,
.split-content p,
.offer-band p,
.contact-section p,
.site-footer p,
.admin-hero p,
.admin-note span {
  color: var(--muted);
  line-height: 1.7;
}

.issue-section {
  background: var(--paper);
}

.issue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  gap: 20px;
  align-items: start;
}

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

.issue-button {
  min-height: 98px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: var(--paper);
  text-align: left;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(10, 31, 68, 0.06);
}

.issue-button svg {
  width: 28px;
  height: 28px;
  color: var(--gold-dark);
}

.issue-button:hover,
.issue-button.is-selected,
.issue-button[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--warm);
}

.service-summary {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(10, 31, 68, 0.14);
  border-radius: 8px;
  background: var(--navy);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.service-summary h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.12;
}

.service-summary p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.service-detail-section {
  background:
    radial-gradient(circle at top left, rgba(212, 160, 23, 0.16), transparent 32%),
    linear-gradient(180deg, #fffdf6 0%, var(--paper) 100%);
}

.service-overview-section {
  background:
    radial-gradient(circle at top left, rgba(212, 160, 23, 0.16), transparent 32%),
    linear-gradient(180deg, #fffdf6 0%, var(--paper) 100%);
}

.service-overview-panel {
  width: min(780px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(10, 31, 68, 0.12);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(10, 31, 68, 0.06);
  text-align: center;
}

.service-overview-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.service-overview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

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

.service-detail-card {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(10, 31, 68, 0.12);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(10, 31, 68, 0.06);
}

.service-detail-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1.15;
}

.service-page-title,
.service-detail-card h2 {
  margin: 0;
  color: var(--navy);
}

.service-page-title {
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1.02;
}

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

.policy-page-panel .service-page-title {
  margin-bottom: 28px;
}

.policy-page-panel p + p {
  margin-top: 18px;
}

.service-detail-card h2 {
  font-size: 1.6rem;
  line-height: 1.15;
}

.service-detail-card p,
.service-detail-card li {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.service-detail-card ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.service-detail-card .button {
  justify-self: start;
}

.coming-soon-card {
  position: relative;
  border-color: rgba(182, 124, 28, 0.28);
  background: linear-gradient(180deg, #fff7e7 0%, #fffdf8 100%);
  box-shadow: 0 14px 32px rgba(182, 124, 28, 0.14);
}

.coming-soon-card::before {
  content: "Coming Soon";
  justify-self: start;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(212, 165, 74, 0.28);
}

.coming-soon-card h2 {
  color: #8a5a00;
}

.faq-hero-section {
  background:
    radial-gradient(circle at top left, rgba(17, 110, 106, 0.12), transparent 34%),
    linear-gradient(180deg, #fdfefe 0%, var(--mist) 100%);
}

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

.faq-card {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(10, 31, 68, 0.12);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(10, 31, 68, 0.06);
}

.faq-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1.15;
}

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

.faq-cta-section {
  background: var(--paper);
  padding-top: 0;
}

.booking-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(320px, 1.26fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  background: var(--warm);
}

.booking-intro {
  position: sticky;
  top: 92px;
}

.contact-panel {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-panel a,
.contact-panel div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(10, 31, 68, 0.14);
  border-radius: 8px;
  background: var(--paper);
}

.contact-panel svg,
.contact-actions svg {
  grid-row: span 2;
  color: var(--teal);
}

.contact-panel span,
.contact-actions span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.contact-panel strong,
.contact-actions strong {
  color: var(--navy);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.booking-form {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(10, 31, 68, 0.14);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.form-heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.7rem;
}

.form-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 850;
}

label span {
  line-height: 1.25;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #b9c5d6;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--paper);
}

textarea {
  resize: vertical;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(212, 160, 23, 0.55);
  outline-offset: 3px;
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  color: var(--ink);
  font-weight: 700;
}

.privacy-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(17, 110, 106, 0.16);
  border-radius: 8px;
  background: rgba(233, 247, 245, 0.72);
}

.privacy-note svg {
  color: var(--teal);
  margin-top: 2px;
}

.privacy-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.booking-expectations {
  padding: 14px 16px;
  border-left: 4px solid rgba(212, 160, 23, 0.72);
  background: rgba(255, 248, 228, 0.78);
}

.booking-expectations ul {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.booking-expectations li {
  color: var(--muted);
  line-height: 1.55;
}

.captcha-panel {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(10, 31, 68, 0.12);
  border-radius: 8px;
  background: rgba(10, 31, 68, 0.03);
}

.captcha-panel label {
  display: grid;
  gap: 8px;
}

.checkbox-row input {
  width: 22px;
  min-height: 22px;
  margin-top: 1px;
}

.submit-button {
  justify-self: start;
}

.form-result {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #c6e5d7;
  border-radius: 8px;
  color: #134d36;
  background: #eefaf4;
  line-height: 1.55;
}

.form-result[hidden] {
  display: none;
}

.form-result strong {
  color: #0f3f2c;
}

.form-result.is-error {
  border-color: #e2a2a2;
  color: #7a1420;
  background: #fdecec;
}

.form-result.is-error strong {
  color: #5f0f18;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
  background: var(--mist);
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.split-content {
  width: min(680px, 100%);
}

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

.trust-list div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.trust-list svg {
  grid-row: span 2;
  color: var(--teal);
}

.trust-list strong {
  color: var(--navy);
}

.trust-list span {
  color: var(--muted);
  line-height: 1.45;
}

.offer-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 42px clamp(18px, 5vw, 72px);
  color: var(--paper);
  background: var(--navy);
}

.offer-band h2 {
  color: var(--paper);
}

.offer-band p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

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

.steps article {
  padding: 24px;
  border-top: 5px solid var(--gold);
  border-radius: 8px;
  background: var(--mist);
}

.steps span {
  color: var(--teal);
  font-weight: 950;
}

.steps h3 {
  margin: 14px 0 8px;
  color: var(--navy);
}

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

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  background: var(--mist);
}

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

.contact-actions a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  min-height: 94px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(4, minmax(160px, 0.7fr));
  gap: 34px;
  padding: 54px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--paper);
  font-size: 1.1rem;
}

.site-footer a,
.site-footer span {
  display: block;
  margin: 8px 0;
  overflow-wrap: anywhere;
}

.footer-brand {
  color: var(--paper);
}

.footer-credit-card {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.footer-credit h2 {
  margin-bottom: 0;
}

.footer-credit-card img {
  width: 92px;
  height: auto;
}

.footer-credit-card span {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 850;
}

.admin-site {
  min-height: 100vh;
  background: var(--mist);
}

.admin-main {
  padding: clamp(26px, 4vw, 52px);
}

.auth-shell {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(520px, 100%);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(10, 31, 68, 0.12);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.auth-brand {
  margin: 10px 0 6px;
  color: var(--navy);
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.auth-result {
  margin-top: 18px;
}

.crm-shell[hidden],
.auth-shell[hidden] {
  display: none;
}

[data-crm-header][hidden] {
  display: none;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
  padding: clamp(22px, 4vw, 38px);
  border-radius: 8px;
  color: var(--paper);
  background: var(--navy);
}

.admin-hero h1 {
  max-width: none;
  color: var(--paper);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  white-space: nowrap;
}

.admin-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.admin-note {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.admin-note svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.admin-note strong {
  color: var(--paper);
}

.admin-note span {
  color: rgba(255, 255, 255, 0.75);
}

.admin-site .crm-section {
  padding: 0;
}

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

.session-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.session-banner strong,
.session-banner span {
  display: block;
}

.session-banner strong {
  color: var(--navy);
}

.session-banner span {
  color: var(--muted);
  margin-top: 4px;
}

.crm-stats div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.crm-stats span {
  display: block;
  color: var(--teal);
  font-size: 2.1rem;
  font-weight: 950;
}

.crm-stats strong {
  color: var(--navy);
}

.crm-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr)) auto auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.crm-toolbar .button {
  min-height: 48px;
}

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

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 68, 0.6);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(90vh, 940px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.lead-detail-modal-card {
  width: min(1040px, 100%);
}

.lead-detail-modal-content {
  display: grid;
  gap: 18px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}

.modal-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.8rem;
}

.modal-header p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.modal-close {
  display: inline-grid;
  color: var(--navy);
  background: var(--mist);
}

.modal-form textarea {
  min-height: 128px;
}

.stripe-payment-element {
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.stripe-field-group {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 850;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-actions-split {
  justify-content: space-between;
}

.crm-layout {
  display: grid;
  grid-template-columns: minmax(500px, 680px) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin-top: 18px;
}

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

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

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

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

.workspace-switcher {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.workspace-tab {
  min-height: 42px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  color: var(--navy);
  background: transparent;
  font-weight: 900;
}

.workspace-tab.is-active {
  color: var(--paper);
  background: var(--navy);
}

.admin-section-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-section-tab {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--paper);
  font-weight: 900;
}

.admin-section-tab.is-active {
  color: var(--paper);
  background: var(--navy);
  border-color: var(--navy);
}

.admin-section-panel {
  display: none;
}

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

.tech-section-panel {
  display: none;
}

.tech-section-panel.is-active {
  display: block;
}

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

.overview-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(10, 31, 68, 0.06);
}

.card-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.2rem;
}

.card-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-grid {
  align-items: stretch;
}

.crm-calendar-card {
  display: grid;
  gap: 18px;
}

.dashboard-calendar-card {
  grid-column: 1 / -1;
}

.activity-graph {
  margin-top: 18px;
}

.activity-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 220px;
}

.activity-bar-column {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.activity-bar-value,
.activity-bar-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.activity-bar-track {
  display: flex;
  align-items: end;
  width: 100%;
  min-height: 150px;
  padding: 8px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f5f8fc 0%, #ecf2f7 100%);
}

.activity-bar-fill {
  width: 100%;
  height: var(--activity-size, 10%);
  min-height: 10%;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--teal) 100%);
}

.customer-overview-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

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

.google-calendar-frame-wrap {
  overflow: hidden;
  border: 1px solid rgba(10, 31, 68, 0.08);
  border-radius: 8px;
  background: #fff;
}

.google-calendar-frame {
  width: 100%;
  min-height: 720px;
  border: 0;
  background: #fff;
}

.schedule-day-card {
  display: grid;
  gap: 12px;
  min-height: 220px;
  padding: 14px;
  border: 1px solid rgba(10, 31, 68, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

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

.schedule-day-header strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.schedule-day-header span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.schedule-day-items {
  display: grid;
  gap: 10px;
  align-content: start;
}

.schedule-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: var(--mist);
}

.schedule-item strong,
.profile-schedule-item strong {
  color: var(--navy);
  font-size: 0.84rem;
}

.schedule-item span,
.profile-schedule-item span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.schedule-item-empty {
  border: 1px dashed rgba(10, 31, 68, 0.14);
  background: transparent;
  text-align: center;
}

.profile-schedule-list {
  display: grid;
  gap: 10px;
}

.profile-schedule-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(10, 31, 68, 0.08);
  border-radius: 8px;
  background: var(--paper);
}

.profile-schedule-item > div {
  display: grid;
  gap: 4px;
}

.customer-overview-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(10, 31, 68, 0.08);
  border-radius: 8px;
  background: var(--mist);
}

.customer-overview-grid strong,
.staff-summary-card strong {
  color: var(--navy);
  font-size: 1.4rem;
}

.customer-overview-grid span,
.staff-summary-card span {
  color: var(--muted);
  line-height: 1.5;
}

.pipeline-bars,
.assignment-summary {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.pipeline-row,
.assignment-row {
  display: grid;
  gap: 8px;
}

.pipeline-label,
.assignment-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--navy);
  font-weight: 850;
}

.pipeline-track {
  height: 10px;
  border-radius: 999px;
  background: var(--mist);
  overflow: hidden;
}

.pipeline-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
}

.assignment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workspace-panel {
  display: none;
}

.workspace-panel.is-active {
  display: block;
}

.customer-profiles-section {
  display: grid;
  gap: 18px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(10, 31, 68, 0.08);
}

.crm-subheading {
  margin-bottom: 0;
}

.customer-toolbar {
  align-items: end;
}

.staff-toolbar {
  grid-template-columns: repeat(4, minmax(180px, 1fr)) auto auto;
}

.billing-toolbar {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.billing-shell {
  display: grid;
  gap: 18px;
}

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

.billing-layout {
  align-items: start;
}

.lead-list {
  display: grid;
  gap: 16px;
  align-content: start;
}

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

.list-more-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.staff-group-section {
  display: grid;
  gap: 14px;
}

.staff-group-heading {
  width: 100%;
  max-width: none;
  margin: 0;
  margin-bottom: 0;
  padding: 0;
  justify-content: flex-start;
  text-align: left;
  justify-items: start;
}

.staff-group-heading h3 {
  width: 100%;
  margin: 0;
  font-size: 1.2rem;
  text-align: left;
}

.lead-card {
  align-self: start;
  height: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 4px 12px rgba(10, 31, 68, 0.05);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.customer-card.is-inactive {
  opacity: 0.72;
  border-style: dashed;
}

.lead-card.is-active {
  border-color: var(--teal);
  background: var(--paper);
  box-shadow: 0 4px 12px rgba(10, 31, 68, 0.05);
}

.conditional-field.is-hidden {
  display: none;
}

.lead-card.is-active button h3,
.lead-card.is-active button p {
  color: var(--navy);
}

.lead-card-button {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  border: 0;
  padding: 18px 20px;
  color: inherit;
  background: transparent;
  text-align: left;
  width: 100%;
  height: 100%;
  align-content: start;
  overflow: hidden;
}

.lead-card-copy {
  display: grid;
  gap: 0;
  min-width: 0;
}

.lead-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.25;
}

.lead-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  min-width: 0;
}

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

.customer-meta .pill {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--sage);
  font-size: 0.73rem;
  font-weight: 900;
}

.membership-pill {
  color: #7a4d00;
  background: #fff1d6;
}

.payment-alert-pill {
  color: #8b2f2f;
  background: #ffe5e5;
}

.lead-detail {
  position: sticky;
  top: 92px;
  min-height: 320px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.lead-detail[hidden] {
  display: block;
  visibility: hidden;
  pointer-events: none;
}

.lead-detail > svg {
  width: 34px;
  height: 34px;
  color: var(--teal);
}

.lead-detail h3,
.lead-detail-modal-content h3 {
  margin: 14px 0 8px;
  color: var(--navy);
}

.lead-detail p,
.lead-detail li,
.lead-detail-modal-content p,
.lead-detail-modal-content li {
  color: var(--muted);
  line-height: 1.6;
}

.lead-detail dl,
.lead-detail-modal-content dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.lead-detail dt,
.lead-detail-modal-content dt {
  color: var(--navy);
  font-weight: 900;
}

.lead-detail dd,
.lead-detail-modal-content dd {
  margin: 4px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-header-card,
.detail-card-toolbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.detail-header-card {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(10, 31, 68, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.detail-header-copy {
  display: flex;
  gap: 14px;
  align-items: start;
}

.detail-header-copy > svg {
  width: 34px;
  height: 34px;
  color: var(--teal);
  flex: 0 0 auto;
}

.detail-header-copy h3 {
  margin: 0;
}

.detail-header-copy p {
  margin: 6px 0 0;
  color: var(--muted);
}

.detail-header-card .icon-button-visible,
.detail-card-toolbar .icon-button-visible {
  display: inline-grid;
  flex: 0 0 auto;
  color: var(--paper);
  border-color: var(--navy);
  background: var(--navy);
}

.detail-header-card .icon-button-visible:hover,
.detail-header-card .icon-button-visible:focus-visible,
.detail-card-toolbar .icon-button-visible:hover,
.detail-card-toolbar .icon-button-visible:focus-visible {
  border-color: var(--navy-soft);
  background: var(--navy-soft);
}

.detail-stack {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.customer-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.customer-status-edit-card {
  margin-top: 24px;
}

.detail-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}

.detail-card h4 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1rem;
}

.detail-card p {
  margin: 0;
}

.payment-card {
  display: grid;
  gap: 16px;
}

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

.payment-card-header p {
  margin-top: 8px;
}

.payment-processor-pill {
  background: #fff1d6;
}

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

.payment-readiness-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(10, 31, 68, 0.08);
  border-radius: 8px;
  background: var(--paper);
}

.payment-readiness-grid strong {
  color: var(--navy);
  font-size: 0.84rem;
}

.payment-readiness-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-actions .button[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
  box-shadow: none;
}

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

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

.detail-form textarea {
  min-height: 110px;
}

.detail-form .button {
  justify-self: start;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: #6d645f;
  font-size: 0.84rem;
  line-height: 1.4;
}

.form-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.form-action-row-split {
  justify-content: space-between;
}

.danger-button {
  color: #a82b2b;
  background: #fff0f0;
  border-color: rgba(168, 43, 43, 0.28);
}

.danger-button-strong {
  color: #fff7f7;
  background: #b93030;
  border-color: #b93030;
}

.danger-button-strong:hover,
.danger-button-strong:focus-visible {
  background: #962525;
  border-color: #962525;
}

.archive-button {
  color: #6a4d0b;
  background: #fff4db;
  border-color: rgba(122, 77, 0, 0.18);
}

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

.note-item {
  padding: 12px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid rgba(10, 31, 68, 0.08);
}

.note-item-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.note-item strong {
  display: block;
  color: var(--navy);
  margin-bottom: 6px;
}

.note-item span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.note-delete-button {
  border: 1px solid rgba(168, 43, 43, 0.28);
  border-radius: 999px;
  padding: 4px 8px;
  color: #a82b2b;
  background: #fff0f0;
  font-size: 0.72rem;
  font-weight: 900;
}

.note-visibility {
  display: inline-flex;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.customer-card-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.customer-meta {
  flex-wrap: wrap;
  margin-top: 8px;
}

.customer-hero-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(10, 31, 68, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.customer-hero-copy {
  display: flex;
  gap: 14px;
  align-items: start;
}

.customer-hero-copy > svg {
  width: 34px;
  height: 34px;
  color: var(--teal);
  flex: 0 0 auto;
}

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

.customer-hero-title h3 {
  margin: 0;
}

.checkbox-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.checkbox-panel input {
  width: 18px;
  height: 18px;
}

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

.ticket-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(10, 31, 68, 0.08);
  border-radius: 8px;
  background: var(--paper);
}

.ticket-item-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.ticket-item-header strong {
  display: block;
  color: var(--navy);
}

.ticket-item-header span {
  color: var(--muted);
  line-height: 1.45;
}

.ticket-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 6px;
}

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

.ticket-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: var(--mist);
}

.ticket-grid strong {
  color: var(--navy);
  font-size: 0.8rem;
}

.ticket-grid span,
.ticket-outcome {
  color: var(--muted);
  line-height: 1.5;
}

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

.staff-summary-card {
  padding: 18px;
}

.tech-summary {
  margin-top: 18px;
}

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

.tech-summary-grid .overview-card {
  padding: 18px;
}

.tech-toolbar {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.tech-calendar-card {
  margin-top: 18px;
}

.settings-shell {
  display: grid;
  gap: 18px;
}

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

.settings-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.staff-edit-card {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  background: var(--paper);
}

.staff-profile-view.is-editing > dl,
.staff-profile-view.is-editing .detail-stack > .detail-card:not(.staff-edit-card) {
  display: none;
}

.staff-profile-view.is-editing {
  display: grid;
  gap: 18px;
}

.staff-profile-view.is-editing .detail-stack {
  margin-top: 0;
}

.staff-edit-card > p {
  color: var(--muted);
  line-height: 1.5;
}

.staff-calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.staff-calendar-preview {
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--mist);
}

.staff-calendar-preview iframe {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
}

.staff-calendar-actions .button,
.staff-edit-actions .button {
  justify-self: auto;
}

.audit-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 520px);
  gap: 14px;
  margin-bottom: 18px;
}

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

.audit-log-card {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 1px solid rgba(10, 31, 68, 0.08);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(10, 31, 68, 0.06);
  overflow: hidden;
}

.audit-log-toggle {
  display: block;
  width: 100%;
  padding: 18px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.audit-log-toggle:hover,
.audit-log-toggle:focus-visible {
  background: rgba(10, 31, 68, 0.03);
}

.audit-log-body {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.audit-log-body[hidden] {
  display: none;
}

.audit-log-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.audit-log-toggle-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audit-log-header h3,
.audit-log-meta strong {
  margin: 0;
  color: var(--navy);
}

.audit-log-header time,
.audit-log-header span,
.audit-log-meta span,
.audit-log-details li {
  color: var(--muted);
  line-height: 1.5;
}

.audit-log-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(10, 31, 68, 0.08);
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

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

.audit-log-meta div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--mist);
}

.audit-log-details {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.notification-trigger {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  color: #fff;
  background: #b93030;
  font-size: 0.68rem;
  font-weight: 900;
}

.notification-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(380px, 100%);
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 16px;
  padding: 20px;
  border-left: 1px solid rgba(10, 31, 68, 0.08);
  background: #f9fbfd;
  box-shadow: -8px 0 24px rgba(10, 31, 68, 0.12);
  transform: translateX(104%);
  transition: transform 180ms ease;
}

[data-password-modal] .modal-card {
  width: min(520px, 100%);
}

.notification-drawer.is-open {
  transform: translateX(0);
}

.notification-drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.notification-drawer-header h2 {
  margin: 4px 0 0;
  color: var(--navy);
}

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

.notification-list {
  display: grid;
  gap: 10px;
  align-content: start;
  overflow: auto;
}

.notification-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(10, 31, 68, 0.08);
  border-radius: 8px;
  background: var(--paper);
}

.notification-item-open {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: 0;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.notification-item strong,
.notification-item-open strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.notification-item span,
.notification-item-open span {
  color: var(--muted);
  font-size: 0.78rem;
}

.notification-item.is-unread {
  border-color: rgba(185, 48, 48, 0.22);
  background: #fff7f7;
}

.notification-delete-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(185, 48, 48, 0.18);
  border-radius: 999px;
  color: #9d2d2d;
  background: #fff5f5;
  cursor: pointer;
}

.notification-delete-button:hover,
.notification-delete-button:focus-visible {
  border-color: rgba(185, 48, 48, 0.32);
  background: #ffe9e9;
}

.lead-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill.status-pill {
  background: #eaf0fb;
}

.pill.priority-pill {
  background: #fff1d6;
}

.pill.payment-pill {
  background: #e8f6ef;
}

.empty-state {
  padding: 22px;
  border: 1px dashed #9cadc4;
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  line-height: 1.6;
}

.small-print {
  opacity: 0.80;
  font-size: 0.88rem;
  font-style: italic;
}

@media (max-width: 1120px) {
  .admin-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    white-space: normal;
  }

  .admin-hero,
  .admin-hero > *,
  .overview-card,
  .card-heading,
  .crm-toolbar > * {
    min-width: 0;
  }

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

  .overview-grid,
  .tech-summary-grid,
  .service-detail-grid,
  .faq-grid,
  .steps,
  .contact-actions,
  .ticket-grid,
  .staff-summary-grid,
  .schedule-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .audit-log-meta {
    grid-template-columns: 1fr;
  }

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

  .crm-toolbar .button {
    width: 100%;
  }
}

@media (max-width: 920px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .modal-shell {
    padding: 16px;
  }

  .modal-card {
    max-height: calc(100dvh - 32px);
  }

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

  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-nav.is-open {
    position: fixed;
    inset: 73px 16px auto;
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 8px;
    color: var(--navy);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open a {
    min-height: 46px;
    padding: 10px;
    border-radius: 8px;
  }

  .site-nav.is-open a:hover {
    color: var(--navy);
    background: var(--warm);
  }

  .hero {
    background:
      linear-gradient(90deg, rgba(10, 31, 68, 0.96), rgba(10, 31, 68, 0.72)),
      url("assets/stock-tech-help-laptop.jpg") 55% center / cover no-repeat;
  }

  .issue-layout,
  .booking-section,
  .split-band,
  .contact-section,
  .site-footer,
  .admin-hero,
  .crm-layout {
    grid-template-columns: 1fr;
  }

  .booking-intro,
  .service-summary,
  .lead-detail {
    position: static;
  }

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

  .admin-header-start {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .session-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-header .crm-menu-toggle {
    display: inline-grid !important;
    align-self: center;
  }

  .admin-header .header-sign-out,
  .admin-header-actions {
    display: none;
  }

  .admin-header .crm-top-nav {
    display: none !important;
    width: 100%;
  }

  .admin-header .crm-top-nav.is-open {
    position: fixed;
    inset: 82px 16px auto;
    z-index: 30;
    display: grid !important;
    gap: 8px;
    padding: 16px;
    border-radius: 12px;
    color: var(--navy);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .admin-header .crm-top-nav.is-open .crm-top-nav-link {
    justify-content: flex-start;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--navy);
    border-color: rgba(10, 31, 68, 0.08);
    background: transparent;
  }

  .admin-header .crm-top-nav.is-open .crm-top-nav-link:hover,
  .admin-header .crm-top-nav.is-open .crm-top-nav-link:focus-visible {
    color: var(--navy);
    background: var(--warm);
    border-color: rgba(212, 160, 23, 0.3);
  }

  .admin-header .crm-top-nav.is-open .crm-top-nav-link.is-active,
  .admin-header .crm-top-nav.is-open .crm-top-nav-link[aria-current="page"] {
    color: var(--navy);
    background: var(--gold);
    border-color: var(--gold);
  }

  .admin-header .crm-top-nav.is-open .crm-top-nav-action {
    display: inline-flex;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .activity-graph {
    overflow: visible;
    padding-bottom: 0;
  }

  .activity-bars {
    grid-template-columns: 1fr;
    min-width: 0;
    min-height: 0;
    gap: 12px;
  }

  .activity-bar-column {
    display: grid;
    grid-template-columns: 42px 1fr 32px;
    grid-template-areas: "label track value";
    gap: 10px;
    align-items: center;
    justify-items: stretch;
  }

  .activity-bar-track {
    grid-area: track;
    min-height: 0;
    height: 16px;
    padding: 3px;
    border-radius: 999px;
  }

  .activity-bar-fill {
    width: var(--activity-size, 10%);
    height: 100%;
    min-height: 0;
    border-radius: 999px;
  }

  .activity-bar-label {
    grid-area: label;
    font-size: 0.74rem;
    text-align: left;
  }

  .activity-bar-value {
    grid-area: value;
    font-size: 0.74rem;
    text-align: right;
  }

  .google-calendar-frame {
    min-height: 560px;
  }

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

  .admin-hero h1 {
    white-space: normal;
  }

  .hero {
    min-height: 82svh;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-actions,
  .offer-band,
  .modal-actions,
  .result-actions,
  .service-overview-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .offer-band .button,
  .submit-button,
  .result-actions .button,
  .service-overview-actions .button {
    width: 100%;
  }

  .issue-grid,
  .overview-grid,
  .tech-summary-grid,
  .service-detail-grid,
  .faq-grid,
  .steps,
  .form-grid,
  .crm-stats,
  .crm-toolbar,
  .customer-toolbar,
  .tech-toolbar,
  .audit-toolbar,
  .trust-list,
  .contact-actions,
  .ticket-grid,
  .staff-summary-grid,
  .activity-bars,
  .schedule-board-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .profile-schedule-item {
    flex-direction: column;
  }

  .form-action-row-split,
  .modal-actions-split {
    flex-direction: column;
    align-items: stretch;
  }

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

  .payment-readiness-grid {
    grid-template-columns: 1fr;
  }

  .lead-card select {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
