@font-face {
    font-family: "Mahoor";
    src: url("../fonts/Mahoor/Mahoor-FD-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Mahoor";
    src: url("../fonts/Mahoor/Mahoor-FD-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #ffffff;
    --bg-soft: #f5f5f3;
    --paper: #ffffff;
    --paper-strong: #ffffff;
    --ink: #111111;
    --muted: #5d5d5d;
    --line: rgba(17, 17, 17, 0.14);
    --accent: #8d1d1d;
    --accent-deep: #5f1111;
    --accent-soft: rgba(141, 29, 29, 0.06);
    --gold: #8d7342;
    --gold-soft: #d8ccb0;
    --olive: #273128;
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.05);
    --radius-xl: 0;
    --radius-lg: 0;
    --radius-md: 0;
    --radius-sm: 0;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Mahoor", sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(17,17,17,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17,17,17,0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.75;
}

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

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

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

.page-shell {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0 34px;
}

.site-header {
    position: sticky;
    top: 14px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand__mark {
    width: 64px;
    height: 64px;
    border-radius: 0;
    display: grid;
    place-items: center;
    border: none;
    background: #fff;
    overflow: hidden;
    font-weight: 700;
    color: var(--accent-deep);
}

.brand__mark img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.brand__copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.brand__copy strong {
    font-size: 1.08rem;
}

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

.header-actions,
.hero__actions,
.participation__actions,
.admin-inline-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--accent-deep);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.eyebrow::before,
.section-kicker::before {
    content: "";
    width: 12px;
    height: 2px;
    border-radius: 0;
    background: var(--accent);
}

.primary-button,
.secondary-button,
.ghost-button {
    appearance: none;
    border: 0;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    padding: 13px 22px;
    border-radius: 0;
    background: var(--ink);
    color: #fff;
    box-shadow: none;
    border: 1px solid var(--ink);
}

.secondary-button,
.ghost-button {
    padding: 13px 22px;
    border-radius: 0;
    background: #fff;
    color: var(--ink);
    border: 1px solid rgba(17, 17, 17, 0.18);
}

.ghost-button--danger {
    color: #b44a31;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
    transform: translateY(-1px);
}

.primary-button--wide {
    width: 100%;
    justify-content: center;
}

.hero {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 24px;
    align-items: stretch;
    min-height: calc(100vh - 132px);
    padding: 32px 0 18px;
}

.hero--single {
    grid-template-columns: 1fr;
    min-height: auto;
}

.hero__content h1 {
    margin: 16px 0 14px;
    max-width: 720px;
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-wrap: balance;
    position: relative;
}

.hero__content h1::after {
    content: "";
    display: block;
    width: 132px;
    height: 5px;
    margin-top: 18px;
    background: var(--accent);
}

.hero__lead {
    margin: 0 0 18px;
    max-width: 670px;
    font-size: 1.08rem;
    line-height: 1.9;
    color: var(--muted);
}

.hero__stats,
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.hero__stats article,
.admin-stats-grid article {
    padding: 16px 16px 14px;
    border-radius: 0;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.1);
    backdrop-filter: none;
    box-shadow: none;
}

.hero__stats strong,
.admin-stats-grid strong {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.hero__stats span,
.admin-stats-grid span {
    color: var(--muted);
}

.hero__poster {
    position: relative;
    display: flex;
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: 26px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: #fff;
}

.hero__main,
.hero__footer {
    display: grid;
    gap: 18px;
}

.poster-frame {
    position: relative;
    min-height: 100%;
    width: 100%;
    padding: 26px;
    border-radius: var(--radius-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr 1fr;
    gap: 14px;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.14);
    box-shadow: none;
    overflow: hidden;
}

.poster-frame::before,
.poster-frame::after {
    content: none;
}

.poster-frame__badge {
    display: inline-flex;
    padding: 0 0 10px;
    border-radius: 0;
    background: transparent;
    color: var(--accent-deep);
    font-size: 0.95rem;
    border: 0;
    border-bottom: 2px solid var(--accent);
    grid-column: 1 / -1;
}

.poster-frame__glow {
    display: none;
}

.quote-card {
    position: relative;
    width: 100%;
    padding: 18px 18px 16px;
    border-radius: 0;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.14);
    box-shadow: none;
    backdrop-filter: none;
    animation: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-card span {
    display: inline-block;
    margin-bottom: 12px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--accent-deep);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.quote-card p {
    margin: 0;
    line-height: 1.75;
    color: var(--ink);
}

.quote-card--0,
.quote-card--1,
.quote-card--2,
.quote-card--3 {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
}

.quote-card--0 { border-top: 4px solid var(--accent); }
.quote-card--1 { border-top: 4px solid var(--ink); }
.quote-card--2 { border-top: 4px solid var(--gold); }
.quote-card--3 { border-top: 4px solid var(--olive); }

.participation,
.admin-panel,
.installer-card,
.admin-login-card {
    border-radius: 0;
    background: var(--paper);
    border: 1px solid rgba(17, 17, 17, 0.1);
    box-shadow: var(--shadow);
    backdrop-filter: none;
}

.participation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px 28px;
    align-items: end;
    padding: 24px 28px;
    margin: 22px 0 24px;
    position: relative;
    overflow: hidden;
    border-color: rgba(17, 17, 17, 0.14);
    background:
        linear-gradient(180deg, rgba(141, 29, 29, 0.04), rgba(141, 29, 29, 0)),
        #fff;
}

.participation::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #111);
}

.participation__content {
    display: grid;
    gap: 8px;
    align-content: center;
    max-width: none;
}

.participation__content .section-kicker {
    margin-bottom: 2px;
}

.participation__content h2 {
    max-width: none;
    line-height: 1.18;
    font-size: clamp(1.8rem, 2.5vw, 2.25rem);
    position: relative;
    padding-bottom: 14px;
    text-wrap: pretty;
}

.participation__content h2::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 72px;
    height: 3px;
    background: var(--accent);
}

.participation__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: center;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.participation__actions .primary-button,
.participation__actions .secondary-button {
    width: auto;
    min-width: 168px;
    justify-content: center;
}

.participation p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.95;
}
.participation h2,
.section-heading h2,
.admin-topbar h1,
.admin-login-card h1,
.installer-card h1 {
    font-size: 1.85rem;
    margin: 0;
}

.statement {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: stretch;
    height: min(74vh, 860px);
    margin: 18px 0 22px;
    padding: 18px;
    border-radius: 0;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.14);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.statement__rail {
    position: relative;
    min-height: 0;
    padding: 22px;
    border-radius: 0;
    background: #f7f7f5;
    border: 1px solid rgba(17, 17, 17, 0.12);
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 22px;
}

.statement__rail-head span {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 0;
}

.statement__nav {
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 0;
    overflow-y: auto;
    padding-left: 8px;
    padding-bottom: 18px;
}

.statement__nav-link {
    display: block;
    padding: 13px 14px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.statement__nav-snippet {
    display: -webkit-box;
    overflow: hidden;
    color: #2f2a24;
    font-size: 0.98rem;
    line-height: 1.9;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.statement__nav-link:hover {
    transform: translateY(-1px);
    border-color: rgba(17, 17, 17, 0.2);
}

.statement__nav-link.is-active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.statement__nav-link.is-active .statement__nav-snippet {
    color: #fff;
}

.statement__body {
    display: grid;
    gap: 22px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: auto;
    padding-left: 10px;
    padding-right: 4px;
    padding-bottom: 18px;
    min-height: 0;
    align-content: start;
}

.statement__nav::-webkit-scrollbar {
    width: 8px;
}

.statement__nav::-webkit-scrollbar-track {
    background: rgba(120, 98, 60, 0.08);
    border-radius: 999px;
}

.statement__nav::-webkit-scrollbar-thumb {
    background: rgba(17, 17, 17, 0.22);
    border-radius: 999px;
}

.statement__body::-webkit-scrollbar {
    width: 10px;
}

.statement__body::-webkit-scrollbar-track {
    background: rgba(120, 98, 60, 0.08);
    border-radius: 999px;
}

.statement__body::-webkit-scrollbar-thumb {
    background: #b8b8b8;
    border-radius: 999px;
}

.statement__invocation {
    display: grid;
    place-items: center;
    padding: 18px 22px 10px;
    color: var(--accent-deep);
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.statement-card,
.signature-card,
.admin-signature-card,
.repeater-card {
    padding: 22px;
    border-radius: 0;
    background: var(--paper-strong);
    border: 1px solid rgba(17, 17, 17, 0.12);
    box-shadow: none;
}

.statement-card {
    position: relative;
    display: block;
    padding-top: 26px;
    text-align: justify;
}

.statement-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 22px;
    width: 68px;
    height: 4px;
    background: var(--accent);
}

.statement-card p,
.statement-card blockquote {
    margin: 0;
    line-height: 1.98;
}

.statement-card p {
    color: #302a22;
}

.statement-card blockquote {
    margin-top: 14px;
    padding: 16px 18px;
    border-right: 4px solid var(--accent);
    border-radius: 0;
    background: #f7f7f5;
    color: var(--accent-deep);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 16px;
}

.section-heading p {
    margin: 0;
    max-width: 440px;
    color: var(--muted);
    line-height: 1.9;
}

.signatures {
    margin-top: 20px;
}

.signatures__shell {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(17, 17, 17, 0.14);
    background: #fff;
    box-shadow: var(--shadow);
}

.signatures__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
    padding: 24px 24px 20px;
    border: 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.12);
    background:
        linear-gradient(180deg, rgba(141, 29, 29, 0.04), rgba(141, 29, 29, 0)),
        #fff;
    box-shadow: inset 0 4px 0 var(--accent);
}

.signatures__hero-copy {
    display: grid;
    align-content: center;
    gap: 8px;
}

.signatures__hero-copy h2 {
    margin: 0;
    max-width: 18ch;
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    line-height: 1.22;
}

.section-heading--stack {
    align-items: start;
    margin-bottom: 0;
}

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

.signatures__stats article {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 0;
    padding: 12px 16px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: #fcfcfb;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.signatures__stats article::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--accent);
}

.signatures__stats article:last-child::before {
    background: var(--ink);
}

.signatures__stats strong {
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    line-height: 1;
    color: var(--accent-deep);
    letter-spacing: -0.04em;
}

.signatures__stats span {
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.95rem;
}

.signatures__list-shell {
    display: grid;
    gap: 0;
    border: 2px solid rgba(17, 17, 17, 0.14);
    background: #fff;
    box-shadow: var(--shadow);
}

.signatures__list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
    background: #fbfbfa;
}

.signatures__list-head strong {
    font-size: 1.15rem;
}

.signatures__list-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 116px;
    padding: 8px 14px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: #fff;
    color: var(--accent-deep);
    font-weight: 700;
}

.signatures__list-scroll {
    max-height: 500px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: auto;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(17, 17, 17, 0.02), rgba(17, 17, 17, 0)),
        #fff;
}

.signatures__list-scroll::-webkit-scrollbar {
    width: 10px;
}

.signatures__list-scroll::-webkit-scrollbar-track {
    background: rgba(17, 17, 17, 0.05);
}

.signatures__list-scroll::-webkit-scrollbar-thumb {
    background: rgba(17, 17, 17, 0.24);
}

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

.signature-card {
    min-height: 146px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: start;
    position: relative;
    background: #fff;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.signature-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--accent);
}

.signature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(17, 17, 17, 0.2);
}

.signature-card strong,
.admin-signature-card strong {
    font-size: 1.2rem;
}

.signature-card span,
.admin-signature-card p,
.admin-signature-card small,
.admin-signature-meta,
.admin-empty {
    color: var(--muted);
    line-height: 1.9;
}

.signature-card--empty {
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #f7f7f5;
}

.signature-card__badge {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: #111;
    color: #fff !important;
    font-weight: 700;
}

.mobile-sticky-actions {
    display: none;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 20px 0 8px;
    color: var(--muted);
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 50;
}

.modal.is-open {
    display: grid;
    place-items: center;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 29, 34, 0.48);
    backdrop-filter: blur(12px);
}

.modal__dialog {
    position: relative;
    width: min(760px, calc(100% - 28px));
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 28px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(17, 17, 17, 0.12);
}

.modal__close {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 42px;
    height: 42px;
    border-radius: 0;
    border: 0;
    cursor: pointer;
    background: rgba(17, 17, 17, 0.06);
}

.modal__header h3 {
    margin: 10px 0 12px;
    font-size: 1.9rem;
}

.modal__header p {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.9;
}

.signature-form,
.admin-form-stack {
    display: grid;
    gap: 22px;
}

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

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

.field,
.checkbox-field {
    display: grid;
    gap: 10px;
}

.field span {
    font-size: 0.96rem;
    color: var(--ink);
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 0;
    border: 1px solid rgba(17, 17, 17, 0.14);
    background: #fff;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: rgba(141, 29, 29, 0.42);
    box-shadow: 0 0 0 3px rgba(141, 29, 29, 0.08);
}

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

.otp-panel {
    padding: 18px;
    border-radius: 0;
    background: #f7f7f5;
    border: 1px solid rgba(17, 17, 17, 0.1);
}

.otp-panel__note,
.form-message {
    color: var(--muted);
    line-height: 1.85;
}

.otp-panel__countdown {
    margin: 10px 0 0;
    color: var(--accent-deep);
    line-height: 1.8;
    font-weight: 700;
}

.form-message {
    padding: 14px 16px;
    border-radius: 0;
    background: rgba(17, 17, 17, 0.05);
}

.form-message.is-error,
.admin-alert--error {
    background: rgba(180, 74, 49, 0.12);
    color: #8a3e2b;
}

.form-message.is-success,
.admin-alert--success {
    background: rgba(15, 157, 138, 0.12);
    color: var(--accent-deep);
}

.admin-body,
.admin-login-body {
    min-height: 100vh;
}

.admin-shell {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 22px;
    width: min(1380px, calc(100% - 32px));
    margin: 22px auto;
}

.admin-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
    padding: 24px;
    border-radius: 0;
    background: #fff;
    border: 1px solid rgba(17,17,17,0.1);
    box-shadow: var(--shadow);
}

.admin-brand {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.admin-nav,
.admin-sidebar__footer {
    display: grid;
    gap: 10px;
}

.admin-nav a,
.admin-sidebar__footer a {
    padding: 14px 16px;
    border-radius: 0;
    color: var(--muted);
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.08);
}

.admin-nav a.is-active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.admin-main {
    display: grid;
    gap: 20px;
    padding-bottom: 40px;
}

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

.admin-panel--metric {
    display: grid;
    gap: 10px;
    align-content: start;
}

.admin-panel--metric strong {
    font-size: 2rem;
    line-height: 1;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    padding: 18px 6px 0;
}

.admin-user-chip {
    padding: 12px 16px;
    border-radius: 0;
    background: #fff;
    border: 1px solid rgba(17,17,17,0.12);
}

.admin-alert {
    padding: 16px 18px;
    border-radius: 0;
}

.admin-signature-list,
.repeater-list {
    display: grid;
    gap: 16px;
}

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

.admin-data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.admin-data-table th,
.admin-data-table td {
    padding: 14px 12px;
    text-align: right;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.admin-data-table th {
    font-weight: 700;
    color: var(--ink);
    background: #fafaf8;
}

.admin-ranking-list {
    display: grid;
    gap: 10px;
}

.admin-ranking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    background: #fbfbfa;
}

.admin-ranking-item span {
    color: var(--muted);
    white-space: nowrap;
}

.admin-signature-card {
    display: grid;
    gap: 14px;
}

.admin-signature-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 220px 180px auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 16px;
}

.admin-signature-summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    color: var(--muted);
}

.admin-signature-card--full {
    grid-template-columns: 1fr;
}

.admin-signature-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.admin-inline-details {
    width: 100%;
}

.admin-inline-details summary {
    list-style: none;
}

.admin-inline-details summary::-webkit-details-marker {
    display: none;
}

.admin-signature-edit-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.admin-pagination a {
    display: inline-flex;
    min-width: 40px;
    justify-content: center;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(17, 17, 17, 0.14);
    background: #fff;
    color: var(--ink);
}

.admin-pagination a.is-active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.admin-upload-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(220px, 100%);
    min-height: 120px;
    padding: 14px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: #fafaf8;
}

.admin-upload-preview img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}

.checkbox-field {
    align-content: center;
    justify-items: start;
    padding-top: 12px;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
}

.repeater-card {
    display: grid;
    gap: 14px;
}

.admin-login-card,
.installer-card {
    width: min(920px, calc(100% - 28px));
    margin: 42px auto;
    padding: 32px;
}

.admin-login-card {
    max-width: 540px;
}

.admin-login-card p,
.installer-card p {
    color: var(--muted);
    line-height: 1.9;
}

@media print {
    .site-header,
    .hero__actions,
    .participation,
    .site-footer,
    .modal {
        display: none !important;
    }

    body,
    .page-shell {
        background: #fff;
        width: 100%;
        padding: 0;
    }
}

@media (max-width: 1100px) {
    .hero,
    .statement,
    .admin-shell,
    .participation {
        grid-template-columns: 1fr;
    }

    .statement__rail,
    .admin-sidebar {
        position: static;
    }

    .statement {
        height: auto;
        overflow: visible;
    }

    .statement__body {
        overflow: visible;
        padding-left: 0;
        padding-right: 0;
    }

    .admin-analytics-grid,
    .admin-split-grid {
        grid-template-columns: 1fr;
    }

    .admin-signature-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .participation__content h2 {
        max-width: none;
    }

    .participation__actions {
        justify-self: start;
        justify-content: start;
    }

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

    .signatures__list-scroll {
        max-height: 440px;
    }

    .signatures__hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .signatures__stats {
        justify-content: start;
    }
}

@media (max-width: 720px) {
    .page-shell,
    .admin-shell {
        width: min(100% - 18px, 100%);
    }

    .site-footer,
    .section-heading,
    .admin-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .site-header {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        top: 0;
        padding: 12px;
    }

    .brand {
        gap: 12px;
    }

    .brand__mark {
        width: 52px;
        height: 52px;
    }

    .brand__copy strong {
        font-size: 1rem;
    }

    .brand__copy small {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .admin-signature-toolbar,
    .admin-signature-summary {
        grid-template-columns: 1fr;
        display: grid;
    }

    .hero {
        min-height: auto;
        padding-top: 18px;
    }

    .participation {
        padding: 22px 18px;
        gap: 18px;
    }

    .participation__actions {
        display: grid;
        justify-self: stretch;
    }

    .participation__actions .primary-button,
    .participation__actions .secondary-button {
        width: 100%;
        min-width: 0;
    }

    .hero__content h1 {
        font-size: 2.5rem;
    }

    .poster-frame {
        min-height: auto;
        padding: 18px;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .quote-card {
        width: 100%;
        margin-top: 0;
    }

    .hero__stats,
    .signature-grid,
    .form-grid,
    .admin-grid,
    .admin-grid--tight,
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .signatures__stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-content: stretch;
    }

    .statement {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        height: 90svh;
        max-height: 960px;
        overflow: hidden;
        padding: 12px;
    }

    .statement__rail {
        position: relative;
        padding: 14px 14px 12px;
        gap: 12px;
        grid-template-rows: auto auto;
        background:
            linear-gradient(180deg, rgba(141, 29, 29, 0.05), rgba(141, 29, 29, 0)),
            #f8f8f6;
    }

    .statement__rail::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 10px;
        left: 0;
        height: 1px;
        background: linear-gradient(90deg, rgba(17, 17, 17, 0), rgba(17, 17, 17, 0.08), rgba(17, 17, 17, 0));
        pointer-events: none;
    }

    .statement__nav {
        display: flex;
        gap: 8px;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        padding: 0 14px 4px 0;
        margin-right: -2px;
        mask-image: linear-gradient(to left, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
    }

    .statement__nav::-webkit-scrollbar {
        display: none;
    }

    .statement__body {
        overflow-y: auto;
        min-height: 0;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 6px;
    }

    .statement__rail-head span {
        font-size: 1.12rem;
        color: var(--accent-deep);
    }

    .statement__nav-link {
        flex: 0 0 68%;
        min-width: 172px;
        max-width: 220px;
        padding: 10px 12px;
        scroll-snap-align: start;
        background: #fff;
        border-color: rgba(17, 17, 17, 0.08);
        box-shadow: 0 6px 14px rgba(17, 17, 17, 0.04);
        transform: translateY(0);
    }

    .statement__nav-link::after {
        content: "";
        display: block;
        width: 24px;
        height: 2px;
        margin-top: 8px;
        background: rgba(17, 17, 17, 0.12);
        transition: width 0.22s ease, background 0.22s ease;
    }

    .statement__nav-snippet {
        display: block;
        font-size: 0.88rem;
        line-height: 1.45;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        -webkit-line-clamp: unset;
        -webkit-box-orient: initial;
        color: #26211b;
    }

    .statement__nav-link.is-active {
        background: #111;
        border-color: #111;
        box-shadow: 0 14px 28px rgba(17, 17, 17, 0.16);
        transform: translateY(-1px);
    }

    .statement__nav-link.is-active::after {
        width: 40px;
        background: rgba(255, 255, 255, 0.42);
    }

    .signatures__list-shell {
        border-width: 2px;
    }

    .signatures__list-head {
        flex-direction: column;
        align-items: stretch;
    }

    .signatures__list-scroll {
        max-height: 360px;
        padding: 14px;
    }

    .signatures__hero {
        padding: 18px;
    }

    .signatures__hero-copy h2 {
        max-width: none;
        font-size: 1.8rem;
    }

    .signatures__stats article {
        min-height: 0;
        white-space: normal;
    }

    .mobile-sticky-actions {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 45;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid rgba(17, 17, 17, 0.12);
        box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.06);
    }

    .mobile-sticky-actions .ghost-button,
    .mobile-sticky-actions .primary-button {
        width: 100%;
        text-align: center;
        padding-right: 12px;
        padding-left: 12px;
    }

    body {
        padding-bottom: 92px;
    }
}
