:root {
    --bg: #f6fafc;
    --surface: #ffffff;
    --surface-2: #f1f6f9;
    --surface-3: #eaf4f6;
    --text: #012658;
    --text-2: #203b62;
    --muted: #6c7d92;
    --line: #dce6ed;
    --line-strong: #c6d5df;
    --navy: #012658;
    --navy-2: #014989;
    --teal: #19bab6;
    --teal-2: #028693;
    --blue-soft: #749ad0;
    --brand: #012658;
    --brand-strong: #014989;
    --brand-soft: #e7f7f7;
    --success: #157252;
    --success-soft: #eaf8f2;
    --warning: #8b5f00;
    --warning-soft: #fff7df;
    --danger: #a03636;
    --danger-soft: #fff0f0;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 16px 45px rgba(1, 38, 88, .08);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; font-family: "Segoe UI Variable Text", "Segoe UI", Aptos, Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
textarea { resize: vertical; }
.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; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.brand-image-link { display: inline-flex; align-items: center; text-decoration: none; }
.marketing-logo img { width: 150px; height: 64px; object-fit: contain; object-position: left center; }
.guest-logo { display: flex; width: fit-content; margin: 0 auto 20px; }
.guest-logo img { width: 172px; height: 96px; object-fit: contain; }
.sidebar-brand { padding: 4px 8px 22px; }
.sidebar-brand img { width: 165px; height: 92px; object-fit: contain; object-position: left center; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 10px; border: 1px solid transparent; padding: 10px 15px; text-decoration: none; cursor: pointer; font-weight: 760; transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.button:hover:not(:disabled):not(.disabled-button) { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid rgba(25, 186, 182, .28); outline-offset: 2px; }
.button-primary { background: var(--navy); color: #fff; box-shadow: 0 7px 18px rgba(1,38,88,.12); }
.button-primary:hover { background: var(--navy-2); }
.button-secondary { background: #fff; color: var(--navy); border-color: var(--line-strong); }
.button-secondary:hover { border-color: #9fb5c3; background: #fbfdfe; }
.button-danger { background: #fff; color: var(--danger); border-color: #edcaca; }
.button-google { background: #fff; color: var(--text); border-color: var(--line); }
.button-google::before { content: "G"; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-weight: 900; }
.button-full { width: 100%; }
.button-large { min-height: 50px; padding-inline: 20px; }
.button-small { min-height: 34px; padding: 6px 10px; font-size: .82rem; }
.button-quiet { min-height: 36px; padding: 7px 10px; border-color: var(--line); background: #fff; color: var(--text); }
.button:disabled, .disabled-button { opacity: .5; cursor: not-allowed; pointer-events: none; }
.text-link { color: var(--teal-2); text-decoration: none; font-weight: 750; }
.text-link:hover { text-decoration: underline; }
.text-danger { border: 0; background: none; padding: 10px 0 0; color: var(--danger); cursor: pointer; font-weight: 700; font-size: .85rem; }

.eyebrow, .step-label { color: var(--teal-2); font-size: .74rem; font-weight: 860; letter-spacing: .11em; }

/* Guest / authentication */
.guest-body { min-height: 100vh; background: radial-gradient(circle at 50% 0%, #eaf8f7 0, transparent 40%), var(--bg); }
.guest-shell { width: min(490px, calc(100% - 32px)); margin: 0 auto; padding: 38px 0 36px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 20px; padding: 32px; }
.auth-heading { text-align: center; margin-bottom: 26px; }
.auth-heading h1 { margin: 6px 0 8px; font-size: clamp(1.6rem, 4vw, 2rem); letter-spacing: -.04em; color: var(--navy); }
.auth-heading p { margin: 0; color: var(--muted); line-height: 1.6; }
.guest-footer { text-align: center; color: var(--muted); font-size: .9rem; margin: 18px 0 0; }
.auth-switch { text-align: center; color: var(--muted); margin: 22px 0 0; font-size: .95rem; }
.auth-switch a { color: var(--teal-2); font-weight: 750; text-decoration: none; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; margin: 20px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

.form-stack { display: grid; gap: 17px; }
.compact-top { margin-top: 12px; }
.field { display: grid; gap: 7px; font-size: .92rem; font-weight: 720; color: var(--text-2); }
.field small { color: var(--muted); font-weight: 500; line-height: 1.45; }
.field input, .field select, .field textarea, .search-field input, .filter-bar select, .copy-line input { width: 100%; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--text); }
.field textarea { min-height: 90px; }
.field input::placeholder, .field textarea::placeholder, .search-field input::placeholder { color: #9aabba; }
.fieldset-reset { border: 0; padding: 0; margin: 0; }
.fieldset-reset legend { margin-bottom: 8px; }
.form-row { display: flex; align-items: center; gap: 14px; }
.between { justify-content: space-between; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.check input { width: 16px; height: 16px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-card { border: 1px solid var(--line); border-radius: 12px; padding: 13px; display: flex; gap: 10px; cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--teal); background: var(--brand-soft); }
.choice-card input { width: auto; min-height: auto; margin-top: 4px; }
.choice-card span { display: grid; gap: 3px; }
.choice-card small { font-size: .78rem; }

.alert { border-radius: 12px; padding: 13px 14px; margin-bottom: 18px; font-size: .92rem; line-height: 1.45; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert-success { background: var(--success-soft); color: var(--success); border: 1px solid #ccebdd; }
.alert-error { background: var(--danger-soft); color: var(--danger); border: 1px solid #f2caca; }
.alert-info { background: #eef7fb; color: var(--text-2); border: 1px solid #cfe3ee; }
.copy-line { display: grid; gap: 6px; margin-top: 10px; }
.copy-line input { min-height: 40px; font-size: .82rem; }
.copy-line span { font-size: .78rem; color: var(--muted); }

/* Marketing */
.marketing-body { min-height: 100vh; background: radial-gradient(circle at 70% 20%, #e7f7f7 0, transparent 34%), #fbfdfe; }
.marketing-header { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.marketing-nav { display: flex; align-items: center; gap: 18px; }
.hero { min-height: calc(100vh - 90px); display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-block: 50px 80px; }
.hero-copy h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.065em; margin: 18px 0; max-width: 760px; color: var(--navy); }
.hero-copy > p { font-size: 1.18rem; line-height: 1.7; color: var(--muted); max-width: 650px; }
.pill { display: inline-flex; background: var(--brand-soft); color: var(--teal-2); border: 1px solid #c9eeec; padding: 7px 11px; border-radius: 999px; font-weight: 850; font-size: .75rem; letter-spacing: .07em; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.centered-actions { justify-content: center; }
.microcopy { font-size: .85rem !important; max-width: 560px !important; }
.hero-preview { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px rgba(1,38,88,.15); transform: rotate(1deg); }
.preview-toolbar { height: 42px; background: #f7fafc; border-bottom: 1px solid var(--line); display: flex; gap: 6px; align-items: center; padding: 0 14px; }
.preview-toolbar span { width: 9px; height: 9px; border-radius: 50%; background: #c5d2dc; }
.preview-content { min-height: 430px; display: grid; grid-template-columns: 100px 1fr; }
.preview-sidebar { background: var(--navy); display: flex; justify-content: center; padding-top: 22px; }
.preview-sidebar img { width: 44px; height: 44px; object-fit: contain; }
.preview-main { padding: 28px; }
.skeleton { background: #e8eef3; height: 14px; border-radius: 8px; margin-bottom: 12px; }
.skeleton.wide { width: 55%; height: 24px; }
.skeleton.medium { width: 35%; }
.preview-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 18px; }
.preview-card { height: 82px; background: #f3f8fa; border: 1px solid #dfe9ee; border-radius: 12px; }
.preview-table { height: 210px; border: 1px solid var(--line); border-radius: 12px; background: repeating-linear-gradient(to bottom, #fff, #fff 39px, #edf3f6 40px); }

/* App shell */
.app-body { background: var(--bg); }
.app-frame { min-height: 100vh; display: grid; grid-template-columns: 242px 1fr; }
.sidebar { background: #fff; padding: 15px 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 100vh; position: sticky; top: 0; align-self: start; }
.nav { display: grid; gap: 5px; }
.nav-link { min-height: 43px; display: flex; align-items: center; gap: 10px; border-radius: 10px; padding: 9px 11px; text-decoration: none; color: #455d7c; font-weight: 680; font-size: .91rem; }
.nav-link.active { background: var(--brand-soft); color: var(--navy); box-shadow: inset 3px 0 0 var(--teal); }
.nav-link:hover:not(.disabled) { background: #f3f7f9; }
.nav-link.disabled { color: #9aa8b7; cursor: default; }
.nav-link small { font-size: .62rem; color: #91a0af; margin-left: auto; }
.nav-icon { width: 22px; text-align: center; color: var(--teal-2); font-size: 1rem; }
.nav-link.disabled .nav-icon { color: #aab5c0; }
.sidebar-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.app-main { min-width: 0; }
.topbar { min-height: 76px; padding: 14px 28px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); }
.org-switcher { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 10px; }
.org-switcher .eyebrow { grid-column: 1 / -1; }
.org-menu { position: relative; }
.org-menu summary { cursor: pointer; color: var(--teal-2); font-size: .78rem; font-weight: 750; list-style: none; }
.org-menu-panel { position: absolute; top: 28px; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; padding: 7px; z-index: 50; }
.org-menu-panel form + form { margin-top: 4px; }
.org-menu-panel button { width: 100%; text-align: left; border: 0; background: transparent; padding: 9px; border-radius: 8px; cursor: pointer; }
.org-menu-panel button:hover:not(:disabled) { background: var(--surface-2); }
.topbar-actions, .user-menu { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
.avatar-fallback { display: grid; place-items: center; background: var(--brand-soft); color: var(--navy); font-weight: 850; border: 1px solid #c9eeec; }
.user-copy { display: grid; font-size: .85rem; }
.user-copy span { color: var(--muted); font-size: .75rem; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-weight: 700; }
.mobile-menu-panel { position: absolute; right: 0; top: 44px; min-width: 190px; display: grid; padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 50; }
.mobile-menu-panel a { padding: 9px 10px; text-decoration: none; border-radius: 8px; }
.mobile-menu-panel a:hover { background: var(--surface-2); }
.content { padding: 32px; width: min(1320px, 100%); }

/* Page building blocks */
.page-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 25px; }
.page-heading h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.05em; margin: 4px 0 5px; color: var(--navy); }
.page-heading p { margin: 0; color: var(--muted); max-width: 760px; line-height: 1.55; }
.page-heading-actions { align-items: center; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.status-chip { background: var(--success-soft); color: var(--success); border: 1px solid #ccebdd; border-radius: 999px; padding: 8px 11px; font-weight: 750; font-size: .78rem; white-space: nowrap; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h2 { margin: 7px 0 16px; font-size: 1.4rem; letter-spacing: -.03em; color: var(--navy); }
.panel > p { color: var(--muted); line-height: 1.6; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.section-heading h2 { margin-bottom: 0; }
.two-column-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.sticky-panel { position: sticky; top: 98px; }
.form-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 20px; align-items: start; }
.side-stack { display: grid; gap: 20px; }
.form-section-heading { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 4px; }
.form-section-heading:first-child { border-top: 0; padding-top: 0; }
.form-section-heading h2 { margin: 6px 0 3px; font-size: 1.22rem; }
.form-section-heading p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .9rem; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.helper-note { padding-top: 12px; color: var(--muted); line-height: 1.5; font-size: .86rem; }
.helper-note a { color: var(--teal-2); font-weight: 700; }

/* Dashboard */
.dashboard-heading { margin-bottom: 20px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.metric-card { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.metric-card strong { font-size: 2rem; letter-spacing: -.04em; color: var(--navy); }
.metric-card a { color: var(--teal-2); font-weight: 720; font-size: .84rem; text-decoration: none; }
.metric-label { color: var(--muted); font-size: .82rem; font-weight: 700; }
.setup-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.setup-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto; background: var(--brand-soft); overflow: hidden; }
.setup-icon img { width: 38px; height: 38px; object-fit: contain; }
.setup-copy h2 { margin: 0 0 4px; font-size: 1.05rem; }
.setup-copy p { margin: 0; color: var(--muted); line-height: 1.55; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dashboard-grid-wide { grid-template-columns: 1.25fr .75fr; }
.setup-steps { display: grid; gap: 10px; margin-top: 18px; }
.setup-step { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; padding: 13px; }
.setup-step:hover { border-color: #b9cdd8; background: #fbfdfe; }
.setup-step.done { background: #f4fbf8; border-color: #d5eee3; }
.step-number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--teal-2); font-weight: 850; }
.setup-step.done .step-number { background: var(--success-soft); color: var(--success); }
.setup-step > span:nth-child(2) { display: grid; gap: 2px; }
.setup-step small { color: var(--muted); }
.step-arrow { color: var(--teal-2); font-weight: 900; }
.illustration-panel img { width: 100%; max-height: 250px; object-fit: cover; border-radius: 12px; margin-bottom: 18px; }

/* Entity lists */
.empty-state { text-align: center; padding: 20px 18px 28px; }
.empty-state img { width: min(340px, 100%); max-height: 230px; object-fit: contain; }
.empty-state h3 { font-size: 1.2rem; margin: 10px 0 5px; color: var(--navy); }
.empty-state p { color: var(--muted); max-width: 520px; margin: 0 auto; line-height: 1.6; }
.compact-empty img { max-height: 190px; }
.entity-list { display: grid; gap: 10px; }
.entity-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.entity-card > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px; }
.entity-card > summary::-webkit-details-marker { display: none; }
.entity-card[open] > summary { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.entity-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.entity-main > span:last-child { display: grid; gap: 2px; min-width: 0; }
.entity-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entity-main small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entity-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--teal-2); font-weight: 850; flex: 0 0 auto; }
.team-avatar { background: #eef3fb; color: var(--navy-2); }
.entity-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; }
.inline-edit-form { padding: 16px; background: #fff; display: grid; gap: 16px; }
.entity-card > form:not(.inline-edit-form) { padding: 0 16px 14px; }
.mini-status { display: inline-flex; align-items: center; width: fit-content; padding: 5px 8px; border-radius: 999px; font-size: .72rem; font-weight: 780; background: #eef2f5; color: #607083; white-space: nowrap; }
.mini-status.active { background: var(--success-soft); color: var(--success); }
.mini-status.inactive { background: #f1f2f4; color: #687381; }
.mini-status.pending { background: #eef3fb; color: var(--navy-2); }
.mini-status.warning { background: var(--warning-soft); color: var(--warning); }
.mini-status.neutral { background: #f1f4f6; color: #6a7988; }

/* Employees */
.employee-panel { padding: 0; overflow: hidden; }
.filter-bar { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(130px, .7fr)) auto auto; gap: 9px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); background: #fbfdfe; }
.filter-bar select { min-height: 42px; }
.search-field input { min-height: 42px; }
.employee-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 850px; }
.data-table th { text-align: left; color: #718195; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; padding: 11px 14px; background: #f8fbfc; border-bottom: 1px solid var(--line); }
.data-table td { padding: 13px 14px; border-bottom: 1px solid #edf2f5; vertical-align: middle; color: #365171; font-size: .88rem; }
.data-table tr:last-child td { border-bottom: 0; }
.person-cell { display: flex; align-items: center; gap: 10px; }
.person-cell > span:last-child { display: grid; gap: 2px; }
.person-cell strong { color: var(--navy); }
.person-cell small { color: var(--muted); }
.table-actions { text-align: right; }
.pagination-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.pagination-row > div { display: flex; gap: 6px; }
.employees-empty { padding: 35px 20px 42px; }

.invite-panel p, .danger-panel p, .helper-panel p { font-size: .92rem; }
.invite-history { display: grid; gap: 3px; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.invite-history span, .invite-history small { color: var(--muted); font-size: .78rem; }
.mini-placeholder { width: 100%; max-height: 170px; object-fit: cover; border-radius: 10px; margin-bottom: 14px; }
.danger-panel { border-color: #efdddd; }

/* CSV import */
.import-start-grid { grid-template-columns: 1fr 1fr; }
.upload-box { min-height: 170px; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; border: 2px dashed #b8ccd7; border-radius: 14px; background: #fbfdfe; cursor: pointer; padding: 20px; }
.upload-box input { max-width: 280px; }
.upload-box strong { color: var(--navy); }
.upload-box span { color: var(--muted); font-size: .84rem; }
.csv-example { display: block; background: #0f2747; color: #d9f6f3; border-radius: 10px; padding: 14px; overflow-x: auto; font-size: .78rem; line-height: 1.7; }
.import-review-heading { margin-bottom: 12px; }
.import-table { min-width: 1050px; }
.row-error { background: #fff9f9; }
.cell-errors { margin: 0; padding-left: 16px; color: var(--danger); font-size: .75rem; }
.new-tag { display: inline-block; color: var(--teal-2); background: var(--brand-soft); padding: 2px 5px; border-radius: 5px; font-weight: 700; }
.import-actions { justify-content: space-between; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px; }

/* Invitations */
.invite-summary { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.invite-summary div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.invite-summary div:last-child { border-bottom: 0; }
.invite-summary span { color: var(--muted); }

/* Settings */
.settings-grid { grid-template-columns: minmax(0, 1fr) 340px; }
.settings-brand-icon { width: 90px; height: 90px; object-fit: contain; margin-bottom: 12px; }
.image-placeholder-box { min-height: 160px; display: grid; place-items: center; text-align: center; border: 2px dashed #b8ccd7; border-radius: 12px; background: #f7fafb; color: #7b8b9d; font-size: .78rem; font-weight: 850; letter-spacing: .08em; }
.placeholder-upload-panel h2 { margin-bottom: 6px; }

@media (max-width: 1100px) {
    .filter-bar { grid-template-columns: 1fr 1fr 1fr; }
    .search-field { grid-column: 1 / -1; }
    .two-column-layout, .form-page-grid, .settings-grid { grid-template-columns: 1fr; }
    .sticky-panel { position: static; }
    .side-stack { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 34px; }
    .hero-preview { transform: none; }
    .app-frame { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .mobile-menu { display: block; }
    .dashboard-grid, .dashboard-grid-wide { grid-template-columns: 1fr; }
    .metric-grid { grid-template-columns: repeat(3, 1fr); }
    .content { padding: 24px 18px; }
}

@media (max-width: 680px) {
    .container { width: min(100% - 28px, 1180px); }
    .marketing-header { align-items: center; }
    .marketing-logo img { width: 122px; height: 56px; }
    .marketing-nav .text-link { display: none; }
    .hero { padding-top: 28px; }
    .hero-copy h1 { font-size: 3rem; }
    .hero-actions, .page-actions { flex-direction: column; align-items: stretch; }
    .preview-content { grid-template-columns: 65px 1fr; min-height: 330px; }
    .preview-main { padding: 18px; }
    .preview-card-grid { grid-template-columns: 1fr; }
    .preview-card:nth-child(n+2) { display: none; }
    .guest-shell { padding-top: 22px; }
    .auth-card { padding: 22px; }
    .choice-grid, .form-grid.two, .form-grid.three, .side-stack, .metric-grid, .import-start-grid { grid-template-columns: 1fr; }
    .field-span-2 { grid-column: auto; }
    .topbar { padding: 10px 12px; }
    .user-copy { display: none; }
    .button-quiet { padding-inline: 8px; }
    .content { padding: 20px 13px; }
    .page-heading, .dashboard-heading { flex-direction: column; align-items: stretch; }
    .page-heading h1 { font-size: 2.2rem; }
    .entity-card > summary { align-items: flex-start; }
    .entity-meta { display: grid; justify-items: end; gap: 4px; }
    .filter-bar { grid-template-columns: 1fr 1fr; }
    .search-field { grid-column: 1 / -1; }
    .pagination-row { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 460px) {
    .filter-bar { grid-template-columns: 1fr; }
    .search-field { grid-column: auto; }
    .topbar-actions { gap: 5px; }
    .org-switcher strong { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Phase 3A — Rota builder */
.rota-page-heading { gap: 20px; }
.heading-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.rota-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 14px; margin-bottom:12px; position:sticky; top:0; z-index:18; }
.rota-period-nav { display:flex; gap:7px; align-items:center; }
.view-tabs { display:flex; align-items:center; border:1px solid var(--line); border-radius:10px; background:#fff; overflow:hidden; }
.view-tabs a { padding:9px 11px; color:var(--muted); text-decoration:none; font-size:.82rem; font-weight:760; border-right:1px solid var(--line); white-space:nowrap; }
.view-tabs a:last-child { border-right:0; }
.view-tabs a.active { color:var(--navy); background:var(--brand-soft); }
.rota-filters { display:flex; align-items:center; gap:8px; }
.rota-filters select { min-height:38px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--text); padding:7px 30px 7px 10px; max-width:170px; }
.week-state-strip { display:flex; gap:7px; flex-wrap:wrap; margin:0 0 10px; }
.week-state { display:inline-flex; align-items:center; gap:7px; border:1px solid var(--line); background:#fff; border-radius:999px; padding:6px 9px; color:var(--muted); font-size:.74rem; }
.week-state strong { color:var(--text-2); }
.week-state.published { border-color:#ccebdd; background:var(--success-soft); color:var(--success); }
.week-state.published strong { color:var(--success); }
.rota-grid-shell { padding:0; overflow:hidden; }
.rota-grid-scroll { overflow:auto; max-height:calc(100vh - 265px); min-height:420px; }
.rota-grid { display:grid; grid-template-columns:220px repeat(var(--days), minmax(126px, 1fr)); min-width:max-content; background:#fff; }
.rota-corner, .rota-day-head, .rota-person, .rota-cell { border-right:1px solid #e8eef2; border-bottom:1px solid #e8eef2; }
.rota-corner { min-height:64px; padding:11px 14px; display:flex; flex-direction:column; justify-content:center; background:#f7fbfc; z-index:6; }
.rota-corner strong { font-size:.83rem; }
.rota-corner span { color:var(--muted); font-size:.72rem; margin-top:2px; }
.sticky-column { position:sticky; left:0; box-shadow:6px 0 14px rgba(1,38,88,.025); }
.rota-day-head { min-height:64px; padding:8px; display:grid; justify-items:center; align-content:center; background:#f7fbfc; color:var(--muted); position:sticky; top:0; z-index:5; }
.rota-day-head span { font-size:.68rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.rota-day-head strong { color:var(--navy); font-size:1.08rem; }
.rota-day-head small { font-size:.68rem; }
.rota-day-head.today { background:#e9f8f7; }
.rota-person { min-height:116px; padding:12px; display:grid; grid-template-columns:36px 1fr auto; gap:9px; align-content:start; align-items:center; background:#fbfdfe; z-index:4; }
.rota-person .avatar { width:34px; height:34px; font-size:.78rem; }
.rota-person > div { min-width:0; display:grid; gap:2px; }
.rota-person strong { font-size:.84rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rota-person small { color:var(--muted); font-size:.69rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hours-chip { background:#eef4f7; border-radius:999px; padding:4px 6px; color:var(--text-2); font-size:.67rem; font-weight:800; }
.rota-cell { min-height:116px; padding:6px; position:relative; background:#fff; display:flex; flex-direction:column; gap:5px; }
.rota-cell.today { background:#fbfffe; }
.rota-cell.drop-target { background:#e8f8f7; box-shadow:inset 0 0 0 2px var(--teal); }
.add-shift-cell { margin-top:auto; width:100%; min-height:25px; border:1px dashed transparent; border-radius:7px; background:transparent; color:#9aabb9; cursor:pointer; opacity:.1; transition:.15s ease; }
.rota-cell:hover .add-shift-cell, .add-shift-cell:focus-visible { opacity:1; border-color:#bcd6de; background:#f7fbfc; color:var(--teal-2); }
.shift-card { width:100%; border:1px solid transparent; border-radius:8px; padding:7px 7px 6px; text-align:left; cursor:pointer; display:grid; gap:1px; box-shadow:0 2px 5px rgba(1,38,88,.04); }
.shift-card strong { font-size:.75rem; letter-spacing:-.01em; }
.shift-card span { font-size:.69rem; font-weight:720; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.shift-card small { font-size:.63rem; opacity:.78; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.shift-card[draggable="true"] { cursor:grab; }
.shift-card.dragging { opacity:.35; }
.shift-tone-navy { background:#e7eff8; border-color:#bfd2e6; color:#012658; }
.shift-tone-teal { background:#e4f8f7; border-color:#b8eae8; color:#08767e; }
.shift-tone-blue { background:#edf3fb; border-color:#cfddf0; color:#365f96; }
.shift-tone-slate { background:#f0f3f6; border-color:#d9e0e6; color:#506276; }
.shift-tone-green { background:#eaf7f0; border-color:#cce7d8; color:#207152; }
.shift-tone-amber { background:#fff6df; border-color:#efdfae; color:#7b5906; }
.rota-bottom-actions { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-top:12px; }
.compact-action-panel { padding:0; width:min(570px,100%); }
.compact-action-panel summary { cursor:pointer; padding:12px 14px; font-weight:760; }
.copy-week-form { padding:0 14px 14px; align-items:end; flex-wrap:wrap; }
.copy-week-form .field { min-width:145px; flex:1; }
.rota-empty-state img { max-width:270px; }

.shift-dialog { width:min(690px,calc(100% - 28px)); max-height:92vh; overflow:auto; border:0; border-radius:18px; padding:0; box-shadow:0 28px 90px rgba(1,38,88,.24); color:var(--text); }
.shift-dialog::backdrop { background:rgba(1,24,54,.38); backdrop-filter:blur(2px); }
.shift-dialog .dialog-head { display:flex; align-items:center; justify-content:space-between; padding:20px 22px 12px; border-bottom:1px solid var(--line); }
.shift-dialog h2 { margin:3px 0 0; font-size:1.35rem; }
.shift-dialog .form-stack { padding:20px 22px; }
.dialog-close { border:0; background:#f1f5f7; width:34px; height:34px; border-radius:50%; color:var(--text); font-size:1.4rem; cursor:pointer; }
.dialog-actions { display:flex; align-items:center; gap:8px; border-top:1px solid var(--line); margin:4px -22px -20px; padding:14px 22px; background:#fbfdfe; }
.dialog-spacer { flex:1; }
#deleteShiftForm { padding:0 22px 18px; }
.form-grid { display:grid; gap:12px; }
.form-grid.two-col { grid-template-columns:1fr 1fr; }
.form-grid.three-col { grid-template-columns:repeat(3,1fr); }

.template-page-grid { grid-template-columns:minmax(320px,.85fr) minmax(440px,1.15fr); align-items:start; }
.template-list { display:grid; gap:9px; margin-top:15px; }
.template-card { border:1px solid var(--line); border-radius:12px; background:#fff; overflow:hidden; }
.template-card > summary { list-style:none; display:grid; grid-template-columns:12px 1fr auto; gap:10px; align-items:center; padding:13px; cursor:pointer; }
.template-card > summary::-webkit-details-marker { display:none; }
.template-card > summary > span:nth-child(2) { display:grid; gap:2px; }
.template-card strong { color:var(--navy); }
.template-card small { color:var(--muted); }
.template-swatch { width:10px; height:38px; border-radius:99px; padding:0; }
.inline-template-form { border-top:1px solid var(--line); padding:14px; background:#fbfdfe; }
.template-card > form:not(.inline-template-form) { padding:0 14px 12px; }
.template-card.inactive { opacity:.62; }
.empty-inline { display:grid; gap:4px; color:var(--muted); padding:16px; background:#f8fbfc; border-radius:12px; }

.employee-rota-nav { justify-content:flex-end; margin-bottom:12px; }
.employee-rota-list { display:grid; gap:10px; }
.employee-day-card { display:grid; grid-template-columns:86px 1fr; gap:14px; background:#fff; border:1px solid var(--line); border-radius:14px; padding:13px; }
.employee-day-card.today { border-color:#bfe7e5; box-shadow:inset 4px 0 0 var(--teal); }
.employee-day-date { display:grid; align-content:center; border-right:1px solid var(--line); }
.employee-day-date strong { font-size:.88rem; }
.employee-day-date span { color:var(--muted); font-size:.78rem; }
.employee-day-shifts { display:grid; gap:7px; }
.employee-shift-line { border:1px solid; border-radius:10px; padding:9px 10px; display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:center; }
.employee-shift-line small { opacity:.78; }
.off-label { align-self:center; color:#92a0ad; font-size:.78rem; font-weight:800; letter-spacing:.08em; }

@media (max-width: 1000px) {
  .rota-toolbar { flex-wrap:wrap; }
  .rota-filters { width:100%; }
  .rota-filters select { flex:1; max-width:none; }
  .template-page-grid { grid-template-columns:1fr; }
}
@media (max-width: 720px) {
  .rota-page-heading { align-items:flex-start; }
  .heading-actions { width:100%; }
  .heading-actions .button, .heading-actions form { flex:1; }
  .heading-actions form .button { width:100%; }
  .rota-toolbar { position:static; }
  .view-tabs { order:3; width:100%; overflow:auto; }
  .view-tabs a { flex:1; text-align:center; }
  .rota-grid-scroll { max-height:none; }
  .rota-grid { grid-template-columns:170px repeat(var(--days), 118px); }
  .rota-person { grid-template-columns:30px 1fr; }
  .rota-person .hours-chip { grid-column:2; width:fit-content; }
  .form-grid.two-col, .form-grid.three-col { grid-template-columns:1fr; }
  .dialog-actions { flex-wrap:wrap; }
  .dialog-spacer { display:none; }
  .employee-day-card { grid-template-columns:65px 1fr; }
  .employee-shift-line { grid-template-columns:1fr; gap:2px; }
  .rota-bottom-actions { flex-direction:column; }
}

/* Phase 3B — advanced rota workflow */
.rota-heading-actions { justify-content:flex-end; }
.bulk-shift-bar { display:flex; align-items:center; gap:10px; padding:10px 12px; margin:0 0 10px; position:sticky; top:58px; z-index:17; background:#f8fcfc; border-color:#bfe7e5; }
.bulk-shift-bar[hidden] { display:none !important; }
.bulk-shift-bar > div:first-child { min-width:170px; display:grid; gap:2px; }
.bulk-shift-bar small { color:var(--muted); font-size:.7rem; }
.bulk-shift-bar select, .bulk-shift-bar input[type="text"] { min-height:36px; border:1px solid var(--line); border-radius:8px; background:#fff; padding:6px 9px; color:var(--text); }
.shift-wrap { position:relative; display:grid; grid-template-columns:1fr; }
.bulk-shift-check { position:absolute; top:5px; right:5px; z-index:3; width:17px; height:17px; accent-color:var(--teal); }
.rota-bulk-mode .shift-card { padding-right:28px; cursor:pointer !important; }
.rota-bulk-mode .shift-wrap:has(.bulk-shift-check:checked) .shift-card { box-shadow:inset 0 0 0 2px var(--teal); }
.recurring-mark { font-weight:900; color:var(--teal-2); }
.phase3b-tools { flex-wrap:wrap; }
.phase3b-tools .compact-action-panel { width:min(430px,100%); flex:1 1 330px; }
.rota-history-list { display:grid; gap:0; padding:0 14px 14px; }
.rota-history-list > div { display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid var(--line); }
.rota-history-list > div:last-child { border-bottom:0; }
.rota-history-list span { color:var(--text-2); font-size:.82rem; }
.rota-history-list small { color:var(--muted); font-size:.7rem; white-space:nowrap; }
.shortcut-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 14px; padding:0 14px 14px; color:var(--muted); font-size:.78rem; }
kbd { display:inline-grid; place-items:center; min-width:25px; height:23px; padding:0 6px; border:1px solid #cdd9df; border-bottom-width:2px; border-radius:6px; background:#fff; color:var(--navy); font:700 .72rem/1 system-ui,sans-serif; margin-right:5px; }
.repeat-shift-box { border:1px solid #cde7e6; background:#f5fbfb; border-radius:12px; padding:12px; }
.checkbox-row { display:flex; gap:10px; align-items:flex-start; cursor:pointer; }
.checkbox-row input { margin-top:4px; accent-color:var(--teal); }
.checkbox-row span { display:grid; gap:2px; }
.checkbox-row small { color:var(--muted); font-size:.75rem; }
#repeatShiftPanel { margin-top:12px; padding-top:12px; border-top:1px solid #d9eeee; }
.weekday-picker { display:flex; gap:6px; flex-wrap:wrap; margin:10px 0; }
.weekday-picker label { display:flex; align-items:center; gap:4px; border:1px solid var(--line); background:#fff; border-radius:999px; padding:6px 9px; font-size:.74rem; font-weight:700; color:var(--text-2); cursor:pointer; }
.weekday-picker input { accent-color:var(--teal); }
.repeat-preview-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.repeat-preview-row .muted { font-size:.76rem; }
.shift-destructive-actions { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:0 22px 18px; }
.shift-destructive-actions form { padding:0 !important; }
.rota-cell:focus-visible { outline:2px solid var(--teal); outline-offset:-2px; }

@media (max-width: 720px) {
  .bulk-shift-bar { position:static; flex-wrap:wrap; }
  .bulk-shift-bar > div:first-child { width:100%; }
  .shortcut-grid { grid-template-columns:1fr; }
  .shift-destructive-actions { align-items:flex-start; flex-direction:column; }
}

/* Phase 4 — availability, leave and scheduling conflicts */
.phase4-heading { align-items:flex-start; }
.phase4-two-column { display:grid; grid-template-columns:minmax(300px,.82fr) minmax(460px,1.18fr); gap:18px; align-items:start; }
.employee-picker-bar { padding:12px 14px; margin-bottom:14px; display:flex; align-items:end; gap:10px; }
.employee-picker-bar .field { min-width:260px; }
.availability-form-panel,.availability-list-panel,.leave-request-form-panel,.leave-list-panel,.leave-manager-summary { min-width:0; }
.availability-rule-list,.leave-request-list { display:grid; gap:10px; margin-top:14px; }
.availability-rule-card { border:1px solid var(--line); border-radius:13px; overflow:hidden; background:#fff; }
.availability-rule-card summary { list-style:none; display:grid; grid-template-columns:12px minmax(0,1fr) auto; gap:10px; align-items:center; padding:13px 14px; cursor:pointer; }
.availability-rule-card summary::-webkit-details-marker { display:none; }
.availability-rule-card summary > span:nth-child(2) { display:grid; gap:2px; min-width:0; }
.availability-rule-card summary strong { color:var(--navy); }
.availability-rule-card summary small { color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.availability-dot,.leave-status-dot { width:10px; height:10px; border-radius:50%; background:#9aabb9; }
.availability-status-available .availability-dot,.availability-available { background:#2fbdbd; }
.availability-status-unavailable .availability-dot,.availability-unavailable { background:#d96565; }
.availability-status-prefer_to_work .availability-dot,.availability-prefer_to_work { background:#5b91cf; }
.availability-status-prefer_not_to_work .availability-dot,.availability-prefer_not_to_work { background:#e6a13f; }
.availability-rule-body { border-top:1px solid var(--line); padding:14px; background:#fbfdfe; display:grid; gap:13px; }
.availability-rule-body > p { margin:0; color:var(--muted); }
.availability-all-day { border:1px solid #d6eceb; background:#f6fbfb; padding:10px 12px; border-radius:10px; }
.section-heading-row { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.section-heading-row h2 { margin-top:3px; }
.leave-page-grid { grid-template-columns:minmax(300px,.75fr) minmax(500px,1.25fr); }
.leave-manager-summary { display:grid; gap:10px; }
.leave-manager-summary h2,.leave-manager-summary p { margin:0; }
.leave-summary-links { display:flex; flex-wrap:wrap; gap:7px; margin-top:5px; }
.leave-card { border:1px solid var(--line); border-radius:13px; background:#fff; padding:13px; display:grid; gap:11px; }
.leave-card-main { display:grid; grid-template-columns:12px minmax(0,1fr) auto; gap:10px; align-items:start; }
.leave-card-main > div { display:grid; gap:2px; }
.leave-card-main strong { color:var(--navy); }
.leave-card-main span { color:var(--text-2); font-size:.82rem; }
.leave-card-main small { color:var(--muted); font-size:.75rem; margin-top:2px; }
.leave-status-badge { border-radius:999px; padding:5px 8px; font-size:.68rem !important; font-weight:800; background:#eef3f5; color:var(--muted) !important; }
.leave-status-pending .leave-status-dot { background:#e6a13f; }
.leave-status-approved .leave-status-dot { background:#2d9b70; }
.leave-status-declined .leave-status-dot,.leave-status-cancelled .leave-status-dot { background:#9aa8b5; }
.leave-status-approved .leave-status-badge { background:#e8f6ef; color:#247355 !important; }
.leave-status-pending .leave-status-badge { background:#fff5da; color:#765400 !important; }
.manager-comment { border-radius:9px; background:#f6f9fb; padding:9px 10px; display:grid; gap:2px; font-size:.78rem; }
.manager-comment span { color:var(--muted); }
.leave-review-form { border-top:1px solid var(--line); padding-top:11px; display:grid; gap:9px; }
.attention-panel { margin:16px 0 18px; display:grid; gap:12px; }
.attention-panel.has-attention { border-color:#e8d9af; background:#fffdf7; }
.attention-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.attention-heading h2 { margin:3px 0 0; }
.attention-actions { display:flex; gap:7px; flex-wrap:wrap; }
.attention-list { display:grid; border-top:1px solid var(--line); }
.attention-list a { display:grid; grid-template-columns:28px minmax(0,1fr) auto; gap:10px; align-items:center; padding:10px 2px; border-bottom:1px solid var(--line); text-decoration:none; color:var(--text); }
.attention-list a:last-child { border-bottom:0; }
.attention-list a > span:nth-child(2) { display:grid; gap:2px; }
.attention-list small { color:var(--muted); }
.attention-icon { width:26px; height:26px; border-radius:8px; background:#fff1c8; color:#765400; display:grid; place-items:center; font-weight:900; }
.employee-self-metrics { margin-top:16px; }
.rota-leave-pill { border:1px solid #c8d9ef; background:#eef4fb; color:#365f96; border-radius:7px; padding:4px 6px; font-size:.63rem; font-weight:800; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.rota-availability-row { display:flex; gap:3px; min-height:8px; }
.availability-dot-chip { width:7px; height:7px; border-radius:50%; display:inline-block; box-shadow:0 0 0 1px rgba(1,38,88,.08); }
.leave-cell { background:#fbfdff; }
.availability-mini { display:inline-flex; width:fit-content; border-radius:999px; color:#fff; font-size:.67rem; font-weight:800; padding:4px 7px; }
.availability-mini.availability-available { background:#199ca2; }
.availability-mini.availability-unavailable { background:#bb5555; }
.availability-mini.availability-prefer_to_work { background:#527fb5; }
.availability-mini.availability-prefer_not_to_work { background:#c78929; }
.leave-ribbon { display:inline-flex; width:fit-content; border:1px solid #c8d9ef; background:#eef4fb; color:#365f96; border-radius:8px; padding:6px 8px; font-size:.72rem; font-weight:800; }
.employee-day-card.on-leave { background:#fbfdff; }
.shift-conflict-box { border:1px solid #ebd59d; background:#fff9e8; border-radius:12px; padding:12px; display:grid; gap:9px; }
.shift-conflict-box > strong { color:#6f5000; }
#shiftConflictList { display:grid; gap:6px; }
.conflict-line { display:grid; gap:2px; padding:8px 9px; border-radius:8px; background:#fff; border:1px solid #ecdcae; }
.conflict-line strong { font-size:.78rem; color:#6f5000; }
.conflict-line span { color:#776338; font-size:.74rem; }
.conflict-blocking { border-color:#efc0c0; background:#fff7f7; }
.conflict-blocking strong,.conflict-blocking span { color:#934141; }
.button-warning { background:#bd7e12; border-color:#bd7e12; color:#fff; }
.button-warning:hover { background:#a66c0d; border-color:#a66c0d; }

@media (max-width: 900px) {
  .phase4-two-column,.leave-page-grid { grid-template-columns:1fr; }
}
@media (max-width: 720px) {
  .employee-picker-bar { align-items:stretch; }
  .employee-picker-bar .field { min-width:0; width:100%; }
  .attention-heading { flex-direction:column; }
  .leave-card-main { grid-template-columns:10px minmax(0,1fr); }
  .leave-status-badge { grid-column:2; width:fit-content; }
}

/* Phase 5 — employee portal, swaps, open shifts, cover and announcements */
.participation-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr); gap:20px; align-items:start; margin-bottom:20px; }
.participation-list-panel { margin-top:20px; }
.participation-list { display:grid; gap:10px; }
.participation-item { border:1px solid var(--line); border-radius:14px; padding:14px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; background:#fff; }
.participation-item-main { display:grid; grid-template-columns:12px minmax(0,1fr); gap:11px; align-items:start; }
.participation-item-main > div:last-child { display:grid; gap:4px; }
.participation-item p { margin:0; color:var(--text-2); line-height:1.45; }
.participation-item small { color:var(--muted); line-height:1.4; display:block; }
.item-title-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.status-dot { width:10px; height:10px; margin-top:6px; border-radius:50%; background:#9aabb9; }
.status-open { background:var(--teal); }
.status-pending,.status-pending-approval { background:#e6a13f; }
.status-approved,.status-filled,.status-accepted,.status-assigned { background:#2d9b70; }
.status-declined,.status-cancelled,.status-withdrawn,.status-expired { background:#98a5b2; }
.participation-actions { display:flex; gap:7px; align-items:center; justify-content:flex-end; flex-wrap:wrap; }
.participation-actions form { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.inline-review-form input { min-height:34px; border:1px solid var(--line); border-radius:8px; padding:6px 8px; max-width:180px; }
.status-chip.subtle { background:#f1f5f7; color:#617387; border-color:#dfe7ec; text-transform:capitalize; }
.manager-note { color:var(--teal-2) !important; }
.open-shift-create-panel { margin-bottom:20px; }
.form-grid.four { grid-template-columns:repeat(4,minmax(0,1fr)); }
.field-span-4 { grid-column:1/-1; }
.claim-list { grid-column:1/-1; border-top:1px solid var(--line); padding-top:10px; display:grid; gap:8px; }
.claim-row,.mini-list-row { display:flex; justify-content:space-between; gap:12px; align-items:center; padding:8px 0; border-bottom:1px solid var(--line); }
.claim-row:last-child,.mini-list-row:last-child { border-bottom:0; }
.claim-row > span,.mini-list-row > span { display:grid; gap:2px; }
.claim-row small,.mini-list-row small { color:var(--muted); }
.cover-summary { display:flex; justify-content:space-between; gap:20px; align-items:center; margin-bottom:20px; }
.cover-summary h2 { margin-bottom:4px; }
.cover-summary p { margin:0; }
.cover-original { display:grid; text-align:right; gap:2px; }
.cover-original small { color:var(--muted); }
.cover-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr); gap:20px; align-items:start; }
.candidate-list { display:grid; gap:9px; }
.candidate-card { display:grid; grid-template-columns:38px minmax(0,1fr) auto; gap:12px; align-items:center; border:1px solid var(--line); border-radius:12px; padding:12px; }
.candidate-unavailable { opacity:.65; background:#f8fafb; }
.candidate-rank { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:var(--brand-soft); color:var(--navy); }
.candidate-info { display:grid; gap:3px; }
.candidate-info > span { color:var(--muted); font-size:.78rem; }
.reason-chips { display:flex; gap:5px; flex-wrap:wrap; margin-top:3px; }
.reason-chips span { border-radius:999px; background:#eff5f7; color:#5c6f83; font-size:.66rem; padding:4px 6px; font-weight:700; }
.mini-list { display:grid; margin-top:10px; }
.image-placeholder-box.small { min-height:180px; margin-top:18px; }
.announcement-compose { margin-bottom:20px; }
.announcement-feed { display:grid; gap:14px; }
.announcement-card { display:grid; gap:9px; }
.announcement-card h2 { margin:0; }
.announcement-card p { margin:0; white-space:normal; }
.announcement-read { background:#fbfdfe; }
.announcement-meta,.announcement-footer { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.announcement-meta > span:last-child,.announcement-footer small { color:var(--muted); font-size:.75rem; }
.team-groups { display:grid; gap:18px; }
.people-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.person-card { display:flex; gap:10px; align-items:center; border:1px solid var(--line); border-radius:12px; padding:11px; background:#fbfdfe; }
.person-card .avatar { flex:0 0 auto; }
.person-card > div { display:grid; gap:2px; }
.person-card small { color:var(--muted); }
.employee-home-hero { border-radius:18px; padding:22px; background:linear-gradient(135deg,#f4fbfb,#edf4fb); border:1px solid #d6e8ed; display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:16px; overflow:hidden; }
.employee-home-hero > div { min-width:0; flex:1; }
.employee-home-mark { width:105px; height:105px; object-fit:contain; opacity:.88; flex:0 0 auto; }
.today-shift-card { display:flex; gap:16px; align-items:center; margin-top:10px; background:#fff; border:1px solid #dbe7ec; border-radius:14px; padding:14px; max-width:620px; }
.today-shift-time { font-size:1.3rem; font-weight:850; color:var(--navy); white-space:nowrap; }
.today-shift-card > div:last-child,.today-off-card { display:grid; gap:2px; }
.today-shift-card span,.today-off-card span { color:var(--muted); }
.today-off-card { margin-top:10px; }
.employee-action-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
.employee-action-card { text-decoration:none; background:#fff; border:1px solid var(--line); border-radius:14px; padding:13px; display:grid; gap:4px; min-height:112px; align-content:start; }
.employee-action-card:hover { border-color:#b7d8d8; transform:translateY(-1px); box-shadow:0 8px 20px rgba(1,38,88,.05); }
.employee-action-card .action-icon { width:32px; height:32px; display:grid; place-items:center; border-radius:9px; background:var(--brand-soft); color:var(--teal-2); font-weight:900; }
.employee-action-card small { color:var(--muted); }
.employee-week-panel { margin-top:0; }
.panel-heading-row { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.panel-heading-row h2 { margin:4px 0 0; }
.employee-week-list { display:grid; margin-top:10px; }
.employee-week-row { display:grid; grid-template-columns:52px minmax(0,1fr) auto; gap:12px; align-items:center; padding:11px 0; border-bottom:1px solid var(--line); }
.employee-week-row:last-child { border-bottom:0; }
.employee-week-row > span:nth-child(2) { display:grid; gap:2px; }
.employee-week-row small { color:var(--muted); }
.employee-week-day { width:44px; height:36px; display:grid; place-items:center; border-radius:9px; background:var(--surface-2); font-weight:850; }
.empty-brand-icon { width:74px; height:74px; object-fit:contain; margin-bottom:10px; }
.optional { color:var(--muted); font-weight:500; font-size:.75rem; }

@media (max-width: 1000px) {
  .participation-grid,.cover-layout { grid-template-columns:1fr; }
  .employee-action-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .people-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .form-grid.four { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .participation-item { grid-template-columns:1fr; }
  .participation-actions { justify-content:flex-start; }
  .candidate-card { grid-template-columns:34px minmax(0,1fr); }
  .candidate-action { grid-column:2; }
  .cover-summary { align-items:flex-start; flex-direction:column; }
  .cover-original { text-align:left; }
  .announcement-meta,.announcement-footer { align-items:flex-start; flex-direction:column; }
  .people-grid,.employee-action-grid,.form-grid.four { grid-template-columns:1fr 1fr; }
  .employee-home-mark { width:70px; height:70px; }
  .today-shift-card { align-items:flex-start; flex-direction:column; gap:5px; }
  .employee-week-row { grid-template-columns:44px minmax(0,1fr); }
  .employee-week-row .status-chip { grid-column:2; width:fit-content; }
}
@media (max-width: 480px) {
  .employee-action-grid,.people-grid,.form-grid.four { grid-template-columns:1fr; }
  .employee-home-mark { display:none; }
}

/* Phase 6 — notifications, sharing, exports and calendar */
.notification-bell { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--teal-2); text-decoration: none; font-weight: 900; }
.notification-bell:hover, .notification-bell.active { background: var(--brand-soft); border-color: #bfe4e2; }
.notification-bell strong { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; background: var(--navy); color: #fff; border: 2px solid #fff; border-radius: 999px; font-size: .65rem; }
.notification-panel { padding: 0; overflow: hidden; }
.notification-panel .section-heading { padding: 20px 22px 10px; }
.notification-row { border-top: 1px solid var(--line); }
.notification-row.unread { background: #f3fbfb; }
.notification-button { width: 100%; display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; border: 0; background: transparent; text-align: left; padding: 15px 20px; color: var(--text); cursor: pointer; }
.notification-button:hover { background: #f8fbfc; }
.notification-dot { width: 8px; height: 8px; border-radius: 50%; background: #c4d0da; }
.notification-row.unread .notification-dot { background: var(--teal); box-shadow: 0 0 0 4px rgba(25,186,182,.10); }
.notification-copy { display: grid; gap: 3px; min-width: 0; }
.notification-copy strong { font-size: .93rem; }
.notification-copy span { color: var(--text-2); line-height: 1.45; font-size: .88rem; }
.notification-copy small { color: var(--muted); font-size: .74rem; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.toggle-row > span { display: grid; gap: 3px; }
.toggle-row small { color: var(--muted); line-height: 1.35; font-weight: 500; }
.toggle-row input { width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--teal-2); }
.compact-toggle { padding-block: 9px; }

.share-grid { margin-bottom: 20px; }
.share-options { grid-template-columns: repeat(3, minmax(0,1fr)); }
.share-links-panel { margin-top: 20px; }
.share-link-row { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.share-link-row:first-of-type { border-top: 0; }
.share-link-row > div:first-child { display: grid; gap: 4px; min-width: 0; }
.share-link-row span, .share-link-row small { color: var(--muted); font-size: .83rem; line-height: 1.4; }
.share-link-actions { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.share-link-actions form { margin: 0; }
.export-form .form-actions { margin-top: 2px; }
.calendar-grid { align-items: start; }

.shared-rota-body, .print-rota-body { margin: 0; background: #f4f8fb; color: var(--navy); font-family: "Segoe UI Variable Text", "Segoe UI", Aptos, Roboto, "Helvetica Neue", Arial, sans-serif; }
.shared-rota-shell, .print-rota-shell { width: min(1180px, calc(100% - 32px)); margin: 28px auto 50px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.shared-rota-header, .print-rota-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.shared-rota-header img, .print-rota-header img { width: 150px; max-height: 76px; object-fit: contain; object-position: left center; }
.shared-actions { display: flex; gap: 8px; }
.shared-title { padding: 28px 26px 18px; background: linear-gradient(135deg, #f5fbfb, #fff); }
.shared-title h1 { margin: 5px 0 6px; font-size: clamp(2rem,5vw,3.4rem); letter-spacing: -.05em; }
.shared-title p { margin: 0; color: var(--muted); }
.shared-sharebar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: end; padding: 16px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fbfdfe; }
.shared-sharebar .field { margin: 0; }
.shared-table-wrap { overflow-x: auto; padding: 0 24px 24px; }
.shared-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.shared-table th { text-align: left; padding: 12px 11px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .055em; background: #f7fafb; border-bottom: 1px solid var(--line); }
.shared-table td { padding: 13px 11px; color: var(--text-2); font-size: .88rem; border-bottom: 1px solid #edf2f5; vertical-align: top; }
.shared-table td small { color: var(--muted); }
.shared-empty { text-align: center; padding: 38px !important; color: var(--muted) !important; }
.shared-footer { display: flex; justify-content: space-between; gap: 16px; padding: 17px 24px; background: var(--navy); color: #dce9f6; font-size: .82rem; }
.shared-footer a { color: #fff; font-weight: 750; text-decoration: none; }
.print-rota-shell { box-shadow: none; }
.print-rota-header h1 { margin: 3px 0; font-size: 1.5rem; }
.print-rota-header p { margin: 0; color: var(--muted); }
.print-rota-shell .shared-table { min-width: 0; }

@media (max-width: 900px) {
    .share-options { grid-template-columns: 1fr; }
    .shared-sharebar { grid-template-columns: 1fr; }
    .share-link-row { align-items: flex-start; flex-direction: column; }
    .share-link-actions { justify-content: flex-start; }
}
@media (max-width: 680px) {
    .notification-bell { width: 36px; height: 36px; }
    .shared-rota-shell, .print-rota-shell { width: 100%; margin: 0; border-radius: 0; border-inline: 0; }
    .shared-rota-header { padding: 14px 16px; }
    .shared-rota-header img { width: 120px; }
    .shared-actions { gap: 5px; }
    .shared-actions .button { padding-inline: 9px; font-size: .76rem; }
    .shared-title, .shared-sharebar { padding-inline: 16px; }
    .shared-table-wrap { padding-inline: 12px; }
    .shared-footer { flex-direction: column; }
}
@media print {
    .no-print { display: none !important; }
    .shared-rota-body, .print-rota-body { background: #fff; }
    .shared-rota-shell, .print-rota-shell { width: 100%; margin: 0; border: 0; box-shadow: none; }
    .shared-rota-header, .print-rota-header { padding: 10px 0; }
    .shared-title { padding: 14px 0; background: #fff; }
    .shared-table-wrap { padding: 0; overflow: visible; }
    .shared-table { min-width: 0; font-size: 9pt; }
    .shared-table th, .shared-table td { padding: 6px 5px; }
    .shared-footer { background: #fff; color: #555; border-top: 1px solid #ddd; padding-inline: 0; }
    .shared-footer a { color: #333; }
    @page { size: landscape; margin: 12mm; }
}

/* Phase 8 — flat-rate plans and billing */
.pricing-shell { padding-bottom: 72px; }
.pricing-hero { max-width: 850px; margin: 70px auto 38px; text-align: center; }
.pricing-hero h1 { margin: 18px 0 14px; color: var(--navy); font-size: clamp(2.6rem, 6vw, 5rem); line-height: .98; letter-spacing: -.055em; }
.pricing-hero > p { max-width: 720px; margin: 0 auto; color: var(--text-2); font-size: 1.08rem; line-height: 1.7; }
.pricing-note { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 20px; padding: 10px 14px; border: 1px solid #cde8e7; border-radius: 999px; background: #f1fbfa; color: var(--teal-2); font-size: .84rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; align-items: stretch; }
.pricing-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 12px 32px rgba(1,38,88,.055); }
.pricing-card.recommended { border-color: #76d8d4; box-shadow: 0 16px 42px rgba(18,139,151,.12); }
.pricing-card.current { outline: 2px solid rgba(19,164,167,.16); }
.pricing-badge,.current-plan-badge { position: absolute; top: 12px; right: 12px; padding: 6px 9px; border-radius: 999px; background: var(--teal-2); color: #fff; font-size: .66rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.current-plan-badge { left: 12px; right: auto; background: var(--navy); }
.pricing-card-head h2,.pricing-card > h2 { margin: 5px 0 2px; color: var(--navy); font-size: 2.2rem; letter-spacing: -.045em; }
.pricing-card h2 small { margin-left: 4px; color: var(--muted); font-size: .78rem; font-weight: 650; letter-spacing: 0; }
.pricing-card p { color: var(--text-2); line-height: 1.55; }
.annual-price { margin: 0; color: var(--teal-2) !important; font-size: .8rem; font-weight: 750; }
.plan-capacity { display: grid; gap: 3px; padding: 13px 14px; border-radius: 13px; background: var(--brand-soft); }
.plan-capacity strong { color: var(--navy); }
.plan-capacity span { color: var(--muted); font-size: .8rem; }
.feature-list,.clean-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.feature-list li,.clean-list li { position: relative; padding-left: 20px; color: var(--text-2); font-size: .86rem; line-height: 1.45; }
.feature-list li::before,.clean-list li::before { content:'✓'; position: absolute; left: 0; top: 0; color: var(--teal-2); font-weight: 900; }
.feature-list.compact { flex: 1; }
.pricing-card > .button,.billing-actions-stack { margin-top: auto; }
.billing-actions-stack { display: grid; gap: 8px; }
.billing-actions-stack form,.billing-actions-stack .button { width: 100%; }
.pricing-faq-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 34px; margin-top: 28px; padding: 28px; border-radius: 20px; background: var(--navy); color: #fff; }
.pricing-faq-panel h2 { margin: 7px 0 0; color: #fff; font-size: 1.7rem; }
.pricing-faq-panel p { margin: 0; color: #dbe7f4; line-height: 1.7; }
.billing-summary-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-bottom: 20px; }
.billing-plan-line { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.billing-plan-line h2 { margin: 5px 0; font-size: 2rem; }
.usage-meter-block { display: grid; gap: 7px; margin: 17px 0; }
.usage-meter-copy { display: flex; justify-content: space-between; gap: 12px; font-size: .82rem; }
.usage-meter-copy span { color: var(--muted); }
.usage-meter { height: 9px; overflow: hidden; border-radius: 999px; background: #eaf1f5; }
.usage-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--navy-2),var(--teal)); }
.billing-principles .clean-list { margin-top: 16px; }
.app-pricing-grid { margin: 20px 0; }
.billing-future-panel { margin-top: 20px; }
.choice-card-locked { opacity: .75; border-style: dashed; }
.choice-card-locked span { display: grid; gap: 4px; }
.shared-org-brand { color: var(--navy); font-size: 1.2rem; }
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 780px) { .billing-summary-grid,.pricing-faq-panel { grid-template-columns: 1fr; } .pricing-hero { margin-top: 42px; } }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } .pricing-card { padding: 20px; } }

/* =========================================================
   UI POLISH 1 — September 2026
   Refined application shell, spacing, icons and hierarchy.
   ========================================================= */
:root {
    --bg: #f7fafc;
    --surface-2: #f7fbfc;
    --line: #d8e4eb;
    --line-strong: #c8d8e2;
    --radius: 18px;
    --shadow-soft: 0 8px 30px rgba(1,38,88,.055);
    --shadow-card: 0 12px 34px rgba(1,38,88,.07);
}

.rg-icon { display:block; flex:0 0 auto; }
.app-frame { grid-template-columns: 260px minmax(0,1fr); }
.sidebar { padding: 22px 15px 16px; box-shadow: 6px 0 28px rgba(1,38,88,.025); z-index: 30; }
.sidebar-brand { padding: 0 15px 24px; min-height: 92px; }
.sidebar-brand img { width: 152px; height: 80px; }
.nav { gap: 3px; }
.nav-section-label { display:block; padding: 5px 12px 7px; color:#93a2b3; font-size:.66rem; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.nav-section-spaced { margin-top: 10px; }
.nav-link { min-height: 46px; gap: 11px; border-radius: 12px; padding: 10px 12px; font-size:.9rem; font-weight:720; transition:background .15s ease,color .15s ease,transform .15s ease,box-shadow .15s ease; }
.nav-link:hover:not(.disabled) { background:#f1f8f9; color:var(--navy); transform:translateX(1px); }
.nav-link.active { background: linear-gradient(90deg, #e5f8f7 0%, #eef9fb 100%); color:var(--navy); box-shadow: inset 3px 0 0 var(--teal), 0 3px 14px rgba(2,134,147,.05); }
.nav-icon { width: 24px; height:24px; display:grid; place-items:center; color:var(--teal-2); }
.nav-link.active .nav-icon { color:#028f99; }
.sidebar-footer { padding-top: 14px; margin-top: 18px; }

.topbar { min-height: 82px; padding: 13px 30px; box-shadow: 0 1px 0 rgba(1,38,88,.035); }
.org-switcher { display:flex; align-items:center; gap:11px; }
.workspace-icon { width:38px; height:38px; border-radius:11px; display:grid; place-items:center; background:#eaf9f8; color:var(--teal-2); border:1px solid #d0efed; }
.org-switcher-copy { display:grid; gap:1px; }
.org-switcher-copy strong { font-size:.97rem; }
.org-switcher .eyebrow { font-size:.64rem; }
.org-menu summary { border-radius:999px; }
.topbar-actions { gap:12px; }
.notification-bell { width:42px; height:42px; border-radius:12px; box-shadow:0 2px 10px rgba(1,38,88,.025); }
.user-menu { gap:11px; padding-left:4px; }
.user-copy { display:grid; min-width:110px; line-height:1.12; }
.user-copy strong { font-size:.9rem; }
.user-copy span { margin-top:4px; color:var(--muted); font-size:.75rem; }
.avatar { width:40px; height:40px; border-radius:50%; border:1px solid #cce9e8; box-shadow:0 0 0 4px #f3fbfb; }
.logout-button { gap:7px; min-height:40px; border-radius:11px; }

.content { width:min(1450px,100%); padding:38px 34px 54px; }
.page-heading { margin-bottom:28px; gap:24px; }
.page-heading h1 { font-size:clamp(2rem,3.2vw,2.75rem); line-height:1.03; margin:5px 0 8px; }
.page-heading p { font-size:.97rem; line-height:1.65; max-width:820px; }
.page-heading-iconic { display:grid; grid-template-columns:48px minmax(0,1fr); justify-content:start; align-items:start; }
.page-heading-icon { width:48px; height:48px; display:grid; place-items:center; border-radius:14px; background:linear-gradient(145deg,#dff8f6,#eef6fb); color:var(--teal-2); box-shadow:inset 0 0 0 1px #ceeae8; margin-top:2px; }
.eyebrow { font-size:.69rem; letter-spacing:.13em; }

.panel { border-color:#dbe6ec; box-shadow:var(--shadow-soft); padding:26px; }
.panel h2 { font-size:1.34rem; margin:5px 0 10px; }
.panel > p { margin-top:0; font-size:.92rem; }
.feature-panel { background:linear-gradient(180deg,#fff 0%,#fdfefe 100%); }
.panel-title-with-icon { display:flex; gap:14px; align-items:center; margin-bottom:12px; }
.panel-title-with-icon h2 { margin:3px 0 0; }
.panel-icon { width:50px; height:50px; display:grid; place-items:center; border-radius:50%; flex:0 0 auto; }
.panel-icon-teal { background:#dff8f6; color:var(--teal-2); }
.panel-icon-blue { background:#e8f0fc; color:#315f9b; }

.button { border-radius:11px; font-weight:780; }
.button-primary { background:linear-gradient(135deg,#018d96 0%,#19b8b4 100%); box-shadow:0 8px 20px rgba(2,134,147,.16); }
.button-primary:hover { background:linear-gradient(135deg,#017883 0%,#12aaa6 100%); box-shadow:0 10px 24px rgba(2,134,147,.20); }
.button-secondary { box-shadow:0 2px 8px rgba(1,38,88,.025); }
.button-with-icon { gap:10px; }
.field { gap:8px; }
.field > span { font-size:.84rem; color:#274665; }
.field input, .field select, .field textarea, .search-field input, .filter-bar select, .copy-line input { border-radius:11px; min-height:48px; border-color:#cad9e2; background:#fff; box-shadow:inset 0 1px 2px rgba(1,38,88,.02); transition:border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.field input:hover, .field select:hover, .field textarea:hover { border-color:#b5cad6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color:#66c9c7; box-shadow:0 0 0 4px rgba(25,186,182,.09); }
.check-card { padding:12px 14px; border:1px solid var(--line); border-radius:11px; background:#fbfdfe; align-items:flex-start; }
.check-card span { display:grid; gap:2px; }
.check-card strong { color:var(--navy); }
.check-card small { color:var(--muted); font-size:.76rem; }
.choice-card { border-radius:12px; background:#fbfdfe; min-height:72px; align-items:flex-start; }
.choice-card:hover { border-color:#b9d7d7; background:#f8fcfc; }
.choice-card:has(input:checked) { border-color:#9eddd9; background:#eefaf9; box-shadow:inset 0 0 0 1px rgba(25,186,182,.08); }

.metric-grid { gap:18px; margin-bottom:22px; }
.metric-card { border-radius:16px; padding:22px; box-shadow:var(--shadow-soft); position:relative; overflow:hidden; }
.metric-card::after { content:""; position:absolute; right:-22px; top:-30px; width:92px; height:92px; border-radius:50%; background:radial-gradient(circle,#ebf9f8 0,#f7fbfc 55%,transparent 70%); }
.metric-card strong { font-size:2.15rem; position:relative; z-index:1; }
.metric-card a { width:fit-content; }
.status-chip-live { gap:7px; }
.status-dot { width:7px; height:7px; border-radius:50%; background:#2bb673; box-shadow:0 0 0 4px rgba(43,182,115,.11); }
.attention-panel { border-radius:16px; }
.attention-list a { padding:13px 3px; }
.attention-icon { width:34px; height:34px; border-radius:10px; }
.setup-step { min-height:68px; padding:14px; border-radius:13px; }
.step-number { width:38px; height:38px; border-radius:11px; }
.step-arrow { display:grid; place-items:center; }
.employee-action-card { border-radius:15px; padding:15px; min-height:120px; box-shadow:0 3px 14px rgba(1,38,88,.025); }
.employee-action-card .action-icon { width:38px; height:38px; border-radius:11px; }

.share-grid-polished { grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr); gap:20px; align-items:start; }
.share-grid-polished .feature-panel { padding:27px; }
.share-options { margin-top:2px; }
.copy-line-action { grid-template-columns:minmax(0,1fr) auto; align-items:center; }
.export-action-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.export-action { min-height:86px; display:grid; justify-items:center; align-content:center; gap:7px; border:1px solid #cddce5; border-radius:12px; background:#fff; color:var(--navy); cursor:pointer; transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease,background .15s ease; }
.export-action:hover { transform:translateY(-1px); border-color:#9dcfce; box-shadow:0 7px 20px rgba(1,38,88,.06); background:#fbfefe; }
.export-action span { width:34px; height:34px; display:grid; place-items:center; border-radius:9px; background:#eef4f8; color:#265885; }
.export-action strong { font-size:.79rem; }
.export-action.export-pdf span { background:#fff0f0; color:#c43737; }
.export-action.export-csv span { background:#e8f8f2; color:#117e62; }
.share-links-panel { margin-top:20px; }
.share-link-row { padding:17px 0; }

/* More breathable generic sections */
.section-heading { margin-bottom:16px; }
.form-stack { gap:19px; }
.form-grid { gap:17px; }
.dashboard-grid { gap:22px; }
.data-table th { padding-top:13px; padding-bottom:13px; }
.data-table td { padding-top:15px; padding-bottom:15px; }
.entity-card { border-radius:14px; box-shadow:0 2px 12px rgba(1,38,88,.018); }

@media (max-width: 1180px) {
    .app-frame { grid-template-columns:230px minmax(0,1fr); }
    .sidebar-brand img { width:140px; }
    .content { padding-inline:24px; }
    .share-grid-polished { grid-template-columns:1fr; }
}
@media (max-width: 900px) {
    .topbar { padding:12px 16px; min-height:70px; }
    .workspace-icon { display:none; }
    .user-copy { display:none; }
    .logout-button span { display:none; }
    .logout-button { width:40px; padding:0; }
    .content { padding:24px 16px 40px; }
    .page-heading-iconic { grid-template-columns:40px minmax(0,1fr); gap:11px; }
    .page-heading-icon { width:40px; height:40px; border-radius:12px; }
    .export-action-grid { grid-template-columns:1fr; }
    .export-action { min-height:58px; grid-template-columns:auto 1fr; justify-items:start; padding:10px 13px; }
}
@media (max-width: 620px) {
    .metric-grid { grid-template-columns:1fr; }
    .form-grid.two, .choice-grid { grid-template-columns:1fr; }
    .page-heading h1 { font-size:1.9rem; }
    .panel { padding:20px; }
}

/* =========================================================
   UI POLISH 2 — PNG ICON SYSTEM + HOMEPAGE V2
   ========================================================= */
.rg-png-icon { display:block; width:auto; height:auto; flex:0 0 auto; object-fit:contain; user-select:none; }
.nav-icon .rg-png-icon { width:22px; height:22px; }
.notification-bell .rg-png-icon { width:21px; height:21px; }
.workspace-icon .rg-png-icon { width:21px; height:21px; }
.button .rg-png-icon { width:19px; height:19px; }
.action-icon .rg-png-icon, .step-number .rg-png-icon, .attention-icon .rg-png-icon { width:22px; height:22px; }

/* App shell refinement */
.app-frame { grid-template-columns:258px minmax(0,1fr); }
.sidebar { padding:20px 14px 18px; border-right-color:#e3edf2; box-shadow:8px 0 28px rgba(5,42,93,.025); }
.sidebar-brand { padding:0 12px 24px; }
.sidebar-brand img { width:158px; height:78px; }
.nav { gap:4px; }
.nav-section-label { margin:10px 12px 5px; font-size:.65rem; color:#91a0b1; letter-spacing:.12em; font-weight:900; }
.nav-link { min-height:45px; border-radius:13px; padding:10px 12px; gap:12px; font-weight:720; color:#23456c; border:1px solid transparent; transition:background .16s ease,color .16s ease,transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.nav-link:hover { background:#f5fafb; color:var(--navy); transform:translateX(1px); }
.nav-link.active { background:linear-gradient(90deg,#e6f8f7 0%,#f1fbfb 100%); color:var(--navy); border-color:#d2efed; box-shadow:inset 3px 0 0 var(--teal); }
.nav-icon { width:28px; height:28px; display:grid; place-items:center; flex:0 0 28px; }
.sidebar-footer { padding-top:14px; margin-top:auto; border-top-color:#e7eef3; }
.topbar { min-height:82px; padding:13px 28px; border-bottom-color:#e4edf2; background:rgba(255,255,255,.94); backdrop-filter:blur(12px); }
.org-switcher { gap:11px; }
.workspace-icon { width:42px; height:42px; border-radius:13px; display:grid; place-items:center; background:#edf9f8; border:1px solid #d7f0ee; }
.org-switcher-copy strong { font-size:.96rem; }
.topbar-actions { gap:14px; }
.notification-bell { width:42px; height:42px; border-radius:13px; background:#f8fbfd; border:1px solid #e0eaf0; display:grid; place-items:center; position:relative; }
.notification-bell:hover { background:#eef9f8; border-color:#cce9e7; }
.notification-bell strong { position:absolute; right:-4px; top:-5px; min-width:19px; height:19px; display:grid; place-items:center; border-radius:999px; background:#d94b4b; color:white; font-size:.65rem; border:2px solid #fff; }
.user-menu { gap:11px; }
.avatar { width:42px; height:42px; }
.logout-button { border-radius:12px; }
.content { max-width:1500px; width:100%; margin-inline:auto; padding:34px 34px 56px; }
.page-heading { margin-bottom:24px; }
.page-heading h1 { font-size:clamp(2rem,3vw,2.75rem); letter-spacing:-.05em; }
.panel { border-radius:18px; box-shadow:0 6px 24px rgba(5,42,93,.035); border-color:#dfe9ef; }

/* Dashboard V2 */
.dashboard-heading-v2 { align-items:flex-end; }
.dashboard-heading-v2 p { color:#6c8097; }
.metric-grid-v2 { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.metric-card-v2 { display:grid; grid-template-columns:58px minmax(0,1fr); gap:16px; align-items:center; padding:22px 24px; min-height:150px; background:linear-gradient(145deg,#fff 0%,#fbfdfe 100%); }
.metric-card-v2::after { display:none; }
.metric-card-v2 .metric-icon-v2 { width:58px; height:58px; display:grid; place-items:center; border-radius:17px; background:linear-gradient(145deg,#e9f8f7,#f4fbfb); border:1px solid #d6efed; }
.metric-card-v2 strong { display:block; font-size:2.25rem; line-height:1; margin:8px 0 9px; letter-spacing:-.05em; }
.metric-card-v2 a { display:inline-flex; align-items:center; gap:7px; color:var(--teal-2); text-decoration:none; font-weight:780; font-size:.83rem; }
.metric-card-v2 a span { transition:transform .15s ease; }
.metric-card-v2:hover a span { transform:translateX(2px); }
.dashboard-quick-actions-v2 { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:0 0 22px; }
.dashboard-quick-actions-v2 > a { min-height:102px; display:grid; grid-template-columns:44px minmax(0,1fr) auto; gap:12px; align-items:center; padding:16px; border:1px solid #dfe9ef; border-radius:16px; background:#fff; text-decoration:none; box-shadow:0 3px 14px rgba(5,42,93,.025); transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease; }
.dashboard-quick-actions-v2 > a:hover { transform:translateY(-2px); border-color:#c5e3e1; box-shadow:0 10px 26px rgba(5,42,93,.07); }
.dashboard-quick-actions-v2 > a > span { width:44px; height:44px; display:grid; place-items:center; border-radius:13px; background:#eef8f8; }
.dashboard-quick-actions-v2 strong { display:block; font-size:.88rem; }
.dashboard-quick-actions-v2 small { display:block; color:var(--muted); margin-top:3px; line-height:1.35; font-size:.74rem; }
.dashboard-quick-actions-v2 b { color:#8ba0b2; font-size:1rem; }
.illustration-panel-v2 { align-content:start; }
.dashboard-feature-visual-v2 { min-height:210px; display:grid; place-items:center; align-content:center; gap:8px; margin-bottom:20px; border-radius:16px; background:radial-gradient(circle at 50% 35%,#effaf9 0,#e7f4f7 66%,#e8f0f6 100%); border:1px dashed #bfd9df; }
.dashboard-feature-visual-v2 > span { font-size:.7rem; letter-spacing:.12em; font-weight:900; color:var(--navy); }
.dashboard-feature-visual-v2 > small { color:#7d90a4; font-size:.7rem; }

/* Share/export extra polish with PNG icons */
.page-heading-icon .rg-png-icon, .feature-panel-icon .rg-png-icon { width:100%; height:100%; object-fit:contain; }
.page-heading-icon { background:#e9f8f7; border:1px solid #d2eeec; padding:9px; }
.feature-panel-icon { padding:9px; }
.export-action span { padding:5px; }
.export-action span .rg-png-icon { width:26px; height:26px; }

/* Marketing homepage v2 */
.marketing-body-v2 { background:#fff; color:var(--navy); overflow-x:hidden; }
.marketing-header-v2 { min-height:84px; position:relative; z-index:30; gap:24px; }
.marketing-logo-v2 img { width:162px; height:68px; }
.marketing-nav-v2 { margin-left:auto; gap:28px; }
.marketing-nav-v2 a { color:#405d7d; text-decoration:none; font-size:.9rem; font-weight:730; }
.marketing-nav-v2 a:hover { color:var(--teal-2); }
.marketing-actions-v2 { display:flex; align-items:center; gap:14px; }
.marketing-login { color:#315174; }
.home-hero-v2 { min-height:720px; display:grid; grid-template-columns:minmax(0,.88fr) minmax(520px,1.12fr); gap:54px; align-items:center; padding-top:62px; padding-bottom:88px; }
.home-hero-copy-v2 { position:relative; z-index:5; }
.home-kicker { display:inline-flex; align-items:center; gap:9px; padding:8px 12px; border-radius:999px; background:#eef9f8; border:1px solid #d8efed; color:#227f87; font-size:.76rem; font-weight:850; }
.home-kicker-dot { width:8px; height:8px; border-radius:50%; background:#1f9d75; box-shadow:0 0 0 4px rgba(31,157,117,.10); }
.home-hero-copy-v2 h1 { max-width:720px; margin:20px 0 20px; font-size:clamp(3.25rem,5.7vw,6rem); line-height:.95; letter-spacing:-.075em; color:#052a5d; }
.home-hero-copy-v2 h1 span { color:#0d939b; }
.home-hero-lead { margin:0; max-width:660px; color:#647a92; font-size:1.12rem; line-height:1.72; }
.home-hero-actions-v2 { display:flex; gap:12px; margin-top:28px; flex-wrap:wrap; }
.home-hero-actions-v2 .button-large { min-height:54px; padding-inline:22px; border-radius:13px; }
.home-trust-row-v2 { display:flex; flex-wrap:wrap; gap:18px 24px; margin-top:24px; color:#547087; font-size:.78rem; font-weight:680; }
.home-trust-row-v2 span { display:inline-flex; align-items:center; gap:7px; }
.home-hero-product-v2 { position:relative; padding:24px 0 28px 20px; }
.home-hero-product-v2::before { content:""; position:absolute; width:620px; height:620px; border-radius:50%; right:-150px; top:-80px; background:radial-gradient(circle,#dff8f5 0%,#edf7fb 50%,transparent 70%); z-index:0; }
.product-window-v2 { position:relative; z-index:2; background:#fff; border:1px solid #dbe7ed; border-radius:22px; box-shadow:0 32px 80px rgba(5,42,93,.16); overflow:hidden; transform:perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.product-window-top-v2 { height:52px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:14px; padding:0 16px; background:#f8fbfd; border-bottom:1px solid #e3ecf1; }
.window-dots-v2 { display:flex; gap:6px; }
.window-dots-v2 i { width:8px; height:8px; border-radius:50%; background:#cad7e0; }
.window-title-v2 { text-align:center; color:#526c86; font-size:.75rem; font-weight:700; }
.window-status-v2 { font-size:.65rem; font-weight:850; color:#157252; background:#eaf8f2; border:1px solid #d1ebdf; padding:5px 9px; border-radius:999px; }
.product-shell-v2 { min-height:490px; display:grid; grid-template-columns:76px minmax(0,1fr); }
.product-sidebar-v2 { background:#062b5f; padding:18px 13px; display:grid; align-content:start; justify-items:center; gap:14px; }
.product-sidebar-v2 > img { width:38px; height:38px; margin-bottom:9px; }
.product-sidebar-v2 > span { width:42px; height:42px; border-radius:12px; display:grid; place-items:center; background:rgba(255,255,255,.06); }
.product-sidebar-v2 > span.active { background:#dff6f4; }
.product-main-v2 { padding:24px; background:#fbfdfe; }
.product-summary-v2 { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.product-summary-v2 div { padding:16px; border-radius:14px; border:1px solid #e1eaf0; background:#fff; }
.product-summary-v2 small { display:block; color:#70849a; font-size:.66rem; }
.product-summary-v2 strong { display:block; margin-top:5px; font-size:1.25rem; color:#052a5d; }
.mini-rota-v2 { margin-top:18px; border:1px solid #dfe8ee; border-radius:15px; overflow:hidden; background:#fff; }
.mini-rota-head-v2,.mini-rota-row-v2 { display:grid; grid-template-columns:1.28fr repeat(5,1fr); align-items:center; }
.mini-rota-head-v2 { min-height:42px; background:#f5f9fb; border-bottom:1px solid #e5edf2; color:#76899c; font-size:.63rem; font-weight:820; }
.mini-rota-head-v2 span,.mini-rota-row-v2 > * { padding:8px; }
.mini-rota-row-v2 { min-height:68px; border-bottom:1px solid #edf2f5; }
.mini-rota-row-v2:last-child { border-bottom:0; }
.mini-rota-row-v2 strong { color:#31506f; font-size:.67rem; white-space:nowrap; }
.mini-rota-row-v2 i { display:block; margin:9px 5px; min-height:34px; border-radius:8px; padding:0; }
.mini-rota-row-v2 .shift-a { background:#e4f6f4; border:1px solid #bee8e4; }
.mini-rota-row-v2 .shift-b { background:#e8eef9; border:1px solid #cad8ee; }
.mini-rota-row-v2 .shift-c { background:#eef4fa; border:1px solid #d5e2ee; }
.mini-rota-row-v2 .off { background:repeating-linear-gradient(135deg,#f8fafb,#f8fafb 5px,#eef3f5 5px,#eef3f5 10px); }
.hero-float-card { position:absolute; z-index:4; min-width:220px; display:grid; grid-template-columns:40px 1fr; gap:11px; align-items:center; padding:12px 14px; background:rgba(255,255,255,.96); border:1px solid #dce8ee; border-radius:15px; box-shadow:0 18px 42px rgba(5,42,93,.13); }
.hero-float-card strong { display:block; font-size:.72rem; }
.hero-float-card small { display:block; margin-top:2px; color:#7a8da1; font-size:.62rem; line-height:1.35; }
.hero-float-card-left { left:-18px; bottom:-4px; }
.hero-float-card-right { right:-16px; top:105px; }
.home-proof-strip-v2 { border-top:1px solid #e7eef2; border-bottom:1px solid #e7eef2; background:#f9fcfd; }
.home-proof-inner-v2 { display:grid; grid-template-columns:repeat(4,1fr); }
.home-proof-inner-v2 > div { padding:24px 26px; border-right:1px solid #e5edf1; }
.home-proof-inner-v2 > div:first-child { padding-left:0; }
.home-proof-inner-v2 > div:last-child { border-right:0; }
.home-proof-inner-v2 strong { display:block; font-size:.87rem; }
.home-proof-inner-v2 span { display:block; color:#768a9e; font-size:.72rem; margin-top:4px; }
.home-section-v2 { padding-top:105px; padding-bottom:105px; }
.home-section-heading-v2 { max-width:720px; margin-bottom:42px; }
.home-section-heading-centered-v2 { margin-inline:auto; text-align:center; }
.home-section-heading-v2 h2 { margin:9px 0 13px; font-size:clamp(2.25rem,4vw,4rem); line-height:1.02; letter-spacing:-.055em; }
.home-section-heading-v2 p { margin:0; color:#6b8198; font-size:1rem; line-height:1.7; }
.home-feature-grid-v2 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.home-feature-card-v2 { min-height:250px; padding:25px; border:1px solid #e0e9ef; border-radius:20px; background:linear-gradient(145deg,#fff,#fbfdfe); box-shadow:0 6px 24px rgba(5,42,93,.025); transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.home-feature-card-v2:hover { transform:translateY(-3px); border-color:#c8e6e3; box-shadow:0 18px 40px rgba(5,42,93,.07); }
.feature-icon-v2 { width:64px; height:64px; display:grid; place-items:center; border-radius:18px; background:#eef9f8; border:1px solid #d9efed; margin-bottom:22px; }
.home-feature-card-v2 h3 { margin:0 0 9px; font-size:1.1rem; letter-spacing:-.025em; }
.home-feature-card-v2 p { margin:0; color:#6e8298; line-height:1.65; font-size:.88rem; }
.home-product-section-v2 { background:linear-gradient(180deg,#f6fbfc,#eef7f8); border-top:1px solid #e5eef1; border-bottom:1px solid #dfeaec; }
.home-product-grid-v2 { display:grid; grid-template-columns:minmax(0,.85fr) minmax(520px,1.15fr); gap:72px; align-items:center; padding-top:100px; padding-bottom:100px; }
.home-product-copy-v2 h2 { margin:10px 0 14px; font-size:clamp(2.2rem,4vw,3.7rem); line-height:1.03; letter-spacing:-.055em; }
.home-product-copy-v2 > p { color:#6d8297; line-height:1.7; }
.home-step-list-v2 { display:grid; gap:14px; margin:30px 0 28px; }
.home-step-list-v2 > div { display:grid; grid-template-columns:38px 1fr; gap:13px; align-items:start; }
.home-step-list-v2 > div > span { width:38px; height:38px; border-radius:12px; display:grid; place-items:center; background:#052a5d; color:#fff; font-size:.75rem; font-weight:900; }
.home-step-list-v2 p { margin:0; }
.home-step-list-v2 strong { display:block; font-size:.9rem; }
.home-step-list-v2 small { display:block; margin-top:3px; color:#71859a; line-height:1.5; font-size:.77rem; }
.home-placeholder-panel-v2 { background:#fff; border:1px solid #dbe7eb; border-radius:24px; padding:20px; box-shadow:0 25px 55px rgba(5,42,93,.11); }
.placeholder-label-v2 { font-size:.61rem; letter-spacing:.12em; font-weight:900; color:#6f879b; margin:0 0 13px; }
.placeholder-product-v2 { border:1px solid #dce7ec; border-radius:15px; overflow:hidden; background:#f8fbfc; }
.placeholder-topbar-v2 { height:40px; background:#fff; border-bottom:1px solid #e2eaee; }
.placeholder-grid-v2 { min-height:330px; display:grid; grid-template-columns:95px 1fr; }
.placeholder-rail-v2 { background:#072b5e; }
.placeholder-cells-v2 { padding:24px; display:grid; grid-template-columns:repeat(4,1fr); gap:10px; align-content:start; }
.placeholder-cells-v2 i { height:54px; border:1px solid #dee8ed; background:#fff; border-radius:10px; }
.placeholder-cells-v2 i.filled { background:#e4f7f5; border-color:#bde6e2; }
.home-placeholder-panel-v2 > small { display:block; text-align:center; color:#8b9bab; font-size:.68rem; margin-top:12px; }
.industry-grid-v2 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.industry-card-v2 { min-height:84px; display:flex; align-items:center; gap:13px; padding:18px 20px; border:1px solid #e0e9ef; border-radius:16px; background:#fff; color:#294a6c; font-size:.88rem; font-weight:780; }
.industry-card-v2 .rg-png-icon { width:34px; height:34px; }
.home-pricing-highlight-v2 { background:#052a5d; color:#fff; }
.home-pricing-inner-v2 { display:grid; grid-template-columns:1fr 420px; gap:70px; align-items:center; padding-top:80px; padding-bottom:80px; }
.home-pricing-copy-v2 .eyebrow { color:#5ee0d8; }
.home-pricing-copy-v2 h2 { margin:10px 0 14px; font-size:clamp(2.25rem,4vw,4rem); line-height:1.02; letter-spacing:-.055em; }
.home-pricing-copy-v2 p { color:#b9cada; line-height:1.7; max-width:650px; }
.home-pricing-link-v2 { color:#67ded8; }
.home-free-plan-v2 { background:#fff; color:#052a5d; border-radius:22px; padding:25px; box-shadow:0 26px 65px rgba(0,0,0,.18); display:grid; grid-template-columns:70px 1fr; gap:18px; }
.home-plan-icon-v2 { width:70px; height:70px; display:grid; place-items:center; border-radius:18px; background:#ecf9f8; }
.home-free-plan-v2 > div:nth-child(2) span { display:block; font-size:.68rem; letter-spacing:.12em; font-weight:900; color:#0d939b; }
.home-free-plan-v2 > div:nth-child(2) strong { font-size:2.7rem; line-height:1; letter-spacing:-.06em; }
.home-free-plan-v2 > div:nth-child(2) small { color:#71859a; margin-left:5px; }
.home-free-plan-v2 ul { grid-column:1/-1; margin:4px 0 4px; padding:0; list-style:none; display:grid; gap:9px; }
.home-free-plan-v2 li { position:relative; padding-left:23px; color:#516c85; font-size:.82rem; }
.home-free-plan-v2 li::before { content:"✓"; position:absolute; left:0; color:#17a79f; font-weight:900; }
.home-free-plan-v2 .button { grid-column:1/-1; }
.home-faq-v2 { max-width:860px; margin-inline:auto; display:grid; gap:10px; }
.home-faq-v2 details { border:1px solid #e0e9ef; border-radius:15px; background:#fff; padding:0 19px; }
.home-faq-v2 summary { cursor:pointer; list-style:none; padding:18px 28px 18px 0; font-size:.9rem; font-weight:800; position:relative; }
.home-faq-v2 summary::-webkit-details-marker { display:none; }
.home-faq-v2 summary::after { content:"+"; position:absolute; right:2px; top:50%; transform:translateY(-50%); color:#0d939b; font-size:1.25rem; }
.home-faq-v2 details[open] summary::after { content:"–"; }
.home-faq-v2 p { margin:0 0 18px; color:#6c8096; line-height:1.65; font-size:.86rem; }
.home-final-cta-v2 { margin-top:30px; margin-bottom:90px; padding:42px 46px; display:grid; grid-template-columns:1fr auto; align-items:center; gap:30px; border-radius:26px; background:linear-gradient(135deg,#eef9f8 0%,#eef4fb 100%); border:1px solid #d7e8eb; overflow:hidden; position:relative; }
.home-final-cta-v2 > div { position:relative; padding-left:86px; }
.home-final-mark-v2 { position:absolute; left:0; top:3px; width:66px; height:66px; object-fit:contain; }
.home-final-cta-v2 h2 { margin:7px 0 8px; font-size:clamp(1.8rem,3vw,2.8rem); letter-spacing:-.045em; }
.home-final-cta-v2 p { margin:0; color:#698097; }
.home-footer-v2 { border-top:1px solid #e5edf2; background:#fbfdfe; }
.home-footer-inner-v2 { min-height:170px; display:grid; grid-template-columns:1fr auto; grid-template-rows:1fr auto; gap:20px; align-items:center; padding-top:34px; padding-bottom:26px; }
.home-footer-inner-v2 img { width:140px; height:60px; object-fit:contain; object-position:left center; }
.home-footer-inner-v2 p { margin:0; color:#71869a; font-size:.8rem; }
.home-footer-inner-v2 nav { display:flex; gap:24px; }
.home-footer-inner-v2 nav a { text-decoration:none; color:#4a6784; font-size:.78rem; font-weight:700; }
.home-footer-inner-v2 small { grid-column:1/-1; border-top:1px solid #edf2f5; padding-top:18px; color:#92a2b1; font-size:.7rem; }

@media (max-width:1180px) {
    .app-frame { grid-template-columns:232px minmax(0,1fr); }
    .content { padding-inline:24px; }
    .dashboard-quick-actions-v2 { grid-template-columns:repeat(2,1fr); }
    .home-hero-v2 { grid-template-columns:1fr; min-height:auto; padding-top:50px; }
    .home-hero-copy-v2 { max-width:820px; }
    .home-hero-product-v2 { max-width:860px; width:100%; margin-inline:auto; }
    .home-product-grid-v2 { grid-template-columns:1fr; }
    .home-placeholder-panel-v2 { max-width:800px; width:100%; }
}
@media (max-width:900px) {
    .marketing-nav-v2 { display:none; }
    .marketing-header-v2 { min-height:72px; }
    .marketing-logo-v2 img { width:142px; height:58px; }
    .home-hero-v2 { padding-top:34px; padding-bottom:65px; }
    .home-hero-copy-v2 h1 { font-size:clamp(3rem,11vw,5rem); }
    .home-proof-inner-v2 { grid-template-columns:repeat(2,1fr); }
    .home-proof-inner-v2 > div { border-bottom:1px solid #e5edf1; }
    .home-feature-grid-v2 { grid-template-columns:repeat(2,1fr); }
    .industry-grid-v2 { grid-template-columns:repeat(2,1fr); }
    .home-pricing-inner-v2 { grid-template-columns:1fr; }
    .home-free-plan-v2 { max-width:520px; }
    .metric-grid-v2 { grid-template-columns:1fr; }
    .metric-card-v2 { min-height:124px; }
    .content { padding:24px 16px 44px; }
}
@media (max-width:680px) {
    .container { width:min(100% - 28px,1180px); }
    .marketing-actions-v2 .marketing-login { display:none; }
    .marketing-actions-v2 .button { min-height:40px; padding:8px 12px; font-size:.8rem; }
    .home-hero-v2 { gap:30px; }
    .home-hero-copy-v2 h1 { font-size:clamp(2.7rem,14vw,4rem); }
    .home-hero-lead { font-size:1rem; }
    .home-hero-actions-v2 { display:grid; }
    .home-trust-row-v2 { display:grid; gap:9px; }
    .home-hero-product-v2 { padding-left:0; }
    .product-window-v2 { transform:none; border-radius:17px; }
    .product-shell-v2 { grid-template-columns:54px minmax(0,1fr); min-height:400px; }
    .product-sidebar-v2 { padding:12px 7px; }
    .product-sidebar-v2 > span { width:34px; height:34px; }
    .product-sidebar-v2 > span:nth-of-type(n+4) { display:none; }
    .product-main-v2 { padding:14px; }
    .product-summary-v2 div { padding:11px; }
    .mini-rota-head-v2,.mini-rota-row-v2 { grid-template-columns:1.15fr repeat(3,1fr); }
    .mini-rota-head-v2 span:nth-child(n+5), .mini-rota-row-v2 > *:nth-child(n+5) { display:none; }
    .hero-float-card { display:none; }
    .home-proof-inner-v2 { grid-template-columns:1fr; }
    .home-proof-inner-v2 > div { padding:17px 0; border-right:0; }
    .home-section-v2 { padding-top:72px; padding-bottom:72px; }
    .home-feature-grid-v2,.industry-grid-v2 { grid-template-columns:1fr; }
    .home-product-grid-v2 { padding-top:70px; padding-bottom:70px; gap:40px; }
    .placeholder-grid-v2 { grid-template-columns:60px 1fr; min-height:250px; }
    .placeholder-cells-v2 { padding:14px; gap:7px; }
    .placeholder-cells-v2 i { height:40px; }
    .home-pricing-inner-v2 { padding-top:65px; padding-bottom:65px; gap:38px; }
    .home-free-plan-v2 { grid-template-columns:60px 1fr; padding:20px; }
    .home-plan-icon-v2 { width:60px; height:60px; }
    .home-final-cta-v2 { grid-template-columns:1fr; padding:30px 24px; }
    .home-final-cta-v2 > div { padding-left:0; padding-top:76px; }
    .home-final-mark-v2 { top:0; }
    .home-footer-inner-v2 { grid-template-columns:1fr; grid-template-rows:auto; }
    .home-footer-inner-v2 nav { flex-wrap:wrap; gap:14px 20px; }
    .home-footer-inner-v2 small { grid-column:1; }
    .dashboard-quick-actions-v2 { grid-template-columns:1fr; }
    .metric-card-v2 { grid-template-columns:50px 1fr; padding:18px; }
    .metric-card-v2 .metric-icon-v2 { width:50px; height:50px; }
}

/* ========================================================================
   RotaGenerator UI 3 — serious, calm, trustworthy SaaS visual system
   ======================================================================== */
:root{
  --rg-navy-950:#06254f;
  --rg-navy-900:#082f62;
  --rg-navy-800:#0d427b;
  --rg-teal-700:#087f88;
  --rg-teal-600:#0e98a0;
  --rg-teal-500:#20b6b0;
  --rg-teal-100:#e7f7f5;
  --rg-blue-500:#7399cf;
  --rg-ink:#112a46;
  --rg-copy:#536b83;
  --rg-muted:#7a8fa4;
  --rg-line:#dce6ed;
  --rg-line-strong:#cad9e3;
  --rg-canvas:#f5f8fb;
  --rg-surface:#ffffff;
  --rg-surface-soft:#f9fbfd;
  --rg-radius:16px;
  --rg-radius-lg:20px;
  --rg-shadow-sm:0 1px 2px rgba(6,37,79,.03),0 8px 22px rgba(6,37,79,.045);
  --rg-shadow-md:0 2px 4px rgba(6,37,79,.035),0 18px 44px rgba(6,37,79,.075);
  --navy:var(--rg-navy-950);
  --navy-2:var(--rg-navy-800);
  --teal:var(--rg-teal-500);
  --teal-2:var(--rg-teal-700);
  --brand:var(--rg-navy-950);
  --brand-strong:var(--rg-navy-800);
  --brand-soft:var(--rg-teal-100);
  --bg:var(--rg-canvas);
  --surface:var(--rg-surface);
  --surface-2:#f2f6f9;
  --text:var(--rg-ink);
  --text-2:#294764;
  --muted:var(--rg-copy);
  --line:var(--rg-line);
  --line-strong:var(--rg-line-strong);
  --radius:var(--rg-radius);
  --shadow:var(--rg-shadow-md);
}
html{background:var(--rg-canvas);scroll-behavior:smooth}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--rg-ink);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body::selection{background:#c9efeb;color:var(--rg-navy-950)}

/* Core controls */
.button{min-height:44px;border-radius:11px;padding:10px 16px;font-size:.875rem;font-weight:760;letter-spacing:-.008em;box-shadow:none}
.button-primary{background:var(--rg-navy-950);border-color:var(--rg-navy-950);box-shadow:0 8px 18px rgba(6,37,79,.12)}
.button-primary:hover{background:#0a3973;border-color:#0a3973;box-shadow:0 10px 24px rgba(6,37,79,.16)}
.button-secondary,.button-quiet{background:#fff;border-color:var(--rg-line-strong);color:var(--rg-navy-950)}
.button-secondary:hover,.button-quiet:hover{background:#f8fbfd;border-color:#adc3d1}
.text-link{color:var(--rg-teal-700);font-weight:760}
.eyebrow,.step-label{color:var(--rg-teal-700);font-size:.69rem;letter-spacing:.115em;font-weight:900;text-transform:uppercase}
.field{gap:8px;color:#314d69;font-size:.86rem;font-weight:750}
.field input,.field select,.field textarea,.search-field input,.filter-bar select,.copy-line input{min-height:46px;border-color:#cfdde6;border-radius:11px;padding:10px 13px;color:var(--rg-ink);background:#fff;box-shadow:inset 0 1px 0 rgba(6,37,79,.018)}
.field input:hover,.field select:hover,.field textarea:hover{border-color:#b6cbd7}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#6fc7c7;box-shadow:0 0 0 3px rgba(32,182,176,.12);outline:0}

/* App shell */
.app-body{background:var(--rg-canvas)}
.app-frame{grid-template-columns:270px minmax(0,1fr)}
.sidebar{padding:20px 16px 16px;background:#fff;border-right:1px solid #e0e9ef;box-shadow:4px 0 24px rgba(6,37,79,.018);z-index:25}
.sidebar-brand{padding:0 10px 20px;margin-bottom:5px;border-bottom:1px solid #edf2f5}
.sidebar-brand img{width:176px;height:78px;object-fit:contain;object-position:left center}
.nav{gap:4px;padding-top:13px}
.nav-section-label{display:block;padding:11px 12px 5px;color:#8b9cad;font-size:.62rem;line-height:1;font-weight:900;letter-spacing:.125em;text-transform:uppercase}
.nav-section-spaced{margin-top:7px}
.nav-link{min-height:46px;padding:9px 11px;border-radius:11px;gap:11px;color:#37536f;font-size:.885rem;font-weight:720;transition:background .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease}
.nav-link:hover:not(.disabled){background:#f4f8fa;color:#173b60;transform:translateX(1px)}
.nav-link.active{background:#eaf8f7;color:var(--rg-navy-950);box-shadow:inset 3px 0 0 var(--rg-teal-500),0 1px 0 rgba(6,37,79,.025)}
.nav-icon{width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center}
.nav-icon .rg-png-icon{width:23px!important;height:23px!important;object-fit:contain;filter:none}
.nav-link.active .nav-icon{background:rgba(255,255,255,.48);border-radius:8px}
.sidebar-footer{padding-top:13px;border-top:1px solid #e8eef2}

.app-main{background:var(--rg-canvas)}
.topbar{min-height:82px;padding:0 34px;background:rgba(255,255,255,.97);border-bottom:1px solid #e0e8ee;box-shadow:0 1px 0 rgba(6,37,79,.018);backdrop-filter:blur(14px)}
.org-switcher{display:flex;align-items:center;gap:11px}
.workspace-icon{width:36px;height:36px;border-radius:10px;background:#edf8f7;border:1px solid #d7ecea;display:grid;place-items:center}
.workspace-icon .rg-png-icon{width:22px!important;height:22px!important}
.org-switcher-copy{display:grid;gap:1px}
.org-switcher-copy strong{font-size:.93rem;color:var(--rg-navy-950)}
.user-menu{padding-left:8px;gap:11px}
.avatar{width:40px;height:40px;border:1px solid #cfe6e4;box-shadow:0 2px 8px rgba(6,37,79,.05)}
.user-copy strong{font-size:.86rem;color:#153b65}.user-copy span{font-size:.71rem;color:#788da1}
.notification-bell{width:42px;height:42px;border:1px solid #d7e3ea;border-radius:11px;background:#fff;display:grid;place-items:center;position:relative;text-decoration:none}
.notification-bell .rg-png-icon{width:21px!important;height:21px!important}
.notification-bell:hover{background:#f7fbfc;border-color:#bcd6de}
.notification-bell strong{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;display:grid;place-items:center;background:#d94a4a;color:#fff;font-size:.58rem;border:2px solid #fff}
.content{width:min(1540px,100%);margin:0 auto;padding:36px 38px 64px}

/* Reusable page hierarchy */
.page-heading{align-items:center;margin:5px 0 28px;gap:24px}
.page-heading h1{font-size:clamp(2rem,3.2vw,3rem);line-height:1.04;letter-spacing:-.045em;color:var(--rg-navy-950);margin:6px 0 7px}
.page-heading p{max-width:780px;color:#667e95;line-height:1.6;font-size:.94rem}
.heading-actions,.page-heading-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.panel{border:1px solid #dce6ed;border-radius:18px;padding:25px;background:#fff;box-shadow:var(--rg-shadow-sm)}
.panel h2{color:var(--rg-navy-950);font-size:1.32rem;letter-spacing:-.025em}
.panel>p{color:#667e95}
.status-chip{border-radius:999px;font-size:.72rem;padding:7px 10px}
.empty-state{border-radius:15px}

/* Dashboard */
.metric-grid-v2{gap:16px}
.metric-card-v2{min-height:150px;padding:23px 24px;border:1px solid #dde7ed;border-radius:18px;background:#fff;box-shadow:var(--rg-shadow-sm);display:flex;align-items:center;gap:19px}
.metric-card-v2:hover{border-color:#c9dbe4;box-shadow:var(--rg-shadow-md)}
.metric-icon-v2{width:58px;height:58px;flex:0 0 58px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(145deg,#edf9f7,#edf4fb);border:1px solid #d7ece9}
.metric-icon-v2 .rg-png-icon{width:38px!important;height:38px!important}
.metric-label{font-size:.72rem;color:#6f8499;font-weight:780}
.metric-card-v2 strong{font-size:2rem;color:var(--rg-navy-950);letter-spacing:-.04em}
.metric-card-v2 a{color:var(--rg-teal-700);font-size:.78rem;font-weight:760;text-decoration:none}
.dashboard-quick-actions-v2{gap:13px;margin:16px 0 18px}
.dashboard-quick-actions-v2>a{min-height:98px;padding:17px 18px;border-radius:16px;border:1px solid #dde7ed;background:#fff;box-shadow:0 5px 18px rgba(6,37,79,.035);transition:.18s ease}
.dashboard-quick-actions-v2>a:hover{transform:translateY(-2px);border-color:#bdd9de;box-shadow:0 14px 32px rgba(6,37,79,.07)}
.dashboard-quick-actions-v2>a>span{width:46px;height:46px;border-radius:12px;background:#edf8f7;display:grid;place-items:center}
.attention-panel{margin-top:16px}
.dashboard-grid-wide{gap:18px}

/* Rota builder — keep it dense enough for real work, but visually calm */
.rota-page-heading{margin-bottom:22px}
.rota-heading-actions{gap:10px}
.rota-toolbar{padding:13px 15px;border-radius:15px;box-shadow:0 3px 16px rgba(6,37,79,.035);margin-bottom:14px}
.rota-period-nav,.rota-filters,.view-tabs{gap:8px}
.view-tabs{padding:4px;background:#eef4f7;border:1px solid #dce7ed;border-radius:11px}
.view-tabs a,.view-tabs button{min-height:34px;border:0;border-radius:8px;padding:7px 13px;background:transparent;color:#637a91;font-weight:740;font-size:.77rem}
.view-tabs .active{background:#fff;color:var(--rg-navy-950);box-shadow:0 2px 8px rgba(6,37,79,.07)}
.week-state-strip{margin:0 0 11px}
.rota-grid-shell{border-radius:18px;border:1px solid #d9e4eb;box-shadow:0 10px 30px rgba(6,37,79,.045);background:#fff}
.rota-grid-scroll{background:#fff}
.rota-grid{grid-template-columns:236px repeat(var(--days),minmax(132px,1fr))}
.rota-corner,.rota-day-head{background:#f7fafc;border-color:#e2eaf0}
.rota-day-head{min-height:72px;padding:10px;text-align:center;color:#576f87}
.rota-day-head.today{background:#eaf8f7;color:var(--rg-navy-950)}
.rota-person{background:#fff;border-color:#e4ebf0;padding:13px 14px}
.rota-cell{min-height:124px;border-color:#e7edf2;background:#fff;transition:background .14s ease}
.rota-cell:hover{background:#fbfdfd}
.rota-cell.today{background:#f3fbfa}
.add-shift-cell{opacity:.42;border-radius:8px}.rota-cell:hover .add-shift-cell{opacity:1}
.shift-card{margin:6px;padding:9px 10px;border-radius:10px;border-width:1px;box-shadow:0 2px 7px rgba(6,37,79,.045);font-size:.76rem;line-height:1.35}
.shift-card strong{font-size:.79rem}.shift-card small{font-size:.66rem;color:#60788e}
.hours-chip{font-size:.64rem;padding:4px 6px;border-radius:999px;background:#edf4f8}
.shift-dialog{border-radius:20px;border:1px solid #d9e4ea;box-shadow:0 30px 90px rgba(6,37,79,.2)}
.dialog-head{padding-bottom:15px;border-bottom:1px solid #e9eff3}

/* Share/export and data pages */
.share-grid-polished{gap:18px}
.share-grid-polished .feature-panel{border-radius:18px;box-shadow:var(--rg-shadow-sm)}
.feature-panel-icon,.page-heading-icon{background:#edf8f7;border-color:#d4ece9}
.export-action{border-radius:12px;background:#fff;border-color:#cddce5}
.table-shell,.data-table-shell{border-radius:16px;border:1px solid #dce6ed;background:#fff;overflow:hidden;box-shadow:var(--rg-shadow-sm)}

/* Marketing homepage: premium but not flashy */
.marketing-body-v2{background:#fff;color:var(--rg-ink)}
.marketing-header-v2{min-height:86px;border-bottom:1px solid transparent}
.marketing-logo-v2 img{width:164px;height:66px}
.marketing-nav-v2{gap:30px}.marketing-nav-v2 a{font-size:.84rem;color:#526b84;font-weight:720}
.marketing-actions-v2 .button{min-height:43px;padding-inline:17px}
.home-hero-v2{min-height:690px;grid-template-columns:minmax(0,.92fr) minmax(530px,1.08fr);gap:58px;padding-top:54px;padding-bottom:82px}
.home-kicker{background:#edf9f7;border-color:#d5ece9;color:#287c84;padding:8px 12px;font-size:.71rem}
.home-hero-copy-v2 h1{font-size:clamp(3.1rem,5.4vw,5.7rem);line-height:.96;letter-spacing:-.066em;color:var(--rg-navy-950);max-width:760px}
.home-hero-copy-v2 h1 span{color:var(--rg-teal-700)}
.home-hero-lead{font-size:1.08rem;line-height:1.7;color:#60778e;max-width:690px}
.home-trust-row-v2{color:#627a91;font-size:.75rem;gap:16px 22px}
.home-trust-row-v2 .rg-png-icon{width:18px!important;height:18px!important}
.home-hero-product-v2{padding-left:18px}
.product-window-v2{border-color:#d6e3ea;border-radius:20px;box-shadow:0 28px 72px rgba(6,37,79,.15);transform:perspective(1500px) rotateY(-2deg)}
.product-window-top-v2{height:50px}.product-shell-v2{min-height:475px}.product-sidebar-v2{background:var(--rg-navy-950)}
.product-sidebar-v2 .rg-png-icon{width:25px!important;height:25px!important}
.product-sidebar-v2>img{width:36px;height:36px}
.product-main-v2{background:#f8fbfd;padding:24px}
.product-summary-v2 div{border-color:#e0e8ee;box-shadow:0 3px 12px rgba(6,37,79,.025)}
.mini-rota-v2{border-color:#dce6ed;box-shadow:0 4px 14px rgba(6,37,79,.025)}
.hero-float-card{border-color:#d8e5eb;box-shadow:0 16px 38px rgba(6,37,79,.11)}
.home-proof-strip-v2{background:#fafcfd;border-color:#e6edf2}
.home-proof-inner-v2>div{padding:22px 25px}.home-proof-inner-v2 strong{color:#183b5e}.home-proof-inner-v2 span{color:#768ba0}
.home-section-v2{padding-top:96px;padding-bottom:96px}
.home-section-heading-v2 h2{color:var(--rg-navy-950)}
.home-feature-grid-v2{gap:18px}.home-feature-card-v2{min-height:245px;border-color:#dfe8ed;border-radius:18px;box-shadow:0 4px 16px rgba(6,37,79,.025)}
.home-feature-card-v2:hover{border-color:#bcdedd;box-shadow:0 15px 36px rgba(6,37,79,.065)}
.feature-icon-v2{width:58px;height:58px;border-radius:15px}.feature-icon-v2 .rg-png-icon{width:34px!important;height:34px!important}
.home-product-section-v2{background:linear-gradient(180deg,#f7fbfc,#f0f7f8)}
.home-placeholder-panel-v2{border-color:#d8e4ea;box-shadow:0 22px 50px rgba(6,37,79,.1)}
.home-pricing-highlight-v2{background:#f7fbfc}.home-free-plan-v2{border-color:#cfe5e4;box-shadow:0 18px 42px rgba(6,37,79,.07)}
.home-final-cta-v2{border-color:#d4e6e7;background:linear-gradient(135deg,#eef9f7,#eff5fb);box-shadow:0 12px 32px rgba(6,37,79,.045)}

/* Make image assets deterministic and tidy */
.rg-png-icon{display:block;object-fit:contain;object-position:center;max-width:none}
img.rg-png-icon{border:0;background:transparent}

@media(max-width:1200px){
 .app-frame{grid-template-columns:246px minmax(0,1fr)}
 .content{padding:30px 28px 54px}
 .sidebar{padding-inline:13px}.sidebar-brand img{width:160px}
 .home-hero-v2{grid-template-columns:1fr;min-height:auto}.home-hero-product-v2{max-width:900px;width:100%;margin:0 auto}
}
@media(max-width:900px){
 .app-frame{display:block}.sidebar{display:none}.topbar{padding:0 18px;min-height:72px}.content{padding:25px 18px 46px}.mobile-menu{display:block}
 .user-copy{display:none}.button-quiet{padding-inline:9px}
 .page-heading{align-items:flex-start;flex-direction:column}.heading-actions,.page-heading-actions{justify-content:flex-start;width:100%}
 .rota-grid{grid-template-columns:190px repeat(var(--days),124px)}
}
@media(max-width:640px){
 .content{padding:20px 14px 40px}.topbar{padding:0 12px}.workspace-icon{display:none}.org-switcher-copy .eyebrow{display:none}
 .metric-grid-v2,.dashboard-quick-actions-v2{grid-template-columns:1fr}.panel{padding:19px}.page-heading h1{font-size:2rem}
 .marketing-header-v2{min-height:72px}.marketing-logo-v2 img{width:136px}.home-hero-v2{padding-top:32px}.home-hero-copy-v2 h1{font-size:clamp(2.65rem,13vw,3.8rem)}
 .home-hero-product-v2{padding-left:0}.product-window-v2{transform:none}.product-shell-v2{grid-template-columns:52px 1fr;min-height:390px}.product-main-v2{padding:13px}.product-summary-v2{gap:7px}.product-summary-v2 div{padding:10px}.mini-rota-row-v2 strong{font-size:.58rem}
}

/* =========================================================
   UI4: Rota Generator public homepage + typography refinement
   ========================================================= */
:root {
    --rg-font: "Segoe UI Variable Text", "Segoe UI", Aptos, Roboto, "Helvetica Neue", Arial, sans-serif;
    --rg-font-display: "Segoe UI Variable Display", "Segoe UI", Aptos, Roboto, "Helvetica Neue", Arial, sans-serif;
    --rg-navy-950: #06254f;
    --rg-navy-850: #0a3569;
    --rg-teal-700: #0b8e96;
    --rg-teal-500: #20b6b0;
    --rg-blue-500: #7399cf;
    --rg-canvas: #f6f9fb;
    --rg-soft: #eef8f7;
    --rg-border: #dbe6ec;
    --rg-copy: #526b83;
}
html { scroll-behavior: smooth; }
body, button, input, select, textarea { font-family: var(--rg-font); }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, strong { font-family: var(--rg-font-display); }
.eyebrow { font-weight: 700; letter-spacing: .095em; }

/* App typography refinement */
.page-heading h1, .dashboard-heading h1 { font-weight: 700; letter-spacing: -.035em; }
.nav-link { font-weight: 620; }
.nav-section-label { font-weight: 700; letter-spacing: .08em; }
.button { font-weight: 650; }
.metric-card strong { font-weight: 700; }
.home-faq-v2 summary, .home-faq-v4 summary { font-weight: 650; }

/* Marketing header */
.marketing-body-v4 { background: #fff; color: var(--rg-navy-950); overflow-x: hidden; }
.marketing-header-v4 { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.marketing-logo-v4 img { width: 158px; height: 62px; object-fit: contain; object-position: left center; }
.marketing-nav-v4 { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.marketing-nav-v4 a { color: #48647f; text-decoration: none; font-size: .9rem; font-weight: 600; }
.marketing-nav-v4 a:hover { color: var(--rg-teal-700); }
.marketing-actions-v4 { display: flex; align-items: center; gap: 14px; }
.marketing-actions-v4 .button { min-height: 43px; padding-inline: 17px; }
.marketing-login { color: #365675; }

/* Homepage common */
.home-section-v4 { padding-top: 88px; padding-bottom: 88px; }
.home-section-heading-v4 { max-width: 790px; margin-bottom: 36px; }
.home-section-heading-centered-v4 { margin-left: auto; margin-right: auto; text-align: center; }
.home-section-heading-v4 h2,
.home-split-copy-v4 h2,
.home-pricing-copy-v4 h2,
.home-final-cta-v4 h2 {
    margin: 9px 0 14px;
    color: var(--rg-navy-950);
    font-size: clamp(2rem, 3vw, 3.15rem);
    line-height: 1.1;
    letter-spacing: -.038em;
    font-weight: 700;
}
.home-section-heading-v4 p,
.home-split-copy-v4 p,
.home-pricing-copy-v4 p,
.home-final-cta-v4 p {
    color: var(--rg-copy);
    font-size: 1rem;
    line-height: 1.75;
}

/* Hero */
.home-hero-v4 { display: grid; grid-template-columns: minmax(0, .92fr) minmax(500px, 1.08fr); gap: 58px; align-items: center; padding-top: 62px; padding-bottom: 88px; min-height: 660px; }
.home-hero-copy-v4 { max-width: 690px; }
.home-overline-v4 { margin: 0 0 13px; color: var(--rg-teal-700); font-size: .79rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.home-hero-copy-v4 h1 { margin: 0 0 20px; max-width: 680px; color: var(--rg-navy-950); font-size: clamp(2.9rem, 4.3vw, 4.65rem); line-height: 1.04; letter-spacing: -.052em; font-weight: 700; }
.home-hero-copy-v4 h1 span { color: var(--rg-teal-700); }
.home-hero-lead-v4 { margin: 0; color: #58718a; font-size: 1.08rem; line-height: 1.72; max-width: 670px; }
.home-free-note-v4 { margin: 16px 0 0; color: #49637c; font-size: .93rem; line-height: 1.55; }
.home-free-note-v4 strong { color: var(--rg-navy-950); font-weight: 700; }
.home-hero-actions-v4 { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.home-hero-actions-v4 .button { min-height: 52px; padding-inline: 21px; border-radius: 12px; }
.home-trust-row-v4 { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; color: #6a8095; font-size: .8rem; }
.home-trust-row-v4 span { position: relative; padding-left: 16px; }
.home-trust-row-v4 span::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--rg-teal-500); }

/* Replaceable images */
.home-image-card-v4 { margin: 0; border: 1px solid var(--rg-border); border-radius: 22px; padding: 13px; background: #fff; box-shadow: 0 22px 58px rgba(6, 37, 79, .09); }
.home-image-card-v4 img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--rg-canvas); }
.home-image-card-v4 figcaption { padding: 10px 4px 1px; color: #8697a8; font-size: .72rem; line-height: 1.45; text-align: center; }
.home-hero-image-v4 { transform: rotate(.35deg); }

/* Proof strip */
.home-proof-strip-v4 { background: #f8fbfc; border-top: 1px solid #e6edf1; border-bottom: 1px solid #e6edf1; }
.home-proof-inner-v4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-proof-inner-v4 > div { padding: 22px 24px; border-right: 1px solid #e4ecef; }
.home-proof-inner-v4 > div:first-child { padding-left: 0; }
.home-proof-inner-v4 > div:last-child { border-right: 0; }
.home-proof-inner-v4 strong { display: block; color: #173b61; font-size: .88rem; font-weight: 700; }
.home-proof-inner-v4 span { display: block; margin-top: 5px; color: #71869a; font-size: .76rem; line-height: 1.5; }

/* Intro */
.home-intro-v4 { padding-bottom: 72px; }
.home-intro-grid-v4 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.home-intro-grid-v4 article { padding: 24px; border: 1px solid var(--rg-border); border-radius: 18px; background: #fff; }
.home-intro-grid-v4 h3 { margin: 0 0 9px; color: var(--rg-navy-950); font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.home-intro-grid-v4 p { margin: 0; color: #637a91; font-size: .89rem; line-height: 1.7; }

/* Feature cards */
.home-feature-grid-v4 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; }
.home-feature-card-v4 { padding: 23px; min-height: 235px; border: 1px solid var(--rg-border); border-radius: 18px; background: #fff; box-shadow: 0 7px 22px rgba(6,37,79,.028); }
.feature-icon-v4 { width: 58px; height: 58px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 16px; background: #eef8f7; border: 1px solid #d8ecea; }
.feature-icon-v4 .rg-png-icon { width: 40px !important; height: 40px !important; }
.home-feature-card-v4 h3 { margin: 0 0 9px; color: var(--rg-navy-950); font-size: 1.08rem; font-weight: 700; letter-spacing: -.02em; }
.home-feature-card-v4 p { margin: 0; color: #647b91; font-size: .88rem; line-height: 1.67; }

/* Split product sections */
.home-split-section-v4 { background: #f5fafb; border-top: 1px solid #e5edef; border-bottom: 1px solid #e5edef; }
.home-split-section-soft-v4 { background: #f8fafc; }
.home-split-grid-v4 { display: grid; grid-template-columns: minmax(0, .92fr) minmax(500px, 1.08fr); gap: 64px; align-items: center; padding-top: 86px; padding-bottom: 86px; }
.home-split-grid-reverse-v4 { grid-template-columns: minmax(500px, 1.08fr) minmax(0, .92fr); }
.home-split-copy-v4 { max-width: 650px; }
.home-split-copy-v4 p { margin: 0 0 15px; }
.home-detail-grid-v4 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 25px; }
.home-detail-grid-v4 > div { padding: 15px 16px; border: 1px solid #dfe9ed; border-radius: 13px; background: rgba(255,255,255,.72); }
.home-detail-grid-v4 strong { display: block; color: var(--rg-navy-950); font-size: .88rem; font-weight: 700; }
.home-detail-grid-v4 span { display: block; margin-top: 4px; color: #6b8297; font-size: .76rem; line-height: 1.5; }

/* How it works */
.home-steps-v4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; }
.home-steps-v4 article { position: relative; padding: 23px; border: 1px solid var(--rg-border); border-radius: 17px; background: #fff; }
.home-steps-v4 article > span { display: block; margin-bottom: 30px; color: var(--rg-teal-700); font-size: .74rem; font-weight: 700; letter-spacing: .08em; }
.home-steps-v4 h3 { margin: 0 0 8px; color: var(--rg-navy-950); font-size: 1.02rem; font-weight: 700; }
.home-steps-v4 p { margin: 0; color: #657d93; font-size: .85rem; line-height: 1.65; }
.home-after-steps-v4 { margin-top: 30px; }

/* Industries */
.home-use-cases-v4 { background: #fbfcfd; }
.industry-grid-v4 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.industry-grid-v4 article { padding: 21px; border: 1px solid var(--rg-border); border-radius: 16px; background: #fff; }
.industry-grid-v4 .rg-png-icon { margin-bottom: 15px; }
.industry-grid-v4 h3 { margin: 0 0 7px; color: var(--rg-navy-950); font-size: 1rem; font-weight: 700; }
.industry-grid-v4 p { margin: 0; color: #667d93; font-size: .84rem; line-height: 1.64; }

/* Helpful content */
.home-guidance-v4 { padding-top: 80px; }
.home-guidance-grid-v4 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.home-guidance-grid-v4 article { padding: 23px; border-left: 3px solid #c5e8e5; background: #f9fcfc; border-radius: 0 14px 14px 0; }
.home-guidance-grid-v4 h3 { margin: 0 0 8px; color: var(--rg-navy-950); font-size: 1rem; font-weight: 700; }
.home-guidance-grid-v4 p { margin: 0; color: #637a91; font-size: .86rem; line-height: 1.67; }

/* Pricing with reliable contrast */
.home-pricing-highlight-v4 { background: #eef6f7; border-top: 1px solid #dce9eb; border-bottom: 1px solid #dce9eb; color: var(--rg-navy-950); }
.home-pricing-inner-v4 { display: grid; grid-template-columns: minmax(0,1fr) 410px; gap: 64px; align-items: center; padding-top: 76px; padding-bottom: 76px; }
.home-pricing-copy-v4 .eyebrow { color: var(--rg-teal-700); }
.home-pricing-copy-v4 h2 { color: var(--rg-navy-950); }
.home-pricing-copy-v4 p { color: #526b83; margin: 0 0 13px; }
.home-pricing-link-v4 { display: inline-flex; margin-top: 10px; color: var(--rg-teal-700); }
.home-free-plan-v4 { padding: 24px; border: 1px solid #cfe2e5; border-radius: 20px; background: #fff; box-shadow: 0 18px 42px rgba(6,37,79,.07); }
.home-plan-title-v4 { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid #e5edef; }
.home-plan-title-v4 > div { display: grid; grid-template-columns: auto auto; align-items: end; gap: 3px 7px; }
.home-plan-title-v4 span { grid-column: 1/-1; color: var(--rg-teal-700); font-size: .67rem; font-weight: 700; letter-spacing: .1em; }
.home-plan-title-v4 strong { color: var(--rg-navy-950); font-size: 2.5rem; line-height: .95; font-weight: 700; letter-spacing: -.05em; }
.home-plan-title-v4 small { color: #73879a; font-size: .73rem; padding-bottom: 4px; }
.home-plan-feature-v4 { padding: 14px 0; border-bottom: 1px solid #edf2f4; }
.home-plan-feature-v4 strong { display: block; color: var(--rg-navy-950); font-size: .87rem; font-weight: 700; }
.home-plan-feature-v4 span { display: block; margin-top: 3px; color: #687f94; font-size: .76rem; line-height: 1.5; }
.home-free-plan-v4 .button { margin-top: 18px; }

/* FAQ */
.home-faq-v4 { max-width: 900px; margin: 0 auto; display: grid; gap: 10px; }
.home-faq-v4 details { border: 1px solid var(--rg-border); border-radius: 14px; background: #fff; padding: 0 18px; }
.home-faq-v4 details[open] { border-color: #cfe4e4; background: #fcfefe; }
.home-faq-v4 summary { cursor: pointer; list-style: none; position: relative; padding: 17px 34px 17px 0; color: #173a60; font-size: .93rem; line-height: 1.45; font-weight: 650; }
.home-faq-v4 summary::-webkit-details-marker { display: none; }
.home-faq-v4 summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); color: var(--rg-teal-700); font-size: 1.15rem; font-weight: 500; }
.home-faq-v4 details[open] summary::after { content: "−"; }
.home-faq-v4 p { margin: 0 0 18px; max-width: 800px; color: #637a91; font-size: .88rem; line-height: 1.7; }

/* CTA and footer */
.home-final-cta-v4 { margin-top: 8px; margin-bottom: 84px; padding: 34px 38px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; border: 1px solid #d4e6e7; border-radius: 22px; background: linear-gradient(135deg,#eef8f7,#f1f5fb); }
.home-final-copy-v4 { display: flex; align-items: center; gap: 20px; }
.home-final-mark-v4 { width: 64px; height: 64px; object-fit: contain; flex: 0 0 auto; }
.home-final-cta-v4 h2 { margin: 5px 0 7px; font-size: clamp(1.75rem, 2.6vw, 2.55rem); }
.home-final-cta-v4 p { margin: 0; font-size: .93rem; }
.home-footer-v4 { border-top: 1px solid #e4ecef; background: #fbfcfd; }
.home-footer-inner-v4 { min-height: 160px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; gap: 20px; align-items: center; padding-top: 30px; padding-bottom: 24px; }
.home-footer-brand-v4 img { width: 145px; height: 58px; object-fit: contain; object-position: left center; }
.home-footer-brand-v4 p { margin: 2px 0 0; color: #71869a; font-size: .78rem; }
.home-footer-inner-v4 nav { display: flex; flex-wrap: wrap; gap: 15px 22px; }
.home-footer-inner-v4 nav a { color: #49657f; text-decoration: none; font-size: .78rem; font-weight: 600; }
.home-footer-inner-v4 small { grid-column: 1/-1; padding-top: 16px; border-top: 1px solid #edf2f4; color: #8797a7; font-size: .7rem; }

/* Prevent old homepage v2 rules from leaking into V4 */
.marketing-body-v4 .home-kicker,
.marketing-body-v4 .product-window-v2,
.marketing-body-v4 .hero-float-card { display: none; }

@media (max-width: 1080px) {
    .marketing-nav-v4 { display: none; }
    .home-hero-v4, .home-split-grid-v4, .home-split-grid-reverse-v4 { grid-template-columns: 1fr; gap: 38px; }
    .home-hero-v4 { min-height: auto; padding-top: 38px; }
    .home-hero-copy-v4 { max-width: 790px; }
    .home-hero-image-v4 { max-width: 860px; transform: none; }
    .home-proof-inner-v4 { grid-template-columns: 1fr 1fr; }
    .home-proof-inner-v4 > div:nth-child(2) { border-right: 0; }
    .home-proof-inner-v4 > div:nth-child(-n+2) { border-bottom: 1px solid #e4ecef; }
    .home-feature-grid-v4, .industry-grid-v4 { grid-template-columns: 1fr 1fr; }
    .home-steps-v4 { grid-template-columns: 1fr 1fr; }
    .home-pricing-inner-v4 { grid-template-columns: 1fr; }
    .home-free-plan-v4 { max-width: 560px; }
}

@media (max-width: 700px) {
    .container { width: min(100% - 28px, 1180px); }
    .marketing-header-v4 { min-height: 70px; gap: 12px; }
    .marketing-logo-v4 img { width: 132px; height: 52px; }
    .marketing-actions-v4 .marketing-login { display: none; }
    .marketing-actions-v4 .button { min-height: 39px; padding: 7px 11px; font-size: .78rem; }
    .home-hero-v4 { padding-top: 28px; padding-bottom: 58px; }
    .home-hero-copy-v4 h1 { font-size: clamp(2.55rem, 12vw, 3.35rem); line-height: 1.05; }
    .home-hero-lead-v4 { font-size: .98rem; }
    .home-hero-actions-v4 { display: grid; }
    .home-hero-actions-v4 .button { width: 100%; }
    .home-trust-row-v4 { display: grid; gap: 7px; }
    .home-image-card-v4 { padding: 8px; border-radius: 17px; }
    .home-proof-inner-v4 { grid-template-columns: 1fr; }
    .home-proof-inner-v4 > div { padding: 17px 0; border-right: 0; border-bottom: 1px solid #e4ecef; }
    .home-proof-inner-v4 > div:last-child { border-bottom: 0; }
    .home-section-v4 { padding-top: 66px; padding-bottom: 66px; }
    .home-section-heading-v4 h2, .home-split-copy-v4 h2, .home-pricing-copy-v4 h2 { font-size: clamp(1.85rem, 8vw, 2.45rem); }
    .home-intro-grid-v4, .home-feature-grid-v4, .industry-grid-v4, .home-guidance-grid-v4, .home-steps-v4, .home-detail-grid-v4 { grid-template-columns: 1fr; }
    .home-split-grid-v4, .home-split-grid-reverse-v4 { padding-top: 64px; padding-bottom: 64px; }
    .home-pricing-inner-v4 { padding-top: 62px; padding-bottom: 62px; gap: 34px; }
    .home-final-cta-v4 { grid-template-columns: 1fr; padding: 27px 23px; }
    .home-final-copy-v4 { align-items: flex-start; }
    .home-final-mark-v4 { width: 52px; height: 52px; }
    .home-footer-inner-v4 { grid-template-columns: 1fr; grid-template-rows: auto; }
    .home-footer-inner-v4 small { grid-column: 1; }
}

/* Rota Generator: custom industry artwork */
.industry-grid-v4 .industry-icon-v4 {
    display: block;
    width: 54px;
    height: 54px;
    object-fit: contain;
    object-position: left center;
    margin: 0 0 15px;
    background: transparent;
    border: 0;
    box-shadow: none;
}
@media (max-width: 640px) {
    .industry-grid-v4 .industry-icon-v4 { width: 48px; height: 48px; margin-bottom: 12px; }
}
/* Native hidden must beat component display declarations. */
[hidden] { display: none !important; }
