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

:root {
  --ink: #211b42;
  --ink-soft: #68637d;
  --navy: #17142f;
  --navy-2: #211d43;
  --brand: #312791;
  --brand-hover: #493ab0;
  --brand-pale: #f0edfb;
  --accent: #b6adff;
  --paper: #fbfaff;
  --line: #e7e4f2;
  --white: #fff;
  --heading: "Manrope", "DM Sans", sans-serif;
  --body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
*[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 15px; -webkit-font-smoothing: antialiased; }
body.maintenance-status-pending > .site-header, body.maintenance-status-pending > main, body.maintenance-status-pending > .site-footer { visibility: hidden; }
body.maintenance-status-pending::before { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 24px; background: var(--paper); color: var(--ink-soft); content: "Checking website availability…"; font: 600 12px var(--heading); }
body.maintenance-page-active .site-header, body.maintenance-page-active .site-footer { display: none; }
body.maintenance-page-active main { min-height: 100vh; }
.seasonal-decor { position: fixed; inset: 0; z-index: 30; overflow: hidden; pointer-events: none; }
.seasonal-snow, .seasonal-web { display: none; }
body.public-theme-view:not(.maintenance-status-pending):not(.maintenance-page-active)[data-website-theme="christmas"] .seasonal-snow { display: block; position: absolute; inset: 0; }
.seasonal-snow span { position: absolute; left: var(--x); top: var(--y); width: 5px; height: 5px; border-radius: 50%; background: #f9faff; box-shadow: 0 0 2px #6f6caa, 0 0 7px #cbd9ff; opacity: .8; }
.seasonal-snow span:nth-child(3n) { width: 8px; height: 8px; opacity: .65; }
.seasonal-snow span:nth-child(4n) { width: 3px; height: 3px; }
body.public-theme-view:not(.maintenance-status-pending):not(.maintenance-page-active)[data-website-theme="halloween"] .seasonal-web { display: block; position: absolute; z-index: 30; top: 78px; width: min(100px, 22vw); height: auto; stroke: #b7a5e8; stroke-width: 1.4; opacity: .55; filter: drop-shadow(0 1px 1px #211b4270); pointer-events: none; }
.seasonal-web-left { left: 0; }
.seasonal-web-right { right: 0; transform: scaleX(-1); }
.seasonal-character, .seasonal-character svg { display: none; }
body.public-theme-view:not(.maintenance-status-pending):not(.maintenance-page-active)[data-website-theme="christmas"] .seasonal-character,
body.public-theme-view:not(.maintenance-status-pending):not(.maintenance-page-active)[data-website-theme="halloween"] .seasonal-character { display: inline-flex; position: absolute; z-index: 3; left: 50%; bottom: 25px; transform: translateX(-50%); color: var(--accent); pointer-events: none; }
body.public-theme-view[data-website-theme="christmas"] .seasonal-snowman,
body.public-theme-view[data-website-theme="halloween"] .seasonal-spider { display: block; width: 80px; height: 80px; }
@media (prefers-reduced-motion: no-preference) {
  .seasonal-snow span { top: 0; animation: seasonal-snowfall var(--duration) linear var(--delay) infinite; }
  .seasonal-spider { transform-origin: 50% 0; animation: seasonal-spider-sway 4s ease-in-out infinite; }
  @keyframes seasonal-snowfall {
    from { transform: translate3d(0, -12px, 0); }
    to { transform: translate3d(22px, calc(100vh + 12px), 0); }
  }
  @keyframes seasonal-spider-sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
  }
}
.maintenance-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--paper); }
.maintenance-content { width: min(100%, 520px); text-align: center; }
.maintenance-content .eyebrow { margin-bottom: 13px; font-size: 9px; }
.maintenance-content h1 { margin: 0; font: 800 clamp(34px, 7vw, 54px)/1.1 var(--heading); letter-spacing: -2px; }
.maintenance-content > p:not(.eyebrow) { margin: 17px 0 24px; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #8a7ae2; outline-offset: 3px; }
.site-header { height: 78px; padding: 0 max(calc((100vw - 1200px) / 2), 5.6vw); display: flex; align-items: center; justify-content: space-between; gap: 35px; background: var(--navy); color: var(--white); position: relative; z-index: 20; box-shadow: inset 0 -1px #ffffff12; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--white); font: 800 20px var(--heading); letter-spacing: -.9px; white-space: nowrap; }
.brand-mark { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; overflow: hidden; border: 1px solid #dcd7fa; border-radius: 12px; background: #f7f5ff; }
.brand-logo { width: 100%; height: 100%; object-fit: contain; }
.brand-light { font-weight: 500; color: #c5c0d8; }
.main-nav { display: flex; align-items: center; gap: 36px; margin-left: auto; }
.main-nav a, .nav-link, .login-link { color: #c0cbd0; font-size: 13px; font-weight: 500; transition: color .2s ease; }
.main-nav a:hover, .nav-link:hover, .login-link:hover { color: var(--accent); }
.nav-link, .login-link { border: 0; background: none; padding: 0; }
.header-actions { display: flex; align-items: center; gap: 25px; }
.login-link { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.login-link svg { width: 19px; height: 19px; }
.button { border: 1px solid var(--brand); border-radius: 7px; background: var(--brand); padding: 14px 19px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; color: var(--white); font-size: 13px; font-weight: 700; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { border-color: var(--brand-hover); background: var(--brand-hover); transform: translateY(-2px); box-shadow: 0 8px 22px #3127912c; }
.button:disabled, .button:disabled:hover { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.site-header .button, .hero .button, .closing-cta .button { border-color: var(--accent); background: var(--accent); color: var(--navy); }
.site-header .button:hover, .hero .button:hover, .closing-cta .button:hover { border-color: #d1cbff; background: #d1cbff; box-shadow: 0 8px 22px #b6adff2c; }
.button span { font-size: 17px; line-height: 1; }
.button-small { min-height: 40px; padding: 10px 14px; gap: 15px; font-size: 12px; }
.menu-toggle { display: none; }
.hero { position: relative; min-height: 588px; overflow: hidden; background: var(--navy); color: var(--white); padding: 80px max(calc((100vw - 1200px) / 2), 5.6vw) 0; }
.hero:before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(#5b70761d 1px, transparent 1px), linear-gradient(90deg, #5b70761d 1px, transparent 1px); background-size: 62px 62px; mask-image: linear-gradient(90deg, transparent, black 62%, black); pointer-events: none; }
.hero:after { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(380px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), #b6adff38, #7565cc15 42%, transparent 75%); transition: opacity .45s ease; }
.hero.has-pointer-glow:after { opacity: 1; }
.hero-ambient { position: absolute; inset: -25% -10%; pointer-events: none; background: radial-gradient(ellipse at 73% 35%, #6555bd38, transparent 37%), radial-gradient(ellipse at 28% 80%, #4038a62b, transparent 35%); }
.hero-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; position: relative; z-index: 1; }
.hero-copy { padding: 0 0 56px; position: relative; z-index: 2; }
.eyebrow { color: #b9c7c9; font-size: 10px; font-weight: 700; letter-spacing: 1.65px; line-height: 1.5; margin: 0 0 18px; }
.eyebrow-dot, .live-dot { display: inline-block; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; margin-right: 7px; box-shadow: 0 0 12px #b6adff80; vertical-align: 1px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--heading); letter-spacing: -2.2px; }
.hero h1 { font-size: clamp(48px, 5.4vw, 71px); line-height: 1.06; margin: 0 0 23px; font-weight: 600; }
.hero h1 span, .inner-hero h1 span, .portal-shell h1 span { color: var(--accent); }
.hero-intro { max-width: 475px; color: #b2c0c5; font-size: 15px; line-height: 1.8; margin-bottom: 30px; }
.hero-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.text-link { padding: 0; border: 0; background: none; color: inherit; display: inline-flex; align-items: center; gap: 11px; font-size: 12px; font-weight: 700; }
.text-link:hover { color: var(--brand-hover); }
.hero .text-link { color: #d2dadd; }
.hero .text-link:hover { color: var(--accent); }
.announcement-banner { background: var(--brand); color: var(--white); }
.announcement-banner-inner { width: min(100%, 1200px); min-height: 48px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.announcement-banner-label { color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: 1.2px; white-space: nowrap; }
.announcement-banner p { margin: 0; font-size: 12px; line-height: 1.5; }
.hero-proof { display: flex; align-items: center; gap: 10px; color: #8d9ba0; margin-top: 36px; font-size: 11px; }
.proof-icon { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #786fc1; border-radius: 50%; color: var(--accent); font-size: 10px; }
.hero-visual { position: relative; height: 390px; margin: 0 -18px 22px 4px; display: grid; place-items: center; }
.visual-glow { width: 335px; height: 335px; position: absolute; border-radius: 50%; background: radial-gradient(circle, #463a8777 0, #25204f70 37%, transparent 70%); }
.orbit { position: absolute; border: 1px solid #7970c263; border-radius: 50%; transform: rotate(-24deg); }
.orbit-a { width: 330px; height: 184px; }
.orbit-b { width: 416px; height: 234px; transform: rotate(38deg); }
.hub { width: 160px; height: 173px; z-index: 2; border: 1px solid #665da7; border-radius: 21px; background: linear-gradient(145deg,#28234f,#191632 68%); box-shadow: 0 24px 65px #050510a6, inset 0 1px #ffffff18; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hub-icon { width: 86px; height: 86px; display: grid; place-items: center; overflow: hidden; border: 1px solid #dcd7fa; border-radius: 20px; background: #f7f5ff; margin-bottom: 8px; }
.hub-logo { width: 100%; height: 100%; object-fit: contain; }
.hub > span { color: #b7b2d8; font-size: 8px; letter-spacing: 1.3px; margin-bottom: 5px; }
.hub strong { font: 600 14px var(--heading); }
.visual-label { position: absolute; top: 18px; right: 7%; color: #a7b3b0; font-size: 8px; letter-spacing: 1.4px; }
.system-card { width: 142px; height: 67px; position: absolute; z-index: 4; border: 1px solid #514a7b; border-radius: 10px; background: linear-gradient(135deg,#2c2850,#201d3c); box-shadow: 0 10px 30px #04040f73; display: grid; grid-template-columns: 31px 1fr; grid-template-rows: 1fr 1fr; align-content: center; padding: 12px 10px; text-align: left; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.system-card:hover, .system-card:focus-visible { border-color: var(--accent); background: linear-gradient(135deg,#3b346a,#262146); box-shadow: 0 10px 30px #04040f73, 0 0 20px #b6adff30; }
.camera-card { left: 3%; top: 86px; }
.alarm-card { right: 0; top: 105px; }
.access-card { right: 10%; bottom: 42px; }
.system-symbol { grid-row: 1 / span 2; align-self: center; color: var(--accent); }
.system-symbol svg { width: 21px; height: 21px; }
.system-name { color: #e1e7e5; font-size: 10px; font-weight: 600; align-self: end; white-space: nowrap; }
.system-state { color: #c9c4e7; font-size: 8px; align-self: start; margin-top: 3px; white-space: nowrap; }
.system-state:before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 4px; vertical-align: 1px; }
.connection { position: absolute; border-top: 1px dashed #a69ce180; z-index: 1; }
.connection-a { width: 116px; top: 151px; left: 27%; transform: rotate(22deg); }
.connection-b { width: 122px; top: 167px; right: 24%; transform: rotate(-10deg); }
.connection-c { width: 121px; bottom: 90px; right: 30%; transform: rotate(20deg); }
.visual-caption { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); color: #a7b3b0; font-size: 10px; letter-spacing: .3px; white-space: nowrap; }
.hero-bottom { max-width: 1200px; height: 52px; border-top: 1px solid #403c62; display: flex; gap: 18px; align-items: center; color: #9591ad; font-size: 8px; letter-spacing: 1.5px; position: relative; z-index: 2; }
.hero-bottom-line { width: 30px; height: 1px; background: #766fb0; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.orb-one { width: 290px; height: 290px; border: 1px solid #8e84dd2b; right: -110px; top: -115px; }
.orb-two { width: 150px; height: 150px; background: #6356b51f; left: 39%; bottom: -96px; }
.section-wrap { max-width: 1200px; margin: 0 auto; padding: 105px 0 84px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 43px; }
.eyebrow-dark { color: #6558b3; }
.section-heading h2, .about-copy h2 { margin: 0; font-size: clamp(36px, 4vw, 49px); font-weight: 600; line-height: 1.12; }
.section-heading h2 span, .about-copy h2 span { color: var(--brand-hover); }
.section-intro { max-width: 390px; color: var(--ink-soft); font-size: 13px; line-height: 1.85; margin: 0 16px 3px 20px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 229px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 23px 26px 20px; position: relative; background: linear-gradient(145deg, #fff, #faf9ff); transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.service-card:hover, .service-card:focus-within { background: #fff; transform: translateY(-3px); z-index: 1; box-shadow: 0 12px 26px #31279112; }
.service-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #ded9f7; border-radius: 9px; background: #f5f3ff; color: var(--brand); }
@media (prefers-reduced-motion: no-preference) {
  .service-icon { transition: transform .25s ease, box-shadow .25s ease; }
  .service-card:hover .service-icon, .service-card:focus-within .service-icon { transform: translateY(-4px); box-shadow: 0 7px 14px #31279118; }
}
.service-icon svg { width: 20px; height: 20px; }
.service-number { position: absolute; top: 28px; right: 26px; font: 600 10px var(--heading); color: #8d87a8; }
.service-card h3 { margin: 16px 0 8px; font: 700 16px var(--heading); letter-spacing: -.35px; }
.service-card p { color: var(--ink-soft); font-size: 11px; line-height: 1.7; max-width: 310px; margin-bottom: 14px; }
.service-more { border: 0; background: none; color: var(--brand); padding: 0; font-size: 10px; font-weight: 700; }
.service-more span { font-size: 14px; padding-left: 5px; }
.maintenance-note { margin-top: 20px; min-height: 76px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; border: 1px solid #e4dff8; border-radius: 10px; background: linear-gradient(120deg, #f0edfb, #f8f6ff); }
.maintenance-icon { width: 35px; height: 35px; flex: none; display: grid; place-items: center; color: var(--brand); border-radius: 50%; background: #dfdaf8; font-size: 20px; }
.maintenance-note p { flex: 1; margin: 0; color: #67706a; font-size: 11px; line-height: 1.6; }
.maintenance-note p strong { color: #352f54; }
.maintenance-note .text-link { color: var(--brand); white-space: nowrap; }
.about-section { background: #f0eef8; padding: 88px 5.6vw; }
.about-inner { max-width: 1200px; display: grid; grid-template-columns: .92fr 1fr; gap: 10%; align-items: center; margin: 0 auto; }
.about-visual { min-height: 380px; position: relative; border-radius: 13px; background: linear-gradient(135deg,#1a1736,#29234f); overflow: hidden; display: grid; place-items: center; }
.about-visual:before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(#c0b9f51e 1px, transparent 1px), linear-gradient(90deg,#c0b9f51e 1px, transparent 1px); background-size: 37px 37px; }
.about-network { position: relative; z-index: 1; display: block; width: calc(100% - 28px); max-width: 600px; height: auto; overflow: visible; }
.about-network-lines { fill: none; stroke: #8c82db; stroke-width: 1.4; opacity: .7; }
.about-network-lines circle { fill: var(--accent); stroke: none; }
.about-network-node rect { fill: #252146; stroke: #675e9f; stroke-width: 1; }
.about-network-icon { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.about-network-node text { fill: #e2dff4; font: 600 10px var(--body); }
.about-network-center > circle:not(.about-network-halo) { fill: #29244e; stroke: #8c82db; stroke-width: 1.3; }
.about-network-center .about-network-halo { fill: #b6adff0a; stroke: #b6adff24; stroke-width: 1; }
.about-network-center > circle.about-network-disc { fill: #f4f1ff; stroke: none; }
.about-network-center text { fill: var(--accent); font: 700 8px var(--body); letter-spacing: 1px; text-anchor: middle; }
@media (prefers-reduced-motion: no-preference) {
  .hero-ambient { animation: hero-ambient-drift 16s ease-in-out infinite; }
  .visual-glow { animation: hero-glow 6s ease-in-out infinite; }
  .hero-visual .live-dot { animation: hero-pulse 3s ease-in-out infinite; }
  .hub { animation: hero-float 8s ease-in-out infinite; }
  .system-card .system-symbol { animation: hero-float 6s ease-in-out infinite; }
  .system-card:hover .system-symbol, .system-card:focus-visible .system-symbol { animation-play-state: paused; }
  .alarm-card .system-symbol { animation-delay: -2s; }
  .access-card .system-symbol { animation-delay: -4s; }
  .about-network-halo { animation: network-pulse 6s ease-in-out infinite; transform-origin: 320px 210px; }
  @keyframes hero-ambient-drift {
    0%, 100% { transform: translate3d(-2%, 0, 0) scale(1); }
    50% { transform: translate3d(2%, -2%, 0) scale(1.05); }
  }
  @keyframes hero-glow {
    0%, 100% { opacity: .7; transform: scale(.96); }
    50% { opacity: 1; transform: scale(1.05); }
  }
  @keyframes hero-pulse {
    0%, 100% { box-shadow: 0 0 4px #b6adff80; }
    50% { box-shadow: 0 0 15px #b6adff; }
  }
  @keyframes hero-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -4px; }
  }
  @keyframes network-pulse {
    0%, 100% { opacity: .6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
  }
}
.about-copy h2 { font-size: clamp(34px, 3.7vw, 46px); margin: 0 0 20px; }
.about-copy > p:not(.eyebrow) { color: #68637d; font-size: 12px; line-height: 1.8; }
.about-copy .about-lede { color: #352f54 !important; font-size: 14px !important; line-height: 1.75 !important; }
.about-points { display: grid; gap: 12px; margin: 23px 0 27px; }
.about-points div { display: flex; align-items: center; gap: 10px; color: #514d63; font-size: 11px; }
.check-mark { color: var(--brand); width: 17px; height: 17px; border: 1px solid #d3cef1; border-radius: 50%; display: grid; place-items: center; font-size: 9px; }
.closing-cta { min-height: 247px; padding: 50px max(calc((100vw - 1200px) / 2), 5.6vw); background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.closing-cta .eyebrow { color: #b6adff; }
.closing-cta h2 { font-size: clamp(29px, 4vw, 43px); line-height: 1.2; margin: 0; font-weight: 500; }
.button-light { background: var(--accent); border-color: var(--accent); color: var(--navy); flex: none; }
.site-footer { padding: 20px max(calc((100vw - 1200px) / 2), 5.6vw); display: grid; gap: 15px; background: #100e24; color: #a09cb3; font-size: 10px; }
.footer-main { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { font-size: 16px; }
.footer-brand .brand-mark { width: 38px; height: 38px; }
.footer-policy-links { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.footer-contact-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-contact-links a { color: #c5c0d8; font-size: 10px; text-decoration: none; }
.footer-policy-links button { appearance: none; min-height: 31px; padding: 7px 10px; border: 1px solid #37334e; border-radius: 6px; background: #17142f; color: #c5c0d8; font: 500 10px/1.2 var(--body); white-space: nowrap; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.footer-policy-links button:hover { border-color: #756bb5; background: #211d43; color: #fff; }
.footer-admin-login { padding: 4px 0; border: 0; background: none; color: #a09cb3; font-size: 9px; font-weight: 400; white-space: nowrap; }
.footer-admin-login:hover { color: #d6d2e0; text-decoration: underline; }
.footer-recognition { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 11px; border-top: 1px solid #302d43; }
.footer-recognition-title { color: #c5c0d8; font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.footer-recognition-logos { width: min(100%, 1060px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; justify-items: center; gap: 18px; }
.footer-recognition-item { width: 100%; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #b6b2c8; font-size: 9px; line-height: 1.35; }
.footer-recognition-item:hover { color: #fff; }
.footer-recognition-description { min-width: 0; }
.footer-logo-frame { flex: none; display: flex; align-items: center; justify-content: center; }
.footer-logo-frame img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.footer-logo-dhf img { width: 68px; height: 40px; }
.footer-logo-adsa img { width: 86px; height: 29px; }
.footer-logo-ipaf img { width: 58px; height: 29px; }
.footer-logo-checkatrade { width: 94px; height: 30px; padding: 6px; border-radius: 4px; background: #ef3b3f; }
.footer-logo-checkatrade img { width: 82px; height: 12px; }
.policy-dialog { width: min(760px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); margin: auto; padding: 0; overflow: hidden; border: 1px solid #e7e4f2; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px #08071866; }
.policy-dialog::backdrop { background: #100e24c7; backdrop-filter: blur(4px); }
.policy-dialog-shell { max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.policy-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 26px 15px; border-bottom: 1px solid var(--line); }
.policy-dialog-header .eyebrow { margin-bottom: 5px; font-size: 8px; }
.policy-dialog-header h2 { margin: 0; font-size: 23px; letter-spacing: -.8px; }
.policy-dialog-close { flex: none; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #f7f5ff; color: var(--brand); }
.policy-dialog-close:hover { border-color: #c7c0eb; background: var(--brand-pale); }
.policy-dialog-close span { font: 400 22px/1 var(--body); }
.policy-draft-notice { margin: 14px 26px; padding: 10px 12px; border: 1px solid #e9d8a8; border-radius: 6px; background: #fff8e6; color: #76591e; font-size: 10px; line-height: 1.5; }
.policy-dialog-body { overflow-y: auto; padding: 0 26px 25px; color: #514d63; font-size: 11px; line-height: 1.7; }
.policy-dialog-body h3 { margin: 18px 0 6px; color: var(--ink); font: 700 13px var(--heading); letter-spacing: -.2px; }
.policy-dialog-body p { margin: 0 0 10px; }
.policy-dialog-body ul { margin: 0 0 12px; padding-left: 20px; }
.policy-placeholder { padding: 1px 3px; border-radius: 3px; background: #fff1c8; color: #634b17; font-weight: 600; }
.confirmation-dialog { width: min(460px, calc(100vw - 32px)); max-width: none; margin: auto; padding: 0; border: 1px solid #e7e4f2; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px #08071866; }
.confirmation-dialog::backdrop { background: #100e24c7; backdrop-filter: blur(4px); }
.confirmation-dialog form { padding: 24px; }
.confirmation-dialog .eyebrow { margin-bottom: 8px; color: #a64b4b; font-size: 8px; }
.confirmation-dialog h2 { margin: 0 0 10px; font-size: 23px; letter-spacing: -.7px; }
.confirmation-dialog form > p:not(.eyebrow) { color: #68637d; font-size: 11px; line-height: 1.65; }
.confirmation-dialog label { display: block; margin: 14px 0 6px; color: var(--ink); font-size: 10px; font-weight: 700; }
.confirmation-dialog input { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #dfe5dd; border-radius: 5px; background: #fff; color: var(--ink); font-size: 12px; }
.confirmation-dialog input:focus { border-color: #8a7ae2; outline: none; box-shadow: 0 0 0 3px #8a7ae220; }
.confirmation-dialog .form-footnote { margin: 6px 0 16px; }
.confirmation-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; }
.confirmation-dialog-actions .button { min-height: 40px; padding: 9px 13px; font-size: 10px; }
.button-danger { border-color: #a83e45; background: #a83e45; }
.button-danger:hover { border-color: #8f3037; background: #8f3037; }
.button-danger:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.view[hidden] { display: none !important; }
.inner-view, .dashboard-view { min-height: calc(100vh - 153px); }
.inner-hero { padding: 45px max(calc((100vw - 1200px) / 2), 5.6vw) 50px; background: var(--navy); color: var(--white); }
.back-link { display: inline-flex; border: 0; background: none; color: #aab8bc; font-size: 11px; padding: 0; margin: 0 0 32px; }
.back-link:hover { color: var(--accent); }
.inner-hero .eyebrow { margin-bottom: 13px; }
.inner-hero h1, .portal-shell h1 { font-size: clamp(44px, 5vw, 61px); line-height: 1.08; font-weight: 600; margin: 0 0 15px; }
.inner-hero > p:last-child { max-width: 480px; color: #adbbc0; font-size: 13px; line-height: 1.7; margin: 0; }
.quote-layout { max-width: 1200px; margin: 0 auto; padding: 55px 0 75px; display: grid; grid-template-columns: 1.4fr .6fr; gap: 9%; }
.quote-form { padding: 0; }
.quote-progress { display: flex; justify-content: space-between; gap: 12px; padding: 0 0 14px; margin-bottom: 25px; border-bottom: 2px solid #dcd7f2; color: var(--brand); font: 700 11px var(--heading); }
.quote-progress span:last-child { color: var(--ink-soft); }
.quote-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.quote-back { border: 0; padding: 10px 0; background: none; color: var(--brand); font-weight: 700; font-size: 12px; }
.quote-back:hover { color: var(--brand-hover); text-decoration: underline; }
.quote-success { padding: 25px; border: 1px solid #dcd7f2; border-radius: 9px; background: var(--brand-pale); }
.quote-success h2 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.5px; }
.quote-success p { color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.quote-form .form-footnote { font-size: 11px; color: var(--ink-soft); }
.form-heading { display: flex; gap: 13px; align-items: flex-start; margin: 0 0 22px; }
.step-number { color: var(--brand); border: 1px solid #dcd7f2; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; font-size: 9px; font-weight: 700; }
.form-heading h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.5px; }
.form-heading p { color: #79837d; font-size: 11px; margin: 0; }
.form-heading-spaced { margin-top: 34px; }
.quote-form label:not(.consent) { display: block; margin: 16px 0 7px; color: var(--ink); font-size: 11px; font-weight: 700; }
.quote-form label > span { color: var(--brand-hover); }
.quote-form input:not([type=checkbox]), .quote-form select, .quote-form textarea { width: 100%; border: 1px solid #dfe5dd; border-radius: 5px; background: #fff; color: var(--ink); font-size: 12px; padding: 12px 13px; outline: none; transition: border-color .2s, box-shadow .2s; }
.quote-form input:not([type=checkbox]), .quote-form select { height: 43px; }
.quote-form textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.quote-form input::placeholder, .quote-form textarea::placeholder { color: #aab2ad; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: #8a7ae2; box-shadow: 0 0 0 3px #8a7ae220; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consent { display: flex; align-items: flex-start; gap: 9px; margin: 19px 0 19px; color: #69756e; font-size: 10px; line-height: 1.55; }
.consent input { accent-color: var(--brand); margin: 2px 0 0; }
.consent span span { color: var(--brand-hover); }
.submit-button { min-width: 205px; }
.form-footnote { margin: 13px 0 0; color: #919b95; font-size: 9px; line-height: 1.6; }
.quote-aside { padding: 5px 0; }
.quote-aside > .eyebrow { margin-bottom: 22px; }
.next-step { display: flex; gap: 13px; border-bottom: 1px solid var(--line); padding: 17px 0; }
.next-step > span { color: #7669c3; font: 600 10px var(--heading); }
.next-step strong { font: 700 12px var(--heading); }
.next-step p { color: #7b867f; font-size: 10px; line-height: 1.7; margin: 5px 0 0; }
.contact-card { background: var(--brand-pale); margin-top: 28px; padding: 19px; border-radius: 7px; }
.contact-icon { width: 27px; height: 27px; display: grid; place-items: center; background: #dfdaf8; color: var(--brand); border-radius: 6px; }
.contact-card p { margin: 13px 0 3px; color: #748073; font-size: 10px; }
.contact-card strong { display: block; font: 700 13px var(--heading); }
.contact-card a { display: block; width: fit-content; margin-top: 8px; color: var(--brand-hover); font-size: 11px; font-weight: 700; text-decoration: none; }
.contact-card a:hover, .footer-contact-links a:hover { text-decoration: underline; }
.quote-honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.quote-captcha { margin: 18px 0 14px; min-height: 65px; }
.portal-view { display: grid; place-items: center; padding: 45px 20px 70px; background: radial-gradient(ellipse at 50% 30%,#efedfb 0,transparent 58%); }
.portal-shell { width: min(100%, 490px); padding: clamp(24px, 5vw, 36px); border: 1px solid #e6e1f4; border-radius: 16px; background: #fff; box-shadow: 0 18px 55px #31279112; }
.portal-shell .back-link { color: #68766d; margin-bottom: 32px; }
.portal-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 36px; font: 800 20px var(--heading); letter-spacing: -.8px; }
.portal-brand .brand-light { color: #77718d; }
.portal-shell > .eyebrow { margin-bottom: 12px; }
.portal-shell h1 { font-size: 43px; color: var(--ink); margin-bottom: 13px; }
.portal-shell h1 span { color: var(--brand-hover); }
.portal-intro { color: #6e7a73; font-size: 12px; line-height: 1.75; margin-bottom: 24px; }
.prototype-note { color: #78837a; font-size: 9px; line-height: 1.65; margin: 18px 0 0; }
.prototype-note strong { color: var(--brand); }
.setup-warning, .auth-message { padding: 11px 12px; margin: 0 0 15px; border: 1px solid #e8c99a; border-radius: 6px; background: #fbf4e8; color: #785e34; font-size: 10px; line-height: 1.6; }
.setup-warning code { font-size: 10px; }
.auth-message { border-color: #e7c4b8; background: #fbefeb; color: #8d5140; }
.auth-form { display: grid; gap: 9px; }
.auth-form[hidden] { display: none; }
.auth-form label, .invoice-form label { margin-top: 5px; color: var(--ink); font-size: 10px; font-weight: 700; }
.auth-form input, .invoice-form input, .invoice-form select, .invoice-form textarea { width: 100%; min-height: 42px; padding: 11px 12px; border: 1px solid #dfe5dd; border-radius: 5px; background: white; color: var(--ink); font-size: 12px; outline: none; }
.invoice-form textarea { resize: vertical; line-height: 1.6; }
.auth-form input:focus, .invoice-form input:focus, .invoice-form select:focus, .invoice-form textarea:focus { border-color: #8a7ae2; box-shadow: 0 0 0 3px #8a7ae220; }
.auth-submit { width: 100%; margin-top: 8px; }
.button .auth-submit-label { font-size: inherit; }
.auth-reset { justify-self: center; margin-top: 5px; color: var(--brand); font-size: 10px; }
.auth-mode-switch { margin: 18px 0 0; color: #78837a; text-align: center; font-size: 10px; }
.auth-mode-switch .text-link { margin-left: 4px; color: var(--brand); font-size: inherit; font-weight: 700; }
.auth-form-title { margin: 0 0 4px; font: 700 14px var(--heading); }
.dashboard-actions { display: flex; align-items: center; gap: 9px; }
.empty-state { padding: 20px; color: #87918a; font-size: 10px; line-height: 1.6; }
.empty-state.is-error { color: #a25441; }
.invoice-list { padding: 0; }
.visits-panel { margin-top: 15px; }
.invoice-admin { margin-top: 15px; }
.invoice-upload-block { margin: 0 20px 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.invoice-upload-block > .panel-heading { margin: 0 0 10px; padding: 0; }
.invoice-upload-block > .panel-heading h3, .invoice-create-heading h3 { margin: 0; font: 700 14px var(--heading); }
.invoice-upload-block > .panel-heading .panel-description { margin: 5px 0 0; }
.invoice-upload-block .invoice-form { padding: 0; }
.invoice-admin > .invoice-create-heading { padding: 0 20px 12px; }
.invoice-form { max-width: 720px; padding: 0 20px 20px; display: grid; gap: 10px; }
.invoice-form .field-row { gap: 14px; }
.invoice-form .button { justify-self: start; min-height: 41px; padding: 10px 15px; font-size: 11px; }
.client-form { max-width: 760px; padding: 0 20px 20px; display: grid; gap: 10px; }
.client-form label { margin-top: 5px; color: var(--ink); font-size: 10px; font-weight: 700; }
.client-form input, .client-form textarea { width: 100%; min-height: 40px; padding: 10px 11px; border: 1px solid #dfe5dd; border-radius: 5px; background: white; color: var(--ink); font-size: 11px; outline: none; }
.client-form textarea { resize: vertical; line-height: 1.5; }
.client-form input:focus, .client-form textarea:focus { border-color: #8a7ae2; box-shadow: 0 0 0 3px #8a7ae220; }
.client-form .field-row { gap: 14px; }
.client-form .field-row > div { display: grid; gap: 6px; }
.client-form .button { justify-self: start; min-height: 41px; padding: 10px 15px; font-size: 11px; }
.business-settings-panel .invoice-form { max-width: 760px; }
.policy-settings-panel .invoice-form { max-width: 760px; }
.announcement-toggle { display: flex; align-items: center; gap: 9px; width: fit-content; cursor: pointer; }
.announcement-toggle input { width: 16px; min-height: 16px; margin: 0; padding: 0; accent-color: var(--brand); flex: 0 0 16px; }
.policy-settings-panel textarea { min-height: 280px; resize: vertical; font-family: var(--body); line-height: 1.65; }
.client-management-panel .table-wrap { min-width: 0; }
.client-management-panel table { min-width: 1000px; }
.client-search-wrap { display: grid; gap: 6px; max-width: 440px; padding: 0 20px 14px; }
.client-search-wrap label { color: var(--ink); font-size: 10px; font-weight: 700; }
.client-search-wrap input { width: 100%; min-height: 39px; padding: 9px 11px; border: 1px solid #dfe5dd; border-radius: 5px; background: #fff; color: var(--ink); font-size: 10px; }
.client-search-wrap input:focus { border-color: #8a7ae2; outline: none; box-shadow: 0 0 0 3px #8a7ae220; }
.client-management-panel td input, .client-management-panel td textarea { width: 130px; min-height: 32px; padding: 6px 7px; border: 1px solid #dfe5dd; border-radius: 4px; background: #fff; color: var(--ink); font: 9px var(--body); white-space: normal; }
.client-management-panel td textarea { width: 180px; resize: vertical; }
.client-email-control { display: flex; align-items: center; gap: 5px; }
.client-email-control input { width: 175px !important; }
.client-email-control button { border: 0; background: var(--brand-pale); border-radius: 4px; padding: 8px; color: var(--brand); font-size: 8px; font-weight: 700; }
.pdf-download-button { border: 1px solid #ded9f7; border-radius: 4px; background: #f7f5ff; padding: 6px 8px; color: var(--brand); font-size: 8px; font-weight: 700; white-space: nowrap; }
.pdf-download-button:hover { background: #ece9fb; }
.invoice-card .pdf-download-button { margin-top: 11px; }
.quote-status-select, .invoice-status-select, .client-assign-select, .quote-amount-input { min-width: 105px; height: 31px; padding: 5px 7px; border: 1px solid #dfe5dd; border-radius: 4px; background: #fff; color: #49564f; font-size: 9px; }
.quote-amount-input { width: 86px; min-width: 86px; }
.save-quote-button { border: 0; background: var(--brand-pale); border-radius: 4px; padding: 7px 9px; color: var(--brand); font-size: 9px; font-weight: 700; }
.save-quote-button:hover { background: #dfdaf8; }
.admin-panel td .quote-client { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.visits-panel .data-row { grid-template-columns: 33px minmax(100px,1fr) auto; }

.dashboard-view { max-width: 1200px; margin: 0 auto; padding: 66px 0 75px; }
.dashboard-view [id^="admin-"], .dashboard-view [id^="client-"] { scroll-margin-top: 18px; }
.dashboard-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 32px; }
.dashboard-top .eyebrow { margin-bottom: 11px; }
.dashboard-top h1 { margin: 0 0 8px; font-size: clamp(31px, 4vw, 42px); line-height: 1.15; font-weight: 600; }
.dashboard-top h1 span { color: var(--brand-hover); }
.dashboard-top > div > p:last-child { color: #7a857e; font-size: 11px; margin: 0; }
.button-outline { border-color: #d6d1ed; background: transparent; color: var(--brand); min-height: 42px; padding: 11px 15px; gap: 14px; font-size: 11px; }
.button-outline:hover { background: var(--brand-pale); box-shadow: none; }
.dashboard-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 17px; }
.stat-card { background: white; border: 1px solid #e8ebe5; border-radius: 7px; padding: 19px 20px 17px; }
.stat-card > span { display: block; color: #828c85; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.stat-card > strong { display: block; margin: 12px 0 10px; font: 600 31px var(--heading); letter-spacing: -1px; }
.stat-foot { color: #8a948d; font-size: 9px; }
.stat-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; background: #86aa52; }
.stat-dot.amber { background: #d6a64c; }.stat-dot.coral { background: #d58067; }.stat-dot.green { background: #83a954; }.stat-dot.blue { background: #6f9fc0; }
.dashboard-columns { display: grid; grid-template-columns: 1.45fr .8fr; gap: 15px; }
.panel { background: #fff; border: 1px solid #e8ebe5; border-radius: 7px; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 19px 20px 16px; }
.panel-heading .eyebrow { margin-bottom: 5px; font-size: 8px; }
.panel-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.55px; }
.subtle-button { padding: 0; border: 0; background: none; color: var(--brand); font-size: 10px; font-weight: 700; }
.subtle-button span { font-size: 15px; margin-left: 5px; }
[data-page="client"] .dashboard-top { padding: 25px 28px; border: 1px solid #e6e1f4; border-radius: 14px; background: linear-gradient(110deg, #fff, #f6f3ff); box-shadow: 0 8px 26px #3127910a; }
[data-page="client"] .stat-card, [data-page="client"] .panel { border-color: #e7e4f2; border-radius: 11px; box-shadow: 0 6px 22px #211b4209; }
[data-page="client"] .stat-card { background: linear-gradient(155deg, #fff, #faf9ff); }
[data-page="client"] .stat-card > span { color: #77718d; }
[data-page="client"] .panel-heading { background: linear-gradient(90deg, #fcfbff, #fff); border-bottom: 1px solid #f1eef9; }
.data-row { display: grid; grid-template-columns: 33px minmax(100px, 1fr) auto auto auto; align-items: center; gap: 10px; margin: 0 20px; border-top: 1px solid #eff1ed; min-height: 66px; }
.data-icon { width: 30px; height: 30px; display: grid; place-items: center; color: var(--brand); background: var(--brand-pale); border-radius: 7px; }
.data-main strong, .data-main small { display: block; }
.data-main strong { font: 700 10px var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data-main small { margin-top: 5px; color: #929b94; font-size: 8px; }
.status { border-radius: 20px; padding: 5px 8px; white-space: nowrap; font-size: 8px; font-weight: 600; }
.status-review { background: #f5f0e2; color: #a0833e; }
.status-awaiting { background: #edf0f7; color: #68799b; }
.status-due { background: #faeee9; color: #b87558; }
.status-paid { background: #edf3e6; color: #6e9148; }
.status-new { background: #f4eedf; color: #9a7734; }
.row-amount { text-align: right; font: 600 10px var(--heading); }
.row-amount small { display: block; margin-top: 3px; color: #929b94; font: 8px var(--body); }
.panel-footer { padding: 14px 20px; border-top: 1px solid #eff1ed; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #939c95; font-size: 8px; }
.panel-footer b { color: #728849; font-size: 13px; font-weight: 500; }
.panel-footer .text-link { color: #627d3e; font-size: 9px; }
.invoice-card { padding: 13px 18px 15px; margin: 0 15px; border-top: 1px solid #eff1ed; }
.invoice-top, .invoice-bottom { display: flex; align-items: center; justify-content: space-between; }
.invoice-icon { width: 25px; height: 25px; display: grid; place-items: center; color: var(--brand); background: #efedfb; border-radius: 6px; font: 600 12px var(--heading); }
.invoice-card > strong { display: block; margin: 10px 0 4px; font: 700 10px var(--heading); }
.invoice-card > p { margin: 0 0 11px; color: #808b83; font-size: 9px; }
.invoice-bottom strong { font: 700 12px var(--heading); }
.invoice-bottom small { color: #929b94; font-size: 8px; }
.invoice-amount-note { display: block; margin-top: 5px; color: #929b94; font-size: 8px; }
.dashboard-notice { display: flex; gap: 9px; align-items: center; margin-top: 16px; color: #8b948d; font-size: 9px; }
.dashboard-notice > span { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid #d5ddce; color: #879b60; border-radius: 50%; font-size: 10px; }
.dashboard-notice p { margin: 0; }
.admin-panel { margin-top: 17px; }
.admin-panel .panel-heading { padding-bottom: 18px; }
.maintenance-settings-panel > #maintenance-mode-toggle { margin: 0 20px; }
.maintenance-settings-panel > .form-footnote { margin: 10px 20px 18px; }
.table-wrap { overflow-x: auto; }
.admin-panel table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-panel th { height: 35px; padding: 0 20px; border-top: 1px solid #eff1ed; border-bottom: 1px solid #eff1ed; color: #929b94; font-size: 8px; letter-spacing: .8px; font-weight: 600; }
.admin-panel td { height: 62px; padding: 8px 20px; border-bottom: 1px solid #eff1ed; color: #657069; font-size: 9px; white-space: nowrap; }
.admin-panel td strong, .admin-panel td small { display: block; }
.admin-panel td strong { color: var(--ink); font: 700 10px var(--heading); }
.admin-panel td small { margin-top: 5px; color: #929b94; font-size: 8px; }
.account-role-control { display: flex; align-items: center; gap: 6px; }
.account-role-control select { min-width: 75px; max-width: 110px; height: 30px; padding: 4px 6px; border: 1px solid #dfe5dd; border-radius: 4px; background: #fff; color: #49564f; font-size: 9px; }
.account-role-control select:disabled { background: #f7f6fa; color: #929b94; }
.account-role-control button { border: 0; background: none; color: var(--brand); font-size: 9px; font-weight: 700; }
.account-role-control button:disabled { opacity: .55; }
.account-archived-label, .account-self-note { display: block; margin-top: 5px; color: #a25441; font-size: 8px; white-space: normal; }
.account-delete-button { color: #a25441; }
.account-purge-button { color: #8c241b; border-color: #8c241b; }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dashboard-shortcuts { position: sticky; top: 10px; z-index: 4; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 17px; padding: 12px; border: 1px solid #e8e5f1; border-radius: 7px; background: #ffffffed; backdrop-filter: blur(8px); }
.dashboard-shortcuts a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 5px; color: #51477f; background: #f7f5ff; font-size: 10px; font-weight: 700; }
.dashboard-shortcuts a:hover { color: var(--brand); background: #ece9fb; }
.dashboard-shortcuts a span { min-width: 17px; padding: 2px 5px; border-radius: 12px; background: var(--brand); color: #fff; text-align: center; font-size: 8px; }
.admin-shortcuts { margin-top: -15px; }
[data-admin-only][hidden] { display: none !important; }
.panel-description { margin: 6px 0 0; color: #87918a; font-size: 10px; line-height: 1.6; }
.message-center-header { display: flex; align-items: center; gap: 13px; }
.message-center-layout { display: grid; grid-template-columns: minmax(230px, .75fr) minmax(0, 1.45fr); min-height: 350px; border-top: 1px solid #eff1ed; }
.message-thread-list { max-height: 560px; overflow-y: auto; border-right: 1px solid #eff1ed; }
.message-thread-item { display: block; width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid #eff1ed; background: #fff; color: var(--ink); text-align: left; }
.message-thread-item:hover, .message-thread-item.is-active { background: #f7f5ff; }
.message-thread-item.is-active { box-shadow: inset 3px 0 var(--brand); }
.message-thread-top { display: flex; justify-content: space-between; gap: 10px; }
.message-thread-top strong { overflow: hidden; color: var(--ink); font: 700 10px var(--heading); text-overflow: ellipsis; white-space: nowrap; }
.message-thread-top time, .message-thread-meta { flex: none; color: #929b94; font-size: 8px; }
.message-thread-meta { display: block; margin-top: 6px; color: #6558b3; }
.message-thread-preview { display: -webkit-box; margin-top: 6px; overflow: hidden; color: #78827b; font-size: 9px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.message-conversation { min-width: 0; display: flex; flex-direction: column; }
.message-contact { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #eff1ed; }
.message-contact h3 { margin: 0; font: 700 13px var(--heading); }
.message-contact p { margin: 4px 0 0; color: #8a948d; font-size: 9px; }
.message-contact-actions { display: flex; align-items: center; gap: 12px; }
.message-contact-actions > a { color: var(--brand); font-size: 9px; overflow-wrap: anywhere; }
.message-delete-button { padding: 6px 8px; border: 1px solid #f0d7d4; border-radius: 4px; background: #fff9f8; color: #a44f49; font-size: 8px; font-weight: 700; white-space: nowrap; }
.message-delete-button:hover { border-color: #dfb4af; background: #fbefed; }
.message-history { display: flex; flex-direction: column; gap: 11px; padding: 16px 18px; }
.message-bubble { width: min(100%, 620px); padding: 12px 14px; border: 1px solid #e8e5f1; border-radius: 7px; background: #fff; }
.message-from-admin { align-self: flex-end; background: #f7f5ff; border-color: #e3def7; }
.message-from-enquirer { align-self: flex-start; }
.message-bubble-heading { display: flex; justify-content: space-between; gap: 10px; color: #554a89; font-size: 9px; }
.message-bubble-heading time { color: #929b94; font-size: 8px; }
.message-bubble > p { margin: 8px 0 0; color: #5f6b63; font-size: 10px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.message-bubble > small { display: block; margin-top: 8px; color: #8a948d; font-size: 8px; }
.message-delivery-status { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 9px; color: #858094; font-size: 8px; }
.message-retry-button { padding: 0; border: 0; background: none; color: var(--brand); font-size: 8px; font-weight: 700; }
.message-reply-form { display: grid; gap: 8px; padding: 0 18px 17px; }
.message-reply-form label { color: var(--ink); font-size: 10px; font-weight: 700; }
.message-reply-form textarea { width: 100%; padding: 10px 11px; border: 1px solid #dfe5dd; border-radius: 5px; color: var(--ink); font-size: 10px; line-height: 1.6; resize: vertical; }
.message-reply-form textarea:focus { border-color: #8a7ae2; outline: none; box-shadow: 0 0 0 3px #8a7ae220; }
.message-reply-form .form-footnote { margin: 0; }
.message-reply-form .button { justify-self: start; min-height: 39px; padding: 9px 13px; font-size: 10px; }
.message-reply-form .button:disabled { opacity: .6; cursor: wait; }
.audit-log-panel table { min-width: 880px; }
.audit-log-panel td { height: auto; min-height: 55px; white-space: normal; vertical-align: top; }
.audit-log-panel td:first-child { min-width: 150px; white-space: nowrap; }
.audit-log-panel td:nth-child(2) { min-width: 130px; }
.audit-log-panel td:nth-child(3) { min-width: 150px; }
.audit-log-record { max-width: 230px; overflow-wrap: anywhere; }
.audit-log-details { min-width: 145px; }
.audit-log-details summary { color: var(--brand); cursor: pointer; font-size: 9px; font-weight: 700; }
.audit-log-details pre { max-width: 500px; max-height: 320px; overflow: auto; padding: 10px; border: 1px solid #e8e5f1; border-radius: 5px; background: #faf9fd; color: #514d63; font: 9px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.audit-log-footer { display: flex; justify-content: center; padding: 14px; }
.audit-log-footer .button { min-height: 38px; padding: 8px 12px; font-size: 9px; }
.client-message-panel { margin-top: 15px; }
.client-message-thread { padding: 14px 18px; border-top: 1px solid #eff1ed; }
.client-message-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.client-message-heading strong, .client-message-heading small { display: block; }
.client-message-heading strong { color: var(--ink); font: 700 10px var(--heading); }
.client-message-heading small, .client-message-heading > span { margin-top: 4px; color: #929b94; font-size: 8px; }
.client-message-thread .message-bubble { margin: 8px 0 0 auto; }
.toast { position: fixed; z-index: 50; bottom: 22px; left: 50%; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px); padding: 13px 18px; border-radius: 7px; background: #16272b; color: white; box-shadow: 0 8px 30px #101b2530; font-size: 11px; line-height: 1.5; transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.portfolio-section { padding-top: 89px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.portfolio-grid.is-carousel { display: block; position: relative; overflow: hidden; }
.portfolio-slide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; width: 100%; }
.portfolio-grid-notice { grid-column: 1 / -1; margin: 0; padding: 2px 0; color: #87918a; font-size: 10px; line-height: 1.6; }
.portfolio-grid-notice.is-error { color: #a25441; }
.portfolio-card { min-width: 0; overflow: hidden; border: 1px solid #e8e5f1; border-radius: 9px; background: #fff; box-shadow: 0 8px 24px #241d4510; }
.portfolio-card-placeholder { border-style: dashed; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .portfolio-card:not(.portfolio-card-placeholder) { transition: transform .25s ease, box-shadow .25s ease; }
  .portfolio-card:not(.portfolio-card-placeholder):hover, .portfolio-card:focus-within { transform: translateY(-4px); box-shadow: 0 14px 28px #241d451c; }
}
.portfolio-card-trigger { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.portfolio-card-photo { position: relative; background: #eceaf3; }
.portfolio-photo-trigger { display: block; width: 100%; padding: 0; border: 0; background: transparent; }
.portfolio-photo-trigger img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.portfolio-photo-arrow { position: absolute; top: 50%; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; transform: translateY(-50%); border: 1px solid #ffffff80; border-radius: 50%; background: #17142bc9; color: #fff; font-size: 19px; }
.portfolio-photo-arrow:hover { background: var(--brand); }
.portfolio-photo-previous { left: 10px; }
.portfolio-photo-next { right: 10px; }
.portfolio-photo-count { position: absolute; right: 10px; bottom: 10px; padding: 4px 7px; border-radius: 12px; background: #17142bc9; color: #fff; font-size: 10px; pointer-events: none; }
.portfolio-card-no-photo { aspect-ratio: 16 / 9; display: grid; place-items: center; color: #777094; background: radial-gradient(circle at center, #e8e4fa 0, #f8f6ff 70%); font: 700 11px var(--heading); letter-spacing: 1px; text-transform: uppercase; }
.portfolio-card-content { display: block; padding: 20px 21px 21px; }
.portfolio-card-meta { display: block; margin: 0 0 8px; color: #77728f; font-size: 9px; font-weight: 600; line-height: 1.6; }
.portfolio-card-title { display: block; margin: 0 0 11px; font: 700 17px var(--heading); letter-spacing: -.4px; }
.portfolio-service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.portfolio-service-tags span { border: 1px solid #e2def5; border-radius: 20px; padding: 4px 8px; color: var(--brand); background: #f7f5ff; font-size: 8px; font-weight: 600; }
.portfolio-card-summary { display: block; margin: 0; color: #6f6a82; font-size: 10px; line-height: 1.75; white-space: pre-line; }
.portfolio-card-action { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; color: var(--brand); font-size: 10px; font-weight: 700; }
.testimonials-section { padding-top: 89px; }
.testimonials-viewport { position: relative; width: min(100%, 932px); margin: 0 auto; overflow: hidden; }
.testimonials-slide { display: flex; align-items: stretch; justify-content: center; gap: 16px; width: 100%; }
.carousel-slide.is-leaving { position: absolute; inset: 0 auto auto 0; pointer-events: none; }
.testimonial-card { display: flex; flex: 0 1 300px; width: 100%; max-width: 300px; min-width: 0; flex-direction: column; align-items: stretch; padding: 20px; border: 1px solid #e8e5f1; border-radius: 10px; background: linear-gradient(145deg, #fff, #fcfbff); box-shadow: 0 5px 16px #211b4208; }
.testimonial-stars { align-self: flex-start; color: #c28b22; font-size: 17px; letter-spacing: 2px; line-height: 1; }
.testimonial-stars-empty { color: #d9d6e3; }
.testimonial-card blockquote { min-width: 0; margin: 18px 0 12px; color: #615d72; font-size: 12px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.testimonial-card blockquote.is-collapsed { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.testimonial-read-more { align-self: flex-start; margin: 0 0 16px; padding: 0; border: 0; background: none; color: var(--brand); font-size: 11px; font-weight: 700; }
.testimonial-read-more:hover { color: var(--brand-hover); text-decoration: underline; }
.testimonial-author { display: grid; min-width: 0; gap: 4px; margin: auto 0 0; color: var(--ink); font-size: 10px; overflow-wrap: anywhere; }
.testimonial-author strong { font: 700 11px var(--heading); }
.testimonial-company { color: #858092; font-size: 9px; }
.carousel-controls { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.carousel-controls[hidden], .testimonial-read-more[hidden] { display: none; }
.carousel-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.carousel-arrow { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #dcd7f1; border-radius: 50%; background: #fff; color: var(--brand); font-size: 20px; transition: background .2s ease, border-color .2s ease; }
.carousel-arrow:hover { border-color: var(--brand); background: var(--brand-pale); }
@media (prefers-reduced-motion: no-preference) {
  .carousel-slide.is-entering-next { animation: carousel-enter-next 1.2s ease both; }
  .carousel-slide.is-leaving-next { animation: carousel-leave-next 1.2s ease both; }
  .carousel-slide.is-entering-previous { animation: carousel-enter-previous 1.2s ease both; }
  .carousel-slide.is-leaving-previous { animation: carousel-leave-previous 1.2s ease both; }
  .carousel-slide.is-entering-next > :not(:last-child),
  .carousel-slide.is-entering-previous > :not(:first-child) { visibility: hidden; }
  @keyframes carousel-enter-next { from { transform: translateX(var(--carousel-step)); } to { transform: translateX(0); } }
  @keyframes carousel-leave-next { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--carousel-step))); } }
  @keyframes carousel-enter-previous { from { transform: translateX(calc(-1 * var(--carousel-step))); } to { transform: translateX(0); } }
  @keyframes carousel-leave-previous { from { transform: translateX(0); } to { transform: translateX(var(--carousel-step)); } }
}
.testimonials-admin-panel { margin-top: 17px; }
.testimonial-form { max-width: 900px; }
.testimonial-form .field-row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.testimonial-form textarea { resize: vertical; line-height: 1.5; }
@media (max-width: 850px) {
  .testimonials-viewport { width: min(100%, 600px); }
}
@media (max-width: 640px) {
  .testimonials-viewport { width: min(100%, 300px); }
  .testimonial-card { max-width: none; }
}
.portfolio-dialog { width: min(1040px, calc(100vw - 40px)); max-width: none; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); margin: auto; padding: 0; overflow: hidden; border: 1px solid #e7e4f2; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px #08071866; }
.portfolio-dialog::backdrop { background: #100e24c7; backdrop-filter: blur(4px); }
.portfolio-dialog-shell { max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; }
.portfolio-dialog-header { display: flex; flex: none; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 26px 15px; border-bottom: 1px solid var(--line); }
.portfolio-dialog-header .eyebrow { margin-bottom: 5px; font-size: 8px; }
.portfolio-dialog-header h2 { margin: 0; font-size: 23px; letter-spacing: -.8px; }
.portfolio-dialog-content { display: grid; min-height: 0; overflow-y: auto; grid-template-columns: minmax(0, 1.15fr) minmax(270px, .85fr); }
.portfolio-dialog-gallery { padding: 22px; background: #f7f6fb; }
.portfolio-dialog-photo { position: relative; overflow: hidden; border-radius: 6px; background: #eceaf3; }
.portfolio-dialog-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.portfolio-dialog-no-photo { min-height: 250px; display: grid; place-items: center; border-radius: 6px; background: radial-gradient(circle at center, #e8e4fa 0, #f8f6ff 70%); color: #777094; font: 700 11px var(--heading); letter-spacing: 1px; text-transform: uppercase; }
.portfolio-dialog-copy { padding: 26px; }
.portfolio-dialog-copy .portfolio-service-tags { margin: 15px 0; }
.portfolio-dialog-summary, .portfolio-dialog-solution p { margin: 0; color: #6f6a82; font-size: 12px; line-height: 1.75; white-space: pre-line; }
.portfolio-dialog-solution { margin-top: 22px; padding-top: 18px; border-top: 1px solid #efedf5; }
.portfolio-dialog-solution h3 { margin: 0 0 8px; font: 700 13px var(--heading); }
.portfolio-admin-panel { margin-top: 17px; }
.portfolio-form { max-width: 980px; }
.portfolio-form .field-row > div { display: grid; gap: 6px; }
.portfolio-form label span { color: #8a859c; font-weight: 400; }
.portfolio-form textarea { resize: vertical; line-height: 1.5; }
.portfolio-form input[type="file"] { min-height: 44px; padding: 9px; }
.portfolio-services { display: flex; flex-wrap: wrap; gap: 9px 16px; margin: 4px 0; padding: 12px 14px 14px; border: 1px solid #e3e0ee; border-radius: 5px; }
.portfolio-services legend { padding: 0 5px; color: var(--ink); font-size: 10px; font-weight: 700; }
.portfolio-services label { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #625d76; font-size: 10px; font-weight: 500; cursor: pointer; }
.portfolio-services input[type="checkbox"] { width: auto; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; accent-color: var(--brand); flex: 0 0 auto; }
.portfolio-admin-photos { display: flex; flex-wrap: wrap; gap: 9px; }
.portfolio-admin-photo { position: relative; width: 110px; height: 83px; overflow: hidden; border-radius: 5px; background: #f0eef8; }
.portfolio-admin-photo img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-admin-photo button { position: absolute; right: 4px; bottom: 4px; border: 0; border-radius: 3px; padding: 5px 7px; background: #211b42e8; color: #fff; font-size: 8px; }
.portfolio-delete-button { margin-left: 4px; color: #a25441; background: #fbefeb; }
.portfolio-delete-button:hover { background: #f4ded7; }

@media (max-width: 1280px) {
  .section-wrap, .quote-layout, .dashboard-view { margin-left: 5.6vw; margin-right: 5.6vw; }
}
@media (max-width: 850px) {
  .site-header { height: 70px; padding: 0 5vw; gap: 16px; }
  .main-nav { gap: 20px; }
  .main-nav a, .nav-link { font-size: 11px; }
  .header-actions { gap: 14px; }
  .login-link { font-size: 11px; }
  .header-actions .button { display: none; }
  .hero { padding: 62px 5vw 0; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr .9fr; }
  body.public-theme-view:not(.maintenance-status-pending):not(.maintenance-page-active)[data-website-theme="christmas"] .seasonal-character,
  body.public-theme-view:not(.maintenance-status-pending):not(.maintenance-page-active)[data-website-theme="halloween"] .seasonal-character { position: relative; grid-column: 1 / -1; grid-row: 2; justify-self: center; left: auto; bottom: auto; transform: none; margin: 0 0 12px; }
  .hero h1 { font-size: clamp(44px, 7vw, 62px); }
  .hero-visual { transform: scale(.85); transform-origin: center; margin-left: -20px; margin-right: -35px; }
  .section-wrap { padding-top: 76px; }
  .about-inner { gap: 6%; }
  .about-visual { min-height: 330px; }
  .quote-layout { gap: 6%; }
  .portfolio-grid, .portfolio-slide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
  .footer-policy-links { flex-basis: 100%; justify-content: center; }
  .footer-recognition { gap: 12px; }
  .footer-recognition-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 68px; }
  .site-header { height: 66px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 38px; height: 38px; }
  .menu-toggle { width: 36px; height: 36px; display: flex; flex-direction: column; justify-content: center; gap: 5px; border: 1px solid #615a8c; border-radius: 6px; background: transparent; margin-left: auto; }
  .menu-toggle span { display: block; width: 15px; height: 1px; background: #ddd9f1; margin: 0 auto; }
  .main-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; padding: 13px 5vw 18px; background: #211d43; align-items: stretch; gap: 0; flex-direction: column; box-shadow: 0 12px 18px #100e2460; }
  .main-nav.is-open { display: flex; }
  .main-nav a, .main-nav .nav-link { text-align: left; padding: 12px 0; border-bottom: 1px solid #ffffff12; font-size: 12px; }
  .header-actions { margin-left: 0; }
  .login-link { font-size: 0; gap: 0; }
  .login-link svg { width: 21px; height: 21px; }
  .hero { padding: 53px 6vw 0; }
  body.public-theme-view:not(.maintenance-status-pending):not(.maintenance-page-active)[data-website-theme="halloween"] .seasonal-web { top: 66px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: clamp(47px, 12vw, 64px); letter-spacing: -2.5px; }
  .hero-intro { font-size: 13px; line-height: 1.75; max-width: 430px; }
  .hero-buttons { gap: 12px; }
  body.public-theme-view:not(.maintenance-status-pending):not(.maintenance-page-active)[data-website-theme="christmas"] .seasonal-character,
  body.public-theme-view:not(.maintenance-status-pending):not(.maintenance-page-active)[data-website-theme="halloween"] .seasonal-character { grid-column: auto; grid-row: auto; margin: 14px 0 0; }
  body.public-theme-view[data-website-theme="christmas"] .seasonal-snowman,
  body.public-theme-view[data-website-theme="halloween"] .seasonal-spider { width: 60px; height: 60px; }
  .hero-buttons .button { padding: 13px 14px; gap: 12px; font-size: 11px; }
  .hero-buttons .text-link { font-size: 10px; gap: 6px; }
  .hero-proof { margin-top: 23px; font-size: 9px; }
  .hero-visual { width: 100%; height: 305px; margin: 2px 0 4px; transform: scale(.83); transform-origin: center; }
  .visual-label { top: 13px; right: 2%; }
  .camera-card { left: -3%; top: 71px; }
  .alarm-card { right: -5%; top: 81px; }
  .access-card { right: 3%; bottom: 27px; }
  .hero-bottom { height: 47px; font-size: 7px; gap: 11px; letter-spacing: 1px; }
  .section-wrap { margin: 0 6vw; padding: 68px 0 60px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 26px; }
  .section-heading h2, .about-copy h2 { font-size: 37px; }
  .section-intro { margin: 0; font-size: 12px; }
  .portfolio-grid, .portfolio-slide { grid-template-columns: 1fr; }
  .portfolio-card-content { padding: 17px; }
  .portfolio-dialog, .portfolio-dialog-shell { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .portfolio-dialog { width: calc(100vw - 24px); border-radius: 9px; }
  .portfolio-dialog-content { grid-template-columns: 1fr; }
  .portfolio-dialog-gallery { padding: 14px; }
  .portfolio-dialog-copy { padding: 20px; }
  .portfolio-dialog-header { padding: 18px 18px 13px; }
  .portfolio-dialog-header h2 { font-size: 20px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card { min-height: 224px; padding: 17px 14px 16px; }
  .service-number { top: 22px; right: 15px; }
  .service-card h3 { font-size: 14px; margin-top: 14px; }
  .service-card p { font-size: 10px; line-height: 1.65; }
  .service-more { font-size: 9px; text-align: left; line-height: 1.5; }
  .maintenance-note { align-items: flex-start; flex-wrap: wrap; padding: 14px; gap: 10px; }
  .maintenance-note p { width: calc(100% - 48px); flex: unset; }
  .maintenance-note .text-link { margin-left: 45px; font-size: 10px; }
  .about-section { padding: 56px 6vw; }
  .about-inner { grid-template-columns: 1fr; gap: 34px; }
  .about-visual { min-height: 270px; }
  .about-network { width: calc(100% - 16px); }
  .about-copy h2 { font-size: 34px; }
  .closing-cta { min-height: 230px; padding: 42px 6vw; align-items: flex-start; flex-direction: column; justify-content: center; gap: 22px; }
  .closing-cta h2 { font-size: 32px; }
  .site-footer { padding: 19px 6vw; gap: 16px; font-size: 9px; }
  .footer-main { flex-wrap: wrap; justify-content: flex-start; gap: 12px 18px; }
  .footer-brand { width: 100%; }
  .footer-policy-links { width: 100%; justify-content: flex-start; }
  .footer-admin-login { padding: 6px 0; }
  .footer-recognition { gap: 12px; }
  .footer-recognition-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .footer-recognition-item { gap: 8px; }
  .footer-logo-dhf img { width: 52px; height: 31px; }
  .footer-logo-adsa img { width: 74px; height: 25px; }
  .footer-logo-ipaf img { width: 48px; height: 24px; }
  .footer-logo-checkatrade { width: 76px; height: 25px; padding: 5px; }
  .footer-logo-checkatrade img { width: 66px; height: 10px; }
  .policy-dialog { width: calc(100vw - 24px); max-height: calc(100vh - 24px); border-radius: 9px; }
  .policy-dialog-shell { max-height: calc(100vh - 24px); }
  .policy-dialog-header { padding: 18px 18px 13px; }
  .policy-dialog-header h2 { font-size: 20px; }
  .policy-dialog-close { width: 32px; height: 32px; }
  .policy-draft-notice { margin: 12px 18px; }
  .policy-dialog-body { padding: 0 18px 20px; }
  .confirmation-dialog { width: calc(100vw - 24px); border-radius: 9px; }
  .confirmation-dialog form { padding: 19px; }
  .confirmation-dialog h2 { font-size: 20px; }
  .message-contact-actions { align-items: flex-start; flex-wrap: wrap; }
  .inner-hero { padding: 36px 6vw 39px; }
  .inner-hero h1 { font-size: 49px; }
  .quote-layout { margin: 0 6vw; padding: 39px 0 55px; grid-template-columns: 1fr; gap: 42px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .quote-aside { padding-top: 25px; border-top: 1px solid var(--line); }
  .portal-view { padding: 34px 7vw 55px; }
  .portal-shell h1 { font-size: 42px; }
  .dashboard-view { margin: 0 5vw; padding: 44px 0 55px; }
  .dashboard-top { align-items: flex-start; flex-direction: column; margin-bottom: 23px; }
  .dashboard-actions { flex-wrap: wrap; }
  .dashboard-top h1 { font-size: 34px; }
  .dashboard-stats { gap: 7px; }
  .stat-card { padding: 14px 11px; }
  .stat-card > span { min-height: 22px; font-size: 7px; line-height: 1.45; }
  .stat-card > strong { font-size: 26px; margin: 7px 0; }
  .stat-foot { font-size: 7px; line-height: 1.5; }
  .dashboard-columns { grid-template-columns: 1fr; gap: 12px; }
  .message-center-layout { grid-template-columns: 1fr; }
  .message-thread-list { max-height: 260px; border-right: 0; border-bottom: 1px solid #eff1ed; }
  .message-center-header { align-items: flex-end; flex-direction: column; gap: 6px; }
  .message-contact { align-items: flex-start; flex-direction: column; }
  .message-history { padding: 13px; }
  .message-reply-form { padding: 0 13px 15px; }
  .dashboard-shortcuts { gap: 6px; padding: 9px; }
  .dashboard-shortcuts a { padding: 7px 8px; font-size: 9px; }
  .panel-heading { padding: 16px 14px 13px; }
  .data-row { grid-template-columns: 29px minmax(75px, 1fr) auto; gap: 7px; margin: 0 13px; }
  .data-row .status { grid-column: 2; grid-row: 2; justify-self: start; margin: -13px 0 9px; font-size: 7px; }
  .data-row .pdf-download-button { grid-column: 2; grid-row: 3; justify-self: start; margin: -7px 0 9px; }
  .data-main strong { font-size: 9px; }
  .data-main small { font-size: 7px; }
  .data-main { align-self: end; padding-top: 10px; }
  .row-amount { grid-column: 3; grid-row: 1; }
  .data-icon { grid-row: 1 / span 2; }
  .panel-footer { padding: 12px 13px; font-size: 7px; }
  .admin-panel th { padding: 0 10px; font-size: 7px; }
  .admin-panel td { padding: 8px 10px; font-size: 8px; }
  .admin-panel td strong { font-size: 9px; }
  .admin-panel td small { font-size: 7px; }
  .invoice-form { padding: 0 13px 15px; }
  .invoice-form .field-row { grid-template-columns: 1fr 1fr; gap: 9px; }
  .quote-status-select, .invoice-status-select, .client-assign-select { min-width: 95px; }
  .quote-amount-input { width: 76px; min-width: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

body.operations-view-active .site-header,
body.operations-view-active .site-footer { display: none; }
body.operations-view-active > main { min-height: 100vh; background: #f4f6fb; }
.operations-dashboard[hidden] { display: none !important; }
.operations-dashboard.dashboard-view {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  column-gap: 24px;
  row-gap: 18px;
  width: min(100%, 1500px);
  max-width: none;
  margin: 0 auto;
  padding: 30px 32px 64px;
}
.operations-dashboard > .dashboard-top,
.operations-dashboard > .operations-stats { grid-column: 1 / -1; }
.operations-dashboard > .dashboard-top {
  align-items: center;
  margin: 0;
  padding: 23px 26px;
  border: 1px solid #e6e8f0;
  border-radius: 14px;
  background: linear-gradient(110deg, #fff, #f8f6ff);
  box-shadow: 0 5px 18px #211b4208;
}
.operations-dashboard .dashboard-top .eyebrow { margin-bottom: 8px; }
.operations-dashboard .dashboard-top h1 { margin-bottom: 7px; font-size: clamp(29px, 3vw, 37px); letter-spacing: -1.5px; }
.operations-dashboard .dashboard-top > div > p:last-child { font-size: 13px; }
.operations-dashboard .dashboard-actions { gap: 10px; }
.operations-dashboard .dashboard-actions .button { min-height: 42px; padding: 10px 15px; font-size: 12px; }
.operations-stats { gap: 13px; margin: 0; }
.operations-stat-card {
  display: block;
  min-height: 136px;
  padding: 19px 21px;
  border-color: #e6e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 14px #211b4206;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.operations-stat-card:hover { transform: translateY(-2px); border-color: #c8c2ec; box-shadow: 0 10px 24px #211b4210; }
.operations-stat-card > span { color: #77768a; font-size: 10px; letter-spacing: .8px; }
.operations-stat-card > strong { margin: 13px 0 11px; font-size: 34px; }
.operations-stat-card .stat-foot { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.operations-stat-card .stat-foot > span { margin-left: auto; color: var(--brand); font-size: 15px; }
.workspace-nav {
  grid-column: 1;
  grid-row: 3 / span 20;
  position: sticky;
  top: 20px;
  z-index: 5;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 0;
  padding: 18px 13px;
  border: 1px solid #24203e;
  border-radius: 14px;
  background: var(--navy);
  box-shadow: 0 12px 30px #17142f20;
  backdrop-filter: none;
}
.workspace-brand { display: flex; align-items: center; gap: 11px; padding: 2px 6px 16px; border-bottom: 1px solid #ffffff1a; color: #fff; font: 800 16px var(--heading); letter-spacing: -.5px; }
.workspace-brand-mark { width: 38px; height: 38px; flex: none; overflow: hidden; border: 1px solid #dcd7fa; border-radius: 10px; background: #f7f5ff; }
.workspace-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.workspace-brand small { display: block; margin-top: 3px; color: #aaa5c5; font: 700 8px var(--body); letter-spacing: 1.4px; }
.workspace-nav-group { display: grid; gap: 4px; }
.workspace-nav-group > p { margin: 0 8px 5px; color: #a6a1bf; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.workspace-nav-group > a {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 7px 8px;
  border-radius: 8px;
  color: #d3d0e3;
  font-size: 12px;
  font-weight: 500;
  transition: color .16s ease, background .16s ease;
}
.workspace-nav-group > a:hover,
.workspace-nav-group > a.is-active { background: #ffffff13; color: #fff; }
.workspace-nav-group > a.is-active { background: #6554bf35; box-shadow: inset 3px 0 var(--accent); }
.workspace-nav-icon { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #ffffff24; border-radius: 7px; color: #c2baf3; font-size: 8px; font-weight: 700; }
.workspace-nav-count { min-width: 20px; padding: 3px 6px; border-radius: 20px; background: #5446b5; color: #fff; text-align: center; font-size: 9px; font-weight: 700; }
.operations-dashboard > .admin-panel,
.operations-dashboard > .operations-overview,
.operations-dashboard > .dashboard-notice { grid-column: 2; }
.operations-dashboard > .admin-panel:not(.is-current-section) { display: none; }
.operations-overview { min-width: 0; }
.overview-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 2px 0 18px; }
.overview-heading .eyebrow, .overview-card-heading .eyebrow { margin-bottom: 6px; font-size: 9px; }
.overview-heading h2 { margin: 0 0 6px; font-size: 23px; letter-spacing: -.8px; }
.overview-heading p:last-child, .overview-card-heading p:last-child { margin: 0; color: #77768a; font-size: 12px; }
.overview-refresh { flex: none; padding: 10px 13px; border: 1px solid #e3e1ee; border-radius: 8px; background: #fff; color: #514790; font-size: 11px; font-weight: 700; }
.overview-refresh:hover { border-color: #bdb4e9; background: #f9f8ff; }
.overview-refresh:disabled { opacity: .6; cursor: wait; }
.overview-refresh span { margin-left: 6px; font-size: 14px; }
.overview-status { margin: 0; padding: 22px; border: 1px solid #e6e8f0; border-radius: 13px; background: #fff; color: #68637d; font-size: 13px; }
.overview-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.overview-metric, .overview-card { border: 1px solid #e6e8f0; border-radius: 13px; background: #fff; box-shadow: 0 5px 18px #211b4208; }
.overview-metric { display: flex; align-items: flex-start; gap: 13px; min-width: 0; padding: 19px; background: linear-gradient(145deg, #fff, #faf9ff); }
.overview-metric-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: #f0edff; color: #6b58c5; font-size: 19px; font-weight: 700; }
.overview-metric-icon-green { background: #eaf5ee; color: #52966b; }
.overview-metric-icon-blue { background: #eaf2fc; color: #5584bb; }
.overview-metric p { margin: 1px 0 9px; color: #77768a; font-size: 9px; font-weight: 700; letter-spacing: .65px; }
.overview-metric strong { display: block; color: #211b42; font: 700 28px var(--heading); line-height: 1; letter-spacing: -.9px; }
.overview-metric small { display: block; margin-top: 8px; color: #8b899b; font-size: 10px; }
.overview-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.overview-card { min-width: 0; padding: 22px; }
.overview-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.overview-card-heading h3 { margin: 0 0 5px; font-size: 17px; letter-spacing: -.5px; }
.overview-card-heading > strong { min-width: 43px; padding: 8px 10px; border-radius: 9px; background: #f2efff; color: #5949a9; text-align: center; font: 700 18px var(--heading); }
.overview-bars { display: grid; gap: 15px; margin: 25px 0 23px; }
.overview-bar-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: #666578; font-size: 11px; }
.overview-bar-label strong { color: #302a4b; font-size: 11px; }
.overview-bar-track { height: 8px; overflow: hidden; border-radius: 8px; background: #f0eff5; }
.overview-bar-fill { display: block; height: 100%; border-radius: inherit; background: #8c7be5; }
.overview-bar-fill[data-tone="green"] { background: #70b791; }
.overview-bar-fill[data-tone="amber"] { background: #e1b466; }
.overview-bar-fill[data-tone="coral"] { background: #dd9685; }
.overview-bar-fill[data-tone="blue"] { background: #8aaedb; }
.overview-link { display: inline-flex; align-items: center; gap: 8px; color: #5c4db0; font-size: 11px; font-weight: 700; }
.overview-link:hover { color: #30247f; }
.overview-recent { margin-top: 14px; }
.overview-recent-list { margin-top: 18px; }
.overview-recent-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid #f0eff5; }
.overview-recent-row strong, .overview-recent-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-recent-row strong { color: #302a4b; font-size: 12px; }
.overview-recent-row small { margin-top: 5px; color: #8b899b; font-size: 10px; }
.overview-recent-meta { display: flex; align-items: center; gap: 10px; }
.overview-recent-meta time { color: #8b899b; font-size: 10px; white-space: nowrap; }
.overview-empty { margin: 18px 0 0; padding: 18px; border-radius: 9px; background: #f8f7fc; color: #77768a; font-size: 12px; }
.dashboard-notice[hidden] { display: none !important; }
.operations-dashboard #admin-message-center { order: 1; }
.operations-dashboard #admin-clients { order: 2; }
.operations-dashboard #admin-quote-requests { order: 3; }
.operations-dashboard #admin-invoices { order: 4; }
.operations-dashboard #admin-staff { order: 5; }
.operations-dashboard #admin-portfolio { order: 6; }
.operations-dashboard #admin-testimonials { order: 7; }
.operations-dashboard #admin-announcement { order: 8; }
.operations-dashboard #admin-website-theme { order: 8; }
.operations-dashboard #admin-website-status { order: 9; }
.operations-dashboard #admin-documents { order: 10; }
.operations-dashboard #admin-policies { order: 11; }
.operations-dashboard #admin-audit-log { order: 12; }
.operations-dashboard > .admin-panel { margin: 0 0 1px; border-color: #e6e8f0; border-radius: 13px; box-shadow: 0 5px 18px #211b4208; scroll-margin-top: 22px; }
.operations-dashboard .admin-panel .panel-heading { padding: 22px 24px 18px; }
.operations-dashboard .admin-panel .panel-heading h2 { font-size: 20px; letter-spacing: -.7px; }
.operations-dashboard .admin-panel .panel-heading .eyebrow { margin-bottom: 6px; font-size: 9px; }
.operations-dashboard .panel-description { max-width: 620px; font-size: 12px; }
.operations-dashboard .admin-panel table { min-width: 720px; }
.operations-dashboard #admin-clients table { min-width: 1080px; table-layout: fixed; }
.operations-dashboard #admin-clients th:nth-child(1),
.operations-dashboard #admin-clients td:nth-child(1) { width: 12%; }
.operations-dashboard #admin-clients th:nth-child(2),
.operations-dashboard #admin-clients td:nth-child(2) { width: 12%; }
.operations-dashboard #admin-clients th:nth-child(3),
.operations-dashboard #admin-clients td:nth-child(3) { width: 18%; }
.operations-dashboard #admin-clients th:nth-child(4),
.operations-dashboard #admin-clients td:nth-child(4) { width: 10%; }
.operations-dashboard #admin-clients th:nth-child(5),
.operations-dashboard #admin-clients td:nth-child(5) { width: 16%; }
.operations-dashboard #admin-clients th:nth-child(6),
.operations-dashboard #admin-clients td:nth-child(6) { width: 12%; }
.operations-dashboard #admin-clients th:nth-child(7),
.operations-dashboard #admin-clients td:nth-child(7) { width: 20%; }
.operations-dashboard #admin-clients td:first-child > strong[data-account-name] { display: none; }
.operations-dashboard #admin-clients td input,
.operations-dashboard #admin-clients td textarea { width: 100%; min-width: 0; }
.operations-dashboard #admin-clients .client-email-control { min-width: 0; }
.operations-dashboard #admin-clients .client-email-control input { width: 100% !important; min-width: 0; }
.operations-dashboard #admin-clients .account-role-control { flex-wrap: wrap; gap: 4px; }
.operations-dashboard #admin-clients .account-role-control select { min-width: 0; max-width: 100%; }
.operations-dashboard .admin-panel th { height: 42px; padding: 0 15px; background: #f8f8fc; color: #77768a; font-size: 9px; letter-spacing: .65px; }
.operations-dashboard .admin-panel td { height: auto; min-height: 58px; padding: 12px 15px; color: #55566a; font-size: 12px; line-height: 1.5; white-space: normal; }
.operations-dashboard .admin-panel td strong { font-size: 12px; }
.operations-dashboard .admin-panel td small { font-size: 10px; }
.operations-dashboard .admin-panel td input,
.operations-dashboard .admin-panel td textarea { width: 150px; min-height: 38px; padding: 8px 9px; font: 11px var(--body); }
.operations-dashboard .admin-panel td textarea { width: 190px; }
.operations-dashboard .admin-panel td .account-actions { gap: 10px; }
.operations-dashboard .admin-panel td:last-child .account-actions { max-width: 300px; }
.operations-dashboard .account-actions button { min-height: 32px; padding: 7px 9px; border: 1px solid #e2e0ed; border-radius: 6px; background: #fff; font-size: 10px; white-space: nowrap; }
.operations-dashboard .account-actions .account-delete-button { border-color: #f0d7d4; color: #a25441; background: #fff9f8; }
.operations-dashboard .account-actions .account-purge-button { border-color: #e7c2be; color: #8c241b; background: #fff7f6; }
.operations-dashboard .account-role-control { gap: 8px; }
.operations-dashboard .account-role-control select { min-height: 36px; font-size: 11px; }
.operations-dashboard .account-role-control button { min-height: 32px; padding: 6px 9px; border-radius: 6px; background: var(--brand-pale); font-size: 10px; }
.operations-dashboard .client-search-wrap { max-width: 560px; padding: 0 24px 18px; }
.operations-dashboard .client-search-wrap label,
.operations-dashboard .client-search-wrap input { font-size: 12px; }
.operations-dashboard .client-search-wrap input { min-height: 42px; }
.operations-dashboard .client-form,
.operations-dashboard .invoice-form { max-width: 820px; padding: 18px 22px 22px; }
.operations-dashboard .invoice-upload-block { margin: 0; padding: 16px 0 0; border-top: 0; }
.operations-dashboard .invoice-upload-block > .panel-heading { padding: 0 0 14px; }
.operations-dashboard .invoice-admin > .table-wrap { margin-top: 14px; }
.dashboard-disclosure {
  margin: 0 22px 18px;
  overflow: hidden;
  border: 1px solid #e7e8f0;
  border-radius: 9px;
  background: #fbfbfd;
}
.dashboard-disclosure > summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px;
  color: var(--brand);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}
.dashboard-disclosure > summary::-webkit-details-marker { display: none; }
.dashboard-disclosure > summary::after { content: "+"; margin-left: auto; color: var(--brand); font-size: 19px; font-weight: 400; }
.dashboard-disclosure[open] > summary { border-bottom: 1px solid #e7e8f0; }
.dashboard-disclosure[open] > summary::after { content: "−"; }
.dashboard-disclosure .form-footnote { font-size: 11px; }
.operations-dashboard .message-center-layout { min-height: 430px; }
.operations-dashboard .message-thread-list { max-height: 620px; }
.operations-dashboard .message-thread-item { padding: 16px 18px; }
.operations-dashboard .message-thread-top strong,
.operations-dashboard .message-contact h3 { font-size: 12px; }
.operations-dashboard .message-thread-meta,
.operations-dashboard .message-thread-preview,
.operations-dashboard .message-contact p { font-size: 11px; }
.operations-dashboard .message-reply-form { padding: 16px 20px 20px; }
.operations-dashboard .message-reply-form label,
.operations-dashboard .message-reply-form textarea { font-size: 12px; }
.operations-dashboard .dashboard-notice { align-self: start; padding: 14px 16px; border: 1px solid #f0d2cb; border-radius: 9px; background: #fff8f6; color: #8c5142; font-size: 12px; }
.operations-dashboard .dashboard-notice > span { border-color: #ebc7bd; color: #a25441; }

@media (max-width: 1280px) {
  .operations-dashboard #admin-clients .table-wrap { overflow: visible; }
  .operations-dashboard #admin-clients table { min-width: 0; table-layout: auto; }
  .operations-dashboard #admin-clients thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .operations-dashboard #admin-clients tbody { display: grid; gap: 12px; padding: 0 24px 20px; }
  .operations-dashboard #admin-clients tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 16px; border: 1px solid #e8e5f1; border-radius: 10px; background: #fff; }
  .operations-dashboard #admin-clients tbody td,
  .operations-dashboard #admin-clients tbody td:nth-child(n) { display: grid; align-content: start; gap: 6px; width: auto; min-width: 0; padding: 0; border: 0; }
  .operations-dashboard #admin-clients tbody td::before { content: attr(data-label); color: #77768a; font-size: 9px; font-weight: 700; letter-spacing: .55px; text-transform: uppercase; }
  .operations-dashboard #admin-clients tbody td:first-child > strong[data-account-name] { display: none; }
  .operations-dashboard #admin-clients tbody td:nth-child(5) { grid-column: span 2; }
  .operations-dashboard #admin-clients tbody td:last-child { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid #eff1ed; }
  .operations-dashboard #admin-clients tbody td:last-child .account-actions { max-width: none; gap: 8px; }
  .operations-dashboard #admin-clients .client-email-control input { flex: 1 1 0; }
  .operations-dashboard #admin-clients tbody td[colspan] { display: block; grid-column: 1 / -1; }
  .operations-dashboard #admin-clients tbody td[colspan]::before { content: none; }
}

@media (max-width: 980px) {
  .operations-dashboard.dashboard-view { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px 22px 48px; }
  .operations-dashboard > .dashboard-top,
  .operations-dashboard > .operations-stats,
  .operations-dashboard > .workspace-nav,
  .operations-dashboard > .admin-panel,
  .operations-dashboard > .operations-overview,
  .operations-dashboard > .dashboard-notice { grid-column: 1; }
  .workspace-nav { grid-row: auto; position: sticky; top: 0; flex-direction: row; align-items: center; gap: 12px; max-height: none; padding: 9px; border-radius: 10px; }
  .workspace-brand { display: none; }
  .workspace-nav-group { display: flex; flex: none; align-items: center; gap: 4px; }
  .workspace-nav-group > p,
  .workspace-nav-icon { display: none; }
  .workspace-nav-group > a { display: inline-flex; min-height: 38px; padding: 8px 10px; white-space: nowrap; }
  .operations-dashboard > .admin-panel { margin: 0; }
}
@media (max-width: 620px) {
  .operations-dashboard.dashboard-view { padding: 13px 12px 36px; row-gap: 12px; }
  .operations-dashboard > .dashboard-top { align-items: flex-start; padding: 18px; }
  .operations-dashboard .dashboard-top h1 { font-size: 29px; }
  .operations-dashboard .dashboard-top > .dashboard-actions { width: 100%; }
  .operations-dashboard .dashboard-top .dashboard-actions .button { flex: 1; }
  .operations-stats { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .operations-stat-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 0; padding: 13px 15px; }
  .operations-stat-card > span { grid-column: 1; font-size: 9px; }
  .operations-stat-card > strong { grid-column: 2; grid-row: 1 / span 2; margin: 0 0 0 12px; font-size: 27px; }
  .operations-stat-card .stat-foot { grid-column: 1; margin-top: 6px; font-size: 10px; }
  .workspace-nav { gap: 8px; margin: 0; }
  .workspace-nav-group { gap: 3px; }
  .workspace-nav-group > a { min-height: 36px; padding: 7px 9px; font-size: 11px; }
  .overview-heading { align-items: flex-start; }
  .overview-heading h2 { font-size: 21px; }
  .overview-refresh { padding: 9px; font-size: 10px; }
  .overview-metrics { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .overview-metric { align-items: center; padding: 14px; }
  .overview-metric p { margin-bottom: 6px; }
  .overview-metric strong { font-size: 23px; }
  .overview-metric small { margin-top: 5px; }
  .overview-charts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .overview-card { padding: 18px; }
  .overview-recent-meta { flex-direction: column; align-items: flex-end; gap: 5px; }
  .operations-dashboard .admin-panel .panel-heading { align-items: flex-start; padding: 18px 16px 14px; }
  .operations-dashboard .admin-panel .panel-heading h2 { font-size: 18px; }
  .dashboard-disclosure { margin: 0 13px 14px; }
  .operations-dashboard .client-search-wrap { padding: 0 15px 14px; }
  .operations-dashboard #admin-clients tbody { padding: 0 15px 15px; }
  .operations-dashboard #admin-clients tbody tr { gap: 11px; padding: 13px; }
  .operations-dashboard .client-form,
  .operations-dashboard .invoice-form { padding: 15px 14px 18px; }
  .operations-dashboard .invoice-form .field-row,
  .operations-dashboard .client-form .field-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .operations-dashboard .message-center-header { align-items: flex-end; flex-direction: row; }
  .operations-dashboard .message-center-layout { min-height: 350px; }
}
@media (max-width: 480px) {
  .operations-dashboard #admin-clients tbody tr { grid-template-columns: minmax(0, 1fr); }
  .operations-dashboard #admin-clients tbody td:nth-child(5),
  .operations-dashboard #admin-clients tbody td:last-child { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .operations-stat-card { transition: none; }
}
