:root {
    --ink: #101828;
    --muted: #667085;
    --line: #d9e2ec;
    --paper: #ffffff;
    --soft: #f5f8fb;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.9);
    --dashboard-bg: #f7fafc;
    --auth-bg: linear-gradient(120deg, rgba(21, 94, 239, 0.08), transparent 38%),
        linear-gradient(260deg, rgba(14, 147, 132, 0.13), transparent 36%),
        #fbfdff;
    --hero-bg: linear-gradient(115deg, rgba(21, 94, 239, 0.09), transparent 42%),
        linear-gradient(250deg, rgba(14, 147, 132, 0.13), transparent 34%),
        #fbfdff;
    --blue: #155eef;
    --blue-dark: #0f3fbd;
    --teal: #0e9384;
    --amber: #f79009;
    --rose: #e31b54;
    --shadow: 0 24px 70px rgba(16, 24, 40, 0.13);
}

:root[data-theme="dark"] {
    --ink: #eef4ff;
    --muted: #aab8cf;
    --line: #26364d;
    --paper: #09111f;
    --soft: #111c2e;
    --surface: #101a2b;
    --surface-strong: #152238;
    --header-bg: rgba(9, 17, 31, 0.9);
    --dashboard-bg: #0b1424;
    --auth-bg: linear-gradient(120deg, rgba(21, 94, 239, 0.18), transparent 38%),
        linear-gradient(260deg, rgba(14, 147, 132, 0.16), transparent 36%),
        #09111f;
    --hero-bg: linear-gradient(115deg, rgba(21, 94, 239, 0.2), transparent 42%),
        linear-gradient(250deg, rgba(14, 147, 132, 0.18), transparent 34%),
        #09111f;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    color-scheme: light;
}

/* Dashboard system v2 — authoritative application shell */
body.dashboard-body:not(.admin-body) {
    --dash-navy: #111827;
    --dash-navy-soft: #1f2937;
    --dash-purple: #6556e8;
    --dash-purple-dark: #5143c7;
    --dash-green: #20a66a;
    --dash-canvas: #f5f6f8;
    --dash-border: #e5e7eb;
    --dash-text: #181b25;
    --dash-muted: #707888;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    padding: 0;
    color: var(--dash-text);
    background: var(--dash-canvas);
}

body.dashboard-body:not(.admin-body) .analytics-shell {
    position: relative;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    width: 100%;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    border-radius: 0;
    background: var(--dash-canvas);
    box-shadow: none;
    animation: none;
}

body.dashboard-body:not(.admin-body) .dashboard-sidebar {
    position: relative;
    z-index: 40;
    display: flex;
    width: 248px;
    min-height: 0;
    flex-direction: column;
    gap: 18px;
    padding: 22px 14px 16px;
    color: #fff;
    background: var(--dash-navy);
    box-shadow: inset -1px 0 rgba(255,255,255,.04);
}

body.dashboard-body:not(.admin-body) .dashboard-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 52px;
    padding: 5px 8px 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #fff;
}

body.dashboard-body:not(.admin-body) .dashboard-brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

body.dashboard-body:not(.admin-body) .dashboard-brand-mark img { width: 32px; height: 32px; }
body.dashboard-body:not(.admin-body) .dashboard-brand strong { font-size: .98rem; }
body.dashboard-body:not(.admin-body) .dashboard-brand small { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: #96a0b3; font-size: .65rem; font-weight: 650; }
body.dashboard-body:not(.admin-body) .dashboard-brand small i { width: 6px; height: 6px; border-radius: 50%; background: #35c986; box-shadow: 0 0 0 3px rgba(53,201,134,.12); }

body.dashboard-body:not(.admin-body) .dashboard-sidebar-nav {
    display: grid;
    gap: 14px;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2px 2px 12px;
    scrollbar-color: #374151 transparent;
    scrollbar-width: thin;
}

body.dashboard-body:not(.admin-body) .dashboard-nav-group { gap: 3px; }
body.dashboard-body:not(.admin-body) .dashboard-nav-group-toggle { padding: 7px 10px 5px; color: #758096; font-size: .61rem; letter-spacing: .12em; }
body.dashboard-body:not(.admin-body) .dashboard-nav-group-toggle:hover { color: #b8c0cf; }
body.dashboard-body:not(.admin-body) .dashboard-nav-item {
    position: relative;
    gap: 11px;
    min-height: 40px;
    padding: 9px 11px;
    border: 0;
    border-radius: 9px;
    color: #aeb7c7;
    font-size: .8rem;
    font-weight: 650;
    transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}
body.dashboard-body:not(.admin-body) .dashboard-nav-item svg { width: 17px; height: 17px; color: #7f899b; }
body.dashboard-body:not(.admin-body) .dashboard-nav-item:hover { color: #fff; background: rgba(255,255,255,.065); transform: translateX(2px); }
body.dashboard-body:not(.admin-body) .dashboard-nav-item.active { color: #fff; background: linear-gradient(120deg, #6556e8, #5546d0); box-shadow: 0 10px 24px rgba(35,25,120,.27); }
body.dashboard-body:not(.admin-body) .dashboard-nav-item.active::before { position: absolute; top: 12px; bottom: 12px; left: -13px; width: 3px; border-radius: 0 3px 3px 0; background: #a89fff; content: ""; }
body.dashboard-body:not(.admin-body) .dashboard-nav-item.active svg { color: #fff; }

body.dashboard-body:not(.admin-body) .dashboard-sidebar-footer { gap: 10px; margin-top: auto; padding: 14px 4px 0; border-top-color: rgba(255,255,255,.09); }
body.dashboard-body:not(.admin-body) .dashboard-account { gap: 10px; padding: 3px 4px; }
body.dashboard-body:not(.admin-body) .dashboard-account .rail-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #7567f1, #5143c7); font-size: .66rem; box-shadow: none; }
body.dashboard-body:not(.admin-body) .dashboard-account strong { color: #f5f7fb; font-size: .72rem; }
body.dashboard-body:not(.admin-body) .dashboard-account small { color: #7f899b; font-size: .61rem; }
body.dashboard-body:not(.admin-body) .dashboard-logout { width: 100%; border-radius: 8px; color: #8993a5; }
body.dashboard-body:not(.admin-body) .dashboard-logout:hover { color: #fff; background: rgba(255,255,255,.06); }

.ai-mailbox-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 28px;margin-bottom:14px}.ai-mailbox-head h2{margin:4px 0}.ai-mailbox-head>div:last-child{display:flex;align-items:center;gap:12px}.ai-sync-state{display:flex;align-items:center;gap:7px;color:#667085;font-size:.75rem}.ai-sync-state i{width:8px;height:8px;border-radius:50%;background:#26b779;box-shadow:0 0 0 5px #dff8ed}.ai-mailbox[data-agent-enabled="0"] .ai-sync-state i{background:#a3aaba;box-shadow:none}.ai-mailbox-grid{display:grid;grid-template-columns:210px minmax(0,1fr);gap:14px}.ai-folders{display:flex;flex-direction:column;gap:5px;padding:14px;height:max-content}.ai-folders button{display:flex;gap:10px;align-items:center;border:0;border-radius:11px;padding:11px 12px;color:#657086;background:transparent;font-weight:700;text-align:left;cursor:pointer}.ai-folders button svg{width:17px}.ai-folders button.active,.ai-folders button:hover{color:#5747d6;background:#f0edff}.ai-token-meter{margin-top:18px;padding:15px;border-radius:13px;background:#f7f7fb}.ai-token-meter small,.ai-token-meter span{display:block;color:#8991a2}.ai-token-meter strong{display:block;margin:5px 0;font-size:1.35rem}.ai-message-pane{position:relative;min-height:480px;padding:10px}.ai-message-list details{border-bottom:1px solid #edf0f5}.ai-message-list summary{display:grid;grid-template-columns:42px minmax(0,1fr) auto 105px 18px;align-items:center;gap:13px;padding:15px 12px;cursor:pointer;list-style:none}.ai-message-list summary>div{display:grid;gap:2px}.ai-message-list summary b{font-size:.82rem}.ai-message-list summary small,.ai-message-list summary time{color:#7d8797;font-size:.7rem}.ai-category{padding:5px 8px;border-radius:99px;background:#eef1f6;color:#626d7e;font-size:.65rem;font-weight:800}.ai-category-verification{background:#eef1ff;color:#5144c7}.ai-category-junk{background:#fff0f0;color:#c64c4c}.ai-category-promotions{background:#fff5de;color:#9a6a12}.ai-email-detail{padding:4px 70px 24px}.ai-email-detail>div{display:flex;gap:8px}.ai-email-detail p{white-space:pre-wrap;line-height:1.65}.ai-arrival{position:absolute;z-index:4;top:18px;right:18px;display:flex;align-items:center;gap:10px;padding:12px 16px;border:1px solid #dcd6ff;border-radius:14px;background:#fff;box-shadow:0 18px 45px rgba(59,45,135,.2);animation:mailArrival .45s ease both}.ai-arrival span{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;color:#fff;background:#6253df}.ai-arrival small{display:block;color:#777f91}.ai-compose-modal .modal-card{position:relative;max-width:650px}.ai-compose-close{position:absolute;right:18px;top:18px;border:0;background:transparent;cursor:pointer}.ai-compose-modal label{display:grid;gap:6px;margin-top:14px;font-weight:700}.ai-compose-modal input,.ai-compose-modal textarea{border:1px solid #dce0e8;border-radius:12px;padding:12px}.agent-permission-groups>h3{margin:24px 0 10px}.custom-rule-builder{margin-top:24px;padding:20px;border:1px solid #e5e7ef;border-radius:16px;background:#fafafe}.custom-rule-builder p{color:#778093}.custom-rule-builder [data-custom-rules]>div{display:grid;grid-template-columns:110px 1fr 38px;gap:8px;margin:8px 0}.custom-rule-builder select,.custom-rule-builder input{border:1px solid #dce0e8;border-radius:10px;padding:10px}.custom-rule-builder [data-remove-rule]{border:0;border-radius:10px;color:#c54848;background:#ffecec;cursor:pointer}@keyframes mailArrival{from{opacity:0;transform:translateY(-15px) scale(.96)}to{opacity:1;transform:none}}@media(max-width:800px){.ai-mailbox-grid{grid-template-columns:1fr}.ai-folders{display:grid;grid-template-columns:repeat(2,1fr)}.ai-message-list summary{grid-template-columns:38px minmax(0,1fr) auto}.ai-message-list summary time,.ai-message-list summary>svg{display:none}.ai-mailbox-head{align-items:flex-start;flex-direction:column}}

body.dashboard-body:not(.admin-body) .analytics-workspace {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    color: var(--dash-text);
    background: var(--dash-canvas);
}

body.dashboard-body:not(.admin-body) .analytics-header {
    position: relative;
    z-index: 10;
    display: flex;
    min-height: 112px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 0;
    padding: 22px clamp(24px, 3.5vw, 48px);
    border-bottom: 1px solid var(--dash-border);
    background: rgba(255,255,255,.94);
    box-shadow: 0 1px 0 rgba(17,24,39,.02);
    backdrop-filter: blur(18px);
}

body.dashboard-body:not(.admin-body) .analytics-header > div:first-child { min-width: 0; }
body.dashboard-body:not(.admin-body) .analytics-header .eyebrow { margin: 0 0 5px; color: var(--dash-purple); font-size: .65rem; letter-spacing: .07em; }
body.dashboard-body:not(.admin-body) .analytics-header h1 { margin: 0; color: var(--dash-text); font-size: clamp(1.55rem, 2.5vw, 2.15rem); line-height: 1.08; letter-spacing: -.035em; }
body.dashboard-body:not(.admin-body) .dashboard-header-summary { max-width: 620px; margin: 6px 0 0; overflow: hidden; color: var(--dash-muted); font-size: .76rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
body.dashboard-body:not(.admin-body) .analytics-header-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
body.dashboard-body:not(.admin-body) .analytics-search { width: min(240px, 24vw); min-height: 40px; border: 1px solid #e0e3e9; border-radius: 10px; background: #f7f8fa; box-shadow: none; }
body.dashboard-body:not(.admin-body) .analytics-search:focus-within { border-color: #a99ff5; background: #fff; box-shadow: 0 0 0 3px rgba(101,86,232,.11); }
body.dashboard-body:not(.admin-body) .analytics-search input { font-size: .76rem; }
body.dashboard-body:not(.admin-body) .analytics-header-tools .btn { min-height: 40px; border-radius: 10px; font-size: .76rem; box-shadow: 0 9px 22px rgba(81,67,199,.18); }
body.dashboard-body:not(.admin-body) .btn-primary { background: var(--dash-purple); box-shadow: 0 9px 22px rgba(81,67,199,.2); }
body.dashboard-body:not(.admin-body) .btn-primary:hover { background: var(--dash-purple-dark); }

body.dashboard-body:not(.admin-body) .dashboard-flashes { flex: 0 0 auto; margin: 16px clamp(24px, 3.5vw, 48px) 0; }
body.dashboard-body:not(.admin-body) .analytics-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 28px clamp(24px, 3.5vw, 48px) 48px;
    scrollbar-color: #c5c9d1 transparent;
    scrollbar-width: thin;
}
body.dashboard-body:not(.admin-body) .analytics-content::-webkit-scrollbar { width: 8px; }
body.dashboard-body:not(.admin-body) .analytics-content::-webkit-scrollbar-thumb { border: 2px solid var(--dash-canvas); border-radius: 999px; background: #c5c9d1; }

body.dashboard-body:not(.admin-body) .overview-content { gap: 20px; }
body.dashboard-body:not(.admin-body) .overview-metrics { gap: 14px; }
body.dashboard-body:not(.admin-body) .overview-metric,
body.dashboard-body:not(.admin-body) .overview-panel,
body.dashboard-body:not(.admin-body) .analytics-card,
body.dashboard-body:not(.admin-body) .booking-form-section {
    border: 1px solid var(--dash-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(17,24,39,.045);
}
body.dashboard-body:not(.admin-body) .overview-metric { position: relative; min-height: 126px; gap: 9px; padding: 19px 20px; overflow: hidden; transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
body.dashboard-body:not(.admin-body) .overview-metric::after { position: absolute; top: 0; right: 0; width: 54px; height: 54px; border-radius: 0 0 0 54px; background: rgba(101,86,232,.055); content: ""; }
body.dashboard-body:not(.admin-body) .overview-metric:hover { border-color: #c9c4f7; box-shadow: 0 12px 32px rgba(38,31,101,.09); transform: translateY(-2px); }
body.dashboard-body:not(.admin-body) .overview-metric span { color: #6e7685; font-size: .69rem; text-transform: uppercase; letter-spacing: .045em; }
body.dashboard-body:not(.admin-body) .overview-metric span svg { width: 16px; height: 16px; color: var(--dash-purple); }
body.dashboard-body:not(.admin-body) .overview-metric strong { font-size: 2.15rem; letter-spacing: -.04em; }
body.dashboard-body:not(.admin-body) .overview-metric small { color: #969dab; font-size: .7rem; }
body.dashboard-body:not(.admin-body) .overview-columns { gap: 20px; }
body.dashboard-body:not(.admin-body) .overview-panel { padding: 22px; }
body.dashboard-body:not(.admin-body) .overview-panel-heading { margin-bottom: 16px; }
body.dashboard-body:not(.admin-body) .overview-panel-heading h2 { color: var(--dash-text); font-size: 1.08rem; }
body.dashboard-body:not(.admin-body) .overview-panel .card-label { color: #989fac; letter-spacing: .07em; }
body.dashboard-body:not(.admin-body) .text-link { color: var(--dash-purple); }
body.dashboard-body:not(.admin-body) .overview-schedule a,
body.dashboard-body:not(.admin-body) .overview-attention a { padding: 12px 4px; border-top-color: #edf0f3; }
body.dashboard-body:not(.admin-body) .overview-schedule time { color: var(--dash-purple); }
body.dashboard-body:not(.admin-body) .overview-avatar { background: var(--dash-purple); }
body.dashboard-body:not(.admin-body) .overview-activity-icon { color: var(--dash-purple); background: #f0eeff; }
body.dashboard-body:not(.admin-body) .overview-empty { min-height: 140px; align-content: center; justify-items: center; text-align: center; }
body.dashboard-body:not(.admin-body) .overview-empty svg { width: 28px; height: 28px; margin-bottom: 5px; color: #9a90ee; }
body.dashboard-body:not(.admin-body) .overview-actions { gap: 10px; }
body.dashboard-body:not(.admin-body) .overview-actions a { min-height: 52px; padding: 13px; border-color: #e6e8ed; border-radius: 10px; background: #fafbfc; }
body.dashboard-body:not(.admin-body) .overview-actions a:hover { color: var(--dash-purple); border-color: #cec8fa; background: #f5f3ff; }
body.dashboard-body:not(.admin-body) .overview-actions svg { color: var(--dash-purple); }

body.dashboard-body:not(.admin-body) .section-control-grid { gap: 20px; }
body.dashboard-body:not(.admin-body) .analytics-card { padding: clamp(22px, 2.5vw, 30px); }
body.dashboard-body:not(.admin-body) .analytics-card h2 { color: var(--dash-text); letter-spacing: -.025em; }
body.dashboard-body:not(.admin-body) .analytics-card .card-label { color: var(--dash-purple); }
body.dashboard-body:not(.admin-body) .settings-form input,
body.dashboard-body:not(.admin-body) .settings-form select,
body.dashboard-body:not(.admin-body) .settings-form textarea,
body.dashboard-body:not(.admin-body) .portfolio-form input,
body.dashboard-body:not(.admin-body) .portfolio-form select,
body.dashboard-body:not(.admin-body) .portfolio-form textarea,
body.dashboard-body:not(.admin-body) .booking-form-grid input,
body.dashboard-body:not(.admin-body) .booking-form-grid select,
body.dashboard-body:not(.admin-body) .booking-form-grid textarea {
    min-height: 44px;
    border-color: #dfe2e8;
    border-radius: 10px;
    background: #fbfcfd;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
body.dashboard-body:not(.admin-body) .settings-form input:focus,
body.dashboard-body:not(.admin-body) .settings-form select:focus,
body.dashboard-body:not(.admin-body) .settings-form textarea:focus,
body.dashboard-body:not(.admin-body) .portfolio-form input:focus,
body.dashboard-body:not(.admin-body) .portfolio-form select:focus,
body.dashboard-body:not(.admin-body) .portfolio-form textarea:focus,
body.dashboard-body:not(.admin-body) .booking-form-grid input:focus,
body.dashboard-body:not(.admin-body) .booking-form-grid select:focus,
body.dashboard-body:not(.admin-body) .booking-form-grid textarea:focus { border-color: #9d91ef; background: #fff; box-shadow: 0 0 0 3px rgba(101,86,232,.1); outline: 0; }
body.dashboard-body:not(.admin-body) .toggle-field { border-color: #e4e6eb; border-radius: 11px; background: #fafbfc; }
body.dashboard-body:not(.admin-body) .toggle-field:hover { border-color: #cbc6f5; background: #f8f7ff; }
body.dashboard-body:not(.admin-body) .portfolio-builder-heading,
body.dashboard-body:not(.admin-body) .booking-page-heading { margin-bottom: 22px; }
body.dashboard-body:not(.admin-body) .portfolio-builder-layout { gap: 22px; }
body.dashboard-body:not(.admin-body) .booking-form-section { padding: 26px; }

body.dashboard-body:not(.admin-body) .mobile-nav-toggle { display: none; }

@media (max-width: 1100px) {
    body.dashboard-body:not(.admin-body) .analytics-shell { grid-template-columns: 224px minmax(0, 1fr); }
    body.dashboard-body:not(.admin-body) .dashboard-sidebar { width: 224px; }
    body.dashboard-body:not(.admin-body) .analytics-header { padding-right: 28px; padding-left: 32px; }
    body.dashboard-body:not(.admin-body) .analytics-content { padding-right: 28px; padding-left: 32px; }
    body.dashboard-body:not(.admin-body) .overview-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 820px) {
    body.dashboard-body:not(.admin-body) { height: auto; min-height: 100dvh; overflow: auto; }
    body.dashboard-body:not(.admin-body) .analytics-shell { display: block; width: 100%; height: auto; min-height: 100dvh; overflow: visible; }
    body.dashboard-body:not(.admin-body) .dashboard-sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: min(286px, 86vw); transform: translateX(-104%); transition: transform 200ms ease; box-shadow: 20px 0 50px rgba(8,12,24,.32); }
    body.dashboard-body:not(.admin-body) .analytics-shell.nav-open .dashboard-sidebar { transform: translateX(0); }
    body.dashboard-body:not(.admin-body) .analytics-workspace { min-height: 100dvh; overflow: visible; }
    body.dashboard-body:not(.admin-body) .analytics-header { min-height: 104px; padding: 18px 18px 18px 66px; }
    body.dashboard-body:not(.admin-body) .analytics-header-tools .btn { display: none; }
    body.dashboard-body:not(.admin-body) .analytics-search { width: min(210px, 31vw); }
    body.dashboard-body:not(.admin-body) .dashboard-header-summary { max-width: 45vw; }
    body.dashboard-body:not(.admin-body) .analytics-content { overflow: visible; padding: 22px 18px 38px; }
    body.dashboard-body:not(.admin-body) .mobile-nav-toggle { position: fixed; z-index: 60; top: 18px; left: 16px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #dfe2e8; border-radius: 10px; color: #353946; background: #fff; box-shadow: 0 6px 18px rgba(17,24,39,.1); }
    body.dashboard-body:not(.admin-body) .overview-columns,
    body.dashboard-body:not(.admin-body) .portfolio-builder-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    body.dashboard-body:not(.admin-body) .analytics-header { align-items: flex-start; flex-direction: column; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
    body.dashboard-body:not(.admin-body) .analytics-header > div:first-child { padding-left: 0; }
    body.dashboard-body:not(.admin-body) .analytics-header h1 { font-size: 1.35rem; }
    body.dashboard-body:not(.admin-body) .dashboard-header-summary { max-width: calc(100vw - 90px); white-space: normal; }
    body.dashboard-body:not(.admin-body) .analytics-header-tools { width: 100%; }
    body.dashboard-body:not(.admin-body) .analytics-search { width: 100%; }
    body.dashboard-body:not(.admin-body) .overview-metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
    body.dashboard-body:not(.admin-body) .overview-metric { min-height: 112px; padding: 15px; }
    body.dashboard-body:not(.admin-body) .overview-metric strong { font-size: 1.8rem; }
    body.dashboard-body:not(.admin-body) .overview-metric span { font-size: .62rem; }
    body.dashboard-body:not(.admin-body) .overview-panel { padding: 18px; }
    body.dashboard-body:not(.admin-body) .overview-actions { grid-template-columns: 1fr; }
    body.dashboard-body:not(.admin-body) .section-control-grid,
    body.dashboard-body:not(.admin-body) .control-grid { grid-template-columns: 1fr; }
}

/* Analytics dashboard redesign */
.analytics-body {
    min-height: 100vh;
    padding: 44px 54px;
    background:
        linear-gradient(90deg, #4f7df4 0 16%, transparent 16%),
        linear-gradient(180deg, #fbfbfb, #f4f6fb);
}

:root[data-theme="dark"] .analytics-body {
    background:
        linear-gradient(90deg, #2547a8 0 16%, transparent 16%),
        linear-gradient(180deg, #07101d, #0d1728);
}

.analytics-shell {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: calc(100vh - 88px);
    overflow: hidden;
    border-radius: 8px;
    background: #edece9;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
    animation: float-in 620ms ease both;
}

:root[data-theme="dark"] .analytics-shell {
    background: #101826;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

.analytics-rail {
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: start;
    justify-items: center;
    gap: 26px;
    padding: 42px 18px 28px;
    background: #0c1020;
}

.rail-logo {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 8px;
    background: #0c1020;
    border: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.rail-logo:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: #11172c;
    transform: scale(1.04);
}

.rail-logo img,
.brand-mark img,
.public-portfolio-brand span img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rail-nav,
.rail-footer {
    display: grid;
    gap: 18px;
    justify-items: center;
}

.rail-nav {
    align-self: center;
}

.rail-link {
    position: relative;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    background: transparent;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.rail-link:hover,
.rail-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    transform: translateX(4px);
}

.rail-link.active::after {
    content: "";
    position: absolute;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #ffffff;
}

.rail-link svg {
    width: 21px;
    height: 21px;
}

.rail-footer form {
    margin: 0;
}

.rail-avatar {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 3px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    color: #0c1020;
    background: linear-gradient(145deg, #ffd2cc, #ffffff);
    font-weight: 900;
}

.rail-logout {
    color: #ffb4ab;
}

.analytics-workspace {
    min-width: 0;
    padding: 44px;
}

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

.analytics-header h1 {
    margin: 0;
    color: #0d1020;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1;
}

:root[data-theme="dark"] .analytics-header h1 {
    color: var(--ink);
}

.analytics-header .eyebrow {
    margin-bottom: 10px;
}

.analytics-header-tools {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 16px;
}

.account-pill,
.analytics-search {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 12px;
    border-radius: 999px;
    color: #0d1020;
    background: rgba(255, 255, 255, 0.78);
}

:root[data-theme="dark"] .account-pill,
:root[data-theme="dark"] .analytics-search {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
}

.account-pill {
    max-width: 320px;
    padding: 0 22px;
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-pill svg,
.analytics-search svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.analytics-search {
    padding: 0 18px;
}

.analytics-search input {
    width: 160px;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    outline: none;
}

.analytics-content {
    display: grid;
    gap: 28px;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.analytics-content.dashboard-content-swapping {
    opacity: 0.42;
    transform: translateY(6px);
    pointer-events: none;
}

.analytics-grid {
    display: grid;
    grid-template-columns: minmax(270px, 1fr) minmax(270px, 1fr) minmax(280px, 0.95fr);
    gap: 36px;
    align-items: start;
}

.analytics-card,
.mini-stat-card,
.activity-panel {
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 22px 58px rgba(15, 23, 42, 0.07);
    animation: dashboard-card-in 560ms ease both;
}

:root[data-theme="dark"] .analytics-card,
:root[data-theme="dark"] .mini-stat-card,
:root[data-theme="dark"] .activity-panel {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.22);
}

.analytics-card {
    padding: 28px;
}

.analytics-card:nth-child(2) {
    animation-delay: 80ms;
}

.analytics-side {
    display: grid;
    gap: 36px;
}

.analytics-side > *:nth-child(2) {
    animation-delay: 120ms;
}

.analytics-side > *:nth-child(3) {
    animation-delay: 180ms;
}

.card-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    font-weight: 800;
}

.card-menu svg {
    width: 22px;
    height: 22px;
}

.gradient-card {
    min-height: 312px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb705d 0%, #ef4fa1 100%);
}

.gradient-card > strong {
    display: block;
    margin-bottom: 24px;
    font-size: clamp(2.5rem, 5vw, 3.7rem);
    line-height: 1;
}

.wave-chart {
    display: block;
    width: 100%;
    height: 86px;
    margin-bottom: 24px;
}

.wave-chart path {
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    animation: draw-wave 1.8s ease forwards;
}

.wave-chart path:nth-child(1) {
    stroke: #ffffff;
}

.wave-chart path:nth-child(2) {
    stroke: #1463ff;
    animation-delay: 120ms;
}

.wave-chart path:nth-child(3) {
    stroke: #fdf4a6;
    animation-delay: 240ms;
}

.gradient-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.gradient-stats span {
    display: grid;
    gap: 6px;
    border-right: 2px dotted rgba(255, 255, 255, 0.54);
}

.gradient-stats span:last-child {
    border-right: 0;
}

.gradient-stats b {
    font-size: 1.4rem;
}

.donut-card {
    min-height: 312px;
}

.donut-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) 170px;
    gap: 18px;
    align-items: center;
}

.donut-layout strong {
    display: block;
    margin-bottom: 48px;
    color: #0d1020;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
}

:root[data-theme="dark"] .donut-layout strong {
    color: var(--ink);
}

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

.legend-list span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 800;
}

.legend-list i {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #fb705d;
}

.legend-list span:nth-child(2) i {
    background: #ffc633;
}

.donut-chart {
    position: relative;
    display: grid;
    width: 170px;
    height: 170px;
    place-items: center;
    border-radius: 999px;
    background:
        conic-gradient(#101526 0 24%, transparent 24% 32%, #fb705d 32% 59%, transparent 59% 66%, #ef4fa1 66% 86%, transparent 86% 91%, #ffc633 91% 100%);
    animation: spin-in 900ms cubic-bezier(.2, .8, .2, 1) both;
}

.donut-chart::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 999px;
    background: #edece9;
}

:root[data-theme="dark"] .donut-chart::before {
    background: #101826;
}

.donut-chart span {
    z-index: 1;
    width: 78px;
    height: 78px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f96b55, #ab382a);
    box-shadow: inset 0 8px 18px rgba(255, 255, 255, 0.25);
    transform: rotate(28deg);
}

.mini-stat-card {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    min-height: 112px;
    padding: 14px;
}

.mini-icon {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border-radius: 8px;
    color: #0d1020;
    background: #ffd0cc;
}

.mini-icon svg {
    width: 24px;
    height: 24px;
}

.mini-stat-card strong {
    display: block;
    color: #0d1020;
    font-size: 1.8rem;
}

:root[data-theme="dark"] .mini-stat-card strong {
    color: var(--ink);
}

.mini-stat-card span:not(.mini-icon) {
    color: var(--muted);
    font-weight: 700;
}

.progress-track {
    height: 13px;
    overflow: hidden;
    margin-top: 14px;
    border-radius: 999px;
    background: #ffffff;
}

:root[data-theme="dark"] .progress-track {
    background: rgba(255, 255, 255, 0.12);
}

.progress-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ef4fa1, #fb705d);
    animation: grow-width 900ms ease both;
}

.progress-track.dark i {
    background: #112334;
}

:root[data-theme="dark"] .progress-track.dark i {
    background: #d6e6f6;
}

.post-card {
    min-height: 402px;
}

.bar-chart {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 22px;
    align-items: end;
    height: 190px;
    padding: 20px 8px 6px;
}

.bar-chart span {
    display: block;
    width: 18px;
    min-height: 30px;
    justify-self: center;
    border-radius: 999px;
    background: #d0cdc6;
    animation: bar-rise 760ms ease both;
}

.bar-chart span:nth-child(2) {
    animation-delay: 80ms;
}

.bar-chart span:nth-child(3) {
    animation-delay: 160ms;
}

.bar-chart span:nth-child(4) {
    animation-delay: 240ms;
}

.bar-chart span:nth-child(5) {
    animation-delay: 320ms;
}

.bar-chart span:nth-child(6) {
    animation-delay: 400ms;
}

.bar-chart span:nth-child(7) {
    animation-delay: 480ms;
}

.bar-chart .hot {
    background: linear-gradient(180deg, #fb705d, #ef4fa1);
}

.completed-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-top: 20px;
    padding-top: 22px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

:root[data-theme="dark"] .completed-row {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.completed-row .mini-icon {
    width: 44px;
    height: 44px;
}

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

.completed-row span {
    color: var(--muted);
}

.completed-row b {
    font-size: 1.7rem;
}

.activity-panel {
    padding: 0 0 18px;
}

.activity-tabs {
    display: flex;
    gap: 26px;
    padding: 0 4px 22px;
}

.activity-tabs button {
    position: relative;
    border: 0;
    color: #9aa0a6;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.activity-tabs button.active {
    color: #0d1020;
}

:root[data-theme="dark"] .activity-tabs button.active {
    color: var(--ink);
}

.activity-tabs button.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -16px;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background: #0d1020;
}

:root[data-theme="dark"] .activity-tabs button.active::after {
    background: var(--ink);
}

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

.activity-list article {
    display: grid;
    grid-template-columns: 50px minmax(180px, 1fr) minmax(80px, 0.35fr) 64px 26px;
    gap: 16px;
    align-items: center;
    min-height: 64px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.64);
    animation: fade-rise 460ms ease both;
}

:root[data-theme="dark"] .activity-list article {
    background: rgba(255, 255, 255, 0.07);
}

.activity-list article:nth-child(2) {
    animation-delay: 70ms;
}

.activity-list article:nth-child(3) {
    animation-delay: 140ms;
}

.activity-list article:nth-child(4) {
    animation-delay: 210ms;
}

.activity-thumb {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
}

.activity-thumb svg {
    width: 18px;
    height: 18px;
}

.activity-thumb.coral {
    background: #fb705d;
}

.activity-thumb.yellow {
    background: #f4b83d;
}

.activity-thumb.blue {
    background: #4f7df4;
}

.activity-thumb.pink {
    background: #ef4fa1;
}

.activity-list strong,
.activity-list span {
    display: block;
}

.activity-list span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.88rem;
}

.activity-list b {
    font-size: 0.9rem;
}

.activity-list > article > svg {
    color: #0d1020;
}

:root[data-theme="dark"] .activity-list > article > svg {
    color: var(--ink);
}

.trend {
    justify-self: start;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.trend.up {
    color: #087443;
    background: #dff8e8;
}

.trend.down {
    color: #b42318;
    background: #fee4e2;
}

.analytics-admin {
    margin-top: 0;
    background: rgba(255, 255, 255, 0.62);
}

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

.section-control-grid .analytics-card {
    min-height: 280px;
}

.simple-section-card {
    display: grid;
    align-content: start;
    gap: 14px;
}

.simple-section-card h2 {
    margin: 0;
    font-size: 1.35rem;
}

.simple-section-card p {
    color: var(--muted);
    line-height: 1.6;
}

.simple-section-card .btn {
    justify-self: start;
    margin-top: auto;
}

.email-setup-grid.section-control-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    margin-top: 0;
}

.email-setup-grid .email-config-card {
    grid-column: 1 / -1;
}

@keyframes dashboard-card-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes draw-wave {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes spin-in {
    from {
        opacity: 0;
        transform: rotate(-36deg) scale(0.88);
    }

    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes grow-width {
    from {
        width: 0;
    }
}

@keyframes bar-rise {
    from {
        transform: scaleY(0.18);
        transform-origin: bottom;
    }

    to {
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

@media (max-width: 1180px) {
    .analytics-body {
        padding: 22px;
    }

    .analytics-shell {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .analytics-workspace {
        padding: 30px;
    }

    .analytics-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .analytics-header-tools {
        width: 100%;
        flex-wrap: wrap;
    }

    .analytics-grid,
    .section-control-grid,
    .email-setup-grid.section-control-grid {
        grid-template-columns: 1fr;
    }

    .email-setup-grid .email-config-card {
        grid-column: auto;
    }
}

@media (max-width: 720px) {
    .analytics-body {
        padding: 0;
        background: #edece9;
    }

    :root[data-theme="dark"] .analytics-body {
        background: #101826;
    }

    .analytics-shell {
        grid-template-columns: 1fr;
        min-height: 100vh;
        border-radius: 0;
    }

    .analytics-rail {
        position: sticky;
        top: 0;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: space-between;
        overflow-x: auto;
        padding: 12px 14px;
    }

    .rail-nav,
    .rail-footer {
        display: flex;
        gap: 10px;
    }

    .rail-logo,
    .rail-link,
    .rail-avatar {
        width: 42px;
        height: 42px;
        flex: 0 0 auto;
    }

    .rail-link.active::after {
        right: 4px;
    }

    .analytics-workspace {
        padding: 24px 16px 36px;
    }

    .analytics-header h1 {
        font-size: 2.6rem;
    }

    .analytics-header-tools,
    .analytics-header-tools .btn,
    .account-pill,
    .analytics-search {
        width: 100%;
    }

    .analytics-search input {
        width: 100%;
    }

    .analytics-grid,
    .analytics-side,
    .section-control-grid {
        gap: 16px;
    }

    .donut-layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .donut-layout strong {
        margin-bottom: 24px;
    }

    .mini-stat-card {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .activity-list article {
        grid-template-columns: 42px minmax(0, 1fr) auto;
    }

    .activity-list article b,
    .activity-list article .trend {
        display: none;
    }
}

/* Keep dashboard typography and Lucide controls visually stable at every viewport. */
.analytics-shell {
    font-size: 15px;
}

.analytics-header h1 {
    font-size: 2.75rem;
    line-height: 1.08;
    letter-spacing: 0;
}

.analytics-header .eyebrow,
.analytics-card .card-label,
.analytics-card .card-menu,
.analytics-card p,
.analytics-card small,
.mini-stat-card > div > span,
.activity-list article > div > span,
.activity-list article small,
.account-pill,
.analytics-search input {
    font-size: 0.82rem;
    line-height: 1.4;
    letter-spacing: 0;
}

.analytics-card h2,
.analytics-card h3,
.analytics-card strong,
.mini-stat-card strong,
.completed-row strong,
.activity-list article strong {
    letter-spacing: 0;
}

.analytics-shell svg.lucide {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    flex: 0 0 18px;
    stroke-width: 2;
}

.analytics-rail svg.lucide {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex-basis: 20px;
}

.analytics-header-tools .btn svg.lucide,
.analytics-card .btn svg.lucide {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    flex-basis: 16px;
}

.analytics-header-tools .btn {
    min-height: 44px;
}

.analytics-search input {
    min-width: 0;
    font-size: 0.86rem;
}

@media (max-width: 720px) {
    .analytics-header h1 {
        font-size: 2.25rem;
    }

    .analytics-shell svg.lucide,
    .analytics-rail svg.lucide {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
        flex-basis: 18px;
    }
}

body.modal-open {
    overflow: hidden;
}

:root[data-theme="dark"] body {
    color-scheme: dark;
}

::selection {
    color: #ffffff;
    background: var(--blue);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(20px, 5vw, 72px);
    border-bottom: 1px solid var(--line);
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    animation: slide-down 520ms ease both;
}

.brand,
.main-nav,
.auth-actions,
.topbar-actions,
.hero-actions {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    background: #0c1020;
    overflow: hidden;
    transition: transform 180ms ease, background 180ms ease;
}

.brand:hover .brand-mark {
    background: #11172c;
    transform: scale(1.04);
}

.main-nav {
    gap: clamp(12px, 3vw, 34px);
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--blue);
}

.main-nav a {
    position: relative;
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--blue);
    content: "";
    opacity: 0;
    transform: scaleX(0.35);
    transition: opacity 160ms ease, transform 160ms ease;
}

.main-nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.auth-actions {
    gap: 10px;
}

.topbar-actions {
    gap: 10px;
}

.inline-logout {
    margin: 0;
}

.icon-link {
    gap: 8px;
}

.icon-link svg,
.btn svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.icon-btn {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.icon-btn:hover {
    transform: translateY(-1px);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

.danger-icon {
    color: #d92d20;
    border-color: #fecdca;
    background: #fff5f4;
}

.danger-icon:hover {
    background: #fee4e2;
    box-shadow: 0 10px 24px rgba(217, 45, 32, 0.14);
}

:root[data-theme="dark"] .danger-icon {
    color: #ffb4ab;
    border-color: rgba(255, 180, 171, 0.35);
    background: rgba(217, 45, 32, 0.16);
}

:root[data-theme="dark"] .danger-icon:hover {
    background: rgba(217, 45, 32, 0.26);
}

.btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0 18px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #ffffff;
    background: var(--blue);
    box-shadow: 0 12px 28px rgba(21, 94, 239, 0.25);
}

.btn-primary:hover {
    background: var(--blue-dark);
}

.btn-danger {
    color: #ffffff;
    background: #d92d20;
}

.btn-danger:hover {
    background: #b42318;
}

.btn-secondary,
.btn-ghost {
    color: var(--ink);
    border-color: var(--line);
    background: var(--surface);
}

.btn-secondary:hover,
.btn-ghost:hover {
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}

.btn-large {
    min-height: 52px;
    padding: 0 24px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
    gap: clamp(32px, 6vw, 76px);
    align-items: center;
    min-height: calc(100vh - 75px);
    padding: 72px clamp(20px, 5vw, 72px) 46px;
    background: var(--hero-bg);
}

.hero-copy,
.section-heading,
.split-section > div:first-child,
.cta > div {
    animation: fade-rise 720ms ease both;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 720px;
    margin-bottom: 22px;
    font-size: clamp(3rem, 8vw, 5.9rem);
    line-height: 0.94;
    letter-spacing: 0;
}

.hero-text {
    max-width: 650px;
    color: var(--muted);
    font-size: 1.18rem;
    line-height: 1.75;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 14px;
    margin: 34px 0;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    max-width: 610px;
    margin: 0;
    gap: 12px;
}

.hero-stats div {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.hero-stats dt {
    font-size: 1.45rem;
    font-weight: 800;
}

.hero-stats dd {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-visual {
    overflow: hidden;
    border: 1px solid rgba(217, 226, 236, 0.95);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    animation: float-in 820ms ease both, soft-float 7s ease-in-out 1.1s infinite;
}

.preview-toolbar {
    display: flex;
    gap: 8px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
    background: var(--dashboard-bg);
}

.preview-toolbar span {
    width: 11px;
    height: 11px;
    border-radius: 999px;
}

.preview-toolbar span:nth-child(1) {
    background: var(--rose);
}

.preview-toolbar span:nth-child(2) {
    background: var(--amber);
}

.preview-toolbar span:nth-child(3) {
    background: var(--teal);
}

.workflow-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 22px;
}

/* Public homepage polish inspired by the supplied spacious SaaS composition. */
body:not(.dashboard-body):not(.visual-editor-body) .site-header {
    max-width: 1240px;
    margin: 18px auto 0;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 999px;
    box-shadow: 0 10px 34px rgba(16, 24, 40, 0.06);
}

body:not(.dashboard-body):not(.visual-editor-body) .hero {
    max-width: 1240px;
    min-height: calc(100vh - 96px);
    margin: 0 auto;
    padding: 74px 42px 64px;
    background:
        radial-gradient(circle at 84% 44%, rgba(111, 91, 255, 0.22), transparent 31%),
        radial-gradient(circle at 68% 76%, rgba(218, 191, 255, 0.2), transparent 24%),
        #fff;
}

body:not(.dashboard-body):not(.visual-editor-body) .hero h1 {
    max-width: 610px;
    font-size: clamp(3.5rem, 6.2vw, 5.7rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

body:not(.dashboard-body):not(.visual-editor-body) .hero-text { max-width: 560px; }
body:not(.dashboard-body):not(.visual-editor-body) .hero-visual {
    position: relative;
    border-radius: 22px;
    transform: rotate(1deg);
    box-shadow: 0 28px 80px rgba(71, 59, 160, 0.2);
}
body:not(.dashboard-body):not(.visual-editor-body) .hero-stats div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 8px;
    border: 0;
    background: transparent;
}
body:not(.dashboard-body):not(.visual-editor-body) .hero-stats dt { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #587cf5, #8a42d8); }
body:not(.dashboard-body):not(.visual-editor-body) .hero-stats dt svg { width: 17px; height: 17px; }
body:not(.dashboard-body):not(.visual-editor-body) .hero-stats dd { margin: 0; font-weight: 700; color: var(--ink); }

@media (max-width: 760px) {
    body:not(.dashboard-body):not(.visual-editor-body) .site-header { margin: 10px 12px 0; border-radius: 18px; }
    body:not(.dashboard-body):not(.visual-editor-body) .hero { min-height: auto; padding: 54px 22px 42px; }
    body:not(.dashboard-body):not(.visual-editor-body) .hero h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
    body:not(.dashboard-body):not(.visual-editor-body) .hero-visual { transform: none; }
    body:not(.dashboard-body):not(.visual-editor-body) .hero-stats { grid-template-columns: 1fr; gap: 0; }
}

/* Dedicated platform administration shell. */
.admin-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100vh - 88px); max-width: 1440px; margin: 0 auto; overflow: hidden; border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.admin-rail { display: flex; flex-direction: column; min-height: 0; padding: 24px 14px; color: #eef4ff; background: #0e1525; }
.admin-rail .rail-logo { margin: 0 auto 22px; }
.admin-rail-label { margin: 0 12px 8px; color: #8e9ab0; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-rail nav { display: grid; gap: 3px; overflow-y: auto; min-height: 0; }
.admin-nav-link, .admin-back { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 9px 11px; border-radius: 8px; color: #b8c4d8; text-decoration: none; font-size: .86rem; font-weight: 600; }
.admin-nav-link svg, .admin-back svg { width: 17px; height: 17px; flex: 0 0 auto; }
.admin-nav-link:hover, .admin-nav-link.active { color: #fff; background: rgba(255,255,255,.12); }
.admin-nav-link.active { box-shadow: inset 3px 0 #f05b71; }
.admin-back { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); border-radius: 0; padding-top: 20px; color: #f7a1ac; }
.admin-main { min-width: 0; padding: 42px clamp(22px, 4vw, 58px); overflow: auto; background: var(--dashboard-bg); }
.admin-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.admin-header h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1; }
.admin-badge { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid rgba(225, 63, 89, .28); border-radius: 999px; color: #c8324d; background: rgba(225, 63, 89, .08); font-size: .78rem; font-weight: 800; }
.admin-badge svg { width: 16px; }
.admin-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.admin-metrics article { display: grid; gap: 8px; min-height: 132px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.admin-metrics article > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #c8324d; background: rgba(225,63,89,.1); }
.admin-metrics svg { width: 17px; }
.admin-metrics small { color: var(--muted); font-weight: 700; }
.admin-metrics strong { font-size: 1.9rem; }
.admin-search { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.admin-search > svg { width: 18px; margin-right: -38px; z-index: 1; color: var(--muted); }
.admin-search input { min-width: 0; flex: 1; padding: 12px 14px 12px 42px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.admin-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }
.admin-table th, .admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: normal; }
.admin-table th { color: var(--muted); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.admin-table td small { display: block; margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: var(--soft); }
.inline-form { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }
.inline-form input { width: 130px; min-height: 36px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; }
.admin-empty { display: grid; place-items: center; gap: 10px; min-height: 250px; padding: 40px 20px; text-align: center; color: var(--muted); }
.admin-empty svg { width: 30px; height: 30px; color: #c8324d; }
.admin-empty h2, .admin-empty p { max-width: 560px; margin: 0; }
@media (max-width: 900px) { .admin-shell { grid-template-columns: 80px minmax(0,1fr); } .admin-rail { padding: 18px 10px; } .admin-nav-link span, .admin-rail-label, .admin-back { font-size: 0; justify-content: center; } .admin-nav-link { padding: 10px; } .admin-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .analytics-body { padding: 0; } .admin-shell { display: block; min-height: 100vh; border-radius: 0; } .admin-rail { min-height: auto; } .admin-rail nav { grid-template-columns: repeat(4, 1fr); } .admin-main { padding: 28px 16px; } .admin-header { align-items: center; } .admin-header h1 { font-size: 2.2rem; } .admin-badge { font-size: 0; padding: 9px; } .admin-metrics { grid-template-columns: 1fr 1fr; } .admin-search { flex-wrap: wrap; } .admin-search input { flex-basis: 100%; } }

.workflow-avatar {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    background: #101828;
    font-weight: 800;
}

.panel-label {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.workflow-panel h2 {
    margin-bottom: 0;
    font-size: 1.25rem;
}

.status-pill,
.popular {
    border-radius: 999px;
    color: #067647;
    background: #dcfae6;
    font-size: 0.78rem;
    font-weight: 800;
}

.status-pill {
    padding: 8px 11px;
}

.task-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 22px 22px;
}

.task-grid article {
    min-height: 160px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.task-grid article:hover {
    border-color: rgba(21, 94, 239, 0.34);
    background: var(--surface);
    transform: translateY(-4px);
}

.task-icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    background: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
}

.task-icon svg {
    width: 17px;
    height: 17px;
}

.task-grid h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.task-grid p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.image-slot {
    display: grid;
    min-height: 230px;
    place-items: center;
    margin: 0 22px 22px;
    padding: 24px;
    border: 1px dashed #98a2b3;
    border-radius: 8px;
    color: #ffffff;
    text-align: center;
    background:
        linear-gradient(rgba(16, 24, 40, 0.3), rgba(16, 24, 40, 0.3)),
        url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1100&q=80") center/cover;
    transition: transform 220ms ease, filter 220ms ease;
}

.image-slot:hover {
    filter: saturate(1.08);
    transform: scale(1.012);
}

.image-slot span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.image-slot strong {
    max-width: 320px;
    font-size: 1.35rem;
}

.logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    padding: 24px clamp(20px, 5vw, 72px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    background: var(--surface);
    font-weight: 700;
}

.logos span {
    padding: 8px 14px;
}

.section,
.split-section,
.cta {
    padding: 82px clamp(20px, 5vw, 72px);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.section-heading h2,
.split-section h2,
.cta h2 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.feature-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card,
.price-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.feature-card:hover,
.price-card:hover {
    border-color: rgba(21, 94, 239, 0.25);
    box-shadow: 0 18px 45px rgba(16, 24, 40, 0.1);
    transform: translateY(-6px);
}

.feature-card {
    overflow: hidden;
}

.feature-card h3,
.feature-card p {
    padding: 0 22px;
}

.feature-card h3 {
    margin: 22px 0 10px;
}

.feature-card p {
    margin-bottom: 24px;
    color: var(--muted);
    line-height: 1.65;
}

.feature-image {
    min-height: 225px;
    background-size: cover;
    background-position: center;
    transition: transform 360ms ease;
}

.feature-card:hover .feature-image {
    transform: scale(1.035);
}

.support-image {
    background-image: url("https://images.unsplash.com/photo-1560264280-88b68371db39?auto=format&fit=crop&w=900&q=80");
}

.workflow-image {
    background-image: url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=900&q=80");
}

.insight-image {
    background-image: url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=900&q=80");
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1fr);
    gap: 48px;
    align-items: start;
    background: var(--soft);
}

.split-section p {
    max-width: 650px;
    color: var(--muted);
    line-height: 1.75;
}

.solution-list {
    display: grid;
    gap: 14px;
}

.solution-list div {
    display: grid;
    gap: 6px;
    padding: 22px;
    border-left: 4px solid var(--blue);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 35px rgba(16, 24, 40, 0.06);
    transition: transform 180ms ease, border-color 180ms ease;
}

.solution-list div:hover {
    border-left-color: var(--teal);
    transform: translateX(5px);
}

.solution-list span,
.price-card p,
.price-card li,
.cta p {
    color: var(--muted);
}

.pricing-section {
    background: var(--surface);
}

.price-card {
    display: flex;
    min-height: 420px;
    flex-direction: column;
    padding: 26px;
}

.featured-price {
    border-color: rgba(21, 94, 239, 0.45);
    box-shadow: var(--shadow);
}

.popular {
    align-self: flex-start;
    margin: -6px 0 18px;
    padding: 7px 10px;
}

.price-card h3 {
    margin-bottom: 10px;
    font-size: 1.45rem;
}

.price {
    display: block;
    margin: 14px 0 20px;
    font-size: 2.5rem;
}

.price span {
    color: var(--muted);
    font-size: 1rem;
}

.price-card ul {
    display: grid;
    gap: 12px;
    margin: 0 0 28px;
    padding-left: 20px;
}

.price-card .btn {
    margin-top: auto;
}

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #ffffff;
    background: #101828;
}

.cta p,
.cta .eyebrow {
    color: #d0d5dd;
}

.cta h2 {
    max-width: 720px;
}

.auth-body {
    min-height: 100vh;
    background: var(--auth-bg);
}

.auth-header {
    position: relative;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(300px, 1fr);
    gap: clamp(28px, 6vw, 72px);
    align-items: center;
    min-height: calc(100vh - 76px);
    padding: 54px clamp(20px, 5vw, 72px);
}

.auth-minimal .auth-shell {
    grid-template-columns: minmax(280px, 460px);
    justify-content: center;
    align-items: center;
}

.signup-shell {
    align-items: start;
}

.auth-minimal .signup-shell {
    align-items: center;
}

.auth-card {
    padding: clamp(28px, 5vw, 44px);
    border: 1px solid rgba(217, 226, 236, 0.95);
    border-radius: 8px;
    background: var(--header-bg);
    box-shadow: var(--shadow);
    animation: fade-rise 620ms ease both;
}

.auth-card h1 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
    text-align: center;
}

.auth-card .eyebrow,
.auth-intro {
    text-align: center;
}

.auth-intro {
    color: var(--muted);
    line-height: 1.65;
}

.auth-form {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.name-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.name-grid div {
    display: grid;
    gap: 12px;
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.flash-message {
    margin: 0;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
}

.flash-message.success {
    color: #067647;
    border-color: #abefc6;
    background: #ecfdf3;
}

.flash-message.error {
    color: #b42318;
    border-color: #fecdca;
    background: #fef3f2;
}

.auth-form label,
.field-row {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 800;
}

.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.field-row a,
.auth-switch a {
    color: var(--blue);
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form select {
    width: 100%;
    min-height: 52px;
    margin-bottom: 8px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--surface);
    font: inherit;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-form select {
    appearance: none;
    background:
        linear-gradient(45deg, transparent 50%, #667085 50%) right 18px center / 7px 7px no-repeat,
        linear-gradient(135deg, #667085 50%, transparent 50%) right 13px center / 7px 7px no-repeat,
        var(--surface);
}

.auth-form select option {
    color: var(--ink);
    background: var(--surface);
}

:root[data-theme="dark"] .auth-form select option {
    color: #eef4ff;
    background: #101a2b;
}

.auth-form input:focus,
.auth-form select:focus {
    border-color: rgba(21, 94, 239, 0.7);
    box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.1);
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 10px;
    font-weight: 600;
}

.check-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
}

.form-button {
    width: 100%;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.auth-switch {
    margin: 22px 0 0;
    color: var(--muted);
    text-align: center;
}

.auth-aside {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: 8px;
    background: #101828;
    box-shadow: var(--shadow);
    animation: float-in 760ms ease 120ms both;
}

.auth-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.78;
    transform: scale(1.02);
    animation: slow-zoom 14s ease-in-out infinite alternate;
}

.login-image {
    background-image:
        linear-gradient(rgba(16, 24, 40, 0.16), rgba(16, 24, 40, 0.42)),
        url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1100&q=80");
}

.signup-image {
    background-image:
        linear-gradient(rgba(16, 24, 40, 0.08), rgba(16, 24, 40, 0.48)),
        url("https://images.unsplash.com/photo-1559136555-9303baea8ebd?auto=format&fit=crop&w=1100&q=80");
}

.auth-note {
    position: absolute;
    right: 24px;
    bottom: 24px;
    left: 24px;
    display: grid;
    gap: 8px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(16, 24, 40, 0.58);
    backdrop-filter: blur(16px);
}

.auth-note strong {
    font-size: 1.2rem;
}

.auth-note span {
    color: #d0d5dd;
    line-height: 1.55;
}

.dashboard-body {
    min-height: 100vh;
    background: var(--dashboard-bg);
}

.dashboard-header form {
    margin: 0;
}

.dashboard-header button {
    cursor: pointer;
    font: inherit;
}

.dashboard-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 38px 0 72px;
}

.dashboard-flashes {
    margin: 0 0 20px;
}

.dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(28px, 5vw, 46px);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #ffffff;
    background:
        linear-gradient(120deg, rgba(16, 24, 40, 0.92), rgba(21, 94, 239, 0.72)),
        url("https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&w=1400&q=80") center/cover;
    box-shadow: var(--shadow);
    animation: fade-rise 620ms ease both;
}

.dashboard-hero .eyebrow,
.dashboard-hero p {
    color: #d0d5dd;
}

.dashboard-hero h1 {
    max-width: 680px;
    margin-bottom: 14px;
    font-size: clamp(2.4rem, 7vw, 4.8rem);
}

.dashboard-hero p {
    max-width: 620px;
    margin-bottom: 0;
    line-height: 1.65;
}

.profile-summary {
    display: flex;
    min-width: 280px;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(16, 24, 40, 0.52);
    backdrop-filter: blur(14px);
}

.profile-avatar {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 8px;
    color: var(--ink);
    background: var(--surface);
    font-weight: 800;
}

.profile-summary div {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.profile-summary span:last-child {
    overflow: hidden;
    color: #d0d5dd;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.dashboard-card,
.admin-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 14px 38px rgba(16, 24, 40, 0.07);
}

.dashboard-card {
    padding: 24px;
}

.metric-card {
    min-height: 190px;
}

.card-label {
    display: block;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    margin-bottom: 12px;
    font-size: 2rem;
}

.metric-card p,
.checklist span,
.account-card dd,
.recent-users span {
    color: var(--muted);
    line-height: 1.55;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
    align-items: start;
}

.dashboard-main-column {
    display: grid;
    gap: 18px;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.dashboard-main-column.dashboard-content-swapping {
    opacity: 0.45;
    transform: translateY(4px);
    pointer-events: none;
}

.card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.card-heading h2 {
    margin-bottom: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.checklist {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    display: grid;
    gap: 5px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.account-card dl {
    display: grid;
    gap: 18px;
    margin: 0;
}

.account-card div {
    display: grid;
    gap: 4px;
}

.account-card dt {
    color: var(--ink);
    font-weight: 800;
}

.account-card dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.admin-panel {
    margin-top: 18px;
    padding: 26px;
    border-color: rgba(21, 94, 239, 0.28);
}

.admin-badge {
    padding: 8px 11px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-stats article {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 8px;
    background: #f0f6ff;
}

.admin-stats span {
    color: var(--muted);
    font-weight: 700;
}

.admin-stats strong {
    font-size: 2rem;
}

.recent-users {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.recent-users h3 {
    margin-bottom: 6px;
}

.recent-users div {
    display: grid;
    grid-template-columns: minmax(140px, 0.8fr) minmax(180px, 1.2fr) minmax(80px, 0.4fr);
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.recent-users div span:first-child {
    color: var(--ink);
    font-weight: 800;
}

.dashboard-sections-shell {
    position: sticky;
    top: 94px;
}

.compact-heading {
    margin-bottom: 14px;
}

.compact-heading h2 {
    font-size: 1.45rem;
}

.section-link-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.section-link-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 0;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 14px 38px rgba(16, 24, 40, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.section-link-card:hover {
    border-color: rgba(21, 94, 239, 0.32);
    box-shadow: 0 14px 36px rgba(16, 24, 40, 0.09);
    transform: translateX(4px);
}

.section-link-card.active {
    border-color: rgba(21, 94, 239, 0.42);
    background: #eff6ff;
}

:root[data-theme="dark"] .section-link-card.active {
    border-color: rgba(114, 162, 255, 0.56);
    background: #132a4c;
}

:root[data-theme="dark"] .section-link-card.active strong,
:root[data-theme="dark"] .section-link-card.active small,
:root[data-theme="dark"] .section-link-card.active > svg {
    color: #eef4ff;
}

.section-link-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
}

.section-link-card small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.section-link-card > svg {
    width: 18px;
    height: 18px;
    color: var(--muted);
}

.section-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 8px;
    color: var(--blue);
    background: #eff6ff;
}

:root[data-theme="dark"] .section-icon {
    color: #9cc2ff;
    background: #132a4c;
}

.section-icon svg {
    width: 22px;
    height: 22px;
}

.section-icon.large {
    width: 62px;
    height: 62px;
    margin-bottom: 22px;
    color: #ffffff;
    background: var(--blue);
}

.section-icon.large svg {
    width: 30px;
    height: 30px;
}

.section-page-hero {
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    animation: fade-rise 620ms ease both;
}

:root[data-theme="dark"] .section-page-hero {
    color: var(--ink);
    background: var(--surface-strong);
}

.section-page-hero h1 {
    margin-bottom: 12px;
    font-size: clamp(2.5rem, 7vw, 4.9rem);
}

.section-page-hero p:last-child {
    max-width: 690px;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.7;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--blue);
    font-weight: 800;
}

.back-link svg {
    width: 18px;
    height: 18px;
}

.section-page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.section-page-grid .dashboard-card {
    display: flex;
    min-height: 260px;
    flex-direction: column;
}

.section-page-grid h2 {
    margin-bottom: 12px;
    font-size: 1.45rem;
}

.section-page-grid p {
    color: var(--muted);
    line-height: 1.65;
}

.section-page-grid .btn {
    margin-top: auto;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.settings-card h2 {
    margin-bottom: 18px;
    font-size: 1.55rem;
}

.settings-form {
    display: grid;
    gap: 12px;
}

.settings-form label {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 800;
}

.settings-form input,
.settings-form textarea {
    width: 100%;
    margin-bottom: 6px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--surface);
    font: inherit;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.settings-form input {
    min-height: 50px;
}

.settings-form textarea {
    min-height: 110px;
    padding-top: 14px;
    resize: vertical;
}

.settings-form input:focus,
.settings-form textarea:focus {
    border-color: rgba(21, 94, 239, 0.7);
    box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.1);
}

.settings-form .btn {
    margin-top: 8px;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.settings-form .btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.email-setup-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: 18px;
    margin-top: 18px;
}

.email-config-card {
    grid-column: 1 / -1;
}

.connected-account {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid rgba(14, 147, 132, 0.24);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 86%, var(--teal));
}

.connected-account svg,
.permission-list svg {
    width: 20px;
    height: 20px;
    color: var(--teal);
}

.connected-account strong,
.connected-account span {
    display: block;
}

.connected-account span {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.45;
}

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

.permission-list div {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: var(--soft);
    line-height: 1.45;
}

.email-config-card dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.email-config-card div {
    display: grid;
    gap: 4px;
}

.email-config-card dt {
    color: var(--ink);
    font-weight: 900;
}

.email-config-card dd {
    margin: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.empty-state {
    display: grid;
    min-height: 220px;
    place-items: center;
    gap: 8px;
    padding: 28px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
    background: var(--soft);
}

.empty-state svg {
    width: 34px;
    height: 34px;
    color: var(--blue);
}

.empty-state strong {
    color: var(--ink);
    font-size: 1.1rem;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(9, 17, 31, 0.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: translateY(16px) scale(0.98);
    transition: transform 180ms ease;
}

.modal-backdrop.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-heading,
.modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

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

.modal-heading h2 {
    margin-bottom: 0;
    font-size: 1.7rem;
}

.modal-heading .icon-btn {
    color: var(--muted);
    border-color: var(--line);
    background: var(--soft);
}

.modal-actions {
    margin-top: 8px;
}

.modal-actions .btn {
    min-width: 120px;
}

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

@keyframes fade-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes soft-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes slow-zoom {
    from {
        transform: scale(1.02);
    }

    to {
        transform: scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 980px) {
    .site-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .hero,
    .split-section {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .feature-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        min-height: 380px;
    }

    .dashboard-hero,
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-grid,
    .section-page-grid,
    .settings-grid,
    .email-setup-grid,
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-sections-shell {
        position: static;
    }
}

@media (max-width: 640px) {
    .site-header,
    .auth-actions,
    .hero-actions,
    .cta {
        align-items: stretch;
    }

    .site-header,
    .cta {
        flex-direction: column;
    }

    .brand {
        justify-content: center;
    }

    .main-nav {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 4px;
    }

    .auth-actions,
    .topbar-actions,
    .hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .auth-actions .inline-logout,
    .topbar-actions .inline-logout,
    .auth-actions .btn,
    .topbar-actions .btn,
    .dashboard-header .inline-logout {
        width: 100%;
    }

    .auth-actions .icon-btn,
    .topbar-actions .icon-btn,
    .dashboard-header .icon-btn {
        width: 100%;
    }

    .modal-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .hero-stats,
    .task-grid {
        grid-template-columns: 1fr;
    }

    .workflow-panel {
        grid-template-columns: auto 1fr;
    }

    .status-pill {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .auth-card {
        padding: 24px;
    }

    .auth-aside {
        min-height: 320px;
    }

    .field-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .name-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-shell {
        width: min(100% - 28px, 1180px);
        padding-top: 24px;
    }

    .profile-summary {
        min-width: 0;
        width: 100%;
    }

    .dashboard-sections-shell {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .dashboard-sections-shell .compact-heading {
        display: none;
    }

    .section-link-grid {
        grid-template-columns: repeat(4, minmax(190px, 1fr));
        min-width: 780px;
    }

    .section-link-card:hover {
        transform: translateY(-2px);
    }

    .card-heading,
    .recent-users div {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .card-heading {
        flex-direction: column;
    }
}

/* Conversion-focused public homepage */
.sales-home { color: #111827; background: #fff; }
.sales-home .site-header { max-width: 1180px; margin: 16px auto 0; padding: 12px 18px; border-radius: 16px; }
.sales-home .site-header .brand-mark { width: 34px; height: 34px; }
.sales-home .main-nav { font-size: .9rem; }
.sales-home .btn { border-radius: 10px; }
.sales-home main { overflow: hidden; }

.sales-hero { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr); gap: clamp(44px, 7vw, 92px); align-items: center; max-width: 1180px; min-height: 690px; margin: 0 auto; padding: 82px 24px 76px; }
.sales-hero::before { position: absolute; z-index: -1; top: -80px; right: -280px; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, rgba(97, 75, 255, .14), rgba(97, 75, 255, 0) 67%); content: ""; }
.sales-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; padding: 7px 11px; border: 1px solid #dfe3ff; border-radius: 999px; color: #5143cc; background: #f7f6ff; font-size: .78rem; font-weight: 800; }
.sales-kicker span { width: 7px; height: 7px; border-radius: 50%; background: #3ac27b; box-shadow: 0 0 0 4px rgba(58, 194, 123, .14); }
.sales-hero h1 { max-width: 620px; margin-bottom: 24px; font-size: clamp(3.5rem, 6.6vw, 5.7rem); line-height: .96; letter-spacing: -.055em; }
.sales-hero-text { max-width: 590px; margin-bottom: 0; color: #60697a; font-size: 1.15rem; line-height: 1.7; }
.sales-hero .hero-actions { margin: 30px 0 20px; }
.sales-hero .btn-primary { min-width: 154px; background: #5846df; box-shadow: 0 16px 35px rgba(88, 70, 223, .25); }
.sales-hero .btn-primary:hover { background: #4535c2; }
.sales-text-link { display: inline-flex; align-items: center; gap: 8px; padding: 12px 8px; color: #303746; font-weight: 750; }
.sales-text-link svg { width: 20px; color: #6655e6; }
.sales-reassurance { display: flex; flex-wrap: wrap; gap: 16px; color: #687184; font-size: .78rem; font-weight: 700; }
.sales-reassurance span { display: inline-flex; align-items: center; gap: 5px; }
.sales-reassurance svg { width: 15px; height: 15px; padding: 2px; border-radius: 50%; color: #fff; background: #28a96b; }

.sales-product { position: relative; overflow: hidden; border: 1px solid #dfe2ed; border-radius: 22px; background: #fff; box-shadow: 0 34px 90px rgba(49, 39, 118, .18); transform: rotate(1deg); animation: float-in 820ms ease both; }
.sales-product::after { position: absolute; right: -40px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(116, 93, 246, .07); content: ""; }
.sales-product-bar, .sales-product-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sales-product-bar { padding: 16px 18px; border-bottom: 1px solid #e8eaf0; background: #fbfbfe; }
.sales-product-bar > div { display: flex; align-items: center; gap: 10px; }
.product-logo { display: grid; width: 31px; height: 31px; overflow: hidden; place-items: center; border-radius: 8px; background: #121729; }
.product-logo img { width: 100%; height: 100%; object-fit: cover; }
.sales-product-bar strong { font-size: .86rem; }
.sales-live { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 999px; color: #177848; background: #eaf8f1; font-size: .7rem; font-weight: 800; }
.sales-live i { width: 7px; height: 7px; border-radius: 50%; background: #2eb875; }
.sales-conversation { display: grid; gap: 14px; padding: 26px 24px; background: linear-gradient(160deg, #fff, #fafaff); }
.sales-message { max-width: 83%; padding: 13px 15px; border-radius: 14px; }
.sales-message small { display: block; margin-bottom: 6px; color: #7b8495; font-size: .68rem; font-weight: 700; }
.sales-message p { margin: 0; font-size: .84rem; line-height: 1.55; }
.customer-message { justify-self: end; border-bottom-right-radius: 4px; color: #fff; background: #5a48dc; }
.customer-message small { color: #ddd8ff; }
.ai-message { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; justify-self: start; border: 1px solid #e4e5ed; border-bottom-left-radius: 4px; background: #fff; box-shadow: 0 8px 22px rgba(31, 36, 55, .05); }
.mini-ai { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: #fff; background: #151a2b; font-size: .72rem; font-weight: 800; }
.compact-message { padding: 10px 14px; }
.booking-confirmation { position: relative; z-index: 1; display: grid; grid-template-columns: 40px 1fr 22px; gap: 12px; align-items: center; margin-top: 2px; padding: 15px; border: 1px solid #cfeada; border-radius: 14px; background: #f2fbf6; }
.booking-confirmation > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; color: #fff; background: #25a867; }
.booking-confirmation svg { width: 19px; }
.booking-confirmation > svg { color: #25a867; }
.booking-confirmation small, .booking-confirmation strong, .booking-confirmation p { display: block; }
.booking-confirmation small { margin-bottom: 3px; color: #56806a; font-size: .66rem; font-weight: 800; text-transform: uppercase; }
.booking-confirmation strong { font-size: .9rem; }
.booking-confirmation p { margin: 3px 0 0; color: #6a8173; font-size: .68rem; }
.sales-product-footer { padding: 12px 18px; border-top: 1px solid #e8eaf0; color: #747d8d; background: #fbfbfe; font-size: .67rem; font-weight: 700; }
.sales-product-footer span { display: inline-flex; align-items: center; gap: 6px; }
.sales-product-footer svg { width: 14px; height: 14px; color: #5846df; }

.sales-audience { display: grid; gap: 20px; max-width: 1180px; margin: 0 auto; padding: 24px 24px 42px; text-align: center; }
.sales-audience p { margin: 0; color: #8a91a0; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sales-audience div { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 4vw, 54px); color: #555e6d; }
.sales-audience span { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 750; }
.sales-audience svg { width: 18px; height: 18px; color: #7c70d9; }

.sales-section { padding: 96px max(24px, calc((100vw - 1132px) / 2)); }
.sales-section-heading { max-width: 760px; margin-bottom: 44px; }
.sales-section-heading h2, .how-copy h2, .faq-section h2, .sales-final-cta h2 { margin-bottom: 18px; font-size: clamp(2.35rem, 4.5vw, 4rem); line-height: 1.05; letter-spacing: -.04em; }
.sales-section-heading > p:last-child, .how-copy > p, .faq-section > div:first-child > p:last-child { color: #687184; line-height: 1.75; }
.centered-heading { margin-right: auto; margin-left: auto; text-align: center; }
.centered-heading > p:last-child { max-width: 590px; margin-right: auto; margin-left: auto; }
.sales-home .eyebrow { color: #6655d8; letter-spacing: .07em; }
.problem-section { border-top: 1px solid #eceef3; background: #fafbfc; }
.outcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.outcome-grid article { padding: 28px; border: 1px solid #e5e7ed; border-radius: 16px; background: #fff; box-shadow: 0 10px 34px rgba(31, 36, 55, .04); }
.outcome-grid article > span { display: grid; width: 45px; height: 45px; margin-bottom: 24px; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #6856e7, #4434bd); }
.outcome-grid svg { width: 21px; }
.outcome-grid h3 { margin-bottom: 10px; font-size: 1.1rem; }
.outcome-grid p { margin: 0; color: #687184; font-size: .9rem; line-height: 1.65; }

.how-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(48px, 8vw, 100px); align-items: center; color: #fff; background: #111628; }
.how-copy { max-width: 480px; }
.how-copy > p { color: #b8c0d0; }
.how-copy .btn { margin-top: 14px; color: #17142b; background: #fff; box-shadow: none; }
.how-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.how-steps li { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid rgba(255, 255, 255, .11); }
.how-steps li:last-child { border-bottom: 0; }
.how-steps li > span { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(174, 160, 255, .45); border-radius: 50%; color: #c9c1ff; background: rgba(105, 84, 226, .15); font-size: .75rem; font-weight: 800; }
.how-steps h3 { margin: 2px 0 7px; font-size: 1.05rem; }
.how-steps p { margin: 0; color: #aeb6c7; font-size: .87rem; line-height: 1.65; }

.control-section { background: #fff; }
.control-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.control-feature { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 26px; border: 1px solid #e6e8ee; border-radius: 16px; }
.control-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; color: #5b49da; background: #f0eeff; }
.control-icon svg { width: 22px; }
.control-feature h3 { margin-bottom: 8px; font-size: 1.03rem; }
.control-feature p { margin: 0; color: #687184; font-size: .88rem; line-height: 1.65; }
.sales-home .pricing-section { background: #f7f7fb; }
.pricing-heading { display: grid; grid-template-columns: 1.4fr .6fr; gap: 50px; align-items: end; max-width: none; }
.pricing-heading h2 { margin-bottom: 0; }
.pricing-heading > p { margin: 0 0 6px; }
.sales-home .price-card { min-height: 410px; padding: 30px; border-radius: 16px; }
.sales-home .featured-price { position: relative; border: 2px solid #5c49df; box-shadow: 0 22px 55px rgba(65, 50, 163, .13); }
.sales-home .price-card li::marker { color: #38a874; }

/* Standalone pricing page */
.pricing-page{min-height:100vh;background:linear-gradient(135deg,#f4f7ff 0%,#fbfcff 48%,#eef7f5 100%);color:#172033}
.pricing-nav{position:sticky;top:0;z-index:20;max-width:none;margin:auto;padding:20px max(32px,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;background:rgba(248,250,255,.9);backdrop-filter:blur(16px);border-bottom:1px solid rgba(216,224,238,.75)}.pricing-nav>a:last-child{color:#66738b;text-decoration:none;font-size:14px}.pricing-nav>a:last-child strong{color:#1768ef}.pricing-nav .brand{display:flex;align-items:center;gap:10px;color:#172033;text-decoration:none;font-weight:800;font-size:19px}.pricing-nav .brand-mark{width:34px;height:34px;border-radius:10px;background:#1768ef;display:grid;place-items:center;overflow:hidden}.pricing-nav .brand-mark img{width:24px;height:24px;object-fit:contain}
.pricing-main{max-width:1180px;margin:0 auto;padding:38px 32px 70px}.pricing-hero{text-align:center;max-width:730px;margin:0 auto 42px}.pricing-kicker{display:inline-flex;padding:8px 14px;border-radius:999px;background:#e0f5ef;color:#078a78;text-transform:uppercase;letter-spacing:.12em;font-size:11px;font-weight:800}.pricing-hero h1{font-size:clamp(42px,6vw,72px);line-height:1.03;letter-spacing:-.055em;margin:19px 0 16px}.pricing-hero h1 em{font-style:normal;color:#1768ef}.pricing-hero>p{color:#66738b;font-size:18px;margin:0 auto 27px}.pricing-email{max-width:470px;margin:0 auto;text-align:left}.pricing-email label{display:block;font-size:13px;font-weight:700;margin-bottom:8px}.pricing-email>div{height:54px;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #d8e0ee;border-radius:14px;padding:0 15px;box-shadow:0 9px 24px rgba(30,55,100,.06)}.pricing-email i{width:18px;color:#8190a7}.pricing-email input{border:0;outline:0;flex:1;font-size:15px;color:#172033;background:transparent}.pricing-email span{font-size:11px;color:#8996a9}
.pricing-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;align-items:stretch}.pricing-card{background:#fff;border:1px solid #dbe3ef;border-radius:22px;padding:29px 27px 24px;box-shadow:0 16px 35px rgba(30,55,100,.08);display:flex;flex-direction:column;min-height:420px;position:relative}.pricing-card-featured{border:2px solid #1768ef;box-shadow:0 20px 45px rgba(23,104,239,.2);transform:translateY(-10px)}.pricing-popular{position:absolute;top:-14px;left:24px;background:#1768ef;color:#fff;padding:7px 12px;border-radius:999px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.pricing-card h2{font-size:24px;margin:0 0 7px}.pricing-card-top p{color:#748198;margin:0;min-height:42px}.pricing-price{font-size:43px;letter-spacing:-.05em;font-weight:800;margin:25px 0 5px}.pricing-price small{font-size:15px;letter-spacing:0;color:#748198;margin-left:4px}.pricing-trial{color:#1768ef;font-size:14px;line-height:1.45;margin:0 0 12px}.pricing-card ul{list-style:none;padding:0;margin:16px 0 25px;display:grid;gap:12px;color:#4f5e76;font-size:14px}.pricing-card li{display:flex;gap:9px;align-items:flex-start}.pricing-card li i{width:16px;color:#19a37d;flex:none}.pricing-card .btn{width:100%;justify-content:center;border-radius:12px;margin-top:auto}.pricing-card .btn i{width:16px;margin-left:5px}.pricing-secure{color:#94a0b2;text-align:center;margin-top:14px;font-size:11px;display:flex;align-items:center;justify-content:center;gap:5px}.pricing-secure i{width:13px}.pricing-note{text-align:center;color:#758198;font-size:13px;margin:28px auto 0;display:flex;justify-content:center;align-items:center;gap:7px}.pricing-note i{width:16px;color:#19a37d}
@media(max-width:760px){.pricing-nav{padding:20px 18px}.pricing-nav>a:last-child{font-size:12px}.pricing-main{padding:30px 18px 50px}.pricing-hero h1{font-size:44px}.pricing-hero>p{font-size:16px}.pricing-cards{grid-template-columns:1fr;max-width:430px;margin:auto}.pricing-card-featured{transform:none;order:-1}.pricing-card{min-height:0}.pricing-note{font-size:12px;align-items:flex-start}}

.billing-complete-page{min-height:100vh;background:radial-gradient(circle at 15% 10%,#e8f0ff 0,#f7faff 44%,#eef8f5 100%);color:#172033}.billing-complete-shell{min-height:100vh;display:grid;place-items:center;padding:40px 20px}.billing-complete-card{width:min(100%,560px);background:rgba(255,255,255,.94);border:1px solid #d8e2f0;border-radius:24px;padding:48px 54px;box-shadow:0 25px 70px rgba(35,67,120,.14);text-align:center}.billing-complete-mark{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;margin:0 auto 18px;background:#dff7ec;color:#07986e;font-size:25px;font-weight:800}.billing-complete-card h1{font-size:clamp(38px,6vw,58px);line-height:1.03;letter-spacing:-.055em;margin:18px 0}.billing-complete-card h1 em{font-style:normal;color:#1768ef}.billing-complete-intro{color:#6b7890;font-size:16px;line-height:1.6;margin:0 auto 28px;max-width:460px}.billing-email{display:block;color:#172033;overflow-wrap:anywhere;font-size:15px;margin-top:4px}.billing-complete-form{text-align:left;display:grid;gap:17px}.billing-complete-form label{display:grid;gap:7px}.billing-complete-form label>span{font-size:13px;font-weight:750}.billing-complete-form input{width:100%;box-sizing:border-box;border:1px solid #d5deed;background:#fff;border-radius:11px;padding:13px 14px;font:inherit;color:#172033;outline:none;transition:border .2s,box-shadow .2s}.billing-complete-form input:focus{border-color:#1768ef;box-shadow:0 0 0 4px rgba(23,104,239,.11)}.billing-complete-form small{color:#8793a7;font-size:12px}.billing-complete-form button{width:100%;justify-content:center;margin-top:5px;padding:14px 18px}.billing-complete-form button span{font-size:18px;margin-left:5px}@media(max-width:600px){.billing-complete-card{padding:34px 22px;border-radius:18px}.billing-complete-card h1{font-size:42px}.billing-complete-intro{font-size:15px}}
.billing-dashboard-card{padding:30px!important}.billing-dashboard-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.billing-dashboard-head h2{font-size:32px;margin:8px 0 6px}.billing-dashboard-head p{color:#738198;margin:0}.billing-status-pill{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border-radius:999px;background:#edf2fb;color:#65738a;font-size:12px;font-weight:800;white-space:nowrap}.billing-status-pill i{width:7px;height:7px;border-radius:50%;background:#94a2b7}.billing-status-pill.trialing{background:#e3f8ef;color:#087b5c}.billing-status-pill.trialing i{background:#11a779}.billing-status-pill.active{background:#e8f0ff;color:#1768ef}.billing-status-pill.active i{background:#1768ef}.billing-status-pill.past_due{background:#fff2df;color:#9a5b00}.billing-status-pill.past_due i{background:#ec9b1a}.billing-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:28px 0 20px}.billing-metrics>div{padding:16px 18px;border:1px solid #e2e8f2;border-radius:14px;background:#fbfcff}.billing-metrics span{display:block;color:#8692a5;font-size:12px;margin-bottom:7px}.billing-metrics strong{font-size:17px}.billing-trial-callout,.billing-cancelled-callout{display:flex;gap:13px;padding:16px;border-radius:15px;margin:12px 0 22px}.billing-trial-callout{background:#eff8ff;color:#1768ef}.billing-cancelled-callout{background:#fff3f0;color:#ad4938}.billing-trial-callout>i,.billing-cancelled-callout>i{width:20px;flex:none}.billing-trial-callout strong,.billing-cancelled-callout strong{font-size:14px}.billing-trial-callout p,.billing-cancelled-callout p{margin:4px 0 0;color:#66758d;font-size:13px;line-height:1.5}.billing-cancel-modal{position:fixed;inset:0;z-index:50;background:rgba(14,24,42,.52);display:grid;place-items:center;padding:20px}.billing-cancel-dialog{position:relative;background:#fff;border-radius:20px;width:min(100%,440px);padding:30px;box-shadow:0 25px 70px rgba(15,30,60,.3)}.billing-cancel-dialog h3{font-size:24px;margin:14px 0 8px}.billing-cancel-dialog p{color:#68768c;line-height:1.5;font-size:14px}.billing-cancel-dialog label{display:grid;gap:7px;font-weight:700;font-size:13px;margin:20px 0}.billing-cancel-dialog input{border:1px solid #d5deed;border-radius:10px;padding:12px;font:inherit}.billing-cancel-dialog>div:last-of-type{display:flex;justify-content:flex-end;gap:10px}.billing-cancel-close{position:absolute;right:15px;top:12px;border:0;background:transparent;font-size:25px;color:#8490a3;cursor:pointer}.billing-cancel-dialog small{display:block;color:#c44735;margin-top:12px;min-height:16px}
@media(max-width:700px){.billing-dashboard-head{display:block}.billing-status-pill{margin-top:16px}.billing-metrics{grid-template-columns:1fr}.billing-dashboard-card{padding:22px!important}.billing-cancel-dialog>div:last-of-type{flex-direction:column-reverse}.billing-cancel-dialog .btn{width:100%;justify-content:center}}
.billing-cancel-modal[hidden]{display:none!important}
.billing-warning-mark{background:#fff0df;color:#b76712}.billing-kicker-warning{background:#fff0df;color:#a75e10}.billing-paid-plan-button{display:inline-flex;width:auto;justify-content:center;margin-top:10px}
.billing-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:22px}.billing-upgrade-button{display:flex;align-items:center;gap:11px;min-width:240px;padding:13px 16px;border-radius:14px;color:#fff;background:linear-gradient(135deg,#1768ef,#5d45e9);text-decoration:none;box-shadow:0 10px 22px rgba(23,104,239,.2);transition:transform .2s,box-shadow .2s}.billing-upgrade-button:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(23,104,239,.3)}.billing-upgrade-icon{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.18)}.billing-upgrade-icon i{width:17px}.billing-upgrade-button span:nth-child(2){display:grid;gap:2px;flex:1}.billing-upgrade-button strong{font-size:13px}.billing-upgrade-button small{font-size:11px;color:rgba(255,255,255,.75)}.billing-upgrade-button>i{width:17px}.billing-cancel-link{border:0;background:transparent;color:#929dad;text-decoration:underline;text-underline-offset:3px;font:inherit;font-size:12px;cursor:pointer;padding:8px 2px}.billing-cancel-link:hover{color:#b55348}

.faq-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(50px, 8vw, 105px); align-items: start; background: #fff; }
.faq-section > div:first-child { position: sticky; top: 120px; }
.faq-list details { border-bottom: 1px solid #e3e5eb; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; font-size: .96rem; font-weight: 750; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 18px; flex: 0 0 auto; color: #6251d8; transition: transform 180ms ease; }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list details p { margin: -6px 36px 22px 0; color: #687184; font-size: .88rem; line-height: 1.7; }

.sales-final-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; max-width: 1180px; margin: 30px auto 70px; padding: 56px; border-radius: 24px; color: #fff; background: linear-gradient(120deg, #523fd2, #6f57ec); box-shadow: 0 30px 70px rgba(75, 56, 190, .25); }
.sales-final-cta > div:first-child { max-width: 700px; }
.sales-final-cta .eyebrow { color: #ded9ff; }
.sales-final-cta h2 { margin-bottom: 12px; }
.sales-final-cta p:last-child { margin: 0; color: #e4e0ff; }
.final-cta-icon { display: grid; width: 48px; height: 48px; margin-bottom: 22px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 14px; background: rgba(255,255,255,.12); }
.final-cta-icon svg { width: 23px; }
.sales-final-cta > div:last-child { display: grid; gap: 12px; min-width: 220px; text-align: center; }
.final-btn { color: #4433bc; background: #fff; box-shadow: 0 15px 35px rgba(31, 23, 86, .2); }
.final-btn:hover { background: #f5f3ff; }
.sales-final-cta small { color: #ded9ff; font-size: .7rem; }
.sales-footer { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 34px 24px 44px; border-top: 1px solid #e8eaf0; }
.sales-footer p { margin: 0; color: #798190; font-size: .8rem; }
.sales-footer nav { display: flex; flex-wrap: wrap; gap: 22px; color: #535c6b; font-size: .78rem; font-weight: 700; }
.sales-footer nav a:hover { color: #5c49df; }

@media (max-width: 900px) {
    .sales-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 70px; text-align: center; }
    .sales-hero-copy, .sales-hero h1, .sales-hero-text { margin-right: auto; margin-left: auto; }
    .sales-hero .hero-actions, .sales-reassurance { justify-content: center; }
    .sales-product { width: min(100%, 620px); margin: 0 auto; transform: none; }
    .outcome-grid { grid-template-columns: 1fr; }
    .how-section, .faq-section { grid-template-columns: 1fr; }
    .how-copy { max-width: 650px; }
    .faq-section > div:first-child { position: static; }
    .pricing-heading { grid-template-columns: 1fr; gap: 10px; }
    .sales-final-cta { margin-right: 20px; margin-left: 20px; }
    .sales-footer { grid-template-columns: 1fr; text-align: center; }
    .sales-footer .brand, .sales-footer nav { justify-content: center; }
}

@media (max-width: 640px) {
    .sales-home .site-header { align-items: center; flex-direction: row; margin: 8px 10px 0; padding: 10px 12px; }
    .sales-home .site-header .main-nav { display: none; }
    .sales-home .site-header .topbar-actions { width: auto; flex-direction: row; }
    .sales-home .site-header .topbar-actions .btn { width: auto; min-height: 38px; padding: 0 12px; font-size: .78rem; }
    .sales-home .site-header .topbar-actions .btn-ghost { display: none; }
    .sales-home .site-header .topbar-actions .icon-link svg { display: none; }
    .sales-hero { padding: 56px 18px 58px; }
    .sales-hero h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
    .sales-hero-text { font-size: 1rem; }
    .sales-hero .hero-actions { align-items: center; }
    .sales-text-link { justify-content: center; }
    .sales-reassurance { gap: 10px; }
    .sales-product { border-radius: 16px; }
    .sales-conversation { padding: 18px 14px; }
    .sales-message { max-width: 92%; }
    .booking-confirmation { grid-template-columns: 36px 1fr; }
    .booking-confirmation > svg { display: none; }
    .sales-product-footer span:last-child { display: none; }
    .sales-audience div { gap: 14px 22px; }
    .sales-section { padding: 72px 20px; }
    .sales-section-heading h2, .how-copy h2, .faq-section h2, .sales-final-cta h2 { font-size: 2.45rem; }
    .control-grid { grid-template-columns: 1fr; }
    .control-feature { grid-template-columns: 42px 1fr; padding: 20px; }
    .control-icon { width: 42px; height: 42px; }
    .how-steps li { grid-template-columns: 44px 1fr; gap: 14px; }
    .how-steps li > span { width: 40px; height: 40px; }
    .sales-final-cta { align-items: stretch; flex-direction: column; margin: 16px 14px 54px; padding: 38px 24px; border-radius: 20px; }
}

/* Personal website builder and public profile page */
.portfolio-builder {
    display: grid;
    gap: 24px;
}

.booking-page-content {
    display: grid;
    gap: 24px;
}

.booking-page-heading,
.booking-link-section {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.booking-page-heading h2,
.booking-link-section h3 {
    margin: 8px 0 6px;
}

.booking-page-heading p,
.booking-link-section p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
}

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

.booking-form-section {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
}

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

.booking-form-grid label,
.booking-service-row label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

.booking-form-grid label.wide,
.booking-service-row label.wide {
    grid-column: 1 / -1;
}

.booking-form-grid input,
.booking-form-grid textarea,
.booking-form-grid select,
.booking-service-row input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: var(--paper);
    font: inherit;
}

.booking-form-grid textarea {
    resize: vertical;
}

.booking-services-grid {
    display: grid;
    gap: 12px;
}

.booking-service-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(110px, .6fr) minmax(110px, .6fr) minmax(180px, 1.4fr) auto;
    align-items: end;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--soft);
}

.booking-service-row > div {
    display: grid;
    gap: 7px;
}

.booking-service-row > div > strong {
    color: var(--ink);
    font-size: .78rem;
}

.booking-visibility {
    display: flex !important;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.booking-page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 900px) {
    .booking-page-heading,
    .booking-link-section {
        align-items: flex-start;
        flex-direction: column;
    }

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

@media (max-width: 600px) {
    .booking-form-grid,
    .booking-service-row {
        grid-template-columns: 1fr;
    }

    .booking-form-section {
        padding: 16px;
    }
}

/* Authenticated dashboard shell */
.dashboard-body.analytics-body {
    padding: 0;
    color: #f7f8fb;
    background: #101014;
}

.dashboard-body .analytics-shell {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    min-height: 100vh;
    overflow: hidden;
    border-radius: 0;
    background: #f7f7f8;
    box-shadow: none;
    animation: none;
}

.dashboard-sidebar {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 26px 16px 18px;
    color: #f7f8fb;
    background: #141418;
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 2px 10px 16px;
    color: #ffffff;
}

.dashboard-brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    overflow: hidden;
    border-radius: 9px;
    background: #ffffff;
}

.dashboard-brand-mark img { width: 28px; height: 28px; object-fit: contain; }
.dashboard-brand strong { display: block; font-size: 1rem; letter-spacing: 0; }
.dashboard-brand small { display: block; margin-top: 2px; color: #8d8e99; font-size: .67rem; }

.dashboard-sidebar-nav { display: grid; gap: 18px; overflow-y: auto; min-height: 0; }
.dashboard-nav-group { display: grid; gap: 4px; }
.dashboard-nav-group-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0 10px 7px; border: 0; color: #777984; background: transparent; font: inherit; font-size: .66rem; font-weight: 800; letter-spacing: .11em; text-align: left; text-transform: uppercase; cursor: pointer; }
.dashboard-nav-group-toggle svg { width: 14px; height: 14px; transition: transform 160ms ease; }
.dashboard-nav-group.is-collapsed .dashboard-nav-group-toggle svg { transform: rotate(-90deg); }
.dashboard-nav-group.is-collapsed .dashboard-nav-group-items { display: none; }
.dashboard-nav-group-items { display: grid; gap: 3px; }
.dashboard-nav-item { display: flex; min-width: 0; align-items: center; gap: 11px; padding: 10px 11px; border: 1px solid transparent; border-radius: 7px; color: #a9aab4; font-size: .82rem; font-weight: 600; text-decoration: none; transition: color 150ms ease, background 150ms ease, border-color 150ms ease; }
.dashboard-nav-item svg { flex: 0 0 auto; width: 16px; height: 16px; color: #777984; }
.dashboard-nav-item:hover { color: #ffffff; background: #202026; }
.dashboard-nav-item.active { color: #ffffff; background: #2b2b34; border-color: #3a3a45; box-shadow: inset 3px 0 #f0b84b; }
.dashboard-nav-item.active svg { color: #f0b84b; }
.dashboard-nav-admin { margin-top: 4px; }
.dashboard-sidebar-footer { display: grid; gap: 12px; margin-top: auto; padding: 14px 6px 0; border-top: 1px solid #2a2a31; }
.dashboard-account { display: flex; min-width: 0; align-items: center; gap: 10px; }
.dashboard-account .rail-avatar { flex: 0 0 auto; width: 32px; height: 32px; font-size: .72rem; }
.dashboard-account > span:last-child { display: grid; min-width: 0; gap: 3px; }
.dashboard-account strong, .dashboard-account small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-account strong { color: #f2f3f5; font-size: .76rem; }
.dashboard-account small { color: #777984; font-size: .66rem; }
.dashboard-logout { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; color: #8d8e99; background: transparent; font: inherit; font-size: .76rem; cursor: pointer; }
.dashboard-logout:hover { color: #ffffff; }
.dashboard-logout svg { width: 16px; height: 16px; }

.dashboard-body .analytics-workspace { min-width: 0; color: var(--ink); background: #f7f7f8; }
.dashboard-body .analytics-header { min-height: 82px; padding: 20px 34px; border-bottom: 1px solid #e3e3e7; background: rgba(255,255,255,.88); }
.dashboard-body .analytics-header h1 { color: #17171c; font-size: 1.6rem; letter-spacing: 0; }
.dashboard-body .analytics-header .eyebrow { color: #8a8b96; }
.dashboard-body .analytics-content { padding: 30px 34px 46px; }
.dashboard-body .account-pill { max-width: 300px; overflow: hidden; color: #777984; background: #eeeeF1; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-body .analytics-search { background: #ffffff; }

@media (max-width: 820px) {
    .dashboard-body .analytics-shell { display: block; overflow: visible; }
    .dashboard-sidebar { position: fixed; z-index: 20; top: 0; bottom: 0; left: 0; width: 252px; transform: translateX(-105%); transition: transform 180ms ease; box-shadow: 18px 0 40px rgba(0,0,0,.22); }
    .dashboard-body .analytics-shell.nav-open .dashboard-sidebar { transform: translateX(0); }
    .dashboard-body .analytics-workspace { min-height: 100vh; }
    .dashboard-body .analytics-header { padding: 18px 20px 18px 64px; }
    .dashboard-body .analytics-content { padding: 22px 18px 34px; }
    .dashboard-body .mobile-nav-toggle { position: fixed; z-index: 30; top: 17px; left: 16px; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #dedee4; border-radius: 7px; color: #303039; background: #ffffff; }
}

/* Compact overview and quiet scrollbars */
.dashboard-sidebar { width: 218px; }
.dashboard-body .analytics-shell { grid-template-columns: 218px minmax(0, 1fr); }
.dashboard-sidebar-nav { scrollbar-width: thin; scrollbar-color: #3a3a45 transparent; }
.dashboard-sidebar-nav::-webkit-scrollbar { width: 5px; }
.dashboard-sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.dashboard-sidebar-nav::-webkit-scrollbar-thumb { border-radius: 5px; background: #3a3a45; }
.dashboard-sidebar-nav::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.overview-content { display: grid; gap: 18px; }
.overview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.overview-metric, .overview-panel { border: 1px solid #e3e3e7; border-radius: 8px; background: #ffffff; box-shadow: 0 8px 20px rgba(16,24,40,.04); }
.overview-metric { display: grid; gap: 8px; padding: 17px; color: #17171c; text-decoration: none; }
.overview-metric:hover { border-color: #c7c8d1; transform: translateY(-1px); }
.overview-metric span { display: flex; align-items: center; gap: 7px; color: #737581; font-size: .72rem; font-weight: 700; }
.overview-metric span svg { width: 15px; height: 15px; color: #17877f; }
.overview-metric strong { font-size: 1.85rem; line-height: 1; }
.overview-metric small { color: #92939d; font-size: .7rem; }
.overview-columns { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 18px; }
.overview-panel { min-width: 0; padding: 20px; }
.overview-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.overview-panel-heading h2 { margin: 3px 0 0; color: #17171c; font-size: 1.12rem; }
.overview-panel .card-label { margin-bottom: 0; color: #9697a1; font-size: .65rem; }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: #17877f; font-size: .72rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.text-link svg { width: 13px; height: 13px; }
.overview-schedule, .overview-attention, .overview-activity { display: grid; gap: 3px; }
.overview-schedule a, .overview-attention a { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #eeeeF1; color: #17171c; text-decoration: none; }
.overview-schedule time { width: 48px; color: #17877f; font-size: .72rem; font-weight: 800; }
.overview-schedule span, .overview-attention span:nth-child(2), .overview-activity span:last-child { display: grid; min-width: 0; gap: 3px; }
.overview-schedule strong, .overview-attention strong, .overview-activity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.overview-schedule small, .overview-attention small, .overview-activity small { overflow: hidden; color: #8c8d97; text-overflow: ellipsis; white-space: nowrap; font-size: .7rem; }
.overview-schedule > svg, .overview-attention > svg { flex: 0 0 auto; width: 14px; margin-left: auto; color: #b0b1ba; }
.overview-avatar, .overview-activity-icon { display: grid; flex: 0 0 auto; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #ffffff; background: #17877f; font-size: .7rem; font-weight: 800; }
.overview-activity > div { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.overview-activity-icon { border-radius: 7px; color: #17877f; background: #e7f5f2; }
.overview-activity-icon svg { width: 15px; height: 15px; }
.overview-empty { display: grid; justify-items: start; gap: 5px; padding: 18px 0 8px; color: #8c8d97; }
.overview-empty svg { width: 22px; height: 22px; color: #17877f; }
.overview-empty strong { color: #303039; font-size: .82rem; }
.overview-empty span { font-size: .72rem; }
.overview-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.overview-actions a { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 12px; border: 1px solid #e3e3e7; border-radius: 6px; color: #42434d; font-size: .72rem; font-weight: 700; text-decoration: none; }
.overview-actions a:hover { color: #17877f; border-color: #a9d8d2; background: #f5fbfa; }
.overview-actions svg { flex: 0 0 auto; width: 15px; height: 15px; color: #17877f; }

@media (max-width: 1050px) {
    .overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .dashboard-body .analytics-shell { grid-template-columns: 1fr; }
    .dashboard-sidebar { width: 218px; }
    .overview-columns { grid-template-columns: 1fr; }
}

.portfolio-builder-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.portfolio-builder-heading h2,
.portfolio-builder-heading p {
    max-width: 650px;
}

.portfolio-builder-heading h2 {
    margin: 8px 0 8px;
    color: #101828;
    font-size: 1.7rem;
    line-height: 1.15;
    letter-spacing: 0;
}

:root[data-theme="dark"] .portfolio-builder-heading h2 {
    color: var(--ink);
}

.portfolio-builder-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.portfolio-builder-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: start;
    gap: 24px;
}

.portfolio-form {
    display: grid;
    gap: 17px;
    padding: 28px;
}

.portfolio-form > label,
.portfolio-fields label {
    display: grid;
    gap: 8px;
    min-width: 0;
    color: #344054;
    font-size: 0.78rem;
    font-weight: 700;
}

:root[data-theme="dark"] .portfolio-form > label,
:root[data-theme="dark"] .portfolio-fields label {
    color: var(--ink);
}

.portfolio-form label em {
    color: var(--muted);
    font-style: normal;
    font-weight: 500;
}

.portfolio-form input,
.portfolio-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 13px;
    color: var(--ink);
    background: var(--paper);
    font: inherit;
    font-size: 0.88rem;
    line-height: 1.4;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.portfolio-form textarea {
    min-height: 108px;
    resize: vertical;
}

.portfolio-form input:focus,
.portfolio-form textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.13);
}

.portfolio-fields {
    display: grid;
    gap: 15px;
}

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

.portfolio-fields.stats-fields {
    grid-template-columns: minmax(74px, 0.45fr) minmax(0, 1fr);
    gap: 12px 14px;
}

.slug-input {
    display: flex;
    min-width: 0;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: var(--paper);
    overflow: hidden;
}

.slug-input b {
    padding-left: 12px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.slug-input b strong {
    color: var(--blue);
    font-weight: 800;
}

.slug-input input {
    min-width: 0;
    border: 0;
    border-radius: 0;
    padding-left: 5px;
    background: transparent;
}

.form-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 1px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

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

.form-section-heading h3 {
    margin: 0 0 3px;
    color: #101828;
    font-size: 0.95rem;
    letter-spacing: 0;
}

:root[data-theme="dark"] .form-section-heading h3 {
    color: var(--ink);
}

.form-section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.4;
}

.portfolio-save-button {
    justify-self: start;
    margin-top: 4px;
}

.portfolio-preview-wrap {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 10px;
}

.portfolio-preview-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.portfolio-preview-kicker svg,
.portfolio-share-row svg {
    width: 16px;
    height: 16px;
}

.portfolio-preview {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(150px, 0.95fr);
    min-height: 460px;
    gap: 20px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 8px;
    padding: 24px;
    background: #eef9f9;
    box-shadow: 0 18px 45px rgba(16, 24, 40, 0.1);
    animation: portfolio-preview-in 520ms ease both;
}

:root[data-theme="dark"] .portfolio-preview {
    border-color: rgba(255, 255, 255, 0.1);
    background: #122a35;
}

.portfolio-preview-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.portfolio-preview-copy > span:first-child {
    color: #178f85;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.portfolio-preview-copy h3 {
    margin: 16px 0 12px;
    color: #162a66;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 2rem;
    line-height: 0.98;
    letter-spacing: 0;
}

:root[data-theme="dark"] .portfolio-preview-copy h3 {
    color: #effcff;
}

.portfolio-preview-copy p {
    margin: 0;
    color: #49616a;
    font-size: 0.78rem;
    line-height: 1.5;
}

:root[data-theme="dark"] .portfolio-preview-copy p {
    color: #b5d1d7;
}

.portfolio-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.preview-button {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border-radius: 999px;
    padding: 0 12px;
    color: #ffffff;
    background: #172d76;
    font-size: 0.64rem;
    font-weight: 800;
}

.preview-button.ghost {
    color: #172d76;
    border: 1px solid #172d76;
    background: transparent;
}

.portfolio-preview-name {
    margin-top: 28px;
    color: #49616a;
    font-size: 0.72rem;
}

.portfolio-preview-image {
    position: relative;
    min-height: 300px;
    align-self: center;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(145deg, #c5e3dc, #f6d5c8);
}

.portfolio-preview-image img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.portfolio-preview-image > span:not(.preview-image-badge) {
    display: grid;
    height: 100%;
    min-height: 300px;
    place-items: center;
    color: rgba(23, 45, 118, 0.72);
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 5rem;
    font-weight: 700;
}

.portfolio-preview-image > svg:not(.lucide) {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 18px;
    height: 18px;
    color: rgba(23, 45, 118, 0.52);
}

.preview-image-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 9px;
    color: #24404b;
    background: rgba(255, 255, 255, 0.86);
    font-size: 0.62rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.preview-image-badge svg {
    width: 15px;
    height: 15px;
    color: #178f85;
    flex: 0 0 auto;
}

.portfolio-share-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.74rem;
}

.portfolio-share-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-portfolio-body {
    min-height: 100vh;
    margin: 0;
    color: #162a66;
    background: #f4fcfc;
    font-family: "DM Sans", Inter, sans-serif;
}

.public-portfolio {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
    padding: 30px 0 80px;
}

.public-portfolio-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.public-portfolio-brand,
.public-portfolio-powered {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #162a66;
    font-size: 0.84rem;
    font-weight: 800;
}

.public-portfolio-brand span {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 8px;
    background: #0c1020;
    overflow: hidden;
}

.public-portfolio-powered {
    color: #63818a;
    font-size: 0.72rem;
}

.public-portfolio-powered svg {
    width: 14px;
    height: 14px;
}

.public-portfolio-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
    align-items: center;
    gap: 74px;
    min-height: 660px;
    padding: 72px 10px 78px;
}

.public-portfolio-copy {
    animation: portfolio-copy-in 650ms ease both;
}

.public-portfolio-eyebrow {
    color: #23978e;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.public-portfolio-copy h1 {
    max-width: 560px;
    margin: 20px 0 18px;
    color: #172d76;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 4.4rem;
    line-height: 0.99;
    letter-spacing: 0;
}

.public-portfolio-copy > p {
    max-width: 500px;
    margin: 0;
    color: #526b73;
    font-size: 1rem;
    line-height: 1.55;
}

.public-portfolio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.public-portfolio-hero-extras {
    display: grid;
    justify-items: start;
    gap: 10px;
    margin-top: 14px;
}

/* Button children join the existing Hero action row; notes remain below it. */
.public-portfolio-actions:has(+ .public-portfolio-hero-extras .editor-action-target) + .public-portfolio-hero-extras {
    display: contents;
}

.public-portfolio-actions:has(+ .public-portfolio-hero-extras .editor-action-target) + .public-portfolio-hero-extras .public-portfolio-hero-note {
    flex-basis: 100%;
    margin-top: 2px;
}

.public-portfolio-hero-note {
    max-width: 520px;
    margin: 0;
    color: var(--portfolio-text, #526b73);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
}

.public-portfolio-primary,
.public-portfolio-secondary {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 999px;
    padding: 0 20px;
    font-size: 0.82rem;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.public-portfolio-primary {
    color: #ffffff;
    background: #172d76;
    box-shadow: 0 12px 22px rgba(23, 45, 118, 0.18);
}

.public-portfolio-secondary {
    border: 1px solid #547078;
    color: #172d76;
}

.public-portfolio-primary:hover,
.public-portfolio-secondary:hover {
    transform: translateY(-3px);
}

.public-portfolio-primary svg {
    width: 16px;
    height: 16px;
}

.public-portfolio-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 52px;
}

.public-portfolio-stats div {
    display: grid;
    gap: 4px;
}

.public-portfolio-stats strong {
    color: #172d76;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 1.32rem;
}

.public-portfolio-stats span {
    color: #6d8b92;
    font-size: 0.68rem;
    font-weight: 700;
}

.public-portfolio-visual {
    position: relative;
    animation: portfolio-visual-in 720ms ease 120ms both;
}

.public-portfolio-image {
    position: relative;
    z-index: 1;
    width: min(100%, 490px);
    margin-left: auto;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(145deg, #c6e4dc, #f2cec2);
    box-shadow: 0 28px 60px rgba(38, 85, 94, 0.17);
    transform: rotate(2deg);
}

.public-portfolio-image img,
.public-portfolio-placeholder {
    display: grid;
    width: 100%;
    min-height: 520px;
    place-items: center;
    object-fit: cover;
}

.public-portfolio-placeholder {
    color: rgba(23, 45, 118, 0.62);
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 10rem;
    font-weight: 700;
}

.public-portfolio-placeholder svg {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 22px;
    height: 22px;
}

.public-portfolio-badge {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    padding: 14px;
    color: #24404b;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
}

.badge-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: #1a9a8f;
}

.badge-icon svg {
    width: 18px;
    height: 18px;
}

.public-portfolio-badge span:last-child {
    display: grid;
    gap: 2px;
}

.public-portfolio-badge strong {
    font-size: 0.76rem;
}

.public-portfolio-badge small {
    color: #6b858b;
    font-size: 0.65rem;
}

.public-portfolio-orbit {
    position: absolute;
    z-index: 0;
    display: block;
    border: 1px solid rgba(35, 151, 142, 0.24);
    border-radius: 999px;
    animation: orbit-float 5s ease-in-out infinite;
}

.orbit-one {
    right: -30px;
    top: -25px;
    width: 180px;
    height: 180px;
}

.orbit-two {
    bottom: -34px;
    left: -45px;
    width: 140px;
    height: 140px;
    animation-delay: -2s;
}

.public-portfolio-about {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(73, 116, 124, 0.24);
    padding: 26px 10px 0;
}

.public-portfolio-about span {
    color: #23978e;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.public-portfolio-about p {
    margin: 0;
    color: #6d8b92;
    font-size: 0.84rem;
}

.portfolio-not-found-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    background: #f4fcfc;
}

.portfolio-not-found {
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.portfolio-not-found-mark {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    background: #172d76;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.portfolio-not-found h1 {
    margin: 0 0 10px;
    color: #172d76;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 2rem;
}

@keyframes portfolio-preview-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes portfolio-copy-in {
    from { opacity: 0; transform: translateX(-18px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes portfolio-visual-in {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes orbit-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(0, 10px); }
}

@media (max-width: 980px) {
    .portfolio-builder-layout,
    .public-portfolio-hero {
        grid-template-columns: 1fr;
    }

    .portfolio-preview-wrap {
        position: static;
    }

    .public-portfolio-hero {
        gap: 42px;
        padding-top: 52px;
    }

    .public-portfolio-image {
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .portfolio-builder-heading,
    .public-portfolio-nav,
    .public-portfolio-about {
        align-items: flex-start;
        flex-direction: column;
    }

    .portfolio-builder-heading .btn {
        width: 100%;
    }

    .portfolio-form {
        padding: 20px;
    }

    .portfolio-fields.two-columns,
    .portfolio-fields.stats-fields,
    .portfolio-preview {
        grid-template-columns: 1fr;
    }

    .portfolio-preview {
        min-height: 0;
    }

    .portfolio-preview-image {
        min-height: 250px;
    }

    .portfolio-preview-image img,
    .portfolio-preview-image > span:not(.preview-image-badge) {
        min-height: 250px;
    }

    .public-portfolio {
        width: min(100% - 34px, 1180px);
        padding-top: 20px;
    }

    .public-portfolio-hero {
        min-height: 0;
        padding: 60px 0 58px;
    }

    .public-portfolio-copy h1 {
        font-size: 3rem;
    }

    .public-portfolio-image img,
    .public-portfolio-placeholder {
        min-height: 390px;
    }

    .public-portfolio-placeholder {
        font-size: 7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-preview,
    .public-portfolio-copy,
    .public-portfolio-visual,
    .public-portfolio-orbit {
        animation: none;
    }
}

/* Extended service-business editor */
.portfolio-form select {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 13px;
    color: var(--ink);
    background: var(--paper);
    font: inherit;
    font-size: 0.88rem;
    outline: none;
}

.portfolio-form input[type="color"] {
    width: 100%;
    height: 44px;
    padding: 4px;
    cursor: pointer;
}

.appearance-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.appearance-fields label:nth-child(n + 5) {
    grid-column: span 1;
}

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

.portfolio-toggle-row label,
.portfolio-repeat-title label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.portfolio-form input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--blue);
}

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

.portfolio-section-row {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--ink);
    background: color-mix(in srgb, var(--paper) 78%, var(--soft));
    cursor: grab;
    font-size: 0.82rem;
    font-weight: 700;
}

.portfolio-section-row:active {
    cursor: grabbing;
}

.portfolio-section-row > svg:first-child {
    width: 16px;
    height: 16px;
    color: var(--muted);
}

.portfolio-section-row span {
    flex: 1;
}

.portfolio-section-row.dragging {
    opacity: 0.5;
}

.portfolio-repeat-grid,
.portfolio-service-editor {
    display: grid;
    gap: 12px;
}

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

.portfolio-repeat-card {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: color-mix(in srgb, var(--paper) 84%, var(--soft));
}

.portfolio-repeat-card > strong,
.portfolio-repeat-title strong {
    color: var(--ink);
    font-size: 0.78rem;
}

.portfolio-repeat-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.portfolio-repeat-card input,
.portfolio-repeat-card textarea {
    min-height: 38px;
    padding: 9px 10px;
    font-size: 0.78rem;
}

.portfolio-repeat-card textarea {
    min-height: 70px;
}

.portfolio-optional-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

.portfolio-optional-note svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

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

.portfolio-publish-actions .portfolio-save-button {
    margin-top: 0;
}

/* Published pages inherit the editor's safe appearance choices. */
.public-portfolio-body {
    color: var(--portfolio-primary, #162a66);
    background: var(--portfolio-background, #f4fcfc);
}

.public-portfolio-body[data-font-pair="Editorial"],
.public-portfolio-body[data-font-pair="Editorial"] .public-portfolio-copy h1,
.public-portfolio-body[data-font-pair="Editorial"] .public-section-heading h2 {
    font-family: "Space Grotesk", Inter, sans-serif;
}

.public-portfolio-body[data-font-pair="Friendly"] {
    font-family: "DM Sans", Inter, sans-serif;
}

.public-portfolio-body .public-portfolio-brand,
.public-portfolio-body .public-portfolio-powered,
.public-portfolio-body .public-portfolio-copy h1,
.public-portfolio-body .public-portfolio-secondary,
.public-portfolio-body .public-portfolio-stats strong,
.public-portfolio-body .public-section-heading h2,
.public-portfolio-body .public-service-card h3,
.public-portfolio-body .public-about h2,
.public-portfolio-body .public-team h3,
.public-portfolio-body .public-faq h2 {
    color: var(--portfolio-primary, #162a66);
}

.public-portfolio-body .public-portfolio-brand span,
.public-portfolio-body .public-portfolio-primary,
.public-portfolio-body .public-booking {
    background: var(--portfolio-primary, #172d76);
}

.public-portfolio-body .public-portfolio-eyebrow,
.public-portfolio-body .public-section-heading > span,
.public-portfolio-body .public-about > span,
.public-portfolio-body .public-booking > div > span,
.public-portfolio-body .public-service-icon,
.public-portfolio-body .review-stars {
    color: var(--portfolio-accent, #23978e);
}

.public-portfolio-body .public-portfolio-copy > p,
.public-portfolio-body .public-about p,
.public-portfolio-body .public-service-card p,
.public-portfolio-body .public-team p,
.public-portfolio-body .public-contact-grid,
.public-portfolio-body .public-faq p {
    color: var(--portfolio-text, #526b73);
}

.public-portfolio-body .public-portfolio-secondary {
    border-color: var(--portfolio-text, #526b73);
}

.public-portfolio-body .public-portfolio-primary,
.public-portfolio-body .public-portfolio-secondary,
.public-portfolio-body .public-service-card,
.public-portfolio-body .public-portfolio-image,
.public-portfolio-body .public-portfolio-badge,
.public-portfolio-body .public-booking,
.public-portfolio-body .public-review-grid article {
    border-radius: var(--portfolio-radius, 12px);
}

.public-portfolio-dark {
    --portfolio-background: #101b2a !important;
    --portfolio-text: #b7c9d1 !important;
}

.public-portfolio-dark .public-portfolio-powered,
.public-portfolio-dark .public-portfolio-about p,
.public-portfolio-dark .public-portfolio-stats span,
.public-portfolio-dark .public-contact-grid span,
.public-portfolio-dark .public-contact-grid a {
    color: #aac1c9;
}

.public-portfolio-section {
    margin-top: 34px;
    padding: 70px 10px;
}

.public-portfolio-stats.public-portfolio-section {
    display: flex;
    gap: 48px;
    margin-top: 0;
    border-top: 1px solid color-mix(in srgb, var(--portfolio-text, #526b73) 22%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--portfolio-text, #526b73) 22%, transparent);
    padding: 28px 10px;
}

.public-section-heading {
    display: grid;
    gap: 8px;
    margin-bottom: 26px;
}

.public-section-heading > span,
.public-about > span,
.public-booking > div > span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.public-section-heading h2,
.public-about h2,
.public-booking h2 {
    max-width: 620px;
    margin: 0;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 2.5rem;
    line-height: 1.04;
}

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

.public-service-card,
.public-team-grid article,
.public-review-grid article {
    padding: 23px;
    background: color-mix(in srgb, var(--portfolio-background, #f4fcfc) 80%, #ffffff);
}

.public-service-card {
    border: 1px solid color-mix(in srgb, var(--portfolio-text, #526b73) 15%, transparent);
}

.public-service-icon {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--portfolio-accent, #23978e) 14%, transparent);
}

.public-service-icon svg {
    width: 17px;
    height: 17px;
}

.public-service-card h3,
.public-team-grid h3 {
    margin: 22px 0 8px;
    font-size: 1.02rem;
}

.public-service-card p,
.public-team-grid p,
.public-review-grid p {
    min-height: 70px;
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
}

.public-service-card > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 22px;
    color: var(--portfolio-text, #526b73);
    font-size: 0.72rem;
    font-weight: 700;
}

.public-service-card > div strong {
    color: var(--portfolio-primary, #172d76);
}

.public-about {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 60px;
    border-top: 1px solid color-mix(in srgb, var(--portfolio-text, #526b73) 22%, transparent);
}

.public-about p {
    max-width: 620px;
    margin: 20px 0 0;
    font-size: 1rem;
    line-height: 1.6;
}

.team-avatar {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--portfolio-accent, #23978e);
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.public-team-grid article > span {
    color: var(--portfolio-accent, #23978e);
    font-size: 0.72rem;
    font-weight: 800;
}

.public-review-grid article {
    border: 1px solid color-mix(in srgb, var(--portfolio-text, #526b73) 14%, transparent);
}

.review-stars {
    font-size: 0.9rem;
    letter-spacing: 3px;
}

.public-review-grid p {
    min-height: 0;
    margin: 18px 0;
    color: var(--portfolio-text, #526b73);
}

.public-review-grid strong {
    color: var(--portfolio-primary, #172d76);
    font-size: 0.78rem;
}

.public-faq > div:last-child {
    max-width: 760px;
}

.public-faq details {
    border-top: 1px solid color-mix(in srgb, var(--portfolio-text, #526b73) 20%, transparent);
    padding: 19px 0;
}

.public-faq details:last-child {
    border-bottom: 1px solid color-mix(in srgb, var(--portfolio-text, #526b73) 20%, transparent);
}

.public-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    color: var(--portfolio-primary, #172d76);
    font-size: 0.92rem;
    font-weight: 800;
    list-style: none;
}

.public-faq summary::-webkit-details-marker {
    display: none;
}

.public-faq summary svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.public-faq details[open] summary svg {
    transform: rotate(45deg);
}

.public-faq details p {
    max-width: 620px;
    margin: 13px 0 0;
    font-size: 0.84rem;
    line-height: 1.55;
}

.public-booking {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: #ffffff;
    padding: 34px;
}

.public-booking h2 {
    color: #ffffff;
    font-size: 2rem;
}

.public-booking p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.84rem;
}

.public-booking .public-portfolio-primary {
    flex: 0 0 auto;
    color: var(--portfolio-primary, #172d76);
    background: #ffffff;
}

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

.public-contact-grid > div {
    display: grid;
    gap: 8px;
    border-top: 2px solid var(--portfolio-accent, #23978e);
    padding-top: 13px;
}

.public-contact-grid svg {
    width: 18px;
    height: 18px;
}

.public-contact-grid strong {
    color: var(--portfolio-primary, #172d76);
    font-size: 0.75rem;
}

.public-contact-grid a,
.public-contact-grid span {
    color: var(--portfolio-text, #526b73);
    font-size: 0.75rem;
    line-height: 1.45;
}

.public-gallery-placeholder,
.public-map-placeholder {
    display: grid;
    min-height: 180px;
    place-items: center;
    gap: 9px;
    border: 1px dashed color-mix(in srgb, var(--portfolio-text, #526b73) 24%, transparent);
    border-radius: var(--portfolio-radius, 12px);
    color: var(--portfolio-text, #526b73);
    background: color-mix(in srgb, var(--portfolio-accent, #23978e) 5%, transparent);
    font-size: 0.8rem;
    text-align: center;
}

.public-gallery-placeholder svg,
.public-map-placeholder svg {
    width: 24px;
    height: 24px;
    color: var(--portfolio-accent, #23978e);
}

.public-portfolio-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid color-mix(in srgb, var(--portfolio-text, #526b73) 22%, transparent);
    padding: 25px 10px 0;
    color: var(--portfolio-text, #526b73);
    font-size: 0.72rem;
}

.public-portfolio-footer > span:first-child {
    color: var(--portfolio-primary, #172d76);
    font-weight: 800;
}

.public-portfolio-footer > div {
    display: flex;
    gap: 12px;
}

.public-portfolio-footer a {
    color: var(--portfolio-primary, #172d76);
}

.public-portfolio-footer svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 980px) {
    .appearance-fields,
    .public-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 640px) {
    .appearance-fields,
    .portfolio-repeat-grid,
    .public-service-grid,
    .public-team-grid,
    .public-review-grid,
    .public-contact-grid,
    .public-about {
        grid-template-columns: 1fr;
    }

    .public-portfolio-section {
        padding: 48px 0;
    }

    .public-portfolio-stats.public-portfolio-section {
        gap: 22px;
    }

    .public-section-heading h2,
    .public-about h2 {
        font-size: 2rem;
    }

    .public-booking {
        align-items: flex-start;
        flex-direction: column;
        padding: 26px;
    }

    .public-portfolio-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Visual website editor */
.visual-editor-body {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    overflow: hidden;
    color: #172033;
    background: #edf1f7;
}

.visual-editor {
    display: grid;
    width: 100vw;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    grid-template-rows: 68px minmax(0, 1fr);
}

.visual-editor-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto minmax(220px, 1fr);
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid #dfe5ee;
    padding: 0 20px;
    background: #ffffff;
}

.editor-toolbar-left,
.editor-toolbar-right,
.editor-history-actions,
.editor-device-actions,
.editor-back,
.editor-page-title,
.editor-save-status,
.editor-preview-link,
.editor-publish-button {
    display: flex;
    align-items: center;
}

.editor-toolbar-left,
.editor-toolbar-right {
    min-width: 0;
    gap: 12px;
}

.editor-toolbar-right {
    justify-content: flex-end;
}

.editor-back,
.editor-history-actions button,
.editor-device-actions button,
.editor-sidebar-heading button,
.editor-inspector-heading button,
.editor-page-item,
.editor-sidebar-action,
.editor-small-button,
.editor-preview-link {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.editor-back,
.editor-history-actions button,
.editor-inspector-heading button,
.editor-sidebar-heading button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    color: #667085;
    background: transparent;
}

.editor-back:hover,
.editor-history-actions button:hover,
.editor-inspector-heading button:hover,
.editor-sidebar-heading button:hover {
    color: #172d76;
    background: #f0f3f8;
}

.editor-back svg,
.editor-history-actions svg,
.editor-inspector-heading svg,
.editor-sidebar-heading svg {
    width: 17px;
    height: 17px;
}

.editor-page-title {
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.editor-page-title span,
.editor-stage-topline,
.editor-sidebar-heading span,
.editor-selected-label span,
.editor-inspector-field > span,
.editor-muted-note,
.editor-tip-card span {
    color: #8a96a8;
    font-size: 0.68rem;
    font-weight: 700;
}

.editor-page-title strong {
    max-width: 190px;
    overflow: hidden;
    color: #172033;
    font-size: 0.83rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-history-actions,
.editor-device-actions {
    gap: 4px;
}

.editor-device-actions {
    border: 1px solid #e1e6ee;
    border-radius: 8px;
    padding: 3px;
    background: #f6f8fb;
}

.editor-device-actions button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    padding: 0 10px;
    color: #7b8798;
    background: transparent;
    font-size: 0.7rem;
    font-weight: 700;
}

.editor-device-actions button.active {
    color: #172d76;
    background: #ffffff;
    box-shadow: 0 2px 7px rgba(16, 24, 40, 0.09);
}

.editor-device-actions svg {
    width: 15px;
    height: 15px;
}

.editor-save-status {
    gap: 6px;
    color: #2f8a67;
    font-size: 0.72rem;
    font-weight: 800;
}

.editor-save-status.is-saving {
    color: #9b6b24;
}

.editor-save-status svg {
    width: 15px;
    height: 15px;
}

.editor-preview-link,
.editor-publish-button {
    min-height: 36px;
    justify-content: center;
    gap: 7px;
    border-radius: 8px;
    padding: 0 12px;
    color: #344054;
    background: #f2f4f7;
    font-size: 0.72rem;
    font-weight: 800;
}

.editor-preview-link svg,
.editor-publish-button svg {
    width: 15px;
    height: 15px;
}

.editor-publish-button {
    color: #ffffff;
    background: #172d76;
}

.editor-publish-button:hover,
.editor-preview-link:hover {
    transform: translateY(-1px);
}

.visual-editor-layout {
    display: grid;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    grid-template-columns: 226px minmax(0, 1fr) 280px;
}

.visual-editor-sidebar {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 16px;
    background: #ffffff;
}

.editor-left-sidebar {
    border-right: 1px solid #dfe5ee;
}

.editor-right-sidebar {
    border-left: 1px solid #dfe5ee;
}

.editor-sidebar-section {
    position: relative;
    display: grid;
    gap: 9px;
    margin-bottom: 26px;
}

.editor-sidebar-heading,
.editor-inspector-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}

.editor-sidebar-heading span {
    color: #344054;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.editor-page-item,
.editor-sidebar-action {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 0 11px;
    color: #667085;
    background: transparent;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 700;
}

.editor-page-item.active,
.editor-page-item:hover,
.editor-sidebar-action:hover {
    color: #172d76;
    background: #f0f3f8;
}

.editor-page-item svg,
.editor-sidebar-action svg {
    width: 16px;
    height: 16px;
}

.editor-page-item svg:last-child {
    width: 14px;
    height: 14px;
    margin-left: auto;
}

.editor-muted-note {
    margin: 3px 8px 0;
    line-height: 1.45;
}

.editor-tip-card {
    display: grid;
    gap: 8px;
    border: 1px solid #e4e9f0;
    border-radius: 8px;
    padding: 14px;
    background: #f8fafc;
}

.editor-tip-card svg {
    width: 18px;
    height: 18px;
    color: #23978e;
}

.editor-tip-card strong {
    color: #344054;
    font-size: 0.76rem;
}

.editor-tip-card span {
    line-height: 1.45;
}

.editor-advanced-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667085;
    font-size: 0.75rem;
    font-weight: 700;
}

.editor-advanced-link svg {
    width: 16px;
    height: 16px;
}

.visual-editor-stage {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    flex-direction: column;
    background: #edf1f7;
}

.editor-stage-topline {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 22px;
}

.editor-draft-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 9px;
    color: #9b6b24;
    background: #fff6df;
    font-size: 0.65rem;
    font-weight: 800;
}

.editor-draft-pill svg {
    width: 13px;
    height: 13px;
}

.editor-canvas-scroll {
    display: flex;
    height: 100%;
    min-height: 0;
    flex: 1;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    padding: 0 24px 50px;
}

    width: 100%;
    min-width: 0;
    height: max-content;
    margin: 0 auto;
    transition: width 220ms ease, box-shadow 220ms ease;
}

.editor-device-frame.tablet {
    width: min(768px, 100%);
}

.editor-device-frame.mobile {
    width: min(390px, 100%);
}

.editor-site-root {
    overflow: visible;
    min-height: 100%;
    border: 1px solid #dce4ec;
    border-radius: 8px;
    background: var(--portfolio-background, #f4fcfc);
    box-shadow: 0 20px 55px rgba(16, 24, 40, 0.14);
}

.editor-site-root .public-portfolio {
    width: 100%;
    margin: 0;
    padding: 24px 32px 50px;
}

.editor-site-root .public-portfolio-hero {
    min-height: 570px;
    padding: 58px 8px 64px;
}

.editor-site-root .public-portfolio-copy h1 {
    font-size: 3.6rem;
}

.editor-site-root .public-portfolio-image img,
.editor-site-root .public-portfolio-placeholder {
    min-height: 420px;
}

.editor-site-root .public-portfolio-placeholder {
    font-size: 8rem;
}

.editor-site-root .public-portfolio-section {
    padding: 52px 8px;
}

.editor-site-root .public-portfolio-nav a,
.editor-site-root .public-portfolio-nav span {
    pointer-events: none;
}

.editor-selectable {
    position: relative;
    outline: 1px solid transparent;
    outline-offset: 5px;
    transition: outline-color 150ms ease, background 150ms ease;
}

.editor-selectable:hover,
.editor-selectable.editor-selected {
    outline-color: #7aa4ff;
}

.editor-selectable.editor-selected {
    background: color-mix(in srgb, var(--portfolio-accent, #23978e) 3%, transparent);
}

.editor-page-content [contenteditable="true"] {
    cursor: text;
    outline: 1px dashed transparent;
    outline-offset: 4px;
    transition: outline-color 140ms ease, background 140ms ease;
}

.editor-page-content [contenteditable="true"]:hover,
.editor-page-content [contenteditable="true"]:focus {
    outline-color: #7aa4ff;
    background: rgba(122, 164, 255, 0.08);
}

.editor-section-handle {
    position: absolute;
    z-index: 5;
    top: 7px;
    left: 7px;
    display: flex;
    align-items: center;
    gap: 3px;
    border: 1px solid #d7e0ec;
    border-radius: 8px;
    padding: 3px;
    color: #667085;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-3px);
    transition: opacity 150ms ease, transform 150ms ease;
}

.editor-selectable:hover .editor-section-handle,
.editor-selectable.editor-selected .editor-section-handle {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.editor-section-handle span {
    padding: 0 6px;
    color: #344054;
    font-size: 0.64rem;
    font-weight: 800;
}

.editor-section-handle button {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 0;
    border-radius: 5px;
    color: #667085;
    background: transparent;
    cursor: pointer;
}

.editor-section-handle button:hover {
    color: #172d76;
    background: #edf2fb;
}

.editor-section-handle svg {
    width: 14px;
    height: 14px;
}

.editor-image-target {
    cursor: pointer;
}

.editor-image-target::after {
    content: "Click to replace image";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    border-radius: 999px;
    padding: 8px 11px;
    color: #ffffff;
    background: rgba(23, 45, 118, 0.86);
    font-size: 0.68rem;
    font-weight: 800;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 160ms ease;
}

.editor-image-target:hover::after {
    opacity: 1;
}

.editor-action-target {
    cursor: pointer;
}

.editor-add-section-marker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: center;
    margin: 0 0 20px;
    border: 1px dashed #adc1e2;
    border-radius: 999px;
    padding: 7px 11px;
    color: #5271a9;
    background: #f7faff;
    cursor: pointer;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 800;
}

.editor-add-section-marker svg {
    width: 14px;
    height: 14px;
}

.editor-add-menu {
    position: absolute;
    z-index: 20;
    display: grid;
    width: 180px;
    gap: 3px;
    margin-top: 8px;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    padding: 7px;
    background: #ffffff;
    box-shadow: 0 18px 35px rgba(16, 24, 40, 0.16);
}

.editor-add-menu button,
.editor-add-menu span {
    border: 0;
    border-radius: 6px;
    padding: 8px 9px;
    color: #344054;
    background: transparent;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: left;
}

.editor-add-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.editor-add-menu button svg {
    width: 14px;
    height: 14px;
    color: #7b8798;
}

.editor-add-menu button:hover svg {
    color: #172d76;
}

.public-custom-block {
    position: relative;
}

.public-custom { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.public-custom > .editor-section-handle,
.public-custom > .public-custom-block:not(.public-custom-card),
.public-custom > .editor-empty-section { grid-column:1 / -1; }
.public-custom-card { min-height:120px; padding:20px; border:1px solid color-mix(in srgb, var(--portfolio-primary, #172d76) 12%, transparent); border-radius:var(--portfolio-radius, 12px); background:rgba(255,255,255,.72); box-shadow:0 10px 24px rgba(23,32,51,.06); }
.public-custom-card article { color:var(--portfolio-text, #526b73); font-size:.9rem; line-height:1.55; }
.public-custom-card article::first-line { color:var(--portfolio-primary, #172d76); font-weight:800; }
.public-custom-card-icon { display:grid; width:30px; height:30px; margin-bottom:12px; place-items:center; border-radius:9px; color:var(--portfolio-primary, #172d76); background:color-mix(in srgb, var(--portfolio-primary, #172d76) 10%, transparent); }
.public-custom-card-icon svg { width:16px; height:16px; }
@media (max-width:820px) { .public-custom { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:520px) { .public-custom { grid-template-columns:1fr; } }

.editor-block-handle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-height: 26px;
    color: #8a96a8;
    font-size: 0.62rem;
    font-weight: 800;
    opacity: 0;
    transition: opacity 160ms ease;
}

.public-custom-block:hover .editor-block-handle,
.public-custom-block:focus-within .editor-block-handle {
    opacity: 1;
}

.editor-block-handle button {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 0;
    border-radius: 5px;
    color: #7b8798;
    background: #f0f3f8;
    cursor: pointer;
}

.editor-block-handle button:hover {
    color: #172d76;
    background: #e3ebfb;
}

.editor-block-handle svg {
    width: 13px;
    height: 13px;
}

.editor-add-menu button:hover {
    color: #172d76;
    background: #f0f3f8;
}

.editor-add-menu span {
    color: #8a96a8;
    line-height: 1.4;
}

.editor-inspector-heading {
    padding-bottom: 16px;
    border-bottom: 1px solid #e6eaf0;
}

.editor-inspector-heading > span {
    color: #344054;
    font-size: 0.78rem;
    font-weight: 800;
}

.editor-inspector-empty {
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 68px 16px 30px;
    color: #8a96a8;
    text-align: center;
}

.editor-inspector-empty svg {
    width: 26px;
    height: 26px;
    color: #7aa4ff;
}

.editor-inspector-empty strong {
    color: #344054;
    font-size: 0.78rem;
}

.editor-inspector-empty span {
    font-size: 0.7rem;
    line-height: 1.45;
}

.editor-inspector-content,
.editor-site-styles {
    display: grid;
    gap: 16px;
    padding-top: 18px;
}

.editor-format-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border: 1px solid #e0e6ee;
    border-radius: 8px;
    padding: 6px;
    background: #f8fafc;
}

.editor-format-toolbar button,
.editor-format-toolbar label {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 0;
    border-radius: 5px;
    color: #667085;
    background: transparent;
    cursor: pointer;
}

.editor-format-toolbar button:hover,
.editor-format-toolbar label:hover {
    color: #172d76;
    background: #eaf0fb;
}

.editor-format-toolbar svg {
    width: 14px;
    height: 14px;
}

.editor-format-toolbar input[type="color"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.editor-context-menu {
    position: fixed;
    z-index: 100;
    display: grid;
    width: 174px;
    gap: 2px;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    padding: 6px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(16, 24, 40, 0.18);
}

.editor-context-menu button {
    display: flex;
    min-height: 32px;
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 5px;
    padding: 0 8px;
    color: #344054;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: left;
}

.editor-context-menu button:hover {
    color: #172d76;
    background: #f0f3f8;
}

.editor-context-menu svg {
    width: 14px;
    height: 14px;
    color: #7b8798;
}

.editor-empty-section {
    grid-column: 1 / -1;
    margin: 0;
    border: 1px dashed #bfd0e8;
    border-radius: 8px;
    padding: 22px;
    color: #7890af;
    background: rgba(255, 255, 255, 0.48);
    font-size: 0.78rem;
    text-align: center;
}

.editor-selected-label {
    display: grid;
    gap: 4px;
}

.editor-selected-label strong {
    color: #172033;
    font-size: 0.94rem;
}

.editor-inspector-field {
    display: grid;
    gap: 7px;
}

.editor-inspector-field textarea,
.editor-inspector-field input,
.editor-inspector-field select {
    width: 100%;
    min-width: 0;
    border: 1px solid #dfe5ee;
    border-radius: 7px;
    padding: 10px;
    color: #344054;
    background: #fbfcfe;
    font: inherit;
    font-size: 0.78rem;
    outline: none;
}

.editor-inspector-field input[type="color"] {
    height: 38px;
    padding: 3px;
    cursor: pointer;
}

.editor-inspector-field input[type="file"] {
    padding: 8px;
    font-size: 0.72rem;
}

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

.editor-site-root[data-button-style="rounded"] .public-portfolio-primary,
.editor-site-root[data-button-style="rounded"] .public-portfolio-secondary {
    border-radius: 8px;
}

.editor-site-root[data-button-style="square"] .public-portfolio-primary,
.editor-site-root[data-button-style="square"] .public-portfolio-secondary {
    border-radius: 3px;
}

.public-portfolio-body[data-button-style="rounded"] .public-portfolio-primary,
.public-portfolio-body[data-button-style="rounded"] .public-portfolio-secondary {
    border-radius: 8px;
}

.public-portfolio-body[data-button-style="square"] .public-portfolio-primary,
.public-portfolio-body[data-button-style="square"] .public-portfolio-secondary {
    border-radius: 3px;
}

.editor-inspector-field textarea:focus,
.editor-inspector-field input:focus,
.editor-inspector-field select:focus {
    border-color: #7aa4ff;
    box-shadow: 0 0 0 3px rgba(122, 164, 255, 0.14);
}

.editor-inspector-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.editor-small-button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    border-radius: 7px;
    padding: 0 9px;
    color: #667085;
    background: #f2f4f7;
    font-size: 0.7rem;
    font-weight: 800;
}

.editor-small-button.danger {
    color: #b54747;
}

.editor-small-button svg {
    width: 14px;
    height: 14px;
}

.editor-inspector-divider {
    height: 1px;
    background: #e6eaf0;
}

.editor-mode-tabs {
    display: flex;
    gap: 3px;
    border-bottom: 1px solid #e6eaf0;
}

.editor-mode-tabs button {
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 0 7px 9px;
    color: #8a96a8;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 800;
}

.editor-mode-tabs button.active {
    border-color: #172d76;
    color: #172d76;
}

.editor-code-view {
    max-height: 250px;
    margin: 0;
    overflow: auto;
    border-radius: 7px;
    padding: 11px;
    color: #d7e6ff;
    background: #172033;
    font-family: Consolas, monospace;
    font-size: 0.65rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

@media (max-width: 1100px) {
    .visual-editor-layout {
        grid-template-columns: 190px minmax(0, 1fr) 250px;
    }

    .editor-device-actions button span {
        display: none;
    }
}

@media (max-width: 820px) {
    .visual-editor-toolbar {
        grid-template-columns: 1fr auto;
        gap: 8px;
        padding: 0 12px;
    }

    .editor-history-actions,
    .editor-device-actions,
    .editor-preview-link {
        display: none;
    }

    .editor-toolbar-right {
        grid-column: 2;
        grid-row: 1;
    }

    .visual-editor-layout {
        grid-template-columns: 1fr;
    }

    .editor-left-sidebar,
    .editor-right-sidebar {
        display: none;
    }

    .editor-site-root .public-portfolio {
        padding-right: 18px;
        padding-left: 18px;
    }

    .editor-site-root .public-portfolio-copy h1 {
        font-size: 2.7rem;
    }
}
/* Production dashboard shell: fixed app frame with internally scrolling content. */
html:has(.analytics-shell),
body.analytics-body {
    height: 100%;
    overflow: hidden;
}

.analytics-body {
    min-height: 100dvh;
    height: 100dvh;
    padding: 0;
}

.analytics-shell {
    position: relative;
    width: 100vw;
    height: 100dvh;
    min-height: 0;
    grid-template-columns: clamp(82px, 7vw, 112px) minmax(0, 1fr);
    border-radius: 0;
}

.analytics-rail {
    min-height: 0;
    gap: clamp(12px, 2vh, 22px);
    padding: clamp(20px, 3.4vh, 34px) 14px clamp(16px, 2.8vh, 24px);
    overflow: visible;
}

.rail-nav {
    width: 100%;
    max-height: 100%;
    align-self: stretch;
    align-content: start;
    justify-content: center;
    gap: clamp(7px, 1.35vh, 14px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 10px 2px 0;
    scrollbar-color: rgba(255, 255, 255, 0.34) transparent;
    scrollbar-width: thin;
}

.rail-nav::-webkit-scrollbar {
    width: 8px;
}

.rail-nav::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.rail-nav::-webkit-scrollbar-thumb {
    min-height: 34px;
    border: 2px solid #0c1020;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff725f, #ffd15c);
}

.rail-nav::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff8b7d, #ffe08a);
}

.rail-link {
    width: clamp(42px, 5.4vh, 50px);
    height: clamp(42px, 5.4vh, 50px);
}

.rail-link.danger {
    color: #fecaca;
}

.rail-link.danger:hover,
.rail-link.danger.active {
    color: #ffffff;
    background: linear-gradient(145deg, #dc2626, #991b1b);
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.32);
}

.rail-tooltip {
    position: fixed;
    z-index: 120;
    max-width: 180px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(12, 16, 32, 0.94);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.25);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translate(-8px, -50%) scale(0.96);
    transform-origin: left center;
    transition: opacity 160ms ease, transform 160ms ease;
    white-space: nowrap;
}

.rail-tooltip.active {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
}

.rail-logo,
.rail-avatar {
    width: clamp(42px, 5.2vh, 50px);
    height: clamp(42px, 5.2vh, 50px);
}

.analytics-workspace {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding: clamp(22px, 3.5vw, 40px);
}

.analytics-header {
    flex: 0 0 auto;
    margin-bottom: clamp(16px, 2.6vh, 28px);
}

.analytics-header h1 {
    font-size: clamp(2rem, 3.7vw, 3.6rem);
}

.analytics-header-tools {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.analytics-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    scrollbar-width: thin;
}

.analytics-grid {
    gap: clamp(16px, 2.4vw, 28px);
}

.analytics-side {
    gap: clamp(16px, 2.4vw, 28px);
}

.analytics-card {
    padding: clamp(20px, 2.4vw, 28px);
}

.metric-link-card {
    color: inherit;
    text-decoration: none;
}

.metric-link-card:hover {
    transform: translateY(-3px);
}

.gradient-card p {
    max-width: 28rem;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.82);
}

.mini-schedule,
.section-record-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.mini-schedule span,
.section-record-list div {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 700;
}

.section-record-list div {
    background: var(--soft);
}

.section-record-list span {
    color: var(--muted);
}

.empty-state,
.chart-empty {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 132px;
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
}

.empty-state.soft {
    min-height: auto;
    margin-top: 18px;
    border-color: rgba(255, 255, 255, 0.32);
    color: rgba(255, 255, 255, 0.86);
}

.empty-state.compact {
    min-height: 94px;
    margin-top: 16px;
}

.chart-empty svg,
.empty-state svg {
    width: 24px;
    height: 24px;
}

.donut-chart.is-empty {
    opacity: 0.42;
    filter: grayscale(1);
}

.real-count {
    display: block;
    margin: 8px 0 14px;
    color: var(--ink);
    font-size: 2.4rem;
    line-height: 1;
}

.admin-section-shell {
    display: grid;
    gap: 18px;
    align-content: start;
    grid-auto-rows: max-content;
}

.admin-page-card {
    border-color: rgba(220, 38, 38, 0.32);
    background:
        linear-gradient(135deg, rgba(254, 226, 226, 0.82), rgba(255, 255, 255, 0.68)),
        var(--surface);
}

:root[data-theme="dark"] .admin-page-card {
    border-color: rgba(248, 113, 113, 0.34);
    background:
        linear-gradient(135deg, rgba(127, 29, 29, 0.34), rgba(255, 255, 255, 0.06)),
        rgba(255, 255, 255, 0.06);
}

.admin-badge.danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #dc2626;
}

.admin-badge.danger svg {
    width: 16px;
    height: 16px;
}

.admin-page-card .admin-stats article {
    background: rgba(254, 226, 226, 0.82);
}

:root[data-theme="dark"] .admin-page-card .admin-stats article {
    background: rgba(127, 29, 29, 0.28);
}

.admin-actions,
.admin-row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn.danger,
.icon-btn.danger {
    color: #ffffff;
    background: #dc2626;
    border-color: #dc2626;
}

.btn.danger:hover,
.icon-btn.danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.admin-user-table {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.admin-user-head,
.admin-user-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(80px, 0.5fr) minmax(90px, 0.45fr) minmax(170px, 0.8fr) minmax(150px, auto);
    gap: 14px;
    align-items: center;
}

.admin-user-head {
    padding: 0 14px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-user-row {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
}

:root[data-theme="dark"] .admin-user-row {
    background: rgba(255, 255, 255, 0.06);
}

.admin-user-row strong,
.admin-user-row span {
    overflow-wrap: anywhere;
}

.admin-user-row > div:first-child {
    display: grid;
    gap: 4px;
}

.admin-user-row > div:first-child span {
    color: var(--muted);
    font-size: 0.88rem;
}

.admin-credit-count {
    color: var(--ink);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.status-chip {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.status-chip.success {
    color: #087443;
    background: #dcfce7;
}

.status-chip.danger {
    color: #991b1b;
    background: #fee2e2;
}

:root[data-theme="dark"] .status-chip.success {
    color: #bbf7d0;
    background: rgba(22, 101, 52, 0.36);
}

:root[data-theme="dark"] .status-chip.danger {
    color: #fecaca;
    background: rgba(127, 29, 29, 0.42);
}

.admin-icon-action {
    width: 42px;
    height: 42px;
}

.admin-icon-action.danger-soft {
    color: #dc2626;
    background: #fee2e2;
}

.admin-icon-action:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.admin-modal {
    max-width: 620px;
}

.modal-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 8px;
    color: var(--blue);
    background: #eff6ff;
}

.modal-icon.danger {
    color: #dc2626;
    background: #fee2e2;
}

.modal-icon svg {
    width: 25px;
    height: 25px;
}

.admin-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

@media (max-width: 920px) {
    .admin-user-head {
        display: none;
    }

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

    .admin-row-actions {
        justify-content: flex-start;
    }
}

.completed-row a,
.icon-only-link {
    color: var(--blue);
    font-weight: 800;
    text-decoration: none;
}

.icon-only-link svg {
    width: 18px;
    height: 18px;
}

.hidden,
.is-filtered-out {
    display: none !important;
}

.mobile-nav-toggle {
    display: none;
}

@media (max-height: 820px) and (min-width: 721px) {
    .analytics-body {
        padding: 0;
    }

    .analytics-shell {
        height: 100dvh;
    }

    .rail-link {
        width: 38px;
        height: 38px;
    }

    .rail-link svg {
        width: 17px;
        height: 17px;
    }

    .rail-nav {
        gap: 6px;
    }

    .analytics-card,
    .mini-stat-card,
    .activity-panel {
        padding: 20px;
    }
}

@media (max-width: 980px) {
    .analytics-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .analytics-header {
        align-items: stretch;
    }

    .analytics-header-tools {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    html:has(.analytics-shell),
    body.analytics-body {
        overflow: hidden;
    }

    .analytics-body {
        height: 100dvh;
        padding: 0;
    }

    .analytics-shell {
        height: 100dvh;
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .mobile-nav-toggle {
        position: fixed;
        top: 14px;
        left: 14px;
        z-index: 60;
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
        border: 0;
        border-radius: 8px;
        color: #ffffff;
        background: #0c1020;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2);
    }

    .analytics-rail {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 55;
        display: grid;
        width: 88px;
        grid-template-rows: auto 1fr auto;
        align-items: start;
        justify-items: center;
        overflow-x: hidden;
        padding-top: 72px;
        transform: translateX(-100%);
        transition: transform 180ms ease;
    }

    .analytics-shell.nav-open .analytics-rail {
        transform: translateX(0);
    }

    .rail-nav,
    .rail-footer {
        display: grid;
    }

    .analytics-workspace {
        padding: 72px 16px 18px;
    }

    .analytics-header {
        gap: 14px;
    }

    .analytics-header h1 {
        font-size: 2.15rem;
    }

    .account-pill {
        max-width: 100%;
    }

    .activity-list article {
        grid-template-columns: 42px minmax(0, 1fr);
    }
}

.dashboard-loader {
    position: fixed;
    z-index: 200;
    inset: 0 0 0 248px;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(245, 246, 248, .5);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 120ms ease, visibility 120ms ease;
}

.dashboard-loader.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dashboard-loader-card {
    display: flex;
    min-width: 190px;
    align-items: center;
    gap: 14px;
    padding: 17px 20px;
    border: 1px solid #e0e2e8;
    border-radius: 14px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 20px 55px rgba(17,24,39,.16);
    transform: translateY(6px) scale(.98);
    transition: transform 150ms ease;
}

.dashboard-loader.is-visible .dashboard-loader-card { transform: translateY(0) scale(1); }
.dashboard-loader-card > div { display: grid; gap: 3px; }
.dashboard-loader-card strong { color: #20232d; font-size: .84rem; }
.dashboard-loader-card small { color: #7b8290; font-size: .68rem; }
.dashboard-loader-spinner {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 3px solid #e6e3fb;
    border-top-color: #6556e8;
    border-radius: 50%;
    animation: dashboard-spin .7s linear infinite;
}

@keyframes dashboard-spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) { .dashboard-loader { left: 224px; } }
@media (max-width: 820px) { .dashboard-loader { left: 0; } }
@media (prefers-reduced-motion: reduce) { .dashboard-loader-spinner { animation-duration: 1.4s; } }

/* Full calendar workspace */
.calendar-page-shell { display: block; min-width: 0; }
.calendar-app { overflow: hidden; border: 1px solid #e2e5eb; border-radius: 16px; background: #fff; box-shadow: 0 8px 28px rgba(17,24,39,.055); }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid #e8eaf0; }
.calendar-navigation, .calendar-toolbar-actions { display: flex; align-items: center; gap: 8px; }
.calendar-navigation button, .calendar-category-button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid #e0e3e9; border-radius: 9px; color: #525968; background: #fff; font: inherit; font-size: .74rem; font-weight: 700; cursor: pointer; }
.calendar-navigation button:not(:first-child) { width: 38px; padding: 0; }
.calendar-navigation button:hover, .calendar-category-button:hover { color: #5546cf; border-color: #c8c2f5; background: #f7f5ff; }
.calendar-navigation button svg, .calendar-category-button svg { width: 16px; height: 16px; }
.calendar-navigation h2 { min-width: 190px; margin: 0 0 0 8px; color: #1b1e27; font-size: 1.22rem; letter-spacing: -.025em; }
.calendar-search { display: flex; width: 230px; min-height: 40px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #e0e3e9; border-radius: 10px; background: #f8f9fb; }
.calendar-search:focus-within { border-color: #a99ff5; box-shadow: 0 0 0 3px rgba(101,86,232,.1); background: #fff; }
.calendar-search svg { width: 16px; color: #8a92a0; }
.calendar-search input { width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: .74rem; }
.calendar-filter-bar { display: flex; min-height: 62px; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid #e8eaf0; background: #fafbfc; }
.calendar-filter-bar > label:not(.calendar-cancelled-filter) { display: flex; align-items: center; gap: 7px; color: #7b8290; font-size: .67rem; font-weight: 700; }
.calendar-filter-bar select { min-height: 34px; padding: 0 28px 0 9px; border: 1px solid #e0e3e9; border-radius: 8px; color: #444b59; background: #fff; font: inherit; font-size: .7rem; }
.calendar-cancelled-filter { display: flex; align-items: center; gap: 7px; color: #666e7d; font-size: .7rem; font-weight: 700; }
.calendar-selection-summary { margin-left: auto; color: #89919f; font-size: .69rem; font-weight: 650; }
.calendar-selection-summary.has-selection { color: #5546cf; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, minmax(120px,1fr)); border-bottom: 1px solid #e8eaf0; background: #fff; }
.calendar-weekdays span { padding: 11px 12px; color: #8a92a0; font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(120px,1fr)); min-width: 840px; transition: opacity 150ms ease; }
.calendar-grid.is-loading { opacity: .45; pointer-events: none; }
.calendar-day { position: relative; display: flex; min-width: 0; min-height: 118px; flex-direction: column; gap: 7px; padding: 9px; border: 0; border-right: 1px solid #edf0f3; border-bottom: 1px solid #edf0f3; color: #323743; background: #fff; text-align: left; font: inherit; cursor: pointer; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day:nth-last-child(-n+7) { border-bottom: 0; }
.calendar-day:hover { z-index: 1; background: #faf9ff; box-shadow: inset 0 0 0 1px #d7d2f9; }
.calendar-day.is-outside { color: #abb0bb; background: #fafbfc; }
.calendar-day.is-selected { background: #f2f0ff; box-shadow: inset 0 0 0 2px #7668e9; }
.calendar-day-number { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; font-size: .71rem; font-weight: 750; }
.calendar-day.is-today .calendar-day-number { color: #fff; background: #6556e8; }
.calendar-event-stack { display: grid; gap: 4px; min-width: 0; pointer-events: none; }
.calendar-event { display: block; overflow: hidden; padding: 5px 6px 5px 8px; border-left: 3px solid var(--event-color); border-radius: 5px; color: #303541; background: color-mix(in srgb, var(--event-color) 10%, white); font-size: .62rem; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; pointer-events: auto; }
.calendar-event.priority-important { box-shadow: inset 0 0 0 1px rgba(229,158,40,.28); }
.calendar-event.priority-urgent { color: #9d2929; background: #fff0f0; border-left-color: #e24b4b !important; }
.calendar-event.is-cancelled { opacity: .55; text-decoration: line-through; }
.calendar-more { padding-left: 5px; color: #747c8a; font-size: .61rem; font-weight: 700; }

.calendar-dialog { position: fixed; z-index: 220; inset: 0; display: grid; place-items: center; padding: 20px; overflow-y: auto; background: rgba(17,24,39,.48); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity 150ms ease, visibility 150ms ease; }
.calendar-dialog.is-visible { opacity: 1; visibility: visible; }
.calendar-dialog-card { width: min(100%, 590px); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 25px; border: 1px solid #e1e3e9; border-radius: 17px; background: #fff; box-shadow: 0 30px 90px rgba(17,24,39,.28); transform: translateY(8px) scale(.985); transition: transform 170ms ease; }
.calendar-dialog.is-visible .calendar-dialog-card { transform: none; }
.calendar-dialog-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.calendar-dialog-card > header h2 { margin: 4px 0 0; font-size: 1.35rem; }
.calendar-dialog-card > header > button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #e1e3e8; border-radius: 9px; color: #6f7684; background: #fff; cursor: pointer; }
.calendar-dialog-card > header svg { width: 17px; }
.calendar-dialog-card form { display: grid; gap: 16px; }
.calendar-dialog-card form > label, .calendar-form-grid label { display: grid; gap: 7px; color: #424957; font-size: .72rem; font-weight: 750; }
.calendar-dialog-card label small { color: #8a92a0; font-size: .63rem; font-weight: 500; }
.calendar-dialog-card input:not([type=color]), .calendar-dialog-card select, .calendar-dialog-card textarea { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid #dfe2e8; border-radius: 9px; outline: 0; background: #fbfcfd; font: inherit; font-size: .78rem; resize: vertical; }
.calendar-dialog-card input:focus, .calendar-dialog-card select:focus, .calendar-dialog-card textarea:focus { border-color: #9d91ef; box-shadow: 0 0 0 3px rgba(101,86,232,.1); background: #fff; }
.calendar-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.calendar-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 4px; padding-top: 18px; border-top: 1px solid #e8eaf0; }
.calendar-dialog-actions .calendar-delete { margin-right: auto; color: #c33a3a; border-color: #f0caca; }
.category-dialog-card { width: min(100%, 470px); }
.category-create-form { grid-template-columns: 46px 1fr auto; }
.category-create-form input[type=color] { width: 46px; height: 42px; padding: 3px; border: 1px solid #dfe2e8; border-radius: 9px; background: #fff; }
.category-list { display: grid; gap: 7px; margin-top: 18px; }
.category-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #e7e9ee; border-radius: 9px; }
.category-list span { display: flex; align-items: center; gap: 9px; font-size: .76rem; font-weight: 700; }
.category-list span i { width: 11px; height: 11px; border-radius: 50%; }
.category-list button { border: 0; color: #a34a4a; background: transparent; font-size: 1.15rem; cursor: pointer; }
.category-empty { color: #858c99; font-size: .75rem; text-align: center; }
.calendar-toast { position: fixed; z-index: 260; right: 24px; bottom: 24px; max-width: 360px; padding: 12px 16px; border-radius: 10px; color: #fff; background: #1b2332; box-shadow: 0 16px 40px rgba(17,24,39,.24); font-size: .75rem; font-weight: 700; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 150ms ease, transform 150ms ease; }
.calendar-toast.is-visible { opacity: 1; transform: none; }
.calendar-toast.is-error { background: #b33a3a; }

@media (max-width: 1050px) { .calendar-toolbar { align-items: flex-start; flex-direction: column; } .calendar-toolbar-actions { width: 100%; } .calendar-search { flex: 1; } .calendar-filter-bar { flex-wrap: wrap; } .calendar-selection-summary { width: 100%; margin-left: 0; } .calendar-app { overflow-x: auto; } .calendar-toolbar, .calendar-filter-bar { position: sticky; left: 0; min-width: 100%; } }
@media (max-width: 620px) { .calendar-navigation { width: 100%; flex-wrap: wrap; } .calendar-navigation h2 { order: -1; width: 100%; margin: 0 0 5px; } .calendar-toolbar-actions { align-items: stretch; flex-direction: column; } .calendar-search { width: 100%; flex: auto; } .calendar-filter-bar > label:not(.calendar-cancelled-filter) { width: calc(50% - 6px); align-items: stretch; flex-direction: column; } .calendar-filter-bar select { width: 100%; } .calendar-selection-summary { line-height: 1.4; } .calendar-form-grid { grid-template-columns: 1fr; } .calendar-dialog-card { padding: 20px; } .calendar-dialog-actions { flex-wrap: wrap; } .category-create-form { grid-template-columns: 46px 1fr; } .category-create-form .btn { grid-column: 1 / -1; } }

body.dashboard-body:not(.admin-body) select { border-radius: 12px !important; }
body.dashboard-body:not(.admin-body) input[type="checkbox"] {
    appearance: none;
    display: inline-grid;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex: 0 0 20px;
    place-content: center;
    margin: 0;
    border: 1.5px solid #c9ced8;
    border-radius: 6px;
    outline: 0;
    background: #fff;
    cursor: pointer;
    transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
body.dashboard-body:not(.admin-body) input[type="checkbox"]::before { width: 10px; height: 6px; border-bottom: 2px solid #fff; border-left: 2px solid #fff; content: ""; opacity: 0; transform: translateY(-1px) rotate(-45deg) scale(.6); transition: opacity 120ms ease, transform 120ms ease; }
body.dashboard-body:not(.admin-body) input[type="checkbox"]:hover { border-color: #8f82eb; transform: translateY(-1px); }
body.dashboard-body:not(.admin-body) input[type="checkbox"]:focus-visible { border-color: #6556e8; box-shadow: 0 0 0 3px rgba(101,86,232,.15); }
body.dashboard-body:not(.admin-body) input[type="checkbox"]:checked { border-color: #6556e8; background-color: #6556e8; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='m3.2 8.3 3 3 6.6-7'/%3E%3C/svg%3E"); background-position: center; background-repeat: no-repeat; background-size: 15px; box-shadow: 0 4px 10px rgba(101,86,232,.22); }
body.dashboard-body:not(.admin-body) input[type="checkbox"]:checked::before { opacity: 1; transform: translateY(-1px) rotate(-45deg) scale(1); }
body.dashboard-body:not(.admin-body) input[type="checkbox"]:disabled { opacity: .48; cursor: not-allowed; }

.dashboard-notification-button { position: relative; display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border: 1px solid #e0e3e9; border-radius: 11px; color: #626a79; background: #fff; box-shadow: 0 4px 12px rgba(17,24,39,.04); transition: color 140ms ease, border-color 140ms ease, background 140ms ease; }
.dashboard-notification-button:hover, .dashboard-notification-button.active { color: #5546cf; border-color: #c9c3f5; background: #f7f5ff; }
.dashboard-notification-button svg { width: 18px; height: 18px; }
.notification-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: #e5484d; opacity: 0; transform: scale(.5); transition: opacity 140ms ease, transform 140ms ease; }
.notification-dot.is-visible { opacity: 1; transform: scale(1); animation: notification-pulse 2s ease-in-out infinite; }
@keyframes notification-pulse { 50% { box-shadow: 0 0 0 4px rgba(229,72,77,.14); } }
.inbox-live-events { border-color: #d9d4fa !important; background: linear-gradient(145deg,#fff,#faf9ff) !important; }
.inbox-live-events .mini-icon.live { color: #fff; background: #6556e8; }
.inbox-event-row { grid-template-columns: 52px 1fr auto !important; align-items: center; }
.inbox-event-row em { padding: 4px 7px; border-radius: 999px; color: #687184; background: #eef0f3; font-size: .61rem; font-style: normal; font-weight: 750; }
.inbox-event-row.priority-urgent em { color: #b4232b; background: #ffebec; }
.inbox-event-row.priority-important em { color: #9a6517; background: #fff4d9; }
.calendar-date-jump { display: flex; align-items: center; gap: 7px; margin-left: 6px; color: #7b8290; font-size: .66rem; font-weight: 750; }
.calendar-date-jump input { min-height: 38px; padding: 0 9px; border: 1px solid #e0e3e9; border-radius: 10px; color: #4f5765; background: #fff; font: inherit; font-size: .7rem; }
.calendar-date-jump input:focus { border-color: #9d91ef; outline: 0; box-shadow: 0 0 0 3px rgba(101,86,232,.1); }
@media (max-width: 700px) { .calendar-date-jump { width: 100%; margin-left: 0; } .calendar-date-jump input { flex: 1; } }

.inbox-command-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; grid-column: 1 / -1; background: linear-gradient(135deg,#fff,#f8f7ff) !important; }
.inbox-command-card h2 { margin: 5px 0 6px; font-size: 1.5rem; }
.inbox-command-card p { margin: 0; color: #737b8a; }
.inbox-command-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.inbox-command-actions > span { padding: 7px 10px; border-radius: 999px; color: #5546cf; background: #efedff; font-size: .7rem; font-weight: 800; }
.inbox-message-panel { grid-column: 1 / -1; }
.inbox-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.inbox-panel-heading h2 { margin: 5px 0 0; }
.inbox-panel-heading > span { padding: 6px 9px; border-radius: 999px; color: #5546cf; background: #efedff; font-size: .66rem; font-weight: 800; }
.inbox-message-list { display: grid; gap: 8px; }
.inbox-message { position: relative; display: grid; grid-template-columns: 40px minmax(0,1fr) 10px; gap: 13px; align-items: start; padding: 16px; border: 1px solid #e7e9ee; border-radius: 12px; background: #fafbfc; }
.inbox-message.is-unread { border-color: #d5d0fa; background: #f8f7ff; box-shadow: inset 3px 0 #6556e8; }
.inbox-message-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; color: #6556e8; background: #ece9ff; }
.inbox-message-icon svg { width: 18px; height: 18px; }
.inbox-message > div > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.inbox-message strong { font-size: .82rem; }
.inbox-message time { color: #9299a6; font-size: .63rem; white-space: nowrap; }
.inbox-message p { margin: 6px 0; color: #596170; font-size: .76rem; line-height: 1.6; white-space: pre-wrap; }
.inbox-message small { color: #949ba8; font-size: .62rem; }
.inbox-unread-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #6556e8; box-shadow: 0 0 0 4px rgba(101,86,232,.1); }
.admin-message-modal { width: min(94vw, 650px); }
.admin-recipient-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-recipient-heading strong { font-size: .74rem; }
.admin-recipient-heading button { border: 0; color: #5b4bd4; background: transparent; font: inherit; font-size: .68rem; font-weight: 750; cursor: pointer; }
.admin-recipient-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; max-height: 210px; overflow-y: auto; padding: 4px; border: 1px solid #e3e5eb; border-radius: 11px; background: #f8f9fb; }
.admin-recipient-list label { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 9px; border-radius: 8px; background: #fff; cursor: pointer; }
.admin-recipient-list label:hover { background: #f2f0ff; }
.admin-recipient-list label > span { display: grid; min-width: 0; gap: 2px; }
.admin-recipient-list strong, .admin-recipient-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-recipient-list strong { font-size: .68rem; }
.admin-recipient-list small { color: #89919f; font-size: .58rem; }
@media (max-width: 680px) { .inbox-command-card { align-items: flex-start; flex-direction: column; } .inbox-command-actions { width: 100%; flex-wrap: wrap; } .inbox-message { grid-template-columns: 36px minmax(0,1fr); } .inbox-message > .inbox-unread-dot { position: absolute; top: 12px; right: 12px; } .inbox-message > div > div { align-items: flex-start; flex-direction: column; gap: 3px; } .admin-recipient-list { grid-template-columns: 1fr; } }

.booking-design-studio { padding: 28px !important; }
.booking-design-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 24px; align-items: start; }
.booking-design-options { display: grid; gap: 9px; }
.booking-design-option { display: grid; grid-template-columns: 20px 52px 1fr; gap: 10px; align-items: center; padding: 11px; border: 1px solid #e2e5eb; border-radius: 12px; background: #fafbfc; cursor: pointer; }
.booking-design-option:has(input:checked) { border-color: #9c90ee; background: #f5f3ff; box-shadow: 0 0 0 3px rgba(101,86,232,.08); }
.booking-design-option > span:last-child { display: grid; gap: 3px; }
.booking-design-option strong { font-size: .75rem; }
.booking-design-option small { color: #858d9a; font-size: .59rem; line-height: 1.35; }
.design-swatch { position: relative; display: block; width: 52px; height: 36px; overflow: hidden; border: 1px solid rgba(0,0,0,.08); border-radius: 8px; background: var(--swatch-bg); }
.design-swatch i:first-child { position: absolute; top: 7px; left: 7px; width: 28px; height: 4px; border-radius: 4px; background: var(--swatch-primary); }
.design-swatch i:last-child { position: absolute; right: 7px; bottom: 7px; width: 16px; height: 9px; border-radius: 4px; background: var(--swatch-primary); }
.booking-live-preview { overflow: hidden; min-height: 430px; border: 1px solid #dfe2e9; border-radius: 15px; color: #1a2335; background: #f1f3ff; box-shadow: 0 18px 48px rgba(24,31,56,.13); transition: color 180ms ease, background 180ms ease; }
.booking-preview-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 20px; border-bottom: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.82); font-size: .65rem; }
.booking-preview-nav strong { font-size: .78rem; }
.booking-preview-hero { padding: 36px 34px 30px; }
.booking-preview-hero > span, .booking-preview-services > small { color: #6556e8; font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.booking-preview-hero h3 { max-width: 520px; margin: 9px 0; font-size: clamp(1.7rem,3vw,2.7rem); line-height: 1.02; letter-spacing: -.045em; }
.booking-preview-hero p { max-width: 540px; margin: 0 0 16px; color: #687184; font-size: .72rem; line-height: 1.55; }
.booking-preview-hero button { padding: 9px 13px; border: 0; border-radius: 8px; color: #fff; background: #6556e8; font: inherit; font-size: .64rem; font-weight: 750; }
.booking-preview-services { padding: 20px 34px; background: rgba(255,255,255,.7); }
.booking-preview-services > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 9px; }
.booking-preview-services article { display: grid; gap: 4px; padding: 10px; border: 1px solid rgba(0,0,0,.08); border-radius: 8px; background: #fff; }
.booking-preview-services strong { overflow: hidden; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.booking-preview-services span { color: #828996; font-size: .55rem; }
.booking-preview-form { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 15px 34px 22px; padding: 13px; border-radius: 9px; color: #fff; background: #242b3c; font-size: .62rem; }
.booking-live-preview[data-preset="warm"] { color: #492f27; background: #fff1e7; }.booking-live-preview[data-preset="warm"] .booking-preview-hero > span,.booking-live-preview[data-preset="warm"] .booking-preview-services > small { color: #b76145; }.booking-live-preview[data-preset="warm"] .booking-preview-hero button { background: #b76145; }.booking-live-preview[data-preset="warm"] .booking-preview-form { background: #6d4234; }
.booking-live-preview[data-preset="bold"] { color: #fff; background: #111827; }.booking-live-preview[data-preset="bold"] .booking-preview-nav,.booking-live-preview[data-preset="bold"] .booking-preview-services { background: #f5c84b; color: #111827; }.booking-live-preview[data-preset="bold"] .booking-preview-hero p { color: #bdc5d3; }.booking-live-preview[data-preset="bold"] .booking-preview-hero button { color: #111827; background: #f5c84b; }.booking-live-preview[data-preset="bold"] .booking-preview-form { color: #111827; background: #f5c84b; }
.booking-live-preview[data-preset="minimal"] { color: #22252b; background: #f4f4f1; }.booking-live-preview[data-preset="minimal"] .booking-preview-hero { padding-top: 54px; padding-bottom: 54px; }.booking-live-preview[data-preset="minimal"] .booking-preview-hero button { border-radius: 0; background: #20242c; }.booking-live-preview[data-preset="minimal"] .booking-preview-form { border-radius: 0; background: #20242c; }

.public-booking { display: grid; grid-template-columns: minmax(0,.72fr) minmax(420px,1.28fr); align-items: start; }
.public-booking-copy { padding-top: 12px; }
.public-booking-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; padding: 22px; border-radius: calc(var(--portfolio-radius,12px) * .8); color: var(--portfolio-text,#526b73); background: #fff; box-shadow: 0 18px 50px rgba(12,30,50,.18); }
.public-booking-form label { display: grid; gap: 6px; font-size: .68rem; font-weight: 750; }
.public-booking-form label.wide,.public-booking-form .wide { grid-column: 1 / -1; }
.public-booking-form input,.public-booking-form select,.public-booking-form textarea { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid #dfe3e6; border-radius: 8px; outline: 0; color: #25313a; background: #fbfcfc; font: inherit; font-size: .75rem; }
.public-booking-form input:focus,.public-booking-form select:focus,.public-booking-form textarea:focus { border-color: var(--portfolio-accent,#23978e); box-shadow: 0 0 0 3px color-mix(in srgb,var(--portfolio-accent,#23978e) 15%,transparent); }
.public-booking-form .public-portfolio-primary { width: 100%; border: 0; color: #fff; background: var(--portfolio-primary,#172d76); cursor: pointer; }
.public-booking-error { display: flex; grid-column: 1 / -1; align-items: center; gap: 8px; padding: 10px; border-radius: 8px; color: #a92f35 !important; background: #ffebec; }
.public-booking-error svg { width: 16px; }
.public-booking-result { display: flex; align-items: flex-start; gap: 14px; padding: 24px; border-radius: 12px; color: #185d3f; background: #eaf8f1; }
.public-booking-result > svg { width: 26px; height: 26px; }.public-booking-result p { color: #39745c; }
.public-portfolio-body[data-design-preset="warm"] { --portfolio-primary:#9b513a !important;--portfolio-accent:#c9795e !important;--portfolio-background:#fff7f0 !important;--portfolio-text:#6d5148 !important; }
.public-portfolio-body[data-design-preset="bold"] { --portfolio-primary:#111827 !important;--portfolio-accent:#e2b52f !important;--portfolio-background:#f8ce4f !important;--portfolio-text:#303744 !important; }
.public-portfolio-body[data-design-preset="minimal"] { --portfolio-primary:#20242c !important;--portfolio-accent:#7e827c !important;--portfolio-background:#f4f4f1 !important;--portfolio-text:#626660 !important; }
@media (max-width: 900px) { .booking-design-layout { grid-template-columns: 1fr; }.booking-design-options { grid-template-columns: repeat(2,minmax(0,1fr)); }.public-booking { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .booking-design-options { grid-template-columns: 1fr; }.booking-preview-services > div { grid-template-columns: 1fr; }.booking-preview-services article:nth-child(n+2) { display:none; }.public-booking-form { grid-template-columns: 1fr; padding: 16px; }.public-booking-form label.wide,.public-booking-form .wide { grid-column: auto; } }

.customer-workspace { display: grid; width: 100%; gap: 18px; }
.customer-command-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(135deg,#fff 55%,#f2f0ff) !important; }
.customer-command-card h2 { margin: 5px 0 6px; font-size: clamp(1.35rem,2vw,1.75rem); }
.customer-command-card p { margin: 0; color: #707887; }
.customer-stat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.customer-stat-grid article { display: flex; align-items: center; gap: 13px; padding: 17px 19px; border: 1px solid #e4e6eb; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(22,29,43,.04); }
.customer-stat-grid article > span { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 11px; color: #6556e8; background: #efedff; }
.customer-stat-grid svg { width: 18px; }.customer-stat-grid div { display: grid; gap: 2px; }.customer-stat-grid small { color: #858c99; font-size: .65rem; font-weight: 650; }.customer-stat-grid strong { font-size: 1.25rem; }
.customer-directory { padding: 0 !important; overflow: hidden; }
.customer-directory-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; border-bottom: 1px solid #e8eaee; }
.customer-directory-header h2 { margin: 4px 0 0; font-size: 1.2rem; }
.customer-directory-tools { display: flex; align-items: center; gap: 9px; }
.customer-directory-tools label { display: flex; width: min(300px,32vw); min-height: 40px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #dfe2e8; border-radius: 11px; background: #fafbfc; }
.customer-directory-tools label:focus-within { border-color: #998dec; box-shadow: 0 0 0 3px rgba(101,86,232,.1); background: #fff; }
.customer-directory-tools svg { width: 16px; color: #8d94a0; }.customer-directory-tools input { width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: .72rem; }.customer-directory-tools select { min-height: 40px; padding: 0 30px 0 11px; border: 1px solid #dfe2e8; background-color: #fff; font: inherit; font-size: .7rem; }
.customer-table-wrap { overflow-x: auto; }.customer-table { width: 100%; border-collapse: collapse; }.customer-table th { padding: 11px 16px; color: #858d9a; background: #f8f9fb; font-size: .6rem; font-weight: 800; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }.customer-table td { padding: 14px 16px; border-top: 1px solid #eceef1; color: #515968; font-size: .7rem; vertical-align: middle; }.customer-table tbody tr { transition: background 130ms ease; }.customer-table tbody tr:hover { background: #faf9ff; }
.customer-identity { display: flex; min-width: 190px; align-items: center; gap: 11px; }.customer-identity > span { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 11px; color: #5546cf; background: linear-gradient(145deg,#efedff,#ddd8ff); font-size: .7rem; font-weight: 850; }.customer-identity div,.customer-contact { display: grid; gap: 4px; }.customer-identity strong { color: #252c38; font-size: .75rem; }.customer-identity small,.customer-contact small,.customer-date { color: #8a919e; font-size: .62rem; }.customer-contact a { max-width: 230px; overflow: hidden; color: #596170; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }.customer-contact a:hover { color: #5546cf; }
.customer-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: .59rem; font-weight: 800; }.status-active { color: #277252; background: #e6f6ee; }.status-lead { color: #84621a; background: #fff4d9; }.status-vip { color: #5546cf; background: #efedff; }.status-inactive { color: #69717e; background: #eceef1; }
.customer-edit-button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #e1e4e9; border-radius: 9px; color: #68717f; background: #fff; cursor: pointer; }.customer-edit-button:hover { color: #5546cf; border-color: #c9c3f5; background: #f7f5ff; }.customer-edit-button svg { width: 15px; }
.customer-empty,.customer-no-results { display: grid; place-items: center; padding: 54px 24px; text-align: center; }.customer-empty > span { display: grid; width: 56px; height: 56px; place-items: center; margin-bottom: 13px; border-radius: 16px; color: #6556e8; background: #efedff; }.customer-empty h3,.customer-no-results strong { margin: 0 0 6px; }.customer-empty p { max-width: 390px; margin: 0 0 18px; color: #818895; font-size: .73rem; line-height: 1.55; }.customer-no-results { color: #858d99; gap: 7px; }.customer-no-results svg { width: 28px; }
.customer-dialog { position: fixed; z-index: 230; inset: 0; display: grid; place-items: center; padding: 20px; overflow-y: auto; background: rgba(17,24,39,.48); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: 150ms ease; }.customer-dialog.is-visible { opacity: 1; visibility: visible; }.customer-dialog-card { width: min(100%,650px); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 25px; border: 1px solid #e0e3e8; border-radius: 18px; background: #fff; box-shadow: 0 30px 90px rgba(17,24,39,.28); transform: translateY(8px) scale(.985); transition: transform 170ms ease; }.customer-dialog.is-visible .customer-dialog-card { transform: none; }.customer-dialog-card > header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }.customer-dialog-card h2 { margin: 4px 0 0; font-size: 1.35rem; }.customer-dialog-card header button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #e1e3e8; border-radius: 9px; color: #6f7684; background: #fff; cursor: pointer; }.customer-dialog-card header svg { width: 17px; }
.customer-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }.customer-form-grid label { display: grid; gap: 7px; color: #454c59; font-size: .68rem; font-weight: 750; }.customer-form-grid .wide { grid-column: 1/-1; }.customer-form-grid input,.customer-form-grid select,.customer-form-grid textarea { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid #dfe2e8; border-radius: 10px; outline: 0; background: #fbfcfd; font: inherit; font-size: .74rem; resize: vertical; }.customer-form-grid input:focus,.customer-form-grid select:focus,.customer-form-grid textarea:focus { border-color: #9d91ef; box-shadow: 0 0 0 3px rgba(101,86,232,.1); background: #fff; }.customer-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #e8eaee; }.customer-dialog-actions [data-customer-delete] { margin-right: auto; color: #b33a3a; border: 1px solid #f0caca; background: #fff5f5; }
@media (max-width: 760px) { .customer-command-card,.customer-directory-header { align-items: flex-start; flex-direction: column; }.customer-command-card .btn { width: 100%; justify-content: center; }.customer-stat-grid { grid-template-columns: 1fr; }.customer-directory-tools { width: 100%; }.customer-directory-tools label { width: 100%; }.customer-form-grid { grid-template-columns: 1fr; }.customer-form-grid .wide { grid-column: auto; } }
@media (max-width: 500px) { .customer-directory-tools { align-items: stretch; flex-direction: column; }.customer-dialog-actions { flex-wrap: wrap; }.customer-dialog-actions [data-customer-delete] { width: 100%; margin-right: 0; } }

/* Conversion-focused public booking page */
.public-portfolio-body { background-image: radial-gradient(circle at 8% 5%,color-mix(in srgb,var(--portfolio-accent,#23978e) 10%,transparent),transparent 28%),radial-gradient(circle at 92% 18%,color-mix(in srgb,var(--portfolio-primary,#172d76) 8%,transparent),transparent 27%); }
.public-portfolio-nav { min-height: 48px; padding: 8px 0; }.public-portfolio-brand { text-decoration: none; }.public-portfolio-powered { padding: 8px 11px; border: 1px solid color-mix(in srgb,var(--portfolio-text,#526b73) 16%,transparent); border-radius: 999px; text-decoration: none; background: color-mix(in srgb,var(--portfolio-background,#f4fcfc) 84%,#fff); }
.public-hero-reassurance { display: flex; flex-wrap: wrap; gap: 13px 18px; margin-top: 24px; color: var(--portfolio-text,#526b73); font-size: .68rem; font-weight: 700; }.public-hero-reassurance span { display: inline-flex; align-items: center; gap: 6px; }.public-hero-reassurance svg { width: 14px; color: var(--portfolio-accent,#23978e); }
.public-portfolio-placeholder { position: relative; overflow: hidden; background: linear-gradient(145deg,color-mix(in srgb,var(--portfolio-accent,#23978e) 22%,#e9f6f2),color-mix(in srgb,var(--portfolio-primary,#172d76) 13%,#f7f8ff)); }.placeholder-mark { position: absolute; top: 50%; left: 50%; color: color-mix(in srgb,var(--portfolio-primary,#172d76) 21%,transparent); font-size: 15rem; line-height: 1; transform: translate(-50%,-54%); }.placeholder-booking-card { position: absolute; z-index: 2; right: 26px; bottom: 88px; left: 26px; display: flex; align-items: center; gap: 13px; padding: 16px; border: 1px solid rgba(255,255,255,.7); border-radius: 13px; color: #243040; background: rgba(255,255,255,.9); box-shadow: 0 18px 40px rgba(31,54,67,.14); backdrop-filter: blur(10px); }.placeholder-booking-card > span { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 11px; color: #fff; background: var(--portfolio-accent,#23978e); }.placeholder-booking-card svg { position: static; width: 19px; height: 19px; }.placeholder-booking-card div { display: grid; gap: 3px; }.placeholder-booking-card small { color: #73808b; font-size: .62rem; font-weight: 700; }.placeholder-booking-card strong { font-size: .76rem; }.placeholder-dot-grid { position: absolute; top: 34px; right: 34px; width: 86px; height: 86px; opacity: .28; background-image: radial-gradient(var(--portfolio-accent,#23978e) 2px,transparent 2px); background-size: 13px 13px; }
.public-section-heading > p { max-width: 560px; margin: 2px 0 0; color: var(--portfolio-text,#526b73); font-size: .84rem; line-height: 1.55; }.public-service-card { position: relative; display: flex; flex-direction: column; overflow: hidden; transition: transform 180ms ease,box-shadow 180ms ease,border-color 180ms ease; }.public-service-card:hover { border-color: color-mix(in srgb,var(--portfolio-accent,#23978e) 38%,transparent); box-shadow: 0 18px 42px color-mix(in srgb,var(--portfolio-primary,#172d76) 10%,transparent); transform: translateY(-5px); }.public-service-card > div { margin-top: auto; padding-top: 22px; }.public-service-select { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: 17px; padding: 11px 0 0; border: 0; border-top: 1px solid color-mix(in srgb,var(--portfolio-text,#526b73) 14%,transparent); color: var(--portfolio-primary,#172d76); background: transparent; font: inherit; font-size: .7rem; font-weight: 800; cursor: pointer; }.public-service-select svg { width: 15px; transition: transform 150ms ease; }.public-service-select:hover svg { transform: translateX(4px); }
.public-booking-copy { align-self: start; padding: 16px 6px 0; }.public-booking-copy h2 { max-width: 480px; font-size: clamp(2rem,3.5vw,3rem); }.public-booking-copy > p { max-width: 440px; font-size: .88rem; line-height: 1.65; }.public-booking-promises { display: grid; gap: 10px; margin-top: 22px; }.public-booking-promises span { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.88); font-size: .72rem; font-weight: 700; }.public-booking-promises svg { width: 16px; padding: 3px; border-radius: 50%; color: var(--portfolio-primary,#172d76); background: #fff; }
.public-booking-form { padding: 26px !important; border: 1px solid rgba(255,255,255,.72); }.public-booking-form-heading { display: flex; align-items: center; gap: 11px; padding-bottom: 15px; border-bottom: 1px solid #e8eaed; }.public-booking-form-heading > span { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; color: #fff; background: var(--portfolio-accent,#23978e); font-size: .72rem; font-weight: 800; }.public-booking-form-heading div { display: grid; gap: 3px; }.public-booking-form-heading strong { color: #26313b; font-size: .82rem; }.public-booking-form-heading small { color: #89919a; font-size: .61rem; }.public-booking-form input,.public-booking-form select,.public-booking-form textarea { transition: border-color 140ms ease,box-shadow 140ms ease,background 140ms ease; }.public-booking-form button.public-portfolio-primary { min-height: 48px; margin-top: 3px; font-size: .76rem; box-shadow: 0 12px 25px color-mix(in srgb,var(--portfolio-primary,#172d76) 22%,transparent); }.public-booking-privacy { display: flex !important; align-items: center; justify-content: center; gap: 6px; margin: -2px 0 0 !important; color: #87909a !important; font-size: .59rem !important; text-align: center; }.public-booking-privacy svg { width: 13px; }
@media (max-width: 900px) { .public-hero-reassurance { justify-content: center; }.public-booking-copy { padding: 0; }.public-booking-promises { grid-template-columns: repeat(3,minmax(0,1fr)); }.public-booking-promises span { justify-content: center; text-align: center; } }
@media (max-width: 620px) { .public-portfolio-powered { font-size: 0; }.public-portfolio-powered svg { width: 16px;height:16px; }.public-hero-reassurance { align-items: flex-start; flex-direction: column; }.placeholder-mark { font-size: 11rem; }.placeholder-booking-card { right: 14px;bottom:72px;left:14px; }.public-booking-promises { grid-template-columns: 1fr; }.public-booking-promises span { justify-content: flex-start; }.public-booking-form { padding: 18px !important; } }

.public-portfolio-hero { position: relative; }.public-portfolio-copy h1 { letter-spacing: -.055em; }.public-portfolio-image { border: 8px solid rgba(255,255,255,.72); border-radius: 28px !important; box-shadow: 0 35px 90px color-mix(in srgb,var(--portfolio-primary,#172d76) 20%,transparent); transform: rotate(1.2deg); }.public-portfolio-image:after { position:absolute;inset:0;border:1px solid rgba(255,255,255,.7);border-radius:20px;content:"";pointer-events:none; }.hero-floating-note { position:absolute;z-index:4;display:flex;align-items:center;gap:10px;padding:11px 14px;border:1px solid rgba(255,255,255,.8);border-radius:14px;color:#263644;background:rgba(255,255,255,.92);box-shadow:0 16px 38px rgba(24,47,61,.14);backdrop-filter:blur(10px);animation:hero-note-float 4.5s ease-in-out infinite; }.hero-floating-note > svg { width:17px;color:var(--portfolio-accent,#23978e); }.hero-floating-note span { display:grid;gap:2px; }.hero-floating-note small { color:#82909a;font-size:.55rem;font-weight:700; }.hero-floating-note strong { font-size:.67rem; }.hero-note-top { top:58px;right:-18px; }.hero-note-bottom { bottom:48px;left:-22px;animation-delay:-2.2s; }.booking-manage-link { display:inline-flex;align-items:center;gap:7px;margin-top:12px;color:#176148;font-size:.72rem;font-weight:800;text-decoration:none; }.booking-manage-link svg { width:15px; }.public-booking-result > div > small { display:block;margin-top:7px;color:#58816f;font-size:.58rem; }
@keyframes hero-note-float { 50% { transform:translateY(-7px); } }

.booking-manage-body { min-height:100vh;margin:0;color:#25303d;background:radial-gradient(circle at 10% 5%,#e3f5ef,transparent 34%),radial-gradient(circle at 90% 18%,#e7e5ff,transparent 30%),#f7f8fb;font-family:"DM Sans",Inter,sans-serif; }.booking-manage-shell { width:min(760px,calc(100% - 36px));margin:0 auto;padding:30px 0 48px; }.booking-manage-brand { display:inline-flex;align-items:center;gap:9px;margin-bottom:34px;color:#1f2b38;font-size:.82rem;font-weight:800;text-decoration:none; }.booking-manage-brand > span { display:grid;width:32px;height:32px;place-items:center;overflow:hidden;border-radius:9px;background:#111827; }.booking-manage-brand img { width:100%;height:100%;object-fit:cover; }.booking-manage-card { overflow:hidden;border:1px solid #e1e5e9;border-radius:22px;background:#fff;box-shadow:0 28px 80px rgba(27,38,52,.1); }.booking-manage-heading { display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:15px;align-items:center;padding:26px 28px;border-bottom:1px solid #eaecf0;background:linear-gradient(135deg,#fff,#faf9ff); }.booking-state-icon { display:grid;width:52px;height:52px;place-items:center;border-radius:15px;color:#fff;background:#23978e;box-shadow:0 9px 20px rgba(35,151,142,.2); }.booking-state-icon.cancelled { background:#9097a2;box-shadow:none; }.booking-state-icon svg { width:23px; }.booking-manage-heading small { color:#7669dc;font-size:.62rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase; }.booking-manage-heading h1 { margin:4px 0 3px;font-family:"Space Grotesk",Inter,sans-serif;font-size:1.45rem; }.booking-manage-heading p { margin:0;color:#858d99;font-size:.68rem; }.booking-manage-flashes { padding:16px 28px 0; }.booking-current-details { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:24px 28px; }.booking-current-details > div { display:flex;min-width:0;align-items:flex-start;gap:9px;padding:13px;border:1px solid #e7e9ed;border-radius:12px;background:#fafbfc; }.booking-current-details svg { width:17px;flex:0 0 17px;color:#6556e8; }.booking-current-details span { display:grid;min-width:0;gap:4px; }.booking-current-details small { color:#8d949f;font-size:.57rem;font-weight:700; }.booking-current-details strong { overflow:hidden;font-size:.66rem;text-overflow:ellipsis; }.booking-manage-actions { padding:0 28px 28px; }.booking-reschedule-form { display:grid;grid-template-columns:minmax(0,1.2fr) repeat(2,minmax(120px,.7fr));gap:12px;align-items:end;padding:20px;border:1px solid #dfdcf8;border-radius:15px;background:#f9f8ff; }.booking-reschedule-form > div > span { font-size:.75rem;font-weight:800; }.booking-reschedule-form > div p,.booking-cancel-form p { margin:5px 0 0;color:#858c98;font-size:.62rem;line-height:1.4; }.booking-reschedule-form label { display:grid;gap:6px;color:#555d69;font-size:.61rem;font-weight:750; }.booking-reschedule-form input { min-height:42px;padding:8px 9px;border:1px solid #dcdfe5;border-radius:10px;background:#fff;font:inherit;font-size:.67rem; }.booking-reschedule-form button { grid-column:2/4;width:100%;border:0;cursor:pointer; }.booking-cancel-form { display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:16px;padding:16px 2px 0; }.booking-cancel-form strong { font-size:.72rem; }.booking-cancel-form button { display:inline-flex;align-items:center;gap:7px;padding:9px 11px;border:1px solid #efcaca;border-radius:9px;color:#ad3b3b;background:#fff6f6;font:inherit;font-size:.63rem;font-weight:750;cursor:pointer; }.booking-cancel-form svg { width:15px; }.booking-cancelled-message { display:flex;gap:12px;margin:0 28px 28px;padding:16px;border-radius:12px;color:#59616d;background:#f0f2f4; }.booking-cancelled-message svg { width:19px; }.booking-cancelled-message strong { font-size:.75rem; }.booking-cancelled-message p { margin:5px 0 0;font-size:.66rem; }.booking-manage-shell footer { display:flex;align-items:center;justify-content:center;gap:7px;margin-top:18px;color:#858d99;font-size:.61rem; }.booking-manage-shell footer svg { width:14px; }.booking-not-found { display:grid;justify-items:center;padding:60px 30px;text-align:center; }.booking-not-found > span { display:grid;width:58px;height:58px;place-items:center;border-radius:17px;color:#6556e8;background:#efedff; }.booking-not-found h1 { margin:18px 0 7px; }.booking-not-found p { max-width:430px;margin:0;color:#7d8592;line-height:1.6; }
@media(max-width:900px){.hero-note-top{right:4px}.hero-note-bottom{left:4px}}@media(max-width:650px){.hero-floating-note{display:none}.booking-manage-heading{grid-template-columns:46px minmax(0,1fr)}.booking-manage-heading>.customer-status{grid-column:2}.booking-current-details{grid-template-columns:1fr}.booking-reschedule-form{grid-template-columns:1fr}.booking-reschedule-form button{grid-column:auto}.booking-cancel-form{align-items:flex-start;flex-direction:column}.booking-manage-heading,.booking-current-details,.booking-manage-actions{padding-right:18px;padding-left:18px}}

.agent-sidebar-subnav{display:grid;gap:2px;margin:3px 0 8px 43px;padding-left:11px;border-left:1px solid #dde0e7}.agent-sidebar-subnav a{padding:6px 8px;border-radius:7px;color:#868d9a;font-size:.61rem;font-weight:650;text-decoration:none}.agent-sidebar-subnav a:hover,.agent-sidebar-subnav a.active{color:#5546cf;background:#efedff}.agent-workspace{display:grid;width:100%;gap:18px}.agent-tabbar{display:flex;gap:4px;overflow-x:auto;padding:5px;border:1px solid #e2e5e9;border-radius:13px;background:#fff}.agent-tabbar a{flex:0 0 auto;padding:8px 11px;border-radius:8px;color:#777f8d;font-size:.63rem;font-weight:750;text-decoration:none}.agent-tabbar a.active{color:#fff;background:#6556e8;box-shadow:0 5px 12px rgba(101,86,232,.2)}.agent-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(135deg,#fff,#f4f2ff)!important}.agent-hero h2{margin:10px 0 6px;font-size:1.55rem}.agent-hero p{max-width:650px;margin:0;color:#737b89}.agent-hero form{display:flex;align-items:center;gap:10px}.agent-live-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;color:#277252;background:#e6f6ee;font-size:.61rem;font-weight:800}.agent-live-pill i{width:7px;height:7px;border-radius:50%;background:#30a46c;box-shadow:0 0 0 4px rgba(48,164,108,.12)}.agent-live-pill.off{color:#727986;background:#eceef1}.agent-live-pill.off i{background:#9097a2;box-shadow:none}.agent-master-toggle{display:flex;align-items:center;gap:8px;font-size:.68rem}.agent-master-toggle>span{display:none}.agent-master-toggle b{white-space:nowrap}.agent-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.agent-metric-grid article{display:grid;grid-template-columns:38px 1fr;gap:5px 11px;align-items:center;padding:17px;border:1px solid #e4e6eb;border-radius:13px;background:#fff}.agent-metric-grid article>span{display:grid;grid-row:1/3;width:38px;height:38px;place-items:center;border-radius:10px;color:#6556e8;background:#efedff}.agent-metric-grid svg{width:17px}.agent-metric-grid small{color:#858d99;font-size:.59rem;font-weight:700}.agent-metric-grid strong{font-size:1.15rem}.agent-metric-grid .attention{border-color:#f0d2b9}.agent-metric-grid .attention>span{color:#a7651e;background:#fff0dc}.agent-overview-grid,.agent-two-column{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:18px}.agent-card-heading,.agent-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:18px}.agent-card-heading h3,.agent-panel-heading h2{margin:5px 0 0}.agent-card-heading a{color:#6556e8;font-size:.65rem;font-weight:750;text-decoration:none}.agent-activity-list,.agent-attention-list,.agent-log-table{display:grid;gap:7px}.agent-activity-list>div,.agent-log-table>div{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:11px;align-items:center;padding:11px;border:1px solid #e9ebee;border-radius:10px}.agent-activity-list>div>span,.agent-log-table>div>span{display:grid;width:36px;height:36px;place-items:center;border-radius:9px;color:#6556e8;background:#efedff}.agent-activity-list svg,.agent-log-table svg{width:16px}.agent-activity-list div div,.agent-log-table div div{display:grid;gap:3px}.agent-activity-list strong,.agent-log-table strong{font-size:.7rem}.agent-activity-list small,.agent-log-table small{color:#858d99;font-size:.59rem}.agent-activity-list time,.agent-log-table time{color:#969da8;font-size:.57rem}.agent-attention-list a{display:grid;grid-template-columns:34px minmax(0,1fr) 16px;gap:10px;align-items:center;padding:10px;border-radius:9px;color:inherit;background:#faf9ff;text-decoration:none}.agent-attention-list a>span,.agent-avatar{display:grid;width:34px;height:34px;place-items:center;border-radius:9px;color:#5546cf;background:#e5e1ff;font-size:.65rem;font-weight:800}.agent-attention-list div{display:grid;gap:2px}.agent-attention-list strong{font-size:.68rem}.agent-attention-list small{overflow:hidden;color:#858d99;font-size:.58rem;text-overflow:ellipsis;white-space:nowrap}.agent-attention-list svg{width:14px}.agent-empty{display:grid;justify-items:center;padding:38px 20px;color:#858d99;text-align:center}.agent-empty>svg{width:28px;margin-bottom:9px}.agent-empty strong{color:#505866;font-size:.74rem}.agent-empty span{max-width:420px;margin-top:5px;font-size:.62rem;line-height:1.5}.agent-empty.compact{padding:28px 12px}.agent-panel{grid-column:1/-1}.agent-panel>p,.agent-panel-heading p{margin:6px 0 0;color:#7c8491;font-size:.7rem}.agent-panel-heading>span{padding:6px 9px;border-radius:999px;color:#6556e8;background:#efedff;font-size:.61rem;font-weight:800}.agent-conversation-list{display:grid;gap:7px}.agent-conversation-list details{border:1px solid #e5e7eb;border-radius:11px;overflow:hidden}.agent-conversation-list summary{display:grid;grid-template-columns:36px minmax(0,1fr) auto auto 16px;gap:11px;align-items:center;padding:12px;cursor:pointer;list-style:none}.agent-conversation-list summary::-webkit-details-marker{display:none}.agent-conversation-list summary>div{display:grid;gap:3px}.agent-conversation-list summary strong{font-size:.7rem}.agent-conversation-list summary small,.agent-conversation-list time{color:#89919d;font-size:.58rem}.agent-conversation-list summary>svg{width:15px}.agent-conversation-list details[open] summary>svg{transform:rotate(180deg)}.agent-conversation-detail{display:grid;grid-template-columns:1fr .7fr;gap:14px;padding:14px;border-top:1px solid #e8eaee;background:#f9fafb}.agent-message-bubble{padding:13px;border-radius:10px;background:#fff}.agent-message-bubble small{color:#6556e8;font-size:.58rem;font-weight:750}.agent-message-bubble p{margin:7px 0 0;font-size:.7rem;line-height:1.55;white-space:pre-wrap}.agent-conversation-detail dl{display:grid;gap:7px;margin:0}.agent-conversation-detail dl>div{display:flex;justify-content:space-between;gap:12px;padding:8px;border-bottom:1px solid #e7e9ed;font-size:.61rem}.agent-conversation-detail dt{color:#858d99}.agent-conversation-detail dd{margin:0;font-weight:700}.agent-knowledge-grid,.agent-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:18px 0}.agent-knowledge-grid>div{display:grid;gap:5px;padding:12px;border:1px solid #e6e8ec;border-radius:10px;background:#fafbfc}.agent-knowledge-grid small{color:#8a929e;font-size:.58rem}.agent-knowledge-grid strong{font-size:.69rem}.agent-panel h3{margin:22px 0 10px;font-size:.82rem}.agent-service-sync{display:grid;gap:6px;margin-bottom:16px}.agent-service-sync>div{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px;border-radius:9px;background:#f7f8fa}.agent-service-sync span{display:grid;gap:2px}.agent-service-sync strong{font-size:.67rem}.agent-service-sync small{color:#89919d;font-size:.56rem}.agent-service-sync b{font-size:.63rem}.agent-settings-panel{max-width:900px}.agent-settings-form{max-width:760px}.agent-form-grid label{display:grid;gap:7px;font-size:.67rem;font-weight:750}.agent-form-grid .wide{grid-column:1/-1}.agent-form-grid input,.agent-form-grid select,.agent-form-grid textarea{width:100%;min-height:42px;padding:9px 10px;border:1px solid #dfe2e7;border-radius:10px;background:#fbfcfd;font:inherit;font-size:.69rem}.input-suffix{display:flex;align-items:center;border:1px solid #dfe2e7;border-radius:10px;background:#fbfcfd}.input-suffix input{border:0!important}.input-suffix small{padding-right:10px;color:#8b929e}.agent-log-table code{margin-right:7px;padding:2px 4px;border-radius:4px;color:#6556e8;background:#efedff;font-size:.54rem}.agent-test-panel{max-width:800px}.agent-test-empty{display:flex;gap:14px;margin:22px 0;padding:18px;border:1px dashed #cbc5f5;border-radius:13px;background:#f9f8ff}.agent-test-empty>span{display:grid;width:44px;height:44px;flex:0 0 44px;place-items:center;border-radius:12px;color:#6556e8;background:#e9e6ff}.agent-test-empty svg{width:20px}.agent-test-empty strong{font-size:.72rem}.agent-test-empty p{margin:5px 0 0;color:#7f8794;font-size:.64rem;line-height:1.5}.agent-test-composer{display:flex;gap:8px}.agent-test-composer input{flex:1;min-height:44px;padding:0 12px;border:1px solid #e0e3e8;border-radius:10px;background:#f4f5f7}.agent-test-composer :disabled{opacity:.58;cursor:not-allowed}
@media(max-width:900px){.agent-metric-grid{grid-template-columns:repeat(2,1fr)}.agent-overview-grid,.agent-two-column{grid-template-columns:1fr}.agent-hero{align-items:flex-start;flex-direction:column}.agent-conversation-list summary{grid-template-columns:36px minmax(0,1fr) auto}.agent-conversation-list summary time,.agent-conversation-list summary>svg{display:none}}@media(max-width:600px){.agent-metric-grid{grid-template-columns:1fr}.agent-hero form{align-items:flex-start;flex-direction:column}.agent-form-grid,.agent-knowledge-grid,.agent-conversation-detail{grid-template-columns:1fr}.agent-form-grid .wide{grid-column:auto}.agent-activity-list>div,.agent-log-table>div{grid-template-columns:34px 1fr}.agent-activity-list time,.agent-log-table time{grid-column:2}.agent-conversation-list summary{grid-template-columns:34px 1fr}.agent-conversation-list summary>.customer-status{grid-column:2}.agent-sidebar-subnav{display:none}}

.agent-knowledge-library{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.42fr);gap:22px;align-items:start;background:linear-gradient(135deg,#fff 55%,#f4f2ff)!important}.agent-library-intro{display:flex;gap:15px}.agent-library-icon{display:grid;width:50px;height:50px;flex:0 0 50px;place-items:center;border-radius:14px;color:#fff;background:linear-gradient(145deg,#6556e8,#8b7cf0);box-shadow:0 12px 24px rgba(101,86,232,.2)}.agent-library-icon svg{width:23px}.agent-library-intro h2{margin:6px 0;font-size:1.35rem}.agent-library-intro p{max-width:620px;margin:0;color:#747c89;font-size:.7rem;line-height:1.55}.agent-storage{display:grid;gap:8px;padding:13px;border:1px solid #dfdcfa;border-radius:11px;background:rgba(255,255,255,.8)}.agent-storage>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:.61rem}.agent-storage span{color:#7e8693}.agent-storage strong{font-size:.62rem}.agent-storage-track{height:7px;overflow:hidden;border-radius:999px;background:#e7e4f8}.agent-storage-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#6556e8,#9a8df0)}.agent-upload-zone{display:flex;grid-column:1/-1;align-items:stretch;gap:10px}.agent-upload-zone label{position:relative;display:flex;flex:1;min-height:110px;align-items:center;justify-content:center;border:1.5px dashed #bcb5ed;border-radius:14px;background:rgba(249,248,255,.8);cursor:pointer;transition:150ms ease}.agent-upload-zone label:hover{border-color:#6556e8;background:#f4f2ff}.agent-upload-zone input{position:absolute;width:1px;height:1px;opacity:0}.agent-upload-zone label>span{display:grid;justify-items:center;gap:5px;text-align:center}.agent-upload-zone label svg{width:24px;margin-bottom:3px;color:#6556e8}.agent-upload-zone label strong{font-size:.72rem}.agent-upload-zone label small{color:#858d99;font-size:.6rem}.agent-upload-zone .btn{align-self:center;white-space:nowrap}.agent-upload-zone .btn svg{width:15px}.agent-file-list{display:grid;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.agent-file-list>div{display:grid;grid-template-columns:38px minmax(0,1fr) 32px;gap:10px;align-items:center;padding:11px;border:1px solid #e5e7eb;border-radius:11px;background:#fff}.agent-file-list>div>span{display:grid;width:38px;height:38px;place-items:center;border-radius:10px;color:#6556e8;background:#efedff}.agent-file-list svg{width:17px}.agent-file-list>div>div{display:grid;min-width:0;gap:3px}.agent-file-list strong{overflow:hidden;font-size:.68rem;text-overflow:ellipsis;white-space:nowrap}.agent-file-list small{color:#8a929e;font-size:.56rem}.agent-file-list button{display:grid;width:30px;height:30px;place-items:center;border:0;border-radius:8px;color:#a74747;background:#fff1f1;cursor:pointer}.agent-file-list button svg{width:14px}
@media(max-width:760px){.agent-knowledge-library{grid-template-columns:1fr}.agent-upload-zone{align-items:stretch;flex-direction:column}.agent-upload-zone .btn{width:100%;justify-content:center}.agent-file-list{grid-template-columns:1fr}}

/* Keep AI Agent tabs compact when the dashboard content grid has spare height. */
.agent-workspace { align-self: start; align-content: start; grid-auto-rows: max-content; }
.agent-tabbar { height: fit-content; min-height: 0; align-items: center; align-self: start; }
.agent-tabbar a { display: inline-flex; min-height: 32px; align-items: center; padding-top: 0; padding-bottom: 0; line-height: 1; }

.staff-workspace{display:grid;width:100%;align-self:start;gap:18px}.staff-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(135deg,#fff 52%,#f0edff)!important}.staff-hero h2{max-width:720px;margin:6px 0;font-size:1.55rem}.staff-hero p{max-width:760px;margin:0;color:#747c89;line-height:1.55}.staff-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.staff-metrics article{display:flex;align-items:center;gap:12px;padding:16px 18px;border:1px solid #e3e6ea;border-radius:13px;background:#fff}.staff-metrics article>svg{width:20px;height:20px;padding:10px;box-sizing:content-box;border-radius:11px;color:#6556e8;background:#efedff}.staff-metrics span{display:grid;gap:3px}.staff-metrics small{color:#858d99;font-size:.61rem}.staff-metrics strong{font-size:1.2rem}.staff-directory{padding:0!important;overflow:hidden}.staff-directory>header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:21px 24px;border-bottom:1px solid #e8eaee}.staff-directory h2{margin:5px 0 0;font-size:1.15rem}.staff-directory>header label{display:flex;width:min(280px,35vw);align-items:center;gap:7px;padding:0 11px;border:1px solid #dfe2e7;border-radius:10px;background:#fafbfc}.staff-directory>header svg{width:15px;color:#8a929e}.staff-directory>header input{width:100%;min-height:39px;border:0;outline:0;background:transparent;font:inherit;font-size:.68rem}.staff-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px}.staff-card{display:flex;min-width:0;flex-direction:column;padding:18px;border:1px solid #e4e7eb;border-radius:14px;background:linear-gradient(145deg,#fff,#fbfcfd);transition:160ms ease}.staff-card:hover{border-color:#c9c3f5;box-shadow:0 14px 32px rgba(39,31,104,.08);transform:translateY(-3px)}.staff-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.staff-avatar{display:grid;width:45px;height:45px;place-items:center;border-radius:13px;color:#fff;background:linear-gradient(145deg,#6556e8,#8a7bec);font-size:.72rem;font-weight:850;box-shadow:0 9px 18px rgba(101,86,232,.2)}.staff-state{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;color:#277252;background:#e6f6ee;font-size:.57rem;font-weight:800}.staff-state i{width:6px;height:6px;border-radius:50%;background:#30a46c}.staff-state.state-absent,.staff-state.state-sick{color:#ae3434;background:#ffebec}.staff-state.state-absent i,.staff-state.state-sick i{background:#df4b4b}.staff-state.state-leave{color:#8a6118;background:#fff3d5}.staff-state.state-leave i{background:#d99b2b}.staff-state.state-custom{color:#5d4fc4;background:#efedff}.staff-card h3{margin:14px 0 3px;font-size:.86rem}.staff-card>p{margin:0;color:#838b98;font-size:.63rem}.staff-contact-lines{display:grid;gap:6px;margin:14px 0}.staff-contact-lines a{display:flex;min-width:0;align-items:center;gap:7px;overflow:hidden;color:#626a77;font-size:.61rem;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.staff-contact-lines svg{width:14px;flex:0 0 14px;color:#8d84df}.staff-pay-line{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-top:auto;padding:12px;border-radius:10px;background:#f6f5ff}.staff-pay-line span{display:grid;gap:2px}.staff-pay-line small{color:#898f9b;font-size:.54rem}.staff-pay-line strong{font-size:.8rem}.staff-pay-line b{color:#6556e8;font-size:.57rem}.staff-current-reason{display:flex!important;align-items:center;gap:6px;margin-top:9px!important;padding:8px;border-radius:8px;color:#845d1c!important;background:#fff5dc;font-size:.58rem!important}.staff-current-reason svg{width:13px}.staff-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}.staff-card-actions button{display:flex;min-height:35px;align-items:center;justify-content:center;gap:6px;border:1px solid #dfe2e7;border-radius:9px;color:#626a78;background:#fff;font:inherit;font-size:.6rem;font-weight:750;cursor:pointer}.staff-card-actions button:hover{color:#5546cf;border-color:#c8c1f4;background:#f7f5ff}.staff-card-actions svg{width:14px}.staff-empty,.staff-no-results{display:grid;justify-items:center;padding:55px 25px;text-align:center}.staff-empty>span{display:grid;width:56px;height:56px;place-items:center;border-radius:16px;color:#6556e8;background:#efedff}.staff-empty h3{margin:15px 0 6px}.staff-empty p{max-width:430px;margin:0 0 18px;color:#818995;font-size:.7rem;line-height:1.55}.staff-no-results{color:#858d99;font-size:.7rem}.staff-dialog{position:fixed;z-index:240;inset:0;display:grid;place-items:center;padding:20px;overflow-y:auto;background:rgba(17,24,39,.5);backdrop-filter:blur(4px);opacity:0;visibility:hidden;transition:150ms ease}.staff-dialog.is-visible{opacity:1;visibility:visible}.staff-dialog-card{width:min(100%,700px);max-height:calc(100dvh - 40px);overflow-y:auto;padding:25px;border:1px solid #dfe2e7;border-radius:18px;background:#fff;box-shadow:0 30px 90px rgba(17,24,39,.28);transform:translateY(8px) scale(.985);transition:170ms ease}.staff-dialog.is-visible .staff-dialog-card{transform:none}.staff-dialog-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.staff-dialog-card>header h2{margin:5px 0 0;font-size:1.3rem}.staff-dialog-card>header p{margin:5px 0 0;color:#828a97;font-size:.64rem}.staff-dialog-card>header>button{display:grid;width:34px;height:34px;place-items:center;border:1px solid #e0e3e8;border-radius:9px;background:#fff;cursor:pointer}.staff-dialog-card>header svg{width:16px}.staff-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.staff-form-grid label,.staff-inline-form label{display:grid;gap:6px;color:#4d5562;font-size:.64rem;font-weight:750}.staff-form-grid .wide{grid-column:1/-1}.staff-form-grid input,.staff-form-grid select,.staff-form-grid textarea,.staff-inline-form input,.staff-inline-form select,.staff-inline-form textarea{width:100%;min-height:41px;padding:9px 10px;border:1px solid #dfe2e7;border-radius:9px;outline:0;background:#fbfcfd;font:inherit;font-size:.68rem;resize:vertical}.staff-form-grid input:focus,.staff-form-grid select:focus,.staff-form-grid textarea:focus,.staff-inline-form input:focus,.staff-inline-form select:focus,.staff-inline-form textarea:focus{border-color:#988cec;box-shadow:0 0 0 3px rgba(101,86,232,.1);background:#fff}.staff-dialog-card form>footer{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;padding-top:17px;border-top:1px solid #e8eaed}.staff-delete{margin-right:auto;color:#ac3d3d!important;border:1px solid #efcaca!important;background:#fff5f5!important}.staff-manage-card{width:min(96vw,1040px)}.staff-manage-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.staff-manage-columns>section{padding:18px;border:1px solid #e3e6ea;border-radius:13px;background:#fafbfc}.staff-manage-columns h3{display:flex;align-items:center;gap:8px;margin:0 0 15px;font-size:.78rem}.staff-manage-columns h3 svg{width:17px;color:#6556e8}.staff-inline-form{display:grid;gap:11px}.staff-inline-form>div{display:grid;grid-template-columns:1fr 1fr;gap:9px}.staff-record-list{display:grid;gap:6px;max-height:260px;margin-top:16px;overflow-y:auto}.staff-record-list>div{display:grid;grid-template-columns:auto minmax(0,1fr) 28px;gap:9px;align-items:center;padding:9px;border:1px solid #e5e7eb;border-radius:9px;background:#fff}.staff-record-list>div>div{display:grid;gap:2px}.staff-record-list strong{font-size:.62rem}.staff-record-list small{color:#8a929e;font-size:.55rem}.staff-record-list form button{display:grid;width:27px;height:27px;place-items:center;border:0;border-radius:7px;color:#a44646;background:#fff0f0;cursor:pointer}.staff-record-list svg{width:13px}.staff-record-list>p{color:#8a929e;font-size:.61rem;text-align:center}.payment-list>div>span{color:#277252;font-size:.62rem;font-weight:800}
@media(max-width:1000px){.staff-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-manage-columns{grid-template-columns:1fr}}@media(max-width:680px){.staff-hero,.staff-directory>header{align-items:flex-start;flex-direction:column}.staff-hero .btn,.staff-directory>header label{width:100%}.staff-metrics,.staff-card-grid{grid-template-columns:1fr}.staff-form-grid{grid-template-columns:1fr}.staff-form-grid .wide{grid-column:auto}.staff-dialog-card form>footer{flex-wrap:wrap}.staff-delete{width:100%;margin-right:0}.staff-inline-form>div{grid-template-columns:1fr}}

.agent-gmail-card{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:15px;align-items:center;background:linear-gradient(135deg,#fff,#f6f8ff)!important}.agent-gmail-mark{display:grid;width:48px;height:48px;place-items:center;border-radius:14px;color:#fff;background:linear-gradient(145deg,#4285f4,#5f63dc);box-shadow:0 10px 24px rgba(66,133,244,.2)}.agent-gmail-mark svg{width:22px}.agent-gmail-card h3{margin:5px 0 3px}.agent-gmail-card p{margin:0;color:#7c8491;font-size:.66rem}.agent-gmail-actions{display:flex;align-items:center;gap:9px}.integration-live{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;color:#277252;background:#e6f6ee;font-size:.59rem;font-weight:800}.integration-live i{width:7px;height:7px;border-radius:50%;background:#30a46c}.integrations-workspace{display:grid;width:100%;align-self:start;gap:18px}.integrations-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(135deg,#fff 55%,#f0edff)!important}.integrations-hero h2{margin:6px 0;font-size:1.55rem}.integrations-hero p{max-width:720px;margin:0;color:#747c89}.integrations-hero>span{display:grid;width:62px;height:62px;place-items:center;border-radius:18px;color:#fff;background:linear-gradient(145deg,#6556e8,#8d7ef1);box-shadow:0 14px 28px rgba(101,86,232,.22)}.integrations-hero svg{width:27px}.integration-card{padding:0!important;overflow:hidden}.integration-card>header{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:14px;align-items:center;padding:22px 24px;border-bottom:1px solid #e8eaee}.gmail-integration-icon{display:grid;width:52px;height:52px;place-items:center;border-radius:15px;color:#fff;background:linear-gradient(145deg,#4285f4,#665bd8)}.gmail-integration-icon svg{width:24px}.integration-card header h2{margin:4px 0 3px}.integration-card header p{margin:0;color:#7d8592;font-size:.65rem}.integration-status{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;color:#777f8c;background:#eceef1;font-size:.58rem;font-weight:800}.integration-status i{width:7px;height:7px;border-radius:50%;background:#969da8}.integration-status.connected{color:#277252;background:#e6f6ee}.integration-status.connected i{background:#30a46c;box-shadow:0 0 0 4px rgba(48,164,108,.12)}.integration-account{display:flex;align-items:center;gap:13px;margin:20px 24px;padding:15px;border:1px solid #dfe3e8;border-radius:12px;background:#fafbfc}.integration-account>span{display:grid;width:43px;height:43px;place-items:center;border-radius:50%;color:#fff;background:#4285f4;font-weight:850}.integration-account>div{display:grid;gap:3px}.integration-account small{color:#8a929e;font-size:.56rem}.integration-account strong{font-size:.72rem}.integration-account p{margin:0;color:#8a929e;font-size:.57rem}.integration-permission-chips{display:flex;flex-wrap:wrap;gap:7px;margin:0 24px 20px}.integration-permission-chips span{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border-radius:8px;color:#616977;background:#f2f3f6;font-size:.59rem;font-weight:700}.integration-permission-chips svg{width:14px;color:#6556e8}.integration-card>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 24px;border-top:1px solid #e8eaee;background:#fafbfc}.integration-unlink{display:inline-flex;align-items:center;gap:7px;color:#a43e3e!important;border:1px solid #efcaca!important;background:#fff5f5!important}.integration-unlink svg{width:15px}.integration-setup{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px}.integration-setup h3{margin:0 0 6px}.integration-setup p{max-width:650px;margin:0;color:#7c8491;font-size:.68rem;line-height:1.55}.integration-setup .btn:disabled{opacity:.55}.integration-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.integration-info-grid article{display:flex;gap:12px}.integration-info-grid article>span{display:grid;width:40px;height:40px;flex:0 0 40px;place-items:center;border-radius:11px;color:#6556e8;background:#efedff}.integration-info-grid svg{width:18px}.integration-info-grid h3{margin:2px 0 6px;font-size:.74rem}.integration-info-grid p{margin:0;color:#7e8693;font-size:.62rem;line-height:1.5}.integration-info-grid code{display:block;max-width:100%;overflow:auto;margin-top:6px;padding:7px;border-radius:7px;color:#5546cf;background:#f1efff;font-size:.55rem;white-space:nowrap}
@media(max-width:800px){.agent-gmail-card{grid-template-columns:44px 1fr}.agent-gmail-actions{grid-column:1/-1}.integration-info-grid{grid-template-columns:1fr}.integration-setup{align-items:flex-start;flex-direction:column}.integration-card>header{grid-template-columns:48px 1fr}.integration-status{grid-column:2;justify-self:start}}@media(max-width:560px){.agent-gmail-actions{align-items:stretch;flex-direction:column}.integration-card>footer{align-items:stretch;flex-direction:column}.integration-card>footer .btn,.integration-card>footer form,.integration-card>footer button{width:100%;justify-content:center}}
.custom-rule-builder [data-custom-rules]>div{grid-template-columns:110px minmax(0,1fr) 48px 38px;align-items:center}.custom-rule-builder [data-rule-count]{color:#9299a6;font-size:.58rem;text-align:right}
.ai-message-list details.email-reader-open{position:fixed;inset:5vh max(24px,8vw);z-index:80;overflow:auto;margin:0!important;border:1px solid #dfe2ea;border-radius:18px;background:#fff;box-shadow:0 30px 100px rgba(11,18,38,.4)}.ai-message-list details.email-reader-open summary{position:sticky;top:0;z-index:2;padding:22px 26px;border-bottom:1px solid #e7e9ee;background:#fff}.ai-message-list details.email-reader-open .ai-email-detail{padding:22px 34px 44px}.ai-message-list details.email-reader-open .ai-email-detail>p{max-width:900px;margin:28px auto 0;font-size:.9rem;line-height:1.75}.ai-email-actions{display:flex!important;align-items:center;gap:8px!important;padding-bottom:18px;border-bottom:1px solid #eceef2}.ai-email-actions button{display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border:1px solid #dfe2e8;border-radius:9px;color:#586273;background:#fff;font:inherit;font-size:.65rem;font-weight:750;cursor:pointer}.ai-email-actions button:hover{color:#5546cf;background:#f4f2ff}.ai-email-actions button.danger{margin-left:auto;color:#b43d45;border-color:#efcdd0;background:#fff6f6}.ai-email-actions svg{width:15px}@media(max-width:700px){.ai-message-list details.email-reader-open{inset:10px}.ai-message-list details.email-reader-open summary{grid-template-columns:38px minmax(0,1fr) auto}.ai-email-actions{flex-wrap:wrap}.ai-email-actions button.danger{margin-left:0}.ai-message-list details.email-reader-open .ai-email-detail{padding:16px}}
/* AI Agent permission centre and test studio */
.agent-settings-panel:has(.agent-permission-groups){max-width:none;padding:0!important;overflow:hidden}.agent-settings-panel:has(.agent-permission-groups)>.agent-panel-heading{padding:25px 28px 0}.agent-settings-panel:has(.agent-permission-groups)>.agent-settings-form{max-width:none}.permission-command{display:flex;align-items:center;gap:14px;margin:0 28px;padding:18px 20px;border-radius:15px;color:#fff;background:linear-gradient(130deg,#5848d6,#796ae9)}.permission-command>span{display:grid;width:44px;height:44px;flex:0 0 44px;place-items:center;border-radius:12px;background:rgba(255,255,255,.15)}.permission-command h3{margin:0 0 4px;color:#fff;font-size:1rem}.permission-command p{margin:0;color:#e8e5ff;font-size:.68rem}.agent-permission-groups{display:grid;gap:26px;padding:25px 28px}.agent-permission-groups section>header{display:flex;align-items:baseline;gap:10px;margin-bottom:12px}.agent-permission-groups section>header span{padding:4px 7px;border-radius:6px;color:#5a4bd2;background:#eeebff;font-size:.55rem;font-weight:850;text-transform:uppercase}.agent-permission-groups section>header h3{margin:0;font-size:.9rem}.permission-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.permission-switch{position:relative;display:grid;grid-template-columns:38px 1fr;gap:11px;align-items:center;padding:14px;border:1px solid #e4e6ec;border-radius:13px;background:#fbfcfd;cursor:pointer;transition:160ms ease}.permission-switch:hover{border-color:#bcb4ef;transform:translateY(-1px)}.permission-switch:has(input:checked){border-color:#aaa0ed;background:#f5f3ff;box-shadow:0 0 0 3px rgba(101,86,232,.07)}.permission-switch>input{position:absolute;opacity:0;pointer-events:none}.permission-check{display:grid;width:34px;height:34px;place-items:center;border:2px solid #ccd1dc;border-radius:10px;color:transparent;background:#fff;transition:160ms ease}.permission-check svg{width:17px}.permission-switch input:checked+.permission-check{border-color:#6253df;color:#fff;background:#6253df;box-shadow:0 6px 15px rgba(98,83,223,.22)}.permission-switch>span:last-child{display:grid;gap:4px}.permission-switch strong{font-size:.72rem}.permission-switch small{color:#7c8594;font-size:.6rem;line-height:1.4}.custom-rule-builder [data-custom-rules]>div{grid-template-columns:110px minmax(0,1fr) 48px 38px;align-items:center}.custom-rule-builder [data-rule-count]{color:#9299a6;font-size:.58rem;text-align:right}.agent-settings-form>button[type=submit]{margin:0 28px 28px}.agent-test-studio{display:grid;gap:16px}.agent-test-intro{display:flex;align-items:center;gap:16px;background:linear-gradient(135deg,#fff,#f4f2ff)!important}.agent-test-intro>span{display:grid;width:52px;height:52px;flex:0 0 52px;place-items:center;border-radius:15px;color:#fff;background:#6253df}.agent-test-intro h2{margin:5px 0}.agent-test-intro p{margin:0;max-width:750px;color:#747d8b;font-size:.72rem;line-height:1.5}.agent-test-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:16px}.agent-test-form-card textarea{resize:vertical}.agent-test-status{min-height:20px;color:#6353d9;font-size:.66rem;font-weight:750}.agent-test-result{display:grid;align-content:center;min-height:420px;background:#faf9ff!important}.agent-test-result>[data-agent-test-placeholder]{display:grid;justify-items:center;gap:8px;color:#868e9c;text-align:center}.agent-test-result>[data-agent-test-placeholder] svg{width:40px;height:40px;color:#6656df}.agent-test-result>[data-agent-test-placeholder] strong{color:#424a57}.agent-test-result>[data-agent-test-placeholder] span{max-width:330px;font-size:.66rem;line-height:1.5}.agent-test-result>[data-agent-test-response] p{min-height:150px;padding:16px;border-radius:13px;background:#fff;white-space:pre-wrap;line-height:1.65}.ai-message-list details.ai-outbound{margin-left:40px;border-left:3px solid #6556e8;background:#faf9ff}.ai-category-test{color:#5b4bd1;background:#efedff}@media(max-width:780px){.permission-card-grid,.agent-test-layout{grid-template-columns:1fr}.permission-command{margin:0 16px}.agent-permission-groups{padding:20px 16px}.agent-settings-form>button[type=submit]{margin:0 16px 20px}.custom-rule-builder [data-custom-rules]>div{grid-template-columns:90px minmax(0,1fr) 38px}.custom-rule-builder [data-rule-count]{display:none}}
.ai-arrival[hidden]{display:none!important}
.ai-message-list details[hidden]{display:none!important}
.mail-selection-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px;border-bottom:1px solid #e5e9f1}
.mail-selection-toolbar label{display:flex;align-items:center;gap:9px;font-size:13px;cursor:pointer}
.mail-selection-toolbar [data-selection-count]{font-size:12px;color:#718096;margin-right:auto}
.ai-mailbox input.mail-selection-checkbox{appearance:none!important;position:relative;width:19px!important;height:19px!important;min-width:19px;margin:0;padding:0!important;border:1.5px solid #aab5c8!important;border-radius:6px!important;background:#fff;cursor:pointer;display:inline-block!important;opacity:1!important}
.ai-mailbox input.mail-selection-checkbox:checked,.ai-mailbox input.mail-selection-checkbox:indeterminate{background:#6253df!important;border-color:#6253df!important}
.ai-mailbox input.mail-selection-checkbox:checked:after{content:'';position:absolute;left:5px;top:2px;width:5px;height:9px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}
.ai-mailbox input.mail-selection-checkbox:indeterminate:after{content:'';position:absolute;left:3px;right:3px;top:7px;height:2px;background:white}
.ai-mailbox input.mail-selection-checkbox:focus-visible{outline:3px solid #aaa3f4;outline-offset:3px}
.ai-message-list summary{grid-template-columns:20px 42px minmax(0,1fr) auto 105px}
.ai-message-list details.mail-selected>summary{background:#f0edff;border-radius:10px}
@media(max-width:800px){.ai-message-list summary{grid-template-columns:20px 32px minmax(0,1fr)}.ai-message-list summary>.ai-category,.ai-message-list summary>time{display:none}}
.mail-thread-entry{padding:20px 0;border-bottom:1px solid #e5e9f1}
.mail-thread-entry header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.mail-thread-entry header small{display:block;color:#718096;overflow-wrap:anywhere}
.mail-thread-entry time{font-size:12px;color:#718096;white-space:nowrap}
.mail-thread-entry p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}
.mail-thread-sent{padding:20px;border-radius:12px;background:#f2f6ff;margin:12px 0}
/* Platform-level admin analytics */
/* Business-owned booking sites and dashboard studio */
.booking-workspace-tabs{display:flex;align-items:center;align-self:start;gap:7px;padding:6px;border:1px solid #e1e4ed;border-radius:14px;background:#eef0f6;width:fit-content;height:fit-content}.booking-workspace-tabs button{border:0;border-radius:10px;padding:13px 18px;color:#70798c;background:transparent;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.booking-workspace-tabs button[aria-pressed=true]{background:white;color:#6556e8;box-shadow:0 3px 9px #2734540b}.booking-studio [hidden]{display:none!important}.actual-booking-preview{display:block;width:100%;height:660px;border:0;background:#fff;border-radius:12px}.studio-preview-canvas[data-device=mobile] .actual-booking-preview{width:360px;max-width:100%;margin:auto}.studio-preview:has(.actual-booking-preview) .studio-preview-canvas{max-height:none;padding:0 12px}.public-service-photo{display:block;width:100%;height:190px;object-fit:cover;border-radius:12px;margin-bottom:16px}.service-editor-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px}.service-editor-heading>div{display:flex;gap:5px}.service-editor-heading button,.service-photo-upload button{padding:7px 10px;border:1px solid #dfe3ef;border-radius:8px;background:#fff;color:#6b648e;cursor:pointer;font-size:12px}.service-editor-heading button:disabled{opacity:.35;cursor:default}.service-photo-upload{display:grid;gap:10px}.service-photo-upload img{width:100%;max-height:150px;object-fit:cover;border-radius:10px}.easy-text-options{margin-top:22px;border-top:1px solid #e5e7ef;padding-top:18px}.easy-text-options summary{cursor:pointer;color:#6556e8;font-weight:700;font-size:13px;margin-bottom:18px}.booking-studio [data-add-service]{margin-top:18px}.booking-site-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.booking-site-metrics strong{font-size:34px}.booking-visits-chart{margin:25px 0;padding:20px;background:#f9faff;border:1px solid #e4e7f0;border-radius:16px}.booking-visits-chart svg{width:100%;height:auto}.booking-visits-chart details{margin-top:18px;font-size:12px}.booking-chart-table{max-height:200px;overflow:auto}.booking-site-settings{max-width:850px}.booking-site-settings>p{font-size:13px;color:#758097;line-height:1.8}.site-control-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.site-danger-zone{border-top:1px solid #edd9db;margin-top:36px;padding-top:22px}.site-danger-zone button{color:#a64954}.site-delete-dialog{width:min(92vw,500px);padding:28px;border:1px solid #e2e4ed;border-radius:20px;box-shadow:0 25px 90px #22243840}.site-delete-dialog::backdrop{background:#20253c80;backdrop-filter:blur(4px)}.site-delete-dialog label{display:grid;gap:8px;margin:20px 0}.site-delete-dialog input{padding:12px;border:1px solid #d7dce7;border-radius:9px;font:inherit}.site-delete-dialog p{font-size:13px;line-height:1.7;color:#737c90}
@media(max-width:850px){.booking-site-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.booking-workspace-tabs{width:100%;flex-wrap:wrap}.booking-workspace-tabs button{padding:11px;font-size:11px}.booking-site-metrics{grid-template-columns:1fr 1fr}.booking-site-metrics .platform-stat-card{padding:15px}}
.booking-studio{display:grid}
.public-portfolio-brand>span,.booking-manage-brand>span{display:grid;place-items:center;font-weight:800;font-size:18px}
.booking-studio{align-content:start!important;gap:25px!important}.studio-intro{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:12px 0 6px}.studio-intro h2{font-size:clamp(26px,3vw,40px);letter-spacing:-1.5px;line-height:1.12;margin:12px 0}.studio-intro p{color:#7c8495;font-size:13px;line-height:1.7}.studio-status{display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:#6a7181;font-size:12px;font-weight:650;padding:13px 17px;border:1px solid #e0e5ed;border-radius:14px;background:#fff}.studio-status a{flex-basis:100%;padding-left:15px;color:#6556e8;text-decoration:none}.studio-status-dot,.studio-save-indicator{display:inline-block;width:7px;height:7px;border-radius:50%;background:#aba7b8}.studio-status-dot.is-live{background:#26a77a;box-shadow:0 0 0 4px #26a77a12}
.studio-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,.9fr);align-items:start;gap:26px}.studio-fields{min-width:0;display:grid;gap:18px;align-content:start}.studio-tabs{display:flex;align-items:center;align-self:start;gap:5px;padding:6px;border:1px solid #e0e4ed;border-radius:14px;background:#ebedf4;height:fit-content}.studio-tabs button{flex:1;display:flex;gap:7px;align-items:center;justify-content:center;border:0;padding:13px 8px;border-radius:10px;background:transparent;color:#8b91a1;font:inherit;font-size:11px;cursor:pointer}.studio-tabs button span{font-weight:750;color:#656e81}.studio-tabs button[aria-pressed=true]{background:#fff;box-shadow:0 3px 9px #28355209;color:#8572e9}.studio-tabs button[aria-pressed=true] span{color:#6556e8}
.booking-studio [data-studio-panel][hidden]{display:none!important}.booking-studio .booking-form-section{margin:0!important;border-radius:19px!important;box-shadow:none!important;background:#fff}.booking-studio .booking-design-layout{display:block}.booking-studio .booking-design-options{grid-template-columns:1fr;gap:13px}.booking-studio .booking-design-option{padding:18px;grid-template-columns:20px 70px 1fr;gap:16px;min-height:103px;border-radius:15px}.booking-studio .design-swatch{width:70px;height:58px;border-radius:10px}.booking-studio .booking-design-option strong{font-size:14px}.booking-studio .booking-design-option small{font-size:12px;line-height:1.6}.booking-studio input[type=radio]{appearance:none;width:18px;height:18px;border:1.5px solid #cbd0dd;border-radius:50%;background:#fff;margin:0}.booking-studio input[type=radio]:checked{border:5px solid #6956e8}.booking-studio input:focus-visible,.studio-tabs button:focus-visible,.studio-device-toggle button:focus-visible{outline:3px solid #c5b9ff;outline-offset:3px}
.studio-preview{position:sticky;top:22px;min-width:0;border:1px solid #e0e4ed;border-radius:20px;background:#edf0f6;overflow:hidden}.studio-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 21px}.studio-preview-heading p{font-size:11px;color:#9299a7;margin:6px 0 0}.studio-device-toggle{display:flex;align-items:center;padding:4px;border:1px solid #dde2ec;background:#e5e8f1;border-radius:10px}.studio-device-toggle button{display:grid;place-items:center;width:34px;height:31px;border:0;border-radius:7px;background:transparent;color:#828a9a;cursor:pointer}.studio-device-toggle button[aria-pressed=true]{background:#fff;color:#6556e8}.studio-device-toggle svg{width:15px;height:15px}.studio-preview-canvas{padding:0 20px 10px;max-height:65vh;overflow:auto}.studio-preview .booking-live-preview{width:100%;margin:0 auto;min-height:400px;box-shadow:0 10px 24px #2631540a;transition:width .2s}.studio-preview-canvas[data-device=mobile] .booking-live-preview{max-width:320px}.studio-preview .booking-preview-hero{padding:25px}.studio-preview .booking-preview-hero h3{font-size:30px}.studio-preview .booking-preview-services{padding:20px 25px}.studio-preview .booking-preview-services>div{grid-template-columns:1fr 1fr}.studio-preview-canvas[data-device=mobile] .booking-preview-services>div{grid-template-columns:1fr}.studio-preview .booking-preview-form{margin:15px 20px 22px;flex-wrap:wrap}.studio-preview-note{text-align:center;color:#9299a7;font-size:10px;margin:8px 15px}.studio-full-preview{display:block;text-align:center;margin:14px;color:#6556e8;font-size:12px;text-decoration:none}.studio-preview-image{display:block;width:100%;height:130px;object-fit:cover}.studio-preview-image[hidden]{display:none}.preview-book-button{display:inline-block;padding:10px 14px;border-radius:8px;color:#fff;background:#6556e8;font-size:11px;font-weight:700}.booking-live-preview[data-preset=warm] .preview-book-button{background:#bd684c}.booking-live-preview[data-preset=bold] .preview-book-button{background:#f5c84b;color:#111827}.booking-live-preview[data-preset=minimal] .preview-book-button{background:#20242c}
.booking-studio .booking-services-grid{grid-template-columns:1fr}.booking-studio .booking-service-row{border:1px solid #e3e6ee;border-radius:14px;background:#fafbfe;padding:18px}.studio-share h3{font-size:25px;letter-spacing:-.6px;margin:12px 0}.studio-share>p{font-size:13px;color:#7e8798;line-height:1.8}.studio-share>label{display:grid;gap:9px;font-size:12px;font-weight:650;margin:24px 0 12px}.studio-share input{width:100%;border:1px solid #dfe4ee;border-radius:10px;padding:13px;background:#f6f7fb;color:#586177;font:inherit}.studio-checklist{padding:18px;border-radius:12px;background:#f5f7fb;margin-top:25px}.studio-checklist h4{margin:0 0 12px;font-size:13px}.studio-checklist p{font-size:12px;color:#68728a}
.studio-savebar{position:sticky;bottom:12px;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 20px;border:1px solid #dedfeb;border-radius:16px;background:rgba(255,255,255,.97);box-shadow:0 12px 40px #29334f16;backdrop-filter:blur(12px)}.studio-savebar>div:first-child{display:flex;align-items:center;gap:9px;font-size:12px;color:#7b8497}.booking-settings-form[data-dirty=true] .studio-save-indicator{background:#df9e42}.studio-savebar .booking-page-actions{flex-wrap:wrap}.studio-savebar .btn{white-space:nowrap}
@media(max-width:1150px){.studio-layout{grid-template-columns:minmax(0,1fr)}.studio-preview{position:static}.studio-preview-canvas{max-height:600px}.studio-preview .booking-live-preview{max-width:650px}.studio-intro{align-items:flex-start}}@media(max-width:600px){.studio-intro{flex-direction:column}.studio-savebar{flex-wrap:wrap;padding:13px;bottom:6px}.studio-savebar .booking-page-actions{width:100%}.studio-savebar .btn{flex:1;font-size:11px}.studio-tabs button{gap:4px;padding:12px 5px}.studio-tabs button span{font-size:11px}.booking-studio .booking-design-option{grid-template-columns:18px 52px 1fr;padding:13px;gap:10px}.booking-studio .design-swatch{width:52px}.booking-studio .booking-form-grid{grid-template-columns:1fr}}
.platform-stat-card .sales-money{font-size:clamp(22px,2.4vw,34px);letter-spacing:-1px;white-space:pre-line}
.country-breakdown{margin-top:24px;padding:26px;background:#fff;border:1px solid #e2e6f0;border-radius:20px}
.country-breakdown>header{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:24px}.country-breakdown h3{margin:7px 0;font-size:21px;letter-spacing:-.5px}.country-breakdown header p{margin:0;font-size:13px;color:#717b8e}.country-period{display:flex;align-items:center;gap:10px;font-size:12px;color:#626b80;font-weight:600}.country-period select{appearance:auto;border:1px solid #e0e5ef;border-radius:12px;background:#f7f8fc;color:#46516a;font:inherit;padding:11px 14px;min-height:42px}.country-period select:focus-visible{outline:3px solid #c9bfff;outline-offset:2px}
.country-rows{display:grid;gap:20px;max-height:450px;overflow-y:auto;padding-right:4px}.country-row-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px;font-size:14px}.country-name{font-weight:600;color:#3d4760}.country-row-heading>span:last-child{display:flex;align-items:center;gap:16px;white-space:nowrap}.country-row-heading small{color:#7a8498;font-size:12px}.country-row-heading strong{min-width:52px;text-align:right;color:#6550da}.country-track{height:9px;overflow:hidden;border-radius:99px;background:#f0eef8}.country-track>div{height:100%;border-radius:inherit;background:linear-gradient(90deg,#6550da,#a594f9);transition:width .3s ease}.country-disclaimer{font-size:12px;line-height:1.7;color:#80889a;margin:24px 0 0;max-width:850px}.country-empty{font-size:14px;color:#717b8e;padding:20px 0;text-align:center}
@media(max-width:500px){.country-breakdown{padding:18px}.country-row-heading small{display:none}}
.platform-admin-tabs{display:flex;align-items:center;align-self:start;gap:8px;padding:7px;background:#eef1f8;border:1px solid #e0e5ef;border-radius:16px;margin:0;width:fit-content;height:fit-content;min-height:0;max-width:100%;flex-wrap:wrap}
.platform-admin-tabs a{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;padding:12px 18px;min-height:44px;line-height:20px;border-radius:11px;color:#596579;font-size:14px;font-weight:700;text-decoration:none}
.platform-admin-tabs a[aria-current=page]{background:#fff;color:#654de8;box-shadow:0 3px 12px #2334530d}
.platform-admin-tabs a:focus-visible{outline:3px solid #8974ff;outline-offset:2px}
.platform-statistics{padding:clamp(20px,3vw,38px);border:1px solid #e1e6ef;border-radius:24px;background:linear-gradient(130deg,#faf9ff,#fff 65%)}
.platform-stats-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px;flex-wrap:wrap}
.platform-stats-heading h2{font-size:clamp(24px,3vw,34px);letter-spacing:-1px;margin:10px 0}.platform-stats-heading p,.platform-stat-card p{color:#6b7587;line-height:1.6}
.platform-stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.platform-stat-card{padding:26px;border:1px solid #e2e6f0;border-radius:20px;background:#fff;box-shadow:0 8px 24px #26325005;min-width:0}
.platform-stat-card>span{font-size:14px;font-weight:700;color:#626b80;display:flex;align-items:center;gap:9px}.platform-stat-card strong{display:block;font-size:clamp(36px,4vw,58px);letter-spacing:-2px;margin:20px 0 12px;overflow-wrap:anywhere;line-height:1.1}.platform-stat-card p{font-size:13px;margin:0}
.platform-stat-card.live{background:#f0fbf7;border-color:#c7eddf}.platform-live-dot{width:9px;height:9px;background:#18a879;border-radius:50%;box-shadow:0 0 0 5px #18a87915}.platform-stats-note{margin-top:25px;font-size:13px;color:#717b8e;line-height:1.7;max-width:850px}.platform-stats-note>span{font-weight:600;color:#505d75}
@media(max-width:850px){.platform-stats-grid{grid-template-columns:1fr}.platform-stat-card strong{margin:12px 0}.platform-admin-tabs a{padding:10px 12px}}
/* Contact popup and compact service editor */
html.public-email-open{overflow:hidden}
.public-email-dialog{position:fixed;inset:0;margin:auto;width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;box-sizing:border-box;padding:36px;border:1px solid #e6e6ee;border-radius:26px;background:#fff;color:#202537;box-shadow:0 30px 100px #18203735;font-family:"DM Sans",sans-serif;text-align:left}
.public-email-dialog::backdrop{background:rgba(20,25,42,.5);backdrop-filter:blur(7px)}
.public-email-close{position:absolute;right:16px;top:14px;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:#f2f3f7;color:#62697b;font-size:25px;cursor:pointer}
.public-email-symbol{display:grid;place-items:center;width:58px;height:58px;margin-bottom:22px;border-radius:18px;background:color-mix(in srgb,var(--portfolio-primary,#6556e8) 12%,white);color:var(--portfolio-primary,#6556e8);font-size:30px;font-weight:700}
.public-email-business{display:block;color:#81879a;font-size:12px;font-weight:700;overflow-wrap:anywhere}
.public-email-dialog h2{margin:9px 0 12px;font-size:30px;line-height:1.1;letter-spacing:-1px}.public-email-dialog>p{color:#798196;font-size:14px;line-height:1.7}
.public-email-address{display:grid;gap:9px;margin:25px 0 17px;font-size:12px;font-weight:700;color:#71798b}.public-email-address input{width:100%;min-width:0;box-sizing:border-box;border:1px solid #e0e4ee;border-radius:12px;padding:15px 13px;background:#f8f9fc;color:#293146;font-family:inherit;font-size:16px}
.public-email-actions{display:grid;gap:10px}.public-email-actions button,.public-email-actions a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px 16px;box-sizing:border-box;border-radius:12px;font:inherit;font-size:14px;font-weight:700;text-decoration:none;cursor:pointer}.public-email-actions button{border:0;background:var(--portfolio-primary,#6556e8);color:#fff}.public-email-actions a{border:1px solid #e1e5ef;background:#fff;color:#657088}
.public-email-dialog .public-email-status{min-height:22px;margin:15px 0 0;font-size:12px}.public-email-dialog :focus-visible{outline:3px solid #9f93f4;outline-offset:3px}
.booking-studio .booking-service-row{display:block!important;padding:0!important;overflow:hidden;background:#fff;border:1px solid #e0e5ef;border-radius:17px;box-shadow:0 4px 16px #25335704}
.booking-studio .booking-service-row .service-editor-heading{display:flex;align-items:center;padding:18px;gap:12px;background:linear-gradient(110deg,#faf9ff,#fff);border-bottom:1px solid transparent}
.service-number{display:grid;place-items:center;flex:0 0 37px;width:37px;height:37px;border-radius:11px;background:#eeeafd;color:#7764d6;font-size:12px;font-weight:800}
.booking-studio .service-editor-heading .service-heading-copy{display:grid;gap:5px;min-width:0;flex:1}.service-heading-copy strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.service-heading-copy small{font-size:11px;color:#8a92a2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.service-visibility-badge{padding:5px 8px;border-radius:7px;background:#edf8f3;color:#44826d;font-size:10px;font-weight:700}.service-visibility-badge[data-visible=false]{background:#f0f1f5;color:#8b91a0}
.booking-studio .service-editor-heading .service-edit-toggle{min-width:51px;min-height:40px;font-weight:700;color:#7560d7;background:#f0edff;border-color:transparent}
.booking-studio .booking-service-row .service-editor-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:20px;border-top:1px solid #eceef5}
.service-editor-fields>.wide,.service-editor-fields>.booking-visibility{grid-column:1/-1}
.booking-studio .service-editor-fields label{display:grid;gap:8px;font-size:12px;color:#6e778a;font-weight:650}
.booking-studio .service-editor-fields input:not([type=checkbox]):not([type=file]),.booking-studio .service-editor-fields textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid #dfe4ee;border-radius:10px;background:#fbfcfe;color:#344057;font:inherit;font-size:14px;min-height:44px}.booking-studio .service-editor-fields textarea{resize:vertical}
.booking-studio .service-photo-upload{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;align-items:stretch}.booking-studio .service-photo-upload:has(img[hidden]){grid-template-columns:1fr}
.booking-studio .service-photo-upload img{width:100%;height:112px;object-fit:cover;margin:0;border-radius:12px}
.booking-studio .service-photo-upload .service-upload-zone{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:15px;min-height:112px;box-sizing:border-box;border:1.5px dashed #cfc9ec;border-radius:12px;background:#faf9ff;text-align:center;cursor:pointer;overflow:hidden}
.service-upload-zone>span{font-size:24px;color:#8775e0}.service-upload-zone strong{font-size:12px;color:#7964cf}.service-upload-zone small{font-size:10px;color:#9890ac}
.service-upload-zone input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.service-upload-zone:focus-within{outline:3px solid #c7bcf7;outline-offset:2px}
.booking-studio .service-photo-upload [data-photo-remove]{grid-column:1/-1;justify-self:start;background:transparent;border:0;color:#929aaa;font-size:11px;padding:2px;min-height:32px}
.booking-studio .service-editor-fields .booking-visibility{display:flex;align-items:center;gap:10px;font-size:12px}.service-editor-fields .booking-visibility input{appearance:none;flex:0 0 34px;width:34px;height:20px;min-height:0;margin:0;border:0;border-radius:20px;background:#d7dce7;position:relative;cursor:pointer;transition:background .15s}.service-editor-fields .booking-visibility input:before{content:"";position:absolute;width:14px;height:14px;top:3px;left:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #3332;transition:transform .15s}.service-editor-fields .booking-visibility input:checked{background:#7560dc}.service-editor-fields .booking-visibility input:checked:before{transform:translateX(14px)}
.service-card-tools{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #edf0f5;padding-top:15px}.service-card-tools>div{display:flex;gap:5px}.service-card-tools button{border:1px solid #e5e8f0;border-radius:8px;padding:8px 10px;min-height:40px;background:#fff;color:#7d8597;cursor:pointer;font-size:11px}.service-card-tools button:disabled{opacity:.3;cursor:default}.service-card-tools [data-service-remove]{border-color:transparent;color:#b86a72}
.booking-studio [data-add-service]{width:100%;min-height:48px;border:1.5px dashed #d4cdee;background:#faf9ff;color:#7a64d5;border-radius:12px}.booking-studio [data-service-limit]{font-size:11px;color:#989eac;text-align:center}
@media(max-width:600px){.public-email-dialog{padding:28px 22px;border-radius:24px;max-height:calc(100dvh - 32px)}.public-email-dialog h2{font-size:27px}.public-portfolio-actions{display:flex;flex-wrap:wrap;gap:10px}.public-portfolio-actions>a{flex:1 1 140px;min-height:48px;justify-content:center;text-align:center;box-sizing:border-box}.public-portfolio-copy h1{overflow-wrap:anywhere}.public-contact-grid a{overflow-wrap:anywhere}.public-booking-form input,.public-booking-form select,.public-booking-form textarea{font-size:16px!important}}
@media(max-width:480px){.booking-studio .booking-service-row .service-editor-heading{gap:8px;padding:13px}.service-number{flex-basis:30px;width:30px;height:32px}.service-visibility-badge{display:none}.booking-studio .booking-service-row .service-editor-fields{padding:15px;gap:14px}.booking-studio .service-editor-fields input:not([type=checkbox]):not([type=file]),.booking-studio .service-editor-fields textarea{font-size:16px}.service-card-tools{align-items:stretch;flex-direction:column}.service-card-tools>div>button{flex:1}.service-card-tools [data-service-remove]{align-self:flex-end}.booking-studio .service-photo-upload{grid-template-columns:75px minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.service-editor-fields .booking-visibility input,.service-editor-fields .booking-visibility input:before{transition:none}}
/* Unified marketing navigation and responsive application layouts */
body .site-header.marketing-header{position:sticky;top:0;z-index:80;display:flex;align-items:center;justify-content:space-between;flex-direction:row;gap:20px;width:calc(100% - 32px);max-width:1180px;margin:12px auto 0;padding:12px 18px;border:1px solid #e6e8f0;border-radius:16px;background:rgba(255,255,255,.96);backdrop-filter:blur(16px);box-sizing:border-box}
.marketing-header .brand{flex-shrink:0;justify-content:flex-start;font-size:19px;gap:9px}.marketing-header .brand-mark{width:34px;height:34px}.marketing-header .brand-mark img{max-width:100%;max-height:100%;object-fit:contain}
.marketing-header .main-nav{display:flex;gap:20px;font-size:13px;font-weight:650}.marketing-header .main-nav a[aria-current=page]{color:#6652de}.marketing-header .topbar-actions{display:flex;align-items:center;gap:8px;width:auto;flex-direction:row;flex-shrink:0}.marketing-header .topbar-actions .btn{width:auto;min-height:42px;padding:10px 14px;font-size:13px;border-radius:10px}
.marketing-menu-toggle{display:none}.marketing-menu-toggle:focus-visible,.marketing-header a:focus-visible{outline:3px solid #b4a8f8;outline-offset:3px}.sales-home section[id]{scroll-margin-top:100px}
@media(max-width:900px){
 body .site-header.marketing-header{gap:12px;width:calc(100% - 24px);padding:10px 12px;margin:8px auto 0}
 body .site-header.marketing-header .main-nav{display:none;position:absolute;top:calc(100% + 8px);left:0;right:0;flex-direction:column;gap:2px;padding:12px;background:#fff;border:1px solid #e2e6ef;border-radius:14px;box-shadow:0 16px 35px #222b4618;max-height:calc(100dvh - 100px);overflow-y:auto}
 body .site-header.marketing-header.menu-open .main-nav{display:flex}.marketing-header .main-nav a{padding:13px 12px;min-height:44px}.marketing-header .topbar-actions{margin-left:auto}
 body .site-header.marketing-header .topbar-actions .btn-ghost{display:inline-flex}
 body .site-header.marketing-header .topbar-actions{width:auto;flex-direction:row;gap:6px}
 body .site-header.marketing-header .topbar-actions .btn{width:auto;padding:10px 12px;min-height:42px}
 .marketing-header .topbar-actions svg{display:none}
 .marketing-menu-toggle{display:flex;flex:0 0 38px;width:38px;height:42px;padding:10px 8px;justify-content:center;flex-direction:column;gap:4px;border:1px solid #e1e5ee;border-radius:9px;background:#fff;cursor:pointer}.marketing-menu-toggle span{display:block;width:20px;height:2px;border-radius:2px;background:#697287}
 body.dashboard-body:not(.admin-body) .analytics-shell{display:block;grid-template-columns:1fr;height:100dvh;min-height:0;overflow:hidden}
 body.dashboard-body:not(.admin-body) .dashboard-sidebar{position:fixed;inset:0 auto 0 0;z-index:75;width:min(280px,calc(100vw - 60px));height:100dvh;padding:74px 14px 16px;transform:translateX(-105%);transition:transform .18s;visibility:hidden}
 body.dashboard-body:not(.admin-body) .analytics-shell.nav-open .dashboard-sidebar{transform:translateX(0);visibility:visible;box-shadow:0 0 0 100vmax #18203966}
 body.dashboard-body:not(.admin-body) .mobile-nav-toggle{position:fixed;display:grid;place-items:center;z-index:80;top:12px;left:12px;width:42px;height:42px;border:1px solid #dce1eb;border-radius:10px;background:#fff;color:#43506a;box-shadow:0 3px 10px #2030500a}
 body.dashboard-body:not(.admin-body) .analytics-workspace{display:flex;flex-direction:column;width:100%;height:100dvh;min-height:0;padding:0;overflow:hidden}
 body.dashboard-body:not(.admin-body) .analytics-header{flex:0 0 auto;min-height:68px;padding:16px 16px 16px 66px;margin:0;gap:10px;align-items:flex-start;flex-wrap:wrap}
 body.dashboard-body:not(.admin-body) .analytics-header h1{font-size:24px;line-height:1.15}
 body.dashboard-body:not(.admin-body) .analytics-header-tools{gap:8px;max-width:100%;flex-wrap:wrap}
 body.dashboard-body:not(.admin-body) .analytics-content{flex:1;min-height:0;min-width:0;padding:20px 16px 32px;overflow:auto;overscroll-behavior:contain}
 body.dashboard-body:not(.admin-body) .dashboard-sidebar-nav{flex:1;overflow-y:auto;min-height:0}
 body.dashboard-body:not(.admin-body) .dashboard-nav-item{min-height:44px;font-size:14px}
 body.dashboard-body:not(.admin-body) .dashboard-loader{inset:0}
 .analytics-content>*,.section-control-grid>*,.agent-workspace>*,.booking-studio>*{min-width:0}
 .agent-tabbar{align-self:start;min-width:0;max-width:100%;overflow-x:auto;flex-wrap:nowrap}
 .analytics-header .account-pill{max-width:100%;white-space:normal;overflow-wrap:anywhere}
 .modal-card,.staff-dialog-card,.calendar-dialog-card,.admin-modal{max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);overflow-y:auto}
}
@media(max-width:600px){
 body .site-header.marketing-header{gap:7px;width:calc(100% - 16px);padding:8px}
 .marketing-header .brand{font-size:15px;gap:6px}.marketing-header .brand-mark{width:28px;height:28px}
 body .site-header.marketing-header .topbar-actions .btn{font-size:12px;padding:9px 10px;min-height:42px;white-space:nowrap}
 .marketing-menu-toggle{flex-basis:34px;width:34px;padding:9px 6px}.marketing-menu-toggle span{width:20px}
 .sales-hero{grid-template-columns:minmax(0,1fr);gap:35px}.sales-hero h1{font-size:clamp(38px,11vw,60px)}.sales-product,.sales-hero-copy,.sales-section>*,.how-steps li>*,.control-feature>*{min-width:0}
 .sales-kicker{font-size:11px;max-width:100%;white-space:normal}.sales-product-header{flex-wrap:wrap;gap:10px}.sales-product-footer{flex-wrap:wrap;gap:8px}.sales-message{overflow-wrap:anywhere}
 .pricing-main{padding:36px 16px}.pricing-hero h1{font-size:clamp(32px,9vw,46px)}.pricing-cards{grid-template-columns:minmax(0,1fr);width:100%}.pricing-card{min-width:0}.pricing-card-featured{order:0;transform:none}
 .auth-shell{width:100%;margin:0;grid-template-columns:minmax(0,1fr)}.auth-panel,.auth-card{max-width:100%;min-width:0;padding:24px 18px}.auth-aside{display:none}.auth-page .site-header{margin:10px;padding:12px}.auth-page .topbar-actions{flex-direction:row}
 .billing-complete-shell{padding:22px 14px}.billing-complete-card{padding:28px 20px;max-width:100%}
 body.dashboard-body:not(.admin-body) .analytics-header{padding-right:12px}.analytics-header-tools .account-pill{display:none}
 body.dashboard-body:not(.admin-body) .analytics-content{padding:16px 12px 28px}
 .card-heading,.admin-actions,.calendar-toolbar,.calendar-toolbar-actions{flex-wrap:wrap;gap:10px}
 .settings-grid,.settings-form-grid,.email-setup-grid,.billing-grid,.agent-two-column,.agent-form-grid,.agent-overview-grid,.section-page-grid{grid-template-columns:minmax(0,1fr)!important}
 .analytics-card,.settings-card,.agent-panel{min-width:0;max-width:100%}
 .settings-form input,.settings-form select,.settings-form textarea,.booking-form-grid input,.booking-form-grid select,.booking-form-grid textarea,.staff-form-grid input,.staff-form-grid select,.auth-form input{font-size:16px!important}
 .customer-table-wrap,.table-wrap,.admin-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 .modal-backdrop{padding:12px}.modal-card{padding:22px 18px}.modal-actions{flex-wrap:wrap}.modal-actions .btn{min-height:44px}
 .agent-test-composer,.agent-hero form{flex-wrap:wrap}.agent-test-composer input{min-width:0}
 .public-portfolio,.booking-manage-shell{max-width:100%}.public-portfolio-nav{flex-wrap:wrap}.public-booking,.public-about,.public-contact-grid{grid-template-columns:minmax(0,1fr)}.public-portfolio-hero{grid-template-columns:minmax(0,1fr)}.public-service-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:360px){.marketing-header .brand{font-size:14px}.marketing-header .brand-mark{width:25px;height:25px}body .site-header.marketing-header .topbar-actions .btn{font-size:11px;padding:8px}.marketing-header .topbar-actions{gap:3px}}
.agent-guide-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;background:linear-gradient(115deg,#f0edff,#eef9fc);border:1px solid #e0dafa;border-radius:20px;margin-bottom:16px}
.agent-guide-banner>div{display:grid;gap:5px}.agent-guide-banner strong{font-size:16px;color:#262044}.agent-guide-banner small{color:#66647d}
.agent-guide-dialog{box-sizing:border-box;width:min(640px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #ece8fc;border-radius:28px;background:#fff;color:#24223a;box-shadow:0 28px 100px #22134440;overflow:auto;margin:auto}
.agent-guide-dialog::backdrop{background:#11132788;backdrop-filter:blur(6px)}
.agent-guide-top{display:flex;align-items:center;justify-content:space-between;padding:22px 28px 14px;font-size:12px;font-weight:700;letter-spacing:.05em;color:#746c96}
.agent-guide-top button{background:#f3f1fa;border:0;border-radius:50%;width:36px;height:36px;font-size:24px;color:#655b85;cursor:pointer}
.agent-guide-dialog progress{display:block;width:calc(100% - 56px);height:5px;margin:0 28px;border:0;border-radius:99px;overflow:hidden;accent-color:#7250e8;background:#eeeaf8}.agent-guide-dialog progress::-webkit-progress-bar{background:#eeeaf8}.agent-guide-dialog progress::-webkit-progress-value{background:#7250e8;border-radius:99px}
.agent-guide-content{padding:24px 32px 8px}.agent-guide-symbol{display:grid;place-items:center;width:58px;height:58px;background:linear-gradient(135deg,#7756ee,#a184f7);color:#fff;border-radius:18px;font-size:28px;box-shadow:0 8px 20px #7756ee30;margin-bottom:20px}
.agent-guide-content h2{font-size:clamp(24px,4vw,32px);line-height:1.16;letter-spacing:-.035em;margin:9px 0 14px;color:#242038}.agent-guide-content>p{font-size:14px;line-height:1.65;color:#6a667c}.agent-guide-content ol{padding-left:24px;margin:20px 0;display:grid;gap:12px}.agent-guide-content li{font-size:14px;line-height:1.55;padding-left:5px}.agent-guide-content li::marker{color:#7956da;font-weight:800}
.agent-guide-content .agent-guide-note{background:#f5f3fb;padding:13px 16px;border-radius:12px;font-size:12px}.agent-guide-content .btn{margin-top:8px;white-space:normal}
.agent-guide-dialog footer{display:flex;align-items:center;gap:12px;padding:18px 28px 24px;border-top:1px solid #f0edf6;margin-top:14px}.agent-guide-dialog footer .btn:last-child{margin-left:auto}.agent-guide-later{background:none;border:0;color:#81778f;font-size:12px;cursor:pointer}.agent-guide-error{color:#aa3052;font-size:13px;margin:10px 28px}.agent-guide-dialog button:focus-visible{outline:3px solid #ac98ef;outline-offset:3px}.agent-guide-dialog[aria-busy=true] button{pointer-events:none;opacity:.65}
@media(max-width:600px){.agent-guide-banner{padding:16px;align-items:flex-start;flex-wrap:wrap;gap:12px}.agent-guide-dialog{border-radius:22px}.agent-guide-content{padding:20px}.agent-guide-top{padding:16px 20px 10px}.agent-guide-dialog footer{padding:16px;gap:8px;flex-wrap:wrap}.agent-guide-dialog footer .btn{font-size:12px;padding:12px}.agent-guide-later{order:3;width:100%;padding:8px}.agent-guide-symbol{width:48px;height:48px;margin-bottom:14px}}
.legal-page{background:#f8f9fd;color:#28263c}.legal-shell{max-width:960px;margin:0 auto;padding:64px 24px 40px}.legal-heading{max-width:740px;margin-bottom:28px}.legal-heading h1{font-size:clamp(36px,6vw,58px);letter-spacing:-.045em;line-height:1.08;margin:16px 0}.legal-heading p{font-size:18px;line-height:1.6;color:#6d6980}.legal-heading small{color:#817b93;font-size:12px}.legal-switch{display:flex;gap:8px;flex-wrap:wrap;margin:26px 0}.legal-switch a{display:block;padding:12px 18px;border:1px solid #e3dff0;border-radius:12px;text-decoration:none;font-size:14px;color:#665c85}.legal-switch a[aria-current=page]{background:#7051d8;color:white;border-color:#7051d8}.legal-draft{border:1px solid #eddbb1;background:#fff9e9;color:#7a5923;padding:16px 20px;border-radius:14px;line-height:1.6;margin-bottom:20px;font-size:14px}.legal-document{background:white;border:1px solid #e8e5ef;border-radius:24px;padding:clamp(22px,5vw,52px);box-shadow:0 12px 42px #33295a05}.legal-document section+section{border-top:1px solid #efecf4;margin-top:30px;padding-top:24px}.legal-document h2{font-size:21px;line-height:1.35;letter-spacing:-.02em;color:#32294c;margin:0 0 16px}.legal-document p,.legal-document li{font-size:15px;line-height:1.8;color:#625d71}.legal-document ul{padding-left:22px}.legal-document li+li{margin-top:12px}.legal-document a,.legal-agreement a{color:#6844ca;text-decoration:underline;text-underline-offset:3px}.legal-footer{display:flex;justify-content:space-between;gap:20px;padding:28px 6px;font-size:14px}.legal-agreement{font-size:12px!important;line-height:1.6!important;color:#777087!important;max-width:680px;margin:16px 0!important;overflow-wrap:anywhere}.pricing-card .legal-agreement{min-height:110px}.legal-page a:focus-visible{outline:3px solid #a189e9;outline-offset:4px}@media(max-width:600px){.legal-shell{padding:32px 16px}.legal-document{border-radius:18px}.legal-document h2{font-size:19px}.pricing-card .legal-agreement{min-height:0}}
.plan-sale{display:flex;gap:12px;align-items:center;margin:12px 0 -2px;font-size:17px;color:#9790a7}.plan-sale del{text-decoration-thickness:2px}.plan-sale span{font-size:11px;font-weight:800;color:#6c41c9;background:#f0e9ff;border-radius:99px;padding:6px 9px}
.pricing-trial-unavailable{font-size:12px;line-height:1.6;color:#6e5120;background:#fff8e9;border:1px solid #f1e1bc;border-radius:12px;padding:12px;margin:12px 0 0}
.pricing-price-free{color:#1768ef;letter-spacing:-.04em}.pricing-starter-offer{margin:8px 0 6px}.pricing-starter-offer .pricing-trial{font-size:13px;line-height:1.65;color:#65738a;margin:0 0 10px}.pricing-starter-offer .pricing-trial strong{color:#26354f}.pricing-after-price{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;margin-bottom:9px}.pricing-after-price>del{color:#9790a7;font-size:16px;text-decoration-thickness:2px}.pricing-after-price>strong{font-size:25px;color:#26354f;letter-spacing:-.035em}.pricing-after-price small{font-size:12px;font-weight:500;color:#748198;letter-spacing:0;margin-left:3px}.pricing-discount-badge{font-size:11px;font-weight:800;color:#6c41c9;background:#f0e9ff;border-radius:99px;padding:6px 9px}.pricing-trial-eligibility{display:block;font-size:11px;line-height:1.6;color:#748198}
.purchase-dialog{box-sizing:border-box;width:min(900px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;margin:auto;padding:0;border:1px solid #e7e1f5;border-radius:28px;background:#fff;color:#221d38;box-shadow:0 36px 140px #160f4655}.purchase-dialog[open]{animation:purchase-enter .28s cubic-bezier(.2,.8,.2,1)}.purchase-dialog::backdrop{background:#16102e99;backdrop-filter:blur(8px)}.purchase-dialog [hidden]{display:none!important}.purchase-layout{display:grid;grid-template-columns:.9fr 1.1fr}.purchase-close{position:absolute;right:15px;top:12px;z-index:2;border:0;border-radius:50%;background:#f1eef7;color:#70647e;width:34px;height:34px;cursor:pointer;font-size:24px}.purchase-summary{position:relative;padding:44px 34px;overflow:hidden;background:radial-gradient(ellipse at top left,#a585ff66,transparent 70%),linear-gradient(160deg,#352562,#201632);color:#fff;display:flex;flex-direction:column;align-items:flex-start}.purchase-summary:after{content:'';position:absolute;width:230px;height:230px;border:1px solid #ffffff10;border-radius:50%;bottom:-100px;right:-100px;pointer-events:none}.purchase-emblem{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:#ffffff17;border:1px solid #ffffff20;color:#d9c8ff;margin-bottom:42px}.purchase-emblem svg{width:25px;height:25px}.purchase-eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.14em;color:#bdaedc}.purchase-summary h2{font-size:40px;letter-spacing:-.04em;color:#fff;margin:14px 0 8px}.purchase-summary>p{font-size:14px;line-height:1.6;color:#c5bcd6}.purchase-price{margin:28px 0 12px;display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}.purchase-price del{width:100%;font-size:18px;color:#ab9cbf}.purchase-price strong{font-size:clamp(38px,5vw,52px);letter-spacing:-.05em;line-height:1.1}.purchase-price>span{font-size:12px;color:#bdb1d0}.purchase-savings{background:#b4ffc217;color:#baf0cb;padding:7px 12px;border:1px solid #b4ffc222;border-radius:99px;font-size:12px;font-weight:650}.purchase-includes{display:grid;gap:13px;font-size:12px;color:#e4dbf4;margin:34px 0}.purchase-summary>small{font-size:10px;color:#aa9cbd;margin-top:auto;line-height:1.6}.purchase-details{padding:44px 36px 30px}.purchase-details h3{font-size:29px;line-height:1.15;letter-spacing:-.04em;margin:12px 0}.purchase-muted{font-size:13px;color:#83798f;line-height:1.6}.purchase-details form{margin-top:26px}.purchase-details label{display:block;font-size:12px;font-weight:750;margin-bottom:9px}.purchase-details label span{font-weight:400;color:#a297ab;margin-left:5px}.purchase-code-row{display:flex;gap:8px}.purchase-code-row input{min-width:0;flex:1;border:1px solid #ddd4ed;border-radius:12px;background:#faf8ff;padding:13px;font-size:16px;color:#392653;outline:none}.purchase-code-row input:focus{border-color:#9770ef;box-shadow:0 0 0 3px #9770ef19}.purchase-code-row .btn{padding:12px 16px;border-radius:12px;font-size:12px}.purchase-breakdown{margin:25px 0 14px;display:grid;gap:12px;font-size:13px}.purchase-breakdown>div{display:flex;justify-content:space-between;gap:15px;color:#81738f}.purchase-breakdown strong{color:#4c3c65;font-size:13px}.purchase-breakdown .purchase-due{border-top:1px solid #ede7f4;padding-top:17px;margin-top:3px;align-items:center}.purchase-due strong{font-size:25px;letter-spacing:-.025em;color:#37204f}.purchase-renewal{color:#807487;font-size:11px;line-height:1.7}.purchase-status{min-height:20px;font-size:12px;color:#298a60;line-height:1.55}.purchase-status.is-error{color:#b13761}.purchase-details .legal-agreement{font-size:10px!important;margin:13px 0!important}.purchase-continue{width:100%;min-height:48px;border-radius:13px!important;box-shadow:0 8px 22px #7350dc28;background:linear-gradient(100deg,#7a52e8,#6840c3)!important;border:0!important}.purchase-footnote{display:block;text-align:center;font-size:10px;color:#978b9f;margin-top:12px}.purchase-dialog[aria-busy=true] .purchase-continue{opacity:.6}.purchase-dialog button:focus-visible{outline:3px solid #b49aef;outline-offset:3px}@keyframes purchase-enter{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:650px){.purchase-layout{grid-template-columns:1fr}.purchase-dialog{border-radius:20px}.purchase-summary{padding:25px}.purchase-emblem{width:40px;height:40px;margin-bottom:18px;border-radius:12px}.purchase-summary h2{font-size:28px}.purchase-summary>p,.purchase-includes,.purchase-summary>small{display:none}.purchase-price{margin:12px 0;gap:8px}.purchase-price strong{font-size:38px}.purchase-price del{width:auto;order:2;font-size:15px}.purchase-details{padding:25px}.purchase-details h3{font-size:25px}.purchase-close{background:#ffffffdf}.purchase-details form{margin-top:18px}}@media(prefers-reduced-motion:reduce){.purchase-dialog[open]{animation:none}}
