:root {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: #22312b;
    background: #f5f7f6;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    --ink: #22312b;
    --muted: #77837d;
    --line: #e6ebe8;
    --surface: #fff;
    --canvas: #f5f7f6;
    --forest: #17382f;
    --forest-2: #21473b;
    --forest-soft: #e8f2ed;
    --accent: #e69a3a;
    --accent-dark: #bd7625;
    --red: #b74e48;
    --red-soft: #faeeec;
    --blue: #477a9b;
    --blue-soft: #edf4f8;
    --amber: #b47824;
    --amber-soft: #fbf2e4;
    --shadow: 0 10px 30px rgba(26, 50, 40, 0.045);
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    min-width: 320px;
    background: var(--canvas);
    font-size: 14px;
    line-height: 1.5;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
a {
    -webkit-tap-highlight-color: transparent;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    cursor: pointer;
}
svg.icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}
.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;
}
::selection {
    background: #dceae3;
    color: var(--forest);
}

/* Shared controls */
.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    transition:
        background 0.18s,
        border-color 0.18s,
        transform 0.18s;
}
.button svg {
    width: 17px;
    height: 17px;
}
.button:hover {
    transform: translateY(-1px);
}
.button-primary {
    color: white;
    background: var(--forest);
    box-shadow: 0 3px 8px rgba(23, 56, 47, 0.12);
}
.button-primary:hover {
    background: #21473b;
}
.button-secondary {
    color: var(--ink);
    background: #fff;
    border-color: #dce4df;
}
.button-secondary:hover {
    background: #f8faf9;
    border-color: #c8d4ce;
}
.button-block {
    width: 100%;
    margin-top: 7px;
}
.icon-button {
    position: relative;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #56645d;
    transition:
        background 0.15s,
        border-color 0.15s;
}
.icon-button:hover {
    background: #f1f5f2;
    border-color: var(--line);
}
.icon-button svg {
    width: 19px;
    height: 19px;
}
.button:focus-visible,
.icon-button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(230, 154, 58, 0.44);
    outline-offset: 2px;
}
.eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #7a8981;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.eyebrow-light {
    color: #b6c9bf;
}
.field-label {
    display: block;
    margin-bottom: 7px;
    color: #35453d;
    font-size: 12px;
    font-weight: 700;
}
.required-mark {
    color: var(--red);
}
.form-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #dce4df;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
.form-input::placeholder {
    color: #a3ada7;
}
.form-input:focus {
    border-color: #96b3a3;
    box-shadow: 0 0 0 3px rgba(31, 101, 73, 0.08);
    outline: none;
}
.form-textarea {
    min-height: 108px;
    resize: vertical;
}
.field-error {
    display: block;
    margin: 6px 0 0;
    color: var(--red);
    font-size: 11px;
    font-weight: 600;
}
.field-hint {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}
.flash-message {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 12px 15px;
    border: 1px solid #c7e1d2;
    border-radius: 9px;
    background: #eff8f2;
    color: #286648;
    font-size: 12px;
    font-weight: 600;
}
.flash-message svg {
    width: 17px;
    height: 17px;
}

/* Authentication */
.guest-page {
    min-height: 100vh;
    background: #f2f5f3;
}
.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 0.95fr) minmax(480px, 1.05fr);
}
.auth-aside {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 44px clamp(38px, 7vw, 104px);
    color: white;
    background:
        radial-gradient(
            ellipse at 85% 15%,
            rgba(88, 138, 111, 0.25),
            transparent 42%
        ),
        linear-gradient(145deg, #17392f 0%, #102c24 65%, #11271f 100%);
}
.auth-aside:after {
    position: absolute;
    right: -150px;
    bottom: 12%;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(230, 244, 235, 0.1);
    border-radius: 50%;
    box-shadow:
        0 0 0 48px rgba(230, 244, 235, 0.025),
        0 0 0 96px rgba(230, 244, 235, 0.025);
    content: "";
}
.brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: max-content;
}
.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.09);
    color: #f4bb6c;
}
.brand-mark svg {
    width: 22px;
    height: 22px;
}
.brand strong,
.brand small {
    display: block;
}
.brand strong {
    font-family: inherit;
    font-size: 15px;
    letter-spacing: -0.02em;
}
.brand small {
    margin-top: 2px;
    color: #b2c7bd;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.auth-aside-copy {
    position: relative;
    z-index: 1;
    max-width: 470px;
    margin: 0 0 70px;
}
.auth-aside-copy h1 {
    max-width: 450px;
    margin: 0 0 17px;
    font-family: inherit;
    font-size: clamp(35px, 4.3vw, 56px);
    line-height: 1.12;
    letter-spacing: -0.045em;
}
.auth-aside-copy p {
    max-width: 390px;
    margin: 0;
    color: #c0d0c8;
    font-size: 15px;
}
.auth-aside-foot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #b0c3ba;
    font-size: 11px;
}
.auth-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8fc59c;
    box-shadow: 0 0 0 4px rgba(143, 197, 156, 0.12);
}
.auth-content {
    display: grid;
    place-items: center;
    padding: 48px 28px;
}
.auth-card-wrap {
    width: min(100%, 430px);
}
.auth-heading {
    margin-bottom: 28px;
}
.auth-heading h2 {
    margin: 0 0 8px;
    font-family: inherit;
    font-size: 29px;
    line-height: 1.2;
    letter-spacing: -0.04em;
}
.auth-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.form-stack {
    display: grid;
    gap: 10px;
}
.form-stack .field-label:not(:first-child) {
    margin-top: 5px;
}
.field-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}
.check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 9px;
    color: #627168;
    font-size: 11px;
}
.check-label input {
    width: 15px;
    height: 15px;
    accent-color: var(--forest);
}
.auth-switch {
    margin: 24px 0 0;
    text-align: center;
    color: #738078;
    font-size: 12px;
}
.auth-switch a {
    color: var(--forest);
    font-weight: 700;
}
.auth-switch a:hover {
    text-decoration: underline;
}
.auth-security,
.auth-terms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 31px 0 0;
    color: #89958e;
    font-size: 10px;
}
.auth-security svg {
    width: 14px;
    height: 14px;
    color: #438360;
}
.form-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-grid-two .form-input {
    margin-top: 7px;
}
.auth-content:has(.form-grid-two) {
    padding-top: 28px;
    padding-bottom: 28px;
}

/* Application shell */
.app-page {
    min-height: 100vh;
}
.sidebar {
    position: fixed;
    z-index: 50;
    inset: 0 auto 0 0;
    width: 254px;
    display: flex;
    flex-direction: column;
    background: var(--forest);
    color: #ecf3ef;
    box-shadow: 8px 0 28px rgba(20, 50, 39, 0.045);
}
.sidebar .brand {
    width: 100%;
    height: 78px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.085);
}
.sidebar-nav {
    flex: 1;
    overflow: auto;
    padding: 20px 12px 15px;
}
.nav-group {
    margin-bottom: 23px;
}
.nav-group-title {
    margin: 0 0 8px;
    padding: 0 12px;
    color: #8fa99c;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 41px;
    margin: 2px 0;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #c2d1ca;
    font-size: 12px;
    font-weight: 500;
    transition:
        background 0.15s,
        color 0.15s;
}
.nav-link svg {
    width: 17px;
    height: 17px;
    color: #9db7aa;
}
.nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}
.nav-link.is-active {
    background: #2a5143;
    border-color: rgba(255, 255, 255, 0.055);
    color: #fff;
    font-weight: 700;
}
.nav-link.is-active:before {
    position: absolute;
    left: -13px;
    width: 3px;
    height: 23px;
    border-radius: 0 3px 3px 0;
    background: #f1b765;
    content: "";
}
.nav-link.is-active svg {
    color: #f3b866;
}
.nav-soon {
    width: 5px;
    height: 5px;
    margin-left: auto;
    border-radius: 50%;
    background: #829e90;
}
.sidebar-bottom {
    padding: 13px 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.company-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.055);
}
.company-avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #406b58;
    color: #e8f4eb;
}
.company-avatar svg {
    width: 17px;
    height: 17px;
}
.company-copy {
    min-width: 0;
    flex: 1;
}
.company-copy strong,
.company-copy small,
.sidebar-help strong,
.sidebar-help small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.company-copy strong {
    font-size: 11px;
}
.company-copy small {
    margin-top: 2px;
    color: #a4b9ad;
    font-size: 9px;
}
.company-chevron {
    width: 15px;
    height: 15px;
    color: #9bb1a5;
}
.sidebar-help {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 8px 1px;
}
.help-orb {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #bbcec3;
    font-weight: 700;
}
.sidebar-help strong {
    font-size: 10px;
}
.sidebar-help small {
    margin-top: 2px;
    color: #9bb2a5;
    font-size: 9px;
}
.app-main {
    min-height: 100vh;
    margin-left: 254px;
}
.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 clamp(20px, 3vw, 42px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}
.topbar-context {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #59675f;
    font-size: 11px;
}
.topbar-section {
    color: #24372e;
    font-weight: 700;
}
.topbar-divider {
    color: #c2cbc5;
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.environment-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border: 1px solid #e7ece9;
    border-radius: 20px;
    color: #718078;
    font-size: 9px;
}
.environment-badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #63a875;
}
.notification-button {
    border-color: #edf0ee;
}
.notification-dot {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 6px;
    height: 6px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    background: #dc7567;
}

.documents-upload-form, .documents-list, .contract-amendments, .alerts-panel { margin-bottom: 1rem; }
.contract-amendment-form { border-top: 1px solid #e8eeea; margin-top: 1.25rem; padding-top: 1.25rem; }
.contract-amendment-form h3 { margin: 0 0 1rem; color: #20372f; font-size: 1rem; }
.inline-form { display: inline-flex; margin: .35rem .35rem 0 0; }
.alert-list { display: grid; }
.alert-item { display: flex; align-items: flex-start; gap: .9rem; padding: 1rem 1.1rem; border-bottom: 1px solid #edf1ee; }
.alert-item:last-child { border-bottom: 0; }
.alert-item.is-unread { background: #f7faf8; }
.alert-item-icon { display: grid; flex: none; width: 2.2rem; height: 2.2rem; place-items: center; border-radius: 10px; color: #1c5b43; background: #eaf3ed; }
.alert-item-icon svg { width: 1rem; height: 1rem; }
.alert-item-copy { flex: 1; min-width: 0; }
.alert-item-copy strong { color: #20372f; font-size: .9rem; }
.alert-item-copy p { margin: .25rem 0; color: #63736b; font-size: .84rem; }
.alert-item-copy small { color: #8a9891; font-size: .73rem; }
.alert-item form, .alert-item > a { flex: none; align-self: center; }
@media (max-width: 700px) { .alert-item { flex-wrap: wrap; } .alert-item form, .alert-item > a { margin-left: 3.1rem; } }
.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 2px;
}
.user-avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e9eee9;
    color: #345547;
    font-size: 12px;
    font-weight: 700;
}
.topbar-user-copy strong,
.topbar-user-copy small {
    display: block;
}
.topbar-user-copy strong {
    max-width: 135px;
    overflow: hidden;
    color: #3c4a42;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.topbar-user-copy small {
    margin-top: 2px;
    color: #89948d;
    font-size: 9px;
}
.logout-form {
    margin: 0;
}
.page-content {
    width: min(100%, 1540px);
    min-height: calc(100vh - 112px);
    margin: 0 auto;
    padding: 31px clamp(20px, 3vw, 42px) 42px;
}
.app-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 15px clamp(20px, 3vw, 42px);
    border-top: 1px solid var(--line);
    color: #89948d;
    font-size: 9px;
}
.mobile-menu-button,
.mobile-backdrop {
    display: none;
}

/* Dashboard and data panels */
.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}
.page-heading h1 {
    margin: 0;
    color: #203129;
    font-family: inherit;
    font-size: 28px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.045em;
}
.page-heading p {
    margin: 7px 0 0;
    color: #7c8982;
    font-size: 12px;
}
.page-heading .eyebrow {
    margin-bottom: 6px;
}
.back-link {
    display: block;
    width: max-content;
    margin-bottom: 12px;
    color: #718178;
    font-size: 11px;
    font-weight: 600;
}
.back-link:hover {
    color: var(--forest);
}
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.metric-card,
.panel {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.metric-card {
    min-height: 139px;
    padding: 16px 17px;
}
.metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #728078;
    font-size: 10px;
    font-weight: 600;
}
.metric-icon {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 9px;
}
.metric-icon svg {
    width: 16px;
    height: 16px;
}
.tone-green {
    background: #eaf4ed;
    color: #378058;
}
.tone-blue {
    background: #edf4f8;
    color: #477a9b;
}
.tone-amber {
    background: #fbf2e5;
    color: #ba7b2a;
}
.tone-red {
    background: #faeeec;
    color: #b74e48;
}
.metric-value {
    margin: 12px 0 8px;
    color: #24342c;
    font-family: inherit;
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -0.04em;
}
.metric-foot {
    display: flex;
    align-items: center;
    gap: 7px;
}
.metric-note {
    color: #8c9891;
    font-size: 9px;
}
.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(270px, 0.9fr);
    gap: 16px;
    margin-top: 17px;
}
.panel {
    min-width: 0;
    padding: 18px;
}
.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 15px;
}
.panel-heading h2,
.next-step-panel h2,
.module-progress-panel h2 {
    margin: 0;
    color: #2c3c33;
    font-family: inherit;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: -0.02em;
}
.panel-heading p {
    margin: 4px 0 0;
    color: #8a958f;
    font-size: 10px;
}
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #356b50;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}
.text-link:hover {
    text-decoration: underline;
}
.text-link svg {
    width: 14px;
    height: 14px;
}
.dashboard-main-grid .panel-wide {
    padding: 18px 0 0;
}
.panel-wide > .panel-heading {
    padding: 0 18px 15px;
}
.table-wrap {
    width: 100%;
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}
.data-table th {
    height: 38px;
    padding: 0 14px;
    border-top: 1px solid #edf0ee;
    border-bottom: 1px solid #edf0ee;
    background: #fafbfa;
    color: #89958e;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.data-table th:first-child,
.data-table td:first-child {
    padding-left: 18px;
}
.data-table td {
    height: 62px;
    padding: 9px 14px;
    border-bottom: 1px solid #edf0ee;
    color: #707d75;
    font-size: 10px;
}
.data-table tbody tr:last-child td {
    border-bottom: 0;
}
.data-table tbody tr:hover {
    background: #fbfcfb;
}
.work-cell-link {
    display: grid;
    gap: 3px;
    width: max-content;
    max-width: 260px;
}
.work-cell-link strong {
    overflow: hidden;
    color: #304138;
    font-size: 11px;
    text-overflow: ellipsis;
}
.work-cell-link small {
    color: #909b94;
    font-size: 9px;
}
.table-arrow {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #9aa59e;
}
.table-arrow:hover {
    border-color: #e6ece8;
    background: #f4f7f5;
    color: var(--forest);
}
.table-arrow svg {
    width: 15px;
    height: 15px;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 14px;
    font-size: 9px;
    font-weight: 700;
}
.status-planning {
    background: #edf1f4;
    color: #627582;
}
.status-active {
    background: #eaf4ed;
    color: #387b54;
}
.status-paused {
    background: #fbf2e4;
    color: #a57225;
}
.status-completed {
    background: #edf4f8;
    color: #4c7591;
}
.status-cancelled {
    background: #f3eeee;
    color: #896b68;
}
.dashboard-side-column {
    display: grid;
    align-content: start;
    gap: 16px;
}
.next-step-panel {
    position: relative;
    overflow: hidden;
    padding: 18px 19px 20px;
    background: linear-gradient(145deg, #fff 0%, #f3f8f5 100%);
}
.next-step-symbol {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 10px;
    background: #e4f0e8;
    color: #3b7957;
}
.next-step-symbol svg {
    width: 18px;
    height: 18px;
}
.next-step-panel .eyebrow {
    margin-bottom: 7px;
}
.next-step-panel h2 {
    max-width: 245px;
    font-size: 16px;
    line-height: 1.35;
}
.next-step-panel p {
    margin: 9px 0 15px;
    color: #7c8982;
    font-size: 10px;
    line-height: 1.6;
}
.module-progress-panel {
    padding: 17px 18px;
}
.module-progress-panel .panel-heading {
    padding-bottom: 9px;
}
.module-progress-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.module-progress-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #eff2f0;
}
.module-progress-list li > span:last-child {
    min-width: 0;
}
.module-progress-list strong,
.module-progress-list small {
    display: block;
}
.module-progress-list strong {
    color: #536159;
    font-size: 10px;
}
.module-progress-list small {
    margin-top: 2px;
    color: #98a19c;
    font-size: 9px;
}
.module-progress-check,
.module-progress-pending {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eaf4ed;
    color: #43815d;
}
.module-progress-check svg,
.module-progress-pending svg {
    width: 12px;
    height: 12px;
}
.module-progress-pending {
    background: #f5f3ee;
    color: #aa8b59;
}
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 270px;
    padding: 30px 24px;
    text-align: center;
}
.empty-state-large {
    min-height: 350px;
}
.empty-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 14px;
    background: #eef4f0;
    color: #54826a;
}
.empty-icon svg {
    width: 22px;
    height: 22px;
}
.empty-state h2,
.empty-state h3 {
    margin: 0;
    color: #304138;
    font-family: inherit;
    font-size: 16px;
    font-weight: 750;
    letter-spacing: -0.025em;
}
.empty-state p {
    max-width: 360px;
    margin: 7px 0 17px;
    color: #859189;
    font-size: 11px;
    line-height: 1.6;
}
.empty-state .button {
    min-height: 38px;
    font-size: 11px;
}

/* Work management */
.works-panel {
    padding: 0;
}
.filter-toolbar {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}
.search-field {
    position: relative;
    flex: 1;
    min-width: 180px;
}
.search-field svg {
    position: absolute;
    top: 50%;
    left: 11px;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    color: #97a19b;
}
.search-field input {
    width: 100%;
    height: 39px;
    padding: 0 12px 0 35px;
    border: 1px solid #e0e6e2;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 11px;
}
.search-field input::placeholder {
    color: #a1aaa5;
}
.search-field input:focus,
.select-filter select:focus {
    outline: 3px solid rgba(230, 154, 58, 0.25);
    border-color: #a4b9ac;
}
.select-filter select {
    height: 39px;
    min-width: 156px;
    padding: 0 27px 0 10px;
    border: 1px solid #e0e6e2;
    border-radius: 8px;
    background: #fff;
    color: #59685f;
    font-size: 10px;
}
.filter-toolbar .button {
    min-height: 39px;
    padding: 0 13px;
    font-size: 10px;
}
.form-panel {
    max-width: 920px;
    padding: 0 23px;
}
.form-section {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.form-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 19px;
}
.form-section-number {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #eef4f0;
    color: #47785e;
    font-size: 10px;
    font-weight: 800;
}
.form-section-heading h2 {
    margin: 1px 0 4px;
    color: #304138;
    font-family: inherit;
    font-size: 14px;
    font-weight: 750;
}
.form-section-heading p {
    margin: 0;
    color: #89948e;
    font-size: 10px;
}
.form-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
    padding-left: 42px;
}
.form-field {
    min-width: 0;
}
.field-span-two {
    grid-column: 1/-1;
}
.form-field .form-input {
    font-size: 12px;
}
.input-state {
    text-transform: uppercase;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 18px 0 21px;
}
.form-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 0;
    padding: 11px 12px;
    border: 1px solid #f0d8d1;
    border-radius: 8px;
    background: #fff5f2;
    color: #a64b42;
    font-size: 11px;
    font-weight: 600;
}
.form-summary svg {
    width: 16px;
    height: 16px;
}
.pagination-wrap {
    display: flex;
    justify-content: flex-end;
    padding: 14px 17px;
    border-top: 1px solid var(--line);
}
.pagination-wrap nav {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
}
.pagination-wrap a,
.pagination-wrap span[aria-current] {
    min-width: 30px;
    padding: 6px 9px;
    border: 1px solid #e3e9e5;
    border-radius: 6px;
    background: #fff;
    color: #53645a;
}
.pagination-wrap span[aria-current] {
    background: var(--forest);
    border-color: var(--forest);
    color: #fff;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}
.detail-card {
    display: grid;
    gap: 8px;
    padding: 17px;
}
.detail-label {
    color: #849088;
    font-size: 10px;
    font-weight: 600;
}
.detail-card strong {
    color: #2b3a32;
    font-family: inherit;
    font-size: 18px;
    letter-spacing: -0.035em;
}
.detail-card small {
    color: #9aa39d;
    font-size: 9px;
}
.detail-notes {
    margin-top: 15px;
}
.detail-notes > p {
    margin: 0;
    color: #718078;
    font-size: 12px;
    line-height: 1.65;
}
.module-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
    padding: 13px 15px;
    border: 1px solid #e6ece8;
    border-radius: 10px;
    background: #fafcfb;
    color: #63816f;
}
.module-notice > svg {
    width: 17px;
    height: 17px;
    margin-top: 1px;
}
.module-notice strong,
.module-notice small {
    display: block;
}
.module-notice strong {
    font-size: 10px;
}
.module-notice small {
    margin-top: 3px;
    color: #87948c;
    font-size: 9px;
    line-height: 1.5;
}
.module-empty-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 390px;
    padding: 30px;
    text-align: center;
}
.module-empty-panel .empty-icon {
    margin-bottom: 17px;
}
.module-empty-panel h2 {
    max-width: 440px;
    margin: 4px 0 8px;
    color: #304138;
    font-family: inherit;
    font-size: 19px;
    letter-spacing: -0.03em;
}
.module-empty-panel p {
    max-width: 440px;
    margin: 0 0 18px;
    color: #839087;
    font-size: 11px;
    line-height: 1.65;
}
.module-empty-panel .button {
    min-height: 38px;
    font-size: 11px;
}

@media (max-width: 1150px) {
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .content-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.85fr);
    }
    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .environment-badge {
        display: none;
    }
}
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        box-shadow: 16px 0 36px rgba(17, 41, 31, 0.18);
    }
    .sidebar.is-open {
        transform: translateX(0);
    }
    .mobile-backdrop {
        position: fixed;
        z-index: 40;
        inset: 0;
        display: block;
        background: rgba(16, 32, 25, 0.4);
        opacity: 0;
        visibility: hidden;
        transition:
            opacity 0.2s,
            visibility 0.2s;
    }
    .mobile-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
    }
    .app-main {
        margin-left: 0;
    }
    .mobile-menu-button {
        display: grid;
    }
    .topbar {
        justify-content: flex-start;
    }
    .topbar-context {
        flex: 1;
    }
    .topbar-actions {
        gap: 8px;
    }
    .content-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .dashboard-side-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .auth-layout {
        grid-template-columns: minmax(290px, 0.8fr) minmax(450px, 1.2fr);
    }
    .auth-aside {
        padding: 34px;
    }
}
@media (max-width: 650px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }
    .auth-aside {
        min-height: 245px;
        padding: 24px 25px 26px;
    }
    .auth-aside-copy {
        margin: 35px 0 20px;
    }
    .auth-aside-copy h1 {
        max-width: 540px;
        font-size: 32px;
    }
    .auth-aside-copy p {
        font-size: 12px;
    }
    .auth-aside-foot {
        font-size: 9px;
    }
    .auth-content {
        padding: 35px 22px 44px;
    }
    .auth-content:has(.form-grid-two) {
        padding-top: 28px;
    }
    .auth-heading {
        margin-bottom: 22px;
    }
    .auth-heading h2 {
        font-size: 25px;
    }
    .form-grid-two {
        grid-template-columns: 1fr;
    }
    .topbar {
        height: 60px;
        padding: 0 13px;
        gap: 8px;
    }
    .topbar-context {
        font-size: 10px;
        gap: 7px;
    }
    .topbar-section {
        display: none;
    }
    .topbar-divider {
        display: none;
    }
    .topbar-actions {
        margin-left: auto;
        gap: 5px;
    }
    .topbar-user-copy {
        display: none;
    }
    .user-avatar {
        width: 30px;
        height: 30px;
    }
    .logout-form .icon-button {
        width: 34px;
    }
    .page-content {
        min-height: calc(100vh - 102px);
        padding: 23px 14px 30px;
    }
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 19px;
    }
    .page-heading h1 {
        font-size: 25px;
    }
    .page-heading p {
        max-width: 470px;
        font-size: 11px;
    }
    .page-heading > .button {
        width: 100%;
    }
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }
    .metric-card {
        min-height: 124px;
        padding: 13px;
    }
    .metric-top {
        font-size: 9px;
    }
    .metric-icon {
        width: 27px;
        height: 27px;
    }
    .metric-value {
        font-size: 19px;
    }
    .metric-note {
        font-size: 8px;
    }
    .content-grid {
        gap: 12px;
        margin-top: 12px;
    }
    .dashboard-main-grid .panel-wide {
        overflow: hidden;
    }
    .dashboard-side-column {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .panel {
        padding: 15px;
    }
    .panel-wide > .panel-heading {
        padding: 0 14px 13px;
    }
    .panel-heading h2,
    .next-step-panel h2,
    .module-progress-panel h2 {
        font-size: 13px;
    }
    .data-table th {
        padding: 0 10px;
        font-size: 8px;
    }
    .data-table td {
        padding: 8px 10px;
        font-size: 9px;
    }
    .data-table th:first-child,
    .data-table td:first-child {
        padding-left: 13px;
    }
    .filter-toolbar {
        flex-wrap: wrap;
        padding: 11px;
    }
    .search-field {
        flex-basis: 100%;
    }
    .select-filter {
        flex: 1;
    }
    .select-filter select {
        width: 100%;
        min-width: 0;
    }
    .filter-toolbar .button {
        min-width: 75px;
    }
    .form-panel {
        padding: 0 14px;
    }
    .form-section {
        padding: 18px 0;
    }
    .form-section-heading {
        gap: 9px;
        margin-bottom: 14px;
    }
    .form-fields-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-left: 0;
    }
    .field-span-two {
        grid-column: auto;
    }
    .form-actions {
        position: sticky;
        bottom: 0;
        margin: 0 -14px;
        padding: 12px 14px;
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(8px);
    }
    .form-actions .button {
        flex: 1;
    }
    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }
    .detail-card {
        gap: 6px;
        padding: 13px;
    }
    .detail-card strong {
        font-size: 15px;
    }
    .app-footer {
        padding: 13px 14px;
        font-size: 8px;
    }
    .app-footer span:last-child {
        display: none;
    }
    .module-empty-panel {
        min-height: 330px;
        padding: 22px;
    }
    .module-empty-panel h2 {
        font-size: 17px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.progress-create-form { padding: 1.25rem; border-bottom: 1px solid var(--line, #e8ecef); align-items: end; }
.diary-entry { padding: 1.2rem 1.4rem; border-top: 1px solid var(--line, #e8ecef); }
.diary-entry p { margin: .45rem 0; color: var(--muted, #64748b); line-height: 1.55; white-space: pre-line; }
.diary-entry h3 { margin: 0; font-size: 1rem; }
.table-subtitle { display: block; margin-top: .2rem; color: var(--muted, #64748b); font-size: .78rem; }
.button-small { min-height: 2rem; padding: .35rem .6rem; font-size: .8rem; }
.finance-actions { display: grid; gap: .45rem; min-width: 150px; }
.finance-actions details[open] { min-width: 210px; }
.finance-actions details summary { color: var(--muted, #64748b); cursor: pointer; font-size: .8rem; }
.finance-actions details form { display: grid; gap: .4rem; padding-top: .45rem; }
.budget-edit-item { padding: .9rem 1.25rem; border-top: 1px solid var(--line, #e8ecef); }
.budget-edit-item summary { cursor: pointer; font-weight: 650; }
.budget-edit-item form { padding-top: 1rem; }
.work-heading-actions { display: flex; align-items: center; gap: .65rem; }

.import-intro { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; padding: 1.2rem 1.25rem; background: linear-gradient(115deg, #f0f7ff, #fff); }
.import-intro h2, .import-steps h2 { margin: 0 0 .35rem; font-size: 1.05rem; }
.import-intro p, .import-steps p { margin: 0; color: var(--muted, #64748b); line-height: 1.55; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; }
.section-heading h2 { margin: 0 0 .25rem; font-size: 1rem; }
.section-heading p { margin: 0; color: var(--muted, #64748b); font-size: .84rem; line-height: 1.5; }
.import-intro-icon { display: grid; place-items: center; flex: 0 0 3rem; height: 3rem; color: #2563eb; background: #dbeafe; border-radius: .9rem; }
.import-intro-icon svg { width: 1.4rem; }
.import-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr); gap: 1.2rem; align-items: start; }
.form-stack { display: grid; gap: 1.1rem; padding: 0 1.25rem 1.25rem; }
.file-drop { display: grid; justify-items: center; gap: .45rem; padding: 2rem 1rem; border: 1.5px dashed #b7c7d8; border-radius: .85rem; background: #f8fafc; text-align: center; color: #334155; cursor: pointer; }
.file-drop > svg { width: 1.8rem; height: 1.8rem; color: #2563eb; }
.file-drop span { color: var(--muted, #64748b); font-size: .85rem; }
.file-drop input { max-width: 100%; margin-top: .65rem; font-size: .85rem; }
.import-note { padding: 1rem 1.1rem; border-radius: .75rem; background: #f8fafc; color: #475569; font-size: .87rem; }
.import-note ul { margin: .55rem 0 0; padding-left: 1.2rem; line-height: 1.75; }
.template-links { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .8rem; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid #e2e8f0; }
.template-links strong { flex-basis: 100%; color: #334155; }
.template-links a { color: #2563eb; font-weight: 650; text-decoration: none; }
.template-links a:hover { text-decoration: underline; }
.import-steps { padding: 1.25rem; }
.import-steps ol { display: grid; gap: 1rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.import-steps li { display: flex; gap: .75rem; }
.import-steps li > span, .step-badge { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; flex: 0 0 1.8rem; border-radius: 50%; background: #eff6ff; color: #2563eb; font-weight: 700; }
.import-steps li strong { font-size: .9rem; }
.import-steps li p { margin-top: .15rem; font-size: .82rem; }
.mapping-panel, .import-preview-panel { margin-bottom: 1.2rem; }
.mapping-list { display: grid; }
.mapping-row { display: grid; grid-template-columns: minmax(150px, .8fr) 2rem minmax(180px, 1.2fr); gap: .8rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--line, #e8ecef); }
.mapping-row > span:first-child { display: grid; gap: .15rem; }
.mapping-row strong { font-size: .88rem; }
.mapping-row small { color: var(--muted, #64748b); font-size: .75rem; }
.mapping-row .required-label { color: #b45309; }
.mapping-arrow { color: #94a3b8; text-align: center; }
.step-badge { width: auto; padding: 0 .75rem; border-radius: 2rem; font-size: .78rem; }
.import-review-list { display: grid; max-height: 650px; overflow: auto; }
.import-review-row { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: .75rem; align-items: start; padding: .9rem 1.25rem; border-top: 1px solid var(--line, #e8ecef); }
.import-review-row.has-errors { background: #fffaf7; }
.import-row-number { color: #64748b; font-size: .8rem; font-weight: 650; }
.import-row-values { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; }
.import-row-values span { display: grid; gap: .1rem; font-size: .85rem; overflow-wrap: anywhere; }
.import-row-values small { color: #64748b; font-size: .72rem; }
.row-valid { display: inline-flex; align-items: center; gap: .25rem; color: #15803d; font-size: .8rem; white-space: nowrap; }
.row-valid svg { width: 1rem; }
.import-row-errors { grid-column: 2 / -1; margin: 0; padding-left: 1.2rem; color: #b91c1c; font-size: .8rem; }
.import-confirm { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line, #e8ecef); background: #f8fafc; }
.import-confirm label { display: flex; gap: .6rem; align-items: center; color: #475569; font-size: .85rem; }
.import-confirm input { accent-color: #2563eb; }
.import-blocked { display: flex; gap: .5rem; align-items: center; padding: 1rem 1.25rem; border-top: 1px solid var(--line, #e8ecef); color: #a16207; font-size: .86rem; }
.import-blocked svg { width: 1.1rem; }
.flash-error { margin-bottom: 1rem; padding: .9rem 1rem; border: 1px solid #fecaca; border-radius: .7rem; background: #fef2f2; color: #991b1b; }
.flash-error ul { margin: .4rem 0 0; padding-left: 1.2rem; }
@media (max-width: 850px) { .import-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .mapping-row { grid-template-columns: 1fr; gap: .35rem; } .mapping-arrow { display: none; } .import-review-row { grid-template-columns: 1fr; } .import-row-errors { grid-column: 1; } .import-confirm { align-items: stretch; flex-direction: column; } }

.budget-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin-bottom: 1.1rem; }
.budget-kpi { display: grid; gap: .45rem; padding: 1rem 1.1rem; }
.budget-kpi > span { display: flex; justify-content: space-between; gap: .5rem; color: #64748b; font-size: .83rem; font-weight: 650; }
.budget-kpi > span small { font-weight: 500; }
.budget-kpi > strong { color: #1e293b; font-size: 1.35rem; letter-spacing: -.025em; }
.budget-kpi > small { color: #64748b; font-size: .76rem; line-height: 1.45; }
.budget-status-filter { width: auto; min-width: 180px; }
.budget-work-link { display: grid; gap: .2rem; color: inherit; text-decoration: none; }
.budget-work-link strong { color: #334155; }
.budget-work-link small { color: #64748b; }
.budget-progress { height: 5px; min-width: 90px; margin: .45rem 0 .2rem; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.budget-progress span { display: block; height: 100%; border-radius: inherit; background: #2f7657; }
.budget-footnote { margin: .8rem .2rem; color: #64748b; font-size: .8rem; line-height: 1.5; }
.security-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.security-card { display: grid; gap: 1rem; padding: 1.2rem; }
.security-card-heading { display: flex; gap: .8rem; align-items: flex-start; }
.security-card-heading h2, .recovery-heading h2 { margin: 0 0 .25rem; font-size: 1rem; }
.security-card-heading p, .recovery-heading p { margin: 0; color: #64748b; font-size: .85rem; line-height: 1.5; }
.security-icon { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: 0 0 2.4rem; border-radius: .7rem; color: #2563eb; background: #eff6ff; }
.security-icon svg { width: 1.2rem; }
.security-status { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; color: #64748b; font-size: .8rem; }
.security-start-form, .security-confirm-form { display: grid; gap: .8rem; }
.security-start-form .button, .security-confirm-form .button { justify-self: start; }
.security-action-block { display: grid; gap: .65rem; padding-top: .9rem; border-top: 1px solid #e2e8f0; }
.security-action-block h3 { margin: 0; font-size: .9rem; }
.security-action-block > p { margin: 0; color: #64748b; font-size: .82rem; }
.security-inline-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; align-items: end; }
.security-inline-form .button { grid-column: 1 / -1; justify-self: start; }
.button-danger { color: #fff; background: #b42318; border-color: #b42318; }
.button-danger:hover { background: #912018; }
.setup-key-panel { display: grid; gap: .5rem; padding: .9rem; border-radius: .75rem; background: #f8fafc; }
.setup-key-panel > code { padding: .55rem .7rem; border: 1px solid #dbe3ec; border-radius: .45rem; background: #fff; color: #1e293b; font-size: 1rem; letter-spacing: .12em; overflow-wrap: anywhere; }
.setup-key-panel p { margin: 0; color: #64748b; font-size: .81rem; line-height: 1.5; }
.setup-key-panel details summary { color: #2563eb; cursor: pointer; font-size: .8rem; font-weight: 650; }
.setup-key-panel .provisioning-uri { display: block; margin-top: .4rem; padding: .5rem; color: #475569; font-size: .72rem; overflow-wrap: anywhere; }
.recovery-display { display: grid; gap: .8rem; margin-bottom: 1rem; padding: 1.2rem; border-color: #bbf7d0; background: #f0fdf4; }
.recovery-heading { display: flex; gap: .75rem; align-items: center; color: #166534; }
.recovery-heading > svg { width: 1.5rem; flex: 0 0 1.5rem; }
.recovery-codes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .45rem; }
.recovery-codes code { padding: .45rem .3rem; border: 1px solid #dcfce7; border-radius: .35rem; background: #fff; color: #14532d; font-size: .82rem; text-align: center; }
.recovery-display > .field-hint { margin: 0; }
.company-form .form-section { padding-top: 1.1rem; }
.company-logo-preview { display: flex; align-items: center; gap: 1rem; margin-top: .75rem; flex-wrap: wrap; }
.company-logo-preview[hidden] { display: none; }
.company-logo-preview img { width: auto; max-width: 220px; height: 88px; object-fit: contain; padding: .5rem; border: 1px solid var(--line, #dfe7e2); border-radius: 10px; background: #fff; }
.company-logo-preview label { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted, #64746d); }
.work-health-panel { margin: 1rem 0; padding: 1.2rem; }
.work-health-panel > .panel-heading { margin-bottom: 1rem; }
.work-health-panel > .panel-heading h2 { margin: .25rem 0; color: #203a30; }
.work-health-panel > .panel-heading p { margin: 0; color: #68786f; font-size: .84rem; }
.work-health-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.work-health-kpis article { min-width: 0; display: grid; gap: .25rem; padding: .85rem; border: 1px solid #e4ebe6; border-radius: 11px; background: #fbfcfb; }
.work-health-kpis article > span { color: #718078; font-size: .75rem; }
.work-health-kpis article > strong { overflow-wrap: anywhere; color: #24392f; font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.work-health-kpis article > small { color: #718078; font-size: .72rem; }
.work-health-comparisons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-top: 1.15rem; }
.health-comparison { min-width: 0; }
.health-comparison-heading { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .45rem; color: #42554b; font-size: .78rem; }
.health-comparison-heading span { flex: none; color: #263d32; font-weight: 700; font-variant-numeric: tabular-nums; }
.health-track { height: .65rem; overflow: hidden; border-radius: 99px; background: #edf1ee; }
.health-track > span { display: block; height: 100%; min-width: 0; border-radius: inherit; transition: width .25s ease; }
.health-physical { background: #27815a; }
.health-expected { background: #8295aa; }
.health-cost { background: #d29224; }
.health-cost.health-over { background: #c44436; }
.health-billed { background: #4c7896; }
.health-received { background: #27815a; }
.health-comparison > small { display: block; margin-top: .35rem; color: #78867f; font-size: .7rem; line-height: 1.4; }
.work-health-alerts { display: grid; gap: .5rem; margin-top: 1rem; }
.health-alert { display: flex; align-items: flex-start; gap: .65rem; padding: .7rem .8rem; border: 1px solid; border-radius: 9px; }
.health-alert-icon { flex: none; display: grid; width: 1.25rem; height: 1.25rem; place-items: center; border-radius: 50%; font-size: .8rem; font-weight: 800; }
.health-alert > span:last-child { display: grid; gap: .12rem; }
.health-alert strong { font-size: .78rem; }
.health-alert small { font-size: .73rem; line-height: 1.45; }
.health-alert-critical { color: #8f2922; border-color: #f0c7c2; background: #fff5f3; }
.health-alert-warning { color: #80520b; border-color: #f1ddb2; background: #fffaf0; }
.health-alert-info { color: #365c70; border-color: #cedfe8; background: #f4f9fc; }
.health-alert-critical .health-alert-icon { background: #f8ded9; }
.health-alert-warning .health-alert-icon { background: #f8ebc9; }
.health-alert-info .health-alert-icon { background: #dcebf2; }
.health-alert-info { grid-column: 1 / -1; }
.health-all-good { display: grid; gap: .15rem; margin-top: 1rem; padding: .75rem .85rem; border: 1px solid #cfe5d7; border-radius: 9px; color: #266243; background: #f2faf5; }
.health-all-good strong { font-size: .8rem; }
.health-all-good span, .health-method-note { color: #718078; font-size: .72rem; line-height: 1.45; }
.health-method-note { margin: .85rem 0 0; }
@media (max-width: 1100px) { .work-health-comparisons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .work-health-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .work-health-comparisons { grid-template-columns: 1fr; gap: .8rem; } }
@media (max-width: 480px) { .work-health-panel { padding: .9rem; } .work-health-kpis article { padding: .7rem; } .work-health-kpis article > strong { font-size: .98rem; } }
.measurement-panel { margin-bottom: 1rem; }
.measurement-panel > form { padding: 0 1.25rem 1.25rem; }
.measurement-form-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1rem 0 0 42px; padding-top: .9rem; border-top: 1px solid #e5ebe7; color: #65746c; font-size: .88rem; }
.measurement-form-footer strong { color: #203a30; font-size: 1.05rem; }
.measurement-table td.money, .measurement-table th.money { text-align: right; white-space: nowrap; }
.measurement-actions { display: flex; flex-wrap: wrap; gap: .4rem; min-width: 175px; }
.measurement-actions form { margin: 0; }
.task-progress-form { display: flex; flex-wrap: wrap; align-items: end; gap: .35rem; min-width: 215px; }
.task-progress-form label { display: grid; gap: .2rem; color: #65746c; font-size: .68rem; }
.task-percent-input { display: flex; align-items: center; gap: .2rem; }
.task-percent-input input { width: 4.4rem; min-height: 2rem; padding: .25rem .35rem; border: 1px solid #d8e1db; border-radius: 6px; color: #263b31; font: inherit; font-size: .76rem; }
.task-percent-input > span { color: #839087; font-size: .7rem; }
.task-progress-form .field-error { flex-basis: 100%; font-size: .7rem; }
.progress-task-table td { vertical-align: middle; }
.status-pending { color: #74601d; background: #f8efcc; }
.schedule-summary-panel { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.5fr); gap: .8rem 1.5rem; margin: 0 0 1rem; padding: 1.15rem 1.25rem; }
.schedule-summary-title h2 { margin: .2rem 0; color: #203a30; font-size: 1.1rem; }
.schedule-summary-title p { margin: 0; color: #68786f; font-size: .8rem; line-height: 1.45; }
.schedule-summary-metrics { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.schedule-summary-metrics article { display: grid; gap: .2rem; min-width: 130px; padding: .65rem .8rem; border: 1px solid #e2eae4; border-radius: 9px; background: #fbfcfb; }
.schedule-summary-metrics article span { color: #728078; font-size: .7rem; }
.schedule-summary-metrics article strong { color: #263d32; font-size: .95rem; }
.schedule-summary-metrics .schedule-late-metric { border-color: #efc9c4; background: #fff5f3; }
.schedule-summary-metrics .schedule-late-metric strong { color: #9b3028; }
.schedule-banner { grid-column: 1 / -1; display: grid; gap: .2rem; padding: .7rem .85rem; border: 1px solid; border-radius: 9px; font-size: .77rem; line-height: 1.45; }
.schedule-banner-warning { color: #8c3c29; border-color: #f0c9bc; background: #fff6f2; }
.schedule-banner-info { color: #365c70; border-color: #cedfe8; background: #f4f9fc; }
.critical-path-badge { display: inline-block; margin: .25rem 0 0 .35rem; padding: .16rem .4rem; border-radius: 99px; color: #8a5610; background: #fff0cc; font-size: .65rem; font-weight: 750; white-space: nowrap; }
.task-schedule-editor { margin-top: .45rem; }
.task-schedule-editor summary { color: #38684d; cursor: pointer; font-size: .72rem; font-weight: 650; }
.task-schedule-editor form { display: grid; gap: .35rem; min-width: 210px; padding: .6rem; border: 1px solid #e2eae4; border-radius: 8px; background: #fbfcfb; }
.task-schedule-editor label { margin-top: .2rem; color: #65746c; font-size: .68rem; }
.task-schedule-editor .form-input { min-height: 2rem; padding: .3rem .4rem; font-size: .75rem; }
.stock-approval-panel { margin-bottom: 1rem; }
.stock-approval-panel > .panel-heading { align-items: center; }
.stock-pending-count { display: inline-grid; min-width: 1.8rem; height: 1.8rem; place-items: center; border-radius: 50%; color: #8c4a0d; background: #fff0d1; font-size: .78rem; font-weight: 800; }
.stock-status-pending { color: #80520b; background: #fff0d1; }
.stock-approval-actions { display: grid; gap: .4rem; min-width: 145px; }
.stock-approval-actions form { margin: 0; }
.stock-approval-actions details summary { color: #8f3028; cursor: pointer; font-size: .75rem; }
.stock-approval-actions details form { display: grid; gap: .4rem; padding: .55rem 0; }
.stock-approval-actions .form-input { min-height: 2rem; padding: .35rem; font-size: .75rem; }
.stock-integrity-note { display: flex; align-items: flex-start; gap: .6rem; margin: 0 1.25rem; padding: .75rem .85rem; border: 1px solid #dce7df; border-radius: 9px; color: #566a5e; background: #f6faf7; font-size: .78rem; line-height: 1.45; }
.stock-integrity-note svg { flex: none; width: 1rem; color: #587b62; }
@media (max-width: 620px) { .measurement-panel > form { padding: 0 .85rem .9rem; } .measurement-form-footer { margin-left: 0; align-items: flex-start; flex-direction: column; } .measurement-actions { min-width: 140px; } }
@media (max-width: 720px) { .schedule-summary-panel { grid-template-columns: 1fr; } .schedule-summary-metrics { align-items: stretch; } .schedule-summary-metrics article { flex: 1 1 140px; } }
@media (max-width: 1000px) { .budget-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .security-grid { grid-template-columns: 1fr; } .recovery-codes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .budget-kpis { grid-template-columns: 1fr; } .security-inline-form { grid-template-columns: 1fr; } .security-inline-form .button { grid-column: auto; } .budget-status-filter { width: 100%; } }
.password-input-wrap { position: relative; display: flex; width: 100%; align-items: stretch; }
.password-input-wrap > input { min-width: 0; padding-right: 5.4rem; }
.password-toggle { position: absolute; top: 50%; right: .6rem; transform: translateY(-50%); padding: .3rem .4rem; border: 0; border-radius: .35rem; background: transparent; color: #2563eb; font: inherit; font-size: .78rem; font-weight: 650; cursor: pointer; }
.password-toggle:hover { background: #eff6ff; }
.password-toggle:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.password-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem .8rem; margin: .45rem 0 0; padding: 0; list-style: none; color: #64748b; font-size: .76rem; }
.password-rules li.is-valid { color: #15803d; }
@media (max-width: 520px) { .password-rules { grid-template-columns: 1fr; } }

.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin-bottom: 1.1rem; }
.admin-metric { display: grid; gap: .35rem; padding: 1rem 1.1rem; color: inherit; text-decoration: none; }
.admin-metric > span { color: #64748b; font-size: .82rem; font-weight: 650; }
.admin-metric > strong { color: #1e293b; font-size: 1.8rem; line-height: 1.15; }
.admin-metric > small { color: #64748b; font-size: .75rem; line-height: 1.45; }
.admin-metric-alert { border-color: #fed7aa; background: #fffaf5; }
.admin-metric-alert > strong { color: #b45309; }
.admin-metrics-compact .admin-metric > strong { font-size: 1.1rem; }
.admin-state-text { font-size: 1rem !important; }
.admin-panel { margin-bottom: 1rem; overflow: hidden; }
.admin-panel .section-heading { border-bottom: 1px solid #edf0f3; }
.admin-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-bottom: 1rem; }
.admin-shortcut { display: flex; align-items: center; gap: .85rem; padding: 1rem; color: inherit; text-decoration: none; }
.admin-shortcut > div { display: grid; gap: .2rem; flex: 1; }
.admin-shortcut > div strong { font-size: .9rem; }
.admin-shortcut > div small { color: #64748b; font-size: .78rem; }
.admin-shortcut > svg { width: 1rem; color: #64748b; }
.admin-shortcut-icon { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: .7rem; color: #1d4ed8; background: #eff6ff; }
.admin-shortcut-icon svg { width: 1.15rem; }
.admin-shortcut-security { color: #15803d; background: #f0fdf4; }
.admin-record-link { color: #1e293b; text-decoration: none; }
.admin-record-link:hover { color: #2563eb; }
.admin-filter-toolbar { flex-wrap: wrap; padding: 1rem; border-bottom: 1px solid #edf0f3; }
.admin-filter-toolbar .form-input { width: auto; min-width: 150px; }
.admin-detail-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1rem; align-items: start; margin-bottom: 1rem; }
.admin-inline-form { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; padding: 0 1.2rem 1.2rem; }
.admin-inline-form .form-field { flex: 1 1 250px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; padding: 0 1.2rem 1.2rem; }
.admin-form-panel .admin-form-grid { padding-top: 1.2rem; }
.admin-full-width { grid-column: 1 / -1; }
.admin-form-note { display: grid; gap: .25rem; padding: .8rem .95rem; border: 1px solid #dbeafe; border-radius: .7rem; background: #f8fbff; color: #334155; font-size: .82rem; line-height: 1.5; }
.admin-form-note span { color: #64748b; }
.admin-checks { display: grid; align-content: center; gap: .6rem; }
.admin-form-panel .form-actions { padding: 0 1.2rem 1.2rem; }
.admin-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.admin-plan-card { display: grid; align-content: start; gap: .8rem; padding: 1.1rem; }
.admin-plan-top { display: flex; justify-content: space-between; align-items: start; gap: .5rem; }
.admin-plan-top h2 { margin: .25rem 0 0; font-size: 1.1rem; }
.admin-plan-card > p { min-height: 2.4rem; margin: 0; color: #64748b; font-size: .82rem; line-height: 1.45; }
.admin-plan-price { color: #1e293b; font-size: 1.5rem; }
.admin-plan-price small { margin-left: .2rem; color: #64748b; font-size: .78rem; font-weight: 500; }
.admin-plan-limits { display: flex; flex-wrap: wrap; gap: .35rem; }
.admin-plan-limits span { padding: .3rem .45rem; border-radius: .4rem; background: #f1f5f9; color: #475569; font-size: .72rem; }
.admin-plan-card ul { display: grid; gap: .35rem; margin: 0; padding-left: 1.1rem; color: #475569; font-size: .8rem; }
.admin-plan-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .55rem; margin-top: .35rem; padding-top: .75rem; border-top: 1px solid #edf0f3; }
.admin-plan-bottom > small { color: #64748b; font-size: .72rem; }
.admin-plan-bottom .table-actions { flex-wrap: wrap; }
.admin-credentials { display: grid; gap: .4rem; margin-bottom: 1rem; padding: 1rem 1.2rem; border-color: #bbf7d0; background: #f0fdf4; }
.admin-credentials p { margin: .2rem 0 .5rem; color: #475569; font-size: .82rem; }
.admin-credentials code { color: #14532d; overflow-wrap: anywhere; }
.admin-security-note { display: flex; align-items: start; gap: .7rem; margin: .5rem 0 1rem; padding: .8rem 1rem; border-radius: .7rem; background: #f0fdf4; color: #166534; }
.admin-security-note svg { width: 1.2rem; flex: 0 0 1.2rem; }
.admin-security-note p { margin: 0; font-size: .8rem; line-height: 1.5; }
@media (max-width: 1100px) { .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .admin-detail-grid, .admin-shortcuts { grid-template-columns: 1fr; } .admin-filter-toolbar .form-input { width: 100%; } }
@media (max-width: 560px) { .admin-metrics, .admin-plan-grid, .admin-form-grid { grid-template-columns: 1fr; } .admin-full-width { grid-column: auto; } .admin-metric > strong { font-size: 1.45rem; } }

.dashboard-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.1rem; }
.chart-panel { min-width: 0; padding: 1.15rem 1.25rem; }
.chart-panel .panel-heading { margin-bottom: 1.1rem; }
.status-chart-list, .budget-chart-list { display: grid; gap: .8rem; }
.status-chart-row { display: grid; gap: .35rem; }
.status-chart-label { display: flex; justify-content: space-between; gap: .7rem; color: #53615a; font-size: .8rem; }
.status-chart-label strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.status-chart-track, .budget-chart-track { height: .5rem; overflow: hidden; border-radius: 999px; background: #edf1ef; }
.status-chart-track > span, .budget-chart-track > span { display: block; height: 100%; border-radius: inherit; background: var(--forest-2); transition: width .3s ease; }
.chart-empty-state { display: grid; min-height: 130px; place-items: center; padding: 1rem; color: var(--muted); font-size: .85rem; text-align: center; }
.chart-legend { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; margin: -.2rem 0 1rem; color: #68756e; font-size: .72rem; }
.chart-legend > span { display: inline-flex; align-items: center; gap: .4rem; }
.chart-legend i { width: .65rem; height: .65rem; border-radius: 2px; }
.legend-budget, .budget-bar { background: #477a9b !important; }
.legend-expense, .expense-bar { background: #e69a3a !important; }
.legend-receivable, .cash-receivable { background: #2f8065 !important; }
.legend-payable, .cash-payable { background: #e69a3a !important; }
.budget-chart-row { display: grid; gap: .45rem; }
.budget-chart-title { overflow: hidden; color: #34443b; font-size: .78rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.budget-chart-bars { display: grid; gap: .28rem; }
.budget-chart-track { height: .38rem; }
.budget-chart-track > span { min-width: 0; }
.budget-chart-values { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem .8rem; color: #849089; font-size: .66rem; font-variant-numeric: tabular-nums; }
.cash-chart-panel { grid-column: 1 / -1; }
.cash-chart { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .55rem; min-height: 190px; padding: .35rem .2rem 0; border-bottom: 1px solid #e6ebe8; }
.cash-chart-month { display: grid; grid-template-rows: 1fr auto; min-width: 0; text-align: center; }
.cash-chart-bars { display: flex; align-items: end; justify-content: center; gap: .3rem; min-height: 150px; padding: 0 .2rem; border-bottom: 1px solid #edf1ef; background: repeating-linear-gradient(to bottom, transparent 0, transparent 36px, #f0f3f1 37px); }
.cash-bar { width: min(26px, 34%); min-height: 0; border-radius: 4px 4px 0 0; transition: height .3s ease; }
.cash-chart-label { padding: .45rem .1rem; color: #68756e; font-size: .72rem; }
.chart-footnote { margin: .75rem 0 0; color: #8a958f; font-size: .68rem; }
@media (max-width: 900px) { .dashboard-charts { grid-template-columns: 1fr; } .cash-chart-panel { grid-column: auto; } }
@media (max-width: 520px) { .chart-panel { padding: 1rem; } .cash-chart { gap: .25rem; } .cash-chart-bars { gap: .18rem; padding: 0 .1rem; } .cash-bar { width: 32%; } .budget-chart-values { display: grid; } }
