:root {
    --ink: #101822;
    --ink-2: #203043;
    --muted: #657487;
    --brand: #16bde5;
    --brand-dark: #0998bd;
    --brand-soft: #e7f9fd;
    --success: #1f9d63;
    --warning: #b46a08;
    --danger: #c2413b;
    --bg: #f3f7fb;
    --surface: #ffffff;
    --line: #dbe6ef;
    --shadow: 0 18px 45px rgba(16,24,34,.10);
    --radius: 22px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top left, rgba(22,189,229,.18), transparent 36rem), var(--bg);
    line-height: 1.55;
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .8rem clamp(1rem, 3vw, 2.4rem);
    background: rgba(8,12,18,.94);
    backdrop-filter: blur(16px);
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,.18);
}
.brand { display: flex; align-items: center; gap: .75rem; color: white; text-decoration: none; }
.brand-logo { width: 138px; height: auto; display: block; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy small { color: var(--brand); font-size: .78rem; font-weight: 700; }
.navlinks { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.navlinks a { color: #eaf7fb; font-weight: 700; }
.page-shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 4rem; }
.footer { display: flex; gap: .75rem; align-items: center; justify-content: center; padding: 1.5rem; color: var(--muted); background: #fff; border-top: 1px solid var(--line); }
.footer .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .75rem; color: var(--ink); }
h1 { font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.35rem, 2vw, 2rem); letter-spacing: -.025em; }
p { margin: 0 0 1rem; color: var(--ink-2); }
.eyebrow { color: var(--brand-dark); text-transform: uppercase; font-size: .78rem; font-weight: 900; letter-spacing: .12em; margin-bottom: .45rem; }
.button, button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border: 0;
    border-radius: 999px;
    padding: .8rem 1.1rem;
    background: #edf5f9;
    color: var(--ink);
    font-weight: 850;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); text-decoration: none; }
.button.primary { background: linear-gradient(135deg, var(--brand), #54ddff); color: #071116; box-shadow: 0 12px 30px rgba(22,189,229,.25); }
.button.ghost { background: rgba(255,255,255,.12); color: inherit; border: 1px solid rgba(255,255,255,.18); }
.button.small { padding: .55rem .85rem; font-size: .9rem; }
.button.tiny { padding: .4rem .65rem; font-size: .8rem; }
.button.danger { color: #fff; background: var(--danger); }
.hero-panel, .module-hero, .admin-hero, .content-panel, .auth-card, .cheat-sheet {
    background: rgba(255,255,255,.93);
    border: 1px solid rgba(219,230,239,.85);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hero-panel {
    display: grid;
    grid-template-columns: 1fr minmax(240px, 320px);
    gap: 1.4rem;
    padding: clamp(1.4rem, 4vw, 2.4rem);
    overflow: hidden;
    position: relative;
}
.hero-panel:after {
    content: "";
    position: absolute;
    right: -8rem;
    bottom: -9rem;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    background: rgba(22,189,229,.13);
}
.searchbar { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; position: relative; z-index: 1; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: .85rem 1rem;
    font: inherit;
    background: #fff;
    color: var(--ink);
}
textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.searchbar input { min-width: 260px; flex: 1; }
.searchbar select { width: auto; min-width: 180px; }
.progress-widget {
    position: relative;
    z-index: 1;
    display: grid;
    gap: .55rem;
    padding: 1.25rem;
    border-radius: 20px;
    background: #08111a;
    color: white;
    align-self: stretch;
}
.progress-widget .material-symbols-rounded { color: var(--brand); font-size: 2.6rem; }
.progress-widget strong { font-size: 3.2rem; line-height: 1; }
.progress-widget small { color: #cbe6ef; }
.meter { height: 10px; border-radius: 99px; background: rgba(101,116,135,.22); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #86ebff); border-radius: inherit; transition: width .35s ease; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-top: 1rem; }
.module-card, .action-card, .stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.2rem;
    box-shadow: 0 10px 30px rgba(16,24,34,.06);
}
.module-card { display: flex; flex-direction: column; min-height: 310px; }
.card-icon { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-dark); margin-bottom: 1rem; }
.card-icon.large { width: 76px; height: 76px; font-size: 2rem; }
.card-icon .material-symbols-rounded { font-size: 2rem; }
.card-meta { display: flex; justify-content: space-between; gap: .5rem; color: var(--muted); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.module-card h2 { margin-top: .65rem; font-size: 1.35rem; }
.module-card p { color: var(--muted); flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: .3rem .65rem; font-size: .78rem; font-weight: 850; background: #eef3f7; color: var(--muted); white-space: nowrap; }
.status-pill.completed { background: #e8f8f0; color: var(--success); }
.status-pill.started { background: #fff5e6; color: var(--warning); }
.status-pill.not-started, .status-pill.not-started { background: #eef3f7; color: var(--muted); }
.module-hero { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.6rem; margin-bottom: 1rem; }
.action-grid { display: grid; gap: 1rem; margin: 1rem 0; }
.action-grid.three { grid-template-columns: repeat(3, 1fr); }
.action-card { color: var(--ink); min-height: 180px; }
.action-card .material-symbols-rounded { color: var(--brand-dark); font-size: 2.4rem; }
.action-card p { color: var(--muted); }
.content-panel { padding: 1.4rem; margin: 1rem 0; }
.content-panel.narrow { max-width: 760px; }
.link-list { display: grid; gap: .75rem; }
.link-list a { display: grid; gap: .2rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: #f9fcfe; }
.link-list span { color: var(--muted); }
.centered-page .page-shell { min-height: calc(100vh - 160px); display: grid; place-items: center; }
.auth-card { width: min(520px, 100%); padding: 2rem; }
.auth-card.wide { width: min(760px, 100%); }
.stacked-form, .form-grid { display: grid; gap: 1rem; }
.form-grid { grid-template-columns: repeat(2, 1fr); }
.form-grid.three-cols { grid-template-columns: repeat(3, 1fr); }
label { display: grid; gap: .35rem; font-weight: 800; color: var(--ink-2); }
label small { color: var(--muted); font-weight: 600; }
.checkbox { display: flex; align-items: center; gap: .55rem; }
.checkbox input { width: auto; }
.alert, .flash { border-radius: 16px; padding: .85rem 1rem; margin: 1rem 0; }
.alert.danger, .flash.danger { background: #fff0ee; color: #8d201b; border: 1px solid #ffd1cc; }
.flash.success, .alert.success { background: #eaf9f1; color: #126c43; border: 1px solid #c7f0da; }
.flash { box-shadow: var(--shadow); }
.copy-input { margin: .5rem .5rem .5rem 0; max-width: 100%; }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs a { padding: .65rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 850; }
.tabs a.active { background: #08111a; color: #fff; border-color: #08111a; }
.admin-hero { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1rem 0; }
.stat-card span { display: block; font-size: 2.4rem; font-weight: 950; color: var(--brand-dark); }
.stat-card small { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .85rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; color: var(--muted); letter-spacing: .08em; }
td small { color: var(--muted); }
.inline-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.inline-actions form { display: inline-flex; gap: .35rem; align-items: center; }
.inline-reset input { width: 150px; padding: .45rem .6rem; border-radius: 10px; }
.two-column { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.module-form { display: grid; gap: 1rem; }
details { border: 1px solid var(--line); border-radius: 16px; padding: 1rem; background: #fbfdff; }
summary { cursor: pointer; font-weight: 900; }
.form-actions { display: flex; gap: .75rem; }
.training-shell { max-width: 980px; margin: 0 auto; }
.training-header { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.training-progress { min-width: 230px; display: grid; gap: .35rem; color: var(--muted); font-weight: 800; }
.training-stage {
    min-height: 520px;
    padding: clamp(1.4rem, 4vw, 2.5rem);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.training-stage:before { content: ""; position: absolute; inset: 0 0 auto auto; width: 18rem; height: 18rem; border-radius: 50%; background: rgba(22,189,229,.10); transform: translate(35%, -35%); }
.training-slide { position: relative; z-index: 1; display: grid; gap: 1rem; max-width: 820px; }
.training-slide .kicker { color: var(--brand-dark); font-size: .85rem; font-weight: 950; text-transform: uppercase; letter-spacing: .1em; }
.training-slide h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.training-slide li { margin: .35rem 0; }
.takeaway { padding: 1rem; border-radius: 18px; background: var(--brand-soft); border: 1px solid #bdeef8; font-weight: 800; }
.knowledge-check { padding: 1rem; border-radius: 18px; background: #f8fbfd; border: 1px solid var(--line); }
.option-list { display: grid; gap: .5rem; margin-top: .75rem; }
.option-btn { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: .8rem 1rem; cursor: pointer; font: inherit; }
.option-btn.correct { border-color: #8ee0b5; background: #eaf9f1; }
.option-btn.incorrect { border-color: #ffc1bb; background: #fff0ee; }
.feedback { margin-top: .75rem; font-weight: 800; }
.training-controls { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.back-link { display: inline-flex; margin-bottom: 1rem; font-weight: 900; }
.cheat-header { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.cheat-sheet { padding: 2rem; }
.cheat-section { margin: 1.2rem 0; }
.cheat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .85rem; }
.cheat-card { border: 1px solid var(--line); background: #fbfdff; border-radius: 16px; padding: 1rem; }
.cheat-card h3 { font-size: 1.05rem; }
.callout { border-left: 5px solid var(--brand); background: var(--brand-soft); border-radius: 14px; padding: 1rem; }
.callout.warning { border-left-color: var(--warning); background: #fff7eb; }
.callout.danger { border-left-color: var(--danger); background: #fff0ee; }
.link-bullets li { margin: .35rem 0; }
.empty-state { padding: 2rem; color: var(--muted); text-align: center; }
@media (max-width: 860px) {
    .hero-panel, .module-hero, .two-column, .action-grid.three, .stat-grid, .form-grid, .form-grid.three-cols { grid-template-columns: 1fr; }
    .topbar { align-items: flex-start; flex-direction: column; }
    .brand-logo { width: 118px; }
    .training-header { align-items: stretch; flex-direction: column; }
    .training-progress { min-width: 0; }
}
@media print {
    body { background: #fff; }
    .topbar, .footer, .no-print, .navlinks, .back-link { display: none !important; }
    .page-shell { width: 100%; padding: 0; }
    .cheat-sheet { box-shadow: none; border: 0; border-radius: 0; padding: 0; }
    a { color: #000; }
}

/* Enhanced visual authoring and training experience */
.button.sparkle {
    background: linear-gradient(135deg, #7c3aed, #16bde5 54%, #7dd3fc);
    color: #fff;
    box-shadow: 0 16px 34px rgba(124,58,237,.22);
}
.button .material-symbols-rounded { font-size: 1.05em; vertical-align: -0.18em; }
.content-panel .button.ghost, .admin-hero .button.ghost, .module-editor-panel .button.ghost {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}
.module-toolbar-actions { flex-wrap: wrap; justify-content: flex-end; }
.soft-divider { border: 0; border-top: 1px solid var(--line); margin: .75rem 0; }
.ai-hero { background: linear-gradient(135deg, #fff, #f4ecff 45%, #e8fbff); }
.import-panel { background: linear-gradient(135deg, #fbfdff, #f2fbff); }
.import-grid { align-items: start; }

.module-editor-titlebar, .section-heading, .workbench-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.module-editor-titlebar { margin-bottom: 1rem; }
.section-heading { margin: .5rem 0 1rem; }
.section-heading.compact { margin: 0 0 .65rem; }
.section-heading h2, .section-heading h3 { margin: 0; }
.builder-section {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, #fff, #fbfdff);
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(16,24,34,.045);
}
.builder-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1rem;
    align-items: start;
}
.slide-list {
    display: grid;
    gap: .6rem;
    position: sticky;
    top: 92px;
}
.slide-tab {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: .3rem .65rem;
    align-items: center;
    text-align: left;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 16px;
    padding: .75rem;
    cursor: pointer;
    color: var(--ink);
}
.slide-tab span {
    grid-row: span 2;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 950;
}
.slide-tab strong { line-height: 1.2; }
.slide-tab small { color: var(--muted); }
.slide-tab.active {
    border-color: rgba(22,189,229,.55);
    box-shadow: 0 12px 28px rgba(22,189,229,.16);
    transform: translateY(-1px);
}
.workbench-card, .question-card, .link-card-edit {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 12px 30px rgba(16,24,34,.06);
}
.workbench-card { position: relative; overflow: hidden; }
.workbench-card:before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 8px;
    background: linear-gradient(90deg, var(--brand), #80e9ff);
}
.slide-style-ocean:before { background: linear-gradient(90deg, #0891b2, #22d3ee); }
.slide-style-sunset:before { background: linear-gradient(90deg, #f97316, #facc15); }
.slide-style-forest:before { background: linear-gradient(90deg, #16a34a, #86efac); }
.slide-style-violet:before { background: linear-gradient(90deg, #7c3aed, #c084fc); }
.slide-style-slate:before { background: linear-gradient(90deg, #334155, #94a3b8); }
.two-column-builder {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 1rem;
}
.editor-shell {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}
.rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .55rem;
    background: #f7fbfe;
    border-bottom: 1px solid var(--line);
}
.tool-btn {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .35rem .6rem;
    background: #fff;
    color: var(--ink-2);
    font: inherit;
    font-size: .82rem;
    font-weight: 850;
    cursor: pointer;
}
.tool-btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.rich-editor {
    min-height: 230px;
    padding: 1rem;
    outline: none;
    background: #fff;
}
.rich-editor:focus { box-shadow: inset 0 0 0 2px rgba(22,189,229,.28); }
.cheat-editor { min-height: 420px; }
.question-editor {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fbfd;
    border: 1px solid var(--line);
    border-radius: 18px;
}
.raw-data-panel textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; }
.sticky-save-bar {
    position: sticky;
    bottom: 1rem;
    z-index: 8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(22,189,229,.30);
    border-radius: 20px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 18px 40px rgba(16,24,34,.12);
    backdrop-filter: blur(14px);
}
.sticky-save-bar span { color: var(--muted); }

.visual-content h3, .rich-editor h3 { margin-top: 1rem; }
.mini-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: .75rem;
    margin: 1rem 0;
}
.mini-cards > div {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem;
    background: rgba(255,255,255,.78);
    box-shadow: 0 8px 20px rgba(16,24,34,.05);
}
.process-flow {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    margin: 1rem 0;
}
.process-flow span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border-radius: 999px;
    padding: .55rem .75rem;
    background: #08111a;
    color: #fff;
    font-weight: 850;
}
.process-flow span:not(:last-child)::after { content: "arrow_forward"; font-family: 'Material Symbols Rounded'; font-size: 1rem; color: var(--brand); }
.do-dont-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    margin: 1rem 0;
}
.do-dont-grid > div {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1rem;
    background: #fff;
}
.do-dont-grid > div:first-child { border-color: #a7f3d0; background: #ecfdf5; }
.do-dont-grid > div:last-child { border-color: #fecaca; background: #fff1f2; }
.step-list { counter-reset: steps; list-style: none; padding: 0; }
.step-list li {
    counter-increment: steps;
    position: relative;
    padding: .75rem .75rem .75rem 3rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    margin: .55rem 0;
}
.step-list li:before {
    content: counter(steps);
    position: absolute;
    left: .75rem;
    top: .65rem;
    width: 1.65rem;
    height: 1.65rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--brand);
    color: #071116;
    font-weight: 950;
}
.screenshot-frame, .jit-screenshot-placeholder {
    margin: 1rem 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 14px 34px rgba(16,24,34,.08);
}
.screenshot-frame img { display: block; max-width: 100%; width: 100%; height: auto; }
.screenshot-frame figcaption, .jit-screenshot-placeholder figcaption {
    padding: .65rem .85rem;
    color: var(--muted);
    font-size: .9rem;
    background: #f8fbfd;
}
.jit-screenshot-placeholder {
    border: 2px dashed rgba(22,189,229,.55);
    cursor: pointer;
}
.shot-empty {
    min-height: 180px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1.2rem;
    background: repeating-linear-gradient(135deg, #f0fbff, #f0fbff 12px, #e6f8fd 12px, #e6f8fd 24px);
    color: var(--ink-2);
}
.shot-empty strong { font-size: 1.1rem; }
.shot-empty span { color: var(--muted); max-width: 520px; }
.admin-editor-page .jit-screenshot-placeholder:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(22,189,229,.16); }

.training-stage {
    background: linear-gradient(135deg, #fff, #f7fbfe);
}
.training-stage:before { opacity: .8; }
.training-slide {
    max-width: none;
    min-height: 430px;
    align-content: start;
}
.training-slide h2 { line-height: 1.03; margin: .15rem 0 .4rem; }
.slide-chrome {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: center;
}
.slide-counter {
    border-radius: 999px;
    padding: .35rem .65rem;
    background: rgba(8,17,26,.08);
    color: var(--muted);
    font-weight: 900;
}
.slide-dots { display: flex; gap: .35rem; margin: -.35rem 0 .2rem; }
.slide-dots span {
    width: .55rem;
    height: .55rem;
    border-radius: 999px;
    background: rgba(101,116,135,.22);
    transition: width .25s ease, background .25s ease;
}
.slide-dots span.active { width: 1.8rem; background: var(--brand); }
.slide-style-blueprint { --slide-accent: #16bde5; --slide-soft: #e7f9fd; }
.slide-style-ocean { --slide-accent: #0891b2; --slide-soft: #ecfeff; }
.slide-style-sunset { --slide-accent: #f97316; --slide-soft: #fff7ed; }
.slide-style-forest { --slide-accent: #16a34a; --slide-soft: #ecfdf5; }
.slide-style-violet { --slide-accent: #7c3aed; --slide-soft: #f5f3ff; }
.slide-style-slate { --slide-accent: #334155; --slide-soft: #f8fafc; }
.training-slide .kicker { color: var(--slide-accent, var(--brand-dark)); }
.training-slide .takeaway {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    background: var(--slide-soft, var(--brand-soft));
    border-color: color-mix(in srgb, var(--slide-accent, var(--brand)) 35%, white);
}
.training-slide .takeaway .material-symbols-rounded { color: var(--slide-accent, var(--brand-dark)); font-size: 2rem; }
.training-slide .takeaway p { margin: .1rem 0 0; font-weight: 650; }
.knowledge-check {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff, var(--slide-soft, #f8fbfd));
}
.knowledge-check:before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: var(--slide-accent, var(--brand));
}
.check-label { display: flex; align-items: center; gap: .45rem; color: var(--slide-accent, var(--brand-dark)); }
.option-btn {
    display: flex;
    align-items: center;
    gap: .75rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.option-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(16,24,34,.07); }
.answer-letter, .answer-icon {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #eef6fb;
    color: var(--muted);
    font-weight: 950;
}
.option-btn.correct .answer-icon, .option-btn.correct .answer-letter { background: #bbf7d0; color: #166534; }
.option-btn.incorrect .answer-icon, .option-btn.incorrect .answer-letter { background: #fecaca; color: #991b1b; }
.feedback { display: flex; align-items: center; gap: .45rem; color: var(--ink-2); }
.feedback .material-symbols-rounded { color: var(--slide-accent, var(--brand-dark)); }
.scoreline { font-size: 1.25rem; }
.celebration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.celebration span {
    position: absolute;
    width: 1rem;
    height: 1rem;
    border-radius: .2rem;
    background: var(--brand);
    animation: floaty 2.8s ease-in-out infinite;
    opacity: .38;
}
.celebration span:nth-child(1) { left: 8%; top: 12%; }
.celebration span:nth-child(2) { right: 12%; top: 18%; animation-delay: .35s; background: #7c3aed; }
.celebration span:nth-child(3) { left: 18%; bottom: 15%; animation-delay: .7s; background: #16a34a; }
.celebration span:nth-child(4) { right: 18%; bottom: 20%; animation-delay: 1s; background: #f97316; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(12deg); } }

.cheat-sheet header {
    padding: 1.2rem;
    border-radius: 22px;
    background: linear-gradient(135deg, #08111a, #0f3442 56%, #16bde5);
    color: #fff;
    margin-bottom: 1.2rem;
}
.cheat-sheet header .eyebrow, .cheat-sheet header p { color: #d9f8ff; }
.cheat-sheet h2 { border-bottom: 1px solid var(--line); padding-bottom: .35rem; }
.cheat-card, .mini-cards > div { transition: transform .18s ease, box-shadow .18s ease; }
.cheat-card:hover, .mini-cards > div:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(16,24,34,.09); }

@media (max-width: 980px) {
    .builder-layout, .two-column-builder, .import-grid { grid-template-columns: 1fr; }
    .slide-list { position: static; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .sticky-save-bar, .module-editor-titlebar, .section-heading, .admin-hero { align-items: stretch; flex-direction: column; }
    .module-toolbar-actions { justify-content: flex-start; }
}
@media (max-width: 680px) {
    .do-dont-grid { grid-template-columns: 1fr; }
    .process-flow span { width: 100%; justify-content: center; }
    .training-stage { min-height: auto; }
    .sticky-save-bar .form-actions { flex-direction: column; }
}

/* v3 visual refresh, wizard builder, segmentation, SSO, feedback, certificates and gamification */
.modern-hero,.leaderboard-hero,.profile-hero,.search-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#071827 0%,#0e6684 48%,#18a7d4 100%);color:#fff;border:0;box-shadow:0 24px 80px rgba(6,30,47,.25)}
.modern-hero:before,.leaderboard-hero:before,.profile-hero:before,.search-hero:before{content:"";position:absolute;inset:-30% -10% auto auto;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.3),transparent 60%);filter:blur(10px)}
.modern-hero .eyebrow,.modern-hero p,.leaderboard-hero p,.profile-hero p,.search-hero p{color:rgba(255,255,255,.86)}
.gamified-widget{background:rgba(255,255,255,.14);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.24);color:#fff}
.points-chip{display:inline-flex;align-items:center;gap:6px;margin-top:12px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.18);font-weight:800}.points-chip .material-symbols-rounded{font-size:18px}
.visual-card{position:relative;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.visual-card:hover{transform:translateY(-5px);box-shadow:0 24px 60px rgba(6,30,47,.18);border-color:rgba(24,167,212,.45)}
.visual-card:after{content:"";position:absolute;right:-40px;top:-40px;width:130px;height:130px;border-radius:50%;background:linear-gradient(135deg,rgba(24,167,212,.22),rgba(142,197,64,.16));z-index:0}.visual-card>*{position:relative;z-index:1}
.ribbon{position:absolute;right:12px;top:12px;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800;z-index:2}.visual-hero-card{background:linear-gradient(135deg,#fff,#f1fbff);border:1px solid #d8eef7}.preview-banner{display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:16px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;margin-bottom:16px;font-weight:800}.preview-banner .material-symbols-rounded{font-size:20px}
.required-panel{border:1px solid #fdd8a8;background:linear-gradient(135deg,#fff7ed,#fff)}.required-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}.required-card{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid #e4eaf0;border-radius:20px;text-decoration:none;color:inherit;background:#fff;box-shadow:0 10px 30px rgba(16,32,51,.06)}.required-card .material-symbols-rounded{background:#eaf8fd;color:#0e6684;border-radius:16px;padding:10px}.required-card small{display:block;color:#667085}.required-card.done{background:#ecfdf5;border-color:#bbf7d0}.required-card.done .material-symbols-rounded{background:#dcfce7;color:#15803d}.badge-strip{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.badge-chip{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #dfeaf2;border-radius:999px;padding:9px 14px;box-shadow:0 10px 24px rgba(16,32,51,.06)}.badge-chip .material-symbols-rounded{color:#f59e0b}.badge-chip small{color:#64748b}.badge-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.badge-card{padding:18px;border-radius:22px;border:1px solid #dfeaf2;background:linear-gradient(135deg,#fff,#f7fbfd);box-shadow:0 12px 34px rgba(16,32,51,.06)}.badge-card>.material-symbols-rounded{font-size:34px;color:#f59e0b;background:#fff7ed;border-radius:18px;padding:12px}.badge-card p{color:#526173}.badge-card small{color:#667085}

.wizard-editor-panel{padding:0;overflow:hidden}.wizard-form{margin:0}.wizard-shell{display:grid;grid-template-columns:280px minmax(0,1fr);gap:0;min-height:720px}.wizard-sidebar{background:linear-gradient(180deg,#071827,#0b2d42);color:#fff;padding:22px;display:flex;flex-direction:column;gap:12px}.wizard-progress-ring{border:1px solid rgba(255,255,255,.18);border-radius:22px;padding:18px;background:rgba(255,255,255,.08)}.wizard-progress-ring span{font-size:28px;font-weight:900;display:block}.wizard-progress-ring small{color:rgba(255,255,255,.72)}.wizard-step{display:grid;grid-template-columns:36px 1fr;gap:8px;align-items:center;text-align:left;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:#fff;border-radius:18px;padding:12px;cursor:pointer;transition:transform .18s ease,background .18s ease,border-color .18s ease}.wizard-step:hover{transform:translateX(3px);background:rgba(255,255,255,.1)}.wizard-step.active{background:#18a7d4;border-color:#7dd3fc;box-shadow:0 12px 30px rgba(24,167,212,.28)}.wizard-step span{display:grid;place-items:center;width:32px;height:32px;border-radius:12px;background:rgba(255,255,255,.18);font-weight:900;grid-row:1/3}.wizard-step strong{font-size:14px}.wizard-step small{color:rgba(255,255,255,.76)}.wizard-jump-box{margin-top:auto;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);border-radius:18px;padding:14px;display:grid;gap:10px}.wizard-jump-box select{width:100%;border-radius:12px;border:0;padding:9px}.wizard-main{padding:28px;background:#f7fbfd}.wizard-panel{display:none}.wizard-panel.active{display:block}.wizard-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid #dce8ef}.template-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin:18px 0}.template-card{border:1px solid #d9e8f1;background:#fff;border-radius:22px;padding:16px;text-align:left;display:grid;gap:7px;cursor:pointer;box-shadow:0 10px 28px rgba(16,32,51,.06);transition:transform .18s ease,border-color .18s ease}.template-card:hover{transform:translateY(-3px);border-color:#18a7d4}.template-card .material-symbols-rounded{width:44px;height:44px;border-radius:16px;display:grid;place-items:center;background:#eaf8fd;color:#0e6684;font-size:26px}.template-card small{color:#667085}.tinymce-shell{background:#fff;border:1px solid #d8e5ef;border-radius:18px;padding:14px}.tox-tinymce-inline{z-index:50}.rich-editor[contenteditable="true"]{min-height:260px;background:#fff;border:1px solid #d8e5ef;border-radius:18px;padding:18px}.tox .tox-tbtn[aria-label="Screenshot box"]{background:#eaf8fd!important}.publish-checklist{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:18px 0}.publish-checklist>div{background:#fff;border:1px solid #d8e5ef;border-radius:20px;padding:18px;display:grid;gap:5px}.publish-checklist .material-symbols-rounded{color:#18a7d4;font-size:32px}.publish-checklist small{color:#667085}.checkbox-matrix{display:grid;gap:10px;max-height:520px;overflow:auto}.checkbox-matrix.compact{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));max-height:none}.checkbox-card{display:flex;align-items:flex-start;gap:10px;background:#fff;border:1px solid #dbe8f0;border-radius:16px;padding:12px}.checkbox-card input{margin-top:4px}.checkbox-card small{display:block;color:#667085}.company-list{display:grid;gap:10px}.company-pill{display:flex;justify-content:space-between;gap:10px;padding:12px 14px;border-radius:16px;background:#f8fbfd;border:1px solid #dbe8f0;color:inherit;text-decoration:none}.company-pill.active{background:#eaf8fd;border-color:#18a7d4;color:#0e6684;font-weight:800}.companies-layout{align-items:start}.assignment-form [data-scope-company],.assignment-form [data-scope-user]{transition:opacity .2s ease}

.feedback-modal[hidden]{display:none}.feedback-modal{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:20px}.feedback-backdrop{position:absolute;inset:0;background:rgba(7,24,39,.62);backdrop-filter:blur(6px)}.feedback-dialog{position:relative;width:min(620px,100%);background:#fff;border-radius:28px;padding:26px;box-shadow:0 30px 90px rgba(0,0,0,.28);display:grid;gap:14px}.icon-button.close{position:absolute;right:16px;top:14px;border:0;background:#eef6fa;border-radius:999px;width:34px;height:34px;font-size:22px;cursor:pointer}.feedback-status{min-height:20px;font-weight:800}.training-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.wide-button{width:100%;justify-content:center}.button.microsoft{background:#2f2f2f;color:#fff;border-color:#2f2f2f}.button.microsoft:hover{background:#111}.or-divider{display:flex;align-items:center;gap:12px;color:#64748b;margin:16px 0}.or-divider:before,.or-divider:after{content:"";height:1px;background:#dbe8f0;flex:1}

.search-results{display:grid;gap:14px}.search-result-card{display:grid;grid-template-columns:auto 1fr;gap:16px;padding:18px;border:1px solid #dfeaf2;border-radius:22px;background:#fff;box-shadow:0 10px 28px rgba(16,32,51,.05)}.leaderboard-list{display:grid;gap:12px}.leaderboard-row{display:grid;grid-template-columns:64px 48px 1fr auto;gap:12px;align-items:center;padding:16px;border:1px solid #dfeaf2;border-radius:22px;background:#fff;box-shadow:0 8px 24px rgba(16,32,51,.05)}.leaderboard-row.me{background:#eaf8fd;border-color:#18a7d4}.leaderboard-row .rank{font-weight:900;font-size:20px;color:#0e6684}.leaderboard-row .trophy{font-size:34px;color:#f59e0b}.leaderboard-row small{display:block;color:#667085}.certificate-card{max-width:960px;margin:0 auto;background:#fff;border-radius:32px;padding:28px;box-shadow:0 24px 90px rgba(16,32,51,.16)}.certificate-border{border:5px double #18a7d4;border-radius:26px;padding:60px;text-align:center;background:radial-gradient(circle at top,#f1fbff,#fff 45%)}.certificate-border h1{font-size:44px;margin:.2em 0}.certificate-border h2{font-size:40px;color:#0e6684}.certificate-meta{display:flex;justify-content:center;gap:24px;flex-wrap:wrap;margin:26px 0;color:#667085}.certificate-signature{margin-top:34px}.certificate-signature small{display:block;color:#667085}.code-block{white-space:pre-wrap;background:#071827;color:#eaf8fd;border-radius:18px;padding:18px;overflow:auto}.visual-cheat-sheet{box-shadow:0 22px 70px rgba(16,32,51,.11)}.visual-cheat-sheet .cheat-section{border:1px solid #dfeaf2;border-radius:24px;background:#fff;padding:24px;margin:22px 0;box-shadow:0 12px 32px rgba(16,32,51,.05)}.visual-cheat-sheet .cheat-section h2{display:flex;align-items:center;gap:10px}.highlight-marker{background:#fff3a3;border-radius:6px;padding:0 4px}.do-dont-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:16px 0}.do-dont-grid>div{border-radius:18px;padding:16px}.do-dont-grid .do{background:#ecfdf5;border:1px solid #bbf7d0}.do-dont-grid .dont{background:#fff1f2;border:1px solid #fecdd3}.callout.info{background:#eaf8fd;border-left-color:#18a7d4}

@media (max-width: 920px){.wizard-shell{grid-template-columns:1fr}.wizard-sidebar{position:relative}.wizard-main{padding:18px}.leaderboard-row{grid-template-columns:44px 40px 1fr}.leaderboard-row>strong{grid-column:3}.certificate-border{padding:28px}.certificate-border h1{font-size:30px}.certificate-border h2{font-size:28px}}
@media print{.topbar,.footer,.no-print,.feedback-modal,.preview-banner{display:none!important}.certificate-card,.visual-cheat-sheet{box-shadow:none}.certificate-border{padding:28px}}

/* v4 stability and visual polish */
.hero-panel:after,.modern-hero:before,.leaderboard-hero:before,.profile-hero:before,.search-hero:before,.training-stage:before{pointer-events:none}
.cheat-sheet header h1,.cheat-sheet header h2,.cheat-sheet header h3{color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.2)}
.cheat-sheet header p,.cheat-sheet header .eyebrow{color:#dff9ff!important}.cheat-sheet header{position:relative;overflow:hidden}.cheat-sheet header:after{content:"";position:absolute;right:-80px;top:-90px;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.16);pointer-events:none}.cheat-sheet header>*{position:relative;z-index:1}
.builder-status-strip{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px;padding:10px 12px;border:1px solid #d8eaf3;background:#f4fbff;border-radius:16px;color:#344256;font-size:.92rem}.builder-status-strip .status-pill{box-shadow:none}
.wizard-editor-panel{border:0;background:linear-gradient(135deg,#f7fbfd,#edf8fc);box-shadow:0 30px 90px rgba(10,37,55,.14)}.wizard-main{background:linear-gradient(135deg,#f7fbfd,#eef8fc)}.wizard-panel.active{animation:wizardFade .18s ease-out}.wizard-step,.wizard-step *,.wizard-jump-box select,.slide-tab,.tool-btn{pointer-events:auto}@keyframes wizardFade{from{opacity:.35;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.wizard-jump-box select{background:#fff!important;color:#102033!important;border:1px solid rgba(255,255,255,.2)!important;min-height:42px}.wizard-jump-box select:disabled{opacity:.65;color:#536477!important}.wizard-jump-box strong{color:#fff}.wizard-step:focus-visible,.button:focus-visible,.slide-tab:focus-visible,.tool-btn:focus-visible{outline:3px solid #7dd3fc;outline-offset:2px}
.builder-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px;align-items:start}.slide-list{position:sticky;top:86px;display:grid;gap:10px;max-height:calc(100vh - 120px);overflow:auto;padding-right:4px}.slide-tab{display:grid;grid-template-columns:34px 1fr;gap:8px;text-align:left;border:1px solid #d8e7ef;background:#fff;border-radius:18px;padding:12px;color:#102033;cursor:pointer;box-shadow:0 8px 22px rgba(16,32,51,.05);transition:transform .15s ease,border-color .15s ease,background .15s ease}.slide-tab:hover{transform:translateX(3px);border-color:#18a7d4}.slide-tab.active{background:#eaf8fd;border-color:#18a7d4}.slide-tab span{width:30px;height:30px;border-radius:12px;background:#071827;color:#fff;display:grid;place-items:center;font-weight:900;grid-row:1/3}.slide-tab strong{font-size:.94rem}.slide-tab small{color:#667085}.workbench-card{background:#fff;border:1px solid #d9e8f1;border-radius:26px;padding:22px;box-shadow:0 16px 45px rgba(16,32,51,.08);position:relative;overflow:hidden}.workbench-card:before{content:"";position:absolute;right:-120px;top:-130px;width:280px;height:280px;border-radius:50%;background:rgba(24,167,212,.12);pointer-events:none}.workbench-card>*{position:relative;z-index:1}.workbench-toolbar{align-items:center}.workbench-toolbar small{display:block;color:#667085;font-weight:700;margin-top:2px}.slide-style-ocean:before{background:rgba(24,167,212,.14)}.slide-style-sunset:before{background:rgba(249,115,22,.14)}.slide-style-forest:before{background:rgba(34,197,94,.13)}.slide-style-violet:before{background:rgba(124,58,237,.13)}.slide-style-slate:before{background:rgba(15,23,42,.10)}
.pro-editor-shell{background:#fff;border:1px solid #d8e5ef;border-radius:22px;padding:0;overflow:hidden;box-shadow:0 12px 34px rgba(16,32,51,.06)}.rich-toolbar{display:grid;gap:6px;padding:10px;background:linear-gradient(180deg,#f8fcff,#eef7fb);border-bottom:1px solid #d8e5ef;position:sticky;top:70px;z-index:4}.editor-toolbar-row{display:flex;flex-wrap:wrap;gap:6px}.tool-btn{display:inline-flex;align-items:center;gap:5px;border:1px solid #d7e6ee;background:#fff;color:#102033;border-radius:12px;padding:7px 9px;font:inherit;font-weight:800;cursor:pointer;box-shadow:0 4px 12px rgba(16,32,51,.04);transition:transform .12s ease,background .12s ease,border-color .12s ease}.tool-btn:hover{transform:translateY(-1px);background:#eaf8fd;border-color:#18a7d4}.tool-btn .material-symbols-rounded{font-size:18px;color:#0e6684}.tool-btn b{font-size:.78rem}.block-row .tool-btn{background:#fbfdff}.rich-editor[contenteditable="true"]{min-height:360px;background:#fff;border:0;border-radius:0;padding:24px;outline:none;overflow:auto}.slide-body-editor{min-height:430px}.cheat-editor{min-height:620px}.rich-editor:focus{box-shadow:inset 0 0 0 3px rgba(24,167,212,.24)}.rich-editor.drag-over{background:#f0fbff;box-shadow:inset 0 0 0 3px #18a7d4}.editor-help{display:flex;align-items:center;gap:8px;padding:10px 14px;border-top:1px solid #e2eef5;background:#fbfdff;color:#667085;font-weight:700;font-size:.9rem}.editor-help .material-symbols-rounded{font-size:20px;color:#0e6684}
.editor-context-menu{position:fixed;z-index:10000;display:none;min-width:245px;background:#071827;color:#fff;border:1px solid rgba(255,255,255,.16);border-radius:18px;padding:8px;box-shadow:0 24px 70px rgba(0,0,0,.3)}.editor-context-menu.open{display:grid;gap:4px}.editor-context-menu button{display:flex;align-items:center;gap:9px;width:100%;border:0;background:transparent;color:#eaf8fd;text-align:left;border-radius:12px;padding:9px 10px;font:inherit;font-weight:800;cursor:pointer}.editor-context-menu button:hover{background:rgba(255,255,255,.12)}.editor-context-menu .material-symbols-rounded{font-size:19px;color:#7dd3fc}
.rich-editor .callout{margin:16px 0}.callout.info{background:#eaf8fd;border-left-color:#18a7d4}.callout.success{background:#ecfdf5;border-left-color:#22c55e}.guide-table{width:100%;border-collapse:separate;border-spacing:0;margin:16px 0;border:1px solid #d8e5ef;border-radius:16px;overflow:hidden}.guide-table th{background:#071827;color:#fff}.guide-table th,.guide-table td{padding:12px;border-bottom:1px solid #e5edf3}.guide-table tr:last-child td{border-bottom:0}.soft-divider{border:0;border-top:1px dashed #bdd7e4;margin:24px 0}.jit-screenshot-placeholder{border:2px dashed #18a7d4;border-radius:22px;padding:28px;text-align:center;background:linear-gradient(135deg,#f6fcff,#eaf8fd);cursor:pointer;margin:18px 0;box-shadow:inset 0 0 0 4px rgba(255,255,255,.65)}.jit-screenshot-placeholder:hover{border-color:#0e6684;background:#eaf8fd}.jit-screenshot-placeholder .shot-empty strong{display:block;font-size:1.25rem;color:#0e6684}.jit-screenshot-placeholder .shot-empty span{display:block;color:#334155;margin-top:4px}.jit-screenshot-placeholder .shot-empty em{display:block;margin-top:8px;color:#667085;font-style:normal;font-weight:700;font-size:.9rem}.screenshot-frame{margin:18px 0;border:1px solid #d8e5ef;border-radius:22px;padding:12px;background:#fff;box-shadow:0 14px 34px rgba(16,32,51,.08)}.screenshot-frame img{max-width:100%;border-radius:14px;display:block}.screenshot-frame figcaption,.jit-screenshot-placeholder figcaption{margin-top:8px;color:#667085;font-weight:700;text-align:center}.mini-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin:16px 0}.mini-cards>div{border:1px solid #d8e5ef;border-radius:20px;padding:16px;background:linear-gradient(135deg,#fff,#f8fcff)}.process-flow{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0}.process-flow span{position:relative;padding:10px 15px;border-radius:999px;background:#eaf8fd;color:#0e6684;font-weight:900}.process-flow span:not(:last-child):after{content:"arrow_forward";font-family:"Material Symbols Rounded";font-weight:normal;vertical-align:-3px;margin-left:10px;color:#18a7d4}.step-list{counter-reset:steps;list-style:none;padding-left:0}.step-list li{counter-increment:steps;margin:10px 0;padding:12px 14px 12px 48px;border:1px solid #d8e5ef;background:#fff;border-radius:16px;position:relative}.step-list li:before{content:counter(steps);position:absolute;left:12px;top:10px;width:25px;height:25px;border-radius:9px;background:#071827;color:#fff;display:grid;place-items:center;font-weight:900}.check-list{list-style:none;padding-left:0}.check-list li{position:relative;padding-left:34px;margin:10px 0}.check-list li:before{content:"check_circle";font-family:"Material Symbols Rounded";position:absolute;left:0;color:#16a34a}.empty-state .material-symbols-rounded{display:block;margin:0 auto 10px;color:#18a7d4;font-size:36px}.question-card,.link-card-edit{background:#fff;border:1px solid #d8e5ef;border-radius:22px;padding:18px;box-shadow:0 10px 30px rgba(16,32,51,.05);margin-bottom:14px}
@media (max-width:980px){.builder-layout{grid-template-columns:1fr}.slide-list{position:static;max-height:none;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.rich-toolbar{position:static}.tool-btn b{display:none}.wizard-shell{grid-template-columns:1fr}.wizard-sidebar{position:relative}}

/* v5 product polish: branding, guided paths, help assistant, health scores */
.modern-hero h1,.leaderboard-hero h1,.assistant-hero h1,.path-hero h1,.path-detail-hero h1{color:#fff!important;text-shadow:0 8px 28px rgba(0,0,0,.22)}
.modern-hero p,.leaderboard-hero p,.assistant-hero p,.path-hero p,.path-detail-hero p{color:#eaf8ff!important}.modern-hero .eyebrow,.leaderboard-hero .eyebrow,.assistant-hero .eyebrow,.path-hero .eyebrow,.path-detail-hero .eyebrow{color:#fff!important;text-shadow:0 2px 12px rgba(0,0,0,.18)}
.brand-logo{max-width:160px;max-height:58px;object-fit:contain}.brand-copy strong{color:#fff}.hero-company-logo{max-width:180px;max-height:74px;object-fit:contain;background:rgba(255,255,255,.9);border-radius:18px;padding:10px;margin-bottom:16px;box-shadow:0 16px 36px rgba(0,0,0,.16)}
.logo-preview{max-width:220px;max-height:110px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:18px;padding:12px;box-shadow:0 12px 28px rgba(16,32,51,.08)}.brand-upload-panel{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start;border:1px solid #d9e8f1;border-radius:22px;background:#f8fcff;padding:18px}.company-pill-logo{width:34px;height:34px;object-fit:contain;background:#fff;border-radius:10px;padding:4px;margin-right:8px}.company-pill{display:flex!important;align-items:center;gap:8px}.member-card .mini{font-size:.85rem;color:#607286;margin-top:4px;display:inline-flex}
.primary-action{background:linear-gradient(135deg,#e7f9fd,#fff)!important;border-color:#8edff0!important;box-shadow:0 18px 45px rgba(22,189,229,.16)!important}.primary-action .material-symbols-rounded{background:#071827;color:#68dcff;border-radius:18px;padding:10px}.module-action-order .action-card{transition:transform .16s ease,box-shadow .16s ease}.module-action-order .action-card:hover{transform:translateY(-4px);box-shadow:0 22px 52px rgba(16,32,51,.12)}
.standard-cheat-sheet .cheat-toc{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}.cheat-toc a{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #d8e5ef;background:#fff;color:#102033;border-radius:16px;padding:12px;font-weight:900}.standard-section{position:relative}.standard-section>h2 .material-symbols-rounded{color:#18a7d4;background:#eaf8fd;border-radius:14px;padding:7px}.visual-content .cheat-section{box-shadow:none;border:0;padding:0;margin:0}.link-bullets{display:grid;gap:8px}.link-bullets li{background:#f8fcff;border:1px solid #dbe8f1;border-radius:14px;padding:10px 12px}
.progress-widget .level-chip,.progress-widget .streak-chip{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.16);border-radius:18px;padding:12px;display:grid;gap:6px}.progress-widget .level-chip strong,.progress-widget .streak-chip{color:#fff}.progress-widget .level-chip small{color:#d9f5ff}.streak-chip{display:flex!important;align-items:center;gap:10px;font-weight:900}.streak-chip .material-symbols-rounded{font-size:22px!important;color:#ffce3a!important}
.path-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.path-card-mini,.path-card{display:grid;gap:8px;border:1px solid #d8e5ef;border-radius:22px;background:#fff;color:#102033;padding:16px;box-shadow:0 12px 32px rgba(16,32,51,.06)}.path-card-mini .material-symbols-rounded,.path-card>.material-symbols-rounded{font-size:34px;color:#18a7d4}.path-grid{display:grid;gap:16px}.path-card{grid-template-columns:auto 1fr 220px;align-items:center}.path-progress strong{font-size:2rem;color:#0e6684}.path-timeline{display:grid;gap:12px}.path-step{display:grid;grid-template-columns:44px 36px 1fr auto;gap:12px;align-items:center;border:1px solid #dbe8f1;border-radius:20px;background:#fff;color:#102033;padding:14px}.path-step.done{background:#ecfdf5;border-color:#bbf7d0}.path-step-number{width:36px;height:36px;border-radius:14px;background:#071827;color:#fff;display:grid;place-items:center;font-weight:950}
.help-launcher{position:fixed;right:22px;bottom:22px;z-index:2000}.help-fab{border:0;border-radius:999px;background:linear-gradient(135deg,#071827,#0f4c68);color:#fff;box-shadow:0 22px 60px rgba(0,0,0,.28);padding:13px 18px;display:flex;align-items:center;gap:9px;cursor:pointer;font-weight:950}.help-fab .material-symbols-rounded{color:#68dcff}.help-panel{position:absolute;right:0;bottom:64px;width:min(420px,calc(100vw - 32px));background:#fff;border:1px solid #d8e5ef;border-radius:26px;padding:16px;box-shadow:0 30px 90px rgba(0,0,0,.28)}.help-panel-head{display:flex;justify-content:space-between;gap:12px;align-items:start;margin-bottom:12px}.help-panel-head button{border:0;background:#eef7fb;border-radius:12px;cursor:pointer}.help-panel-head small{display:block;color:#667085}.help-search{display:flex;gap:8px}.help-results{display:grid;gap:8px;max-height:280px;overflow:auto;margin:12px 0}.help-result{display:grid;grid-template-columns:28px 1fr;gap:8px;padding:10px;border:1px solid #e0eaf1;border-radius:16px;background:#f8fcff;color:#102033}.help-result small{grid-column:2;color:#667085}.button.full{width:100%}
.assistant-shell{display:grid;gap:16px}.assistant-thread{min-height:360px;max-height:58vh;overflow:auto;display:grid;align-content:start;gap:12px;background:linear-gradient(135deg,#f7fbfd,#eef8fc);border:1px solid #d8e5ef;border-radius:24px;padding:16px}.assistant-bubble{max-width:820px;border-radius:22px;padding:14px 16px;background:#fff;border:1px solid #dbe8f1;box-shadow:0 10px 28px rgba(16,32,51,.05)}.assistant-bubble.user{justify-self:end;background:#071827;color:#fff}.assistant-bubble.system.loading{opacity:.75}.assistant-sources{display:grid;gap:7px;margin-top:14px;border-top:1px solid #e2edf4;padding-top:12px}.assistant-sources a{display:flex;gap:7px;align-items:center}.assistant-input{display:grid;grid-template-columns:1fr auto;gap:10px}.assistant-hero .card-icon{background:rgba(255,255,255,.2);color:#fff}
.health-pill{display:inline-flex;border-radius:999px;padding:.32rem .65rem;font-weight:950}.health-pill.good{background:#dcfce7;color:#166534}.health-pill.ok{background:#fef3c7;color:#92400e}.health-pill.poor{background:#fee2e2;color:#991b1b}.module-health-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}.health-card{display:grid;grid-template-columns:110px 1fr;gap:16px;border:1px solid #dbe8f1;border-radius:26px;background:#fff;padding:18px;box-shadow:0 14px 36px rgba(16,32,51,.07)}.health-score{border-radius:24px;display:grid;place-items:center;background:#eef7fb;color:#0e6684}.health-score span{font-size:2rem;font-weight:950}.health-card.good .health-score{background:#dcfce7;color:#166534}.health-card.ok .health-score{background:#fef3c7;color:#92400e}.health-card.poor .health-score{background:#fee2e2;color:#991b1b}.health-issues{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.health-issues span{border-radius:999px;background:#f1f5f9;color:#475569;padding:5px 9px;font-weight:800;font-size:.82rem}.row-overdue{background:#fff7ed}.company-score-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.company-score-card{border:1px solid #dbe8f1;border-radius:20px;background:#fff;padding:14px;display:grid;gap:5px}.company-score-card span{font-size:1.4rem;font-weight:950;color:#0e6684}.certificate-logo-row{display:flex;justify-content:center;align-items:center;gap:18px;margin-bottom:22px}.certificate-logo{max-width:170px;max-height:82px;object-fit:contain}.certificate-logo.customer-logo{border-left:1px solid #dbe8f1;padding-left:18px}.certificate-card.expired .certificate-border{border-color:#f59e0b}.certificate-company{color:#203043!important}.video-frame{position:relative;aspect-ratio:16/9;width:100%;border-radius:22px;overflow:hidden;background:#071827;margin:16px 0;box-shadow:0 18px 44px rgba(16,32,51,.18)}.video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.video-embed{border:1px dashed #18a7d4;border-radius:18px;background:#f0fbff;padding:14px;margin:16px 0}.explain-mode-box{display:grid;grid-template-columns:36px 1fr;gap:10px;background:#fffbeb;border:1px solid #fde68a;border-radius:20px;padding:14px;margin:16px 0}.explain-mode-box .material-symbols-rounded{color:#d97706}.button.active{background:#071827!important;color:#fff!important}.scenario-card{border:1px solid #d9e8f1;border-radius:22px;background:linear-gradient(135deg,#fff,#f8fcff);padding:16px;margin:16px 0;box-shadow:0 12px 32px rgba(16,32,51,.06)}.scenario-card button{margin:4px 6px 4px 0;border:1px solid #d8e5ef;background:#fff;border-radius:999px;padding:9px 12px;font-weight:900;cursor:pointer}.scenario-card button.correct{background:#dcfce7;border-color:#22c55e;color:#166534}.scenario-card button.wrong{background:#fee2e2;border-color:#ef4444;color:#991b1b}.scenario-feedback{margin-top:12px;background:#eaf8fd;border-left:4px solid #18a7d4;border-radius:14px;padding:12px}.empty-state.compact{padding:16px;font-weight:900}.form-grid.two-cols{grid-template-columns:repeat(2,1fr)}
@media(max-width:920px){.brand-upload-panel,.path-card{grid-template-columns:1fr}.standard-cheat-sheet .cheat-toc{grid-template-columns:1fr 1fr}.assistant-input{grid-template-columns:1fr}.health-card{grid-template-columns:1fr}.help-launcher{left:16px;right:16px}.help-panel{left:0;right:0;width:auto}.hero-panel{grid-template-columns:1fr}.form-grid.two-cols{grid-template-columns:1fr}}
@media print{.cheat-toc{display:none!important}.standard-section{break-inside:avoid}.help-launcher{display:none!important}.certificate-logo-row{display:flex!important}}
.report-company-logo{max-width:180px;max-height:82px;object-fit:contain;background:#fff;border-radius:18px;padding:10px;margin-bottom:12px;box-shadow:0 12px 28px rgba(16,32,51,.08)}


/* v6 smoother navigation, support sharing, AI review, and visual polish */
.modern-hero h1,
.module-hero.visual-hero-card h1,
.cheat-sheet.visual-cheat-sheet header h1,
.leaderboard-hero h1,
.profile-hero h1,
.search-hero h1 {
    color: #fff;
}
.modern-hero h1 {
    font-size: clamp(2.2rem, 5.2vw, 4.8rem);
    line-height: .98;
    letter-spacing: -.055em;
    max-width: 12ch;
    text-wrap: balance;
}
.modern-hero p {
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    max-width: 58rem;
}
.modern-hero {
    padding: clamp(1.8rem, 4vw, 3.6rem);
    gap: clamp(1.5rem, 4vw, 4rem);
}
.gamified-widget {
    max-width: 420px;
    min-height: 0;
    padding: clamp(1.3rem, 2vw, 2.1rem);
}
.gamified-widget > strong {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
}
.level-chip,
.streak-chip,
.points-chip {
    padding: .85rem 1rem;
    border-radius: 18px;
}
.level-chip strong {
    font-size: .98rem;
}
.level-chip small {
    font-size: .8rem;
}
.nav-help-button {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid rgba(255,255,255,.28);
}
.nav-help-button .material-symbols-rounded {
    font-size: 1.1rem;
}

.customer-shell-page .page-shell {
    padding-left: clamp(1rem, 2vw, 2rem);
}
@media (min-width: 1100px) {
    .customer-shell-page .page-shell {
        margin-left: 250px;
    }
    .customer-shell-page.jit_customer_rail_collapsed-active .page-shell {
        margin-left: 92px;
    }
}
.customer-sidebar,
.admin-side-panel {
    position: fixed;
    left: 18px;
    top: 92px;
    z-index: 9;
    width: 220px;
    max-height: calc(100vh - 118px);
    overflow: auto;
    padding: .75rem;
    border: 1px solid rgba(127,156,180,.25);
    border-radius: 26px;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 70px rgba(10,31,51,.13);
}
.customer-sidebar nav,
.admin-tabs {
    display: grid;
    gap: .35rem;
}
.customer-sidebar a,
.customer-sidebar button,
.admin-tabs a,
.rail-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 44px;
    padding: .72rem .85rem;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--ink-2);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.customer-sidebar a:hover,
.customer-sidebar button:hover,
.admin-tabs a:hover,
.admin-tabs a.active {
    background: linear-gradient(135deg, rgba(22,189,229,.16), rgba(9,152,189,.08));
    text-decoration: none;
    color: var(--ink);
}
.rail-brand {
    margin-right: 2.2rem;
    font-weight: 800;
}
.rail-brand span {
    color: var(--brand-dark);
}
.rail-toggle {
    position: absolute;
    top: .8rem;
    right: .8rem;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: rgba(16,24,34,.06);
    cursor: pointer;
}
.customer-sidebar.is-collapsed,
.admin-side-panel.is-collapsed {
    width: 66px;
}
.customer-sidebar.is-collapsed strong,
.admin-side-panel.is-collapsed strong,
.customer-sidebar.is-collapsed em,
.admin-side-panel.is-collapsed em,
.customer-sidebar.is-collapsed .rail-brand strong,
.admin-side-panel.is-collapsed .rail-brand strong {
    display: none;
}
.customer-sidebar.is-collapsed a,
.customer-sidebar.is-collapsed button,
.admin-side-panel.is-collapsed a {
    justify-content: center;
}
.customer-sidebar.is-collapsed .rail-brand,
.admin-side-panel.is-collapsed .rail-brand {
    margin-right: 0;
}
.customer-sidebar.is-collapsed .rail-toggle .material-symbols-rounded,
.admin-side-panel.is-collapsed .rail-toggle .material-symbols-rounded {
    transform: rotate(180deg);
}
.admin-shell-page .page-shell {
    padding-top: 1.5rem;
}
@media (min-width: 1100px) {
    .admin-shell-page .page-shell {
        margin-left: 276px;
    }
    .admin-shell-page.jit_admin_rail_collapsed-active .page-shell {
        margin-left: 96px;
    }
}
.admin-side-panel {
    width: 244px;
}
.admin-tabs {
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}
.admin-tabs a {
    position: relative;
}
.admin-tabs a em {
    margin-left: auto;
    min-width: 1.45rem;
    height: 1.45rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-style: normal;
    font-size: .75rem;
}
@media (max-width: 1099px) {
    .customer-sidebar,
    .admin-side-panel {
        position: static;
        width: auto;
        max-height: none;
        margin: 1rem;
    }
    .customer-sidebar nav,
    .admin-tabs {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .rail-toggle {
        display: none;
    }
    .customer-shell-page .page-shell,
    .admin-shell-page .page-shell {
        margin-left: 0;
    }
}

.help-panel {
    width: min(94vw, 520px);
}
.help-results {
    max-height: 55vh;
    overflow: auto;
}
.help-result {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .8rem;
    padding: .85rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    margin-bottom: .65rem;
}
.help-result > span {
    color: var(--brand-dark);
}
.help-result small {
    display: block;
    color: var(--muted);
    margin-top: .2rem;
}
.mini-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .5rem;
}
.mini-link-row a {
    padding: .25rem .55rem;
    border-radius: 999px;
    background: var(--brand-soft);
    font-weight: 700;
    font-size: .8rem;
}
.assistant-answer {
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(22,189,229,.14), rgba(255,255,255,.88));
    border: 1px solid rgba(22,189,229,.25);
    margin-bottom: .8rem;
}
.microcopy {
    color: var(--muted);
    font-size: .88rem;
}

.template-picker {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 1rem;
    margin: 1rem 0;
    background: linear-gradient(180deg, #fff, rgba(231,249,253,.45));
}
.template-picker legend {
    font-weight: 900;
    padding: 0 .5rem;
}
.template-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: .8rem;
}
.template-choice {
    position: relative;
    display: grid;
    gap: .65rem;
    min-height: 205px;
    padding: 1.2rem;
    border: 2px solid var(--line);
    border-radius: 28px;
    background: #fff;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.template-choice:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.template-choice input {
    position: absolute;
    inset: 1rem 1rem auto auto;
    width: 1.2rem;
    height: 1.2rem;
}
.template-choice:has(input:checked) {
    border-color: var(--brand);
    box-shadow: 0 20px 60px rgba(22,189,229,.18);
}
.template-choice .card-icon {
    width: 64px;
    height: 64px;
}
.template-choice strong {
    font-size: 1.05rem;
    line-height: 1.1;
}
.template-choice small {
    color: var(--muted);
    font-size: .92rem;
}
@media (max-width: 1000px) {
    .template-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .template-card-grid {
        grid-template-columns: 1fr;
    }
}

.copy-link-box {
    display: flex;
    gap: .75rem;
    align-items: center;
}
.copy-link-box input {
    flex: 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.share-created-panel {
    border-color: rgba(31,157,99,.35);
    background: linear-gradient(135deg, rgba(31,157,99,.08), #fff);
}
.expired-share .empty-state {
    padding: 4rem 2rem;
}
.review-modal {
    width: min(980px, 94vw);
    border: 0;
    border-radius: 30px;
    padding: 0;
    box-shadow: 0 40px 100px rgba(0,0,0,.28);
}
.review-modal::backdrop {
    background: rgba(5,15,25,.55);
    backdrop-filter: blur(8px);
}
.review-modal-card {
    padding: clamp(1.25rem, 3vw, 2rem);
    background: #fff;
}
.review-modal-head,
.module-review-summary,
.review-preview-grid {
    display: grid;
    gap: 1rem;
}
.review-modal-head {
    grid-template-columns: 1fr auto;
    align-items: start;
    margin-bottom: 1rem;
}
.change-list {
    display: grid;
    gap: .75rem;
    margin: 1rem 0;
}
.change-list article,
.module-review-summary > div,
.review-preview-grid > div {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}
.change-list small,
.module-review-summary span {
    color: var(--muted);
}
.module-review-summary {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.review-preview-grid {
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 760px) {
    .review-preview-grid {
        grid-template-columns: 1fr;
    }
}
.shared-page .topbar .navlinks,
.shared-page .customer-sidebar {
    display: none;
}
.shared-page .page-shell {
    margin-left: auto !important;
}

.action-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 760px) {
    .action-grid.two {
        grid-template-columns: 1fr;
    }
}

/* v7 focused editor, contextual help, and calmer typography */
h1 {
    font-size: clamp(1.75rem, 3vw, 3.2rem);
    letter-spacing: -.035em;
}
.admin-hero h1,
.module-hero.visual-hero-card h1,
.training-header h1,
.cheat-sheet.visual-cheat-sheet header h1,
.leaderboard-hero h1,
.profile-hero h1,
.search-hero h1,
.content-panel > h1,
.section-heading h1 {
    font-size: clamp(1.65rem, 2.4vw, 2.75rem);
}
.modern-hero h1 {
    font-size: clamp(1.95rem, 4vw, 3.75rem);
    max-width: 16ch;
    line-height: 1.02;
}
.modern-hero p {
    font-size: clamp(1rem, 1.35vw, 1.2rem);
}
.gamified-widget > strong {
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
}

.editor-focus-page {
    overflow: hidden;
    background: #edf6fb;
}
.editor-focus-page .topbar,
.editor-focus-page .footer,
.editor-focus-page .admin-side-panel {
    display: none !important;
}
.editor-focus-page .page-shell {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 0;
    min-height: 100vh;
}
.editor-focus-topbar {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1.1rem;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(185,207,220,.8);
    box-shadow: 0 14px 40px rgba(11,42,63,.10);
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
}
.editor-focus-title,
.editor-focus-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}
.editor-focus-title strong {
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 44vw;
    display: block;
}
.editor-focus-title .eyebrow {
    margin-bottom: .1rem;
    font-size: .66rem;
}
.editor-focus-topbar .button.ghost {
    background: #f3f8fb;
    color: var(--ink-2);
    border-color: var(--line);
}
.editor-focus-page .focused-module-editor {
    height: calc(100vh - 74px);
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
    overflow: hidden;
}
.editor-focus-page .module-editor-titlebar {
    display: none;
}
.editor-focus-page .wizard-form,
.editor-focus-page .wizard-shell {
    height: 100%;
    min-height: 0;
}
.editor-focus-page .wizard-shell {
    grid-template-columns: 300px minmax(0,1fr);
    transition: grid-template-columns .18s ease;
}
.editor-focus-page .wizard-main {
    overflow: auto;
    padding: clamp(1rem, 2.4vw, 2rem);
}
.editor-focus-page .wizard-sidebar {
    overflow: auto;
    border-radius: 0;
    padding-top: 1rem;
}
.wizard-collapse-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 15px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}
.wizard-collapse-toggle:hover {
    background: rgba(255,255,255,.14);
}
.wizard-shell.sidebar-collapsed {
    grid-template-columns: 78px minmax(0,1fr);
}
.wizard-shell.sidebar-collapsed .wizard-sidebar {
    padding-left: .65rem;
    padding-right: .65rem;
}
.wizard-shell.sidebar-collapsed .wizard-collapse-toggle strong,
.wizard-shell.sidebar-collapsed .wizard-progress-ring small,
.wizard-shell.sidebar-collapsed .wizard-step strong,
.wizard-shell.sidebar-collapsed .wizard-step small,
.wizard-shell.sidebar-collapsed .wizard-jump-box,
.wizard-shell.sidebar-collapsed .wizard-progress-ring span {
    display: none;
}
.wizard-shell.sidebar-collapsed .wizard-progress-ring {
    min-height: 44px;
    padding: .45rem;
    display: grid;
    place-items: center;
}
.wizard-shell.sidebar-collapsed .wizard-progress-ring:before {
    content: "Steps";
    writing-mode: vertical-rl;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .7rem;
    color: rgba(255,255,255,.78);
    font-weight: 900;
}
.wizard-shell.sidebar-collapsed .wizard-step {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: .7rem .35rem;
}
.wizard-shell.sidebar-collapsed .wizard-step span {
    grid-row: auto;
}
.wizard-shell.sidebar-collapsed .wizard-collapse-toggle .material-symbols-rounded {
    transform: rotate(180deg);
}
.editor-focus-page .builder-layout {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}
.editor-focus-page .slide-list {
    max-height: calc(100vh - 230px);
    overflow: auto;
}
.editor-focus-page .slide-workbench,
.editor-focus-page #quiz-builder,
.editor-focus-page #links-builder {
    max-width: 1180px;
}
.editor-focus-page .cheat-editor {
    min-height: calc(100vh - 320px);
}
.editor-focus-page .wizard-panel.active {
    animation: focusPanelIn .18s ease-out;
}
@keyframes focusPanelIn {
    from { opacity: .55; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.context-help-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: .85rem;
    padding: 1rem;
    border: 1px solid rgba(22,189,229,.28);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(22,189,229,.12), #fff);
    margin-bottom: .85rem;
}
.context-help-card > .material-symbols-rounded {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--brand-soft);
    color: var(--brand-dark);
}
.context-help-card p {
    margin: .25rem 0 .65rem;
    color: var(--muted);
}
.prompt-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}
.prompt-chip-row button,
.context-badge {
    border: 1px solid rgba(22,189,229,.32);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-2);
    padding: .45rem .65rem;
    font: inherit;
    font-size: .82rem;
    font-weight: 850;
    cursor: pointer;
}
.prompt-chip-row button:hover {
    background: var(--brand-soft);
}
.context-badge {
    display: inline-flex;
    margin-left: .45rem;
    padding: .15rem .45rem;
    font-size: .68rem;
    color: var(--brand-dark);
    background: var(--brand-soft);
    vertical-align: middle;
}
.help-result.is-context {
    border-color: rgba(22,189,229,.45);
    background: linear-gradient(135deg, #fff, rgba(231,249,253,.65));
}

@media (max-width: 900px) {
    .editor-focus-topbar {
        height: auto;
        align-items: stretch;
        flex-direction: column;
    }
    .editor-focus-page .focused-module-editor {
        height: calc(100vh - 132px);
    }
    .editor-focus-page .wizard-shell {
        grid-template-columns: 1fr;
    }
    .editor-focus-page .wizard-sidebar {
        max-height: 220px;
    }
    .wizard-shell.sidebar-collapsed {
        grid-template-columns: 1fr;
    }
    .wizard-shell.sidebar-collapsed .wizard-step strong,
    .wizard-shell.sidebar-collapsed .wizard-step small,
    .wizard-shell.sidebar-collapsed .wizard-jump-box {
        display: block;
    }
    .editor-focus-page .builder-layout {
        grid-template-columns: 1fr;
    }
}
.editor-focus-page .help-launcher { display: none !important; }

/* v8 Customer Portal polish */
.icon-actions{display:flex;align-items:center;gap:.35rem;flex-wrap:nowrap;min-width:210px}.icon-actions form{display:inline-flex;margin:0}.icon-button{width:34px;height:34px;border:1px solid #d7e6ef;background:#fff;color:#102033;border-radius:12px;display:inline-grid;place-items:center;text-decoration:none;cursor:pointer;box-shadow:0 8px 18px rgba(16,32,51,.06);transition:transform .14s ease,box-shadow .14s ease,background .14s ease}.icon-button:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(16,32,51,.12);background:#eef9fd}.icon-button .material-symbols-rounded{font-size:19px}.icon-button.danger{color:#b91c1c;border-color:#fecaca}.icon-actions button{font:inherit}.gamified-widget .level-chip{display:grid!important;grid-template-columns:auto 1fr;align-items:center;gap:.35rem .65rem;padding:.7rem .85rem!important;border-radius:16px}.gamified-widget .level-chip:before{content:'workspace_premium';font-family:'Material Symbols Rounded';font-size:1.25rem;color:#68dcff;grid-row:1 / span 2}.gamified-widget .level-chip strong{font-size:.98rem!important;line-height:1.1!important;letter-spacing:-.02em;color:#fff!important}.gamified-widget .level-chip small{font-size:.75rem!important;line-height:1.2!important;color:#e1f7ff!important}.gamified-widget .level-chip .mini-progress{grid-column:2;height:7px}.modern-hero h1{font-size:clamp(1.9rem,3.25vw,3.1rem)!important;max-width:18ch!important;line-height:1.04!important}.modern-hero p{font-size:clamp(.98rem,1.15vw,1.12rem)!important}.gamified-widget{max-width:360px!important}.gamified-widget>strong{font-size:clamp(2rem,3.6vw,3rem)!important}.portal-feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1rem}.portal-feature-card,.service-card,.asset-card,.request-card,.announcement-card,.contract-card{border:1px solid #d8e6ef;background:#fff;border-radius:24px;padding:1rem;box-shadow:0 12px 32px rgba(16,32,51,.07)}.portal-feature-card{display:grid;grid-template-columns:48px 1fr;gap:.8rem;align-items:start;text-decoration:none;color:#102033}.portal-feature-card .material-symbols-rounded{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:#eaf8fd;color:#0e6684;font-size:25px}.portal-feature-card:hover{transform:translateY(-2px);box-shadow:0 20px 48px rgba(16,32,51,.12)}.portal-grid-two{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:1rem}.portal-stack{display:grid;gap:1rem}.portal-mini-table td,.portal-mini-table th{padding:.65rem .75rem}.severity-info{background:#eaf8fd;color:#075985}.severity-warning{background:#fff7ed;color:#9a3412}.severity-danger{background:#fee2e2;color:#991b1b}.severity-success{background:#ecfdf5;color:#166534}.triage-box{border:1px dashed #18a7d4;background:#f0fbff;border-radius:20px;padding:1rem;margin:.8rem 0}.triage-box ul{margin:.4rem 0 0}.sla-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem}.sla-list div{background:#f8fcff;border:1px solid #dbe8f1;border-radius:18px;padding:.85rem}.service-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1rem}.service-status-card{border:1px solid #dbe8f1;border-radius:22px;background:#fff;padding:1rem;box-shadow:0 10px 28px rgba(16,32,51,.06)}.service-status-card.good{border-color:#bbf7d0;background:#f0fdf4}.service-status-card.degraded,.service-status-card.warning{border-color:#fed7aa;background:#fff7ed}.service-status-card.outage,.service-status-card.danger{border-color:#fecaca;background:#fef2f2}.admin-shell-page table td:last-child{white-space:nowrap}@media(max-width:980px){.portal-grid-two{grid-template-columns:1fr}.icon-actions{min-width:0;flex-wrap:wrap}.gamified-widget{max-width:none!important}.modern-hero{grid-template-columns:1fr!important}}

/* v9 visual polish and usability tuning */
:root{
    --soft-blue:#eaf8fd;
    --soft-purple:#f2efff;
    --soft-mint:#ecfbf4;
    --soft-warm:#fff7ed;
}
body{
    background:
        radial-gradient(circle at 12% 0%, rgba(22,189,229,.18), transparent 30rem),
        radial-gradient(circle at 88% 8%, rgba(124,92,255,.10), transparent 28rem),
        linear-gradient(180deg,#f7fbff 0%,#eef6fb 100%);
}
.page-shell{width:min(1280px,calc(100% - 2rem));}
h1{font-size:clamp(1.85rem,3.2vw,3.25rem)!important;letter-spacing:-.045em;}
h2{font-size:clamp(1.22rem,1.7vw,1.75rem)!important;}
.admin-hero h1,.module-hero h1,.auth-card h1,.content-panel h1,.ai-hero h1{font-size:clamp(1.75rem,3vw,2.85rem)!important;}
.hero-panel.modern-hero{
    grid-template-columns:minmax(0,1.15fr) minmax(280px,390px);
    padding:clamp(1.6rem,4vw,3.1rem);
    border:0;
    color:#fff;
    background:
        radial-gradient(circle at 82% 0%,rgba(104,220,255,.36),transparent 25rem),
        linear-gradient(135deg,#0c1824 0%,#19435a 52%,#58bfe5 100%);
    box-shadow:0 26px 70px rgba(15,42,61,.22);
}
.hero-panel.modern-hero h1{color:#fff!important;text-shadow:0 3px 22px rgba(0,0,0,.22);font-size:clamp(2.05rem,4vw,4rem)!important;max-width:20ch!important;}
.hero-panel.modern-hero p{color:#effbff!important;max-width:58rem;font-size:clamp(1rem,1.2vw,1.18rem)!important;}
.hero-panel.modern-hero .eyebrow{color:#d9f7ff;}
.hero-panel.modern-hero .searchbar input,.hero-panel.modern-hero .searchbar select{box-shadow:0 14px 30px rgba(0,0,0,.12);border-color:rgba(255,255,255,.38);}
.progress-widget.gamified-widget{
    background:linear-gradient(160deg,rgba(255,255,255,.22),rgba(255,255,255,.08));
    border:1px solid rgba(255,255,255,.28);
    backdrop-filter:blur(18px);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 20px 48px rgba(0,0,0,.12);
    padding:1.2rem!important;
}
.gamified-widget>strong{font-size:clamp(1.95rem,3.5vw,3.05rem)!important;}
.points-chip{background:rgba(255,255,255,.16)!important;border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:.65rem .85rem;font-weight:900;color:#fff;display:flex;align-items:center;gap:.5rem;}
.gamified-widget .level-chip{
    display:grid!important;
    grid-template-columns:auto 1fr;
    align-items:center;
    gap:.3rem .6rem;
    padding:.58rem .72rem!important;
    border-radius:15px!important;
    background:rgba(255,255,255,.12)!important;
    border:1px solid rgba(255,255,255,.14)!important;
}
.gamified-widget .level-chip:before{content:'workspace_premium';font-family:'Material Symbols Rounded';font-size:1.05rem!important;color:#75ddff;grid-row:1 / span 2;}
.gamified-widget .level-chip strong{font-size:.86rem!important;line-height:1.12!important;letter-spacing:-.015em;color:#fff!important;}
.gamified-widget .level-chip small{font-size:.7rem!important;line-height:1.15!important;color:#def6ff!important;}
.gamified-widget .level-chip .meter{grid-column:2;height:6px!important;margin-top:.1rem;}
.gamified-widget .streak-chip{padding:.62rem .76rem!important;border-radius:15px!important;font-size:.9rem!important;}
.module-card.visual-card,.portal-card,.portal-feature-card,.content-panel,.admin-hero,.cheat-sheet{
    border-color:rgba(196,216,230,.78)!important;
    box-shadow:0 18px 48px rgba(16,32,51,.075)!important;
}
.module-card.visual-card,.portal-card{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;}
.module-card.visual-card:hover,.portal-card:hover{transform:translateY(-3px);box-shadow:0 24px 62px rgba(16,32,51,.13)!important;border-color:#9cdced!important;text-decoration:none;}
.card-icon,.portal-card .material-symbols-rounded{background:linear-gradient(135deg,#e9faff,#f3fbff)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.9);}
.admin-shell-page .content-panel,.customer-shell-page .content-panel{border-radius:26px;}
.table-wrap table{background:#fff;border-radius:18px;overflow:hidden;}
th{background:#f6fbfe;color:#587082;font-weight:950;}
.inline-actions.icon-actions{min-width:0!important;gap:.28rem!important;}
.icon-actions .icon-button{width:32px;height:32px;border-radius:10px;}
.icon-actions .icon-button .material-symbols-rounded{font-size:18px!important;}
.ai-builder-form{gap:1.15rem;}
.template-card-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;}
.template-choice{
    border-radius:24px!important;
    padding:1.15rem!important;
    background:linear-gradient(180deg,#fff,#f9fcff)!important;
    border:1px solid #d8e7f1!important;
    box-shadow:0 16px 42px rgba(16,32,51,.06);
    cursor:pointer;
    transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.template-choice:hover{transform:translateY(-2px);box-shadow:0 22px 54px rgba(16,32,51,.11);border-color:#9fdceb!important;}
.template-choice:has(input:checked){border-color:#16bde5!important;background:linear-gradient(180deg,#f0fbff,#fff)!important;box-shadow:0 22px 56px rgba(22,189,229,.16);}
.ai-hero{background:linear-gradient(135deg,#f7f3ff 0%,#ebfbff 100%)!important;border:0!important;}
.ai-hero p{font-size:1.05rem;max-width:70rem;}
.help-panel{border-radius:24px!important;box-shadow:0 30px 80px rgba(8,17,26,.28)!important;}
.help-fab{box-shadow:0 18px 48px rgba(22,189,229,.28)!important;}
.customer-sidebar,.admin-sidebar{box-shadow:12px 0 34px rgba(8,17,26,.12);}
.builder-shell,.builder-main,.builder-sidebar{background:#f6fbff;}
.builder-sidebar{border-right:1px solid #d8e7f1;}
.builder-card,.editor-card{border-radius:24px!important;box-shadow:0 16px 48px rgba(16,32,51,.08);}
.editor-toolbar{position:sticky;top:0;z-index:4;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid #dbe8f1;}
.editor-toolbar button{border-radius:12px;}
@media(max-width:980px){
    .hero-panel.modern-hero{grid-template-columns:1fr!important;}
    .hero-panel.modern-hero h1{font-size:clamp(1.9rem,9vw,3rem)!important;}
    .progress-widget.gamified-widget{max-width:none!important;}
}

/* v10 Customer Portal polish */
.hero-panel.modern-hero.customer-overview-hero h1{font-size:clamp(2rem,3.5vw,3.25rem)!important;max-width:18ch!important;}
.portal-snapshot-widget{display:grid;grid-template-columns:1fr 1fr;gap:.85rem;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);border-radius:28px;padding:1rem;backdrop-filter:blur(18px);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 22px 54px rgba(0,0,0,.12);}
.snapshot-card,.snapshot-wide{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.18);border-radius:20px;padding:.85rem;color:#fff;display:grid;gap:.25rem;min-height:104px;}
.snapshot-card.primary{background:rgba(105,219,255,.24);}
.snapshot-card .material-symbols-rounded,.snapshot-wide .material-symbols-rounded{color:#83e5ff;font-size:1.45rem;}
.snapshot-card strong{font-size:1.35rem;line-height:1;color:#fff;}
.snapshot-card small,.snapshot-wide small{color:#e6f8ff;font-weight:800;}
.snapshot-wide{grid-column:1/-1;grid-template-columns:auto 1fr;align-items:center;min-height:0;}
.portal-feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem;margin:1.2rem 0;}
.portal-feature-tile{position:relative;overflow:hidden;display:grid;grid-template-columns:auto 1fr;gap:1rem;align-items:start;min-height:195px;padding:1.1rem;border:1px solid #d7e8f2;border-radius:28px;background:linear-gradient(180deg,#fff,#f8fcff);box-shadow:0 18px 48px rgba(16,32,51,.08);text-decoration:none;color:inherit;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;}
.portal-feature-tile:hover{transform:translateY(-4px);box-shadow:0 28px 70px rgba(16,32,51,.14);border-color:#87dcee;text-decoration:none;}
.portal-feature-tile:after{content:'';position:absolute;right:-60px;bottom:-60px;width:150px;height:150px;background:radial-gradient(circle,rgba(22,189,229,.15),transparent 65%);}
.tile-orb{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#e9faff,#f4fbff);color:#247091;box-shadow:inset 0 1px 0 rgba(255,255,255,.9);}
.portal-feature-tile small{font-weight:950;color:#4b92af;text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;}
.portal-feature-tile strong{display:block;font-size:1.12rem;color:#101927;margin:.14rem 0;}
.portal-feature-tile p{color:#607283;margin:.2rem 0 2rem;}
.tile-cta{position:absolute;left:1.1rem;right:1.1rem;bottom:1rem;display:flex;align-items:center;justify-content:space-between;font-weight:950;color:#197fa0;}
.portal-card-button{text-align:left;cursor:pointer;}
.ticket-subnav{display:flex;gap:.65rem;flex-wrap:wrap;margin:-.4rem 0 1rem;}
.ticket-subnav a{display:inline-flex;align-items:center;gap:.4rem;padding:.62rem .8rem;border:1px solid #d7e8f2;border-radius:999px;background:#fff;font-weight:900;text-decoration:none;color:#234;box-shadow:0 8px 20px rgba(16,32,51,.06);}
.ticket-subnav a:hover{background:#f1fbff;border-color:#9bddec;text-decoration:none;}
.service-health-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(255px,1fr));gap:1rem;margin:1rem 0;}
.service-tile{position:relative;display:grid;grid-template-columns:auto 1fr;gap:.9rem;padding:1.05rem;border:1px solid #d7e8f2;border-radius:26px;background:linear-gradient(180deg,#fff,#f8fcff);box-shadow:0 18px 48px rgba(16,32,51,.075);}
.service-tile .service-icon{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:#eefaff;color:#207798;}
.service-tile small{font-weight:950;color:#53869b;text-transform:uppercase;font-size:.7rem;letter-spacing:.08em;}
.service-tile strong{display:block;font-size:1.08rem;margin:.15rem 0;color:#11202d;}
.service-tile p{color:#5f7282;margin:.2rem 0 1.8rem;}
.service-tile .status-pill{position:absolute;right:1rem;bottom:1rem;}
.service-tile.status-completed,.service-tile.status-active{border-color:#bfead0;background:linear-gradient(180deg,#fff,#f7fff9);}
.service-tile.status-warning{border-color:#ffe3a5;background:linear-gradient(180deg,#fff,#fffaf0);}
.service-tile.status-danger{border-color:#ffc5c5;background:linear-gradient(180deg,#fff,#fff4f4);}
.doc-hub-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.65rem;margin-top:1rem;max-width:760px;}
.doc-hub-actions a{display:grid;grid-template-columns:auto 1fr;gap:.6rem;align-items:center;padding:.75rem .85rem;border:1px solid rgba(255,255,255,.35);border-radius:18px;background:rgba(255,255,255,.14);color:#fff;text-decoration:none;backdrop-filter:blur(12px);}
.doc-hub-actions a:hover{background:rgba(255,255,255,.22);text-decoration:none;}
.doc-hub-actions .material-symbols-rounded{grid-row:1/3;color:#87e7ff;}
.doc-hub-actions strong{line-height:1;color:#fff;}
.doc-hub-actions small{color:#e8faff;font-weight:800;}
.rail-subitem{margin-left:1.15rem!important;opacity:.95;font-size:.92rem;}
.customer-side-panel.is-collapsed .rail-subitem,.admin-side-panel.is-collapsed .rail-subitem{margin-left:0!important;}
.permission-check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:.8rem;margin:1rem 0;}
.permission-check{border:1px solid #d7e8f2;border-radius:20px;background:#fff;padding:.9rem;display:grid;gap:.3rem;}
.permission-check.green{border-color:#aae8c3;background:#f5fff8;}
.permission-check.red{border-color:#ffc6c6;background:#fff5f5;}
.permission-check.amber{border-color:#ffe1a6;background:#fffaf0;}
.permission-check strong{display:flex;align-items:center;gap:.4rem;}
.mapping-list{display:grid;gap:.5rem;max-height:460px;overflow:auto;}
.mapping-row{display:grid;grid-template-columns:1fr auto;gap:.5rem;align-items:center;border:1px solid #d7e8f2;border-radius:16px;background:#fff;padding:.65rem;}
.compact-search{display:flex;gap:.65rem;align-items:center;flex-wrap:wrap;margin:1rem 0;}
.compact-search input{min-width:240px;}
.form-grid.four-cols{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));}
.wide-field{grid-column:1/-1;}
.template-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.85rem;}
.template-card{border:1px solid #d7e8f2;border-radius:22px;background:linear-gradient(180deg,#fff,#f8fcff);padding:1rem;display:grid;gap:.45rem;box-shadow:0 14px 34px rgba(16,32,51,.06);}
.template-card .material-symbols-rounded{width:52px;height:52px;border-radius:18px;display:grid;place-items:center;background:#eefaff;color:#1f7898;}
.campaign-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:.9rem;margin:1rem 0;}
.campaign-card{display:grid;grid-template-columns:auto 1fr;gap:.85rem;padding:1rem;border-radius:24px;border:1px solid #d7e8f2;background:linear-gradient(135deg,#fff,#f4fbff);box-shadow:0 16px 42px rgba(16,32,51,.07);}
.campaign-card .material-symbols-rounded{font-size:2rem;color:#16bde5;}
.campaign-card p{margin:.25rem 0;color:#607283;}
.button.full{width:100%;justify-content:center;margin:.45rem 0;}
@media(max-width:980px){.portal-snapshot-widget{grid-template-columns:1fr}.portal-feature-grid{grid-template-columns:1fr}.doc-hub-actions{grid-template-columns:1fr}.ticket-subnav{margin-top:.8rem}}
/* v11 company permission alignment */
.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:.65rem;align-items:stretch}.feature-grid .checkbox-card{display:grid;grid-template-columns:22px 32px 1fr;align-items:start;text-align:left;min-height:96px}.feature-grid .checkbox-card input{grid-column:1;margin:.35rem 0 0}.feature-grid .checkbox-card .material-symbols-rounded{grid-column:2}.feature-grid .checkbox-card strong,.feature-grid .checkbox-card small{grid-column:3}.feature-grid .checkbox-card small{margin-top:.15rem}

/* v11 portal polish */
.portal-grid-three,.integration-settings-grid,.discovery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1rem;align-items:start}
.portal-grid-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:1rem;align-items:start}
.scroll-list{max-height:520px;overflow:auto;padding-right:.25rem}
.mapping-list{display:grid;gap:.6rem}.mapping-row{grid-template-columns:1fr auto}.mapping-row small{display:block;color:var(--muted)}
.table-search{min-width:240px;border:1px solid var(--border);border-radius:14px;padding:.75rem 1rem;background:#fff;font:inherit}
.health-tile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.8rem}.health-tile{border:1px solid var(--border);border-radius:20px;background:linear-gradient(135deg,#fff,#f4fbff);padding:1rem;box-shadow:var(--shadow-soft)}.health-tile .material-symbols-rounded{font-size:2rem;color:var(--brand)}.health-tile strong{display:block;margin:.35rem 0}.health-tile p{margin:0;color:var(--muted);font-size:.94rem}
.tag-cloud{display:flex;flex-wrap:wrap;gap:.5rem}.wide-field{grid-column:span 2}.add-company-inline button{align-self:end}.permission-check-grid{display:grid;gap:.65rem}.permission-check{display:grid;grid-template-columns:34px 1fr;gap:.7rem;border:1px solid var(--border);border-radius:18px;padding:.8rem;background:#fff}.permission-check.green{border-color:#9be7b3;background:#f0fff5}.permission-check.red{border-color:#ffc2c2;background:#fff5f5}.permission-check.amber{border-color:#ffe2a8;background:#fffaf0}.permission-check .material-symbols-rounded{color:var(--brand)}.permission-check.green .material-symbols-rounded{color:#13a05f}.permission-check.red .material-symbols-rounded{color:#c73636}.permission-check em{display:block;margin-top:.3rem;color:var(--muted);font-style:normal}.checkbox.compact{display:flex;gap:.4rem;align-items:center;margin:0}.feature-grid .checkbox-card input{justify-self:start}.portal-feature-tile.tile-identities .tile-orb{background:#eef2ff;color:#3851c7}

/* v12 customer portal security/caching/reporting polish */
:root {
  --border: var(--line);
  --shadow-soft: 0 12px 32px rgba(16, 32, 51, .07);
}
.portal-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.portal-stat-grid > div {
  background: linear-gradient(180deg, #ffffff, #f7fcff);
  border: 1px solid #d7e8f2;
  border-radius: 22px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: .25rem;
}
.portal-stat-grid > div strong {
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  line-height: 1;
  color: var(--ink);
}
.portal-stat-grid > div small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.sync-panel .section-heading { align-items: center; }
.inline-form { display: inline-flex; margin: 0; }
.leaderboard-hero { align-items: center; }
.mini-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.mini-cards > div {
  border: 1px solid #d7e8f2;
  background: #fff;
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}
.timeline-list { display: grid; gap: .75rem; }
.timeline-item {
  border: 1px solid #d7e8f2;
  background: #fff;
  border-radius: 18px;
  padding: 1rem;
}
.table-search { max-width: 320px; }
.permission-status-card {
  border: 1px solid #d7e8f2;
  background: linear-gradient(180deg, #fff, #f8fcff);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}
.permission-status-card.ok { border-color: rgba(38, 181, 116, .35); }
.permission-status-card.warn { border-color: rgba(237, 164, 57, .42); }
.permission-status-card.fail { border-color: rgba(220, 70, 70, .35); }
.customer-data-notice {
  border-left: 5px solid var(--brand);
  background: rgba(111, 202, 236, .12);
  border-radius: 18px;
  padding: 1rem;
}

/* v13 admin UX refresh: wizards, modal-driven creation, ordered learning paths, searchable modules */
.admin-wizard-card{padding:0;overflow:hidden;border:1px solid #d8e8f0;background:linear-gradient(135deg,#f8fcff,#eef8fc)}
.admin-wizard-head{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:18px;border-bottom:1px solid #dceaf2;background:rgba(255,255,255,.72);position:sticky;top:0;z-index:3;backdrop-filter:blur(10px)}
.admin-wizard-step{display:grid;grid-template-columns:38px 1fr;gap:8px;align-items:center;text-align:left;border:1px solid #d7e8f0;background:#fff;color:#102033;border-radius:18px;padding:12px;cursor:pointer;box-shadow:0 8px 24px rgba(16,32,51,.05);transition:transform .15s ease,border-color .15s ease,background .15s ease}
.admin-wizard-step:hover{transform:translateY(-2px);border-color:#18a7d4}.admin-wizard-step.active{background:linear-gradient(135deg,#e9f8fd,#fff);border-color:#18a7d4;box-shadow:0 14px 36px rgba(24,167,212,.16)}
.admin-wizard-step span{grid-row:1/3;width:38px;height:38px;border-radius:14px;display:grid;place-items:center;background:#eaf8fd;color:#0e6684;font-weight:900}.admin-wizard-step strong{font-weight:900}.admin-wizard-step small{color:#667085}.admin-wizard-panel{display:none;padding:24px}.admin-wizard-panel.active{display:block;animation:wizardFade .18s ease-out}
.split-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.split-heading>label,.module-filter-actions{min-width:min(520px,100%)}.admin-list-toolbar{display:flex;justify-content:flex-end;margin:18px 0}.searchbox{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #d8e8f0;border-radius:999px;padding:8px 12px;box-shadow:0 8px 24px rgba(16,32,51,.04)}.searchbox.full{width:100%;border-radius:16px}.searchbox input{border:0;outline:none;background:transparent;min-width:220px}.searchbox .material-symbols-rounded{color:#0e6684}.wizard-form-card{background:#fff;border:1px solid #d8e8f0;border-radius:24px;padding:20px;box-shadow:0 14px 34px rgba(16,32,51,.06)}.wizard-footer-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center;margin-top:16px;padding-top:16px;border-top:1px solid #e3eef5}.wide-gap{gap:24px}.section-heading.mini{margin-bottom:8px}.section-heading.mini h3{margin:0}.compact-template-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}.readonly-card{cursor:default}.readonly-card:hover{transform:none;border-color:#d9e8f1}.wizard-preset-card button{justify-self:start}
.path-module-layout{display:grid;grid-template-columns:minmax(340px,1fr) minmax(320px,.9fr);gap:18px}.path-module-column{background:#fff;border:1px solid #d8e8f0;border-radius:24px;padding:16px;box-shadow:0 14px 34px rgba(16,32,51,.05)}.path-selected-list,.path-available-list{display:grid;gap:10px;max-height:560px;overflow:auto;padding-right:4px}.path-module-item{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;border:1px solid #dceaf2;border-radius:18px;background:#fbfdff;padding:12px}.path-module-item:hover{border-color:#18a7d4;background:#f2fbff}.path-module-item.dragging{opacity:.45;box-shadow:0 18px 40px rgba(24,167,212,.22)}.path-module-item .drag-handle{cursor:grab;color:#0e6684}.path-module-item small{display:block;color:#667085}.available-item{grid-template-columns:auto 1fr auto}.path-selected-empty{margin-top:12px}
.portal-modal[hidden]{display:none!important}.portal-modal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:22px}.portal-modal-backdrop{position:absolute;inset:0;background:rgba(5,20,34,.62);backdrop-filter:blur(8px)}.portal-modal-card{position:relative;width:min(760px,100%);max-height:92vh;overflow:auto;background:linear-gradient(135deg,#fff,#f8fcff);border:1px solid #d8e8f0;border-radius:30px;padding:26px;box-shadow:0 34px 100px rgba(5,20,34,.32)}.portal-modal-card.large-modal{width:min(920px,100%)}.portal-modal-card.xl-modal{width:min(1180px,100%)}.portal-modal-card .icon-button.close{position:absolute;right:16px;top:16px}.modal-open{overflow:hidden}.modal-wizard-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 18px}.modal-wizard-tabs button{border:1px solid #d8e8f0;background:#fff;border-radius:999px;padding:9px 14px;font-weight:900;cursor:pointer}.modal-wizard-tabs button.active{background:#102033;color:#fff;border-color:#102033}.modal-tab-panel{display:none}.modal-tab-panel.active{display:block}.wizard-mini-steps{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.wizard-mini-steps span{border-radius:999px;background:#eaf8fd;color:#0e6684;padding:7px 10px;font-size:.82rem;font-weight:900}
.company-directory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}.company-directory-card{text-align:left;border:1px solid #d8e8f0;background:#fff;border-radius:24px;padding:18px;display:grid;gap:8px;cursor:pointer;box-shadow:0 12px 34px rgba(16,32,51,.06);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.company-directory-card:hover{transform:translateY(-3px);border-color:#18a7d4;box-shadow:0 18px 45px rgba(16,32,51,.1)}.company-directory-card>.material-symbols-rounded{width:48px;height:48px;border-radius:18px;display:grid;place-items:center;background:#eaf8fd;color:#0e6684}.company-directory-card strong{font-size:1.1rem}.company-directory-card small{color:#667085}.company-directory-card em{font-style:normal;font-size:.82rem;color:#0e6684;font-weight:900}.company-edit-modal .modal-tab-panel{padding-top:4px}.aligned-feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}.aligned-feature-grid .checkbox-card{display:grid;grid-template-columns:22px 28px 1fr;align-items:start;text-align:left}.aligned-feature-grid .checkbox-card input{justify-self:start;margin-top:4px}.aligned-feature-grid .checkbox-card .material-symbols-rounded{font-size:22px;color:#0e6684}.aligned-feature-grid .checkbox-card strong,.aligned-feature-grid .checkbox-card small{grid-column:3}.member-row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.module-filter-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center;flex-wrap:wrap}.module-filter-actions select{border:1px solid #d8e8f0;border-radius:16px;padding:10px 12px;background:#fff;font-weight:800}.modern-admin-table th[data-sort-key]{cursor:pointer}.modern-admin-table th[data-sort-key]::after{content:' sort';font-size:.72rem;color:#94a3b8;font-weight:700;margin-left:4px}.icon-actions{white-space:nowrap}.icon-actions form{display:inline-flex}.template-card.readonly-card p{min-height:54px}
@media (max-width: 980px){.admin-wizard-head{grid-template-columns:1fr 1fr}.path-module-layout{grid-template-columns:1fr}.split-heading{display:grid}.module-filter-actions{justify-content:stretch}.module-filter-actions .searchbox,.module-filter-actions select{width:100%}.searchbox input{min-width:0;width:100%}}
@media (max-width: 680px){.admin-wizard-head{grid-template-columns:1fr}.portal-modal{padding:10px}.portal-modal-card{border-radius:22px;padding:18px}.aligned-feature-grid .checkbox-card{grid-template-columns:22px 1fr}.aligned-feature-grid .checkbox-card .material-symbols-rounded{display:none}.aligned-feature-grid .checkbox-card strong,.aligned-feature-grid .checkbox-card small{grid-column:2}}

/* v14 customer portal polish: customer switcher, success dashboard, action centre, ticket modal, image resizing */
.admin-customer-switch{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.08);border-radius:999px;padding:4px 8px;color:inherit}.admin-customer-switch .material-symbols-rounded{font-size:18px;color:#0e6684}.admin-customer-switch select{border:0;background:#fff;border-radius:999px;padding:7px 28px 7px 10px;font-weight:850;max-width:230px}.topbar .admin-customer-switch{margin-inline:4px}.success-score-panel{display:grid;grid-template-columns:auto 1fr auto;gap:22px;align-items:center;background:linear-gradient(135deg,#102033,#2f84a6);border-radius:30px;padding:28px;color:#fff;box-shadow:0 24px 70px rgba(16,32,51,.22);margin-bottom:22px}.success-score-panel h2{color:#fff;margin:.1rem 0}.success-score-panel p{color:rgba(255,255,255,.88)}.score-ring{width:128px;height:128px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.14);border:10px solid rgba(125,211,252,.75);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}.score-ring strong{font-size:2.6rem;line-height:1}.score-ring small{margin-top:-30px;color:rgba(255,255,255,.8)}.grade-at-risk .score-ring{border-color:#fda4af}.grade-needs-attention .score-ring{border-color:#fde68a}.action-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.action-card{display:grid;gap:8px;border:1px solid #d8e8f0;background:#fff;border-radius:24px;padding:20px;color:inherit;text-decoration:none;box-shadow:0 12px 34px rgba(16,32,51,.06);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.action-card:hover{transform:translateY(-3px);border-color:#18a7d4;box-shadow:0 18px 46px rgba(16,32,51,.1)}.action-card>.material-symbols-rounded{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;background:#eaf8fd;color:#0e6684}.action-card.warning>.material-symbols-rounded{background:#fff7ed;color:#b45309}.action-card.danger>.material-symbols-rounded{background:#fff1f2;color:#be123c}.action-card.success>.material-symbols-rounded{background:#ecfdf3;color:#047857}.large-actions .action-card{min-height:190px}.quick-action-grid{display:flex;gap:10px;flex-wrap:wrap}.risk-list{display:grid;gap:12px}.risk-list article{display:flex;gap:14px;align-items:flex-start;border:1px solid #d8e8f0;border-radius:18px;background:#fff;padding:14px}.roadmap-board{display:grid;grid-template-columns:repeat(5,minmax(210px,1fr));gap:14px;align-items:start;overflow:auto;padding-bottom:8px}.roadmap-column{background:#f8fcff;border:1px solid #d8e8f0;border-radius:24px;padding:14px;min-height:280px}.roadmap-column h2{font-size:1rem;margin:0 0 12px}.roadmap-card{display:grid;gap:8px;background:#fff;border:1px solid #dbe8f0;border-radius:18px;padding:14px;margin-bottom:12px;box-shadow:0 8px 22px rgba(16,32,51,.05)}.approval-list{display:grid;gap:10px}.approval-list article{display:grid;grid-template-columns:44px 1fr;gap:12px;align-items:center;background:#fff;border:1px solid #d8e8f0;border-radius:18px;padding:14px}.approval-list .material-symbols-rounded{width:44px;height:44px;border-radius:16px;display:grid;place-items:center;background:#eaf8fd;color:#0e6684}.ticket-create-modal .smart-ticket-prompts>div{border:1px solid #bae6fd;background:#f0f9ff;border-radius:18px;padding:12px;margin:8px 0}.full-width-ticket-list{max-width:none}.ai-summary-card{display:grid;grid-template-columns:48px 1fr;gap:14px;align-items:start;background:#f0fbff;border:1px solid #bae6fd;border-radius:22px;padding:18px;margin:16px 0}.ai-summary-card>.material-symbols-rounded{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:#dff7ff;color:#0e6684}.portal-summary-output[hidden]{display:none}.jit-resizable-image{position:relative;display:block;max-width:100%;resize:none}.rich-editor figure.screenshot-frame img,.rich-editor figure img{max-width:100%;height:auto;display:block}.jit-resizable-selected{outline:3px solid rgba(24,167,212,.35);outline-offset:4px}.jit-resize-handle{position:absolute;right:-9px;bottom:-9px;width:18px;height:18px;border-radius:6px;background:#18a7d4;border:2px solid #fff;box-shadow:0 5px 16px rgba(16,32,51,.25);cursor:nwse-resize;z-index:5}.jit-resizing-image{user-select:none}.customer-shell-page .page-shell h1,.admin-shell-page .page-shell h1{letter-spacing:-.035em}.table-search{min-width:230px}.smart-ticket-form .form-grid{align-items:start}@media (max-width: 980px){.success-score-panel{grid-template-columns:1fr}.roadmap-board{grid-template-columns:repeat(2,minmax(240px,1fr))}}@media (max-width: 640px){.roadmap-board{grid-template-columns:1fr}.admin-customer-switch select{max-width:160px}.score-ring{width:104px;height:104px}.success-score-panel{padding:20px}}

/* v15 Action Centre consolidation, Cove Backup, traffic-light service health, user/company workflow polish */
.success-score-banner{display:grid;grid-template-columns:64px 1fr auto;gap:18px;align-items:center;border-radius:28px;padding:22px 24px;margin:20px 0;border:1px solid #d8e8f0;box-shadow:0 18px 50px rgba(16,32,51,.09);background:linear-gradient(135deg,#ffffff,#f5fbff)}
.success-score-banner>div:first-child{width:64px;height:64px;border-radius:22px;display:grid;place-items:center;background:#eaf8fd;color:#0e6684}.success-score-banner .material-symbols-rounded{font-size:34px}.success-score-banner small{font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#64748b}.success-score-banner strong{display:block;font-size:clamp(1.6rem,3vw,2.6rem);line-height:1.05;color:#102033}.success-score-banner p{margin:.25rem 0 0;color:#516172}.success-score-banner.traffic-green{border-color:#bbf7d0;background:linear-gradient(135deg,#ecfdf3,#ffffff)}.success-score-banner.traffic-amber{border-color:#fde68a;background:linear-gradient(135deg,#fffbeb,#ffffff)}.success-score-banner.traffic-red{border-color:#fecdd3;background:linear-gradient(135deg,#fff1f2,#ffffff)}
.portal-grid-four{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.portal-grid-six{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.portal-tile.interactive{display:grid;gap:8px;border:1px solid #d8e8f0;background:#fff;border-radius:24px;padding:18px;color:inherit;text-decoration:none;box-shadow:0 12px 34px rgba(16,32,51,.06);transition:transform .16s ease,border-color .16s ease}.portal-tile.interactive:hover{transform:translateY(-3px);border-color:#18a7d4}.portal-tile.interactive .material-symbols-rounded{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;background:#eaf8fd;color:#0e6684}.portal-tile.interactive strong{font-size:1.05rem}.portal-tile.interactive p{margin:0;color:#5f6c7b}
.traffic-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 10px;font-weight:900;font-size:.82rem}.traffic-pill::before{content:'';width:9px;height:9px;border-radius:50%;background:currentColor}.traffic-pill.green,.service-tile.traffic-green{--traffic:#16a34a}.traffic-pill.amber,.service-tile.traffic-amber{--traffic:#d97706}.traffic-pill.red,.service-tile.traffic-red{--traffic:#dc2626}.traffic-pill.blue,.service-tile.traffic-blue{--traffic:#2563eb}.traffic-pill{color:var(--traffic,#2563eb);background:color-mix(in srgb,var(--traffic,#2563eb) 12%,white);border:1px solid color-mix(in srgb,var(--traffic,#2563eb) 28%,white)}.service-tile.traffic-green,.service-tile.traffic-amber,.service-tile.traffic-red,.service-tile.traffic-blue{border-left:7px solid var(--traffic,#2563eb)}
.backup-good{background:#dcfce7!important;color:#166534!important}.backup-warn{background:#fef3c7!important;color:#92400e!important}.backup-bad{background:#fee2e2!important;color:#991b1b!important}.backup-history-bar{display:flex;gap:3px;align-items:center;min-width:140px}.backup-history-bar span{display:inline-block;width:7px;height:22px;border-radius:999px;background:#cbd5e1}.backup-history-bar span.good{background:#22c55e}.backup-history-bar span.warn{background:#f59e0b}.backup-history-bar span.bad{background:#ef4444}.backup-history-bar span.muted{background:#cbd5e1}.soft-panel{background:linear-gradient(135deg,#f8fcff,#ffffff)}
.fuzzy-match-panel{border:1px dashed #b7dcea;background:#f6fbff;border-radius:22px;padding:14px;display:grid;gap:12px}.fuzzy-source{display:grid;gap:8px}.fuzzy-source strong{color:#0e6684}.match-pill{border:1px solid #d8e8f0;background:#fff;border-radius:16px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;cursor:pointer;box-shadow:0 6px 18px rgba(16,32,51,.04)}.match-pill:hover,.match-pill.selected{border-color:#18a7d4;background:#ecfaff}.match-pill span{font-weight:900}.match-pill small{color:#667085}.fuzzy-source p,.microcopy{color:#64748b;margin:.15rem 0}
.link-button{border:0;background:transparent;color:#0e6684;cursor:pointer;padding:0;text-align:left}.strong-link strong{text-decoration:underline;text-decoration-color:rgba(14,102,132,.25);text-underline-offset:3px}.strong-link:hover strong{text-decoration-color:#0e6684}.user-edit-modal-form fieldset{border:1px solid #d8e8f0;border-radius:22px;padding:14px;background:#fbfdff}.compact-checkboxes{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px}.permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.permission-grid label{display:grid;gap:6px;background:#fff;border:1px solid #e2edf4;border-radius:16px;padding:10px}.permission-grid .material-symbols-rounded{color:#0e6684;font-size:20px}.service-health-admin-form textarea{min-height:90px}.integration-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px}.integration-discovery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px}.mapping-list.scroll-list{max-height:420px;overflow:auto}.mapping-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;border:1px solid #d8e8f0;border-radius:16px;padding:10px;margin-bottom:8px;background:#fff}.mapping-row small{display:block;color:#64748b}.add-company-inline{align-items:end}.wide-field{grid-column:span 2}
@media (max-width:760px){.success-score-banner{grid-template-columns:1fr}.success-score-banner>a{justify-self:start}.wide-field{grid-column:1}.integration-card-grid,.integration-discovery-grid{grid-template-columns:1fr}}

/* v16 usability polish: role-aware dashboard, tidier users, tickets and estimates */
.portal-summary-action-row{margin-top:.95rem;display:flex;gap:.7rem;flex-wrap:wrap;align-items:center}.portal-summary-action-row .button{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.32);color:#fff}.interactive-snapshot-widget{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));align-content:start}.snapshot-card{position:relative;text-decoration:none;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.snapshot-card:hover{transform:translateY(-3px);box-shadow:0 18px 44px rgba(0,0,0,.14);text-decoration:none}.snapshot-card em{font-style:normal;font-size:.78rem;color:rgba(255,255,255,.76);font-weight:760}.snapshot-card.snapshot-attention{background:linear-gradient(145deg,rgba(253,224,71,.23),rgba(255,255,255,.14));border-color:rgba(255,232,128,.58);box-shadow:0 16px 42px rgba(180,83,9,.14)}.snapshot-card.snapshot-attention:after{content:'priority_high';font-family:'Material Symbols Rounded';position:absolute;right:.72rem;top:.65rem;width:24px;height:24px;border-radius:999px;background:#ffe66d;color:#6b3e00;display:grid;place-items:center;font-size:17px}.hero-panel.modern-hero.customer-overview-hero{align-items:start}.hero-panel.modern-hero.customer-overview-hero h1{font-size:clamp(1.8rem,3vw,2.8rem)!important}.hero-panel.modern-hero.customer-overview-hero p{font-size:clamp(.98rem,1.05vw,1.08rem)!important}.users-compact-table th,.users-compact-table td{white-space:nowrap;vertical-align:middle}.users-compact-table td:nth-child(3){white-space:normal;max-width:320px}.nowrap-cell{white-space:nowrap}.users-compact-table .icon-actions{display:flex;gap:.35rem;align-items:center}.users-compact-table .icon-actions form{margin:0}.user-access-modal .modal-tab-panel{display:none}.user-access-modal .modal-tab-panel.active{display:block}.user-access-modal .permission-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}.simple-checkbox{display:flex!important;align-items:center;gap:.75rem}.simple-checkbox input{width:auto}.ticket-meta-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.ticket-meta-grid>div{padding:.85rem}.ticket-meta-grid>div strong{font-size:clamp(1.05rem,1.45vw,1.35rem)!important;letter-spacing:-.025em}.ticket-meta-grid>div small{font-size:.7rem}.priority-reply-panel{border:1px solid #bae6fd;background:linear-gradient(180deg,#f0fbff,#fff);border-radius:24px;padding:1rem;margin:1rem 0 1.2rem}.inline-decision-buttons{display:flex;gap:.45rem;align-items:center;flex-wrap:wrap}.inline-decision-buttons form{margin:0}.inline-decision-buttons .button{display:inline-flex;align-items:center;gap:.3rem}.inline-decision-buttons .material-symbols-rounded{font-size:17px}.portal-hero-small .microcopy{max-width:760px;color:#50687a;margin:.45rem 0 0}.path-hero-fixed h1{color:var(--ink)!important;text-shadow:none!important}.path-hero-fixed p{color:var(--muted)!important}.path-hero-fixed .eyebrow{color:#4b92af!important;text-shadow:none!important}.portal-summary-output{margin-top:1rem}.success-score-panel .button[data-portal-summary]{align-self:end;margin-top:1rem}.admin-hero.portal-hero-small{gap:1rem}.admin-hero.portal-hero-small h1{font-size:clamp(1.65rem,2.7vw,2.55rem)!important}@media(max-width:800px){.interactive-snapshot-widget{grid-template-columns:1fr 1fr}.users-compact-table{min-width:820px}.ticket-meta-grid{grid-template-columns:1fr 1fr}}@media(max-width:560px){.interactive-snapshot-widget{grid-template-columns:1fr}.ticket-meta-grid{grid-template-columns:1fr}}

/* v17 integration modals, consistent operations pages, and admin cleanup */
.integration-launch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:1rem;margin:1.1rem 0}.integration-launch-card{appearance:none;border:1px solid #d8e8f0;background:linear-gradient(145deg,#ffffff,#f7fbff);border-radius:26px;padding:1.25rem;text-align:left;display:grid;gap:.7rem;cursor:pointer;box-shadow:0 18px 38px rgba(16,32,51,.06);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.integration-launch-card:hover{transform:translateY(-3px);border-color:#8bdaf2;box-shadow:0 24px 54px rgba(16,32,51,.11)}.integration-launch-card>.material-symbols-rounded{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:#eaf8fd;color:#0e6684;font-size:31px}.integration-launch-card strong{font-size:1.18rem;color:#102033}.integration-launch-card p{margin:0;color:#526172;line-height:1.38}.integration-launch-card em{font-style:normal;font-weight:900;font-size:.76rem;letter-spacing:.06em;text-transform:uppercase;color:#0e6684}.integration-modal .modal-tab-panel{display:none}.integration-modal .modal-tab-panel.active{display:block}.integration-modal .permission-check-grid{max-height:52vh;overflow:auto;padding-right:.35rem}.danger-zone{margin:1rem 0 0;padding:1rem;border:1px solid #fecdd3;border-radius:20px;background:#fff1f2}.button.danger{background:#dc2626;color:#fff;border-color:#dc2626}.button.danger:hover{background:#b91c1c}.docs-pack-table table th:first-child,.docs-pack-table table td:first-child{text-align:center}.docs-pack-table input[type=checkbox]{width:20px;height:20px}.consistent-signal-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;margin:1rem 0}.signal-tile{display:grid;grid-template-columns:48px 1fr;gap:.9rem;align-items:center;border:1px solid #d8e8f0;border-radius:24px;background:#fff;padding:1rem;box-shadow:0 12px 30px rgba(16,32,51,.055);border-left:7px solid var(--traffic,#2563eb)}.signal-tile>.material-symbols-rounded{width:48px;height:48px;border-radius:16px;background:color-mix(in srgb,var(--traffic,#2563eb) 13%,white);color:var(--traffic,#2563eb);display:grid;place-items:center}.signal-tile strong{display:block;font-size:1.65rem;line-height:1;color:#102033}.signal-tile small{font-weight:850;color:#5c6b7a;text-transform:uppercase;letter-spacing:.045em}.traffic-green{--traffic:#16a34a}.traffic-amber{--traffic:#d97706}.traffic-red{--traffic:#dc2626}.traffic-blue{--traffic:#2563eb}.consistent-data-panel .section-heading{align-items:start}.consistent-table td strong{display:block}.consistent-table td small{display:block;color:#64748b;margin-top:.16rem}.consistent-table tbody tr:hover{background:#f8fcff}.asset-consistency-note{border:1px solid #d8e8f0;border-radius:18px;padding:1rem;background:#fbfdff}.mapping-list.scroll-list{scrollbar-width:thin}.portal-modal-card.xl-modal{max-width:min(1180px,94vw)}.company-edit-modal .docs-pack-table .table-wrap{max-height:58vh}.aligned-feature-grid .checkbox-card{grid-template-columns:26px 32px 1fr;align-items:start}.aligned-feature-grid .checkbox-card input{margin-top:.25rem}.users-compact-table td{max-width:330px;overflow:hidden;text-overflow:ellipsis}.modal-wizard-tabs button{white-space:nowrap}@media(max-width:760px){.integration-launch-grid,.consistent-signal-grid{grid-template-columns:1fr}.signal-tile{grid-template-columns:42px 1fr}.signal-tile strong{font-size:1.35rem}}

/* v19: tighter portal snapshot and consistent operational pages */
.customer-overview-hero .interactive-snapshot-widget{
    grid-template-columns:repeat(3,minmax(0,1fr));
    max-width:620px;
    width:100%;
    gap:.72rem;
    padding:.85rem;
}
.customer-overview-hero .snapshot-card{
    min-height:86px;
    padding:.72rem .78rem;
    border-radius:18px;
    gap:.18rem;
}
.customer-overview-hero .snapshot-card .material-symbols-rounded{font-size:1.18rem;}
.customer-overview-hero .snapshot-card strong{font-size:1.05rem;line-height:1.05;}
.customer-overview-hero .snapshot-card small{font-size:.82rem;line-height:1.2;}
.customer-overview-hero .snapshot-card em{font-size:.72rem;line-height:1.2;}
.customer-overview-hero .snapshot-card.snapshot-attention:after{right:.45rem;top:.45rem;width:20px;height:20px;font-size:15px;}
.portal-page-metrics{margin:.9rem 0 1.15rem;}
.portal-page-metrics .signal-tile{min-height:94px;}
.tickets-signal-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));}
.traffic-pill.green{background:#dcfce7;color:#166534;border-color:#bbf7d0;}
.traffic-pill.amber{background:#fef3c7;color:#92400e;border-color:#fde68a;}
.traffic-pill.red{background:#fee2e2;color:#991b1b;border-color:#fecaca;}
@media(max-width:1180px){.customer-overview-hero .interactive-snapshot-widget{grid-template-columns:repeat(2,minmax(0,1fr));max-width:520px}}
@media(max-width:760px){.customer-overview-hero .interactive-snapshot-widget{grid-template-columns:1fr 1fr}.customer-overview-hero .snapshot-card{min-height:82px}.portal-page-metrics{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.customer-overview-hero .interactive-snapshot-widget,.portal-page-metrics{grid-template-columns:1fr}}

/* v20: keep operational metrics in a single efficient row on wider screens */
.metric-row{
    grid-template-columns:repeat(var(--metric-columns,6),minmax(0,1fr))!important;
    align-items:stretch;
}
.metric-row .signal-tile{
    min-height:78px!important;
    padding:.76rem .8rem!important;
    grid-template-columns:38px 1fr!important;
    gap:.62rem!important;
    border-radius:20px!important;
    border-left-width:6px!important;
}
.metric-row .signal-tile>.material-symbols-rounded{
    width:38px!important;
    height:38px!important;
    border-radius:13px!important;
    font-size:1.35rem!important;
}
.metric-row .signal-tile strong{
    font-size:clamp(1rem,1.55vw,1.35rem)!important;
    letter-spacing:-.02em;
}
.metric-row .signal-tile small{
    font-size:.66rem!important;
    line-height:1.2;
    letter-spacing:.035em;
}
.identities-page .metric-row{--metric-columns:4;}
@media(max-width:1180px){.metric-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:760px){.metric-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:520px){.metric-row{grid-template-columns:1fr!important}}


/* v21: metrics should use the available page width, not stack as full-width cards */
.insight-tile-grid,
.consistent-signal-grid,
.portal-page-metrics {
    display: grid;
}
.portal-page-metrics.metric-row {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(126px, 1fr)) !important;
    align-items: stretch;
    gap: .8rem !important;
}
.portal-page-metrics.metric-row .signal-tile {
    min-width: 0;
}
.portal-page-metrics.metric-row .signal-tile small {
    overflow-wrap: anywhere;
}
@media (max-width: 1320px) {
    .portal-page-metrics.metric-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
    .portal-page-metrics.metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 520px) {
    .portal-page-metrics.metric-row { grid-template-columns: 1fr !important; }
}

/* v22: HIBP/Shodan security watch */
.security-watch-metrics{--metric-columns:6;}
.bulk-action-form .form-actions{justify-content:flex-start;margin:.65rem 0 1rem;gap:.55rem;align-items:center;flex-wrap:wrap}
.bulk-action-form .form-actions select,.bulk-action-form .form-actions input{width:auto;min-width:180px;border:1px solid #d8e8f0;border-radius:14px;padding:.6rem .75rem;background:#fff;font-weight:800}
.inline-form{display:inline-flex;margin:0}.inline-form .button{white-space:nowrap}.tag-cloud{display:flex;gap:.45rem;flex-wrap:wrap;margin:.8rem 0}.traffic-pill.blue{background:#dbeafe;color:#1e40af;border-color:#bfdbfe}.traffic-pill.red{background:#fee2e2;color:#991b1b;border-color:#fecaca}.traffic-pill.amber{background:#fef3c7;color:#92400e;border-color:#fde68a}.traffic-pill.green{background:#dcfce7;color:#166534;border-color:#bbf7d0}
.integration-launch-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.security-scope-quick{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem}
@media (min-width: 1321px){.security-watch-metrics.portal-page-metrics.metric-row{grid-template-columns:repeat(6,minmax(0,1fr))!important}}


/* v23: force compact multi-column metric rows on operational pages */
section.insight-tile-grid.consistent-signal-grid.portal-page-metrics.metric-row{
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:.75rem!important;
    align-items:stretch!important;
}
section.insight-tile-grid.consistent-signal-grid.portal-page-metrics.metric-row>.signal-tile{
    width:auto!important;
    min-width:0!important;
    min-height:76px!important;
    padding:.72rem .76rem!important;
}
.muted-dash{color:#94a3b8;font-weight:900;}
@media(max-width:1320px){section.insight-tile-grid.consistent-signal-grid.portal-page-metrics.metric-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:760px){section.insight-tile-grid.consistent-signal-grid.portal-page-metrics.metric-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:520px){section.insight-tile-grid.consistent-signal-grid.portal-page-metrics.metric-row{grid-template-columns:1fr!important}}
.sync-progress-box{border:1px solid #d8e8f0;background:#fbfdff;border-radius:18px;padding:1rem;margin-top:1rem;display:none}.sync-progress-box.active{display:block}.sync-progress-log{display:grid;gap:.35rem;margin-top:.6rem}.sync-progress-log div{display:flex;justify-content:space-between;gap:1rem;border:1px solid #e1edf4;background:#fff;border-radius:12px;padding:.55rem .7rem}.sync-progress-log .ok{color:#166534}.sync-progress-log .fail{color:#991b1b}.sync-progress-log .run{color:#075985}

/* v24: technician command centre and comprehensive HIBP audit */
.admin-command-hero{background:linear-gradient(135deg,#102033,#255875 58%,#6fc7e9);color:#fff;border:0}.admin-command-hero h1,.admin-command-hero p,.admin-command-hero .eyebrow{color:#fff}.admin-command-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.85rem;margin:1rem 0 1.25rem}.command-card{display:grid;grid-template-columns:42px 1fr;gap:.65rem;align-items:center;text-decoration:none;color:#102033;background:#fff;border:1px solid #d8e8f0;border-left:7px solid var(--traffic,#2563eb);border-radius:22px;padding:.95rem;box-shadow:0 14px 34px rgba(16,32,51,.06);transition:transform .15s ease,box-shadow .15s ease}.command-card:hover{transform:translateY(-2px);box-shadow:0 20px 44px rgba(16,32,51,.1)}.command-card>.material-symbols-rounded{width:42px;height:42px;border-radius:15px;display:grid;place-items:center;background:color-mix(in srgb,var(--traffic,#2563eb) 12%,white);color:var(--traffic,#2563eb)}.command-card strong{font-size:clamp(1.05rem,1.5vw,1.45rem);font-weight:950;line-height:1.05}.command-card small{font-size:.68rem;text-transform:uppercase;letter-spacing:.05em;font-weight:900;color:#64748b;line-height:1.15}.admin-filter-bar{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center;justify-content:flex-end}.admin-filter-bar input,.admin-filter-bar select{border:1px solid #d8e8f0;background:#fff;border-radius:14px;padding:.66rem .75rem;font-weight:850;min-width:150px}.admin-filter-bar input{min-width:250px}.admin-issue-table td{vertical-align:middle}.admin-issue-table small{color:#64748b}.customer-scorecard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:.85rem}.customer-scorecard{display:grid;grid-template-columns:72px 1fr auto;gap:.85rem;align-items:center;border:1px solid #d8e8f0;background:linear-gradient(145deg,#fff,#f8fcff);border-radius:24px;padding:1rem;box-shadow:0 12px 30px rgba(16,32,51,.05)}.customer-scorecard h3{margin:0;font-size:1.05rem}.customer-scorecard p{margin:.15rem 0 .5rem;color:#64748b}.score-ring{width:72px;height:72px;border-radius:24px;display:grid;place-items:center;background:color-mix(in srgb,var(--traffic,#2563eb) 10%,white);border:1px solid color-mix(in srgb,var(--traffic,#2563eb) 30%,white);color:var(--traffic,#2563eb)}.score-ring strong{font-size:1.45rem;line-height:.9}.score-ring small{font-size:.74rem;font-weight:900}.scorecard-chips{display:flex;gap:.35rem;flex-wrap:wrap}.scorecard-chips span{background:#eef7fb;border:1px solid #d9e8f0;border-radius:999px;padding:.25rem .5rem;font-size:.74rem;font-weight:850;color:#475569}.mini-scan-runs{display:grid;gap:.3rem;margin-top:.85rem;border:1px solid #d8e8f0;border-radius:16px;background:#fbfdff;padding:.8rem}.mini-scan-runs strong{font-size:.84rem;text-transform:uppercase;letter-spacing:.055em;color:#64748b}.mini-scan-runs span{font-size:.86rem;color:#334155}.bulk-action-form table th:nth-child(6),.bulk-action-form table th:nth-child(7),.bulk-action-form table td:nth-child(6),.bulk-action-form table td:nth-child(7){white-space:nowrap}@media(max-width:1320px){.admin-command-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.admin-command-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-scorecard{grid-template-columns:56px 1fr}.customer-scorecard>a{grid-column:1/-1}.score-ring{width:56px;height:56px;border-radius:18px}.admin-filter-bar{justify-content:flex-start}.admin-filter-bar input,.admin-filter-bar select{width:100%;min-width:0}}@media(max-width:520px){.admin-command-grid{grid-template-columns:1fr}}

/* v25: technician role, dashboard Action Centre, and admin-managed Security Watch */
.customer-overview-hero .interactive-snapshot-widget{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    max-width:680px!important;
}
.dashboard-action-centre-panel{margin-top:1.25rem;}
.dashboard-action-centre-panel .large-actions{margin-top:.75rem;}
.dashboard-action-links{margin-top:1rem;}
.security-watch-admin-note{border-left:7px solid #38bdf8;background:linear-gradient(135deg,#ffffff,#f3fbff);}
.security-scope-admin-form{align-items:end;margin-bottom:1rem;}
.security-scope-table td{vertical-align:middle;}
.security-scope-table .inline-form{gap:.35rem;flex-wrap:wrap;}
.admin-tabs a[title="Integrations"].disabled{opacity:.45;pointer-events:none;}
.admin-command-grid .command-card small{min-height:2.2em;}
@media(max-width:1180px){.customer-overview-hero .interactive-snapshot-widget{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:520px!important}}
@media(max-width:760px){.customer-overview-hero .interactive-snapshot-widget{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:520px){.customer-overview-hero .interactive-snapshot-widget{grid-template-columns:1fr!important}}

/* v26 identity offboarding and identity-to-asset linking */
.hero-action-stack{display:flex;flex-direction:column;gap:.65rem;align-items:flex-end}.identity-toolbar-panel{margin-top:.4rem}.identities-header-summary .signal-tile small{font-size:.72rem}.identity-removal-modal-card .identity-delete-ack{border-color:#fbbf24;background:#fffbeb}.identity-link-modal-card h3{margin:.4rem 0 .8rem}.identity-link-suggestions{border:1px solid #d8e8f0;background:#f8fcff;border-radius:24px;padding:1rem;margin:1rem 0}.suggestion-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:.8rem}.suggestion-card{border:1px solid #d8e8f0;background:#fff;border-radius:18px;padding:.85rem;display:grid;grid-template-columns:1fr auto 1fr;gap:.45rem .7rem;align-items:center;box-shadow:0 10px 24px rgba(16,32,51,.05)}.suggestion-card small{display:block;color:#64748b}.suggestion-card select,.suggestion-card button{grid-column:span 3}.identity-link-workspace{display:grid;grid-template-columns:1fr 1fr minmax(260px,.8fr);gap:1rem;align-items:start}.link-column{border:1px solid #d8e8f0;border-radius:24px;background:#fff;padding:1rem}.drag-list{display:grid;gap:.55rem;max-height:48vh;overflow:auto;padding:.2rem}.drag-card{display:grid;grid-template-columns:40px 1fr;gap:.7rem;align-items:center;border:1px solid #e2edf4;border-radius:16px;padding:.72rem;background:#fbfdff;cursor:grab;transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease}.drag-card strong{display:block}.drag-card small{display:block;color:#64748b}.drag-card>.material-symbols-rounded{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;background:#eaf8fd;color:#0e6684}.drag-card.dragging{opacity:.65;transform:scale(.98)}.asset-drop-card.drag-over{border-color:#16bde5;box-shadow:0 0 0 4px rgba(22,189,229,.15);background:#f0fbff}.link-pending-panel{position:sticky;top:1rem;background:linear-gradient(180deg,#fff,#f9fdff)}.identity-existing-links{margin-top:1rem}.identity-existing-links form{margin:0}.inline-decision-buttons .button.tiny .material-symbols-rounded{font-size:16px}.status-pill.warning{background:#fff7ed;color:#9a3412}.status-pill.done{background:#ecfdf5;color:#166534}@media(max-width:1100px){.identity-link-workspace{grid-template-columns:1fr}.link-pending-panel{position:static}.suggestion-card{grid-template-columns:1fr}.suggestion-card .material-symbols-rounded,.suggestion-card select,.suggestion-card button{grid-column:auto}.hero-action-stack{align-items:flex-start}}

/* v27: contextual help, Security Posture and sync resilience polish */
.help-cta-row{display:grid;grid-template-columns:1fr;gap:.55rem;margin-top:.65rem}.help-cta-row .button{justify-content:center}.security-posture-hero{background:linear-gradient(135deg,#102033,#164e63 62%,#38bdf8);color:#fff;border:0}.security-posture-hero h1,.security-posture-hero p,.security-posture-hero .eyebrow{color:#fff}.posture-tabs{margin:.85rem 0 1.1rem;justify-content:flex-start;flex-wrap:wrap}.posture-metrics{grid-template-columns:repeat(6,minmax(0,1fr))!important}.posture-notice{padding:1rem 1.2rem}.posture-layout{display:grid;grid-template-columns:minmax(320px,.9fr) 1.1fr;gap:1rem;margin:1rem 0}.posture-radar-card,.next-actions-panel{border:1px solid #d8e8f0;border-radius:24px;background:linear-gradient(145deg,#fff,#f8fcff);padding:1rem;box-shadow:0 12px 30px rgba(16,32,51,.05)}.next-actions-panel{display:grid;gap:.75rem;align-content:start}.next-actions-panel h3{margin:.1rem 0}.next-actions-panel article{border:1px solid #e1edf3;border-radius:18px;background:#fff;padding:.85rem}.next-actions-panel article strong{display:block;color:#102033}.next-actions-panel article small{display:block;color:#0e6684;font-weight:900;text-transform:uppercase;letter-spacing:.045em}.next-actions-panel article p{margin:.35rem 0 0;color:#526172}.framework-domain-list{display:grid;gap:.85rem;margin-top:1rem}.framework-domain-card{border:1px solid #d8e8f0;border-radius:22px;background:#fff;overflow:hidden;box-shadow:0 10px 28px rgba(16,32,51,.045)}.framework-domain-card summary{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.75rem;padding:1rem;cursor:pointer;background:linear-gradient(90deg,#f8fcff,#fff)}.framework-domain-card summary strong{font-size:1.05rem}.framework-domain-card summary em{font-style:normal;font-weight:950;color:#475569}.framework-domain-card .table-wrap{border:0;border-top:1px solid #e1edf3;border-radius:0}.framework-template-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem}.security-framework-admin-pill{display:inline-flex;align-items:center;gap:.35rem;border-radius:999px;background:#eef7fb;color:#0e6684;padding:.25rem .55rem;font-weight:900}.sync-progress-box{max-width:min(760px,calc(100vw - 32px))}.sync-progress-box .fail::after{content:'  - try one service at a time or increase Portal Settings > sync timeout';font-weight:700;color:#7f1d1d}@media(max-width:1180px){.posture-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}.posture-layout{grid-template-columns:1fr}}@media(max-width:760px){.posture-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}.framework-domain-card summary{grid-template-columns:1fr}.framework-domain-card summary em{justify-self:start}}@media(max-width:520px){.posture-metrics{grid-template-columns:1fr!important}}


/* v28: dashboard, Xero company selection and Security Posture override polish */
.snapshot-card[href*="security-posture"] .material-symbols-rounded { font-variation-settings: 'FILL' 1; }
.security-posture-action-note { margin-top: .35rem; color: var(--muted); font-size: .86rem; }

/* v29: performance/resilience and Ransomware.live monitoring */
.sync-timing-panel table select { min-width: 180px; }
.sync-timing-panel small { display: block; max-width: 360px; color: var(--muted); }
.integration-launch-card .material-symbols-rounded { font-size: 2rem; }
.security-watch-metrics.metric-row { grid-template-columns: repeat(6, minmax(120px, 1fr)); }
@media (max-width: 1100px) { .security-watch-metrics.metric-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .security-watch-metrics.metric-row { grid-template-columns: repeat(1, minmax(0, 1fr)); } }

/* v31: customer portal sync controls and customer-facing notes */
.portal-company-tools,
.portal-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .6rem;
}
.portal-admin-sync-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    padding: .35rem;
    border: 1px solid var(--border, #dbe3ea);
    border-radius: 999px;
    background: rgba(255,255,255,.75);
}
.portal-admin-sync-controls form { margin: 0; }
.portal-admin-sync-label {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    padding: 0 .35rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--muted, #64748b);
    white-space: nowrap;
}
.portal-admin-sync-label .material-symbols-rounded { font-size: 1rem; }
.item-note-tools {
    display: inline-flex;
    align-items: center;
    gap: .18rem;
    margin-left: .35rem;
    vertical-align: middle;
}
.item-note-icon,
.item-note-edit-button {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(14, 165, 233, .28);
    background: rgba(14, 165, 233, .10);
    color: #0369a1;
    line-height: 1;
}
.item-note-icon .material-symbols-rounded,
.item-note-edit-button .material-symbols-rounded { font-size: .95rem; }
.item-note-edit-button {
    cursor: pointer;
    background: rgba(15, 23, 42, .04);
    border-color: rgba(15, 23, 42, .12);
    color: #475569;
}
.item-note-edit-button:hover { background: rgba(15, 23, 42, .08); }
.posture-score-guide .posture-guide-grid { margin-top: 1rem; }
.compact-mapping-list { margin-top: 1rem; }

.collapsible-panel { padding: 0; overflow: hidden; }
.collapsible-panel-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.35rem; cursor: pointer; list-style: none; }
.collapsible-panel-summary::-webkit-details-marker { display: none; }
.collapsible-panel-summary span { display: grid; gap: .2rem; }
.collapsible-panel-summary strong { font-size: 1.05rem; }
.collapsible-panel-summary small, .collapsible-panel-summary em { color: var(--text-muted); font-style: normal; }
.collapsible-panel-summary::after { content: 'expand_more'; font-family: 'Material Symbols Rounded'; font-size: 1.45rem; line-height: 1; }
.collapsible-panel[open] .collapsible-panel-summary::after { content: 'expand_less'; }
.collapsible-panel-body { padding: 0 1.35rem 1.35rem; }
.dmarc-score-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 3.3rem; padding: .25rem .55rem; border-radius: 999px; font-weight: 700; background: var(--surface-muted); }
.email-auth-details { display: grid; gap: .4rem; }
.email-auth-details small { color: var(--text-muted); }

/* v32: Huntress incident polish, ticket modal consistency and Prospecting workspace */
.compact-ticket-button.button,
.button.compact-ticket-button {
    min-height: 0;
    padding: .55rem .85rem;
    border-radius: 14px;
    font-size: .88rem;
    line-height: 1.1;
}
.huntress-incident-panel .admin-filter-bar { justify-content: flex-start; margin: .4rem 0 1rem; }
.huntress-incident-table td { vertical-align: top; }
.huntress-incident-table td:first-child strong { display: block; }
.huntress-incident-table .button.tiny { white-space: nowrap; }
.prospecting-hero {
    background: radial-gradient(circle at 12% 18%, rgba(22,189,229,.34), transparent 32%), linear-gradient(135deg,#102033,#164e63 60%,#16bde5);
    color: #fff;
    border: 0;
}
.prospecting-hero h1,
.prospecting-hero p,
.prospecting-hero .eyebrow { color: #fff; }
.prospecting-metrics { margin: 1rem 0; }
.prospecting-layout { align-items: start; }
.prospect-input-columns { align-items: start; gap: 1rem; }
.prospect-input-columns > div,
.prospect-story-card,
.posture-preview-card,
.scan-coverage-grid span {
    border: 1px solid #d8e8f0;
    background: linear-gradient(145deg,#fff,#f8fcff);
    border-radius: 22px;
    padding: 1rem;
    box-shadow: 0 12px 30px rgba(16,32,51,.05);
}
.prospect-input-columns h3 { margin-top: 0; }
.mini-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
.mini-list > span,
.mini-list.selectable label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid #d8e8f0;
    background: #fff;
    border-radius: 999px;
    padding: .35rem .55rem;
    font-size: .85rem;
    font-weight: 850;
}
.mini-list.selectable { display: grid; gap: .45rem; }
.mini-list.selectable label { justify-content: flex-start; border-radius: 16px; }
.inline-delete { display: inline-flex; margin: 0; }
.icon-button.tiny,
.button.tiny {
    min-width: 0;
    min-height: 0;
    padding: .28rem .45rem;
    border-radius: 999px;
    font-size: .76rem;
}
.icon-button.tiny .material-symbols-rounded { font-size: 1rem; }
.prospect-story-card { margin-bottom: .75rem; }
.prospect-story-card strong { display: block; font-size: 1.06rem; color: #102033; }
.prospect-story-card p { margin: .35rem 0 0; color: #526172; }
.prospect-story-card.highlight {
    border-color: rgba(22,189,229,.45);
    background: linear-gradient(135deg,#f0fbff,#fff);
}
.posture-preview-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: .85rem; }
.posture-preview-card strong { display: block; font-size: 1.02rem; }
.posture-preview-card p { color: #526172; margin-bottom: 0; }
.score-lift { display: flex; flex-wrap: wrap; gap: .45rem; margin: .65rem 0; }
.score-lift span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #eef7fb;
    color: #0e6684;
    border: 1px solid #d8e8f0;
    padding: .3rem .55rem;
    font-weight: 950;
    font-size: .8rem;
}
.scan-coverage-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: .75rem; }
.scan-coverage-grid span { display: block; }
.scan-coverage-grid strong { display: block; color: #102033; margin-bottom: .25rem; }
@media(max-width: 920px) {
    .prospect-input-columns.three-column { grid-template-columns: 1fr; }
}

/* v32.1: mobile hamburger navigation and visual Prospecting polish */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    gap: .4rem;
    border: 1px solid rgba(255,255,255,.24);
    background: rgba(255,255,255,.12);
    color: #fff;
    border-radius: 999px;
    padding: .58rem .82rem;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}
.mobile-menu-toggle .material-symbols-rounded { font-size: 1.25rem; }
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .28rem .55rem;
    font-size: .76rem;
    font-weight: 950;
    background: #eef3f7;
    color: #526172;
    border: 1px solid #d8e8f0;
    white-space: nowrap;
}
.status-chip.blue { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.status-chip.green { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.status-chip.amber { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.status-chip.red { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.traffic-pill.muted { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }
.prospecting-hero-viz { position: relative; overflow: hidden; }
.prospecting-hero-viz::after {
    content: '';
    position: absolute;
    right: -5rem;
    bottom: -7rem;
    width: 18rem;
    height: 18rem;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
}
.prospecting-hero-viz > * { position: relative; z-index: 1; }
.prospect-hero-badges,
.prospect-action-strip,
.radar-legend,
.prospect-list-head,
.prospect-hero-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}
.prospect-hero-badges { margin-top: 1rem; }
.prospect-hero-badges span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    padding: .45rem .7rem;
    font-weight: 900;
}
.prospect-wow-grid,
.prospect-status-board,
.prospect-list-columns,
.prospect-posture-visual {
    display: grid;
    gap: 1rem;
}
.prospect-wow-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 1rem 0; }
.prospect-wow-grid article,
.prospect-status-board article,
.prospect-list-card,
.prospect-radar-card {
    border: 1px solid #d8e8f0;
    background: linear-gradient(145deg,#fff,#f8fcff);
    border-radius: 26px;
    padding: 1rem;
    box-shadow: 0 14px 34px rgba(16,32,51,.06);
}
.prospect-wow-grid article { display: grid; gap: .5rem; }
.prospect-wow-grid .material-symbols-rounded {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #eaf8fd;
    color: #0e6684;
}
.prospect-wow-grid strong { font-size: 1.06rem; }
.prospect-wow-grid p { margin: 0; color: #526172; }
.prospect-status-board { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 1rem 0; }
.prospect-status-board article {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: .85rem;
    align-items: center;
    border-left: 7px solid var(--board-color, #2563eb);
}
.prospect-status-board article > .material-symbols-rounded {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--board-color, #2563eb);
    background: color-mix(in srgb, var(--board-color, #2563eb) 12%, white);
}
.prospect-status-board .good { --board-color: #16a34a; }
.prospect-status-board .warning { --board-color: #d97706; }
.prospect-status-board .critical { --board-color: #dc2626; }
.prospect-status-board .verify { --board-color: #2563eb; }
.prospect-status-board strong { display: block; font-size: 1.55rem; line-height: 1; }
.prospect-status-board small { color: #5c6b7a; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.prospect-story-panel .prospect-story-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: .8rem;
    align-items: start;
}
.prospect-story-card > .material-symbols-rounded {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #0e6684;
    background: #eaf8fd;
}
.prospect-story-card.highlight > .material-symbols-rounded { color: #7c3aed; background: #f3e8ff; }
.prospect-gap-list { margin-top: .9rem; }
.prospect-workbench-panel .section-heading { align-items: start; }
.prospect-list-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.prospect-list-head { justify-content: space-between; margin-bottom: .8rem; }
.prospect-list-head h3 { margin: 0; }
.prospect-sort-form { display: inline-flex; margin: 0; }
.prospect-sort-list { display: grid; gap: .65rem; min-height: 42px; }
.prospect-sort-list.drag-over { outline: 3px dashed rgba(22,189,229,.35); outline-offset: 5px; border-radius: 22px; }
.prospect-list-row {
    display: grid;
    grid-template-columns: 28px 42px minmax(170px, 1fr) auto auto auto;
    gap: .65rem;
    align-items: center;
    border: 1px solid #d8e8f0;
    background: #fff;
    border-radius: 20px;
    padding: .75rem;
    box-shadow: 0 10px 24px rgba(16,32,51,.045);
}
.prospect-list-row.dragging { opacity: .62; transform: scale(.99); }
.drag-handle { cursor: grab; color: #94a3b8; }
.prospect-row-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #eaf8fd;
    color: #0e6684;
}
.prospect-row-main strong { display: block; }
.prospect-row-main small { display: block; color: #64748b; margin-top: .1rem; }
.prospect-scope-board {
    display: grid;
    grid-template-columns: minmax(180px, .45fr) 1fr;
    gap: 1rem;
    align-items: start;
}
.prospect-inline-scope-form {
    display: grid;
    grid-template-columns: 150px minmax(180px, 1fr) minmax(180px, 1fr) auto;
    gap: .75rem;
    align-items: end;
}
.prospect-scope-list { grid-column: 1 / -1; }
.prospect-scope-list > span { border-radius: 18px; }
.muted-chip {
    display: inline-flex;
    align-items: center;
    border: 1px dashed #cbd5e1!important;
    color: #64748b;
    background: #f8fafc!important;
}
.prospect-posture-visual { grid-template-columns: minmax(280px, 520px) 1fr; align-items: stretch; }
.prospect-radar-card { display: grid; place-items: center; align-content: center; gap: .6rem; }
.prospect-radar-card canvas { max-width: 100%; height: auto; }
.radar-legend { justify-content: center; color: #526172; font-weight: 900; }
.radar-legend i {
    width: 14px;
    height: 14px;
    display: inline-block;
    border-radius: 4px;
    margin-right: .35rem;
    vertical-align: middle;
}
.radar-legend .current { background: rgba(14,165,233,.45); border: 1px solid #0ea5e9; }
.radar-legend .target { background: rgba(148,163,184,.25); border: 1px solid #94a3b8; }
.prospect-results-table td { vertical-align: top; }
.prospect-finding-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--finding-color, #2563eb);
    box-shadow: 0 10px 24px rgba(16,32,51,.12);
    margin-bottom: .35rem;
}
.prospect-finding-icon.good { --finding-color: #16a34a; }
.prospect-finding-icon.warning { --finding-color: #d97706; }
.prospect-finding-icon.critical { --finding-color: #dc2626; }
.prospect-finding-icon.verify { --finding-color: #2563eb; }
.prospect-finding-icon .material-symbols-rounded { font-size: 1.25rem; }
.compact-inline-form { margin-top: .45rem; }
.compact-inline-form select { padding: .45rem .6rem; border-radius: 12px; font-size: .82rem; min-width: 150px; }

@media (max-width: 1099px) {
    .topbar { flex-direction: row; align-items: center; position: sticky; }
    .brand { min-width: 0; }
    .brand-copy { min-width: 0; }
    .brand-copy strong { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mobile-menu-toggle { display: inline-flex; margin-left: auto; }
    .topbar .navlinks {
        display: none;
        position: absolute;
        top: calc(100% + .55rem);
        left: .75rem;
        right: .75rem;
        z-index: 12000;
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: .45rem;
        padding: .75rem;
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 22px;
        background: rgba(8,12,18,.98);
        box-shadow: 0 24px 70px rgba(0,0,0,.34);
    }
    body.mobile-menu-open .topbar .navlinks { display: grid; }
    .topbar .navlinks a,
    .topbar .navlinks button,
    .topbar .navlinks .admin-customer-switch {
        justify-content: flex-start;
        width: 100%;
    }
    .topbar .admin-customer-switch { display: grid; grid-template-columns: auto 1fr; }
    .topbar .admin-customer-switch select { max-width: none; width: 100%; }
    .customer-sidebar,
    .admin-side-panel {
        display: none;
        position: fixed;
        z-index: 11990;
        top: 82px;
        left: .75rem;
        right: .75rem;
        width: auto!important;
        max-height: calc(100dvh - 98px);
        overflow: auto;
        margin: 0;
        padding: .85rem;
        border-radius: 24px;
        background: rgba(255,255,255,.98);
        box-shadow: 0 28px 90px rgba(8,17,26,.28);
    }
    body.mobile-menu-open .customer-sidebar,
    body.mobile-menu-open .admin-side-panel { display: block; }
    .customer-sidebar nav,
    .admin-tabs { grid-template-columns: 1fr; }
    .rail-brand { margin-right: 0; }
    .customer-shell-page .page-shell,
    .admin-shell-page .page-shell { margin-left: 0; padding-left: 0; }
    .page-shell { width: min(100% - 1rem, 1180px); padding-top: 1rem; }
}
@media (max-width: 920px) {
    .prospect-list-columns,
    .prospect-posture-visual,
    .prospect-scope-board { grid-template-columns: 1fr; }
    .prospect-inline-scope-form { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .prospect-hero-actions,
    .prospect-action-strip,
    .prospect-list-head { align-items: stretch; flex-direction: column; }
    .prospect-hero-actions .button,
    .prospect-action-strip .button,
    .prospect-action-strip form,
    .prospect-list-head form,
    .prospect-list-head button { width: 100%; }
    .prospect-list-row {
        grid-template-columns: 28px 42px 1fr;
        align-items: start;
    }
    .prospect-list-row .traffic-pill,
    .prospect-list-row .status-chip,
    .prospect-list-row .icon-button,
    .prospect-list-row .inline-delete { grid-column: 3; justify-self: start; }
    .prospect-story-panel .prospect-story-card { grid-template-columns: 1fr; }
    .brand-logo { width: 96px; }
    .brand-copy small { display: none; }
    .mobile-menu-toggle strong { display: none; }
}
@media (max-width: 1099px) { .topbar { z-index: 12020; } }

/* v32.2: Hudson Rock manual evidence and onsite Manual Health Check polish */
.portal-modal-card.xlarge-modal {
    width: min(1320px, 96vw);
}
.health-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .75rem;
    margin: 1rem 0;
}
.health-summary-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: .75rem;
    align-items: center;
    border: 1px solid #d8e8f0;
    border-left: 7px solid var(--health-color, #64748b);
    border-radius: 22px;
    padding: .85rem;
    background: linear-gradient(145deg, #fff, #f8fcff);
    box-shadow: 0 12px 28px rgba(16,32,51,.05);
}
.health-summary-card .material-symbols-rounded {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--health-color, #64748b);
    background: color-mix(in srgb, var(--health-color, #64748b) 12%, white);
}
.health-summary-card strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1;
    color: #102033;
}
.health-summary-card small {
    color: #5c6b7a;
    font-weight: 850;
}
.health-summary-card.green { --health-color: #16a34a; }
.health-summary-card.amber { --health-color: #d97706; }
.health-summary-card.red { --health-color: #dc2626; }
.health-summary-card.blue { --health-color: #2563eb; }
.health-summary-card.muted { --health-color: #64748b; }
.prospect-health-form { padding-bottom: 4.5rem; }
.health-check-intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}
.health-check-section {
    border: 1px solid #d8e8f0;
    border-radius: 24px;
    background: #fff;
    margin: 1rem 0;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(16,32,51,.045);
}
.health-check-section > summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.15rem;
    cursor: pointer;
    list-style: none;
    background: linear-gradient(145deg,#f8fcff,#fff);
}
.health-check-section > summary::-webkit-details-marker { display: none; }
.health-check-section > summary small {
    display: block;
    color: #64748b;
    margin-top: .25rem;
}
.health-check-section[open] > summary .material-symbols-rounded { transform: rotate(180deg); }
.health-question-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: .9rem;
    padding: 1rem;
}
.health-question-card {
    border: 1px solid #e2edf3;
    border-radius: 20px;
    background: #fbfdff;
    padding: .9rem;
    display: grid;
    gap: .7rem;
}
.health-question-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, .42fr);
    gap: .75rem;
    align-items: start;
}
.health-question-head strong { display: block; color: #102033; }
.health-question-head small { display: block; color: #64748b; margin-top: .25rem; }
.sticky-modal-actions {
    position: sticky;
    bottom: -26px;
    margin: 1rem -26px -26px;
    padding: 1rem 26px;
    background: rgba(255,255,255,.94);
    border-top: 1px solid #d8e8f0;
    backdrop-filter: blur(10px);
    justify-content: flex-end;
    z-index: 2;
}
.prospect-hudson-note {
    border: 1px dashed #bfdbfe;
    border-radius: 18px;
    background: #eff6ff;
    color: #1e3a8a;
    padding: .85rem;
    margin: .75rem 0;
}
@media (max-width: 760px) {
    .health-question-grid,
    .health-check-intro-grid,
    .health-question-head { grid-template-columns: 1fr; }
    .portal-modal-card.xlarge-modal { width: 100%; }
    .sticky-modal-actions {
        margin: 1rem -18px -18px;
        padding: .9rem 18px;
        align-items: stretch;
        flex-direction: column;
    }
    .sticky-modal-actions .button { width: 100%; }
}


.health-rating-legend { display:flex; flex-wrap:wrap; gap:.55rem; margin:1rem 0; }
.prospect-health-sections { display:grid; gap:.75rem; }
.prospect-health-modal textarea { min-height: 88px; }
.prospect-manual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}
.prospect-manual-card .section-heading { align-items: start; }
.health-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .75rem;
}
@media (max-width: 760px) {
    .prospect-manual-grid { grid-template-columns: 1fr; }
}


/* v32.2b: Prospecting manual evidence and health-check layout */
.prospect-manual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}
.prospect-manual-card {
    position: relative;
    overflow: hidden;
}
.prospect-manual-card::after {
    content: '';
    position: absolute;
    inset: auto -28px -34px auto;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: rgba(9, 116, 144, .08);
    pointer-events: none;
}
.health-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .75rem;
}
.health-rating-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin: 1rem 0;
}
.prospect-health-sections {
    display: grid;
    gap: .85rem;
    margin: 1rem 0;
}
.prospect-health-modal .form-actions {
    position: sticky;
    bottom: -26px;
    margin: 1rem -26px -26px;
    padding: 1rem 26px;
    background: rgba(255,255,255,.94);
    border-top: 1px solid #d8e8f0;
    backdrop-filter: blur(10px);
    z-index: 2;
}
.scan-coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: .75rem;
}
.scan-coverage-grid span {
    display: block;
    border: 1px solid #d8e8f0;
    border-radius: 18px;
    background: #fbfdff;
    padding: .8rem;
    line-height: 1.35;
}
.scan-coverage-grid strong {
    display: block;
    color: #102033;
    margin-bottom: .15rem;
}
@media (max-width: 760px) {
    .prospect-manual-grid,
    .scan-coverage-grid { grid-template-columns: 1fr; }
    .prospect-health-modal .form-actions {
        flex-direction: column;
        align-items: stretch;
        margin: 1rem -18px -18px;
        padding: .9rem 18px;
    }
    .prospect-health-modal .form-actions .button { width: 100%; }
}

/* v32.3: mobile menu refinement, Prospecting scale cards, and Health Check defaults */
.mobile-utility-nav { display: none; }
.prospect-scale-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: .8rem;
    align-items: stretch;
    margin: 1rem 0;
}
.prospect-scale-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) minmax(96px, .28fr);
    gap: .75rem;
    align-items: center;
    border: 1px solid #d8e8f0;
    background: linear-gradient(145deg, #fff, #f8fcff);
    border-radius: 22px;
    padding: .85rem;
    box-shadow: 0 12px 28px rgba(16,32,51,.05);
}
.prospect-scale-card strong { display: block; color: #102033; font-size: 1.02rem; }
.prospect-scale-card small { display: block; color: #64748b; line-height: 1.3; }
.prospect-scale-card label { margin: 0; display: grid; gap: .25rem; }
.prospect-scale-card label span { color: #64748b; font-size: .73rem; font-weight: 950; text-transform: uppercase; letter-spacing: .05em; }
.prospect-scale-card input { width: 100%; min-width: 0; }
.health-scenario-picker {
    display: grid;
    gap: .35rem;
    border: 1px dashed #bfdbfe;
    background: #eff6ff;
    border-radius: 16px;
    padding: .7rem;
}
.health-scenario-picker small { color: #1e40af; font-weight: 750; line-height: 1.35; }
.health-question-card.scenario-applied {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56,189,248,.16), 0 12px 28px rgba(16,32,51,.06);
}
@media (max-width: 1099px) {
    .customer-shell-page .topbar .navlinks,
    .admin-shell-page .topbar .navlinks,
    body.customer-shell-page.mobile-menu-open .topbar .navlinks,
    body.admin-shell-page.mobile-menu-open .topbar .navlinks {
        display: none !important;
    }
    body:not(.customer-shell-page):not(.admin-shell-page).mobile-menu-open .topbar .navlinks {
        display: grid;
    }
    .customer-sidebar,
    .admin-side-panel {
        top: 74px;
        max-height: calc(100dvh - 88px);
        padding-bottom: 1rem;
    }
    .mobile-utility-nav {
        display: grid;
        gap: .45rem;
        margin-top: .9rem;
        padding-top: .9rem;
        border-top: 1px solid #dbe8f0;
    }
    .mobile-utility-nav .mobile-utility-label {
        color: #64748b;
        font-size: .73rem;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: .08em;
        padding: .25rem .35rem 0;
    }
    .mobile-utility-nav a,
    .mobile-utility-nav button {
        display: flex;
        align-items: center;
        gap: .65rem;
        min-height: 44px;
        width: 100%;
        border: 1px solid #dbe8f0;
        border-radius: 16px;
        background: #f8fcff;
        color: #203043;
        padding: .72rem .85rem;
        font: inherit;
        font-weight: 850;
        text-align: left;
        cursor: pointer;
        text-decoration: none;
    }
    .mobile-utility-nav a:hover,
    .mobile-utility-nav button:hover {
        background: #eef9fd;
        text-decoration: none;
    }
    .mobile-utility-nav .material-symbols-rounded { color: #0e6684; font-size: 1.2rem; }
    .prospect-scale-form { grid-template-columns: 1fr; }
    .prospect-scale-form > .button { width: 100%; }
}
@media (max-width: 680px) {
    .prospect-scale-card { grid-template-columns: 42px 1fr; }
    .prospect-scale-card label { grid-column: 1 / -1; }
}

/* v32.5: Cove history, bulk identity linking, tickets visibility filters */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.backup-history-bar span.inferred {
    outline: 2px solid rgba(15, 23, 42, .35);
    outline-offset: 1px;
}
.identity-drag-card {
    grid-template-columns: 28px 40px minmax(0, 1fr);
}
.identity-bulk-check {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin: 0;
    border-radius: 999px;
    background: #f1f7fb;
    border: 1px solid #d8e8f0;
}
.identity-bulk-check input {
    width: 15px;
    height: 15px;
    margin: 0;
}
.identity-bulk-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    padding: .65rem;
    border: 1px solid #d8e8f0;
    border-radius: 16px;
    background: #f8fcff;
}
.identity-bulk-actions span {
    color: #64748b;
    font-size: .85rem;
    font-weight: 850;
}
.identity-bulk-link-form {
    border: 1px solid #d8e8f0;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff, #f8fcff);
    padding: .9rem;
}
.asset-page-link-workspace .identity-link-workspace {
    margin-top: 1rem;
}
.ticket-list-actions {
    align-items: center;
    flex-wrap: wrap;
}
.ticket-range-filter {
    margin: 0;
}
.ticket-range-filter label {
    margin: 0;
}
.ticket-range-filter select {
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid #cfe0ea;
    background: #fff;
    font-weight: 850;
    color: #102033;
    padding: .4rem .75rem;
}
.callout.compact {
    margin: .6rem 0;
    padding: .75rem .9rem;
}
@media (max-width: 760px) {
    .identity-drag-card { grid-template-columns: 28px 34px minmax(0, 1fr); }
    .ticket-list-actions,
    .ticket-list-actions .table-search,
    .ticket-list-actions .button,
    .ticket-range-filter,
    .ticket-range-filter select { width: 100%; }
}

/* v32.6: resilient integration sync queue */
.sync-progress-box.active {
    display: grid;
    gap: .75rem;
}
.sync-progress-log div {
    align-items: flex-start;
}
.sync-progress-log small {
    display: block;
    color: #64748b;
    margin-top: .2rem;
    max-width: 56rem;
}
.sync-cancel-button {
    justify-self: start;
}
.inline-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
}
.button.danger,
.button.ghost.danger {
    border-color: #fecaca;
    color: #991b1b;
    background: #fff7f7;
}

/* v32.7 inventory history, data freshness and customer evidence actions */
.data-freshness-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-left: 4px solid rgba(14, 165, 233, 0.75);
}

.data-freshness-banner h3 {
  margin-bottom: 0.25rem;
}

.data-freshness-banner p {
  margin: 0.2rem 0 0;
}

.freshness-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  max-width: 48rem;
}

.freshness-chip-row .status-pill {
  white-space: normal;
  line-height: 1.35;
}

.inventory-history-controls .form-actions,
.wrap-actions {
  align-items: center;
  flex-wrap: wrap;
}

.licence-count-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
}

.licence-count-grid > div {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  padding: 0.9rem;
  background: rgba(248, 250, 252, 0.82);
}

.licence-count-grid strong,
.hibp-modal-alert strong {
  display: inline-block;
  margin-right: 0.35rem;
}

.licence-count-grid span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.buttonlike-pill {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.hibp-modal-alert-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.hibp-modal-alert {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(248, 250, 252, 0.9);
}

.roadmap-card-actions {
  margin-top: 0.85rem;
}

@media (max-width: 720px) {
  .data-freshness-banner {
    display: block;
  }

  .freshness-chip-row {
    justify-content: flex-start;
    margin-top: 0.75rem;
  }
}

/* v32.8 Prospecting sales funnel, reporting, CSV and Gantt timeline */
.prospect-sales-metrics .signal-tile strong { font-size: 1.45rem; }
.prospect-funnel-panel { overflow: hidden; }
.prospect-stage-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .75rem;
  margin: 1rem 0 1.25rem;
}
.prospect-stage-card {
  position: relative;
  min-height: 112px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 18px;
  padding: .95rem;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(241,245,249,.72));
  box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
  overflow: hidden;
}
.prospect-stage-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent, #0ea5e9);
}
.prospect-stage-card.stage-new_lead { --accent: #94a3b8; }
.prospect-stage-card.stage-qualified { --accent: #38bdf8; }
.prospect-stage-card.stage-discovery { --accent: #60a5fa; }
.prospect-stage-card.stage-health_check { --accent: #a78bfa; }
.prospect-stage-card.stage-proposal { --accent: #f59e0b; }
.prospect-stage-card.stage-negotiation { --accent: #f97316; }
.prospect-stage-card.stage-won { --accent: #22c55e; }
.prospect-stage-card.stage-lost { --accent: #64748b; }
.prospect-stage-card strong,
.prospect-stage-card span,
.prospect-stage-card small { display: block; padding-left: .2rem; }
.prospect-stage-card strong { color: #0f172a; font-size: .98rem; }
.prospect-stage-card span { margin-top: .65rem; color: #334155; font-weight: 850; }
.prospect-stage-card small { margin-top: .2rem; color: #64748b; }
.prospect-pipeline-table select,
.inline-quick-edit select {
  min-width: 128px;
  border-radius: 999px;
  padding: .35rem .75rem;
  font-size: .84rem;
}
.prospect-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .75rem;
}
.prospect-report-grid > div {
  border: 1px solid rgba(14, 165, 233, .18);
  border-radius: 18px;
  padding: 1rem;
  background: radial-gradient(circle at top right, rgba(14,165,233,.14), rgba(255,255,255,.96) 48%);
}
.prospect-report-grid strong { display: block; color: #0f172a; font-size: 1.7rem; line-height: 1; }
.prospect-report-grid span { display: block; margin-top: .4rem; color: #64748b; font-size: .86rem; }
.prospect-sales-detail .content-panel { align-self: start; }
.prospect-sales-form textarea { min-height: 88px; }
.prospect-pdf-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .75rem;
  margin: .5rem 0 1rem;
}
.prospect-pdf-option-grid article {
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 16px;
  padding: .9rem;
  background: rgba(248, 250, 252, .9);
}
.prospect-pdf-option-grid strong { display: block; color: #0f172a; }
.prospect-pdf-option-grid small { display: block; margin-top: .25rem; color: #64748b; line-height: 1.35; }
.prospect-gantt-panel { overflow: hidden; }
.prospect-gantt {
  display: grid;
  gap: .7rem;
  padding: .85rem;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(248,250,252,.96), rgba(255,255,255,.98));
}
.prospect-gantt-scale {
  display: flex;
  justify-content: space-between;
  color: #64748b;
  font-size: .78rem;
  font-weight: 850;
  padding-left: min(280px, 32%);
}
.prospect-gantt-row {
  display: grid;
  grid-template-columns: minmax(190px, 280px) minmax(240px, 1fr) auto;
  gap: .8rem;
  align-items: center;
}
.prospect-gantt-label strong { display: block; color: #0f172a; }
.prospect-gantt-label small { display: block; color: #64748b; margin-top: .12rem; line-height: 1.3; }
.prospect-gantt-track {
  position: relative;
  min-height: 38px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(148,163,184,.16), rgba(148,163,184,.16) 1px, rgba(241,245,249,.75) 1px, rgba(241,245,249,.75) 9%);
  overflow: hidden;
}
.prospect-gantt-bar {
  position: absolute;
  top: 5px;
  bottom: 5px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 .75rem;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  cursor: grab;
  user-select: none;
  touch-action: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .16);
  background: #2563eb;
}
.prospect-gantt-bar.dragging { cursor: grabbing; filter: brightness(1.05); }
.prospect-gantt-bar.status-planned { background: #2563eb; }
.prospect-gantt-bar.status-active { background: #f59e0b; }
.prospect-gantt-bar.status-done { background: #16a34a; }
.prospect-gantt-bar.status-blocked { background: #dc2626; }
.gantt-date-inputs {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: nowrap;
}
.gantt-date-inputs input[type="date"] { width: 9.4rem; min-width: 0; padding: .45rem .55rem; font-size: .82rem; }
.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.mini-list span {
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  padding: .32rem .6rem;
  background: rgba(248, 250, 252, .9);
  color: #475569;
  font-size: .78rem;
  font-weight: 850;
}

@media (max-width: 980px) {
  .prospect-gantt-row { grid-template-columns: 1fr; }
  .prospect-gantt-scale { padding-left: 0; }
  .gantt-date-inputs { flex-wrap: wrap; }
  .gantt-date-inputs input[type="date"] { flex: 1 1 8.5rem; }
}

@media (max-width: 720px) {
  .prospect-stage-board,
  .prospect-report-grid,
  .prospect-pdf-option-grid { grid-template-columns: 1fr; }
  .prospect-pipeline-table { min-width: 860px; }
  .prospect-gantt { padding: .65rem; }
  .prospect-gantt-track { min-height: 46px; }
  .prospect-gantt-bar { justify-content: flex-start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.prospect-value-edit,
.prospect-next-action-edit {
  display: flex;
  gap: .35rem;
  align-items: end;
  flex-wrap: wrap;
}
.prospect-value-edit label,
.prospect-next-action-edit label { margin: 0; }
.prospect-value-edit label span {
  display: block;
  color: #64748b;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}
.prospect-value-edit input { width: 5.8rem; padding: .35rem .45rem; font-size: .82rem; }
.prospect-next-action-edit input[type="date"] { width: 8.5rem; padding: .35rem .45rem; font-size: .82rem; }
.prospect-next-action-edit input:not([type]) { width: 14rem; min-width: 10rem; padding: .35rem .45rem; font-size: .82rem; }

/* v32.9: Prospecting layout polish, list bulk actions and sales plan PDF options */
.prospect-priority-panel {
  border-top: 5px solid #16bde5;
  background: linear-gradient(145deg, #ffffff, #f6fbff);
}
.prospect-story-wide,
.prospect-sales-profile-panel {
  margin: 1rem 0;
}
.prospect-story-wide {
  border: 1px solid rgba(14, 165, 233, .18);
  background: radial-gradient(circle at top right, rgba(14,165,233,.12), rgba(255,255,255,.98) 46%);
}
.prospect-story-explainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: .85rem;
  margin-top: .9rem;
}
.prospect-story-wide .prospect-gap-list {
  border: 1px solid #d8e8f0;
  background: #f8fcff;
  border-radius: 20px;
  padding: 1rem 1rem 1rem 2.2rem;
}
.prospect-sales-profile-panel {
  border-top: 5px solid #102033;
}
.prospect-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  align-items: start;
}
.prospect-profile-grid fieldset {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 20px;
  padding: 1rem;
  margin: 0;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(248,250,252,.88));
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}
.prospect-profile-grid fieldset.wide,
.prospect-profile-grid .wide {
  grid-column: span 2;
}
.prospect-profile-grid legend {
  padding: 0 .4rem;
  color: #0f172a;
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.prospect-profile-grid label { margin-top: .55rem; }
.prospect-profile-grid label:first-of-type { margin-top: 0; }
.prospect-profile-grid textarea { min-height: 96px; }
.prospect-profile-form-wide .form-actions { margin-top: .85rem; }
.prospect-bulk-update-form {
  display: grid;
  grid-template-columns: auto minmax(86px, auto) repeat(6, minmax(110px, 1fr)) auto;
  gap: .65rem;
  align-items: end;
  padding: .85rem;
  border: 1px solid rgba(14, 165, 233, .18);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(240,251,255,.96), rgba(255,255,255,.98));
  margin: 0 0 1rem;
  box-shadow: 0 12px 28px rgba(16,32,51,.05);
}
.prospect-bulk-update-form strong {
  align-self: center;
  color: #0f172a;
  white-space: nowrap;
}
.prospect-bulk-update-form [data-prospect-bulk-selected] {
  align-self: center;
  color: #0e6684;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}
.prospect-bulk-update-form label {
  margin: 0;
  display: grid;
  gap: .25rem;
}
.prospect-bulk-update-form label span {
  font-size: .68rem;
  font-weight: 950;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.prospect-bulk-update-form select,
.prospect-bulk-update-form input {
  min-width: 0;
  min-height: 38px;
  padding: .45rem .55rem;
  font-size: .82rem;
  border-radius: 12px;
}
.bulk-check-cell {
  display: inline-grid;
  place-items: center;
  margin: 0;
}
.bulk-check-cell input {
  width: 1rem;
  height: 1rem;
}
.prospect-plan-only-option {
  border: 1px dashed rgba(14, 165, 233, .32);
  border-radius: 16px;
  padding: .8rem .9rem;
  background: rgba(240, 251, 255, .74);
  font-weight: 850;
}
.prospect-pdf-option-grid.three-option-grid,
.three-option-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.prospect-pipeline-table th:first-child,
.prospect-pipeline-table td:first-child {
  width: 42px;
  text-align: center;
}
@media (max-width: 1180px) {
  .prospect-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prospect-bulk-update-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prospect-bulk-update-form strong,
  .prospect-bulk-update-form [data-prospect-bulk-selected],
  .prospect-bulk-update-form .button { grid-column: auto; }
}
@media (max-width: 820px) {
  .prospect-profile-grid,
  .prospect-bulk-update-form,
  .prospect-pdf-option-grid.three-option-grid,
  .three-option-grid { grid-template-columns: 1fr; }
  .prospect-profile-grid fieldset.wide,
  .prospect-profile-grid .wide { grid-column: auto; }
  .prospect-story-explainer-grid { grid-template-columns: 1fr; }
  .prospect-pipeline-table { min-width: 980px; }
}

/* v32.10: Prospecting customer-facing polish */
.prospect-profile-grid fieldset.full-span { grid-column: 1 / -1; }
.prospect-discovery-notes-grid label.full-width,
.form-grid label.full-width { grid-column: 1 / -1; }
.prospect-discovery-notes-grid textarea { min-height: 140px; }
.prospect-manual-grid { margin: 1rem 0; }
.prospect-manual-card { background: linear-gradient(145deg, #ffffff, #f8fcff); }
.prospect-pdf-option-grid article { min-height: 86px; }
@media (max-width: 720px) {
  .prospect-discovery-notes-grid label.full-width,
  .form-grid label.full-width { grid-column: auto; }
}

/* v33: MSP Project Management module */
.project-hero,
.project-customer-hero {
  background: linear-gradient(135deg, #102033 0%, #1e3a5f 48%, #16bde5 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.project-hero::after,
.project-customer-hero::after {
  content: "";
  position: absolute;
  inset: auto -6rem -7rem auto;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}
.project-hero > *,
.project-customer-hero > * { position: relative; z-index: 1; }
.project-hero h1,
.project-hero p,
.project-hero .eyebrow,
.project-customer-hero h1,
.project-customer-hero p,
.project-customer-hero .eyebrow { color: #fff; }
.project-metrics { margin: 1rem 0; }
.project-timeline-panel,
.project-list-panel,
.project-detail-header { margin: 1rem 0; }
.project-gantt { margin-top: .85rem; }
.project-gantt-row { grid-template-columns: minmax(220px, 310px) minmax(260px, 1fr) auto; }
.project-gantt-label strong { display: block; color: #102033; }
.project-gantt-label a { color: inherit; text-decoration: none; }
.project-gantt-label a:hover { text-decoration: underline; }
.project-gantt-label small { display: block; margin-top: .15rem; color: #64748b; line-height: 1.35; }
.progress-mini {
  width: 100%;
  min-width: 110px;
  height: .55rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.08);
}
.progress-mini span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16bde5, #22c55e);
}
.project-table td strong,
.project-table td small { display: block; }
.project-table td small { color: #64748b; margin-top: .15rem; }
.project-phase-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  margin: 1rem 0;
}
.project-phase-card {
  border-top: 5px solid #16bde5;
  min-height: 100%;
}
.project-task-list { display: grid; gap: .7rem; }
.project-task-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto auto;
  gap: .7rem;
  align-items: start;
  padding: .85rem;
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f8fafc);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .045);
}
.project-task-row.started { border-left: 5px solid #f59e0b; }
.project-task-row.completed { border-left: 5px solid #16a34a; }
.project-task-row.not-started { border-left: 5px solid #dc2626; }

.project-effort-label { font-weight: 700; color: #1e3a5f !important; }
.project-task-order-form { justify-content: flex-end; margin: .75rem 0 0; align-items: center; }
.project-task-list.drag-over { outline: 2px dashed rgba(22,189,229,.55); outline-offset: .35rem; border-radius: 18px; }
.project-task-row .drag-handle { color: #94a3b8; cursor: grab; user-select: none; margin-top: .12rem; }
.project-task-row.dragging { opacity: .58; transform: scale(.99); border-style: dashed; }

.project-task-main strong { display: block; color: #102033; }
.project-task-main small { display: block; color: #64748b; margin-top: .2rem; line-height: 1.35; }
.project-status-form { margin: 0; }
.project-status-form select { min-width: 10.5rem; padding: .42rem .55rem; font-size: .82rem; border-radius: 12px; }
.project-sync-panel .form-actions { align-items: center; }
.project-notes-grid { align-items: start; }
.stacked-list { display: grid; gap: .65rem; }
.stacked-item {
  padding: .85rem;
  border: 1px solid rgba(148,163,184,.23);
  border-radius: 16px;
  background: #fff;
}
.stacked-item strong,
.stacked-item small { display: block; }
.stacked-item small { color: #64748b; margin-top: .18rem; }
.customer-project-board .project-task-row { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1100px) {
  .project-gantt-row { grid-template-columns: 1fr; }
  .project-task-row { grid-template-columns: auto auto minmax(0, 1fr); }
  .project-task-row .project-status-form,
  .project-task-row .icon-button,
  .project-task-row form:not(.project-status-form) { grid-column: 3; justify-self: start; }
}
@media (max-width: 720px) {
  .project-phase-board { grid-template-columns: 1fr; }
  .project-task-row { grid-template-columns: 1fr; }
  .project-task-row .drag-handle,
  .project-task-row .bulk-check-cell,
  .project-task-row .project-status-form,
  .project-task-row .icon-button,
  .project-task-row form:not(.project-status-form) { grid-column: auto; justify-self: stretch; }
  .project-status-form select,
  .project-task-row .icon-button,
  .project-task-row form button { width: 100%; }
}

/* v33.1: Prospecting deal intelligence helpers */
.prospect-deal-intelligence-panel { margin: 1rem 0; }
.prospect-deal-grid { display: grid; grid-template-columns: minmax(260px,.9fr) minmax(260px,1fr); gap: 1rem; margin: .5rem 0 1rem; }
.prospect-readiness-card,
.prospect-roi-card { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .85rem; align-items: start; border: 1px solid rgba(148,163,184,.24); border-radius: 22px; padding: 1rem; background: linear-gradient(145deg,#fff,#f8fafc); box-shadow: 0 14px 30px rgba(15,23,42,.055); }
.prospect-readiness-card > .material-symbols-rounded,
.prospect-roi-card > .material-symbols-rounded { font-size: 2rem; color: #1e3a5f; }
.prospect-readiness-card strong,
.prospect-roi-card strong { display: block; font-size: 1.45rem; color: #102033; }
.prospect-readiness-card small,
.prospect-roi-card small { color: #64748b; }
.prospect-readiness-card ul { grid-column: 1 / -1; margin: .35rem 0 0 1.1rem; color: #475569; }
.prospect-roi-card p,
.prospect-roi-card .mini-list { grid-column: 1 / -1; }
.prospect-winloss-summary { margin-top: 1rem; padding: .85rem; border: 1px solid rgba(148,163,184,.25); border-radius: 18px; background: #f8fafc; }
.prospect-winloss-summary strong { display: block; margin-bottom: .45rem; }
.prospect-deal-form fieldset textarea { min-height: 6.5rem; }
@media (max-width: 920px) { .prospect-deal-grid { grid-template-columns: 1fr; } }

/* v33.2: Staff Project Management workspace and MSP project task visuals */
.staff-workspace-page .page-shell { width: min(1420px, calc(100% - 2rem)); margin: 0 auto; padding: 1.5rem 0 4rem; }
.project-management-shell .project-hero { margin-top: .5rem; }
.project-phase-full-card { border-top-width: 0; border-left: 5px solid #16bde5; }
.project-phase-task-gantt { display: grid; gap: .35rem; margin: .7rem 0 1rem; padding: .75rem; border: 1px solid rgba(148,163,184,.22); border-radius: 18px; background: linear-gradient(145deg,#f8fcff,#ffffff); }
.phase-task-gantt-head { display: flex; justify-content: space-between; gap: 1rem; color: #64748b; font-size: .78rem; font-weight: 800; }
.phase-task-gantt-row { display: grid; grid-template-columns: minmax(170px, 260px) minmax(0, 1fr) 54px; gap: .6rem; align-items: center; min-height: 22px; font-size: .78rem; }
.phase-task-gantt-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #102033; font-weight: 800; }
.phase-task-gantt-row em { color: #64748b; font-style: normal; text-align: right; }
.phase-task-gantt-track { position: relative; height: .75rem; border-radius: 999px; background: #e2e8f0; overflow: hidden; box-shadow: inset 0 1px 2px rgba(15,23,42,.08); }
.phase-task-gantt-track i { position: absolute; top: 0; bottom: 0; border-radius: inherit; min-width: 10px; background: #16a34a; }
.phase-task-gantt-track i.priority-normal { background: #f59e0b; }
.phase-task-gantt-track i.priority-high,
.phase-task-gantt-track i.priority-urgent { background: #dc2626; }
.phase-task-gantt-track i.priority-low { background: #16a34a; }
.project-task-row { position: relative; overflow: hidden; }
.project-task-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: #f59e0b; }
.project-task-row.priority-low::before { background: #16a34a; }
.project-task-row.priority-normal::before { background: #f59e0b; }
.project-task-row.priority-high::before,
.project-task-row.priority-urgent::before { background: #dc2626; }
.project-task-row.started,
.project-task-row.completed,
.project-task-row.not-started { border-left-width: 0; }
.project-task-main { padding-left: .1rem; }
.project-task-dependency { display: flex; gap: .35rem; align-items: flex-start; margin: .45rem 0 .35rem; padding: .48rem .6rem; border-radius: 14px; background: #f8fafc; border: 1px dashed rgba(148,163,184,.38); color: #475569; font-size: .82rem; line-height: 1.35; }
.project-task-dependency .material-symbols-rounded { font-size: 18px; color: #0e6684; margin-top: -.08rem; }
.project-task-dependency strong { display: inline; color: #102033; }
.empty-state.compact { padding: .45rem .6rem; border-radius: 12px; font-size: .82rem; }
@media (max-width: 720px) {
  .staff-workspace-page .page-shell { width: min(100% - 1rem, 1180px); padding-top: 1rem; }
  .phase-task-gantt-row { grid-template-columns: 1fr; gap: .25rem; }
  .phase-task-gantt-row em { text-align: left; }
  .phase-task-gantt-head { flex-direction: column; gap: .2rem; }
}

/* v33.3: MSP project lifecycle, profitability, approvals and templates */
.project-capacity-panel,
.project-template-panel,
.project-approvals-panel { margin: 1rem 0; }
.project-capacity-grid,
.project-profit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; }
.project-capacity-card,
.project-profit-grid > div { border: 1px solid rgba(148,163,184,.24); border-radius: 18px; padding: .85rem; background: linear-gradient(145deg,#fff,#f8fafc); box-shadow: 0 10px 24px rgba(15,23,42,.045); }
.project-capacity-card strong,
.project-profit-grid strong { display: block; color: #102033; font-size: 1.1rem; }
.project-capacity-card span,
.project-profit-grid small { display: block; color: #64748b; margin-top: .2rem; }
.project-capacity-card.good { border-top: 4px solid #16a34a; }
.project-capacity-card.warning { border-top: 4px solid #f59e0b; }
.project-capacity-card.critical,
.project-profit-grid .critical { border-top: 4px solid #dc2626; }
.project-profit-grid .good { border-top: 4px solid #16a34a; }
.project-commercial-grid { align-items: stretch; margin: 1rem 0; }
.project-risk-heatmap { display: grid; grid-template-columns: repeat(5, minmax(34px, 1fr)); gap: .3rem; margin: .6rem 0 .8rem; }
.project-risk-heatmap span { min-height: 34px; display: grid; place-items: center; border-radius: 10px; font-weight: 900; color: #102033; background: #ecfdf5; border: 1px solid rgba(22,163,74,.25); }
.project-risk-heatmap span.warning { background: #fff7ed; border-color: rgba(245,158,11,.35); color: #92400e; }
.project-risk-heatmap span.critical { background: #fef2f2; border-color: rgba(220,38,38,.35); color: #991b1b; }
.approval-summary-row { display: flex; gap: .45rem; flex-wrap: wrap; margin: .25rem 0 .85rem; }
.inline-form { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.inline-form select { min-width: 8rem; padding: .42rem .5rem; border-radius: 12px; }
.compact-approval-form { margin-top: .8rem; padding-top: .8rem; border-top: 1px dashed rgba(148,163,184,.35); }
.project-template-panel .button.danger,
.button.danger.ghost,
.button.ghost.danger { color: #b91c1c; border-color: rgba(220,38,38,.35); background: #fff; }
@media (max-width: 720px) {
  .inline-form { display: grid; }
  .inline-form select,
  .inline-form .button { width: 100%; }
  .project-risk-heatmap span { min-height: 28px; }
}
/* v33.3 hotfix: align Project Management priority helper classes with task-edge and mini-Gantt colours */
.phase-task-gantt-track i.project-priority-normal { background: #f59e0b; }
.phase-task-gantt-track i.project-priority-high,
.phase-task-gantt-track i.project-priority-urgent { background: #dc2626; }
.phase-task-gantt-track i.project-priority-low { background: #16a34a; }
.project-task-row.project-priority-low::before { background: #16a34a; }
.project-task-row.project-priority-normal::before { background: #f59e0b; }
.project-task-row.project-priority-high::before,
.project-task-row.project-priority-urgent::before { background: #dc2626; }

/* v33.4: Project Management polish, fee scope and floating navigation */
.project-metrics .signal-tile { min-width: 0; }
.project-metrics .signal-tile strong { font-size: clamp(1.08rem, 1.55vw, 1.65rem); line-height: 1.02; overflow-wrap: anywhere; }
.project-detail-header { scroll-margin-top: 1rem; }
.project-detail-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 330px); gap: 1rem; align-items: start; }
.project-detail-title-block h2 { font-size: clamp(1.55rem, 2.4vw, 2.45rem); line-height: 1.04; margin: .15rem 0 .45rem; }
.project-detail-title-block p { max-width: 980px; line-height: 1.55; color: #102033; }
.project-action-bar { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.1rem; align-items: stretch; }
.project-action-bar .button,
.project-action-bar form { min-width: 126px; display: inline-flex; }
.project-action-bar .button { width: 100%; min-height: 54px; justify-content: center; text-align: center; }
.project-fee-badge { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .55rem .7rem; align-items: start; padding: .95rem; border: 1px solid rgba(22,163,74,.25); border-radius: 20px; background: linear-gradient(145deg,#ecfdf5,#ffffff); box-shadow: 0 14px 32px rgba(22,163,74,.08); }
.project-fee-badge .material-symbols-rounded { grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #166534; background: #dcfce7; }
.project-fee-badge strong { color: #102033; }
.project-fee-badge small { color: #475569; line-height: 1.35; }
.project-detail-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1rem; align-items: start; }
.project-detail-main { min-width: 0; }
.project-floating-menu { position: sticky; top: 1rem; z-index: 4; display: grid; gap: .45rem; padding: .8rem; border: 1px solid rgba(148,163,184,.28); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: 0 18px 44px rgba(15,23,42,.09); backdrop-filter: blur(10px); }
.project-floating-menu a,
.project-floating-menu button { display: flex; align-items: center; gap: .5rem; width: 100%; min-height: 38px; border-radius: 14px; font-weight: 900; text-decoration: none; }
.project-floating-menu a { color: #102033; padding: .58rem .7rem; }
.project-floating-menu a:hover { background: #eaf8fd; color: #0e6684; }
.project-floating-menu .material-symbols-rounded { font-size: 19px; }
#project-controls,
#project-timeline,
#project-tasks,
#project-syncro,
#project-approvals,
#project-notes { scroll-margin-top: 1rem; }
@media (max-width: 1180px) {
  .project-detail-shell { grid-template-columns: 1fr; }
  .project-floating-menu { position: static; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
}
@media (max-width: 780px) {
  .project-detail-summary { grid-template-columns: 1fr; }
  .project-action-bar .button,
  .project-action-bar form { min-width: 0; width: 100%; }
  .project-floating-menu { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .project-floating-menu { grid-template-columns: 1fr; }
}
.callout.good { border-left-color: #16a34a; background: #ecfdf5; }
.project-action-bar > .button,
.project-action-bar > form { flex: 1 1 150px; max-width: 190px; min-width: 140px; }
.project-action-bar > form .button { width: 100%; }
.project-action-bar > .button { width: auto; }

/* v33.5: Project comms centre and live task checklists */
.project-comms-modal { max-width: min(1120px, calc(100vw - 2rem)); }
.project-comms-modal form { display: grid; gap: 1rem; }
.project-comms-section { width: 100%; border: 1px solid rgba(148,163,184,.24); border-radius: 22px; padding: 1rem; background: linear-gradient(145deg,#fff,#f8fafc); box-shadow: 0 14px 32px rgba(15,23,42,.055); }
.project-comms-ai { border-top: 5px solid #16bde5; }
.project-comms-library { border-top: 5px solid #2563eb; }
.project-comms-send { border-top: 5px solid #16a34a; }
.project-draft-library { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .65rem; }
.project-draft-library .button { justify-content: center; min-height: 54px; }
.project-task-checklist-summary { display: flex; align-items: center; gap: .35rem; margin: .45rem 0 .2rem; padding: .45rem .6rem; border-radius: 14px; background: #eef7ff; border: 1px solid rgba(37,99,235,.14); color: #334155; font-size: .82rem; }
.project-task-checklist-summary .material-symbols-rounded { font-size: 18px; color: #2563eb; }
.project-task-checklist-editor { margin-top: .75rem; border: 1px solid rgba(148,163,184,.24); border-radius: 20px; padding: .85rem; background: linear-gradient(145deg,#f8fcff,#fff); }
.project-task-checklist-editor .section-heading.compact { margin-bottom: .65rem; }
.project-task-checklist-editor .section-heading.compact h3 { margin: .1rem 0; }
.project-checklist-list { display: grid; gap: .45rem; }
.project-checklist-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .35rem .65rem; align-items: center; border: 1px solid rgba(148,163,184,.22); border-radius: 16px; padding: .65rem; background: #fff; }
.project-checklist-item.done { background: #ecfdf5; border-color: rgba(22,163,74,.25); }
.project-checklist-item label { display: flex; align-items: flex-start; gap: .55rem; font-weight: 850; color: #102033; }
.project-checklist-item input[type="checkbox"] { margin-top: .15rem; }
.project-checklist-item small { grid-column: 1 / 2; color: #64748b; margin-left: 1.7rem; }
.project-checklist-add { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .55rem; margin-top: .7rem; align-items: center; }
.project-checklist-add input { width: 100%; border: 1px solid #d8e8f0; border-radius: 14px; padding: .68rem .8rem; }
.project-checklist-empty { border: 1px dashed rgba(148,163,184,.45); border-radius: 16px; padding: .75rem; color: #64748b; background: #f8fafc; }
@media (max-width: 720px) {
  .project-checklist-add { grid-template-columns: 1fr; }
  .project-checklist-add .button { width: 100%; }
  .project-comms-modal { max-width: calc(100vw - 1rem); }
}

/* v33.6: MSP project checklist ordering, AI risk workflow and handover/comms polish */
.project-floating-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .38rem; margin-top: .45rem; padding-top: .55rem; border-top: 1px dashed rgba(148,163,184,.35); }
.project-floating-actions .icon-button { min-width: 0; min-height: 42px; justify-content: center; border: 1px solid rgba(148,163,184,.32); background: #fff; color: #102033; box-shadow: 0 8px 18px rgba(15,23,42,.05); }
.project-floating-actions .icon-button.primary { background: #16bde5; color: #062033; border-color: #16bde5; }
.project-floating-actions .icon-button:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(15,23,42,.08); }
.project-checklist-template { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .55rem; align-items: center; margin: .65rem 0; padding: .65rem; border: 1px solid rgba(37,99,235,.15); border-radius: 16px; background: #eff6ff; }
.project-checklist-template select { width: 100%; border: 1px solid #bfdbfe; border-radius: 14px; padding: .65rem .75rem; background: #fff; }
.project-checklist-item { grid-template-columns: auto minmax(0, 1fr) auto; cursor: grab; }
.project-checklist-item.dragging { opacity: .55; cursor: grabbing; }
.checklist-drag-handle { color: #94a3b8; font-size: 21px; align-self: center; }
.project-checklist-item label { grid-column: 2 / 3; }
.project-checklist-meta { grid-column: 2 / 3; color: #64748b; font-size: .82rem; }
.project-checklist-item .icon-button { grid-column: 3 / 4; grid-row: 1 / span 2; }
.project-risk-list { display: grid; gap: .55rem; margin-top: .8rem; }
.project-risk-item { display: grid; gap: .35rem; padding: .72rem .78rem; border-radius: 16px; border: 1px solid rgba(148,163,184,.24); background: #fff; border-left-width: 5px; }
.project-risk-item.good { border-left-color: #16a34a; background: #f7fef9; }
.project-risk-item.warning { border-left-color: #f59e0b; background: #fffaf0; }
.project-risk-item.critical { border-left-color: #dc2626; background: #fff5f5; }
.project-risk-item .form-actions { justify-content: flex-start; gap: .35rem; }
.project-note-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: start; }
.inline-icon { font-size: 16px; vertical-align: -3px; color: #0e6684; }
.project-waiting-panel { border-top: 5px solid #f59e0b; }
.project-handover-panel { border-top: 5px solid #16a34a; }
.project-handover-summary { display: grid; grid-template-columns: auto minmax(160px, 1fr) auto; gap: .75rem; align-items: center; margin: .65rem 0 1rem; padding: .75rem; border-radius: 18px; background: #ecfdf5; border: 1px solid rgba(22,163,74,.22); }
.project-handover-list { display: grid; gap: .75rem; }
.project-handover-item { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(140px, .45fr) minmax(260px, 1.4fr); gap: .65rem; align-items: start; border: 1px solid rgba(148,163,184,.24); border-left: 5px solid #f59e0b; border-radius: 18px; padding: .8rem; background: #fff; }
.project-handover-item.complete { border-left-color: #16a34a; background: #f7fef9; }
.project-handover-item-footer { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: .75rem; align-items: center; flex-wrap: wrap; }
.project-comms-history-panel { border-top: 5px solid #2563eb; }
.project-comms-timeline { display: grid; gap: .6rem; }
.project-comms-event { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .65rem; padding: .7rem .8rem; border-radius: 16px; background: #f8fafc; border: 1px solid rgba(148,163,184,.24); }
.project-comms-event .material-symbols-rounded { color: #2563eb; }
.project-comms-event.failed .material-symbols-rounded { color: #dc2626; }
.project-comms-event strong { color: #102033; }
.project-comms-event small { display: block; color: #64748b; margin-top: .1rem; }
@media (max-width: 860px) {
  .project-handover-summary { grid-template-columns: 1fr; }
  .project-handover-item { grid-template-columns: 1fr; }
  .project-note-item { grid-template-columns: 1fr; }
  .project-checklist-template { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .project-floating-actions { grid-template-columns: repeat(4, minmax(38px, 1fr)); }
  .project-floating-actions .icon-button { min-height: 38px; padding: .35rem; }
}

/* v33.7: Project comms workflow and collapsible project sections */
.project-collapsible { margin: 1rem 0; }
.project-collapsible > summary { list-style: none; cursor: pointer; }
.project-collapsible > summary::-webkit-details-marker { display: none; }
.project-collapsible-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .75rem; align-items: center; padding: .15rem 0 .75rem; border-bottom: 1px dashed rgba(148,163,184,.28); }
.project-collapsible-summary > span:first-child { display: grid; gap: .18rem; min-width: 0; }
.project-collapsible-summary strong { display: block; color: #102033; font-size: clamp(1.05rem, 1.35vw, 1.35rem); line-height: 1.1; }
.project-collapsible-summary small { color: #64748b; line-height: 1.35; }
.project-collapsible-summary .collapse-icon { transition: transform .18s ease; color: #64748b; }
.project-collapsible[open] > .project-collapsible-summary .collapse-icon { transform: rotate(180deg); }
.project-collapsible-actions { display: inline-flex; gap: .45rem; flex-wrap: wrap; justify-content: flex-end; }
.project-notes-grid .project-collapsible { margin: 0; }
.project-comms-escalations { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin: 0 0 .8rem; padding: .65rem; border: 1px solid rgba(245,158,11,.25); border-radius: 16px; background: #fff7ed; }
.project-comms-escalations strong { color: #92400e; margin-right: .2rem; }
.project-comms-history-actions { margin-top: .45rem; justify-content: flex-start; }
.project-comms-event.pending .material-symbols-rounded { color: #d97706; }
.project-comms-event.approved .material-symbols-rounded { color: #16a34a; }
.project-comms-event.pending { border-color: rgba(245,158,11,.35); background: #fffaf0; }
.project-comms-event.approved { border-color: rgba(22,163,74,.3); background: #f0fdf4; }
@media (max-width: 760px) {
  .project-collapsible-summary { grid-template-columns: 1fr auto; }
  .project-collapsible-summary .button,
  .project-collapsible-actions { grid-column: 1 / -1; justify-content: flex-start; }
}


/* v33.8: refined AI builder choices and cache-first admin mode */
.project-builder-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:4px 0 2px}
.project-builder-choice{position:relative;display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start;padding:16px;border:1px solid var(--border);border-radius:16px;background:linear-gradient(145deg,var(--surface),#f5fbfe);cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.project-builder-choice:hover{transform:translateY(-1px);border-color:var(--brand);box-shadow:0 12px 30px rgba(15,23,42,.08)}
.project-builder-choice:has(input:checked){border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 16%,transparent),0 14px 34px rgba(15,23,42,.09)}
.project-builder-choice input{position:absolute;right:14px;top:14px;width:18px;height:18px}
.project-builder-choice-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:color-mix(in srgb,var(--brand) 12%,var(--surface));color:var(--brand-dark)}
.project-builder-choice strong{display:block;padding-right:26px;font-size:1rem}
.project-builder-choice small{display:block;margin-top:5px;color:var(--muted);line-height:1.45}
.admin-cache-mode{display:inline-grid;grid-template-columns:auto auto;column-gap:7px;align-items:center;margin-top:10px;padding:8px 11px;border:1px solid color-mix(in srgb,var(--success) 30%,var(--border));border-radius:999px;background:color-mix(in srgb,var(--success) 8%,var(--surface));color:var(--ink)}
.admin-cache-mode .material-symbols-rounded{color:var(--success);font-size:19px}
.admin-cache-mode small{grid-column:2;color:var(--muted);font-weight:400}
@media(max-width:760px){.project-builder-choice-grid{grid-template-columns:1fr}.admin-cache-mode{border-radius:14px;align-items:start}}

/* v33.12 - Prospecting conversation workspace */
.prospect-detail-shell {
  --prospect-ink: #10233d;
  --prospect-blue: #0ea5e9;
  --prospect-cyan: #22d3ee;
  --prospect-violet: #6d5dfc;
  --prospect-soft: #f4faff;
  display: flow-root;
}
.prospect-meeting-toolbar {
  position: sticky;
  top: .75rem;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: .7rem .8rem;
  border: 1px solid rgba(14,165,233,.24);
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 45px rgba(15,35,61,.11);
  backdrop-filter: blur(15px);
}
.prospect-journey {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.prospect-journey a,
.prospect-journey button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex: 0 0 auto;
  border: 0;
  border-right: 1px solid rgba(148,163,184,.24);
  padding: .48rem .75rem;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.prospect-journey a:last-child,
.prospect-journey button:last-child { border-right: 0; }
.prospect-journey a:hover,
.prospect-journey button:hover { color: #0369a1; background: #f0f9ff; }
.prospect-journey span {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  color: #0369a1;
  font-size: .72rem;
}
.prospect-view-actions { display: flex; align-items: center; gap: .4rem; flex: 0 0 auto; }
.prospect-view-actions .button.is-active { background: linear-gradient(135deg,#0ea5e9,#6d5dfc); color: #fff; border-color: transparent; }
.prospect-collapse-actions { margin-left: auto; align-self: flex-start; }
.prospect-collapse-button {
  flex: 0 0 auto;
  border: 1px solid rgba(14,165,233,.2);
  background: #f0f9ff;
  color: #0369a1;
}
[data-prospect-collapsible] {
  position: relative;
  scroll-margin-top: 7rem;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
[data-prospect-collapsible]:hover { border-color: rgba(14,165,233,.3); }
[data-prospect-collapsible].is-collapsed { box-shadow: 0 8px 22px rgba(15,35,61,.045); }
[data-prospect-collapsible].is-collapsed > :not(.section-heading) { display: none !important; }
[data-prospect-collapsible].is-collapsed > .section-heading { margin-bottom: 0; }
[data-prospect-collapsible].is-collapsed > .section-heading p { display: none; }
[data-prospect-collapsible].is-collapsed > .section-heading h2 { margin-bottom: 0; }
.prospect-detail-shell.is-customer-meeting-mode [data-prospect-audience="internal"] { display: none !important; }
.prospect-detail-shell.is-customer-meeting-mode .prospecting-metrics-viz,
.prospect-detail-shell.is-customer-meeting-mode .prospect-status-board { filter: saturate(1.08); }

.prospect-scan-command-centre {
  margin-top: 1rem;
  padding: clamp(.85rem, 2vw, 1.25rem);
  border: 1px solid rgba(14,165,233,.25);
  border-radius: 24px;
  background:
    radial-gradient(circle at 95% 0%, rgba(34,211,238,.16), transparent 28%),
    linear-gradient(145deg,#f8fdff,#f3f7ff);
}
.prospect-scan-command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.prospect-scan-command-head h3 { margin: .1rem 0; color: var(--prospect-ink); font-size: 1.3rem; }
.prospect-scan-command-head p { margin: .25rem 0 0; max-width: 760px; color: #52647a; }
.prospect-scan-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; }
.prospect-scan-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-width: 0;
  padding: .9rem;
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 26px rgba(15,35,61,.055);
}
.prospect-scan-card.is-active { border-color: rgba(14,165,233,.48); box-shadow: 0 16px 32px rgba(14,165,233,.12); }
.prospect-scan-card-top { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .65rem; }
.prospect-scan-card-top strong,
.prospect-scan-card-top small { display: block; }
.prospect-scan-card-top strong { color: var(--prospect-ink); }
.prospect-scan-card-top small { margin-top: .1rem; color: #64748b; line-height: 1.25; }
.prospect-scan-icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg,#e0f2fe,#eef2ff);
  color: #0369a1;
}
.prospect-scan-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.prospect-scan-stats span {
  padding: .5rem;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: .76rem;
}
.prospect-scan-stats strong { display: block; color: #0f172a; font-size: 1.08rem; }
.prospect-scan-last { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .35rem .55rem; align-items: start; }
.prospect-scan-last small { color: #475569; line-height: 1.35; }
.prospect-scan-last time { grid-column: 2; color: #94a3b8; font-size: .72rem; }
.prospect-scan-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.prospect-scan-actions form { margin: 0; }
.prospect-scan-history { margin-top: 1rem; border-top: 1px solid rgba(148,163,184,.22); padding-top: .75rem; }
.prospect-scan-history summary { display: flex; justify-content: space-between; gap: .75rem; align-items: center; cursor: pointer; color: #334155; font-weight: 800; }
.prospect-scan-history summary > span { display: inline-flex; align-items: center; gap: .4rem; }
.prospect-scan-history summary small { color: #64748b; font-weight: 600; }
.prospect-scan-history .table-wrap { margin-top: .75rem; }

.prospect-manual-evidence-modal .manual-evidence-safety {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem;
  padding: .8rem;
  border: 1px solid rgba(14,165,233,.22);
  border-radius: 16px;
  background: #f0f9ff;
  color: #334155;
}
.prospect-manual-evidence-modal .manual-evidence-safety > span { color: #0284c7; font-size: 1.65rem; }
.prospect-manual-evidence-modal .manual-evidence-safety p { margin: 0; line-height: 1.42; }

.health-save-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1rem;
  margin: .75rem 0 1rem;
  padding: .75rem .85rem;
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 16px;
  background: linear-gradient(145deg,#f8fafc,#f0f9ff);
  color: #52647a;
  font-size: .82rem;
}
.health-save-state .status-chip { display: inline-flex; align-items: center; gap: .3rem; }
.health-dirty-indicator { display: inline-flex; align-items: center; gap: .3rem; color: #b45309; font-weight: 800; }
.health-dirty-indicator[hidden] { display: none; }
.health-save-helper { display: inline-flex; align-items: center; gap: .4rem; margin-right: auto; color: #52647a; font-size: .82rem; }
.posture-evidence-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin: .5rem 0 0;
  padding: .28rem .5rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: .72rem;
  font-weight: 800;
}
.posture-evidence-chip.is-verified { background: #ecfdf5; color: #047857; }
.posture-evidence-chip .material-symbols-rounded { font-size: 1rem; }

@media (max-width: 1180px) {
  .prospect-scan-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .prospect-meeting-toolbar { align-items: flex-start; flex-direction: column; }
  .prospect-view-actions { width: 100%; justify-content: flex-end; }
}
@media (max-width: 720px) {
  .prospect-meeting-toolbar { position: static; border-radius: 18px; }
  .prospect-journey { width: 100%; }
  .prospect-view-actions { justify-content: stretch; display: grid; grid-template-columns: 1fr 1fr; }
  .prospect-view-actions [data-prospect-view="meeting"] { grid-column: 1 / -1; }
  .prospect-view-actions .button { justify-content: center; }
  .prospect-scan-command-head { align-items: stretch; flex-direction: column; }
  .prospect-scan-command-head form,
  .prospect-scan-command-head .button { width: 100%; }
  .prospect-scan-grid { grid-template-columns: 1fr; }
  .prospect-scan-card-top { grid-template-columns: auto minmax(0,1fr); }
  .prospect-scan-card-top .traffic-pill { grid-column: 1 / -1; width: fit-content; }
  [data-prospect-collapsible].is-collapsed > .section-heading { align-items: center; }
}
.prospect-scan-scope-panel .prospect-scope-board { grid-template-columns: minmax(0, 1fr); }
.prospect-scan-scope-panel .prospect-inline-scope-form,
.prospect-scan-scope-panel .prospect-scope-list { grid-column: 1 / -1; }

/* Shodan v33.13 attack-surface intelligence */
.shodan-intelligence-panel{background:linear-gradient(145deg,#fff,#f6fbff 68%,#eefaff);border-color:#cfe7f2;box-shadow:0 18px 44px rgba(16,32,51,.07)}
.shodan-signal-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.8rem;margin:1rem 0}
.shodan-signal-grid .signal-tile{min-width:0;padding:.85rem;grid-template-columns:42px minmax(0,1fr);border-radius:20px}
.shodan-signal-grid .signal-tile>.material-symbols-rounded{width:42px;height:42px;border-radius:14px}
.shodan-signal-grid .signal-tile strong{font-size:1.32rem}
.shodan-signal-grid .signal-tile small{font-size:.67rem;line-height:1.25}
.shodan-run-summary{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;margin:.8rem 0 1rem}
.shodan-run-summary span{display:inline;color:inherit}
.shodan-findings-table{min-width:1240px}
.shodan-findings-table td{vertical-align:top;line-height:1.35}
.shodan-findings-table small{color:#64748b}
.status-pill.danger{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}
.shodan-detail-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);gap:1rem;align-items:start;margin:1rem 0}
.content-subpanel{border:1px solid #d8e8f0;border-radius:22px;background:linear-gradient(145deg,#fff,#f8fcff);padding:1rem;box-shadow:0 10px 26px rgba(16,32,51,.045)}
.content-subpanel h3{margin:.1rem 0 .85rem;color:#102033}
.detail-list{display:grid;gap:.55rem;margin:0}
.detail-list>div{display:grid;grid-template-columns:minmax(100px,.34fr) minmax(0,1fr);gap:.75rem;padding:.55rem 0;border-bottom:1px solid #e5eef4}
.detail-list>div:last-child{border-bottom:0}
.detail-list dt{font-weight:900;color:#526172}
.detail-list dd{margin:0;color:#102033;overflow-wrap:anywhere}
.plain-feature-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.plain-feature-grid.compact article{padding:.9rem;border-radius:18px}
@media(max-width:1180px){.shodan-signal-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shodan-detail-grid{grid-template-columns:1fr}}
@media(max-width:720px){.shodan-signal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.plain-feature-grid.compact{grid-template-columns:1fr}.shodan-intelligence-panel .section-heading.split-heading{display:grid}.shodan-intelligence-panel .section-heading .form-actions{width:100%;align-items:stretch}.shodan-intelligence-panel .table-search{width:100%}.detail-list>div{grid-template-columns:1fr;gap:.2rem}}
@media(max-width:460px){.shodan-signal-grid{grid-template-columns:1fr}}


/* Hudson Rock / Cavalier integration - v33.14 */
.hudsonrock-integration,.hudsonrock-watch,.hudsonrock-posture,.hudsonrock-report,.hudsonrock-prospect,.hudsonrock-action-card{position:relative;overflow:hidden;border:1px solid rgba(23,78,118,.16);background:linear-gradient(145deg,#fff 0%,#f7fbff 100%)}
.hudsonrock-integration:before,.hudsonrock-watch:before{content:"";position:absolute;right:-90px;top:-110px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(30,188,220,.18),rgba(30,188,220,0) 70%);pointer-events:none}
.hudsonrock-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1.25rem;position:relative;z-index:1}.hudsonrock-heading h2,.hudsonrock-heading h3{margin:.15rem 0 .35rem}.hudsonrock-heading p{margin:0;max-width:78ch}
.hudsonrock-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:1rem;margin-top:1rem}.hudsonrock-limitations{padding:1rem;border-radius:18px;background:#eef8fb;border:1px solid #cbeaf2}.hudsonrock-limitations h3{margin-top:0}.hudsonrock-limitations ul{padding-left:1.15rem;margin:.5rem 0}.hudsonrock-limitations li+li{margin-top:.35rem}
.hudsonrock-settings .field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin:.9rem 0}.hudsonrock-settings label,.hudsonrock-test label{display:grid;gap:.35rem;font-weight:650}.hudsonrock-settings input,.hudsonrock-test input,.hudsonrock-table select{width:100%;padding:.65rem .75rem;border:1px solid #cbd8e3;border-radius:10px;background:#fff}.hudsonrock-settings .check-row{display:flex;align-items:center;gap:.6rem}.hudsonrock-settings .check-row input{width:auto}.hudsonrock-test{display:flex;align-items:end;gap:.75rem;margin-top:1rem}.hudsonrock-test label{flex:1}
.status-pill,.metric-chip,.severity{display:inline-flex;align-items:center;gap:.35rem;border-radius:999px;padding:.35rem .65rem;font-weight:750;font-size:.82rem;white-space:nowrap}.status-pill.is-good{background:#dcf7e7;color:#10733f}.status-pill.is-muted{background:#eef1f4;color:#607080}.metric-chip{background:#eaf4ff;color:#174e76}.metric-chip.is-critical{background:#ffebec;color:#a61d2d}.severity-critical{background:#ffe1e4;color:#a60e22}.severity-high{background:#fff0df;color:#a64b00}.severity-medium{background:#fff7d7;color:#725900}.severity-low,.severity-info{background:#e8f3ff;color:#17527e}
.hudsonrock-watch{margin-top:1.25rem}.hudsonrock-watch .table-wrap{margin-top:1rem;overflow:auto}.hudsonrock-table{width:100%;border-collapse:collapse;min-width:900px}.hudsonrock-table th,.hudsonrock-table td{text-align:left;vertical-align:top;padding:.8rem;border-bottom:1px solid #dce7ef}.hudsonrock-table th{font-size:.76rem;letter-spacing:.06em;text-transform:uppercase;color:#587089}.hudsonrock-table details summary{cursor:pointer;font-weight:650}.hudsonrock-table details p{max-width:66ch}.hudsonrock-jobs{margin-top:1rem;padding:.75rem 1rem;border-radius:12px;background:#f4f8fb}.hudsonrock-jobs summary{cursor:pointer;font-weight:750}
.action-metrics,.report-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;margin:.9rem 0}.action-metrics span,.report-stat-grid>div{display:grid;gap:.15rem;padding:.75rem;border-radius:14px;background:#eef6fb}.action-metrics b,.report-stat-grid b{font-size:1.25rem;color:#153f61}.report-stat-grid span{font-size:.78rem;color:#637486}.data-disclaimer{margin-top:1rem;padding:.75rem 1rem;border-left:4px solid #21b7d8;background:#edf9fc;color:#43586a;border-radius:0 12px 12px 0}.empty-state{margin-top:1rem;padding:1rem;border-radius:14px;background:#f4f8fb}.inline-form{margin:0}.eyebrow{font-size:.72rem;letter-spacing:.12em;font-weight:800;color:#0789ac}.button-row{display:flex;flex-wrap:wrap;gap:.55rem;align-items:center}
@media(max-width:800px){.hudsonrock-heading{display:grid}.hudsonrock-grid{grid-template-columns:1fr}.hudsonrock-settings .field-grid{grid-template-columns:1fr}.hudsonrock-test{display:grid}.action-metrics,.report-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* v33.15 customer-first overview and passive supplier monitoring */
.customer-dashboard{display:grid;gap:28px;color:var(--ink);margin:0 0 28px}.customer-dashboard h1,.customer-dashboard h2,.customer-dashboard h3{line-height:1.15;letter-spacing:-.025em}.customer-dashboard h2{font-size:23px;margin:7px 0 16px}.customer-dashboard p{line-height:1.55}.customer-dashboard a:focus-visible,.customer-dashboard button:focus-visible,.sc-supplier summary:focus-visible{outline:3px solid var(--brand-dark);outline-offset:4px}.dashboard-hero{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);gap:32px;padding:34px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(115deg,#fff 35%,#eaf8fd);box-shadow:0 8px 30px #153b5210}.dashboard-hero h1{font-size:clamp(30px,3.2vw,44px);margin:18px 0 12px}.dashboard-hero p{color:var(--muted);max-width:57ch}.dashboard-company{display:flex;align-items:center;gap:12px;font-weight:700;font-size:16px;margin-top:12px}.dashboard-company img{max-width:110px;max-height:36px;object-fit:contain}.dashboard-hero .button-row{margin-top:22px;display:flex;gap:10px;flex-wrap:wrap}.dashboard-focus{background:#122e40;color:#fff;border-radius:18px;padding:25px;display:flex;align-items:flex-start;flex-direction:column;justify-content:center;border-top:4px solid #16bde5}.dashboard-focus.needs-attention{border-top-color:#f8ba67}.dashboard-kicker{color:#abcbdc;text-transform:uppercase;letter-spacing:.1em;font-size:11px;font-weight:800}.dashboard-focus>strong{font-size:28px;line-height:1.15;margin:10px 0}.dashboard-focus p{color:#deebf2;margin:5px 0 15px;font-size:14px}.dashboard-focus a{color:#fff;font-weight:750;font-size:14px;text-decoration:underline;text-underline-offset:3px}.dashboard-focus .dashboard-fresh-link{font-size:12px;color:#c5dae5;margin-top:15px;font-weight:500}.dashboard-section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px}.dashboard-section-head h2{margin-bottom:0}.dashboard-section-head>a{font-size:12px;font-weight:700;color:#17617e;text-decoration:underline;text-underline-offset:3px}.dashboard-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.dashboard-stat{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;display:flex;flex-direction:column;gap:8px;min-height:195px;text-decoration:none;color:var(--ink);transition:transform .15s,box-shadow .15s}.dashboard-stat:hover{transform:translateY(-2px);box-shadow:0 10px 22px #14374912}.dashboard-stat>div{display:flex;align-items:center;justify-content:space-between}.dashboard-stat .material-symbols-rounded{background:#e8f5fc;color:#12678e;padding:8px;border-radius:11px}.dashboard-card-arrow{color:#627789}.dashboard-stat-label{font-size:12px;font-weight:750;margin-top:6px}.dashboard-stat>strong{font-size:clamp(24px,2.5vw,32px);line-height:1.1;overflow-wrap:anywhere}.dashboard-stat>p{font-size:12px;margin:0;color:#536577}.dashboard-state-warning{--status-accent:#996009;--status-tint:#fff5df}.dashboard-state-danger{--status-accent:#a33436;--status-tint:#fff0f0}.dashboard-state-good{--status-accent:#19764f;--status-tint:#e8f7ed}.dashboard-state-info,.dashboard-state-unknown{--status-accent:#436176;--status-tint:#edf3f7}.dashboard-stat.dashboard-state-warning .material-symbols-rounded,.dashboard-stat.dashboard-state-danger .material-symbols-rounded,.dashboard-stat.dashboard-state-good .material-symbols-rounded{color:var(--status-accent);background:var(--status-tint)}.dashboard-columns{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(290px,1fr);gap:22px;align-items:start}.dashboard-panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:25px;min-width:0}.dashboard-action-list{display:grid;gap:0}.dashboard-action{display:grid;grid-template-columns:36px minmax(0,1fr) 15px;align-items:start;gap:13px;padding:17px 0;text-decoration:none;color:var(--ink);border-bottom:1px solid #e6edf2}.dashboard-action:last-child{border-bottom:0;padding-bottom:0}.dashboard-action>.material-symbols-rounded{background:var(--status-tint);color:var(--status-accent);padding:7px;border-radius:10px;font-size:22px}.dashboard-action-status{font-size:10px;font-weight:800;color:var(--status-accent);text-transform:uppercase;letter-spacing:.06em}.dashboard-action h3{font-size:16px;margin:5px 0 6px}.dashboard-action p{font-size:12px;margin:0;color:#536577}.dashboard-action:hover h3{text-decoration:underline;text-underline-offset:3px}.dashboard-suppliers{background:linear-gradient(145deg,#fff,#f2faff)}.dashboard-supplier-numbers{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}.dashboard-supplier-numbers>div{display:flex;flex-direction:column;gap:3px}.dashboard-supplier-numbers strong{font-size:40px;line-height:1.1}.dashboard-supplier-numbers span{font-size:12px;color:#526779}.dashboard-suppliers>p{font-size:13px}.dashboard-coverage{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;margin:20px 0 8px;font-size:11px}.dashboard-coverage progress{width:100%;height:9px;appearance:none;border:0;border-radius:10px;overflow:hidden;background:#dbe8ef;accent-color:#197e9f}.dashboard-coverage progress::-webkit-progress-bar{background:#dbe8ef}.dashboard-coverage progress::-webkit-progress-value{background:#197e9f}.dashboard-caution{background:#fff5df;border-radius:9px;padding:10px;color:#78500b}.customer-dashboard .dashboard-small{font-size:11px;color:#5d6d7b;line-height:1.5}.dashboard-suppliers .button{margin-top:8px;width:100%;justify-content:center}.dashboard-empty{text-align:center;padding:28px 18px;color:#5b6e7b}.dashboard-empty>.material-symbols-rounded{font-size:38px;color:#328ca9}.dashboard-empty h3{font-size:18px;color:var(--ink);margin:12px 0}.dashboard-empty p,.dashboard-empty-copy{font-size:13px}.dashboard-change-list>div{display:flex;gap:13px;padding:12px 0;border-bottom:1px solid #edf1f4}.dashboard-change-list>div>span{font-size:22px;color:#4d748c}.dashboard-change-list>div>div{display:flex;flex-direction:column;gap:5px;min-width:0}.dashboard-change-list strong{font-size:13px;overflow-wrap:anywhere}.dashboard-change-list div div span{font-size:11px;color:#607182}.dashboard-shortcuts{display:grid;gap:4px}.dashboard-shortcuts a{display:flex;align-items:center;gap:10px;color:#1a3447;text-decoration:none;font-size:13px;padding:10px 0;border-bottom:1px solid #edf1f4}.dashboard-shortcuts a>span:last-child{margin-left:auto}.dashboard-shortcuts .material-symbols-rounded{color:#557d93;font-size:22px}.dashboard-shortcuts a:hover{color:#007caa}.dashboard-summary-button{margin-top:18px}.dashboard-source-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin-top:22px}.dashboard-source{display:flex;gap:9px;padding:13px;background:var(--status-tint);border-radius:12px}.dashboard-source>.material-symbols-rounded{font-size:19px;color:var(--status-accent)}.dashboard-source>div{display:flex;flex-direction:column;gap:4px;min-width:0}.dashboard-source strong{font-size:12px}.dashboard-source div>span{font-size:11px;color:var(--status-accent)}.dashboard-source small{font-size:10px;color:#5c6f7c}.dashboard-notice{display:flex;align-items:center;gap:14px;padding:18px 22px;border-radius:15px;border:1px solid #eadab8;background:#fff8e8;color:#4b3b17;text-decoration:none}.dashboard-notice p{margin:3px 0 0;font-size:13px}.dashboard-notice>span:last-child{margin-left:auto}.dashboard-support-note{display:flex;gap:12px;align-items:center;color:#4e687b;padding:0 8px}.dashboard-support-note p{font-size:12px;margin:0}.sc-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.sc-metrics>span{display:flex;flex-direction:column;gap:5px;background:#f0f7fb;padding:18px;border:1px solid #dbe6ef;border-radius:14px;font-size:12px}.sc-metrics b{font-size:28px;color:#16354a}.sc-supplier{margin:14px 0;border:1px solid var(--line);border-radius:14px;padding:16px}.sc-supplier>summary{cursor:pointer;font-weight:700;line-height:1.5}.sc-supplier form{margin-top:18px}.sc-supplier textarea{max-width:100%}.customer-dashboard [id],#supply-chain{scroll-margin-top:90px}
@media(min-width:1550px){.dashboard-stats{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))}.dashboard-stat{min-height:205px}}
@media(max-width:1000px){.dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-hero{grid-template-columns:minmax(0,1.2fr) minmax(250px,1fr);padding:26px}.dashboard-columns{grid-template-columns:minmax(0,1fr) minmax(270px,1fr);gap:16px}.dashboard-panel{padding:21px}}
@media(max-width:760px){.dashboard-hero,.dashboard-columns{grid-template-columns:1fr}.dashboard-hero{padding:22px;gap:20px}.dashboard-focus{padding:22px}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-stat{padding:16px;min-height:190px}.dashboard-stat>strong{font-size:25px}.dashboard-section-head{align-items:flex-start;flex-wrap:wrap}.dashboard-source-grid{grid-template-columns:1fr 1fr}.sc-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-dashboard{gap:22px}.dashboard-panel{padding:19px}.dashboard-action{gap:10px}.dashboard-section-head h2{font-size:21px}}
@media(max-width:350px){.dashboard-stats,.dashboard-source-grid{grid-template-columns:1fr}.dashboard-stat{min-height:150px}.dashboard-hero .button{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){.dashboard-stat{transition:none}.dashboard-stat:hover{transform:none}}

/* Keep the customer overview inside the existing collapsible navigation rail. */
@media(min-width:1100px){body.customer-shell-page.dashboard-page .page-shell{width:calc(100% - 250px);max-width:none;margin:0 0 0 250px;padding:30px 28px;box-sizing:border-box}body.customer-shell-page.dashboard-page.jit_customer_rail_collapsed-active .page-shell{width:calc(100% - 92px);margin-left:92px}}
.customer-dashboard .dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-dashboard .dashboard-stat>strong.dashboard-text-value{font-size:22px;overflow-wrap:normal;word-break:normal}.dashboard-company-switch{display:flex;justify-content:flex-end}.dashboard-company-switch label{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:700}.dashboard-company-switch select{max-width:320px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:#fff}
@media(max-width:760px){.customer-dashboard .dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-company-switch label{flex-direction:column;align-items:flex-start;width:100%}.dashboard-company-switch select{max-width:100%;width:100%}}
@media(max-width:350px){.customer-dashboard .dashboard-stats{grid-template-columns:1fr}}

.customer-dashboard .dashboard-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}.customer-dashboard .dashboard-shortcuts a{align-items:flex-start}.customer-dashboard .dashboard-shortcuts a>span:nth-child(2){min-width:0;overflow-wrap:break-word}
@media(max-width:1050px) and (min-width:761px){.customer-dashboard .dashboard-shortcuts{grid-template-columns:1fr}}
