﻿:root {
    --bg: #eef3f1;
    --panel: #ffffff;
    --surface: #f7faf9;
    --surface-strong: #eef8f4;
    --green-900: #062f2c;
    --green-800: #0a4540;
    --green-700: #0f5f57;
    --green-600: #1f7d6a;
    --green-500: #3aa77d;
    --green-300: #d9efe8;
    --green-100: #ebf8f2;
    --text: #122e2d;
    --muted: #57706c;
    --primary: #31b07d;
    --warning: #d88a2f;
    --warning-soft: #fff0da;
    --danger: #d35b5b;
    --danger-soft: #fde9e8;
    --border: rgba(18, 46, 45, 0.09);
    --shadow: 0 18px 42px rgba(3, 41, 38, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); }
body { min-height: 100vh; }
a { text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }

body.landing-page {
    background: linear-gradient(90deg, #072d2d 0%, #0a4b45 48%, #0d6259 100%);
    color: #f1fbf8;
}

body.modal-open {
    overflow: hidden;
}

.page-shell {
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 38px 20px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 18px;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.94);
    color: var(--green-800);
    display: grid;
    place-items: center;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(10, 54, 52, 0.12);
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 14px rgba(7, 36, 33, 0.26));
}

.brand-logo-large {
    width: 68px;
    height: 68px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.12rem;
    font-weight: 700;
}

.brand-copy small {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
}

.sign-in-btn,
.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sign-in-btn {
    color: #f4fbf9;
    padding: 13px 22px;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.08);
}

.primary-btn {
    background: linear-gradient(180deg, #4ed2a0 0%, #33aa7b 100%);
    color: #f5fff9;
    box-shadow: 0 10px 20px rgba(49, 176, 125, 0.25);
    padding: 18px 28px;
    border: 0;
    cursor: pointer;
}

.primary-btn.small-btn {
    padding: 13px 20px;
    font-size: 0.9rem;
}

.secondary-btn {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 13px 18px;
}

.sign-in-btn:hover,
.primary-btn:hover,
.secondary-btn:hover { transform: translateY(-1px); }

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    min-height: 650px;
    gap: 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: rgba(230, 245, 240, 0.9);
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(4rem, 5vw, 8rem);
    line-height: 0.96;
    letter-spacing: -0.07em;
    font-weight: 900;
    color: #edfdf7;
}

.hero-copy h1 span {
    display: block;
    color: #d7f6eb;
}

.hero-copy p {
    max-width: 620px;
    margin: 28px 0 0;
    color: rgba(233, 244, 239, 0.82);
    font-size: 1.22rem;
    line-height: 1.6;
}

.cta-row {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.secondary-link {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0;
    cursor: pointer;
}

.safe-check {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    font-weight: 500;
    color: rgba(235, 247, 242, 0.9);
}

.shield {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 560px;
}

.orb {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
}

.orb-one {
    width: 420px;
    height: 420px;
    left: 55%;
    top: 57%;
    transform: translate(-50%, -50%);
}

.orb-two {
    width: 540px;
    height: 540px;
    left: 55%;
    top: 57%;
    transform: translate(-50%, -50%);
}

.mock-card {
    position: relative;
    width: 380px;
    height: 430px;
    padding: 28px 26px 20px;
    background: linear-gradient(180deg, #f4f5f3 0%, #edf4ef 100%);
    border-radius: 24px;
    box-shadow: var(--shadow);
    transform: rotate(-4deg);
    z-index: 2;
}

.mini-header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.mini-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(46, 101, 87, 0.08);
    display: grid;
    place-items: center;
    color: var(--green-700);
    font-weight: 800;
}

.form-title {
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    font-weight: 800;
    color: rgba(17,61,57,0.9);
    margin-bottom: 24px;
}

.form-lines {
    display: grid;
    gap: 18px;
    margin-top: 16px;
}

.form-lines span {
    display: block;
    height: 14px;
    border-radius: 8px;
    background: rgba(22, 63, 58, 0.08);
}

.form-lines .short { width: 75%; }

.form-button {
    height: 44px;
    border-radius: 10px;
    margin-top: 70px;
    background: linear-gradient(180deg, rgba(14, 94, 88, 0.07), rgba(14, 94, 88, 0.12));
}

.floating-note {
    position: absolute;
    right: 16px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.68);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 18px 28px rgba(0,0,0,0.08);
    z-index: 3;
}

.note-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(49,176,125,0.12);
    color: #29936b;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.floating-note strong { display: block; margin-bottom: 3px; }
.floating-note small { color: rgba(18, 46, 45, 0.75); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 16px;
    padding: 8px 0 32px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    min-height: 110px;
    padding: 18px 20px;
    backdrop-filter: blur(6px);
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.08);
    color: #e4f9f0;
    font-size: 1.2rem;
}

.feature-copy h3 {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

.feature-copy p {
    margin: 0;
    color: rgba(235, 245, 240, 0.74);
    font-size: 0.94rem;
}

.account-pill {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #4ec89f 0%, #2c9d75 100%);
    color: #effff8;
    border-radius: 18px;
    font-weight: 700;
    padding: 18px 30px;
    box-shadow: 0 14px 26px rgba(44, 157, 117, 0.28);
}

.login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 18, 18, 0.5);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.login-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.login-panel {
    position: relative;
    width: min(100%, 470px);
    background: rgba(255,255,255,0.99);
    border: 1px solid rgba(17, 61, 57, 0.08);
    border-radius: 28px;
    box-shadow: 0 28px 60px rgba(6, 33, 30, 0.2);
    padding: 28px 26px 24px;
    color: var(--text);
}

.close-login {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: rgba(20, 60, 58, 0.08);
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.login-brand h2 {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.1;
}

.login-brand p {
    margin: 6px 0 0;
    color: var(--muted);
}

.auth-page {
    background: linear-gradient(135deg, #0a3b38 0%, #0d5d55 100%);
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.auth-shell {
    width: min(100%, 470px);
}

.auth-card {
    background: rgba(255,255,255,0.97);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 30px 28px 26px;
    color: var(--text);
}

.auth-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.auth-header h2 { margin: 0; font-size: 1.7rem; }
.auth-header p { margin: 4px 0 0; color: var(--muted); }

.alert {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.alert p { margin: 0; }
.alert.danger { background: var(--danger-soft); color: #8d2e2b; }
.alert.success { background: rgba(49,176,125,0.08); color: #1d6d4c; }

.auth-form,
.stack-form {
    display: grid;
    gap: 18px;
}

.auth-form label,
.stack-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
}

.auth-form input,
.auth-form select,
.stack-form input,
.stack-form select,
.stack-form textarea,
.filter-row input,
.filter-row select {
    width: 100%;
    background: #fbfcfb;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px 14px;
    outline: none;
}

.auth-form input:focus,
.stack-form input:focus,
.stack-form textarea:focus,
.filter-row input:focus,
.filter-row select:focus {
    border-color: rgba(49, 176, 125, 0.45);
    box-shadow: 0 0 0 4px rgba(49, 176, 125, 0.09);
}

.captcha-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: center;
}

.captcha-box span {
    display: grid;
    place-items: center;
    padding: 14px 10px;
    font-weight: 800;
    letter-spacing: 0.2em;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(49,176,125,0.08), rgba(49,176,125,0.18));
    color: var(--green-800);
}

.wide-btn {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.demo-accounts {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.demo-accounts h3 {
    margin: 0 0 12px;
    font-size: 1rem;
}

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

.demo-account {
    display: grid;
    gap: 4px;
    background: linear-gradient(180deg, #f7fbf9 0%, #eef6f3 100%);
    border: 1px solid rgba(11, 75, 66, 0.08);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    padding: 12px 10px;
    color: var(--text);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.demo-account:hover {
    transform: translateY(-1px);
    border-color: rgba(49, 176, 125, 0.4);
}

.demo-account span {
    font-weight: 700;
    font-size: 0.82rem;
}

.demo-account small {
    color: var(--muted);
    font-size: 0.72rem;
}

.dashboard-page {
    background: var(--bg);
    color: var(--text);
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: #f8faf9;
    border-right: 1px solid var(--border);
    padding: 26px 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-brand {
    margin-bottom: 30px;
    color: var(--text);
}

.sidebar-brand .brand-name,
.sidebar-brand small {
    color: var(--text);
}

.sidebar-brand .brand-name {
    font-size: 1rem;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

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

.sidenav a {
    color: #1b2d2d;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 600;
}

.sidenav a.active {
    background: rgba(49,176,125,0.1);
    color: #0d6c56;
}

.dashboard-page .secondary-btn {
    color: var(--green-800);
    background: #ffffff;
    border: 1px solid rgba(18, 46, 45, 0.14);
    text-decoration: none;
}

.dashboard-page .secondary-btn:hover {
    color: var(--green-900);
    background: var(--surface-strong);
    border-color: rgba(31, 125, 106, 0.3);
}

.dashboard-page .header-actions .secondary-btn {
    min-height: 44px;
    padding: 11px 18px;
    box-shadow: 0 6px 14px rgba(18, 46, 45, 0.05);
}

.dashboard-page .side-panel .secondary-btn {
    min-height: 48px;
    border-radius: 12px;
}

.sidebar-footer {
    border-top: 1px solid var(--border);
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sidebar-footer strong,
.sidebar-footer small {
    display: block;
}

.logout-link {
    color: #b34d4d;
    font-weight: 700;
}

.dashboard-main {
    padding: 34px 34px 42px;
    display: flex;
    flex-direction: column;
}

.page-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.82rem;
}

.page-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-label {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 700;
}

.dashboard-header h1 {
    margin: 0;
    font-size: clamp(2.1rem, 2.9vw, 2.8rem);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.stat-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 20px rgba(18,46,45,0.03);
    padding: 22px 20px;
}

.stat-card span,
.stat-card small {
    color: var(--muted);
    display: block;
}

.stat-card strong {
    display: block;
    margin: 12px 0;
    font-size: clamp(1.7rem, 2vw, 2.3rem);
}

.stat-card.accent {
    background: linear-gradient(135deg, #0d6259 0%, #14846f 100%);
    color: #f6fffb;
}

.stat-card.accent span,
.stat-card.accent small { color: rgba(246,255,251,0.78); }

.analytics-panel {
    display: grid;
    grid-template-columns: 1.5fr 0.9fr;
    gap: 20px;
    margin-bottom: 26px;
}

.panel,
.chart-card,
.card-list {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 14px 24px rgba(18,46,45,0.04);
    padding: 22px 20px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.card-head h2 { margin: 0; font-size: 1.08rem; }
.card-head span { color: var(--muted); font-size: 0.9rem; }

.bars {
    min-height: 190px;
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 8px 2px 0;
}

.bar-column {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-rows: 1fr auto auto;
    align-items: end;
    justify-items: center;
    gap: 7px;
}

.bar-track {
    width: 100%;
    height: 128px;
    display: flex;
    align-items: flex-end;
    border-bottom: 1px solid var(--border);
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 30px, rgba(18, 46, 45, 0.045) 31px);
}

.bar-track span {
    width: min(100%, 34px);
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, #7bd0af 0%, #2c8f71 100%);
}

.bar-column strong {
    font-size: 0.8rem;
}

.bar-column small {
    color: var(--muted);
    font-size: 0.72rem;
}

.status-breakdown {
    display: grid;
    gap: 20px;
    padding: 6px 0;
}

.status-row-label {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    gap: 9px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.88rem;
}

.status-key {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.status-key.pending { background: #d88a2f; }
.status-key.approved { background: #31b07d; }
.status-key.review { background: #4775d1; }
.status-key.rejected { background: #d35b5b; }

.status-track {
    height: 8px;
    overflow: hidden;
    border-radius: 99px;
    background: var(--surface-strong);
}

.status-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.status-track span.pending { background: #d88a2f; }
.status-track span.approved { background: #31b07d; }
.status-track span.review { background: #4775d1; }
.status-track span.rejected { background: #d35b5b; }

.summary-reports {
    margin-bottom: 26px;
}

.summary-report-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin: 0 2px 14px;
}

.summary-report-head .mini-label {
    margin-bottom: 5px;
}

.summary-report-head h2 {
    margin: 0;
    font-size: 1.25rem;
}

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

.summary-report-card {
    padding: 18px 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 20px rgba(18,46,45,0.03);
}

.summary-report-card > span,
.summary-report-card p {
    color: var(--muted);
    font-size: 0.86rem;
}

.summary-report-card strong {
    display: block;
    margin: 11px 0 5px;
    font-size: 1.8rem;
    overflow-wrap: anywhere;
}

.summary-report-card strong small {
    font-size: 1rem;
    color: var(--muted);
}

.summary-report-card p {
    margin: 0;
}

.summary-report-card .summary-document {
    font-size: 1.15rem;
}

.card-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.card-list li {
    padding: 12px 12px;
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
}

.workspace-grid {
    display: grid;
    grid-template-columns: 1.7fr 0.9fr;
    gap: 20px;
    margin-bottom: 26px;
}

.filter-row {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(110px, 1fr)) auto;
    gap: 12px;
    margin-bottom: 18px;
}

.filter-row input,
.filter-row select {
    min-height: 44px;
}

.compact-btn {
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    background: var(--green-300);
    color: var(--green-900);
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

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

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

th, td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.badge.pending { background: var(--warning-soft); color: #9b650d; }
.badge.review { background: rgba(52,117,209,0.12); color: #355eb1; }
.badge.approved { background: rgba(49,176,125,0.12); color: #1a785b; }
.badge.rejected { background: var(--danger-soft); color: #9b3d3d; }

.inline-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-link {
    color: #1a6f5d;
    font-weight: 700;
}

.mini-delete {
    border: 0;
    background: transparent;
    color: var(--danger);
    font-weight: 700;
    cursor: pointer;
}

.empty-state {
    padding: 30px 10px;
    text-align: center;
    color: var(--muted);
}

.side-panel {
    padding-bottom: 18px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stack-form textarea {
    min-height: 105px;
    resize: vertical;
}

.audit-panel {
    margin-bottom: 10px;
}

.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.activity-list li {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    gap: 12px;
    align-items: start;
    background: var(--surface);
    border-radius: 12px;
    padding: 14px 12px;
}

.activity-dot {
    width: 10px;
    height: 10px;
    margin-top: 7px;
    border-radius: 50%;
    background: linear-gradient(180deg, #66d0a7 0%, #2fa06f 100%);
}

.activity-list strong { display: block; margin-bottom: 5px; }
.activity-list p { margin: 0; color: var(--muted); }
.activity-list small { color: var(--muted); }
.activity-list small span { font-weight: 700; }
.activity-list .audit-user { margin-top: 6px; font-size: 0.84rem; }

.backup-intro,
.backup-list-panel {
    margin-bottom: 20px;
}

.backup-intro p {
    color: var(--muted);
    line-height: 1.65;
}

.backup-intro .backup-policy {
    margin-bottom: 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--surface-strong);
}

.restore-form {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 220px;
}

.restore-form input {
    width: 130px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
}

.print-report-page {
    min-height: 100vh;
    padding: 38px 20px;
    background: #f1f5f3;
}

.print-report {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 42px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.print-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--green-700);
}

.print-report-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.print-report-brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.print-report-brand h1 {
    margin: 0;
    font-size: 1.65rem;
    color: var(--green-900);
}

.print-report-brand p,
.print-report-meta {
    margin: 5px 0 0;
    color: var(--muted);
}

.print-report-meta {
    display: grid;
    gap: 6px;
    text-align: right;
    font-size: 0.84rem;
}

.print-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0 30px;
}

.print-summary-grid article {
    padding: 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

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

.print-summary-grid span {
    color: var(--muted);
    font-size: 0.78rem;
}

.print-summary-grid strong {
    margin-top: 8px;
    color: var(--green-900);
    font-size: 1.35rem;
}

.print-report-section {
    margin: 24px 0;
}

.print-report-section h2 {
    margin: 0 0 12px;
    font-size: 1.08rem;
}

.print-report-section table {
    width: 100%;
    border-collapse: collapse;
}

.print-report-section th,
.print-report-section td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.print-report-section th {
    background: var(--surface);
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.print-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.print-actions form {
    margin: 0;
}

.print-report-button {
    min-width: 150px;
}

.print-report-footer {
    margin-top: 35px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.78rem;
}

.print-report-page .secondary-btn {
    color: var(--green-900);
    border-color: var(--border);
    background: var(--surface);
}

@media print {
    @page {
        size: auto;
        margin: 14mm;
    }

    .print-report-page {
        min-height: 0;
        padding: 0;
        background: #fff;
        color: #172a27;
    }

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

    .print-actions {
        display: none;
    }

    .print-report-section,
    .print-summary-grid article {
        break-inside: avoid;
    }

    .print-report-section th {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

@media (max-width: 1080px) {
    .dashboard-shell { grid-template-columns: 1fr; }
    .sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
    .workspace-grid, .analytics-panel { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .account-pill { justify-self: stretch; }
    .page-shell { padding-left: 22px; padding-right: 22px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
    .filter-row { grid-template-columns: 1fr 1fr; }
    .summary-report-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .topbar,
    .dashboard-header,
    .header-actions { flex-direction: column; align-items: flex-start; }
    .stats-grid,
    .filter-row,
    .two-col,
    .summary-report-grid { grid-template-columns: 1fr; }
    .page-shell { padding: 18px 16px 22px; }
    .hero-copy h1 { font-size: 3.2rem; }
    .mock-card { width: 300px; height: 350px; }
    .floating-note { right: 10px; bottom: 8px; }
    .dashboard-main { padding-left: 18px; padding-right: 18px; }
    .summary-report-head { align-items: flex-start; flex-direction: column; }
    .restore-form { align-items: stretch; flex-direction: column; }
    .restore-form input { width: 100%; }
    .print-report { padding: 22px 16px; }
    .print-report-header { align-items: flex-start; flex-direction: column; }
    .print-report-meta { text-align: left; }
    .print-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}