:root {
    --hess-navy: #2c304e;
    --hess-navy-deep: #20243d;
    --hess-gold: #c9a978;
    --hess-teal: #33a595;
    --hess-blue: #2fb5d2;
    --ink: #25283d;
    --muted: #74788b;
    --line: #e7e8ee;
    --canvas: #f5f6f8;
    --surface: #fff;
    --danger: #a43843;
    --sidebar-width: 270px;
    --shadow: 0 18px 50px rgb(32 36 61 / 9%);
    color-scheme: light;
    font-family: Inter, Avenir, 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-synthesis: none;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { min-width: 320px; background: var(--canvas); }

body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.delegation-banner {
    position: sticky;
    z-index: 120;
    top: 0;
    display: flex;
    min-height: 52px;
    padding: 9px 22px;
    align-items: center;
    gap: 14px;
    color: #fff;
    background: linear-gradient(90deg, #2c304e, #354466);
    box-shadow: 0 5px 18px rgb(32 36 61 / 22%);
}
.delegation-banner strong { color: #f2ca79; }
.delegation-banner span { flex: 1; }
.delegation-banner form { margin: 0; }
.delegation-banner button { padding: 7px 12px; color: var(--hess-navy); background: #fff; border: 0; border-radius: 7px; cursor: pointer; font-weight: 750; }

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--hess-navy); font-family: Avenir, Inter, 'Segoe UI', system-ui, sans-serif; letter-spacing: -.035em; }

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

.skip-link {
    position: fixed;
    z-index: 100;
    left: 16px;
    top: -100px;
    padding: 10px 14px;
    color: #fff;
    background: var(--hess-navy-deep);
    border-radius: 8px;
}

.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid rgb(47 181 210 / 40%); outline-offset: 2px; }

.eyebrow {
    margin-bottom: 8px;
    color: var(--hess-teal);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 43px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 700;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.button svg { width: 18px; height: 18px; }
.button:hover { transform: translateY(-1px); }
.button--primary { color: #fff; background: var(--hess-navy); box-shadow: 0 9px 22px rgb(44 48 78 / 18%); }
.button--primary:hover { background: var(--hess-navy-deep); box-shadow: 0 11px 25px rgb(44 48 78 / 24%); }
.button--secondary { color: var(--hess-navy); background: #fff; border-color: #dfe1e8; }
.button--secondary:hover { background: #f8f8fa; }
.button--large { width: 100%; min-height: 51px; }

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin: 0 0 20px;
    border-radius: 9px;
    font-size: 13px;
}

.alert p { margin: 0; }
.alert > span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; font-weight: 800; }
.alert--error { color: #7f2932; background: #fff1f2; border: 1px solid #f7d4d8; }
.alert--error > span { color: #fff; background: var(--danger); }

/* Authentication */
.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 15%, rgb(51 165 149 / 10%), transparent 24%),
        radial-gradient(circle at 92% 86%, rgb(201 169 120 / 11%), transparent 27%),
        #f1f3f6;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    padding: 34px;
    place-items: center;
}

.auth-card {
    display: grid;
    grid-template-columns: minmax(410px, .92fr) minmax(450px, 1.08fr);
    width: min(1060px, 100%);
    min-height: 660px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgb(44 48 78 / 7%);
    border-radius: 24px;
    box-shadow: 0 30px 90px rgb(32 36 61 / 14%);
}

.auth-card__form-panel { display: flex; min-width: 0; padding: 42px 56px 31px; flex-direction: column; }

.auth-brand { display: inline-flex; align-items: center; align-self: flex-start; gap: 16px; color: var(--hess-navy); font-family: Avenir, Inter, 'Segoe UI', system-ui, sans-serif; font-weight: 800; }
.auth-brand img { width: 154px; height: auto; }
.auth-brand span { padding-left: 16px; border-left: 1px solid var(--line); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }

.auth-card__form-content { width: min(370px, 100%); margin: auto; padding: 40px 0 35px; }
.auth-card__form-content h1 { margin-bottom: 10px; font-size: clamp(34px, 4vw, 43px); }
.auth-card__intro { margin-bottom: 29px; color: var(--muted); line-height: 1.65; }
.auth-card__legal { margin: 0; color: #9a9cab; font-size: 11px; text-align: center; }

.auth-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { color: var(--hess-navy); font-size: 13px; font-weight: 700; }
.field__label-row { display: flex; align-items: center; justify-content: space-between; }
.field__label-row span { color: #9a9cab; font-size: 11px; }
.field input {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    color: var(--ink);
    background: #fafafd;
    border: 1px solid #dedfe7;
    border-radius: 9px;
    outline: 0;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field input:focus { background: #fff; border-color: var(--hess-blue); box-shadow: 0 0 0 4px rgb(47 181 210 / 10%); }
.field input::placeholder { color: #a7a9b7; }
.password-field { position: relative; }
.password-field input { padding-right: 50px; }
.password-field button { position: absolute; right: 7px; top: 7px; display: grid; width: 36px; height: 36px; padding: 0; place-items: center; color: #8c8f9e; background: transparent; border: 0; border-radius: 7px; cursor: pointer; }
.password-field button:hover { color: var(--hess-navy); background: #f0f1f4; }
.password-field svg { width: 20px; height: 20px; }

.auth-card__visual {
    position: relative;
    isolation: isolate;
    display: flex;
    min-width: 0;
    overflow: hidden;
    padding: 67px 66px;
    align-items: flex-end;
    color: #fff;
    background: linear-gradient(143deg, var(--hess-navy-deep), var(--hess-navy) 58%, #354466);
}
.auth-card__visual::before { position: absolute; z-index: -1; inset: 0; content: ''; opacity: .15; background-image: linear-gradient(rgb(255 255 255 / 12%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 12%) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, #000, transparent 80%); }
.auth-card__visual::after { position: absolute; z-index: -1; right: -25%; bottom: -20%; width: 520px; height: 520px; content: ''; border: 1px solid rgb(255 255 255 / 10%); border-radius: 50%; box-shadow: 0 0 0 70px rgb(255 255 255 / 2.5%), 0 0 0 140px rgb(255 255 255 / 2%); }
.auth-card__visual-content { position: relative; z-index: 2; max-width: 430px; }
.auth-card__pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; margin-bottom: 23px; color: #f6f6f9; background: rgb(255 255 255 / 9%); border: 1px solid rgb(255 255 255 / 13%); border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; backdrop-filter: blur(10px); }
.auth-card__pill i { width: 7px; height: 7px; background: var(--hess-teal); border-radius: 50%; box-shadow: 0 0 0 4px rgb(51 165 149 / 16%); }
.auth-card__visual h2 { margin-bottom: 18px; color: #fff; font-size: clamp(32px, 4vw, 46px); line-height: 1.18; }
.auth-card__visual p { max-width: 385px; color: rgb(255 255 255 / 65%); font-size: 16px; line-height: 1.65; }
.auth-card__benefits { display: flex; gap: 18px; margin-top: 29px; }
.auth-card__benefits span { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.auth-card__benefits svg { width: 18px; height: 18px; padding: 3px; color: var(--hess-navy); background: var(--hess-gold); border-radius: 50%; stroke-width: 2.5; }
.auth-card__monogram { position: absolute; top: 36px; right: 37px; color: rgb(255 255 255 / 4%); font-family: Avenir, Inter, 'Segoe UI', system-ui, sans-serif; font-size: 150px; font-weight: 800; letter-spacing: -.08em; line-height: 1; }
.auth-card__orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.auth-card__orb--one { top: -70px; left: -70px; width: 220px; height: 220px; background: rgb(47 181 210 / 15%); }
.auth-card__orb--two { top: 170px; right: -30px; width: 130px; height: 130px; background: rgb(201 169 120 / 12%); }

/* Workspace */
.workspace-shell { display: flex; min-height: 100vh; }
.sidebar {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--sidebar-width);
    color: #d7d9e2;
    background: var(--hess-navy-deep);
    flex-direction: column;
    box-shadow: 9px 0 30px rgb(32 36 61 / 8%);
}
.sidebar::after { position: absolute; right: 0; top: 0; width: 2px; height: 92px; content: ''; background: linear-gradient(var(--hess-gold), transparent); }
.sidebar__brand { display: flex; min-height: 94px; padding: 22px 20px 17px 24px; align-items: center; justify-content: space-between; border-bottom: 1px solid rgb(255 255 255 / 7%); }
.sidebar__brand > a { display: flex; min-width: 0; align-items: center; gap: 12px; }
.sidebar__brand-mark { display: grid; width: 120px; height: 39px; padding: 6px 7px; place-items: center; background: #fff; border-radius: 6px; }
.sidebar__brand-copy { display: grid; color: #aeb1c1; font-family: Avenir, Inter, 'Segoe UI', system-ui, sans-serif; font-size: 9px; line-height: 1.15; letter-spacing: .13em; text-transform: uppercase; }
.sidebar__brand-copy strong { color: var(--hess-gold); font-size: 13px; }
.sidebar__close { display: none; width: 34px; height: 34px; padding: 0; place-items: center; color: #fff; background: transparent; border: 0; border-radius: 7px; }
.sidebar__close svg { width: 20px; height: 20px; }
.sidebar__context { display: flex; margin: 20px 17px 12px; padding: 12px; align-items: center; gap: 11px; background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 7%); border-radius: 10px; }
.sidebar__context-icon { display: grid; width: 34px; height: 34px; place-items: center; color: var(--hess-navy-deep); background: var(--hess-gold); border-radius: 8px; font-family: Avenir, Inter, 'Segoe UI', system-ui, sans-serif; font-size: 11px; font-weight: 800; }
.sidebar__context > span:nth-child(2) { display: grid; min-width: 0; flex: 1; }
.sidebar__context small { color: #8f93a6; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.sidebar__context strong { overflow: hidden; color: #f4f4f7; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__context-status { width: 7px; height: 7px; background: var(--hess-teal); border-radius: 50%; box-shadow: 0 0 0 4px rgb(51 165 149 / 12%); }
.sidebar__nav { display: flex; padding: 9px 14px; flex: 1; flex-direction: column; gap: 3px; }
.sidebar__section-label { padding: 0 12px; margin: 20px 0 7px; color: #73778c; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sidebar__nav a, .sidebar__nav-placeholder { position: relative; display: flex; min-height: 44px; padding: 0 12px; align-items: center; gap: 12px; color: #aeb1c1; border-radius: 8px; font-size: 13px; font-weight: 600; }
.sidebar__nav a { transition: color .16s ease, background .16s ease; }
.sidebar__nav a:hover { color: #fff; background: rgb(255 255 255 / 5%); }
.sidebar__nav a[aria-current='page'] { color: #fff; background: rgb(255 255 255 / 9%); }
.sidebar__nav a[aria-current='page']::before { position: absolute; left: -14px; width: 3px; height: 23px; content: ''; background: var(--hess-gold); border-radius: 0 3px 3px 0; }
.sidebar__nav svg { width: 19px; height: 19px; flex: none; }
.sidebar__nav a em { display: grid; width: 22px; height: 20px; margin-left: auto; place-items: center; color: var(--hess-navy-deep); background: var(--hess-gold); border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 800; }
.sidebar__nav-placeholder { color: #64687a; cursor: not-allowed; }
.sidebar__nav-placeholder small { padding: 2px 6px; margin-left: auto; color: #777b8d; background: rgb(255 255 255 / 4%); border-radius: 999px; font-size: 8px; text-transform: uppercase; }
.sidebar__footer { display: flex; min-height: 77px; padding: 15px 17px; align-items: center; gap: 10px; border-top: 1px solid rgb(255 255 255 / 7%); }
.sidebar__avatar { display: grid; width: 36px; height: 36px; place-items: center; color: var(--hess-navy-deep); background: linear-gradient(135deg, var(--hess-gold), #e2caa3); border-radius: 50%; font-family: Avenir, Inter, 'Segoe UI', system-ui, sans-serif; font-size: 13px; font-weight: 800; }
.sidebar__user { display: grid; min-width: 0; flex: 1; }
.sidebar__user strong { overflow: hidden; color: #f2f2f5; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__user small { color: #85899d; font-size: 9px; }
.sidebar__footer form { display: flex; }
.sidebar__footer button { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; color: #8f93a6; background: transparent; border: 0; border-radius: 7px; cursor: pointer; }
.sidebar__footer button:hover { color: #fff; background: rgb(255 255 255 / 6%); }
.sidebar__footer svg { width: 18px; height: 18px; }

.workspace-main { width: calc(100% - var(--sidebar-width)); min-width: 0; margin-left: var(--sidebar-width); }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; height: 72px; padding: 0 34px; align-items: center; gap: 24px; background: rgb(255 255 255 / 92%); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.topbar__menu { display: none; width: 38px; height: 38px; padding: 0; place-items: center; color: var(--hess-navy); background: #f4f5f7; border: 0; border-radius: 8px; }
.topbar__menu svg { width: 20px; height: 20px; }
.topbar__search { position: relative; display: flex; width: min(440px, 42vw); align-items: center; }
.topbar__search > svg { position: absolute; left: 13px; width: 18px; height: 18px; color: #8a8d9b; pointer-events: none; }
.topbar__search input { width: 100%; height: 41px; padding: 0 60px 0 42px; color: var(--ink); background: var(--canvas); border: 1px solid transparent; border-radius: 9px; outline: 0; }
.topbar__search input:focus { background: #fff; border-color: var(--hess-blue); box-shadow: 0 0 0 3px rgb(47 181 210 / 9%); }
.topbar__search input::placeholder { color: #9396a5; }
.topbar__search kbd { position: absolute; right: 10px; padding: 2px 6px; color: #999ba8; background: #fff; border: 1px solid #dedfe5; border-radius: 5px; box-shadow: 0 1px 1px rgb(0 0 0 / 4%); font-family: inherit; font-size: 10px; }
.topbar__actions { display: flex; margin-left: auto; align-items: center; gap: 22px; }
.topbar__api { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.topbar__api span { padding: 4px 6px; color: var(--hess-navy); background: rgb(201 169 120 / 22%); border-radius: 5px; font-size: 9px; }
.topbar__api:hover { color: var(--hess-navy); }
.topbar__environment { display: flex; align-items: center; gap: 8px; color: #777a89; font-size: 10px; }
.topbar__environment i { width: 7px; height: 7px; background: var(--hess-teal); border-radius: 50%; box-shadow: 0 0 0 4px rgb(51 165 149 / 10%); }
.content { width: min(1500px, 100%); min-height: calc(100vh - 72px); padding: 39px 42px 55px; margin: 0 auto; }

.page-heading { display: flex; margin-bottom: 29px; align-items: flex-end; justify-content: space-between; gap: 25px; }
.page-heading h1 { margin-bottom: 6px; font-size: clamp(29px, 3.2vw, 38px); }
.page-heading > div > p:last-child { margin-bottom: 0; color: var(--muted); }
.page-heading__date { padding: 9px 13px; color: #7f8290; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; white-space: nowrap; }
.page-heading--compact { align-items: center; }
.page-heading--compact h1 { margin-top: 10px; }

.welcome-panel { position: relative; isolation: isolate; display: grid; min-height: 320px; overflow: hidden; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); color: #fff; background: linear-gradient(125deg, var(--hess-navy-deep), var(--hess-navy) 65%, #34405f); border-radius: 17px; box-shadow: var(--shadow); }
.welcome-panel::before { position: absolute; z-index: -1; inset: 0; content: ''; opacity: .09; background-image: radial-gradient(circle, #fff 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000); }
.welcome-panel__copy { padding: 46px 51px; }
.welcome-panel__badge { display: inline-flex; padding: 6px 10px; margin-bottom: 19px; color: #f4e8d5; background: rgb(201 169 120 / 13%); border: 1px solid rgb(201 169 120 / 25%); border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.welcome-panel h2 { margin-bottom: 15px; color: #fff; font-size: clamp(28px, 3.2vw, 39px); line-height: 1.22; }
.welcome-panel p { max-width: 630px; margin-bottom: 26px; color: rgb(255 255 255 / 61%); line-height: 1.65; }
.welcome-panel .button { color: var(--hess-navy-deep); background: var(--hess-gold); box-shadow: none; }
.welcome-panel .button:hover { background: #d7bc91; }
.welcome-panel__visual { position: relative; display: grid; min-height: 280px; place-items: center; }
.welcome-panel__rings { position: absolute; width: 260px; height: 260px; border: 1px solid rgb(255 255 255 / 7%); border-radius: 50%; box-shadow: 0 0 0 38px rgb(255 255 255 / 2.5%), 0 0 0 76px rgb(255 255 255 / 2%); }
.welcome-panel__document { position: relative; display: flex; width: 158px; height: 200px; padding: 66px 24px 25px; flex-direction: column; gap: 13px; background: linear-gradient(145deg, #fff, #e8e9ed); border-radius: 12px; box-shadow: 0 25px 50px rgb(0 0 0 / 25%); transform: rotate(5deg); }
.welcome-panel__document::before { position: absolute; top: 20px; left: 22px; width: 37px; height: 8px; content: ''; background: var(--hess-gold); border-radius: 99px; }
.welcome-panel__document span { height: 7px; background: #d2d4dd; border-radius: 99px; }
.welcome-panel__document span:nth-child(2) { width: 80%; }
.welcome-panel__document span:nth-child(3) { width: 58%; }
.welcome-panel__document i { display: grid; width: 54px; height: 31px; margin-top: auto; place-items: center; color: #fff; background: var(--hess-teal); border-radius: 6px; font-family: Avenir, Inter, 'Segoe UI', system-ui, sans-serif; font-size: 12px; font-style: normal; font-weight: 800; }

.empty-dashboard { margin-top: 26px; padding: 27px 30px 30px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; }
.section-heading h2 { margin-bottom: 0; font-size: 20px; }
.section-heading .eyebrow { margin-bottom: 3px; }
.tag { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.tag--neutral { color: #777a88; background: #f2f3f5; }
.tag--warning { color: #735834; background: #f5ead9; }
.tag--success { color: #207467; background: #e8f6f3; }
.empty-dashboard__content { display: grid; min-height: 230px; padding: 35px; place-items: center; align-content: center; text-align: center; border: 1px dashed #dfe1e7; border-radius: 11px; }
.empty-dashboard__icon { display: grid; width: 50px; height: 50px; margin-bottom: 14px; place-items: center; color: var(--hess-teal); background: rgb(51 165 149 / 9%); border-radius: 50%; }
.empty-dashboard__icon svg { width: 23px; height: 23px; }
.empty-dashboard h3 { margin-bottom: 6px; font-size: 16px; }
.empty-dashboard__content p { max-width: 480px; margin: 0; color: var(--muted); font-size: 12px; }
.identity-strip { display: flex; min-height: 48px; padding: 0 16px; margin-top: 15px; align-items: center; gap: 10px; color: #727584; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 11px; }
.identity-strip p { margin: 0; }
.identity-strip strong { color: var(--hess-navy); }
.identity-strip__loader { width: 9px; height: 9px; border: 2px solid #d8dae1; border-top-color: var(--hess-teal); border-radius: 50%; animation: spin .8s linear infinite; }
.identity-strip.is-ready .identity-strip__loader { background: var(--hess-teal); border: 0; animation: none; box-shadow: 0 0 0 4px rgb(51 165 149 / 10%); }

/* Catalogue */
.breadcrumb { display: flex; align-items: center; gap: 8px; color: #9698a5; font-size: 10px; }
.breadcrumb a:hover { color: var(--hess-navy); }
.breadcrumb strong { color: #6e7180; font-weight: 700; }
.catalog-panel { padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 30px rgb(32 36 61 / 3%); }
.catalog-search { display: flex; align-items: center; gap: 10px; }
.catalog-search > svg { position: absolute; width: 19px; height: 19px; margin-left: 16px; color: #8c8f9e; }
.catalog-search input { width: 100%; min-width: 0; height: 48px; padding: 0 45px; color: var(--ink); background: #f7f8fa; border: 1px solid #e2e3e9; border-radius: 9px; outline: 0; }
.catalog-search input:focus { background: #fff; border-color: var(--hess-blue); box-shadow: 0 0 0 3px rgb(47 181 210 / 9%); }
.catalog-search .button { min-height: 48px; flex: none; }
.catalog-meta { display: flex; padding: 17px 2px 15px; align-items: center; justify-content: space-between; color: #9294a2; font-size: 10px; }
.catalog-meta p { margin: 0; }
.catalog-meta strong { color: var(--hess-navy); font-size: 13px; }
.sheet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sheet-card { position: relative; display: flex; min-height: 262px; padding: 23px; flex-direction: column; background: #fff; border: 1px solid #e1e2e8; border-radius: 12px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.sheet-card::before { position: absolute; top: 0; left: 22px; width: 44px; height: 3px; content: ''; background: var(--hess-gold); border-radius: 0 0 4px 4px; }
.sheet-card:hover { border-color: rgb(44 48 78 / 25%); box-shadow: 0 14px 35px rgb(32 36 61 / 9%); transform: translateY(-3px); }
.sheet-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-card__code { color: var(--hess-teal); font-family: Avenir, Inter, 'Segoe UI', system-ui, sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.sheet-card h2 { margin: 18px 0 10px; font-size: 18px; line-height: 1.35; }
.sheet-card__summary { display: -webkit-box; overflow: hidden; margin-bottom: 18px; color: var(--muted); font-size: 12px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.sheet-card__meta { display: flex; padding-top: 15px; margin-top: auto; align-items: center; justify-content: space-between; gap: 8px; color: #9799a6; border-top: 1px solid #eeeef2; font-size: 10px; }
.sheet-card__link { display: flex; align-items: center; gap: 5px; color: var(--hess-navy); font-weight: 800; }
.sheet-card__link svg { width: 15px; height: 15px; }
.sheet-card--skeleton { overflow: hidden; background: #f6f7f9; border-color: transparent; }
.sheet-card--skeleton::after { position: absolute; inset: 0; content: ''; background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / 70%) 45%, transparent 70%); transform: translateX(-100%); animation: shimmer 1.25s infinite; }
.catalog-empty { padding: 55px 25px; text-align: center; }
.catalog-empty > span { display: grid; width: 50px; height: 50px; margin: 0 auto 15px; place-items: center; color: var(--hess-gold); background: #f7f1e9; border-radius: 50%; font-family: Avenir, Inter, 'Segoe UI', system-ui, sans-serif; font-size: 18px; font-weight: 800; }
.catalog-empty h2 { margin-bottom: 6px; font-size: 18px; }
.catalog-empty p { color: var(--muted); font-size: 12px; }

/* Sheet detail */
.sheet-detail > .breadcrumb { margin-bottom: 23px; }
.detail-loading { display: grid; gap: 17px; }
.detail-loading span { height: 160px; overflow: hidden; background: #eceef1; border-radius: 13px; }
.detail-loading span::after { display: block; width: 100%; height: 100%; content: ''; background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / 65%) 45%, transparent 70%); transform: translateX(-100%); animation: shimmer 1.25s infinite; }
.detail-hero { position: relative; overflow: hidden; padding: 34px 38px; color: #fff; background: linear-gradient(130deg, var(--hess-navy-deep), var(--hess-navy)); border-radius: 15px; box-shadow: var(--shadow); }
.detail-hero::after { position: absolute; right: -80px; top: -105px; width: 300px; height: 300px; content: ''; border: 50px solid rgb(255 255 255 / 3%); border-radius: 50%; }
.detail-hero__top { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.detail-hero__code { color: var(--hess-gold); font-family: Avenir, Inter, 'Segoe UI', system-ui, sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.detail-hero h1 { position: relative; z-index: 1; max-width: 900px; margin: 18px 0 13px; color: #fff; font-size: clamp(26px, 3.2vw, 37px); line-height: 1.3; }
.detail-hero p { position: relative; z-index: 1; max-width: 900px; margin: 0; color: rgb(255 255 255 / 64%); line-height: 1.7; }
.detail-hero__scope { position: relative; z-index: 1; display: flex; margin-top: 18px; flex-wrap: wrap; gap: 8px; }
.detail-hero__scope span { padding: 6px 10px; color: rgb(255 255 255 / 82%); background: rgb(255 255 255 / 7%); border: 1px solid rgb(255 255 255 / 9%); border-radius: 7px; font-size: 10px; }
.detail-hero__facts { position: relative; z-index: 1; display: grid; padding-top: 25px; margin-top: 27px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; border-top: 1px solid rgb(255 255 255 / 10%); }
.detail-hero__facts span { display: grid; gap: 3px; color: rgb(255 255 255 / 58%); font-size: 10px; }
.detail-hero__facts strong { color: #fff; font-size: 12px; }
.detail-layout { display: grid; margin-top: 20px; grid-template-columns: minmax(0, 1fr) 350px; gap: 20px; align-items: start; }
.detail-main { display: grid; gap: 20px; }
.detail-aside { position: sticky; top: 92px; display: grid; gap: 20px; }
.detail-panel { padding: 27px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.detail-panel__heading { display: flex; margin-bottom: 21px; align-items: center; gap: 12px; }
.detail-panel__heading span { display: grid; width: 34px; height: 34px; place-items: center; color: var(--hess-teal); background: rgb(51 165 149 / 9%); border-radius: 8px; font-family: Avenir, Inter, 'Segoe UI', system-ui, sans-serif; font-size: 11px; font-weight: 800; }
.detail-panel h2 { margin: 0; font-size: 18px; }
.detail-panel__intro { margin: -7px 0 19px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.check-list, .document-list, .workflow-list, .amount-list, .attention-list, .compact-check-list, .quality-grid, .source-list { padding: 0; margin: 0; list-style: none; }
.check-list { display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 27px; color: #5e6171; font-size: 12px; line-height: 1.6; }
.check-list li::before { position: absolute; left: 0; top: 2px; display: grid; width: 18px; height: 18px; content: '✓'; place-items: center; color: var(--hess-teal); background: rgb(51 165 149 / 9%); border-radius: 50%; font-size: 10px; font-weight: 900; }
.document-legend { display: flex; margin-bottom: 24px; flex-wrap: wrap; gap: 7px; }
.document-status { display: inline-flex; width: fit-content; padding: 4px 7px; border-radius: 999px; font-size: 8px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.document-status--required { color: #1d7165; background: #e4f5f1; }
.document-status--conditional { color: #74562f; background: #f7ebd8; }
.document-status--submission { color: #315c7d; background: #e7f2f8; }
.document-status--internal { color: #655482; background: #eee9f7; }
.document-groups { display: grid; gap: 25px; }
.document-group { display: grid; gap: 8px; }
.document-group > h3 { padding-bottom: 8px; margin: 0; color: #8a8d9b; border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.document-card { overflow: hidden; background: #fafafb; border: 1px solid #e7e8ed; border-radius: 10px; }
.document-card[open] { background: #fff; border-color: rgb(51 165 149 / 35%); box-shadow: 0 8px 22px rgb(32 36 61 / 5%); }
.document-card__summary { display: flex; min-height: 58px; padding: 12px 15px; align-items: center; justify-content: space-between; gap: 15px; cursor: pointer; list-style: none; }
.document-card__summary::-webkit-details-marker { display: none; }
.document-card__summary::after { width: 7px; height: 7px; margin-left: 2px; content: ''; border: solid #9699a6; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .16s ease; }
.document-card[open] .document-card__summary::after { transform: rotate(225deg); }
.document-card__identity { display: flex; min-width: 0; align-items: center; gap: 11px; flex: 1; }
.document-card__identity strong { color: var(--hess-navy); font-size: 12px; line-height: 1.35; }
.document-card__number { display: grid; width: 28px; height: 28px; flex: none; place-items: center; color: var(--hess-teal); background: rgb(51 165 149 / 9%); border-radius: 7px; font-size: 9px; font-weight: 800; }
.document-card__body { padding: 0 16px 17px 55px; border-top: 1px solid #eff0f3; }
.document-card__condition { padding: 11px 12px; margin: 14px 0; color: #5e6171; background: #f5f7f8; border-left: 2px solid var(--hess-gold); border-radius: 0 6px 6px 0; font-size: 10px; line-height: 1.55; }
.document-card__definitions { display: grid; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.document-card__definition { min-width: 0; }
.document-card__definition dt { margin-bottom: 2px; color: #9a9ca8; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.document-card__definition dd { margin: 0; color: #5e6171; font-size: 10px; line-height: 1.5; }
.document-card__checks { margin-top: 15px; }
.document-card__checks h4 { margin: 0 0 8px; color: var(--hess-navy); font-size: 10px; }
.compact-check-list { display: grid; gap: 6px; }
.compact-check-list li { position: relative; padding-left: 15px; color: #666979; font-size: 9px; line-height: 1.5; }
.compact-check-list li::before { position: absolute; left: 0; top: 4px; width: 6px; height: 6px; content: ''; background: var(--hess-teal); border-radius: 50%; }
.workflow-list { counter-reset: workflow; }
.workflow-list li { position: relative; min-height: 80px; padding: 0 0 22px 45px; counter-increment: workflow; }
.workflow-list li:not(:last-child)::before { position: absolute; left: 15px; top: 28px; bottom: 0; width: 1px; content: ''; background: #e0e2e7; }
.workflow-list li::after { position: absolute; left: 0; top: 0; display: grid; width: 30px; height: 30px; content: counter(workflow); place-items: center; color: var(--hess-navy); background: #f3eadc; border-radius: 50%; font-size: 10px; font-weight: 800; }
.workflow-list strong { display: block; color: var(--hess-navy); font-size: 12px; }
.workflow-list > li > span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.workflow-list__details { display: grid; margin-top: 8px; gap: 4px; }
.workflow-list__details span { display: block; padding-left: 9px; font-size: 9px; line-height: 1.45; }
.workflow-list__gate { color: #775b36; border-left: 2px solid var(--hess-gold); }
.workflow-list__proof { color: #337a70; border-left: 2px solid var(--hess-teal); }
.quality-panel { border-top: 3px solid var(--hess-teal); }
.quality-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; counter-reset: quality; }
.quality-grid li { position: relative; min-height: 93px; padding: 14px 14px 14px 43px; background: #f7faf9; border: 1px solid #e5efed; border-radius: 9px; counter-increment: quality; }
.quality-grid li::before { position: absolute; left: 13px; top: 14px; display: grid; width: 21px; height: 21px; content: counter(quality); place-items: center; color: #fff; background: var(--hess-teal); border-radius: 50%; font-size: 8px; font-weight: 800; }
.quality-grid strong { display: block; margin-bottom: 4px; color: var(--hess-navy); font-size: 10px; }
.quality-grid span { display: block; color: var(--muted); font-size: 9px; line-height: 1.5; }
.amount-list { display: grid; gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 9px; }
.amount-list li { display: grid; padding: 11px 13px; background: #fff; gap: 4px; }
.amount-list span { color: var(--muted); font-size: 9px; }
.amount-list strong { color: var(--hess-navy); font-size: 11px; }
.controls-panel { border-top: 3px solid var(--hess-blue); }
.control-card__header { display: flex; margin-bottom: 10px; align-items: center; justify-content: space-between; gap: 12px; }
.control-card__header strong { color: var(--hess-navy); font-size: 11px; }
.control-card__header span { display: grid; min-width: 46px; height: 29px; padding: 0 8px; place-items: center; color: #fff; background: var(--hess-navy); border-radius: 7px; font-size: 10px; font-weight: 800; }
.control-card p { font-size: 9px; line-height: 1.55; }
.control-card__condition { padding: 9px 10px; color: #775b36; background: #fbf5ec; border-radius: 7px; }
.control-card__method { color: var(--muted); }
.attention-panel { border-top: 3px solid var(--hess-gold); }
.attention-list { display: grid; gap: 10px; }
.attention-list li { padding-left: 15px; color: #656878; border-left: 2px solid #ead8ba; font-size: 10px; line-height: 1.55; }
.source-panel { color: var(--muted); font-size: 10px; }
.source-panel > p { margin-bottom: 14px; line-height: 1.55; }
.source-list { display: grid; gap: 7px; }
.source-list a { display: grid; padding: 10px 11px; gap: 3px; background: #f8f9fa; border: 1px solid #ececf0; border-radius: 8px; transition: border-color .16s ease, background .16s ease; }
.source-list a:hover { background: #fff; border-color: rgb(51 165 149 / 40%); }
.source-list__type { color: var(--hess-teal); font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.source-list strong { color: var(--hess-navy); font-size: 9px; }
.source-list small { color: var(--muted); font-size: 8px; line-height: 1.45; }
.regulatory-note { padding: 16px 18px; color: #5f6270; background: #fdfaf5; border: 1px solid #eee1ce; border-left: 3px solid var(--hess-gold); border-radius: 9px; }
.regulatory-note strong { display: block; margin-bottom: 3px; color: var(--hess-navy); font-size: 10px; text-transform: uppercase; }
.regulatory-note p { margin: 0; font-size: 10px; line-height: 1.6; }

.sidebar-backdrop { position: fixed; z-index: 25; inset: 0; display: none; background: rgb(20 23 38 / 55%); backdrop-filter: blur(2px); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { transform: translateX(100%); } }

/* User administration */
.users-page { display: grid; gap: 22px; }
.users-page__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.users-page__header h1 { margin-bottom: 6px; font-size: 36px; }
.users-page__header p:last-child { max-width: 720px; margin: 0; color: var(--muted); }
.users-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.users-stats article { display: grid; padding: 18px 21px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 28px rgb(32 36 61 / 4%); }
.users-stats strong { color: var(--hess-navy); font-size: 25px; }
.users-stats span { color: var(--muted); font-size: 11px; }
.users-panel { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.users-filters { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); padding: 17px; gap: 12px; background: #fafafd; border-bottom: 1px solid var(--line); }
.users-filters label, .user-form-grid label { display: grid; gap: 5px; color: var(--hess-navy); font-size: 10px; font-weight: 700; }
.users-filters input, .users-filters select, .user-form-grid input, .user-form-grid select { width: 100%; height: 42px; padding: 0 11px; color: var(--ink); background: #fff; border: 1px solid #dfe1e8; border-radius: 8px; }
.users-feedback { padding: 11px 17px; font-size: 12px; }
.users-feedback--success { color: #23695f; background: #eef9f6; }
.users-feedback--error { color: #8b2f39; background: #fff1f2; }
.users-table-wrap { overflow-x: auto; }
.users-table { width: 100%; border-collapse: collapse; }
.users-table th { padding: 12px 18px; color: #878a98; background: #fff; border-bottom: 1px solid var(--line); font-size: 9px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.users-table td { padding: 14px 18px; border-bottom: 1px solid #eff0f3; vertical-align: middle; }
.users-table td > strong, .users-table td > small { display: block; }
.users-table td > small { color: var(--muted); font-size: 9px; }
.users-table__identity { display: flex; min-width: 230px; align-items: center; gap: 11px; }
.users-table__identity > span:last-child { display: grid; }
.users-table__identity strong { color: var(--hess-navy); font-size: 12px; }
.users-table__identity small { color: var(--muted); font-size: 9px; }
.users-table__avatar { display: grid; width: 35px; height: 35px; flex: none; place-items: center; color: var(--hess-navy-deep); background: #f1e6d5; border-radius: 50%; font-size: 9px; font-weight: 800; }
.users-table__profile { display: inline-flex; padding: 4px 8px; color: #3b4264; background: #f0f1f6; border-radius: 999px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.users-table__status { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.users-table__status::before { width: 7px; height: 7px; content: ''; border-radius: 50%; }
.users-table__status--active { color: #28796d; }
.users-table__status--active::before { background: var(--hess-teal); }
.users-table__status--inactive { color: #8a4650; }
.users-table__status--inactive::before { background: var(--danger); }
.users-table__actions { display: flex; justify-content: flex-end; gap: 5px; }
.users-table__actions button { padding: 6px 8px; color: var(--hess-navy); background: #fff; border: 1px solid #dfe1e8; border-radius: 6px; cursor: pointer; font-size: 9px; font-weight: 700; }
.users-table__actions button.is-danger { color: var(--danger); }
.users-empty { padding: 55px 20px; color: var(--muted); text-align: center; }
.user-dialog, .activity-dialog { width: min(660px, calc(100% - 28px)); padding: 28px; border: 0; border-radius: 17px; box-shadow: 0 35px 100px rgb(20 23 38 / 28%); }
.user-dialog::backdrop, .activity-dialog::backdrop { background: rgb(20 23 38 / 58%); backdrop-filter: blur(3px); }
.user-dialog__close-form { position: absolute; right: 16px; top: 13px; }
.user-dialog__close-form button { color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: 25px; }
.user-dialog h2, .activity-dialog h2 { margin-bottom: 20px; font-size: 27px; }
.user-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.user-form-grid__wide { grid-column: 1 / -1; }
.user-form-note { margin: 14px 0; color: var(--muted); font-size: 10px; }
.user-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; }
.activity-list { display: grid; max-height: 420px; padding: 0; margin: 0; overflow-y: auto; gap: 10px; list-style: none; }
.activity-list li { display: grid; padding: 13px 15px; background: #f7f8fa; border-left: 3px solid var(--hess-teal); border-radius: 8px; }
.activity-list strong { color: var(--hess-navy); font-size: 11px; }
.activity-list span, .activity-list small { color: var(--muted); font-size: 9px; }
.workspace-placeholder-page { display: grid; min-height: 100vh; padding: 25px; place-items: center; background: radial-gradient(circle at 15% 20%, rgb(51 165 149 / 12%), transparent 25%), var(--canvas); }
.workspace-placeholder { width: min(650px, 100%); padding: 55px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.workspace-placeholder > img { width: 180px; margin: 0 auto 35px; }
.workspace-placeholder h1 { font-size: 38px; }
.workspace-placeholder > p:not(.eyebrow) { color: var(--muted); }
.workspace-placeholder__status { display: inline-flex; padding: 10px 14px; margin: 12px 0 25px; align-items: center; gap: 8px; color: #28796d; background: #eef9f6; border-radius: 999px; font-size: 10px; font-weight: 700; }
.workspace-placeholder__status i { width: 7px; height: 7px; background: var(--hess-teal); border-radius: 50%; }

/* API-first business workspaces */
.business-workspace, .case-detail { display: grid; gap: 22px; }
.workspace-hero { display: flex; padding: 29px 32px; align-items: center; justify-content: space-between; gap: 25px; color: #fff; background: linear-gradient(135deg, var(--hess-navy-deep), #39466a); border-radius: 16px; box-shadow: var(--shadow); }
.workspace-hero h1 { margin-bottom: 7px; color: #fff; font-size: 34px; }
.workspace-hero p:last-child { margin: 0; color: rgb(255 255 255 / 67%); }
.workspace-hero__badge { padding: 7px 11px; color: #fff; background: rgb(51 165 149 / 25%); border: 1px solid rgb(255 255 255 / 15%); border-radius: 999px; white-space: nowrap; font-size: 10px; font-weight: 750; }
.workspace-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.workspace-kpis article { display: grid; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.workspace-kpis span, .workspace-kpis small { color: var(--muted); font-size: 10px; }
.workspace-kpis strong { color: var(--hess-navy); font-size: 29px; }
.workspace-panel { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.workspace-panel > header { display: flex; padding: 21px 23px 12px; align-items: center; justify-content: space-between; }
.workspace-panel h2 { margin: 0; }
.case-filters { display: grid; grid-template-columns: 2fr 1fr; padding: 14px 20px; gap: 10px; background: #fafafd; border-block: 1px solid var(--line); }
.case-filters input, .case-filters select { min-height: 42px; padding: 0 12px; background: #fff; border: 1px solid #dfe1e8; border-radius: 8px; }
.case-status { display: inline-flex; padding: 5px 9px; color: #3b4264; background: #eef0f5; border-radius: 999px; white-space: nowrap; font-size: 9px; font-weight: 750; }
.case-status--approved { color: #23695f; background: #e9f7f3; }
.case-status--rejected { color: #8b2f39; background: #fff1f2; }
.case-status--changes_requested { color: #80622f; background: #fff8e9; }
.case-link { display: inline-flex; padding: 7px 10px; color: #fff; background: var(--hess-navy); border-radius: 7px; font-size: 9px; font-weight: 700; }
.workspace-readonly-note { padding: 13px 16px; color: #80622f; background: #fff8e9; border: 1px solid #f1dfb9; border-radius: 10px; font-size: 11px; }
.case-detail__back { color: var(--hess-navy); font-weight: 700; }
.document-checklist { display: grid; padding: 0 23px 23px; margin: 0; gap: 9px; list-style: none; }
.document-checklist li { display: flex; padding: 13px 15px; align-items: center; justify-content: space-between; background: #f8f9fb; border-left: 4px solid var(--line); border-radius: 8px; }
.document-checklist li.is-valid { border-left-color: var(--hess-teal); }
.document-checklist li.is-missing { border-left-color: var(--hess-gold); }
.document-checklist span { color: var(--muted); font-size: 10px; }
.case-decisions { display: flex; justify-content: flex-end; gap: 9px; }
.case-decisions button { padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; }

@media (max-width: 1120px) {
    .sheet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-layout { grid-template-columns: minmax(0, 1fr) 285px; }
    .topbar__environment { display: none; }
}

@media (max-width: 920px) {
    .auth-card { grid-template-columns: 1fr 1fr; }
    .auth-card__form-panel { padding-inline: 35px; }
    .auth-card__visual { padding-inline: 40px; }
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar.is-open ~ * { pointer-events: none; }
    .sidebar__close, .topbar__menu { display: grid; }
    .sidebar-backdrop.is-open { display: block; }
    .workspace-main { width: 100%; margin-left: 0; }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .users-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .auth-shell { padding: 0; }
    .auth-card { display: flex; min-height: 100vh; border-radius: 0; flex-direction: column-reverse; }
    .auth-card__visual { min-height: 285px; padding: 42px 30px; }
    .auth-card__visual h2 { font-size: 28px; }
    .auth-card__visual p { margin-bottom: 0; }
    .auth-card__benefits, .auth-card__monogram { display: none; }
    .auth-card__form-panel { min-height: 540px; padding: 29px 30px; }
    .auth-card__form-content { padding: 35px 0; }
    .topbar { height: 64px; padding: 0 18px; gap: 12px; }
    .topbar__search { width: 100%; }
    .topbar__search kbd, .topbar__actions { display: none; }
    .content { min-height: calc(100vh - 64px); padding: 27px 18px 40px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .page-heading__date { display: none; }
    .welcome-panel { display: block; }
    .welcome-panel__copy { padding: 35px 27px; }
    .welcome-panel__visual { display: none; }
    .empty-dashboard { padding: 22px 18px; }
    .sheet-grid, .detail-aside { grid-template-columns: 1fr; }
    .catalog-search { align-items: stretch; flex-direction: column; }
    .catalog-search > svg { margin-top: 14px; }
    .catalog-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
    .detail-hero { padding: 28px 24px; }
    .detail-hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-panel { padding: 22px; }
    .document-card__summary { align-items: flex-start; flex-wrap: wrap; }
    .document-card__body { padding-left: 16px; }
    .document-card__definitions, .quality-grid { grid-template-columns: 1fr; }
    .users-page__header { align-items: stretch; flex-direction: column; }
    .users-stats { grid-template-columns: 1fr; }
    .users-filters, .user-form-grid { grid-template-columns: 1fr; }
    .workspace-kpis, .case-filters { grid-template-columns: 1fr; }
    .user-form-grid__wide { grid-column: auto; }
    .workspace-placeholder { padding: 38px 24px; }
}

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