:root {
    --bg: #F5F8F6;
    --card: #FFFFFF;
    --text: #25352E;
    --muted: #56655E;
    --green: #30664F;
    --green-dark: #30664F;
    --gold: #C9A86A;
    --line: #D6E1DB;
    --shadow: none;
    --danger: #9E564F;
    --success: #5F806A;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: inherit;
}

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

code {
    background: rgba(143, 175, 154, 0.16);
    border: 1px solid rgba(143, 175, 154, 0.32);
    border-radius: 6px;
    padding: 0.08rem 0.32rem;
}

.skip-link {
    background: var(--text);
    color: var(--card);
    left: 1rem;
    padding: 0.5rem 0.75rem;
    position: absolute;
    top: -4rem;
    z-index: 20;
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: #FFFFFF;
}

.topbar {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin: 0 auto;
    max-width: var(--max);
    padding: 1rem;
}

.brand {
    align-items: center;
    display: inline-flex;
    gap: 0.75rem;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
}

.brand-logo {
    display: block;
    flex: 0 0 auto;
    height: 3rem;
    object-fit: contain;
    width: 3rem;
}

.nav-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.nav-links a,
.site-footer a,
.quiet-link {
    color: var(--muted);
    text-decoration-color: rgba(111, 98, 88, 0.35);
    text-underline-offset: 0.18em;
}

main {
    min-height: 70vh;
}

.hero {
    border-bottom: 1px solid var(--line);
    min-height: 48vh;
    padding: clamp(3rem, 8vw, 6rem) 1rem clamp(2.5rem, 6vw, 4.5rem);
}

.hero-inner,
.section {
    margin: 0 auto;
    max-width: var(--max);
}

.hero-inner {
    max-width: 780px;
}

.eyebrow {
    color: var(--green-dark);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    line-height: 1.12;
    margin: 0;
}

h1 {
    font-size: 2.75rem;
    max-width: 24ch;
}

h2 {
    font-size: 1.85rem;
}

h3 {
    font-size: 1.25rem;
}

.lead {
    color: var(--muted);
    font-size: 1.35rem;
    margin: 1.2rem 0 0;
    max-width: 680px;
}

.hero-actions,
.admin-actions,
.moderation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.hero-actions {
    margin-top: 2rem;
}

.button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.72rem 1rem;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

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

.button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
}

.button-primary {
    background: var(--green);
    color: #FFFFFF;
}

.button-primary:hover {
    background: #244F3D;
}

.button-muted {
    background: var(--card);
    border-color: var(--line);
    color: var(--text);
}

.button-danger {
    background: #FFF7F5;
    border-color: rgba(158, 86, 79, 0.35);
    color: var(--danger);
}

.section {
    padding: 3rem 1.25rem;
}

.section.narrow {
    max-width: 760px;
}

.section-heading {
    margin-bottom: 1.5rem;
    max-width: 760px;
}

.section-heading p {
    color: var(--muted);
    margin: 0.7rem 0 0;
}

.soft-band {
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    max-width: none;
    padding-left: max(1rem, calc((100vw - var(--max)) / 2 + 1rem));
    padding-right: max(1rem, calc((100vw - var(--max)) / 2 + 1rem));
}

.intention-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.intention-card,
.private-panel,
.stat-card,
.admin-item,
.notice,
.panel-form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.intention-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    padding: 1.1rem;
}

.intention-card p,
.private-panel p,
.admin-item p {
    color: var(--muted);
    margin: 0.65rem 0 0;
}

.meta-list {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: 1fr;
    margin: 0;
}

.meta-list.compact {
    gap: 0.35rem;
}

.meta-list div {
    min-width: 0;
}

.meta-list dt {
    color: var(--green-dark);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
}

.meta-list dd {
    margin: 0;
}

.support-count {
    border-top: 1px solid var(--line);
    color: var(--text);
    font-weight: 700;
    margin: auto 0 0;
    padding-top: 0.9rem;
}

.support-form {
    display: grid;
    gap: 0.45rem;
}

.form-message,
.field-note {
    color: var(--muted);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.88rem;
    margin: 0;
}

.empty-state,
.notice {
    padding: 1rem;
}

.empty-state h3,
.empty-state h1 {
    margin-bottom: 0.45rem;
}

.notice {
    margin: 1rem 0;
}

.notice p,
.notice ul {
    margin-bottom: 0;
    margin-top: 0.35rem;
}

.notice-success,
.flash-success {
    border-color: rgba(95, 128, 106, 0.35);
}

.notice-error,
.flash-error {
    border-color: rgba(158, 86, 79, 0.35);
}

.flash {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 1rem auto 0;
    max-width: var(--max);
    padding: 0.85rem 1rem;
    width: calc(100% - 2rem);
}

.steps {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.steps article {
    border-top: 1px solid var(--line);
    padding: 1.25rem 0;
}

.steps span {
    align-items: center;
    background: rgba(201, 168, 106, 0.24);
    border: 1px solid rgba(201, 168, 106, 0.45);
    border-radius: 8px;
    display: inline-flex;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 800;
    height: 2rem;
    justify-content: center;
    margin-bottom: 0.9rem;
    width: 2rem;
}

.two-column {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

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

.prose h1,
.prose h2,
.prose h3 {
    color: var(--text);
    margin-top: 1.5rem;
}

.prose h1:first-child,
.prose h2:first-child,
.prose h3:first-child {
    margin-top: 0;
}

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

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

.field-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

label,
legend {
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
input[type="date"],
input[type="time"],
textarea,
select,
.copy-field {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    min-height: 2.8rem;
    padding: 0.72rem 0.78rem;
    width: 100%;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus,
button:focus,
a:focus {
    outline: 3px solid rgba(201, 168, 106, 0.45);
    outline-offset: 2px;
}

.hp-field {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 1px;
}

.check-row {
    align-items: flex-start;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: auto 1fr;
}

fieldset {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 1rem;
}

fieldset label {
    font-weight: 400;
}

.copy-field {
    margin: 0;
}

.private-panel {
    padding: 1.2rem;
}

.private-panel h1 {
    font-size: 2rem;
    max-width: none;
}

.copy-row {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.9rem;
}

.copy-status {
    margin-top: 0.45rem;
}

.feedback-panel {
    margin-top: 1.4rem;
}

.feedback-heading {
    margin-bottom: 1rem;
}

.feedback-heading h2 {
    font-size: 1.65rem;
}

.status-pill {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: inline-flex;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    margin: 0 0 1rem;
    padding: 0.35rem 0.55rem;
}

.status-approved {
    border-color: rgba(95, 128, 106, 0.4);
    color: var(--success);
}

.status-rejected,
.status-deleted {
    border-color: rgba(158, 86, 79, 0.35);
    color: var(--danger);
}

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

.stats-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1rem;
}

.stat-card span {
    color: var(--muted);
    display: block;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.88rem;
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    margin-top: 0.45rem;
}

.compact-stats {
    margin-bottom: 2rem;
}

.feedback-quote {
    border-left: 3px solid var(--gold);
    color: var(--text);
    margin: 1rem 0 0;
    padding-left: 0.9rem;
}

.status-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.status-tabs a {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    flex: 0 0 auto;
    padding: 0.45rem 0.7rem;
    text-decoration: none;
}

.status-tabs a.active {
    background: rgba(143, 175, 154, 0.2);
    border-color: rgba(143, 175, 154, 0.55);
}

.admin-list {
    display: grid;
    gap: 1rem;
}

.admin-item {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.moderation-actions {
    align-content: start;
}

.admin-item > .button { align-self: start; }

.moderation-actions form {
    margin: 0;
}

.site-footer {
    align-items: flex-start;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin: 0 auto;
    max-width: var(--max);
    padding: 2rem 1rem;
}

.site-footer p {
    color: var(--muted);
    margin: 0.2rem 0 0;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (min-width: 720px) {
    .topbar {
        padding: 1.2rem 1rem;
    }

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

    .two-column {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    }

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

    .copy-row {
        align-items: center;
        grid-template-columns: minmax(0, 1fr) auto;
    }

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

@media (max-width: 560px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    body {
        font-size: 16px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand {
        font-size: 1.12rem;
    }

    .brand-logo {
        height: 2.75rem;
        width: 2.75rem;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .button {
        width: 100%;
    }

    .hero-actions .button,
    .admin-actions .button,
    .moderation-actions .button {
        width: auto;
    }
}

.nav-links { font-size: 0.9rem; }
.nav-links .nav-submit { color: var(--green-dark); font-weight: 700; }
.home-intro { padding-top: 3.5rem; padding-bottom: 2.5rem; }
.intro-heading { max-width: 820px; }
.home-intro h1 { font-size: 3rem; max-width: none; }
.home-intro .lead { color: var(--text); max-width: 700px; }
.intro-copy { max-width: 690px; color: var(--muted); }
.home-intro .hero-actions { align-items: center; gap: 1.5rem; margin-top: 1.5rem; }
.intro-note { font-size: 0.82rem; color: var(--muted); margin-top: 1.25rem; }
.home-intro + .section { padding-top: 1.5rem; }
.empty-state { background: #EDF1F6; border-left: 3px solid #677C97; padding: 1.75rem; }
.empty-state p { color: #4E6075; max-width: 670px; }
.empty-state .button { margin-top: 0.5rem; }
.section.narrow > .section-heading { max-width: none; }
.panel-form { padding: 1.5rem; }
.check-row { font-size: 0.92rem; }
.check-row input { height: 1.1rem; width: 1.1rem; margin-top: 0.2rem; accent-color: var(--green); }
.faq-section { max-width: 900px; }
.faq-section details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.faq-section summary { cursor: pointer; font-weight: 650; padding-right: 0.5rem; }
.faq-section details p { color: var(--muted); max-width: 720px; }
.care-note { font-size: 0.85rem; color: var(--muted); margin-top: 2rem; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.page-admin h1 { font-size: 2rem; max-width: none; }
.page-admin h2 { font-size: 1.4rem; }
.page-admin main { background: #FAFBFA; }
.page-admin .section { padding-top: 2rem; }
.page-admin .stat-card strong { font-variant-numeric: tabular-nums; }
.page-admin .stat-card { border-top: 3px solid #879783; }
.page-admin .stat-card:nth-child(2n) { border-top-color: #7C7292; }
.settings-actions { margin: 1rem 0 1.5rem; }
.settings-password { margin-top: 3rem; }
.settings-password h2, .page-admin h2 + .panel-form { margin-top: 1rem; }
.table-wrap { overflow-x: auto; margin-top: 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
caption { font-size: 1.15rem; font-weight: 700; text-align: left; margin-bottom: 0.75rem; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: 0.7rem; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
td small { display: block; color: var(--muted); }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; align-items: start; }
.text-warning { color: #8A422F; }
@media (max-width: 560px) {
    .home-intro { padding-top: 2rem; padding-bottom: 1.5rem; }
    .home-intro h1 { font-size: 2.25rem; }
    .lead { font-size: 1.2rem; }
    .home-intro .hero-actions { gap: 1rem; }
    .section { padding: 2rem 1rem; }
    .panel-form, .empty-state { padding: 1.1rem; }
    .report-grid { grid-template-columns: 1fr; }
    .page-admin h1 { font-size: 1.7rem; }
    .nav-links { gap: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
