/* PARLEVIA_ACCESS_VISUAL_V2_READY */
:root {
    --navy: #0b1d3a;
    --blue: #132c55;
    --teal: #0fa3a3;
    --cyan: #22c1d6;
    --mist: #e6e9ee;
    --paper: #f4f6f8;
    --white: #ffffff;
    --ink: #14213a;
    --muted: #66758b;
    --line: rgba(11, 29, 58, 0.12);
    --green: #16875b;
    --amber: #a96d00;
    --red: #b13b3b;
    --shadow: 0 24px 70px rgba(11, 29, 58, 0.12);
    --heading: "Cormorant Garamond", Garamond, Georgia, serif;
    --body: Inter, "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.section-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: var(--teal);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-kicker::before {
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--teal));
    content: "";
}

.section-kicker-light {
    color: var(--cyan);
}

.section-kicker-light::before {
    background: var(--cyan);
}

/* LOGIN --------------------------------------------------------- */
.auth-page {
    display: grid;
    place-items: center;
    padding: 32px;
    background:
        radial-gradient(circle at 8% 8%, rgba(34, 193, 214, 0.12), transparent 24%),
        radial-gradient(circle at 92% 86%, rgba(15, 163, 163, 0.10), transparent 22%),
        var(--paper);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    width: min(1180px, 100%);
    min-height: 720px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.auth-story {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 44px 50px 38px;
    color: var(--white);
    background:
        linear-gradient(145deg, rgba(34, 193, 214, 0.08), transparent 44%),
        linear-gradient(135deg, var(--navy), #102c54 68%, #0d4960);
}

.auth-brand {
    display: inline-flex;
    width: 270px;
    padding: 9px 13px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
}

.auth-story-content {
    margin: auto 0;
    padding: 64px 0 52px;
}

.auth-story h1,
.auth-panel h2,
.dashboard-hero h1,
.metric-card h2,
.card-heading h2,
.next-action-card h2 {
    margin: 0;
    font-family: var(--heading);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.auth-story h1 {
    max-width: 620px;
    color: var(--white);
    font-size: clamp(46px, 5.3vw, 70px);
    line-height: 0.96;
}

.auth-story-content > p:not(.section-kicker) {
    max-width: 620px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
}

.auth-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 44px;
}

.auth-proof-grid > div {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.auth-proof-grid span {
    display: block;
    margin-bottom: 22px;
    color: var(--cyan);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.auth-proof-grid strong,
.auth-proof-grid small {
    display: block;
}

.auth-proof-grid strong {
    font-size: 14px;
}

.auth-proof-grid small {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    line-height: 1.45;
}

.auth-story-footer {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

.auth-panel {
    display: grid;
    align-items: center;
    padding: 60px 56px;
    background: var(--white);
}

.auth-panel-inner {
    width: min(430px, 100%);
    margin-inline: auto;
}

.panel-kicker {
    margin: 0 0 10px;
    color: var(--teal);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-panel h2 {
    color: var(--navy);
    font-size: 48px;
    line-height: 1;
}

.panel-intro {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.transport-warning,
.form-alert {
    margin-top: 24px;
    border-radius: 14px;
}

.transport-warning {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(169, 109, 0, 0.18);
    background: rgba(169, 109, 0, 0.08);
}

.transport-warning > span {
    width: 9px;
    height: 9px;
    margin-top: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--amber);
}

.transport-warning strong,
.transport-warning p {
    display: block;
    margin: 0;
}

.transport-warning strong {
    color: #765000;
    font-size: 12px;
}

.transport-warning p {
    margin-top: 3px;
    color: #826828;
    font-size: 11px;
}

.form-alert {
    padding: 13px 14px;
    border: 1px solid rgba(177, 59, 59, 0.18);
    background: rgba(177, 59, 59, 0.07);
    color: #8d2f2f;
    font-size: 12px;
    font-weight: 700;
}

.login-form {
    display: grid;
    gap: 18px;
    margin-top: 30px;
}

.login-form label {
    display: grid;
    gap: 8px;
}

.login-form label > span {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}

.login-form input {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid rgba(11, 29, 58, 0.16);
    border-radius: 12px;
    outline: none;
    background: #fbfcfd;
    color: var(--navy);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-form input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(15, 163, 163, 0.10);
}

.login-form button {
    height: 54px;
    margin-top: 4px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: var(--white);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
    box-shadow: 0 14px 30px rgba(11, 29, 58, 0.18);
}

.login-form button:hover {
    background: var(--blue);
}

.access-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.access-meta span {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(11, 29, 58, 0.05);
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

/* PLATFORM ------------------------------------------------------ */
.platform-page {
    background: #eef1f5;
}

.platform-layout {
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    min-height: 100vh;
}

.platform-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 26px 20px 22px;
    color: var(--white);
    background:
        linear-gradient(180deg, rgba(34, 193, 214, 0.06), transparent 24%),
        var(--navy);
}

.sidebar-brand {
    display: block;
    width: 218px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
}

.sidebar-scope {
    display: grid;
    gap: 3px;
    margin-top: 26px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-scope small {
    color: rgba(255, 255, 255, 0.48);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-scope strong {
    font-size: 12px;
}

.platform-nav {
    display: grid;
    gap: 5px;
    margin-top: 24px;
}

.platform-nav a,
.platform-nav > span {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.platform-nav a:hover,
.platform-nav a.is-active {
    background: rgba(255, 255, 255, 0.10);
    color: var(--white);
}

.platform-nav .is-disabled {
    opacity: 0.48;
}

.platform-nav small {
    margin-left: auto;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(34, 193, 214, 0.14);
    color: var(--cyan);
    font-size: 8px;
    text-transform: uppercase;
}

.nav-mark {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border: 1px solid currentColor;
    border-radius: 2px;
}

.platform-nav a.is-active .nav-mark {
    border-color: var(--cyan);
    background: var(--cyan);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.user-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    color: var(--navy);
    font-size: 13px;
    font-weight: 900;
}

.sidebar-user > div:last-child {
    display: grid;
    min-width: 0;
}

.sidebar-user strong,
.sidebar-user small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user strong {
    font-size: 12px;
}

.sidebar-user small {
    color: rgba(255, 255, 255, 0.48);
    font-size: 9px;
}

.sidebar-logout {
    margin-top: 12px;
}

.sidebar-logout button {
    width: 100%;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    background: transparent;
    color: rgba(255, 255, 255, 0.70);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.sidebar-logout button:hover {
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--white);
}

.platform-main {
    min-width: 0;
}

.platform-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    padding: 0 34px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
}

.platform-topbar > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.platform-topbar span {
    color: var(--muted);
    font-size: 11px;
}

.platform-topbar strong {
    color: var(--navy);
    font-size: 13px;
}

.topbar-state {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
}

.topbar-state > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.topbar-state.is-secure {
    background: rgba(22, 135, 91, 0.10);
    color: var(--green);
}

.topbar-state.is-secure > span {
    background: var(--green);
}

.topbar-state.is-pending {
    background: rgba(169, 109, 0, 0.10);
    color: var(--amber);
}

.topbar-state.is-pending > span {
    background: var(--amber);
}

.platform-content {
    width: min(calc(100% - 64px), 1260px);
    margin-inline: auto;
    padding: 46px 0 68px;
}

.dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
}

.dashboard-hero h1 {
    color: var(--navy);
    font-size: clamp(48px, 5vw, 68px);
    line-height: 0.98;
}

.dashboard-hero > div:first-child > p:last-child {
    max-width: 720px;
    margin: 17px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.phase-badge {
    min-width: 210px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 14px 38px rgba(11, 29, 58, 0.07);
}

.phase-badge span,
.phase-badge strong {
    display: block;
}

.phase-badge span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.phase-badge strong {
    margin-top: 3px;
    color: var(--blue);
    font-size: 13px;
}

.dashboard-notice {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    padding: 16px 18px;
    border: 1px solid rgba(169, 109, 0, 0.16);
    border-radius: 16px;
    background: rgba(255, 248, 230, 0.85);
}

.notice-icon {
    width: 10px;
    height: 10px;
    margin-top: 5px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 6px rgba(169, 109, 0, 0.09);
}

.dashboard-notice strong,
.dashboard-notice p {
    margin: 0;
}

.dashboard-notice strong {
    color: #745100;
    font-size: 12px;
}

.dashboard-notice p {
    margin-top: 3px;
    color: #806a32;
    font-size: 11px;
}

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

.metric-card,
.roadmap-card,
.activity-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 18px 52px rgba(11, 29, 58, 0.07);
}

.metric-card {
    min-width: 0;
    padding: 21px;
}

.metric-index {
    display: block;
    color: var(--teal);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.metric-card > strong {
    display: block;
    margin-top: 16px;
    color: var(--navy);
    font-family: var(--heading);
    font-size: 42px;
    font-weight: 600;
    line-height: 1;
}

.metric-card h2 {
    margin-top: 11px;
    color: var(--blue);
    font-family: var(--body);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0;
}

.metric-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
    gap: 16px;
    margin-top: 16px;
}

.roadmap-card,
.activity-card {
    overflow: hidden;
}

.card-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    padding: 24px;
    border-bottom: 1px solid var(--line);
}

.card-heading h2 {
    color: var(--navy);
    font-size: 30px;
    line-height: 1;
}

.card-heading > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.roadmap-list {
    display: grid;
    padding: 5px 24px 15px;
}

.roadmap-list > div {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

.roadmap-list > div:last-child {
    border-bottom: 0;
}

.roadmap-list > div > span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
}

.roadmap-list > div > div {
    display: grid;
    gap: 2px;
}

.roadmap-list strong {
    color: var(--blue);
    font-size: 12px;
}

.roadmap-list small {
    color: var(--muted);
    font-size: 10px;
}

.roadmap-list .is-complete > span {
    border-color: rgba(22, 135, 91, 0.20);
    background: rgba(22, 135, 91, 0.10);
    color: var(--green);
}

.roadmap-list .is-current > span {
    border-color: rgba(15, 163, 163, 0.24);
    background: rgba(15, 163, 163, 0.12);
    color: var(--teal);
    box-shadow: 0 0 0 5px rgba(15, 163, 163, 0.06);
}

.next-action-card {
    padding: 27px;
    border-radius: 20px;
    color: var(--white);
    background:
        linear-gradient(145deg, rgba(34, 193, 214, 0.09), transparent 44%),
        linear-gradient(135deg, var(--navy), var(--blue));
    box-shadow: 0 20px 58px rgba(11, 29, 58, 0.15);
}

.next-action-card h2 {
    max-width: 340px;
    color: var(--white);
    font-size: 38px;
    line-height: 0.98;
}

.next-action-card > p:not(.section-kicker) {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
}

.action-disabled {
    display: inline-flex;
    margin-top: 28px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 9px;
    font-weight: 800;
}

.activity-card {
    margin-top: 16px;
}

.activity-list {
    display: grid;
}

.activity-list article {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 66px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--line);
}

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

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.activity-dot.is-success {
    background: var(--green);
}

.activity-dot.is-failure {
    background: var(--red);
}

.activity-list article > div {
    display: grid;
    gap: 2px;
}

.activity-list strong {
    color: var(--blue);
    font-size: 11px;
}

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

.outcome-label {
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
}

.outcome-label.is-success {
    background: rgba(22, 135, 91, 0.09);
    color: var(--green);
}

.outcome-label.is-failure {
    background: rgba(177, 59, 59, 0.08);
    color: var(--red);
}

.empty-state {
    padding: 28px 24px;
    color: var(--muted);
    font-size: 11px;
}

@media (max-width: 1080px) {
    .auth-shell {
        grid-template-columns: 1fr 430px;
    }

    .auth-story {
        padding-inline: 36px;
    }

    .auth-proof-grid {
        grid-template-columns: 1fr;
    }

    .auth-proof-grid > div {
        display: grid;
        grid-template-columns: 32px 1fr;
        column-gap: 10px;
    }

    .auth-proof-grid span {
        grid-row: 1 / span 2;
        margin: 0;
    }

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

@media (max-width: 900px) {
    .auth-page {
        padding: 18px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-story {
        min-height: auto;
        padding: 30px;
    }

    .auth-story-content {
        padding: 50px 0 36px;
    }

    .auth-story-footer {
        display: none;
    }

    .auth-panel {
        padding: 44px 30px;
    }

    .platform-layout {
        grid-template-columns: 1fr;
    }

    .platform-sidebar {
        position: static;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        height: auto;
        padding: 16px 20px;
    }

    .sidebar-brand {
        width: 180px;
    }

    .sidebar-scope,
    .sidebar-user,
    .sidebar-logout {
        display: none;
    }

    .platform-nav {
        display: flex;
        justify-content: flex-end;
        margin: 0;
    }

    .platform-nav > span,
    .platform-nav a:not(.is-active):not([href="/app/status"]) {
        display: none;
    }

    .platform-nav a {
        min-height: 36px;
    }

    .platform-topbar {
        padding-inline: 24px;
    }

    .platform-content {
        width: min(calc(100% - 40px), 1260px);
        padding-top: 34px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .auth-page {
        padding: 0;
        background: var(--white);
    }

    .auth-shell {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-story {
        padding: 24px 20px 30px;
    }

    .auth-brand {
        width: 215px;
    }

    .auth-story-content {
        padding: 40px 0 10px;
    }

    .auth-story h1 {
        font-size: 43px;
    }

    .auth-proof-grid {
        display: none;
    }

    .auth-panel {
        padding: 38px 20px 48px;
    }

    .auth-panel h2 {
        font-size: 42px;
    }

    .platform-sidebar {
        grid-template-columns: 1fr auto;
    }

    .sidebar-brand {
        width: 165px;
    }

    .platform-nav a.is-active {
        display: none;
    }

    .platform-topbar {
        min-height: 64px;
        padding-inline: 18px;
    }

    .platform-content {
        width: min(calc(100% - 28px), 1260px);
        padding: 28px 0 44px;
    }

    .dashboard-hero {
        display: grid;
        gap: 22px;
    }

    .dashboard-hero h1 {
        font-size: 48px;
    }

    .phase-badge {
        min-width: 0;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .card-heading {
        align-items: flex-start;
        padding: 21px;
    }

    .card-heading > span {
        display: none;
    }

    .roadmap-list {
        padding-inline: 21px;
    }

    .activity-list article {
        grid-template-columns: 9px minmax(0, 1fr);
        padding-inline: 21px;
    }

    .outcome-label {
        display: none;
    }
}

/* LOGIN V2 — proporciones de escritorio ------------------------ */
.auth-brand img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (min-width: 1081px) {
    .auth-page {
        padding: 36px 40px;
    }

    .auth-shell {
        grid-template-columns:
            minmax(0, 1.16fr)
            minmax(520px, 0.84fr);
        width: min(1480px, calc(100vw - 80px));
        min-height: 680px;
    }

    .auth-story {
        padding: 38px 60px 32px;
    }

    .auth-brand {
        width: 350px;
        padding: 11px 17px;
    }

    .auth-story-content {
        padding: 40px 0 32px;
    }

    .auth-story h1 {
        max-width: 760px;
        font-size: clamp(54px, 4.15vw, 72px);
        line-height: 0.95;
    }

    .auth-story-content > p:not(.section-kicker) {
        max-width: 720px;
        margin-top: 20px;
        font-size: 15px;
    }

    .auth-proof-grid {
        gap: 14px;
        margin-top: 34px;
    }

    .auth-proof-grid > div {
        padding: 18px 17px;
    }

    .auth-proof-grid span {
        margin-bottom: 17px;
    }

    .auth-panel {
        padding: 50px 68px;
    }

    .auth-panel-inner {
        width: min(500px, 100%);
    }

    .auth-panel h2 {
        max-width: 420px;
        font-size: 54px;
    }

    .panel-intro {
        max-width: 430px;
        margin-top: 14px;
    }

    .transport-warning,
    .form-alert {
        margin-top: 20px;
    }

    .login-form {
        gap: 16px;
        margin-top: 26px;
    }

    .login-form input {
        height: 54px;
    }

    .login-form button {
        height: 56px;
    }

    .access-meta {
        margin-top: 18px;
    }
}

\
/* INSTITUTIONS V1 ---------------------------------------------- */
.page-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 34px;
}

.page-hero h1 {
    margin: 0;
    color: var(--navy);
    font-family: var(--heading);
    font-size: clamp(48px, 5vw, 68px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 0.98;
}

.page-hero > div > p:last-child {
    max-width: 760px;
    margin: 17px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.page-hero-compact h1 {
    font-size: clamp(44px, 4.5vw, 62px);
}

.button-primary,
.button-secondary,
.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    text-decoration: none;
    cursor: pointer;
    font-family: var(--body);
    font-size: 11px;
    font-weight: 900;
}

.button-primary {
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: var(--white);
    box-shadow: 0 12px 28px rgba(11, 29, 58, 0.16);
}

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

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

.action-link {
    margin-top: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.success-banner,
.security-inline-note {
    display: flex;
    gap: 14px;
    margin-top: 26px;
    padding: 16px 18px;
    border-radius: 16px;
}

.success-banner {
    border: 1px solid rgba(22, 135, 91, 0.16);
    background: rgba(22, 135, 91, 0.08);
}

.success-banner > span,
.security-inline-note > span {
    width: 10px;
    height: 10px;
    margin-top: 5px;
    flex: 0 0 auto;
    border-radius: 50%;
}

.success-banner > span {
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(22, 135, 91, 0.08);
}

.success-banner strong,
.success-banner p,
.security-inline-note strong,
.security-inline-note p {
    margin: 0;
}

.success-banner strong {
    color: #0f6b47;
    font-size: 12px;
}

.success-banner p {
    margin-top: 3px;
    color: #527263;
    font-size: 11px;
}

.institution-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.institution-summary-grid article {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 16px 44px rgba(11, 29, 58, 0.06);
}

.institution-summary-grid span {
    display: block;
    color: var(--teal);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.institution-summary-grid strong {
    display: block;
    margin-top: 13px;
    color: var(--navy);
    font-family: var(--heading);
    font-size: 38px;
    font-weight: 600;
    line-height: 1;
}

.institution-summary-grid small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
}

.institution-list-card {
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 18px 52px rgba(11, 29, 58, 0.07);
}

.institution-empty {
    display: grid;
    justify-items: center;
    padding: 64px 24px 70px;
    text-align: center;
}

.institution-empty-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 163, 163, 0.10);
    color: var(--teal);
    font-size: 10px;
    font-weight: 900;
}

.institution-empty h3 {
    margin: 20px 0 0;
    color: var(--navy);
    font-family: var(--heading);
    font-size: 32px;
    line-height: 1;
}

.institution-empty p {
    max-width: 500px;
    margin: 12px 0 24px;
    color: var(--muted);
    font-size: 12px;
}

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

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

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

.institution-table th {
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.institution-table td {
    color: var(--blue);
    font-size: 11px;
}

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

.institution-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
}

.institution-color {
    width: 10px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--institution-color);
}

.institution-name-cell > div {
    display: grid;
    gap: 3px;
}

.institution-name-cell strong {
    color: var(--navy);
    font-size: 12px;
}

.institution-name-cell small,
.table-muted {
    color: var(--muted);
    font-size: 9px;
}

.domain-pending {
    color: var(--amber);
    font-size: 10px;
    font-weight: 800;
}

.module-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.module-pill-row span,
.status-pill {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
}

.module-pill-row span {
    background: rgba(11, 29, 58, 0.06);
    color: var(--blue);
}

.status-draft {
    background: rgba(169, 109, 0, 0.10);
    color: var(--amber);
}

.status-active {
    background: rgba(22, 135, 91, 0.10);
    color: var(--green);
}

.status-suspended,
.status-archived {
    background: rgba(177, 59, 59, 0.08);
    color: var(--red);
}

.form-global-error {
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px solid rgba(177, 59, 59, 0.18);
    border-radius: 14px;
    background: rgba(177, 59, 59, 0.07);
    color: #8d2f2f;
    font-size: 12px;
    font-weight: 750;
}

.security-inline-note {
    border: 1px solid rgba(169, 109, 0, 0.16);
    background: rgba(255, 248, 230, 0.85);
}

.security-inline-note > span {
    background: var(--amber);
    box-shadow: 0 0 0 6px rgba(169, 109, 0, 0.08);
}

.security-inline-note strong {
    color: #745100;
    font-size: 12px;
}

.security-inline-note p {
    margin-top: 3px;
    color: #806a32;
    font-size: 11px;
}

.institution-form {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}

.form-section {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 18px 52px rgba(11, 29, 58, 0.06);
}

.form-section-heading {
    display: flex;
    gap: 14px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.form-section-heading > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(15, 163, 163, 0.10);
    color: var(--teal);
    font-size: 9px;
    font-weight: 900;
}

.form-section-heading h2,
.form-section-heading p {
    margin: 0;
}

.form-section-heading h2 {
    color: var(--navy);
    font-family: var(--heading);
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
}

.form-section-heading p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}

.form-grid {
    display: grid;
    gap: 20px;
    margin-top: 24px;
}

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

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

.form-field > span {
    color: var(--blue);
    font-size: 11px;
    font-weight: 850;
}

.form-field input[type="text"],
.form-field select {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid rgba(11, 29, 58, 0.15);
    border-radius: 11px;
    outline: none;
    background: #fbfcfd;
    color: var(--navy);
    font-size: 12px;
}

.form-field input:focus,
.form-field select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(15, 163, 163, 0.09);
}

.form-field > small {
    color: var(--muted);
    font-size: 9px;
}

.field-error {
    color: var(--red) !important;
    font-weight: 750;
}

.field-error-block {
    display: block;
    margin-top: 10px;
}

.adoption-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.adoption-option {
    position: relative;
    display: grid;
    align-content: start;
    min-height: 154px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfcfd;
    cursor: pointer;
}

.adoption-option input {
    position: absolute;
    top: 16px;
    right: 16px;
    accent-color: var(--teal);
}

.adoption-option > span {
    color: var(--teal);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.adoption-option strong {
    margin-top: 24px;
    color: var(--navy);
    font-size: 13px;
}

.adoption-option small {
    margin-top: 7px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.adoption-option:has(input:checked) {
    border-color: rgba(15, 163, 163, 0.46);
    background: rgba(15, 163, 163, 0.05);
    box-shadow: 0 0 0 3px rgba(15, 163, 163, 0.07);
}

.switch-field {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
}

.switch-field input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-field > span {
    position: relative;
    width: 42px;
    height: 24px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(11, 29, 58, 0.15);
    transition: background 160ms ease;
}

.switch-field > span::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(11, 29, 58, 0.18);
    content: "";
    transition: transform 160ms ease;
}

.switch-field input:checked + span {
    background: var(--teal);
}

.switch-field input:checked + span::after {
    transform: translateX(18px);
}

.switch-field > div {
    display: grid;
    gap: 3px;
}

.switch-field strong {
    color: var(--blue);
    font-size: 11px;
}

.switch-field small {
    color: var(--muted);
    font-size: 9px;
}

.locked-module-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(11, 29, 58, 0.04);
}

.locked-module-note span {
    grid-row: 1 / span 2;
    align-self: center;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(11, 29, 58, 0.07);
    color: var(--blue);
    font-size: 8px;
    font-weight: 900;
}

.locked-module-note strong {
    color: var(--blue);
    font-size: 10px;
}

.locked-module-note small {
    color: var(--muted);
    font-size: 9px;
}

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

.color-field > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-field input[type="color"] {
    width: 62px;
    height: 46px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
}

.color-field code {
    color: var(--blue);
    font-family: var(--body);
    font-size: 11px;
    font-weight: 800;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 0 0;
}

@media (max-width: 1080px) {
    .institution-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .adoption-grid {
        grid-template-columns: 1fr;
    }

    .adoption-option {
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .page-hero {
        display: grid;
        align-items: start;
        gap: 20px;
    }

    .page-hero .button-primary,
    .page-hero .button-secondary {
        justify-self: start;
    }

    .form-grid-2,
    .color-grid {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 22px 18px;
    }

    .institution-table thead {
        display: none;
    }

    .institution-table,
    .institution-table tbody,
    .institution-table tr,
    .institution-table td {
        display: block;
        width: 100%;
    }

    .institution-table tr {
        padding: 14px 18px;
        border-bottom: 1px solid var(--line);
    }

    .institution-table td {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 12px;
        padding: 8px 0;
        border: 0;
    }

    .institution-table td::before {
        color: var(--muted);
        font-size: 8px;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        content: attr(data-label);
    }

    .institution-name-cell {
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .institution-summary-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        display: grid;
    }

    .form-actions .button-primary,
    .form-actions .button-secondary {
        width: 100%;
    }
}

/* SIDEBAR LOGO FIX V1 */
.sidebar-brand {
    height: auto;
    min-height: 0;
    overflow: hidden;
}

.sidebar-brand img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* INSTITUTION DETAIL V1 */
.institution-record-link {
    color: var(--navy);
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.institution-record-link:hover {
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.institution-detail-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 34px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

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

.institution-title-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.institution-hero-color {
    width: 16px;
    height: 78px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--institution-primary), var(--institution-accent));
}

.institution-title-row h1 {
    margin: 0;
    color: var(--navy);
    font-family: var(--heading);
    font-size: clamp(46px, 4.8vw, 66px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 0.96;
}

.institution-title-row h1 + p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
}

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

.institution-tabs {
    display: flex;
    gap: 4px;
    margin-top: 26px;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}

.institution-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.institution-tabs a:hover,
.institution-tabs a.is-active {
    background: rgba(15, 163, 163, 0.09);
    color: var(--teal);
}

.institution-detail-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.institution-detail-summary article {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 16px 44px rgba(11, 29, 58, 0.06);
}

.institution-detail-summary article > span {
    display: block;
    color: var(--teal);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.institution-detail-summary article > strong {
    display: block;
    margin-top: 13px;
    overflow: hidden;
    color: var(--navy);
    font-family: var(--heading);
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    text-overflow: ellipsis;
}

.institution-detail-summary article > small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
}

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

.institution-detail-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 18px 52px rgba(11, 29, 58, 0.06);
}

.institution-detail-card-wide {
    grid-column: 1 / -1;
}

.detail-card-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
}

.detail-card-heading h2,
.detail-card-heading p {
    margin: 0;
}

.detail-card-heading h2 {
    color: var(--navy);
    font-family: var(--heading);
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
}

.detail-card-heading > a,
.detail-card-heading > span {
    color: var(--teal);
    font-size: 9px;
    font-weight: 850;
    text-decoration: none;
}

.detail-list {
    display: grid;
    margin: 0;
    padding: 8px 24px 18px;
}

.detail-list > div {
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.detail-list > div:last-child {
    border-bottom: 0;
}

.detail-list dt {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
}

.detail-list dd {
    margin: 0;
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
}

.detail-list code {
    color: var(--teal);
    font-family: var(--body);
    font-size: 10px;
    font-weight: 850;
}

.brand-preview-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 24px 24px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(11, 29, 58, 0.04);
}

.brand-preview-strip > span {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 1px solid rgba(11, 29, 58, 0.08);
    border-radius: 9px;
}

.brand-preview-strip > div {
    display: grid;
    gap: 2px;
}

.brand-preview-strip strong {
    color: var(--blue);
    font-size: 10px;
}

.brand-preview-strip small {
    color: var(--muted);
    font-size: 9px;
}

.detail-empty-state,
.domain-detail {
    padding: 28px 24px;
}

.detail-empty-state strong,
.domain-detail strong {
    display: block;
    color: var(--blue);
    font-size: 12px;
}

.detail-empty-state p,
.domain-detail small {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

.domain-detail > span {
    display: inline-flex;
    margin-top: 12px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
}

.domain-detail > span.is-pending {
    background: rgba(169, 109, 0, 0.10);
    color: var(--amber);
}

.domain-detail > span.is-verified {
    background: rgba(22, 135, 91, 0.10);
    color: var(--green);
}

.domain-detail small {
    display: block;
}

.detail-policy-note {
    margin: 0 24px 24px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(169, 109, 0, 0.07);
}

.detail-policy-note strong,
.detail-policy-note p {
    margin: 0;
}

.detail-policy-note strong {
    color: #745100;
    font-size: 10px;
}

.detail-policy-note p {
    margin-top: 4px;
    color: #806a32;
    font-size: 9px;
}

.institution-module-list {
    display: grid;
}

.institution-module-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
}

.institution-module-list article:last-child {
    border-bottom: 0;
}

.institution-module-list article > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.institution-module-list article > div > span {
    color: var(--teal);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.institution-module-list strong {
    color: var(--blue);
    font-size: 11px;
}

.institution-module-list small {
    color: var(--muted);
    font-size: 9px;
}

.module-status {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
}

.module-status-active {
    background: rgba(22, 135, 91, 0.10);
    color: var(--green);
}

.module-status-disabled,
.module-status-expired {
    background: rgba(11, 29, 58, 0.06);
    color: var(--muted);
}

.module-status-scheduled {
    background: rgba(169, 109, 0, 0.10);
    color: var(--amber);
}

.institution-audit-list {
    display: grid;
}

.institution-audit-list article {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--line);
}

.institution-audit-list article:last-child {
    border-bottom: 0;
}

.institution-audit-list article > div {
    display: grid;
    gap: 2px;
}

.institution-audit-list strong {
    color: var(--blue);
    font-size: 10px;
}

.institution-audit-list small {
    color: var(--muted);
    font-size: 9px;
}

.immutable-tenant-key,
.read-only-domain {
    margin-top: 22px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(11, 29, 58, 0.035);
}

.immutable-tenant-key {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 10px 14px;
}

.immutable-tenant-key > span,
.read-only-domain span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
}

.immutable-tenant-key code {
    padding: 5px 8px;
    border-radius: 8px;
    background: var(--white);
    color: var(--teal);
    font-family: var(--body);
    font-size: 10px;
    font-weight: 900;
}

.immutable-tenant-key small,
.read-only-domain small {
    color: var(--muted);
    font-size: 9px;
}

.read-only-domain {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.read-only-domain > div {
    display: grid;
    gap: 3px;
}

.read-only-domain strong {
    color: var(--blue);
    font-size: 11px;
}

@media (max-width: 1080px) {
    .institution-detail-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .institution-detail-grid {
        grid-template-columns: 1fr;
    }

    .institution-detail-card-wide {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .institution-detail-hero {
        display: grid;
        align-items: start;
    }

    .institution-detail-actions {
        flex-wrap: wrap;
    }

    .institution-title-row {
        align-items: flex-start;
    }

    .institution-detail-summary {
        grid-template-columns: 1fr;
    }

    .detail-list > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .institution-module-list article {
        align-items: flex-start;
    }

    .immutable-tenant-key,
    .read-only-domain {
        display: grid;
    }
}

/* INSTITUTION COLOR PREVIEW FIX V1.2 */
.institution-hero-colors {
    display: block;
    width: 16px;
    height: 78px;
    flex: 0 0 auto;
    overflow: visible;
}

.brand-preview-strip {
    align-items: center;
}

.brand-preview-strip > .brand-preview-swatches {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.brand-preview-swatch {
    display: grid;
    justify-items: center;
    gap: 5px;
}

.brand-preview-swatch svg {
    display: block;
    width: 36px;
    height: 36px;
    overflow: visible;
    border: 1px solid rgba(11, 29, 58, 0.10);
    border-radius: 9px;
    background: var(--white);
}

.brand-preview-swatch span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
}

@media (max-width: 520px) {
    .brand-preview-strip {
        align-items: flex-start;
    }

    .brand-preview-strip > .brand-preview-swatches {
        flex: 0 0 auto;
    }
}

/* LEGISLATIVE WORKSPACE V1 -------------------------------------- */
.institution-workspace-link {
    margin-top: 18px;
}

.workspace-page {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: #edf1f5;
    font-family: var(--body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.workspace-layout {
    display: grid;
    grid-template-columns: 282px minmax(0, 1fr);
    min-height: 100vh;
}

.workspace-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 24px 20px 20px;
    color: var(--white);
    background:
        linear-gradient(180deg, rgba(34, 193, 214, 0.07), transparent 24%),
        var(--navy);
}

.workspace-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 11px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.96);
    text-decoration: none;
}

.workspace-brand-mark {
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
}

.workspace-brand > span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.workspace-brand strong,
.workspace-brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-brand strong {
    color: var(--navy);
    font-family: var(--heading);
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
}

.workspace-brand small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
}

.workspace-scope {
    display: grid;
    gap: 4px;
    margin-top: 22px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.workspace-scope small {
    color: var(--cyan);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.workspace-scope strong {
    font-size: 12px;
}

.workspace-scope span {
    color: rgba(255, 255, 255, 0.48);
    font-size: 9px;
    line-height: 1.45;
}

.workspace-nav {
    display: grid;
    gap: 5px;
    margin-top: 22px;
}

.workspace-nav a,
.workspace-nav > span {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

.workspace-nav a:hover,
.workspace-nav a.is-active {
    background: rgba(255, 255, 255, 0.10);
    color: var(--white);
}

.workspace-nav .is-disabled {
    opacity: 0.50;
}

.workspace-nav .is-locked {
    color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.035);
}

.workspace-nav small {
    margin-left: auto;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(34, 193, 214, 0.13);
    color: var(--cyan);
    font-size: 7px;
    font-weight: 900;
    text-transform: uppercase;
}

.workspace-nav-mark {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border: 1px solid currentColor;
    border-radius: 2px;
}

.workspace-nav a.is-active .workspace-nav-mark {
    border-color: var(--cyan);
    background: var(--cyan);
}

.workspace-sidebar-bottom {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.workspace-admin-link,
.workspace-sidebar-bottom button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--body);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.workspace-admin-link:hover,
.workspace-sidebar-bottom button:hover {
    border-color: rgba(255, 255, 255, 0.30);
    color: var(--white);
}

.workspace-main {
    min-width: 0;
}

.workspace-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    padding: 0 34px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(18px);
}

.workspace-topbar > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.workspace-topbar > div:first-child span {
    color: var(--muted);
    font-size: 10px;
}

.workspace-topbar > div:first-child strong {
    overflow: hidden;
    color: var(--navy);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-topbar-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.workspace-security,
.workspace-preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 850;
}

.workspace-security i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.workspace-security.is-secure {
    background: rgba(22, 135, 91, 0.10);
    color: var(--green);
}

.workspace-security.is-secure i {
    background: var(--green);
}

.workspace-security.is-pending {
    background: rgba(169, 109, 0, 0.10);
    color: var(--amber);
}

.workspace-security.is-pending i {
    background: var(--amber);
}

.workspace-preview-badge {
    background: rgba(11, 29, 58, 0.06);
    color: var(--blue);
}

.workspace-content {
    width: min(calc(100% - 64px), 1320px);
    margin-inline: auto;
    padding: 42px 0 68px;
}

.workspace-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 34px;
}

.workspace-hero h1 {
    margin: 0;
    color: var(--navy);
    font-family: var(--heading);
    font-size: clamp(50px, 5vw, 70px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 0.96;
}

.workspace-hero > div:first-child > p:last-child {
    max-width: 780px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.workspace-hero-state {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.workspace-hero-state small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
}

.workspace-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.workspace-metric-grid article {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 16px 44px rgba(11, 29, 58, 0.06);
}

.workspace-metric-grid article > span {
    display: block;
    color: var(--teal);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.workspace-metric-grid article > strong {
    display: block;
    margin-top: 12px;
    color: var(--navy);
    font-family: var(--heading);
    font-size: 42px;
    font-weight: 600;
    line-height: 1;
}

.workspace-metric-grid h2 {
    margin: 9px 0 0;
    color: var(--blue);
    font-size: 12px;
    font-weight: 850;
}

.workspace-metric-grid p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 9px;
}

.workspace-primary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
    gap: 16px;
    margin-top: 16px;
}

.workspace-welcome-card,
.workspace-context-card,
.workspace-capabilities-card,
.workspace-modules-card,
.workspace-activity-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 18px 52px rgba(11, 29, 58, 0.07);
}

.workspace-card-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
}

.workspace-card-heading h2,
.workspace-card-heading p {
    margin: 0;
}

.workspace-card-heading h2 {
    color: var(--navy);
    font-family: var(--heading);
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
}

.workspace-card-heading > span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
}

.workspace-welcome-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 26px;
    padding: 26px 24px 28px;
}

.workspace-welcome-body > div:first-child strong {
    color: var(--blue);
    font-size: 13px;
}

.workspace-welcome-body > div:first-child p {
    max-width: 620px;
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
}

.workspace-next-step {
    padding: 17px;
    border-radius: 15px;
    background: rgba(15, 163, 163, 0.07);
}

.workspace-next-step span,
.workspace-next-step strong,
.workspace-next-step small {
    display: block;
}

.workspace-next-step span {
    color: var(--teal);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.workspace-next-step strong {
    margin-top: 12px;
    color: var(--navy);
    font-family: var(--heading);
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
}

.workspace-next-step small {
    margin-top: 9px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.5;
}

.workspace-context-card {
    padding: 24px;
    color: var(--white);
    background:
        linear-gradient(145deg, rgba(34, 193, 214, 0.09), transparent 44%),
        linear-gradient(135deg, var(--navy), var(--blue));
}

.workspace-context-card h2 {
    margin: 0;
    color: var(--white);
    font-family: var(--heading);
    font-size: 34px;
    font-weight: 600;
    line-height: 1;
}

.workspace-context-card dl {
    display: grid;
    margin: 22px 0 0;
}

.workspace-context-card dl > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.workspace-context-card dl > div:last-child {
    border-bottom: 0;
}

.workspace-context-card dt {
    color: rgba(255, 255, 255, 0.54);
    font-size: 9px;
}

.workspace-context-card dd {
    margin: 0;
    color: var(--white);
    font-size: 10px;
    font-weight: 850;
}

.workspace-capabilities-card,
.workspace-modules-card,
.workspace-activity-card {
    margin-top: 16px;
}

.workspace-capability-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workspace-capability-grid article {
    min-width: 0;
    padding: 22px;
    border-right: 1px solid var(--line);
}

.workspace-capability-grid article:last-child {
    border-right: 0;
}

.workspace-capability-grid article.is-next {
    background: rgba(15, 163, 163, 0.045);
}

.workspace-capability-grid article > span {
    color: var(--teal);
    font-size: 9px;
    font-weight: 900;
}

.workspace-capability-grid strong {
    display: block;
    margin-top: 18px;
    color: var(--blue);
    font-size: 12px;
}

.workspace-capability-grid p {
    min-height: 47px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.5;
}

.workspace-capability-grid small {
    display: inline-flex;
    margin-top: 16px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(11, 29, 58, 0.05);
    color: var(--muted);
    font-size: 8px;
    font-weight: 850;
}

.workspace-capability-grid .is-next small {
    background: rgba(15, 163, 163, 0.10);
    color: var(--teal);
}

.workspace-module-list,
.workspace-activity-list {
    display: grid;
}

.workspace-module-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
}

.workspace-module-list article:last-child,
.workspace-activity-list article:last-child {
    border-bottom: 0;
}

.workspace-module-list article > div {
    display: grid;
    gap: 3px;
}

.workspace-module-list article > div > span {
    color: var(--teal);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.workspace-module-list strong {
    color: var(--blue);
    font-size: 11px;
}

.workspace-module-status {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
}

.workspace-module-status.is-active {
    background: rgba(22, 135, 91, 0.10);
    color: var(--green);
}

.workspace-module-status.is-disabled {
    background: rgba(11, 29, 58, 0.06);
    color: var(--muted);
}

.workspace-activity-list article {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--line);
}

.workspace-activity-list article > div {
    display: grid;
    gap: 2px;
}

.workspace-activity-list strong {
    color: var(--blue);
    font-size: 10px;
}

.workspace-activity-list small {
    color: var(--muted);
    font-size: 9px;
}

.workspace-empty-activity {
    padding: 28px 24px;
    color: var(--muted);
    font-size: 10px;
}

@media (max-width: 1120px) {
    .workspace-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workspace-primary-grid {
        grid-template-columns: 1fr;
    }

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

    .workspace-capability-grid article:nth-child(2) {
        border-right: 0;
    }

    .workspace-capability-grid article:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 900px) {
    .workspace-layout {
        grid-template-columns: 1fr;
    }

    .workspace-sidebar {
        position: static;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        height: auto;
        padding: 14px 18px;
    }

    .workspace-brand {
        width: 230px;
    }

    .workspace-scope,
    .workspace-sidebar-bottom {
        display: none;
    }

    .workspace-nav {
        display: flex;
        justify-content: flex-end;
        margin: 0;
    }

    .workspace-nav > span,
    .workspace-nav a:not(.is-active) {
        display: none;
    }

    .workspace-nav a {
        min-height: 36px;
    }

    .workspace-topbar {
        padding-inline: 24px;
    }

    .workspace-content {
        width: min(calc(100% - 40px), 1320px);
        padding-top: 34px;
    }
}

@media (max-width: 700px) {
    .workspace-topbar-actions {
        display: none;
    }

    .workspace-hero {
        display: grid;
        align-items: start;
        gap: 20px;
    }

    .workspace-hero-state {
        justify-items: start;
    }

    .workspace-metric-grid,
    .workspace-capability-grid {
        grid-template-columns: 1fr;
    }

    .workspace-capability-grid article {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .workspace-capability-grid article:last-child {
        border-bottom: 0;
    }

    .workspace-welcome-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .workspace-sidebar {
        grid-template-columns: 1fr auto;
    }

    .workspace-brand {
        width: 205px;
    }

    .workspace-nav a.is-active {
        display: none;
    }

    .workspace-topbar {
        min-height: 64px;
        padding-inline: 16px;
    }

    .workspace-content {
        width: min(calc(100% - 28px), 1320px);
        padding: 28px 0 44px;
    }

    .workspace-hero h1 {
        font-size: 46px;
    }

    .workspace-card-heading {
        align-items: flex-start;
        padding: 20px;
    }

    .workspace-card-heading > span {
        display: none;
    }

    .workspace-welcome-body,
    .workspace-context-card {
        padding: 22px 20px;
    }

    .workspace-activity-list article {
        grid-template-columns: 9px minmax(0, 1fr);
        padding-inline: 20px;
    }

    .workspace-activity-list .outcome-label {
        display: none;
    }
}

/* DOSSIERS V1 -------------------------------------------------- */
.workspace-next-step.is-available {
    background: rgba(15, 163, 163, 0.09);
}

.workspace-inline-action,
.workspace-capability-grid article > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: 15px;
    padding: 0 11px;
    border-radius: 9px;
    background: rgba(15, 163, 163, 0.12);
    color: var(--teal);
    font-size: 9px;
    font-weight: 900;
    text-decoration: none;
}

.workspace-inline-action:hover,
.workspace-capability-grid article > a:hover {
    background: rgba(15, 163, 163, 0.18);
}

.workspace-back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

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

.dossier-page-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 34px;
}

.dossier-page-hero h1 {
    margin: 0;
    color: var(--navy);
    font-family: var(--heading);
    font-size: clamp(50px, 5vw, 68px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 0.96;
}

.dossier-page-hero > div > p:last-child {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.dossier-page-hero-compact h1 {
    font-size: clamp(46px, 4.5vw, 62px);
}

.dossier-summary-grid,
.dossier-detail-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.dossier-summary-grid article,
.dossier-detail-summary-grid article {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 16px 44px rgba(11, 29, 58, 0.06);
}

.dossier-summary-grid article > span,
.dossier-detail-summary-grid article > span {
    display: block;
    color: var(--teal);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.dossier-summary-grid article > strong,
.dossier-detail-summary-grid article > strong {
    display: block;
    margin-top: 13px;
    overflow: hidden;
    color: var(--navy);
    font-family: var(--heading);
    font-size: 38px;
    font-weight: 600;
    line-height: 1;
    text-overflow: ellipsis;
}

.dossier-detail-summary-grid article > strong {
    font-size: 28px;
}

.dossier-summary-grid article > small,
.dossier-detail-summary-grid article > small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
}

.dossier-list-card {
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 18px 52px rgba(11, 29, 58, 0.07);
}

.dossier-list-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    border-bottom: 1px solid var(--line);
}

.dossier-list-heading h2,
.dossier-list-heading p {
    margin: 0;
}

.dossier-list-heading h2 {
    color: var(--navy);
    font-family: var(--heading);
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
}

.dossier-list-heading > span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
}

.dossier-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 190px 150px auto;
    align-items: end;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 29, 58, 0.025);
}

.dossier-filters label {
    display: grid;
    gap: 6px;
}

.dossier-filters label > span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
}

.dossier-filters input,
.dossier-filters select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(11, 29, 58, 0.15);
    border-radius: 10px;
    outline: none;
    background: var(--white);
    color: var(--navy);
    font-family: var(--body);
    font-size: 11px;
}

.dossier-filters input:focus,
.dossier-filters select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(15, 163, 163, 0.08);
}

.dossier-filter-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.dossier-filter-actions button,
.dossier-filter-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    font-family: var(--body);
    font-size: 9px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.dossier-filter-actions button {
    border: 0;
    background: var(--navy);
    color: var(--white);
}

.dossier-filter-actions a {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--blue);
}

.dossier-empty-state {
    display: grid;
    justify-items: center;
    padding: 62px 24px 70px;
    text-align: center;
}

.dossier-empty-state > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 163, 163, 0.10);
    color: var(--teal);
    font-size: 10px;
    font-weight: 900;
}

.dossier-empty-state h3 {
    margin: 20px 0 0;
    color: var(--navy);
    font-family: var(--heading);
    font-size: 31px;
    font-weight: 600;
    line-height: 1;
}

.dossier-empty-state p {
    max-width: 520px;
    margin: 12px 0 24px;
    color: var(--muted);
    font-size: 11px;
}

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

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

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

.dossier-table th {
    color: var(--muted);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dossier-table td {
    color: var(--blue);
    font-size: 10px;
}

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

.dossier-record-link {
    display: grid;
    gap: 4px;
    min-width: 300px;
    color: inherit;
    text-decoration: none;
}

.dossier-record-link strong {
    color: var(--teal);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dossier-record-link span {
    color: var(--navy);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
}

.dossier-record-link small {
    color: var(--muted);
    font-size: 8px;
}

.dossier-record-link:hover span {
    color: var(--teal);
}

.dossier-status {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
    white-space: nowrap;
}

.dossier-status-open {
    background: rgba(22, 135, 91, 0.10);
    color: var(--green);
}

.dossier-status-paused {
    background: rgba(169, 109, 0, 0.10);
    color: var(--amber);
}

.dossier-status-closed,
.dossier-status-archived {
    background: rgba(11, 29, 58, 0.06);
    color: var(--muted);
}

.dossier-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 24px;
    border-top: 1px solid var(--line);
}

.dossier-pagination a,
.dossier-pagination span {
    font-size: 9px;
    font-weight: 850;
}

.dossier-pagination a {
    color: var(--teal);
    text-decoration: none;
}

.dossier-pagination span {
    color: var(--muted);
}

.dossier-form-guidance {
    display: flex;
    gap: 14px;
    margin-top: 24px;
    padding: 16px 18px;
    border: 1px solid rgba(15, 163, 163, 0.16);
    border-radius: 16px;
    background: rgba(15, 163, 163, 0.06);
}

.dossier-form-guidance > span {
    width: 10px;
    height: 10px;
    margin-top: 5px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 6px rgba(15, 163, 163, 0.08);
}

.dossier-form-guidance strong,
.dossier-form-guidance p {
    margin: 0;
}

.dossier-form-guidance strong {
    color: var(--blue);
    font-size: 11px;
}

.dossier-form-guidance p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.dossier-create-form {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.dossier-form-section {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 18px 52px rgba(11, 29, 58, 0.06);
}

.dossier-form-section-heading {
    display: flex;
    gap: 14px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.dossier-form-section-heading > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(15, 163, 163, 0.10);
    color: var(--teal);
    font-size: 9px;
    font-weight: 900;
}

.dossier-form-section-heading h2,
.dossier-form-section-heading p {
    margin: 0;
}

.dossier-form-section-heading h2 {
    color: var(--navy);
    font-family: var(--heading);
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
}

.dossier-form-section-heading p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}

.dossier-form-grid {
    display: grid;
    gap: 20px;
    margin-top: 24px;
}

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

.dossier-form-grid-3 {
    grid-template-columns: 1fr 0.62fr 1fr;
}

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

.dossier-form-field > span {
    color: var(--blue);
    font-size: 11px;
    font-weight: 850;
}

.dossier-form-field input,
.dossier-form-field select,
.dossier-form-field textarea {
    width: 100%;
    padding: 0 13px;
    border: 1px solid rgba(11, 29, 58, 0.15);
    border-radius: 11px;
    outline: none;
    background: #fbfcfd;
    color: var(--navy);
    font-family: var(--body);
    font-size: 12px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.dossier-form-field input,
.dossier-form-field select {
    height: 48px;
}

.dossier-form-field textarea {
    min-height: 104px;
    padding-top: 12px;
    padding-bottom: 12px;
    resize: vertical;
    line-height: 1.55;
}

.dossier-form-field input:focus,
.dossier-form-field select:focus,
.dossier-form-field textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(15, 163, 163, 0.09);
}

.dossier-form-field > small {
    color: var(--muted);
    font-size: 9px;
}

.dossier-system-step {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 10px 14px;
    margin-top: 20px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(11, 29, 58, 0.035);
}

.dossier-system-step span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
}

.dossier-system-step strong {
    color: var(--blue);
    font-size: 11px;
}

.dossier-system-step small {
    color: var(--muted);
    font-size: 9px;
}

.dossier-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 2px;
}

.dossier-detail-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 34px;
}

.dossier-detail-number {
    display: block;
    margin-bottom: 9px;
    color: var(--teal);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dossier-detail-hero h1 {
    max-width: 980px;
    margin: 0;
    color: var(--navy);
    font-family: var(--heading);
    font-size: clamp(44px, 4.6vw, 64px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 0.98;
}

.dossier-detail-hero h1 + p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 11px;
}

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

.dossier-tabs {
    display: flex;
    gap: 4px;
    margin-top: 24px;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}

.dossier-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.dossier-tabs a:hover,
.dossier-tabs a.is-active {
    background: rgba(15, 163, 163, 0.09);
    color: var(--teal);
}

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

.dossier-detail-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 18px 52px rgba(11, 29, 58, 0.06);
}

.dossier-detail-card-wide {
    grid-column: 1 / -1;
}

.dossier-card-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
}

.dossier-card-heading h2,
.dossier-card-heading p {
    margin: 0;
}

.dossier-card-heading h2 {
    color: var(--navy);
    font-family: var(--heading);
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
}

.dossier-card-heading > span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
}

.dossier-content-block {
    padding: 8px 24px 24px;
}

.dossier-data-list {
    display: grid;
    margin: 0;
}

.dossier-data-list > div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.dossier-data-list dt {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
}

.dossier-data-list dd {
    margin: 0;
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
}

.dossier-summary-text {
    margin-top: 20px;
    padding: 17px;
    border-radius: 14px;
    background: rgba(11, 29, 58, 0.035);
}

.dossier-summary-text strong,
.dossier-summary-text p {
    margin: 0;
}

.dossier-summary-text strong {
    color: var(--blue);
    font-size: 10px;
}

.dossier-summary-text p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.65;
}

.dossier-current-step {
    padding: 26px 24px;
}

.dossier-current-step > span {
    color: var(--teal);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.dossier-current-step > strong {
    display: block;
    margin-top: 12px;
    color: var(--navy);
    font-family: var(--heading);
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
}

.dossier-current-step > p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.dossier-current-step dl {
    display: grid;
    margin: 22px 0 0;
}

.dossier-current-step dl > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.dossier-current-step dl > div:last-child {
    border-bottom: 0;
}

.dossier-current-step dt {
    color: var(--muted);
    font-size: 9px;
}

.dossier-current-step dd {
    margin: 0;
    color: var(--blue);
    font-size: 10px;
    font-weight: 800;
    text-align: right;
}

.dossier-empty-panel {
    padding: 30px 24px;
}

.dossier-empty-panel strong,
.dossier-empty-panel p {
    margin: 0;
}

.dossier-empty-panel strong {
    color: var(--blue);
    font-size: 12px;
}

.dossier-empty-panel p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.dossier-empty-panel > span {
    display: inline-flex;
    margin-top: 17px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(11, 29, 58, 0.06);
    color: var(--muted);
    font-size: 8px;
    font-weight: 850;
}

.dossier-traceability {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.dossier-traceability > div {
    display: grid;
    gap: 5px;
}

.dossier-traceability span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
}

.dossier-traceability strong,
.dossier-traceability code {
    overflow-wrap: anywhere;
    color: var(--blue);
    font-family: var(--body);
    font-size: 10px;
    font-weight: 800;
}

.dossier-traceability code {
    color: var(--teal);
}

.dossier-traceability p {
    margin: 4px 0 0;
    padding: 14px;
    border-radius: 13px;
    background: rgba(15, 163, 163, 0.06);
    color: var(--muted);
    font-size: 9px;
    line-height: 1.55;
}

.dossier-timeline {
    display: grid;
    padding: 8px 24px 20px;
}

.dossier-timeline article {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.dossier-timeline article:last-child {
    border-bottom: 0;
}

.dossier-timeline-marker {
    position: relative;
    display: flex;
    justify-content: center;
}

.dossier-timeline-marker::after {
    position: absolute;
    top: 18px;
    bottom: -19px;
    width: 1px;
    background: var(--line);
    content: "";
}

.dossier-timeline article:last-child .dossier-timeline-marker::after {
    display: none;
}

.dossier-timeline-marker span {
    position: relative;
    z-index: 1;
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 5px rgba(15, 163, 163, 0.09);
}

.dossier-timeline article > div:last-child {
    display: grid;
    gap: 4px;
}

.dossier-timeline small {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
}

.dossier-timeline strong {
    color: var(--blue);
    font-size: 11px;
}

.dossier-timeline p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

.dossier-timeline article > div:last-child > span {
    color: var(--teal);
    font-size: 8px;
    font-weight: 800;
}

@media (max-width: 1120px) {
    .dossier-summary-grid,
    .dossier-detail-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dossier-filters {
        grid-template-columns: minmax(220px, 1fr) 180px 140px;
    }

    .dossier-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

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

    .dossier-form-grid-3 > :last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .workspace-nav a:not(.is-active) {
        display: none;
    }
}

@media (max-width: 760px) {
    .dossier-page-hero,
    .dossier-detail-hero {
        display: grid;
        align-items: start;
        gap: 20px;
    }

    .dossier-page-hero .button-primary {
        justify-self: start;
    }

    .dossier-filters,
    .dossier-form-grid-2,
    .dossier-form-grid-3,
    .dossier-detail-grid {
        grid-template-columns: 1fr;
    }

    .dossier-form-grid-3 > :last-child,
    .dossier-detail-card-wide {
        grid-column: auto;
    }

    .dossier-filter-actions {
        grid-column: auto;
        justify-content: stretch;
    }

    .dossier-filter-actions button,
    .dossier-filter-actions a {
        flex: 1;
    }

    .dossier-table thead {
        display: none;
    }

    .dossier-table,
    .dossier-table tbody,
    .dossier-table tr,
    .dossier-table td {
        display: block;
        width: 100%;
    }

    .dossier-table tr {
        padding: 14px 18px;
        border-bottom: 1px solid var(--line);
    }

    .dossier-table td {
        display: grid;
        grid-template-columns: 115px minmax(0, 1fr);
        gap: 12px;
        padding: 8px 0;
        border: 0;
    }

    .dossier-table td::before {
        color: var(--muted);
        font-size: 8px;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        content: attr(data-label);
    }

    .dossier-record-link {
        min-width: 0;
    }

    .dossier-form-section {
        padding: 22px 18px;
    }

    .dossier-system-step {
        grid-template-columns: 1fr;
    }

    .dossier-data-list > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

@media (max-width: 520px) {
    .dossier-summary-grid,
    .dossier-detail-summary-grid {
        grid-template-columns: 1fr;
    }

    .dossier-filter-actions,
    .dossier-form-actions {
        display: grid;
    }

    .dossier-filter-actions button,
    .dossier-filter-actions a,
    .dossier-form-actions .button-primary,
    .dossier-form-actions .button-secondary {
        width: 100%;
    }

    .dossier-table td {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .dossier-detail-hero h1 {
        font-size: 42px;
    }
}

/* RESPONSIVE NAVIGATION V1 ------------------------------------- */
@media (max-width: 900px) {
    .workspace-nav > span {
        display: none;
    }

    .workspace-nav a,
    .workspace-nav a:not(.is-active) {
        display: flex;
        min-height: 36px;
    }

    .workspace-nav a .workspace-nav-mark {
        display: none;
    }
}

@media (max-width: 520px) {
    .workspace-sidebar {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .workspace-brand {
        width: min(100%, 280px);
    }

    .workspace-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        gap: 6px;
        margin: 0;
        overflow-x: auto;
    }

    .workspace-nav a,
    .workspace-nav a.is-active {
        display: flex;
        flex: 0 0 auto;
        padding-inline: 12px;
        background: rgba(255, 255, 255, 0.07);
    }

    .workspace-nav a.is-active {
        background: rgba(255, 255, 255, 0.13);
    }
}

/* DOCUMENTS V1 ------------------------------------------------- */
.workspace-section-hero,
.document-detail-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 34px;
}

.workspace-section-hero h1,
.workspace-form-hero h1,
.document-detail-hero h1 {
    margin: 0;
    color: var(--navy);
    font-family: var(--heading);
    font-size: clamp(50px, 5vw, 70px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 0.96;
}

.workspace-section-hero > div > p:last-child,
.workspace-form-hero > p:last-child,
.document-detail-hero > div:first-child > p:last-child {
    max-width: 780px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.document-register-card,
.document-form-section,
.document-detail-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 18px 52px rgba(11, 29, 58, 0.07);
}

.document-register-card {
    margin-top: 16px;
}

.document-filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 220px 130px auto;
    align-items: end;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    background: #fbfcfd;
}

.document-filter-bar label,
.document-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.document-filter-bar label > span,
.document-field > span {
    color: var(--blue);
    font-size: 10px;
    font-weight: 850;
}

.document-field em {
    margin-left: 4px;
    color: var(--muted);
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
}

.document-filter-bar input,
.document-filter-bar select,
.document-field input[type="text"],
.document-field input[type="number"],
.document-field input[type="date"],
.document-field input[type="time"],
.document-field select,
.document-field textarea {
    width: 100%;
    border: 1px solid rgba(11, 29, 58, 0.15);
    border-radius: 11px;
    outline: none;
    background: #fbfcfd;
    color: var(--navy);
    font-family: var(--body);
    font-size: 12px;
}

.document-filter-bar input,
.document-filter-bar select,
.document-field input[type="text"],
.document-field input[type="number"],
.document-field input[type="date"],
.document-field input[type="time"],
.document-field select {
    height: 48px;
    padding: 0 13px;
}

.document-field textarea {
    min-height: 104px;
    padding: 13px;
    resize: vertical;
}

.document-filter-bar input:focus,
.document-filter-bar select:focus,
.document-field input:focus,
.document-field select:focus,
.document-field textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(15, 163, 163, 0.09);
}

.document-filter-bar button {
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: var(--navy);
    color: var(--white);
    font-family: var(--body);
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}

.document-empty-state {
    display: grid;
    justify-items: center;
    padding: 66px 24px 72px;
    text-align: center;
}

.document-empty-state > span {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 163, 163, 0.10);
    color: var(--teal);
    font-size: 9px;
    font-weight: 900;
}

.document-empty-state h3 {
    margin: 20px 0 0;
    color: var(--navy);
    font-family: var(--heading);
    font-size: 34px;
    font-weight: 600;
}

.document-empty-state p {
    max-width: 570px;
    margin: 10px 0 24px;
    color: var(--muted);
    font-size: 11px;
}

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

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

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

.document-table th {
    color: var(--muted);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.document-table td {
    color: var(--blue);
    font-size: 10px;
}

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

.document-table td > small,
.document-table td > strong {
    display: block;
    margin-top: 4px;
}

.document-table td > small {
    color: var(--muted);
    font-size: 8px;
}

.document-title-link {
    display: block;
    min-width: 250px;
    color: var(--navy);
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
}

.document-title-link:hover,
.dossier-document-list article > div:first-child > a:hover {
    color: var(--teal);
}

.document-version-pill {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(15, 163, 163, 0.10);
    color: var(--teal);
    font-size: 8px;
    font-weight: 900;
}

.workspace-form-hero {
    max-width: 920px;
}

.document-security-warning {
    display: flex;
    gap: 14px;
    margin-top: 22px;
    padding: 16px 18px;
    border: 1px solid rgba(169, 109, 0, 0.18);
    border-radius: 16px;
    background: rgba(255, 248, 230, 0.84);
}

.document-security-warning > span {
    width: 10px;
    height: 10px;
    margin-top: 5px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 6px rgba(169, 109, 0, 0.08);
}

.document-security-warning strong,
.document-security-warning p {
    margin: 0;
}

.document-security-warning strong {
    color: #745100;
    font-size: 11px;
}

.document-security-warning p {
    margin-top: 4px;
    color: #806a32;
    font-size: 10px;
}

.document-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.document-form-section {
    padding: 28px;
}

.document-section-heading {
    display: flex;
    gap: 14px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.document-section-heading > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(15, 163, 163, 0.10);
    color: var(--teal);
    font-size: 9px;
    font-weight: 900;
}

.document-section-heading h2,
.document-section-heading p {
    margin: 0;
}

.document-section-heading h2 {
    color: var(--navy);
    font-family: var(--heading);
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
}

.document-section-heading p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}

.document-form-grid {
    display: grid;
    gap: 20px;
    margin-top: 24px;
}

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

.document-field-wide {
    grid-column: 1 / -1;
}

.document-field > small {
    color: var(--muted);
    font-size: 9px;
}

.document-upload-field {
    padding: 18px;
    border: 1px dashed rgba(15, 163, 163, 0.38);
    border-radius: 14px;
    background: rgba(15, 163, 163, 0.035);
}

.document-upload-field input[type="file"] {
    width: 100%;
    color: var(--blue);
    font-size: 11px;
}

.document-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.document-version-context {
    display: grid;
    gap: 4px;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}

.document-version-context span {
    color: var(--teal);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.document-version-context strong {
    color: var(--navy);
    font-size: 13px;
}

.document-version-context small {
    color: var(--muted);
    font-size: 9px;
}

.document-detail-hero > div:first-child > span {
    display: block;
    margin-bottom: 8px;
    color: var(--teal);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

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

.document-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.document-summary-grid article {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 16px 44px rgba(11, 29, 58, 0.06);
}

.document-summary-grid article > span {
    color: var(--teal);
    font-size: 8px;
    font-weight: 900;
}

.document-summary-grid article > strong {
    display: block;
    margin-top: 12px;
    overflow: hidden;
    color: var(--navy);
    font-family: var(--heading);
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    text-overflow: ellipsis;
}

.document-summary-grid article > small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 9px;
}

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

.document-detail-card-wide {
    grid-column: 1 / -1;
}

.document-card-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
}

.document-card-heading h2,
.document-card-heading p {
    margin: 0;
}

.document-card-heading h2 {
    color: var(--navy);
    font-family: var(--heading);
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
}

.document-card-heading > span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
}

.document-data-list {
    display: grid;
    margin: 0;
    padding: 8px 24px 14px;
}

.document-data-list > div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.document-data-list > div:last-child {
    border-bottom: 0;
}

.document-data-list dt {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
}

.document-data-list dd {
    margin: 0;
    color: var(--blue);
    font-size: 10px;
    font-weight: 750;
}

.document-summary-text {
    margin: 0 24px 24px;
    padding: 15px;
    border-radius: 14px;
    background: rgba(11, 29, 58, 0.04);
}

.document-summary-text strong {
    color: var(--blue);
    font-size: 10px;
}

.document-summary-text p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.document-file-current {
    padding: 24px;
}

.document-file-current > strong {
    color: var(--blue);
    font-size: 12px;
}

.document-file-current > p {
    margin: 5px 0 18px;
    color: var(--muted);
    font-size: 9px;
}

.document-file-current > div:not(.document-scan-state) {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 13px;
    background: rgba(11, 29, 58, 0.04);
}

.document-file-current > div > span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 850;
}

.document-file-current code {
    overflow-wrap: anywhere;
    color: var(--teal);
    font-family: var(--body);
    font-size: 8px;
    font-weight: 800;
}

.document-scan-state {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
    border-radius: 13px;
    background: rgba(169, 109, 0, 0.07);
}

.document-scan-state > span {
    width: 9px;
    height: 9px;
    margin-top: 4px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--amber);
}

.document-scan-state strong,
.document-scan-state p {
    margin: 0;
}

.document-scan-state strong {
    color: #745100;
    font-size: 10px;
}

.document-scan-state p {
    margin-top: 3px;
    color: #806a32;
    font-size: 9px;
}

.document-version-list article {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    padding: 17px 24px;
    border-bottom: 1px solid var(--line);
}

.document-version-list article:last-child {
    border-bottom: 0;
}

.document-version-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(15, 163, 163, 0.10);
    color: var(--teal);
    font-size: 10px;
    font-weight: 900;
}

.document-version-list article > div:nth-child(2) {
    display: grid;
    gap: 3px;
}

.document-version-list strong {
    color: var(--blue);
    font-size: 11px;
}

.document-version-list p,
.document-version-list small {
    margin: 0;
    color: var(--muted);
    font-size: 8px;
}

.document-version-list article > a {
    color: var(--teal);
    font-size: 9px;
    font-weight: 850;
    text-decoration: none;
}

.document-version-status {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
}

.document-version-status.is-current {
    background: rgba(22, 135, 91, 0.10);
    color: var(--green);
}

.document-version-status.is-superseded {
    background: rgba(11, 29, 58, 0.06);
    color: var(--muted);
}

.dossier-card-action,
.document-download-link {
    color: var(--teal);
    font-size: 9px;
    font-weight: 850;
    text-decoration: none;
}

.dossier-document-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--line);
}

.dossier-document-list article:last-child {
    border-bottom: 0;
}

.dossier-document-list article > div:first-child {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.dossier-document-list article > div:first-child > span {
    color: var(--teal);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.dossier-document-list article > div:first-child > a {
    overflow: hidden;
    color: var(--navy);
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dossier-document-list small {
    color: var(--muted);
    font-size: 8px;
}

.dossier-document-list article > div:last-child {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}

.dossier-traceability details {
    margin-top: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.dossier-traceability summary {
    color: var(--blue);
    font-size: 9px;
    font-weight: 850;
    cursor: pointer;
}

.dossier-traceability details code {
    display: block;
    margin-top: 9px;
    overflow-wrap: anywhere;
}

@media (max-width: 1120px) {
    .document-filter-bar {
        grid-template-columns: 1fr 1fr;
    }

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

    .document-detail-grid {
        grid-template-columns: 1fr;
    }

    .document-detail-card-wide {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .workspace-section-hero,
    .document-detail-hero {
        display: grid;
        align-items: start;
    }

    .document-detail-actions {
        flex-wrap: wrap;
    }

    .document-form-grid-2,
    .document-filter-bar {
        grid-template-columns: 1fr;
    }

    .document-field-wide {
        grid-column: auto;
    }

    .document-form-section {
        padding: 22px 18px;
    }

    .document-form-actions {
        display: grid;
    }

    .document-form-actions .button-primary,
    .document-form-actions .button-secondary {
        width: 100%;
    }

    .document-table thead {
        display: none;
    }

    .document-table,
    .document-table tbody,
    .document-table tr,
    .document-table td {
        display: block;
        width: 100%;
    }

    .document-table tr {
        padding: 14px 18px;
        border-bottom: 1px solid var(--line);
    }

    .document-table td {
        display: grid;
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 12px;
        padding: 8px 0;
        border: 0;
    }

    .document-table td::before {
        color: var(--muted);
        font-size: 8px;
        font-weight: 900;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        content: attr(data-label);
    }

    .document-title-link {
        min-width: 0;
    }

    .document-version-list article {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .document-version-list .document-version-status,
    .document-version-list article > a {
        grid-column: 2;
        justify-self: start;
    }

    .dossier-document-list article {
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .documents-metric-grid,
    .document-summary-grid {
        grid-template-columns: 1fr;
    }

    .document-detail-actions {
        display: grid;
        width: 100%;
    }

    .document-detail-actions .button-primary,
    .document-detail-actions .button-secondary {
        width: 100%;
    }

    .document-data-list > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .dossier-document-list article {
        display: grid;
    }

    .dossier-document-list article > div:last-child {
        justify-content: flex-start;
    }
}

/* PROCEDURE V1 */
.procedure-context-card{display:grid;gap:4px;margin-top:22px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--white);box-shadow:0 14px 38px rgba(11,29,58,.05)}
.procedure-context-card>span{color:var(--teal);font-size:8px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.procedure-context-card>strong{color:var(--navy);font-size:13px}.procedure-context-card>small{color:var(--muted);font-size:9px}
.procedure-close-card{padding:18px;border:1px solid rgba(169,109,0,.2);border-radius:16px;background:rgba(255,248,230,.82)}.procedure-close-card label{display:flex;align-items:flex-start;gap:12px;cursor:pointer}.procedure-close-card input{width:18px;height:18px;margin-top:2px;accent-color:var(--teal)}.procedure-close-card label>span{display:grid;gap:3px}.procedure-close-card strong{color:#745100;font-size:11px}.procedure-close-card small{color:#806a32;font-size:9px;line-height:1.5}
.procedure-participant-list,.procedure-step-list{display:grid}.procedure-participant-list article{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:13px;padding:15px 20px;border-bottom:1px solid var(--line)}.procedure-participant-list article:last-child{border-bottom:0}.procedure-participant-list article>span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:rgba(15,163,163,.1);color:var(--teal);font-size:11px;font-weight:900}.procedure-participant-list article>div{display:grid;gap:3px}.procedure-participant-list strong{color:var(--blue);font-size:11px}.procedure-participant-list small{color:var(--muted);font-size:9px}
.procedure-step-list article{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:16px;min-height:82px;padding:16px 22px;border-bottom:1px solid var(--line)}.procedure-step-list article:last-child{border-bottom:0}.procedure-step-number{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:rgba(15,163,163,.09);color:var(--teal);font-size:9px;font-weight:900}.procedure-step-list article>div:nth-child(2){display:grid;gap:4px}.procedure-step-list strong{color:var(--blue);font-size:11px}.procedure-step-list p{margin:0;color:var(--muted);font-size:9px}.procedure-step-list small{color:var(--muted);font-size:8px}.procedure-step-status{display:inline-flex;padding:6px 9px;border-radius:999px;background:rgba(11,29,58,.06);color:var(--muted);font-size:8px;font-weight:900;white-space:nowrap}.procedure-step-status-active,.procedure-step-status-in_progress{background:rgba(15,163,163,.11);color:var(--teal)}.procedure-step-status-completed{background:rgba(22,135,91,.1);color:var(--green)}.procedure-step-status-cancelled{background:rgba(191,48,48,.08);color:#a12323}
.dossier-detail-actions .button-primary,.dossier-detail-actions .button-secondary{min-height:39px}
@media(max-width:900px){.dossier-detail-actions{flex-wrap:wrap}}@media(max-width:700px){.dossier-detail-actions{display:grid;width:100%}.dossier-detail-actions .button-primary,.dossier-detail-actions .button-secondary{width:100%}.procedure-step-list article{grid-template-columns:42px minmax(0,1fr)}.procedure-step-status{grid-column:2;justify-self:start}}@media(max-width:520px){.procedure-context-card,.procedure-close-card{padding:16px}.procedure-participant-list article,.procedure-step-list article{padding-inline:16px}}


/* COMMISSIONS V1 ------------------------------------------------ */
.commission-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(11, 29, 58, 0.07);
    color: var(--muted);
    font-size: 8px;
    font-weight: 900;
    white-space: nowrap;
}

.commission-status-active {
    background: rgba(22, 135, 91, 0.11);
    color: var(--green);
}

.commission-status-planned {
    background: rgba(15, 163, 163, 0.10);
    color: var(--teal);
}

.commission-status-inactive,
.commission-status-dissolved {
    background: rgba(11, 29, 58, 0.06);
    color: var(--muted);
}

.commission-detail-hero {
    align-items: end;
}

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

.commission-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 16px;
}

.commission-guide-list,
.commission-member-list,
.commission-activity-list {
    display: grid;
}

.commission-guide-list article {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.commission-guide-list article:last-child,
.commission-member-list article:last-child,
.commission-activity-list article:last-child {
    border-bottom: 0;
}

.commission-guide-list article > span {
    color: var(--teal);
    font-size: 8px;
    font-weight: 900;
}

.commission-guide-list article > div {
    display: grid;
    gap: 4px;
}

.commission-guide-list strong,
.commission-member-list strong,
.commission-activity-list strong {
    color: var(--blue);
    font-size: 11px;
}

.commission-guide-list p,
.commission-activity-list p {
    margin: 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.5;
}

.commission-member-list article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
}

.commission-member-list article > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 163, 163, 0.10);
    color: var(--teal);
    font-size: 11px;
    font-weight: 900;
}

.commission-member-list article > div:nth-child(2) {
    display: grid;
    gap: 3px;
}

.commission-member-list small,
.commission-activity-list small {
    color: var(--muted);
    font-size: 8px;
}

.commission-member-meta {
    display: grid;
    justify-items: end;
    gap: 3px;
}

.commission-member-meta > span {
    color: var(--teal);
    font-size: 8px;
    font-weight: 900;
}

.commission-vote-card {
    padding: 18px;
    border: 1px solid rgba(15, 163, 163, 0.18);
    border-radius: 16px;
    background: rgba(15, 163, 163, 0.06);
}

.commission-vote-card label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.commission-vote-card input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--teal);
}

.commission-vote-card label > span {
    display: grid;
    gap: 3px;
}

.commission-vote-card strong {
    color: var(--blue);
    font-size: 11px;
}

.commission-vote-card small {
    color: var(--muted);
    font-size: 9px;
    line-height: 1.5;
}

.commission-activity-list article {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
}

.commission-activity-list article > span {
    width: 8px;
    height: 8px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 5px rgba(15, 163, 163, 0.09);
}

.commission-activity-list article > div {
    display: grid;
    gap: 4px;
}

.commission-activity-list a {
    color: var(--teal);
    font-size: 8px;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 980px) {
    .commission-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .commission-hero-actions {
        display: grid;
        width: 100%;
    }

    .commission-hero-actions .button-primary {
        width: 100%;
    }

    .commission-member-list article {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .commission-member-meta {
        grid-column: 2;
        justify-items: start;
    }
}

@media (max-width: 520px) {
    .commission-guide-list article,
    .commission-member-list article,
    .commission-activity-list article {
        padding-inline: 16px;
    }

    .commission-tabs {
        overflow-x: auto;
    }
}


/* COMMISSIONS V1.1 — BREATHING AND READABILITY ---------------- */
.commission-detail-grid .dossier-data-list > div {
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
    column-gap: 28px;
    min-height: 58px;
    padding: 16px 22px;
}

.commission-detail-grid .dossier-data-list dt {
    line-height: 1.45;
}

.commission-detail-grid .dossier-data-list dd {
    line-height: 1.5;
    overflow-wrap: anywhere;
}

@media (max-width: 700px) {
    .commission-detail-grid .dossier-data-list > div {
        grid-template-columns: 1fr;
        gap: 6px;
        min-height: 0;
        padding: 15px 18px;
    }
}

/* REPORTS V1 --------------------------------------------------- */
.report-filter-bar { grid-template-columns: minmax(260px,1fr) 180px 230px auto; }
.report-status { display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border-radius:999px;font-size:8px;font-weight:900;white-space:nowrap;background:rgba(11,29,58,.07);color:var(--navy); }
.report-status-draft { background:rgba(169,109,0,.10);color:#8a6100; }
.report-status-signed { background:rgba(15,163,163,.10);color:var(--teal); }
.report-status-issued { background:rgba(22,135,91,.11);color:var(--green); }
.report-signatory-groups { display:grid;gap:10px; }
.report-signatory-group { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
.report-signatory-option { display:flex;align-items:flex-start;gap:12px;padding:15px;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer; }
.report-signatory-option input { width:18px;height:18px;margin-top:1px;accent-color:var(--teal); }
.report-signatory-option span { display:grid;gap:3px; }
.report-signatory-option strong { color:var(--navy);font-size:11px; }
.report-signatory-option small { color:var(--muted);font-size:9px; }
.report-empty-note { margin:0;padding:16px;border-radius:14px;background:rgba(11,29,58,.04);color:var(--muted);font-size:10px; }
.field-error-block { margin-bottom:12px;padding:12px;border-radius:12px;background:rgba(191,48,48,.08);color:#a12323;font-size:10px;font-weight:800; }
.report-file-control { display:grid;gap:9px;padding:20px; }
.report-file-control>strong { color:var(--navy);font-size:12px; }
.report-file-control>small { color:var(--muted);font-size:9px; }
.report-file-control>div { display:grid;gap:5px;padding:13px;border-radius:12px;background:rgba(11,29,58,.04); }
.report-file-control span { color:var(--muted);font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.08em; }
.report-file-control code { color:var(--teal);font-size:8px;overflow-wrap:anywhere; }
.report-file-control p { margin:0;padding:13px;border-radius:12px;background:rgba(169,109,0,.08);color:#806a32;font-size:9px; }
.report-record-list { display:grid; }
.report-record-list article { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:15px 20px;border-bottom:1px solid var(--line); }
.report-record-list article:last-child { border-bottom:0; }
.report-record-list article>div:first-child { display:grid;gap:4px; }
.report-record-list strong { color:var(--navy);font-size:11px; }
.report-record-list p { margin:0;color:var(--muted);font-size:9px; }
.report-record-list a { color:var(--teal);font-size:9px;font-weight:900; }
@media(max-width:1050px){.report-filter-bar{grid-template-columns:1fr 1fr}.report-filter-bar label:first-of-type{grid-column:1/-1}.report-filter-bar button{justify-self:start}}
@media(max-width:700px){.report-filter-bar{grid-template-columns:1fr}.report-filter-bar label:first-of-type{grid-column:auto}.report-signatory-group{grid-template-columns:1fr}.report-record-list article{grid-template-columns:1fr}.report-table thead{display:none}.report-table tr{display:grid;padding:14px}.report-table td{display:grid;grid-template-columns:110px 1fr;border:0;padding:7px}.report-table td::before{content:attr(data-label);font-size:8px;font-weight:900;color:var(--muted);text-transform:uppercase}}

/* REPORTS V1 — LAYOUT COMPLEMENTS ----------------------------- */
.workspace-list-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 34px;
}

.workspace-list-hero h1 {
    margin: 0;
    color: var(--navy);
    font-family: var(--heading);
    font-size: clamp(50px, 5vw, 70px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 0.96;
}

.workspace-list-hero > div > p:last-child {
    max-width: 780px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 13px;
}

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

.warning-banner {
    display: flex;
    gap: 14px;
    margin-top: 24px;
    padding: 16px 18px;
    border: 1px solid rgba(169, 109, 0, 0.20);
    border-radius: 16px;
    background: rgba(255, 248, 230, 0.88);
}

.warning-banner > span {
    width: 10px;
    height: 10px;
    margin-top: 5px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #b57b00;
    box-shadow: 0 0 0 6px rgba(181, 123, 0, 0.08);
}

.warning-banner strong,
.warning-banner p {
    margin: 0;
}

.warning-banner strong {
    color: #745100;
    font-size: 12px;
}

.warning-banner p {
    margin-top: 3px;
    color: #806a32;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .document-form-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .workspace-list-hero {
        display: grid;
        align-items: start;
        gap: 22px;
    }

    .workspace-list-hero .button-primary {
        width: 100%;
    }

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

/* REPORTS UI CONSOLIDATION V1 ---------------------------------- */

/* Listado: un único patrón de controles y botón. */
.report-filter-bar {
    grid-template-columns:
        minmax(300px, 1fr)
        minmax(170px, 0.34fr)
        minmax(220px, 0.44fr)
        auto;
    align-items: end;
    gap: 16px;
    padding: 22px 24px;
}

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

.report-filter-bar input,
.report-filter-bar select {
    height: 50px;
    border-radius: 12px;
    background: var(--white);
}

.report-filter-bar button {
    align-self: end;
    min-width: 132px;
    min-height: 50px;
    border-radius: 12px;
    white-space: nowrap;
}

/* Alta: las tres decisiones comparten eje, alto y espacio de ayuda. */
.report-classification-grid {
    align-items: start;
    column-gap: 18px;
    row-gap: 16px;
}

.report-classification-grid .document-field {
    grid-template-rows: auto 50px minmax(18px, auto);
    align-content: start;
    gap: 8px;
}

.report-classification-grid .document-field select {
    height: 50px;
}

.report-classification-grid .document-field > small {
    min-height: 18px;
    line-height: 1.45;
}

/* Archivo: se elimina el aspecto nativo y se integra a PARLEVIA. */
.report-upload-field {
    margin-top: 24px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(15, 163, 163, 0.035);
}

.report-upload-field .document-field {
    gap: 10px;
}

.report-upload-field input[type="file"] {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 6px;
    border: 1px solid rgba(11, 29, 58, 0.15);
    border-radius: 12px;
    outline: none;
    background: var(--white);
    color: var(--blue);
    font-family: var(--body);
    font-size: 11px;
    cursor: pointer;
}

.report-upload-field input[type="file"]:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(15, 163, 163, 0.09);
}

.report-upload-field input[type="file"]::file-selector-button {
    min-height: 38px;
    margin-right: 12px;
    padding: 0 16px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: var(--white);
    font-family: var(--body);
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}

.report-upload-field input[type="file"]::-webkit-file-upload-button {
    min-height: 38px;
    margin-right: 12px;
    padding: 0 16px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: var(--white);
    font-family: var(--body);
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}

/* Cierre del formulario: mismo eje, altura y respiración. */
.report-form-actions {
    align-items: center;
    margin-top: 2px;
    padding: 18px 0 30px;
}

.report-form-actions .button-primary,
.report-form-actions .button-secondary {
    min-height: 48px;
    padding: 0 20px;
    border-radius: 11px;
}

@media (max-width: 1050px) {
    .report-filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .report-filter-bar label:first-of-type {
        grid-column: 1 / -1;
    }

    .report-filter-bar button {
        justify-self: start;
    }
}

@media (max-width: 980px) {
    .report-classification-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .report-filter-bar,
    .report-classification-grid {
        grid-template-columns: 1fr;
    }

    .report-filter-bar label:first-of-type {
        grid-column: auto;
    }

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

    .report-form-actions {
        padding-bottom: 24px;
    }

    .report-form-actions .button-primary,
    .report-form-actions .button-secondary {
        width: 100%;
    }
}



/* REPORT DETAIL CARD FIX V1 ------------------------------------ */
/* La tarjeta usa el mismo aire, jerarquía y lenguaje de PARLEVIA. */

.report-content-card .report-decision-list {
    padding: 8px 24px 0;
}

.report-content-card .report-decision-list > div {
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: center;
    column-gap: 26px;
    min-height: 58px;
    padding: 16px 0;
}

.report-content-card .report-decision-list dt {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
    line-height: 1.45;
}

.report-content-card .report-decision-list dd {
    color: var(--blue);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.report-content-card .report-decision-list a {
    color: var(--teal);
    text-decoration: none;
    border-bottom: 1px solid rgba(15, 163, 163, 0.28);
}

.report-content-card .report-decision-list a:hover {
    border-bottom-color: var(--teal);
}

.report-recommendation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(11, 29, 58, 0.07);
    color: var(--navy);
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.report-recommendation-approve {
    background: rgba(22, 135, 91, 0.11);
    color: var(--green);
}

.report-recommendation-modify {
    background: rgba(15, 163, 163, 0.10);
    color: var(--teal);
}

.report-recommendation-reject,
.report-recommendation-archive {
    background: rgba(191, 48, 48, 0.09);
    color: #a12323;
}

.report-recommendation-continue {
    background: rgba(169, 109, 0, 0.10);
    color: #8a6100;
}

.report-content-card .report-decision-summary {
    margin: 20px 24px 24px;
    padding: 18px 20px;
    border: 1px solid rgba(11, 29, 58, 0.07);
    border-radius: 15px;
    background: rgba(11, 29, 58, 0.035);
}

.report-content-card .report-decision-summary strong {
    color: var(--blue);
    font-size: 10px;
    font-weight: 850;
}

.report-content-card .report-decision-summary p {
    margin-top: 9px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.72;
}

@media (max-width: 700px) {
    .report-content-card .report-decision-list {
        padding: 6px 18px 0;
    }

    .report-content-card .report-decision-list > div {
        grid-template-columns: 1fr;
        gap: 6px;
        min-height: 0;
        padding: 15px 0;
    }

    .report-content-card .report-decision-summary {
        margin: 18px;
        padding: 16px;
    }
}



/* REPORT TITLE TYPOGRAPHY FIX V1 ------------------------------- */
/* El encabezado del dictamen adopta la misma jerarquía del dossier. */

.report-detail-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 34px;
}

.report-detail-hero > div:first-child {
    min-width: 0;
}

.report-detail-hero h1 {
    max-width: 980px;
    margin: 0;
    color: var(--navy);
    font-family: var(--heading);
    font-size: clamp(44px, 4.6vw, 64px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 0.98;
    text-wrap: balance;
}

.report-detail-hero h1 + p {
    margin: 14px 0 0;
    color: var(--muted);
    font-family: var(--body);
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .report-detail-hero {
        display: grid;
        align-items: start;
        gap: 20px;
    }

    .report-detail-hero .dossier-detail-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 520px) {
    .report-detail-hero h1 {
        font-size: 42px;
        line-height: 1;
    }
}

/* SESSIONS V1 -------------------------------------------------- */
/* Reutiliza tipografías, controles, tarjetas y espaciado PARLEVIA. */

.session-filter-bar {
    grid-template-columns:
        minmax(280px, 1fr)
        minmax(170px, 0.34fr)
        minmax(160px, 0.32fr)
        minmax(140px, 0.26fr)
        auto;
    align-items: end;
    gap: 16px;
    padding: 22px 24px;
}

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

.session-filter-bar input,
.session-filter-bar select {
    height: 50px;
    border-radius: 12px;
    background: var(--white);
}

.session-filter-bar button {
    min-width: 132px;
    min-height: 50px;
    border-radius: 12px;
    white-space: nowrap;
}

.session-status,
.agenda-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.session-status-scheduled,
.agenda-status-scheduled {
    background: rgba(169, 109, 0, 0.10);
    color: #8a6100;
}

.session-status-open,
.agenda-status-in_progress {
    background: rgba(15, 163, 163, 0.12);
    color: #087c7c;
}

.session-status-completed,
.agenda-status-completed {
    background: rgba(22, 135, 91, 0.11);
    color: var(--green);
}

.session-status-suspended,
.agenda-status-postponed {
    background: rgba(11, 29, 58, 0.07);
    color: var(--blue);
}

.session-status-cancelled,
.agenda-status-withdrawn {
    background: rgba(177, 59, 59, 0.10);
    color: var(--red);
}

.session-identification-grid,
.session-agenda-classification {
    align-items: start;
}

.session-identification-grid .document-field,
.session-agenda-classification .document-field {
    grid-template-rows: auto 50px minmax(18px, auto);
    align-content: start;
}

.session-public-toggle {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(15, 163, 163, 0.16);
    border-radius: 15px;
    background: rgba(15, 163, 163, 0.055);
    cursor: pointer;
}

.session-public-toggle input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--teal);
}

.session-public-toggle span,
.session-public-toggle strong,
.session-public-toggle small {
    display: block;
}

.session-public-toggle strong {
    color: var(--blue);
    font-size: 11px;
}

.session-public-toggle small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.5;
}

.session-form-actions {
    align-items: center;
    padding: 18px 0 30px;
}

.session-form-actions .button-primary,
.session-form-actions .button-secondary {
    min-height: 48px;
    padding: 0 20px;
    border-radius: 11px;
}

.session-context-card {
    display: grid;
    gap: 4px;
    margin-bottom: 20px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(11, 29, 58, 0.05);
}

.session-context-card span {
    color: var(--teal);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.session-context-card strong {
    color: var(--blue);
    font-size: 13px;
}

.session-context-card small {
    color: var(--muted);
    font-size: 9px;
}

.session-detail-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 34px;
    margin-bottom: 26px;
}

.session-detail-hero > div:first-child {
    min-width: 0;
}

.session-detail-number {
    display: block;
    margin-bottom: 10px;
    color: var(--teal);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.session-detail-hero h1 {
    max-width: 980px;
    margin: 0;
    color: var(--navy);
    font-family: var(--heading);
    font-size: clamp(44px, 4.6vw, 64px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 0.98;
    text-wrap: balance;
}

.session-detail-hero h1 + p {
    margin: 14px 0 0;
    color: var(--muted);
    font-family: var(--body);
    font-size: 11px;
    line-height: 1.5;
}

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

.session-data-list {
    padding: 6px 18px 0;
}

.session-data-list > div {
    grid-template-columns: 155px minmax(0, 1fr);
    align-items: center;
    column-gap: 24px;
    min-height: 56px;
    padding: 15px 4px;
}

.session-data-list dt {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
    line-height: 1.45;
}

.session-data-list dd {
    color: var(--blue);
    font-size: 10px;
    font-weight: 750;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.session-description-box {
    margin: 18px 22px 22px;
    padding: 18px 20px;
    border: 1px solid rgba(11, 29, 58, 0.07);
    border-radius: 15px;
    background: rgba(11, 29, 58, 0.035);
}

.session-control-card {
    margin-top: 14px;
}

.session-control-body {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 22px 24px 24px;
}

.session-control-body form {
    margin: 0;
}

.session-control-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.session-control-form label {
    display: grid;
    gap: 7px;
}

.session-control-form label span {
    color: var(--blue);
    font-size: 9px;
    font-weight: 850;
}

.session-control-form input {
    width: 160px;
    height: 46px;
    padding: 0 13px;
    border: 1px solid rgba(11, 29, 58, 0.15);
    border-radius: 11px;
    background: var(--white);
    color: var(--blue);
}

.session-control-body button {
    min-height: 46px;
}

.session-danger-button {
    color: var(--red) !important;
}

.session-control-closed {
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(11, 29, 58, 0.04);
}

.session-control-closed strong,
.session-control-closed p {
    display: block;
    margin: 0;
}

.session-control-closed strong {
    color: var(--blue);
    font-size: 11px;
}

.session-control-closed p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.session-heading-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.session-heading-actions > span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
}

.session-agenda-list > article {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) minmax(190px, auto);
    gap: 18px;
    align-items: start;
    padding: 22px 24px;
    border-top: 1px solid var(--line);
}

.session-agenda-list > article:first-child {
    border-top: 0;
}

.session-agenda-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(15, 163, 163, 0.09);
    color: var(--teal);
    font-size: 9px;
    font-weight: 900;
}

.session-agenda-content > span {
    display: block;
    color: var(--teal);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.session-agenda-content h3 {
    margin: 5px 0 0;
    color: var(--navy);
    font-family: var(--heading);
    font-size: 27px;
    font-weight: 600;
    line-height: 1.05;
}

.session-agenda-content p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.65;
}

.session-agenda-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.session-agenda-links a {
    color: var(--teal);
    font-size: 8px;
    font-weight: 850;
    text-decoration: none;
}

.session-agenda-side {
    display: grid;
    justify-items: end;
    gap: 12px;
}

.session-agenda-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.session-agenda-actions form {
    margin: 0;
}

.session-agenda-actions button {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(11, 29, 58, 0.13);
    border-radius: 9px;
    background: var(--white);
    color: var(--blue);
    font-size: 8px;
    font-weight: 850;
    cursor: pointer;
}

.session-agenda-actions button.is-primary {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

.session-document-list .agenda-status {
    align-self: center;
}

.session-activity-list {
    padding: 0 24px 12px;
}

.session-activity-list article {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.session-activity-list article:first-child {
    border-top: 0;
}

.session-activity-list article > span {
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 5px rgba(15, 163, 163, 0.08);
}

.session-activity-list small,
.session-activity-list strong,
.session-activity-list p,
.session-activity-list a {
    display: block;
}

.session-activity-list small {
    color: var(--muted);
    font-size: 8px;
}

.session-activity-list strong {
    margin-top: 3px;
    color: var(--blue);
    font-size: 10px;
}

.session-activity-list p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.55;
}

.session-activity-list a {
    margin-top: 6px;
    color: var(--teal);
    font-size: 8px;
    font-weight: 850;
    text-decoration: none;
}

.session-record-list > article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border-top: 1px solid var(--line);
}

.session-record-list > article:first-child {
    border-top: 0;
}

.session-record-list strong,
.session-record-list p {
    display: block;
    margin: 0;
}

.session-record-list strong {
    color: var(--blue);
    font-size: 10px;
}

.session-record-list p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 8px;
}

.session-record-list > article > div:last-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

.session-record-list a {
    color: var(--teal);
    font-size: 8px;
    font-weight: 850;
    text-decoration: none;
}

@media (max-width: 1180px) {
    .session-filter-bar {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .session-filter-bar label:first-of-type {
        grid-column: 1 / -1;
    }

    .session-filter-bar button {
        justify-self: start;
    }
}

@media (max-width: 900px) {
    .session-detail-hero {
        display: grid;
        align-items: start;
    }

    .session-detail-actions {
        justify-content: flex-start;
    }

    .session-agenda-list > article {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .session-agenda-side {
        grid-column: 2;
        justify-items: start;
    }

    .session-agenda-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .session-filter-bar,
    .session-identification-grid,
    .session-agenda-classification {
        grid-template-columns: 1fr;
    }

    .session-filter-bar label:first-of-type {
        grid-column: auto;
    }

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

    .session-detail-hero h1 {
        font-size: 42px;
        line-height: 1;
    }

    .session-data-list {
        padding: 4px 18px 0;
    }

    .session-data-list > div {
        grid-template-columns: 1fr;
        gap: 6px;
        min-height: 0;
        padding: 15px 0;
    }

    .session-control-body,
    .session-control-form {
        display: grid;
        width: 100%;
    }

    .session-control-form input,
    .session-control-body button {
        width: 100%;
    }

    .session-agenda-list > article {
        grid-template-columns: 1fr;
        padding: 20px 18px;
    }

    .session-agenda-side {
        grid-column: auto;
    }

    .session-record-list > article {
        display: grid;
        padding: 17px 18px;
    }

    .session-record-list > article > div:last-child {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .session-form-actions .button-primary,
    .session-form-actions .button-secondary {
        width: 100%;
    }
}



/* SESSIONS UI FIX V1 ------------------------------------------- */
/* Conserva el sistema visual de PARLEVIA en listado y formularios. */

.session-filter-bar {
    grid-template-columns:
        minmax(300px, 1fr)
        minmax(150px, 0.34fr)
        minmax(150px, 0.34fr)
        minmax(130px, 0.28fr)
        auto;
    align-items: end;
    gap: 14px;
}

.session-filter-bar button {
    min-width: 132px;
    white-space: nowrap;
}

.session-form .document-field input[type="time"] {
    appearance: auto;
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid rgba(11, 29, 58, 0.15);
    border-radius: 11px;
    outline: none;
    background: #fbfcfd;
    color: var(--navy);
    font-family: var(--body);
    font-size: 12px;
}

.session-form .document-field input[type="time"]:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(15, 163, 163, 0.09);
}

@media (max-width: 1100px) {
    .session-filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .session-filter-bar label:first-of-type {
        grid-column: 1 / -1;
    }

    .session-filter-bar button {
        justify-self: start;
    }
}

@media (max-width: 700px) {
    .session-filter-bar {
        grid-template-columns: 1fr;
    }

    .session-filter-bar label:first-of-type {
        grid-column: auto;
    }

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



/* SESSION LINKED REPORT CARD FIX V1 ---------------------------- */
/* Diferencia semánticamente dictámenes emitidos de otros documentos. */

.session-linked-document-title {
    display: block;
    overflow: hidden;
    color: var(--navy);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.session-document-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 0 auto;
}

.session-document-actions .dossier-card-action {
    white-space: nowrap;
}

.session-linked-report .report-status-issued {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(22, 135, 91, 0.10);
    color: var(--green);
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .session-document-list article {
        align-items: flex-start;
        flex-direction: column;
    }

    .session-linked-document-title {
        white-space: normal;
    }

    .session-document-actions {
        width: 100%;
        justify-content: space-between;
    }
}



/* SESSION ATTENDANCE FIX V1 ------------------------------------ */
/* Separa registrar presentes de finalizar la sesión. */

.session-attendance-form {
    padding-right: 12px;
    border-right: 1px solid var(--line);
}

.session-attendance-form .button-secondary {
    white-space: nowrap;
}

@media (max-width: 700px) {
    .session-control-body {
        align-items: stretch;
        flex-direction: column;
    }

    .session-control-form {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .session-control-form label,
    .session-control-form input,
    .session-control-body form,
    .session-control-body button {
        width: 100%;
    }

    .session-attendance-form {
        padding-right: 0;
        padding-bottom: 16px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}



/* PARLEVIA VOTACIONES V1 --------------------------------------- */

.vote-filter-bar {
    grid-template-columns:
        minmax(300px,1fr)
        minmax(150px,.34fr)
        minmax(180px,.42fr)
        minmax(130px,.28fr)
        auto;
    align-items: end;
    gap: 14px;
}

.vote-filter-bar button {
    min-width: 132px;
    white-space: nowrap;
}

.vote-table td:nth-child(2) {
    min-width: 250px;
}

.vote-table td:nth-child(2) > a,
.vote-table td:nth-child(2) > small,
.vote-dossier-link {
    display: block;
}

.vote-table td:nth-child(2) > a {
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
}

.vote-table td:nth-child(2) > small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 8px;
}

.vote-dossier-link {
    margin-top: 8px;
    color: var(--teal) !important;
    font-size: 8px;
    font-weight: 900 !important;
}

.vote-result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.vote-result-approved {
    background: rgba(22,135,91,.11);
    color: var(--green);
}

.vote-result-rejected {
    background: rgba(184,54,54,.10);
    color: #a32626;
}

.vote-result-tied {
    background: rgba(183,122,0,.12);
    color: #8a5a00;
}

.vote-result-annulled {
    background: rgba(11,29,58,.08);
    color: var(--muted);
}

.vote-neutrality-banner {
    display: flex;
    gap: 14px;
    margin: 0 0 20px;
    padding: 18px 20px;
    border: 1px solid rgba(15,163,163,.23);
    border-radius: 14px;
    background: rgba(34,193,214,.07);
}

.vote-neutrality-banner > span {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 6px rgba(15,163,163,.10);
}

.vote-neutrality-banner strong {
    display: block;
    color: var(--navy);
    font-size: 10px;
}

.vote-neutrality-banner p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.55;
}

.vote-context-card {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 14px;
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--surface-soft);
}

.vote-context-card div {
    display: grid;
    gap: 5px;
}

.vote-context-card span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.vote-context-card strong {
    color: var(--navy);
    font-size: 10px;
}

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

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

.vote-count-field {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.vote-count-field > span {
    color: var(--navy);
    font-size: 9px;
    font-weight: 900;
}

.vote-count-field input {
    width: 100%;
    height: 54px;
    padding: 0 14px;
    border: 1px solid rgba(11,29,58,.15);
    border-radius: 11px;
    outline: none;
    background: #fbfcfd;
    color: var(--navy);
    font-family: var(--heading);
    font-size: 27px;
    font-weight: 600;
}

.vote-count-field input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(15,163,163,.09);
}

.vote-count-affirmative {
    border-top: 3px solid rgba(22,135,91,.55);
}

.vote-count-negative {
    border-top: 3px solid rgba(184,54,54,.45);
}

.vote-count-abstention {
    border-top: 3px solid rgba(183,122,0,.45);
}

.vote-count-absent {
    border-top: 3px solid rgba(11,29,58,.25);
}

.vote-live-summary {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 1px;
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--line);
}

.vote-live-summary div {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    background: var(--surface-soft);
}

.vote-live-summary span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
}

.vote-live-summary strong {
    color: var(--navy);
    font-family: var(--heading);
    font-size: 23px;
}

.vote-live-summary strong.is-negative {
    color: #a32626;
}

.vote-result-grid {
    grid-template-columns: minmax(260px,.4fr) minmax(0,1fr);
    align-items: stretch;
    margin-top: 16px;
}

.vote-result-note {
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(15,163,163,.07);
}

.vote-result-note strong {
    display: block;
    color: var(--navy);
    font-size: 9px;
}

.vote-result-note p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.55;
}

.vote-detail-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 34px;
    margin-bottom: 22px;
}

.vote-detail-hero > div:first-child {
    min-width: 0;
}

.vote-detail-number {
    display: block;
    margin-bottom: 10px;
    color: var(--teal);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.vote-detail-hero h1 {
    max-width: 980px;
    margin: 0;
    color: var(--navy);
    font-family: var(--heading);
    font-size: clamp(44px,4.6vw,64px);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: .98;
    text-wrap: balance;
}

.vote-detail-hero h1 + p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.vote-detail-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.vote-data-list a {
    color: var(--teal);
    font-weight: 850;
    text-decoration: none;
}

.vote-motion-box {
    padding: 24px 26px 28px;
}

.vote-motion-box p {
    max-width: 920px;
    margin: 0;
    color: var(--navy);
    font-size: 12px;
    line-height: 1.75;
}

.vote-record-list > article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 18px 20px;
    border-top: 1px solid var(--line);
}

.vote-record-list > article:first-child {
    border-top: 0;
}

.vote-record-list article > div:first-child > span {
    display: block;
    margin-bottom: 5px;
    color: var(--teal);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.vote-record-list article strong {
    display: block;
    color: var(--navy);
    font-size: 10px;
}

.vote-record-list article p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 8px;
}

.vote-record-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.vote-record-actions small {
    color: var(--muted);
    font-size: 8px;
}

.vote-record-actions a {
    color: var(--teal);
    font-size: 8px;
    font-weight: 900;
    text-decoration: none;
}

.session-agenda-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid rgba(11,29,58,.14);
    border-radius: 9px;
    background: #fff;
    color: var(--navy);
    font-size: 8px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.session-agenda-actions a.is-primary {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

@media (max-width: 1100px) {
    .vote-filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .vote-filter-bar label:first-of-type {
        grid-column: 1 / -1;
    }

    .vote-filter-bar button {
        justify-self: start;
    }

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

@media (max-width: 760px) {
    .vote-detail-hero {
        display: grid;
        align-items: start;
        gap: 20px;
    }

    .vote-detail-actions {
        justify-content: flex-start;
    }

    .vote-detail-hero h1 {
        font-size: 42px;
        line-height: 1;
    }

    .vote-record-list > article {
        align-items: flex-start;
        flex-direction: column;
    }

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

@media (max-width: 700px) {
    .vote-filter-bar,
    .vote-rule-grid,
    .vote-count-grid,
    .vote-live-summary,
    .vote-result-grid,
    .vote-context-card {
        grid-template-columns: 1fr;
    }

    .vote-filter-bar label:first-of-type {
        grid-column: auto;
    }

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

    .vote-count-field {
        padding: 16px;
    }
}

/* PARLEVIA VOTACIONES V1.1 — JERARQUÍA, AIRE Y LEGIBILIDAD */
.vote-summary-grid {
    align-items: stretch;
}

.vote-summary-grid article {
    display: flex;
    min-height: 132px;
    padding: 22px 24px;
    flex-direction: column;
    justify-content: flex-start;
}

.vote-summary-grid article > span {
    margin: 0;
}

.vote-summary-grid article > strong {
    min-height: 40px;
    margin-top: 14px;
    overflow: visible;
    font-size: 32px;
    line-height: 1.05;
    text-overflow: clip;
    white-space: normal;
}

.vote-summary-grid article > small {
    margin-top: 9px;
    font-size: 10px;
    line-height: 1.45;
}

.vote-detail-grid {
    gap: 18px;
}

.vote-detail-grid .dossier-card-heading {
    padding: 24px 26px;
}

.vote-detail-grid .dossier-card-heading h2 {
    line-height: 1.05;
}

.vote-detail-grid .vote-data-list {
    padding: 0 26px 10px;
}

.vote-detail-grid .vote-data-list > div {
    grid-template-columns: minmax(155px, 0.38fr) minmax(0, 1fr);
    align-items: center;
    column-gap: 28px;
    min-height: 58px;
    padding: 15px 0;
}

.vote-detail-grid .vote-data-list dt {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.vote-detail-grid .vote-data-list dd {
    color: var(--blue);
    font-size: 11px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.vote-detail-grid .vote-data-list a {
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.vote-motion-box {
    padding: 26px;
}

.vote-motion-box p {
    font-size: 11px;
    line-height: 1.7;
}

@media (max-width: 760px) {
    .vote-summary-grid article {
        min-height: 118px;
        padding: 20px;
    }

    .vote-summary-grid article > strong {
        min-height: 36px;
        font-size: 30px;
    }

    .vote-detail-grid .dossier-card-heading {
        padding: 22px 20px;
    }

    .vote-detail-grid .vote-data-list {
        padding: 0 20px 8px;
    }

    .vote-detail-grid .vote-data-list > div {
        grid-template-columns: 1fr;
        gap: 6px;
        min-height: 0;
        padding: 15px 0;
    }

    .vote-motion-box {
        padding: 22px 20px;
    }
}

@media (max-width: 520px) {
    .vote-summary-grid article {
        min-height: 112px;
    }

    .vote-summary-grid article > strong {
        min-height: 0;
    }
}

/* PARLEVIA RELACIONES V1 --------------------------------------------------- */
.relation-list-hero {
    align-items: flex-end;
}

.relation-filter-bar {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.28fr) auto;
}

.relation-table td:nth-child(1) {
    min-width: 330px;
}

.relation-table td:nth-child(3) strong,
.relation-table td:nth-child(3) small {
    display: block;
}

.relation-table td:nth-child(3) small {
    margin-top: 5px;
    color: var(--muted);
}

.relation-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.relation-status-verified {
    color: var(--green);
    background: rgba(22, 135, 91, 0.10);
}

.relation-status-system {
    color: var(--blue);
    background: rgba(19, 44, 85, 0.08);
}

.relation-detail-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 24px;
}

.relation-detail-hero > div:first-child {
    min-width: 0;
}

.relation-detail-hero h1 {
    max-width: 1000px;
    margin: 10px 0 12px;
    color: var(--navy);
    font-family: var(--heading);
    font-size: clamp(46px, 5vw, 72px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 0.96;
}

.relation-detail-hero > div:first-child > p:last-child {
    max-width: 800px;
    margin: 0;
    color: var(--muted);
}

.relation-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.relation-summary-grid {
    margin-bottom: 18px;
}

.relation-network-card {
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
}

.relation-network-card .dossier-card-heading {
    padding: 24px 26px;
}

.relation-network {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.5fr);
    gap: 28px;
    padding: 28px 26px;
    background:
        linear-gradient(90deg, transparent 49.8%, rgba(15,163,163,0.16) 50%, transparent 50.2%),
        linear-gradient(180deg, rgba(244,246,248,0.35), rgba(230,233,238,0.35));
}

.relation-node {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}

.relation-node > span {
    display: block;
    margin-bottom: 10px;
    color: var(--teal);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.relation-node > strong {
    display: block;
    color: var(--navy);
    font-family: var(--heading);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.05;
}

.relation-node > p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.relation-node-core {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
    color: var(--white);
    border: 0;
    background: linear-gradient(145deg, var(--navy), var(--blue));
    box-shadow: 0 18px 45px rgba(11,29,58,0.16);
}

.relation-node-core > span {
    color: var(--cyan);
}

.relation-node-core > strong {
    color: var(--white);
    font-size: 42px;
}

.relation-node-core > p {
    color: rgba(255,255,255,0.72);
}

.relation-network-branches {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}

.relation-trust-note {
    margin: 0 26px 24px;
    padding: 16px 18px;
    border-radius: 13px;
    background: rgba(15,163,163,0.07);
}

.relation-trust-note strong,
.relation-trust-note p {
    display: block;
}

.relation-trust-note strong {
    color: var(--navy);
    font-size: 10px;
}

.relation-trust-note p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

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

.relation-path-list,
.relation-person-list,
.relation-document-list,
.relation-verified-list {
    padding: 0;
}

.relation-path-list article,
.relation-person-list article,
.relation-document-list article,
.relation-verified-list article {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-top: 1px solid var(--line);
}

.relation-path-list article:first-child,
.relation-person-list article:first-child,
.relation-document-list article:first-child,
.relation-verified-list article:first-child {
    border-top: 0;
}

.relation-path-list article > span,
.relation-avatar,
.relation-link-mark {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 12px;
    color: var(--teal);
    background: rgba(15,163,163,0.10);
    font-size: 10px;
    font-weight: 900;
}

.relation-path-list article > div,
.relation-person-list article > div,
.relation-document-list article > div,
.relation-link-content {
    min-width: 0;
    flex: 1;
}

.relation-path-list strong,
.relation-person-list strong,
.relation-document-list strong {
    color: var(--navy);
    font-size: 11px;
}

.relation-path-list p,
.relation-person-list p,
.relation-document-list p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.5;
}

.relation-document-list article {
    justify-content: space-between;
}

.relation-document-list article > div > span {
    display: block;
    margin-bottom: 5px;
    color: var(--teal);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.relation-document-list article > a,
.relation-verified-list a,
.relation-path-list a {
    color: var(--teal);
    font-size: 9px;
    font-weight: 900;
    text-decoration: none;
}

.relation-verified-list article {
    align-items: flex-start;
}

.relation-type-label {
    margin: 0 0 7px;
    color: var(--teal);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.relation-link-content > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--muted);
    font-size: 10px;
}

.relation-link-content > p:not(.relation-type-label) {
    margin: 8px 0 0;
    color: var(--ink);
    font-size: 10px;
}

.relation-link-content > small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 8px;
}

.relation-trace-grid,
.dossier-relation-metrics {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
}

.relation-trace-grid > div,
.dossier-relation-metrics article {
    min-width: 0;
    padding: 20px;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

.relation-trace-grid > div:last-child,
.dossier-relation-metrics article:last-child {
    border-right: 0;
}

.relation-trace-grid span,
.dossier-relation-metrics span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 9px;
}

.relation-trace-grid strong,
.dossier-relation-metrics strong {
    display: block;
    color: var(--navy);
    font-family: var(--heading);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.05;
}

.dossier-relations-overview .relation-trust-note {
    margin-top: 20px;
}

.dossier-relation-action {
    margin: 0 26px 24px;
}

.relation-create-content {
    max-width: 1160px;
}

.relation-context-card {
    margin: 0 0 16px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}

.relation-context-card span,
.relation-context-card strong,
.relation-context-card p {
    display: block;
}

.relation-context-card span {
    color: var(--teal);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.relation-context-card strong {
    margin-top: 5px;
    color: var(--navy);
    font-size: 12px;
}

.relation-context-card p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 9px;
}

.relation-trust-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(15,163,163,0.20);
    border-radius: 16px;
    background: rgba(15,163,163,0.07);
}

.relation-trust-banner > span {
    width: 10px;
    height: 10px;
    margin-top: 5px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 6px rgba(15,163,163,0.10);
}

.relation-trust-banner strong {
    color: var(--navy);
    font-size: 10px;
}

.relation-trust-banner p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 9px;
}

.relation-verification-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 22px 22px;
    padding: 18px;
    border: 1px solid rgba(15,163,163,0.18);
    border-radius: 14px;
    background: rgba(15,163,163,0.06);
}

.relation-check {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 11px;
    color: var(--white);
    background: var(--teal);
    font-weight: 900;
}

.relation-verification-box strong {
    display: block;
    color: var(--navy);
    font-size: 10px;
}

.relation-verification-box p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 9px;
}

@media (max-width: 980px) {
    .relation-detail-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .relation-network {
        grid-template-columns: 1fr;
        background: linear-gradient(180deg, rgba(244,246,248,0.35), rgba(230,233,238,0.35));
    }

    .relation-node-core {
        min-height: 180px;
    }

    .relation-detail-grid {
        grid-template-columns: 1fr;
    }

    .relation-trace-grid,
    .dossier-relation-metrics {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .relation-trace-grid > div:nth-child(2),
    .dossier-relation-metrics article:nth-child(2) {
        border-right: 0;
    }
}

@media (max-width: 760px) {
    .relation-filter-bar {
        grid-template-columns: 1fr;
    }

    .relation-detail-hero h1 {
        font-size: clamp(42px, 13vw, 60px);
    }

    .relation-hero-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .relation-hero-actions a {
        justify-content: center;
        width: 100%;
    }

    .relation-network {
        padding: 20px;
    }

    .relation-network-card .dossier-card-heading {
        padding: 22px 20px;
    }

    .relation-network-branches {
        grid-template-columns: 1fr;
    }

    .relation-trust-note {
        margin: 0 20px 20px;
    }

    .relation-document-list article,
    .relation-verified-list article {
        align-items: flex-start;
        flex-direction: column;
    }

    .relation-verified-list .relation-status {
        margin-left: 50px;
    }

    .relation-trace-grid,
    .dossier-relation-metrics {
        grid-template-columns: 1fr;
    }

    .relation-trace-grid > div,
    .dossier-relation-metrics article {
        border-right: 0;
    }

    .relation-classification-grid {
        grid-template-columns: 1fr;
    }
}



/* PARLEVIA URP V1 PHASE 2A — institutional access and i18n */
.locale-form label,
.workspace-locale-form label { display:flex; align-items:center; gap:.65rem; font-size:.78rem; font-weight:700; }
.locale-form select,
.workspace-locale-form select { border:1px solid rgba(11,29,58,.18); border-radius:10px; background:#fff; color:#0B1D3A; padding:.55rem .75rem; font:inherit; }
.locale-form-auth { display:flex; justify-content:flex-end; margin-bottom:1.25rem; }
.access-selection-page { min-height:100vh; background:#F4F6F8; color:#0B1D3A; }
.access-selection-shell { width:min(1180px, calc(100% - 32px)); margin:0 auto; padding:28px 0 56px; }
.access-selection-header { display:flex; justify-content:space-between; align-items:center; gap:24px; }
.access-selection-brand img { width:210px; height:auto; display:block; }
.access-selection-intro { max-width:760px; padding:72px 0 28px; }
.access-selection-intro h1 { margin:.35rem 0 1rem; font-family:"Cormorant Garamond", Georgia, serif; font-size:clamp(2.4rem,6vw,4.8rem); line-height:.95; }
.access-selection-intro p { max-width:680px; color:#4E5C70; font-size:1.08rem; line-height:1.65; }
.access-selection-intro > span { display:inline-flex; margin-top:1rem; padding:.5rem .8rem; border-radius:999px; background:#E6E9EE; font-weight:700; }
.access-card-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:20px; }
.access-institution-card { display:flex; flex-direction:column; gap:22px; min-height:320px; padding:28px; border:1px solid rgba(11,29,58,.09); border-radius:24px; background:#fff; box-shadow:0 18px 45px rgba(11,29,58,.07); }
.access-institution-card h2 { margin:.5rem 0; font-family:"Cormorant Garamond", Georgia, serif; font-size:2rem; line-height:1; }
.access-institution-card > div > span { color:#0FA3A3; font-size:.75rem; font-weight:800; letter-spacing:.12em; }
.access-institution-card dl { display:grid; gap:14px; margin:0; }
.access-institution-card dl div { padding-top:12px; border-top:1px solid #E6E9EE; }
.access-institution-card dt { color:#667085; font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.access-institution-card dd { margin:.35rem 0 0; }
.access-institution-card form { margin-top:auto; }
.access-institution-card button { width:100%; border:0; border-radius:12px; background:#0B1D3A; color:#fff; padding:.9rem 1rem; font-weight:800; cursor:pointer; }
.access-security-note { margin-top:22px; padding:18px 20px; border-left:4px solid #0FA3A3; background:#EAF8F8; border-radius:12px; }
.access-selection-footer { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-top:28px; }
.access-selection-footer form { margin:0; }
.access-selection-footer button,.access-selection-footer a { border:0; background:none; color:#0B1D3A; font-weight:800; text-decoration:none; cursor:pointer; }
.access-empty-state { padding:34px; border-radius:20px; background:#fff; border:1px solid #E6E9EE; }
.access-denied-page { min-height:100vh; display:grid; place-items:center; padding:24px; background:#F4F6F8; color:#0B1D3A; }
.access-denied-card { width:min(620px,100%); padding:42px; border-radius:26px; background:#fff; box-shadow:0 24px 70px rgba(11,29,58,.12); }
.access-denied-card img { width:190px; height:auto; margin-bottom:34px; }
.access-denied-card h1 { font-family:"Cormorant Garamond", Georgia, serif; font-size:3rem; margin:.2rem 0 1rem; }
.access-denied-card dl { margin:22px 0; padding:16px; background:#F4F6F8; border-radius:12px; }
.access-denied-card dd { margin:.5rem 0 0; }
.access-denied-card a { display:inline-flex; padding:.85rem 1rem; border-radius:12px; background:#0B1D3A; color:#fff; text-decoration:none; font-weight:800; }
.workspace-locale-form { padding-bottom:.8rem; border-bottom:1px solid rgba(255,255,255,.12); margin-bottom:.8rem; }
.workspace-locale-form label { flex-direction:column; align-items:stretch; color:inherit; }
.workspace-locale-form select { width:100%; }
@media (max-width:720px) {
  .access-selection-header { align-items:flex-start; flex-direction:column; }
  .access-selection-intro { padding-top:42px; }
  .access-selection-footer { align-items:flex-start; flex-direction:column; }
  .access-denied-card { padding:28px; }
}


/* PARLEVIA_ACCESS_VISUAL_V2
   Hotfix público: login, selector y acceso denegado.
   El archivo debe servirse con HTTP 200, text/css y permisos 0644.
---------------------------------------------------------------- */

:root {
    color-scheme: light;
}

html {
    background: var(--paper);
}

body.auth-page,
body.access-selection-page,
body.access-denied-page {
    width: 100%;
    min-width: 320px;
}

.auth-page {
    min-height: 100svh;
}

.auth-shell {
    isolation: isolate;
}

.auth-story {
    position: relative;
    overflow: hidden;
}

.auth-story::before,
.auth-story::after {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    content: "";
}

.auth-story::before {
    top: -180px;
    right: -180px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(34, 193, 214, 0.18);
}

.auth-story::after {
    right: 8%;
    bottom: -220px;
    width: 460px;
    height: 460px;
    background: radial-gradient(
        circle,
        rgba(34, 193, 214, 0.12),
        transparent 66%
    );
}

.auth-story > * {
    position: relative;
    z-index: 1;
}

.auth-brand,
.access-selection-brand {
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.auth-brand:hover,
.access-selection-brand:hover {
    transform: translateY(-1px);
}

.auth-brand:focus-visible,
.access-selection-brand:focus-visible,
.login-form input:focus-visible,
.login-form button:focus-visible,
.locale-form select:focus-visible,
.access-institution-card button:focus-visible,
.access-selection-footer a:focus-visible,
.access-selection-footer button:focus-visible,
.access-denied-card a:focus-visible {
    outline: 3px solid rgba(34, 193, 214, 0.42);
    outline-offset: 3px;
}

.auth-panel {
    position: relative;
}

.locale-form-auth {
    margin-bottom: 34px;
}

.locale-form label > span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.locale-form select {
    min-height: 40px;
    cursor: pointer;
}

.login-form input {
    appearance: none;
}

.login-form input:hover {
    border-color: rgba(11, 29, 58, 0.28);
}

.login-form button {
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.login-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(11, 29, 58, 0.22);
}

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

.access-meta {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.access-selection-page {
    background:
        radial-gradient(
            circle at 8% 4%,
            rgba(34, 193, 214, 0.10),
            transparent 26%
        ),
        var(--paper);
}

.access-selection-shell {
    padding-top: 32px;
}

.access-selection-header {
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 40px rgba(11, 29, 58, 0.06);
    backdrop-filter: blur(16px);
}

.access-selection-brand {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 10px;
    background: var(--white);
}

.access-selection-intro {
    padding-top: 66px;
}

.access-selection-intro h1 {
    max-width: 820px;
    color: var(--navy);
    letter-spacing: -0.035em;
}

.access-selection-intro > span {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.74);
}

.access-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 18px;
}

.access-institution-card {
    position: relative;
    overflow: hidden;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.access-institution-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    content: "";
}

.access-institution-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 163, 163, 0.24);
    box-shadow: 0 24px 58px rgba(11, 29, 58, 0.11);
}

.access-institution-card button {
    min-height: 48px;
    transition:
        transform 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
    box-shadow: 0 12px 28px rgba(11, 29, 58, 0.15);
}

.access-institution-card button:hover {
    transform: translateY(-1px);
    background: var(--blue);
}

.access-empty-state,
.access-security-note {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
}

.access-empty-state {
    padding: 34px;
}

.access-security-note {
    margin-top: 22px;
    padding: 15px 17px;
    color: var(--muted);
    font-size: 11px;
}

.access-selection-footer {
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.access-selection-footer button,
.access-selection-footer a {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
}

.access-denied-page {
    background:
        radial-gradient(
            circle at 50% 12%,
            rgba(34, 193, 214, 0.11),
            transparent 28%
        ),
        var(--paper);
}

.access-denied-card {
    border: 1px solid var(--line);
}

.access-denied-card code {
    overflow-wrap: anywhere;
    color: var(--blue);
}

@media (min-width: 1440px) {
    .auth-shell {
        width: min(1420px, calc(100vw - 96px));
        min-height: min(760px, calc(100vh - 72px));
    }

    .auth-panel-inner {
        width: min(500px, 100%);
    }
}

@media (max-width: 900px) {
    .auth-story-content {
        padding-bottom: 24px;
    }

    .auth-story h1 {
        max-width: 760px;
    }

    .locale-form-auth {
        margin-bottom: 24px;
    }

    .access-selection-header {
        align-items: stretch;
    }

    .access-selection-header .locale-form label {
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .auth-story {
        min-height: 330px;
    }

    .auth-story h1 {
        font-size: clamp(40px, 12vw, 52px);
    }

    .auth-story-content > p:not(.section-kicker) {
        font-size: 14px;
    }

    .auth-panel {
        border-top: 1px solid var(--line);
    }

    .locale-form-auth {
        justify-content: flex-start;
    }

    .access-selection-shell {
        width: min(100% - 24px, 1180px);
        padding-top: 12px;
    }

    .access-selection-header {
        padding: 14px;
    }

    .access-selection-brand img {
        width: 176px;
    }

    .access-selection-intro {
        padding-top: 38px;
    }

    .access-card-grid {
        grid-template-columns: 1fr;
    }

    .access-institution-card {
        min-height: 0;
        padding: 22px;
    }
}

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