:root {
    --bg: #f4f6f8;
    --panel: #ffffff;
    --ink: #1d2939;
    --muted: #667085;
    --line: #d7dde5;
    --saffron: #ff9933;
    --green: #138808;
    --chakra: #1a4f8b;
    --primary: #1a4f8b;
    --primary-dark: #123a66;
    --navy: #123a66;
    --navy-dark: #0d2b4d;
    --accent: #b42318;
    --warning-soft: #fff7ed;
    --success-soft: #eef8ef;
    --shadow: 0 16px 42px rgba(18, 58, 102, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.sidebar-open {
    overflow: hidden;
}

a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.auth-page {
    display: grid;
    place-items: center;
    padding: 32px 18px;
    background:
        linear-gradient(125deg, rgba(255, 153, 51, 0.09), rgba(255, 255, 255, 0) 30%),
        linear-gradient(235deg, rgba(19, 136, 8, 0.075), rgba(255, 255, 255, 0) 34%),
        linear-gradient(180deg, #ffffff 0, #f4f6f8 42%, #edf2f7 100%);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1fr);
    width: min(940px, 100%);
    min-height: 540px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.auth-shell.compact {
    grid-template-columns: minmax(320px, 470px);
    width: min(470px, 100%);
    min-height: auto;
}

.brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
    padding: 46px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(255, 153, 51, 0.18), transparent 36%),
        linear-gradient(315deg, rgba(19, 136, 8, 0.12), transparent 42%),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 6px;
    background:
        linear-gradient(145deg, rgba(255, 153, 51, 0.28), rgba(255, 255, 255, 0.08) 48%, rgba(19, 136, 8, 0.2)),
        rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 23px;
    font-weight: 800;
}

.brand-meta,
.form-kicker {
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.brand-meta {
    color: rgba(255, 255, 255, 0.78);
}

.brand-panel h1,
.form-card h1,
.form-card h2,
.topbar h1,
.content-panel h2 {
    margin: 0;
    letter-spacing: 0;
}

.brand-panel h1 {
    font-size: 38px;
    line-height: 1.05;
}

.brand-panel p {
    max-width: 320px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.55;
}

.form-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
}

.form-card h1,
.form-card h2 {
    margin-top: 8px;
    font-size: 28px;
}

.muted,
.form-note {
    color: var(--muted);
    line-height: 1.55;
}

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

.stacked-form label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.stacked-form span,
.field-label,
.stat-card span,
.eyebrow {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

input,
select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 12px 14px;
    color: var(--ink);
    font: inherit;
    background: #fbfcfd;
}

select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 21px,
        calc(100% - 12px) 21px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 38px;
}

input:focus,
select:focus {
    border-color: var(--primary);
    outline: 3px solid rgba(26, 79, 139, 0.14);
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 4px;
    border: 1px solid transparent;
    padding: 0 18px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.primary-btn[disabled],
.secondary-btn[disabled],
.disabled-btn {
    cursor: not-allowed;
    opacity: 0.58;
}

.primary-btn {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(26, 79, 139, 0.18);
}

.primary-btn:hover {
    background: var(--primary-dark);
}

.secondary-btn {
    background: #ffffff;
    border-color: var(--line);
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(31, 41, 51, 0.05);
}

.secondary-btn:hover {
    border-color: var(--green);
    color: var(--primary-dark);
    text-decoration: none;
}

.secondary-btn.danger:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.small-btn {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
}

.alert {
    margin-top: 16px;
    border-radius: 4px;
    border: 1px solid var(--line);
    padding: 12px 14px;
    font-weight: 700;
}

.page-alert {
    margin: 0 0 22px;
}

.alert.error {
    border-color: rgba(180, 35, 24, 0.25);
    background: var(--warning-soft);
    color: var(--accent);
}

.alert.success {
    border-color: rgba(19, 136, 8, 0.28);
    background: var(--success-soft);
    color: #0f6b07;
}

.form-note {
    margin: 22px 0 0;
}

.form-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 14px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px clamp(18px, 5vw, 64px);
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(115deg, rgba(255, 153, 51, 0.08), transparent 34%),
        linear-gradient(245deg, rgba(19, 136, 8, 0.07), transparent 36%),
        #ffffff;
    box-shadow: 0 6px 20px rgba(31, 41, 51, 0.05);
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.topbar h1 {
    margin-top: 4px;
    font-size: 28px;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.menu-toggle {
    color: var(--navy);
    background: rgba(26, 79, 139, 0.07);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    border-color: rgba(26, 79, 139, 0.2);
    background: rgba(26, 79, 139, 0.11);
    outline: none;
}

.menu-icon {
    width: 23px;
    height: 23px;
}

.menu-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.close-sidebar {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    font-size: 26px;
    line-height: 1;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    width: min(330px, 88vw);
    background:
        linear-gradient(135deg, rgba(255, 153, 51, 0.14), transparent 32%),
        linear-gradient(315deg, rgba(19, 136, 8, 0.1), transparent 38%),
        var(--navy-dark);
    color: #ffffff;
    box-shadow: 20px 0 45px rgba(15, 23, 42, 0.24);
    transform: translateX(-104%);
    transition: transform 220ms ease;
    overflow-y: auto;
}

.admin-sidebar {
    background:
        linear-gradient(135deg, rgba(255, 153, 51, 0.12), transparent 30%),
        linear-gradient(315deg, rgba(26, 79, 139, 0.2), transparent 42%),
        #10243d;
}

.admin-app-topbar {
    background:
        linear-gradient(115deg, rgba(26, 79, 139, 0.08), transparent 34%),
        linear-gradient(245deg, rgba(255, 153, 51, 0.06), transparent 36%),
        #ffffff;
}

.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-open .app-sidebar {
    transform: translateX(0);
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 4px;
    background:
        linear-gradient(145deg, rgba(255, 153, 51, 0.26), rgba(255, 255, 255, 0.08) 48%, rgba(19, 136, 8, 0.18)),
        rgba(255, 255, 255, 0.08);
    font-weight: 800;
}

.sidebar-brand strong,
.sidebar-brand span,
.sidebar-profile strong,
.sidebar-profile small {
    display: block;
}

.sidebar-brand span,
.sidebar-profile small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.sidebar-profile {
    display: grid;
    gap: 5px;
    margin: 18px 22px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
}

.sidebar-profile .field-label {
    color: rgba(255, 255, 255, 0.62);
}

.sidebar-menu {
    display: grid;
    gap: 6px;
    padding: 0 14px;
}

.sidebar-menu a,
.sidebar-logout {
    display: flex;
    align-items: center;
    min-height: 44px;
    border-radius: 4px;
    padding: 0 14px;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 800;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
}

.sidebar-menu a.active {
    box-shadow: inset 3px 0 0 rgba(255, 153, 51, 0.9);
}

.sidebar-logout {
    margin: auto 14px 18px;
    color: #ffe5e1;
}

.sidebar-logout:hover {
    background: rgba(180, 35, 24, 0.16);
    color: #ffffff;
    text-decoration: none;
}

.admin-topbar {
    border-top: 0;
}

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

.page-container {
    width: min(1080px, calc(100% - 36px));
    margin: 36px auto;
}

.page-container.narrow {
    width: min(620px, calc(100% - 36px));
}

.content-panel,
.stat-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(31, 41, 51, 0.06);
}

.content-panel {
    padding: clamp(22px, 4vw, 34px);
}

.compact-panel {
    padding: 0;
    overflow: hidden;
}

.profile-grid,
.stat-grid {
    display: grid;
    gap: 16px;
}

.profile-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.profile-grid {
    margin-top: 24px;
}

.stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.profile-grid > div {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fbfcfd;
}

.stat-grid {
    margin-bottom: 22px;
}

.stat-card {
    display: grid;
    gap: 8px;
    padding: 22px;
}

.stat-card strong {
    font-size: 34px;
}

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

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
}

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

th,
td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    background: #f8fafc;
}

tr:last-child td {
    border-bottom: 0;
}

td small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.application-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 22px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: 6px;
    background:
        linear-gradient(135deg, rgba(255, 153, 51, 0.08), transparent 32%),
        linear-gradient(315deg, rgba(19, 136, 8, 0.07), transparent 36%),
        #ffffff;
    box-shadow: 0 8px 22px rgba(31, 41, 51, 0.06);
}

.application-panel h2,
.application-admin-card h2 {
    margin: 6px 0;
}

.status-block {
    min-width: 0;
}

.dashboard-actions,
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 10px;
    color: var(--muted);
    background: #f8fafc;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.badge.success,
.badge.approved {
    border-color: rgba(19, 136, 8, 0.24);
    color: #0f6b07;
    background: var(--success-soft);
}

.badge.pending {
    border-color: rgba(255, 153, 51, 0.32);
    color: #9a5a12;
    background: #fff7ed;
}

.badge.declined {
    border-color: rgba(180, 35, 24, 0.22);
    color: var(--accent);
    background: #fff1f0;
}

.selection-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 14px;
    background: #f8fafc;
}

.selection-summary span {
    color: var(--muted);
    text-transform: none;
}

.upload-preview {
    display: none;
    width: min(100%, 260px);
    max-height: 180px;
    border: 1px solid var(--line);
    border-radius: 6px;
    margin-top: 10px;
    object-fit: contain;
    background: #ffffff;
}

.upload-preview.show {
    display: block;
}

.payment-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.78fr) minmax(300px, 1.22fr);
    gap: 16px;
    margin-top: 16px;
}

.payment-container {
    width: min(880px, calc(100% - 36px));
}

.payment-panel {
    padding: 22px;
}

.payment-panel h2 {
    font-size: 24px;
}

.payment-timer,
.payment-expired {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(255, 153, 51, 0.3);
    border-radius: 6px;
    margin-top: 14px;
    padding: 10px 12px;
    background: #fff7ed;
    color: #7a430d;
    font-weight: 800;
}

.payment-timer strong {
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

.payment-expired {
    border-color: rgba(180, 35, 24, 0.24);
    background: #fff1f0;
    color: var(--accent);
}

.payment-expired span {
    color: var(--muted);
}

.payment-expire-message {
    margin-top: 12px;
}

.qr-box,
.qr-preview,
.empty-state {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 14px;
    background: #fbfcfd;
}

.qr-box h3,
.qr-preview strong {
    margin: 0 0 10px;
    text-align: center;
    font-size: 16px;
}

.qr-box img,
.qr-preview img {
    display: block;
    width: min(100%, 240px);
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.payment-form {
    margin-top: 0;
    gap: 12px;
}

.payment-form input {
    min-height: 44px;
}

.terms-row {
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    background: #fbfcfd;
}

.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink);
    font-weight: 700;
    font-size: 14px;
}

.checkbox-line input {
    width: 18px;
    min-width: 18px;
    min-height: 18px;
    margin-top: 2px;
}

.checkbox-line span {
    color: var(--ink);
    text-transform: none;
}

.link-btn {
    justify-self: start;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.52);
}

.modal-backdrop.open {
    display: grid;
}

.modal-card {
    width: min(520px, 100%);
    border-radius: 6px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.28);
}

.modal-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.modal-card p {
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

.admin-application-list {
    display: grid;
    gap: 18px;
}

.application-admin-card {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: clamp(18px, 3vw, 26px);
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(31, 41, 51, 0.06);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.detail-grid > div {
    display: grid;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 12px;
    background: #fbfcfd;
}

.detail-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.document-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.document-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0 12px;
    background: #ffffff;
}

.admin-application-table {
    min-width: 1080px;
    font-size: 13px;
}

.admin-application-table th,
.admin-application-table td {
    padding: 11px 12px;
    vertical-align: top;
}

.admin-application-table th {
    font-size: 11px;
}

.admin-application-table .badge {
    min-height: 24px;
    padding: 0 8px;
    font-size: 11px;
}

.compact-links {
    gap: 6px;
    margin-top: 0;
}

.compact-links a {
    min-height: 30px;
    padding: 0 8px;
    font-size: 12px;
}

.compact-actions {
    display: grid;
    gap: 6px;
}

.deadline-field {
    display: grid;
    gap: 4px;
}

.deadline-field span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.deadline-field input {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 12px;
}

.qr-preview {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.board-settings-page {
    display: grid;
    gap: 16px;
}

.board-add-panel {
    padding: 18px;
}

.board-add-panel h2 {
    font-size: 22px;
}

.board-add-form {
    display: grid;
    grid-template-columns: 90px minmax(180px, 1.1fr) 170px minmax(150px, 0.8fr) minmax(130px, 0.7fr) 120px;
    align-items: end;
    gap: 10px;
    margin-top: 14px;
}

.board-add-form label,
.board-basic-grid label {
    gap: 5px;
}

.board-add-form input,
.board-add-form select,
.board-add-form .primary-btn,
.board-basic-grid input,
.board-basic-grid select {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 14px;
}

.custom-field-input {
    margin-top: 6px;
}

.compact-board-panel {
    padding: 0;
    overflow: hidden;
}

.board-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding: 14px 18px;
    background: #fbfcfd;
}

.board-list-heading h2 {
    margin: 3px 0 0;
    font-size: 22px;
}

.board-settings-grid {
    display: grid;
    gap: 0;
}

.board-setting-card {
    display: grid;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    padding: 14px 18px;
    background: #ffffff;
}

.board-setting-card:last-child {
    border-bottom: 0;
}

.board-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.board-title-block {
    min-width: 0;
}

.board-code {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.board-card-head h2 {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    font-size: 17px;
}

.board-basic-grid {
    display: grid;
    grid-template-columns: 90px minmax(190px, 1fr) 170px minmax(112px, max-content) minmax(92px, max-content);
    align-items: end;
    gap: 8px;
}

.setting-check {
    min-height: 40px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 8px 10px;
    background: #fbfcfd;
}

.setting-check input {
    width: 16px;
    min-width: 16px;
    min-height: 16px;
}

.setting-check span {
    font-size: 12px;
    line-height: 1.2;
}

.fee-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.fee-section-head small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
}

.fee-edit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 8px;
    max-width: none;
}

.fee-grid-head {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.fee-pair {
    display: grid;
    grid-template-columns: minmax(42px, 0.42fr) minmax(66px, 0.58fr);
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 6px;
    background: #fbfcfd;
}

.fee-pair input {
    min-height: 32px;
    padding: 5px 6px;
    background: #ffffff;
    font-size: 13px;
}

.board-save-row {
    display: flex;
    justify-content: flex-end;
}

.board-save-row .primary-btn {
    min-height: 34px;
}

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

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

    .brand-panel,
    .form-card {
        padding: 30px 22px;
    }

    .brand-panel h1 {
        font-size: 34px;
    }

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

    .app-topbar {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        padding: 14px 14px;
    }

    .desktop-action {
        display: none;
    }

    .topbar-left {
        width: 100%;
        gap: 10px;
    }

    .topbar h1 {
        font-size: 20px;
        line-height: 1.2;
    }

    .eyebrow {
        font-size: 11px;
    }

    .icon-btn {
        width: 40px;
        min-width: 40px;
        height: 40px;
    }

    .page-container,
    .page-container.narrow {
        width: min(100% - 24px, 1080px);
        margin: 18px auto;
    }

    .content-panel {
        padding: 18px;
    }

    .content-panel h2 {
        font-size: 22px;
        line-height: 1.25;
    }

    .profile-grid,
    .stat-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .application-panel,
    .payment-layout,
    .section-heading {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-actions,
    .admin-actions {
        justify-content: stretch;
    }

    .dashboard-actions .primary-btn,
    .dashboard-actions .secondary-btn,
    .dashboard-actions .disabled-btn,
    .admin-actions .primary-btn,
    .admin-actions .secondary-btn {
        width: 100%;
    }

    .profile-grid {
        margin-top: 18px;
    }

    .profile-grid > div {
        padding: 14px;
    }

    .profile-grid strong,
    .sidebar-profile strong,
    .sidebar-profile small {
        overflow-wrap: anywhere;
    }

    .app-sidebar {
        width: min(300px, 88vw);
    }

    .sidebar-head {
        padding: 18px;
    }

    .sidebar-profile {
        margin: 14px 18px;
        padding: 14px;
    }

    .sidebar-menu {
        padding: 0 12px;
    }

    .action-row,
    .secondary-btn {
        width: 100%;
    }

    .board-add-form,
    .board-basic-grid,
    .board-card-head,
    .settings-check-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .board-setting-card {
        padding: 14px;
    }

    .fee-edit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }
}
