:root {
    --navy: #07153f;
    --navy-soft: #152958;
    --blue: #087fb8;
    --cyan: #4ec4e3;
    --orange: #c94f00;
    --green: #006634;
    --leaf: #6bb256;
    --yellow: #dbdc39;
    --mint: #c0e8e7;
    --paper: #ffffff;
    --background: #f3f7f7;
    --border: #cbd9db;
    --border-strong: #9eb4b9;
    --text: #172238;
    --muted: #596677;
    --danger: #a52b2b;
    --danger-soft: #fff0ee;
    --warning: #8a4d00;
    --warning-soft: #fff7df;
    --success-soft: #e8f6ec;
    --info-soft: #e9f6fb;
    --shadow: 0 12px 32px rgba(7, 21, 63, 0.08);
    --radius: 16px;
    --radius-small: 10px;
    --content: 1380px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    color: var(--text);
    background: var(--background);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.55;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 95% 8%, rgba(78, 196, 227, 0.09), transparent 26rem),
        var(--background);
}

a {
    color: var(--blue);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--navy);
}

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

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

:focus-visible {
    outline: 4px solid rgba(8, 127, 184, 0.28);
    outline-offset: 3px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--navy);
    line-height: 1.16;
}

h1 {
    margin-bottom: 0.65rem;
    font-size: clamp(2rem, 3.4vw, 3.15rem);
    letter-spacing: -0.035em;
}

h2 {
    font-size: 1.35rem;
    letter-spacing: -0.015em;
}

h3 {
    font-size: 1.08rem;
}

small {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

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

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.7rem 1rem;
    transform: translateY(-160%);
    color: white;
    background: var(--navy);
    border-radius: 8px;
}

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

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    color: white;
    background: var(--navy);
    border-bottom: 4px solid var(--cyan);
    box-shadow: 0 5px 18px rgba(7, 21, 63, 0.16);
}

.header-inner {
    display: flex;
    align-items: center;
    width: min(calc(100% - 2rem), var(--content));
    min-height: 78px;
    margin: 0 auto;
    gap: 1.4rem;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
}

.brand:hover {
    color: white;
}

.brand strong,
.brand small {
    display: block;
    color: inherit;
    line-height: 1.15;
}

.brand strong {
    font-size: 1.04rem;
}

.brand small {
    margin-top: 0.17rem;
    color: var(--mint);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
}

.brand-symbol {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
}

.brand-symbol i {
    position: absolute;
    display: block;
    width: 21px;
    height: 21px;
    border-radius: 21px 4px 21px 4px;
    transform: rotate(-45deg);
}

.brand-symbol i:nth-child(1) {
    top: 1px;
    left: 11px;
    background: var(--yellow);
}

.brand-symbol i:nth-child(2) {
    top: 19px;
    left: 1px;
    background: var(--cyan);
}

.brand-symbol i:nth-child(3) {
    top: 19px;
    left: 22px;
    background: var(--leaf);
}

.main-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 0.15rem;
}

.main-nav a {
    min-height: 44px;
    padding: 0.62rem 0.78rem;
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-menu {
    display: flex;
    align-items: center;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    gap: 0.8rem;
}

.user-menu strong,
.user-menu a {
    display: block;
    color: white;
    font-size: 0.82rem;
    line-height: 1.35;
}

.user-menu a {
    color: var(--mint);
}

.nav-toggle {
    display: none;
    min-height: 44px;
    margin-left: auto;
    color: white;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
}

.page-shell {
    width: min(calc(100% - 2rem), var(--content));
    min-height: calc(100vh - 160px);
    margin: 0 auto;
    padding: 2.4rem 0 4rem;
}

.content-narrow,
.content-medium {
    width: 100%;
    margin: 0 auto;
}

.content-narrow {
    max-width: 800px;
}

.content-medium {
    max-width: 1040px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    width: min(calc(100% - 2rem), var(--content));
    margin: 0 auto;
    padding: 1.4rem 0 2rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    gap: 1rem;
}

.page-heading {
    margin-bottom: 1.8rem;
}

.page-heading > p:last-child,
.lead {
    max-width: 830px;
    color: var(--muted);
    font-size: 1.05rem;
}

.heading-with-action {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.heading-with-action > div:first-child {
    min-width: 0;
}

.eyebrow {
    margin-bottom: 0.45rem;
    color: var(--orange);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.25rem;
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.68rem 1.2rem;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 750;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button:hover:not(:disabled):not(.button-disabled) {
    transform: translateY(-1px);
}

.button-primary {
    color: white;
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 7px 16px rgba(8, 127, 184, 0.18);
}

.button-primary:hover {
    color: white;
    background: #066da0;
    border-color: #066da0;
}

.button-secondary {
    color: var(--navy);
    background: white;
    border-color: var(--border-strong);
}

.button-secondary:hover {
    color: var(--navy);
    background: #f4fbfb;
    border-color: var(--blue);
}

.button-quiet {
    min-height: 44px;
    color: var(--navy);
    background: transparent;
    border-color: transparent;
}

.site-header .button-quiet {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.button-danger {
    color: white;
    background: var(--danger);
    border-color: var(--danger);
}

.button-small {
    min-height: 38px;
    padding: 0.45rem 0.7rem;
    font-size: 0.82rem;
}

.button-wide {
    width: 100%;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.button-disabled,
.button:disabled {
    color: #6f7a84;
    background: #e4eaeb;
    border-color: #e4eaeb;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

.text-link {
    font-weight: 750;
    text-decoration: none;
}

.flash-stack {
    display: grid;
    margin-bottom: 1.2rem;
    gap: 0.65rem;
}

.alert {
    padding: 0.95rem 1.1rem;
    color: var(--text);
    background: white;
    border: 1px solid var(--border);
    border-left-width: 6px;
    border-radius: var(--radius-small);
}

.alert-error {
    background: var(--danger-soft);
    border-left-color: var(--danger);
}

.alert-success {
    background: var(--success-soft);
    border-left-color: var(--green);
}

.alert-warning {
    background: var(--warning-soft);
    border-left-color: #d88300;
}

.alert-info {
    background: var(--info-soft);
    border-left-color: var(--blue);
}

.panel {
    padding: 1.5rem;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.panel + .panel {
    margin-top: 1.25rem;
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.panel-heading h2 {
    margin-bottom: 0;
}

.stack-form {
    display: grid;
    gap: 1.25rem;
}

.field {
    display: grid;
    gap: 0.38rem;
}

.field label,
.field > label {
    color: var(--navy);
    font-weight: 750;
}

.field-hint {
    display: inline;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
}

input,
textarea,
select {
    width: 100%;
    min-height: 52px;
    padding: 0.68rem 0.82rem;
    color: var(--text);
    background: white;
    border: 2px solid var(--border-strong);
    border-radius: 9px;
}

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

input:hover,
textarea:hover,
select:hover {
    border-color: var(--blue);
}

input:disabled,
textarea:disabled,
select:disabled {
    color: #66717c;
    background: #edf1f1;
    cursor: not-allowed;
}

input[type="checkbox"],
input[type="radio"] {
    width: 1.3rem;
    min-height: 1.3rem;
    margin: 0;
    accent-color: var(--blue);
}

input[type="file"] {
    min-height: auto;
    padding: 0.8rem;
    background: #f8fbfb;
}

.password-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

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

.field-short {
    max-width: 360px;
}

.form-section {
    display: grid;
    min-width: 0;
    margin: 0;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    gap: 1.15rem;
}

.form-section > legend {
    padding: 0 0.4rem;
    color: var(--navy);
    font-size: 1.24rem;
    font-weight: 800;
}

.section-help {
    margin: 0;
    color: var(--muted);
}

.form-actions {
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.check-row {
    display: flex;
    align-items: flex-start;
    padding: 0.9rem;
    background: #f8fbfb;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    gap: 0.75rem;
}

.check-row input {
    flex: 0 0 auto;
    margin-top: 0.18rem;
}

.check-row span,
.check-row strong,
.check-row small {
    display: block;
}

.check-row-prominent {
    margin: 1.2rem 0;
    background: var(--info-soft);
    border: 2px solid var(--blue);
}

.upload-box {
    min-width: 0;
    padding: 1.1rem;
    background: #f8fbfb;
    border: 2px dashed var(--border-strong);
    border-radius: 12px;
}

.upload-box input {
    margin-top: 0.8rem;
}

.current-file {
    margin: 0.5rem 0 0;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
}

.auth-main {
    min-height: 100vh;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(340px, 46%) minmax(420px, 1fr);
}

.auth-art {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 100vh;
    background: var(--mint);
}

.auth-art img {
    display: block;
    width: 100%;
    height: 100vh;
    object-fit: contain;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem clamp(1.5rem, 6vw, 6rem);
    background:
        radial-gradient(circle at 90% 12%, rgba(219, 220, 57, 0.18), transparent 14rem),
        radial-gradient(circle at 8% 92%, rgba(78, 196, 227, 0.17), transparent 17rem),
        white;
}

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

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

.auth-panel h1 {
    font-size: clamp(2.3rem, 5vw, 4.4rem);
}

.auth-panel .lead {
    margin-bottom: 2rem;
}

.auth-help {
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
}

.progress-card {
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.5rem;
    background: white;
    border: 1px solid var(--border);
    border-left: 8px solid var(--blue);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.progress-copy {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.progress-number {
    flex: 0 0 auto;
    color: var(--navy);
    font-size: 2rem;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.progress-copy h2,
.progress-copy p {
    margin-bottom: 0;
}

.progress-copy h2 {
    font-size: 1.08rem;
}

.progress-copy p {
    color: var(--muted);
    font-size: 0.9rem;
}

progress {
    width: 100%;
    height: 11px;
    margin-top: 1rem;
    overflow: hidden;
    appearance: none;
    background: #dfe9ea;
    border: 0;
    border-radius: 100px;
}

progress::-webkit-progress-bar {
    background: #dfe9ea;
    border-radius: 100px;
}

progress::-webkit-progress-value {
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    border-radius: 100px;
}

progress::-moz-progress-bar {
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    border-radius: 100px;
}

.compact-progress {
    margin-bottom: 1.5rem;
}

.completion-banner {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.4rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    gap: 1rem;
}

.completion-banner h2,
.completion-banner p {
    margin-bottom: 0;
}

.completion-icon {
    display: grid;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    color: white;
    background: var(--green);
    border-radius: 50%;
    place-items: center;
    font-size: 1.6rem;
    font-weight: 900;
}

.completion-done,
.completion-ready {
    background: var(--success-soft);
    border-color: var(--leaf);
}

.completion-blocked {
    background: var(--warning-soft);
    border-color: #d88300;
}

.completion-blocked .completion-icon {
    background: #d88300;
}

.toolbar {
    margin-bottom: 1.2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
}

.filter-form,
.table-tools {
    display: flex;
    align-items: flex-end;
    gap: 0.8rem;
}

.field-inline {
    min-width: 190px;
}

.field-inline label {
    font-size: 0.78rem;
}

.field-grow {
    flex: 1 1 320px;
}

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

.proposal-card {
    display: flex;
    min-width: 0;
    padding: 1.25rem;
    background: white;
    border: 1px solid var(--border);
    border-top: 6px solid var(--border-strong);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(7, 21, 63, 0.06);
    flex-direction: column;
}

.proposal-card.status-complete {
    border-top-color: var(--leaf);
}

.proposal-card.status-draft {
    border-top-color: #d88300;
}

.proposal-card.status-todo {
    border-top-color: var(--blue);
}

.proposal-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    gap: 0.5rem;
}

.proposal-code {
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.proposal-card h2 {
    margin-bottom: 1rem;
    font-size: 1.16rem;
}

.proposal-meta {
    margin: 0 0 1rem;
}

.proposal-meta div + div {
    margin-top: 0.55rem;
}

.proposal-meta dt {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.proposal-meta dd {
    margin: 0;
    font-size: 0.9rem;
}

.proposal-card .button {
    margin-top: auto;
}

.card-score {
    margin: auto 0 0.9rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.status-badge {
    display: inline-block;
    width: fit-content;
    padding: 0.22rem 0.55rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-badge-complete {
    color: #07522e;
    background: #dcefe2;
}

.status-badge-draft {
    color: #784300;
    background: #ffefc0;
}

.status-badge-todo {
    color: #075b85;
    background: #dff3fa;
}

.status-badge-muted {
    color: #59636b;
    background: #e8eded;
}

.bottom-action {
    position: sticky;
    z-index: 20;
    bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(7, 21, 63, 0.18);
    gap: 1rem;
}

.bottom-action strong,
.bottom-action span {
    display: block;
}

.bottom-action span {
    color: var(--muted);
    font-size: 0.84rem;
}

.bottom-action-ready {
    border-color: var(--leaf);
}

.empty-state {
    padding: 3rem 1.5rem;
    color: var(--muted);
    background: white;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    text-align: center;
}

.empty-state h2 {
    margin-bottom: 0.4rem;
}

.empty-icon {
    color: var(--blue);
    font-size: 2.5rem;
}

.empty-state.compact {
    padding: 1.5rem;
}

.evaluation-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mini-progress {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.proposal-hero {
    display: grid;
    margin-bottom: 1.2rem;
    padding: clamp(1.3rem, 3vw, 2rem);
    color: white;
    background:
        radial-gradient(circle at 90% 12%, rgba(219, 220, 57, 0.25), transparent 12rem),
        linear-gradient(135deg, var(--navy), var(--navy-soft));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
    gap: 2rem;
}

.proposal-hero h1 {
    color: white;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.proposal-hero .proposal-code {
    color: var(--cyan);
}

.proposal-owner {
    color: #dfe9f2;
}

.abstract-details {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.23);
}

.abstract-details summary {
    color: var(--mint);
    cursor: pointer;
    font-weight: 750;
}

.abstract-details p {
    margin: 0.7rem 0 0;
    color: white;
    font-size: 0.9rem;
}

.document-buttons {
    display: grid;
    align-content: center;
    gap: 0.75rem;
}

.document-button {
    display: flex;
    align-items: center;
    min-height: 76px;
    padding: 0.8rem;
    color: var(--navy);
    background: white;
    border: 2px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    gap: 0.8rem;
}

.document-button:hover {
    color: var(--navy);
    border-color: var(--cyan);
}

.document-icon {
    display: grid;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    color: white;
    background: var(--orange);
    border-radius: 8px 14px 8px 8px;
    place-items: center;
    font-size: 0.69rem;
    font-weight: 900;
}

.document-button strong,
.document-button small {
    display: block;
}

.document-missing {
    opacity: 0.72;
}

.instruction-card {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    padding: 1rem 1.2rem;
    background: var(--info-soft);
    border: 1px solid #a9d9e9;
    border-radius: 12px;
    gap: 1rem;
}

.instruction-card p {
    margin: 0;
}

.instruction-number {
    flex: 0 0 auto;
    color: var(--blue);
    font-size: 1.5rem;
    font-weight: 850;
}

.evaluation-form {
    display: grid;
    gap: 1rem;
}

.evaluation-fields {
    display: grid;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    gap: 1rem;
}

.criterion-card,
.notes-card {
    display: grid;
    padding: 1.4rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 7px 22px rgba(7, 21, 63, 0.05);
    grid-template-columns: minmax(260px, 1fr) minmax(400px, 1.35fr);
    gap: 1.5rem;
}

.criterion-number {
    display: block;
    margin-bottom: 0.28rem;
    color: var(--orange);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.criterion-copy h2,
.notes-card h2 {
    margin-bottom: 0.5rem;
}

.criterion-copy p,
.notes-card > div:first-child p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.score-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.score-fieldset legend {
    margin-bottom: 0.55rem;
    color: var(--navy);
    font-size: 0.76rem;
    font-weight: 800;
}

.score-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
    gap: 0.5rem;
}

.score-option {
    position: relative;
}

.score-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.score-option label {
    display: grid;
    min-height: 72px;
    padding: 0.5rem;
    color: var(--navy);
    background: #f5f9f9;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    place-content: center;
    text-align: center;
}

.score-option label strong {
    font-size: 1.42rem;
    line-height: 1;
}

.score-option label small {
    margin-top: 0.3rem;
    font-size: 0.62rem;
    text-transform: uppercase;
}

.score-option input:hover + label {
    border-color: var(--blue);
}

.score-option input:focus-visible + label {
    outline: 4px solid rgba(8, 127, 184, 0.28);
    outline-offset: 2px;
}

.score-option input:checked + label {
    color: white;
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 6px 15px rgba(8, 127, 184, 0.2);
}

.score-option input:checked + label small {
    color: white;
}

.evaluation-actions {
    position: sticky;
    z-index: 20;
    bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.97);
    border: 2px solid var(--blue);
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(7, 21, 63, 0.2);
    gap: 1rem;
}

.score-summary span,
.score-summary strong,
.score-summary small {
    display: block;
}

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

.score-summary strong {
    color: var(--navy);
    font-size: 1.35rem;
}

.clean-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.link-list li + li {
    border-top: 1px solid var(--border);
}

.link-list a {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    color: var(--text);
    text-decoration: none;
    gap: 1rem;
}

.link-list a:hover {
    color: var(--blue);
}

.link-list span {
    color: var(--muted);
    white-space: nowrap;
}

.final-confirmation {
    margin-top: 1.5rem;
}

.stats-grid {
    display: grid;
    margin-bottom: 1.25rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.stat-card {
    position: relative;
    display: flex;
    min-height: 180px;
    overflow: hidden;
    padding: 1.2rem;
    color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-direction: column;
}

.stat-card::after {
    position: absolute;
    right: -25px;
    bottom: -35px;
    width: 115px;
    height: 115px;
    content: "";
    background: rgba(255, 255, 255, 0.13);
    border-radius: 80px 8px 80px 8px;
    transform: rotate(-25deg);
}

.stat-card > span:first-child {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stat-card > strong {
    margin: 0.35rem 0 auto;
    font-size: 2.7rem;
    line-height: 1;
}

.stat-card > strong small {
    display: inline;
    color: inherit;
    font-size: 1.1rem;
}

.stat-card a,
.stat-caption {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
}

.stat-blue { background: var(--blue); }
.stat-green { background: var(--green); }
.stat-yellow { color: var(--navy); background: #c7c926; }
.stat-yellow a, .stat-yellow .stat-caption { color: var(--navy); }
.stat-orange { background: var(--orange); }

.admin-columns {
    display: grid;
    margin-top: 1.25rem;
    grid-template-columns: minmax(0, 2.2fr) minmax(270px, 0.8fr);
    gap: 1.25rem;
}

.quick-actions {
    align-self: start;
}

.quick-action {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    color: var(--navy);
    border-top: 1px solid var(--border);
    text-decoration: none;
    gap: 0.75rem;
}

.quick-action span {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    color: white;
    background: var(--blue);
    border-radius: 9px;
    place-items: center;
    font-size: 1.2rem;
}

.audit-panel {
    margin-top: 1.25rem;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table,
.report-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th,
.data-table td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table th {
    color: var(--muted);
    background: #f5f8f8;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.data-table td {
    font-size: 0.85rem;
}

.data-table td strong,
.data-table td span,
.data-table td small {
    display: block;
}

.data-table tbody tr:hover {
    background: #f9fcfc;
}

.data-table progress {
    width: 120px;
    height: 7px;
    margin: 0.3rem 0 0;
}

.table-progress-label {
    font-weight: 750;
}

.row-muted {
    opacity: 0.62;
}

.compact-table td,
.compact-table th {
    padding: 0.6rem 0.75rem;
}

.table-tools {
    margin-bottom: 1rem;
}

.table-count {
    padding-bottom: 0.75rem;
    color: var(--muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.document-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.doc-chip {
    display: inline-block !important;
    padding: 0.24rem 0.5rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 750;
    text-decoration: none;
}

.doc-ok {
    color: #07522e;
    background: #def1e4;
}

.doc-missing {
    color: #7b3e00;
    background: #fff0cd;
}

.danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    padding: 1.2rem;
    background: var(--danger-soft);
    border: 1px solid #e6b8b0;
    border-radius: var(--radius);
    gap: 1.5rem;
}

.danger-zone h2,
.danger-zone p {
    margin-bottom: 0;
}

.danger-zone h2 {
    color: var(--danger);
}

.import-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.import-step {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
}

.step-number {
    display: grid;
    width: 48px;
    height: 48px;
    color: white;
    background: var(--green);
    border-radius: 50%;
    place-items: center;
    font-size: 1.3rem;
    font-weight: 850;
}

.info-box {
    margin-top: 1rem;
    padding: 0.8rem;
    color: var(--muted);
    background: #f1f6f6;
    border-radius: 8px;
    font-size: 0.82rem;
}

code {
    padding: 0.12rem 0.3rem;
    color: var(--navy);
    background: #edf1f1;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.86em;
}

.error-page {
    padding-top: 7vh;
    text-align: center;
}

.error-symbol {
    display: grid;
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    color: white;
    background: var(--orange);
    border-radius: 50%;
    place-items: center;
    font-size: 2rem;
    font-weight: 900;
}

.report-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    gap: 1rem;
}

.report-toolbar .back-link {
    margin: 0;
}

.report-document {
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3.2rem);
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.report-header {
    padding-bottom: 2rem;
    border-bottom: 8px solid var(--cyan);
}

.report-brand {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    color: var(--navy);
    font-weight: 800;
    gap: 0.65rem;
}

.report-brand .brand-symbol {
    transform: scale(0.8);
}

.report-header h1 {
    max-width: 850px;
}

.winner-card {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f4f8cb, #e4f4e8);
    border: 2px solid #b4b82a;
    border-radius: var(--radius);
    gap: 1.2rem;
}

.winner-card h2,
.winner-card p {
    margin-bottom: 0.3rem;
}

.winner-medal {
    display: grid;
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    color: var(--navy);
    background: var(--yellow);
    border-radius: 50%;
    place-items: center;
    font-size: 2rem;
}

.report-status {
    margin: 2rem 0;
    padding: 1.3rem;
    border-left: 7px solid;
    border-radius: 9px;
}

.report-status h2,
.report-status p {
    margin-bottom: 0.3rem;
}

.report-status-provisional {
    background: var(--info-soft);
    border-color: var(--blue);
}

.report-status-warning {
    background: var(--warning-soft);
    border-color: #d88300;
}

.report-summary-grid {
    display: grid;
    margin: 2rem 0;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.report-summary-grid div {
    padding: 1rem;
    background: #f2f7f7;
    border-radius: 10px;
}

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

.report-summary-grid span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
    text-transform: uppercase;
}

.report-summary-grid strong {
    color: var(--navy);
    font-size: 1.6rem;
}

.report-section {
    margin-top: 2.5rem;
}

.report-section > h2 {
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--mint);
}

.methodology p,
.report-note {
    color: var(--muted);
}

.report-note {
    font-size: 0.85rem;
}

.report-table th,
.report-table td {
    padding: 0.55rem;
    border: 1px solid #c9d4d6;
    font-size: 0.75rem;
    vertical-align: top;
}

.report-table th {
    color: var(--navy);
    background: #eef5f5;
}

.ranking-table td:not(:nth-child(2)),
.ranking-table th:not(:nth-child(2)) {
    text-align: center;
}

.ranking-table td:nth-child(2) {
    min-width: 220px;
}

.ranking-table td span {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.7rem;
}

.ranking-table td small {
    display: inline;
}

.winner-row {
    background: #f6f8d8;
}

.criteria-legend ol {
    columns: 2;
    column-gap: 2.5rem;
}

.criteria-legend li {
    margin: 0 0 0.75rem 1.25rem;
    break-inside: avoid;
    color: var(--muted);
    font-size: 0.82rem;
}

.report-detail {
    margin-top: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 9px;
}

.report-detail summary {
    display: flex;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    color: var(--navy);
    background: #f4f8f8;
    cursor: pointer;
    gap: 1rem;
}

.report-detail-content {
    padding: 1rem;
}

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

.commissioner-notes {
    display: grid;
    gap: 0.6rem;
}

.commissioner-notes article {
    padding: 0.8rem;
    background: #f7f9f9;
    border-left: 4px solid var(--cyan);
}

.commissioner-notes p {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
}

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

.report-footer {
    margin-top: 3rem;
    padding-top: 1rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
}

@media (max-width: 1120px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 0.7rem 0;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
    }

    .main-nav {
        display: none;
        width: 100%;
        margin: 0;
        padding-top: 0.6rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        order: 4;
        flex-wrap: wrap;
    }

    .main-nav.is-open {
        display: flex;
    }

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

    .criterion-card,
    .notes-card {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 860px) {
    html {
        font-size: 16px;
    }

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

    .auth-art {
        min-height: 250px;
        max-height: 34vh;
    }

    .auth-art img {
        height: 34vh;
        object-fit: cover;
        object-position: 50% 15%;
    }

    .auth-panel {
        padding: 2.5rem 1.2rem;
    }

    .heading-with-action,
    .report-toolbar,
    .danger-zone {
        align-items: stretch;
        flex-direction: column;
    }

    .proposal-hero,
    .admin-columns,
    .import-steps {
        grid-template-columns: 1fr;
    }

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

    .user-menu > div {
        display: none;
    }
}

@media (max-width: 620px) {
    .page-shell {
        width: min(calc(100% - 1rem), var(--content));
        padding-top: 1.4rem;
    }

    .header-inner {
        width: calc(100% - 1rem);
    }

    .brand-symbol {
        width: 38px;
        height: 38px;
        transform: scale(0.86);
        transform-origin: left center;
    }

    .brand strong {
        font-size: 0.9rem;
    }

    .brand small {
        font-size: 0.68rem;
    }

    .proposal-grid,
    .stats-grid,
    .two-columns {
        grid-template-columns: 1fr;
    }

    .filter-form,
    .table-tools,
    .evaluation-actions,
    .bottom-action {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-form .button,
    .evaluation-actions .button,
    .bottom-action .button,
    .form-actions .button {
        width: 100%;
    }

    .score-options {
        gap: 0.3rem;
    }

    .score-option label {
        min-height: 65px;
        padding: 0.25rem;
    }

    .criterion-card,
    .notes-card {
        padding: 1rem;
    }

    .evaluation-actions {
        position: static;
    }

    .criteria-legend ol {
        columns: 1;
    }

    .site-footer {
        display: block;
        width: calc(100% - 1rem);
    }

    .site-footer span {
        display: block;
    }
}

@media print {
    @page {
        size: A4 landscape;
        margin: 12mm;
    }

    html,
    body {
        color: #000;
        background: #fff;
        font-size: 9pt;
    }

    .site-header,
    .site-footer,
    .flash-stack,
    .no-print {
        display: none !important;
    }

    .page-shell {
        width: 100%;
        margin: 0;
        padding: 0;
    }

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

    .report-header {
        min-height: 145mm;
        padding-top: 20mm;
        break-after: page;
    }

    .winner-card,
    .report-status,
    .report-summary-grid,
    .methodology {
        break-inside: avoid;
    }

    .ranking-section {
        break-before: page;
    }

    .criteria-legend {
        break-before: page;
    }

    .detail-section {
        break-before: page;
    }

    .report-detail {
        display: block;
        border: 0;
        break-before: page;
    }

    .report-detail summary {
        padding: 0 0 5mm;
        background: transparent;
        border-bottom: 2px solid #000;
        font-size: 13pt;
        list-style: none;
    }

    .report-detail-content {
        display: block !important;
        padding: 5mm 0 0;
    }

    .report-table th,
    .report-table td {
        padding: 2.5mm;
        font-size: 7.5pt;
    }

    a {
        color: inherit;
        text-decoration: none;
    }
}
