:root {
    color-scheme: light;
    --brand-950: #061f35;
    --brand-900: #082b48;
    --brand-800: #0a3b5e;
    --brand-700: #0b5077;
    --brand-600: #086b83;
    --brand-100: #dcecf0;
    --brand-50: #f0f7f8;
    --teal-700: #08676c;
    --teal-600: #087b7f;
    --teal-100: #dff1f0;
    --teal-50: #eff9f8;
    --accent-500: #c79d2e;
    --accent-100: #f6edce;
    --ink-950: #17232d;
    --ink-900: #22313c;
    --ink-800: #344550;
    --ink-700: #4b5c67;
    --ink-600: #667682;
    --ink-500: #7d8a94;
    --line-400: #bccbd3;
    --line-300: #ced9df;
    --line-200: #dce4e8;
    --line-100: #eaf0f2;
    --surface: #ffffff;
    --surface-muted: #f7f9f9;
    --canvas: #f2f5f5;
    --success-700: #177049;
    --success-100: #dff3e8;
    --warning-800: #875805;
    --warning-100: #f9edc9;
    --danger-700: #a33a34;
    --danger-100: #f8e5e3;
    --info-700: #245f8c;
    --info-100: #e1eef6;
    --violet-700: #65518a;
    --violet-100: #ece8f5;
    --sidebar-expanded-width: 284px;
    --sidebar-collapsed-width: 84px;
    --sidebar-current-width: var(--sidebar-expanded-width);
    --sidebar-width: var(--sidebar-current-width);
    --shell-content-max: 1280px;
    --shell-inline-gutter: clamp(24px, 3vw, 40px);
    --topbar-height: 76px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-xs: 0 1px 2px rgb(6 31 53 / 5%);
    --shadow-sm: 0 1px 2px rgb(6 31 53 / 5%), 0 8px 22px rgb(6 31 53 / 5%);
    --shadow-md: 0 18px 46px rgb(6 31 53 / 14%);
    --focus-ring: 0 0 0 4px rgb(8 123 127 / 18%);
    --transition-fast: 140ms cubic-bezier(.2, 0, 0, 1);
    --transition-base: 200ms cubic-bezier(.2, 0, 0, 1);
    font-family: "Segoe UI Variable Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/*
 * Navigation feedback deliberately lives outside the application layout. The
 * fixed progress rail and transform-only page entry keep the desktop shell
 * perfectly still while still acknowledging navigation immediately.
 */
.page-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 3000;
    height: 3px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateZ(0);
}

.page-progress__bar {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(90deg, var(--teal-600), #d8a411 62%, var(--teal-600));
    box-shadow: 0 0 12px rgb(8 123 127 / 38%);
    transform: scaleX(0.06);
    transform-origin: left center;
}

.page-progress.is-active {
    opacity: 1;
}

.btn.is-loading,
.button.is-loading,
.icon-button.is-loading {
    position: relative;
    cursor: progress;
}

.btn.is-loading::after,
.button.is-loading::after {
    position: absolute;
    inset-inline-end: 11px;
    flex: none;
    margin: 0;
}

.icon-button.is-loading::after {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    content: "";
    animation: icon-button-spin 700ms linear infinite;
    transform: translate(-50%, -50%);
}

.icon-button.is-loading > svg {
    opacity: 0.18;
}

.btn.is-loading > svg,
.button.is-loading > svg {
    opacity: 0;
}

@keyframes page-progress-grow {
    0% { transform: scaleX(0.06); }
    18% { transform: scaleX(0.28); }
    56% { transform: scaleX(0.66); }
    100% { transform: scaleX(0.92); }
}

@keyframes icon-button-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes page-surface-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes page-surface-lift {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .page-progress.is-active .page-progress__bar {
        animation: page-progress-grow 7.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
    }

    [data-page-surface] {
        animation: page-surface-enter 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
    }

    .auth-brand__content,
    .install-shell {
        animation: page-surface-lift 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
    }

    .auth-brand__content {
        animation-duration: 280ms;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-progress.is-active .page-progress__bar {
        transform: scaleX(0.72);
    }

    [data-page-surface],
    .auth-brand__content,
    .install-shell {
        animation: none !important;
        transform: none !important;
    }
}

@media print {
    .page-progress {
        display: none !important;
    }
}

/* Login preferences ------------------------------------------------------- */
.auth-form__preferences {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 2px 0;
}

.auth-remember {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: var(--ink-800);
    cursor: pointer;
    user-select: none;
}

.auth-remember input[type="checkbox"] {
    width: 19px;
    height: 19px;
    min-height: 19px;
    flex: 0 0 19px;
    margin: 0;
    accent-color: var(--teal-700);
    cursor: pointer;
}

.auth-remember__copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.auth-remember__title {
    font-size: 0.8rem;
    font-weight: 720;
    line-height: 1.25;
}

.auth-remember__hint {
    color: var(--ink-500);
    font-size: 0.68rem;
    line-height: 1.35;
}

.auth-form__preferences .auth-card__secondary-link {
    flex: 0 0 auto;
    justify-self: auto;
    white-space: nowrap;
}

.auth-form .auth-card__actions {
    margin-top: 0;
}

@media (max-width: 480px) {
    .auth-form__preferences {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

/* 1.10.0 — server-side pagination and list controls */
.pagination-shell {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto minmax(190px, 1fr);
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    border-top: 1px solid var(--line-200);
    background: #f7f9fb;
    background: color-mix(in srgb, var(--surface-muted) 78%, #fff);
}

.pagination-summary {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 0;
    color: var(--ink-600);
    font-size: 0.78rem;
}

.pagination-summary strong {
    color: var(--ink-900);
    font-variant-numeric: tabular-nums;
}

.pagination-nav,
.pagination-nav__pages {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-nav__page,
.pagination-nav__edge,
.pagination-nav__gap {
    display: inline-grid;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    place-items: center;
    border: 1px solid var(--line-300);
    border-radius: 9px;
    background: #fff;
    color: var(--ink-700);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.pagination-nav__edge {
    min-width: 58px;
}

.pagination-nav a:hover {
    border-color: var(--brand-600);
    background: var(--brand-50);
    color: var(--brand-800);
}

.pagination-nav .is-current {
    border-color: var(--brand-700);
    background: var(--brand-700);
    color: #fff;
    box-shadow: 0 4px 12px rgb(7 59 99 / 18%);
}

.pagination-nav .is-disabled,
.pagination-nav__gap {
    border-color: transparent;
    background: transparent;
    color: var(--ink-400);
}

.pagination-size {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.pagination-size label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-600);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.pagination-size select {
    width: 72px;
    min-height: 34px;
    padding: 5px 26px 5px 9px;
}

.table-sort {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.table-sort:hover,
.table-sort.is-active {
    color: var(--brand-700);
}

.notification-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.filter-chip {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border: 1px solid var(--line-300);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-700);
    font-size: 0.75rem;
    font-weight: 750;
    text-decoration: none;
}

.filter-chip:hover,
.filter-chip.is-active {
    border-color: var(--brand-600);
    background: var(--brand-50);
    color: var(--brand-800);
}

@media (max-width: 980px) {
    .pagination-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .pagination-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .pagination-size {
        justify-content: flex-start;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--canvas);
    color: var(--ink-950);
    font-size: 16px;
    overflow-y: scroll;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
}

@supports not (scrollbar-gutter: stable) {
    html {
        overflow-y: scroll;
    }
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--canvas);
    color: var(--ink-950);
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

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

input,
select,
textarea,
button {
    letter-spacing: inherit;
}

button,
[role="button"] {
    cursor: pointer;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--brand-700);
    text-underline-offset: 0.16em;
}

a:hover {
    color: var(--brand-900);
}

:focus-visible {
    outline: 3px solid rgb(8 123 127 / 30%);
    outline-offset: 2px;
}

::selection {
    background: var(--teal-100);
    color: var(--brand-950);
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--ink-950);
    color: #fff;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.app-shell {
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    z-index: 50;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid rgb(255 255 255 / 10%);
    background: linear-gradient(180deg, var(--brand-900), #052b4d 72%, #052641);
    color: #fff;
}

.app-brand {
    display: flex;
    min-height: var(--topbar-height);
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
    color: #fff;
    text-decoration: none;
}

.app-brand:hover {
    color: #fff;
}

.app-brand__logo {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
}

.app-brand__title {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
}

.app-brand__subtitle {
    display: block;
    margin-top: 2px;
    color: rgb(255 255 255 / 68%);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.app-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 18px 12px;
}

.app-nav__label {
    margin: 17px 10px 5px;
    color: rgb(255 255 255 / 50%);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.app-nav__label:first-child {
    margin-top: 2px;
}

.app-nav__link {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
    border-radius: 8px;
    color: rgb(255 255 255 / 82%);
    font-size: 0.91rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 140ms ease, color 140ms ease;
}

.app-nav__link:hover,
.app-nav__link:focus-visible {
    background: rgb(255 255 255 / 9%);
    color: #fff;
}

.app-nav__link.is-active,
.app-nav__link[aria-current="page"] {
    background: #fff;
    color: var(--brand-900);
    box-shadow: var(--shadow-sm);
}

.app-nav__icon {
    display: inline-grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
}

.app-nav__icon svg {
    width: 20px;
    height: 20px;
}

.app-nav__badge {
    min-width: 22px;
    margin-left: auto;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--accent-500);
    color: #332800;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
}

.app-sidebar__identity {
    padding: 14px 18px 18px;
    border-top: 1px solid rgb(255 255 255 / 12%);
}

.app-sidebar__name,
.app-sidebar__unit {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-sidebar__name {
    font-size: 0.86rem;
    font-weight: 700;
}

.app-sidebar__unit {
    margin-top: 2px;
    color: rgb(255 255 255 / 62%);
    font-size: 0.74rem;
}

.app-main {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.app-topbar {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    min-height: var(--topbar-height);
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px clamp(16px, 3vw, 36px);
    border-bottom: 1px solid var(--line-200);
    background: rgb(255 255 255 / 94%);
    backdrop-filter: blur(12px);
}

.topbar__start,
.topbar__actions,
.user-summary {
    display: flex;
    align-items: center;
}

.topbar__start {
    min-width: 0;
    gap: 12px;
}

.topbar__actions {
    flex: 0 0 auto;
    gap: 8px;
}

.topbar__title {
    margin: 0;
    overflow: hidden;
    color: var(--ink-950);
    font-size: clamp(1rem, 1.8vw, 1.28rem);
    font-weight: 750;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-toggle {
    display: none;
}

.icon-button {
    position: relative;
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid var(--line-300);
    border-radius: 9px;
    background: var(--surface);
    color: var(--ink-800);
}

.icon-button:hover {
    border-color: #b8c4cf;
    background: var(--line-100);
}

.icon-button svg {
    width: 20px;
    height: 20px;
}

.icon-button__badge {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--danger-700);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
}

.user-summary {
    gap: 10px;
    padding-left: 8px;
}

.user-summary__avatar {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-100);
    color: var(--brand-900);
    font-size: 0.82rem;
    font-weight: 800;
}

.user-summary__text {
    min-width: 0;
}

.user-summary__name,
.user-summary__role {
    display: block;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-summary__name {
    font-size: 0.84rem;
    font-weight: 700;
}

.user-summary__role {
    color: var(--ink-600);
    font-size: 0.72rem;
}

.app-content {
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding: clamp(18px, 3vw, 36px);
}

.sidebar-scrim {
    position: fixed;
    z-index: 45;
    inset: 0;
    display: none;
    border: 0;
    background: rgb(6 24 39 / 58%);
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.page-header__eyebrow {
    margin: 0 0 3px;
    color: var(--brand-700);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-header h1,
.page-header__title {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    line-height: 1.2;
}

.page-header__description {
    max-width: 760px;
    margin: 6px 0 0;
    color: var(--ink-600);
    font-size: 0.92rem;
}

.page-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.inline-actions--center {
    justify-content: center;
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.flash,
.alert {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 42px 12px 14px;
    border: 1px solid var(--line-300);
    border-left-width: 4px;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.flash--success,
.alert--success {
    border-color: #9dd6b8;
    border-left-color: var(--success-700);
    background: #f2fbf6;
}

.flash--warning,
.alert--warning {
    border-color: #ead28f;
    border-left-color: var(--warning-800);
    background: #fffbef;
}

.flash--danger,
.flash--error,
.alert--danger {
    border-color: #edb1aa;
    border-left-color: var(--danger-700);
    background: #fff5f4;
}

.flash--info,
.alert--info {
    border-color: #b5cee9;
    border-left-color: var(--info-700);
    background: #f4f8fd;
}

.flash__message {
    flex: 1;
    font-size: 0.89rem;
}

.flash__close {
    position: absolute;
    top: 7px;
    right: 7px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink-600);
    font-size: 1.15rem;
}

.flash__close:hover {
    background: rgb(20 32 43 / 7%);
}

.card {
    border: 1px solid var(--line-200);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.card + .card {
    margin-top: 18px;
}

.card__header,
.card__body,
.card__footer {
    padding: 18px 20px;
}

.card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line-200);
}

.card__header h2,
.card__header h3,
.card__title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
}

.card__subtitle {
    margin: 3px 0 0;
    color: var(--ink-600);
    font-size: 0.82rem;
}

.card__footer {
    border-top: 1px solid var(--line-200);
    background: #fafbfc;
}

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

.stat-card {
    min-height: 126px;
    padding: 17px 18px;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.stat-card--link {
    color: inherit;
    text-decoration: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.stat-card--link:hover {
    border-color: #b8c6d2;
    color: inherit;
    box-shadow: 0 8px 22px rgb(20 32 43 / 10%);
    transform: translateY(-1px);
}

.stat-card--warning { border-top: 3px solid var(--accent-500); }
.stat-card--danger { border-top: 3px solid var(--danger-700); }
.stat-card--info { border-top: 3px solid var(--info-700); }
.stat-card--success { border-top: 3px solid var(--success-700); }
.stat-card--neutral { border-top: 3px solid #8996a3; }

.stat-card__label {
    display: block;
    color: var(--ink-600);
    font-size: 0.78rem;
    font-weight: 700;
}

.stat-card__value {
    display: block;
    margin-top: 10px;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 1;
}

.stat-card__meta {
    display: block;
    margin-top: 10px;
    color: var(--ink-600);
    font-size: 0.75rem;
}

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

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

.section-stack {
    display: grid;
    gap: 18px;
}

.section-stack > .card + .card {
    margin-top: 0;
}

.compact-empty {
    padding: 24px 18px;
    color: var(--ink-600);
    font-size: 0.84rem;
    text-align: center;
}

.btn,
.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--brand-700);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.btn:hover,
.button:hover {
    background: var(--brand-900);
    color: #fff;
}

.btn:focus-visible,
.button:focus-visible {
    box-shadow: var(--focus-ring);
}

.btn--secondary,
.button--secondary {
    border-color: var(--line-300);
    background: #fff;
    color: var(--ink-800);
}

.btn--secondary:hover,
.button--secondary:hover {
    border-color: #aebbc7;
    background: var(--line-100);
    color: var(--ink-950);
}

.btn--danger,
.button--danger {
    background: var(--danger-700);
}

.btn--danger:hover,
.button--danger:hover {
    background: #84231d;
}

.btn--success,
.button--success {
    background: var(--success-700);
}

.btn--small,
.button--small {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.78rem;
}

.btn--block,
.button--block {
    width: 100%;
}

.btn[disabled],
.button[disabled],
.btn[aria-disabled="true"],
.button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.58;
}

.btn.is-loading,
.button.is-loading {
    cursor: wait;
}

.btn.is-loading::after,
.button.is-loading::after {
    width: 13px;
    height: 13px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    content: "";
    animation: spin 700ms linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

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

.form-field,
.form-group {
    min-width: 0;
}

.form-field--full,
.form-group--full {
    grid-column: 1 / -1;
}

.form-label,
.form-field label,
.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink-800);
    font-size: 0.8rem;
    font-weight: 700;
}

.required-marker {
    color: var(--danger-700);
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="file"],
select,
textarea {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid #bfc9d3;
    border-radius: 8px;
    background: #fff;
    color: var(--ink-950);
    line-height: 1.4;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand-600);
    outline: 0;
    box-shadow: var(--focus-ring);
}

.form-control[readonly],
.form-control[disabled],
input[readonly],
input[disabled],
select[disabled],
textarea[readonly],
textarea[disabled] {
    background: var(--line-100);
    color: var(--ink-600);
}

.form-help,
.field-help {
    margin: 5px 0 0;
    color: var(--ink-600);
    font-size: 0.75rem;
}

.field-error,
.form-error {
    margin: 5px 0 0;
    color: var(--danger-700);
    font-size: 0.76rem;
    font-weight: 650;
}

.has-error .form-control,
.has-error input,
.has-error select,
.has-error textarea,
[aria-invalid="true"] {
    border-color: var(--danger-700);
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.check-row input {
    width: 18px;
    height: 18px;
    min-height: auto;
    margin-top: 2px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(190px, 1.5fr) repeat(3, minmax(140px, 1fr)) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.table-shell,
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.data-table,
table.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.83rem;
}

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

.data-table th,
table.table th {
    background: #f8fafb;
    color: var(--ink-600);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table tbody tr:last-child td,
table.table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover,
table.table tbody tr:hover {
    background: var(--brand-50);
}

.table-link {
    color: var(--ink-950);
    font-weight: 700;
    text-decoration: none;
}

.table-link:hover {
    color: var(--brand-700);
    text-decoration: underline;
}

.cell-muted {
    color: var(--ink-600);
}

.cell-number,
.cell-date {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.status-badge,
.badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--line-100);
    color: var(--ink-800);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
}

.status-badge::before {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.status--draft,
.status--withdrawn,
.badge--neutral {
    background: var(--line-100);
    color: #5b6773;
}

.status--pending,
.status--pending-unit-approval,
.status--department-approval-pending,
.badge--warning {
    background: var(--warning-100);
    color: var(--warning-800);
}

.status--pending-final-approval,
.status--deputy-mayor-approval-pending,
.status--final-approval-pending {
    background: var(--violet-100);
    color: var(--violet-700);
}

.status--transferred,
.status--transferred-to-procurement,
.status--received,
.status--in-progress,
.badge--info {
    background: var(--info-100);
    color: var(--info-700);
}

.status--completed,
.badge--success {
    background: var(--success-100);
    color: var(--success-700);
}

.status--returned,
.status--returned-for-correction {
    background: #ffead6;
    color: #9a4c08;
}

.status--rejected,
.status--cancelled,
.badge--danger {
    background: var(--danger-100);
    color: var(--danger-700);
}

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

.list-row {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line-200);
}

.list-row:last-child {
    border-bottom: 0;
}

.list-row__main {
    min-width: 0;
}

.list-row__title {
    display: block;
    overflow: hidden;
    color: var(--ink-950);
    font-size: 0.86rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-row__meta {
    display: block;
    margin-top: 3px;
    color: var(--ink-600);
    font-size: 0.74rem;
}

.empty-state {
    padding: clamp(34px, 8vw, 66px) 20px;
    text-align: center;
}

.empty-state__icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: 1.4rem;
}

.empty-state h2,
.empty-state h3 {
    margin: 0;
    font-size: 1.02rem;
}

.empty-state p {
    max-width: 520px;
    margin: 7px auto 18px;
    color: var(--ink-600);
    font-size: 0.85rem;
}

.notification-list {
    overflow: hidden;
}

.notification-item {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line-200);
    background: #fff;
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-item.is-unread {
    background: var(--brand-50);
}

.notification-item__indicator {
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 50%;
    background: transparent;
}

.notification-item.is-unread .notification-item__indicator {
    background: var(--brand-600);
}

.notification-item__title {
    margin: 0;
    color: var(--ink-950);
    font-size: 0.88rem;
    font-weight: 750;
}

.notification-item__message {
    margin: 4px 0 0;
    color: var(--ink-600);
    font-size: 0.82rem;
}

.notification-item__time {
    display: block;
    color: var(--ink-500);
    font-size: 0.7rem;
    white-space: nowrap;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
    margin-top: 16px;
}

.pagination a,
.pagination span {
    display: grid;
    min-width: 38px;
    height: 38px;
    padding: 0 9px;
    place-items: center;
    border: 1px solid var(--line-300);
    border-radius: 7px;
    background: #fff;
    color: var(--ink-800);
    font-size: 0.8rem;
    text-decoration: none;
}

.pagination .is-current,
.pagination [aria-current="page"] {
    border-color: var(--brand-700);
    background: var(--brand-700);
    color: #fff;
}

.error-page {
    display: grid;
    min-height: calc(100vh - var(--topbar-height) - 72px);
    place-items: center;
    text-align: center;
}

.error-page__panel {
    width: min(100%, 620px);
    padding: clamp(30px, 6vw, 54px);
    border: 1px solid var(--line-200);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.error-page__code {
    display: block;
    color: var(--brand-700);
    font-size: clamp(2.6rem, 10vw, 5rem);
    font-weight: 850;
    line-height: 1;
}

.error-page h1 {
    margin: 15px 0 7px;
    font-size: 1.45rem;
}

.error-page p {
    margin: 0 auto 22px;
    color: var(--ink-600);
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(320px, 0.9fr) minmax(460px, 1.1fr);
    background: #fff;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 7vw, 88px);
    background: linear-gradient(145deg, var(--brand-900), #075184);
    color: #fff;
}

.auth-brand img {
    width: 112px;
    height: 112px;
    margin-bottom: 28px;
    padding: 5px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
}

.auth-brand h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.75rem);
    line-height: 1.15;
}

.auth-brand p {
    max-width: 560px;
    margin: 16px 0 0;
    color: rgb(255 255 255 / 76%);
}

.auth-content {
    display: grid;
    place-items: center;
    padding: 28px;
}

.auth-card {
    width: min(100%, 430px);
}

.auth-card h2 {
    margin: 0;
    font-size: 1.5rem;
}

.auth-card__intro {
    margin: 7px 0 24px;
    color: var(--ink-600);
}

.auth-card .form-field + .form-field,
.auth-card .form-group + .form-group {
    margin-top: 15px;
}

.auth-card__actions {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.muted {
    color: var(--ink-600);
}

.text-danger { color: var(--danger-700); }
.text-success { color: var(--success-700); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }

/* Compatibility layer for the server-rendered operational views. */
.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.page-heading h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    line-height: 1.2;
}

.page-heading > div > p:not(.eyebrow) {
    max-width: 780px;
    margin: 6px 0 0;
    color: var(--ink-600);
    font-size: 0.92rem;
}

.eyebrow {
    margin: 0 0 3px;
    color: var(--brand-700);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.heading-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.panel {
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

.alert {
    display: block;
}

.alert ul {
    margin: 7px 0 0;
    padding-left: 20px;
}

.table-panel {
    padding: 0;
    overflow: hidden;
}

.form-section {
    padding: clamp(17px, 2.5vw, 24px);
}

.section-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.section-heading > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.section-heading h2,
.section-title {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.35;
}

.section-heading > span {
    color: var(--ink-600);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.step-number {
    display: inline-grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-100);
    color: var(--brand-900);
    font-size: 0.78rem;
    font-weight: 850;
}

.button.primary,
.btn--primary {
    border-color: var(--brand-700);
    background: var(--brand-700);
    color: #fff;
}

.button.primary:hover,
.btn--primary:hover {
    border-color: var(--brand-900);
    background: var(--brand-900);
}

.button.secondary {
    border-color: var(--line-300);
    background: #fff;
    color: var(--ink-800);
}

.button.secondary:hover {
    border-color: #aebbc7;
    background: var(--line-100);
    color: var(--ink-950);
}

.button.ghost {
    border-color: transparent;
    background: transparent;
    color: var(--brand-700);
}

.button.ghost:hover {
    background: var(--brand-50);
    color: var(--brand-900);
}

.button.success { background: var(--success-700); }
.button.success:hover { background: #105a37; }
.button.warning { background: var(--warning-800); }
.button.warning:hover { background: #693e00; }
.button.danger { background: var(--danger-700); }
.button.danger:hover { background: #84231d; }

.button.small {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.78rem;
}

.icon-button.danger {
    border-color: #e8b4af;
    color: var(--danger-700);
}

.icon-button.danger:hover {
    border-color: var(--danger-700);
    background: var(--danger-100);
}

.text-link {
    color: var(--brand-700);
    font-size: 0.8rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.text-link:hover { text-decoration: underline; }

.table-scroll {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
}

.table-scroll table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.83rem;
}

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

.table-scroll th {
    background: #f8fafb;
    color: var(--ink-600);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table-scroll tbody tr:last-child td { border-bottom: 0; }
.table-scroll tbody tr:hover { background: var(--brand-50); }
.table-scroll code { overflow-wrap: anywhere; }

.table-note {
    display: block;
    margin-top: 3px;
    color: var(--ink-600);
    font-size: 0.7rem;
}

.items-table {
    min-width: 900px;
    table-layout: fixed;
}

.items-table th:nth-child(1),
.items-table td:nth-child(1) { width: 5%; text-align: center; }
.items-table th:nth-child(2),
.items-table td:nth-child(2) { width: 19%; }
.items-table th:nth-child(3),
.items-table td:nth-child(3) { width: 29%; }
.items-table th:nth-child(4),
.items-table td:nth-child(4) { width: 16%; }
.items-table th:nth-child(5),
.items-table td:nth-child(5) { width: 31%; }

.filter-bar label,
.stack-form label,
.request-form label,
.install-card label {
    display: grid;
    min-width: 0;
    gap: 6px;
    color: var(--ink-800);
    font-size: 0.8rem;
    font-weight: 700;
}

.filter-bar label > span,
.stack-form label > span,
.request-form label > span {
    display: block;
}

.stack-form {
    display: grid;
    gap: 16px;
}

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

.checkbox {
    display: flex !important;
    min-height: 44px;
    align-items: center;
    gap: 9px;
}

.checkbox input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    flex: 0 0 18px;
    margin: 0;
}

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

.content-grid.two-thirds {
    grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr);
}

.content-grid--wide {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}

.content-grid > .panel { margin-bottom: 0; }

.action-panel {
    position: sticky;
    top: calc(var(--topbar-height) + 16px);
}

.action-panel > form + form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line-200);
}

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

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

.summary-grid > div {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-md);
    background: #fff;
}

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

.summary-grid span {
    color: var(--ink-600);
    font-size: 0.7rem;
    font-weight: 750;
    text-transform: uppercase;
}

.summary-grid strong {
    margin-top: 5px;
    font-size: 0.88rem;
}

.revision-label {
    display: inline-flex;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--line-100);
    color: var(--ink-600);
    font-size: 0.66em;
    vertical-align: middle;
}

.request-title { margin-bottom: 16px; }
.request-form { display: grid; gap: 18px; }

.items-grid {
    display: grid;
    gap: 13px;
}

.item-row {
    overflow: hidden;
    border: 1px solid var(--line-300);
    border-radius: var(--radius-md);
    background: #fff;
}

.item-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--line-200);
    background: #f8fafb;
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.row-actions .icon-button {
    width: auto;
    min-width: 38px;
    height: 34px;
    padding: 0 9px;
    flex-basis: auto;
    font-size: 0.72rem;
    font-weight: 700;
}

.item-fields {
    display: grid;
    grid-template-columns: minmax(150px, 1.8fr) minmax(190px, 2.8fr) minmax(165px, 1.5fr) minmax(210px, 3fr);
    gap: 12px;
    padding: 14px;
    align-items: start;
}

.quantity-fields {
    display: grid;
    grid-template-columns: minmax(70px, 1fr) minmax(85px, 1fr);
    gap: 8px;
}

.item-fields textarea { min-height: 92px; }

.file-list {
    display: grid;
    gap: 8px;
    margin: 12px 0 16px;
    padding: 0;
    list-style: none;
}

.file-list li {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid var(--line-200);
    border-radius: 8px;
    background: #fafbfc;
}

.file-list small { color: var(--ink-600); }

.sample-box {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px dashed #bcc8d2;
    border-radius: var(--radius-md);
    background: #fafbfc;
}

.sample-box summary {
    cursor: pointer;
    color: var(--brand-700);
    font-size: 0.84rem;
    font-weight: 750;
}

.sample-box[open] summary { margin-bottom: 14px; }

.sticky-actions {
    position: sticky;
    z-index: 20;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-md);
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 -7px 20px rgb(20 32 43 / 8%);
    backdrop-filter: blur(10px);
}

.status {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--line-100);
    color: var(--ink-800);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
}

.status::before {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.status-draft,
.status-withdrawn { background: var(--line-100); color: #5b6773; }
.status-department_approval_pending { background: var(--warning-100); color: var(--warning-800); }
.status-deputy_mayor_approval_pending,
.status-final_approval_pending { background: var(--violet-100); color: var(--violet-700); }
.status-transferred_to_procurement,
.status-received,
.status-in_progress { background: var(--info-100); color: var(--info-700); }
.status-completed { background: var(--success-100); color: var(--success-700); }
.status-returned_for_correction { background: #ffead6; color: #9a4c08; }
.status-rejected,
.status-cancelled { background: var(--danger-100); color: var(--danger-700); }

.timeline {
    position: relative;
    display: grid;
    gap: 17px;
    margin: 0;
    padding: 2px 0 2px 28px;
    list-style: none;
}

.timeline::before {
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 8px;
    width: 2px;
    background: var(--line-300);
    content: "";
}

.timeline li {
    position: relative;
    min-width: 0;
}

.timeline li::before {
    position: absolute;
    top: 5px;
    left: -25px;
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--brand-600);
    box-shadow: 0 0 0 2px var(--brand-100);
    content: "";
}

.timeline li > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 7px;
}

.timeline li span,
.timeline li time {
    color: var(--ink-600);
    font-size: 0.72rem;
}

.timeline li p {
    margin: 3px 0 0;
    color: var(--ink-800);
    font-size: 0.8rem;
}

.timeline-returned::before,
.timeline-rejected::before { background: var(--danger-700) !important; }
.timeline-approved::before { background: var(--success-700) !important; }
.timeline-waiting::before,
.timeline-superseded::before { background: #8996a3 !important; }
.timeline-pending::before { background: var(--warning-800) !important; }
.timeline.compact { gap: 12px; }

.revision-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.revision-tabs a {
    display: grid;
    min-width: 34px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--line-300);
    border-radius: 7px;
    background: #fff;
    color: var(--ink-800);
    font-size: 0.75rem;
    font-weight: 750;
    text-decoration: none;
}

.revision-tabs a.active,
.revision-tabs a[aria-current="page"] {
    border-color: var(--brand-700);
    background: var(--brand-700);
    color: #fff;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.metric-card {
    min-width: 0;
    padding: 15px 16px;
    border: 1px solid var(--line-200);
    border-top: 3px solid var(--brand-600);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.metric-card span,
.metric-card strong { display: block; }
.metric-card span { color: var(--ink-600); font-size: 0.74rem; font-weight: 700; }
.metric-card strong { margin-top: 7px; font-size: 1.65rem; font-variant-numeric: tabular-nums; }

.definition-list {
    margin: 0;
}

.definition-list > div {
    display: grid;
    grid-template-columns: minmax(110px, 0.45fr) minmax(0, 1fr);
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line-200);
}

.definition-list > div:last-child { border-bottom: 0; }
.definition-list dt { color: var(--ink-600); font-size: 0.76rem; font-weight: 750; }
.definition-list dd { min-width: 0; margin: 0; color: var(--ink-950); font-size: 0.82rem; overflow-wrap: anywhere; }

.install-page {
    min-height: 100vh;
    background: #eef3f7;
}

.install-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(310px, 0.78fr) minmax(520px, 1.22fr);
}

.install-brand {
    padding: clamp(30px, 5vw, 72px);
    background: linear-gradient(150deg, var(--brand-900), #075184);
    color: #fff;
}

.install-brand img {
    width: 108px;
    height: 108px;
    margin-bottom: 22px;
    padding: 5px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
}

.install-brand .eyebrow { color: var(--accent-500); }
.install-brand h1 { max-width: 520px; margin: 0; font-size: clamp(1.7rem, 3.5vw, 2.6rem); line-height: 1.15; }
.install-brand h2 { margin: 34px 0 12px; font-size: 1rem; }
.install-brand > p:not(.eyebrow) { max-width: 560px; color: rgb(255 255 255 / 76%); }

.check-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.77rem;
}

.check-list li {
    padding: 6px 9px;
    border-radius: 6px;
    background: rgb(255 255 255 / 7%);
}

.check-list .ok { color: #b9f2cf; }
.check-list .fail { color: #ffd1cc; }

.install-card {
    width: min(100%, 820px);
    margin: auto;
    padding: clamp(26px, 5vw, 62px);
}

.install-card > h2 { margin: 0 0 7px; font-size: 1.55rem; }
.install-card > p { color: var(--ink-600); }
.install-card .alert { display: grid; margin: 16px 0; }
.install-card fieldset { display: grid; gap: 14px; margin: 0; padding: 17px; border: 1px solid var(--line-300); border-radius: var(--radius-md); background: #fff; }
.install-card legend { padding: 0 7px; color: var(--brand-900); font-size: 0.83rem; font-weight: 800; }
.install-card small { color: var(--ink-600); font-weight: 400; }

@media (max-width: 1199px) {
    .app-sidebar {
        width: 250px;
        transform: translateX(-102%);
        transition: transform 180ms ease;
        box-shadow: var(--shadow-md);
    }

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

    .nav-open .sidebar-scrim {
        display: block;
    }

    .app-main {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: inline-grid;
    }

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

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

    .filter-bar > :first-child {
        grid-column: 1 / -1;
    }

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

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

@media (max-width: 767px) {
    :root {
        --topbar-height: 62px;
    }

    .app-topbar {
        padding-inline: 12px;
    }

    .app-content {
        padding: 16px 12px 88px;
    }

    .user-summary__text {
        display: none;
    }

    .page-header {
        flex-direction: column;
        gap: 12px;
    }

    .page-heading {
        flex-direction: column;
        gap: 12px;
    }

    .heading-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .page-actions {
        width: 100%;
    }

    .page-actions .btn,
    .page-actions .button {
        flex: 1 1 auto;
    }

    .stat-grid,
    .dashboard-grid,
    .dashboard-grid--equal,
    .form-grid,
    .form-grid--3,
    .filter-bar {
        grid-template-columns: minmax(0, 1fr);
    }

    .filter-bar > :first-child,
    .form-field--full,
    .form-group--full {
        grid-column: auto;
    }

    .form-grid.two,
    .content-grid,
    .content-grid.two-thirds,
    .content-grid--wide,
    .item-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .content-grid > .panel + .panel {
        margin-top: 0;
    }

    .action-panel {
        position: static;
    }

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

    .item-row-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .row-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .section-heading {
        align-items: flex-start;
    }

    .panel:not(.table-panel) {
        padding: 15px;
    }

    .stat-card {
        min-height: 108px;
    }

    .card__header,
    .card__body,
    .card__footer {
        padding: 15px;
    }

    .card__header {
        flex-direction: column;
    }

    .table-responsive--cards {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .table-responsive--cards table,
    .table-responsive--cards thead,
    .table-responsive--cards tbody,
    .table-responsive--cards tr,
    .table-responsive--cards th,
    .table-responsive--cards td {
        display: block;
        width: 100%;
    }

    .table-responsive--cards thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .table-responsive--cards tr {
        margin-bottom: 10px;
        padding: 8px 13px;
        border: 1px solid var(--line-200);
        border-radius: var(--radius-md);
        background: #fff;
        box-shadow: var(--shadow-sm);
    }

    .table-responsive--cards td {
        display: grid;
        grid-template-columns: minmax(105px, 0.8fr) minmax(0, 1.2fr);
        gap: 12px;
        padding: 7px 0;
        border-bottom: 1px solid var(--line-100);
        text-align: right;
    }

    .table-responsive--cards td:last-child {
        border-bottom: 0;
    }

    .table-responsive--cards td::before {
        color: var(--ink-600);
        content: attr(data-label);
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.02em;
        text-align: left;
        text-transform: uppercase;
    }

    .notification-item {
        grid-template-columns: 9px minmax(0, 1fr);
    }

    .notification-item__time,
    .notification-item__actions {
        grid-column: 2;
    }

    .auth-shell {
        display: block;
        background: #fff;
    }

    .auth-brand {
        min-height: 230px;
        padding: 26px 22px;
    }

    .auth-brand img {
        width: 74px;
        height: 74px;
        margin-bottom: 16px;
    }

    .auth-brand p {
        display: none;
    }

    .auth-content {
        padding: 28px 20px 44px;
    }

    .install-shell {
        display: block;
    }

    .install-brand {
        padding: 28px 22px;
    }

    .install-brand img {
        width: 76px;
        height: 76px;
        margin-bottom: 14px;
    }

    .install-brand h2,
    .install-brand .check-list {
        display: none;
    }

    .install-card {
        padding: 28px 18px 44px;
    }

    .sticky-actions {
        position: fixed;
        z-index: 25;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        gap: 8px;
        padding: 10px 12px max(10px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--line-200);
        background: rgb(255 255 255 / 96%);
        box-shadow: 0 -8px 24px rgb(20 32 43 / 10%);
    }

    .sticky-actions > * {
        flex: 1;
    }
}

/* Premium request editor and request detail */
.form-page-heading {
    align-items: flex-start;
}

.form-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.form-progress li {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid var(--line-200);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-600);
    font-size: 0.68rem;
    font-weight: 710;
}

.form-progress li::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line-400);
    content: "";
}

.form-progress li.is-active {
    border-color: #b9d6d7;
    background: var(--teal-50);
    color: var(--teal-700);
}

.form-progress li.is-active::before {
    background: var(--teal-600);
    box-shadow: 0 0 0 3px var(--teal-100);
}

.form-alert,
.detail-alert {
    margin-bottom: 24px;
}

.request-form--premium {
    gap: 24px;
}

.form-section--identity,
.form-section--items,
.form-section--attachments {
    position: relative;
    overflow: hidden;
}

.form-section--identity::before,
.form-section--items::before,
.form-section--attachments::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 58px;
    border-radius: 0 3px 3px 0;
    background: var(--teal-600);
    content: "";
}

.section-heading--rich {
    align-items: flex-start;
}

.section-description {
    margin: 5px 0 0;
    color: var(--ink-600);
    font-size: 0.78rem;
    font-weight: 450;
    line-height: 1.55;
}

.section-state {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid var(--line-200);
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--ink-600);
    font-size: 0.66rem;
    font-weight: 720;
}

.section-state--required {
    border-color: #ead9a5;
    background: #fffaf0;
    color: var(--warning-800);
}

.section-heading__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.form-grid--comfortable {
    gap: 22px;
}

.form-field--readonly .form-control,
.form-field--readonly input,
.form-field--readonly select,
.form-field--readonly textarea {
    border-color: var(--line-200);
    background: var(--surface-muted);
    color: var(--ink-700);
}

.item-count {
    display: inline-flex;
    min-width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    padding-inline: 9px;
    border: 1px solid #c9dfe0;
    border-radius: 999px;
    background: var(--teal-50);
    color: var(--teal-700);
    font-size: 0.7rem;
    font-weight: 800;
}

.item-editor {
    display: grid;
    gap: 16px;
}

.item-card {
    border-color: var(--line-200);
    box-shadow: var(--shadow-sm);
}

.item-row-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-index-badge {
    display: inline-grid;
    min-width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid #c9dfe0;
    border-radius: 9px;
    background: var(--teal-50);
    color: var(--teal-700);
    font-size: 0.72rem;
    font-weight: 800;
}

.item-action {
    min-height: 36px;
    padding: 7px 10px;
    border-color: var(--line-300);
    background: #fff;
    color: var(--ink-700);
}

.item-action--duplicate {
    color: var(--teal-700);
}

.item-row__lock-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 9px 14px;
    border-top: 1px solid var(--line-100);
    background: #fffaf0;
    color: var(--warning-800);
    font-size: 0.7rem;
}

.item-field--name,
.item-field--spec,
.item-field--quantity,
.item-field--reason {
    min-width: 0;
}

.existing-supporting-files {
    margin-bottom: 18px;
}

.file-list--rich {
    gap: 10px;
}

.file-list--rich li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.file-list__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line-200);
    border-radius: 9px;
    background: #fff;
    color: var(--teal-700);
}

.file-list__content {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.file-list__content > * {
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-list__action {
    flex: 0 0 auto;
}

.attachment-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, .7fr);
    gap: 18px;
    align-items: start;
}

.upload-card {
    padding: 18px;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-md);
    background: var(--surface-muted);
}

.upload-card__intro {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.upload-card__intro h3 {
    margin: 0;
    color: var(--ink-950);
    font-size: 0.86rem;
}

.upload-card__intro p {
    margin: 4px 0 0;
    color: var(--ink-600);
    font-size: 0.72rem;
}

.upload-card__icon,
.sample-box__icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid #c9dfe0;
    border-radius: 9px;
    background: #fff;
    color: var(--teal-700);
}

.file-picker {
    display: grid;
    gap: 12px;
}

.sample-box--rich {
    margin: 0;
    padding: 17px;
    border-style: solid;
}

.sample-box--rich > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
}

.sample-box--rich > summary::-webkit-details-marker {
    display: none;
}

.sample-box--rich > summary::after {
    margin-left: auto;
    color: var(--ink-500);
    content: "+";
    font-size: 1.1rem;
}

.sample-box--rich[open] > summary::after {
    content: "−";
}

.sticky-actions--form {
    align-items: center;
    justify-content: space-between;
}

.sticky-actions__context {
    display: grid;
    gap: 2px;
    color: var(--ink-600);
    font-size: 0.7rem;
}

.sticky-actions__context strong {
    color: var(--ink-900);
    font-size: 0.78rem;
}

.sticky-actions__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.request-detail-header {
    align-items: flex-start;
    margin-bottom: 20px;
}

.detail-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--ink-600);
    font-size: 0.74rem;
    font-weight: 680;
    text-decoration: none;
}

.detail-back-link:hover {
    color: var(--teal-700);
}

.request-title__line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.request-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-top: 8px;
    color: var(--ink-600);
    font-size: 0.78rem;
}

.summary-grid--premium > div {
    position: relative;
    overflow: hidden;
}

.summary-grid--premium > div::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--teal-600);
    content: "";
}

.detail-section {
    padding: 0;
    overflow: hidden;
}

.detail-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 66px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--line-100);
    background: var(--surface-muted);
}

.detail-section__header > div {
    display: flex;
    align-items: center;
    gap: 11px;
}

.detail-section__header h2 {
    margin: 0;
    color: var(--ink-950);
    font-size: 0.96rem;
    font-weight: 750;
}

.detail-section__icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border: 1px solid #c9dfe0;
    border-radius: 9px;
    background: #fff;
    color: var(--teal-700);
}

.detail-table-scroll {
    border: 0;
    border-radius: 0;
}

.detail-items-table {
    min-width: 920px;
}

.line-number {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--line-200);
    border-radius: 8px;
    background: var(--surface-muted);
    color: var(--ink-700);
    font-size: 0.72rem;
    font-weight: 750;
}

.detail-copy {
    color: var(--ink-700);
    line-height: 1.6;
}

.quantity-badge,
.sample-badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid #c9dfe0;
    border-radius: 999px;
    background: var(--teal-50);
    color: var(--teal-700);
    font-size: 0.7rem;
    font-weight: 740;
    white-space: nowrap;
}

.sample-badge {
    border-color: #ead9a5;
    background: #fffaf0;
    color: var(--warning-800);
}

.detail-compact-empty {
    padding: 28px 20px;
}

.detail-file-list {
    margin: 0;
    padding: 18px 20px 20px;
}

.request-workflow-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .8fr);
    gap: 24px;
    align-items: start;
}

.workflow-panel,
.history-panel {
    min-width: 0;
}

.timeline--premium {
    padding: 22px 24px 24px 54px;
}

.timeline--premium::before {
    top: 28px;
    bottom: 30px;
    left: 31px;
}

.timeline--premium li::before {
    left: -29px;
}

.timeline__heading {
    color: var(--ink-950);
    font-weight: 740;
}

.timeline__assignee {
    color: var(--ink-600);
    font-size: 0.72rem;
}

.action-center {
    position: sticky;
    top: calc(var(--topbar-height) + 24px);
    overflow: hidden;
    padding: 0;
    border-top: 3px solid var(--brand-800);
}

.action-center__header {
    padding: 17px 20px;
    border-bottom: 1px solid var(--line-100);
    background: var(--surface-muted);
}

.action-center__header h2 {
    margin: 0;
    color: var(--ink-950);
    font-size: 0.96rem;
}

.action-center__empty {
    padding: 24px 20px;
    color: var(--ink-600);
    font-size: 0.78rem;
    text-align: center;
}

.action-card {
    padding: 20px;
}

.action-card + .action-card {
    border-top: 1px solid var(--line-100);
}

.action-card__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.action-card__heading h3,
.action-card__heading strong {
    margin: 0;
    color: var(--ink-950);
    font-size: 0.84rem;
}

.action-card__icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid var(--line-200);
    border-radius: 9px;
    background: var(--surface-muted);
    color: var(--brand-800);
}

.action-card__help {
    margin: 8px 0 0;
    color: var(--ink-600);
    font-size: 0.7rem;
    line-height: 1.5;
}

.action-card--decision .action-card__icon { color: var(--warning-800); background: #fffaf0; }
.action-card--primary .action-card__icon { color: var(--info-700); background: #f3f8fb; }
.action-card--success .action-card__icon { color: var(--success-700); background: #f3faf6; }
.action-card--danger-zone { background: #fffafa; }
.action-card--danger-zone .action-card__icon { color: var(--danger-700); background: #fff2f1; }

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

.timeline--history {
    padding-top: 20px;
    padding-bottom: 20px;
}

@media (max-width: 1100px) {
    .attachment-workspace,
    .request-workflow-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .action-center {
        position: static;
    }
}

@media (max-width: 767px) {
    .form-progress {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .form-progress li {
        justify-content: center;
        padding-inline: 6px;
        text-align: center;
    }

    .section-heading--rich,
    .detail-section__header,
    .sticky-actions--form {
        align-items: stretch;
        flex-direction: column;
    }

    .section-heading__actions,
    .sticky-actions__buttons {
        width: 100%;
        justify-content: stretch;
    }

    .section-heading__actions .button,
    .sticky-actions__buttons .button {
        flex: 1 1 140px;
    }

    .file-list--rich li {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .file-list__action {
        grid-column: 2;
        justify-self: start;
    }

    .request-metadata {
        flex-direction: column;
    }

    .decision-buttons {
        grid-template-columns: minmax(0, 1fr);
    }

    .timeline--premium {
        padding-right: 18px;
        padding-left: 48px;
    }

    .timeline--premium::before {
        left: 25px;
    }
}

@media (max-width: 480px) {
    .form-progress {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Small semantic modifiers kept explicit for predictable component coverage. */
.alert__icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 8px;
    background: rgb(255 255 255 / 72%);
}

.app-nav__group--management {
    margin-top: 18px;
}

.approval-table,
.procurement-table,
.request-table,
.report-table,
.audit-table,
.import-preview-table {
    min-width: 860px;
}

.auth-card__notice-content {
    min-width: 0;
    color: var(--ink-600);
    font-size: 0.76rem;
    line-height: 1.55;
}

.detail-section--items,
.detail-section--files {
    border-color: var(--line-200);
}

.empty-state__icon--success {
    border-color: #b9ddc9;
    background: #f3faf6;
    color: var(--success-700);
}

.filter-bar--requests {
    grid-template-columns: minmax(200px, 1.35fr) minmax(145px, .8fr) repeat(2, minmax(135px, .72fr)) minmax(150px, auto);
}

.filter-field--search {
    min-width: 0;
}

.item-field {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.management-card {
    overflow: hidden;
}

.management-card--create {
    border-top: 3px solid var(--teal-600);
}

.management-card--list {
    min-width: 0;
}

.page-header--management {
    align-items: center;
}

.reassign-form {
    padding: 14px;
    border: 1px solid var(--line-200);
    border-radius: 11px;
    background: var(--surface-muted);
}

.upload-zone__input {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    cursor: pointer;
    opacity: 0;
}

@media (min-width: 1200px) and (max-width: 1439px) {
    .filter-bar--requests {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-bar--requests .filter-field--search {
        grid-column: auto;
    }

    .filter-bar--requests .filter-actions {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .filter-bar--requests .filter-actions .button {
        width: 100%;
    }
}

@media (max-width: 1199px) {
    .filter-bar--requests {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .filter-bar--requests {
        grid-template-columns: minmax(0, 1fr);
    }

    .approval-table,
    .procurement-table,
    .request-table,
    .report-table,
    .audit-table,
    .import-preview-table {
        min-width: 0;
    }
}

@media (max-width: 420px) {
    .topbar__actions .icon-button:not(:first-child) {
        display: none;
    }

    .stat-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
    }

    .summary-grid,
    .quantity-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-heading .button,
    .heading-actions .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .app-sidebar,
    .app-topbar,
    .sidebar-scrim,
    .page-actions,
    .flash-stack,
    .no-print {
        display: none !important;
    }

    .app-main {
        margin: 0;
    }

    .app-content {
        max-width: none;
        padding: 0;
    }

    .card,
    .table-shell,
    .table-responsive {
        border-color: #bbb;
        box-shadow: none;
    }
}

/* Extended component hooks used by the server-rendered views. */
.btn__icon {
    display: inline-grid;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    place-items: center;
}

.btn__icon svg {
    width: 18px;
    height: 18px;
}

.btn__icon--end {
    margin-left: 2px;
}

.page-header--panel {
    padding: 22px 24px;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.dashboard-hero__content {
    min-width: 0;
}

.dashboard-hero__context {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--teal-700);
    font-size: 0.68rem;
    font-weight: 780;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dashboard-hero__context-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal-600);
    box-shadow: 0 0 0 4px var(--teal-100);
}

.dashboard-hero__action {
    flex: 0 0 auto;
}

.stat-card__accent {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 44px;
    height: 3px;
    border-radius: 3px 0 0;
    background: currentColor;
    opacity: 0.9;
}

.dashboard-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.82fr);
    gap: 24px;
    align-items: start;
}

.dashboard-section--recent {
    min-width: 0;
}

.section-heading__icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid var(--line-200);
    border-radius: 9px;
    background: var(--surface-muted);
    color: var(--teal-700);
}

.section-heading__icon svg {
    width: 18px;
    height: 18px;
}

.quick-access__item {
    border-bottom: 1px solid var(--line-100);
}

.quick-access__item:last-child {
    border-bottom: 0;
}

.quick-access__link {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--ink-900);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.quick-access__link:hover {
    color: var(--teal-700);
}

.quick-access__arrow {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 8px;
    background: var(--surface-muted);
    color: var(--ink-500);
    transition: color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.quick-access__link:hover .quick-access__arrow {
    background: var(--teal-100);
    color: var(--teal-700);
    transform: translateX(2px);
}

.notification-center__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 22px 24px;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.notification-center__intro {
    min-width: 0;
}

.notification-center__summary {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid #c9dfe0;
    border-radius: var(--radius-md);
    background: var(--teal-50);
}

.notification-center__summary-icon,
.notification-item__icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border: 1px solid var(--line-200);
    border-radius: 9px;
    background: #fff;
    color: var(--teal-700);
}

.notification-center__summary-copy {
    display: grid;
    gap: 2px;
    color: var(--ink-600);
    font-size: 0.68rem;
}

.notification-center__summary-copy strong {
    color: var(--ink-950);
    font-size: 0.92rem;
}

.notification-item__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.notification-item__unread {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--teal-600);
}

/* List and report workspaces */
.page-heading--workspace {
    align-items: center;
}

.page-heading__primary {
    min-width: 0;
}

.page-heading__metric {
    display: grid;
    min-width: 112px;
    padding: 11px 14px;
    border: 1px solid var(--line-200);
    border-radius: 11px;
    background: #fff;
    color: var(--ink-600);
    font-size: 0.67rem;
    box-shadow: var(--shadow-xs);
}

.page-heading__metric strong {
    margin-top: 2px;
    color: var(--ink-950);
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
}

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

.section-kicker {
    margin: 0 0 4px;
    color: var(--teal-700);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.result-count {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid var(--line-200);
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--ink-600);
    font-size: 0.7rem;
    font-weight: 710;
}

.filter-field {
    display: grid;
    min-width: 0;
    gap: 8px;
}

.filter-field__label {
    color: var(--ink-700);
    font-size: 0.7rem;
    font-weight: 760;
    letter-spacing: 0.025em;
}

.input-shell {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
}

.input-shell__icon {
    position: absolute;
    z-index: 1;
    left: 14px;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    color: var(--ink-500);
    pointer-events: none;
}

.input-shell__icon svg {
    width: 18px;
    height: 18px;
}

.input-shell__control {
    flex: 1;
    min-width: 0;
}

.input-shell--search .input-shell__control {
    padding-left: 43px;
    background: #fff;
}

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

.filter-bar--reports {
    grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
}

.workspace-results {
    display: grid;
    gap: 16px;
}

.table-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 62px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-100);
}

.table-panel__header h2 {
    margin: 0;
    color: var(--ink-950);
    font-size: 0.92rem;
    font-weight: 750;
}

.table-panel__meta {
    color: var(--ink-600);
    font-size: 0.72rem;
}

.table-action {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--line-300);
    border-radius: 8px;
    background: #fff;
    color: var(--brand-800);
    font-size: 0.72rem;
    font-weight: 740;
    text-decoration: none;
    white-space: nowrap;
}

.table-action:hover {
    border-color: #b1c8ca;
    background: var(--teal-50);
    color: var(--teal-700);
}

.revision-chip,
.stage-badge,
.waiting-time,
.assignee-chip {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid var(--line-200);
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--ink-700);
    font-size: 0.67rem;
    font-weight: 700;
    white-space: nowrap;
}

.stage-badge {
    border-color: #c9dfe0;
    background: var(--teal-50);
    color: var(--teal-700);
}

.waiting-time {
    border-color: #ead9a5;
    background: #fffaf0;
    color: var(--warning-800);
}

.assignee-chip {
    gap: 6px;
}

.assignee-chip::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--info-700);
    content: "";
}

/* Administrative grids and editors */
.admin-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

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

.admin-toggle-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
    padding: 12px 14px;
    border: 1px solid var(--line-200);
    border-radius: 11px;
    background: var(--surface-muted);
}

.admin-queue-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-form-card,
.admin-selected-card,
.admin-table-card {
    overflow: hidden;
}

.admin-selected-card {
    border-color: #bbd8d9;
    box-shadow: 0 0 0 1px var(--teal-100), var(--shadow-sm);
}

.admin-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-card-heading > div {
    min-width: 0;
}

.admin-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.admin-role-card,
.admin-role-option {
    padding: 14px;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-md);
    background: var(--surface-muted);
}

.admin-role-option {
    display: flex !important;
    min-height: 54px;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.admin-role-option:hover,
.admin-role-option:focus-within {
    border-color: #b7d3d4;
    background: var(--teal-50);
}

.admin-role-matrix {
    overflow: hidden;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-md);
}

.data-table--matrix th:not(:first-child),
.data-table--matrix td:not(:first-child) {
    text-align: center;
}

.admin-account-actions,
.admin-action-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-action-stack {
    flex-direction: column;
    align-items: stretch;
}

.admin-user-table tr.is-selected {
    background: var(--teal-50);
    box-shadow: inset 3px 0 var(--teal-600);
}

.card__footer--actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.card__footer--danger {
    border-top-color: #ebceca;
    background: #fff8f7;
}

.card__footer-note {
    margin-right: auto;
    color: var(--ink-600);
    font-size: 0.72rem;
}

.form-control--compact,
.table-field__control {
    min-height: 40px !important;
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
}

.table-field--wide {
    min-width: 220px;
}

.route-list {
    display: grid;
    gap: 18px;
}

.route-card__header {
    border-bottom: 1px solid var(--line-100);
}

.route-card__notice {
    margin-bottom: 16px;
    padding: 11px 12px;
    border: 1px solid #ead9a5;
    border-radius: 9px;
    background: #fffaf0;
    color: var(--warning-800);
    font-size: 0.74rem;
}

.route-editor__body,
.route-retire__body {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

/* Audit and spreadsheet import */
.audit-workspace,
.import-workspace {
    display: grid;
    gap: 24px;
}

.audit-filter-card,
.import-upload-card {
    margin: 0;
}

.audit-filter-bar {
    grid-template-columns: minmax(280px, 1.6fr) minmax(180px, .9fr) repeat(2, minmax(150px, .75fr)) auto;
}

.audit-filter-bar__search {
    grid-column: auto;
}

.audit-results,
.import-preview,
.batch-history {
    overflow: hidden;
}

.audit-results__body,
.batch-history__body {
    min-width: 0;
}

.audit-event-badge {
    display: inline-flex;
    padding: 4px 8px;
    border: 1px solid #c9dfe0;
    border-radius: 7px;
    background: var(--teal-50);
    color: var(--teal-700);
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 0.66rem;
    font-weight: 700;
}

.audit-actor-role,
.audit-reference {
    display: block;
    margin-top: 3px;
    color: var(--ink-600);
    font-size: 0.69rem;
}

.audit-correlation {
    display: inline-block;
    max-width: 150px;
    overflow: hidden;
    color: var(--ink-600);
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 0.65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.import-success {
    border-color: #b9ddc9;
    background: #f3faf6;
}

.activation-links {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.activation-link-field {
    display: flex;
    gap: 8px;
}

.activation-link-field input {
    min-width: 0;
}

.import-format-note,
.install-security-note {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid #c8dbe7;
    border-radius: 11px;
    background: #f3f8fb;
    color: var(--info-700);
    font-size: 0.76rem;
    line-height: 1.55;
}

.import-actions,
.import-apply-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.import-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.import-error-list {
    display: grid;
    gap: 7px;
    margin: 12px 0 0;
    padding-left: 20px;
    color: var(--danger-700);
    font-size: 0.76rem;
}

/* Installer and error details */
.error-page__visual {
    position: relative;
    display: grid;
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    place-items: center;
}

.error-page__visual-ring {
    position: absolute;
    inset: 0;
    border: 1px solid #c9dfe0;
    border-radius: 50%;
    background: var(--teal-50);
}

.error-page__visual-mark {
    position: relative;
    color: var(--teal-700);
    font-size: 2rem;
    font-weight: 780;
}

.error-page__eyebrow {
    margin: 0;
    color: var(--teal-700);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.error-page__message {
    max-width: 500px;
    margin-inline: auto;
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.error-page__support {
    margin-top: 22px !important;
    font-size: 0.72rem;
}

.install-brand__header,
.install-brand__footer {
    position: relative;
    z-index: 1;
}

.install-brand__logo {
    width: 86px;
    height: 86px;
}

.install-brand__footer {
    margin-top: auto;
    padding-top: 36px;
    color: rgb(255 255 255 / 44%);
    font-size: 0.7rem;
}

.install-preflight {
    margin-top: 32px;
    padding: 16px;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: var(--radius-md);
    background: rgb(255 255 255 / 5%);
}

.install-preflight__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.install-preflight__eyebrow {
    color: rgb(255 255 255 / 62%);
    font-size: 0.65rem;
    font-weight: 770;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.install-preflight__status {
    display: inline-flex;
    padding: 3px 8px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 750;
}

.install-preflight__status.is-ready { color: #9fdfbb; }
.install-preflight__status.is-failed { color: #ffc4be; }

.check-list__icon {
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
}

.check-list__label {
    min-width: 0;
}

.install-card__header {
    margin-bottom: 26px;
}

.install-card__eyebrow {
    margin: 0 0 6px;
    color: var(--teal-700);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.install-card__step-count {
    color: var(--ink-500);
    font-size: 0.72rem;
}

.install-form {
    display: grid;
    gap: 20px;
}

.install-step {
    position: relative;
    padding: 22px;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-xs);
}

.install-step--optional {
    background: var(--surface-muted);
}

.install-step__number {
    display: inline-grid;
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    place-items: center;
    border: 1px solid #c9dfe0;
    border-radius: 9px;
    background: var(--teal-50);
    color: var(--teal-700);
    font-size: 0.74rem;
    font-weight: 800;
}

.install-step__description {
    margin: 5px 0 17px;
    color: var(--ink-600);
    font-size: 0.76rem;
}

.install-step__optional {
    display: inline-flex;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--line-100);
    color: var(--ink-600);
    font-size: 0.62rem;
}

.install-field {
    display: grid;
    gap: 7px;
}

.install-form__footer {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    padding: 14px;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-md);
    background: rgb(255 255 255 / 97%);
    box-shadow: 0 -8px 24px rgb(6 31 53 / 8%);
}

.install-form__submit {
    min-width: 190px;
}

.install-security-note__icon,
.install-alert__icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 9px;
    background: #fff;
}

.install-alert {
    display: flex !important;
    gap: 12px;
}

.install-complete {
    padding: 32px;
    border: 1px solid #b9ddc9;
    border-radius: var(--radius-lg);
    background: #f3faf6;
    text-align: center;
}

.install-complete__icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    place-items: center;
    border-radius: 16px;
    background: #fff;
    color: var(--success-700);
    font-size: 1.4rem;
}

.install-complete__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 1199px) {
    .dashboard-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .audit-filter-bar__search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .page-header--panel,
    .notification-center__hero {
        padding: 18px;
    }

    .notification-center__hero,
    .filter-workspace__header,
    .table-panel__header {
        align-items: stretch;
        flex-direction: column;
    }

    .notification-center__summary {
        align-self: flex-start;
    }

    .filter-bar--compact,
    .filter-bar--reports,
    .audit-filter-bar,
    .admin-settings-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .audit-filter-bar__search {
        grid-column: auto;
    }

    .admin-role-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .activation-link-field,
    .import-actions,
    .import-apply-footer,
    .card__footer--actions {
        align-items: stretch;
        flex-direction: column;
    }

    .activation-link-field .button,
    .import-actions .button,
    .import-apply-footer .button,
    .card__footer--actions .button,
    .install-form__submit {
        width: 100%;
    }

    .card__footer-note {
        margin: 0 0 6px;
    }

    .install-step {
        padding: 18px;
    }

    .install-form__footer {
        right: 0;
        left: 0;
    }
}

/* ========================================================================== 
   Sapanca municipal interface — solid application layer
   ========================================================================== */

body.app-body {
    background: var(--canvas);
}

.app-sidebar {
    width: var(--sidebar-width);
    border-right-color: rgb(255 255 255 / 8%);
    background: var(--brand-950);
    box-shadow: 10px 0 32px rgb(6 31 53 / 8%);
}

.app-sidebar__header {
    padding: 0 16px;
}

.app-brand {
    min-height: 88px;
    gap: 13px;
    padding: 14px 10px;
    border-bottom-color: rgb(255 255 255 / 10%);
}

.app-brand__mark,
.app-brand__logo {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 18px rgb(0 0 0 / 16%);
}

.app-brand__mark img,
.app-brand__logo img,
.app-brand__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-brand__copy {
    display: grid;
    min-width: 0;
}

.app-brand__title {
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 760;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-brand__organization,
.app-brand__subtitle {
    color: rgb(255 255 255 / 61%);
    font-size: 0.66rem;
    font-weight: 680;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.app-brand__subtitle {
    margin-top: 4px;
}

.app-brand__organization {
    overflow: hidden;
    margin-top: 2px;
    color: rgb(255 255 255 / 45%);
    font-size: 0.59rem;
    letter-spacing: 0.075em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-nav {
    gap: 4px;
    padding: 18px 14px 24px;
}

.app-nav__group {
    display: grid;
    gap: 4px;
}

.app-nav__group + .app-nav__group {
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid rgb(255 255 255 / 8%);
}

.app-nav__label {
    margin: 8px 10px 6px;
    color: rgb(255 255 255 / 47%);
    font-size: 0.64rem;
    font-weight: 780;
    letter-spacing: 0.13em;
}

.app-nav__link {
    min-height: 46px;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: rgb(255 255 255 / 72%);
    font-size: 0.875rem;
    font-weight: 630;
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.app-nav__link:hover,
.app-nav__link:focus-visible {
    border-color: rgb(255 255 255 / 8%);
    background: rgb(255 255 255 / 7%);
    color: #fff;
}

.app-nav__link.is-active,
.app-nav__link[aria-current="page"] {
    border-color: rgb(255 255 255 / 12%);
    background: #fff;
    color: var(--brand-950);
    box-shadow: 0 8px 22px rgb(0 0 0 / 16%);
}

.app-nav__link.is-active::before,
.app-nav__link[aria-current="page"]::before {
    position: absolute;
    top: 50%;
    left: -12px;
    width: 3px;
    height: 21px;
    margin: 0;
    border-radius: 0 3px 3px 0;
    background: var(--accent-500);
    content: "";
    transform: translateY(-50%);
}

.app-nav__icon {
    color: currentColor;
    opacity: 0.92;
}

.app-nav__badge {
    border: 1px solid rgb(255 255 255 / 24%);
    background: var(--accent-500);
    color: var(--brand-950);
}

.app-sidebar__footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    padding: 17px 18px 20px;
    border-top: 1px solid rgb(255 255 255 / 9%);
    background: rgb(0 0 0 / 8%);
}

.app-sidebar__avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 15%);
    border-radius: 10px;
    background: rgb(255 255 255 / 10%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}

.app-sidebar__identity,
.app-sidebar__identity-copy {
    min-width: 0;
    padding: 0;
}

.app-sidebar__identity {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
}

.app-sidebar__identity-copy {
    display: grid;
}

.app-sidebar__name {
    overflow: hidden;
    color: #fff;
    font-size: 0.79rem;
    font-weight: 720;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-sidebar__unit,
.app-sidebar__security {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: rgb(255 255 255 / 52%);
    font-size: 0.67rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-sidebar__security {
    display: flex;
    gap: 7px;
    align-items: center;
    margin-top: 0;
    padding-left: 1px;
}

.app-sidebar__security > span {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--success-500, #23a46d);
    box-shadow: 0 0 0 3px rgb(35 164 109 / 14%);
}

.app-main {
    margin-left: var(--sidebar-width);
}

.app-topbar {
    min-height: var(--topbar-height);
    padding: 10px clamp(20px, 2.8vw, 40px);
    border-bottom-color: var(--line-200);
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 1px 0 rgb(6 31 53 / 2%);
    backdrop-filter: blur(16px) saturate(120%);
}

.topbar__start {
    gap: 14px;
}

.topbar__context {
    min-width: 0;
}

.topbar__eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--ink-700);
    font-size: 0.64rem;
    font-weight: 740;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar__title {
    color: var(--brand-950);
    font-size: clamp(1rem, 1.7vw, 1.23rem);
    font-weight: 760;
    letter-spacing: -0.02em;
}

.topbar__actions {
    gap: 10px;
}

.topbar__notification {
    position: relative;
}

.icon-button {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-color: var(--line-300);
    border-radius: 10px;
    background: #fff;
    color: var(--ink-700);
    box-shadow: var(--shadow-xs);
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.icon-button:hover {
    border-color: var(--line-400);
    background: var(--surface-muted);
    color: var(--brand-800);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.icon-button:active {
    transform: translateY(0);
}

.user-summary {
    gap: 10px;
    padding: 4px 0 4px 8px;
}

.user-summary__avatar {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border: 1px solid #c7dfe0;
    border-radius: 11px;
    background: var(--teal-100);
    color: var(--teal-700);
}

.user-summary__name {
    color: var(--ink-900);
    font-size: 0.8rem;
    font-weight: 750;
}

.user-summary__role {
    color: var(--ink-600);
    font-size: 0.68rem;
}

.app-content {
    max-width: none;
    padding: clamp(24px, 3vw, 40px);
}

.app-content__inner {
    width: min(100%, 1504px);
    margin: 0 auto;
}

.sidebar-scrim {
    background: rgb(6 31 53 / 68%);
    backdrop-filter: blur(2px);
}

/* Page rhythm and surfaces */
.page-header,
.page-heading {
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}

.page-header__lead {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 16px;
}

.page-header__icon,
.management-card__icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border: 1px solid #c8dfe0;
    border-radius: 12px;
    background: var(--teal-50);
    color: var(--teal-700);
}

.page-header__icon svg,
.management-card__icon svg {
    width: 22px;
    height: 22px;
}

.page-header__eyebrow,
.eyebrow {
    margin-bottom: 5px;
    color: var(--teal-700);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.page-header h1,
.page-header__title,
.page-heading h1 {
    color: var(--ink-950);
    font-size: clamp(1.55rem, 2.3vw, 2.05rem);
    font-weight: 760;
    letter-spacing: -0.035em;
}

.page-header__description,
.page-heading > div > p:not(.eyebrow) {
    max-width: 820px;
    margin-top: 8px;
    color: var(--ink-600);
    font-size: 0.9rem;
}

.page-actions,
.heading-actions,
.inline-actions {
    gap: 10px;
}

.card,
.panel {
    border-color: var(--line-200);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.panel {
    margin-bottom: 24px;
    padding: 24px;
}

.card + .card {
    margin-top: 24px;
}

.card__header,
.card__body,
.card__footer {
    padding: 20px 22px;
}

.card__header {
    align-items: center;
    border-bottom-color: var(--line-100);
}

.card__header h2,
.card__header h3,
.card__title,
.section-heading h2,
.section-title {
    color: var(--ink-950);
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: -0.015em;
}

.card__subtitle {
    margin-top: 5px;
    color: var(--ink-600);
    font-size: 0.79rem;
}

.card__footer {
    border-top-color: var(--line-100);
    background: var(--surface-muted);
}

.card--data,
.table-panel {
    overflow: hidden;
    padding: 0;
}

.dashboard-grid,
.content-grid,
.section-stack {
    gap: 24px;
}

.section-stack > .card + .card {
    margin-top: 0;
}

.section-heading {
    gap: 16px;
    margin-bottom: 20px;
}

.step-number {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border: 1px solid #c5dcde;
    border-radius: 9px;
    background: var(--teal-50);
    color: var(--teal-700);
}

/* Buttons */
.btn,
.button {
    min-height: 44px;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--brand-800);
    font-size: 0.82rem;
    font-weight: 720;
    letter-spacing: -0.005em;
    box-shadow: 0 1px 2px rgb(6 31 53 / 10%);
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.btn:hover,
.button:hover,
.button.primary:hover,
.btn--primary:hover {
    border-color: var(--brand-950);
    background: var(--brand-950);
    box-shadow: 0 8px 18px rgb(6 31 53 / 16%);
    transform: translateY(-1px);
}

.btn:active,
.button:active {
    box-shadow: var(--shadow-xs);
    transform: translateY(0);
}

.btn--secondary,
.button--secondary,
.button.secondary {
    border-color: var(--line-300);
    background: #fff;
    color: var(--ink-800);
}

.btn--secondary:hover,
.button--secondary:hover,
.button.secondary:hover {
    border-color: var(--line-400);
    background: var(--surface-muted);
    color: var(--brand-950);
}

.button.ghost {
    border-color: transparent;
    background: transparent;
    color: var(--teal-700);
    box-shadow: none;
}

.button.ghost:hover {
    border-color: #c9dfe0;
    background: var(--teal-50);
    color: var(--teal-700);
}

.btn--small,
.button--small,
.button.small {
    min-height: 36px;
    padding: 7px 11px;
    border-radius: 9px;
    font-size: 0.75rem;
}

.btn[disabled],
.button[disabled],
.btn[aria-disabled="true"],
.button[aria-disabled="true"],
.icon-button[disabled] {
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.5;
    transform: none;
}

/* Forms and filter workspace */
.form-grid {
    gap: 20px;
}

.form-grid--3 {
    gap: 18px;
}

.form-label,
.form-field label,
.form-group label,
.filter-bar label,
.stack-form label,
.request-form label,
.install-card label {
    color: var(--ink-800);
    font-size: 0.76rem;
    font-weight: 720;
}

.form-field label,
.form-group label,
.form-label {
    margin-bottom: 7px;
}

.form-control,
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--line-400);
    border-radius: 10px;
    background-color: #fff;
    color: var(--ink-950);
    font-size: 0.875rem;
    line-height: 1.45;
    box-shadow: inset 0 1px 1px rgb(6 31 53 / 3%);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

textarea {
    min-height: 112px;
    padding-block: 12px;
}

select {
    cursor: pointer;
}

input::placeholder,
textarea::placeholder {
    color: #8a969e;
    opacity: 1;
}

.form-control:hover:not([disabled]),
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):hover:not([disabled]),
select:hover:not([disabled]),
textarea:hover:not([disabled]) {
    border-color: #9eafb9;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--teal-600);
    outline: 0;
    box-shadow: var(--focus-ring), inset 0 1px 1px rgb(6 31 53 / 3%);
}

.form-control[readonly],
.form-control[disabled],
input[readonly],
input[disabled],
select[disabled],
textarea[readonly],
textarea[disabled] {
    border-color: var(--line-200);
    background: #edf1f2;
    color: var(--ink-600);
}

input[type="date"] {
    color-scheme: light;
}

input[type="file"] {
    min-height: 48px;
    padding: 5px;
    color: var(--ink-600);
}

input[type="file"]::file-selector-button {
    min-height: 36px;
    margin-right: 11px;
    padding: 7px 12px;
    border: 0;
    border-radius: 7px;
    background: var(--brand-100);
    color: var(--brand-900);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 730;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

input[type="file"]::file-selector-button:hover {
    background: var(--brand-800);
    color: #fff;
}

input[type="checkbox"],
input[type="radio"] {
    width: 19px;
    height: 19px;
    min-height: 19px;
    accent-color: var(--teal-700);
}

.form-help,
.field-help,
.form-field small,
.form-group small,
.auth-form__hint {
    margin-top: 6px;
    color: var(--ink-600);
    font-size: 0.72rem;
    line-height: 1.45;
}

.filter-workspace,
.filter-bar {
    position: relative;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.filter-bar {
    grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(150px, 0.8fr)) auto;
    gap: 14px;
    align-items: end;
}

.filter-bar--requests {
    grid-template-columns: minmax(200px, 1.35fr) minmax(145px, 0.8fr) repeat(2, minmax(135px, 0.72fr)) minmax(150px, auto);
}

.filter-workspace .filter-bar {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.filter-bar label {
    position: relative;
    gap: 8px;
}

.filter-bar label > span {
    color: var(--ink-700);
    font-size: 0.7rem;
    font-weight: 760;
    letter-spacing: 0.025em;
}

.filter-bar input,
.filter-bar select {
    min-height: 48px;
    background-color: var(--surface-muted);
}

.filter-bar input:focus,
.filter-bar select:focus {
    background-color: #fff;
}

.filter-bar .is-search-field input,
.search-control input {
    padding-left: 43px;
    background-color: #fff;
}

.filter-bar .is-search-field::before,
.search-control::before {
    position: absolute;
    z-index: 2;
    bottom: 15px;
    left: 16px;
    width: 13px;
    height: 13px;
    border: 2px solid var(--ink-500);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.filter-bar .is-search-field::after,
.search-control::after {
    position: absolute;
    z-index: 2;
    bottom: 13px;
    left: 29px;
    width: 7px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink-500);
    content: "";
    pointer-events: none;
    transform: rotate(45deg);
    transform-origin: left center;
}

.search-control {
    position: relative;
}

.filter-actions,
.filter-bar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.filter-actions .button,
.filter-bar__actions .button,
.filter-bar > button {
    min-height: 48px;
    padding-inline: 20px;
    white-space: nowrap;
}

.filter-summary,
.table-toolbar {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line-100);
    background: var(--surface-muted);
}

.table-toolbar__meta,
.filter-summary,
.table-toolbar__actions {
    color: var(--ink-600);
    font-size: 0.76rem;
}

/* Tables */
.table-shell,
.table-responsive,
.table-scroll {
    border-color: var(--line-200);
    border-radius: var(--radius-md);
    background: #fff;
    scrollbar-color: var(--line-400) transparent;
    scrollbar-width: thin;
}

.table-scroll {
    border: 1px solid var(--line-200);
}

.table-panel > .table-scroll,
.card--data > .table-responsive,
.card--data > .table-scroll,
.table-responsive--flush {
    border: 0;
    border-radius: 0;
}

.data-table,
.table-scroll table,
table.table {
    color: var(--ink-800);
    font-size: 0.81rem;
}

.data-table th,
.data-table td,
.table-scroll th,
.table-scroll td,
table.table th,
table.table td {
    padding: 13px 15px;
    border-bottom-color: var(--line-100);
}

.data-table th,
.table-scroll th,
table.table th {
    background: #f7f9fa;
    color: var(--ink-600);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.065em;
}

.data-table tbody tr,
.table-scroll tbody tr,
table.table tbody tr {
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.data-table tbody tr:hover,
.table-scroll tbody tr:hover,
table.table tbody tr:hover {
    background: var(--teal-50);
}

.data-table tbody tr:focus-within,
.table-scroll tbody tr:focus-within {
    background: var(--teal-50);
    box-shadow: inset 3px 0 var(--teal-600);
}

.table-link,
.text-link {
    color: var(--brand-800);
    font-weight: 750;
    text-decoration-thickness: 1px;
}

.table-link:hover,
.text-link:hover {
    color: var(--teal-700);
}

.table-primary {
    display: block;
    color: var(--ink-950);
    font-weight: 740;
}

.table-field {
    min-width: 150px;
}

.table-field input,
.table-field select {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.78rem;
}

.data-table--editor td {
    vertical-align: top;
}

.table-note,
.cell-muted {
    color: var(--ink-600);
}

/* Status, lists, alerts and empty states */
.status,
.status-badge,
.badge {
    min-height: 28px;
    gap: 7px;
    padding: 4px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.67rem;
    font-weight: 780;
}

.status--draft,
.status--withdrawn,
.status-draft,
.status-withdrawn,
.badge--neutral {
    border-color: var(--line-200);
}

.flash-stack {
    position: fixed;
    z-index: 90;
    top: calc(var(--topbar-height) + 16px);
    right: 24px;
    width: min(420px, calc(100vw - 32px));
    margin: 0;
    pointer-events: none;
}

.flash,
.alert {
    border-width: 1px;
    border-left-width: 4px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.flash {
    pointer-events: auto;
    animation: toast-in 220ms cubic-bezier(.2, .8, .2, 1) both;
}

.flash.is-leaving {
    animation: toast-out 180ms ease both;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-8px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
    to { opacity: 0; transform: translateX(14px) scale(.98); }
}

.compact-empty {
    padding: 34px 22px;
    color: var(--ink-600);
}

.empty-state {
    padding: clamp(42px, 7vw, 72px) 24px;
}

.empty-state__icon {
    width: 58px;
    height: 58px;
    margin-bottom: 17px;
    border: 1px solid #c7dfe0;
    border-radius: 16px;
    background: var(--teal-50);
    color: var(--teal-700);
    font-size: 1.35rem;
}

.empty-state h2,
.empty-state h3 {
    color: var(--ink-950);
    font-size: 1.02rem;
    font-weight: 750;
}

.empty-state p {
    margin-top: 9px;
    color: var(--ink-600);
    line-height: 1.6;
}

.list-row {
    min-height: 54px;
    padding: 12px 0;
    border-bottom-color: var(--line-100);
}

.list-row__title {
    color: var(--ink-900);
}

.notification-center,
.notification-panel {
    overflow: hidden;
}

.notification-item {
    grid-template-columns: 10px minmax(0, 1fr) auto;
    padding: 18px 20px;
    border-bottom-color: var(--line-100);
    transition: background-color var(--transition-fast);
}

.notification-item:hover {
    background: var(--surface-muted);
}

.notification-item.is-unread {
    background: var(--teal-50);
}

.notification-item__content {
    min-width: 0;
}

.notification-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 7px;
    color: var(--ink-700);
    font-size: 0.7rem;
}

/* Dashboard */
.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding: 26px 28px;
    border: 1px solid #cfdde1;
    border-left: 4px solid var(--teal-600);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.dashboard-hero h1 {
    margin: 4px 0 0;
    color: var(--ink-950);
    font-size: clamp(1.65rem, 2.6vw, 2.2rem);
    font-weight: 760;
    letter-spacing: -0.04em;
}

.dashboard-hero p:last-child {
    margin: 8px 0 0;
    color: var(--ink-600);
}

.dashboard-metrics,
.stat-grid {
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    position: relative;
    min-height: 142px;
    overflow: hidden;
    padding: 20px;
    border-color: var(--line-200);
    border-top-width: 1px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.stat-card::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 44px;
    height: 3px;
    border-radius: 3px 0 0;
    background: var(--line-400);
    content: "";
}

.stat-card--warning::after { background: var(--accent-500); }
.stat-card--danger::after { background: var(--danger-700); }
.stat-card--info::after { background: var(--info-700); }
.stat-card--success::after { background: var(--success-700); }

.stat-card--link:hover {
    border-color: var(--line-400);
    box-shadow: 0 12px 28px rgb(6 31 53 / 9%);
    transform: translateY(-2px);
}

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

.stat-card__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line-200);
    border-radius: 10px;
    background: var(--surface-muted);
    color: var(--teal-700);
}

.stat-card__icon svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.stat-card__content {
    margin-top: 14px;
}

.stat-card__label {
    color: var(--ink-600);
    font-size: 0.72rem;
    font-weight: 730;
}

.stat-card__value {
    margin-top: 11px;
    color: var(--ink-950);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 790;
    letter-spacing: -0.04em;
}

.stat-card__meta {
    margin-top: 9px;
    color: var(--ink-600);
    font-size: 0.72rem;
}

.dashboard-section {
    margin-top: 24px;
}

.quick-access .list-row,
.quick-access__item {
    min-height: 56px;
}

/* Request workflow */
.request-form {
    gap: 24px;
}

.item-row {
    border-color: var(--line-300);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.item-row-head {
    min-height: 54px;
    padding: 11px 14px;
    border-bottom-color: var(--line-200);
    background: var(--surface-muted);
}

.item-row-head strong {
    color: var(--ink-950);
    font-size: 0.83rem;
}

.item-fields {
    gap: 16px;
    padding: 18px;
}

.item-fields textarea {
    min-height: 112px;
}

.row-actions {
    gap: 7px;
}

.row-actions .icon-button {
    min-width: 38px;
    height: 36px;
    border-radius: 8px;
}

.summary-grid {
    gap: 12px;
    margin-bottom: 24px;
}

.summary-grid > div {
    min-height: 88px;
    padding: 16px;
    border-color: var(--line-200);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-xs);
}

.summary-grid span {
    color: var(--ink-600);
    font-size: 0.64rem;
    letter-spacing: 0.065em;
}

.summary-grid strong {
    margin-top: 8px;
    color: var(--ink-950);
    font-size: 0.86rem;
}

.action-panel {
    top: calc(var(--topbar-height) + 24px);
    border-top: 3px solid var(--brand-800);
}

.action-panel > form + form {
    margin-top: 20px;
    padding-top: 20px;
    border-top-color: var(--line-100);
}

.timeline {
    gap: 20px;
    padding-left: 31px;
}

.timeline::before {
    left: 9px;
    background: var(--line-300);
}

.timeline li::before {
    left: -27px;
    width: 12px;
    height: 12px;
    background: var(--teal-700);
    box-shadow: 0 0 0 3px var(--teal-100);
}

.revision-tabs a {
    min-width: 38px;
    height: 36px;
    border-radius: 9px;
}

.revision-tabs a.active,
.revision-tabs a[aria-current="page"] {
    border-color: var(--teal-700);
    background: var(--teal-700);
}

.file-list li {
    padding: 12px 14px;
    border-color: var(--line-200);
    border-radius: 10px;
    background: var(--surface-muted);
}

.sample-box {
    padding: 15px 16px;
    border-color: var(--line-400);
    border-radius: var(--radius-md);
    background: var(--surface-muted);
}

.sticky-actions {
    gap: 10px;
    padding: 14px;
    border-color: var(--line-200);
    border-radius: var(--radius-lg);
    background: rgb(255 255 255 / 97%);
    box-shadow: 0 -10px 30px rgb(6 31 53 / 9%);
}

/* Administration */
.management-card__intro {
    display: flex;
    align-items: center;
    gap: 14px;
}

.toggle-control {
    display: inline-flex !important;
    min-height: 36px;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.toggle-control > input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.toggle-control__track {
    position: relative;
    width: 42px;
    height: 24px;
    flex: 0 0 42px;
    border: 1px solid var(--line-400);
    border-radius: 999px;
    background: var(--line-200);
    transition: background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.toggle-control__track::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgb(6 31 53 / 22%);
    content: "";
    transition: transform var(--transition-base);
}

.toggle-control input:checked + .toggle-control__track {
    border-color: var(--teal-700);
    background: var(--teal-700);
}

.toggle-control input:checked + .toggle-control__track::after {
    transform: translateX(18px);
}

.toggle-control input:focus-visible + .toggle-control__track {
    box-shadow: var(--focus-ring);
}

.toggle-control__label {
    color: var(--ink-800);
    font-size: 0.76rem;
    font-weight: 700;
}

.route-card {
    overflow: hidden;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.route-card + .route-card {
    margin-top: 18px;
}

.route-card__identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--line-100);
    background: var(--surface-muted);
}

.route-card__code {
    color: var(--ink-700);
    font-size: 0.68rem;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.route-card__content {
    padding: 20px;
}

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

.route-summary__item {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line-200);
    border-radius: 10px;
    background: var(--surface-muted);
}

.route-summary__label,
.route-summary__value {
    display: block;
}

.route-summary__label {
    color: var(--ink-600);
    font-size: 0.65rem;
    font-weight: 750;
    text-transform: uppercase;
}

.route-summary__value {
    margin-top: 5px;
    color: var(--ink-950);
    font-size: 0.8rem;
    font-weight: 720;
}

.route-editor {
    display: grid;
    gap: 16px;
}

.route-editor__heading,
.route-retire__heading {
    margin: 0;
    color: var(--ink-950);
    font-size: 0.82rem;
    font-weight: 750;
}

.route-retire {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line-100);
}

.upload-zone {
    position: relative;
    display: grid !important;
    min-height: 168px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 16px !important;
    align-content: center;
    align-items: center;
    padding: 24px;
    border: 1px dashed #9fb5bf;
    border-radius: var(--radius-lg);
    background: var(--surface-muted);
    cursor: pointer;
    transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.upload-zone:hover,
.upload-zone:focus-within,
.upload-zone.is-dragging {
    border-color: var(--teal-600);
    background: var(--teal-50);
}

.upload-zone:focus-within {
    box-shadow: var(--focus-ring);
}

.upload-zone__icon {
    display: grid;
    width: 48px;
    height: 48px;
    grid-row: 1 / span 2;
    place-items: center;
    border: 1px solid #c9dfe0;
    border-radius: 12px;
    background: #fff;
    color: var(--teal-700);
}

.upload-zone__content {
    display: grid;
    gap: 3px;
    color: var(--ink-600);
    font-size: 0.77rem;
}

.upload-zone__content strong {
    color: var(--ink-950);
    font-size: 0.88rem;
}

.upload-zone__meta {
    grid-column: 2;
    color: var(--ink-700);
    font-size: 0.7rem;
}

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

/* Authentication, installer and error surfaces */
.auth-page {
    background: var(--canvas);
}

.auth-shell {
    position: relative;
    grid-template-columns: minmax(420px, 0.92fr) minmax(520px, 1.08fr);
    overflow: hidden;
    background: #fff;
}

.auth-brand,
.install-brand {
    position: relative;
    overflow: hidden;
    background: var(--brand-950);
}

.auth-brand__shape {
    position: absolute;
    border: 1px solid rgb(255 255 255 / 9%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-brand__shape--one {
    top: -120px;
    right: -150px;
    width: 380px;
    height: 380px;
}

.auth-brand__shape--two {
    right: 80px;
    bottom: -220px;
    width: 440px;
    height: 440px;
}

.auth-brand__content {
    position: relative;
    z-index: 1;
    display: flex;
    max-width: 620px;
    min-height: 100%;
    flex-direction: column;
    justify-content: center;
}

.auth-brand__identity {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 52px;
}

.auth-brand__logo-wrap,
.auth-brand img,
.install-brand img {
    display: grid;
    width: 86px;
    height: 86px;
    margin: 0;
    padding: 5px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 50%;
    background: #fff;
}

.auth-brand__logo-wrap img {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
}

.auth-brand__organization {
    color: rgb(255 255 255 / 72%);
    font-size: 0.72rem;
    font-weight: 760;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-brand__eyebrow {
    color: #9fd6d4;
    font-size: 0.7rem;
    font-weight: 780;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-brand h1,
.auth-brand__message h1 {
    max-width: 660px;
    margin: 10px 0 0;
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 730;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.auth-brand p,
.auth-brand__message p {
    max-width: 590px;
    margin-top: 18px;
    color: rgb(255 255 255 / 66%);
    font-size: 0.95rem;
    line-height: 1.7;
}

.auth-benefits {
    display: grid;
    gap: 12px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgb(255 255 255 / 76%);
    font-size: 0.8rem;
}

.auth-benefits li::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-500);
    content: "";
}

.auth-brand__footer {
    margin-top: auto;
    padding-top: 48px;
    color: rgb(255 255 255 / 43%);
    font-size: 0.7rem;
}

.auth-content {
    padding: clamp(32px, 6vw, 84px);
    background: #fff;
}

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

.auth-content__header {
    margin-bottom: 28px;
}

.auth-content__status,
.auth-content__note {
    margin-top: 22px;
}

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

.auth-card__header {
    margin-bottom: 26px;
}

.auth-card__eyebrow {
    margin: 0 0 7px;
    color: var(--teal-700);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.auth-card h2 {
    color: var(--ink-950);
    font-size: 1.65rem;
    font-weight: 760;
    letter-spacing: -0.035em;
}

.auth-card__intro {
    margin-top: 9px;
    color: var(--ink-600);
    line-height: 1.65;
}

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

.auth-input {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input__icon {
    position: absolute;
    z-index: 1;
    left: 15px;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    color: var(--ink-500);
    pointer-events: none;
}

.auth-input__icon svg {
    width: 19px;
    height: 19px;
}

.auth-input input {
    flex: 1;
    padding-left: 45px;
}

.auth-card__primary-action {
    width: 100%;
    min-height: 50px;
    justify-content: space-between;
    padding-inline: 18px;
}

.auth-card__secondary-link {
    display: inline-flex;
    color: var(--teal-700);
    font-size: 0.78rem;
    font-weight: 700;
}

.auth-card__notice,
.auth-result {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line-200);
    border-radius: 11px;
    background: var(--surface-muted);
}

.auth-card__notice-icon,
.auth-result__icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 9px;
    background: #fff;
    color: var(--teal-700);
}

.auth-result--success { border-color: #b9ddc9; background: #f3faf6; }
.auth-result--danger { border-color: #e7b8b4; background: #fff6f5; }
.auth-result--progress { border-color: #bcd4e4; background: #f4f8fb; }

.auth-result__spinner {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

.auth-content__help,
.auth-content__note {
    color: var(--ink-600);
    font-size: 0.75rem;
    line-height: 1.6;
}

.install-shell {
    grid-template-columns: minmax(380px, 0.78fr) minmax(560px, 1.22fr);
}

.install-card {
    width: min(100%, 860px);
    padding: clamp(36px, 5vw, 68px);
}

.install-card fieldset {
    gap: 18px;
    padding: 20px;
    border-color: var(--line-200);
    border-radius: var(--radius-lg);
    background: var(--surface-muted);
}

.error-page__panel {
    border-color: var(--line-200);
    border-top: 4px solid var(--teal-600);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.error-page__code {
    color: var(--brand-800);
    letter-spacing: -0.06em;
}

/* Accessible confirmation modal */
.confirm-dialog {
    width: min(92vw, 470px);
    max-width: 470px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-xl);
    background: #fff;
    color: var(--ink-950);
    box-shadow: 0 30px 90px rgb(6 31 53 / 30%);
}

.confirm-dialog::backdrop {
    background: rgb(6 31 53 / 66%);
    backdrop-filter: blur(3px);
}

.confirm-dialog__body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 15px;
    padding: 24px 24px 20px;
}

.confirm-dialog__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #e4c5a8;
    border-radius: 11px;
    background: #fff7ed;
    color: var(--warning-800);
    font-size: 1.1rem;
    font-weight: 800;
}

.confirm-dialog h2 {
    margin: 1px 0 6px;
    font-size: 1.06rem;
    font-weight: 760;
}

.confirm-dialog p {
    margin: 0;
    color: var(--ink-600);
    font-size: 0.84rem;
    line-height: 1.6;
}

.confirm-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 15px 24px;
    border-top: 1px solid var(--line-100);
    background: var(--surface-muted);
}

/* Responsive application geometry */
@media (max-width: 1199px) {
    .app-sidebar {
        width: 284px;
        box-shadow: var(--shadow-md);
    }

    .app-main {
        margin-left: 0;
    }

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

    .filter-bar > :first-child {
        grid-column: 1 / -1;
    }

    .filter-actions,
    .filter-bar__actions,
    .filter-bar > button {
        justify-self: stretch;
    }

    .filter-actions .button,
    .filter-bar__actions .button,
    .filter-bar > button {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .auth-shell,
    .install-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-brand,
    .install-brand {
        min-height: auto;
        padding: 30px;
    }

    .auth-brand__content {
        max-width: none;
    }

    .auth-brand__identity {
        margin-bottom: 24px;
    }

    .auth-brand h1,
    .auth-brand__message h1 {
        font-size: clamp(1.65rem, 5vw, 2.35rem);
    }

    .auth-benefits,
    .auth-brand__footer,
    .install-brand .check-list {
        display: none;
    }

    .auth-content {
        padding: 40px 24px 56px;
    }

    .route-summary {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    :root {
        --topbar-height: 64px;
    }

    .app-topbar {
        padding-inline: 14px;
    }

    .app-content {
        padding: 20px 14px 92px;
    }

    .page-header,
    .page-heading,
    .dashboard-hero {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 22px;
    }

    .dashboard-hero {
        padding: 22px;
    }

    .page-actions,
    .heading-actions {
        width: 100%;
        justify-content: stretch;
    }

    .page-actions .btn,
    .page-actions .button,
    .heading-actions .btn,
    .heading-actions .button,
    .dashboard-hero .btn,
    .dashboard-hero .button {
        flex: 1 1 150px;
    }

    .filter-workspace,
    .filter-bar {
        padding: 15px;
        border-radius: var(--radius-md);
    }

    .filter-workspace .filter-bar {
        padding: 0;
    }

    .filter-bar {
        grid-template-columns: minmax(0, 1fr);
    }

    .filter-bar > :first-child {
        grid-column: auto;
    }

    .panel:not(.table-panel) {
        padding: 18px;
    }

    .card__header,
    .card__body,
    .card__footer {
        padding: 17px;
    }

    .table-responsive--cards tr {
        margin-bottom: 12px;
        padding: 9px 14px;
        border-color: var(--line-200);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
    }

    .table-responsive--cards td {
        gap: 14px;
        padding: 9px 0;
        border-bottom-color: var(--line-100);
    }

    .table-responsive--cards td::before {
        color: var(--ink-700);
        font-size: 0.64rem;
        letter-spacing: 0.06em;
    }

    .item-fields {
        padding: 16px;
    }

    .sticky-actions {
        border-radius: 0;
    }

    .flash-stack {
        top: calc(var(--topbar-height) + 10px);
        right: 12px;
        width: calc(100vw - 24px);
    }

    .upload-zone {
        min-height: 150px;
        padding: 20px;
    }

    .confirm-dialog__actions {
        flex-direction: column-reverse;
    }

    .confirm-dialog__actions .button,
    .confirm-dialog__actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .app-brand__title {
        font-size: 0.84rem;
    }

    .page-header__icon,
    .management-card__icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .stat-grid,
    .dashboard-metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .stat-card {
        min-height: 126px;
    }

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

    .upload-zone {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
    }

    .upload-zone__icon {
        grid-row: auto;
        justify-self: center;
    }

    .upload-zone__meta {
        grid-column: auto;
    }
}

@media (prefers-contrast: more) {
    :root {
        --line-400: #748995;
        --line-300: #91a2ab;
        --line-200: #b2bec4;
    }

    .btn,
    .button,
    .status,
    .badge,
    .status-badge {
        border-width: 2px;
    }
}

@media print {
    .confirm-dialog,
    .filter-bar,
    .filter-workspace,
    .sticky-actions {
        display: none !important;
    }

    body,
    .app-body,
    .app-content {
        background: #fff !important;
    }
}

/* Final cascade guarantees for modifier classes that extend generic panels. */
.detail-section {
    padding: 0;
}

.sticky-actions--form {
    align-items: center;
    justify-content: space-between;
}

.management-card--create {
    border-top: 3px solid var(--teal-600);
}

.filter-bar--requests {
    grid-template-columns: minmax(280px, 1.6fr) minmax(180px, .8fr) repeat(2, minmax(150px, .7fr)) auto;
}

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

.filter-bar--reports {
    grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
}

.audit-filter-bar {
    grid-template-columns: minmax(280px, 1.6fr) minmax(180px, .9fr) repeat(2, minmax(150px, .75fr)) auto;
}

.approval-table,
.procurement-table,
.request-table,
.report-table,
.audit-table,
.import-preview-table {
    min-width: 860px;
}

.page-header--panel {
    padding: 22px 24px;
}

.page-header--management {
    align-items: center;
}

.upload-zone__input {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    padding: 0 !important;
    cursor: pointer;
    opacity: 0;
}

@media (max-width: 1199px) {
    .filter-bar--requests,
    .filter-bar--reports,
    .audit-filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 767px) {
    .sticky-actions--form {
        align-items: stretch;
    }

    .filter-bar--requests,
    .filter-bar--compact,
    .filter-bar--reports,
    .audit-filter-bar {
        grid-template-columns: minmax(0, 1fr);
    }

    .approval-table,
    .procurement-table,
    .request-table,
    .report-table,
    .audit-table,
    .import-preview-table {
        min-width: 0;
    }
}

@media print {
    .detail-section,
    .page-header--panel {
        border-color: #bbb;
        box-shadow: none;
    }
}

/* Desktop geometry and intrinsic-size hardening. */
.app-main,
.app-content,
.app-content__inner,
.page-header,
.page-heading,
.card,
.panel,
.filter-workspace,
.filter-bar,
.table-panel,
.workspace-results,
form {
    min-width: 0;
}

.app-content__inner {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
}

.app-sidebar__footer {
    display: block;
}

.app-sidebar__identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.app-sidebar__security {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 9px 0 0 49px;
}

.app-sidebar__security > span {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: #68c69a;
    box-shadow: 0 0 0 3px rgb(104 198 154 / 12%);
}

.btn > svg,
.button > svg,
.icon-button > svg,
.auth-card__primary-action > svg,
.install-form__footer svg,
.install-form__submit > svg,
.table-action > svg,
.page-actions svg,
.heading-actions svg,
.filter-actions svg,
.card__footer svg {
    display: block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    max-width: 18px;
    min-height: 18px;
    max-height: 18px;
    flex: 0 0 18px;
}

.icon-button > svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: 20px;
    min-height: 20px;
    max-height: 20px;
    flex-basis: 20px;
}

.auth-card__primary-action {
    min-height: 50px;
    padding: 11px 17px;
}

.auth-card__primary-action > span {
    min-width: 0;
}

.auth-content__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-content__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal-700);
    font-size: 0.72rem;
    font-weight: 720;
}

.auth-content__status > span {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--teal-600);
    box-shadow: 0 0 0 4px var(--teal-100);
}

.auth-content__help {
    color: var(--ink-500);
    font-size: 0.7rem;
}

.auth-brand {
    padding: clamp(48px, 5.4vw, 88px);
}

.auth-card,
.auth-content__inner {
    max-width: 460px;
}

.auth-card__secondary-link {
    justify-self: center;
    text-decoration: none;
}

.auth-card__secondary-link:hover {
    text-decoration: underline;
}

.filter-bar--requests {
    grid-template-columns:
        minmax(220px, 1.45fr)
        minmax(135px, .72fr)
        minmax(135px, .66fr)
        minmax(135px, .66fr)
        minmax(158px, auto);
}

.filter-actions {
    align-self: end;
    justify-content: flex-end;
}

.filter-actions .button,
.filter-actions .btn {
    white-space: nowrap;
}

.filter-field small {
    color: var(--ink-500);
    font-size: 0.7rem;
    font-weight: 450;
    line-height: 1.35;
}

.page-header__eyebrow,
.eyebrow,
.section-kicker,
.topbar__eyebrow {
    font-size: 0.69rem;
}

.card__subtitle,
.page-header__description,
.page-heading > div > p:not(.eyebrow) {
    line-height: 1.55;
}

.data-table,
.table-scroll table,
table.table {
    font-size: 0.82rem;
}

.data-table th,
.table-scroll th,
table.table th {
    font-size: 0.68rem;
}

@media (min-width: 1280px) and (max-width: 1439px) {
    .app-content {
        padding: 28px;
    }

    .page-header,
    .page-heading {
        margin-bottom: 24px;
    }

    .filter-workspace,
    .filter-bar {
        padding: 16px;
    }

    .filter-workspace .filter-bar {
        padding: 0;
    }

    .filter-bar--requests {
        gap: 11px;
    }
}

@media (min-width: 1440px) {
    .app-content {
        padding: 32px 36px 44px;
    }
}

@media (max-width: 1279px) {
    .app-sidebar {
        width: 284px;
        transform: translateX(-102%);
        transition: transform var(--transition-base);
        box-shadow: var(--shadow-md);
    }

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

    .nav-open .sidebar-scrim {
        display: block;
    }

    .app-main {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: inline-grid;
    }

    .app-content {
        padding: 28px;
    }

    .filter-bar--requests,
    .filter-bar--reports,
    .audit-filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-field--search,
    .audit-filter-bar__search {
        grid-column: 1 / -1;
    }

    .filter-actions {
        justify-content: stretch;
    }

    .filter-actions .button,
    .filter-actions .btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 767px) {
    .app-content {
        padding: 20px 14px 92px;
    }

    .filter-bar--requests,
    .filter-bar--reports,
    .audit-filter-bar {
        grid-template-columns: minmax(0, 1fr);
    }

    .filter-field--search,
    .audit-filter-bar__search {
        grid-column: auto;
    }

    .auth-brand {
        padding: 28px 22px;
    }

    .auth-content {
        padding: 36px 20px 48px;
    }
}

/* Density hooks for the simplified desktop shell and administration pages. */
.topbar__context {
    display: flex;
    min-height: 40px;
    align-items: center;
}

.app-sidebar__footer > .app-sidebar__identity:only-child {
    min-height: 40px;
}

.auth-content__inner > .auth-card:first-child,
.section-heading > div > h2:only-child,
.card__header > div > h2:only-child {
    margin-top: 0;
}

.admin-stat-grid--compact .stat-card {
    min-height: 108px;
    padding: 16px 18px;
}

.admin-stat-grid--compact .stat-card__value {
    margin-top: 9px;
    font-size: 1.8rem;
}

.admin-user-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    gap: 20px;
    align-items: start;
}

.admin-user-workspace > .card,
.admin-user-workspace > .panel {
    margin: 0;
}

.admin-user-workspace > .admin-role-card,
.admin-user-workspace > .admin-role-matrix,
.admin-user-workspace > .admin-table-card {
    grid-column: 1 / -1;
}

.admin-user-workspace .admin-account-actions {
    align-content: start;
}

@media (max-width: 1199px) {
    .admin-user-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-user-workspace > .admin-role-card,
    .admin-user-workspace > .admin-role-matrix,
    .admin-user-workspace > .admin-table-card {
        grid-column: auto;
    }
}

/* Typography normalization: the UI uses only regular, medium, semibold and bold. */
body,
input,
select,
textarea,
td,
dd,
p {
    font-weight: 400;
}

.page-header__description,
.page-heading > div > p:not(.eyebrow),
.card__subtitle,
.stat-card__meta,
.form-help,
.field-help,
.form-field small,
.form-group small,
.filter-field small,
.cell-muted,
.table-note,
.section-description,
.detail-copy,
.auth-card__intro,
.auth-content__note,
.auth-content__help,
.install-step__description {
    font-weight: 400 !important;
}

.app-nav__link,
.btn,
.button,
.icon-button,
.form-label,
.form-field label,
.form-group label,
label.form-field,
label.item-field,
.request-form label > span,
.filter-field__label,
.filter-bar label,
.table-link,
.text-link,
.table-action,
.quick-access__link,
.auth-card__secondary-link,
.toggle-control__label,
.revision-chip,
.stage-badge,
.waiting-time,
.assignee-chip {
    font-weight: 600 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b,
th,
.app-brand__title,
.app-sidebar__name,
.topbar__title,
.user-summary__name,
.page-header__eyebrow,
.eyebrow,
.section-kicker,
.stat-card__value,
.status,
.status-badge,
.badge,
.result-count,
.step-number,
.item-index-badge,
.item-count,
.revision-label,
.audit-event-badge {
    font-weight: 700 !important;
}

.item-action--move {
    color: var(--ink-600);
}

/* Final desktop grid: compact, centred and free of orphaned filter actions. */
.sidebar-toggle {
    display: none;
}

.filter-bar--requests {
    grid-template-columns: minmax(200px, 1.35fr) minmax(130px, .72fr) repeat(2, minmax(128px, .68fr)) minmax(154px, auto);
}

.filter-bar--reports {
    grid-template-columns: repeat(4, minmax(128px, 1fr)) minmax(154px, auto);
}

.filter-bar--compact {
    grid-template-columns: minmax(220px, 1.35fr) minmax(140px, .75fr) minmax(154px, auto);
}

.filter-bar--requests .filter-actions,
.filter-bar--reports .filter-actions,
.filter-bar--compact .filter-actions {
    grid-column: auto;
    justify-self: end;
}

.filter-bar--requests .filter-field--search small,
.filter-bar--compact .filter-field small,
.filter-bar--reports .filter-field small {
    display: none;
}

.item-row-title > div,
.sample-box--rich > summary > span:not(.sample-box__icon) {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.item-row-title strong,
.item-row-title small,
.sample-box--rich > summary strong,
.sample-box--rich > summary small {
    display: block;
}

.item-row-title small,
.sample-box--rich > summary small {
    color: var(--ink-600);
    font-size: 0.66rem;
    font-weight: 500;
    line-height: 1.35;
}

.item-count {
    gap: 4px;
}

@media (min-width: 1200px) {
    .admin-user-workspace > .admin-selected-card {
        grid-row: 1;
        grid-column: 1;
    }

    .admin-user-workspace > .admin-account-actions {
        grid-row: 1;
        grid-column: 2;
    }

    .admin-user-workspace > .admin-role-card {
        grid-row: 2;
        grid-column: 1 / -1;
    }
}

@media (max-width: 1279px) {
    .sidebar-toggle {
        display: inline-grid;
    }
}

@media (max-width: 1199px) {
    .filter-bar--requests,
    .filter-bar--reports,
    .filter-bar--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-bar--requests .filter-field--search {
        grid-column: 1 / -1;
    }

    .filter-bar--requests .filter-actions,
    .filter-bar--reports .filter-actions,
    .filter-bar--compact .filter-actions {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .filter-bar--requests .filter-actions .button,
    .filter-bar--reports .filter-actions .button,
    .filter-bar--compact .filter-actions .button {
        flex: 1 1 auto;
    }

    .admin-user-workspace > .admin-selected-card,
    .admin-user-workspace > .admin-account-actions,
    .admin-user-workspace > .admin-role-card {
        grid-row: auto;
        grid-column: auto;
    }
}

@media (max-width: 767px) {
    .filter-bar--requests,
    .filter-bar--reports,
    .filter-bar--compact {
        grid-template-columns: minmax(0, 1fr);
    }

    .filter-bar--requests .filter-field--search,
    .filter-bar--requests .filter-actions,
    .filter-bar--reports .filter-actions,
    .filter-bar--compact .filter-actions {
        grid-column: auto;
    }
}

/* Final component fixes validated against the simplified view markup. */
.auth-benefits li::before {
    display: none;
}

.auth-benefits__icon,
.auth-benefits__icon svg {
    display: block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    max-width: 16px;
    min-height: 16px;
    max-height: 16px;
    flex: 0 0 16px;
}

.auth-benefits__icon {
    color: #9fd6d4;
}

.input-shell--search > .input-shell__control {
    padding-left: 44px;
}

.item-row__lock-icon,
.item-row__lock-icon svg {
    display: block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    max-width: 16px;
    flex: 0 0 16px;
}

@media (min-width: 768px) {
    .item-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .item-field--name {
        grid-row: 1;
        grid-column: 1;
    }

    .item-field--quantity {
        grid-row: 1;
        grid-column: 2;
    }

    .item-field--spec {
        grid-row: 2;
        grid-column: 1;
    }

    .item-field--reason {
        grid-row: 2;
        grid-column: 2;
    }
}

/* Final type scale: four supported weights and readable operational density. */
body :where(*) {
    font-weight: 400 !important;
}

.app-brand__subtitle,
.app-brand__organization,
.user-summary__role,
.app-sidebar__unit,
.app-sidebar__security,
.cell-muted,
.table-note,
.table-panel__meta,
.notification-item__meta,
.item-row-title small,
.sample-box--rich > summary small {
    font-weight: 500 !important;
}

.app-nav__link,
.btn,
.button,
.icon-button,
.form-label,
.form-field label,
.form-group label,
.filter-field__label,
.filter-bar label,
.table-link,
.text-link,
.table-action,
.quick-access__link,
.auth-card__secondary-link,
.toggle-control__label,
.revision-chip,
.stage-badge,
.waiting-time,
.assignee-chip {
    font-weight: 600 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b,
th,
.app-brand__title,
.app-nav__label,
.app-nav__badge,
.icon-button__badge,
.app-sidebar__name,
.topbar__title,
.user-summary__name,
.page-header__eyebrow,
.eyebrow,
.section-kicker,
.stat-card__value,
.status,
.status-badge,
.badge,
.result-count,
.step-number,
.item-index-badge,
.item-count,
.revision-label,
.audit-event-badge {
    font-weight: 700 !important;
}

.data-table,
.table-scroll table,
table.table {
    font-size: 0.875rem;
}

.data-table th,
.table-scroll th,
table.table th {
    font-size: 0.78rem;
    letter-spacing: 0.035em;
}

.filter-field__label,
.filter-bar label > span,
.form-label,
.form-field label,
.form-group label {
    font-size: 0.78rem;
}

label.form-field,
label.item-field,
.request-form label,
.request-form label > span {
    font-size: 0.78rem;
    font-weight: 600 !important;
}

.card__subtitle,
.stat-card__meta,
.form-help,
.field-help,
.form-field small,
.form-group small,
.filter-field small,
.cell-muted,
.table-note,
.table-panel__meta,
.page-header__description,
.page-heading > div > p:not(.eyebrow),
.section-description,
.detail-copy,
.auth-card__intro,
.auth-content__note,
.auth-content__help,
.install-step__description {
    font-size: max(0.75rem, 12px);
}

/* Desktop rail owns its scroll area; the identity footer always remains visible. */
.app-sidebar {
    overflow: hidden;
}

.app-nav {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgb(255 255 255 / 22%) transparent;
    scrollbar-width: thin;
}

.app-nav::-webkit-scrollbar {
    width: 6px;
}

.app-nav::-webkit-scrollbar-track {
    background: transparent;
}

.app-nav::-webkit-scrollbar-thumb {
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgb(255 255 255 / 20%);
    background-clip: padding-box;
}

.app-nav::-webkit-scrollbar-thumb:hover {
    background: rgb(255 255 255 / 32%);
    background-clip: padding-box;
}

@media (min-width: 1280px) {
    .app-brand {
        min-height: 80px;
        padding-block: 10px;
    }

    .app-nav {
        gap: 2px;
        padding: 12px 12px 14px;
    }

    .app-nav__group {
        gap: 2px;
    }

    .app-nav__group + .app-nav__group,
    .app-nav__group--management {
        margin-top: 12px;
        padding-top: 11px;
    }

    .app-nav__label {
        margin: 5px 10px 4px;
    }

    .app-nav__link {
        min-height: 42px;
        padding: 8px 11px;
    }

    .app-sidebar__footer {
        padding: 12px 16px 14px;
    }
}

.auth-card__primary-action {
    justify-content: center;
}

@media (min-width: 1280px) {
    .topbar__start {
        display: none;
    }

    .app-topbar {
        justify-content: flex-end;
    }
}

.input-shell--search > .input-shell__control,
.filter-bar .is-search-field input {
    padding-left: 44px !important;
}

.auth-input > input,
.auth-input > .form-control {
    padding-left: 45px !important;
}

/* --------------------------------------------------------------------------
   Desktop polish: fixed navigation rail and one consistent search control.
   -------------------------------------------------------------------------- */

/*
 * Search icons used to be positioned against the label box. That placed the
 * glyph at the top edge of a 48px input whenever the label added its own row.
 * A single input background keeps every search control centred, including the
 * audit screen where the input is not wrapped by .input-shell.
 */
input[type="search"] {
    min-height: 48px;
    padding-inline-start: 46px !important;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566c79' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.25 4.25'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 15px center !important;
    background-size: 18px 18px !important;
}

input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

input[type="search"]::-webkit-search-cancel-button {
    cursor: pointer;
    opacity: 0.58;
}

/* Hide legacy inline/pseudo magnifiers so the centred glyph is never doubled. */
.input-shell--search > .input-shell__icon {
    display: none;
}

.filter-bar .is-search-field::before,
.filter-bar .is-search-field::after,
.search-control::before,
.search-control::after {
    display: none;
    content: none;
}

/* All filter labels, controls and actions share one baseline and 48px rhythm. */
.filter-bar > .filter-field,
.filter-bar > .form-field {
    align-self: end;
}

.filter-bar > .filter-field > .filter-field__label,
.filter-bar > .form-field > label {
    display: flex;
    min-height: 18px;
    align-items: flex-end;
    margin: 0;
    line-height: 1.2;
}

.filter-bar input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.filter-bar select,
.filter-actions,
.filter-bar__actions {
    min-height: 48px;
}

.filter-bar input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.filter-bar select {
    height: 48px;
}

.filter-actions,
.filter-bar__actions {
    align-items: stretch;
}

.filter-actions > .button,
.filter-actions > .btn,
.filter-bar__actions > .button,
.filter-bar__actions > .btn {
    min-height: 48px;
    align-self: stretch;
}

/* Desktop navigation is a fixed rail: no cascading or vertically opening UI. */
@media (min-width: 1280px) {
    .app-sidebar {
        height: 100vh;
        height: 100dvh;
    }

    .app-sidebar__header {
        flex: 0 0 auto;
    }

    .app-nav {
        flex: 1 1 auto;
        overflow: hidden;
        overscroll-behavior: none;
        scrollbar-width: none;
    }

    .app-nav::-webkit-scrollbar {
        display: none;
    }
}

/* Keep every desktop destination visible on common 1366x768 workstations. */
@media (min-width: 1280px) and (max-height: 860px) {
    .app-brand {
        min-height: 70px;
        padding-block: 8px;
    }

    .app-brand__mark,
    .app-brand__logo {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .app-nav {
        gap: 1px;
        padding: 8px 12px 10px;
    }

    .app-nav__group {
        gap: 1px;
    }

    .app-nav__group + .app-nav__group,
    .app-nav__group--management {
        margin-top: 7px;
        padding-top: 7px;
    }

    .app-nav__label {
        margin: 3px 10px 2px;
        font-size: 0.6rem;
    }

    .app-nav__link {
        min-height: 36px;
        gap: 10px;
        padding: 6px 10px;
        font-size: 0.81rem;
    }

    .app-nav__icon {
        width: 19px;
        height: 19px;
        flex-basis: 19px;
    }

    .app-nav__icon svg {
        width: 18px;
        height: 18px;
    }
}

/*
 * Stable application shell
 * The server renders the persisted rail width on <html>; transitions are
 * enabled only for a deliberate collapse-button interaction in app.js.
 */
html.sidebar-collapsed {
    --sidebar-current-width: var(--sidebar-collapsed-width);
}

body.app-body,
.app-shell,
.app-main {
    min-height: 100vh;
    min-height: 100dvh;
}

.app-sidebar {
    width: var(--sidebar-current-width);
    transition: none;
}

.app-main {
    display: flex;
    width: auto;
    min-width: 0;
    flex-direction: column;
    margin-left: var(--sidebar-current-width);
    transition: none;
}

.app-topbar {
    width: 100%;
    height: var(--topbar-height);
    min-height: var(--topbar-height);
    flex: 0 0 var(--topbar-height);
}

.app-content {
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: 1 0 auto;
}

.app-content__inner {
    width: 100%;
    max-width: var(--shell-content-max);
    margin-inline: auto;
}

.app-footer {
    width: 100%;
    flex: 0 0 auto;
    padding: 0 28px;
    border-top: 1px solid var(--line-200);
    background: rgb(255 255 255 / 72%);
    color: var(--ink-600);
}

.app-footer__inner {
    display: flex;
    width: 100%;
    max-width: var(--shell-content-max);
    min-height: 58px;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: center;
}

.sidebar-collapse-toggle {
    display: none;
}

.sidebar-mobile-close {
    display: none;
}

.app-nav__link {
    position: relative;
}

.app-nav__link:hover,
.app-nav__link:focus-visible {
    transform: none;
}

.app-nav__link.is-active::before,
.app-nav__link[aria-current="page"]::before {
    position: absolute;
    top: 50%;
    left: -12px;
    width: 3px;
    height: 21px;
    margin: 0;
    border-radius: 0 3px 3px 0;
    background: var(--accent-500);
    content: "";
    transform: translateY(-50%);
}

html.sidebar-is-animating .app-sidebar {
    will-change: width;
    transition: width 220ms cubic-bezier(.2, 0, 0, 1);
}

html.sidebar-is-animating .app-main {
    will-change: margin-left;
    transition: margin-left 220ms cubic-bezier(.2, 0, 0, 1);
}

html.sidebar-is-animating .sidebar-collapse-toggle::before {
    transition: transform 220ms cubic-bezier(.2, 0, 0, 1);
}

@media (min-width: 1280px) {
    .app-sidebar {
        overflow: visible;
    }

    .app-sidebar__header {
        position: relative;
        width: 100%;
        height: 80px;
        min-height: 80px;
        flex: 0 0 80px;
        padding: 0;
    }

    .app-brand {
        width: 100%;
        height: 80px;
        min-height: 80px;
        padding: 10px 30px 10px 21px;
    }

    .app-nav {
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .sidebar-collapse-toggle {
        position: absolute;
        z-index: 3;
        top: 64px;
        right: -16px;
        bottom: auto;
        left: auto;
        display: grid;
        width: 32px;
        height: 32px;
        padding: 0;
        place-items: center;
        border: 1px solid var(--line-300);
        border-radius: 50%;
        background: var(--surface);
        box-shadow: 0 4px 14px rgb(6 31 53 / 16%);
        color: var(--brand-700);
        transform: none;
        transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    }

    .sidebar-collapse-toggle:hover {
        border-color: #a8c2cd;
        background: var(--brand-50);
        box-shadow: 0 5px 17px rgb(6 31 53 / 22%);
        color: var(--brand-800);
    }

    .sidebar-collapse-toggle:focus-visible {
        outline: 3px solid rgb(8 123 127 / 28%);
        outline-offset: 2px;
    }

    .sidebar-collapse-toggle svg {
        display: none;
    }

    .sidebar-collapse-toggle::before {
        width: 8px;
        height: 8px;
        border-bottom: 2px solid currentColor;
        border-left: 2px solid currentColor;
        content: "";
        transform: translateX(2px) rotate(45deg);
    }

    .app-nav__link {
        padding-left: 19px;
    }

    .app-nav__icon {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .app-nav__icon svg {
        width: 19px;
        height: 19px;
    }

    html.sidebar-collapsed .app-brand {
        height: 80px;
        min-height: 80px;
        justify-content: center;
        padding: 10px 0;
    }

    html.sidebar-collapsed .app-brand__mark,
    html.sidebar-collapsed .app-brand__logo {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    html.sidebar-collapsed .app-brand__copy,
    html.sidebar-collapsed .app-nav__text,
    html.sidebar-collapsed .app-nav__label,
    html.sidebar-collapsed .app-nav__badge {
        display: none;
    }

    html.sidebar-collapsed .sidebar-collapse-toggle {
        width: 32px;
    }

    html.sidebar-collapsed .sidebar-collapse-toggle::before {
        transform: translateX(-2px) rotate(225deg);
    }

    html.sidebar-collapsed .app-nav {
        padding-inline: 12px;
    }

    html.sidebar-collapsed .app-nav__group {
        width: 100%;
    }

    html.sidebar-collapsed .app-nav__link {
        width: 60px;
        gap: 0;
        padding-right: 19px;
        padding-left: 19px;
    }

    html.sidebar-collapsed .app-nav__link.is-active::before,
    html.sidebar-collapsed .app-nav__link[aria-current="page"]::before {
        left: -12px;
    }
}

@media (min-width: 1440px) {
    .app-footer {
        padding-right: 36px;
        padding-left: 36px;
    }
}

@media (max-width: 1279px) {
    .app-sidebar {
        width: var(--sidebar-expanded-width);
        transition: transform var(--transition-base);
    }

    .app-sidebar__header {
        position: relative;
    }

    .app-brand {
        padding-right: 52px;
    }

    .sidebar-mobile-close {
        position: absolute;
        z-index: 3;
        top: 20px;
        right: 14px;
        display: grid;
        width: 36px;
        height: 36px;
        padding: 0;
        place-items: center;
        border: 1px solid rgb(255 255 255 / 18%);
        border-radius: 9px;
        background: rgb(255 255 255 / 8%);
        color: rgb(255 255 255 / 82%);
    }

    .sidebar-mobile-close:hover,
    .sidebar-mobile-close:focus-visible {
        border-color: rgb(255 255 255 / 30%);
        background: rgb(255 255 255 / 14%);
        color: #fff;
    }

    .sidebar-mobile-close svg {
        width: 18px;
        height: 18px;
    }

    .app-main {
        margin-left: 0;
    }

    .app-footer {
        padding-right: 28px;
        padding-left: 28px;
    }
}

@media (max-width: 767px) {
    .app-footer {
        padding-right: 14px;
        padding-left: 14px;
    }

    .app-footer__inner {
        min-height: 52px;
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.sidebar-is-animating .app-sidebar,
    html.sidebar-is-animating .app-main,
    html.sidebar-is-animating .sidebar-collapse-toggle::before {
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   Operational surfaces: notifications, request list and request detail.
   These rules intentionally live at the end of the cascade so the desktop
   geometry remains deterministic across every role and request state.
   -------------------------------------------------------------------------- */

/* Notification centre: one compact, fully clickable row per event. */
.notification-panel .card__header {
    min-height: 64px;
    padding: 16px 20px;
}

.notification-panel .card__header .section-heading {
    margin-bottom: 0;
}

.notification-item {
    display: block;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid var(--line-100);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-item.is-unread {
    background: linear-gradient(90deg, var(--teal-50), #fff 72%);
}

.notification-item:hover,
.notification-item:focus-within {
    background: #f7fafb;
    box-shadow: inset 3px 0 var(--teal-600);
}

.notification-item.is-unread:hover,
.notification-item.is-unread:focus-within {
    background: linear-gradient(90deg, #e8f6f5, #f9fcfc 76%);
}

.notification-item__link {
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 88px;
    grid-template-columns: 8px 42px minmax(0, 1fr) minmax(168px, auto);
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
}

.notification-item__link:hover {
    background: transparent;
    color: inherit;
}

.notification-item__link:focus-visible {
    outline: 3px solid rgb(8 123 127 / 30%);
    outline-offset: -4px;
}

.notification-item__indicator {
    width: 8px;
    height: 8px;
    margin: 0;
    border-radius: 50%;
    background: var(--line-300);
}

.notification-item.is-unread .notification-item__indicator {
    background: var(--teal-600);
    box-shadow: 0 0 0 4px var(--teal-100);
}

.notification-item__icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-color: var(--line-200);
    border-radius: 11px;
    background: var(--surface-muted);
}

.notification-item.is-unread .notification-item__icon {
    border-color: #bedcdd;
    background: #fff;
}

.notification-item__icon svg {
    width: 20px;
    height: 20px;
}

.notification-item__content {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.notification-item__heading {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.notification-item__title {
    min-width: 0;
    margin: 0;
    color: var(--ink-950);
    font-size: 0.9rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.notification-item__unread {
    display: inline-flex;
    width: auto;
    height: 22px;
    min-height: 22px;
    flex: 0 0 auto;
    align-items: center;
    padding: 2px 8px;
    border: 1px solid #bfdddd;
    border-radius: 999px;
    background: var(--teal-50);
    color: var(--teal-700);
    font-size: 0.66rem;
    font-weight: 600 !important;
    line-height: 1;
}

.notification-item__message {
    max-width: 760px;
    margin: 0;
    color: var(--ink-600);
    font-size: 0.8rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.notification-item__meta {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 0;
    color: var(--ink-600);
    text-align: right;
}

.notification-item__time {
    color: var(--ink-500);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.notification-item__open-label {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid var(--line-300);
    border-radius: 8px;
    background: #fff;
    color: var(--ink-800);
    font-size: 0.74rem;
    font-weight: 600 !important;
    line-height: 1.15;
    white-space: nowrap;
}

.notification-item__open-label .btn__icon,
.notification-item__open-label .btn__icon svg {
    width: 15px;
    height: 15px;
    min-width: 15px;
}

/* Six-part request filter, aligned to the global 48px control rhythm. */
.filter-bar--requests {
    grid-template-columns:
        minmax(190px, 1.4fr)
        minmax(132px, .72fr)
        minmax(145px, .88fr)
        repeat(2, minmax(125px, .68fr))
        minmax(154px, auto);
    gap: 12px;
}

.filter-bar--requests > .filter-field,
.filter-bar--requests > .filter-actions {
    min-width: 0;
}

.filter-bar--requests .filter-actions {
    grid-column: auto;
    justify-self: stretch;
}

.filter-bar--requests .filter-actions .button {
    min-width: 0;
}

/* The additional Birim column remains visible without forcing desktop scroll. */
@media screen and (min-width: 1280px) {
    .request-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .request-table th,
    .request-table td {
        padding-right: 10px;
        padding-left: 10px;
    }

    .request-table th:nth-child(1),
    .request-table td:nth-child(1) { width: 14%; }

    .request-table th:nth-child(2),
    .request-table td:nth-child(2) { width: 9%; }

    .request-table th:nth-child(3),
    .request-table td:nth-child(3) { width: 13%; }

    .request-table th:nth-child(4),
    .request-table td:nth-child(4) { width: 12%; }

    .request-table th:nth-child(5),
    .request-table td:nth-child(5) { width: 11%; }

    .request-table th:nth-child(6),
    .request-table td:nth-child(6) { width: 17%; }

    .request-table th:nth-child(7),
    .request-table td:nth-child(7) { width: 13%; }

    .request-table th:nth-child(8),
    .request-table td:nth-child(8) { width: 11%; }

    .request-table .cell-department,
    .request-table td:nth-child(4) {
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .request-table .status {
        justify-content: flex-start;
        white-space: normal;
    }

    .request-table .table-action {
        min-height: 36px;
        gap: 4px;
        padding: 6px 7px;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .request-table .table-action svg {
        width: 13px;
        height: 13px;
        min-width: 13px;
        flex-basis: 13px;
    }
}

/* Request detail: full-width workflow surfaces with bounded, readable rows. */
.request-workflow-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.request-workflow-layout > .workflow-panel,
.request-workflow-layout > .action-center {
    width: 100%;
    min-width: 0;
}

.timeline--approval,
.timeline--history {
    width: 100%;
    max-width: 1040px;
    gap: 0;
    margin-inline: auto;
    padding: 10px 24px 14px 52px;
}

.timeline--approval::before,
.timeline--history::before {
    top: 24px;
    bottom: 28px;
    left: 31px;
}

.timeline--approval .timeline__entry,
.timeline--history .timeline__entry {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
    gap: 24px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-100);
}

.timeline--approval .timeline__entry:last-child,
.timeline--history .timeline__entry:last-child {
    border-bottom: 0;
}

.timeline--approval .timeline__entry::before,
.timeline--history .timeline__entry::before {
    top: 20px;
    left: -27px;
}

.timeline--approval .timeline__event,
.timeline--history .timeline__event,
.timeline--approval .timeline__meta,
.timeline--history .timeline__meta {
    display: grid;
    min-width: 0;
    justify-content: normal;
}

.timeline--approval .timeline__event,
.timeline--history .timeline__event {
    gap: 4px;
}

.timeline--approval .timeline__meta,
.timeline--history .timeline__meta {
    gap: 4px;
    justify-items: end;
    color: var(--ink-600);
    text-align: right;
}

.timeline__event-title {
    color: var(--ink-950);
    font-size: 0.88rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.timeline .timeline__note {
    margin: 0;
    color: var(--ink-700);
    font-size: 0.78rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.timeline--approval .timeline__meta span,
.timeline--history .timeline__meta span,
.timeline--approval .timeline__meta time,
.timeline--history .timeline__meta time {
    font-size: 0.72rem;
    line-height: 1.4;
}

.revision-tabs--wrap {
    min-width: 0;
    max-width: min(100%, 620px);
    justify-content: flex-end;
}

/* Actions are cards in a horizontal work area, never a long sticky side rail. */
.request-workflow-layout .action-center {
    position: static;
    top: auto;
    overflow: hidden;
    padding: 0;
}

.action-center__header {
    padding: 15px 20px;
}

.action-center__grid,
.action-center__danger-grid {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
}

.action-center__grid > .action-card,
.action-center__danger-grid > .action-card {
    min-width: 0;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line-200);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-xs);
}

.action-center__grid > .action-card + .action-card,
.action-center__danger-grid > .action-card + .action-card {
    margin-top: 0;
    padding-top: 16px;
    border-top: 1px solid var(--line-200);
}

.action-center__grid > .action-card--wide {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    align-items: end;
}

.action-center__grid > .action-card--compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.action-center__grid > .action-card--wide > .action-card__heading,
.action-center__grid > .action-card--wide > .decision-buttons,
.action-center__grid > .action-card--wide > .action-card__help {
    grid-column: 1 / -1;
}

.action-center__grid > .action-card--decision > label {
    grid-column: 1 / -1;
}

.action-center__grid > .action-card--final-decision > label {
    grid-column: auto;
}

.action-center__grid > .action-card--final-decision,
.action-center__grid > .action-card--assignment-exception,
.action-center__grid > .action-card--task-distribution {
    align-items: start;
}

.action-card--deputy-decision {
    border-color: #c7dcdf !important;
    background: linear-gradient(135deg, #f7fcfc, #fff 72%) !important;
}

.action-card--final-decision .decision-field {
    min-width: 0;
}

.action-card--final-decision .decision-field select,
.action-card--final-decision .decision-field textarea {
    width: 100%;
}

.action-card--final-decision .decision-field select {
    min-height: 48px;
}

.action-card--assignment-exception {
    border-color: var(--line-300) !important;
    background: var(--surface-subtle, #f8fafb) !important;
}

.action-card--task-distribution {
    border-color: #b7d8d8 !important;
    background: linear-gradient(135deg, var(--teal-50), #fff 74%) !important;
}

.action-card--task-distribution .action-card__heading strong {
    color: var(--teal-700);
}

.action-card--assignment-exception .action-card__heading strong {
    color: var(--ink-800);
}

.action-center__grid .action-card--assignment-exception textarea,
.action-center__grid .action-card--task-distribution textarea {
    height: 48px;
    min-height: 48px;
    resize: vertical;
}

.action-center__grid > .action-card--success > label {
    grid-column: 1 / -1;
}

.action-center__grid > .action-card--wide > .button,
.action-center__grid > .action-card--wide > button {
    min-width: 180px;
    grid-column: 1 / -1;
    justify-self: end;
}

.action-center__grid > .action-card--compact > .action-card__heading {
    margin: 0;
}

.action-center__grid > .action-card--compact > .button,
.action-center__grid > .action-card--compact > button {
    min-width: 156px;
    justify-self: end;
}

.action-center__grid .action-card__heading,
.action-center__danger-grid .action-card__heading {
    min-width: 0;
    margin-bottom: 0;
}

.action-center__grid .action-card__heading > div,
.action-center__danger-grid .action-card__heading > div {
    min-width: 0;
}

.action-center__grid .action-card__heading small,
.action-center__danger-grid .action-card__heading small {
    display: block;
    margin-top: 3px;
    color: var(--ink-600);
    font-size: 0.7rem;
    line-height: 1.4;
}

.action-center__grid textarea,
.action-center__danger-grid textarea {
    min-height: 80px;
}

.action-center__empty {
    grid-column: 1 / -1;
}

.action-center__danger-group {
    padding: 0 16px 16px;
    border-top: 1px solid #efd8d6;
    background: #fffafa;
}

.action-center__danger-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    padding: 14px 0 0;
}

.action-center__danger-grid > .action-card--wide {
    display: grid;
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 14px;
    align-items: end;
    border-color: #ecd0cd;
    background: #fff;
}

.action-center__danger-grid > .action-card--wide > .action-card__heading {
    grid-column: 1 / -1;
}

.action-center__danger-grid > .action-card--wide > .button,
.action-center__danger-grid > .action-card--wide > button {
    min-width: 166px;
    justify-self: end;
}

@media (min-width: 1280px) and (max-width: 1359px) {
    .filter-bar--requests {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-bar--requests .filter-field--search,
    .filter-bar--requests .filter-actions {
        grid-column: auto;
    }
}

@media (max-width: 1279px) {
    .filter-bar--requests {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-bar--requests .filter-field--search,
    .filter-bar--requests .filter-actions {
        grid-column: 1 / -1;
    }

    .filter-bar--requests .filter-actions {
        justify-self: stretch;
    }

    .request-table {
        min-width: 1040px;
    }
}

@media (max-width: 900px) {
    .action-center__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .action-center__grid > .action-card--wide,
    .action-center__grid > .action-card--compact,
    .action-center__empty {
        grid-column: auto;
    }
}

@media (max-width: 767px) {
    .notification-center__hero {
        padding: 18px;
    }

    .notification-center__summary {
        width: 100%;
        flex-wrap: wrap;
    }

    .notification-center__summary .page-actions {
        width: 100%;
    }

    .notification-center__summary .page-actions .btn {
        width: 100%;
    }

    .notification-item__link {
        min-height: 0;
        grid-template-columns: 8px 38px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        padding: 15px 14px;
    }

    .notification-item__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .notification-item__meta {
        display: flex;
        grid-column: 3;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
        text-align: left;
    }

    .notification-item__open-label {
        min-height: 30px;
        padding: 5px 8px;
    }

    .filter-bar--requests,
    .filter-bar--requests .filter-field--search,
    .filter-bar--requests .filter-actions {
        grid-column: auto;
        grid-template-columns: minmax(0, 1fr);
    }

    .request-table {
        min-width: 0;
        table-layout: auto;
    }

    .request-table .table-action {
        width: 100%;
    }

    .history-panel .detail-section__header {
        align-items: stretch;
        flex-direction: column;
    }

    .revision-tabs--wrap {
        max-width: 100%;
        justify-content: flex-start;
    }

    .timeline--approval,
    .timeline--history {
        padding: 8px 16px 12px 42px;
    }

    .timeline--approval::before,
    .timeline--history::before {
        left: 25px;
    }

    .timeline--approval .timeline__entry,
    .timeline--history .timeline__entry {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
        padding: 13px 0;
    }

    .timeline--approval .timeline__entry::before,
    .timeline--history .timeline__entry::before {
        left: -23px;
    }

    .timeline--approval .timeline__meta,
    .timeline--history .timeline__meta {
        grid-auto-flow: column;
        justify-content: start;
        justify-items: start;
        gap: 8px;
        text-align: left;
    }

    .action-center__grid,
    .action-center__danger-grid {
        grid-template-columns: minmax(0, 1fr);
        padding: 14px;
    }

    .action-center__grid > .action-card--wide,
    .action-center__grid > .action-card--compact,
    .action-center__danger-grid > .action-card--wide {
        grid-template-columns: minmax(0, 1fr);
    }

    .action-center__grid > .action-card--wide > *,
    .action-center__grid > .action-card--compact > *,
    .action-center__danger-grid > .action-card--wide > * {
        grid-column: auto;
    }

    .action-center__grid > .action-card--wide > .button,
    .action-center__grid > .action-card--wide > button,
    .action-center__grid > .action-card--compact > .button,
    .action-center__grid > .action-card--compact > button,
    .action-center__danger-grid > .action-card--wide > .button,
    .action-center__danger-grid > .action-card--wide > button {
        width: 100%;
        min-width: 0;
        justify-self: stretch;
    }

    .action-center__danger-group {
        padding: 0 14px 14px;
    }

    .action-center__danger-grid {
        padding: 12px 0 0;
    }

    .decision-buttons {
        grid-template-columns: minmax(0, 1fr);
    }
}
