:root {
    --paper: #f6f1e7;
    --paper-strong: #fffaf0;
    --ink: #182116;
    --muted: #5b655d;
    --line: #ddd2bb;
    --green: #204f39;
    --green-soft: #dcebdd;
    --gold: #b3842b;
    --gold-soft: #f0e2b8;
    --red: #9f463b;
    --red-soft: #f7d8d2;
    --panel-shadow: 0 18px 40px rgba(37, 28, 11, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(179, 132, 43, 0.18), transparent 28%),
        linear-gradient(135deg, #efe7d7 0%, #f8f4eb 35%, #efe8da 100%);
}

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

.shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    padding: 32px 24px;
    background: linear-gradient(180deg, #173021 0%, #1f4a35 100%);
    color: #f5f0e6;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.brand h1 {
    margin: 0;
    font-size: 1.35rem;
    font-family: Georgia, "Times New Roman", serif;
}

.brand-kicker,
.eyebrow {
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
    color: var(--gold);
}

.brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #b3842b 0%, #e7c97c 100%);
    color: #2d2410;
    font-weight: 800;
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff8ec;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.mobile-menu-toggle::before {
    content: "+";
    margin-right: 8px;
    font-size: 1.05rem;
    line-height: 1;
}

.mobile-menu-toggle[aria-expanded="true"]::before {
    content: "-";
}

.sidebar-copy {
    color: rgba(245, 240, 230, 0.78);
    line-height: 1.6;
}

.nav-links {
    margin: 28px 0;
    display: grid;
    gap: 10px;
}

.nav-links a {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.04);
}

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

.nav-links a.accent {
    border-color: rgba(231, 201, 124, 0.5);
    background: rgba(231, 201, 124, 0.12);
}

.nav-group {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.nav-group summary {
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 800;
    list-style: none;
}

.nav-group summary::-webkit-details-marker {
    display: none;
}

.nav-group summary::after {
    content: "+";
    float: right;
    color: rgba(245, 240, 230, 0.74);
}

.nav-group[open] summary::after {
    content: "-";
}

.nav-submenu {
    display: grid;
    gap: 8px;
    padding: 0 10px 12px;
}

.nav-submenu a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-note {
    margin-top: 32px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-note p {
    margin-top: 0;
    color: rgba(245, 240, 230, 0.84);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
}

.content {
    padding: 28px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.topbar h2,
.hero h3,
.panel h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
}

.page-copy,
.hero-copy,
.muted,
.cell-copy {
    color: var(--muted);
    line-height: 1.6;
}

.page-stack {
    display: grid;
    gap: 22px;
}

.page-stack > * {
    min-width: 0;
}

.topbar-actions,
.action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.login-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.58);
    color: var(--muted);
    font-weight: 800;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--paper-strong);
    font-weight: 600;
}

.button.primary {
    color: #f7f3e8;
    border-color: transparent;
    background: linear-gradient(135deg, #204f39 0%, #2f7252 100%);
}

.button.ghost {
    background: rgba(255, 255, 255, 0.5);
}

.button.danger {
    color: #fff8ec;
    border-color: transparent;
    background: linear-gradient(135deg, #9f463b 0%, #c85b4e 100%);
}

.button.disabled,
.button.disabled:hover,
.button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    background: var(--paper-strong);
    color: var(--muted);
    border-color: var(--line);
}

.ai-help-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
}

.ai-help-toggle {
    min-width: 112px;
    padding: 13px 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #204f39 0%, #b3842b 100%);
    color: #fff8ec;
    font-weight: 900;
    box-shadow: 0 18px 38px rgba(24, 33, 22, 0.24);
    cursor: pointer;
}

.ai-help-panel {
    position: absolute;
    right: 0;
    bottom: 58px;
    width: min(420px, calc(100vw - 32px));
    border: 1px solid rgba(221, 210, 187, 0.96);
    border-radius: 20px;
    background: rgba(255, 250, 240, 0.98);
    box-shadow: 0 24px 60px rgba(24, 33, 22, 0.2);
    overflow: hidden;
}

.ai-help-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(221, 210, 187, 0.9);
}

.ai-help-header h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
}

.ai-help-messages {
    max-height: 330px;
    overflow-y: auto;
    padding: 16px;
    display: grid;
    gap: 10px;
}

.ai-message {
    padding: 11px 12px;
    border-radius: 14px;
    line-height: 1.5;
    font-size: 0.94rem;
}

.ai-message.assistant {
    background: rgba(32, 79, 57, 0.09);
    color: var(--ink);
}

.ai-message.user {
    margin-left: 38px;
    background: var(--green);
    color: #fff8ec;
}

.ai-help-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid rgba(221, 210, 187, 0.9);
    background: rgba(246, 241, 231, 0.72);
}

.ai-help-form input {
    width: 100%;
}

.flash {
    padding: 16px 18px;
    border-radius: 18px;
    margin-bottom: 18px;
}

.flash.success {
    background: var(--green-soft);
    border: 1px solid rgba(32, 79, 57, 0.14);
}

.flash.danger {
    background: var(--red-soft);
    border: 1px solid rgba(159, 70, 59, 0.16);
}

.plain-list {
    margin-bottom: 0;
}

.hero,
.panel,
.metric {
    border: 1px solid rgba(221, 210, 187, 0.9);
    background: rgba(255, 251, 242, 0.92);
    box-shadow: var(--panel-shadow);
}

.hero {
    padding: 28px;
    border-radius: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
    background:
        linear-gradient(135deg, rgba(179, 132, 43, 0.1) 0%, rgba(255, 251, 242, 0.96) 32%),
        rgba(255, 251, 242, 0.96);
}

.hero-card {
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(32, 79, 57, 0.9) 0%, rgba(21, 45, 31, 0.98) 100%);
    color: #f4efe4;
    display: grid;
    gap: 8px;
    align-content: start;
}

.hero-card p,
.hero-card span {
    margin: 0;
    color: rgba(244, 239, 228, 0.82);
}

.hero-card strong {
    font-size: 2rem;
    line-height: 1.1;
}

.resident-hero {
    grid-template-columns: minmax(0, 1fr) minmax(500px, 0.9fr);
}

.resident-hero-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.resident-hero-cards .hero-card {
    min-height: 170px;
}

.resident-identity {
    display: flex;
    align-items: center;
    gap: 20px;
}

.photo-frame {
    width: 112px;
    height: 136px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    color: var(--green);
    font-size: 2rem;
    font-weight: 800;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.metrics-grid,
.panel-grid {
    display: grid;
    gap: 18px;
    min-width: 0;
}

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

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

.hero,
.panel,
.metric {
    min-width: 0;
    max-width: 100%;
}

.metric {
    padding: 22px;
    border-radius: 24px;
}

.metric p,
.metric span {
    margin: 0;
}

.metric strong {
    display: block;
    margin: 12px 0 8px;
    font-size: 2rem;
    font-family: Georgia, "Times New Roman", serif;
}

.panel {
    border-radius: 24px;
    padding: 22px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.wrap-header {
    flex-wrap: wrap;
}

.table-wrap {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
}

table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(221, 210, 187, 0.95);
    text-align: left;
    vertical-align: top;
}

th {
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.stack-list,
.stack-sections,
.form-stack {
    display: grid;
    gap: 18px;
}

.list-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.58);
}

.list-card p,
.list-stats span {
    margin: 0;
    color: var(--muted);
}

.list-stats {
    display: grid;
    gap: 5px;
    justify-items: end;
}

.definition-list {
    display: grid;
    gap: 16px;
}

.definition-list div {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid var(--line);
}

.definition-list strong {
    display: block;
    margin-bottom: 6px;
}

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

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

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

.inline-form,
.form-grid {
    display: grid;
    gap: 14px;
}

.inline-form {
    grid-template-columns: minmax(260px, 360px) auto;
    align-items: end;
}

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

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

.form-grid label,
.inline-form {
    font-size: 0.94rem;
}

.form-grid label span,
.inline-form span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink);
    font: inherit;
    min-width: 0;
}

textarea {
    resize: vertical;
}

.check-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.check-row input {
    width: auto;
}

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

.subsection {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(221, 210, 187, 0.9);
}

.subsection h4 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1rem;
}

.center {
    text-align: center;
}

.status {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
}

.status.good {
    background: var(--green-soft);
    color: var(--green);
}

.status.muted-status {
    background: rgba(91, 101, 93, 0.12);
    color: var(--muted);
}

.actions-cell {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admission-slip {
    display: grid;
    gap: 26px;
    padding: 12px 0;
}

.slip-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 18px;
}

.slip-heading p,
.slip-heading h2 {
    margin: 0 0 8px;
}

.slip-heading h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
}

.slip-photo {
    width: 130px;
    height: 150px;
}

.slip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line);
}

.slip-grid div {
    min-height: 74px;
    padding: 14px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.slip-grid span,
.signature-row span {
    display: block;
    color: var(--muted);
    font-size: 0.86rem;
    margin-bottom: 8px;
}

.slip-grid strong {
    font-size: 1rem;
}

.signature-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    margin-top: 36px;
}

.signature-row div {
    border-top: 1px solid var(--ink);
    padding-top: 10px;
}

@media print {
    body {
        background: #fff;
    }

    table {
        min-width: 0;
    }

    .sidebar,
    .topbar,
    .print-hide {
        display: none !important;
    }

    .shell {
        display: block;
        min-height: auto;
    }

    .content {
        padding: 0;
    }

    .panel {
        box-shadow: none;
        border: 0;
        border-radius: 0;
    }

    .print-panel {
        padding: 0;
    }

    .notice-print-panel {
        padding: 0;
    }

    .notice-statement-table {
        min-width: 0;
    }

    .notice-statement-table th,
    .notice-statement-table td {
        border: 1px solid #111;
        padding: 5px 6px;
        color: #111;
        font-size: 10px;
    }

    .notice-statement-table th {
        background: #ffff66 !important;
        text-transform: none;
        letter-spacing: 0;
    }
}

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

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

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

@media (max-width: 980px) {
    .shell {
        display: block;
    }

    .sidebar {
        position: sticky;
        top: 0;
        z-index: 45;
        padding: 12px 16px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 16px 34px rgba(24, 33, 22, 0.18);
    }

    .brand {
        margin-bottom: 0;
    }

    .brand h1 {
        font-size: 1.05rem;
    }

    .brand-kicker {
        display: none;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .sidebar-copy,
    .sidebar-note,
    .nav-links {
        display: none;
    }

    .sidebar.is-open .nav-links {
        display: grid;
        max-height: calc(100vh - 76px);
        overflow-y: auto;
        margin: 14px 0 0;
        padding: 2px 2px 10px;
    }

    .sidebar.is-open .nav-links a,
    .sidebar.is-open .nav-group summary {
        min-height: 44px;
    }

    .topbar,
    .hero,
    .panel-grid,
    .compact-definitions,
    .profile-summary-grid,
    .export-grid,
    .inline-form,
    .mini-summary-grid {
        grid-template-columns: 1fr;
    }

    .topbar,
    .panel-header {
        flex-direction: column;
    }

    .topbar-actions,
    .action-row,
    .pager-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .topbar-actions .button,
    .topbar-actions .inline-delete-form,
    .topbar-actions .inline-delete-form .button {
        width: 100%;
    }

    .student-portal-topbar {
        flex-direction: column;
    }

    .student-portal-hero,
    .resident-hero,
    .resident-hero-cards,
    .section-card-grid,
    .student-notice-card,
    .communication-channel-grid,
    .delivery-link-list div {
        grid-template-columns: 1fr;
    }

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

    .account-total-strip {
        justify-content: flex-start;
    }

    .student-picker-controls {
        grid-template-columns: 1fr;
    }

    .pager-strip,
    .pagination-wrap {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .content,
    .sidebar,
    .student-portal-shell {
        padding: 16px;
    }

    .metrics-grid,
    .form-grid,
    .form-grid.compact,
    .permission-grid,
    .editable-row-grid,
    .receipt-row-grid,
    .deposit-row-grid,
    .charge-row-grid {
        grid-template-columns: 1fr;
    }

    .content {
        padding-top: 18px;
    }

    .hero,
    .panel,
    .metric {
        border-radius: 18px;
        padding: 16px;
    }

    .hero {
        gap: 14px;
    }

    .hero-card,
    .student-balance-card {
        border-radius: 16px;
        padding: 16px;
    }

    .hero-card strong,
    .metric strong,
    .student-balance-card strong {
        font-size: 1.65rem;
    }

    .page-copy,
    .hero-copy,
    .cell-copy,
    .hero h3,
    .panel h3,
    .metric strong {
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .panel-header {
        gap: 10px;
        margin-bottom: 14px;
    }

    .panel-header .button,
    .action-row .button,
    .pager-actions .button {
        flex: 1 1 150px;
        min-height: 44px;
    }

    .filter-tabs,
    .resident-section-bar,
    .student-portal-tabs {
        flex-wrap: nowrap;
        margin-inline: -4px;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-tabs a,
    .resident-section-bar a,
    .student-portal-tabs a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .table-wrap {
        margin-inline: -4px;
        border-radius: 12px;
    }

    th,
    td {
        padding: 12px 10px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .list-card {
        flex-direction: column;
    }

    .list-stats {
        justify-items: start;
    }

    .incident-edit-form {
        min-width: 0;
    }

    .transaction-row-grid strong,
    .transaction-row-grid span,
    .editable-row-grid strong {
        white-space: normal;
    }

    .resident-identity,
    .slip-heading {
        flex-direction: column;
    }

    .slip-grid,
    .signature-row {
        grid-template-columns: 1fr;
    }

    .ai-help-widget {
        right: 16px;
        bottom: 16px;
    }

    .ai-help-panel {
        bottom: 56px;
    }

    .ai-help-form {
        grid-template-columns: 1fr;
    }

    .bulk-charge-toolbar {
        grid-template-columns: 1fr;
    }

    .bulk-pagination {
        justify-content: flex-start;
    }

    .communication-card summary,
    .student-picker-header,
    .section-subhead,
    .bar-label {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .content,
    .student-portal-shell {
        padding-inline: 12px;
    }

    .topbar h2,
    .student-portal-topbar h1 {
        font-size: 1.35rem;
    }

    .brand h1 {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .login-chip,
    .topbar-actions .button,
    .topbar-actions .inline-delete-form,
    .topbar-actions .inline-delete-form .button,
    .panel-header .button,
    .action-row .button,
    .pager-actions .button {
        width: 100%;
    }

    .page-count {
        width: 100%;
        text-align: center;
    }

    .photo-frame {
        width: 96px;
        height: 116px;
    }

    .selected-student-chip {
        width: 100%;
        justify-content: space-between;
        border-radius: 14px;
    }

    .ai-help-widget {
        right: 12px;
        bottom: 12px;
        left: auto;
    }

    .ai-help-toggle {
        width: auto;
        min-width: 104px;
    }

    .ai-help-panel {
        right: 0;
        left: auto;
        width: min(360px, calc(100vw - 24px));
    }
}

.status.pending {
    background: var(--gold-soft);
    color: #7c5618;
}

.status.bad {
    background: var(--red-soft);
    color: var(--red);
}

.bulk-charge-table input[type="checkbox"] {
    width: auto;
}

.bulk-charge-table .bulk-days-input {
    min-width: 120px;
}

.bulk-charge-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto minmax(140px, 180px) auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid rgba(221, 210, 187, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.52);
}

.bulk-search,
.bulk-page-size {
    display: grid;
    gap: 7px;
}

.bulk-search span,
.bulk-page-size span {
    color: var(--muted);
    font-weight: 800;
}

.bulk-mark-all {
    align-self: center;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 250, 240, 0.72);
}

.bulk-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.bulk-serial {
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

.bulk-charge-table tr[hidden] {
    display: none;
}

.existing-documents,
.extension-history {
    margin-top: 18px;
}

.approval-form {
    display: grid;
    gap: 10px;
    min-width: 260px;
}

.extension-form {
    margin: 18px 0;
}

.document-list-card {
    display: grid;
    gap: 8px;
}

.editable-row-grid {
    display: grid;
    grid-template-columns: 1fr 150px minmax(180px, 1fr) 130px auto;
    gap: 10px;
    align-items: center;
}

.split-fields {
    display: grid;
    grid-template-columns: 1fr 72px;
    gap: 8px;
}

.editable-row-grid strong {
    white-space: nowrap;
}

.invoice-edit-form {
    padding: 12px 0;
}

.invoice-total-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 0 2px;
}

.invoice-total-strip strong {
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--green-soft);
    color: var(--green);
}

.icon-button {
    min-width: 88px;
}

.invoice-items-table th:last-child,
.invoice-items-table td:last-child {
    width: 96px;
}

.history-data {
    max-width: 420px;
    max-height: 180px;
    overflow: auto;
    margin: 0;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--line);
    color: var(--muted);
    white-space: pre-wrap;
}

.negative-balance {
    color: var(--red);
    background: var(--red-soft);
    font-weight: 800;
}

.negative-balance-text {
    color: #ffd8d2 !important;
    font-weight: 800;
}

.site-footer {
    margin-top: 24px;
    padding: 18px 0 4px;
    color: var(--muted);
    text-align: center;
    font-weight: 700;
}

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

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

.incident-edit-form {
    min-width: 520px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
}

.transaction-row-grid {
    display: grid;
    gap: 10px;
    align-items: center;
}

.receipt-row-grid {
    grid-template-columns: 150px 160px 140px 120px minmax(160px, 1fr) auto;
}

.deposit-row-grid {
    grid-template-columns: 150px 160px 120px minmax(180px, 1fr) auto;
}

.charge-row-grid {
    grid-template-columns: 140px 150px 120px 90px 110px 140px minmax(160px, 1fr) auto;
}

.transaction-row-grid strong,
.transaction-row-grid span {
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .editable-row-grid,
    .receipt-row-grid,
    .deposit-row-grid,
    .charge-row-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

.cms-hero {
    margin-bottom: 22px;
}

.cms-list {
    margin-top: 18px;
}

.cms-list details + details {
    margin-top: 12px;
}

.cms-edit-form,
.mini-edit {
    margin-top: 14px;
}

.danger-inline-form {
    margin-top: 10px;
}

.inline-delete-form {
    display: inline-flex;
    margin: 0;
}

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

.login-panel {
    width: min(520px, 100%);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--paper-strong);
    box-shadow: var(--panel-shadow);
}

.login-panel h1 {
    margin: 0 0 10px;
    font-family: Georgia, "Times New Roman", serif;
}

.login-security-note {
    margin-top: 18px;
    padding: 14px;
    border-radius: 16px;
    border: 1px dashed var(--line);
    background: rgba(255, 255, 255, 0.55);
}

.login-security-note p {
    margin: 6px 0 0;
    color: var(--muted);
}

.student-portal-shell {
    width: min(1480px, 100%);
    margin: 0 auto;
    padding: 28px;
    display: grid;
    gap: 22px;
}

.student-portal-topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.student-portal-topbar h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
}

.student-portal-hero {
    grid-template-columns: minmax(0, 1fr) 320px;
}

.student-balance-card {
    display: grid;
    gap: 8px;
    align-content: center;
    padding: 22px;
    border: 1px solid rgba(221, 210, 187, 0.94);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
}

.student-balance-card p,
.student-balance-card span {
    margin: 0;
    color: var(--muted);
}

.student-balance-card strong {
    font-size: 2.6rem;
    line-height: 1;
    color: var(--green);
}

.student-portal-tabs {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 251, 242, 0.96);
    box-shadow: 0 14px 30px rgba(32, 79, 57, 0.08);
}

.student-portal-tabs a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(32, 79, 57, 0.09);
    color: var(--green);
    font-weight: 900;
    text-decoration: none;
}

.account-total-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.account-total-strip span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(221, 210, 187, 0.94);
    background: rgba(255, 255, 255, 0.7);
    color: var(--muted);
    font-weight: 900;
}

.section-subhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 22px 0 12px;
}

.section-subhead h4 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
}

.section-subhead span {
    color: var(--muted);
    font-weight: 800;
}

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

.mini-summary-grid div {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.54);
}

.mini-summary-grid strong {
    color: var(--green);
}

.mini-summary-grid span {
    color: var(--muted);
}

.total-row td {
    background: rgba(230, 194, 107, 0.18);
    color: var(--ink);
    font-weight: 900;
}

.stacked-actions {
    display: grid;
    gap: 8px;
    min-width: 160px;
}

.stacked-actions .button {
    width: 100%;
    justify-content: center;
}

.compact-credential {
    min-height: 36px;
    padding: 7px 9px;
    font-size: 0.84rem;
}

.credential-table {
    min-width: 1180px;
}

.communication-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
    overflow: hidden;
}

.communication-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    cursor: pointer;
}

.communication-card summary small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.communication-body,
.communication-edit-form,
.communication-card .danger-inline-form {
    padding: 16px;
    border-top: 1px solid rgba(221, 210, 187, 0.9);
}

.communication-channel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.54);
}

.communication-channel-grid strong {
    grid-column: 1 / -1;
    color: var(--green);
}

.communication-channel-grid .check-row {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(221, 210, 187, 0.9);
    background: rgba(255, 251, 242, 0.72);
    font-weight: 800;
}

.delivery-link-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.delivery-link-list div {
    display: grid;
    grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.4fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.58);
}

.delivery-link-list span {
    color: var(--muted);
}

.attachment-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.attachment-list > strong {
    color: var(--green);
}

.attachment-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
}

.attachment-chip span {
    color: var(--muted);
    font-weight: 800;
}

.attachment-chip form {
    margin: 0;
}

.compact-attachments {
    gap: 7px;
    margin-top: 10px;
}

.compact-attachments .attachment-chip {
    padding: 7px 8px;
}

.communication-feed {
    display: grid;
    gap: 12px;
}

.student-notice-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.6);
}

.student-notice-card.event {
    border-color: rgba(179, 132, 43, 0.48);
    background: rgba(240, 226, 184, 0.34);
}

.student-notice-card h4,
.student-notice-card p {
    margin: 0 0 8px;
}

.notice-meta {
    display: grid;
    gap: 8px;
    align-content: start;
}

.notice-meta span {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(32, 79, 57, 0.09);
    color: var(--green);
    font-weight: 800;
    font-size: 0.9rem;
}

.student-picker {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.54);
}

.student-picker-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.student-picker-header strong {
    color: var(--green);
}

.student-picker-header p {
    margin: 4px 0 0;
}

.student-picker-header [data-selected-count] {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(32, 79, 57, 0.1);
    color: var(--green);
    font-weight: 900;
}

.student-picker-controls {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.4fr) auto;
    gap: 12px;
    align-items: end;
}

.selected-students-panel {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px dashed rgba(32, 79, 57, 0.28);
    border-radius: 16px;
    background: rgba(220, 235, 221, 0.28);
}

.selected-student-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 42px;
}

.selected-student-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 8px 9px 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(32, 79, 57, 0.18);
    background: rgba(255, 255, 255, 0.78);
    color: var(--green);
    font-weight: 800;
}

.selected-student-chip span {
    overflow-wrap: anywhere;
}

.selected-student-chip button {
    border: 0;
    border-radius: 999px;
    padding: 5px 8px;
    background: var(--red-soft);
    color: var(--red);
    font-weight: 900;
    cursor: pointer;
}

.credential-value {
    display: inline-flex;
    width: 100%;
    align-items: center;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px dashed rgba(32, 79, 57, 0.34);
    background: rgba(220, 235, 221, 0.58);
    color: var(--green);
    font-family: "Consolas", "Courier New", monospace;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.52);
}

.tight-header {
    margin-bottom: 10px;
}

.permission-matrix-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.58);
}

.permission-matrix {
    min-width: 820px;
}

.permission-matrix th,
.permission-matrix td {
    border-color: rgba(221, 210, 187, 0.82);
}

.permission-module {
    width: 190px;
    color: var(--green);
    font-weight: 900;
}

.permission-check-cell {
    width: 92px;
    text-align: center;
    vertical-align: middle;
}

.permission-check {
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.permission-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.permission-check span[aria-hidden="true"] {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 2px solid #c9bca2;
    border-radius: 6px;
    background: #fffaf0;
    transition: 0.16s ease;
}

.permission-check span[aria-hidden="true"]::after {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #fffaf0;
    border-bottom: 2px solid #fffaf0;
    transform: rotate(-45deg) scale(0);
    transition: 0.16s ease;
}

.permission-check input:checked + span[aria-hidden="true"] {
    border-color: var(--green);
    background: var(--green);
}

.permission-check input:checked + span[aria-hidden="true"]::after {
    transform: rotate(-45deg) scale(1);
}

.permission-check input:focus-visible + span[aria-hidden="true"] {
    outline: 3px solid rgba(179, 132, 43, 0.32);
    outline-offset: 2px;
}

.permission-empty {
    color: rgba(91, 101, 93, 0.5);
    font-weight: 800;
}

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

.cms-table {
    margin-top: 18px;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.editor-toolbar button {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fffaf0;
    color: var(--green);
    font-weight: 800;
    cursor: pointer;
}

.code-textarea,
textarea[data-rich-editor] {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.resident-section-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
    padding: 14px;
    border: 1px solid rgba(221, 210, 187, 0.9);
    border-radius: 20px;
    background: rgba(255, 251, 242, 0.86);
    box-shadow: var(--panel-shadow);
}

.resident-section-bar a {
    padding: 10px 13px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.68);
    font-weight: 800;
}

.resident-section-bar a.active,
.resident-section-bar a:hover {
    background: var(--green);
    border-color: var(--green);
    color: #fff8ec;
}

.export-panel {
    margin-bottom: 18px;
}

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

.section-card {
    display: grid;
    gap: 8px;
    min-height: 110px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
}

.section-card strong {
    font-size: 1.05rem;
}

.section-card span {
    color: var(--muted);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-tabs a {
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.62);
    font-weight: 800;
}

.filter-tabs a.active,
.filter-tabs a:hover {
    background: var(--green);
    border-color: var(--green);
    color: #fff8ec;
}

.pager-strip,
.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.54);
}

.pager-strip p {
    margin: 4px 0 0;
}

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

.page-count {
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

.bar-chart {
    display: grid;
    gap: 16px;
}

.bar-row {
    display: grid;
    gap: 8px;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
}

.bar-label strong {
    color: var(--ink);
}

.bar-track {
    height: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(91, 101, 93, 0.14);
}

.bar-fill {
    display: block;
    height: 100%;
    min-width: 4px;
    border-radius: inherit;
}

.bar-fill.green {
    background: linear-gradient(90deg, #204f39, #5c9a72);
}

.bar-fill.gold {
    background: linear-gradient(90deg, #b3842b, #e7c97c);
}

.bar-fill.red {
    background: linear-gradient(90deg, #9f463b, #e48d7f);
}

.reopen-panel {
    margin-top: 18px;
}

.website-body {
    background: #f7f3eb;
    color: #142017;
}

.website-top-strip {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 24px;
    background: #173021;
    color: #fff8ec;
    font-size: 0.9rem;
}

.website-top-strip div {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.website-top-strip a {
    font-weight: 800;
}

.website-header,
.website-footer,
.website-band,
.website-two-column,
.website-page-hero {
    max-width: 1180px;
    margin: 0 auto;
}

.website-header {
    min-height: 88px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 18px 24px;
    background: rgba(247, 243, 235, 0.96);
    position: sticky;
    top: 0;
    z-index: 5;
}

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

.website-brand span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #204f39;
    color: #fff8ec;
    font-weight: 900;
}

.website-brand strong,
.website-brand small {
    display: block;
}

.audit-statement-panel {
    overflow: hidden;
}

.notice-print-panel {
    overflow: hidden;
}

.notice-letterhead {
    text-align: center;
    margin-bottom: 18px;
}

.notice-letterhead p,
.notice-letterhead h2,
.notice-letterhead h3 {
    margin: 0 0 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    text-decoration: underline;
}

.notice-letterhead p,
.notice-letterhead h3 {
    font-weight: 900;
    text-transform: uppercase;
}

.notice-letterhead h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.notice-statement-table {
    min-width: 1240px;
    table-layout: fixed;
    background: #fffdf7;
}

.notice-statement-table th,
.notice-statement-table td {
    border: 1px solid rgba(61, 59, 48, 0.42);
    border-bottom: 1px solid rgba(61, 59, 48, 0.42);
    white-space: normal;
    word-break: break-word;
}

.notice-statement-table th {
    background: #fff7a6;
    color: #1d281f;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
}

.notice-statement-table tfoot th {
    background: rgba(91, 101, 93, 0.12);
}

@media print {
    .notice-letterhead {
        margin-bottom: 12px;
    }

    .notice-statement-table {
        min-width: 0;
    }

    .notice-statement-table th,
    .notice-statement-table td {
        border: 1px solid #111;
        padding: 5px 6px;
        color: #111;
        font-size: 10px;
        line-height: 1.2;
    }

    .notice-statement-table th {
        background: #ffff66 !important;
    }
}

.audit-summary-strip {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.audit-summary-strip span {
    display: inline-flex;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.58);
    color: var(--muted);
    font-weight: 700;
}

.audit-summary-strip strong {
    color: var(--ink);
}

.audit-official-preface {
    display: grid;
    gap: 6px;
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px dashed rgba(61, 59, 48, 0.28);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--ink);
    font-weight: 800;
}

.audit-official-preface strong {
    color: var(--red);
}

.audit-table-wrap {
    border: 1px solid rgba(61, 59, 48, 0.16);
    border-radius: 12px;
    background: #fffdf7;
}

.audit-format-table {
    min-width: 1180px;
    table-layout: fixed;
    background: #fffdf7;
}

.audit-format-table th,
.audit-format-table td {
    border: 1px solid rgba(61, 59, 48, 0.35);
    border-bottom: 1px solid rgba(61, 59, 48, 0.35);
    white-space: pre-line;
    word-break: break-word;
    line-height: 1.25;
}

.audit-format-table th {
    background: #fff7a6;
    color: #1d281f;
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.82rem;
    font-weight: 900;
    text-align: center;
}

.audit-format-table td {
    font-size: 0.86rem;
}

.form-actions {
    display: flex;
    align-items: end;
}

.cashbook-fund-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.cashbook-fund-tabs a {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.58);
    color: var(--muted);
    font-weight: 800;
}

.cashbook-fund-tabs a.active {
    border-color: rgba(32, 79, 57, 0.34);
    background: var(--green-soft);
    color: var(--green);
}

.cashbook-title {
    text-align: center;
    margin-bottom: 18px;
}

.cashbook-title h3 {
    margin: 0 0 10px;
    font-size: 2rem;
    text-decoration: underline;
}

.cashbook-title p {
    margin: 0;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
}

.cashbook-table th,
.cashbook-table td {
    font-size: 1rem;
}

.cashbook-table th {
    background: rgba(255, 255, 255, 0.72);
    font-style: italic;
}

.cashbook-opening-row,
.cashbook-total-row {
    font-weight: 900;
}

.cashbook-head-row td {
    font-style: italic;
    font-weight: 900;
}

.cashbook-head-row td:nth-child(2) {
    background: #fff36f;
    color: #18251d;
}

.cashbook-highlight-row td {
    background: #fff36f;
    color: #18251d;
    font-weight: 900;
}

.website-brand strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.22rem;
}

.website-brand small {
    color: var(--muted);
    margin-top: 3px;
}

.website-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.website-nav a {
    padding: 10px 12px;
    border-radius: 10px;
    color: #263528;
    font-weight: 700;
}

.website-nav a:hover {
    background: #e8ddc8;
}

.website-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.website-hero-slide {
    min-height: 460px;
    display: grid;
    align-items: end;
    padding: 52px;
    border-radius: 0 0 28px 28px;
    color: #fff8ec;
    background:
        linear-gradient(90deg, rgba(14, 38, 28, 0.9), rgba(14, 38, 28, 0.3)),
        linear-gradient(135deg, #204f39, #b3842b);
    background-size: cover;
    background-position: center;
}

.website-hero-slide > div {
    max-width: 690px;
}

.website-hero-slide h1,
.website-page-hero h1,
.website-band h2,
.website-panel h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
}

.website-hero-slide h1 {
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1;
}

.website-hero-slide p {
    font-size: 1.12rem;
    line-height: 1.7;
    color: rgba(255, 248, 236, 0.88);
}

.website-button {
    display: inline-flex;
    margin-top: 16px;
    padding: 13px 18px;
    border-radius: 12px;
    background: #fff8ec;
    color: #173021;
    font-weight: 900;
}

.website-band {
    padding: 52px 24px 24px;
}

.website-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.website-card,
.website-panel {
    border: 1px solid #ded2bb;
    background: #fffaf0;
    box-shadow: var(--panel-shadow);
}

.website-card {
    min-height: 180px;
    padding: 22px;
    border-radius: 16px;
}

.website-card span {
    color: var(--gold);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.website-card h3,
.website-feed h3 {
    margin: 12px 0 8px;
}

.website-card p,
.website-feed p,
.website-footer p,
.website-content {
    color: var(--muted);
    line-height: 1.7;
}

.website-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 22px;
    padding: 24px;
}

.website-panel {
    border-radius: 20px;
    padding: 24px;
}

.website-feed {
    display: grid;
    gap: 14px;
}

.website-feed article {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.58);
}

.website-feed small {
    color: var(--muted);
    font-weight: 700;
}

.website-page-hero {
    padding: 70px 24px 34px;
    border-radius: 0 0 28px 28px;
    background-size: cover;
    background-position: center;
}

.website-page-hero[style] {
    max-width: 1280px;
    min-height: 340px;
    display: grid;
    align-content: end;
    color: #fff8ec;
    padding-left: 52px;
    padding-right: 52px;
}

.website-page-hero[style] p {
    color: rgba(255, 248, 236, 0.88);
}

.website-page-hero h1 {
    max-width: 850px;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.website-page-hero p {
    max-width: 720px;
    color: var(--muted);
    line-height: 1.7;
}

.website-page-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
}

.website-content {
    min-height: 360px;
    font-size: 1.03rem;
}

.website-content h2,
.website-content h3 {
    color: var(--green);
}

.website-content .info-box {
    margin: 18px 0;
    padding: 18px;
    border-left: 5px solid var(--green);
    border-radius: 14px;
    background: #eef6ef;
}

.website-content .office-table table {
    width: 100%;
    border-collapse: collapse;
}

.website-content .office-table th,
.website-content .office-table td {
    border: 1px solid var(--line);
    padding: 10px;
}

.compact-feed article {
    padding: 12px;
}

.website-aside-title {
    margin-top: 24px;
}

.website-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 34px 24px;
    border-top: 1px solid #ded2bb;
}

@media (max-width: 900px) {
    .website-header,
    .website-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .website-hero-slide {
        min-height: 380px;
        padding: 32px 24px;
    }

    .website-card-grid,
    .website-two-column,
    .website-page-layout,
    .section-card-grid {
        grid-template-columns: 1fr;
    }
}
