:root {
    color-scheme: light;
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-2: #eef2f6;
    --text: #17202a;
    --muted: #667085;
    --line: #d9e0e8;
    --primary: #176b87;
    --primary-dark: #0f4d64;
    --accent: #2f9e8f;
    --danger: #b42318;
    --success: #067647;
    --shadow: 0 14px 32px rgba(17, 24, 39, .07);
    --shadow-soft: 0 8px 18px rgba(17, 24, 39, .05);
}

.rep-color-0 {
    --rep-color: #176b87;
    --rep-bg: #eef8fb;
    --rep-border: #b9e6fe;
}

.rep-color-1 {
    --rep-color: #2f9e8f;
    --rep-bg: #edfdf8;
    --rep-border: #a8e8da;
}

.rep-color-2 {
    --rep-color: #7a5af8;
    --rep-bg: #f4f1ff;
    --rep-border: #d9d0ff;
}

.rep-color-3 {
    --rep-color: #ca8504;
    --rep-bg: #fff8eb;
    --rep-border: #fedf89;
}

.rep-color-4 {
    --rep-color: #c11574;
    --rep-bg: #fff1f8;
    --rep-border: #fcc4e4;
}

.rep-color-5 {
    --rep-color: #067647;
    --rep-bg: #edfdf3;
    --rep-border: #abefc6;
}

.rep-color-6 {
    --rep-color: #b42318;
    --rep-bg: #fff3f0;
    --rep-border: #fecdca;
}

.rep-color-7 {
    --rep-color: #175cd3;
    --rep-bg: #eff6ff;
    --rep-border: #b2ddff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.mobile-menu-open {
    overflow: hidden;
}

:focus-visible {
    outline: 3px solid rgba(47, 158, 143, .34);
    outline-offset: 2px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.app-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 272px 1fr;
    transition: grid-template-columns .2s ease;
}

body.sidebar-collapsed .app-shell {
    grid-template-columns: 86px 1fr;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    border-right: 1px solid var(--line);
    background: #ffffff;
    color: var(--text);
    padding: 24px;
}

.sidebar-footer {
    flex: 0 0 auto;
    margin-top: 28px;
}

.install-link {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--text);
    cursor: pointer;
    padding: 12px;
    text-align: left;
}

.install-link strong,
.install-link small {
    display: block;
}

.install-link small {
    margin-top: 4px;
    color: var(--muted);
}

.install-link:hover {
    background: var(--surface-2);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 9px;
}

.sidebar-toggle {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--text);
    cursor: pointer;
    font-weight: 900;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: var(--text);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
    background: rgba(16, 24, 32, .5);
}

.mobile-overlay.open {
    display: block;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 12px;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, .12);
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.client-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 12px;
}

.client-brand img,
.client-brand > strong {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 8px;
    background: white;
    object-fit: contain;
}

.client-brand > strong {
    display: grid;
    place-items: center;
    color: var(--primary-dark);
    font-size: 20px;
}

.client-brand small,
.client-brand b {
    display: block;
}

.client-brand small {
    color: var(--muted);
    font-size: 12px;
}

.client-brand b {
    margin-top: 2px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.25;
}

.nav {
    display: grid;
    gap: 10px;
    align-content: start;
    flex: 1 1 auto;
    margin-top: 34px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
}

.menu-search {
    display: grid;
    gap: 7px;
    margin-bottom: 4px;
}

.menu-search span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.menu-search input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--text);
    padding: 10px 11px;
}

.menu-search input::placeholder {
    color: var(--muted);
}

.nav-group {
    display: grid;
    gap: 5px;
    border-top: 1px solid var(--line);
    padding-top: 9px;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #475467;
    cursor: pointer;
    padding: 11px 12px;
    font-weight: 600;
    text-align: left;
}

.nav-link.active,
.nav-link:hover {
    background: #eaf7f5;
    color: var(--primary-dark);
}

.nav-link.active::before {
    position: absolute;
    left: 0;
    width: 3px;
    height: 22px;
    border-radius: 999px;
    background: var(--accent);
    content: "";
}

.nav-link span {
    margin-left: 8px;
}

.nav-link em {
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    margin-left: auto;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    font-size: 12px;
    font-style: normal;
}

.nav-accordion-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 4px;
    align-items: center;
}

.nav-accordion-row .nav-link {
    min-width: 0;
}

.nav-accordion-title {
    font-family: inherit;
}

.nav-accordion-row [data-nav-accordion-toggle] {
    display: grid;
    width: 34px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--muted);
    cursor: pointer;
}

.nav-accordion-row [data-nav-accordion-toggle]::before {
    content: "›";
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    transition: transform .15s ease;
}

.nav-accordion.open .nav-accordion-row [data-nav-accordion-toggle]::before {
    transform: rotate(90deg);
}

.nav-sub {
    display: grid;
    gap: 2px;
    margin: -2px 0 4px 28px;
}

.nav-accordion:not(.open) .nav-sub {
    display: none;
}

.nav-sub a {
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 10px;
}

.nav-sub a.active,
.nav-sub a:hover {
    background: #f3faf8;
    color: var(--primary-dark);
}

body.sidebar-collapsed .sidebar {
    padding: 18px;
}

body.sidebar-collapsed .brand {
    justify-content: center;
}

body.sidebar-collapsed .brand > span:not(.brand-mark),
body.sidebar-collapsed .client-brand div,
body.sidebar-collapsed .menu-search,
body.sidebar-collapsed .nav-section,
body.sidebar-collapsed .nav-sub,
body.sidebar-collapsed .nav-accordion-row [data-nav-accordion-toggle],
body.sidebar-collapsed .nav-link span,
body.sidebar-collapsed .sidebar-footer {
    display: none;
}

body.sidebar-collapsed .client-brand {
    justify-content: center;
    padding: 8px;
}

body.sidebar-collapsed .nav-link {
    justify-content: center;
    min-height: 42px;
    padding: 10px;
}

body.sidebar-collapsed .nav-link::after {
    content: attr(data-short);
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    background: #f2f4f7;
    color: var(--primary-dark);
    font-weight: 900;
}

.nav-link.disabled,
.button.disabled {
    cursor: not-allowed;
    opacity: .55;
}

.nav-section {
    margin: 4px 12px 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.main {
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(16px);
    padding: 22px 32px;
}

.topbar h1,
.login-card h2,
.panel h2 {
    margin: 0;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.user-menu,
.user-chip {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-search input {
    width: 180px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 10px 12px;
}

.user-chip {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 8px 10px;
}

.user-chip span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--primary-dark);
    font-weight: 800;
}

.user-chip strong,
.user-chip small {
    display: block;
}

.user-chip small,
.muted,
.stat-card small,
.list-row small,
.summary-grid span,
.product-signature {
    color: var(--muted);
}

.content {
    padding: 32px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.quick-action {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow-soft);
    padding: 16px;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.quick-action:hover,
.stat-card:hover,
.panel:hover {
    border-color: #c7d4df;
    box-shadow: 0 18px 38px rgba(17, 24, 39, .09);
}

.quick-action strong,
.quick-action small {
    display: block;
}

.quick-action strong {
    margin-bottom: 5px;
}

.quick-action small {
    color: var(--muted);
}

.report-hub {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.report-tile {
    display: grid;
    align-content: start;
    min-height: 176px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow-soft);
    padding: 18px;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.report-tile:hover {
    border-color: #c7d4df;
    box-shadow: 0 18px 38px rgba(17, 24, 39, .09);
    transform: translateY(-1px);
}

.report-tile span {
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.report-tile strong {
    margin: 12px 0 8px;
    font-size: 20px;
}

.report-tile small {
    color: var(--muted);
    line-height: 1.55;
}

.report-tile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.report-tile.primary {
    border-color: rgba(47, 158, 143, .32);
    background: linear-gradient(135deg, #f4fbfa, #ffffff);
}

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #eef9f7 100%);
    box-shadow: var(--shadow);
    padding: 22px;
}

.dashboard-hero h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.dashboard-hero span {
    color: var(--muted);
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-shortcuts {
    margin-bottom: 18px;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.dashboard-metrics article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow-soft);
    padding: 16px;
}

.dashboard-metrics span,
.dashboard-metrics strong,
.dashboard-metrics small {
    display: block;
}

.dashboard-metrics span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.dashboard-metrics strong {
    margin: 8px 0 4px;
    font-size: 28px;
}

.dashboard-metrics small {
    color: var(--muted);
}

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

.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: 18px 32px;
}

.app-footer span {
    color: var(--text);
    font-weight: 800;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    font-weight: 700;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.button:hover,
.quick-action:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: var(--primary);
    color: white;
}

.button.primary:hover {
    background: var(--primary-dark);
}

.button.secondary {
    border: 1px solid var(--line);
    background: white;
    color: var(--text);
}

.button.full {
    width: 100%;
}

.button-row,
.form-actions,
.filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-actions {
    justify-content: flex-end;
    margin-top: 20px;
}

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

.stat-card,
.panel,
.login-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 20px 20px 18px;
    --stat-tone: var(--primary);
    --stat-tint: rgba(23, 107, 135, .1);
}

.stat-card::after {
    position: absolute;
    right: 18px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--stat-tint);
    content: "";
}

.stat-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--stat-tone);
    content: "";
}

.stat-card.tone-blue {
    --stat-tone: #176b87;
    --stat-tint: rgba(23, 107, 135, .1);
}

.stat-card.tone-teal {
    --stat-tone: #2f9e8f;
    --stat-tint: rgba(47, 158, 143, .12);
}

.stat-card.tone-green {
    --stat-tone: #067647;
    --stat-tint: rgba(6, 118, 71, .1);
}

.stat-card.tone-amber {
    --stat-tone: #b54708;
    --stat-tint: rgba(181, 71, 8, .1);
}

.stat-card span,
.stat-card small,
.stat-card strong {
    display: block;
}

.stat-card span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.stat-card strong {
    margin: 10px 0 4px;
    font-size: 32px;
}

.stat-visual {
    position: relative;
    z-index: 1;
    height: 9px;
    margin: 12px 0 10px;
    border-radius: 999px;
    background: var(--surface-2);
    overflow: hidden;
}

.stat-visual i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--stat-tone), color-mix(in srgb, var(--stat-tone) 68%, white));
}

.two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.panel {
    padding: 20px;
}

.panel + .panel,
.two-column + .panel {
    margin-top: 18px;
}

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

.list {
    display: grid;
    gap: 10px;
}

.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 14px;
}

.list-row.risk-row {
    border-color: #fedf89;
    background: #fffbf3;
}

.list-row.upcoming-row {
    border-color: #b9e6fe;
    background: #f5fbff;
}

.list-row[class*="rep-color-"] {
    border-color: var(--rep-border);
    border-left: 4px solid var(--rep-color);
    background: linear-gradient(90deg, var(--rep-bg), #fff 42%);
}

.list-row:hover,
.data-table tbody tr:hover {
    background: #f8fafc;
}

.list-row[class*="rep-color-"]:hover {
    background: var(--rep-bg);
}

.list-row strong,
.list-row small {
    display: block;
}

.list-row time {
    color: var(--muted);
    white-space: nowrap;
}

.empty-state {
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    padding: 24px;
    text-align: center;
}

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

.summary-grid > div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.summary-grid span,
.summary-grid strong {
    display: block;
}

.summary-grid strong {
    margin-top: 5px;
}

.settings-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.settings-preview {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #101820 0%, #121c25 100%);
    padding: 16px;
}

.settings-preview > span {
    display: block;
    margin-bottom: 12px;
    color: #9aa8b6;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.client-brand.preview {
    margin-top: 0;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 220px auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}

.filter-bar.compact {
    grid-template-columns: minmax(240px, 1fr) auto;
}

.report-filter {
    display: grid;
    grid-template-columns: 150px 150px minmax(220px, 1fr) minmax(200px, 260px) auto;
    gap: 12px;
    align-items: end;
}

.report-filter-panel {
    margin-bottom: 18px;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.report-summary > div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 13px;
}

.report-summary span,
.report-summary strong {
    display: block;
}

.report-summary span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.report-summary strong {
    margin-top: 5px;
}

.report-table tfoot th {
    border-top: 2px solid var(--line);
    background: #f8fafc;
}

.status-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 180px;
}

.status-stack span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    background: #f8fafc;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 8px;
}

.status-stack b {
    color: var(--primary-dark);
}

.report-accordion {
    margin-top: 8px;
}

.report-accordion summary {
    cursor: pointer;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
}

.report-accordion > div {
    display: grid;
    gap: 7px;
    min-width: 240px;
    margin-top: 8px;
}

.report-accordion a,
.report-accordion > div > span {
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 8px;
}

.report-accordion strong,
.report-accordion small {
    display: block;
}

.report-accordion small {
    color: var(--muted);
    margin-top: 3px;
}

.inline-import,
.attachment-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}

.attachment-form {
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
}

.attachment-list {
    margin-top: 14px;
}

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

.activity-list > div {
    border-left: 3px solid var(--accent);
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 14px;
}

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

.activity-list span,
.activity-list small {
    color: var(--muted);
    font-size: 12px;
}

.activity-list strong {
    margin: 4px 0;
}

.notification-row {
    align-items: flex-start;
}

.notification-row p {
    margin: 6px 0;
    color: #344054;
    line-height: 1.5;
}

.notification-row.unread {
    border-color: rgba(47, 158, 143, .34);
    background: #f0fdfa;
}

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

.notification-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow-soft);
    padding: 16px;
}

.notification-card.unread {
    border-color: rgba(47, 158, 143, .36);
    background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
}

.notification-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--primary-dark);
    font-weight: 900;
}

.notification-card.unread .notification-icon {
    background: var(--accent);
    color: white;
}

.notification-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.notification-body h3 {
    margin: 5px 0 6px;
    font-size: 17px;
}

.notification-body p {
    margin: 0;
    color: #344054;
    line-height: 1.55;
}

.file-field {
    position: relative;
    display: grid;
    min-height: 82px;
    align-content: center;
    gap: 4px;
    border: 1px dashed #b8c4d0;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--primary-dark);
    cursor: pointer;
    padding: 14px 16px;
}

.file-field input {
    position: absolute;
    inset: 0;
    cursor: pointer;
    opacity: 0;
}

.file-field > span {
    font-weight: 900;
}

.file-field > small {
    color: var(--muted);
}

.settings-section {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.settings-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
    padding: 18px;
}

.settings-section h3 {
    margin: 0;
    font-size: 16px;
}

.settings-section p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.settings-kicker {
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mail-provider-panel[hidden] {
    display: none;
}

.setting-check {
    align-self: end;
    min-height: 44px;
}

.notification-mail-option {
    margin-top: 14px;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.compact-table th,
.compact-table td {
    padding: 10px 9px;
}

.report-bars {
    display: grid;
    gap: 12px;
}

.report-bars > div {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 13px 14px 22px;
}

.report-bars span,
.report-bars b {
    position: relative;
    z-index: 1;
}

.report-bars i {
    position: absolute;
    right: auto;
    bottom: 0;
    left: 0;
    height: 6px;
    border-radius: 0 999px 999px 0;
    background: var(--accent);
}

.report-bars .status-opportunity i {
    background: #7f56d9;
}

.report-bars .status-proposal_sent i {
    background: #dc6803;
}

.report-bars .status-visit i,
.report-bars .status-open i {
    background: #0ba5ec;
}

.report-bars .status-completed i {
    background: #17b26a;
}

.report-bars .status-negative i,
.report-bars .status-cancelled i {
    background: #f04438;
}

.report-bars.horizontal {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.visit-status-report {
    margin-bottom: 18px;
}

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

.form-grid.single {
    grid-template-columns: 1fr;
}

.field-wide {
    margin-top: 16px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 13px 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(23, 107, 135, .12);
    outline: 0;
}

.field-error {
    color: var(--danger);
    font-weight: 700;
}

.align-end {
    align-self: end;
    min-height: 46px;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table tbody tr {
    transition: background .15s ease;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--line);
    padding: 14px 12px;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.data-table td small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
}

.actions-cell {
    text-align: right;
    white-space: nowrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 800;
}

.badge::before {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.badge.success {
    background: #ecfdf3;
    color: var(--success);
}

.badge.muted {
    background: var(--surface-2);
    color: var(--muted);
}

.badge.status-opportunity,
.status-stack .status-opportunity {
    border-color: #d6bbfb;
    background: #f4f3ff;
    color: #6941c6;
}

.badge.status-proposal_sent,
.status-stack .status-proposal_sent {
    border-color: #fedf89;
    background: #fffaeb;
    color: #b54708;
}

.badge.status-visit,
.status-stack .status-visit {
    border-color: #b9e6fe;
    background: #f0f9ff;
    color: #026aa2;
}

.badge.status-completed,
.status-stack .status-completed {
    border-color: #abefc6;
    background: #ecfdf3;
    color: #067647;
}

.badge.status-negative,
.badge.status-cancelled,
.status-stack .status-negative,
.status-stack .status-cancelled {
    border-color: #fecdca;
    background: #fef3f2;
    color: #b42318;
}

.badge.status-open,
.status-stack .status-open {
    border-color: #b9e6fe;
    background: #f0f9ff;
    color: #026aa2;
}

.badge.status-none,
.status-stack .status-none {
    border-color: var(--line);
    background: var(--surface-2);
    color: var(--muted);
}

.detail-notes {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.detail-notes > div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.detail-notes span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.detail-notes p {
    margin: 7px 0 0;
    white-space: pre-wrap;
}

.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 16% 18%, rgba(47, 158, 143, .16), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(23, 107, 135, .12), transparent 24%),
        linear-gradient(135deg, rgba(23, 107, 135, .12), transparent 48%),
        var(--bg);
    padding: 32px;
}

.login-panel {
    display: grid;
    width: min(1160px, 100%);
    min-height: calc(100vh - 64px);
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 42px;
    align-items: center;
    margin: 0 auto;
}

.login-copy {
    position: relative;
}

.login-badge {
    display: inline-flex;
    border: 1px solid rgba(23, 107, 135, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    padding: 8px 12px;
    text-transform: uppercase;
}

.login-copy h1 {
    max-width: 680px;
    margin: 28px 0 16px;
    color: #111827;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1;
}

.login-logo {
    display: inline-flex;
    max-width: min(460px, 100%);
    margin-top: 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, #17202a, #243447);
    box-shadow: var(--shadow);
    padding: 16px 18px;
}

.login-logo img {
    width: 100%;
    height: auto;
}

.login-copy p {
    max-width: 560px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.login-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.login-site {
    display: inline-flex;
    border-bottom: 2px solid rgba(47, 158, 143, .38);
    color: var(--primary-dark);
    font-weight: 800;
}

.login-actions span {
    border-left: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    padding-left: 12px;
}

.login-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.login-highlights span {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
    padding: 9px 12px;
}

.login-kpis {
    display: grid;
    max-width: 620px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.login-kpis div {
    border: 1px solid rgba(23, 107, 135, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .7);
    box-shadow: var(--shadow-soft);
    padding: 14px;
}

.login-kpis strong,
.login-kpis small {
    display: block;
}

.login-kpis strong {
    color: var(--primary-dark);
    font-size: 22px;
    font-weight: 900;
}

.login-kpis small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.login-card {
    display: grid;
    gap: 18px;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary);
    padding: 30px;
}

.login-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 96px;
    background: linear-gradient(135deg, rgba(23, 107, 135, .1), rgba(47, 158, 143, .08));
    content: "";
}

.login-card > * {
    position: relative;
}

.login-card-header {
    padding-bottom: 2px;
}

.login-card h2 + small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.login-security {
    display: grid;
    gap: 4px;
    border: 1px solid #d1fadf;
    border-radius: 8px;
    background: #f0fdf4;
    padding: 12px;
}

.login-security strong {
    color: #05603a;
    font-size: 13px;
}

.login-security small {
    color: #3f6c53;
    font-weight: 700;
    line-height: 1.45;
}

.product-signature {
    margin: 0;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.field {
    display: grid;
    gap: 8px;
}

.field span,
.check {
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.option-check {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 12px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-regions {
    margin-top: 18px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.calendar-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.calendar-side {
    position: sticky;
    top: 104px;
}

.calendar-toolbar {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(420px, auto);
    gap: 14px;
    align-items: end;
    margin-bottom: 16px;
}

.calendar-title h2 {
    margin: 0;
}

.calendar-nav,
.calendar-toolbar-form,
.segmented-control,
.calendar-rep-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.calendar-toolbar-form input,
.calendar-toolbar-form select {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 0 10px;
}

.segmented-control {
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 3px;
}

.segmented-control a {
    border-radius: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    padding: 8px 10px;
}

.segmented-control a.active {
    background: white;
    color: var(--primary-dark);
    box-shadow: var(--shadow-soft);
}

.calendar-rep-strip {
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.calendar-rep-strip a {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    padding: 7px 11px;
}

.calendar-rep-strip a.active,
.calendar-rep-strip a:hover {
    border-color: rgba(47, 158, 143, .38);
    background: #f0fdfa;
    color: var(--primary-dark);
}

.calendar-rep-strip a[class*="rep-color-"] {
    display: inline-flex;
    align-items: center;
    border-color: var(--rep-border);
    background: var(--rep-bg);
    color: #344054;
}

.calendar-rep-strip a[class*="rep-color-"]::before {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 999px;
    background: var(--rep-color);
    content: "";
}

.calendar-rep-strip a[class*="rep-color-"].active,
.calendar-rep-strip a[class*="rep-color-"]:hover {
    border-color: var(--rep-color);
    color: var(--text);
}

.calendar-filter {
    display: grid;
    gap: 12px;
}

.calendar-users {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.calendar-users span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.calendar-users a {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 9px 10px;
    font-weight: 800;
}

.calendar-users a.active,
.calendar-users a:hover {
    border-color: rgba(47, 158, 143, .38);
    background: #f0fdfa;
    color: var(--primary-dark);
}

.calendar-head,
.calendar-day {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    min-width: 0;
}

.calendar-head {
    background: var(--surface-2);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    padding: 10px;
    text-transform: uppercase;
}

.calendar-day {
    min-height: 148px;
    background: white;
    padding: 10px;
}

.calendar-day.muted-day {
    background: #f8fafc;
    color: var(--muted);
}

.calendar-items {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.calendar-item {
    overflow: hidden;
    border: 1px solid transparent;
    border-left: 3px solid var(--primary);
    border-radius: 6px;
    background: rgba(23, 107, 135, .1);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    padding: 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-item[class*="rep-color-"] {
    border-color: var(--rep-border);
    border-left-color: var(--rep-color);
    background: var(--rep-bg);
}

.calendar-item span,
.calendar-item b,
.calendar-item small {
    display: block;
}

.calendar-item span {
    color: var(--text);
}

.calendar-item b {
    overflow: hidden;
    color: var(--text);
    font-weight: 900;
    text-overflow: ellipsis;
}

.calendar-item small {
    overflow: hidden;
    color: var(--muted);
    font-weight: 700;
    text-overflow: ellipsis;
}

.calendar-agenda {
    display: grid;
    gap: 16px;
}

.calendar-agenda > article > time {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-weight: 900;
}

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

.calendar-year-grid article {
    min-height: 178px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 14px;
}

.calendar-year-grid article > strong,
.calendar-year-grid article > span {
    display: block;
}

.calendar-year-grid article > span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    border: 1px solid var(--line);
    border-left: 4px solid #c7d4df;
    border-radius: 8px;
    background: white;
    padding: 16px;
}

.timeline-item.status-opportunity {
    border-left-color: #7f56d9;
    background: linear-gradient(90deg, #f4f3ff, #fff 34%);
}

.timeline-item.status-proposal_sent {
    border-left-color: #dc6803;
    background: linear-gradient(90deg, #fffaeb, #fff 34%);
}

.timeline-item.status-visit,
.timeline-item.status-open {
    border-left-color: #0ba5ec;
    background: linear-gradient(90deg, #f0f9ff, #fff 34%);
}

.timeline-item.status-completed {
    border-left-color: #17b26a;
    background: linear-gradient(90deg, #ecfdf3, #fff 34%);
}

.timeline-item.status-negative,
.timeline-item.status-cancelled {
    border-left-color: #f04438;
    background: linear-gradient(90deg, #fef3f2, #fff 34%);
}

.timeline-item time {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.timeline-item p {
    margin: 7px 0;
    color: #344054;
    line-height: 1.5;
    white-space: pre-wrap;
}

.timeline-item small {
    color: var(--muted);
}

.timeline-item small .badge,
.nested-item .badge {
    min-height: 20px;
    padding: 0 7px;
    font-size: 11px;
    vertical-align: middle;
}

.timeline-item small .badge::before,
.nested-item .badge::before {
    width: 5px;
    height: 5px;
}

.standalone-action {
    border-left: 4px solid var(--accent);
}

.panel-risk {
    border-color: #fedf89;
}

.panel-risk .eyebrow {
    color: #b54708;
}

.panel-upcoming {
    border-color: #b9e6fe;
}

.panel-upcoming .eyebrow {
    color: #026aa2;
}

.timeline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.nested-timeline {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.nested-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 10px 12px;
}

.nested-item strong,
.nested-item small {
    display: block;
}

.alert {
    border-radius: 8px;
    padding: 12px 14px;
    font-weight: 700;
}

.alert.error {
    background: #fef3f2;
    color: var(--danger);
}

.alert.success {
    background: #ecfdf3;
    color: var(--success);
    margin-bottom: 18px;
}

.alert.warning {
    background: #fffaeb;
    color: #93370d;
    margin-bottom: 18px;
}

.install-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    background: rgba(16, 24, 32, .54);
    padding: 20px;
}

.install-modal[hidden] {
    display: none;
}

.install-card {
    position: relative;
    width: min(420px, 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
    padding: 24px;
}

.install-card h2 {
    margin: 18px 0 8px;
}

.install-card p,
.install-help {
    color: var(--muted);
    line-height: 1.5;
}

.install-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--text);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.pdf-report-page {
    background: #eef2f6;
    color: #17202a;
}

.pdf-report {
    width: min(1120px, calc(100% - 40px));
    margin: 28px auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
    padding: 30px;
}

.pdf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 2px solid var(--line);
    padding-bottom: 18px;
}

.pdf-header > div {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pdf-header img {
    width: 78px;
    max-height: 54px;
    object-fit: contain;
}

.pdf-header span,
.pdf-meta span,
.pdf-totals span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pdf-header h1 {
    margin: 5px 0 0;
    font-size: 26px;
}

.pdf-meta,
.pdf-totals,
.pdf-statuses {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.pdf-meta {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pdf-totals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pdf-statuses h2 {
    margin: 0;
    font-size: 18px;
}

.pdf-statuses > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pdf-statuses > div span {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
    padding: 8px 10px;
}

.pdf-meta > div,
.pdf-totals > div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 12px;
}

.pdf-meta strong,
.pdf-totals strong {
    display: block;
    margin-top: 5px;
}

.pdf-totals strong {
    font-size: 24px;
}

.pdf-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.pdf-table th,
.pdf-table td {
    border-bottom: 1px solid var(--line);
    padding: 10px 8px;
    text-align: left;
}

.pdf-table th {
    background: #f8fafc;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.pdf-table tfoot th {
    color: var(--text);
}

.pdf-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding-top: 14px;
    font-size: 12px;
}

.pdf-footer span {
    color: var(--primary-dark);
    font-weight: 900;
}

@media (max-width: 980px) {
    .app-shell,
    .login-panel,
    .two-column,
    .filter-bar,
    .summary-grid,
    .report-summary,
    .dashboard-metrics,
    .dashboard-grid,
    .settings-layout,
    .inline-import,
    .attachment-form,
    .calendar-shell,
    .calendar-toolbar,
    .report-filter,
    .report-bars.horizontal,
    .report-grid,
    .report-hub,
    .quick-actions {
        grid-template-columns: 1fr;
    }

    .calendar-side {
        position: static;
    }

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

    .app-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 40;
        width: min(86vw, 304px);
        height: 100vh;
        transform: translateX(-100%);
        transition: transform .2s ease;
    }

    .sidebar-toggle {
        display: none;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-menu-button {
        display: inline-block;
    }

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

    .login-panel {
        gap: 24px;
        align-items: start;
    }

    .login-copy h1 {
        max-width: 760px;
    }
}

@media (max-width: 640px) {
    .content,
    .topbar,
    .app-footer,
    .login-page {
        padding: 18px;
    }

    .content {
        padding-bottom: 92px;
    }

    .topbar,
    .app-footer,
    .user-menu,
    .top-search input,
    .button-row,
    .form-actions,
    .filter-actions,
    .panel-header,
    .list-row,
    .timeline-item {
        align-items: stretch;
        flex-direction: column;
    }

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

    .no-print {
        display: block;
    }

    .stats-grid,
    .form-grid,
    .checkbox-grid,
    .calendar-grid,
    .calendar-year-grid,
    .login-kpis,
    .pdf-meta,
    .pdf-totals,
    .notification-card {
        grid-template-columns: 1fr;
    }

    .dashboard-hero,
    .pdf-header,
    .pdf-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .calendar-main {
        padding: 14px;
    }

    .login-logo {
        padding: 12px;
    }

    .login-copy h1 {
        margin-top: 22px;
        font-size: 34px;
        line-height: 1.05;
    }

    .login-copy p {
        font-size: 16px;
    }

    .login-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .login-actions span {
        border-left: 0;
        padding-left: 0;
    }

    .login-card {
        padding: 22px;
    }

    .calendar-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .calendar-nav .button {
        justify-content: center;
        width: 100%;
    }

    .calendar-toolbar-form {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .calendar-toolbar-form input,
    .calendar-toolbar-form select,
    .calendar-toolbar-form .button {
        width: 100%;
    }

    .segmented-control {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
    }

    .segmented-control a {
        text-align: center;
    }

    .calendar-rep-strip {
        flex-wrap: nowrap;
        margin: 0 -2px 14px;
        overflow-x: auto;
        padding: 0 2px 12px;
        scrollbar-width: thin;
    }

    .calendar-rep-strip a {
        flex: 0 0 auto;
    }

    .calendar-head {
        display: none;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .mobile-bottom-nav {
        position: fixed;
        right: 12px;
        bottom: 12px;
        left: 12px;
        z-index: 35;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(255, 255, 255, .96);
        box-shadow: var(--shadow);
        padding: 6px;
    }

    .mobile-bottom-nav a,
    .mobile-bottom-nav button {
        display: grid;
        min-height: 44px;
        place-items: center;
        border: 0;
        border-radius: 6px;
        background: transparent;
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
    }

    .mobile-bottom-nav a.active,
    .mobile-bottom-nav button:active {
        background: rgba(23, 107, 135, .1);
        color: var(--primary-dark);
    }
}

@media print {
    .sidebar,
    .topbar,
    .app-footer,
    .mobile-bottom-nav,
    .no-print {
        display: none !important;
    }

    .app-shell {
        display: block;
    }

    .content {
        padding: 0;
    }

    body {
        background: white;
    }

    .pdf-report {
        width: 100%;
        margin: 0;
        border: 0;
        box-shadow: none;
        padding: 0;
    }

    .pdf-report-page {
        background: white;
    }

    @page {
        margin: 14mm;
    }
}
