:root {
    --bg: #f3f5f6;
    --panel: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #203864;
    --brand-dk: #142a50;
    --brand-mid: #3b82f6;
    --brand-light: #dbeafe;
    --sidebar: #10284b;
    --sidebar-ink: #e6f0ff;
    --sidebar-muted: #91a8c8;
    --sidebar-line: rgba(147,197,253,.16);
    --ok: #16a34a;
    --off: #94a3b8;
    --surface-blue: #eef4fa;
    --surface-blue-strong: #e3edf6;
    --border-blue: #d4e1ec;
    --accent-blue: #456a8c;
    --surface-sage: #eff5f1;
    --surface-sage-strong: #e1ece4;
    --border-sage: #d2e1d6;
    --accent-sage: #52705d;
    --surface-lavender: #f4f1f7;
    --surface-lavender-strong: #e9e2f0;
    --border-lavender: #ded5e7;
    --accent-lavender: #6d5f80;
    --surface-sand: #f8f4ec;
    --surface-sand-strong: #efe5d6;
    --border-sand: #e6dac8;
    --accent-sand: #7b6545;
    --surface-rose: #f8f1f3;
    --surface-rose-strong: #eedfe4;
    --border-rose: #e6d3da;
    --accent-rose: #7d5965;
}

/* ============ PUBLIC LANDING SITE ============ */
.landing-body { min-width: 320px; color: #17233b; background: #fff; overflow-x: hidden; }
.landing-container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.landing-nav-wrap {
    position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(205,216,231,.75);
    background: rgba(255,255,255,.9); backdrop-filter: blur(18px);
}
.landing-nav { width: min(1220px, calc(100% - 40px)); min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 0 auto; }
.landing-brand { display: inline-flex; align-items: center; gap: 11px; color: #172a4d; text-decoration: none; }
.landing-brand img { width: 42px; height: 42px; border: 1px solid #d7e0ec; border-radius: 12px; object-fit: cover; box-shadow: 0 8px 24px rgba(31,55,92,.12); }
.landing-brand span { display: grid; line-height: 1.15; }
.landing-brand strong { font-size: 18px; letter-spacing: -.025em; }
.landing-brand small { margin-top: 4px; color: #7b8799; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.landing-nav-links { display: flex; align-items: center; gap: 28px; }
.landing-nav-links a { color: #5a687d; font-size: 13px; font-weight: 700; text-decoration: none; }
.landing-nav-links a:hover { color: #203864; }
.landing-nav-actions, .landing-hero-actions { display: flex; align-items: center; gap: 10px; }
.landing-link-button { padding: 10px 13px; color: #324766; font-size: 13px; font-weight: 750; text-decoration: none; }
.landing-primary-button, .landing-secondary-button {
    min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 10px 18px; border: 1px solid transparent; border-radius: 11px; font-size: 13px;
    font-weight: 800; text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.landing-primary-button { color: #fff; background: linear-gradient(135deg, #294d82, #162f59); box-shadow: 0 12px 28px rgba(27,55,99,.22); }
.landing-primary-button:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 17px 34px rgba(27,55,99,.28); }
.landing-primary-button.large { min-height: 52px; padding: 13px 23px; border-radius: 13px; font-size: 14px; }
.landing-secondary-button { border-color: #d5dfeb; color: #2e486d; background: rgba(255,255,255,.86); }
.landing-secondary-button:hover { border-color: #aebfd4; transform: translateY(-2px); }
.landing-hero { position: relative; min-height: 720px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(145deg, #f8fbff 0%, #f3f7fc 48%, #f7f5fa 100%); }
.landing-hero::before { position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(45,75,118,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(45,75,118,.06) 1px, transparent 1px); background-size: 52px 52px; content: ""; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.landing-hero-glow { position: absolute; width: 660px; height: 660px; right: -180px; top: -230px; border-radius: 50%; background: radial-gradient(circle, rgba(93,126,181,.2), rgba(123,113,161,.08) 46%, transparent 69%); }
.landing-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0,.94fr) minmax(500px,1.06fr); align-items: center; gap: 68px; padding: 92px 0 102px; }
.landing-eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: #526c94; font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.landing-eyebrow > span { width: 24px; height: 2px; border-radius: 2px; background: #7089b2; }
.landing-hero h1 { max-width: 650px; margin: 0; color: #16294c; font-size: clamp(48px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.055em; }
.landing-hero h1 em { color: #617aa5; font-family: Georgia, serif; font-weight: 500; }
.landing-hero-lead { max-width: 610px; margin: 26px 0 30px; color: #5f6e82; font-size: 18px; line-height: 1.72; }
.landing-assurances { display: flex; flex-wrap: wrap; gap: 18px; margin: 24px 0 0; padding: 0; color: #657389; font-size: 12px; font-weight: 700; list-style: none; }
.landing-assurances span { color: #397159; }
.landing-product-stage { position: relative; min-height: 525px; }
.landing-stage-orbit { position: absolute; border: 1px solid rgba(80,109,154,.13); border-radius: 50%; }
.landing-stage-orbit.orbit-one { width: 480px; height: 480px; right: 10px; top: 10px; animation: landing-spin 34s linear infinite; }
.landing-stage-orbit.orbit-two { width: 360px; height: 360px; right: 72px; top: 70px; border-style: dashed; animation: landing-spin 25s linear infinite reverse; }
.landing-slack-card, .landing-dashboard-card { position: absolute; border: 1px solid rgba(200,212,229,.88); background: rgba(255,255,255,.94); box-shadow: 0 32px 80px rgba(41,65,100,.17); backdrop-filter: blur(12px); }
.landing-slack-card { z-index: 3; width: 355px; left: 0; top: 46px; padding: 21px; border-radius: 19px; transform: rotate(-2.2deg); animation: landing-float 7s ease-in-out infinite; }
.landing-slack-card header { display: flex; align-items: center; gap: 11px; }
.landing-bot-avatar { width: 42px; height: 42px; overflow: hidden; border: 1px solid #d7e0ec; border-radius: 11px; }
.landing-bot-avatar img { width: 100%; height: 100%; object-fit: cover; }
.landing-slack-card header > span:last-child { display: grid; }
.landing-slack-card header strong { color: #243958; font-size: 14px; }
.landing-slack-card header small { color: #8994a5; font-size: 9px; font-weight: 750; }
.landing-slack-card > p { margin: 20px 0 14px; color: #4b5a70; font-size: 13px; }
.landing-question-preview { display: flex; gap: 11px; padding: 13px; border: 1px solid #e2e7ef; border-radius: 11px; background: #f8fafc; }
.landing-question-preview > span { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 25px; border-radius: 7px; color: #45658f; background: #e4ecf6; font-size: 11px; font-weight: 850; }
.landing-question-preview p { display: grid; gap: 3px; margin: 0; }
.landing-question-preview strong { color: #344963; font-size: 12px; }
.landing-question-preview small { color: #7d8998; font-size: 10px; }
.landing-slack-card button { width: 100%; margin-top: 13px; padding: 10px; border: 1px solid #294d82; border-radius: 8px; color: #fff; background: #294d82; font: inherit; font-size: 11px; font-weight: 800; }
.landing-dashboard-card { z-index: 2; width: 390px; right: 0; bottom: 36px; padding: 18px; border-radius: 19px; transform: rotate(2deg); animation: landing-float 8s 1s ease-in-out infinite reverse; }
.landing-dashboard-card > header { display: flex; align-items: center; gap: 6px; padding-bottom: 13px; border-bottom: 1px solid #edf0f5; }
.landing-dashboard-card header > span { display: flex; gap: 4px; }
.landing-dashboard-card header i { width: 6px; height: 6px; border-radius: 50%; background: #ccd5e2; }
.landing-dashboard-card header strong { margin-left: 6px; color: #344967; font-size: 11px; }
.landing-dashboard-card header em { margin-left: auto; color: #42725b; font-size: 9px; font-style: normal; font-weight: 800; }
.landing-mini-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 15px 0; }
.landing-mini-stats span { display: grid; gap: 3px; padding: 11px; border-radius: 9px; background: #f2f6fb; }
.landing-mini-stats span:nth-child(2) { background: #f0f6f2; }
.landing-mini-stats span:nth-child(3) { background: #f8f3ed; }
.landing-mini-stats small { color: #7d899b; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.landing-mini-stats strong { color: #2b4263; font-size: 19px; }
.landing-mini-chart { height: 108px; display: flex; align-items: end; gap: 10px; padding: 14px 14px 0; border-radius: 10px; background: linear-gradient(180deg,#fbfcfe,#f3f6fa); }
.landing-mini-chart span { width: 100%; height: var(--bar); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg,#7891b9,#46668f); }
.landing-stage-chip { position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid #dce4ee; border-radius: 99px; color: #3d516d; background: rgba(255,255,255,.95); box-shadow: 0 14px 32px rgba(35,60,97,.14); font-size: 10px; }
.landing-stage-chip span { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #e5f2eb; color: #387159; }
.landing-stage-chip.chip-ready { right: 32px; top: 18px; }
.landing-stage-chip.chip-private { left: 20px; bottom: 5px; }
.landing-stage-chip.chip-private span { background: #e9edf6; color: #526c98; }
@keyframes landing-float { 0%,100% { transform: translateY(0) rotate(-2.2deg); } 50% { transform: translateY(-12px) rotate(-1.2deg); } }
@keyframes landing-spin { to { transform: rotate(360deg); } }
.landing-proof-strip { padding: 24px 0; border-block: 1px solid #e4eaf1; background: #fff; }
.landing-proof-strip .landing-container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.landing-proof-strip p { margin: 0; color: #8a95a5; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.landing-proof-strip div div { display: flex; align-items: center; gap: 21px; color: #4d5f76; font-size: 12px; font-weight: 750; }
.landing-proof-strip i { width: 4px; height: 4px; border-radius: 50%; background: #9bb0cc; }
.landing-section { padding: 112px 0; }
.landing-section-heading { max-width: 690px; margin: 0 auto 54px; text-align: center; }
.landing-section-heading .landing-eyebrow { justify-content: center; }
.landing-section h2, .landing-final-cta h2 { margin: 0; color: #192d50; font-size: clamp(34px,4vw,50px); line-height: 1.12; letter-spacing: -.04em; }
.landing-section-heading > p:last-child { margin: 18px auto 0; color: #6a778a; font-size: 16px; line-height: 1.7; }
.landing-how { background: #fff; }
.landing-step-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.landing-step-grid article { position: relative; min-height: 270px; padding: 26px; overflow: hidden; border: 1px solid #e0e7ef; border-radius: 18px; background: #fbfcfe; transition: transform .18s, box-shadow .18s; }
.landing-step-grid article:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(43,68,103,.1); }
.landing-step-grid article > span { position: absolute; right: 19px; top: 14px; color: #e6ebf2; font-size: 38px; font-weight: 900; }
.landing-step-icon { width: 47px; height: 47px; display: grid; place-items: center; margin-bottom: 34px; border-radius: 13px; color: #47678f; background: #e8f0f8; font-size: 20px; }
.landing-step-icon.lavender { color: #6f6385; background: #eee9f3; }.landing-step-icon.sage { color: #557361; background: #e6f0e9; }.landing-step-icon.sand { color: #806a4c; background: #f2eadd; }
.landing-step-grid h3 { margin-bottom: 10px; color: #293f60; font-size: 17px; }
.landing-step-grid p { margin: 0; color: #748094; font-size: 13px; line-height: 1.65; }
.landing-capabilities { background: linear-gradient(135deg,#f5f8fc,#f8f7fb); }
.landing-capability-layout { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 76px; }
.landing-capability-copy > p:not(.landing-eyebrow) { max-width: 630px; margin: 20px 0 32px; color: #6b788b; line-height: 1.7; }
.landing-feature-list { display: grid; gap: 8px; }
.landing-feature-list article { display: grid; grid-template-columns: 35px 1fr; gap: 14px; padding: 15px; border-radius: 12px; transition: background .15s; }
.landing-feature-list article:hover { background: rgba(255,255,255,.75); }
.landing-feature-list article > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #4d6a93; background: #e4ebf5; font-size: 10px; font-weight: 850; }
.landing-feature-list h3 { margin-bottom: 4px; color: #2c4262; font-size: 15px; }.landing-feature-list p { margin: 0; color: #748094; font-size: 12px; line-height: 1.55; }
.landing-insight-panel { padding: 25px; border: 1px solid #dce4ed; border-radius: 22px; background: rgba(255,255,255,.9); box-shadow: 0 35px 80px rgba(38,61,96,.13); transform: rotate(1deg); }
.landing-insight-panel > header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid #e9edf2; }
.landing-insight-panel header > span { display: grid; }.landing-insight-panel header small { color: #8792a2; font-size: 9px; font-weight: 850; text-transform: uppercase; }.landing-insight-panel header strong { margin-top: 4px; color: #314764; font-size: 14px; }.landing-insight-panel header em { padding: 6px 9px; border-radius: 99px; color: #3f755a; background: #e9f4ed; font-size: 9px; font-style: normal; font-weight: 850; }
.landing-ring-row { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 24px; padding: 28px 0; }
.landing-ring { width: 145px; height: 145px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#52739f 0 86%,#e7edf4 86% 100%); }
.landing-ring::before { grid-area: 1/1; width: 110px; height: 110px; border-radius: 50%; background: #fff; content: ""; }.landing-ring > span { z-index: 1; grid-area: 1/1; display: grid; text-align: center; }.landing-ring strong { color: #2b4364; font-size: 28px; }.landing-ring small { color: #8490a1; font-size: 9px; text-transform: uppercase; }
.landing-ring-row dl { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0; }.landing-ring-row dl div { padding: 11px; border-radius: 9px; background: #f6f8fb; }.landing-ring-row dt { color: #8792a2; font-size: 9px; font-weight: 800; }.landing-ring-row dd { margin: 3px 0 0; color: #344b69; font-size: 18px; font-weight: 850; }
.landing-member-list { display: grid; gap: 7px; }.landing-member-list > span { display: grid; grid-template-columns: 33px 1fr auto; align-items: center; gap: 10px; padding: 9px; border: 1px solid #edf0f4; border-radius: 10px; }.landing-member-list i { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 9px; color: #53705f; background: #e5efe8; font-size: 9px; font-style: normal; font-weight: 850; }.landing-member-list i.blue { color: #4a678f; background: #e5edf6; }.landing-member-list i.sand { color: #826d4e; background: #f2eadd; }.landing-member-list strong { color: #45566e; font-size: 11px; }.landing-member-list small { color: #708398; font-size: 9px; font-weight: 750; }
.landing-security { color: #dbe7f8; background: radial-gradient(circle at 8% 10%,rgba(84,122,177,.28),transparent 35%), linear-gradient(135deg,#172f57,#0d203d); }
.landing-security-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 82px; }
.landing-eyebrow.light { color: #a9bddb; }.landing-eyebrow.light > span { background: #7e9cc8; }.landing-security h2 { color: #fff; }.landing-security-grid > div:first-child > p:not(.landing-eyebrow) { margin: 22px 0 27px; color: #aebdd2; font-size: 16px; line-height: 1.75; }.landing-secondary-button.light { border-color: rgba(187,208,237,.3); color: #e8f1ff; background: rgba(255,255,255,.06); }
.landing-security-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.landing-security-points article { display: flex; gap: 13px; min-height: 150px; padding: 20px; border: 1px solid rgba(169,192,224,.16); border-radius: 15px; background: rgba(255,255,255,.055); }.landing-security-points article > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border-radius: 9px; color: #b8ccec; background: rgba(128,160,207,.15); }.landing-security-points strong { color: #edf5ff; font-size: 13px; }.landing-security-points p { margin: 7px 0 0; color: #9fb0c8; font-size: 11px; line-height: 1.6; }
.landing-final-cta { padding: 90px 0; background: #fff; }.landing-final-cta .landing-container { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 48px 52px; border: 1px solid #dce5ef; border-radius: 24px; background: linear-gradient(120deg,#f2f6fb,#f7f5fa); box-shadow: 0 25px 65px rgba(40,64,99,.1); }.landing-final-cta h2 { max-width: 690px; font-size: clamp(30px,3.5vw,44px); }.landing-final-cta p:not(.landing-eyebrow) { max-width: 680px; margin: 15px 0 0; color: #6d798b; }.landing-final-cta .landing-container > div:last-child { display: grid; justify-items: center; gap: 11px; flex: 0 0 auto; }.landing-final-cta small { color: #8490a0; font-size: 10px; }.landing-final-cta small a { font-weight: 800; }
.landing-footer { padding: 45px 0; border-top: 1px solid #e5eaf1; background: #f8fafc; }.landing-footer .landing-container { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; }.landing-footer p { margin: 0; color: #758195; font-size: 12px; }.landing-footer nav { display: flex; gap: 20px; }.landing-footer nav a { color: #607087; font-size: 11px; font-weight: 750; text-decoration: none; }
@media (max-width: 1020px) { .landing-nav-links { display: none; }.landing-hero-grid { grid-template-columns: 1fr; gap: 45px; }.landing-hero-copy { text-align: center; }.landing-eyebrow, .landing-hero-actions, .landing-assurances { justify-content: center; }.landing-hero-lead { margin-inline: auto; }.landing-product-stage { width: min(650px,100%); margin: 0 auto; }.landing-step-grid { grid-template-columns: 1fr 1fr; }.landing-capability-layout, .landing-security-grid { grid-template-columns: 1fr; }.landing-insight-panel { width: min(620px,100%); margin: 0 auto; }.landing-footer .landing-container { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
@media (max-width: 680px) { .landing-container { width: min(100% - 28px,1180px); }.landing-nav { width: calc(100% - 24px); min-height: 66px; }.landing-brand small, .landing-nav-actions .landing-link-button { display: none; }.landing-primary-button { padding-inline: 14px; }.landing-hero { min-height: auto; }.landing-hero-grid { padding: 70px 0 78px; }.landing-hero h1 { font-size: clamp(42px,14vw,58px); }.landing-hero-lead { font-size: 16px; }.landing-hero-actions { flex-direction: column; }.landing-hero-actions a { width: 100%; }.landing-assurances { gap: 9px 15px; }.landing-product-stage { min-height: 430px; transform: scale(.86); transform-origin: top center; margin-bottom: -60px; }.landing-slack-card { width: 320px; }.landing-dashboard-card { width: 340px; }.landing-stage-chip.chip-ready { right: 0; }.landing-proof-strip .landing-container { display: grid; text-align: center; }.landing-proof-strip div div { flex-wrap: wrap; justify-content: center; }.landing-section { padding: 78px 0; }.landing-step-grid, .landing-security-points { grid-template-columns: 1fr; }.landing-step-grid article { min-height: 220px; }.landing-ring-row { grid-template-columns: 1fr; justify-items: center; }.landing-ring-row dl { width: 100%; }.landing-final-cta { padding: 60px 0; }.landing-final-cta .landing-container { display: grid; padding: 32px 24px; text-align: center; }.landing-final-cta .landing-container > div:last-child { width: 100%; }.landing-final-cta .landing-primary-button { width: 100%; }.landing-footer nav { flex-wrap: wrap; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .landing-stage-orbit, .landing-slack-card, .landing-dashboard-card { animation: none; } }

/* Public trust and support pages */
.trust-body { color: #253650; background: linear-gradient(180deg,#f5f8fc 0,#fff 420px); }
.trust-nav { width: min(1180px,calc(100% - 40px)); min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 auto; }
.trust-nav nav { display: flex; align-items: center; gap: 22px; }.trust-nav nav > a:not(.landing-primary-button) { color: #627086; font-size: 12px; font-weight: 750; text-decoration: none; }
.trust-shell { width: min(880px,calc(100% - 32px)); margin: 0 auto; padding: 90px 0 110px; }.trust-shell > header { margin-bottom: 42px; text-align: center; }.trust-shell > header .landing-eyebrow { justify-content: center; }.trust-shell > header h1 { margin: 0; color: #182d50; font-size: clamp(40px,6vw,64px); line-height: 1.05; letter-spacing: -.05em; }.trust-shell > header > p:not(.landing-eyebrow) { margin: 18px auto 8px; color: #6d798b; font-size: 17px; }.trust-shell > header small { color: #96a0af; font-size: 10px; }
.trust-document { padding: 42px 48px; border: 1px solid #dde5ee; border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: 0 28px 70px rgba(39,64,99,.1); }.trust-document section { padding: 24px 0; border-bottom: 1px solid #edf0f4; }.trust-document section:first-child { padding-top: 0; }.trust-document h2 { margin: 0 0 9px; color: #2a4264; font-size: 18px; }.trust-document p { margin: 0; color: #687689; font-size: 14px; line-height: 1.75; }.trust-document aside { margin-top: 30px; padding: 22px; border: 1px solid #dce5ef; border-radius: 14px; background: #f4f7fb; }.trust-document aside strong { color: #294365; }.trust-document aside p { margin: 5px 0 14px; }
.trust-footer { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px max(24px,calc((100% - 1180px)/2)); border-top: 1px solid #e3e9f0; color: #8591a1; background: #f8fafc; font-size: 11px; }.trust-footer nav { display: flex; gap: 20px; }.trust-footer a { color: #627086; font-weight: 700; text-decoration: none; }
.support-shell { width: min(1100px,calc(100% - 32px)); }.support-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }.support-grid article { position: relative; min-height: 280px; display: flex; flex-direction: column; padding: 25px; overflow: hidden; border: 1px solid #dfe6ef; border-radius: 17px; background: rgba(255,255,255,.94); box-shadow: 0 15px 38px rgba(39,64,99,.07); }.support-grid article > span { position: absolute; right: 18px; top: 12px; color: #e8edf3; font-size: 34px; font-weight: 900; }.support-grid h2 { max-width: 220px; margin: 24px 0 11px; color: #2a4263; font-size: 17px; }.support-grid p { margin: 0 0 15px; color: #6e7b8d; font-size: 12px; line-height: 1.65; }.support-grid code { align-self: flex-start; margin-bottom: 16px; }.support-grid a { margin-top: auto; color: #35577f; font-size: 11px; font-weight: 800; text-decoration: none; }
.login-home-link { position: fixed; z-index: 20; left: 20px; top: 16px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; color: rgba(255,255,255,.84); background: rgba(14,34,63,.35); font-size: 11px; font-weight: 750; text-decoration: none; backdrop-filter: blur(10px); }
.audit-content { display: grid; gap: 18px; max-width: none; }.audit-panel { padding: 22px; }.audit-table td:first-child { min-width: 180px; }.audit-table td:nth-child(2) { max-width: 260px; overflow-wrap: anywhere; }.audit-table td:last-child small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.access-content { display: grid; gap: 20px; max-width: none; }.access-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }.access-invite,.access-principles,.access-table-panel,.access-data-card,.access-danger-card { padding: 24px; }.access-invite header p:not(.onboarding-kicker),.access-data-card p,.access-danger-card p { color: var(--muted); font-size: 13px; }.access-invite-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; margin-top: 20px; }.access-principles ul { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }.access-principles li { display: flex; gap: 11px; padding: 11px; border-radius: 10px; background: var(--surface-blue); }.access-principles li > span { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 27px; border-radius: 8px; color: var(--accent-blue); background: #fff; font-size: 10px; font-weight: 850; }.access-principles li div { display: grid; }.access-principles small,.access-table-panel td small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }.access-data-card { border-color: var(--border-blue); background: var(--surface-blue); }.access-danger-card { border-color: var(--border-rose); background: var(--surface-rose); }.access-data-card .btn-primary { margin-top: 12px; }.access-danger-card form { display: grid; gap: 12px; margin-top: 14px; }
@media(max-width:900px){.access-grid{grid-template-columns:1fr}.access-invite-form{grid-template-columns:1fr}}
@media (max-width: 850px) { .support-grid { grid-template-columns: 1fr 1fr; }.trust-shell { padding-top: 60px; } }
@media (max-width: 600px) { .trust-nav { min-height: 68px; }.trust-nav nav > a:not(.landing-primary-button) { display: none; }.trust-document { padding: 28px 22px; }.support-grid { grid-template-columns: 1fr; }.trust-footer { flex-direction: column; justify-content: center; }.login-home-link { position: absolute; } }
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
}
a { color: var(--brand); }
h2 { margin: 0 0 14px; font-size: 20px; }
h3 { margin: 0; font-size: 17px; }
h4 { margin: 0 0 8px; font-size: 16px; }
.muted { color: var(--muted); font-size: 15px; }
code { background: #f1f5f9; padding: 1px 6px; border-radius: 6px; font-size: 13px; }

/* ============ APP SHELL ============ */
.app { display: flex; min-height: 100vh; }

.sidebar {
    width: 256px; height: 100vh; flex-shrink: 0; position: sticky; top: 0;
    display: flex; flex-direction: column; padding: 18px 14px 16px;
    overflow-y: auto; border-right: 1px solid rgba(147,197,253,.12); color: #fff;
    background:
        radial-gradient(circle at 8% 0, rgba(96,165,250,.2), transparent 31%),
        linear-gradient(180deg, #203864 0%, var(--sidebar) 68%, #0b1c35 100%);
    scrollbar-color: rgba(147,197,253,.3) transparent;
    scrollbar-width: thin;
}
.sidebar-brand {
    position: relative;
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    margin: 0 0 8px; padding: 5px 7px 16px; border-radius: 11px;
    color: #fff; text-align: center; text-decoration: none;
}
.sidebar-brand::after {
    position: absolute; right: 14%; bottom: 0; left: 14%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(147,197,253,.48), transparent);
    content: "";
}
.sidebar-brand:focus-visible,
.nav-link:focus-visible,
.sidebar-logout:focus-visible {
    outline: 3px solid rgba(147,197,253,.62); outline-offset: 2px;
}
.sidebar-brand-mark {
    width: 40px; height: 40px; flex: 0 0 40px; display: inline-flex;
    align-items: center; justify-content: center; overflow: hidden;
    border: 1px solid rgba(255,255,255,.68); border-radius: 12px; background: #fff;
    box-shadow: 0 8px 24px rgba(3,15,34,.28), inset 0 1px rgba(255,255,255,.18);
}
.sidebar-brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.sidebar-brand-copy { display: block; min-width: 0; line-height: 1.15; }
.sidebar-brand-copy strong { display: block; color: #fff; font-size: 18px; letter-spacing: -.015em; }
.sidebar-menu-toggle { display: none; }

.sidebar-profile-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 11px; margin: 2px 2px 24px; padding: 10px 4px 8px; text-align: center;
}
.sidebar-profile-avatar {
    position: relative; width: 92px; height: 92px; flex: 0 0 92px; display: inline-flex; overflow: hidden;
    align-items: center; justify-content: center; border: 1px solid rgba(147,197,253,.28);
    border-radius: 50%; background: rgba(59,130,246,.2); color: #dbeafe;
    box-shadow: 0 8px 20px rgba(3,15,34,.22), 0 0 0 4px rgba(147,197,253,.08);
}
.sidebar-profile-avatar > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.sidebar-profile-avatar > svg {
    width: 36px; height: 36px; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}
.sidebar-profile-copy { display: block; min-width: 0; line-height: 1.2; }
.sidebar-profile-copy strong {
    display: block; overflow: hidden; color: #f8fafc; font-size: 13px; font-weight: 750;
    text-overflow: ellipsis; white-space: nowrap;
}
.sidebar-profile-copy small {
    display: block; overflow: hidden; margin-top: 4px; color: #a9bfdd;
    font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap;
}
.sidebar-profile-workspace {
    display: block; max-width: 100%; overflow: hidden; margin-top: 8px; padding: 4px 9px;
    border: 1px solid rgba(147,197,253,.17); border-radius: 999px;
    background: rgba(15,38,72,.72); color: #d9e8fb; font-size: 10px; font-weight: 700;
    line-height: 1.25; text-overflow: ellipsis; white-space: nowrap;
}
.sidebar-profile-workspace.platform { color: #b8cbe4; }

.sidebar-nav { display: flex; flex: 1; min-height: 0; flex-direction: column; padding: 0 3px; }
.sidebar-nav-section + .sidebar-nav-section { margin-top: 18px; }
.sidebar-nav-label {
    margin: 0 9px 7px; color: #9fb4d1; font-size: 10px; font-weight: 800;
    letter-spacing: .11em; text-transform: uppercase;
}
.sidebar-nav-list { display: flex; flex-direction: column; gap: 4px; }
.nav-link {
    position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr);
    align-items: center; gap: 10px; min-height: 44px; padding: 5px 9px;
    border: 1px solid transparent; border-radius: 10px; color: #dbe7f7;
    text-decoration: none; transition: border-color .15s, background .15s, color .15s;
}
.nav-link::before {
    position: absolute; top: 9px; bottom: 9px; left: -6px; width: 3px;
    border-radius: 0 3px 3px 0; background: #60a5fa; content: "";
    opacity: 0; transform: scaleY(.45); transition: opacity .15s, transform .15s;
}
.nav-link .ic {
    width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px; background: rgba(148,163,184,.07); color: #a9bdd8;
    transition: background .15s, color .15s;
}
.nav-link .ic svg {
    width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.75;
    stroke-linecap: round; stroke-linejoin: round;
}
.nav-link-copy { display: block; min-width: 0; line-height: 1.2; }
.nav-link-copy strong {
    display: block; overflow: hidden; color: inherit; font-size: 13px; font-weight: 650;
    text-overflow: ellipsis; white-space: nowrap;
}
.nav-link-copy small {
    display: none;
}
.nav-link:hover {
    border-color: rgba(147,197,253,.14); background: rgba(255,255,255,.06); color: #fff;
}
.nav-link:hover .ic { background: rgba(147,197,253,.13); color: #e6f0ff; }
.nav-link.active {
    border-color: rgba(96,165,250,.25); background: linear-gradient(90deg, rgba(59,130,246,.25), rgba(59,130,246,.08));
    color: #fff; box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.nav-link.active::before { opacity: 1; transform: scaleY(1); }
.nav-link.active .ic { background: rgba(96,165,250,.2); color: #eaf3ff; }

.sidebar-foot { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--sidebar-line); }
.sidebar-user-status {
    position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px;
    border: 2px solid #10284b; border-radius: 50%; background: #60a5fa;
}
.sidebar-logout-form {
    margin: 0;
}
.sidebar-logout {
    width: 100%; min-height: 43px; display: grid; grid-template-columns: 28px minmax(0, 1fr);
    align-items: center; gap: 9px; padding: 6px 9px; border: 1px solid rgba(251,113,133,.2);
    border-radius: 10px; background: linear-gradient(110deg, rgba(244,63,94,.11), rgba(251,113,133,.055));
    color: #ffe4e6; font: inherit; text-align: left; cursor: pointer;
    box-shadow: inset 0 1px rgba(255,255,255,.025);
    transition: border-color .15s, background .15s, color .15s, box-shadow .15s, transform .15s;
}
.sidebar-logout-icon {
    width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; background: rgba(251,113,133,.13); color: #fda4af;
}
.sidebar-logout svg {
    width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.sidebar-logout-copy { display: block; min-width: 0; line-height: 1.18; }
.sidebar-logout-copy strong { display: block; color: #fff1f2; font-size: 11px; font-weight: 750; }
.sidebar-logout-copy small { display: block; margin-top: 3px; color: #d9a9b1; font-size: 8px; }
.sidebar-logout:hover {
    border-color: rgba(251,113,133,.38); background: linear-gradient(110deg, rgba(244,63,94,.2), rgba(251,113,133,.1));
    color: #fff1f2; box-shadow: 0 7px 16px rgba(3,15,34,.17); transform: translateY(-1px);
}
.sidebar-logout:hover .sidebar-logout-icon { background: rgba(251,113,133,.22); color: #fecdd3; }
.sidebar-logout:active { box-shadow: none; transform: translateY(0); }

.main {
    flex: 1; min-width: 0; display: flex; flex-direction: column;
    background:
        radial-gradient(circle at 96% 3%, rgba(109,95,128,.075), transparent 28rem),
        radial-gradient(circle at 7% 94%, rgba(82,112,93,.06), transparent 30rem),
        var(--bg);
}
.appbar {
    position: sticky; z-index: 30; top: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 28px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(15,23,42,.02); backdrop-filter: blur(14px);
}
.appbar h1 { margin: 0; font-size: 24px; }
.appbar .sub { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.content { width: 100%; max-width: none; padding: 26px 30px 50px; }
.content.two-col {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px; align-items: start;
}

/* ============ PANELS / CARDS ============ */
.panel {
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
    padding: 24px; margin-bottom: 22px; box-shadow: 0 1px 3px rgba(15,23,42,.025);
}
.two-col .panel { margin-bottom: 0; }
.back { display: inline-block; margin-bottom: 16px; color: var(--brand); text-decoration: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card {
    display: block; text-decoration: none; color: inherit;
    border: 1px solid var(--line); border-radius: 10px; padding: 16px;
    transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 6px 20px rgba(2,6,23,.08); transform: translateY(-1px); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-foot { display: flex; justify-content: space-between; font-size: 13px; margin-top: 10px; color: var(--muted); }

/* ============ STAT TILES ============ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat {
    display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit;
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
    transition: box-shadow .15s, transform .15s;
}
.stat:hover { box-shadow: 0 6px 20px rgba(2,6,23,.08); transform: translateY(-1px); }
.stat-ic { font-size: 26px; }
.stat-num { font-size: 26px; font-weight: 700; line-height: 1; }
.stat-label { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ============ TABLES ============ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }

/* ============ BADGES / PILLS / TAGS ============ */
.badge, .pill, .tag {
    font-size: 12px; padding: 3px 9px; border-radius: 999px; font-weight: 600;
    background: var(--surface-blue); color: var(--accent-blue); display: inline-block;
}
.badge.ok, .pill.ok { background: #dcfce7; color: var(--ok); }
.badge.off, .pill.off { background: #e2e8f0; color: var(--off); }
.tag.STANDUP { background: var(--surface-lavender-strong); color: var(--accent-lavender); }
.tag.WEEKLY_STATUS { background: var(--surface-sage-strong); color: var(--accent-sage); }
.tag.METRIC { background: var(--surface-sand-strong); color: var(--accent-sand); }

/* ============ REPORT BLOCKS ============ */
.qa { display: block; margin-bottom: 4px; }
.qa strong { color: var(--muted); font-weight: 600; margin-right: 6px; }
.report { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.report:last-child { margin-bottom: 0; }
.report-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.report-head h4 { margin: 0; }
.qa-block { margin-bottom: 8px; }
.qa-block .q { color: var(--muted); font-size: 13px; }
.qa-block .a { white-space: pre-wrap; }
.metric-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.metric-chip {
    border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; text-align: center; min-width: 84px;
}
.metric-val { display: block; font-size: 20px; font-weight: 700; color: var(--ink); }
.metric-name { display: block; font-size: 12px; color: var(--muted); }

/* ============ FORMS ============ */
.report-form { display: flex; flex-direction: column; gap: 14px; }
.report-form label { display: flex; flex-direction: column; gap: 7px; font-size: 15px; font-weight: 650; color: var(--ink); }
.report-form select, .report-form textarea, .report-form input {
    min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
    font-size: 16px; color: var(--ink); background: #fff; font-family: inherit;
}
.report-form textarea { resize: vertical; }
.report-form select:focus, .report-form textarea:focus, .report-form input:focus {
    outline: 2px solid var(--brand); border-color: var(--brand);
}
.report-form .btn-primary { align-self: flex-start; }
.btn-primary {
    min-height: 46px; padding: 11px 17px; border: 0; border-radius: 9px;
    background: var(--brand); color: #fff; font-size: 16px; font-weight: 650; cursor: pointer;
}
.btn-primary:hover { background: var(--brand-dk); }

/* ============ ALERTS ============ */
.alert { padding: 10px 12px; border-radius: 8px; font-size: 14px; margin: 0 0 16px; }
.alert.error { background: #fee2e2; color: #b91c1c; }
.alert.ok { background: #dcfce7; color: var(--ok); }

/* ============ LOGIN PAGE ============ */
.login-body {
    position: relative; isolation: isolate; display: flex; min-height: 100vh; min-height: 100svh;
    align-items: center; justify-content: center; overflow-x: hidden;
    padding: clamp(18px, 3vw, 42px);
    background:
        radial-gradient(circle at 8% 10%, rgba(225,236,228,.9), transparent 28%),
        radial-gradient(circle at 92% 8%, rgba(233,226,240,.9), transparent 30%),
        radial-gradient(circle at 82% 94%, rgba(239,229,214,.72), transparent 28%),
        linear-gradient(145deg, #edf3f8 0%, #f9fafb 48%, #f6f2ee 100%);
}
.login-body::before {
    position: fixed; inset: 0; z-index: -2; pointer-events: none; content: "";
    background-image:
        linear-gradient(rgba(69,106,140,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(69,106,140,.035) 1px, transparent 1px);
    background-size: 42px 42px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 78%);
}
.login-ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.login-orb {
    position: absolute; display: block; border-radius: 50%; opacity: .58; filter: blur(2px);
    will-change: transform; animation: login-orb-drift 16s ease-in-out infinite alternate;
}
.login-orb-one {
    top: 5%; left: 3%; width: 190px; height: 190px;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.9), rgba(82,112,93,.15));
}
.login-orb-two {
    top: 3%; right: 5%; width: 260px; height: 260px; animation-delay: -5s;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.85), rgba(109,95,128,.14));
}
.login-orb-three {
    right: 18%; bottom: -8%; width: 230px; height: 230px; animation-delay: -9s;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.8), rgba(123,101,69,.13));
}

.login-shell {
    position: relative; z-index: 1; display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
    width: min(1240px, 100%); min-height: min(760px, calc(100svh - 84px));
    max-height: calc(100svh - 36px);
    overflow: hidden; border: 1px solid rgba(255,255,255,.78); border-radius: 30px;
    background: rgba(255,255,255,.76);
    box-shadow: 0 38px 90px rgba(20,42,80,.18), 0 8px 24px rgba(20,42,80,.08);
    animation: login-shell-enter .8s cubic-bezier(.2,.75,.25,1) both;
}

.login-showcase {
    position: relative; display: flex; min-width: 0; flex-direction: column; overflow: hidden;
    padding: 38px 44px 28px; color: #f8fbff;
    background:
        radial-gradient(circle at 92% 8%, rgba(109,95,128,.42), transparent 31%),
        radial-gradient(circle at 7% 72%, rgba(82,112,93,.28), transparent 34%),
        linear-gradient(145deg, #10284b 0%, #18355f 48%, #142a50 100%);
}
.login-showcase::before {
    position: absolute; inset: -20%; pointer-events: none; content: ""; opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px);
    background-size: 54px 54px; transform: rotate(-8deg) scale(1.16);
    animation: login-grid-drift 30s linear infinite;
}
.login-showcase::after {
    position: absolute; inset: auto -14% -26% auto; width: 430px; height: 430px;
    border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: "";
    box-shadow: 0 0 0 64px rgba(255,255,255,.025), 0 0 0 128px rgba(255,255,255,.018);
}
.login-showcase-glow {
    position: absolute; top: 23%; right: -9%; width: 300px; height: 300px;
    border-radius: 50%; background: rgba(147,197,253,.13); filter: blur(62px); pointer-events: none;
}
.login-showcase-brand {
    position: relative; z-index: 2; display: flex; align-items: center; gap: 12px;
    animation: login-rise .72s .12s cubic-bezier(.2,.75,.25,1) both;
}
.login-showcase-mark {
    width: 48px; height: 48px; flex: 0 0 48px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.68); border-radius: 14px; background: #fff;
    box-shadow: 0 14px 30px rgba(2,10,25,.25);
}
.login-showcase-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.login-showcase-brand > span:last-child { line-height: 1.22; }
.login-showcase-brand strong { display: block; color: #fff; font-size: 18px; letter-spacing: -.015em; }
.login-showcase-brand small { display: block; margin-top: 3px; color: #a9c1df; font-size: 11px; }

.login-showcase-copy {
    position: relative; z-index: 2; max-width: 580px; margin-top: clamp(36px, 6vh, 64px);
    animation: login-rise .8s .22s cubic-bezier(.2,.75,.25,1) both;
}
.login-showcase-kicker {
    display: flex; align-items: center; gap: 9px; margin: 0 0 15px; color: #c7d8ed;
    font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.login-showcase-kicker > span {
    width: 28px; height: 2px; border-radius: 999px;
    background: linear-gradient(90deg, #8fb6e5, #b8a9cf);
}
.login-showcase-copy h1 {
    margin: 0; color: #fff; font-size: clamp(38px, 4.4vw, 58px); font-weight: 760;
    letter-spacing: -.045em; line-height: 1.02;
}
.login-showcase-copy h1 em {
    color: #c9d9ed; font-style: normal;
    background: linear-gradient(90deg, #d3e2f3, #c7bad8 52%, #c8d9ce);
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.login-showcase-copy > p:last-of-type {
    max-width: 540px; margin: 20px 0 0; color: #b5c8df; font-size: 15px; line-height: 1.7;
}
.login-benefits {
    display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none;
}
.login-benefits li {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px;
    border: 1px solid rgba(191,219,254,.14); border-radius: 999px;
    background: rgba(255,255,255,.055); color: #dbe8f7; font-size: 11px; font-weight: 650;
    backdrop-filter: blur(8px);
}
.login-benefits li > span {
    width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(147,197,253,.12); color: #bfdbfe;
}
.login-benefits svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.login-preview-stage {
    position: relative; z-index: 2; width: min(500px, 83%); margin: auto auto 18px;
    perspective: 1100px; animation: login-rise .9s .34s cubic-bezier(.2,.75,.25,1) both;
}
.login-preview-card {
    overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 17px;
    background: rgba(247,250,253,.96); color: var(--ink);
    box-shadow: 0 28px 55px rgba(2,10,25,.28), inset 0 1px rgba(255,255,255,.9);
    transform: rotateX(1.5deg) rotateY(-2.5deg); transform-origin: center bottom;
    animation: login-preview-float 6.5s ease-in-out infinite;
}
.login-preview-header {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
    padding: 10px 13px; border-bottom: 1px solid #e5ebf2; background: #fff;
}
.login-preview-header > span:first-child { display: flex; gap: 4px; }
.login-preview-header > span:first-child i { width: 6px; height: 6px; border-radius: 50%; background: #d6dee8; }
.login-preview-header strong { color: #526b8e; font-size: 9px; letter-spacing: .025em; }
.login-preview-header em {
    display: flex; align-items: center; justify-content: flex-end; gap: 5px;
    color: var(--accent-sage); font-size: 8px; font-style: normal; font-weight: 750;
}
.login-preview-header em span {
    width: 6px; height: 6px; border-radius: 50%; background: #6f9a7c;
    box-shadow: 0 0 0 4px rgba(111,154,124,.12); animation: login-live-pulse 2.2s ease-out infinite;
}
.login-preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 10px; }
.login-preview-stats > span {
    display: grid; min-width: 0; grid-template-columns: 1fr auto; gap: 2px 6px;
    padding: 8px 9px; border: 1px solid var(--preview-border); border-radius: 9px;
    background: var(--preview-surface);
}
.login-preview-stats small { color: #6c7e95; font-size: 7px; font-weight: 700; text-transform: uppercase; }
.login-preview-stats strong { grid-row: span 2; color: var(--preview-accent); font-size: 17px; line-height: 1; }
.login-preview-stats i { color: var(--preview-accent); font-size: 7px; font-style: normal; }
.preview-stat-blue { --preview-surface: var(--surface-blue); --preview-border: var(--border-blue); --preview-accent: var(--accent-blue); }
.preview-stat-sage { --preview-surface: var(--surface-sage); --preview-border: var(--border-sage); --preview-accent: var(--accent-sage); }
.preview-stat-lavender { --preview-surface: var(--surface-lavender); --preview-border: var(--border-lavender); --preview-accent: var(--accent-lavender); }
.login-preview-activity { padding: 0 10px 10px; }
.login-preview-title {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 3px 6px;
}
.login-preview-title > span { line-height: 1.25; }
.login-preview-title strong { display: block; color: #334155; font-size: 9px; }
.login-preview-title small { display: block; margin-top: 2px; color: #8493a6; font-size: 7px; }
.login-preview-title > i { color: var(--accent-blue); font-size: 7px; font-style: normal; font-weight: 700; }
.login-preview-row {
    display: grid; grid-template-columns: 28px minmax(0, 1fr) 76px; align-items: center;
    gap: 8px; padding: 7px 4px; border-top: 1px solid #edf1f5;
}
.preview-avatar {
    width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; font-size: 7px; font-weight: 850;
}
.preview-avatar-sage { background: var(--surface-sage-strong); color: var(--accent-sage); }
.preview-avatar-lavender { background: var(--surface-lavender-strong); color: var(--accent-lavender); }
.preview-avatar-sand { background: var(--surface-sand-strong); color: var(--accent-sand); }
.login-preview-row > span:nth-child(2) { min-width: 0; line-height: 1.22; }
.login-preview-row > span:nth-child(2) strong { display: block; color: #3c4a5d; font-size: 8px; }
.login-preview-row > span:nth-child(2) small {
    display: block; overflow: hidden; margin-top: 2px; color: #8493a6;
    font-size: 7px; text-overflow: ellipsis; white-space: nowrap;
}
.login-preview-row > i {
    height: 4px; overflow: hidden; border-radius: 999px; background: #e8edf3;
}
.login-preview-row > i span {
    display: block; width: var(--preview-width); height: 100%; border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-blue), #8798b3);
    transform-origin: left; animation: login-preview-load 2.8s .9s cubic-bezier(.2,.75,.25,1) both;
}
.login-preview-chip {
    position: absolute; z-index: 3; display: grid; grid-template-columns: 30px auto;
    align-items: center; gap: 1px 8px; min-width: 145px; padding: 9px 11px;
    border: 1px solid rgba(255,255,255,.7); border-radius: 12px;
    background: rgba(255,255,255,.94); color: var(--ink);
    box-shadow: 0 13px 32px rgba(2,10,25,.2); backdrop-filter: blur(12px);
}
.login-preview-chip > span {
    grid-row: span 2; width: 30px; height: 30px; display: inline-flex;
    align-items: center; justify-content: center; border-radius: 9px;
    background: var(--surface-sage-strong); color: var(--accent-sage); font-size: 12px; font-weight: 850;
}
.login-preview-chip strong { font-size: 9px; line-height: 1.2; }
.login-preview-chip small { color: var(--muted); font-size: 7px; }
.login-preview-chip-top { top: -25px; right: -72px; animation: login-chip-float 5.4s ease-in-out infinite; }
.login-preview-chip-bottom { bottom: -18px; left: -76px; animation: login-chip-float 5.8s -2.6s ease-in-out infinite reverse; }
.login-preview-chip-bottom > span { background: var(--surface-lavender-strong); color: var(--accent-lavender); }

.login-showcase-footer {
    position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
    gap: 14px; padding-top: 14px; color: #8fa9c7; font-size: 9px;
    animation: login-rise .7s .5s cubic-bezier(.2,.75,.25,1) both;
}
.login-showcase-footer span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.login-showcase-footer i { width: 6px; height: 6px; border-radius: 50%; background: #8eb59a; box-shadow: 0 0 0 4px rgba(142,181,154,.1); }

.login-access {
    position: relative; display: flex; min-width: 0; align-items: flex-start; justify-content: center;
    padding: clamp(38px, 5vw, 66px); overflow-x: hidden; overflow-y: auto;
    scrollbar-color: #a9bfd5 transparent; scrollbar-width: thin; scrollbar-gutter: stable;
    background:
        radial-gradient(circle at 100% 0, rgba(233,226,240,.6), transparent 35%),
        linear-gradient(150deg, rgba(255,255,255,.98), rgba(249,250,251,.96));
}
.login-access::-webkit-scrollbar { width: 8px; }
.login-access::-webkit-scrollbar-track { background: transparent; }
.login-access::-webkit-scrollbar-thumb {
    border: 2px solid transparent; border-radius: 999px; background: #a9bfd5; background-clip: padding-box;
}
.login-access::before {
    position: absolute; top: -70px; right: -70px; width: 180px; height: 180px;
    border: 1px solid var(--border-lavender); border-radius: 50%; content: ""; opacity: .48;
    box-shadow: 0 0 0 42px rgba(222,213,231,.14), 0 0 0 84px rgba(222,213,231,.08);
}
.login-card {
    position: relative; z-index: 2; width: 100%; max-width: 470px; margin: auto 0;
    flex: 0 0 auto;
    animation: login-card-enter .82s .18s cubic-bezier(.2,.75,.25,1) both;
}
.login-card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.login-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.login-logo {
    width: 50px; height: 50px; flex: 0 0 50px; display: block; object-fit: cover;
    border: 1px solid var(--border-blue); border-radius: 14px; background: #fff;
    box-shadow: 0 9px 22px rgba(32,56,100,.13);
}
.login-brand > span { min-width: 0; line-height: 1.18; }
.login-title { display: block; color: var(--brand); font-size: 20px; letter-spacing: -.025em; }
.login-brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.login-secure-pill {
    display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 6px 9px;
    border: 1px solid var(--border-sage); border-radius: 999px;
    background: var(--surface-sage); color: var(--accent-sage); font-size: 9px; font-weight: 750;
}
.login-secure-pill svg {
    width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.login-welcome { margin: 24px 0 25px; }
.login-welcome > p {
    margin: 0 0 7px; color: var(--accent-lavender); font-size: 11px; font-weight: 850;
    letter-spacing: .08em; text-transform: uppercase;
}
.login-welcome h2 {
    margin: 0; color: var(--ink); font-size: clamp(27px, 3vw, 34px); letter-spacing: -.04em; line-height: 1.12;
}
.login-welcome > span { display: block; margin-top: 9px; color: var(--muted); font-size: 14px; }
.login-alert { padding: 11px 13px; border-radius: 10px; font-size: 13px; }

.login-slack-option { margin-bottom: 2px; }
.slack-btn {
    display: grid; grid-template-columns: 25px minmax(0, 1fr) 18px; align-items: center;
    gap: 11px; width: 100%; min-height: 50px; padding: 11px 14px;
    border: 1px solid #ccd7e4; border-radius: 11px; background: #fff; color: var(--ink);
    box-shadow: 0 3px 9px rgba(32,56,100,.04); font-size: 14px; font-weight: 700;
    text-align: center; text-decoration: none; transition: border-color .18s, box-shadow .18s, transform .18s;
}
.slack-btn:hover {
    border-color: var(--border-lavender); background: #fff;
    box-shadow: 0 10px 24px rgba(32,56,100,.1); transform: translateY(-2px);
}
.slack-btn:focus-visible { outline: 3px solid rgba(109,95,128,.2); outline-offset: 2px; }
.slack-mark { width: 25px; height: 25px; display: block; }
.login-button-arrow {
    width: 18px; height: 18px; stroke: var(--accent-blue); stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round; transition: transform .18s;
}
.slack-btn:hover .login-button-arrow { transform: translateX(3px); }
.login-hint { margin: 9px 0 15px; color: var(--muted); font-size: 11px; text-align: center; }
.login-mobile-slack-note { display: none; }
.or { display: flex; align-items: center; gap: 12px; margin: 0 0 17px; color: #8795a7; }
.or::before, .or::after { height: 1px; flex: 1; background: #e3e8ee; content: ""; }
.or span { font-size: 9px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.login-method-label {
    margin: 0 0 11px; color: var(--muted); font-size: 10px; font-weight: 800;
    letter-spacing: .055em; text-transform: uppercase;
}

.login-form { display: flex; flex-direction: column; gap: 15px; }
.login-form label { display: flex; flex-direction: column; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 700; }
.login-input-shell { position: relative; display: block; }
.login-input-shell > svg {
    position: absolute; top: 50%; left: 14px; z-index: 1; width: 18px; height: 18px;
    stroke: #7b8ca2; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
    transform: translateY(-50%); pointer-events: none; transition: stroke .18s;
}
.login-form input {
    width: 100%; min-height: 50px; padding: 12px 14px 12px 43px;
    border: 1px solid #ccd7e4; border-radius: 11px; background: rgba(255,255,255,.92);
    color: var(--ink); font: inherit; font-size: 15px;
    box-shadow: 0 2px 6px rgba(32,56,100,.025); transition: border-color .18s, box-shadow .18s, background .18s;
}
.login-form input::placeholder { color: #9aa7b7; }
.login-form input:hover { border-color: #b9c9da; background: #fff; }
.login-form input:focus {
    border-color: var(--accent-blue); outline: none; background: #fff;
    box-shadow: 0 0 0 4px rgba(69,106,140,.11), 0 6px 18px rgba(32,56,100,.06);
}
.login-input-shell:focus-within > svg { stroke: var(--accent-blue); }
.login-password-shell input { padding-right: 66px; }
.login-password-toggle {
    position: absolute; top: 50%; right: 8px; z-index: 2; display: none; min-width: 49px; padding: 7px 8px;
    border: 0; border-radius: 7px; background: transparent; color: var(--accent-blue);
    font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; transform: translateY(-50%);
}
.login-js .login-password-toggle { display: block; }
.login-password-toggle:hover { background: var(--surface-blue); }
.login-password-toggle:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 1px; }
.login-submit {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 51px;
    margin-top: 3px; border-radius: 11px; color: #fff;
    background: linear-gradient(110deg, #203864 0%, #294b7d 62%, #355f91 100%);
    box-shadow: 0 12px 26px rgba(32,56,100,.2);
    transition: box-shadow .18s, transform .18s, filter .18s;
}
.login-submit svg {
    width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.9;
    stroke-linecap: round; stroke-linejoin: round; transition: transform .18s;
}
.login-submit:hover {
    background: linear-gradient(110deg, #142a50 0%, #203f6c 62%, #2b537f 100%);
    box-shadow: 0 16px 32px rgba(32,56,100,.26); transform: translateY(-2px);
}
.login-submit:hover svg { transform: translateX(3px); }
.login-submit:active { transform: translateY(0); }
.login-submit:focus-visible { outline: 3px solid rgba(32,56,100,.25); outline-offset: 3px; }

.login-onboarding {
    position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center; gap: 5px 12px; margin-top: 24px; padding: 14px;
    overflow: hidden; border: 1px solid #a9bfd5; border-radius: 14px;
    background:
        radial-gradient(circle at 95% 0, rgba(222,213,231,.82), transparent 40%),
        linear-gradient(135deg, #eaf2fa, #f6f3f8);
    box-shadow: 0 10px 24px rgba(32,56,100,.1), inset 3px 0 #456a8c;
}
.login-onboarding::after {
    position: absolute; top: -30px; right: -28px; width: 90px; height: 90px;
    border: 1px solid rgba(69,106,140,.1); border-radius: 50%; content: "";
    box-shadow: 0 0 0 20px rgba(69,106,140,.035);
}
.login-onboarding-icon {
    position: relative; z-index: 1; grid-row: span 2; width: 44px; height: 44px; display: inline-flex;
    align-items: center; justify-content: center; border-radius: 12px;
    background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(32,56,100,.2);
}
.login-onboarding-icon svg {
    width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.65;
    stroke-linecap: round; stroke-linejoin: round;
}
.login-onboarding-copy { position: relative; z-index: 1; min-width: 0; line-height: 1.24; }
.login-onboarding-badge {
    display: inline-flex; margin-bottom: 5px; padding: 3px 6px; border-radius: 999px;
    background: rgba(32,56,100,.1); color: var(--brand); font-size: 8px; font-weight: 900;
    letter-spacing: .07em; text-transform: uppercase;
}
.login-onboarding-copy strong { display: block; color: var(--brand); font-size: 12px; }
.login-onboarding-copy small { display: block; margin-top: 4px; color: #64768d; font-size: 9px; line-height: 1.4; }
.login-guide-trigger,
.login-install-fallback {
    position: relative; z-index: 1; grid-column: 3; grid-row: 1 / span 2;
    align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 8px 11px;
    border: 1px solid var(--brand); border-radius: 9px; background: var(--brand); color: #fff;
    font: inherit; font-size: 9px; font-weight: 800; text-decoration: none; white-space: nowrap;
    box-shadow: 0 8px 18px rgba(32,56,100,.17);
    transition: border-color .18s, background .18s, box-shadow .18s, transform .18s;
}
.login-guide-trigger { display: none; cursor: pointer; }
.login-js .login-guide-trigger { display: inline-flex; }
.login-install-fallback { display: inline-flex; }
.login-js .login-install-fallback { display: none; }
.login-guide-trigger svg {
    width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.9;
    stroke-linecap: round; stroke-linejoin: round; transition: transform .18s;
}
.login-guide-trigger:hover,
.login-install-fallback:hover {
    border-color: #142a50; background: #142a50; box-shadow: 0 11px 22px rgba(32,56,100,.23);
    transform: translateY(-1px);
}
.login-guide-trigger:hover svg { transform: translateX(2px); }
.login-guide-trigger:focus-visible,
.login-install-fallback:focus-visible { outline: 3px solid rgba(69,106,140,.16); outline-offset: 2px; }
.login-install-unavailable { border-color: #cbd8e4; background: #f5f7f9; color: var(--muted); box-shadow: none; cursor: default; }
.login-install-unavailable:hover { border-color: #cbd8e4; background: #f5f7f9; box-shadow: none; transform: none; }

.login-card-footer {
    display: grid; gap: 5px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e7ebf0;
    color: var(--muted); text-align: center;
}
.login-card-footer > span {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    color: #607188; font-size: 10px; font-weight: 700;
}
.login-card-footer svg {
    width: 14px; height: 14px; stroke: var(--accent-sage); stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.login-card-footer small { font-size: 10px; }

.install-guide-open { overflow: hidden; }
.install-guide {
    width: min(820px, calc(100% - 40px)); max-width: none;
    max-height: calc(100svh - 40px); margin: auto; padding: 0; overflow: hidden;
    border: 1px solid rgba(203,216,230,.92); border-radius: 24px;
    background: #fff; color: var(--ink); font-family: inherit;
    box-shadow: 0 34px 90px rgba(10,26,50,.3), 0 8px 24px rgba(10,26,50,.12);
}
.install-guide:not([open]) { display: none; }
.install-guide[open] { animation: install-guide-enter .34s cubic-bezier(.2,.75,.25,1) both; }
.install-guide::backdrop {
    background: rgba(10,24,47,.67); backdrop-filter: blur(9px);
    animation: install-guide-backdrop-enter .28s ease-out both;
}
.install-guide-panel {
    display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: calc(100svh - 40px); overflow: hidden;
    background:
        radial-gradient(circle at 96% 2%, rgba(233,226,240,.68), transparent 28%),
        linear-gradient(155deg, #fff 0%, #fbfcfe 66%, #f5f8fb 100%);
}
.install-guide-header {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 20px 22px; border-bottom: 1px solid #e7edf3; background: rgba(255,255,255,.88);
}
.install-guide-heading { display: flex; min-width: 0; align-items: center; gap: 12px; }
.install-guide-logo {
    width: 45px; height: 45px; flex: 0 0 45px; overflow: hidden;
    border: 1px solid var(--border-blue); border-radius: 13px; background: #fff;
    box-shadow: 0 8px 20px rgba(32,56,100,.11);
}
.install-guide-logo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.install-guide-heading > span:last-child { min-width: 0; line-height: 1.2; }
.install-guide-heading small {
    display: block; margin-bottom: 4px; color: var(--accent-lavender); font-size: 9px;
    font-weight: 850; letter-spacing: .07em; text-transform: uppercase;
}
.install-guide-heading strong {
    display: block; overflow: hidden; color: var(--brand); font-size: 20px;
    letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap;
}
.install-guide-close {
    width: 38px; height: 38px; flex: 0 0 38px; display: inline-flex; align-items: center;
    justify-content: center; border: 1px solid #dce5ee; border-radius: 10px;
    background: #fff; color: #61738a; cursor: pointer; transition: background .18s, color .18s, transform .18s;
}
.install-guide-close:hover { background: var(--surface-blue); color: var(--brand); transform: rotate(4deg); }
.install-guide-close:focus-visible { outline: 3px solid rgba(69,106,140,.17); outline-offset: 2px; }
.install-guide-close svg {
    width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.install-guide-body { min-height: 0; overflow-y: auto; padding: 22px; }
.install-guide-intro {
    display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center;
    gap: 13px; padding: 15px 16px; border: 1px solid var(--border-sage); border-radius: 14px;
    background: linear-gradient(135deg, var(--surface-sage), rgba(246,249,247,.94));
}
.install-guide-slack-mark {
    width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 13px; background: #fff; box-shadow: 0 7px 17px rgba(32,56,100,.08);
}
.install-guide-slack-mark svg { width: 27px; height: 27px; display: block; }
.install-guide-intro-copy { min-width: 0; }
.install-guide-intro strong { display: block; color: #365244; font-size: 14px; }
.install-guide-intro p { margin: 4px 0 0; color: #60756a; font-size: 12px; line-height: 1.5; }
.install-guide-time {
    align-self: start; padding: 6px 9px; border: 1px solid rgba(82,112,93,.16);
    border-radius: 999px; background: #fff; color: var(--accent-sage); font-size: 9px;
    font-weight: 800; white-space: nowrap;
}
.install-guide-steps {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px;
    margin: 16px 0 0; padding: 0; list-style: none;
}
.install-guide-steps li {
    display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; min-width: 0;
    padding: 14px; border: 1px solid #e1e8ef; border-radius: 13px; background: rgba(255,255,255,.88);
    box-shadow: 0 4px 12px rgba(32,56,100,.035);
}
.install-guide-step-number {
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: var(--surface-blue); color: var(--accent-blue);
    font-size: 10px; font-weight: 900; letter-spacing: .04em;
}
.install-guide-steps li:nth-child(2) .install-guide-step-number { background: var(--surface-lavender); color: var(--accent-lavender); }
.install-guide-steps li:nth-child(3) .install-guide-step-number { background: var(--surface-sand); color: var(--accent-sand); }
.install-guide-steps li:nth-child(4) .install-guide-step-number { background: var(--surface-sage); color: var(--accent-sage); }
.install-guide-steps li > div { min-width: 0; }
.install-guide-steps strong { display: block; color: #35465b; font-size: 13px; line-height: 1.3; }
.install-guide-steps p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.install-guide-steps em,
.install-guide-member-note em { color: var(--accent-blue); font-style: normal; font-weight: 750; }
.install-guide-slack-setup {
    margin-top: 14px; padding: 16px; border: 1px solid #afc4d8; border-radius: 15px;
    background:
        radial-gradient(circle at 100% 0, rgba(222,213,231,.48), transparent 32%),
        linear-gradient(145deg, #edf4fa, #fafbfd);
    box-shadow: inset 3px 0 #456a8c;
}
.install-guide-slack-header {
    display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 12px;
}
.install-guide-slack-header > span {
    width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 11px; background: var(--brand); color: #fff; font-size: 20px; font-weight: 750;
    box-shadow: 0 8px 18px rgba(32,56,100,.17);
}
.install-guide-slack-header div { min-width: 0; }
.install-guide-slack-header small {
    display: block; margin-bottom: 3px; color: var(--accent-blue); font-size: 8px;
    font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
}
.install-guide-slack-header h3 {
    margin: 0; color: var(--brand); font-size: 16px; letter-spacing: -.02em; line-height: 1.25;
}
.install-guide-slack-header p { margin: 4px 0 0; color: #64768d; font-size: 11px; line-height: 1.45; }
.install-guide-command-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 14px;
}
.install-command-card {
    min-width: 0; padding: 13px; border: 1px solid #d8e3ed; border-radius: 12px;
    background: rgba(255,255,255,.92); box-shadow: 0 5px 14px rgba(32,56,100,.04);
}
.install-command-label {
    display: block; color: #4d6078; font-size: 10px; font-weight: 850;
    letter-spacing: .025em; text-transform: uppercase;
}
.install-command-box {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: 9px; padding: 9px 9px 9px 12px; border: 1px solid #2d4c74;
    border-radius: 9px; background: linear-gradient(120deg, #142a50, #203f6c);
    box-shadow: 0 8px 18px rgba(20,42,80,.16);
}
.install-command-box code {
    overflow: hidden; color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap;
}
.install-command-box button {
    min-width: 52px; min-height: 29px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.22);
    border-radius: 7px; background: rgba(255,255,255,.12); color: #e8f1fb;
    font: inherit; font-size: 9px; font-weight: 800; cursor: pointer;
    transition: background .18s, border-color .18s, transform .18s;
}
.install-command-box button:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.2); transform: translateY(-1px); }
.install-command-box button:focus-visible { outline: 3px solid rgba(147,197,253,.35); outline-offset: 2px; }
.install-command-box button.is-copied { border-color: rgba(187,247,208,.45); background: rgba(82,112,93,.65); color: #f0fdf4; }
.install-command-box button.is-copy-error { border-color: rgba(254,202,202,.48); background: rgba(153,27,27,.5); color: #fff1f2; }
.install-command-card ol { margin: 11px 0 0; padding: 0 0 0 18px; color: #65768b; }
.install-command-card li { padding-left: 2px; font-size: 10px; line-height: 1.5; }
.install-command-card li + li { margin-top: 5px; }
.install-command-card li::marker { color: var(--accent-blue); font-weight: 800; }
.install-command-card strong { color: #40536b; }
.install-command-help {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; margin-top: 11px;
    padding: 10px 12px; border: 1px solid var(--border-sand); border-radius: 10px;
    background: var(--surface-sand); color: #756548; font-size: 10px; line-height: 1.5;
}
.install-command-help strong { color: var(--accent-sand); white-space: nowrap; }
.install-guide-member-note {
    display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center;
    gap: 12px; margin-top: 12px; padding: 13px 15px; border: 1px solid var(--border-lavender);
    border-radius: 13px; background: var(--surface-lavender);
}
.install-guide-member-note > span:first-child {
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 11px; background: #fff; color: var(--accent-lavender);
}
.install-guide-member-note svg {
    width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}
.install-guide-member-note strong { display: block; color: #51465f; font-size: 13px; }
.install-guide-member-note p { margin: 4px 0 0; color: #766b80; font-size: 11px; line-height: 1.5; }
.install-guide-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 16px 22px; border-top: 1px solid #e3eaf1; background: rgba(255,255,255,.94);
}
.install-guide-permission {
    display: inline-flex; max-width: 310px; align-items: center; gap: 8px;
    color: var(--muted); font-size: 10px; line-height: 1.4;
}
.install-guide-permission svg {
    width: 16px; height: 16px; flex: 0 0 16px; stroke: var(--accent-sage); stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.install-guide-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.install-guide-later,
.install-guide-primary,
.install-guide-disabled {
    min-height: 41px; display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 10px 14px; border-radius: 10px; font: inherit;
    font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.install-guide-later {
    border: 1px solid #d9e2eb; background: #fff; color: #607188; cursor: pointer;
}
.install-guide-later:hover { background: var(--surface-blue); color: var(--brand); }
.install-guide-primary {
    border: 1px solid var(--brand); background: linear-gradient(110deg, #203864, #315681);
    color: #fff; box-shadow: 0 9px 20px rgba(32,56,100,.18); transition: box-shadow .18s, transform .18s;
}
.install-guide-primary:hover { box-shadow: 0 13px 27px rgba(32,56,100,.24); transform: translateY(-1px); }
.install-guide-primary svg {
    width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.9;
    stroke-linecap: round; stroke-linejoin: round; transition: transform .18s;
}
.install-guide-primary:hover svg { transform: translateX(2px); }
.install-guide-later:focus-visible,
.install-guide-primary:focus-visible { outline: 3px solid rgba(69,106,140,.18); outline-offset: 2px; }
.install-guide-disabled {
    border: 1px solid #dfe5eb; background: #f3f5f7; color: #8793a2; cursor: not-allowed;
}

@keyframes login-shell-enter {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes login-card-enter {
    from { opacity: 0; transform: translateX(18px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes login-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes login-orb-drift {
    from { transform: translate3d(-8px, -5px, 0) scale(.96); }
    to { transform: translate3d(18px, 14px, 0) scale(1.06); }
}
@keyframes login-grid-drift {
    from { transform: rotate(-8deg) translate3d(0, 0, 0) scale(1.16); }
    to { transform: rotate(-8deg) translate3d(54px, 54px, 0) scale(1.16); }
}
@keyframes login-preview-float {
    0%, 100% { transform: rotateX(1.5deg) rotateY(-2.5deg) translateY(0); }
    50% { transform: rotateX(1deg) rotateY(-1.5deg) translateY(-7px); }
}
@keyframes login-chip-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
@keyframes login-preview-load {
    from { transform: scaleX(.18); opacity: .55; }
    to { transform: scaleX(1); opacity: 1; }
}
@keyframes login-live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(111,154,124,.26); }
    70%, 100% { box-shadow: 0 0 0 6px rgba(111,154,124,0); }
}
@keyframes install-guide-enter {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes install-guide-backdrop-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 1100px) {
    .login-shell { grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr); }
    .login-showcase { padding-right: 36px; padding-left: 36px; }
    .login-preview-stage { width: 87%; }
    .login-preview-chip-top { right: -48px; }
    .login-preview-chip-bottom { left: -48px; }
}

@media (max-width: 900px) {
    .login-body { align-items: flex-start; }
    .login-shell {
        grid-template-columns: 1fr; width: min(650px, 100%); min-height: 0; max-height: none;
    }
    .login-showcase { min-height: 330px; padding: 30px 34px; }
    .login-showcase-copy { margin-top: 32px; }
    .login-showcase-copy h1 { font-size: 43px; }
    .login-showcase-copy > p:last-of-type { max-width: 560px; margin-top: 15px; }
    .login-benefits { margin-top: 17px; }
    .login-preview-stage,
    .login-showcase-footer { display: none; }
    .login-access { padding: 46px 52px 50px; overflow: visible; scrollbar-gutter: auto; }
    .login-card { margin: 0; }
    .install-guide-steps { grid-template-columns: 1fr; }
    .install-guide-command-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .login-body { padding: 0; background: #fff; }
    .login-body::before,
    .login-ambient { display: none; }
    .login-shell { width: 100%; min-height: 100svh; border: 0; border-radius: 0; box-shadow: none; }
    .login-showcase { min-height: 224px; padding: 24px 22px; }
    .login-showcase-mark { width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; }
    .login-showcase-brand strong { font-size: 16px; }
    .login-showcase-brand small { font-size: 10px; }
    .login-showcase-copy { margin-top: 28px; }
    .login-showcase-kicker { margin-bottom: 10px; font-size: 9px; }
    .login-showcase-copy h1 { font-size: clamp(34px, 10vw, 42px); }
    .login-showcase-copy > p:last-of-type,
    .login-benefits { display: none; }
    .login-access { align-items: flex-start; padding: 30px 22px 38px; }
    .login-access::before { display: none; }
    .login-card-header { gap: 10px; }
    .login-logo { width: 44px; height: 44px; flex-basis: 44px; border-radius: 12px; }
    .login-title { font-size: 18px; }
    .login-secure-pill { padding: 5px 7px; font-size: 8px; }
    .login-welcome { margin: 24px 0 22px; }
    .login-welcome h2 { font-size: 28px; }
    .login-onboarding { grid-template-columns: 44px minmax(0, 1fr); padding: 13px; }
    .login-guide-trigger,
    .login-install-fallback {
        grid-column: 1 / -1; grid-row: auto; width: 100%; margin-top: 7px;
    }
    .install-guide { width: calc(100% - 16px); max-height: calc(100svh - 16px); border-radius: 18px; }
    .install-guide-panel { max-height: calc(100svh - 16px); }
    .install-guide-header { padding: 16px; }
    .install-guide-heading strong { font-size: 17px; }
    .install-guide-logo { width: 41px; height: 41px; flex-basis: 41px; border-radius: 11px; }
    .install-guide-body { padding: 15px; }
    .install-guide-intro { grid-template-columns: 42px minmax(0, 1fr); padding: 13px; }
    .install-guide-slack-mark { width: 42px; height: 42px; }
    .install-guide-time { grid-column: 2; justify-self: start; margin-top: 3px; }
    .install-guide-steps li { padding: 12px; }
    .install-guide-slack-setup { padding: 13px; }
    .install-guide-command-grid { gap: 9px; }
    .install-command-help { grid-template-columns: 1fr; }
    .install-guide-footer { align-items: stretch; flex-direction: column; padding: 14px 16px; }
    .install-guide-permission { max-width: none; }
    .install-guide-actions { justify-content: stretch; }
    .install-guide-actions > * { flex: 1; }
}

@media (max-width: 380px) {
    .login-secure-pill { display: none; }
    .login-access { padding-right: 18px; padding-left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .login-body *,
    .login-body *::before,
    .login-body *::after {
        scroll-behavior: auto !important; animation-duration: .01ms !important;
        animation-iteration-count: 1 !important; transition-duration: .01ms !important;
    }
    .install-guide::backdrop { animation: none !important; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
    .app { flex-direction: column; }
    .sidebar {
        z-index: 40; width: 100%; height: auto; position: sticky; top: 0;
        display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center; gap: 12px 16px; padding: 12px 16px;
        overflow: visible; border-right: 0; border-bottom: 1px solid rgba(147,197,253,.16);
        box-shadow: 0 8px 24px rgba(3,15,34,.18);
    }
    .sidebar-brand { grid-column: 1; grid-row: 1; width: max-content; margin: 0; padding: 0; justify-content: flex-start; }
    .sidebar-brand::after { display: none; }
    .sidebar-brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; }
    .sidebar-brand-mark svg { width: 21px; height: 21px; }
    .sidebar-menu-toggle {
        grid-column: 2; grid-row: 1; min-height: 38px; display: inline-flex;
        align-items: center; justify-content: center; gap: 8px; padding: 7px 10px;
        border: 1px solid rgba(147,197,253,.25); border-radius: 9px;
        background: rgba(255,255,255,.07); color: #f8fafc; font: inherit;
        font-size: 12px; font-weight: 750; cursor: pointer;
    }
    .sidebar-menu-toggle:focus-visible {
        outline: 3px solid rgba(147,197,253,.62); outline-offset: 2px;
    }
    .sidebar-menu-icon { width: 17px; display: grid; gap: 3px; }
    .sidebar-menu-icon i {
        width: 17px; height: 1.5px; display: block; border-radius: 999px;
        background: currentColor; transition: transform .16s, opacity .16s;
    }
    .mobile-nav-open .sidebar-menu-icon i:first-child { transform: translateY(4.5px) rotate(45deg); }
    .mobile-nav-open .sidebar-menu-icon i:nth-child(2) { opacity: 0; }
    .mobile-nav-open .sidebar-menu-icon i:last-child { transform: translateY(-4.5px) rotate(-45deg); }
    .sidebar-profile-card {
        grid-column: 1 / -1; grid-row: 2; display: none; margin: 0;
    }
    .mobile-nav-open .sidebar-profile-card { display: flex; }
    .sidebar-nav {
        grid-column: 1 / -1; grid-row: 3; flex-direction: row; gap: 8px;
        overflow-x: auto; padding: 1px 1px 3px; scrollbar-width: none;
    }
    .mobile-nav-ready .sidebar-nav { display: none; }
    .mobile-nav-ready.mobile-nav-open .sidebar-nav {
        max-height: calc(100svh - 148px); display: flex; flex-direction: column;
        gap: 13px; overflow-x: hidden; overflow-y: auto; padding: 12px 1px 4px;
        border-top: 1px solid rgba(147,197,253,.16);
    }
    .sidebar-nav::-webkit-scrollbar { display: none; }
    .sidebar-nav-section { flex: 0 0 auto; }
    .mobile-nav-open .sidebar-nav-section { width: 100%; }
    .sidebar-nav-section + .sidebar-nav-section { margin-top: 0; }
    .sidebar-nav-label { display: none; }
    .sidebar-nav-list { flex-direction: row; }
    .mobile-nav-open .sidebar-nav-label {
        display: block; margin: 0 5px 6px; color: #a9bfdd;
    }
    .mobile-nav-open .sidebar-nav-list {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
    }
    .nav-link {
        grid-template-columns: 30px auto; min-width: max-content; min-height: 44px;
        gap: 8px; padding: 6px 10px;
    }
    .mobile-nav-open .nav-link { min-width: 0; }
    .nav-link::before { display: none; }
    .nav-link .ic { width: 30px; height: 30px; }
    .nav-link .ic svg { width: 16px; height: 16px; }
    .nav-link-copy small { display: none; }
    .nav-link:hover { transform: none; }
    .sidebar-foot { grid-column: 3; grid-row: 1; margin: 0; padding: 0; border: 0; }
    .sidebar-logout-form { grid-column: auto; margin: 0; padding: 0; border: 0; }
    .sidebar-logout {
        width: auto; min-height: 38px; grid-template-columns: 24px auto; gap: 7px;
        padding: 5px 10px 5px 7px; border-radius: 9px;
    }
    .sidebar-logout-icon { width: 24px; height: 24px; border-radius: 7px; }
    .sidebar-logout-copy strong { font-size: 11px; }
    .sidebar-logout-copy small { display: none; }
    .content.two-col { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .sidebar { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px 8px; padding: 10px 12px; }
    .sidebar-brand-copy strong { font-size: 16px; }
    .sidebar-menu-toggle { width: 38px; padding: 7px; }
    .sidebar-menu-toggle > span:last-child {
        position: absolute; width: 1px; height: 1px; overflow: hidden;
        clip: rect(0 0 0 0);
    }
    .sidebar-logout { width: 38px; grid-template-columns: 24px; padding: 5px 6px; }
    .sidebar-logout-copy {
        position: absolute; width: 1px; height: 1px; overflow: hidden;
        clip: rect(0 0 0 0);
    }
    .nav-link { font-size: 13px; }
}

/* ============ PARTICIPANT PICKER ============ */
.btn-ghost {
    min-height: 42px; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line, #e2e8f0);
    color: var(--brand); font-size: 15px; font-weight: 650; text-decoration: none;
}
.btn-ghost:hover { background: #f8fafc; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > input[type="text"],
.row > select {
    flex: 1 1 280px; min-height: 48px; padding: 12px 14px; border-radius: 9px;
    border: 1px solid var(--line, #e2e8f0); color: var(--ink); font: inherit;
    font-size: 16px; background: #fff;
}

.picker { list-style: none; margin: 12px 0 18px; padding: 0; }
.picker li + li { border-top: 1px solid var(--line, #e2e8f0); }
.picker label {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 9px; cursor: pointer; border-radius: 9px; font-size: 15px;
}
.picker label:hover { background: #f8fafc; }
.picker input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--brand); }
.picker .name { font-weight: 600; }
/* Push the email away from the name and let the guest pill sit at the far right. */
.picker .muted { margin-left: auto; font-size: 14px; }
.avatar-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

/* ============ TEAM FORM ============ */
.panel.narrow { width: 100%; max-width: none; }
.field { display: block; margin-bottom: 19px; }
.field > span { display: block; font-size: 15px; font-weight: 650; margin-bottom: 7px; }
.field > span em { font-weight: 400; font-style: normal; }
.field input:not([type="checkbox"]),
.field select,
.field textarea {
    width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 9px;
    border: 1px solid var(--line, #e2e8f0); background: #fff;
    color: var(--ink); font: inherit; font-size: 16px;
}
.field input:not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus { outline: 3px solid rgba(32,56,100,.16); border-color: var(--brand); }
.field.checkbox { display: flex; align-items: center; gap: 10px; }
.field.checkbox input { width: 20px; height: 20px; accent-color: var(--brand); }
.field.checkbox span { margin: 0; font-weight: 450; font-size: 15px; }

.panel.danger { border: 1px solid #fecaca; margin-top: 20px; }
.panel.danger h2 { color: #b91c1c; font-size: 16px; margin-top: 0; }
.btn-danger {
    min-height: 44px; padding: 10px 15px; border: 1px solid #fecaca; border-radius: 8px;
    background: #fff; color: #b91c1c; font-size: 15px; font-weight: 650; cursor: pointer;
}
.btn-danger:hover { background: #fee2e2; }

/* ============ TEAM CREATE / EDIT ============ */
.team-form-content { max-width: none; }
.team-form-appbar { padding-top: 18px; padding-bottom: 18px; }
.team-form-eyebrow,
.team-form-section-kicker {
    margin: 0 0 4px; color: var(--brand); font-size: 12px; font-weight: 800;
    letter-spacing: .075em; text-transform: uppercase;
}
.team-form-appbar h1 { font-size: 24px; }
.team-form-back { display: inline-flex; align-items: center; gap: 7px; background: #fff; white-space: nowrap; }
.team-form-layout {
    display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(340px, .65fr);
    gap: 24px; align-items: start;
}
.team-form-main { display: grid; min-width: 0; gap: 18px; }
.team-form-card { margin: 0; padding: 0; overflow: hidden; border-radius: 14px; }
.team-form-card-heading {
    display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center;
    gap: 13px; padding: 20px 22px; border-bottom: 1px solid #dbeafe;
    background: linear-gradient(135deg, #f8fbff 0%, #eff6ff 100%);
}
.team-form-heading-icon {
    width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; background: #dbeafe; color: #1d4ed8;
}
.team-form-heading-icon svg {
    width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}
.team-form-card-heading > span:last-child { min-width: 0; }
.team-form-card-heading small {
    display: block; margin-bottom: 3px; color: #526b8e; font-size: 12px;
    font-weight: 800; letter-spacing: .065em; text-transform: uppercase;
}
.team-form-card-heading h2 { margin: 0; font-size: 21px; }
.team-form-card-heading p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.team-editor-form { margin: 0; }
.team-form-fields { display: grid; gap: 24px; padding: 28px 26px; }
.team-form-field { display: block; }
.team-field-label {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 8px; color: var(--ink); font-size: 15px; font-weight: 750;
}
.team-field-label em {
    color: var(--muted); font-size: 12px; font-style: normal; font-weight: 800;
    letter-spacing: .05em; text-transform: uppercase;
}
.team-form-field input,
.team-form-field textarea {
    width: 100%; min-height: 50px; padding: 13px 14px; border: 1px solid #cbd5e1; border-radius: 9px;
    background: #fff; color: var(--ink); font: inherit; font-size: 16px;
    transition: border-color .15s, box-shadow .15s;
}
.team-form-field textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.team-form-field input::placeholder,
.team-form-field textarea::placeholder { color: #94a3b8; }
.team-form-field input:focus,
.team-form-field textarea:focus {
    outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.13);
}
.team-form-field > small { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.team-status-section {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .8fr);
    align-items: center; gap: 22px; padding: 20px 22px; border-top: 1px solid var(--line);
    background: #fbfdff;
}
.team-status-section h3 { font-size: 17px; }
.team-status-section > div > p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.team-status-toggle {
    position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr);
    align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line);
    border-radius: 10px; background: #fff; cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.team-status-toggle:hover { border-color: #bfdbfe; background: #f8fbff; }
.team-status-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.team-toggle-control {
    position: relative; width: 40px; height: 22px; border-radius: 999px;
    background: #cbd5e1; transition: background .15s;
}
.team-toggle-control::after {
    position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
    border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.25);
    content: ""; transition: transform .15s;
}
.team-status-input:checked + .team-toggle-control { background: #2563eb; }
.team-status-input:checked + .team-toggle-control::after { transform: translateX(18px); }
.team-status-input:focus-visible + .team-toggle-control { outline: 3px solid rgba(59,130,246,.25); outline-offset: 2px; }
.team-toggle-copy { min-width: 0; }
.team-toggle-copy strong { display: block; font-size: 14px; }
.team-toggle-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }

.team-form-actions {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px 22px; border-top: 1px solid var(--line); background: #f8fafc;
}
.team-form-actions > div { display: flex; align-items: center; gap: 8px; }
.team-form-submit { min-height: 48px; font-size: 16px; }
.team-form-actions .btn-ghost { background: #fff; font-size: 15px; }
.team-form-actions > small { max-width: 320px; color: var(--muted); font-size: 13px; text-align: right; }

.team-form-rail {
    position: sticky; top: 20px; display: grid; min-width: 0; gap: 14px;
}
.team-form-rail .panel { margin: 0; }
.team-setup-guide,
.team-current-setup { padding: 18px; }
.team-guide-heading {
    display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center;
    gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.team-guide-icon {
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: #e7effa; color: var(--brand);
}
.team-guide-icon svg {
    width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.team-guide-heading small {
    display: block; color: #526b8e; font-size: 12px; font-weight: 800;
    letter-spacing: .055em; text-transform: uppercase;
}
.team-guide-heading h2 { margin: 1px 0 0; font-size: 18px; }
.team-setup-steps { margin: 16px 0 0; padding: 0; list-style: none; }
.team-setup-steps li {
    position: relative; display: grid; grid-template-columns: 29px minmax(0, 1fr);
    gap: 10px; padding-bottom: 17px;
}
.team-setup-steps li:last-child { padding-bottom: 0; }
.team-setup-steps li:not(:last-child)::after {
    position: absolute; top: 29px; bottom: 0; left: 14px; width: 1px;
    background: #dbeafe; content: "";
}
.team-setup-steps li > span {
    position: relative; z-index: 1; width: 29px; height: 29px; display: inline-flex;
    align-items: center; justify-content: center; border: 1px solid var(--line);
    border-radius: 50%; background: #fff; color: var(--muted); font-size: 12px; font-weight: 800;
}
.team-setup-steps li.current > span { border-color: #93c5fd; background: #dbeafe; color: #1d4ed8; }
.team-setup-steps strong { display: block; font-size: 14px; }
.team-setup-steps small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.team-current-setup h2 { margin: 0; font-size: 20px; }
.team-setup-facts { display: grid; margin: 14px 0; padding: 0; border-top: 1px solid var(--line); }
.team-setup-facts > div {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 9px 0; border-bottom: 1px solid var(--line);
}
.team-setup-facts dt { color: var(--muted); font-size: 13px; }
.team-setup-facts dd {
    display: flex; align-items: center; gap: 6px; max-width: 62%; overflow: hidden;
    margin: 0; color: var(--ink); font-size: 13px; font-weight: 750;
    text-align: right; text-overflow: ellipsis; white-space: nowrap;
}
.team-fact-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #94a3b8; }
.team-fact-dot.active { background: #3b82f6; box-shadow: 0 0 0 3px #dbeafe; }
.team-setup-manage { display: block; width: 100%; padding: 10px 12px; text-align: center; font-size: 14px; }

.team-standup-note,
.team-slack-state {
    display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center;
    gap: 10px; padding: 14px;
}
.team-standup-note { border-color: #dbeafe; background: #f8fbff; }
.team-standup-note-icon,
.team-slack-state-icon {
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: #dbeafe; color: #1d4ed8;
}
.team-standup-note-icon svg {
    width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.75;
    stroke-linecap: round; stroke-linejoin: round;
}
.team-standup-note > span:last-child,
.team-slack-state > span:nth-child(2) { min-width: 0; }
.team-standup-note strong,
.team-slack-state strong { display: block; color: var(--brand); font-size: 14px; }
.team-standup-note small,
.team-slack-state small { display: block; margin-top: 3px; color: #526b8e; font-size: 12px; line-height: 1.5; }
.team-slack-state.is-connected { border-color: #bfdbfe; background: #eff6ff; }
.team-slack-state.needs-connection { border-color: var(--line); background: #f8fafc; }
.team-slack-state.needs-connection .team-slack-state-icon { background: #e2e8f0; color: #64748b; font-weight: 800; }
.team-slack-state .btn-ghost { grid-column: 1 / -1; padding: 9px 11px; background: #fff; font-size: 13px; text-align: center; }

.team-danger-card {
    display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center;
    gap: 13px; margin: 0; padding: 16px 18px; border-color: #fecaca; background: #fff;
}
.team-danger-icon {
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: #fee2e2; color: #b91c1c;
}
.team-danger-icon svg {
    width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.75;
    stroke-linecap: round; stroke-linejoin: round;
}
.team-danger-copy { min-width: 0; }
.team-danger-copy h2 { margin: 0; color: #991b1b; font-size: 16px; }
.team-danger-copy p { margin: 3px 0 0; color: #7f1d1d; font-size: 13px; }
.team-danger-card form { margin: 0; }
.team-danger-card .btn-danger { white-space: nowrap; }
.team-form-submit:focus-visible,
.team-form-back:focus-visible,
.team-form-actions a:focus-visible,
.team-setup-manage:focus-visible,
.team-slack-state a:focus-visible {
    outline: 3px solid rgba(32,56,100,.25); outline-offset: 2px;
}

@media (max-width: 1020px) {
    .team-form-layout { grid-template-columns: 1fr; }
    .team-form-rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-setup-guide,
    .team-current-setup { grid-row: span 2; }
}

@media (max-width: 720px) {
    .team-form-appbar { align-items: flex-start; flex-direction: column; }
    .team-form-back { text-align: center; }
    .team-status-section { grid-template-columns: 1fr; }
    .team-form-actions { align-items: flex-start; flex-direction: column; }
    .team-form-actions > small { max-width: none; text-align: left; }
    .team-form-rail { grid-template-columns: 1fr; }
    .team-setup-guide,
    .team-current-setup { grid-row: auto; }
    .team-danger-card { grid-template-columns: 40px minmax(0, 1fr); }
    .team-danger-card form { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
    .team-form-back { width: 100%; justify-content: center; }
    .team-form-card-heading { grid-template-columns: 40px minmax(0, 1fr); padding: 17px 15px; }
    .team-form-heading-icon { width: 40px; height: 40px; }
    .team-form-fields,
    .team-status-section,
    .team-form-actions { padding-right: 15px; padding-left: 15px; }
    .team-form-actions > div { width: 100%; align-items: stretch; flex-direction: column; }
    .team-form-actions .btn-ghost { text-align: center; }
    .team-form-submit { width: 100%; }
    .team-danger-card .btn-danger { width: 100%; }
}

/* ============ WORKSPACE ADMINISTRATION ============ */
.admin-workspaces-content { max-width: none; }
.admin-workspaces-appbar { padding-top: 18px; padding-bottom: 18px; }
.admin-workspaces-eyebrow,
.admin-workspaces-section-kicker {
    margin: 0 0 3px; color: var(--brand); font-size: 10px; font-weight: 800;
    letter-spacing: .075em; text-transform: uppercase;
}
.admin-workspaces-appbar h1 { font-size: 24px; }
.admin-workspaces-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.admin-workspaces-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    color: #fff; text-decoration: none;
}

.admin-workspaces-summary {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px; margin-bottom: 20px;
}
.admin-workspace-summary-card {
    position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr);
    align-items: center; gap: 12px; min-width: 0; padding: 17px 18px;
    overflow: hidden; border: 1px solid var(--line); border-radius: 12px;
    background: var(--panel); box-shadow: 0 1px 2px rgba(15,23,42,.025);
}
.admin-workspace-summary-card::before {
    position: absolute; inset: 0 auto 0 0; width: 3px; content: "";
    background: var(--summary-color, var(--brand));
}
.admin-workspace-summary-icon {
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: var(--summary-bg, #eff6ff);
    color: var(--summary-color, var(--brand));
}
.admin-workspace-summary-icon svg {
    width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.75;
    stroke-linecap: round; stroke-linejoin: round;
}
.admin-workspace-summary-card > span:last-child { min-width: 0; }
.admin-workspace-summary-card strong { display: block; color: var(--ink); font-size: 24px; line-height: 1; }
.admin-workspace-summary-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.admin-workspace-summary-card em {
    display: block; overflow: hidden; margin-top: 2px; color: #526b8e;
    font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap;
}
.admin-workspace-summary-card.total { --summary-color: #203864; --summary-bg: #e7effa; }
.admin-workspace-summary-card.active { --summary-color: #1d4ed8; --summary-bg: #dbeafe; }
.admin-workspace-summary-card.connected { --summary-color: #0369a1; --summary-bg: #e0f2fe; }
.admin-workspace-summary-card.accounts { --summary-color: #1e40af; --summary-bg: #eff6ff; }

.admin-workspaces-notice {
    display: grid; grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center; gap: 12px; margin-bottom: 20px; padding: 13px 15px;
    border: 1px solid #bfdbfe; border-radius: 12px; background: #eff6ff;
}
.admin-workspaces-notice-icon {
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: #dbeafe; color: #1d4ed8; font-size: 14px; font-weight: 850;
}
.admin-workspaces-notice > span:nth-child(2) { min-width: 0; }
.admin-workspaces-notice strong { display: block; color: var(--brand); font-size: 12px; }
.admin-workspaces-notice small { display: block; margin-top: 2px; color: #526b8e; font-size: 10px; }
.admin-workspaces-notice .btn-ghost { background: #fff; font-size: 11px; white-space: nowrap; }

.admin-workspaces-directory { margin-top: 2px; }
.admin-workspaces-section-heading {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    margin-bottom: 14px;
}
.admin-workspaces-section-heading h2 { margin: 0; font-size: 20px; }
.admin-workspaces-section-heading .muted { margin: 3px 0 0; }
.admin-workspaces-section-heading > .pill { flex: 0 0 auto; margin-top: 3px; }
.admin-workspaces-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.admin-workspace-card {
    position: relative; min-width: 0; overflow: hidden; display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
    box-shadow: 0 1px 3px rgba(15,23,42,.035);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.admin-workspace-card::before {
    position: absolute; inset: 0 0 auto; height: 3px; content: "";
    background: linear-gradient(90deg, #203864, #60a5fa);
}
.admin-workspace-card.needs-attention::before { background: linear-gradient(90deg, #64748b, #93c5fd); }
.admin-workspace-card.is-suspended::before { background: #94a3b8; }
.admin-workspace-card:hover {
    border-color: #c7d9ee; box-shadow: 0 10px 26px rgba(32,56,100,.1); transform: translateY(-2px);
}
.admin-workspace-card-header {
    display: grid; grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center; gap: 11px; padding: 18px 18px 14px;
}
.admin-workspace-avatar {
    width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; background: #e7effa; color: var(--brand);
    font-size: 13px; font-weight: 850; letter-spacing: .025em;
}
.admin-workspace-identity { min-width: 0; }
.admin-workspace-identity > small {
    display: block; color: #526b8e; font-size: 8px; font-weight: 800;
    letter-spacing: .065em; text-transform: uppercase;
}
.admin-workspace-identity h3 {
    overflow: hidden; margin: 1px 0 2px; font-size: 17px;
    text-overflow: ellipsis; white-space: nowrap;
}
.admin-workspace-slack-id { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 9px; }
.admin-workspace-slack-id code {
    overflow: hidden; padding: 1px 5px; color: #526b8e; font-size: 9px;
    text-overflow: ellipsis; white-space: nowrap;
}
.admin-workspace-badges { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.admin-workspace-badges .pill,
.admin-workspace-connection-pill { padding: 3px 8px; font-size: 9px; }
.admin-workspace-connection-pill {
    display: inline-block; border-radius: 999px; font-weight: 700; white-space: nowrap;
}
.admin-workspace-connection-pill.connected { background: #dbeafe; color: #1d4ed8; }
.admin-workspace-connection-pill.local { background: #e7effa; color: var(--brand); }
.admin-workspace-connection-pill.missing { background: #f1f5f9; color: #64748b; }

.admin-workspace-card-body { flex: 1; padding: 0 18px 18px; }
.admin-workspace-health {
    display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center;
    gap: 10px; padding: 11px 12px; border: 1px solid #bfdbfe;
    border-radius: 10px; background: #f8fbff;
}
.admin-workspace-health.needs-attention,
.admin-workspace-health.is-suspended { border-color: var(--line); background: #f8fafc; }
.admin-workspace-health-marker {
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px; background: #dbeafe; color: #1d4ed8; font-size: 14px; font-weight: 850;
}
.admin-workspace-health.needs-attention .admin-workspace-health-marker,
.admin-workspace-health.is-suspended .admin-workspace-health-marker { background: #e2e8f0; color: #64748b; }
.admin-workspace-health > span:last-child { min-width: 0; }
.admin-workspace-health small { display: block; color: var(--muted); font-size: 9px; }
.admin-workspace-health strong {
    display: block; overflow: hidden; margin-top: 2px; font-size: 11px;
    text-overflow: ellipsis; white-space: nowrap;
}

.admin-workspace-resources {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 13px;
}
.admin-workspace-resources > span {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline;
    gap: 7px; min-width: 0; padding: 11px 12px; border: 1px solid var(--line);
    border-radius: 9px; background: #fff;
}
.admin-workspace-resources strong { color: var(--brand); font-size: 18px; line-height: 1; }
.admin-workspace-resources small {
    overflow: hidden; color: var(--muted); font-size: 9px; font-weight: 700;
    text-overflow: ellipsis; white-space: nowrap;
}
.admin-workspace-metadata {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 15px 0 0; padding: 0;
}
.admin-workspace-metadata > div { min-width: 0; padding: 0 10px; }
.admin-workspace-metadata > div:first-child { padding-left: 0; }
.admin-workspace-metadata > div:last-child { padding-right: 0; }
.admin-workspace-metadata > div + div { border-left: 1px solid var(--line); }
.admin-workspace-metadata dt {
    color: var(--muted); font-size: 8px; font-weight: 800;
    letter-spacing: .045em; text-transform: uppercase;
}
.admin-workspace-metadata dd {
    overflow: hidden; margin: 4px 0 0; color: var(--ink); font-size: 9px;
    font-weight: 700; text-overflow: ellipsis; white-space: nowrap;
}

.admin-workspace-card-actions {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 13px 18px; border-top: 1px solid var(--line); background: #fbfdff;
}
.admin-workspace-card-actions form { margin: 0; }
.admin-workspace-secondary-actions { display: flex; align-items: center; gap: 7px; }
.admin-workspace-card-actions .btn-ghost,
.admin-workspace-restore { min-height: 42px; padding: 9px 12px; font-size: 14px; white-space: nowrap; }
.admin-workspace-card-actions .btn-ghost { background: #fff; }
.admin-workspace-suspend { border-color: #fecaca; color: #b91c1c; }
.admin-workspace-suspend:hover { background: #fee2e2; }
.admin-workspace-restore { border: 0; cursor: pointer; }
.admin-workspaces-primary:focus-visible,
.admin-workspace-card-actions a:focus-visible,
.admin-workspace-card-actions button:focus-visible {
    outline: 3px solid rgba(32,56,100,.25); outline-offset: 2px;
}

.admin-workspaces-empty { padding: 54px 26px; text-align: center; }
.admin-workspaces-empty-icon {
    width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 13px; border-radius: 15px; background: #e7effa; color: var(--brand);
}
.admin-workspaces-empty-icon svg {
    width: 27px; height: 27px; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}
.admin-workspaces-empty h2 { margin-bottom: 6px; }
.admin-workspaces-empty p { max-width: 520px; margin: 0 auto 17px; color: var(--muted); font-size: 12px; }

@media (max-width: 1160px) {
    .admin-workspaces-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
    .admin-workspaces-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .admin-workspaces-appbar { align-items: flex-start; flex-direction: column; }
    .admin-workspaces-header-actions { width: 100%; justify-content: flex-start; }
    .admin-workspaces-header-actions > * { flex: 1; text-align: center; }
    .admin-workspaces-notice { grid-template-columns: 38px minmax(0, 1fr); }
    .admin-workspaces-notice .btn-ghost { grid-column: 1 / -1; text-align: center; }
    .admin-workspace-card-header { grid-template-columns: 46px minmax(0, 1fr); }
    .admin-workspace-badges { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Scalable manager directory and account recovery */
.workspace-manager-invite-wide { margin-bottom: 16px; }
.workspace-manager-invite-grid { grid-template-columns: repeat(4,minmax(0,1fr)) auto; align-items: end; }
.workspace-manager-invite-grid .workspace-manager-submit { min-width: 210px; }
.workspace-manager-table-card { overflow: visible; }
.manager-directory-tools { display: flex; align-items: end; gap: 8px; padding: 13px 16px; border-bottom: 1px solid #e6ebf1; background: #fafbfd; }
.manager-directory-tools > label:first-child { flex: 1; }
.manager-directory-tools label { display: grid; gap: 4px; color: #607086; font-size: 9px; font-weight: 800; }
.manager-directory-tools input,.manager-directory-tools select { min-height: 38px; padding: 8px 10px; border: 1px solid #d6dfe9; border-radius: 8px; background: #fff; color: #2c4059; font: inherit; font-size: 11px; }
.manager-admin-table-head,.manager-admin-row { display: grid; grid-template-columns: minmax(210px,1.45fr) minmax(110px,.7fr) minmax(100px,.65fr) minmax(90px,.55fr) 100px minmax(245px,1.35fr); align-items: center; gap: 12px; }
.manager-admin-table-head { padding: 10px 16px; border-bottom: 1px solid #dfe6ee; background: #f3f6f9; color: #77869a; font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.manager-admin-row { min-height: 68px; padding: 11px 16px; border-bottom: 1px solid #e8edf2; color: #55677d; font-size: 10px; }
.manager-admin-row:last-child { border-bottom: 0; }
.manager-admin-person { display: grid; grid-template-columns: 40px minmax(0,1fr); align-items: center; gap: 10px; min-width: 0; }
.manager-admin-person .workspace-manager-avatar { width: 40px; height: 40px; }
.manager-admin-person > span:last-child { display: grid; min-width: 0; gap: 3px; }
.manager-admin-person strong,.manager-admin-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manager-admin-person strong { color: #263b57; font-size: 11px; }.manager-admin-person small { color: #7a8798; font-size: 9px; }
.manager-admin-username { color: #526982; font-weight: 750; }.manager-admin-workspaces { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manager-status-badge { display: inline-flex; padding: 4px 7px; border-radius: 999px; font-size: 8px; font-weight: 850; white-space: nowrap; }
.manager-status-badge.enabled { background: #eaf7ef; color: #39704d; }.manager-status-badge.disabled { background: #fff0f2; color: #a3394b; }
.manager-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.manager-row-actions form { margin: 0; }.manager-row-actions .btn-ghost,.manager-reset-action { min-height: 30px; padding: 5px 8px; font-size: 8px; }
.manager-reset-action { border: 1px solid #e6c990; border-radius: 7px; background: #fff8e9; color: #835d18; font-weight: 800; cursor: pointer; }
.manager-reset-action:hover { background: #ffefcc; }
.manager-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-top: 1px solid #e4eaf0; color: #68798e; font-size: 10px; }
.manager-pagination .disabled { opacity: .45; pointer-events: none; }
.manager-support-modal { width: min(560px,calc(100vw - 28px)); }.manager-enabled-control { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 8px !important; }
.manager-enabled-control input { width: 17px !important; min-height: 17px !important; }.manager-modal-access-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 24px 26px; }.manager-modal-access-list form { margin: 0; }
.login-forgot-link { justify-self: end; margin-top: -4px; color: #35679f; font-size: 11px; font-weight: 750; text-decoration: none; }.login-forgot-link:hover { text-decoration: underline; }
.recovery-card { max-width: 490px; }.recovery-new-link { display: flex; justify-content: center; text-decoration: none; }
@media (max-width: 1100px) { .workspace-manager-invite-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.workspace-manager-invite-grid .workspace-manager-submit { grid-column: 1 / -1; }.manager-admin-table { overflow-x: auto; }.manager-admin-table-head,.manager-admin-row { min-width: 1030px; } }
@media (max-width: 620px) { .workspace-manager-invite-grid { grid-template-columns: 1fr; }.manager-directory-tools { align-items: stretch; flex-direction: column; }.manager-directory-tools .btn-primary,.manager-directory-tools .btn-ghost { width: 100%; text-align: center; }.manager-pagination { flex-wrap: wrap; }.manager-support-modal .task-form { padding-right: 16px; padding-left: 16px; } }

/* Compact standup directory inside an opened team. */
.team-standup-list { margin: 12px 0 18px; padding: 0; list-style: none; }
.team-standup-list li + li { border-top: 1px solid var(--line); }
.team-standup-list .standup-row {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 64px; padding: 10px 2px;
}
.standup-row-main { display: grid; min-width: 0; gap: 4px; }
.standup-row-title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.standup-row-title strong { color: var(--ink); font-size: 14px; }
.standup-row-title > span:not(.standup-row-paused) {
    padding: 2px 7px; border-radius: 999px; color: var(--accent-blue);
    background: var(--surface-blue); font-size: 9px; font-weight: 750; text-transform: capitalize;
}
.standup-row-paused { color: var(--accent-rose); font-size: 10px; font-weight: 750; }
.standup-row-main > small { color: var(--muted); font-size: 11px; }
.standup-row-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.standup-row-actions .btn-primary,
.standup-row-actions .btn-ghost {
    min-height: 34px; display: inline-flex; align-items: center; justify-content: center;
    padding: 6px 10px; font-size: 12px; text-decoration: none;
}

.team-detail-content .standup-template-form { gap: 11px; margin-top: 16px; padding: 14px; border-radius: 10px; }
.team-detail-content .standup-template-heading h3 { margin: 0; font-size: 14px; }
.team-detail-content .standup-template-options { display: flex; flex-wrap: wrap; gap: 7px; }
.team-detail-content .standup-template-options label > span {
    min-height: 34px; display: inline-flex; align-items: center; padding: 7px 11px; border-radius: 8px;
}
.team-detail-content .standup-template-options strong { font-size: 12px; }
.team-detail-content .standup-template-fields { display: flex; justify-content: flex-end; }
.team-detail-content .standup-template-fields .btn-primary { min-height: 36px; padding: 7px 12px; font-size: 12px; }

@media (max-width: 560px) {
    .team-standup-list .standup-row { align-items: stretch; flex-direction: column; gap: 9px; }
    .standup-row-actions > * { flex: 1; }
}

/* Application-wide density and content hierarchy. */
.content > .panel,
.content.two-col > .panel { padding: 18px !important; margin-bottom: 14px !important; }
.content > .panel > h2 { margin-top: 0; font-size: 18px; }

.dashboard-section-kicker,
.teams-section-kicker,
.standups-section-kicker,
.report-kicker,
.participation-kicker,
.onboarding-kicker,
.profile-kicker,
.editor-kicker,
.admin-users-kicker,
.admin-workspaces-kicker { display: none !important; }

.teams-section-heading .muted,
.standups-section-heading .muted,
.automation-section-heading p,
.onboarding-section-heading p,
.profile-form-heading p,
.participation-section-heading p,
.admin-users-section-heading p,
.admin-workspaces-section-heading p { display: none; }

.teams-section-heading,
.standups-section-heading,
.automation-section-heading,
.onboarding-section-heading,
.profile-form-heading,
.participation-section-heading { margin-bottom: 12px; }

.dashboard-stats,
.teams-summary,
.standups-summary,
.admin-users-summary,
.admin-workspaces-summary { gap: 10px !important; margin-bottom: 14px !important; }
.dashboard-stat { min-height: 86px !important; padding: 14px !important; }
.dashboard-stat-icon { width: 38px; height: 38px; font-size: 17px; }
.dashboard-stat-copy strong { font-size: 23px; }
.dashboard-stat-hint { font-size: 10px; }
.dashboard-layout { gap: 14px !important; }
.dashboard-quick-panel,
.dashboard-readiness,
.dashboard-activity-panel { padding: 16px; }
.dashboard-action-list a { min-height: 48px; padding: 9px 8px; }
.dashboard-action-icon { width: 32px; height: 32px; }
.dashboard-checklist li { padding: 8px 0; }

.profile-form-section,
.automation-create-panel,
.automation-list-panel,
.participation-panel { padding: 18px !important; }
.profile-form-grid,
.automation-grid { gap: 12px; }
.profile-field,
.automation-form .field,
.onboarding-preferences-form .field { margin-bottom: 12px; }
.profile-field input,
.profile-field select,
.profile-field textarea { min-height: 44px; padding: 10px 12px; }
.profile-form-heading { padding-bottom: 12px; margin-bottom: 14px; }

.admin-user-summary-card,
.admin-workspace-summary-card { min-height: 72px !important; padding: 12px 14px !important; }
.admin-workspace-card,
.participation-completion-card,
.summary-card { border-radius: 10px; }

.automation-empty p,
.dashboard-empty p,
.saved-views-empty { display: none; }

/* Forms stay task-focused: labels, controls, validation and actions only. */
.appbar .sub,
.profile-form-heading p,
.automation-form .field > small,
.onboarding-preferences-form .field > small,
.onboarding-form-actions > small,
.editor-form-grid .field small,
#questions-form .field > small,
.question-card-identity small { display: none; }

.saved-views-panel { padding: 12px 14px; }
.saved-views-heading { display: block; }
.save-view-form { justify-content: flex-start; }
.save-view-form label { min-width: min(260px, 100%); }
.editor-panel-heading > div { padding-left: 0; }
.editor-step { display: none; }

@media (max-width: 520px) {
    .admin-workspaces-header-actions { flex-direction: column; }
    .admin-workspaces-header-actions > * { width: 100%; }
    .admin-workspaces-summary { grid-template-columns: 1fr; }
    .admin-workspace-card-header,
    .admin-workspace-card-body,
    .admin-workspace-card-actions { padding-right: 14px; padding-left: 14px; }
    .admin-workspace-metadata { grid-template-columns: 1fr; gap: 9px; }
    .admin-workspace-metadata > div { padding: 0; }
    .admin-workspace-metadata > div + div { padding-top: 9px; border-top: 1px solid var(--line); border-left: 0; }
    .admin-workspace-card-actions { align-items: stretch; flex-direction: column; }
    .admin-workspace-secondary-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-workspace-card-actions .btn-ghost { text-align: center; }
    .admin-workspace-card-actions form,
    .admin-workspace-card-actions button { width: 100%; }
}

/* ============ USER ADMINISTRATION ============ */
.admin-users-content { max-width: none; }
.admin-users-appbar { padding-top: 18px; padding-bottom: 18px; }
.admin-users-eyebrow,
.admin-users-section-kicker {
    margin: 0 0 3px; color: var(--brand); font-size: 10px; font-weight: 800;
    letter-spacing: .075em; text-transform: uppercase;
}
.admin-users-appbar h1 { font-size: 24px; }
.admin-users-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.admin-users-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    color: #fff; text-decoration: none;
}

.admin-users-summary {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px; margin-bottom: 20px;
}
.admin-user-summary-card {
    position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr);
    align-items: center; gap: 12px; min-width: 0; padding: 17px 18px;
    overflow: hidden; border: 1px solid var(--line); border-radius: 12px;
    background: var(--panel); box-shadow: 0 1px 2px rgba(15,23,42,.025);
}
.admin-user-summary-card::before {
    position: absolute; inset: 0 auto 0 0; width: 3px; content: "";
    background: var(--summary-color, var(--brand));
}
.admin-user-summary-icon {
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: var(--summary-bg, #eff6ff);
    color: var(--summary-color, var(--brand));
}
.admin-user-summary-icon svg {
    width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.75;
    stroke-linecap: round; stroke-linejoin: round;
}
.admin-user-summary-card > span:last-child { min-width: 0; }
.admin-user-summary-card strong { display: block; color: var(--ink); font-size: 24px; line-height: 1; }
.admin-user-summary-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.admin-user-summary-card em {
    display: block; overflow: hidden; margin-top: 2px; color: #526b8e;
    font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap;
}
.admin-user-summary-card.total { --summary-color: #203864; --summary-bg: #e7effa; }
.admin-user-summary-card.enabled { --summary-color: #1d4ed8; --summary-bg: #dbeafe; }
.admin-user-summary-card.slack { --summary-color: #0369a1; --summary-bg: #e0f2fe; }
.admin-user-summary-card.admins { --summary-color: #1e40af; --summary-bg: #eff6ff; }

.admin-users-notice {
    display: grid; grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center; gap: 12px; margin-bottom: 20px; padding: 13px 15px;
    border: 1px solid #bfdbfe; border-radius: 12px; background: #eff6ff;
}
.admin-users-notice-icon {
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: #dbeafe; color: #1d4ed8;
}
.admin-users-notice-icon svg {
    width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.admin-users-notice > span:nth-child(2) { min-width: 0; }
.admin-users-notice strong { display: block; color: var(--brand); font-size: 12px; }
.admin-users-notice small { display: block; margin-top: 2px; color: #526b8e; font-size: 10px; }
.admin-users-notice .btn-ghost { background: #fff; font-size: 11px; white-space: nowrap; }

.admin-users-section-heading {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    margin-bottom: 14px;
}
.admin-users-section-heading h2 { margin: 0; font-size: 20px; }
.admin-users-section-heading .muted { margin: 3px 0 0; }
.admin-users-section-heading > .pill { flex: 0 0 auto; margin-top: 3px; }

.admin-users-toolbar {
    display: grid; grid-template-columns: minmax(220px, 1.8fr) repeat(3, minmax(130px, 1fr)) auto;
    align-items: end; gap: 11px; padding: 15px; border: 1px solid var(--line);
    border-radius: 12px 12px 0 0; background: #fff;
}
.admin-users-toolbar label { display: block; min-width: 0; }
.admin-users-toolbar label > span:first-child {
    display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px;
    font-weight: 800; letter-spacing: .045em; text-transform: uppercase;
}
.admin-users-toolbar input,
.admin-users-toolbar select {
    width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line);
    border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: 15px;
}
.admin-users-toolbar select { cursor: pointer; }
.admin-users-toolbar input:focus,
.admin-users-toolbar select:focus {
    border-color: var(--brand); outline: 3px solid rgba(32,56,100,.12);
}
.admin-users-control-wrap { position: relative; display: block; }
.admin-users-control-wrap svg {
    position: absolute; top: 50%; left: 11px; width: 16px; height: 16px;
    color: #7890b1; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; transform: translateY(-50%); pointer-events: none;
}
.admin-users-control-wrap input { padding-left: 35px; }
.admin-users-reset {
    min-height: 46px; padding: 10px 13px; background: #fff; cursor: pointer;
    font-size: 13px; white-space: nowrap;
}
.admin-users-results-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 9px 15px; border: solid var(--line); border-width: 0 1px 1px;
    background: #f8fafc; color: var(--muted); font-size: 13px;
}
.admin-users-results-bar strong { color: var(--brand); }
.admin-users-results-bar small { font-size: 12px; }

.admin-users-table-shell {
    margin-top: 16px; overflow: hidden; border: 1px solid var(--line);
    border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.035);
}
.admin-users-table-scroll {
    max-height: min(68vh, 760px); overflow: auto;
    scrollbar-color: #bfd0e5 #f8fafc; scrollbar-width: thin;
}
.admin-users-table {
    width: 100%; min-width: 1280px; table-layout: fixed; border-collapse: separate;
    border-spacing: 0; font-size: 13px;
}
.admin-users-table caption,
.admin-user-visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.admin-user-col-account { width: 24%; }
.admin-user-col-workspace { width: 17%; }
.admin-user-col-signin { width: 15%; }
.admin-user-col-role { width: 20%; }
.admin-user-col-status { width: 14%; }
.admin-user-col-action { width: 136px; }
.admin-users-table th {
    position: sticky; top: 0; z-index: 2; padding: 12px 14px;
    border-bottom: 1px solid #cddbea; background: #f4f8fd; color: #526b8e;
    font-size: 11px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase;
}
.admin-users-table td {
    padding: 13px 14px; border-bottom: 1px solid var(--line);
    background: #fff; vertical-align: middle;
}
.admin-users-table tbody tr:last-child td { border-bottom: 0; }
.admin-users-table tbody tr:hover td { background: #f8fbff; }
.admin-user-table-row[hidden] { display: none; }
.admin-user-table-row.is-disabled td { background: #fbfcfe; }
.admin-user-table-row.is-disabled:hover td { background: #f5f8fc; }
.admin-users-table th:first-child,
.admin-users-table td:first-child {
    position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 #e7edf5;
}
.admin-users-table th:last-child,
.admin-users-table td:last-child {
    position: sticky; right: 0; z-index: 1; box-shadow: -1px 0 #e7edf5;
}
.admin-users-table th:first-child,
.admin-users-table th:last-child { z-index: 3; background: #f4f8fd; }
.admin-user-table-row.is-self td:first-child { box-shadow: inset 3px 0 var(--brand), 1px 0 #e7edf5; }

.admin-user-account-cell { white-space: nowrap; }
.admin-user-table-avatar {
    position: relative; width: 42px; height: 42px; display: inline-flex;
    align-items: center; justify-content: center; margin-right: 9px; vertical-align: middle;
    border-radius: 10px; background: #e7effa; color: var(--brand);
    font-size: 12px; font-weight: 850; letter-spacing: .025em;
}
.admin-user-table-avatar i {
    position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px;
    border: 2px solid #fff; border-radius: 50%; background: var(--off);
}
.admin-user-table-avatar i.online { background: #3b82f6; }
.admin-user-table-row.is-disabled .admin-user-table-avatar { background: #eef2f7; color: #64748b; }
.admin-user-table-identity {
    display: inline-block; width: calc(100% - 55px); min-width: 0; vertical-align: middle; line-height: 1.3;
}
.admin-user-table-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.admin-user-table-name strong {
    overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap;
}
.admin-user-table-name .pill.self {
    flex: 0 0 auto; padding: 2px 7px; background: var(--brand); color: #fff; font-size: 10px;
}
.admin-user-table-identity > small {
    display: block; overflow: hidden; margin-top: 2px; color: var(--muted);
    font-size: 12px; text-overflow: ellipsis; white-space: nowrap;
}
.admin-user-table-identity > em {
    display: block; margin-top: 3px; color: #7890b1; font-size: 10px;
    font-style: normal; font-weight: 750; letter-spacing: .045em; text-transform: uppercase;
}

.admin-user-workspace-cell > strong,
.admin-user-signin-cell > small,
.admin-user-signin-cell > em,
.admin-user-status-cell > small {
    display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.admin-user-workspace-cell > strong { color: var(--ink); font-size: 13px; }
.admin-user-workspace-cell > span { display: block; margin-top: 3px; }
.admin-user-workspace-cell code { padding: 1px 5px; color: #526b8e; font-size: 11px; }
.admin-user-workspace-state {
    display: inline-block; margin-top: 4px; color: #1d4ed8;
    font-size: 11px; font-style: normal; font-weight: 750;
}
.admin-user-workspace-state.suspended { color: #64748b; }

.admin-user-provider-pill,
.admin-user-status-pill,
.admin-user-role-pill {
    display: inline-block; padding: 3px 7px; border-radius: 999px;
    background: #eff6ff; color: #1d4ed8; font-size: 11px; font-weight: 750; white-space: nowrap;
}
.admin-user-provider-pill.local,
.admin-user-role-pill.super-admin { background: #e7effa; color: var(--brand); }
.admin-user-role-pill.viewer { background: #f1f5f9; color: #64748b; }
.admin-user-signin-cell > small { margin-top: 5px; color: #526b8e; font-size: 12px; }
.admin-user-signin-cell > em { margin-top: 2px; color: var(--muted); font-size: 11px; font-style: normal; }

.admin-user-table-role-readonly { display: block; min-width: 0; }
.admin-user-table-role-readonly > small,
.admin-user-table-role-form > small {
    display: block; overflow: hidden; margin-top: 4px; color: var(--muted);
    font-size: 11px; text-overflow: ellipsis; white-space: nowrap;
}
.admin-user-table-role-form > span {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px;
}
.admin-user-table-role-form select {
    width: 100%; min-width: 0; min-height: 38px; padding: 7px 9px;
    border: 1px solid var(--line); border-radius: 8px; background: #fff;
    color: var(--ink); font: inherit; font-size: 13px; cursor: pointer;
}
.admin-user-table-role-form select:focus {
    border-color: var(--brand); outline: 3px solid rgba(32,56,100,.12);
}
.admin-user-table-role-form .btn-ghost {
    min-height: 38px; padding: 7px 10px; background: #fff;
    cursor: pointer; font-size: 12px; white-space: nowrap;
}

.admin-user-status-pill.enabled { background: #dbeafe; color: #1d4ed8; }
.admin-user-status-pill.disabled { background: #e2e8f0; color: #64748b; }
.admin-user-status-cell > small {
    max-width: 180px; margin-top: 5px; color: var(--muted); font-size: 11px;
}
.admin-user-action-cell { text-align: right; }
.admin-user-action-cell form { margin: 0; }
.admin-user-protected {
    display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px;
    border: 1px solid #bfdbfe; border-radius: 7px; background: #eff6ff;
    color: var(--brand); font-size: 12px; font-weight: 750; white-space: nowrap;
}
.admin-user-protected svg {
    width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.admin-user-action-cell button { min-height: 38px; padding: 7px 9px; font-size: 12px; white-space: nowrap; }
.admin-user-deactivate { border-color: #fecaca; background: #fff; color: #b91c1c; cursor: pointer; }
.admin-user-deactivate:hover { background: #fee2e2; }
.admin-user-activate { border: 0; cursor: pointer; }
.admin-users-primary:focus-visible,
.admin-users-toolbar button:focus-visible,
.admin-user-action-cell button:focus-visible,
.admin-user-table-role-form button:focus-visible {
    outline: 3px solid rgba(32,56,100,.25); outline-offset: 2px;
}

.admin-users-no-results,
.admin-users-empty { padding: 48px 24px; text-align: center; }
.admin-users-no-results { margin-top: 16px; }
.admin-users-no-results[hidden] { display: none; }
.admin-users-no-results > span,
.admin-users-empty-icon {
    width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 12px; border-radius: 14px; background: #e7effa; color: var(--brand);
}
.admin-users-no-results svg,
.admin-users-empty-icon svg {
    width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}
.admin-users-no-results h3,
.admin-users-empty h2 { margin-bottom: 5px; }
.admin-users-no-results p,
.admin-users-empty p { max-width: 520px; margin: 0 auto 15px; color: var(--muted); font-size: 11px; }
.admin-users-no-results button { background: #fff; cursor: pointer; }

@media (max-width: 1180px) {
    .admin-users-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-users-toolbar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .admin-users-search { grid-column: span 2; }
    .admin-users-reset { grid-column: span 2; }
}

@media (max-width: 1050px) {
    .admin-users-table { min-width: 1240px; }
}

@media (max-width: 720px) {
    .admin-users-appbar { align-items: flex-start; flex-direction: column; }
    .admin-users-header-actions { width: 100%; justify-content: flex-start; }
    .admin-users-header-actions > * { flex: 1; text-align: center; }
    .admin-users-notice { grid-template-columns: 38px minmax(0, 1fr); }
    .admin-users-notice .btn-ghost { grid-column: 1 / -1; text-align: center; }
    .admin-users-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-users-search { grid-column: 1 / -1; }
    .admin-users-reset { grid-column: 1 / -1; }
    .admin-users-table-scroll { max-height: none; }
}

@media (max-width: 560px) {
    .admin-users-header-actions { flex-direction: column; }
    .admin-users-header-actions > * { width: 100%; }
    .admin-users-summary,
    .admin-users-toolbar { grid-template-columns: 1fr; }
    .admin-users-search,
    .admin-users-reset { grid-column: auto; }
    .admin-users-results-bar { align-items: flex-start; flex-direction: column; }
    .admin-users-table { min-width: 1180px; }
}

/* ============ SCHEDULE PANEL ============ */
.field.small { flex: 0 0 190px; }
.field.grow  { flex: 1 1 220px; }
.row .field { margin-bottom: 0; }
.field input[type="time"] {
    width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 9px;
    border: 1px solid var(--line, #e2e8f0); font-size: 16px;
}
.days { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 5px; }
.days label {
    display: flex; align-items: center; gap: 6px; cursor: pointer;
    min-height: 42px; padding: 8px 12px; border: 1px solid var(--line, #e2e8f0);
    border-radius: 9px; font-size: 15px;
}
.days label:has(input:checked) { border-color: var(--brand); background: #eff6ff; color: var(--brand); }
.days input { accent-color: var(--brand); }

/* ============ STANDUP EDITOR ============ */
.question-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.question-row input[type="text"] {
    flex: 1; min-height: 48px; padding: 12px 14px; border-radius: 9px;
    border: 1px solid var(--line, #e2e8f0); font-size: 16px;
}
.question-row select {
    min-height: 48px; padding: 11px 12px; border-radius: 9px;
    border: 1px solid var(--line, #e2e8f0); font-size: 15px; background: #fff;
}
.question-row .remove { min-width: 44px; min-height: 44px; padding: 8px 10px; color: #b91c1c; border-color: #fecaca; }

.field textarea {
    width: 100%; min-height: 112px; padding: 12px 14px; border-radius: 9px; font: inherit;
    font-size: 16px; border: 1px solid var(--line, #e2e8f0); resize: vertical;
}
.field input[type="number"] {
    width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 9px;
    border: 1px solid var(--line, #e2e8f0); font-size: 16px;
}

.card-actions { margin-top: 12px; }
.card-actions .btn-primary, .card-actions .btn-ghost { padding: 7px 12px; font-size: 13px; }

/* A first-run state should tell you what to do, not just that there is nothing here. */
.empty { text-align: center; padding: 28px 12px; }
.empty-title { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.empty .btn-primary { display: inline-block; margin-top: 14px; text-decoration: none; }

/* ============ TEAMS DIRECTORY ============ */
.teams-content { max-width: none; }
.teams-appbar { padding-top: 18px; padding-bottom: 18px; }
.teams-eyebrow,
.teams-section-kicker {
    margin: 0 0 3px; color: var(--brand); font-size: 11px; font-weight: 800;
    letter-spacing: .075em; text-transform: uppercase;
}
.teams-appbar h1 { font-size: 24px; }
.teams-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.teams-primary-action,
.team-open-action {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    color: #fff; text-decoration: none;
}

.teams-summary {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px; margin-bottom: 20px;
}
.teams-summary-card {
    position: relative; display: flex; align-items: center; gap: 12px;
    min-width: 0; padding: 17px 18px; overflow: hidden;
    border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
    box-shadow: 0 1px 2px rgba(15,23,42,.025);
}
.teams-summary-card::before {
    position: absolute; inset: 0 auto 0 0; width: 3px; content: "";
    background: var(--summary-color, var(--brand));
}
.teams-summary-icon {
    width: 38px; height: 38px; flex: 0 0 38px; display: inline-flex;
    align-items: center; justify-content: center; border-radius: 10px;
    background: var(--summary-bg, #eff6ff); color: var(--summary-color, var(--brand));
}
.teams-summary-icon svg {
    width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.75;
    stroke-linecap: round; stroke-linejoin: round;
}
.teams-summary-card > span:last-child { min-width: 0; }
.teams-summary-card strong { display: block; color: var(--ink); font-size: 24px; line-height: 1.05; }
.teams-summary-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.teams-summary-card.total { --summary-color: #203864; --summary-bg: #e7effa; }
.teams-summary-card.active { --summary-color: #1d4ed8; --summary-bg: #dbeafe; }
.teams-summary-card.participants { --summary-color: #0369a1; --summary-bg: #e0f2fe; }
.teams-summary-card.ready { --summary-color: #1e40af; --summary-bg: #eff6ff; }

.teams-slack-notice {
    display: grid; grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center; gap: 12px; margin-bottom: 20px; padding: 13px 15px;
    border: 1px solid #bfdbfe; border-radius: 12px; background: #eff6ff; color: var(--brand);
}
.teams-notice-icon {
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: #dbeafe; color: #1d4ed8;
}
.teams-notice-icon svg {
    width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.teams-slack-notice > span:nth-child(2) { min-width: 0; }
.teams-slack-notice strong { display: block; font-size: 13px; }
.teams-slack-notice small { display: block; margin-top: 2px; color: #526b8e; font-size: 11px; }
.teams-slack-notice .btn-ghost { background: #fff; white-space: nowrap; }

.teams-directory { margin-top: 2px; }
.teams-section-heading {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    margin-bottom: 14px;
}
.teams-section-heading h2 { margin: 0; font-size: 20px; }
.teams-section-heading .muted { margin: 3px 0 0; }
.teams-section-heading > .pill { flex: 0 0 auto; margin-top: 3px; }
.teams-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.team-directory-card {
    position: relative; min-width: 0; overflow: hidden; display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
    box-shadow: 0 1px 3px rgba(15,23,42,.035);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.team-directory-card::before {
    position: absolute; inset: 0 0 auto; height: 3px; content: "";
    background: linear-gradient(90deg, #203864, #60a5fa);
}
.team-directory-card.is-inactive::before { background: #94a3b8; }
.team-directory-card:hover {
    border-color: #c7d9ee; box-shadow: 0 10px 26px rgba(32,56,100,.1); transform: translateY(-2px);
}
.team-card-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 17px 18px 11px;
}
.team-card-kicker {
    display: inline-flex; align-items: center; gap: 7px; min-width: 0;
    color: #526b8e; font-size: 10px; font-weight: 800;
    letter-spacing: .045em; text-transform: uppercase;
}
.team-card-kicker svg {
    width: 16px; height: 16px; flex: 0 0 16px; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.team-card-statuses { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 6px; }
.team-card-statuses .pill { font-size: 10px; }
.team-setup-pill {
    display: inline-block; padding: 3px 8px; border-radius: 999px;
    font-size: 10px; font-weight: 700; white-space: nowrap;
}
.team-setup-pill.complete { background: #dbeafe; color: #1d4ed8; }
.team-setup-pill.incomplete { background: #f1f5f9; color: #64748b; }

.team-card-body { flex: 1; padding: 0 18px 18px; }
.team-card-body h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.team-card-description {
    min-height: 42px; margin: 7px 0 15px; color: var(--muted);
    font-size: 13px; line-height: 1.55;
}
.team-readiness {
    display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center;
    gap: 10px; padding: 11px 12px; border: 1px solid #bfdbfe;
    border-radius: 10px; background: #f8fbff;
}
.team-readiness.needs-attention { border-color: var(--line); background: #f8fafc; }
.team-readiness-marker {
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px; background: #dbeafe; color: #1d4ed8; font-size: 15px; font-weight: 800;
}
.team-readiness.needs-attention .team-readiness-marker { background: #e2e8f0; color: #64748b; }
.team-readiness > span:last-child { min-width: 0; }
.team-readiness small { display: block; color: var(--muted); font-size: 10px; }
.team-readiness strong {
    display: block; overflow: hidden; margin-top: 2px; color: var(--ink);
    font-size: 12px; text-overflow: ellipsis; white-space: nowrap;
}

.team-meta-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px; margin: 15px 0 0; overflow: hidden;
    border: 1px solid var(--line); border-radius: 10px; background: var(--line);
}
.team-meta-grid > div { min-width: 0; padding: 11px 12px; background: #fff; }
.team-meta-grid dt {
    display: flex; align-items: center; gap: 6px; color: var(--muted);
    font-size: 9px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase;
}
.team-meta-grid dt::before {
    width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%;
    background: #60a5fa; content: "";
}
.team-meta-grid .is-missing dt::before { background: #cbd5e1; }
.team-meta-grid dd {
    overflow: hidden; margin: 4px 0 0; color: var(--ink); font-size: 11px;
    font-weight: 700; text-overflow: ellipsis; white-space: nowrap;
}
.team-meta-grid .is-missing dd { color: var(--muted); }

.team-card-actions {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 13px 18px; border-top: 1px solid var(--line); background: #fbfdff;
}
.team-open-action { min-height: 38px; padding: 8px 12px; font-size: 12px; }
.team-secondary-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.team-secondary-actions .btn-ghost { padding: 7px 10px; background: #fff; font-size: 11px; white-space: nowrap; }
.team-open-action:focus-visible,
.team-secondary-actions a:focus-visible,
.teams-primary-action:focus-visible {
    outline: 3px solid rgba(32,56,100,.25); outline-offset: 2px;
}

.teams-empty-state { padding: 54px 26px; text-align: center; }
.teams-empty-icon {
    width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 13px; border-radius: 15px; background: #e7effa; color: var(--brand);
}
.teams-empty-icon svg {
    width: 27px; height: 27px; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}
.teams-empty-state h2 { margin-bottom: 6px; }
.teams-empty-state p { max-width: 540px; margin: 0 auto 17px; color: var(--muted); font-size: 13px; }

@media (max-width: 1160px) {
    .teams-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

@media (max-width: 680px) {
    .teams-appbar { align-items: flex-start; flex-direction: column; }
    .teams-header-actions { width: 100%; justify-content: flex-start; }
    .teams-header-actions > * { flex: 1; text-align: center; }
    .teams-slack-notice { grid-template-columns: 38px minmax(0, 1fr); }
    .teams-slack-notice .btn-ghost { grid-column: 1 / -1; text-align: center; }
}

@media (max-width: 520px) {
    .teams-header-actions { flex-direction: column; }
    .teams-header-actions > * { width: 100%; }
    .teams-summary { grid-template-columns: 1fr; }
    .team-card-header { align-items: flex-start; flex-direction: column; }
    .team-card-statuses { justify-content: flex-start; }
    .team-card-header,
    .team-card-body,
    .team-card-actions { padding-right: 14px; padding-left: 14px; }
    .team-card-actions { align-items: stretch; flex-direction: column; }
    .team-secondary-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-secondary-actions .btn-ghost { text-align: center; }
}

/* ============ STANDUPS DIRECTORY ============ */
.standups-content { max-width: none; }
.standups-appbar { padding-top: 18px; padding-bottom: 18px; }
.standups-eyebrow,
.standups-section-kicker {
    margin: 0 0 3px; color: var(--brand); font-size: 11px; font-weight: 800;
    letter-spacing: .075em; text-transform: uppercase;
}
.standups-appbar h1 { font-size: 24px; }
.standups-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.standups-primary-action,
.standup-answer-action {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    color: #fff; text-decoration: none;
}

.standups-summary {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px; margin-bottom: 20px;
}
.standups-summary-card {
    position: relative; display: flex; align-items: center; gap: 12px;
    min-width: 0; padding: 17px 18px; overflow: hidden;
    border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
    box-shadow: 0 1px 2px rgba(15,23,42,.025);
}
.standups-summary-card::before {
    position: absolute; inset: 0 auto 0 0; width: 3px; content: "";
    background: var(--summary-color, var(--brand));
}
.standups-summary-icon {
    width: 38px; height: 38px; flex: 0 0 38px; display: inline-flex;
    align-items: center; justify-content: center; border-radius: 10px;
    background: var(--summary-bg, #eff6ff); color: var(--summary-color, var(--brand));
}
.standups-summary-icon svg {
    width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.75;
    stroke-linecap: round; stroke-linejoin: round;
}
.standups-summary-card > span:last-child { min-width: 0; }
.standups-summary-card strong { display: block; color: var(--ink); font-size: 24px; line-height: 1.05; }
.standups-summary-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.standups-summary-card.total { --summary-color: #203864; --summary-bg: #e7effa; }
.standups-summary-card.active { --summary-color: #1d4ed8; --summary-bg: #dbeafe; }
.standups-summary-card.paused { --summary-color: #64748b; --summary-bg: #f1f5f9; }
.standups-summary-card.teams { --summary-color: #0369a1; --summary-bg: #e0f2fe; }

.standups-slack-notice {
    display: grid; grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center; gap: 12px; margin-bottom: 20px; padding: 13px 15px;
    border: 1px solid #bfdbfe; border-radius: 12px; background: #eff6ff; color: var(--brand);
}
.standups-notice-icon {
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: #dbeafe; color: #1d4ed8;
}
.standups-notice-icon svg {
    width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.standups-slack-notice > span:nth-child(2) { min-width: 0; }
.standups-slack-notice strong { display: block; font-size: 13px; }
.standups-slack-notice small { display: block; margin-top: 2px; color: #526b8e; font-size: 11px; }
.standups-slack-notice .btn-ghost { background: #fff; white-space: nowrap; }

.standups-directory { margin-top: 2px; }
.standups-section-heading {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    margin-bottom: 14px;
}
.standups-section-heading h2 { margin: 0; font-size: 20px; }
.standups-section-heading .muted { margin: 3px 0 0; }
.standups-section-heading > .pill { flex: 0 0 auto; margin-top: 3px; }
.standups-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.standup-directory-card {
    position: relative; min-width: 0; overflow: hidden; display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
    box-shadow: 0 1px 3px rgba(15,23,42,.035);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.standup-directory-card::before {
    position: absolute; inset: 0 0 auto; height: 3px; content: "";
    background: linear-gradient(90deg, #203864, #60a5fa);
}
.standup-directory-card.is-paused::before { background: #94a3b8; }
.standup-directory-card:hover {
    border-color: #c7d9ee; box-shadow: 0 10px 26px rgba(32,56,100,.1); transform: translateY(-2px);
}
.standup-card-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 17px 18px 12px;
}
.standup-team-label {
    display: inline-flex; align-items: center; gap: 7px; min-width: 0;
    color: #526b8e; font-size: 11px; font-weight: 700;
}
.standup-team-label svg {
    width: 16px; height: 16px; flex: 0 0 16px; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.standup-team-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.standup-card-header > .pill { flex: 0 0 auto; font-size: 10px; }
.standup-card-body { flex: 1; padding: 0 18px 17px; }
.standup-card-title-row { display: flex; justify-content: space-between; gap: 12px; }
.standup-card-title-row h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.standup-cadence {
    display: inline-block; margin-top: 5px; padding: 2px 8px; border-radius: 999px;
    background: #eff6ff; color: var(--brand); font-size: 10px; font-weight: 800;
    letter-spacing: .025em;
}
.standup-card-description {
    min-height: 42px; margin: 12px 0 15px; color: var(--muted);
    font-size: 13px; line-height: 1.55;
}
.standup-schedule {
    display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center;
    gap: 10px; padding: 11px 12px; border: 1px solid #dbeafe;
    border-radius: 10px; background: #f8fbff;
}
.standup-schedule.is-paused { border-color: var(--line); background: #f8fafc; }
.standup-schedule-icon {
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px; background: #dbeafe; color: #1d4ed8;
}
.standup-schedule.is-paused .standup-schedule-icon { background: #e2e8f0; color: #64748b; }
.standup-schedule-icon svg {
    width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.standup-schedule > span:last-child { min-width: 0; }
.standup-schedule small { display: block; color: var(--muted); font-size: 10px; }
.standup-schedule strong {
    display: block; overflow: hidden; margin-top: 2px; color: var(--ink);
    font-size: 12px; text-overflow: ellipsis; white-space: nowrap;
}
.standup-meta-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 15px 0 0; padding: 0;
}
.standup-meta-grid > div { min-width: 0; padding: 0 10px; }
.standup-meta-grid > div:first-child { padding-left: 0; }
.standup-meta-grid > div:last-child { padding-right: 0; }
.standup-meta-grid > div + div { border-left: 1px solid var(--line); }
.standup-meta-grid dt { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .045em; }
.standup-meta-grid dd {
    overflow: hidden; margin: 3px 0 0; color: var(--ink); font-size: 11px;
    font-weight: 700; text-overflow: ellipsis; white-space: nowrap;
}
.standup-card-actions {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 13px 18px; border-top: 1px solid var(--line); background: #fbfdff;
}
.standup-answer-action { min-height: 38px; padding: 8px 12px; font-size: 12px; }
.standup-secondary-actions { display: flex; align-items: center; gap: 7px; }
.standup-secondary-actions .btn-ghost { padding: 7px 10px; background: #fff; font-size: 11px; }
.standup-answer-action:focus-visible,
.standup-secondary-actions a:focus-visible,
.standups-primary-action:focus-visible {
    outline: 3px solid rgba(32,56,100,.25); outline-offset: 2px;
}

.standups-empty-state { padding: 54px 26px; text-align: center; }
.standups-empty-icon {
    width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 13px; border-radius: 15px; background: #e7effa; color: var(--brand);
}
.standups-empty-icon svg {
    width: 27px; height: 27px; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}
.standups-empty-state h2 { margin-bottom: 6px; }
.standups-empty-state p { max-width: 500px; margin: 0 auto 17px; color: var(--muted); font-size: 13px; }

@media (max-width: 1160px) {
    .standups-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

@media (max-width: 680px) {
    .standups-appbar { align-items: flex-start; flex-direction: column; }
    .standups-header-actions { width: 100%; justify-content: flex-start; }
    .standups-header-actions > * { flex: 1; text-align: center; }
    .standups-slack-notice { grid-template-columns: 38px minmax(0, 1fr); }
    .standups-slack-notice .btn-ghost { grid-column: 1 / -1; text-align: center; }
}

@media (max-width: 520px) {
    .standups-header-actions { flex-direction: column; }
    .standups-header-actions > * { width: 100%; }
    .standups-summary { grid-template-columns: 1fr; }
    .standup-card-header,
    .standup-card-body,
    .standup-card-actions { padding-right: 14px; padding-left: 14px; }
    .standup-card-actions { align-items: stretch; flex-direction: column; }
    .standup-secondary-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .standup-secondary-actions .btn-ghost { text-align: center; }
}

/* ============ DASHBOARD ============ */
.dashboard-content { max-width: none; }
.dashboard-appbar { padding-top: 18px; padding-bottom: 18px; }
.dashboard-eyebrow,
.dashboard-section-kicker {
    margin: 0 0 4px; color: var(--brand); font-size: 12px; font-weight: 800;
    letter-spacing: .075em; text-transform: uppercase;
}
.dashboard-appbar h1 { font-size: 24px; }
.dashboard-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.dashboard-btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    color: #fff; text-decoration: none;
}

.dashboard-stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px; margin-bottom: 20px;
}
.dashboard-stat {
    position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center; gap: 14px; min-height: 136px; padding: 20px;
    overflow: hidden; border: 1px solid var(--line); border-radius: 13px;
    background: linear-gradient(145deg, #fff 0%, var(--stat-surface, #f5f9ff) 100%);
    color: inherit; text-decoration: none;
    box-shadow: 0 1px 2px rgba(15,23,42,.025);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.dashboard-stat::before {
    position: absolute; inset: 0 auto 0 0; width: 3px; content: "";
    background: var(--stat-color, var(--brand));
}
.dashboard-stat:hover {
    border-color: #cbd5e1; box-shadow: 0 9px 24px rgba(15,23,42,.08); transform: translateY(-2px);
}
.dashboard-stat:focus-visible,
.dashboard-activity-item:focus-visible,
.dashboard-action-list a:focus-visible {
    outline: 3px solid rgba(32,56,100,.25); outline-offset: 2px;
}
.dashboard-stat-icon {
    width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; background: var(--stat-bg, #eff6ff); color: var(--stat-color, var(--brand));
    font-size: 20px; font-weight: 800;
}
.dashboard-stat-copy { min-width: 0; }
.dashboard-stat-label { display: block; color: #526b8e; font-size: 14px; font-weight: 750; }
.dashboard-stat-copy strong { display: block; margin: 4px 0 5px; font-size: 30px; line-height: 1; }
.dashboard-stat-hint {
    display: block; overflow: hidden; color: var(--muted); font-size: 13px;
    text-overflow: ellipsis; white-space: nowrap;
}
.dashboard-stat-arrow { color: var(--off); font-size: 18px; transition: color .15s, transform .15s; }
.dashboard-stat:hover .dashboard-stat-arrow { color: var(--stat-color, var(--brand)); transform: translateX(2px); }
.stat-teams { --stat-color: #1d4ed8; --stat-bg: #dbeafe; --stat-surface: #edf6ff; }
.stat-standups { --stat-color: #203864; --stat-bg: #e7effa; --stat-surface: #f1f5fb; }
.stat-today { --stat-color: #0369a1; --stat-bg: #e0f2fe; --stat-surface: #ecfaff; }
.stat-week { --stat-color: #1e40af; --stat-bg: #eff6ff; --stat-surface: #f0f3ff; }

.dashboard-layout {
    display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(330px, .72fr);
    gap: 22px; align-items: start;
}
.dashboard-layout .panel { margin-bottom: 0; }
.dashboard-activity-panel {
    padding: 0; overflow: hidden; border-color: #d6e4f3;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}
.dashboard-section-heading {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    padding: 22px 22px 19px; border-bottom: 1px solid #dbe7f5;
    background: linear-gradient(135deg, #fbfdff 0%, #eff6ff 100%);
}
.dashboard-section-heading h2,
.dashboard-quick-panel h2,
.dashboard-readiness h2 { margin: 0; font-size: 20px; }
.dashboard-section-heading .muted { margin: 3px 0 0; }
.dashboard-section-heading .btn-ghost { flex: 0 0 auto; }

.dashboard-activity-list { padding: 0 22px; }
.dashboard-activity-item {
    display: grid; grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center; gap: 14px; padding: 18px 2px;
    color: inherit; text-decoration: none;
    transition: background .15s, padding .15s;
}
.dashboard-activity-item + .dashboard-activity-item { border-top: 1px solid var(--line); }
.dashboard-activity-item:hover { margin: 0 -10px; padding-right: 12px; padding-left: 12px; background: #f8fafc; }
.dashboard-activity-avatar {
    width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; background: #eff6ff; color: var(--brand);
    font-size: 14px; font-weight: 800; letter-spacing: .025em;
}
.dashboard-activity-copy { display: block; min-width: 0; }
.dashboard-activity-topline {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0;
}
.dashboard-activity-topline strong {
    overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap;
}
.dashboard-activity-topline time { flex: 0 0 auto; color: var(--muted); font-size: 13px; }
.dashboard-activity-context {
    display: flex; align-items: center; gap: 5px; min-width: 0;
    margin-top: 3px; color: var(--muted); font-size: 14px;
}
.dashboard-activity-context > span:not(.pill) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-cadence { flex: 0 0 auto; padding: 2px 8px; font-size: 12px; }
.dashboard-activity-preview {
    display: -webkit-box; margin-top: 8px; overflow: hidden; color: #334155;
    font-size: 15px; line-height: 1.5; overflow-wrap: anywhere;
    -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.dashboard-activity-arrow { padding-left: 5px; color: var(--off); transition: color .15s, transform .15s; }
.dashboard-activity-item:hover .dashboard-activity-arrow { color: var(--brand); transform: translateX(2px); }

.dashboard-empty { padding: 54px 24px; text-align: center; }
.dashboard-empty-icon {
    width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 12px; border-radius: 14px; background: #eff6ff; color: var(--brand);
    font-size: 21px; font-weight: 800;
}
.dashboard-empty h3 { margin-bottom: 5px; }
.dashboard-empty p { max-width: 460px; margin: 0 auto 16px; color: var(--muted); font-size: 15px; }

.dashboard-rail { display: grid; gap: 20px; }
.dashboard-quick-panel,
.dashboard-readiness { padding: 22px; border-color: #d8e5f4; }
.dashboard-quick-panel { background: linear-gradient(150deg, #fff 0%, #f3f8ff 100%); }
.dashboard-readiness { background: linear-gradient(150deg, #fff 0%, #f1f6ff 100%); }
.dashboard-action-list { margin-top: 12px; }
.dashboard-action-list > a {
    display: grid; grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center; gap: 10px; padding: 12px 2px;
    color: inherit; text-decoration: none;
}
.dashboard-action-list > a + a { border-top: 1px solid var(--line); }
.dashboard-action-list > a > span:nth-child(2) { min-width: 0; }
.dashboard-action-list strong { display: block; font-size: 15px; }
.dashboard-action-list small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.dashboard-action-list > a > span:last-child { color: var(--off); transition: color .15s, transform .15s; }
.dashboard-action-list > a:hover > span:last-child { color: var(--brand); transform: translateX(2px); }
.dashboard-action-icon {
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; font-size: 16px; font-weight: 800;
}
.action-submit { background: #dbeafe; color: #1d4ed8; }
.action-reports { background: #e7effa; color: #203864; }
.action-team { background: #e0f2fe; color: #0369a1; }

.dashboard-readiness-heading {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.dashboard-readiness-heading .pill { flex: 0 0 auto; }
.dashboard-checklist { margin: 15px 0 0; padding: 0; list-style: none; }
.dashboard-checklist li {
    display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center;
    gap: 10px; padding: 9px 0;
}
.dashboard-check-marker {
    width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 50%; background: #f8fafc;
    color: var(--muted); font-size: 11px; font-weight: 800;
}
.dashboard-checklist li.complete .dashboard-check-marker {
    border-color: #bbf7d0; background: #dcfce7; color: #15803d;
}
.dashboard-checklist strong { display: block; font-size: 14px; }
.dashboard-checklist small { display: block; margin-top: 1px; color: var(--muted); font-size: 13px; }
.dashboard-readiness-note {
    display: flex; align-items: flex-start; gap: 8px; margin-top: 13px; padding: 13px;
    border-radius: 9px; background: #f0fdf4; color: #166534; font-size: 13px; line-height: 1.5;
}
.workspace-status-dot {
    width: 7px; height: 7px; flex: 0 0 7px; margin-top: 4px;
    border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px #dcfce7;
}
.dashboard-readiness-note.needs-attention {
    display: block; background: #fff7ed; color: #9a3412;
}
.dashboard-readiness-note p { margin: 0 0 9px; }
.dashboard-readiness-note .btn-ghost { display: inline-block; padding: 8px 10px; background: #fff; font-size: 13px; }

@media (max-width: 1160px) {
    .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .dashboard-appbar { align-items: flex-start; flex-direction: column; }
    .dashboard-header-actions { width: 100%; justify-content: flex-start; }
    .dashboard-header-actions > * { flex: 1; text-align: center; }
    .dashboard-stats,
    .dashboard-rail { grid-template-columns: 1fr; }
    .dashboard-stat { min-height: 108px; }
    .dashboard-section-heading { align-items: flex-start; }
    .dashboard-activity-topline { align-items: flex-start; flex-direction: column; gap: 1px; }
}

@media (max-width: 480px) {
    .dashboard-header-actions { flex-direction: column; }
    .dashboard-header-actions > * { width: 100%; }
    .dashboard-activity-list { padding: 0 14px; }
    .dashboard-activity-item { grid-template-columns: 38px minmax(0, 1fr); }
    .dashboard-activity-avatar { width: 38px; height: 38px; }
    .dashboard-activity-arrow { display: none; }
    .dashboard-activity-context { flex-wrap: wrap; }
}

.report { padding: 12px 0; border-bottom: 1px solid var(--line, #e2e8f0); }
.report:last-child { border-bottom: 0; }
.report-head { display: flex; justify-content: space-between; margin-bottom: 6px; }

/* ============ REPORT CENTER ============ */
.print-only { display: none; }
.reports-content { max-width: none; }
.report-appbar .btn-ghost { background: #fff; cursor: pointer; }

.report-filter-panel { padding: 18px 20px; }
.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
}
.filter-field { min-width: 0; }
.filter-field > span, .view-switcher legend {
    display: block; margin-bottom: 6px; color: var(--muted);
    font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .035em;
}
.filter-field select, .filter-field input {
    width: 100%; min-height: 48px; padding: 11px 12px;
    border: 1px solid var(--line); border-radius: 9px;
    background: #fff; color: var(--ink); font: inherit; font-size: 16px;
}
.filter-field select:focus, .filter-field input:focus {
    border-color: var(--brand); outline: 2px solid rgba(32,56,100,.18);
}
.custom-date-field { transition: opacity .15s; }
.custom-date-field.inactive { opacity: .48; }
.filter-size { max-width: 150px; }
.filter-footer {
    display: flex; justify-content: space-between; align-items: end;
    gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}
.filter-actions { display: flex; gap: 8px; align-items: center; }
.filter-actions .btn-primary, .filter-actions .btn-ghost { min-height: 46px; }
.view-switcher { margin: 0; padding: 0; border: 0; }
.view-switcher legend { margin-bottom: 6px; }
.view-switcher label {
    display: inline-flex; align-items: center; min-height: 44px; padding: 8px 13px;
    border: 1px solid var(--line); background: #fff; color: var(--muted);
    cursor: pointer; font-size: 15px; font-weight: 650;
}
.view-switcher label:first-of-type { border-radius: 8px 0 0 8px; }
.view-switcher label:last-of-type { border-radius: 0 8px 8px 0; margin-left: -1px; }
.view-switcher label.selected { position: relative; border-color: var(--brand); background: #eff6ff; color: var(--brand); }
.view-switcher input { position: absolute; opacity: 0; pointer-events: none; }
.view-switcher label:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }

.report-summary {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px; margin-bottom: 20px;
}
.summary-card {
    display: flex; align-items: center; gap: 13px; min-width: 0;
    padding: 17px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
}
.summary-card strong { display: block; font-size: 25px; line-height: 1.1; }
.summary-card div span { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; }
.summary-icon {
    width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #dbeafe; color: #1d4ed8; font-size: 18px; font-weight: 800;
}
.summary-icon.people { background: #e0f2fe; color: #0369a1; }
.summary-icon.standups { background: #e7effa; color: #203864; }
.summary-icon.periods { background: #eff6ff; color: #1e40af; }

.section-heading, .results-heading {
    display: flex; align-items: start; justify-content: space-between; gap: 16px;
}
.section-heading h2, .results-heading h2 { margin-bottom: 2px; }
.section-heading p, .results-heading p { margin: 0; }
.trend-scroll { overflow-x: auto; padding: 8px 0 2px; }
.trend-chart {
    display: flex; align-items: end; gap: 8px; height: 190px;
    min-width: max-content; padding: 10px 4px 0;
}
.trend-point {
    width: 58px; height: 100%; display: grid;
    grid-template-rows: 24px 1fr 34px; justify-items: center;
}
.trend-count { font-size: 12px; font-weight: 700; color: var(--muted); }
.trend-track {
    width: 30px; height: 100%; display: flex; align-items: end;
    border-radius: 7px 7px 3px 3px; background: #f1f5f9; overflow: hidden;
}
.trend-fill {
    display: block; width: 100%; min-height: 4px;
    border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #60a5fa, #203864);
}
.trend-fill.zero { min-height: 0; background: transparent; }
.trend-label {
    max-width: 58px; padding-top: 6px; color: var(--muted);
    font-size: 13px; line-height: 1.25; text-align: center;
}
.trend-data { margin-top: 12px; font-size: 13px; }
.trend-data summary { color: var(--brand); cursor: pointer; font-weight: 600; }
.trend-data .table-wrap { margin-top: 8px; max-height: 260px; }

.report-empty .empty-mark { margin-bottom: 8px; color: var(--off); font-size: 34px; }
.report-results { margin-top: 4px; }
.results-heading { margin: 0 0 14px; }
.response-group { margin-bottom: 26px; }
.response-group-heading {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    margin-bottom: 11px; padding-bottom: 9px; border-bottom: 1px solid var(--line);
}
.response-group-heading h2 { margin: 0; color: var(--ink); font-size: 17px; }
.response-group-heading > span { color: var(--muted); font-size: 13px; }
.response-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.response-card {
    min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--panel); box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.response-card-head { display: flex; align-items: center; gap: 11px; }
.response-avatar {
    width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #eff6ff; color: var(--brand); font-size: 13px; font-weight: 800;
}
.response-person { min-width: 0; flex: 1; }
.response-person h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.response-person p { margin: 1px 0 0; overflow: hidden; color: var(--muted); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.cadence-pill { flex: 0 0 auto; }
.response-meta {
    display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    margin: 13px 0; padding: 9px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    color: var(--muted); font-size: 14px;
}
.response-meta strong { margin-right: 3px; color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.response-times { display: flex; gap: 10px; flex-wrap: wrap; }
.response-answer + .response-answer { margin-top: 13px; }
.response-answer h4 { margin: 0 0 5px; color: var(--muted); font-size: 14px; font-weight: 700; }
.answer-text { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.answer-text.unanswered { color: var(--off); font-style: italic; }
.long-answer summary { color: var(--ink); cursor: pointer; font-size: 16px; list-style-position: outside; }
.long-answer summary em { display: block; margin-top: 4px; color: var(--brand); font-size: 13px; font-style: normal; font-weight: 600; }
.long-answer[open] summary { margin-bottom: 8px; }
.long-answer[open] summary > span { display: none; }
.long-answer[open] summary em::before { content: "Hide full response"; }
.long-answer[open] summary em { font-size: 0; }
.long-answer[open] summary em::before { font-size: 12px; }

.response-table-wrap { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.response-table tr:last-child td { border-bottom: 0; }
.response-table td { max-width: 290px; }
.table-preview { color: var(--muted); line-height: 1.45; }

.pagination {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
}
.page-numbers { display: flex; gap: 5px; }
.page-link, .page-number {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 36px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px;
    background: #fff; color: var(--brand); font-size: 13px; font-weight: 600; text-decoration: none;
}
.page-number { min-width: 36px; padding: 7px; }
.page-link:hover, .page-number:hover { background: #f8fafc; }
.page-number.current { border-color: var(--brand); background: var(--brand); color: #fff; }
.page-link.disabled { color: var(--off); pointer-events: none; }

@media (max-width: 1050px) {
    .filter-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
    .report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .appbar.report-appbar { align-items: start; }
    .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-footer { align-items: stretch; flex-direction: column; }
    .filter-actions { justify-content: flex-end; }
    .response-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .appbar { padding: 17px 18px; }
    .content { padding: 18px 16px 38px; }
    .filter-grid, .report-summary { grid-template-columns: 1fr; }
    .filter-size { max-width: none; }
    .filter-actions > * { flex: 1; text-align: center; }
    .results-heading, .response-group-heading { align-items: start; flex-direction: column; }
    .pagination { flex-wrap: wrap; }
    .page-numbers { order: -1; width: 100%; justify-content: center; }
}

/* ============ MUTED MULTI-COLOR THEME ============ */
/* Strong color stays on primary actions; large surfaces use quiet tonal containers. */
.dashboard-appbar {
    background: linear-gradient(100deg, #fff 56%, var(--surface-blue) 100%);
}
.teams-appbar,
.team-detail-appbar,
.participants-appbar,
.team-form-appbar {
    background: linear-gradient(100deg, #fff 58%, var(--surface-sage) 100%);
}
.standups-appbar,
.standup-answer-appbar,
.standup-editor-appbar,
.admin-users-appbar {
    background: linear-gradient(100deg, #fff 58%, var(--surface-lavender) 100%);
}
.admin-workspaces-appbar {
    background: linear-gradient(100deg, #fff 58%, var(--surface-sage) 100%);
}
.report-appbar {
    background: linear-gradient(100deg, #fff 58%, var(--surface-sand) 100%);
}

.alert.ok {
    border: 1px solid var(--border-sage); background: var(--surface-sage); color: #365d46;
}
.alert.error {
    border: 1px solid var(--border-rose); background: var(--surface-rose); color: #7f3f50;
}
.badge.ok,
.pill.ok { background: var(--surface-sage-strong); color: var(--accent-sage); }
.badge.off,
.pill.off { background: var(--surface-sand); color: var(--accent-sand); }
.btn-ghost:hover { border-color: var(--border-lavender); background: var(--surface-lavender); }
.btn-danger:hover { background: var(--surface-rose-strong); }
.picker label:hover { background: var(--surface-sage); }
.days label:has(input:checked) {
    border-color: var(--border-sage); background: var(--surface-sage); color: var(--accent-sage);
}
table:not(.admin-users-table) th { background: var(--surface-blue); color: var(--accent-blue); }
table:not(.admin-users-table) tbody tr:hover td { background: var(--surface-sage); }

/* Summary cards share the same blue, sage, lavender, and sand rhythm on every directory. */
.admin-workspace-summary-card,
.admin-user-summary-card,
.teams-summary-card,
.standups-summary-card {
    border-color: var(--summary-border, var(--line));
    background: linear-gradient(145deg, #fff 12%, var(--summary-surface, #fff) 100%);
    box-shadow: 0 5px 16px rgba(31,55,77,.045);
}
.admin-workspace-summary-card.total,
.admin-user-summary-card.total,
.teams-summary-card.total,
.standups-summary-card.total {
    --summary-color: var(--accent-blue); --summary-bg: var(--surface-blue-strong);
    --summary-surface: var(--surface-blue); --summary-border: var(--border-blue);
}
.admin-workspace-summary-card.active,
.admin-user-summary-card.enabled,
.teams-summary-card.active,
.standups-summary-card.active {
    --summary-color: var(--accent-sage); --summary-bg: var(--surface-sage-strong);
    --summary-surface: var(--surface-sage); --summary-border: var(--border-sage);
}
.admin-workspace-summary-card.connected,
.admin-user-summary-card.slack,
.teams-summary-card.participants,
.standups-summary-card.teams {
    --summary-color: var(--accent-lavender); --summary-bg: var(--surface-lavender-strong);
    --summary-surface: var(--surface-lavender); --summary-border: var(--border-lavender);
}
.admin-workspace-summary-card.accounts,
.admin-user-summary-card.admins,
.teams-summary-card.ready,
.standups-summary-card.paused {
    --summary-color: var(--accent-sand); --summary-bg: var(--surface-sand-strong);
    --summary-surface: var(--surface-sand); --summary-border: var(--border-sand);
}

/* Notices use warm sand for attention and lavender for protected administration. */
.admin-workspaces-notice,
.teams-slack-notice,
.standups-slack-notice {
    border-color: var(--border-sand); background: var(--surface-sand);
}
.admin-workspaces-notice-icon,
.teams-notice-icon,
.standups-notice-icon {
    background: var(--surface-sand-strong); color: var(--accent-sand);
}
.admin-users-notice {
    border-color: var(--border-lavender); background: var(--surface-lavender);
}
.admin-users-notice-icon {
    background: var(--surface-lavender-strong); color: var(--accent-lavender);
}

/* Directory cards rotate through subdued accents while preserving one consistent layout. */
.admin-workspaces-grid > .admin-workspace-card,
.teams-grid > .team-directory-card,
.standups-grid > .standup-directory-card {
    --card-accent: var(--accent-blue); --card-surface: var(--surface-blue);
    --card-border: var(--border-blue);
    border-color: var(--card-border);
}
.admin-workspaces-grid > .admin-workspace-card:nth-child(4n + 2),
.teams-grid > .team-directory-card:nth-child(4n + 2),
.standups-grid > .standup-directory-card:nth-child(4n + 2) {
    --card-accent: var(--accent-sage); --card-surface: var(--surface-sage);
    --card-border: var(--border-sage);
}
.admin-workspaces-grid > .admin-workspace-card:nth-child(4n + 3),
.teams-grid > .team-directory-card:nth-child(4n + 3),
.standups-grid > .standup-directory-card:nth-child(4n + 3) {
    --card-accent: var(--accent-lavender); --card-surface: var(--surface-lavender);
    --card-border: var(--border-lavender);
}
.admin-workspaces-grid > .admin-workspace-card:nth-child(4n + 4),
.teams-grid > .team-directory-card:nth-child(4n + 4),
.standups-grid > .standup-directory-card:nth-child(4n + 4) {
    --card-accent: var(--accent-sand); --card-surface: var(--surface-sand);
    --card-border: var(--border-sand);
}
.admin-workspace-card::before,
.team-directory-card::before,
.standup-directory-card::before { background: var(--card-accent); }
.admin-workspace-card-header,
.team-card-header,
.standup-card-header {
    background: linear-gradient(180deg, var(--card-surface) 0%, rgba(255,255,255,.72) 100%);
}
.admin-workspace-card-actions,
.team-card-actions,
.standup-card-actions {
    background: linear-gradient(90deg, #fff 0%, var(--card-surface) 100%);
}
.admin-workspace-avatar { background: var(--card-surface); color: var(--card-accent); }
.team-card-kicker,
.standup-team-label { color: var(--card-accent); }
.team-meta-grid dt::before { background: var(--card-accent); }
.admin-workspace-card:hover,
.team-directory-card:hover,
.standup-directory-card:hover {
    border-color: var(--card-accent); box-shadow: 0 12px 28px rgba(31,55,77,.09);
}
.admin-workspace-card.needs-attention::before { background: var(--accent-sand); }
.admin-workspace-card.is-suspended::before,
.team-directory-card.is-inactive::before,
.standup-directory-card.is-paused::before { background: var(--accent-rose); }

.admin-workspace-health,
.team-readiness,
.standup-schedule {
    border-color: var(--border-sage); background: var(--surface-sage);
}
.admin-workspace-health-marker,
.team-readiness-marker,
.standup-schedule-icon {
    background: var(--surface-sage-strong); color: var(--accent-sage);
}
.admin-workspace-health.needs-attention,
.team-readiness.needs-attention,
.standup-schedule.is-paused {
    border-color: var(--border-sand); background: var(--surface-sand);
}
.admin-workspace-health.needs-attention .admin-workspace-health-marker,
.team-readiness.needs-attention .team-readiness-marker,
.standup-schedule.is-paused .standup-schedule-icon {
    background: var(--surface-sand-strong); color: var(--accent-sand);
}
.admin-workspace-health.is-suspended {
    border-color: var(--border-rose); background: var(--surface-rose);
}
.admin-workspace-health.is-suspended .admin-workspace-health-marker {
    background: var(--surface-rose-strong); color: var(--accent-rose);
}
.admin-workspace-connection-pill.connected,
.team-setup-pill.complete { background: var(--surface-sage-strong); color: var(--accent-sage); }
.admin-workspace-connection-pill.local,
.standup-cadence { background: var(--surface-lavender-strong); color: var(--accent-lavender); }
.admin-workspace-connection-pill.missing,
.team-setup-pill.incomplete { background: var(--surface-sand); color: var(--accent-sand); }

/* The Users page remains a table; color is limited to hierarchy and interaction states. */
.admin-users-toolbar {
    border-color: var(--border-blue);
    background: linear-gradient(100deg, #fff 45%, var(--surface-blue) 100%);
}
.admin-users-results-bar { border-color: var(--border-lavender); background: var(--surface-lavender); }
.admin-users-table-shell { border-color: var(--border-blue); }
.admin-users-table th,
.admin-users-table th:first-child,
.admin-users-table th:last-child {
    border-bottom-color: var(--border-blue); background: var(--surface-blue); color: var(--accent-blue);
}
.admin-users-table tbody tr:hover td { background: var(--surface-sage); }
.admin-user-table-row.is-disabled td { background: var(--surface-sand); }
.admin-user-table-row.is-disabled:hover td { background: var(--surface-rose); }
.admin-user-table-row:nth-child(4n + 1) .admin-user-table-avatar {
    background: var(--surface-blue-strong); color: var(--accent-blue);
}
.admin-user-table-row:nth-child(4n + 2) .admin-user-table-avatar {
    background: var(--surface-sage-strong); color: var(--accent-sage);
}
.admin-user-table-row:nth-child(4n + 3) .admin-user-table-avatar {
    background: var(--surface-lavender-strong); color: var(--accent-lavender);
}
.admin-user-table-row:nth-child(4n + 4) .admin-user-table-avatar {
    background: var(--surface-sand-strong); color: var(--accent-sand);
}
.admin-user-provider-pill { background: var(--surface-lavender); color: var(--accent-lavender); }
.admin-user-provider-pill.local { background: var(--surface-sand); color: var(--accent-sand); }
.admin-user-role-pill.super-admin,
.admin-user-protected { background: var(--surface-lavender); color: var(--accent-lavender); border-color: var(--border-lavender); }
.admin-user-role-pill.viewer { background: var(--surface-sand); color: var(--accent-sand); }
.admin-user-status-pill.enabled { background: var(--surface-sage-strong); color: var(--accent-sage); }
.admin-user-status-pill.disabled { background: var(--surface-rose-strong); color: var(--accent-rose); }

/* Dashboard category colors and tonal rail surfaces. */
.stat-teams {
    --stat-color: var(--accent-blue); --stat-bg: var(--surface-blue-strong);
    --stat-surface: var(--surface-blue);
}
.stat-standups {
    --stat-color: var(--accent-lavender); --stat-bg: var(--surface-lavender-strong);
    --stat-surface: var(--surface-lavender);
}
.stat-today {
    --stat-color: var(--accent-sage); --stat-bg: var(--surface-sage-strong);
    --stat-surface: var(--surface-sage);
}
.stat-week {
    --stat-color: var(--accent-sand); --stat-bg: var(--surface-sand-strong);
    --stat-surface: var(--surface-sand);
}
.dashboard-activity-panel { border-color: var(--border-blue); }
.dashboard-section-heading {
    border-bottom-color: var(--border-lavender);
    background: linear-gradient(120deg, var(--surface-blue) 0%, var(--surface-lavender) 100%);
}
.dashboard-activity-item:nth-child(4n + 1) .dashboard-activity-avatar {
    background: var(--surface-blue-strong); color: var(--accent-blue);
}
.dashboard-activity-item:nth-child(4n + 2) .dashboard-activity-avatar {
    background: var(--surface-sage-strong); color: var(--accent-sage);
}
.dashboard-activity-item:nth-child(4n + 3) .dashboard-activity-avatar {
    background: var(--surface-lavender-strong); color: var(--accent-lavender);
}
.dashboard-activity-item:nth-child(4n + 4) .dashboard-activity-avatar {
    background: var(--surface-sand-strong); color: var(--accent-sand);
}
.dashboard-activity-item:hover { background: var(--surface-blue); }
.dashboard-quick-panel {
    border-color: var(--border-lavender);
    background: linear-gradient(150deg, #fff 24%, var(--surface-lavender) 100%);
}
.dashboard-readiness {
    border-color: var(--border-sage);
    background: linear-gradient(150deg, #fff 24%, var(--surface-sage) 100%);
}
.action-submit { background: var(--surface-sage-strong); color: var(--accent-sage); }
.action-reports { background: var(--surface-lavender-strong); color: var(--accent-lavender); }
.action-team { background: var(--surface-sand-strong); color: var(--accent-sand); }
.dashboard-checklist li.complete .dashboard-check-marker {
    border-color: var(--border-sage); background: var(--surface-sage-strong); color: var(--accent-sage);
}
.dashboard-readiness-note { background: var(--surface-sage-strong); color: var(--accent-sage); }
.dashboard-readiness-note.needs-attention { background: var(--surface-sand); color: var(--accent-sand); }

/* Team creation and editing use different surface roles for each setup concern. */
.team-form-card { border-color: var(--border-blue); }
.team-form-card-heading {
    border-bottom-color: var(--border-lavender);
    background: linear-gradient(130deg, var(--surface-blue) 0%, var(--surface-lavender) 100%);
}
.team-form-heading-icon { background: var(--surface-lavender-strong); color: var(--accent-lavender); }
.team-status-section { background: var(--surface-sage); }
.team-status-toggle:hover { border-color: var(--border-sage); background: #fff; }
.team-form-actions { background: var(--surface-sand); }
.team-setup-guide { border-color: var(--border-lavender); background: var(--surface-lavender); }
.team-current-setup { border-color: var(--border-blue); background: var(--surface-blue); }
.team-guide-icon { background: var(--surface-lavender-strong); color: var(--accent-lavender); }
.team-setup-steps li:not(:last-child)::after { background: var(--border-lavender); }
.team-setup-steps li.current > span {
    border-color: var(--border-lavender); background: var(--surface-lavender-strong); color: var(--accent-lavender);
}
.team-standup-note {
    border-color: var(--border-lavender); background: var(--surface-lavender);
}
.team-standup-note-icon { background: var(--surface-lavender-strong); color: var(--accent-lavender); }
.team-slack-state.is-connected { border-color: var(--border-sage); background: var(--surface-sage); }
.team-slack-state.is-connected .team-slack-state-icon {
    background: var(--surface-sage-strong); color: var(--accent-sage);
}
.team-slack-state.needs-connection { border-color: var(--border-sand); background: var(--surface-sand); }
.team-slack-state.needs-connection .team-slack-state-icon {
    background: var(--surface-sand-strong); color: var(--accent-sand);
}
.team-danger-card { border-color: var(--border-rose); background: var(--surface-rose); }
.team-danger-icon { background: var(--surface-rose-strong); color: var(--accent-rose); }

/* Older detail pages now use the same tonal sections as the directory pages. */
.team-detail-content > .panel,
.standup-answer-content > .panel,
.standup-editor-content > .panel,
.participants-content .panel {
    border-color: var(--page-panel-border, var(--border-blue));
    background: linear-gradient(145deg, #fff 58%, var(--page-panel-surface, var(--surface-blue)) 100%);
}
.team-detail-content > .panel > h2,
.standup-answer-content > .panel > h2,
.standup-editor-content > .panel > h2,
.participants-content .panel > h2 {
    display: flex; align-items: center; gap: 9px;
}
.team-detail-content > .panel > h2::before,
.standup-answer-content > .panel > h2::before,
.standup-editor-content > .panel > h2::before,
.participants-content .panel > h2::before {
    width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%;
    background: var(--page-panel-accent, var(--accent-blue)); content: "";
}
.team-detail-content > .panel:nth-of-type(1),
.standup-answer-content > .panel:nth-of-type(1),
.standup-editor-content > .panel:nth-of-type(3),
.participants-content > div > .panel:nth-of-type(1) {
    --page-panel-accent: var(--accent-blue); --page-panel-surface: var(--surface-blue);
    --page-panel-border: var(--border-blue);
}
.team-detail-content > .panel:nth-of-type(2),
.standup-answer-content > .panel:nth-of-type(2),
.standup-editor-content > .panel:nth-of-type(2),
.participants-content > div > .panel:nth-of-type(2) {
    --page-panel-accent: var(--accent-sage); --page-panel-surface: var(--surface-sage);
    --page-panel-border: var(--border-sage);
}
.team-detail-content > .panel:nth-of-type(3),
.standup-editor-content > .panel:nth-of-type(1) {
    --page-panel-accent: var(--accent-lavender); --page-panel-surface: var(--surface-lavender);
    --page-panel-border: var(--border-lavender);
}
.team-detail-content > .panel:nth-of-type(4),
.participants-content > .panel {
    --page-panel-accent: var(--accent-sand); --page-panel-surface: var(--surface-sand);
    --page-panel-border: var(--border-sand);
}
.standup-editor-content > .panel.danger {
    --page-panel-accent: var(--accent-rose); --page-panel-surface: var(--surface-rose);
    --page-panel-border: var(--border-rose);
}
.standup-answer-content .report {
    border-color: var(--border-sand); background: rgba(255,255,255,.76);
}

/* Report exploration uses soft category colors without changing data semantics. */
.report-filter-panel {
    border-color: var(--border-blue);
    background: linear-gradient(115deg, #fff 48%, var(--surface-blue) 100%);
}
.view-switcher label.selected {
    border-color: var(--border-lavender); background: var(--surface-lavender); color: var(--accent-lavender);
}
.summary-card {
    border-color: var(--report-border, var(--border-blue));
    background: linear-gradient(145deg, #fff 12%, var(--report-surface, var(--surface-blue)) 100%);
}
.summary-card:nth-child(1) {
    --report-surface: var(--surface-blue); --report-strong: var(--surface-blue-strong);
    --report-border: var(--border-blue); --report-accent: var(--accent-blue);
}
.summary-card:nth-child(2) {
    --report-surface: var(--surface-sage); --report-strong: var(--surface-sage-strong);
    --report-border: var(--border-sage); --report-accent: var(--accent-sage);
}
.summary-card:nth-child(3) {
    --report-surface: var(--surface-lavender); --report-strong: var(--surface-lavender-strong);
    --report-border: var(--border-lavender); --report-accent: var(--accent-lavender);
}
.summary-card:nth-child(4) {
    --report-surface: var(--surface-sand); --report-strong: var(--surface-sand-strong);
    --report-border: var(--border-sand); --report-accent: var(--accent-sand);
}
.summary-card .summary-icon { background: var(--report-strong); color: var(--report-accent); }
.trend-panel {
    border-color: var(--border-lavender);
    background: linear-gradient(145deg, #fff 58%, var(--surface-lavender) 100%);
}
.trend-track { background: var(--surface-sand); }
.trend-fill { background: linear-gradient(180deg, var(--accent-lavender), var(--accent-blue)); }
.report-empty { border-color: var(--border-sand); background: var(--surface-sand); }
.response-card {
    --response-surface: var(--surface-blue); --response-strong: var(--surface-blue-strong);
    --response-border: var(--border-blue); --response-accent: var(--accent-blue);
    border-color: var(--response-border);
    background: linear-gradient(145deg, #fff 68%, var(--response-surface) 100%);
}
.response-card:nth-child(4n + 2) {
    --response-surface: var(--surface-sage); --response-strong: var(--surface-sage-strong);
    --response-border: var(--border-sage); --response-accent: var(--accent-sage);
}
.response-card:nth-child(4n + 3) {
    --response-surface: var(--surface-lavender); --response-strong: var(--surface-lavender-strong);
    --response-border: var(--border-lavender); --response-accent: var(--accent-lavender);
}
.response-card:nth-child(4n + 4) {
    --response-surface: var(--surface-sand); --response-strong: var(--surface-sand-strong);
    --response-border: var(--border-sand); --response-accent: var(--accent-sand);
}
.response-avatar { background: var(--response-strong); color: var(--response-accent); }
.response-table-wrap { border-color: var(--border-blue); }

@media (prefers-reduced-motion: reduce) {
    .card,
    .stat,
    .admin-workspace-card,
    .team-directory-card,
    .standup-directory-card,
    .dashboard-stat { transition: none; }
}

@media print {
    @page { margin: 13mm; }
    body { background: #fff; color: #000; font-size: 10pt; }
    .sidebar, .appbar, .no-print { display: none !important; }
    .print-only { display: block !important; }
    .app, .main { display: block; min-height: 0; background: #fff; }
    .content, .reports-content { max-width: none; padding: 0; }
    .print-heading { margin-bottom: 14pt; padding-bottom: 8pt; border-bottom: 1px solid #999; }
    .print-heading h1 { margin: 0 0 4pt; font-size: 18pt; }
    .print-heading p { margin: 2pt 0; }
    .report-summary { grid-template-columns: repeat(4, 1fr); gap: 6pt; margin-bottom: 12pt; }
    .summary-card { padding: 7pt; border-color: #aaa; background: #fff; box-shadow: none; }
    .summary-icon { display: none; }
    .summary-card strong { font-size: 15pt; }
    .summary-card div span { color: #333; }
    .trend-panel { padding: 10pt; border-color: #aaa; background: #fff; }
    .trend-scroll { display: none; }
    .trend-print-data { margin-top: 6pt; }
    .trend-print-data table { font-size: 9pt; }
    .results-heading { display: none; }
    .response-group { margin: 0 0 12pt; }
    .response-group.print-new-group { break-before: page; }
    .response-group-heading { margin-bottom: 6pt; border-color: #999; }
    .response-grid { display: block; }
    .response-card {
        margin-bottom: 8pt; padding: 9pt; border-color: #aaa; border-radius: 4pt;
        background: #fff; box-shadow: none; break-inside: avoid;
    }
    .response-avatar, .cadence-pill { border: 1px solid #999; background: #fff; color: #000; }
    .response-person p, .response-meta, .response-answer h4 { color: #333; }
    .response-meta { margin: 7pt 0; padding: 5pt 0; border-color: #bbb; }
    .answer-text { font-size: 9.5pt; }
    details.long-answer summary { display: none; }
    details.long-answer .answer-text { display: block; }
    .response-table-wrap { overflow: visible; border-color: #999; }
    .response-table { font-size: 8pt; }
    .response-table th, .response-table td { padding: 5pt; border-color: #bbb; }
    .response-table th { background: #fff; color: #000; }
    a { color: #000; text-decoration: none; }
}

/* ============ STANDUP PARTICIPATION CENTER ============ */
.participation-appbar {
    background: linear-gradient(100deg, #fff 52%, var(--surface-blue) 76%, var(--surface-lavender) 100%);
}
.participation-eyebrow,
.participation-kicker {
    margin: 0 0 4px; color: var(--accent-blue); font-size: 12px; font-weight: 800;
    letter-spacing: .075em; text-transform: uppercase;
}
.participation-header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.participation-header-actions .btn-ghost,
.participation-header-actions .btn-primary { display: inline-flex; align-items: center; justify-content: center; }
.participation-content { display: grid; gap: 20px; }
.participation-content > .alert { margin: 0; }
.participation-content .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.participation-content [hidden] { display: none !important; }

.participation-run-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 22px 24px; border: 1px solid var(--border-blue); border-radius: 16px;
    background:
        radial-gradient(circle at 88% 20%, rgba(233,226,240,.9), transparent 19rem),
        linear-gradient(125deg, #fff 28%, var(--surface-blue) 100%);
    box-shadow: 0 8px 24px rgba(31,55,77,.055);
}
.participation-run-copy { display: flex; align-items: center; gap: 15px; min-width: 0; }
.participation-run-copy h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.participation-run-copy p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.participation-run-icon {
    width: 52px; height: 52px; flex: 0 0 52px; display: inline-flex; align-items: center;
    justify-content: center; border: 1px solid var(--border-blue); border-radius: 14px;
    background: var(--surface-blue-strong); color: var(--accent-blue);
}
.participation-run-icon svg,
.participation-untracked-icon svg,
.participation-search svg {
    stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.participation-run-icon svg { width: 25px; height: 25px; }
.participation-period-control { flex: 0 1 390px; }
.participation-period-control > label {
    display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px;
    font-weight: 750; letter-spacing: .035em; text-transform: uppercase;
}
.participation-period-control form { display: flex; align-items: center; gap: 8px; }
.participation-period-control select {
    width: 100%; min-height: 46px; padding: 10px 38px 10px 13px; border: 1px solid var(--border-blue);
    border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 14px;
}
.participation-period-control select:focus,
.participation-search input:focus,
.participation-status-filter select:focus,
.participation-reason-field input:focus {
    outline: 3px solid rgba(69,106,140,.15); border-color: var(--accent-blue);
}
.participation-period-submit { white-space: nowrap; background: #fff; }

.participation-untracked {
    display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center;
    gap: 16px; padding: 22px 24px; border: 1px solid var(--border-sand); border-radius: 15px;
    background: linear-gradient(110deg, var(--surface-sand), #fff);
}
.participation-untracked-icon {
    width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px; background: var(--surface-sand-strong); color: var(--accent-sand);
}
.participation-untracked-icon svg { width: 25px; height: 25px; }
.participation-untracked h2 { margin: 0 0 5px; font-size: 18px; }
.participation-untracked p { max-width: 850px; margin: 0; color: var(--muted); font-size: 14px; }

.participation-overview {
    display: grid; grid-template-columns: minmax(360px, .9fr) minmax(540px, 1.55fr);
    gap: 15px;
}
.participation-completion-card {
    display: flex; align-items: center; gap: 20px; min-height: 172px; padding: 22px;
    border: 1px solid var(--border-blue); border-radius: 16px;
    background: linear-gradient(135deg, #fff 30%, var(--surface-blue) 100%);
    box-shadow: 0 6px 20px rgba(31,55,77,.05);
}
.participation-ring {
    --participation-progress: 0%;
    position: relative; width: 112px; height: 112px; flex: 0 0 112px; display: grid;
    place-items: center; border-radius: 50%;
    background: conic-gradient(var(--accent-blue) var(--participation-progress), var(--surface-blue-strong) 0);
    box-shadow: 0 7px 18px rgba(69,106,140,.12);
}
.participation-ring::before {
    position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.9); border-radius: 50%;
    background: #fff; content: ""; box-shadow: inset 0 0 0 1px var(--border-blue);
}
.participation-ring span { position: relative; z-index: 1; display: grid; text-align: center; line-height: 1.05; }
.participation-ring strong { color: var(--brand); font-size: 25px; letter-spacing: -.04em; }
.participation-ring small { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.participation-completion-copy { min-width: 0; }
.participation-completion-copy h2 { margin: 10px 0 4px; font-size: 19px; }
.participation-completion-copy p { margin: 0; color: var(--muted); font-size: 14px; }
.participation-run-status {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
    background: var(--surface-blue-strong); color: var(--accent-blue); font-size: 11px; font-weight: 800;
    letter-spacing: .035em; text-transform: uppercase;
}
.participation-run-status::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.participation-run-status.open { background: var(--surface-sage-strong); color: var(--accent-sage); }
.participation-run-status.scheduled { background: var(--surface-blue-strong); color: var(--accent-blue); }
.participation-run-status.past-due { background: var(--surface-sand-strong); color: var(--accent-sand); }
.participation-run-status.closed { background: var(--surface-lavender-strong); color: var(--accent-lavender); }
.participation-run-status.cancelled { background: var(--surface-rose-strong); color: var(--accent-rose); }

.participation-stat-grid { display: grid; grid-template-columns: repeat(5, minmax(105px, 1fr)); gap: 10px; }
.participation-stat {
    --participation-stat-surface: var(--surface-blue);
    --participation-stat-strong: var(--surface-blue-strong);
    --participation-stat-border: var(--border-blue);
    --participation-stat-accent: var(--accent-blue);
    display: flex; min-width: 0; flex-direction: column; justify-content: space-between; gap: 14px;
    padding: 17px 15px; border: 1px solid var(--participation-stat-border); border-radius: 14px;
    background: linear-gradient(145deg, #fff 20%, var(--participation-stat-surface));
}
.participation-stat.reported {
    --participation-stat-surface: var(--surface-sage); --participation-stat-strong: var(--surface-sage-strong);
    --participation-stat-border: var(--border-sage); --participation-stat-accent: var(--accent-sage);
}
.participation-stat.awaiting {
    --participation-stat-surface: var(--surface-sand); --participation-stat-strong: var(--surface-sand-strong);
    --participation-stat-border: var(--border-sand); --participation-stat-accent: var(--accent-sand);
}
.participation-stat.late {
    --participation-stat-surface: var(--surface-lavender); --participation-stat-strong: var(--surface-lavender-strong);
    --participation-stat-border: var(--border-lavender); --participation-stat-accent: var(--accent-lavender);
}
.participation-stat.excused {
    --participation-stat-surface: var(--surface-rose); --participation-stat-strong: var(--surface-rose-strong);
    --participation-stat-border: var(--border-rose); --participation-stat-accent: var(--accent-rose);
}
.participation-stat-icon {
    width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: var(--participation-stat-strong);
    color: var(--participation-stat-accent); font-size: 18px; font-weight: 800;
}
.participation-stat > span:last-child { display: grid; }
.participation-stat strong { color: var(--ink); font-size: 27px; line-height: 1; letter-spacing: -.035em; }
.participation-stat small { margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.participation-stat em { margin-top: 4px; color: var(--participation-stat-accent); font-size: 10px; font-style: normal; }

.participation-context-grid { display: grid; grid-template-columns: minmax(350px, .72fr) minmax(540px, 1.28fr); gap: 15px; }
.participation-context-grid .panel { margin: 0; border-radius: 15px; }
.participation-timing-panel {
    border-color: var(--border-sage); background: linear-gradient(145deg, #fff 45%, var(--surface-sage));
}
.participation-trend-panel {
    border-color: var(--border-lavender); background: linear-gradient(145deg, #fff 48%, var(--surface-lavender));
}
.participation-section-heading,
.participation-directory-heading,
.participation-actions-heading {
    display: flex; align-items: start; justify-content: space-between; gap: 18px;
}
.participation-section-heading h2,
.participation-directory-heading h2,
.participation-actions-heading h2 { margin: 0; font-size: 19px; }
.participation-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 20px 0 0; }
.participation-timeline div {
    min-width: 0; padding: 12px; border: 1px solid var(--border-sage); border-radius: 11px;
    background: rgba(255,255,255,.76);
}
.participation-timeline dt { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.participation-timeline dd { overflow: hidden; margin: 5px 0 0; font-size: 13px; font-weight: 700; text-overflow: ellipsis; }
.participation-trend {
    min-height: 138px; display: grid; grid-template-columns: repeat(8, minmax(50px, 1fr));
    align-items: end; gap: 8px; margin-top: 14px; overflow-x: auto;
}
.participation-trend-point { min-width: 50px; display: grid; grid-template-rows: 18px 78px 18px 14px; text-align: center; }
.participation-trend-point strong { color: var(--accent-lavender); font-size: 10px; }
.participation-trend-track {
    position: relative; width: 22px; height: 72px; align-self: end; justify-self: center;
    overflow: hidden; border-radius: 7px 7px 3px 3px; background: var(--surface-lavender-strong);
}
.participation-trend-track span {
    position: absolute; right: 0; bottom: 0; left: 0; min-height: 3px; border-radius: 7px 7px 3px 3px;
    background: linear-gradient(180deg, var(--accent-lavender), var(--accent-blue));
}
.participation-trend-point small { overflow: hidden; color: var(--ink); font-size: 10px; font-weight: 700; white-space: nowrap; }
.participation-trend-point em { color: var(--muted); font-size: 9px; font-style: normal; }

.participation-members-form { display: grid; gap: 15px; }
.participation-actions-panel {
    margin: 0; border-color: var(--border-blue);
    background: linear-gradient(115deg, #fff 46%, var(--surface-blue) 100%);
}
.participation-actions-heading p:last-child { max-width: 690px; margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.participation-selection-count {
    flex: 0 0 auto; padding: 6px 11px; border: 1px solid var(--border-blue); border-radius: 999px;
    background: #fff; color: var(--accent-blue); font-size: 12px; font-weight: 750;
}
.participation-selection-count.has-selection { border-color: var(--border-sage); background: var(--surface-sage); color: var(--accent-sage); }
.participation-action-options {
    display: grid; grid-template-columns: minmax(220px, .65fr) minmax(240px, .75fr) minmax(320px, 1.25fr);
    gap: 11px; margin-top: 18px;
}
.participation-check-option {
    display: grid; grid-template-columns: 21px minmax(0, 1fr); align-items: center; gap: 10px;
    min-height: 67px; padding: 11px 13px; border: 1px solid var(--border-blue); border-radius: 11px;
    background: rgba(255,255,255,.8); cursor: pointer;
}
.participation-check-option:has(input:checked) { border-color: var(--accent-blue); background: var(--surface-blue); }
.participation-check-option input,
.participation-table input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--brand); cursor: pointer; }
.participation-check-option span { display: grid; }
.participation-check-option strong { font-size: 13px; }
.participation-check-option small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.participation-reason-field { display: grid; gap: 5px; }
.participation-reason-field > span { color: var(--ink); font-size: 12px; font-weight: 700; }
.participation-reason-field em { color: var(--muted); font-weight: 500; font-style: normal; }
.participation-reason-field input {
    width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--border-blue);
    border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: 13px;
}
.participation-action-buttons { display: flex; align-items: center; gap: 9px; margin-top: 14px; flex-wrap: wrap; }
.participation-action-buttons .btn-ghost { background: #fff; font: inherit; cursor: pointer; }
.participation-action-buttons button:disabled {
    border-color: var(--line); background: #f1f5f9; color: #94a3b8; cursor: not-allowed; opacity: .75;
}
.participation-excuse-button { border-color: var(--border-sand); color: var(--accent-sand); }
.participation-restore-button { border-color: var(--border-lavender); color: var(--accent-lavender); }

.participation-directory { margin: 0; padding: 0; overflow: hidden; border-color: var(--border-blue); border-radius: 15px; }
.participation-directory-heading { padding: 21px 22px 17px; background: linear-gradient(105deg, #fff, var(--surface-blue)); }
.participation-directory-heading .muted { max-width: 760px; margin: 5px 0 0; font-size: 13px; }
.participation-table-tools {
    display: grid; grid-template-columns: minmax(280px, 1fr) minmax(185px, auto) auto;
    align-items: end; gap: 11px; padding: 14px 22px; border-top: 1px solid var(--border-blue);
    border-bottom: 1px solid var(--border-blue); background: #fff;
}
.participation-search { position: relative; display: block; }
.participation-search svg {
    position: absolute; top: 50%; left: 12px; width: 18px; height: 18px;
    color: var(--muted); transform: translateY(-50%);
}
.participation-search input,
.participation-status-filter select {
    width: 100%; min-height: 43px; border: 1px solid var(--line); border-radius: 9px;
    background: #fff; color: var(--ink); font: inherit; font-size: 13px;
}
.participation-search input { padding: 10px 12px 10px 39px; }
.participation-status-filter { display: grid; grid-template-columns: auto minmax(135px, 1fr); align-items: center; gap: 8px; }
.participation-status-filter > span { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.participation-status-filter select { padding: 9px 32px 9px 11px; }
.participation-visible-count { align-self: center; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.participation-table-wrap { overflow-x: auto; }
.participation-table { min-width: 1120px; font-size: 13px; }
.participation-table th { padding: 12px 13px; border-bottom-color: var(--border-blue); background: var(--surface-blue); color: var(--accent-blue); font-size: 10px; }
.participation-table td { padding: 13px; vertical-align: middle; }
.participation-table tbody tr:nth-child(even) td { background: rgba(238,244,250,.34); }
.participation-table tbody tr:hover td { background: var(--surface-sage); }
.participation-select-column { width: 46px; text-align: center; }
.participation-select-column label { display: inline-flex; }
.participation-locked { color: #cbd5e1; }
.participation-person { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.participation-avatar {
    width: 38px; height: 38px; flex: 0 0 38px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 11px; background: var(--surface-blue-strong); color: var(--accent-blue); font-size: 12px; font-weight: 800;
}
.participation-table tbody tr:nth-child(4n + 2) .participation-avatar { background: var(--surface-sage-strong); color: var(--accent-sage); }
.participation-table tbody tr:nth-child(4n + 3) .participation-avatar { background: var(--surface-lavender-strong); color: var(--accent-lavender); }
.participation-table tbody tr:nth-child(4n + 4) .participation-avatar { background: var(--surface-sand-strong); color: var(--accent-sand); }
.participation-person > span:last-child { display: grid; min-width: 0; }
.participation-person strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.participation-person small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.participation-status-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px;
    background: var(--surface-blue); color: var(--accent-blue); font-size: 10px; font-weight: 750; white-space: nowrap;
}
.participation-status-pill::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.participation-status-pill.submitted { background: var(--surface-sage-strong); color: var(--accent-sage); }
.participation-status-pill.prompted { background: var(--surface-sand); color: var(--accent-sand); }
.participation-status-pill.late { background: var(--surface-lavender-strong); color: var(--accent-lavender); }
.participation-status-pill.excused { background: var(--surface-rose); color: var(--accent-rose); }
.participation-table-value { color: #475569; font-size: 12px; white-space: nowrap; }
.participation-reminder-cell { display: flex; align-items: center; gap: 9px; min-width: 165px; }
.participation-reminder-cell > strong {
    width: 31px; height: 31px; flex: 0 0 31px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px; background: var(--surface-blue); color: var(--accent-blue); font-size: 12px;
}
.participation-reminder-cell > span,
.participation-context { display: grid; }
.participation-reminder-cell small,
.participation-context small { color: var(--muted); font-size: 10px; white-space: nowrap; }
.participation-reminder-cell em { margin-top: 2px; color: var(--accent-sand); font-size: 9px; font-style: normal; }
.participation-reminder-cell em.ready { color: var(--accent-sage); }
.participation-context { min-width: 135px; max-width: 220px; }
.participation-context strong { overflow-wrap: anywhere; color: var(--accent-rose); font-size: 11px; }
.participation-context small + small { margin-top: 2px; }
.participation-no-results td { padding: 28px; background: var(--surface-sand) !important; color: var(--accent-sand); text-align: center; }
.participation-empty-members { padding: 42px 24px; text-align: center; }
.participation-empty-members > span {
    width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 15px; background: var(--surface-blue); color: var(--accent-blue); font-size: 24px;
}
.participation-empty-members h3 { margin: 13px 0 5px; }
.participation-empty-members p { margin: 0 0 15px; color: var(--muted); }

@media (max-width: 1180px) {
    .participation-overview { grid-template-columns: 1fr; }
    .participation-stat-grid { grid-template-columns: repeat(5, 1fr); }
    .participation-context-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .participation-appbar { align-items: flex-start; flex-direction: column; }
    .participation-run-hero { align-items: stretch; flex-direction: column; }
    .participation-period-control { flex-basis: auto; width: 100%; }
    .participation-action-options { grid-template-columns: repeat(2, 1fr); }
    .participation-reason-field { grid-column: 1 / -1; }
    .participation-table-tools { grid-template-columns: 1fr 1fr; }
    .participation-visible-count { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
    .participation-header-actions { width: 100%; }
    .participation-header-actions > * { flex: 1 1 auto; text-align: center; }
    .participation-untracked { grid-template-columns: 44px minmax(0, 1fr); }
    .participation-untracked > .btn-ghost { grid-column: 1 / -1; text-align: center; }
    .participation-completion-card { align-items: flex-start; }
    .participation-ring { width: 96px; height: 96px; flex-basis: 96px; }
    .participation-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .participation-stat:last-child { grid-column: 1 / -1; }
    .participation-timeline { grid-template-columns: 1fr; }
    .participation-action-options { grid-template-columns: 1fr; }
    .participation-reason-field { grid-column: auto; }
    .participation-table-tools { grid-template-columns: 1fr; }
    .participation-status-filter { grid-template-columns: 62px minmax(0, 1fr); }
    .participation-actions-heading,
    .participation-directory-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
    .participation-run-hero,
    .participation-completion-card,
    .participation-actions-panel { padding: 18px; }
    .participation-run-copy { align-items: flex-start; }
    .participation-run-icon { width: 44px; height: 44px; flex-basis: 44px; }
    .participation-period-control form { align-items: stretch; flex-direction: column; }
    .participation-completion-card { flex-direction: column; }
    .participation-stat-grid { grid-template-columns: 1fr; }
    .participation-stat:last-child { grid-column: auto; }
    .participation-stat { flex-direction: row; align-items: center; }
    .participation-action-buttons { display: grid; grid-template-columns: 1fr; }
    .participation-action-buttons button { width: 100%; }
}

/* ==========================================================================
   Phase 2: schedule studio, upcoming runs, and exception control
   ========================================================================== */
.editor-eyebrow,
.editor-kicker {
    margin: 0 0 5px; color: var(--accent-blue); font-size: 11px; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase;
}
.standup-editor-content { max-width: none; }
.editor-section-nav {
    position: sticky; top: 92px; z-index: 6; display: flex; gap: 7px; width: fit-content;
    padding: 6px; border: 1px solid var(--border-blue); border-radius: 12px;
    background: rgba(255,255,255,.94); box-shadow: 0 7px 24px rgba(31,55,77,.08);
    backdrop-filter: blur(12px);
}
.editor-section-nav a {
    padding: 7px 11px; border-radius: 8px; color: var(--muted); font-size: 12px;
    font-weight: 750; text-decoration: none;
}
.editor-section-nav a:hover { background: var(--surface-blue); color: var(--accent-blue); }
.editor-panel { scroll-margin-top: 78px; margin: 0; padding: 24px; border-radius: 16px; }
.editor-details-panel { border-color: var(--border-sage); background: linear-gradient(135deg, #fff 72%, var(--surface-sage)); }
.editor-questions-panel { border-color: var(--border-lavender); background: linear-gradient(135deg, #fff 78%, var(--surface-lavender)); }
.schedule-studio { border-color: var(--border-blue); background: linear-gradient(150deg, #fff 74%, var(--surface-blue)); }
.schedule-exceptions-panel { border-color: var(--border-sand); background: linear-gradient(145deg, #fff 78%, var(--surface-sand)); }
.editor-panel-heading {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 22px;
    margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid rgba(148,163,184,.23);
}
.editor-panel-heading > div { position: relative; min-width: 0; padding-left: 46px; }
.editor-panel-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.editor-panel-heading p:last-child { max-width: 850px; margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.editor-step {
    position: absolute; top: 1px; left: 0; width: 34px; height: 34px; display: inline-flex;
    align-items: center; justify-content: center; border-radius: 10px;
    background: var(--surface-blue-strong); color: var(--accent-blue); font-size: 12px; font-weight: 850;
}
.editor-details-panel .editor-step { background: var(--surface-sage-strong); color: var(--accent-sage); }
.editor-questions-panel .editor-step { background: var(--surface-lavender-strong); color: var(--accent-lavender); }
.schedule-exceptions-panel .editor-step { background: var(--surface-sand-strong); color: var(--accent-sand); }
.editor-form-grid {
    display: grid; grid-template-columns: minmax(240px, .8fr) minmax(360px, 1.4fr) minmax(280px, .9fr);
    gap: 16px;
}
.editor-field-wide { min-width: 0; }
.editor-switch-field {
    align-self: end; min-height: 49px; padding: 11px 13px; border: 1px solid var(--border-sage);
    border-radius: 10px; background: rgba(255,255,255,.85);
}
.editor-switch-field span { display: grid; }
.editor-switch-field small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.editor-form-actions {
    grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
    gap: 15px; padding-top: 4px;
}
.editor-form-actions > span { color: var(--muted); font-size: 12px; }
.questionnaire-guide {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
    margin-bottom: 18px; padding: 12px; border: 1px solid #e4e1ef; border-radius: 14px;
    background: rgba(248,247,252,.82);
}
.questionnaire-guide > span {
    position: relative; display: grid; gap: 4px; min-width: 0; padding: 12px 13px 12px 38px;
    border: 1px solid #ebe8f3; border-radius: 11px; background: rgba(255,255,255,.88);
}
.questionnaire-guide > span::before {
    position: absolute; top: 12px; left: 12px; display: grid; place-items: center;
    width: 18px; height: 18px; border-radius: 6px; color: #685c8c; background: #eeeaf7;
    content: "✓"; font-size: 10px; font-weight: 900;
}
.questionnaire-guide strong { color: #33425e; font-size: 12px; }
.questionnaire-guide small { color: #7b8495; font-size: 10px; line-height: 1.45; }
.editor-question-list { display: grid; gap: 15px; }
.editor-question-list .question-row {
    display: block; overflow: hidden; margin: 0; padding: 0;
    border: 1px solid #dcd8eb; border-radius: 16px; background: rgba(255,255,255,.96);
    box-shadow: 0 8px 24px rgba(46,55,88,.065);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.editor-question-list .question-row:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(46,55,88,.09); }
.editor-question-list .question-row:focus-within { border-color: #a9a0c8; box-shadow: 0 0 0 3px rgba(105,91,141,.09), 0 12px 28px rgba(46,55,88,.08); }
.editor-question-list .question-row[data-reporting-role="BLOCKER_STATUS"] { border-color: #ddc58e; box-shadow: 0 8px 24px rgba(129,96,28,.08); }
.question-card-header {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 13px 15px; border-bottom: 1px solid #eceaf2;
    background: linear-gradient(100deg, #f8f7fc, #fbfcfe);
}
.question-card-identity,
.question-card-header-actions { display: flex; align-items: center; gap: 11px; min-width: 0; }
.question-card-identity > span:last-child { display: grid; gap: 2px; min-width: 0; }
.question-card-identity strong { color: #2f3f5d; font-size: 13px; }
.question-card-identity small { color: #8991a0; font-size: 9px; }
.question-card-identity code { padding: 2px 4px; border-radius: 4px; color: #526e9c; background: #eef3fa; font-size: 9px; }
.question-position {
    flex: 0 0 auto; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #ddd7ec; border-radius: 11px; background: #f0edf7; color: #685c8c;
    font-size: 11px; font-weight: 900; letter-spacing: .04em;
}
.question-role-signal {
    display: inline-flex; align-items: center; gap: 7px; min-height: 31px; padding: 6px 10px;
    border: 1px solid #dfe4ec; border-radius: 999px; color: #637087; background: #fff;
    font-size: 10px; font-weight: 800;
}
.question-role-signal i { width: 7px; height: 7px; border-radius: 50%; background: #8290a5; }
.question-row[data-reporting-role="PROGRESS"] .question-role-signal { border-color: #cddfed; color: #386b8c; background: #f2f8fc; }
.question-row[data-reporting-role="PROGRESS"] .question-role-signal i { background: #4c8db4; }
.question-row[data-reporting-role="PLAN"] .question-role-signal { border-color: #d1e5da; color: #39735d; background: #f3f9f6; }
.question-row[data-reporting-role="PLAN"] .question-role-signal i { background: #4b9676; }
.question-row[data-reporting-role="BLOCKER_STATUS"] .question-role-signal { border-color: #e4cf9c; color: #815f1f; background: #fff9eb; }
.question-row[data-reporting-role="BLOCKER_STATUS"] .question-role-signal i { background: #c49539; }
.question-row[data-reporting-role="BLOCKER_DETAIL"] .question-role-signal { border-color: #e6ccd3; color: #8b4b5b; background: #fff6f8; }
.question-row[data-reporting-role="BLOCKER_DETAIL"] .question-role-signal i { background: #b86b7d; }
.editor-question-list .question-row .remove {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: auto; min-height: 32px; padding: 6px 9px; border-color: transparent;
    color: #8b6470; background: transparent; font-size: 10px;
}
.editor-question-list .question-row .remove:hover { border-color: #ecd5db; color: #a23f56; background: #fff5f7; }
.editor-question-list .question-row .remove svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.question-card-body { display: grid; gap: 16px; padding: 18px; }
.question-prompt-field,
.question-config-field { margin: 0; }
.question-prompt-field > span,
.question-config-field > span { color: #526079; font-size: 11px; font-weight: 800; }
.question-prompt-field > span em {
    margin-left: 6px; padding: 3px 6px; border-radius: 5px; color: #5f7190;
    background: #edf2f8; font-size: 7px; font-style: normal; letter-spacing: .04em; text-transform: uppercase;
}
.editor-question-list .question-row input[type="text"] { min-height: 51px; padding: 13px 15px; font-size: 15px; }
.editor-question-list .question-row select { min-height: 48px; padding: 11px 38px 11px 13px; font-size: 13px; background-color: #fff; }
.question-prompt-field > small,
.question-config-field > small { display: block; margin-top: 6px; color: #8a93a3; font-size: 9px; line-height: 1.45; }
.question-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.question-role-field { padding: 12px; border: 1px solid #e6e2ef; border-radius: 12px; background: #faf9fd; }
.question-role-field select { margin-top: 6px; }
.question-add-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.question-add-button > span { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 6px; color: #fff; background: #6b6090; font-size: 14px; }

.schedule-studio-grid {
    display: grid; grid-template-columns: minmax(600px, 1.5fr) minmax(350px, .72fr);
    align-items: start; gap: 18px;
}
.schedule-settings-form { min-width: 0; display: grid; gap: 14px; }
.schedule-settings-form[aria-busy="true"] .schedule-save-bar::before {
    width: 8px; height: 8px; border-radius: 50%; background: var(--accent-blue);
    content: ""; animation: schedule-pulse 1s ease-in-out infinite;
}
@keyframes schedule-pulse { 50% { opacity: .25; transform: scale(.72); } }
@media (prefers-reduced-motion: reduce) {
    .schedule-settings-form[aria-busy="true"] .schedule-save-bar::before { animation: none; }
}
.schedule-group {
    min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--border-blue);
    border-radius: 14px; background: rgba(255,255,255,.86);
}
.schedule-group legend {
    display: flex; align-items: center; gap: 8px; padding: 0 7px; color: var(--ink);
    font-size: 15px; font-weight: 800;
}
.schedule-group legend span {
    width: 25px; height: 25px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; background: var(--surface-blue-strong); color: var(--accent-blue); font-size: 10px;
}
.schedule-group > p { margin: -2px 0 16px; color: var(--muted); font-size: 12px; }
.schedule-group-sage { border-color: var(--border-sage); }
.schedule-group-sage legend span { background: var(--surface-sage-strong); color: var(--accent-sage); }
.schedule-group-lavender { border-color: var(--border-lavender); }
.schedule-group-lavender legend span { background: var(--surface-lavender-strong); color: var(--accent-lavender); }
.schedule-primary-grid { grid-template-columns: minmax(220px, .7fr) minmax(280px, 1fr); margin-bottom: 15px; }
.editor-days { gap: 7px; }
.editor-days label { min-width: 53px; justify-content: center; border-radius: 9px; background: #fff; }
.editor-days label:has(input:checked) {
    border-color: var(--accent-blue); background: var(--surface-blue-strong);
    box-shadow: 0 3px 10px rgba(69,106,140,.1);
}
.field-hint,
.schedule-time-grid .field small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.schedule-time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 15px; }
.schedule-time-grid input { font-variant-numeric: tabular-nums; }
.schedule-audience-summary { display: grid; grid-template-columns: repeat(2, minmax(130px, .5fr)) minmax(190px, auto); gap: 10px; }
.schedule-audience-summary article {
    display: grid; padding: 13px; border: 1px solid var(--border-sage); border-radius: 11px;
    background: var(--surface-sage);
}
.schedule-audience-summary strong { color: var(--accent-sage); font-size: 22px; line-height: 1; }
.schedule-audience-summary span { margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.schedule-audience-summary .btn-ghost { display: flex; align-items: center; justify-content: center; text-align: center; }
.schedule-delivery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 13px; }
.schedule-save-bar {
    display: flex; align-items: center; justify-content: flex-end; gap: 13px; padding: 14px 16px;
    border: 1px solid var(--border-blue); border-radius: 13px;
    background: linear-gradient(100deg, var(--surface-blue), #fff);
}
.schedule-save-bar > span { display: grid; margin-right: auto; }
.schedule-save-bar strong { font-size: 12px; }
.schedule-save-bar small { margin-top: 2px; color: var(--muted); font-size: 10px; }

.upcoming-runs-panel {
    position: sticky; top: 150px; min-width: 0; overflow: hidden; border: 1px solid var(--border-blue);
    border-radius: 15px; background: #fff; box-shadow: 0 10px 28px rgba(31,55,77,.07);
}
.upcoming-runs-panel > header {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    padding: 18px; background: linear-gradient(130deg, var(--surface-blue), #fff);
}
.upcoming-runs-panel h3 { margin: 0; font-size: 18px; }
.schedule-preview-warnings { display: grid; gap: 7px; padding: 0 18px; }
.schedule-preview-warnings:empty { display: none; }
.schedule-preview-warnings p {
    margin: 0; padding: 9px 10px; border: 1px solid var(--border-sand); border-radius: 9px;
    background: var(--surface-sand); color: var(--accent-sand); font-size: 11px; line-height: 1.4;
}
.schedule-preview-warnings p.error { border-color: var(--border-rose); background: var(--surface-rose); color: var(--accent-rose); }
.upcoming-run-list { display: grid; gap: 0; margin: 0; padding: 8px 18px 18px; list-style: none; }
.upcoming-run-list li {
    display: grid; grid-template-columns: minmax(92px, .54fr) minmax(120px, 1fr) auto;
    align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid #eef2f7;
}
.upcoming-run-list li:last-child { border-bottom: 0; }
.upcoming-date,
.upcoming-run-copy { display: grid; min-width: 0; }
.upcoming-date strong { color: var(--ink); font-size: 12px; }
.upcoming-date small,
.upcoming-run-copy small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.upcoming-run-copy strong { font-size: 11px; font-variant-numeric: tabular-nums; }
.upcoming-run-copy em {
    overflow: hidden; margin-top: 3px; color: var(--accent-sand); font-size: 9px;
    font-style: normal; text-overflow: ellipsis; white-space: nowrap;
}
.schedule-preview-empty { padding: 28px 20px; color: var(--muted); font-size: 12px; text-align: center; }
.schedule-status-pill {
    display: inline-flex; align-items: center; justify-content: center; padding: 5px 8px;
    border-radius: 999px; background: var(--surface-blue-strong); color: var(--accent-blue);
    font-size: 9px; font-weight: 800; white-space: nowrap;
}
.schedule-status-pill.planned,
.schedule-status-pill.scheduled { background: var(--surface-blue-strong); color: var(--accent-blue); }
.schedule-status-pill.open { background: var(--surface-sage-strong); color: var(--accent-sage); }
.schedule-status-pill.absence { background: var(--surface-lavender-strong); color: var(--accent-lavender); }
.schedule-status-pill.excluded,
.schedule-status-pill.skipped { background: var(--surface-sand-strong); color: var(--accent-sand); }
.schedule-status-pill.closed { background: #e2e8f0; color: #64748b; }
.schedule-status-pill.cancelled { background: var(--surface-rose-strong); color: var(--accent-rose); }

.exception-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-bottom: 16px; }
.exception-summary {
    display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 14px 16px;
    border: 1px solid var(--border-blue); border-radius: 12px; background: var(--surface-blue);
}
.exception-summary span { grid-column: 1; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.exception-summary strong { grid-row: 1 / 3; grid-column: 2; color: var(--accent-blue); font-size: 28px; line-height: 1; }
.exception-summary small { margin-top: 3px; color: var(--ink); font-size: 12px; font-weight: 700; }
.exception-summary.lavender { border-color: var(--border-lavender); background: var(--surface-lavender); }
.exception-summary.lavender strong { color: var(--accent-lavender); }
.exception-summary.sage { border-color: var(--border-sage); background: var(--surface-sage); }
.exception-summary.sage strong { color: var(--accent-sage); }
.exception-section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.exception-card {
    min-width: 0; margin-top: 14px; overflow: hidden; border: 1px solid var(--line);
    border-radius: 14px; background: rgba(255,255,255,.9);
}
.exception-card > header {
    display: flex; align-items: flex-start; gap: 11px; padding: 17px 18px;
    border-bottom: 1px solid #eef2f7; background: linear-gradient(110deg, #fff, #f8fafc);
}
.exception-card h3 { margin: 0; font-size: 17px; }
.exception-card header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.exception-icon {
    width: 35px; height: 35px; flex: 0 0 35px; display: inline-flex; align-items: center;
    justify-content: center; border-radius: 10px; font-size: 11px; font-weight: 850;
}
.exception-icon.blue { background: var(--surface-blue-strong); color: var(--accent-blue); }
.exception-icon.lavender { background: var(--surface-lavender-strong); color: var(--accent-lavender); }
.exception-icon.sage { background: var(--surface-sage-strong); color: var(--accent-sage); }
.exception-icon.sand { background: var(--surface-sand-strong); color: var(--accent-sand); }
.exception-create-form {
    display: grid; grid-template-columns: minmax(140px, .55fr) minmax(190px, .8fr) minmax(230px, 1fr) auto;
    align-items: end; gap: 9px; padding: 15px 18px; background: #fff;
}
.exception-create-form .field span,
.absence-create-form .field span,
.skip-run-form .field span { font-size: 10px; }
.exception-create-form input,
.absence-create-form input,
.absence-create-form select,
.skip-run-form input,
.skip-run-form select { min-height: 42px; font-size: 12px; }
.exception-create-form button,
.absence-create-form button,
.skip-run-form button { min-height: 42px; white-space: nowrap; }
.exception-table-wrap { overflow-x: auto; border-top: 1px solid #eef2f7; }
.exception-table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 11px; }
.exception-table th {
    padding: 10px 12px; border-bottom: 1px solid var(--line); background: #f8fafc;
    color: var(--muted); font-size: 9px; letter-spacing: .045em; text-align: left; text-transform: uppercase;
}
.exception-table td { padding: 11px 12px; border-bottom: 1px solid #eef2f7; color: #475569; vertical-align: middle; }
.exception-table tbody tr:last-child td { border-bottom: 0; }
.exception-table tbody tr:hover td { background: var(--surface-blue); }
.exception-table .actions { width: 76px; text-align: right; }
.table-action {
    padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px;
    background: #fff; color: var(--muted); font: inherit; font-size: 10px; font-weight: 750; cursor: pointer;
}
.table-action.danger { border-color: var(--border-rose); color: var(--accent-rose); }
.table-action:hover { background: var(--surface-rose); }
.exception-empty { margin: 0; padding: 17px 18px; border-top: 1px solid #eef2f7; color: var(--muted); font-size: 11px; }
.absence-card,
.skip-run-card { margin-top: 14px; }
.absence-create-form {
    display: grid; grid-template-columns: minmax(210px, .9fr) minmax(135px, .48fr) minmax(135px, .48fr) minmax(240px, 1fr) auto;
    align-items: end; gap: 9px; padding: 15px 18px; background: #fff;
}
.skip-run-card { border-color: var(--border-sand); }
.skip-run-form {
    display: grid; grid-template-columns: minmax(240px, .65fr) minmax(340px, 1fr) auto;
    align-items: end; gap: 10px; padding: 16px 18px;
}
.editor-archive-panel {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    border-color: var(--border-rose); background: linear-gradient(110deg, #fff, var(--surface-rose));
}
.editor-archive-panel h2 { margin: 0; font-size: 19px; }
.editor-archive-panel p.muted { max-width: 760px; margin: 5px 0 0; font-size: 12px; }

@media (max-width: 1260px) {
    .schedule-studio-grid { grid-template-columns: 1fr; }
    .upcoming-runs-panel { position: static; }
    .exception-section-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
    .editor-form-grid { grid-template-columns: repeat(2, 1fr); }
    .editor-switch-field { grid-column: 1 / -1; }
    .exception-create-form { grid-template-columns: repeat(2, 1fr); }
    .exception-create-form button { justify-self: start; }
    .absence-create-form { grid-template-columns: repeat(2, 1fr); }
    .absence-create-form button { justify-self: start; }
}
@media (max-width: 760px) {
    .standup-editor-appbar { align-items: flex-start; flex-direction: column; }
    .standup-editor-appbar .row { width: 100%; }
    .standup-editor-appbar .row > * { flex: 1 1 auto; text-align: center; }
    .editor-section-nav { position: static; width: 100%; overflow-x: auto; }
    .editor-panel { padding: 18px; }
    .editor-panel-heading { align-items: flex-start; flex-direction: column; }
    .editor-panel-heading > div { padding-left: 43px; }
    .editor-form-grid,
    .schedule-primary-grid,
    .schedule-time-grid,
    .schedule-delivery-grid,
    .exception-summary-grid,
    .exception-create-form,
    .absence-create-form,
    .skip-run-form { grid-template-columns: 1fr; }
    .editor-form-actions,
    .schedule-save-bar,
    .editor-archive-panel { align-items: stretch; flex-direction: column; }
    .editor-form-actions button,
    .schedule-save-bar button,
    .editor-archive-panel button { width: 100%; }
    .questionnaire-guide { grid-template-columns: 1fr; }
    .question-card-header { align-items: flex-start; }
    .question-card-header-actions { align-items: flex-end; flex-direction: column-reverse; }
    .question-config-grid { grid-template-columns: 1fr; }
    .schedule-audience-summary { grid-template-columns: repeat(2, 1fr); }
    .schedule-audience-summary .btn-ghost { grid-column: 1 / -1; }
    .upcoming-run-list li { grid-template-columns: minmax(85px, .55fr) minmax(110px, 1fr); }
    .upcoming-run-list .schedule-status-pill { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 480px) {
    .editor-section-nav a { padding-inline: 9px; }
    .editor-days label { min-width: 45px; }
    .schedule-audience-summary { grid-template-columns: 1fr; }
    .schedule-audience-summary .btn-ghost { grid-column: auto; }
    .question-card-header { align-items: stretch; flex-direction: column; }
    .question-card-header-actions { align-items: center; justify-content: space-between; flex-direction: row; }
    .editor-question-list .question-row .remove span { display: none; }
    .question-card-body { padding: 15px; }
}

/* Phase 2 participation controls */
.participation-run-status.skipped { background: var(--surface-sand-strong); color: var(--accent-sand); }
.participation-lifecycle-grid {
    display: grid; grid-template-columns: minmax(430px, .9fr) minmax(430px, 1.1fr); gap: 15px;
}
.participation-lifecycle-grid .panel { margin: 0; border-radius: 15px; }
.participation-run-control {
    border-color: var(--border-sand); background: linear-gradient(145deg, #fff 48%, var(--surface-sand));
}
.participation-run-control > .muted { margin: 10px 0 15px; font-size: 12px; }
.participation-lifecycle-form { display: grid; gap: 11px; }
.participation-lifecycle-form input { min-height: 43px; }
.participation-lifecycle-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.participation-lifecycle-actions button { min-height: 40px; font: inherit; cursor: pointer; }
.participation-audit-panel {
    border-color: var(--border-lavender); background: linear-gradient(145deg, #fff 52%, var(--surface-lavender));
}
.participation-audit-list { display: grid; gap: 0; margin: 15px 0 0; padding: 0; list-style: none; }
.participation-audit-list li {
    position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 9px;
    min-height: 51px; padding-bottom: 12px;
}
.participation-audit-list li:not(:last-child)::before {
    position: absolute; top: 13px; bottom: -1px; left: 5px; width: 1px; background: var(--border-lavender); content: "";
}
.participation-audit-dot {
    position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 3px; border: 3px solid #fff;
    border-radius: 50%; background: var(--accent-blue); box-shadow: 0 0 0 1px var(--border-blue);
}
.participation-audit-dot.closed { background: var(--accent-lavender); }
.participation-audit-dot.cancelled { background: var(--accent-rose); }
.participation-audit-dot.skipped,
.participation-audit-dot.auto_skipped { background: var(--accent-sand); }
.participation-audit-dot.reopened { background: var(--accent-sage); }
.participation-audit-list li > span:last-child { display: grid; }
.participation-audit-list strong { font-size: 12px; }
.participation-audit-list small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.participation-audit-list em {
    margin-top: 3px; color: #475569; font-size: 10px; font-style: normal; overflow-wrap: anywhere;
}
.participation-audit-empty { margin: 15px 0 0; color: var(--muted); font-size: 12px; }
.participation-action-options {
    grid-template-columns: minmax(210px, .72fr) minmax(230px, .8fr) minmax(280px, 1fr) minmax(185px, .62fr);
}
.participation-snooze-field select {
    width: 100%; min-height: 43px; padding: 9px 32px 9px 11px; border: 1px solid var(--border-lavender);
    border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: 12px;
}
.participation-snooze-button { border-color: var(--border-lavender); color: var(--accent-lavender); }
.participation-unsnooze-button { border-color: var(--border-sage); color: var(--accent-sage); }
.participation-reminder-cell em.snoozed { color: var(--accent-lavender); }
.participation-context .snooze-context { color: var(--accent-lavender); }

/* Phase 4: Report Center insights, saved views, and automation */
.report-header-actions {
    display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
}
.report-header-actions .btn-ghost,
.report-header-actions .btn-primary {
    display: inline-flex; align-items: center; justify-content: center; min-height: 42px;
}
.report-kicker {
    margin: 0 0 4px; color: var(--accent-blue); font-size: 11px; font-weight: 850;
    letter-spacing: .075em; text-transform: uppercase;
}
.question-role-note {
    display: flex; align-items: flex-start; gap: 11px; margin: 15px 0 12px; padding: 13px 14px;
    border: 1px solid #e2d4ae; border-radius: 12px; background: #fffaf0; color: #475569;
}
.question-role-note-icon {
    flex: 0 0 auto; display: grid; place-items: center; width: 25px; height: 25px;
    border-radius: 8px; color: #815e20; background: #f5e7c3; font-size: 11px; font-weight: 900;
}
.question-role-note > span:last-child { display: grid; gap: 4px; }
.question-role-note strong { color: #70521d; font-size: 12px; }
.question-role-note small { color: #7b6b4c; font-size: 10px; line-height: 1.5; }
.saved-views-panel { padding: 18px 20px; }
.saved-views-heading {
    display: flex; align-items: end; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.saved-views-heading h2 { margin: 2px 0 4px; font-size: 20px; letter-spacing: -.02em; }
.saved-views-heading p { margin: 0; max-width: 46ch; color: var(--muted); font-size: 13px; }
.save-view-form {
    display: flex; align-items: end; gap: 10px; flex-wrap: wrap;
}
.save-view-form label { display: grid; gap: 6px; min-width: min(260px, 100%); }
.save-view-form label span { color: var(--muted); font-size: 12px; font-weight: 700; }
.save-view-form input {
    min-height: 42px; padding: 9px 12px; border: 1px solid var(--border-blue);
    border-radius: 10px; background: #fff; font: inherit;
}
.saved-view-list {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 16px;
}
.saved-view {
    display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 6px;
    padding: 12px 12px 12px 14px; border: 1px solid var(--border-blue); border-radius: 12px;
    background: linear-gradient(145deg, #fff 24%, var(--surface-blue));
}
.saved-view a { min-width: 0; text-decoration: none; color: inherit; }
.saved-view a strong { display: block; font-size: 14px; }
.saved-view a span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.saved-view-delete {
    width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent;
    color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer;
}
.saved-view-delete:hover { background: var(--surface-rose-strong); color: var(--accent-rose); }
.saved-views-empty { margin: 14px 0 0; color: var(--muted); font-size: 13px; }

.participation-insights,
.blocker-insights { padding: 18px 20px; }
.participation-insights .section-heading,
.blocker-insights .section-heading {
    display: flex; align-items: start; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    margin-bottom: 14px;
}
.participation-insights .section-heading h2,
.blocker-insights .section-heading h2 { margin: 2px 0 4px; font-size: 20px; }
.participation-insights .section-heading p,
.blocker-insights .section-heading p { margin: 0; }
.insight-rate,
.blocker-rate {
    display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px;
    border-radius: 999px; background: var(--surface-sage-strong); color: var(--accent-sage);
    font-size: 12px; font-weight: 800;
}
.blocker-rate { background: var(--surface-rose-strong); color: var(--accent-rose); }
.participation-kpis {
    display: grid; grid-template-columns: repeat(6, minmax(90px, 1fr)); gap: 10px; margin-bottom: 16px;
}
.participation-kpis > div {
    padding: 14px 12px; border: 1px solid var(--border-blue); border-radius: 12px;
    background: linear-gradient(145deg, #fff 20%, var(--surface-blue));
}
.participation-kpis span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.participation-kpis strong {
    display: block; margin-top: 6px; color: var(--ink); font-size: 24px; letter-spacing: -.03em;
}
.blocker-summary-grid {
    display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 10px; margin-bottom: 16px;
}
.blocker-summary-card {
    padding: 14px 12px; border: 1px solid var(--border-blue); border-radius: 12px;
    background: linear-gradient(145deg, #fff 20%, var(--surface-blue));
}
.blocker-summary-card.blocked {
    border-color: var(--border-rose);
    background: linear-gradient(145deg, #fff 20%, var(--surface-rose));
}
.blocker-summary-card.clear {
    border-color: var(--border-sage);
    background: linear-gradient(145deg, #fff 20%, var(--surface-sage));
}
.blocker-summary-card span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.blocker-summary-card strong {
    display: block; margin-top: 6px; color: var(--ink); font-size: 24px; letter-spacing: -.03em;
}
.participation-insight-chart,
.blocker-trend { display: grid; gap: 10px; }
.participation-insight-row,
.blocker-trend-row {
    display: grid; grid-template-columns: 88px minmax(120px, 1fr) 64px minmax(140px, .55fr);
    align-items: center; gap: 10px;
}
.blocker-trend-row { grid-template-columns: 88px minmax(120px, 1fr) 72px; }
.participation-insight-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.blocker-trend-row > span:first-child { color: var(--muted); font-size: 12px; font-weight: 700; }
.participation-bars,
.blocker-meter {
    position: relative; height: 12px; border-radius: 999px; background: var(--surface-blue-strong);
    overflow: hidden;
}
.blocker-meter { background: var(--surface-sage-strong); }
.participation-bars .expected-bar { position: absolute; inset: 0; }
.participation-bars .submitted-bar { position: absolute; inset: 0; }
.participation-bars .submitted-bar i,
.blocker-meter i {
    display: block; height: 100%; border-radius: 999px; background: var(--accent-blue);
}
.blocker-meter i { background: var(--accent-rose); }
.participation-insight-value { font-size: 13px; font-weight: 750; }
.participation-punctuality { color: var(--muted); font-size: 12px; }

.report-automation-appbar { align-items: center; }
.report-automation-content { display: grid; gap: 18px; }
.automation-intro {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.automation-intro article {
    display: flex; gap: 12px; padding: 16px; border: 1px solid var(--border-sage);
    border-radius: 14px; background: linear-gradient(145deg, #fff 18%, var(--surface-sage));
}
.automation-intro span {
    flex: 0 0 auto; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: var(--surface-sage-strong); color: var(--accent-sage);
    font-size: 12px; font-weight: 850;
}
.automation-intro strong { display: block; margin-bottom: 4px; font-size: 14px; }
.automation-intro p { margin: 0; color: var(--muted); font-size: 13px; }
.automation-create-panel { padding: 18px 20px; }
.automation-section-heading {
    display: flex; align-items: start; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    margin-bottom: 16px;
}
.automation-section-heading h2 { margin: 2px 0 4px; font-size: 20px; }
.automation-section-heading p { margin: 0; max-width: 62ch; color: var(--muted); font-size: 13px; }
.privacy-pill {
    display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px;
    border-radius: 999px; background: var(--surface-lavender-strong); color: var(--accent-lavender);
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
}
.automation-form { display: grid; gap: 16px; }
.automation-fieldset {
    margin: 0; padding: 16px; border: 1px solid var(--border-blue); border-radius: 14px; background: #fff;
}
.automation-fieldset legend {
    display: inline-flex; align-items: center; gap: 8px; padding: 0 6px; font-size: 14px; font-weight: 800;
}
.automation-fieldset legend span {
    width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; background: var(--surface-blue-strong); color: var(--accent-blue); font-size: 11px;
}
.automation-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.automation-grid .field { display: grid; gap: 6px; }
.automation-grid .field span { color: var(--muted); font-size: 12px; font-weight: 700; }
.automation-grid input,
.automation-grid select {
    min-height: 42px; padding: 9px 12px; border: 1px solid var(--border-blue);
    border-radius: 10px; background: #fff; font: inherit;
}
.automation-form-actions {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.automation-form-actions p { margin: 0; max-width: 52ch; color: var(--muted); font-size: 13px; }
.automation-list-panel { padding: 18px 20px; }
.automation-empty {
    display: grid; justify-items: start; gap: 6px; margin-top: 8px; padding: 18px;
    border: 1px dashed var(--border-blue); border-radius: 14px; background: var(--surface-blue);
}
.automation-empty span { color: var(--accent-blue); font-size: 22px; font-weight: 800; }
.automation-empty strong { font-size: 15px; }
.automation-empty p { margin: 0; color: var(--muted); font-size: 13px; }
.automation-table th { white-space: nowrap; }
.channel-pill,
.schedule-delivery-status {
    display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px;
    border-radius: 999px; background: var(--surface-blue-strong); color: var(--accent-blue);
    font-size: 11px; font-weight: 750;
}
.schedule-delivery-status.sent { background: var(--surface-sage-strong); color: var(--accent-sage); }
.schedule-delivery-status.paused { background: var(--surface-sand-strong); color: var(--accent-sand); }
.schedule-delivery-status.attention { background: var(--surface-rose-strong); color: var(--accent-rose); }
.schedule-delivery-status.scheduled { background: var(--surface-lavender-strong); color: var(--accent-lavender); }
.automation-table .table-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.automation-table-wrap { overflow-x: auto; }
.automation-fieldset .field.inactive { opacity: .5; }
.automation-fieldset .field.inactive select { cursor: not-allowed; }

@media (max-width: 1180px) {
    .participation-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .automation-intro,
    .automation-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .participation-kpis,
    .blocker-summary-grid,
    .automation-intro,
    .automation-grid { grid-template-columns: 1fr; }
    .participation-insight-row,
    .blocker-trend-row { grid-template-columns: 1fr; gap: 4px; }
    .saved-views-heading,
    .automation-section-heading { align-items: stretch; }
    .save-view-form,
    .automation-form-actions { width: 100%; }
    .save-view-form button,
    .automation-form-actions button { width: 100%; }
    .report-header-actions { width: 100%; justify-content: stretch; }
    .report-header-actions > * { flex: 1 1 150px; }
}

@media print {
    .participation-insight-chart,
    .blocker-trend { display: none !important; }
    .participation-insights,
    .blocker-insights { padding: 10pt; border-color: #aaa; background: #fff; box-shadow: none; }
    .participation-kpis { grid-template-columns: repeat(6, 1fr); gap: 5pt; }
    .participation-kpis > div,
    .blocker-summary-card { padding: 6pt; border-color: #aaa; background: #fff; }
    .participation-kpis strong,
    .blocker-summary-card strong { font-size: 14pt; }
    .trend-print-data { display: block !important; }
}

@media (max-width: 1180px) {
    .participation-lifecycle-grid { grid-template-columns: 1fr; }
    .participation-action-options { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .participation-action-options { grid-template-columns: 1fr; }
    .participation-lifecycle-actions { display: grid; grid-template-columns: 1fr; }
    .participation-lifecycle-actions button { width: 100%; }
}

/* Phase 5: reliability operations */
.operations-content { display: grid; gap: 18px; }
.operations-kicker {
    margin: 0 0 4px; color: var(--accent-blue); font-size: 11px; font-weight: 850;
    letter-spacing: .08em; text-transform: uppercase;
}
.operations-privacy-note {
    display: flex; align-items: flex-start; gap: 12px; padding: 15px 17px;
    border: 1px solid var(--border-lavender); border-radius: 14px;
    background: linear-gradient(135deg, #fff 15%, var(--surface-lavender));
}
.operations-privacy-note > span {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--surface-lavender-strong); color: var(--accent-lavender);
}
.operations-privacy-note strong { display: block; font-size: 14px; }
.operations-privacy-note p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.operations-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.operations-stat-grid article {
    padding: 16px; border: 1px solid var(--border-blue); border-radius: 14px;
    background: linear-gradient(145deg, #fff 20%, var(--surface-blue));
}
.operations-stat-grid article.pending { border-color: var(--border-sand); background: linear-gradient(145deg, #fff 20%, var(--surface-sand)); }
.operations-stat-grid article.sent { border-color: var(--border-sage); background: linear-gradient(145deg, #fff 20%, var(--surface-sage)); }
.operations-stat-grid article.dead { border-color: var(--border-rose); background: linear-gradient(145deg, #fff 20%, var(--surface-rose)); }
.operations-stat-grid span,
.operations-stat-grid small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.operations-stat-grid strong { display: block; margin: 6px 0 3px; font-size: 28px; letter-spacing: -.04em; }
.operations-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 14px; }
.scheduler-health-panel,
.retention-panel,
.delivery-audit-panel { padding: 18px 20px; }
.operations-section-heading {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    margin-bottom: 16px;
}
.operations-section-heading h2 { margin: 0; font-size: 20px; }
.operations-section-heading p:not(.operations-kicker) { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.scheduler-health-list { display: grid; gap: 9px; margin: 0; }
.scheduler-health-list div {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 11px 12px; border-radius: 10px; background: var(--surface-blue);
}
.scheduler-health-list dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.scheduler-health-list dd { margin: 0; font-size: 13px; font-weight: 800; }
.retention-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 10px; }
.retention-form label { display: grid; gap: 6px; }
.retention-form label > span,
.delivery-filter-form label > span { color: var(--muted); font-size: 11px; font-weight: 750; }
.retention-form label div { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.retention-form input,
.delivery-filter-form select {
    min-height: 42px; padding: 9px 11px; border: 1px solid var(--border-blue);
    border-radius: 10px; background: #fff; font: inherit;
}
.retention-form input { min-width: 0; border-radius: 10px 0 0 10px; }
.retention-form label small {
    min-height: 42px; display: inline-flex; align-items: center; padding: 0 10px;
    border: 1px solid var(--border-blue); border-left: 0; border-radius: 0 10px 10px 0;
    background: var(--surface-blue); color: var(--muted); font-size: 11px;
}
.retention-purge-form { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.retention-purge-form small { color: var(--muted); font-size: 11px; }
.delivery-audit-heading { align-items: end; }
.delivery-filter-form { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; }
.delivery-filter-form label { display: grid; gap: 5px; }
.operations-table-wrap { overflow-x: auto; }
.operations-table th { white-space: nowrap; }
.operations-table td { vertical-align: middle; }
.operations-table code {
    display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis;
    padding: 3px 7px; border-radius: 6px; background: var(--surface-blue); color: var(--ink);
}
.delivery-status {
    display: inline-flex; min-height: 27px; align-items: center; padding: 0 9px;
    border-radius: 999px; background: var(--surface-blue-strong); color: var(--accent-blue);
    font-size: 11px; font-weight: 800;
}
.delivery-status.sent { background: var(--surface-sage-strong); color: var(--accent-sage); }
.delivery-status.dead { background: var(--surface-rose-strong); color: var(--accent-rose); }
.delivery-status.retrying { background: var(--surface-sand-strong); color: var(--accent-sand); }
.delivery-status.cancelled { background: #eef1f5; color: #667085; }
.delivery-error { display: block; max-width: 150px; margin-top: 4px; color: var(--accent-rose); font-size: 10px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 16px; font-size: 12px; }
.pagination a { color: var(--accent-blue); font-weight: 750; text-decoration: none; }

@media (max-width: 1000px) {
    .operations-grid { grid-template-columns: 1fr; }
    .operations-stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .operations-stat-grid,
    .retention-form { grid-template-columns: 1fr; }
    .delivery-filter-form,
    .delivery-filter-form label,
    .delivery-filter-form select,
    .delivery-filter-form button { width: 100%; }
}

/* ================================================================
   Slack onboarding and workspace preferences
   ================================================================ */
.onboarding-content { display: grid; gap: 22px; max-width: none; }
.onboarding-appbar { align-items: center; }
.onboarding-kicker {
    margin: 0 0 5px;
    color: #526b9b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.onboarding-progress-pill {
    display: grid;
    min-width: 142px;
    padding: 13px 17px;
    border: 1px solid #d9e2f2;
    border-radius: 16px;
    background: #f5f8fd;
    color: #203864;
    text-align: right;
}
.onboarding-progress-pill strong { font-size: 23px; line-height: 1; }
.onboarding-progress-pill small { margin-top: 5px; color: #65728a; font-size: 11px; }
.onboarding-progress-pill.complete { border-color: #c7e5d7; background: #eef8f3; color: #277155; }
.onboarding-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 20px;
    padding: 27px 30px;
    border: 1px solid #cfdcf0;
    border-radius: 20px;
    background: linear-gradient(120deg, #f3f7fd 0%, #edf3fc 56%, #f4f1fb 100%);
    box-shadow: 0 12px 30px rgba(32,56,100,.07);
}
.onboarding-hero::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    right: -70px;
    top: -100px;
    border-radius: 50%;
    background: rgba(105,130,179,.11);
}
.onboarding-hero.is-complete { border-color: #c7e5d7; background: linear-gradient(120deg, #eff9f4, #f3f7fd); }
.onboarding-hero h2 { margin: 0 0 7px; color: #172a4d; font-size: clamp(22px, 2.4vw, 30px); }
.onboarding-hero p:not(.onboarding-kicker) { margin: 0; max-width: 810px; color: #58677e; line-height: 1.6; }
.onboarding-progress { position: relative; height: 10px; border-radius: 99px; background: rgba(32,56,100,.12); }
.onboarding-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #46679d, #758ec0); transition: width .45s ease; }
.onboarding-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(270px, .8fr); gap: 22px; align-items: stretch; }
.onboarding-checklist-panel,
.onboarding-health-panel,
.onboarding-test-panel,
.onboarding-preferences-panel { padding: 25px; border-color: #dce4f0; }
.onboarding-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.onboarding-section-heading h2 { margin: 0 0 5px; color: #1f355d; font-size: 22px; }
.onboarding-section-heading p:not(.onboarding-kicker) { margin: 0; color: #6a778c; font-size: 14px; line-height: 1.5; }
.onboarding-checklist { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.onboarding-checklist li {
    display: grid;
    grid-template-columns: 37px minmax(0,1fr) auto;
    align-items: center;
    gap: 13px;
    min-height: 67px;
    padding: 12px 13px;
    border: 1px solid #e3e8f1;
    border-radius: 13px;
    background: #fbfcfe;
}
.onboarding-checklist li.complete { border-color: #d6e9df; background: #f5faf7; }
.onboarding-step-marker {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e8eef8;
    color: #34527f;
    font-size: 13px;
    font-weight: 800;
}
.onboarding-checklist li.complete .onboarding-step-marker { background: #dff1e8; color: #287257; }
.onboarding-step-copy { display: grid; gap: 4px; min-width: 0; }
.onboarding-step-copy strong { color: #263b60; font-size: 15px; }
.onboarding-step-copy small { color: #6b778b; font-size: 12px; line-height: 1.45; }
.onboarding-help-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid #dcd8ec;
    border-radius: 18px;
    background: linear-gradient(145deg, #f7f5fb, #f0f4fb);
}
.onboarding-help-card h2 { margin: 0 0 9px; color: #25395e; }
.onboarding-help-card p { color: #657188; line-height: 1.6; }
.onboarding-help-card code {
    display: block;
    margin: 20px 0;
    padding: 15px 17px;
    border: 1px solid #d3dcec;
    border-radius: 11px;
    background: #fff;
    color: #203864;
    font-size: 16px;
    font-weight: 800;
}
.onboarding-help-icon { position: absolute; right: 22px; top: 18px; color: rgba(74,96,145,.13); font-size: 72px; font-weight: 900; }
.onboarding-help-note { padding-top: 14px; border-top: 1px solid #dddfea; font-size: 13px; }
.onboarding-health-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr); gap: 22px; }
.onboarding-health-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.onboarding-health-facts div { padding: 14px 15px; border: 1px solid #e3e8f1; border-radius: 11px; background: #fafbfd; }
.onboarding-health-facts dt { margin-bottom: 5px; color: #758096; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.onboarding-health-facts dd { margin: 0; color: #263a5d; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.onboarding-scope-panel { padding: 18px; border: 1px solid #e0e3ef; border-radius: 14px; background: #f8f7fc; }
.onboarding-scope-panel h3 { margin: 0 0 12px; color: #33466c; font-size: 15px; }
.onboarding-scope-list { display: flex; flex-wrap: wrap; gap: 7px; }
.onboarding-scope-list code,
.onboarding-missing-scopes code { padding: 5px 8px; border-radius: 7px; background: #e9eef8; color: #39577f; font-size: 11px; }
.onboarding-missing-scopes { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 15px; padding-top: 14px; border-top: 1px solid #dedfea; color: #8b5f31; font-size: 12px; }
.onboarding-missing-scopes code { background: #f6eadc; color: #82552a; }
.onboarding-health-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid #e5e9f0; }
.onboarding-health-actions small { color: #798497; font-size: 11px; }
.onboarding-health-actions button:disabled { cursor: not-allowed; opacity: .5; }
.onboarding-test-form { display: grid; grid-template-columns: minmax(260px,1fr) auto; align-items: end; gap: 15px; max-width: 850px; }
.onboarding-test-form .field { margin: 0; }
.onboarding-test-form .field small,
.onboarding-form-grid .field small { display: block; margin-top: 6px; color: #778398; font-size: 11px; line-height: 1.4; }
.onboarding-empty-action { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px dashed #ccd8e9; border-radius: 13px; background: #f7f9fc; }
.onboarding-empty-action > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #e8eef8; color: #365681; }
.onboarding-empty-action div { flex: 1; }
.onboarding-empty-action strong { color: #2a3e61; }
.onboarding-empty-action p { margin: 4px 0 0; color: #748095; font-size: 12px; }
.onboarding-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.onboarding-form-grid .field { margin: 0; }
.onboarding-reminder-defaults { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 23px 0 0; padding: 18px; border: 1px solid #dfe5ef; border-radius: 14px; background: #fafbfd; }
.onboarding-reminder-defaults legend { padding: 0 7px; color: #52617a; font-size: 12px; font-weight: 800; }
.onboarding-reminder-defaults label { display: flex; align-items: flex-start; gap: 11px; padding: 12px; border: 1px solid #e1e6ef; border-radius: 11px; background: #fff; }
.onboarding-reminder-defaults input { width: 19px; height: 19px; margin-top: 2px; accent-color: #365889; }
.onboarding-reminder-defaults span { display: grid; gap: 4px; }
.onboarding-reminder-defaults strong { color: #2e4265; font-size: 13px; }
.onboarding-reminder-defaults small { color: #758196; font-size: 11px; line-height: 1.4; }
.onboarding-form-actions { display: flex; align-items: center; gap: 13px; margin-top: 20px; }
.onboarding-form-actions small { color: #758196; font-size: 11px; }
.dashboard-readiness-link { display: flex; justify-content: center; margin-top: 12px; }
.dashboard-action-icon.action-setup { background: #eeeaf7; color: #67588c; }

@media (max-width: 1050px) {
    .onboarding-layout,
    .onboarding-health-grid { grid-template-columns: 1fr; }
    .onboarding-form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .onboarding-appbar { align-items: flex-start; }
    .onboarding-progress-pill { width: 100%; text-align: left; }
    .onboarding-hero,
    .onboarding-checklist-panel,
    .onboarding-health-panel,
    .onboarding-test-panel,
    .onboarding-preferences-panel { padding: 20px; }
    .onboarding-section-heading { flex-direction: column; }
    .onboarding-checklist li { grid-template-columns: 35px minmax(0,1fr); }
    .onboarding-checklist li .btn-ghost { grid-column: 2; justify-self: start; }
    .onboarding-health-facts,
    .onboarding-form-grid,
    .onboarding-reminder-defaults,
    .onboarding-test-form { grid-template-columns: 1fr; }
    .onboarding-empty-action { align-items: flex-start; flex-wrap: wrap; }
    .onboarding-empty-action .btn-primary { width: 100%; }
    .onboarding-form-actions { align-items: flex-start; flex-direction: column; }
}

/* Phase 7: operational alerts and questionnaire templates */
.operations-alert-stack { display: grid; gap: 9px; }
.operations-alert { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--border-sand); border-radius: 13px; background: var(--surface-sand); }
.operations-alert.critical { border-color: var(--border-rose); background: var(--surface-rose); }
.operations-alert.healthy { border-color: var(--border-sage); background: var(--surface-sage); }
.operations-alert-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #7a4e0c; background: #fff; font-size: 13px; font-weight: 900; box-shadow: 0 5px 14px rgba(42, 57, 85, .08); }
.operations-alert.critical .operations-alert-mark { color: #a23143; }
.operations-alert.healthy .operations-alert-mark { color: #24745a; }
.operations-alert strong { display: block; font-size: 13px; }
.operations-alert p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.standup-template-form { display: grid; gap: 15px; margin-top: 22px; padding: 20px; border: 1px solid var(--border-blue); border-radius: 15px; background: linear-gradient(145deg, #fff, var(--surface-blue)); }
.standup-template-heading h3 { margin: 2px 0 4px; font-size: 17px; }
.standup-template-heading p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.standup-template-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.standup-template-options label { position: relative; cursor: pointer; }
.standup-template-options input { position: absolute; opacity: 0; pointer-events: none; }
.standup-template-options label > span { min-height: 112px; display: grid; align-content: start; gap: 5px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.standup-template-options label:hover > span { transform: translateY(-2px); border-color: var(--border-blue); box-shadow: 0 8px 20px rgba(42, 57, 85, .08); }
.standup-template-options input:checked + span { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(52, 98, 170, .1); }
.standup-template-options strong { font-size: 13px; }
.standup-template-options small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.standup-template-options em { align-self: end; color: var(--accent-blue); font-size: 10px; font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.standup-template-fields { display: grid; grid-template-columns: 1fr 1.25fr auto; align-items: end; gap: 11px; }
.standup-template-fields .field { margin: 0; }
.standup-template-fields .field > span small { color: var(--muted); font-weight: 600; }
@media (max-width: 1000px) { .standup-template-options { grid-template-columns: 1fr 1fr; }.standup-template-fields { grid-template-columns: 1fr 1fr; }.standup-template-fields .btn-primary { grid-column: 1 / -1; } }
@media (max-width: 650px) { .operations-alert { grid-template-columns: auto 1fr; }.operations-alert .btn-ghost { grid-column: 2; justify-self: start; }.standup-template-options,.standup-template-fields { grid-template-columns: 1fr; }.standup-template-fields .btn-primary { grid-column: auto; } }

/* Simplified authentication page */
.simple-login-body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: #172a4d;
    background:
        radial-gradient(circle at 12% 10%, rgba(116, 151, 211, .18), transparent 31rem),
        radial-gradient(circle at 88% 88%, rgba(148, 181, 170, .17), transparent 28rem),
        linear-gradient(145deg, #f4f7fc 0%, #fbfcfe 54%, #f2f6fb 100%);
}
.simple-login-ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.simple-login-ambient span { position: absolute; border-radius: 50%; filter: blur(2px); animation: simple-login-drift 12s ease-in-out infinite alternate; }
.simple-login-ambient span:first-child { width: 22rem; height: 22rem; top: -12rem; right: -8rem; background: rgba(54, 91, 151, .1); }
.simple-login-ambient span:last-child { width: 18rem; height: 18rem; bottom: -10rem; left: -7rem; background: rgba(90, 145, 127, .1); animation-delay: -4s; }
.simple-login-nav {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0;
}
.simple-login-brand { display: flex; align-items: center; gap: 11px; color: #172a4d; text-decoration: none; }
.simple-login-brand img { width: 43px; height: 43px; border-radius: 13px; box-shadow: 0 8px 20px rgba(30, 58, 104, .16); }
.simple-login-brand span { display: grid; gap: 2px; }
.simple-login-brand strong { font-size: 16px; letter-spacing: -.01em; }
.simple-login-brand small { color: #718097; font-size: 10px; }
.simple-login-home { color: #526787; font-size: 13px; font-weight: 750; text-decoration: none; transition: color .18s ease, transform .18s ease; }
.simple-login-home:hover { color: #203864; transform: translateX(-2px); }
.simple-login-main {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: calc(100vh - 96px);
    padding: 24px 20px 64px;
}
.simple-login-card {
    width: min(100%, 480px);
    padding: 36px;
    border: 1px solid rgba(204, 216, 235, .95);
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 28px 70px rgba(31, 55, 96, .13), 0 4px 14px rgba(31, 55, 96, .05);
    backdrop-filter: blur(18px);
    animation: simple-login-enter .55s cubic-bezier(.2, .72, .25, 1) both;
}
.simple-login-heading { display: grid; justify-items: center; text-align: center; margin-bottom: 26px; }
.simple-login-logo-wrap { display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 17px; border-radius: 21px; background: #fff; box-shadow: 0 12px 30px rgba(32, 56, 100, .16); }
.simple-login-heading .login-logo { width: 58px; height: 58px; border-radius: 17px; object-fit: cover; }
.simple-login-heading p { margin: 0 0 7px; color: #5472a6; font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.simple-login-heading h1 { margin: 0; color: #172a4d; font-size: clamp(25px, 4vw, 31px); line-height: 1.2; letter-spacing: -.035em; }
.simple-login-heading > span:last-child { margin-top: 9px; color: #69778c; font-size: 14px; }
.simple-login-alerts:empty { display: none; }
.simple-login-alerts .login-alert { margin: 0 0 15px; }
.alert.warning { border-color: #ead8b8; color: #77531f; background: #fff9ec; }
.simple-login-card .login-method-label { margin: 0 0 12px; }
.simple-login-card .login-form { gap: 17px; }
.simple-login-card .login-form label { font-size: 14px; }
.simple-login-card .login-form input { min-height: 52px; font-size: 15px; }
.simple-login-card .login-submit { min-height: 52px; margin-top: 3px; font-size: 15px; }
.simple-login-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; padding-top: 19px; border-top: 1px solid #e6ebf3; color: #748197; font-size: 12px; }
.simple-login-footer a { color: #385d95; font-weight: 750; text-decoration: none; }
.simple-login-footer a:hover { text-decoration: underline; }
@keyframes simple-login-enter { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes simple-login-drift { to { transform: translate3d(20px, 12px, 0) scale(1.06); } }
@media (max-width: 580px) {
    .simple-login-nav { width: min(100% - 28px, 1120px); padding: 17px 0; }
    .simple-login-brand small { display: none; }
    .simple-login-main { align-items: start; min-height: auto; padding: 18px 14px 40px; }
    .simple-login-card { padding: 27px 21px; border-radius: 20px; }
    .simple-login-heading { margin-bottom: 22px; }
    .simple-login-heading > span:last-child { font-size: 13px; }
    .slack-btn { min-height: 54px; font-size: 15px; }
    .login-mobile-slack-note {
        display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start;
        gap: 10px; margin: 11px 0 17px; padding: 11px 12px;
        border: 1px solid #d9e4f1; border-radius: 11px; background: #f5f8fc;
        color: #62718a;
    }
    .login-mobile-slack-note > span {
        width: 32px; height: 32px; display: inline-flex; align-items: center;
        justify-content: center; border-radius: 9px; background: #e7eef8; color: #385d95;
    }
    .login-mobile-slack-note svg {
        width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.7;
        stroke-linecap: round; stroke-linejoin: round;
    }
    .login-mobile-slack-note p { margin: 0; font-size: 10px; line-height: 1.5; }
    .login-mobile-slack-note strong {
        display: block; margin-bottom: 2px; color: #334f79; font-size: 11px;
    }
    .simple-login-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .simple-login-card,
    .simple-login-ambient span { animation: none; }
}

/* Safe branded error responses */
.app-error-body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: #172a4d;
    background:
        radial-gradient(circle at 14% 12%, rgba(112, 146, 204, .18), transparent 30rem),
        radial-gradient(circle at 86% 88%, rgba(162, 188, 179, .18), transparent 28rem),
        linear-gradient(145deg, #f4f7fc, #fbfcfe 55%, #f1f5fb);
}
.app-error-ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.app-error-ambient span { position: absolute; border-radius: 50%; }
.app-error-ambient span:first-child { width: 24rem; height: 24rem; top: -15rem; right: -8rem; background: rgba(42, 78, 136, .08); }
.app-error-ambient span:last-child { width: 20rem; height: 20rem; bottom: -13rem; left: -7rem; background: rgba(73, 131, 111, .09); }
.app-error-nav {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0;
}
.app-error-main {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: calc(100vh - 96px);
    padding: 24px 20px 64px;
}
.app-error-card {
    width: min(100%, 570px);
    padding: 48px;
    border: 1px solid rgba(204, 216, 235, .95);
    border-radius: 26px;
    background: rgba(255, 255, 255, .95);
    text-align: center;
    box-shadow: 0 28px 70px rgba(31, 55, 96, .13), 0 4px 14px rgba(31, 55, 96, .05);
    backdrop-filter: blur(18px);
    animation: simple-login-enter .5s cubic-bezier(.2, .72, .25, 1) both;
}
.app-error-icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    margin: 0 auto 20px;
    border: 1px solid #d9e3f2;
    border-radius: 24px;
    color: #31598f;
    background: linear-gradient(145deg, #f7faff, #edf3fb);
    box-shadow: 0 12px 30px rgba(35, 70, 122, .12);
}
.app-error-icon svg { width: 36px; height: 36px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-error-eyebrow { margin: 0 0 9px; color: #5875a6; font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.app-error-card h1 { margin: 0; color: #172a4d; font-size: clamp(28px, 5vw, 38px); line-height: 1.16; letter-spacing: -.04em; }
.app-error-description { max-width: 450px; margin: 16px auto 0; color: #66748a; font-size: 15px; line-height: 1.65; }
.app-error-actions { display: flex; justify-content: center; gap: 11px; margin-top: 28px; }
.app-error-actions a { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.app-error-reference { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 32px; padding-top: 20px; border-top: 1px solid #e6ebf3; color: #8792a5; font-size: 11px; }
.app-error-reference strong { padding: 4px 8px; border-radius: 7px; color: #486387; background: #eef3fa; font-size: 11px; }
.app-error-reference small { font-size: 11px; }
@media (max-width: 580px) {
    .app-error-nav { width: min(100% - 28px, 1120px); padding: 17px 0; }
    .app-error-main { align-items: start; min-height: auto; padding: 34px 14px 40px; }
    .app-error-card { padding: 34px 22px; border-radius: 21px; }
    .app-error-actions { flex-direction: column; }
    .app-error-reference { flex-wrap: wrap; }
    .app-error-reference small { width: 100%; }
}

/* Self-service user profile */
.profile-content { display: grid; gap: 20px; max-width: none; }
.profile-kicker { margin: 0 0 5px; color: #5472a6; font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.profile-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 27px 30px;
    border: 1px solid #ccd9ec;
    border-radius: 21px;
    background: linear-gradient(120deg, #f2f7fd 0%, #eef4fc 52%, #f4f1fa 100%);
    box-shadow: 0 13px 31px rgba(32, 56, 100, .08);
}
.profile-hero::after { content: ""; position: absolute; width: 220px; height: 220px; right: -65px; top: -120px; border-radius: 50%; background: rgba(91, 121, 178, .1); }
.profile-identity { position: relative; z-index: 1; display: flex; align-items: center; gap: 17px; min-width: 0; }
.profile-avatar {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    overflow: visible;
    border: 4px solid #fff;
    border-radius: 23px;
    color: #456b9e;
    background: #e5edf8;
    box-shadow: 0 12px 28px rgba(37, 67, 113, .16);
}
.profile-avatar img { width: 100%; height: 100%; border-radius: 19px; object-fit: cover; }
.profile-avatar svg { width: 33px; height: 33px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.profile-avatar i { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; background: #52a17e; }
.profile-identity > span:last-child { min-width: 0; }
.profile-identity small { color: #6480a9; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.profile-identity h2 { overflow: hidden; margin: 5px 0 3px; color: #1d355b; font-size: clamp(24px, 3vw, 31px); text-overflow: ellipsis; white-space: nowrap; }
.profile-identity p { overflow: hidden; margin: 0; color: #69778d; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.profile-completion { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; flex: 0 0 auto; padding: 10px 15px 10px 10px; border: 1px solid rgba(117, 143, 183, .23); border-radius: 17px; background: rgba(255, 255, 255, .7); }
.profile-completion-ring {
    --profile-progress: 0%;
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #fff 58%, transparent 60%), conic-gradient(#4f72a8 var(--profile-progress), #dce5f1 0);
}
.profile-completion-ring strong { color: #244574; font-size: 15px; line-height: 1; }
.profile-completion-ring small { margin-top: 3px; color: #8390a3; font-size: 7px; text-transform: uppercase; }
.profile-completion > span:last-child { display: grid; gap: 4px; }
.profile-completion > span:last-child strong { color: #29466f; font-size: 13px; }
.profile-completion > span:last-child small { color: #748198; font-size: 10px; }
.profile-layout { display: grid; grid-template-columns: minmax(245px, .68fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.profile-summary-column { position: sticky; top: 92px; display: grid; gap: 16px; }
.profile-account-card,
.profile-required-card { padding: 22px; border-color: #dce4ef; }
.profile-account-card header h2,
.profile-required-card h2 { margin: 0; color: #263e64; font-size: 18px; }
.profile-account-card dl { display: grid; gap: 0; margin: 17px 0 0; }
.profile-account-card dl div { display: grid; gap: 4px; padding: 11px 0; border-bottom: 1px solid #e8ecf3; }
.profile-account-card dl div:last-child { border: 0; }
.profile-account-card dt { color: #8290a4; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.profile-account-card dd { overflow-wrap: anywhere; margin: 0; color: #30476b; font-size: 12px; font-weight: 700; }
.profile-security-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 13px; border: 1px solid #dce4f0; border-radius: 12px; color: #42628e; background: #f5f8fc; }
.profile-security-note > span { font-size: 10px; }
.profile-security-note p { display: grid; gap: 3px; margin: 0; color: #718097; font-size: 10px; line-height: 1.45; }
.profile-security-note strong { color: #385475; font-size: 11px; }
.profile-required-card { background: linear-gradient(145deg, #fff, #f6f8fc); }
.profile-required-card ul { display: grid; gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
.profile-required-card li { position: relative; padding-left: 20px; color: #53637b; font-size: 11px; }
.profile-required-card li::before { content: "✓"; position: absolute; left: 0; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; color: #2f775b; background: #e1f1e9; font-size: 8px; font-weight: 900; }
.profile-required-card > p:last-child { margin: 0; color: #7a879a; font-size: 10px; line-height: 1.5; }
.profile-settings-form { display: grid; gap: 16px; min-width: 0; }
.profile-form-section { padding: 25px; border-color: #dce4ef; }
.profile-section-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid #e6ebf2; }
.profile-section-icon { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #416696; background: #eaf1fa; }
.profile-section-icon.sage { color: #39755e; background: #e8f3ed; }
.profile-section-icon.lavender { color: #685c8c; background: #f0edf7; }
.profile-section-icon.sand { color: #8a6634; background: #f7f0e5; }
.profile-section-icon svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.profile-section-heading > span:last-child { display: block; }
.profile-section-heading small { color: #8190a5; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.profile-section-heading h2 { margin: 3px 0 4px; color: #283f64; font-size: 19px; }
.profile-section-heading p { margin: 0; color: #778499; font-size: 11px; line-height: 1.45; }
.profile-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.profile-field { min-width: 0; margin: 0; }
.profile-field-wide { grid-column: 1 / -1; }
.profile-field > span { display: flex; align-items: center; gap: 7px; }
.profile-field > span em { padding: 3px 6px; border-radius: 5px; color: #4f6f9d; background: #edf3fb; font-size: 7px; font-style: normal; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.profile-field > span small { color: #939dad; font-size: 9px; font-weight: 650; }
.profile-field input,
.profile-field select,
.profile-field textarea { width: 100%; font-size: 14px; }
.profile-field select { min-height: 46px; cursor: pointer; }
.profile-field textarea { resize: vertical; min-height: 105px; }
.profile-phone-fields { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(220px, 1.2fr); gap: 10px; }
.profile-phone-fields select,
.profile-phone-fields input { margin: 0; }
.profile-field > small { display: block; margin-top: 5px; color: #8792a4; font-size: 9px; }
.profile-field .field-error { color: #a13e51; font-size: 10px; font-weight: 700; }
.profile-field:has(.field-error) input,
.profile-field:has(.field-error) select,
.profile-field:has(.field-error) textarea { border-color: #dcaab3; background: #fffafa; }
.profile-save-bar { position: sticky; bottom: 14px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; border: 1px solid #cfdbea; border-radius: 15px; background: rgba(255, 255, 255, .94); box-shadow: 0 14px 35px rgba(33, 57, 96, .14); backdrop-filter: blur(16px); }
.profile-save-bar > span { display: grid; gap: 4px; }
.profile-save-bar strong { color: #2a4165; font-size: 12px; }
.profile-save-bar small { color: #7e899b; font-size: 9px; }
@media (max-width: 1050px) {
    .profile-layout { grid-template-columns: 1fr; }
    .profile-summary-column { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .profile-appbar { align-items: flex-start; }
    .profile-header-save { width: 100%; }
    .profile-hero { align-items: flex-start; flex-direction: column; padding: 22px; }
    .profile-completion { width: 100%; }
    .profile-summary-column,
    .profile-form-grid { grid-template-columns: 1fr; }
    .profile-phone-fields { grid-template-columns: 1fr; }
    .profile-field-wide { grid-column: auto; }
    .profile-form-section { padding: 20px; }
    .profile-save-bar { align-items: stretch; flex-direction: column; bottom: 8px; }
}

/* ============ SHARED MOBILE POLISH ============ */
@media (max-width: 760px) {
    .appbar {
        align-items: flex-start; flex-direction: column; gap: 13px;
        padding: 18px 17px;
    }
    .appbar > div:first-child { min-width: 0; }
    .appbar h1 { overflow-wrap: anywhere; font-size: 22px; }
    .appbar .sub { font-size: 13px; line-height: 1.5; }
    .appbar > .row,
    .dashboard-header-actions,
    .teams-header-actions,
    .standups-header-actions,
    .report-header-actions,
    .participation-header-actions,
    .admin-users-header-actions,
    .admin-workspaces-header-actions {
        width: 100%; display: flex; align-items: stretch; flex-wrap: wrap;
        justify-content: flex-start; gap: 8px;
    }
    .appbar > .row > a,
    .appbar > .row > button,
    .dashboard-header-actions > *,
    .teams-header-actions > *,
    .standups-header-actions > *,
    .report-header-actions > *,
    .participation-header-actions > *,
    .admin-users-header-actions > *,
    .admin-workspaces-header-actions > * {
        flex: 1 1 145px; display: inline-flex; align-items: center;
        justify-content: center; text-align: center;
    }
    .content { padding: 20px 16px 38px; }
    .panel { padding: 19px; margin-bottom: 17px; }
    .table-wrap,
    .participation-table-wrap,
    .automation-table-wrap,
    .operations-table-wrap,
    .exception-table-wrap,
    .admin-users-table-scroll {
        max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }
    input, select, textarea, button { max-width: 100%; }
    .row > input[type="text"],
    .row > select { min-width: 0; }
}

@media (max-width: 520px) {
    .content { padding: 16px 12px 32px; }
    .panel { padding: 16px; border-radius: 11px; }
    .appbar { padding: 16px 13px; }
    .appbar > .row,
    .dashboard-header-actions,
    .teams-header-actions,
    .standups-header-actions,
    .report-header-actions,
    .participation-header-actions,
    .admin-users-header-actions,
    .admin-workspaces-header-actions { flex-direction: column; }
    .appbar > .row > a,
    .appbar > .row > button,
    .dashboard-header-actions > *,
    .teams-header-actions > *,
    .standups-header-actions > *,
    .report-header-actions > *,
    .participation-header-actions > *,
    .admin-users-header-actions > *,
    .admin-workspaces-header-actions > * {
        width: 100%; flex-basis: auto;
    }
    .row > input[type="text"],
    .row > select,
    .row > button,
    .row > .btn-primary,
    .row > .btn-ghost { width: 100%; flex-basis: auto; }
    .btn-primary,
    .btn-ghost,
    .btn-danger { min-height: 46px; }
    .pagination { align-items: stretch; flex-direction: column; text-align: center; }
}

/* Final compact overrides intentionally follow all page-specific themes. */
.teams-summary,
.standups-summary { gap: 10px; margin-bottom: 16px; }
.teams-summary-card,
.standups-summary-card { min-height: 68px; padding: 12px 14px; gap: 10px; }
.teams-summary-icon,
.standups-summary-icon { width: 34px; height: 34px; border-radius: 9px; }
.teams-summary-card strong,
.standups-summary-card strong { font-size: 20px; }
.teams-grid,
.standups-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.team-directory-card,
.standup-directory-card { border-radius: 10px; }
.team-card-header,
.standup-card-header { min-height: 0; padding: 12px 14px; }
.team-card-body,
.standup-card-body { padding: 13px 14px; }
.team-card-body h3,
.standup-card-title-row h3 { font-size: 17px; }
.team-meta-grid,
.standup-meta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 12px; }
.team-meta-grid > div,
.standup-meta-grid > div { min-height: 0; padding: 9px 10px; }
.team-card-actions,
.standup-card-actions {
    display: flex; align-items: center; flex-wrap: wrap; padding: 10px 14px; gap: 8px;
}
.team-card-actions .btn-primary,
.team-card-actions .btn-ghost,
.standup-card-actions .btn-primary,
.standup-card-actions .btn-ghost { min-height: 36px; padding: 7px 10px; font-size: 13px; }
.team-open-action,
.standup-answer-action {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    color: #fff; background: var(--brand); white-space: nowrap;
}
.team-secondary-actions,
.standup-secondary-actions { display: flex; flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.standup-schedule { margin-top: 12px; padding: 10px; }
.team-form-layout { grid-template-columns: minmax(0, 820px); justify-content: center; }
.team-form-rail { display: none; }
.team-form-card-heading { grid-template-columns: 38px minmax(0, 1fr); padding: 15px 18px; }
.team-form-heading-icon { width: 38px; height: 38px; border-radius: 10px; }
.team-form-card-heading h2 { font-size: 19px; }
.team-form-card-heading p { display: none; }
.team-form-fields { gap: 16px; padding: 20px; }
.team-form-field input,
.team-form-field textarea { min-height: 44px; padding: 10px 12px; }
.team-form-field textarea { min-height: 76px; }
.team-status-section { padding: 15px 18px; }
.team-form-actions { padding: 12px 18px; }
.standup-editor-content > .panel { padding: 18px; margin-bottom: 14px; }
.question-card-body { gap: 12px; padding: 14px; }

@media (max-width: 680px) {
    .teams-grid,
    .standups-grid { grid-template-columns: 1fr; }
    .team-meta-grid,
    .standup-meta-grid { grid-template-columns: 1fr; }
}

.saved-views-panel { padding: 12px 14px; }
.saved-views-heading { display: block; }
.save-view-form { justify-content: flex-start; }
.editor-panel-heading > div { padding-left: 0; }
.editor-step { display: none; }

/* Team facts read as a compact status row rather than three nested cards. */
.team-meta-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0; margin-top: 12px; overflow: visible; border: 0; border-radius: 0; background: transparent;
}
.team-meta-grid > div {
    display: flex; min-width: 0; min-height: 0; flex-direction: column;
    padding: 5px 12px; background: transparent;
}
.team-meta-grid > div:first-child { padding-left: 0; }
.team-meta-grid > div:last-child { padding-right: 0; }
.team-meta-grid > div + div { border-left: 1px solid var(--line); }
.team-meta-grid dd {
    order: 1; overflow: hidden; margin: 0; color: var(--ink); font-size: 13px;
    font-weight: 750; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap;
}
.team-meta-grid dt {
    order: 2; margin-top: 3px; color: var(--muted); font-size: 9px;
    font-weight: 750; letter-spacing: .05em; text-transform: uppercase;
}
.team-meta-grid dt::before { display: none; }
.team-meta-grid .is-missing dd { color: var(--accent-rose); }

@media (max-width: 680px) {
    .team-meta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .team-meta-grid > div { padding-inline: 8px; }
    .team-meta-grid > div:first-child { padding-left: 0; }
    .team-meta-grid > div:last-child { padding-right: 0; }
    .team-meta-grid dd { font-size: 11px; }
}

/* Sidebar interaction: stable, quiet states with one clear active treatment. */
.sidebar { padding-inline: 12px; }
.sidebar-brand { margin-bottom: 18px; }
.sidebar-nav-section + .sidebar-nav-section { margin-top: 18px; }
.sidebar-nav-label { margin: 0 10px 7px; color: #9eb2ce; font-size: 9px; }
.sidebar-nav-list { gap: 3px; }
.nav-link {
    grid-template-columns: 30px minmax(0, 1fr); gap: 9px; min-height: 44px;
    padding: 6px 9px; border: 0; border-radius: 9px; color: #c9d6e8;
    transition: background-color .14s ease, color .14s ease, box-shadow .14s ease;
}
.nav-link::before { display: none; }
.nav-link .ic {
    width: 30px; height: 30px; border-radius: 8px; color: #9eb2ce; background: transparent;
}
.nav-link .ic svg { width: 17px; height: 17px; }
.nav-link-copy strong { font-size: 12px; font-weight: 650; }
.nav-link-copy small { display: none; }
.nav-link:hover {
    border: 0; color: #fff; background: rgba(255,255,255,.075); transform: none; box-shadow: none;
}
.nav-link:hover .ic { color: #e2eaf5; background: rgba(255,255,255,.07); }
.nav-link:active { color: #fff; background: rgba(255,255,255,.12); transform: scale(.985); }
.nav-link.active,
.nav-link.active:hover,
.nav-link[aria-current="page"] {
    border: 0; color: #172a49; background: #f8fafc;
    box-shadow: 0 1px 2px rgba(2,6,23,.18);
}
.nav-link.active .ic,
.nav-link.active:hover .ic,
.nav-link[aria-current="page"] .ic {
    color: #24518a; background: #e7effa;
}
.nav-link:focus-visible {
    outline: 2px solid #93c5fd; outline-offset: 2px; box-shadow: none;
}
.nav-link.active:focus-visible,
.nav-link[aria-current="page"]:focus-visible { outline-color: #bfdbfe; }

@media (max-width: 860px) {
    .mobile-nav-ready.mobile-nav-open .sidebar-nav {
        padding-top: 8px; border-top: 1px solid rgba(147,197,253,.14);
    }
    .mobile-nav-open .sidebar-nav-list { gap: 4px; }
    .mobile-nav-open .nav-link { min-height: 42px; }
    .sidebar-menu-toggle[aria-expanded="true"] {
        color: #172a49; background: #f8fafc; border-color: #f8fafc;
    }
    .sidebar-menu-toggle[aria-expanded="true"] .sidebar-menu-icon i { background: #24518a; }
}

/* Compact form typography; navigation typography is unchanged. */
form label,
.field > span,
.report-form label,
.filter-field > span,
.team-field-label { font-size: 13px; }
form input:not([type="checkbox"]):not([type="radio"]),
form select,
form textarea,
.field input:not([type="checkbox"]),
.field select,
.field textarea { font-size: 14px; }
form small,
.field > small,
.field-hint,
.field-error { font-size: 11px; }
form legend { font-size: 13px; }
form .btn-primary,
form .btn-ghost,
form .btn-danger,
form button { font-size: 13px; }
.profile-form-heading h2,
.automation-section-heading h2,
.editor-panel-heading h2 { font-size: 18px; }

.access-invite { padding: 18px !important; }
.access-invite-heading { margin-bottom: 14px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.access-invite-heading h2 { margin: 0; font-size: 17px; }
.access-invite-form {
    display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(170px, .8fr) auto;
    align-items: start; gap: 12px; margin-top: 0;
}
.access-invite-form .field { margin: 0; }
.access-invite-form .field > span { margin-bottom: 5px; }
.access-invite-form input,
.access-invite-form select { min-height: 42px; padding: 9px 11px; }
.access-invite-form small { display: block; margin-top: 5px; color: var(--muted); }
.access-invite-form .btn-primary { min-height: 42px; align-self: end; padding: 9px 14px; white-space: nowrap; }

@media (max-width: 900px) {
    .access-invite-form { grid-template-columns: 1fr 1fr; }
    .access-invite-form .btn-primary { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 560px) {
    .access-invite-form { grid-template-columns: 1fr; }
    .access-invite-form .btn-primary { grid-column: auto; width: 100%; }
}

/* Standup card actions: one primary task, then evenly aligned secondary routes. */
.standup-card-actions {
    display: grid; grid-template-columns: 1fr; align-items: stretch; gap: 7px;
    padding: 10px 14px;
}
.standup-answer-action {
    width: 100%; min-height: 36px; display: inline-flex; align-items: center;
    justify-content: center; padding: 7px 12px; font-size: 12px;
}
.standup-secondary-actions {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
}
.standup-secondary-actions .btn-ghost {
    min-width: 0; min-height: 34px; display: inline-flex; align-items: center;
    justify-content: center; padding: 6px 8px; overflow: hidden;
    font-size: 11px; text-align: center; text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 420px) {
    .standup-secondary-actions { grid-template-columns: 1fr; }
}

/* Team card actions mirror the standup card hierarchy. */
.team-card-actions {
    display: grid; grid-template-columns: 1fr; align-items: stretch; gap: 7px;
    padding: 10px 14px;
}
.team-open-action {
    width: 100%; min-height: 36px; display: inline-flex; align-items: center;
    justify-content: center; padding: 7px 12px; font-size: 12px;
}
.team-secondary-actions {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
}
.team-secondary-actions .btn-ghost {
    min-width: 0; min-height: 34px; display: inline-flex; align-items: center;
    justify-content: center; padding: 6px 8px; overflow: hidden;
    font-size: 11px; text-align: center; text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 380px) {
    .team-secondary-actions { grid-template-columns: 1fr; }
}

/* Professional compact account switcher pattern. */
.sidebar-foot { margin-top: 14px; padding-top: 12px; }
.sidebar-user-card {
    display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center;
    gap: 8px; padding: 7px; border-color: rgba(148,163,184,.14); border-radius: 10px;
    background: rgba(255,255,255,.04); box-shadow: none;
}
.sidebar-user-avatar {
    width: 32px; height: 32px; border-radius: 8px; background: rgba(147,197,253,.12);
}
.sidebar-user-avatar > svg { width: 16px; height: 16px; }
.sidebar-user-status { width: 8px; height: 8px; background: #86a9d4; }
.sidebar-user-copy { line-height: 1.15; }
.sidebar-user-copy strong { font-size: 10px; font-weight: 700; }
.sidebar-user-copy small { margin-top: 3px; color: #9eb2ce; font-size: 8px; }
.sidebar-logout-form {
    grid-column: 3; justify-self: end; margin: 0; padding: 0; border: 0;
}
.sidebar-logout {
    width: auto; min-height: 32px; display: inline-flex; align-items: center; justify-content: center;
    gap: 4px; padding: 3px 8px 3px 4px; border: 1px solid #dbe3ec; border-radius: 8px;
    color: #475569; background: rgba(255,255,255,.96); box-shadow: 0 2px 7px rgba(15,23,42,.08);
    transition: color .14s ease, border-color .14s ease, background-color .14s ease, box-shadow .14s ease;
}
.sidebar-logout-icon {
    width: 24px; height: 24px; border-radius: 6px; color: #be5163; background: #f8f1f3;
}
.sidebar-logout svg { width: 14px; height: 14px; }
.sidebar-logout-label { font-size: 10px; font-weight: 700; white-space: nowrap; }
.sidebar-logout:hover {
    border-color: #e6b8c1; color: #9f3447;
    background: #fff; box-shadow: 0 4px 12px rgba(125,50,70,.12); transform: none;
}
.sidebar-logout:hover .sidebar-logout-icon { color: #a83d50; background: #f4e3e7; }
.sidebar-logout:active { background: #fdf6f7; box-shadow: none; transform: translateY(1px); }
.sidebar-logout:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.appbar { padding-right: 28px; }

@media (max-width: 860px) {
    .sidebar-logout { width: 32px; min-height: 32px; padding: 3px; }
    .sidebar-logout-label { display: none; }
    .appbar { padding-right: 13px; }
}

/* Dashboard refresh: clear SaaS hierarchy with restrained, data-first cards. */
.dashboard-appbar { min-height: 82px; padding: 16px 28px; }
.dashboard-appbar h1 { font-size: 22px; letter-spacing: -.025em; }
.dashboard-context {
    display: flex; align-items: center; gap: 6px; margin: 3px 0 0;
    color: var(--muted); font-size: 11px;
}
.dashboard-context strong { color: #475569; font-weight: 700; }
.dashboard-content { padding-top: 20px; }
.dashboard-stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px !important; margin-bottom: 16px !important;
}
.dashboard-stat {
    min-height: 96px !important; display: flex; align-items: center; justify-content: space-between;
    gap: 14px; padding: 16px 17px !important; border: 1px solid #dfe6ee; border-radius: 11px;
    color: inherit; background: #fff !important; box-shadow: 0 1px 2px rgba(15,23,42,.035) !important;
    transform: none !important;
}
.dashboard-stat::before { display: none !important; }
.dashboard-stat:hover {
    border-color: #b9c9da; box-shadow: 0 5px 14px rgba(31,55,77,.07) !important;
}
.dashboard-stat-copy { display: flex; flex-direction: column; gap: 5px; }
.dashboard-stat-copy strong {
    order: 1; color: #17233b; font-size: 26px; font-weight: 750; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.dashboard-stat-label {
    order: 2; color: #64748b; font-size: 11px; font-weight: 650; text-transform: none;
}
.dashboard-stat-icon {
    width: 34px; height: 34px; display: inline-flex; flex: 0 0 34px;
    align-items: center; justify-content: center; border-radius: 9px;
    color: #315a89 !important; background: #edf3f9 !important;
    font-size: 10px !important; font-weight: 800; letter-spacing: .02em;
}
.dashboard-stat-arrow,
.dashboard-stat-hint { display: none; }
.dashboard-layout {
    display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .7fr);
    align-items: start; gap: 16px !important;
}
.dashboard-activity-panel,
.dashboard-quick-panel,
.dashboard-readiness {
    padding: 17px !important; border: 1px solid #dfe6ee !important;
    border-radius: 11px; background: #fff !important; box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.dashboard-section-heading {
    min-height: 38px; margin-bottom: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.dashboard-section-heading h2,
.dashboard-quick-panel h2,
.dashboard-readiness h2 { font-size: 15px; letter-spacing: -.01em; }
.dashboard-section-heading .btn-ghost {
    min-height: 32px; padding: 6px 10px; font-size: 11px; background: #fff;
}
.dashboard-activity-item {
    grid-template-columns: 34px minmax(0, 1fr); gap: 10px; min-height: 66px;
    padding: 10px 2px; border-radius: 0;
}
.dashboard-activity-item:hover { margin: 0; padding-inline: 2px; background: #f8fafc; }
.dashboard-activity-avatar { width: 32px; height: 32px; border-radius: 9px; font-size: 10px; }
.dashboard-activity-topline strong { font-size: 12px; }
.dashboard-activity-topline time,
.dashboard-activity-context { font-size: 10px; }
.dashboard-activity-preview,
.dashboard-activity-arrow { display: none; }
.dashboard-rail { display: grid; gap: 12px; }
.dashboard-action-list { margin-top: 9px; }
.dashboard-action-list > a { min-height: 42px; padding: 7px 2px; }
.dashboard-action-icon { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.dashboard-action-list strong { font-size: 11px; }
.dashboard-action-list > a > span:last-child { font-size: 11px; }
.dashboard-readiness-heading { margin-bottom: 8px; }
.dashboard-checklist li { padding: 7px 0; }
.dashboard-check-marker { width: 24px; height: 24px; font-size: 9px; }
.dashboard-checklist strong { font-size: 11px; }
.dashboard-checklist small { font-size: 9px; }
.dashboard-readiness-link { min-height: 34px; padding: 7px 9px; font-size: 10px; }
.dashboard-empty { padding: 38px 20px; }
.dashboard-empty-icon { width: 42px; height: 42px; font-size: 17px; }
.dashboard-empty h3 { font-size: 14px; }

@media (max-width: 1120px) {
    .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .dashboard-appbar { padding: 14px 13px; }
    .dashboard-header-actions { width: 100%; }
    .dashboard-header-actions > * { flex: 1; text-align: center; }
    .dashboard-stats { grid-template-columns: 1fr 1fr; gap: 8px !important; }
    .dashboard-stat { min-height: 82px !important; padding: 13px !important; }
    .dashboard-stat-copy strong { font-size: 22px; }
    .dashboard-stat-icon { width: 30px; height: 30px; flex-basis: 30px; }
    .dashboard-rail { grid-template-columns: 1fr; }
}

/* Shared application surfaces: stable hover, compact type, consistent sizing. */
.panel,
.team-directory-card,
.standup-directory-card,
.admin-workspace-card,
.response-card,
.question-row,
.participation-completion-card,
.summary-card,
.blocker-summary-card {
    border-radius: 10px; box-shadow: 0 1px 2px rgba(15,23,42,.035);
}
.card:hover,
.stat:hover,
.team-directory-card:hover,
.standup-directory-card:hover,
.admin-workspace-card:hover,
.editor-question-list .question-row:hover,
.standup-template-options label:hover > span {
    transform: none !important; box-shadow: 0 4px 12px rgba(31,55,77,.065) !important;
}
.team-directory-card:hover,
.standup-directory-card:hover,
.admin-workspace-card:hover,
.question-row:hover { border-color: #b9c9da; }

.appbar h1 { font-size: 21px; letter-spacing: -.02em; }
.content h2,
.section-heading h2,
.teams-section-heading h2,
.standups-section-heading h2,
.operations-section-heading h2,
.onboarding-section-heading h2,
.automation-section-heading h2,
.editor-panel-heading h2,
.profile-form-heading h2 { font-size: 17px; letter-spacing: -.012em; }
.content h3,
.team-card-body h3,
.standup-card-title-row h3 { font-size: 15px; }
.content p,
.muted { font-size: 12px; }

.teams-summary-card strong,
.standups-summary-card strong,
.admin-user-summary-card strong,
.admin-workspace-summary-card strong,
.summary-card strong,
.participation-stat strong,
.operations-stat-grid strong { font-size: 20px; }
.teams-summary-card small,
.standups-summary-card small,
.admin-user-summary-card small,
.admin-workspace-summary-card small,
.summary-card span { font-size: 10px; }

form label,
.field > span,
.filter-field > span,
.team-field-label { font-size: 12px; }
form input:not([type="checkbox"]):not([type="radio"]),
form select,
form textarea,
.field input:not([type="checkbox"]),
.field select,
.field textarea {
    min-height: 42px; padding: 9px 11px; border-radius: 8px; font-size: 13px;
}
form textarea,
.field textarea { line-height: 1.45; }
form small,
.field > small,
.field-hint,
.field-error { font-size: 10px; }
form .btn-primary,
form .btn-ghost,
form .btn-danger,
form button { min-height: 36px; padding: 7px 11px; border-radius: 8px; font-size: 12px; }

table { font-size: 13px; }
th { font-size: 10px; }
th, td { padding: 10px 11px; }
.pill,
.badge,
.tag { font-size: 10px; }

.btn-primary,
.btn-ghost,
.btn-danger { transition: background-color .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease; }
.btn-primary:hover,
.btn-ghost:hover,
.btn-danger:hover { transform: none; }

/* Standups: neutral directory cards and a focused response form. */
.standups-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.standup-directory-card {
    overflow: hidden; border: 1px solid #dfe6ee !important; border-radius: 10px;
    background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.035) !important;
    transition: border-color .14s ease, box-shadow .14s ease;
}
.standup-directory-card::before { display: none; }
.standup-directory-card:hover {
    border-color: #c4d0dc !important; box-shadow: 0 2px 7px rgba(31,55,77,.055) !important;
    transform: none !important;
}
.standup-card-header {
    min-height: 44px; padding: 10px 14px; border-bottom: 1px solid #edf1f5;
    background: #fbfcfd !important;
}
.standup-team-label { color: #64748b !important; font-size: 10px; font-weight: 650; }
.standup-team-label svg { width: 14px; height: 14px; }
.standup-card-body { padding: 14px; }
.standup-card-title-row h3 { color: #17233b; font-size: 15px; }
.standup-cadence {
    margin-top: 4px; padding: 2px 6px; color: #526b8e; background: #eef3f8;
    font-size: 9px; font-weight: 700;
}
.standup-schedule {
    grid-template-columns: 28px minmax(0, 1fr); gap: 8px; margin-top: 12px;
    padding: 8px 0; border: 0; border-top: 1px solid #edf1f5;
    border-bottom: 1px solid #edf1f5; border-radius: 0; background: transparent !important;
}
.standup-schedule-icon,
.standup-schedule.is-paused .standup-schedule-icon {
    width: 28px; height: 28px; border-radius: 7px; color: #526b8e; background: #eef3f8;
}
.standup-schedule-icon svg { width: 14px; height: 14px; }
.standup-schedule small { font-size: 9px; }
.standup-schedule strong { font-size: 11px; }
.standup-meta-grid { margin-top: 10px; }
.standup-meta-grid > div { padding: 3px 10px; }
.standup-meta-grid > div:first-child { padding-left: 0; }
.standup-meta-grid dt { font-size: 8px; }
.standup-meta-grid dd { font-size: 10px; }
.standup-card-actions { border-top: 1px solid #edf1f5; background: #fbfcfd !important; }

.standup-answer-context {
    display: flex; align-items: center; gap: 6px; margin: 3px 0 0;
    color: var(--muted); font-size: 11px;
}
.standup-answer-content { width: min(100%, 900px); margin-inline: auto; padding-top: 20px; }
.standup-response-panel { padding: 18px !important; }
.standup-response-panel > h2 { margin: 0 0 14px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.standup-response-form { display: grid; gap: 0; }
.standup-response-form .field {
    margin: 0; padding: 13px 0; border-bottom: 1px solid #edf1f5;
}
.standup-response-form .field:first-child { padding-top: 0; }
.standup-response-form .field > span { margin-bottom: 6px; color: #334155; font-size: 12px; }
.standup-response-form textarea { min-height: 82px; resize: vertical; }
.standup-response-form > .btn-primary {
    justify-self: end; min-width: 130px; margin-top: 14px;
}
.standup-answer-content > .panel:nth-of-type(2) { margin-top: 14px; }
.standup-answer-content .report { padding: 11px 12px; border-radius: 8px; box-shadow: none; }

@media (max-width: 900px) {
    .standups-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .standup-answer-appbar { align-items: stretch; }
    .standup-answer-appbar .row { width: 100%; }
    .standup-answer-appbar .row > * { flex: 1 1 auto; }
    .standup-response-form > .btn-primary { width: 100%; justify-self: stretch; }
}

/* Standups density adjustment. */
.standups-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.standup-card-header { min-height: 38px; padding: 8px 11px; }
.standup-card-body { padding: 11px; }
.standup-card-title-row h3 { font-size: 14px; }
.standup-schedule { margin-top: 9px; padding: 6px 0; }
.standup-schedule-icon,
.standup-schedule.is-paused .standup-schedule-icon { width: 24px; height: 24px; }
.standup-schedule strong { font-size: 10px; }
.standup-meta-grid { margin-top: 8px; }
.standup-meta-grid > div { padding: 2px 7px; }
.standup-card-actions { gap: 5px; padding: 8px 11px; }
.standup-answer-action { min-height: 32px; padding: 5px 9px; font-size: 11px; }
.standup-secondary-actions { gap: 5px; }
.standup-secondary-actions .btn-ghost { min-height: 30px; padding: 5px 6px; font-size: 10px; }

.standup-answer-content { width: min(100%, 760px); }
.standup-response-panel { padding: 14px !important; }
.standup-response-panel > h2 { margin-bottom: 10px; padding-bottom: 8px; font-size: 15px; }
.standup-response-form .field { padding: 10px 0; }
.standup-response-form .field > span { margin-bottom: 5px; font-size: 11px; }
.standup-response-form input,
.standup-response-form select,
.standup-response-form textarea { min-height: 38px; padding: 8px 10px; font-size: 12px; }
.standup-response-form textarea { min-height: 68px; }
.standup-response-form > .btn-primary { min-width: 116px; min-height: 34px; margin-top: 11px; }

/* Unified compact card system for authenticated application pages. */
.team-directory-card,
.admin-workspace-card,
.response-card,
.question-row,
.exception-card,
.participation-completion-card,
.profile-account-card,
.profile-required-card,
.team-form-card,
.onboarding-help-card,
.summary-card,
.blocker-summary-card,
.teams-summary-card,
.standups-summary-card,
.admin-user-summary-card,
.admin-workspace-summary-card {
    border: 1px solid #dfe6ee !important; border-radius: 10px !important;
    background: #fff !important; box-shadow: 0 1px 2px rgba(15,23,42,.035) !important;
}
.team-directory-card::before,
.admin-workspace-card::before,
.teams-summary-card::before,
.standups-summary-card::before,
.admin-user-summary-card::before,
.admin-workspace-summary-card::before { display: none !important; }

.team-directory-card:hover,
.admin-workspace-card:hover,
.response-card:hover,
.question-row:hover,
.exception-card:hover,
.summary-card:hover,
.blocker-summary-card:hover {
    border-color: #c4d0dc !important; box-shadow: 0 2px 7px rgba(31,55,77,.055) !important;
    transform: none !important;
}
.team-card-header,
.admin-workspace-card-header,
.question-card-header {
    min-height: 38px; padding: 8px 11px; border-bottom: 1px solid #edf1f5;
    background: #fbfcfd !important;
}
.team-card-body,
.admin-workspace-card-body,
.question-card-body { padding: 11px; }
.team-card-actions,
.admin-workspace-card-actions {
    padding: 8px 11px; border-top: 1px solid #edf1f5; background: #fbfcfd !important;
}
.team-card-body h3,
.admin-workspace-card h3,
.response-card h3 { font-size: 14px; }

.teams-summary-card,
.standups-summary-card,
.admin-user-summary-card,
.admin-workspace-summary-card,
.summary-card,
.blocker-summary-card {
    min-height: 64px !important; padding: 10px 12px !important;
}
.teams-summary-icon,
.standups-summary-icon,
.admin-user-summary-icon,
.admin-workspace-summary-icon,
.summary-icon { width: 30px; height: 30px; border-radius: 8px; }
.teams-summary-card strong,
.standups-summary-card strong,
.admin-user-summary-card strong,
.admin-workspace-summary-card strong,
.summary-card strong,
.blocker-summary-card strong { font-size: 18px; }

.response-card { padding: 11px; }
.response-card-head { margin-bottom: 8px; padding-bottom: 8px; }
.question-row { overflow: hidden; }
.question-card-body { gap: 9px; }
.exception-card { padding: 11px; }
.participation-completion-card { min-height: 0; padding: 14px; }
.profile-account-card,
.profile-required-card,
.onboarding-help-card { padding: 14px !important; }
.team-form-card-heading { padding: 12px 14px; background: #fbfcfd; }

.team-open-action { min-height: 32px; padding: 5px 9px; font-size: 11px; }
.team-secondary-actions .btn-ghost { min-height: 30px; padding: 5px 6px; font-size: 10px; }

/* Reports: compact, aligned filtering and saved-view controls. */
.reports-content { padding-top: 18px; }
.saved-views-panel {
    padding: 11px 13px !important; border-color: #dfe6ee !important;
    background: #fbfcfd !important;
}
.save-view-form { display: flex; align-items: end; gap: 7px; flex-wrap: nowrap; }
.save-view-form label { min-width: 0; width: min(240px, 100%); gap: 4px; }
.save-view-form label span { font-size: 10px; }
.save-view-form input { min-height: 36px; padding: 7px 9px; border-radius: 7px; font-size: 12px; }
.save-view-form .btn-primary { min-height: 36px; padding: 7px 10px; white-space: nowrap; }
.saved-view-list { gap: 7px; margin-top: 10px; }
.saved-view {
    padding: 8px 8px 8px 10px; border-color: #dfe6ee; border-radius: 8px;
    background: #fff;
}
.saved-view a strong { font-size: 11px; }
.saved-view a span { font-size: 9px; }
.saved-view-delete { width: 26px; height: 26px; font-size: 15px; }

.report-filter-panel { padding: 13px 14px !important; }
.report-filter-heading {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 11px; padding-bottom: 9px; border-bottom: 1px solid #edf1f5;
}
.report-filter-heading h2 { margin: 0; font-size: 14px; }
.report-filter-heading a { color: #64748b; font-size: 10px; font-weight: 650; text-decoration: none; }
.report-filter-heading a:hover { color: var(--brand); text-decoration: underline; }
.filter-grid {
    display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: 9px 10px;
}
.filter-field > span,
.view-switcher legend {
    margin-bottom: 4px; color: #64748b; font-size: 9px;
    font-weight: 700; letter-spacing: .025em; text-transform: none;
}
.filter-field select,
.filter-field input {
    min-height: 36px; padding: 7px 9px; border-radius: 7px; font-size: 12px;
}
.filter-size { max-width: none; }
.filter-footer {
    align-items: center; gap: 10px; margin-top: 11px; padding-top: 10px;
}
.view-switcher legend { margin-bottom: 4px; }
.view-switcher label {
    min-height: 32px; padding: 5px 9px; border-radius: 0; font-size: 10px;
}
.filter-actions .btn-primary { min-height: 34px; padding: 6px 11px; font-size: 11px; }

.report-summary { gap: 9px; margin-bottom: 14px; }
.report-summary .summary-card { min-height: 58px !important; padding: 9px 11px !important; gap: 9px; }
.report-summary .summary-icon { width: 28px; height: 28px; flex-basis: 28px; font-size: 12px; }
.report-summary .summary-card strong { font-size: 17px; }
.report-summary .summary-card div span { margin-top: 2px; font-size: 9px; }

@media (max-width: 1050px) {
    .filter-grid { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
}
@media (max-width: 720px) {
    .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .save-view-form { flex-wrap: wrap; }
    .report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
    .filter-grid { grid-template-columns: 1fr; }
    .filter-footer { align-items: stretch; flex-direction: column; }
    .filter-actions .btn-primary { width: 100%; }
    .report-summary { grid-template-columns: 1fr 1fr; }
}

/* Participants: compact channel and member selection. */
.participants-content {
    width: min(100%, 920px); margin-inline: auto; padding-top: 18px;
}
.participants-context {
    margin: 3px 0 0; color: var(--muted); font-size: 11px; font-weight: 600;
}
.participants-content .panel {
    padding: 14px !important; border: 1px solid #dfe6ee !important;
    border-radius: 10px !important; background: #fff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .035) !important;
}
.participants-content .panel + .panel { margin-top: 12px; }
.participants-content .panel > h2::before,
.participants-content .participants-section-heading h2::before { display: none !important; }
.participants-section-heading {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 11px; padding-bottom: 9px; border-bottom: 1px solid #edf1f5;
}
.participants-section-heading h2 { margin: 0; font-size: 14px; }
.participants-section-note,
.participants-count {
    color: #64748b; font-size: 9px; font-weight: 700;
}
.participants-count {
    padding: 3px 7px; border: 1px solid #dfe6ee; border-radius: 999px; background: #f8fafc;
}
.participants-channel-form {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px;
}
.participants-channel-form label { display: grid; gap: 4px; min-width: 0; }
.participants-channel-form label > span {
    color: #64748b; font-size: 9px; font-weight: 700;
}
.participants-channel-form select {
    width: 100%; min-height: 36px; padding: 7px 9px; border-radius: 7px; font-size: 12px;
}
.participants-channel-form .btn-primary,
.participants-form-actions .btn-primary {
    min-height: 36px; padding: 7px 11px; font-size: 11px; white-space: nowrap;
}
.participants-inline-empty {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: 10px; padding: 8px 10px; border-radius: 7px; background: #f8fafc;
    color: #64748b; font-size: 10px;
}
.participants-inline-empty .btn-ghost { min-height: 29px; padding: 5px 8px; font-size: 10px; }
.participants-empty { margin: 2px 0 0; color: #64748b; font-size: 11px; }
.participants-picker {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px; margin: 0; padding: 0;
}
.participants-picker li + li { border-top: 0; }
.participants-picker label {
    display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 7px 9px;
    border: 1px solid #e3e9ef; border-radius: 8px; background: #fff;
    font-size: 11px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.participants-picker label:hover {
    border-color: #c5d1dc; background: #fbfcfd; transform: none; box-shadow: none;
}
.participants-picker label:has(input:checked) {
    border-color: #a9c2d5; background: #f6fafc;
}
.participants-picker input[type="checkbox"] {
    width: 16px; height: 16px; flex: 0 0 16px; margin: 0;
}
.participants-picker .avatar-img { width: 28px; height: 28px; flex: 0 0 28px; }
.participant-identity {
    display: grid; gap: 1px; min-width: 0; flex: 1 1 auto;
}
.participants-picker .participant-identity .name {
    overflow: hidden; color: #263746; font-size: 11px; font-weight: 700;
    text-overflow: ellipsis; white-space: nowrap;
}
.participant-identity > span:not(.name) { color: #8a98a6; font-size: 8px; }
.participants-picker .pill {
    max-width: 105px; margin-left: auto; padding: 3px 6px; overflow: hidden;
    border-color: #e2e8f0; background: #f8fafc; color: #64748b;
    font-size: 8px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap;
}
.participants-form-actions {
    display: flex; justify-content: flex-end; margin-top: 11px; padding-top: 10px;
    border-top: 1px solid #edf1f5;
}
.participants-empty-panel { max-width: 560px; }
.participants-empty-panel > h2 { margin: 0 0 5px; font-size: 14px; }
.participants-empty-panel > p { margin: 0 0 11px; font-size: 11px; }
.participants-empty-panel .btn-primary { min-height: 34px; padding: 6px 10px; font-size: 11px; }

@media (max-width: 700px) {
    .participants-picker { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .participants-channel-form { grid-template-columns: 1fr; }
    .participants-channel-form .btn-primary,
    .participants-form-actions .btn-primary { width: 100%; }
    .participants-inline-empty { align-items: stretch; flex-direction: column; }
}

/* Shared form type scale. Keep every application form visually consistent. */
:root {
    --form-label-size: 12px;
    --form-control-size: 14px;
    --form-help-size: 11px;
    --form-action-size: 12px;
    --form-control-height: 40px;
}

.main form label,
.main form .field > span,
.main form .team-field-label,
.main form .filter-field > span,
.main form .profile-field > span,
.main form .participation-reason-field > span,
.main form .participation-status-filter > span,
.main form legend,
.main .view-switcher legend {
    font-size: var(--form-label-size) !important;
    line-height: 1.35;
}

.main form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.main form select,
.main form textarea {
    min-height: var(--form-control-height) !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    font-size: var(--form-control-size) !important;
    line-height: 1.4;
}

.main form input::placeholder,
.main form textarea::placeholder { font-size: inherit; }

.main form small,
.main form .field-hint,
.main form .field-error,
.main form .form-hint,
.main form .form-help,
.main form .form-error,
.main form .muted,
.main form em.muted,
.main form .team-field-help,
.main form .profile-field > small,
.main form .automation-form-actions p {
    font-size: var(--form-help-size) !important;
    line-height: 1.4;
}

.main form .btn-primary,
.main form .btn-ghost,
.main form .btn-danger,
.main form button {
    min-height: 36px;
    font-size: var(--form-action-size) !important;
    line-height: 1.25;
}

.main form input[type="checkbox"],
.main form input[type="radio"] {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

/* Form-specific text that previously fell below the shared scale. */
.main .filter-field > span,
.main .participants-channel-form label > span,
.main .save-view-form label > span,
.main .view-switcher label,
.main .participants-picker label,
.main .participants-picker .participant-identity .name {
    font-size: var(--form-label-size) !important;
}

.main .participants-picker .participant-identity > span:not(.name),
.main .participants-picker .pill {
    font-size: var(--form-help-size) !important;
}

/* Login is outside the application shell but follows the same field typography. */
.login-form label { font-size: 12px !important; }
.login-form input,
.login-form select,
.login-form textarea { font-size: 13px !important; }
.login-form small,
.login-form .field-error { font-size: 10px !important; }
.login-form button { font-size: 12px !important; }

/* Global action feedback toasts. */
.toast-region {
    position: fixed; z-index: 3000; top: 16px; right: 16px;
    display: grid; width: min(350px, calc(100vw - 24px)); gap: 8px;
    pointer-events: none;
}
.app-toast {
    --toast-accent: #2f7d5b;
    position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) 24px;
    align-items: start; gap: 9px; overflow: hidden; padding: 11px 10px 12px;
    border: 1px solid #dce5e1; border-left: 3px solid var(--toast-accent);
    border-radius: 9px; background: rgba(255, 255, 255, .98); color: #25364a;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .08);
    opacity: 0; pointer-events: auto; transform: translateY(-8px) scale(.985);
    transition: opacity .18s ease, transform .18s ease;
}
.app-toast.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.app-toast.is-leaving { opacity: 0; transform: translateX(12px) scale(.985); }
.app-toast-error { --toast-accent: #b5475a; border-color: #eed9dd; }
.app-toast-warning { --toast-accent: #a66a14; border-color: #eddfc9; }
.app-toast-icon {
    display: grid; place-items: center; width: 28px; height: 28px;
    border-radius: 50%; background: #e7f3ed; color: var(--toast-accent);
    font-size: 12px; font-weight: 850;
}
.app-toast-error .app-toast-icon { background: #f8e9ec; }
.app-toast-warning .app-toast-icon { background: #f8efe1; }
.app-toast-copy { display: grid; gap: 2px; min-width: 0; padding-top: 1px; }
.app-toast-copy strong { color: #1f3044; font-size: 11px; font-weight: 750; line-height: 1.35; }
.app-toast-copy > span {
    color: #66768a; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere;
}
.app-toast-close {
    display: grid; place-items: center; width: 24px; height: 24px; padding: 0;
    border: 0; border-radius: 6px; background: transparent; color: #8a97a7;
    font: inherit; font-size: 17px; line-height: 1; cursor: pointer;
}
.app-toast-close:hover { background: #f1f4f7; color: #42546a; }
.app-toast-close:focus-visible { outline: 2px solid #8fb3d1; outline-offset: 1px; }
.app-toast-progress {
    position: absolute; right: 0; bottom: 0; left: 0; height: 2px;
    background: var(--toast-accent); transform-origin: left;
    animation: app-toast-progress var(--toast-duration) linear forwards;
}
@keyframes app-toast-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (max-width: 520px) {
    .toast-region { top: 10px; right: 10px; left: 10px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .app-toast { transition: opacity .01ms linear; }
    .app-toast-progress { animation: none; }
}

/* Standup settings workspace: one clear task at a time. */
.standup-editor-context {
    margin: 3px 0 0; color: var(--muted); font-size: 11px; font-weight: 600;
}
.standup-editor-content { width: min(100%, 1280px); margin-inline: auto; padding-top: 18px; }
.editor-workspace {
    display: grid; grid-template-columns: 178px minmax(0, 1fr);
    align-items: start; gap: 13px;
}
.editor-workspace .editor-section-nav {
    position: sticky; top: 16px; z-index: 6; display: grid; width: 100%; gap: 3px;
    padding: 6px; border: 1px solid #dfe6ee; border-radius: 10px;
    background: rgba(255, 255, 255, .97); box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
    backdrop-filter: blur(10px);
}
.editor-workspace .editor-section-nav a {
    display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 8px;
    min-height: 39px; padding: 6px 8px; border: 1px solid transparent; border-radius: 7px;
    color: #64748b; text-decoration: none;
}
.editor-workspace .editor-section-nav a > span {
    display: grid; place-items: center; width: 24px; height: 24px;
    border-radius: 6px; background: #f1f4f7; color: #7a8898;
    font-size: 8px; font-weight: 800;
}
.editor-workspace .editor-section-nav a strong { font-size: 11px; font-weight: 700; }
.editor-workspace .editor-section-nav a:hover { background: #f8fafc; color: #334155; }
.editor-workspace .editor-section-nav a[aria-selected="true"] {
    border-color: #d3e0ea; background: #eef5fa; color: #214d70;
}
.editor-workspace .editor-section-nav a[aria-selected="true"] > span {
    background: #dbeaf5; color: #245d88;
}
.editor-workspace .editor-section-nav a:focus-visible {
    outline: 2px solid #8fb3d1; outline-offset: 1px;
}
.editor-workspace-body { min-width: 0; }
.editor-workspace-body > .editor-panel {
    margin: 0 !important; padding: 16px !important; border: 1px solid #dfe6ee !important;
    border-radius: 10px !important; background: #fff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .035) !important;
}
.editor-workspace-body > .editor-panel[hidden] { display: none !important; }
.editor-workspace-body .editor-panel-heading {
    align-items: center; gap: 14px; margin-bottom: 14px; padding-bottom: 11px;
    border-bottom-color: #edf1f5;
}
.editor-workspace-body .editor-panel-heading > div { padding-left: 0; }
.editor-workspace-body .editor-panel-heading h2 { font-size: 15px; letter-spacing: -.01em; }
.editor-workspace-body .editor-panel-heading p:last-child { margin-top: 4px; font-size: 10px; }
.editor-workspace-body .editor-kicker,
.editor-workspace-body .editor-step { display: none; }
.editor-workspace-body .editor-form-grid { gap: 10px; }
.editor-workspace-body .editor-question-list { gap: 9px; }
.editor-workspace-body .question-row:hover { transform: none !important; }
.editor-workspace-body .schedule-group { padding: 14px; border-radius: 9px; }
.editor-workspace-body .schedule-group legend { font-size: 12px; }
.editor-workspace-body .exception-summary-grid { gap: 8px; margin-bottom: 10px; }
.editor-workspace-body .exception-summary { padding: 10px 12px; border-radius: 8px; }
.editor-workspace-body .exception-summary strong { font-size: 20px; }
.editor-workspace-body .exception-section-grid { gap: 10px; }
.editor-workspace-body .exception-card { margin-top: 10px; border-radius: 9px; }
.editor-workspace-body .editor-archive-panel { min-height: 130px; }

@media (max-width: 900px) {
    .editor-workspace { grid-template-columns: 1fr; }
    .editor-workspace .editor-section-nav {
        position: static; display: flex; overflow-x: auto; scrollbar-width: thin;
    }
    .editor-workspace .editor-section-nav a {
        flex: 0 0 auto; grid-template-columns: 22px auto; min-height: 36px; white-space: nowrap;
    }
    .editor-workspace .editor-section-nav a > span { width: 21px; height: 21px; }
}
@media (max-width: 560px) {
    .editor-workspace-body > .editor-panel { padding: 13px !important; }
    .editor-workspace-body .editor-panel-heading { align-items: flex-start; }
}

/* Standard page actions: creation is primary; viewing is secondary. */
.app-action {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
    min-height: 34px !important; padding: 6px 10px !important; border-radius: 8px !important;
    font-size: 11px !important; font-weight: 700; line-height: 1.25;
    text-decoration: none; white-space: nowrap; transform: none !important;
}
.app-action-create::before {
    display: grid; place-items: center; width: 17px; height: 17px;
    border-radius: 5px; background: rgba(255, 255, 255, .16);
    content: "+"; font-size: 14px; font-weight: 500; line-height: 1;
}
.app-action-view::after {
    content: "→"; color: currentColor; font-size: 12px; line-height: 1;
    transition: transform .14s ease;
}
.app-action-view:hover::after { transform: translateX(2px); }
.app-action-back::before {
    display: grid; place-items: center; width: 17px; height: 17px;
    border-radius: 5px; background: #f1f4f7; color: #526579;
    font-size: 11px; font-weight: 750; line-height: 1;
}
.app-action-back::before { content: "←"; }
.app-action-icon {
    display: grid; place-items: center; width: 17px; height: 17px;
    border-radius: 5px; background: #f1f4f7; color: #526579;
}
.app-action-icon svg {
    width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.app-action:hover { transform: none !important; }
.app-action-compact {
    min-height: 30px !important; padding: 5px 8px !important; font-size: 10px !important;
}
.standup-editor-actions { align-items: center; gap: 7px; }
.report-header-actions { gap: 6px; }
.report-header-actions .app-action {
    min-height: 34px !important; padding: 6px 9px !important;
    border-color: #d8e0e8; background: #fff;
}

@media (max-width: 560px) {
    .dashboard-header-actions .app-action,
    .teams-header-actions .app-action,
    .standups-header-actions .app-action,
    .standup-editor-actions .app-action { width: 100%; }
}

/* Public home refresh: confident color, concise hierarchy, quiet motion. */
.landing-body {
    --landing-navy: #102943;
    --landing-navy-deep: #0b1f34;
    --landing-blue: #315f8f;
    --landing-teal: #4ca39b;
    --landing-teal-soft: #dcefeb;
    --landing-accent: #42b3a7;
    --landing-accent-soft: #e1f4f1;
    --landing-cream: #f7f2e9;
    --landing-mist: #eaf2f5;
    background: var(--landing-cream); color: #183047;
}
.landing-nav-wrap {
    border-bottom-color: rgba(255,255,255,.1); background: rgba(16,41,67,.97);
    box-shadow: none;
}
.landing-brand { color: #f8fbff; }
.landing-brand small { color: #9fb6c9; }
.landing-brand img { border-color: rgba(255,255,255,.22); box-shadow: none; }
.landing-nav-links a { color: #bed0dd; }
.landing-nav-links a:hover { color: #fff; }
.landing-link-button { color: #d8e5ee; }
.landing-primary-button {
    border-color: #42b3a7; color: #fff;
    background: var(--landing-accent); box-shadow: 0 8px 20px rgba(6,20,34,.2);
}
.landing-primary-button:hover {
    border-color: #55c3b8; color: #fff; background: #319b91;
    transform: none; box-shadow: 0 10px 24px rgba(6,20,34,.24);
}
.landing-secondary-button:hover { transform: none; }
.landing-hero {
    min-height: 650px; color: #fff;
    background:
        radial-gradient(circle at 86% 20%, rgba(76,163,155,.34), transparent 28rem),
        linear-gradient(135deg, var(--landing-navy-deep) 0%, var(--landing-navy) 48%, #244e62 100%);
}
.landing-hero::before {
    opacity: .28;
    background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 48px 48px;
}
.landing-hero-glow {
    width: 520px; height: 520px; right: -100px; top: -180px;
    background: radial-gradient(circle, rgba(66,179,167,.3), transparent 67%);
}
.landing-hero-grid { gap: 58px; padding-block: 76px 84px; }
.landing-eyebrow { margin-bottom: 14px; color: #37746f; letter-spacing: .075em; }
.landing-eyebrow > span { background: var(--landing-teal); }
.landing-hero .landing-eyebrow { color: #8fd0c8; }
.landing-hero .landing-eyebrow > span { background: #8fd0c8; }
.landing-hero h1 {
    max-width: 610px; color: #fff; font-size: clamp(45px, 5.2vw, 66px); line-height: 1.04;
}
.landing-hero h1 em { color: #8ee0d7; font-family: inherit; font-weight: 720; }
.landing-hero-lead {
    max-width: 570px; margin: 21px 0 25px; color: #c5d5e1; font-size: 16px; line-height: 1.65;
}
.landing-hero .landing-secondary-button {
    border-color: rgba(255,255,255,.3); color: #edf5fa; background: rgba(255,255,255,.07);
}
.landing-hero .landing-secondary-button:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.12); }
.landing-assurances { margin-top: 20px; color: #bfd0dc; }
.landing-assurances span { color: #8fd0c8; }
.landing-product-stage {
    min-height: 500px; overflow: hidden; border: 1px solid rgba(255,255,255,.14);
    border-radius: 28px; background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(76,163,155,.14));
    box-shadow: inset 0 1px rgba(255,255,255,.1);
}
.landing-stage-orbit { display: none; }
.landing-slack-card,
.landing-dashboard-card {
    border-color: rgba(211,224,233,.92); background: #fff; transform: none;
    animation: none; box-shadow: 0 22px 48px rgba(2,15,28,.28);
}
.landing-slack-card { left: 28px; top: 32px; }
.landing-dashboard-card { right: 28px; bottom: 32px; }
.landing-stage-chip { box-shadow: 0 10px 24px rgba(2,15,28,.2); }
.landing-stage-chip.chip-ready { right: 18px; top: 16px; }
.landing-stage-chip.chip-private { display: none; }
.landing-proof-strip { padding: 20px 0; border: 0; background: var(--landing-teal-soft); }
.landing-proof-strip p { color: #41746f; }
.landing-proof-strip div div { color: #254b4b; }
.landing-proof-strip i { background: var(--landing-teal); }
.landing-section { padding: 86px 0; }
.landing-section-heading { margin-bottom: 38px; }
.landing-section h2,
.landing-final-cta h2 { color: #17354e; font-size: clamp(31px, 3.6vw, 44px); }
.landing-section-heading > p:last-child { margin-top: 12px; color: #687888; font-size: 14px; }
.landing-how { background: var(--landing-cream); }
.landing-step-grid { gap: 12px; }
.landing-step-grid article {
    min-height: 210px; padding: 21px; border: 0; border-radius: 14px;
    background: #fff; box-shadow: 0 1px 2px rgba(15,35,52,.06);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.landing-step-grid article:nth-child(1) { background: #e5eff7; }
.landing-step-grid article:nth-child(2) { background: #eee8f2; }
.landing-step-grid article:nth-child(3) { background: #deeee7; }
.landing-step-grid article:nth-child(4) { background: #f4e7d8; }
.landing-step-grid article:hover { transform: none; box-shadow: 0 4px 12px rgba(28,53,72,.08); }
.landing-step-grid article > span { color: rgba(23,53,78,.13); font-size: 31px; }
.landing-step-icon { margin-bottom: 25px; background: rgba(255,255,255,.62) !important; }
.landing-step-grid h3 { margin-bottom: 7px; color: #223e55; font-size: 15px; }
.landing-step-grid p { color: #596f7d; font-size: 12px; }
.landing-capabilities { background: var(--landing-mist); }
.landing-capability-layout { gap: 58px; }
.landing-capability-copy > p:not(.landing-eyebrow) { margin: 15px 0 23px; }
.landing-feature-list { gap: 6px; }
.landing-feature-list article {
    padding: 12px; border: 1px solid rgba(49,95,143,.09); background: rgba(255,255,255,.54);
}
.landing-feature-list article:hover { background: rgba(255,255,255,.78); }
.landing-insight-panel {
    border: 1px solid rgba(49,95,143,.14); border-radius: 18px; background: #fff;
    box-shadow: 0 20px 45px rgba(25,54,77,.13); transform: none;
}
.landing-ring { background: conic-gradient(var(--landing-teal) 0 86%, #e7edf0 86% 100%); }
.landing-security {
    background:
        radial-gradient(circle at 90% 8%, rgba(76,163,155,.22), transparent 30rem),
        linear-gradient(135deg, #102943, #0a1d31);
}
.landing-security-points article { min-height: 130px; }
.landing-final-cta { padding: 68px 0; background: var(--landing-accent-soft); }
.landing-final-cta .landing-container {
    padding: 40px 44px; border: 0; border-radius: 20px;
    background: linear-gradient(120deg, #8bd8d0, var(--landing-accent));
    box-shadow: 0 18px 38px rgba(19,83,78,.15);
}
.landing-final-cta .landing-eyebrow { color: #174d49; }
.landing-final-cta .landing-eyebrow > span { background: #174d49; }
.landing-final-cta p:not(.landing-eyebrow) { color: #234f4c; }
.landing-final-cta .landing-primary-button { border-color: var(--landing-navy); color: #fff; background: var(--landing-navy); }
.landing-final-cta small,
.landing-final-cta small a { color: #1f4b48; }
.landing-footer { border-top: 0; background: var(--landing-navy-deep); }
.landing-footer p,
.landing-footer nav a { color: #aabfce; }

@media (max-width: 1020px) {
    .landing-product-stage { width: min(650px, 100%); }
}
@media (max-width: 680px) {
    .landing-hero-grid { padding-block: 58px 64px; }
    .landing-hero h1 { font-size: clamp(39px, 12vw, 52px); }
    .landing-product-stage { border-radius: 20px; }
    .landing-section { padding: 64px 0; }
    .landing-final-cta .landing-container { padding: 30px 22px; }
}

/* Home workflow: a connected, scannable four-step process. */
.landing-how { background: var(--landing-cream); }
.landing-how-heading {
    max-width: 720px; margin: 0 0 30px; text-align: left;
}
.landing-how-heading .landing-eyebrow { justify-content: flex-start; }
.landing-how-heading > p:last-child { margin-left: 0; }
.landing-how .landing-step-grid {
    position: relative; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
    overflow: hidden; padding: 8px; border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 5%, rgba(66,179,167,.23), transparent 18rem),
        linear-gradient(135deg, #102943, #153d53);
    box-shadow: 0 18px 38px rgba(13,38,58,.14);
}
.landing-how .landing-step-grid article {
    position: relative; min-height: 220px; padding: 24px 23px; overflow: visible;
    border: 0; border-right: 1px solid rgba(221,236,244,.13); border-radius: 0;
    background: transparent !important; box-shadow: none;
}
.landing-how .landing-step-grid article:last-child { border-right: 0; }
.landing-how .landing-step-grid article:hover {
    background: rgba(255,255,255,.035) !important; box-shadow: none;
}
.landing-how .landing-step-grid article > span {
    top: 20px; right: 20px; color: rgba(226,239,247,.18);
    font-size: 28px; letter-spacing: -.03em;
}
.landing-how .landing-step-icon {
    width: 40px; height: 40px; margin-bottom: 31px; border: 1px solid rgba(255,255,255,.12);
    border-radius: 11px; color: #dff8f4 !important; background: rgba(66,179,167,.18) !important;
    font-size: 16px;
}
.landing-how .landing-step-grid article:nth-child(2) .landing-step-icon {
    color: #e5e6ff !important; background: rgba(143,145,201,.2) !important;
}
.landing-how .landing-step-grid article:nth-child(3) .landing-step-icon {
    color: #d9f3e3 !important; background: rgba(86,164,119,.18) !important;
}
.landing-how .landing-step-grid article:nth-child(4) .landing-step-icon {
    color: #faead5 !important; background: rgba(201,153,91,.18) !important;
}
.landing-how .landing-step-grid h3 { margin-bottom: 8px; color: #f5f9fc; font-size: 14px; }
.landing-how .landing-step-grid p { color: #b7cad7; font-size: 11px; line-height: 1.6; }
.landing-how .landing-step-grid article:not(:last-child)::after {
    position: absolute; z-index: 2; top: 50%; right: -12px; display: grid; place-items: center;
    width: 24px; height: 24px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%;
    background: #173c50; color: #75ccc3; content: "→"; font-size: 11px;
    transform: translateY(-50%);
}

@media (max-width: 900px) {
    .landing-how .landing-step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .landing-how .landing-step-grid article:nth-child(2) { border-right: 0; }
    .landing-how .landing-step-grid article:nth-child(-n+2) { border-bottom: 1px solid rgba(221,236,244,.13); }
    .landing-how .landing-step-grid article::after { display: none !important; }
}
@media (max-width: 560px) {
    .landing-how-heading { text-align: center; }
    .landing-how-heading .landing-eyebrow { justify-content: center; }
    .landing-how-heading > p:last-child { margin-inline: auto; }
    .landing-how .landing-step-grid { grid-template-columns: 1fr; padding: 7px; }
    .landing-how .landing-step-grid article {
        min-height: 0; padding: 20px; border-right: 0; border-bottom: 1px solid rgba(221,236,244,.13);
    }
    .landing-how .landing-step-grid article:last-child { border-bottom: 0; }
    .landing-how .landing-step-icon { margin-bottom: 20px; }
}

/* Support hub: compact paths first, details second. */
.support-body {
    min-width: 320px; color: #17354e;
    background: linear-gradient(180deg, #f4faf9 0, #fff 560px);
}
.support-body .landing-nav-links a { position: relative; }
.support-body .landing-nav-links a::after {
    position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px 2px 0 0;
    background: transparent; content: "";
}
.support-body .landing-nav-links a.is-active { color: #1f6f69; }
.support-body .landing-nav-links a.is-active::after { background: #42b3a7; }
.support-main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 88px; }
.support-hero {
    display: grid; grid-template-columns: minmax(0, 1fr) 390px; align-items: center; gap: 64px;
    min-height: 310px; padding: 52px 58px; overflow: hidden; border-radius: 24px;
    background:
        radial-gradient(circle at 94% 4%, rgba(66,179,167,.28), transparent 20rem),
        linear-gradient(135deg, #102943, #153d53);
    box-shadow: 0 18px 44px rgba(13,38,58,.14);
}
.support-hero .landing-eyebrow { color: #8ed9d1; }
.support-hero .landing-eyebrow > span { background: #69c6bc; }
.support-hero h1 {
    margin: 0; color: #fff; font-size: clamp(38px, 5vw, 58px); line-height: 1.05;
    letter-spacing: -.045em;
}
.support-hero-copy > p:not(.landing-eyebrow) {
    max-width: 510px; margin: 15px 0 24px; color: #bfd0dc; font-size: 14px; line-height: 1.65;
}
.support-hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.support-hero .landing-primary-button { border-color: #69c6bc; color: #113a3a; background: #82d4cb; }
.support-hero .landing-primary-button:hover { background: #95dfd7; }
.support-hero .landing-secondary-button {
    border-color: rgba(220,236,244,.24); color: #edf7fa; background: rgba(255,255,255,.06);
}
.support-hero .landing-secondary-button:hover { border-color: rgba(220,236,244,.4); transform: none; }
.support-quick-check {
    display: grid; grid-template-columns: 42px 1fr; gap: 15px; padding: 22px;
    border: 1px solid rgba(224,240,247,.17); border-radius: 16px;
    background: rgba(255,255,255,.075); backdrop-filter: blur(8px);
}
.support-check-icon {
    width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
    color: #163d43; background: #82d4cb; font-size: 17px; font-weight: 900;
}
.support-quick-check small {
    color: #8ed9d1; font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase;
}
.support-quick-check h2 { margin: 4px 0 6px; color: #f3f9fb; font-size: 14px; }
.support-quick-check p { margin: 0; color: #b7cbd7; font-size: 11px; line-height: 1.6; }
.support-content { padding: 58px 0 24px; }
.support-section-heading {
    display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 22px;
}
.support-section-heading .landing-eyebrow { margin-bottom: 8px; }
.support-section-heading h2,
.support-delivery h2,
.support-access-card h2 { margin: 0; color: #17354e; letter-spacing: -.025em; }
.support-section-heading h2 { font-size: 25px; }
.support-section-heading > p { margin: 0 0 3px; color: #70818e; font-size: 12px; }
.support-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.support-topic-grid article {
    min-height: 202px; display: flex; flex-direction: column; padding: 21px;
    border: 1px solid #dce9e7; border-radius: 15px; background: rgba(255,255,255,.9);
    box-shadow: 0 2px 7px rgba(22,58,72,.04);
}
.support-topic-grid article:hover { border-color: #bbd9d5; box-shadow: 0 4px 12px rgba(22,58,72,.07); }
.support-topic-icon {
    width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 22px;
    border-radius: 10px; color: #27776f; background: #e1f4f1; font-size: 9px; font-weight: 900;
}
.support-topic-grid h3 { margin: 0 0 6px; color: #234158; font-size: 14px; }
.support-topic-grid p { margin: 0; color: #697d8a; font-size: 11px; line-height: 1.55; }
.support-topic-grid a,
.support-inline-action {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: auto; padding-top: 17px; color: #23776f; font-size: 11px; font-weight: 850;
    text-decoration: none;
}
.support-detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 14px; }
.support-delivery,
.support-access-card { border-radius: 18px; }
.support-delivery { padding: 28px; border: 1px solid #dce6eb; background: #fff; }
.support-delivery > header { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.support-delivery .landing-eyebrow,
.support-access-card .landing-eyebrow { margin-bottom: 8px; }
.support-delivery h2 { font-size: 22px; }
.support-delivery code {
    flex: 0 0 auto; padding: 7px 10px; border: 1px solid #d9e8e5; border-radius: 8px;
    color: #286e68; background: #f0f8f7; font-size: 10px;
}
.support-delivery ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 25px 0 0; padding: 0; list-style: none; }
.support-delivery li { display: grid; grid-template-columns: 27px 1fr; gap: 10px; padding-right: 18px; }
.support-delivery li + li { padding-left: 18px; border-left: 1px solid #e4ebee; }
.support-delivery li > span {
    width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px;
    color: #2b776f; background: #e2f3f0; font-size: 9px; font-weight: 900;
}
.support-delivery strong { display: block; color: #29465a; font-size: 11px; }
.support-delivery li p { margin: 4px 0 0; color: #758590; font-size: 10px; line-height: 1.5; }
.support-inline-action { justify-content: flex-start; margin-top: 23px; padding-top: 0; }
.support-access-card {
    position: relative; overflow: hidden; padding: 28px; color: #d6e4ea;
    background: linear-gradient(145deg, #173d52, #102d43);
}
.support-access-card .landing-eyebrow { color: #85d2ca; }
.support-access-card .landing-eyebrow > span { background: #69c6bc; }
.support-access-card h2 { max-width: 270px; color: #f5fafc; font-size: 22px; line-height: 1.2; }
.support-access-card > p:not(.landing-eyebrow) { margin: 13px 0 23px; color: #b6c8d1; font-size: 11px; line-height: 1.65; }
.support-access-card > div { display: flex; flex-wrap: wrap; gap: 15px; }
.support-access-card a { color: #8cd9d1; font-size: 10px; font-weight: 850; text-decoration: none; }
.support-access-mark { position: absolute; right: 20px; top: 15px; color: rgba(144,217,209,.18); font-size: 38px; }

@media (max-width: 900px) {
    .support-body .landing-nav-links { display: none; }
    .support-hero { grid-template-columns: 1fr; gap: 30px; }
    .support-quick-check { width: min(440px, 100%); }
    .support-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .support-main { width: min(100% - 28px, 1120px); padding-top: 22px; }
    .support-hero { min-height: 0; padding: 34px 25px; border-radius: 19px; }
    .support-topic-grid { grid-template-columns: 1fr; }
    .support-topic-grid article { min-height: 175px; }
    .support-section-heading { align-items: start; flex-direction: column; gap: 5px; }
    .support-delivery > header { align-items: start; flex-direction: column; }
    .support-delivery ol { grid-template-columns: 1fr; gap: 15px; }
    .support-delivery li { padding-right: 0; }
    .support-delivery li + li { padding-top: 15px; padding-left: 0; border-top: 1px solid #e4ebee; border-left: 0; }
}

/* Sign-in fields: compact, clear, and accessible. */
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.simple-login-card { width: min(100%, 450px); padding: 32px; border-color: #d9e5e3; }
.simple-login-heading { margin-bottom: 23px; }
.simple-login-logo-wrap {
    width: 60px; height: 60px; margin-bottom: 14px; border-radius: 17px;
    box-shadow: 0 10px 24px rgba(21,55,78,.12);
}
.simple-login-heading .login-logo { width: 50px; height: 50px; border-radius: 14px; }
.simple-login-heading p { color: #28766f; font-size: 10px; }
.simple-login-heading h1 { font-size: clamp(24px, 4vw, 28px); }
.simple-login-heading > span:last-child { margin-top: 7px; font-size: 12px; }
.simple-login-card .login-form { gap: 14px; }
.simple-login-card .login-form label { gap: 6px; color: #29465a; font-size: 11px; }
.simple-login-card .login-input-shell > svg {
    top: 50%; right: auto; left: 15px; width: 17px; height: 17px; display: block;
    stroke: #748b96; transform: translateY(-50%);
}
.simple-login-card .login-form input {
    min-height: 47px; padding: 10px 13px 10px 46px !important; border-color: #cbdad9; border-radius: 10px;
    color: #19364a; background: #fbfdfd; font-size: 13px; line-height: 1.2; box-shadow: none;
}
.simple-login-card .login-form input::placeholder { color: #95a5ac; }
.simple-login-card .login-form input:hover { border-color: #a9c9c5; }
.simple-login-card .login-form input:focus {
    border-color: #42a89e; box-shadow: 0 0 0 3px rgba(66,179,167,.13);
}
.simple-login-card .login-input-shell:focus-within > svg { stroke: #287e76; }
.simple-login-card .login-password-shell input { padding-right: 54px !important; }
.simple-login-card .login-password-toggle {
    top: 50%; right: 7px; width: 34px; min-width: 34px; height: 34px; display: none; place-items: center;
    padding: 0; border-radius: 8px; color: #58717d;
    transform: translateY(-50%);
}
.login-js .simple-login-card .login-password-toggle { display: grid; }
.simple-login-card .login-password-toggle:hover { color: #24766f; background: #e8f5f3; }
.simple-login-card .login-password-toggle:focus-visible {
    outline: 2px solid #42a89e; outline-offset: -1px;
}
.login-password-toggle svg {
    width: 17px; height: 17px; display: block; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}
.login-password-toggle .password-eye-hide { display: none; }
.login-password-toggle[aria-pressed="true"] .password-eye-show { display: none; }
.login-password-toggle[aria-pressed="true"] .password-eye-hide { display: block; }
.simple-login-card .login-submit {
    min-height: 47px; margin-top: 2px; border-radius: 10px; font-size: 13px;
    background: linear-gradient(110deg, #17354e, #20536a); box-shadow: 0 9px 20px rgba(19,53,78,.18);
}
.simple-login-card .login-submit:hover {
    background: linear-gradient(110deg, #102b42, #19495f); box-shadow: 0 11px 24px rgba(19,53,78,.22);
    transform: none;
}
.simple-login-footer { margin-top: 20px; padding-top: 16px; font-size: 10px; }
.simple-login-footer a { color: #28766f; }
@media (max-width: 580px) {
    .simple-login-card { padding: 25px 20px; }
}

/* Legal pages: shared public header and scannable policy layout. */
.legal-body { min-width: 320px; background: #f7faf9; }
.legal-main { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 88px; }
.legal-hero {
    display: flex; align-items: end; justify-content: space-between; gap: 40px; padding: 42px 46px;
    border: 1px solid #d9e9e6; border-radius: 20px;
    background:
        radial-gradient(circle at 94% 8%, rgba(66,179,167,.17), transparent 18rem),
        linear-gradient(135deg, #edf8f6, #f8fbfa);
}
.legal-hero .landing-eyebrow { margin-bottom: 10px; }
.legal-hero h1 {
    max-width: 690px; margin: 0; color: #17354e; font-size: clamp(32px, 4.5vw, 48px);
    line-height: 1.08; letter-spacing: -.045em;
}
.legal-hero div > p:last-child { max-width: 610px; margin: 13px 0 0; color: #607581; font-size: 13px; line-height: 1.6; }
.legal-updated {
    flex: 0 0 auto; padding: 7px 10px; border: 1px solid #cee3df; border-radius: 99px;
    color: #47726e; background: rgba(255,255,255,.7); font-size: 9px; font-weight: 800;
}
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 18px; margin-top: 20px; }
.legal-index {
    position: sticky; top: 96px; padding: 20px; border: 1px solid #dfe9e8; border-radius: 15px;
    background: #fff;
}
.legal-index > strong { display: block; margin-bottom: 13px; color: #29465a; font-size: 11px; }
.legal-index nav { display: grid; gap: 3px; }
.legal-index a {
    display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 7px; padding: 8px;
    border-radius: 8px; color: #647985; font-size: 10px; font-weight: 700; text-decoration: none;
}
.legal-index a:hover { color: #236f69; background: #edf7f5; }
.legal-index a span { color: #43a99f; font-size: 8px; font-weight: 900; }
.legal-document { padding: 6px 30px 30px; border: 1px solid #dfe9e8; border-radius: 17px; background: #fff; }
.legal-document > section {
    scroll-margin-top: 96px; display: grid; grid-template-columns: 34px 1fr; gap: 16px;
    padding: 25px 0; border-bottom: 1px solid #e9efef;
}
.legal-document > section > span {
    width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px;
    color: #27786f; background: #e4f4f2; font-size: 8px; font-weight: 900;
}
.legal-document h2 { margin: 2px 0 7px; color: #29465a; font-size: 15px; letter-spacing: -.015em; }
.legal-document section p { margin: 0; color: #657883; font-size: 11px; line-height: 1.7; }
.legal-help {
    display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 26px;
    padding: 20px; border-radius: 13px; background: #eef7f5;
}
.legal-help strong { color: #294c58; font-size: 12px; }
.legal-help p { margin: 4px 0 0; color: #6b7e85; font-size: 10px; }
.legal-help .landing-secondary-button { min-height: 38px; flex: 0 0 auto; padding: 8px 13px; border-color: #c8dfdb; font-size: 10px; }
.legal-body .trust-footer a[aria-current="page"] { color: #27786f; }

@media (max-width: 800px) {
    .legal-layout { grid-template-columns: 1fr; }
    .legal-index { position: static; }
    .legal-index nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .legal-main { width: min(100% - 28px, 1080px); padding-top: 22px; }
    .legal-hero { align-items: start; flex-direction: column; gap: 20px; padding: 30px 24px; border-radius: 17px; }
    .legal-index nav { grid-template-columns: 1fr; }
    .legal-document { padding: 3px 20px 22px; }
    .legal-document > section { grid-template-columns: 29px 1fr; gap: 11px; }
    .legal-document > section > span { width: 27px; height: 27px; }
    .legal-help { align-items: stretch; flex-direction: column; gap: 14px; }
    .legal-help .landing-secondary-button { width: 100%; }
}

/* Dashboard analytics: real seven-day activity in the product's primary blue palette. */
.dashboard-appbar {
    border-bottom-color: #dbe5f0;
    background: linear-gradient(105deg, #fff 0%, #f3f7fc 100%);
}
.dashboard-context strong { color: var(--brand); }
.dashboard-btn-primary {
    border-color: var(--brand); background: var(--brand); box-shadow: 0 7px 16px rgba(32,56,100,.16);
}
.dashboard-btn-primary:hover { border-color: var(--brand-dk); background: var(--brand-dk); box-shadow: 0 8px 18px rgba(32,56,100,.2); transform: none; }
.dashboard-stat { border-color: #dbe4ee; }
.dashboard-stat:hover { border-color: #a9bed8; }
.dashboard-stat-icon { color: var(--brand) !important; background: #e7effa !important; }
.stat-standups .dashboard-stat-icon { color: #1d4ed8 !important; background: #dbeafe !important; }
.stat-today .dashboard-stat-icon { color: #2563eb !important; background: #eaf2ff !important; }
.stat-week .dashboard-stat-icon { color: #3b82f6 !important; background: #eff6ff !important; }

.dashboard-insights {
    display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr);
    gap: 14px; margin-bottom: 16px;
}
.dashboard-insights > .panel {
    margin: 0 !important; padding: 19px !important; border: 1px solid #dbe4ee !important;
    border-radius: 13px; background: #fff !important; box-shadow: 0 1px 2px rgba(32,56,100,.04);
}
.dashboard-insight-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.dashboard-insight-heading p {
    margin: 0 0 3px; color: var(--brand); font-size: 8px; font-weight: 850;
    letter-spacing: .08em; text-transform: uppercase;
}
.dashboard-insight-heading h2 { margin: 0; color: #213f53; font-size: 15px; letter-spacing: -.015em; }
.dashboard-insight-heading > a,
.dashboard-setup-link {
    display: inline-flex; align-items: center; gap: 7px; color: var(--brand);
    font-size: 10px; font-weight: 800; text-decoration: none;
}
.dashboard-trend-summary { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 20px 0 12px; }
.dashboard-trend-summary > div { display: grid; }
.dashboard-trend-summary > div strong { color: #17354e; font-size: 29px; line-height: 1; font-variant-numeric: tabular-nums; }
.dashboard-trend-summary > div span { margin-top: 4px; color: #72838c; font-size: 9px; }
.dashboard-trend-summary dl { display: flex; gap: 24px; margin: 0; }
.dashboard-trend-summary dl div { display: grid; gap: 3px; }
.dashboard-trend-summary dt { color: #839198; font-size: 8px; font-weight: 700; }
.dashboard-trend-summary dd { margin: 0; color: #365565; font-size: 11px; font-weight: 800; }
.dashboard-bar-chart {
    height: 148px; display: grid; grid-template-columns: repeat(7, minmax(24px, 1fr));
    align-items: end; gap: 10px; padding: 13px 12px 9px; border: 1px solid #e2e8f0;
    border-radius: 11px; background: linear-gradient(180deg, #f8faff, #fff);
}
.dashboard-bar-column { height: 100%; display: grid; grid-template-rows: 16px 1fr 15px; justify-items: center; gap: 5px; }
.dashboard-bar-column strong { color: #557078; font-size: 8px; font-variant-numeric: tabular-nums; }
.dashboard-bar-column small { color: #71858b; font-size: 8px; font-weight: 750; }
.dashboard-bar-track {
    width: min(28px, 70%); height: 100%; display: flex; align-items: flex-end; overflow: hidden;
    border-radius: 7px 7px 4px 4px; background: #eaf0f7;
}
.dashboard-bar-track i {
    width: 100%; min-height: 3px; display: block; border-radius: 7px 7px 4px 4px;
    background: linear-gradient(180deg, #60a5fa, var(--brand));
}
.dashboard-bar-track i.level-0 { height: 3px; background: #dce5ef; }
.dashboard-bar-track i.level-1 { height: 10%; }
.dashboard-bar-track i.level-2 { height: 20%; }
.dashboard-bar-track i.level-3 { height: 30%; }
.dashboard-bar-track i.level-4 { height: 40%; }
.dashboard-bar-track i.level-5 { height: 50%; }
.dashboard-bar-track i.level-6 { height: 60%; }
.dashboard-bar-track i.level-7 { height: 70%; }
.dashboard-bar-track i.level-8 { height: 80%; }
.dashboard-bar-track i.level-9 { height: 90%; }
.dashboard-bar-track i.level-10 { height: 100%; }

.dashboard-setup-panel {
    background:
        radial-gradient(circle at 100% 0, rgba(59,130,246,.12), transparent 15rem),
        #fff !important;
}
.dashboard-ready-badge {
    padding: 5px 8px; border-radius: 99px; color: #826b46; background: #f6efe3;
    font-size: 8px; font-weight: 850;
}
.dashboard-ready-badge.is-ready { color: #1d4ed8; background: #dbeafe; }
.dashboard-setup-overview { display: flex; align-items: center; gap: 15px; margin: 18px 0 12px; }
.dashboard-progress-ring {
    width: 92px; height: 92px; display: grid; place-items: center; flex: 0 0 92px;
    border-radius: 50%; background: conic-gradient(var(--brand-mid) 0, #e4eaf2 0);
}
.dashboard-progress-ring.setup-1 { background: conic-gradient(var(--brand-mid) 0 33%, #e4eaf2 33% 100%); }
.dashboard-progress-ring.setup-2 { background: conic-gradient(var(--brand-mid) 0 67%, #e4eaf2 67% 100%); }
.dashboard-progress-ring.setup-3 { background: conic-gradient(var(--brand-mid) 0 100%, #e4eaf2 100%); }
.dashboard-progress-ring::before { grid-area: 1 / 1; width: 70px; height: 70px; border-radius: 50%; background: #fff; content: ""; }
.dashboard-progress-ring > span { z-index: 1; grid-area: 1 / 1; display: grid; text-align: center; }
.dashboard-progress-ring strong { color: #214b55; font-size: 18px; line-height: 1; }
.dashboard-progress-ring small { margin-top: 3px; color: #829096; font-size: 7px; text-transform: uppercase; }
.dashboard-setup-copy strong { display: block; color: #294957; font-size: 11px; }
.dashboard-setup-copy p { margin: 5px 0 0; color: #718188; font-size: 9px; line-height: 1.5; }
.dashboard-visual-checklist {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 14px;
}
.dashboard-visual-checklist li {
    grid-template-columns: 22px minmax(0, 1fr); gap: 6px; padding: 7px;
    border: 1px solid #e1e8f0; border-radius: 9px; background: rgba(249,251,254,.85);
}
.dashboard-visual-checklist .dashboard-check-marker { width: 20px; height: 20px; border-radius: 7px; }
.dashboard-visual-checklist strong { font-size: 9px; }
.dashboard-visual-checklist small { font-size: 7px; }
.dashboard-setup-link { justify-content: space-between; padding-top: 12px; border-top: 1px solid #e3e9f0; }

.dashboard-layout { grid-template-columns: minmax(0, 1.8fr) minmax(270px, .62fr); }
.dashboard-section-heading { border-bottom-color: #dbe5f0; background: #f3f7fc; }
.dashboard-activity-item:hover { background: #f3f7fc; }
.dashboard-activity-item:nth-child(4n + 1) .dashboard-activity-avatar { color: #1d4ed8; background: #dbeafe; }
.dashboard-activity-item:nth-child(4n + 2) .dashboard-activity-avatar { color: var(--brand); background: #e7effa; }
.dashboard-activity-item:nth-child(4n + 3) .dashboard-activity-avatar { color: #2563eb; background: #eaf2ff; }
.dashboard-activity-item:nth-child(4n + 4) .dashboard-activity-avatar { color: #3b82f6; background: #eff6ff; }
.dashboard-quick-panel,
.dashboard-readiness {
    border-color: #dbe4ee !important;
    background: linear-gradient(150deg, #fff 24%, #f3f7fc 100%);
}
.dashboard-action-icon.action-submit,
.dashboard-action-icon.action-reports,
.dashboard-action-icon.action-team,
.dashboard-action-icon.action-setup { color: var(--brand); background: #e7effa; }
.dashboard-action-list > a:hover > span:last-child { color: var(--brand); }

@media (max-width: 1100px) {
    .dashboard-insights { grid-template-columns: 1fr; }
    .dashboard-setup-overview { max-width: 500px; }
}
@media (max-width: 760px) {
    .dashboard-trend-summary { align-items: flex-start; flex-direction: column; gap: 12px; }
    .dashboard-trend-summary dl { width: 100%; justify-content: space-between; gap: 12px; }
    .dashboard-bar-chart { gap: 6px; padding-inline: 8px; }
    .dashboard-visual-checklist { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .dashboard-insights > .panel { padding: 15px !important; }
    .dashboard-setup-overview { align-items: flex-start; }
    .dashboard-progress-ring { width: 78px; height: 78px; flex-basis: 78px; }
    .dashboard-progress-ring::before { width: 59px; height: 59px; }
    .dashboard-bar-track { width: min(22px, 78%); }
}

/* Dashboard chart refinement: line trend + standup distribution. */
.dashboard-line-chart {
    height: 170px; padding: 7px 6px 0; overflow: hidden; border: 1px solid #e2e8f0;
    border-radius: 11px; background: linear-gradient(180deg, #f8faff, #fff);
}
.dashboard-line-chart svg { width: 100%; height: 100%; overflow: visible; }
.dashboard-chart-grid line { stroke: #dfe6ef; stroke-width: 1; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.dashboard-line-area { fill: rgba(59,130,246,.14); }
.dashboard-line-path {
    fill: none; stroke: var(--brand-mid); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}
.dashboard-line-point circle {
    fill: #fff; stroke: var(--brand-mid); stroke-width: 3; cursor: help;
    vector-effect: non-scaling-stroke; transition: r .15s ease, fill .15s ease, stroke-width .15s ease;
}
.dashboard-line-point circle:hover,
.dashboard-line-point circle:focus { r: 7px; fill: #dbeafe; stroke-width: 4; outline: none; }
.dashboard-line-point text { fill: #71858b; font-size: 9px; font-weight: 750; }

.dashboard-breakdown-panel {
    background:
        radial-gradient(circle at 100% 0, rgba(59,130,246,.11), transparent 15rem),
        #fff !important;
}
.dashboard-period-badge {
    padding: 5px 8px; border-radius: 99px; color: #1d4ed8; background: #dbeafe;
    font-size: 8px; font-weight: 850;
}
.dashboard-donut-layout { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 15px; margin: 18px 0 14px; }
.dashboard-donut { position: relative; width: 128px; height: 128px; display: grid; place-items: center; }
.dashboard-donut svg { grid-area: 1 / 1; width: 128px; height: 128px; overflow: visible; transform: rotate(-90deg); }
.dashboard-donut-base { fill: none; stroke: #e4eaf2; stroke-width: 13; }
.dashboard-donut-segment {
    fill: none; stroke-width: 13; stroke-linecap: butt; cursor: help;
    transition: stroke-width .16s ease, opacity .16s ease;
}
.dashboard-donut-segment:hover,
.dashboard-donut-segment:focus { stroke-width: 17; opacity: .88; outline: none; }
.dashboard-donut > span { z-index: 1; grid-area: 1 / 1; display: grid; text-align: center; pointer-events: none; }
.dashboard-donut > span strong { color: #18394d; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.dashboard-donut > span small { margin-top: 3px; color: #829096; font-size: 7px; letter-spacing: .06em; text-transform: uppercase; }
.dashboard-donut-segment.chart-color-1 { stroke: #3b82f6; }
.dashboard-donut-segment.chart-color-2 { stroke: #203864; }
.dashboard-donut-segment.chart-color-3 { stroke: #60a5fa; }
.dashboard-donut-segment.chart-color-4 { stroke: #4f46e5; }
.dashboard-donut-segment.chart-color-5 { stroke: #0ea5e9; }
.dashboard-donut-segment.chart-color-6 { stroke: #8292a8; }
.dashboard-donut-legend { display: grid; gap: 7px; min-width: 0; }
.dashboard-donut-legend > div { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 7px; min-width: 0; }
.dashboard-donut-legend i { width: 7px; height: 7px; border-radius: 50%; }
.dashboard-donut-legend i.chart-color-1 { background: #3b82f6; }
.dashboard-donut-legend i.chart-color-2 { background: #203864; }
.dashboard-donut-legend i.chart-color-3 { background: #60a5fa; }
.dashboard-donut-legend i.chart-color-4 { background: #4f46e5; }
.dashboard-donut-legend i.chart-color-5 { background: #0ea5e9; }
.dashboard-donut-legend i.chart-color-6 { background: #8292a8; }
.dashboard-donut-legend span { min-width: 0; line-height: 1.15; }
.dashboard-donut-legend strong,
.dashboard-donut-legend small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-donut-legend strong { color: #395663; font-size: 8px; }
.dashboard-donut-legend small { margin-top: 2px; color: #87969b; font-size: 7px; }
.dashboard-donut-legend em { color: #31545e; font-size: 9px; font-style: normal; font-weight: 850; font-variant-numeric: tabular-nums; }
.dashboard-donut-empty { color: #7d8d92; font-size: 9px; line-height: 1.5; }
.dashboard-action-icon.action-daily { color: #1d4ed8; background: #dbeafe; }

@media (max-width: 420px) {
    .dashboard-donut-layout { grid-template-columns: 105px minmax(0, 1fr); gap: 10px; }
    .dashboard-donut,
    .dashboard-donut svg { width: 102px; height: 102px; }
}

/* Daily updates: a focused, read-only conversation view. */
.daily-updates-appbar {
    border-bottom-color: #dbe5f0; background: linear-gradient(105deg, #fff, #f3f7fc);
}
.daily-updates-appbar > div > p { margin: 3px 0 0; color: #687b84; font-size: 10px; }
.daily-updates-content { max-width: none; padding-top: 18px; }
.daily-update-filter-panel,
.daily-conversation,
.daily-no-standups {
    margin-bottom: 14px !important; border: 1px solid #dbe4ee !important; border-radius: 12px;
    background: #fff !important; box-shadow: 0 1px 2px rgba(32,56,100,.04);
}
.daily-update-filter-panel { padding: 14px !important; }
.daily-update-filter { display: grid; grid-template-columns: minmax(250px, 1fr) 180px auto; align-items: end; gap: 10px; }
.daily-update-filter label { display: grid; gap: 5px; color: #3d5865; font-size: 9px; font-weight: 800; }
.daily-update-filter select,
.daily-update-filter input {
    min-height: 40px; width: 100%; padding: 8px 10px; border: 1px solid #cfd9e5;
    border-radius: 9px; color: #294654; background: #fbfcfe; font: inherit; font-size: 11px;
}
.daily-update-filter select:focus,
.daily-update-filter input:focus { border-color: var(--brand-mid); outline: 0; box-shadow: 0 0 0 3px rgba(59,130,246,.14); }
.daily-update-filter .btn-primary {
    min-height: 40px; padding: 8px 14px; border-color: var(--brand); border-radius: 9px;
    background: var(--brand); box-shadow: none; font-size: 10px;
}
.daily-update-filter .btn-primary:hover { border-color: var(--brand-dk); background: var(--brand-dk); }
.daily-update-date-nav {
    display: grid; grid-template-columns: 34px auto 34px; align-items: center; justify-content: center;
    gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e3e9f0;
}
.daily-update-date-nav > a,
.daily-update-nav-placeholder {
    width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #d5dfeb;
    border-radius: 9px; color: var(--brand); background: #eff6ff; font-size: 12px; font-weight: 850;
    text-decoration: none;
}
.daily-update-date-nav > a:hover { border-color: #93c5fd; background: #dbeafe; }
.daily-update-nav-placeholder { opacity: .35; }
.daily-update-date-nav > span:nth-child(2) { min-width: 130px; display: grid; text-align: center; }
.daily-update-date-nav strong { color: #294956; font-size: 11px; }
.daily-update-date-nav small { margin-top: 2px; color: #829197; font-size: 8px; }
.daily-conversation {
    height: var(--daily-panel-height); display: grid; grid-template-rows: auto minmax(0, 1fr);
    padding: 0 !important; overflow: hidden;
}
.daily-update-workspace {
    --daily-panel-height: clamp(410px, calc(100vh - 230px), 680px);
    display: grid; grid-template-columns: minmax(520px, 1.25fr) minmax(420px, .9fr);
    align-items: start; gap: 18px;
}
.daily-update-workspace .daily-conversation { min-width: 0; }
.daily-conversation-heading {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px;
    border-bottom: 1px solid #dbe5f0; background: #eff6ff;
}
.daily-conversation-kicker {
    margin: 0 0 3px; color: var(--brand); font-size: 8px; font-weight: 850;
    letter-spacing: .075em; text-transform: uppercase;
}
.daily-conversation-heading h2 { margin: 0; color: #213f53; font-size: 15px; }
.daily-conversation-heading > span {
    padding: 5px 8px; border-radius: 99px; color: #1d4ed8; background: #dbeafe;
    font-size: 8px; font-weight: 850;
}
.daily-chat-list { min-height: 0; padding: 20px; overflow-y: auto; scrollbar-width: thin; }
.daily-chat-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 10px; }
.daily-chat-item + .daily-chat-item { margin-top: 16px; }
.daily-chat-avatar {
    width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
    color: #1d4ed8; background: #dbeafe; font-size: 9px; font-weight: 850;
}
.daily-chat-item:nth-child(4n + 2) .daily-chat-avatar { color: #405f78; background: #e5eef5; }
.daily-chat-item:nth-child(4n + 3) .daily-chat-avatar { color: #786445; background: #f2eadc; }
.daily-chat-item:nth-child(4n + 4) .daily-chat-avatar { color: #685b78; background: #ece7f0; }
.daily-chat-message {
    position: relative; padding: 13px 15px; border: 1px solid #dfe6ef; border-radius: 4px 12px 12px;
    background: #fbfcfe;
}
.daily-chat-message::before {
    position: absolute; top: -1px; left: -7px; width: 8px; height: 8px;
    border-top: 1px solid #dfe6ef; background: #fbfcfe; content: ""; transform: skewX(-40deg);
}
.daily-chat-message > header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.daily-chat-message > header strong { color: #294956; font-size: 11px; }
.daily-chat-message time { color: #89979c; font-size: 8px; }
.daily-chat-message dl { display: grid; gap: 9px; margin: 0; }
.daily-chat-message dl > div { padding-top: 9px; border-top: 1px solid #e7ebf1; }
.daily-chat-message dt { color: #70838a; font-size: 8px; font-weight: 800; }
.daily-chat-message dd { margin: 3px 0 0; color: #304d59; font-size: 10px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.daily-chat-message dl > div.is-empty dd { color: #9aa6aa; font-style: italic; }
.daily-chat-empty,
.daily-no-standups { padding: 50px 22px !important; text-align: center; }
.daily-conversation .daily-chat-empty { min-height: 0; overflow-y: auto; }
.daily-chat-empty > span,
.daily-no-standups > span {
    width: 40px; height: 40px; display: grid; place-items: center; margin: 0 auto 10px;
    border-radius: 12px; color: var(--brand); background: #dbeafe; font-size: 17px;
}
.daily-chat-empty h3,
.daily-no-standups h2 { margin: 0; color: #2c4a57; font-size: 13px; }
.daily-chat-empty p,
.daily-no-standups p { margin: 5px 0 0; color: #7b8b91; font-size: 9px; }

/* Tenant-scoped AI analyst beside the conversation, intentionally compact and single-purpose. */
.daily-assistant {
    position: sticky; top: 92px; min-width: 0; height: var(--daily-panel-height);
    display: grid; grid-template-rows: auto minmax(140px, 1fr) auto auto auto;
    margin-bottom: 14px !important; padding: 0 !important;
    overflow: hidden; border: 1px solid #cfdaea !important; border-radius: 13px;
    background: #fff !important; box-shadow: 0 4px 18px rgba(32,56,100,.07);
}
.daily-assistant-heading {
    display: grid; gap: 11px;
    padding: 14px 15px;
    border-bottom: 1px solid #dbe5f0; background: linear-gradient(120deg, #eaf2ff, #f8fbff);
}
.daily-assistant-identity { min-width: 190px; display: flex; align-items: center; gap: 10px; }
.daily-assistant-mark {
    width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center;
    border-radius: 9px; color: var(--brand); background: #dbeafe;
}
.daily-assistant-mark svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.daily-assistant-identity > span:last-child { min-width: 0; display: grid; gap: 3px; }
.daily-assistant-heading strong { color: #214652; font-size: 14px; line-height: 1.2; }
.daily-assistant-heading small { color: #6e858a; font-size: 10px; line-height: 1.25; }
.daily-assistant-actions { min-width: 0; display: flex; align-items: center; gap: 7px; }
.assistant-history-picker {
    min-width: 0; flex: 1 1 220px; display: grid; grid-template-columns: auto minmax(110px, 1fr);
    align-items: center; gap: 9px; padding: 6px 7px; border: 1px solid #cfdae8;
    border-radius: 10px; background: rgba(255,255,255,.82);
}
.assistant-history-picker label {
    display: flex; align-items: center; gap: 7px; color: #53697a; cursor: pointer;
}
.assistant-history-picker label > svg { width: 17px; height: 17px; flex: 0 0 auto; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.assistant-history-picker label > span { display: grid; gap: 1px; }
.assistant-history-picker label strong { color: #29445d; font-size: 9px; line-height: 1.15; }
.assistant-history-picker label small { color: #7b8a99; font-size: 8px; line-height: 1.15; }
.assistant-history-select { position: relative; min-width: 0; display: block; }
.assistant-history-picker select {
    width: 100%; min-height: 34px; appearance: none; padding: 6px 28px 6px 9px; border: 1px solid #bccbde;
    border-radius: 8px; color: #29445d; background: #fff; font: inherit; font-size: 10px;
    font-weight: 700; text-overflow: ellipsis; cursor: pointer;
}
.assistant-history-picker select:hover { border-color: #93add0; }
.assistant-history-picker select:focus { border-color: var(--brand-mid); outline: 0; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.assistant-history-select > svg {
    position: absolute; top: 50%; right: 8px; width: 15px; height: 15px; pointer-events: none;
    stroke: #647b92; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform: translateY(-50%);
}
.assistant-action-button {
    min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 6px 10px; cursor: pointer; border: 1px solid #b8c8dc;
    border-radius: 8px; color: var(--brand); background: #fff; font: inherit; font-size: 10px; font-weight: 800;
}
.assistant-action-button svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.assistant-action-new { border-color: var(--brand); color: #fff; background: var(--brand); }
.assistant-action-button:hover,
.assistant-action-button:focus-visible { border-color: #93b4dc; background: #eff6ff; outline: 0; }
.assistant-action-button.assistant-action-new:hover,
.assistant-action-button.assistant-action-new:focus-visible { border-color: var(--brand-dk); color: #fff; background: var(--brand-dk); }
.assistant-action-clear { width: 39px; padding-inline: 7px; color: #8d4d58; border-color: #dfc7cc; }
.assistant-action-clear:hover,
.assistant-action-clear:focus-visible { border-color: #c69c96; color: #764842; background: #fff4f2; }
.assistant-action-button:disabled { cursor: not-allowed; opacity: .45; }
.daily-assistant-thread {
    min-height: 0; height: auto; display: flex; flex-direction: column; gap: 13px;
    padding: 16px; overflow-y: auto; background: #fbfcfe; scrollbar-width: thin;
}
.assistant-message { max-width: 94%; display: grid; gap: 5px; }
.assistant-message-ai { align-self: flex-start; }
.assistant-message-user { align-self: flex-end; }
.assistant-message-label { color: #71868b; font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.assistant-message-user .assistant-message-label { text-align: right; }
.assistant-message p {
    margin: 0; padding: 11px 13px; border: 1px solid #dce4ee; border-radius: 4px 11px 11px;
    color: #2f4b55; background: #fff; font-size: 13px; line-height: 1.55; white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.assistant-message-user p {
    border-color: var(--brand); border-radius: 11px 4px 11px 11px; color: #fff; background: var(--brand);
}
.assistant-message.is-loading p { color: #6c8588; animation: assistant-pulse 1.25s ease-in-out infinite; }
@keyframes assistant-pulse { 50% { opacity: .52; } }
.daily-assistant-prompts {
    display: flex; gap: 7px; padding: 0 16px 13px; overflow-x: auto; background: #fbfcfe;
    scrollbar-width: none;
}
.daily-assistant-prompts::-webkit-scrollbar { display: none; }
.daily-assistant-prompts button {
    min-height: 31px; flex: 0 0 auto; padding: 6px 10px; cursor: pointer;
    border: 1px solid #cbd9ea; border-radius: 99px; color: var(--brand); background: #eff6ff;
    font: inherit; font-size: 10px; font-weight: 750;
}
.daily-assistant-prompts button:hover,
.daily-assistant-prompts button:focus-visible { border-color: #93b4dc; color: var(--brand-dk); background: #dbeafe; outline: 0; }
.daily-assistant-form {
    display: grid; grid-template-columns: minmax(0, 1fr) 35px; align-items: end; gap: 7px;
    margin: 0 15px; padding: 8px; border: 1px solid #cfd9e6; border-radius: 11px; background: #fff;
}
.daily-assistant-form:focus-within { border-color: var(--brand-mid); box-shadow: 0 0 0 3px rgba(59,130,246,.14); }
.daily-assistant-form textarea {
    min-height: 42px; max-height: 132px; padding: 7px 5px; resize: vertical; border: 0; outline: 0;
    color: #2b4b56; background: transparent; font: inherit; font-size: 13px; line-height: 1.45;
}
.daily-assistant-form textarea::placeholder { color: #92a1a4; }
.daily-assistant-form > button {
    width: 35px; height: 35px; display: grid; place-items: center; cursor: pointer; border: 1px solid var(--brand);
    border-radius: 9px; color: #fff; background: var(--brand);
}
.daily-assistant-form > button:hover { border-color: var(--brand-dk); background: var(--brand-dk); }
.daily-assistant-form > button:disabled,
.daily-assistant-form textarea:disabled { cursor: not-allowed; opacity: .48; }
.daily-assistant-form > button svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.daily-assistant-note { display: grid; gap: 2px; margin: 9px 15px 13px; color: #7f9094; font-size: 9px; line-height: 1.4; text-align: center; }
.daily-assistant-note [data-assistant-usage] { color: #4f6680; font-weight: 750; }
.daily-assistant .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

@media (max-width: 1180px) {
    .daily-update-workspace {
        --daily-panel-height: clamp(430px, calc(100vh - 170px), 650px);
        grid-template-columns: 1fr;
    }
    .daily-assistant {
        position: static;
        grid-template-rows: auto minmax(160px, 1fr) auto auto auto;
    }
    .daily-assistant-thread { height: auto; }
}

@media (max-width: 720px) {
    .daily-updates-appbar { align-items: flex-start; flex-direction: column; }
    .daily-updates-appbar .app-action { width: 100%; text-align: center; }
    .daily-update-filter { grid-template-columns: 1fr 1fr; }
    .daily-update-filter .btn-primary { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .daily-update-workspace {
        --daily-panel-height: clamp(480px, calc(100svh - 24px), 620px);
    }
    .daily-update-filter { grid-template-columns: 1fr; }
    .daily-update-filter .btn-primary { grid-column: auto; }
    .daily-conversation-heading { align-items: flex-start; }
    .daily-chat-list { padding: 14px; }
    .daily-chat-item { grid-template-columns: 29px minmax(0, 1fr); gap: 8px; }
    .daily-chat-avatar { width: 29px; height: 29px; border-radius: 8px; font-size: 8px; }
    .daily-chat-message { padding: 12px; }
    .daily-chat-message > header { align-items: flex-start; flex-direction: column; gap: 2px; }
    .daily-assistant-actions { align-items: stretch; flex-wrap: wrap; }
    .assistant-history-picker { width: 100%; }
    .assistant-action-new { flex: 1; }
    .daily-assistant {
        grid-template-rows: auto minmax(180px, 1fr) auto auto auto;
    }
    .daily-assistant-thread { height: auto; padding: 13px; }
    .assistant-message p { font-size: 12px; }
}

/* Workspace standup quota controls. */
.admin-workspace-context {
    display: grid; gap: 4px; margin: 10px 8px 0; padding: 9px;
    border: 1px solid rgba(66,179,167,.28); border-radius: 8px; background: rgba(66,179,167,.09);
}
.admin-workspace-context small { color: #8ebeb8; font-size: 7px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.admin-workspace-context strong { overflow: hidden; color: #fff; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.admin-workspace-context form { margin: 2px 0 0; }
.admin-workspace-context button { width: 100%; min-height: 27px; padding: 5px 7px; cursor: pointer; border: 1px solid rgba(255,255,255,.22); border-radius: 6px; background: rgba(255,255,255,.09); color: #e8fffc; font: inherit; font-size: 7px; font-weight: 850; }
.admin-workspace-context button:hover { background: rgba(255,255,255,.16); }
.admin-workspace-resources { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-workspace-resources > span { padding: 9px; }
.admin-workspace-resources > span.is-at-limit { border-color: #e8c788; background: #fffaf0; }
.admin-workspace-resources > span.is-at-limit strong { color: #a86d19; }
.admin-workspace-limit-form {
    display: grid; grid-template-columns: minmax(0, 1fr) 72px auto; align-items: end;
    gap: 8px; margin: 12px 0 0; padding: 10px; border: 1px solid #e3e9ed;
    border-radius: 8px; background: #fbfcfc;
}
.admin-workspace-limit-form label { display: grid; gap: 2px; }
.admin-workspace-limit-form label span { color: #35515d; font-size: 9px; font-weight: 850; }
.admin-workspace-limit-form label small { color: #819096; font-size: 7px; }
.admin-workspace-limit-form input {
    width: 100%; min-height: 32px; padding: 6px 8px; border: 1px solid #ced9dd;
    border-radius: 6px; background: #fff; color: #244651; font-size: 10px; font-weight: 800;
}
.admin-workspace-limit-form .btn-ghost { min-height: 32px; padding: 6px 9px; font-size: 8px; }
.admin-workspace-card-actions .admin-workspace-secondary-actions { flex-wrap: wrap; }
.admin-workspace-card-actions .admin-workspace-open { min-height: 32px; padding: 7px 10px; font-size: 9px; }
.admin-workspace-card-actions .btn-ghost,
.admin-workspace-card-actions .admin-workspace-restore { min-height: 32px; padding: 7px 10px; font-size: 9px; }
.standup-limit-chip {
    display: inline-flex; align-items: center; min-height: 31px; padding: 6px 10px;
    border: 1px solid #e3c88f; border-radius: 8px; background: #fffaf0;
    color: #98661f; font-size: 9px; font-weight: 850;
}
.standup-template-heading small { display: block; margin-top: 2px; color: #839299; font-size: 8px; }
.standup-limit-notice {
    display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px;
    border: 1px solid #e6d1a3; border-radius: 8px; background: #fffaf0;
    color: #7b5b27; font-size: 9px;
}
.standup-limit-notice strong { color: #6e4b16; font-size: 9px; }
.standup-limit-notice a { margin-left: auto; color: #247d74; font-weight: 850; }
@media (max-width: 720px) {
    .admin-workspace-limit-form { grid-template-columns: 1fr 74px; }
    .admin-workspace-limit-form .btn-ghost { grid-column: 1 / -1; }
    .admin-workspace-resources { grid-template-columns: 1fr; }
}

/* Report responses: compact cards that remain readable with long answers. */
.response-grid { align-items: start; gap: 12px; }
.response-card { align-self: start; overflow: hidden; padding: 0 !important; }
.response-card-head { margin: 0 !important; padding: 11px 12px 9px !important; border-bottom: 1px solid #e9eef0; }
.response-avatar { width: 32px; height: 32px; flex-basis: 32px; border-radius: 8px; font-size: 9px; }
.response-person h3 { margin: 0; font-size: 12px !important; }
.response-person p { margin-top: 2px; font-size: 8px; }
.response-card .cadence-pill { padding: 3px 7px; font-size: 7px; }
.response-meta {
    margin: 0; padding: 8px 12px; border-top: 0; border-bottom-color: #edf1f2;
    background: #fbfcfc; color: #7c8b91; font-size: 8px;
}
.response-meta strong { font-size: 7px; }
.response-times { gap: 7px; }
.response-answer { padding: 11px 12px; background: rgba(255,255,255,.72); }
.response-answer + .response-answer { margin-top: 0; border-top: 1px solid #edf1f2; }
.response-answer h4 { margin: 0 0 5px; color: #6d7e85; font-size: 8px; font-weight: 850; line-height: 1.35; }
.response-answer .answer-text {
    max-width: 68ch; color: #294650; font-size: 10px; line-height: 1.55;
    white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
}
.long-answer { margin: 0; }
.long-answer summary {
    display: grid; gap: 7px; padding: 0; cursor: pointer; color: #294650;
    font-size: 10px; line-height: 1.55; list-style: none;
}
.long-answer summary::-webkit-details-marker { display: none; }
.long-answer-preview {
    display: -webkit-box; overflow: hidden; max-width: 68ch;
    -webkit-box-orient: vertical; -webkit-line-clamp: 3;
}
.long-answer-toggle {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 7px;
    width: fit-content; min-height: 25px; padding: 4px 7px;
    border: 1px solid #cfe3df; border-radius: 6px; background: #f2faf8;
    color: #27766e; font-size: 8px; font-weight: 850; line-height: 1;
}
.long-answer-toggle svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.8; transition: transform .15s ease; }
.long-answer .when-open { display: none; }
.long-answer[open] summary { margin: 0 0 8px; }
.long-answer[open] .long-answer-preview { display: none; }
.long-answer[open] .long-answer-toggle { display: inline-flex; }
.long-answer[open] .when-closed { display: none; }
.long-answer[open] .when-open { display: inline; }
.long-answer[open] .long-answer-toggle svg { transform: rotate(180deg); }
.long-answer-body {
    max-height: 260px; overflow: auto; padding: 10px;
    border: 1px solid #dfe9e7; border-radius: 7px; background: #fbfdfd;
    scrollbar-width: thin; scrollbar-color: #a9c5c0 transparent;
}
.long-answer-body .answer-text { max-width: 72ch; }
@media (max-width: 760px) {
    .response-grid { display: grid; grid-template-columns: 1fr; }
    .long-answer-body { max-height: 320px; }
}
@media print {
    .response-card { padding: 9pt !important; }
    .response-card-head { padding: 0 0 6pt !important; }
    .response-meta { padding: 5pt 0; background: #fff; }
    .response-answer { padding: 7pt 0; background: #fff; }
    .long-answer-body { max-height: none; overflow: visible; padding: 0; border: 0; background: #fff; }
}

/* Super-admin platform overview and role boundaries. */
.platform-dashboard-appbar { border-bottom-color: #dbe5f0; background: linear-gradient(110deg, #f9fbfe, #eef4fb); }
.platform-dashboard-eyebrow { margin: 0 0 3px; color: var(--brand); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.platform-dashboard-actions { display: flex; align-items: center; gap: 8px; }
.platform-dashboard-actions .btn-ghost,
.platform-dashboard-actions .btn-primary { min-height: 34px; padding: 7px 10px; font-size: 9px; }
.platform-dashboard-content { max-width: 1260px; padding-top: 18px; }
.platform-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.platform-summary article {
    display: grid; gap: 2px; min-height: 84px; padding: 13px 14px;
    border: 1px solid #dbe4ee; border-radius: 10px; background: #fff;
    box-shadow: 0 1px 2px rgba(32,56,100,.04);
}
.platform-summary small { color: #6f8188; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.platform-summary strong { color: #1f4852; font-size: 23px; line-height: 1.05; }
.platform-summary span { color: #788b91; font-size: 8px; }
.platform-summary article:nth-child(2) strong { color: #ad7424; }
.platform-summary article:nth-child(3) strong { color: #1d4ed8; }
.platform-health-panel,
.platform-review-panel { padding: 0 !important; overflow: hidden; }
.platform-review-panel { margin-top: 14px; }
.platform-section-heading {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px 14px; border-bottom: 1px solid #e3e9f0; background: #f8faff;
}
.platform-section-heading p { margin: 0 0 2px; color: var(--brand); font-size: 7px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.platform-section-heading h2 { margin: 0; color: #294a55; font-size: 14px; }
.platform-section-heading > span { color: #829197; font-size: 8px; }
.platform-section-heading a { color: var(--brand); font-size: 8px; font-weight: 850; }
.platform-workspace-list { display: grid; }
.platform-workspace-row {
    display: grid; grid-template-columns: 34px minmax(145px, .9fr) 140px minmax(210px, 1.4fr) minmax(105px, .7fr);
    align-items: center; gap: 11px; min-width: 0; padding: 11px 14px; background: #fff;
}
.platform-workspace-row + .platform-workspace-row { border-top: 1px solid #edf1f2; }
.platform-workspace-row.needs-review { background: #fffdf9; }
.platform-workspace-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--brand); background: #dbeafe; font-size: 8px; font-weight: 900; }
.platform-workspace-name { min-width: 0; }
.platform-workspace-name > span { display: flex; align-items: center; gap: 5px; min-width: 0; }
.platform-workspace-name strong { overflow: hidden; color: #294954; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.platform-workspace-name em { padding: 2px 5px; border-radius: 99px; background: #edf1f4; color: #6f7f86; font-size: 6px; font-style: normal; font-weight: 850; text-transform: uppercase; }
.platform-workspace-name > small { display: block; margin-top: 2px; color: #89979c; font-size: 7px; }
.platform-workspace-status { width: fit-content; padding: 4px 7px; border-radius: 99px; font-size: 7px; font-weight: 850; }
.platform-workspace-status.healthy { color: #26776e; background: #dff3ef; }
.platform-workspace-status.quiet { color: #94641f; background: #fff1d8; }
.platform-workspace-status.blocked { color: #a04d43; background: #fbe7e4; }
.platform-workspace-status.suspended { color: #6e7a80; background: #edf0f2; }
.platform-workspace-activity { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; min-width: 0; }
.platform-workspace-activity > span { display: flex; justify-content: space-between; gap: 8px; grid-column: 1 / -1; }
.platform-workspace-activity small,
.platform-workspace-activity em { color: #839197; font-size: 7px; font-style: normal; }
.platform-workspace-activity strong { color: #405c66; font-size: 8px; }
.platform-workspace-activity i { align-self: center; overflow: hidden; height: 5px; border-radius: 99px; background: #e4eaf2; }
.platform-workspace-activity i b { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: var(--brand-mid); }
.platform-workspace-resources { display: grid; gap: 2px; justify-items: end; text-align: right; }
.platform-workspace-resources strong { color: #425e68; font-size: 8px; }
.platform-workspace-resources small { color: #859399; font-size: 7px; }
.platform-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.platform-review-grid article { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px; border: 1px solid #eee4d4; border-radius: 8px; background: #fffdf9; }
.platform-review-grid article > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: #f5ead7; color: #966a29; font-size: 7px; font-weight: 900; }
.platform-review-grid strong { display: block; color: #415a64; font-size: 9px; }
.platform-review-grid small { display: block; margin-top: 2px; color: #9b6722; font-size: 7px; }
.platform-review-grid em { color: #8a969a; font-size: 7px; font-style: normal; }
.platform-empty { padding: 50px 20px !important; text-align: center; }
.platform-empty > span { display: block; color: var(--brand-mid); font-size: 24px; }
.platform-empty h2 { margin: 7px 0 0; font-size: 14px; }
.platform-empty p { margin: 5px 0 12px; color: #7d8c91; font-size: 9px; }
.platform-role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.platform-role-grid article { padding: 12px 13px; border: 1px solid #dfe7ea; border-radius: 9px; background: #fff; }
.platform-role-grid article > span { color: #65808a; font-size: 7px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.platform-role-grid h2 { margin: 3px 0 5px; color: #294954; font-size: 12px; }
.platform-role-grid p { margin: 0 0 7px; color: #6f8188; font-size: 8px; line-height: 1.45; }
.platform-role-grid strong { color: var(--brand); font-size: 7px; }
.platform-role-grid .super-admin { border-color: #cbd9ea; background: #f5f8fd; }
.platform-ai-usage-panel { margin-bottom: 14px !important; padding: 0 !important; overflow: hidden; }
.platform-ai-heading { border-bottom: 0; }
.platform-ai-summary {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
    padding: 0 14px 12px; background: #f8faff;
}
.platform-ai-summary article {
    display: grid; gap: 2px; padding: 9px 10px; border: 1px solid #dce5f0;
    border-radius: 8px; background: #fff;
}
.platform-ai-summary small { color: #718092; font-size: 7px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.platform-ai-summary strong { color: var(--brand); font-size: 17px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.platform-ai-list { border-top: 1px solid #e3e9f0; }
.platform-ai-row {
    display: grid; grid-template-columns: minmax(170px, 1fr) minmax(180px, 1fr) minmax(225px, .8fr);
    align-items: center; gap: 14px; padding: 11px 14px; background: #fff;
}
.platform-ai-row + .platform-ai-row { border-top: 1px solid #edf1f5; }
.platform-ai-row.is-at-limit { background: #fffdf8; }
.platform-ai-workspace { min-width: 0; display: flex; align-items: center; gap: 9px; }
.platform-ai-workspace > span:last-child { min-width: 0; display: grid; gap: 2px; }
.platform-ai-workspace strong { overflow: hidden; color: #294954; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.platform-ai-workspace small { color: #89979c; font-size: 7px; }
.platform-ai-meter { min-width: 0; display: grid; gap: 5px; }
.platform-ai-meter > span { display: flex; justify-content: space-between; gap: 10px; }
.platform-ai-meter strong { color: #405c66; font-size: 8px; }
.platform-ai-meter small { color: #7f8e99; font-size: 7px; }
.platform-ai-meter > i { height: 6px; overflow: hidden; border-radius: 99px; background: #e4eaf2; }
.platform-ai-meter > i > b { display: block; min-width: 2px; height: 100%; border-radius: inherit; background: var(--brand-mid); }
.platform-ai-row.is-at-limit .platform-ai-meter > i > b { background: #d49a43; }
.platform-ai-row.is-at-limit .platform-ai-meter strong { color: #94641f; }
.platform-ai-limit-form {
    display: grid; grid-template-columns: minmax(68px, 1fr) auto; align-items: end; gap: 5px;
}
.platform-ai-limit-form label { grid-column: 1 / -1; color: #687b8e; font-size: 7px; font-weight: 850; }
.platform-ai-limit-form input {
    width: 100%; min-height: 34px; padding: 6px 8px; border: 1px solid #cfd9e6;
    border-radius: 7px; color: #29445d; background: #fff; font: inherit; font-size: 9px; font-weight: 750;
}
.platform-ai-limit-form input:focus { border-color: var(--brand-mid); outline: 0; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.platform-ai-limit-form .btn-ghost { min-height: 34px; padding: 6px 9px; }
.platform-ai-empty { padding: 30px 14px; border-top: 1px solid #e3e9f0; color: #7d8c96; font-size: 9px; text-align: center; }
.platform-ai-preview-row { grid-template-columns: minmax(170px, 1fr) minmax(220px, 1.4fr) auto; }
.platform-ai-status {
    width: fit-content; display: inline-flex; align-items: center; justify-content: center;
    min-height: 25px; padding: 4px 8px; border-radius: 99px; font-size: 8px; font-weight: 850; white-space: nowrap;
}
.platform-ai-status.available { color: #285e9c; background: #e8f1fc; }
.platform-ai-status.high { color: #8a5a16; background: #fff2d8; }
.platform-ai-status.limit { color: #9a4c31; background: #fbe9df; }
.platform-ai-status.disabled { color: #687784; background: #edf1f4; }

/* Scalable platform AI-usage directory. */
.ai-usage-content { display: grid; gap: 14px; }
.ai-usage-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ai-usage-summary article {
    display: grid; gap: 3px; padding: 14px 15px; border: 1px solid #dce5ef;
    border-radius: 10px; background: #fff;
}
.ai-usage-summary small { color: #66788b; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.ai-usage-summary strong { color: var(--brand); font-size: 22px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ai-usage-summary span { color: #81909c; font-size: 9px; }
.ai-usage-directory { padding: 0 !important; overflow: hidden; }
.ai-usage-toolbar {
    display: grid; grid-template-columns: minmax(210px, 1.6fr) minmax(145px, .8fr) minmax(145px, .8fr) 82px auto auto;
    align-items: end; gap: 9px; padding: 14px; border-bottom: 1px solid #e2e8f0; background: #f8faff;
}
.ai-usage-toolbar label { display: grid; gap: 5px; color: #5d7182; font-size: 9px; font-weight: 800; }
.ai-usage-toolbar input,
.ai-usage-toolbar select {
    width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid #cfd9e6;
    border-radius: 8px; color: #29445d; background: #fff; font: inherit; font-size: 10px;
}
.ai-usage-toolbar input:focus,
.ai-usage-toolbar select:focus,
.ai-usage-limit-form input:focus { border-color: var(--brand-mid); outline: 0; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.ai-usage-results-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 14px; }
.ai-usage-results-heading p { margin: 0 0 2px; color: #738294; font-size: 8px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.ai-usage-results-heading h2 { margin: 0; color: #294954; font-size: 14px; }
.ai-usage-results-heading > span { color: #81909c; font-size: 9px; }
.ai-usage-table { border-top: 1px solid #e3e9f0; }
.ai-usage-table-head,
.ai-usage-table-row {
    display: grid; grid-template-columns: minmax(190px, 1.4fr) 100px 100px minmax(150px, 1fr) minmax(150px, .8fr);
    align-items: center; gap: 14px; padding: 10px 14px;
}
.ai-usage-table-head { color: #748494; background: #f8fafc; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.ai-usage-table-row { min-height: 62px; border-top: 1px solid #edf1f5; background: #fff; }
.ai-usage-table-row:hover { background: #f9fbfe; }
.ai-usage-workspace-cell { min-width: 0; display: flex; align-items: center; gap: 9px; }
.ai-usage-workspace-cell > span:last-child { min-width: 0; display: grid; gap: 2px; }
.ai-usage-workspace-cell strong { overflow: hidden; color: #294954; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ai-usage-workspace-cell small,
.ai-usage-count small { color: #81909c; font-size: 8px; }
.ai-usage-count { display: grid; gap: 2px; }
.ai-usage-count strong { color: #344f60; font-size: 12px; font-variant-numeric: tabular-nums; }
.ai-usage-progress { grid-template-columns: minmax(80px, 1fr) auto; align-items: center; }
.ai-usage-progress small { font-variant-numeric: tabular-nums; }
.ai-usage-limit-form { display: grid; grid-template-columns: minmax(70px, 1fr) auto; align-items: center; gap: 6px; }
.ai-usage-limit-form input {
    width: 100%; min-height: 34px; padding: 6px 8px; border: 1px solid #cfd9e6;
    border-radius: 7px; color: #29445d; background: #fff; font: inherit; font-size: 10px; font-weight: 750;
}
.ai-usage-limit-form .btn-ghost { min-height: 34px; }
.ai-usage-empty { padding: 48px 18px; border-top: 1px solid #e3e9f0; text-align: center; }
.ai-usage-empty > span { color: var(--brand-mid); font-size: 24px; }
.ai-usage-empty h2 { margin: 7px 0 0; color: #294954; font-size: 14px; }
.ai-usage-empty p { margin: 5px 0 12px; color: #7d8c96; font-size: 10px; }
.ai-usage-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 14px; border-top: 1px solid #e3e9f0; }
.ai-usage-pagination > span { color: #617484; font-size: 9px; font-weight: 750; }
.ai-usage-pagination .disabled { pointer-events: none; opacity: .45; }
.ai-usage-limit-form .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (max-width: 980px) {
    .platform-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .platform-workspace-row { grid-template-columns: 34px minmax(130px, 1fr) 130px minmax(180px, 1.3fr); }
    .platform-workspace-resources { display: none; }
    .platform-ai-row { grid-template-columns: minmax(160px, 1fr) minmax(170px, 1fr); }
    .platform-ai-limit-form { grid-column: 1 / -1; grid-template-columns: minmax(80px, 160px) auto; justify-content: end; }
    .platform-ai-preview-row { grid-template-columns: minmax(160px, 1fr) minmax(170px, 1fr) auto; }
    .ai-usage-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ai-usage-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ai-usage-search { grid-column: 1 / -1; }
    .ai-usage-table { overflow-x: auto; }
    .ai-usage-table-head,
    .ai-usage-table-row { min-width: 820px; }
}
@media (max-width: 700px) {
    .platform-dashboard-appbar { align-items: flex-start; flex-direction: column; }
    .platform-dashboard-actions { width: 100%; }
    .platform-dashboard-actions a { flex: 1; text-align: center; }
    .platform-workspace-row { grid-template-columns: 34px minmax(0, 1fr); }
    .platform-workspace-status { grid-column: 2; }
    .platform-workspace-activity { grid-column: 1 / -1; }
    .platform-review-grid,
    .platform-role-grid { grid-template-columns: 1fr; }
    .platform-ai-summary { grid-template-columns: 1fr; }
    .platform-ai-row { grid-template-columns: 1fr; }
    .platform-ai-limit-form { grid-column: auto; grid-template-columns: minmax(80px, 1fr) auto; justify-content: stretch; }
    .platform-ai-preview-row { grid-template-columns: 1fr; }
    .ai-usage-appbar .btn-ghost { width: 100%; }
    .ai-usage-summary { grid-template-columns: 1fr 1fr; }
    .ai-usage-toolbar { grid-template-columns: 1fr 1fr; }
    .ai-usage-search { grid-column: 1 / -1; }
    .ai-usage-results-heading { align-items: flex-start; flex-direction: column; }
    .ai-usage-pagination { justify-content: space-between; }
}

/* Authenticated actions: one compact, neutral button system across every app page. */
.app .btn-primary,
.app .btn-ghost,
.app .btn-danger {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
    transform: none;
}
.app .btn-primary {
    border: 1px solid var(--brand);
    color: #fff;
    background: var(--brand);
}
.app .btn-primary:hover {
    border-color: var(--brand-dk);
    color: #fff;
    background: var(--brand-dk);
    box-shadow: none;
}
.app .btn-ghost {
    border: 1px solid #d8e0e8;
    color: var(--brand);
    background: #fff;
}
.app .btn-ghost:hover {
    border-color: #b8c7d7;
    color: var(--brand-dk);
    background: #f5f8fb;
}
.app .btn-danger {
    border: 1px solid #e8cbd1;
    color: #a33e51;
    background: #fff;
}
.app .btn-danger:hover {
    border-color: #ddb3bc;
    color: #8f3043;
    background: #fbf1f3;
}
.app .admin-workspace-suspend {
    border-color: #e8cbd1;
    color: #a33e51;
    background: #fff;
}
.app .admin-workspace-suspend:hover {
    border-color: #ddb3bc;
    color: #8f3043;
    background: #fbf1f3;
}
.app .btn-primary:disabled,
.app .btn-ghost:disabled,
.app .btn-danger:disabled {
    border-color: #dfe5eb;
    color: #8a96a4;
    background: #f1f4f7;
    box-shadow: none;
    cursor: not-allowed;
}

/* Header actions wrap at their natural compact width instead of becoming large bars. */
.app .appbar > :last-child,
.app .platform-dashboard-actions {
    flex-wrap: wrap;
}
@media (max-width: 700px) {
    .app .platform-dashboard-actions a,
    .app .appbar .app-action {
        width: auto;
        flex: 0 0 auto;
    }
}

/* Authenticated typography: familiar font and a readable compact scale. */
.app .main {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 14px;
}
.app .main .appbar h1 { font-size: 23px; }
.app .main .appbar .sub,
.app .main .content p { font-size: 13px; }
.app .main .content h2,
.app .main .section-heading h2,
.app .main .teams-section-heading h2,
.app .main .standups-section-heading h2,
.app .main .operations-section-heading h2,
.app .main .onboarding-section-heading h2,
.app .main .automation-section-heading h2,
.app .main .editor-panel-heading h2,
.app .main .profile-form-heading h2 { font-size: 18px; }
.app .main .content h3,
.app .main .team-card-body h3,
.app .main .standup-card-title-row h3 { font-size: 16px; }
.app .main .muted { font-size: 13px; }
.app .main small { font-size: 11px; line-height: 1.4; }
.app .main th { font-size: 11px; }
.app .main td { font-size: 13px; }
.app .main .pill,
.app .main .badge,
.app .main .tag { font-size: 11px; }
.app .btn-primary,
.app .btn-ghost,
.app .btn-danger { font-size: 12px; }

/* Shared authenticated header: page identity on the left, account controls on the right. */
.appbar-account { position: relative; flex: 0 0 auto; margin-left: auto; }
.account-menu { position: relative; }
.account-menu > summary {
    display: flex; align-items: center; gap: 6px; padding: 3px 5px 3px 3px;
    border: 1px solid #dbe4ef; border-radius: 999px; color: #52657f; background: #fff;
    box-shadow: 0 2px 8px rgba(28, 52, 83, .07); cursor: pointer; list-style: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary:hover,
.account-menu[open] > summary { border-color: #b9cae0; background: #f8fbff; box-shadow: 0 5px 14px rgba(28, 52, 83, .11); }
.account-menu > summary:focus-visible { outline: 3px solid rgba(59,130,246,.2); outline-offset: 2px; }
.account-menu-avatar {
    width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden;
    border: 1px solid #c9d8e9; border-radius: 50%; color: #43658f; background: #eaf1fa;
}
.account-menu-avatar.large { width: 43px; height: 43px; flex: 0 0 43px; }
.account-menu-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-menu-avatar svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.account-menu-avatar.large svg { width: 22px; height: 22px; }
.account-menu-chevron { padding: 0 4px 3px 0; font-size: 13px; line-height: 1; transition: transform .15s; }
.account-menu[open] .account-menu-chevron { transform: rotate(180deg); }
.account-menu-popover {
    position: absolute; z-index: 50; top: calc(100% + 9px); right: 0; width: 250px;
    padding: 8px; border: 1px solid #dce4ee; border-radius: 14px; background: #fff;
    box-shadow: 0 18px 42px rgba(28, 49, 76, .17);
}
.account-menu-popover::before {
    position: absolute; top: -5px; right: 20px; width: 9px; height: 9px;
    border-top: 1px solid #dce4ee; border-left: 1px solid #dce4ee;
    background: #fff; content: ""; transform: rotate(45deg);
}
.account-menu-popover > header { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; border-bottom: 1px solid #e8edf3; }
.account-menu-popover > header > span:last-child { min-width: 0; }
.account-menu-popover > header strong,
.account-menu-popover > header small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-popover > header strong { color: #263f62; font-size: 13px; }
.account-menu-popover > header small { margin-top: 2px; color: #7c899b; font-size: 10px; }
.account-menu-popover nav { display: grid; gap: 2px; padding: 6px 0; }
.account-menu-popover nav a,
.account-menu-popover form button {
    width: 100%; display: grid; grid-template-columns: 27px minmax(0,1fr); align-items: center; gap: 8px;
    padding: 8px; border: 0; border-radius: 9px; color: #3e526f; background: transparent;
    font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.account-menu-popover nav a:hover { color: #244f88; background: #f1f6fc; }
.account-menu-popover nav a > span:first-child,
.account-menu-popover form button > span:first-child { display: grid; place-items: center; color: #5475a1; font-size: 14px; }
.account-menu-popover nav svg,
.account-menu-popover form svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.account-menu-popover nav strong,
.account-menu-popover nav small,
.account-menu-popover form strong,
.account-menu-popover form small { display: block; }
.account-menu-popover nav strong,
.account-menu-popover form strong { font-size: 12px; }
.account-menu-popover nav small,
.account-menu-popover form small { margin-top: 1px; color: #8994a3; font-size: 9px; }
.account-menu-popover form { margin: 0; padding-top: 6px; border-top: 1px solid #e8edf3; }
.account-menu-popover form button { color: #9d3f50; }
.account-menu-popover form button:hover { background: #fff3f5; }
.account-menu-popover form button > span:first-child { color: #b65365; }

/* Page-level actions live with page content, not in the global header. */
.page-action-bar {
    display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap;
    gap: 7px; margin: -4px 0 18px; padding-bottom: 14px; border-bottom: 1px solid #e4e9ef;
}
.page-action-bar .pill,
.page-action-bar .standup-limit-chip { margin-right: auto; }

@media (max-width: 700px) {
    .app .appbar { align-items: center; flex-direction: row; }
    .app .appbar > div:first-child { flex: 1 1 auto; }
    .appbar-account { flex: 0 0 auto; width: auto; }
    .account-menu-popover { position: absolute; top: calc(100% + 9px); right: 0; left: auto; width: min(250px, calc(100vw - 24px)); }
    .account-menu-popover::before { right: 20px; }
    .page-action-bar { align-items: stretch; justify-content: flex-start; }
}

@media (max-width: 860px) {
    .appbar { top: 61px; }
}

@media (max-width: 520px) {
    .appbar { top: 57px; }
}

/* Dashboard and chart labels need to remain legible without enlarging the cards. */
.app .main .dashboard-context,
.app .main .dashboard-stat-label { font-size: 12px; }
.app .main .dashboard-section-heading h2,
.app .main .dashboard-quick-panel h2,
.app .main .dashboard-readiness h2,
.app .main .dashboard-insight-heading h2 { font-size: 16px; }
.app .main .dashboard-insight-heading > p,
.app .main .platform-dashboard-eyebrow,
.app .main [class$="-kicker"] { font-size: 10px; }
.app .main .dashboard-insight-heading > a,
.app .main .dashboard-setup-link,
.app .main .dashboard-trend-summary dt,
.app .main .dashboard-bar-column strong,
.app .main .dashboard-bar-column small,
.app .main .dashboard-line-point text,
.app .main .dashboard-ready-badge,
.app .main .dashboard-period-badge { font-size: 10px; }
.app .main .dashboard-trend-summary > div span,
.app .main .dashboard-trend-summary dd,
.app .main .dashboard-setup-copy p,
.app .main .dashboard-visual-checklist small,
.app .main .dashboard-donut > span small,
.app .main .dashboard-donut-legend strong,
.app .main .dashboard-donut-legend small,
.app .main .dashboard-donut-legend em,
.app .main .dashboard-donut-empty { font-size: 11px; }
.app .main .dashboard-setup-copy strong,
.app .main .dashboard-visual-checklist strong,
.app .main .dashboard-activity-topline strong,
.app .main .dashboard-action-list strong,
.app .main .dashboard-action-list > a > span:last-child,
.app .main .dashboard-checklist strong { font-size: 12px; }
.app .main .dashboard-activity-topline time,
.app .main .dashboard-activity-context,
.app .main .dashboard-checklist small { font-size: 11px; }

/* Reports and daily updates use normal reading text for submitted answers. */
.app .main .response-person h3,
.app .main .daily-chat-message > header strong { font-size: 13px !important; }
.app .main .response-person p,
.app .main .response-meta,
.app .main .response-meta strong,
.app .main .response-card .cadence-pill,
.app .main .daily-chat-message time,
.app .main .daily-chat-message dt { font-size: 10px; }
.app .main .response-answer h4 { font-size: 11px; }
.app .main .response-answer .answer-text,
.app .main .long-answer summary,
.app .main .daily-chat-message dd { font-size: 13px; }
.app .main .long-answer-toggle { font-size: 11px; }
.app .main .daily-update-filter label { font-size: 12px; }
.app .main .daily-update-filter select,
.app .main .daily-update-filter input { font-size: 13px; }
.app .main .daily-update-date-nav strong { font-size: 13px; }
.app .main .daily-update-date-nav small { font-size: 11px; }

/* Daily update conversation: readable names, prompts and submitted answers. */
.app .main .daily-conversation-kicker {
    margin-bottom: 4px;
    font-size: 12px;
    letter-spacing: .04em;
}
.app .main .daily-conversation-heading h2 { font-size: 18px; }
.app .main .daily-conversation-heading > span {
    padding: 5px 9px;
    font-size: 11px;
}
.app .main .daily-chat-avatar {
    width: 38px;
    height: 38px;
    font-size: 11px;
}
.app .main .daily-chat-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
}
.app .main .daily-chat-message > header strong { font-size: 14px !important; }
.app .main .daily-chat-message time { font-size: 11px; }
.app .main .daily-chat-message dt {
    color: #5f737b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}
.app .main .daily-chat-message dd {
    margin-top: 4px;
    color: #253f4a;
    font-size: 14px;
    line-height: 1.55;
}
@media (max-width: 520px) {
    .app .main .daily-chat-item {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 9px;
    }
    .app .main .daily-chat-avatar {
        width: 34px;
        height: 34px;
        font-size: 10px;
    }
}

/* Report response cards use the same readable conversation scale. */
.app .main .response-group-heading h2 { font-size: 18px; }
.app .main .response-group-heading > span { font-size: 12px; }
.app .main .response-card-head { gap: 12px; }
.app .main .response-avatar {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 12px;
}
.app .main .response-person h3 { font-size: 14px !important; }
.app .main .response-person p {
    margin-top: 3px;
    font-size: 12px;
}
.app .main .response-card .cadence-pill {
    padding: 4px 7px;
    font-size: 10px;
}
.app .main .response-meta {
    padding: 9px 12px;
    font-size: 11px;
    line-height: 1.45;
}
.app .main .response-meta strong {
    margin-right: 4px;
    font-size: 10px;
}
.app .main .response-answer {
    padding: 13px 14px;
}
.app .main .response-answer h4 {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
}
.app .main .response-answer .answer-text,
.app .main .long-answer summary {
    font-size: 14px;
    line-height: 1.55;
}
.app .main .long-answer-toggle {
    min-height: 27px;
    padding: 5px 8px;
    font-size: 11px;
}

/* Platform overview previously used preview-sized typography. */
.app .main .platform-summary small,
.app .main .platform-summary span,
.app .main .platform-section-heading > span,
.app .main .platform-section-heading a { font-size: 11px; }
.app .main .platform-section-heading > div > p { font-size: 10px; }
.app .main .platform-section-heading h2 { font-size: 16px; }
.app .main .platform-workspace-avatar,
.app .main .platform-workspace-status,
.app .main .platform-workspace-name em { font-size: 10px; }
.app .main .platform-workspace-name strong { font-size: 13px; }
.app .main .platform-workspace-name > small,
.app .main .platform-workspace-activity small,
.app .main .platform-workspace-activity em,
.app .main .platform-workspace-resources small { font-size: 11px; }
.app .main .platform-workspace-activity strong,
.app .main .platform-workspace-resources strong { font-size: 12px; }
.app .main .platform-review-grid strong,
.app .main .platform-review-grid small,
.app .main .platform-review-grid em { font-size: 11px; }
.app .main .platform-role-grid article > span,
.app .main .platform-role-grid strong { font-size: 10px; }
.app .main .platform-role-grid h2 { font-size: 15px; }
.app .main .platform-role-grid p { font-size: 12px; }

/* Section labels use clean text without decorative leading rules. */
.landing-eyebrow,
.login-showcase-kicker { gap: 0; }
.landing-eyebrow > span,
.login-showcase-kicker > span { display: none !important; }

/* Authenticated pages consistently use the full application body width. */
.app .main > .content {
    width: 100%; max-width: none; margin-inline: 0;
}
.standup-answer-content {
    width: 100%; max-width: none; margin-inline: 0;
}
.standup-answer-content .standup-response-panel {
    width: 100%; max-width: none;
}
.platform-dashboard-content {
    width: 100%; max-width: none; margin-inline: 0;
}

/* Sidebar identity follows the same alignment and rhythm as the navigation. */
@media (min-width: 861px) {
    .sidebar-brand {
        justify-content: flex-start; gap: 10px; margin: 0 3px 8px;
        padding: 4px 7px 8px; text-align: left;
    }
    .sidebar-brand::after { display: none; }
    .sidebar-brand-mark {
        width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px;
        box-shadow: 0 6px 16px rgba(3,15,34,.22);
    }
    .sidebar-brand-copy strong { font-size: 17px; }
    .sidebar-profile-card {
        flex-direction: column; align-items: center; justify-content: center;
        gap: 11px; margin: 0 3px 17px; padding: 8px 7px 15px;
        border-bottom: 1px solid rgba(147,197,253,.17); text-align: center;
    }
    .sidebar-profile-avatar {
        width: 92px; height: 92px; flex-basis: 92px;
        box-shadow: 0 8px 20px rgba(3,15,34,.22), 0 0 0 4px rgba(147,197,253,.08);
    }
    .sidebar-profile-avatar > svg { width: 36px; height: 36px; }
    .sidebar-profile-copy { width: 100%; min-width: 0; }
    .sidebar-profile-copy strong { font-size: 13px; }
    .sidebar-profile-copy small { margin-top: 4px; font-size: 10px; }
    .sidebar-profile-workspace { display: inline-block; max-width: 100%; margin-top: 8px; }
}
/* Sprint task management */
.tasks-content { display: grid; gap: 20px; }
.tasks-eyebrow { margin: 0 0 5px; color: #5c7394; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tasks-eyebrow a { color: inherit; }
.tasks-toolbar, .sprint-board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sprint-directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.sprint-card, .task-empty { padding: 20px; border: 1px solid #dce5f0; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(22, 48, 82, .05); }
.sprint-card h2 { margin: 14px 0 8px; font-size: 18px; }.sprint-card p { min-height: 42px; color: #607087; }
.sprint-team { margin-left: 8px; color: #64748b; font-size: 11px; font-weight: 700; }
.sprint-dates { display: flex; gap: 8px; color: #53657d; font-size: 12px; }
.sprint-progress { margin-top: 16px; }.sprint-progress > div { height: 6px; overflow: hidden; border-radius: 9px; background: #e8eef6; }.sprint-progress > div span { display: block; height: 100%; border-radius: inherit; background: #2f6fbe; }.sprint-progress small { display: block; margin-top: 7px; color: #64748b; }
.task-status, .task-priority { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: #e8eef6; color: #43546b; font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.task-status.active, .task-status.in_progress { background: #dbeafe; color: #1d4f91; }.task-status.completed, .task-status.done { background: #dcfce7; color: #25723d; }.task-status.blocked { background: #fee2e2; color: #a12e38; }
.task-priority.low { background: #edf2f7; }.task-priority.high { background: #ffedd5; color: #9a4d0d; }.task-priority.urgent { background: #fee2e2; color: #a12e38; }
.task-form { display: grid; gap: 16px; }.task-form.card { max-width: 850px; padding: 24px; }.task-form label { display: grid; gap: 7px; }.task-form label > span { font-size: 11px; font-weight: 800; color: #40536d; }.task-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.task-create-panel { border: 1px solid #dce5f0; border-radius: 12px; background: #fff; }.task-create-panel summary { width: max-content; margin: 12px; cursor: pointer; list-style: none; }.task-create-panel form { padding: 4px 18px 18px; }
.sprint-board-meta { display: flex; align-items: center; gap: 10px; color: #607087; font-size: 12px; }.inline-form { display: inline; }
.task-board { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 12px; }
.task-column { min-height: 420px; padding: 10px; border: 1px solid #dce5f0; border-radius: 14px; background: #f6f8fb; }.task-column > header { display: flex; align-items: center; justify-content: space-between; padding: 4px 5px 12px; }.task-column h2 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }.task-column > header span { padding: 3px 7px; border-radius: 20px; background: #e2e8f0; font-size: 10px; }
.task-column-list { display: grid; gap: 9px; min-height: 350px; border-radius: 10px; transition: background .15s; }.task-column-list.is-over { background: #e6f0ff; }
.task-card { display: grid; gap: 10px; padding: 13px; border: 1px solid #d9e2ed; border-radius: 11px; background: #fff; box-shadow: 0 3px 12px rgba(22, 48, 82, .06); cursor: grab; }.task-card.is-dragging { opacity: .45; }.task-card a { display: grid; gap: 5px; color: #172b47; }.task-card a small { color: #718096; font-size: 9px; }.task-card a strong { font-size: 13px; line-height: 1.35; }.task-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #596b82; font-size: 10px; }.task-card time { color: #607087; font-size: 10px; }.task-card time.overdue, time.overdue { color: #b42335; font-weight: 800; }.task-move-menu select { width: 100%; padding: 6px 8px; font-size: 10px; }
.my-task-list { display: grid; gap: 8px; }.my-task-row { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto 110px; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #dce5f0; border-radius: 11px; background: #fff; }.my-task-row > div { display: grid; gap: 4px; }.my-task-row small { color: #718096; font-size: 9px; }.my-task-row a { color: #17365e; font-weight: 750; }
.task-readonly dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }.task-readonly dt { color: #718096; font-size: 10px; }.task-readonly dd { margin: 4px 0 0; font-weight: 700; }
.task-secondary-actions { display: grid; gap: 12px; max-width: 850px; margin-top: 18px; }
.task-move-panel { display: grid; grid-template-columns: auto minmax(150px, .7fr) minmax(280px, 1fr); align-items: center; gap: 14px; padding: 16px; border: 1px solid #d9e5f2; border-radius: 14px; background: #f7f9fc; box-shadow: 0 5px 18px rgba(28, 52, 83, .06); }
.task-move-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: #e6effb; color: #35669c; font-size: 20px; font-weight: 800; }
.task-move-copy { display: grid; gap: 2px; }.task-move-copy > span { color: #71849b; font-size: 8px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }.task-move-copy strong { color: #213a59; font-size: 13px; }.task-move-copy small { overflow: hidden; color: #77889c; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.task-move-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }.task-move-controls label { min-width: 0; }.task-move-controls select { width: 100%; min-height: 38px; border-color: #cad8e8; background: #fff; }.task-move-controls .btn-primary { min-height: 38px; padding-inline: 17px; }
.task-remove-action { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 14px; border: 1px solid #f0d9de; border-radius: 12px; background: #fffafb; }.task-remove-action > span { display: grid; gap: 2px; }.task-remove-action strong { color: #713846; font-size: 11px; }.task-remove-action small { color: #9b7680; font-size: 9px; }
@media (max-width: 720px) { .task-move-panel { grid-template-columns: auto 1fr; }.task-move-controls { grid-column: 1 / -1; }.task-remove-action { align-items: flex-start; flex-direction: column; }.task-remove-action .btn-danger { width: 100%; } }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 900px) { .task-board { grid-template-columns: repeat(4, 270px); }.task-form-grid { grid-template-columns: 1fr; }.my-task-row { grid-template-columns: 1fr auto; }.task-secondary-actions { flex-direction: column; } }

/* Dynamic sprint workspace */
.sprint-workspace { min-width: 0; padding: 18px; }
.sprint-workspace > .alert { margin-bottom: 12px; }
.sprint-workspace-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: calc(100vh - 150px); overflow: hidden; border: 1px solid #dce5f0; border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgba(22,48,82,.06); }
.sprint-rail { display: flex; min-height: 0; flex-direction: column; border-right: 1px solid #dce5f0; background: #f8fafc; }
.sprint-rail > header { display: flex; align-items: center; justify-content: space-between; padding: 18px 15px 12px; }.sprint-rail h2 { margin: 2px 0 0; font-size: 16px; }.sprint-rail header small { color: #718096; font-size: 9px; text-transform: uppercase; }.rail-my-tasks { color: #24518a; font-size: 10px; font-weight: 800; }
.sprint-rail nav { display: grid; gap: 4px; overflow-y: auto; padding: 4px 9px; }.sprint-rail nav > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border: 1px solid transparent; border-radius: 10px; color: #344860; }.sprint-rail nav > a:hover { background: #fff; }.sprint-rail nav > a.active { border-color: #bfd4ed; background: #eaf2fc; color: #173f72; }.sprint-rail nav a > span:first-child { display: grid; min-width: 0; gap: 3px; }.sprint-rail nav strong, .sprint-rail nav small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.sprint-rail nav strong { font-size: 11px; }.sprint-rail nav small { color: #718096; font-size: 9px; }.sprint-rail .task-status { max-width: 60px; overflow: hidden; text-overflow: ellipsis; }
.rail-create { margin: auto 10px 12px; padding: 9px; border: 1px dashed #9fb8d6; border-radius: 9px; background: transparent; color: #24518a; text-align: center; font-size: 10px; font-weight: 800; cursor: pointer; }
.sprint-board-pane { display: flex; min-width: 0; flex-direction: column; overflow: hidden; }.board-pane-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid #e3eaf2; }.board-pane-header h2 { margin: 2px 0 5px; font-size: 20px; }.board-pane-header p:last-child { margin: 0; color: #64748b; font-size: 11px; }.board-pane-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }.board-pane-actions > span { color: #64748b; font-size: 10px; font-weight: 700; }
.task-board-scroll { min-width: 0; flex: 1; overflow-x: auto; overflow-y: hidden; background: #f4f7fb; scrollbar-color: #9eb5cf #edf2f7; scrollbar-width: thin; }.task-board-scroll::-webkit-scrollbar { height: 11px; }.task-board-scroll::-webkit-scrollbar-thumb { border: 2px solid #edf2f7; border-radius: 10px; background: #9eb5cf; }
.task-board-scroll .task-board { display: grid; width: max-content; min-width: 100%; grid-auto-flow: column; grid-auto-columns: 270px; grid-template-columns: none; align-items: stretch; overflow: visible; padding: 14px; }
.task-board-scroll .task-column { width: 270px; max-height: calc(100vh - 245px); overflow-y: auto; }.task-column > header h3 { margin: 0; font-size: 11px; }.status-name-form { display: flex; min-width: 0; flex: 1; gap: 4px; }.status-name-form input { min-width: 0; padding: 5px 7px; border-color: transparent; background: transparent; font-size: 11px; font-weight: 800; }.status-name-form input:focus { border-color: #9ebad9; background: #fff; }.status-name-form button { width: 25px; min-height: 25px; padding: 0; border: 0; border-radius: 6px; background: #e5edf7; color: #24518a; cursor: pointer; }
.status-drag-handle { flex: 0 0 auto; padding: 2px 5px; border: 0; background: transparent; color: #718096; font-size: 18px; cursor: grab; }.status-drag-handle:active { cursor: grabbing; }.task-column.is-column-dragging { opacity: .45; }.task-column.is-column-over { outline: 2px solid #4f7eb8; outline-offset: 3px; }
.status-delete-button { display: grid; width: 22px; height: 22px; flex: 0 0 auto; padding: 0; place-items: center; border: 0; border-radius: 5px; background: transparent; color: #9aa8b8; font-size: 15px; cursor: pointer; }.status-delete-button:hover { background: #fff0f2; color: #c43d50; }
.task-assignee-stack { display: flex; padding-left: 4px; }.task-assignee-stack span { display: grid; width: 23px; height: 23px; margin-left: -4px; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #dbe8f7; color: #24518a; font-size: 8px; font-weight: 850; }
.task-assignee-picker { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border: 1px solid #dce5f0; border-radius: 10px; }.task-assignee-picker legend { padding: 0 5px; color: #40536d; font-size: 10px; font-weight: 800; }.task-assignee-picker label { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: #f1f5f9; font-size: 10px; }.task-assignee-picker input { width: auto; }
.task-modal { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; padding: 24px; border: 0; border-radius: 16px; color: #24364d; box-shadow: 0 24px 80px rgba(8,25,49,.3); }.task-modal.compact { width: min(430px, calc(100vw - 32px)); }.task-modal::backdrop { background: rgba(8,25,49,.55); backdrop-filter: blur(3px); }.task-modal > header { margin: 0 0 18px; }.task-modal > header h2 { margin: 3px 0 5px; }.task-modal > header p:last-child { margin: 0; color: #64748b; }.task-modal-close { position: absolute; top: 12px; right: 12px; }.task-modal-close button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #edf2f7; color: #53657d; font-size: 20px; cursor: pointer; }
@media (max-width: 760px) { .sprint-workspace { padding: 10px; }.sprint-workspace-grid { grid-template-columns: 1fr; overflow: visible; }.sprint-rail { border-right: 0; border-bottom: 1px solid #dce5f0; }.sprint-rail nav { grid-auto-flow: column; grid-auto-columns: 180px; overflow-x: auto; }.rail-create { margin: 8px 10px 10px; }.board-pane-header { flex-direction: column; }.board-pane-actions { justify-content: flex-start; }.task-board-scroll .task-column { max-height: none; } }

/* Compact professional sprint board */
.task-board-scroll { background: #eef1f4; }
.task-board-scroll .task-board { gap: 14px; grid-auto-columns: 258px; padding: 18px; }
.task-board-scroll .task-column {
    --status-color: #5b7cfa; --status-soft: #edf1ff;
    width: 258px; min-height: 360px; padding: 9px;
    border: 1px solid #dde5ef; border-top: 3px solid var(--status-color);
    border-radius: 12px; background: rgba(249,251,253,.94);
    box-shadow: 0 5px 18px rgba(26,43,68,.045);
}
.task-board-scroll .task-column:nth-child(4n+2) { --status-color: #f59e0b; --status-soft: #fff7df; }
.task-board-scroll .task-column:nth-child(4n+3) { --status-color: #ef5d70; --status-soft: #fff0f2; }
.task-board-scroll .task-column:nth-child(4n+4) { --status-color: #22a06b; --status-soft: #eaf8f1; }
.task-column > header { position: sticky; top: -9px; z-index: 2; gap: 5px; margin: -9px -9px 7px; padding: 11px 10px 9px; border-radius: 9px 9px 0 0; background: rgba(249,251,253,.97); backdrop-filter: blur(7px); }
.task-column > header > span { min-width: 24px; padding: 3px 7px; background: var(--status-soft); color: var(--status-color); text-align: center; font-weight: 850; }
.status-name-form input { color: #25344a; font-size: 12px; letter-spacing: -.01em; }
.status-name-form button { background: var(--status-soft); color: var(--status-color); }
.status-drag-handle { font-size: 16px; color: #9aa9bb; }
.task-column-list { align-content: start; gap: 7px; min-height: 300px; }
.task-card {
    position: relative; display: grid; gap: 7px; min-height: 0; padding: 10px 10px 9px;
    border: 1px solid #e0e6ee; border-left: 3px solid var(--status-color); border-radius: 9px;
    background: #fff; box-shadow: 0 2px 7px rgba(28,45,70,.055); cursor: grab;
    transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.task-card:hover { transform: translateY(-1px); border-color: #cbd7e5; border-left-color: var(--status-color); box-shadow: 0 6px 15px rgba(28,45,70,.1); }
.task-card-top, .task-card-footer { display: flex; align-items: center; gap: 7px; }
.task-card-top { justify-content: space-between; }
.task-card-top > small { color: #8a99ac; font-size: 8px; font-weight: 750; letter-spacing: .045em; }
.task-card-title { display: block; color: #1c2b3f; }
.task-card-title strong { display: -webkit-box; overflow: hidden; font-size: 12px; font-weight: 750; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.task-card .task-priority { padding: 2px 5px; border-radius: 5px; font-size: 7px; }
.task-card-footer { min-height: 22px; padding-top: 1px; color: #75859a; }
.task-card-footer time { margin-left: auto; padding: 2px 5px; border-radius: 5px; background: #f2f5f8; color: #68788d; font-size: 8px; white-space: nowrap; }
.task-card-footer time.overdue { background: #fff0f1; color: #c13a4b; }
.task-card-edit { margin-left: auto; padding: 3px 6px; border: 0; border-radius: 5px; background: var(--status-soft); color: var(--status-color); font-size: 8px; font-weight: 800; cursor: pointer; }
.task-card-edit + time { margin-left: 0; }
.task-unassigned { font-size: 8px; color: #94a1b1; }
.task-card .task-assignee-stack { padding-left: 3px; }
.task-card .task-assignee-stack span { width: 19px; height: 19px; border-width: 1.5px; background: var(--status-soft); color: var(--status-color); font-size: 7px; }
.task-card .task-move-menu { width: 23px; margin-left: 1px; overflow: hidden; }
.task-card .task-move-menu::before { content: '•••'; display: grid; width: 23px; height: 21px; place-items: center; border-radius: 5px; color: #8796a8; font-size: 10px; pointer-events: none; }
.task-card .task-move-menu select { position: absolute; width: 23px; height: 21px; margin-left: -23px; padding: 0; opacity: 0; cursor: pointer; }
.task-column-list.is-over { background: var(--status-soft); outline: 1px dashed var(--status-color); outline-offset: 3px; }
.carry-task-picker { border: 1px solid #dbe4ef; border-radius: 10px; background: #f8fafc; }.carry-task-picker summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; color: #344861; cursor: pointer; }.carry-task-picker summary span { font-size: 11px; font-weight: 800; }.carry-task-picker summary small { color: #7a899c; font-size: 9px; }.carry-task-list { display: grid; max-height: 230px; gap: 5px; overflow-y: auto; padding: 0 8px 8px; }.carry-task-list > label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 9px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; cursor: pointer; }.carry-task-list > label input { width: auto; }.carry-task-list > label > span { display: grid; min-width: 0; gap: 2px; }.carry-task-list strong, .carry-task-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.carry-task-list strong { color: #263a54; font-size: 10px; }.carry-task-list small { color: #8290a2; font-size: 8px; }.carry-task-list em { font-style: normal; }.carry-task-empty { margin: 8px; color: #7b899a; font-size: 10px; text-align: center; }
.rail-sprint-dates { display: flex; align-items: center; gap: 4px; width: max-content; margin-top: 3px; padding: 3px 6px; border: 1px solid #d5e1ef; border-radius: 6px; background: #fff; color: #46617f !important; font-size: 8px !important; font-weight: 800; }.rail-sprint-dates > span { color: #4779ae; font-size: 10px; }.rail-sprint-dates b { color: #90a1b5; }
.board-sprint-dates { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 11px; border: 1px solid #cadcf0; border-radius: 10px; background: #f3f8fe; color: #284a70; box-shadow: 0 3px 10px rgba(35,75,116,.06); }.board-sprint-dates > span:not(.board-date-icon) { display: grid; gap: 1px; }.board-sprint-dates small { color: #7890aa; font-size: 7px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }.board-sprint-dates time { font-size: 10px; font-weight: 850; }.board-sprint-dates > b { color: #7994b1; }.board-date-icon { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 7px; background: #dceafb; color: #32669e; font-size: 14px; }
.sprint-status-quick-form select { min-width: 112px; padding: 7px 28px 7px 9px; border-color: #cfdae7; border-radius: 8px; background-color: #f8fafc; color: #40536c; font-size: 9px; font-weight: 850; }.status-color-field input[type="color"] { width: 100%; height: 42px; padding: 4px; border-radius: 9px; cursor: pointer; }
.board-member-filter select { min-width: 145px; max-width: 190px; padding: 7px 28px 7px 9px; border-color: #cfdae7; border-radius: 8px; background-color: #fff; color: #40536c; font-size: 9px; font-weight: 750; }
.danger-modal > header { padding-right: 36px; }.danger-modal-icon { display: grid; width: 42px; height: 42px; margin-bottom: 13px; place-items: center; border-radius: 50%; background: #fff0f2; color: #c93f52; font-size: 20px; font-weight: 900; }.danger-modal > header strong { color: #263a54; }.danger-modal-note { display: grid; gap: 3px; margin: 4px 0 20px; padding: 11px 12px; border: 1px solid #f4cbd1; border-radius: 9px; background: #fff7f8; }.danger-modal-note strong { color: #913040; font-size: 10px; }.danger-modal-note span { color: #73505a; font-size: 10px; line-height: 1.45; }.btn-danger { min-height: 36px; padding: 8px 14px; border: 1px solid #b93347; border-radius: 8px; background: #c93f52; color: #fff; font-weight: 800; cursor: pointer; }.btn-danger:hover { background: #ad3043; }

/* Modern task workspace, aligned with the authenticated application form system. */
.task-appbar { border-bottom-color: #e4eaf1; background: rgba(255,255,255,.96); }
.task-appbar h1 { letter-spacing: -.035em; }
.sprint-workspace { gap: 0; padding: 16px 18px 20px; background: #f4f6f9; }
.sprint-workspace-grid { grid-template-columns: 258px minmax(0,1fr); min-height: calc(100vh - 132px); border-color: #dfe5ec; border-radius: 14px; box-shadow: 0 8px 28px rgba(25,42,66,.07); }
.sprint-rail { border-right-color: #e2e7ed; background: #f8f9fb; }
.sprint-rail > header { padding: 20px 16px 13px; border-bottom: 1px solid #e7ebf0; }
.sprint-rail h2 { color: #1d2b3d; font-size: 17px; letter-spacing: -.02em; }
.rail-my-tasks { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 7px; color: #315f91; }
.rail-my-tasks:hover { background: #eaf1f8; }
.sprint-rail nav { gap: 6px; padding: 10px; }
.sprint-rail nav > a { position: relative; min-height: 70px; padding: 11px 10px 11px 13px; border-color: transparent; border-radius: 10px; background: transparent; }
.sprint-rail nav > a::before { position: absolute; top: 12px; bottom: 12px; left: 0; width: 3px; border-radius: 3px; background: transparent; content: ''; }
.sprint-rail nav > a:hover { border-color: #e2e7ed; background: #fff; box-shadow: 0 3px 10px rgba(28,45,70,.04); }
.sprint-rail nav > a.active { border-color: #cfdded; background: #fff; color: #173f72; box-shadow: 0 5px 15px rgba(32,65,101,.08); }
.sprint-rail nav > a.active::before { background: var(--brand); }
.sprint-rail nav strong { color: #27384e; font-size: 12px; }.sprint-rail nav > a.active strong { color: #174674; }
.sprint-rail nav small { font-size: 9px; }.sprint-rail .task-status { align-self: flex-start; margin-top: 1px; }
.rail-create { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; margin: auto 10px 12px; border-style: solid; border-color: #c9d6e5; background: #fff; font-size: 10px; box-shadow: 0 2px 6px rgba(28,45,70,.04); }
.rail-create span { font-size: 15px; font-weight: 500; }.rail-create:hover { border-color: #9eb5cf; background: #f2f7fc; }
.board-pane-header { align-items: center; padding: 18px 20px; border-bottom-color: #e5e9ef; background: #fff; }
.board-sprint-summary { min-width: 260px; }.board-title-line { display: flex; align-items: center; gap: 8px; }.board-title-line .tasks-eyebrow { margin: 0; }.board-title-line .task-status { padding: 3px 7px; font-size: 7px; }
.board-pane-header h2 { margin: 5px 0 4px; color: #17263a; font-size: 22px; letter-spacing: -.035em; }.board-pane-header .board-sprint-summary > p { max-width: 520px; margin: 0; color: #69798d; font-size: 10px; line-height: 1.5; }
.board-pane-actions { max-width: 560px; gap: 7px; }.board-progress { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 9px; border: 1px solid #dce5ef; border-radius: 8px; background: #f7f9fc; color: #536b84 !important; font-size: 9px !important; }
.board-member-filter select { min-height: 34px; min-width: 155px; border-color: #d8e0e8; border-radius: 8px; color: #344a63; }
.task-board-scroll { background: #f2f4f7; }
.task-board-scroll .task-board { gap: 12px; grid-auto-columns: 272px; padding: 16px; }
.task-board-scroll .task-column { width: 272px; min-height: 410px; padding: 8px; border: 1px solid #dfe4ea; border-top: 3px solid var(--status-color); border-radius: 11px; background: #f8f9fb; box-shadow: none; }
.task-column > header { min-height: 38px; margin: -8px -8px 8px; padding: 9px 8px 8px; border-bottom: 1px solid #e8ebef; border-radius: 8px 8px 0 0; background: rgba(248,249,251,.98); }
.task-column > header > span { border-radius: 999px; font-size: 9px; }.status-name-form input { font-size: 11px; }
.task-column-list { gap: 8px; min-height: 345px; }
.task-card { gap: 8px; padding: 11px; border: 1px solid #dde3ea; border-left: 1px solid #dde3ea; border-radius: 9px; box-shadow: 0 2px 6px rgba(25,42,66,.045); }
.task-card::before { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; border-radius: 9px 0 0 9px; background: var(--status-color); content: ''; }
.task-card:hover { transform: translateY(-2px); border-color: #cad4df; border-left-color: #cad4df; box-shadow: 0 8px 18px rgba(28,45,70,.09); }
.task-card-top > small { color: #7a899b; font-size: 8px; font-weight: 850; }.task-card-title strong { color: #213148; font-size: 12px; line-height: 1.4; }
.task-card-footer { padding-top: 3px; border-top: 1px solid #f0f2f5; }.task-card-edit { background: transparent; color: #647991; }.task-card-edit:hover { background: var(--status-soft); color: var(--status-color); }
.rail-sprint-dates { border: 0; background: #eef3f8; }.board-sprint-dates { margin-top: 9px; padding: 6px 9px; border-color: #dbe3ec; background: #f8fafc; box-shadow: none; }

.task-modal { overflow-x: hidden; overflow-y: auto; padding: 0; border: 1px solid #dce3eb; border-radius: 14px; background: #fff; box-shadow: 0 28px 80px rgba(10,25,46,.28); }
.task-modal::backdrop { background: rgba(13,27,46,.52); backdrop-filter: blur(4px); }
.task-modal > header { margin: 0; padding: 22px 24px 17px; border-bottom: 1px solid #e6eaf0; background: #fafbfc; }.task-modal > header h2 { margin: 4px 0; color: #1c2c41; font-size: 20px; letter-spacing: -.025em; }.task-modal > header p:last-child { max-width: 540px; color: #697a8f; font-size: 10px; line-height: 1.5; }
.task-modal-close { z-index: 2; top: 13px; right: 14px; }.task-modal-close button { width: 30px; height: 30px; border: 1px solid #dce3ea; background: #fff; color: #607186; font-size: 17px; }.task-modal-close button:hover { background: #f1f4f7; }
.task-modal > .task-form { gap: 17px; padding: 21px 24px 0; }
.task-modal .task-form > label,.task-modal .task-form-grid > label { gap: 6px; }.task-modal .task-form label > span,.task-modal .task-assignee-picker legend { color: #364a63; font-size: 10px; font-weight: 800; }
.task-modal .task-form input:not([type="checkbox"]):not([type="color"]),.task-modal .task-form select,.task-modal .task-form textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #d7dfe8; border-radius: 8px; background: #fff; color: #253950; font: inherit; font-size: 11px; box-shadow: inset 0 1px 1px rgba(25,42,66,.025); transition: border-color .15s ease,box-shadow .15s ease; }
.task-modal .task-form textarea { min-height: 82px; resize: vertical; line-height: 1.5; }.task-modal .task-form input::placeholder,.task-modal .task-form textarea::placeholder { color: #9aa6b4; }
.task-modal .task-form input:focus,.task-modal .task-form select:focus,.task-modal .task-form textarea:focus { outline: none; border-color: #88a9ca; box-shadow: 0 0 0 3px rgba(55,105,153,.11); }
.task-modal .task-form-grid { gap: 13px; }.task-modal .task-assignee-picker { gap: 7px; padding: 12px; border-color: #dfe5ec; border-radius: 9px; background: #fafbfc; }.task-modal .task-assignee-picker label { border: 1px solid #e2e7ed; background: #fff; }
.task-modal .form-actions { margin: 2px -24px 0; padding: 14px 24px; border-top: 1px solid #e5e9ef; background: #f8f9fb; }
.task-modal.compact > .task-form { padding-bottom: 0; }.task-modal .status-color-field input[type="color"] { height: 44px; border-color: #d7dfe8; background: #fff; }
.task-modal .carry-task-picker { border-color: #dfe5ec; background: #fafbfc; }
.danger-modal > header { padding-right: 54px; }.danger-modal .danger-modal-note { margin: 18px 24px 4px; }.danger-modal > form:last-child .form-actions { margin: 0; }
@media (max-width: 980px) { .board-pane-header { align-items: flex-start; flex-direction: column; }.board-pane-actions { max-width: none; justify-content: flex-start; }.sprint-workspace-grid { min-height: auto; } }
@media (max-width: 760px) { .sprint-workspace { padding: 9px; }.sprint-workspace-grid { grid-template-columns: 1fr; }.sprint-rail nav { grid-auto-columns: 210px; }.sprint-rail nav > a { min-height: 68px; }.task-board-scroll .task-board { padding: 12px; }.task-modal > header { padding-right: 52px; }.task-modal > .task-form { padding-right: 16px; padding-left: 16px; }.task-modal .form-actions { margin-right: -16px; margin-left: -16px; padding-right: 16px; padding-left: 16px; } }

/* Workspace manager administration and reporting workspace picker */
.workspace-manager-appbar,
.manager-workspace-picker-appbar { background: linear-gradient(105deg, #fff 56%, var(--surface-lavender) 100%); }
.workspace-manager-content,
.manager-workspace-picker-content { width: min(1220px, 100%); margin-inline: auto; }
.workspace-manager-page-actions { display: flex; justify-content: flex-end; gap: 9px; margin-bottom: 14px; }
.workspace-manager-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.workspace-manager-summary article { min-height: 88px; display: flex; align-items: center; gap: 13px; padding: 16px 18px; border: 1px solid var(--border-blue); border-radius: 13px; background: linear-gradient(145deg, #fff, var(--surface-blue)); box-shadow: 0 5px 16px rgba(31,55,77,.045); }
.workspace-manager-summary article:nth-child(2) { border-color: var(--border-sage); background: linear-gradient(145deg, #fff, var(--surface-sage)); }
.workspace-manager-summary article:nth-child(3) { border-color: var(--border-lavender); background: linear-gradient(145deg, #fff, var(--surface-lavender)); }
.workspace-manager-summary-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border-radius: 11px; color: var(--accent-blue); background: var(--surface-blue-strong); }
.workspace-manager-summary article:nth-child(2) .workspace-manager-summary-icon { color: var(--accent-sage); background: var(--surface-sage-strong); }
.workspace-manager-summary article:nth-child(3) .workspace-manager-summary-icon { color: var(--accent-lavender); background: var(--surface-lavender-strong); }
.workspace-manager-summary svg { width: 21px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.workspace-manager-summary article > span:last-child { display: grid; gap: 3px; }
.workspace-manager-summary strong { color: #243a58; font-size: 21px; line-height: 1; }
.workspace-manager-summary small { color: #718096; font-size: 10px; font-weight: 750; }
.workspace-manager-layout { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(480px, 1.28fr); align-items: start; gap: 16px; }
.workspace-manager-invite-card,
.workspace-manager-directory { overflow: hidden; border: 1px solid #dbe3ed; border-radius: 15px; background: #fff; box-shadow: 0 9px 26px rgba(28,50,79,.06); }
.workspace-manager-invite-card > header { display: flex; align-items: center; gap: 13px; padding: 18px 20px; border-bottom: 1px solid var(--border-lavender); background: linear-gradient(105deg, #fff, var(--surface-lavender)); }
.workspace-manager-card-icon { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 43px; border-radius: 12px; color: var(--accent-lavender); background: var(--surface-lavender-strong); }
.workspace-manager-card-icon svg { width: 22px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.workspace-manager-invite-card header p,
.workspace-manager-directory-heading p,
.manager-workspace-picker-hero p { margin: 0 0 3px; color: var(--accent-lavender); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.workspace-manager-invite-card header h2,
.workspace-manager-directory-heading h2,
.manager-workspace-picker-hero h2 { margin: 0; color: #263b57; font-size: 17px; }
.workspace-manager-invite-card header small,
.workspace-manager-directory-heading small,
.manager-workspace-picker-hero small { display: block; margin-top: 4px; color: #788699; font-size: 10px; line-height: 1.45; }
.workspace-manager-form { display: grid; gap: 15px; padding: 20px; }
.workspace-manager-form label { display: grid; gap: 6px; }
.workspace-manager-form label > span { color: #3c4f68; font-size: 10px; font-weight: 800; }
.workspace-manager-form input,
.workspace-manager-form select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d5dee9; border-radius: 9px; color: #263a53; background: #fff; font: inherit; font-size: 12px; transition: border-color .15s, box-shadow .15s; }
.workspace-manager-form input::placeholder { color: #a2adba; }
.workspace-manager-form input:focus,
.workspace-manager-form select:focus { outline: none; border-color: #829fc2; box-shadow: 0 0 0 3px rgba(67,102,148,.12); }
.workspace-manager-form label > small { color: #8491a2; font-size: 9px; line-height: 1.4; }
.workspace-manager-form-assurance { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--border-sage); border-radius: 10px; color: var(--accent-sage); background: var(--surface-sage); }
.workspace-manager-form-assurance > svg { width: 19px; flex: 0 0 19px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.workspace-manager-form-assurance > span { display: grid; gap: 3px; }
.workspace-manager-form-assurance strong { font-size: 10px; }
.workspace-manager-form-assurance small { color: #667b6d; font-size: 9px; line-height: 1.45; }
.workspace-manager-submit { width: 100%; min-height: 44px; justify-content: center; }
.workspace-manager-directory-heading { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-bottom: 1px solid #e2e8ef; background: linear-gradient(100deg, #fff, var(--surface-blue)); }
.workspace-manager-list { display: grid; gap: 0; }
.workspace-manager-person { padding: 18px 20px; border-bottom: 1px solid #e8edf2; }
.workspace-manager-person:last-child { border-bottom: 0; }
.workspace-manager-person > header { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.workspace-manager-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--accent-blue); background: var(--surface-blue-strong); font-size: 13px; font-weight: 850; }
.workspace-manager-person:nth-child(4n + 2) .workspace-manager-avatar { color: var(--accent-sage); background: var(--surface-sage-strong); }
.workspace-manager-person:nth-child(4n + 3) .workspace-manager-avatar { color: var(--accent-lavender); background: var(--surface-lavender-strong); }
.workspace-manager-person:nth-child(4n + 4) .workspace-manager-avatar { color: var(--accent-sand); background: var(--surface-sand-strong); }
.workspace-manager-identity { min-width: 0; display: grid; gap: 2px; }
.workspace-manager-identity strong { overflow: hidden; color: #263b57; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-manager-identity small { overflow: hidden; color: #748296; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-manager-username { color: #8a96a5; font-size: 9px; }
.workspace-manager-access-count { align-self: start; padding: 5px 8px; border-radius: 99px; color: var(--accent-blue); background: var(--surface-blue); font-size: 9px; font-weight: 800; }
.workspace-manager-assignment-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; padding-left: 54px; }
.workspace-manager-assignment-list form { margin: 0; }
.workspace-assignment-toggle { min-height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #dce3ec; border-radius: 8px; color: #657489; background: #fff; font: inherit; font-size: 10px; font-weight: 750; cursor: pointer; transition: transform .15s, border-color .15s, background .15s; }
.workspace-assignment-toggle:hover { border-color: #a8bbd0; background: var(--surface-blue); transform: translateY(-1px); }
.workspace-assignment-toggle.is-assigned { border-color: var(--border-sage); color: #426b51; background: var(--surface-sage); }
.workspace-assignment-check { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 5px; color: #6f8094; background: #edf1f5; font-size: 11px; }
.workspace-assignment-toggle.is-assigned .workspace-assignment-check { color: #fff; background: #5f8a6c; }
.workspace-manager-empty { display: grid; justify-items: center; padding: 58px 24px; text-align: center; }
.workspace-manager-empty > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; color: var(--accent-lavender); background: var(--surface-lavender); }
.workspace-manager-empty svg { width: 26px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.workspace-manager-empty h2,
.workspace-manager-empty h3 { margin: 14px 0 5px; color: #2b405d; font-size: 16px; }
.workspace-manager-empty p { max-width: 440px; margin: 0; color: #7d8999; font-size: 11px; line-height: 1.55; }
.manager-workspace-picker-hero { display: flex; align-items: center; gap: 15px; margin-bottom: 16px; padding: 18px 20px; border: 1px solid var(--border-lavender); border-radius: 14px; background: linear-gradient(105deg, #fff, var(--surface-lavender)); }
.manager-workspace-picker-hero-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 48px; border-radius: 13px; color: var(--accent-lavender); background: var(--surface-lavender-strong); }
.manager-workspace-picker-hero-icon svg { width: 24px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.manager-workspace-picker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.manager-workspace-picker-grid form { min-width: 0; margin: 0; }
.manager-workspace-card { position: relative; width: 100%; min-height: 138px; display: grid; grid-template-columns: 48px minmax(0, 1fr) 28px; align-items: center; gap: 13px; padding: 19px; overflow: hidden; border: 1px solid var(--border-blue); border-radius: 14px; color: inherit; background: linear-gradient(145deg, #fff, var(--surface-blue)); text-align: left; font: inherit; cursor: pointer; box-shadow: 0 7px 20px rgba(31,55,77,.05); transition: transform .18s, border-color .18s, box-shadow .18s; }
.manager-workspace-picker-grid form:nth-child(3n + 2) .manager-workspace-card { border-color: var(--border-sage); background: linear-gradient(145deg, #fff, var(--surface-sage)); }
.manager-workspace-picker-grid form:nth-child(3n + 3) .manager-workspace-card { border-color: var(--border-lavender); background: linear-gradient(145deg, #fff, var(--surface-lavender)); }
.manager-workspace-card:hover { border-color: #8ba5c2; box-shadow: 0 13px 30px rgba(31,55,77,.11); transform: translateY(-3px); }
.manager-workspace-card:focus-visible { outline: 3px solid rgba(75,117,165,.2); outline-offset: 2px; }
.manager-workspace-card-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; color: var(--accent-blue); background: var(--surface-blue-strong); font-size: 13px; font-weight: 850; }
.manager-workspace-picker-grid form:nth-child(3n + 2) .manager-workspace-card-mark { color: var(--accent-sage); background: var(--surface-sage-strong); }
.manager-workspace-picker-grid form:nth-child(3n + 3) .manager-workspace-card-mark { color: var(--accent-lavender); background: var(--surface-lavender-strong); }
.manager-workspace-card-copy { min-width: 0; display: grid; gap: 4px; }
.manager-workspace-card-copy > small { color: #7b899a; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.manager-workspace-card-copy > strong { overflow: hidden; color: #263d5b; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.manager-workspace-card-copy > span { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: #5f7968; font-size: 9px; font-weight: 750; }
.manager-workspace-card-copy i { width: 7px; height: 7px; border-radius: 50%; background: #5c9a70; box-shadow: 0 0 0 3px rgba(92,154,112,.12); }
.manager-workspace-card-arrow { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(102,126,156,.18); border-radius: 8px; color: #607896; background: rgba(255,255,255,.7); transition: transform .18s; }
.manager-workspace-card:hover .manager-workspace-card-arrow { transform: translateX(3px); }
.workspace-manager-empty.picker { border: 1px dashed var(--border-lavender); border-radius: 14px; background: #fff; }
.manager-workspace-picker-note { display: flex; align-items: center; gap: 11px; margin-top: 16px; padding: 13px 15px; border: 1px solid var(--border-sand); border-radius: 11px; color: var(--accent-sand); background: var(--surface-sand); }
.manager-workspace-picker-note > svg { width: 20px; flex: 0 0 20px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.manager-workspace-picker-note > span { display: grid; gap: 2px; }
.manager-workspace-picker-note strong { font-size: 10px; }
.manager-workspace-picker-note small { color: #7f735f; font-size: 9px; }
@media (max-width: 1050px) {
    .workspace-manager-layout { grid-template-columns: 1fr; }
    .workspace-manager-invite-card { max-width: none; }
    .manager-workspace-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .workspace-manager-page-actions { justify-content: stretch; }
    .workspace-manager-page-actions > * { flex: 1; text-align: center; }
    .workspace-manager-summary { grid-template-columns: 1fr; }
    .workspace-manager-person > header { grid-template-columns: 42px minmax(0, 1fr); }
    .workspace-manager-access-count { grid-column: 2; justify-self: start; }
    .workspace-manager-assignment-list { padding-left: 0; }
    .manager-workspace-picker-grid { grid-template-columns: 1fr; }
    .manager-workspace-card { min-height: 118px; }
}

.task-card-title { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: #213148; text-align: left; cursor: pointer; }
.task-card-title:hover strong { color: var(--status-color); }
.task-card-description { display: -webkit-box; min-height: 26px; overflow: hidden; margin: -1px 0 1px; color: #718095; font-size: 9px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.task-card-view { display: grid; width: 25px; height: 24px; margin-left: auto; padding: 0; place-items: center; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #60758d; cursor: pointer; }.task-card-view svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.task-card-view:hover { border-color: color-mix(in srgb,var(--status-color) 24%,#dfe5ec); background: var(--status-soft); color: var(--status-color); }
.task-card-view + .task-card-edit { margin-left: 0; }
.task-view-modal { width: min(620px,calc(100vw - 32px)); }.task-view-heading { display: flex; align-items: center; gap: 8px; padding-right: 38px; }.task-view-number { color: #5f738c; font-size: 9px; font-weight: 850; letter-spacing: .06em; }.task-view-modal > header h2 { margin-top: 10px; font-size: 22px; line-height: 1.3; }
.task-view-body { display: grid; gap: 20px; padding: 22px 24px; }.task-view-description,.task-view-assignees { display: grid; gap: 7px; }.task-view-description > small,.task-view-assignees > small { color: #718297; font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }.task-view-description p { margin: 0; color: #344a62; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.task-view-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; overflow: hidden; margin: 0; border: 1px solid #e1e6ec; border-radius: 10px; background: #e1e6ec; }.task-view-facts > div { min-width: 0; padding: 12px; background: #fafbfc; }.task-view-facts dt { color: #7a899b; font-size: 8px; font-weight: 800; text-transform: uppercase; }.task-view-facts dd { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; color: #2f435b; font-size: 10px; font-weight: 750; }.task-view-status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; }
.task-view-assignees > div { display: flex; flex-wrap: wrap; gap: 7px; }.task-view-assignees > div > span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 5px; border: 1px solid #e0e6ed; border-radius: 999px; background: #f8fafc; color: #40556e; font-size: 9px; font-weight: 750; }.task-view-assignees b { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #e4edf7; color: #35628f; font-size: 8px; }
.task-view-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px; border-top: 1px solid #e5e9ef; background: #f8f9fb; }
.task-edit-management { display: grid; gap: 8px; padding: 14px 24px 20px; background: #f8f9fb; }.task-edit-move,.task-edit-remove { display: grid; grid-template-columns: minmax(150px,1fr) minmax(150px,210px) auto; align-items: center; gap: 9px; padding: 11px; border: 1px solid #dfe5ec; border-radius: 9px; background: #fff; }.task-edit-move > span,.task-edit-remove > span { display: grid; gap: 2px; }.task-edit-move strong,.task-edit-remove strong { color: #34495f; font-size: 10px; }.task-edit-move small,.task-edit-remove small { color: #8491a1; font-size: 8px; }.task-edit-move select { width: 100%; min-height: 34px; padding: 7px 28px 7px 9px; border: 1px solid #d7dfe8; border-radius: 8px; background: #fff; color: #344a63; font-size: 10px; }.task-edit-remove { grid-template-columns: minmax(150px,1fr) auto; border-color: #eddae0; }.task-edit-remove strong { color: #87394a; }
@media (max-width: 620px) { .task-view-facts { grid-template-columns: 1fr; }.task-edit-move { grid-template-columns: 1fr; }.task-edit-move .btn-ghost { width: 100%; }.task-edit-remove { align-items: start; }.task-view-actions { padding-right: 16px; padding-left: 16px; } }

/* Increased board color and sprint-list distinction. */
.sprint-workspace { background: #f4f6f8; }
.sprint-workspace-grid { border-color: #ccdbea; box-shadow: 0 14px 38px rgba(32,61,94,.11); }
.sprint-rail { border-right-color: #dde4eb; background: #f8fafc; }
.sprint-rail > header { border-bottom-color: #d3e0ed; background: rgba(255,255,255,.5); }
.sprint-rail > header small { color: #557699; }.sprint-rail h2 { color: #173e69; }
.rail-my-tasks { color: #315f96; background: rgba(255,255,255,.62); }
.sprint-rail nav > a { border-color: rgba(199,214,230,.58); background: rgba(255,255,255,.42); }
.sprint-rail nav > a:nth-child(3n+2) { background: rgba(249,245,255,.72); }.sprint-rail nav > a:nth-child(3n+3) { background: rgba(241,250,246,.74); }
.sprint-rail nav > a:hover { border-color: #a9c3de; background: #fff; box-shadow: 0 7px 18px rgba(37,75,116,.1); }
.sprint-rail nav > a.active { border-color: #c9d8e7; background: #edf4fa; box-shadow: none; }
.sprint-rail nav > a.active::before { width: 4px; background: #3f719f; }
.rail-sprint-dates { border: 1px solid #d2e2f1; background: #f0f7ff; color: #35638f !important; }
.rail-create { border-color: #cbd7e2; background: #fff; color: #215c94; }
.task-status.active { border-color: #a8dbc2; background: #e5f7ed; color: #157047; }.task-status.planned { border-color: #c9c3ef; background: #f0edff; color: #6550ad; }.task-status.completed { border-color: #b5d3ec; background: #e9f4fc; color: #27648f; }.task-status.archived { border-color: #d8dce2; background: #f0f2f5; color: #677384; }
.board-pane-header { border-bottom-color: #dfe5eb; background: #fff; }
.board-title-line .tasks-eyebrow { color: #476f99; }.board-pane-header h2 { color: #153d69; }
.board-sprint-dates { border-color: #d9e2ea; background: #f7f9fb; color: #204f7f; }.board-date-icon { background: #e8eef4; color: #315f9b; }
.board-progress { border-color: #b8d8c7; background: #ebf8f1; color: #23734e !important; }.board-progress::before { width: 7px; height: 7px; border-radius: 50%; background: #37a46f; content: ''; }
.board-member-filter select { border-color: #bfd2e6; background-color: #f7fbff; }
.board-member-scope { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 10px; border: 1px solid #c8d9eb; border-radius: 8px; background: #edf5fd; color: #315f8d !important; font-size: 9px !important; font-weight: 800 !important; }
.task-board-scroll { background: #eef1f4; }
.task-board-scroll .task-column { border-color: #dce3e9; border-top-width: 4px; background: #f7f8fa; box-shadow: none; }
.task-column > header { border-bottom-color: #e5e9ed; background: rgba(247,248,250,.98); }
.task-card { border-color: color-mix(in srgb,var(--status-color) 16%,#dfe5ec); }.task-card:hover { border-color: color-mix(in srgb,var(--status-color) 38%,#cad4df); box-shadow: 0 9px 20px color-mix(in srgb,var(--status-color) 14%,rgba(28,45,70,.08)); }
.task-card-top > small { color: color-mix(in srgb,var(--status-color) 68%,#718095); }.task-card-footer { border-top-color: color-mix(in srgb,var(--status-color) 11%,#eef1f4); }
.task-modal > header { background: #fafbfc; }.task-modal .form-actions,.task-view-actions,.task-edit-management { background: #f7f9fb; }
.task-column > header > span[data-task-count] { border: 1px solid color-mix(in srgb,var(--status-color) 25%,#fff); background: var(--status-soft); color: var(--status-color); }
.task-card::before { width: 4px; }
