/* MAS Youth Portal styles. Reuses the public brand tokens for consistency. */
@import url('/css/variables.css');

:root {
    --sidebar-width: 240px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    color: var(--ink, #15233b);
    background: #f1f5f9;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--mas-blue, #1d4d9c);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3 {
    color: var(--ink, #15233b);
    line-height: 1.2;
    margin: 0 0 0.5rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 3px solid rgba(29, 77, 156, 0.35);
    outline-offset: 2px;
}

.btn--primary {
    background: var(--mas-blue, #1d4d9c);
    color: #fff;
}

.btn--primary:hover {
    background: var(--mas-blue-dark, #143d80);
    box-shadow: 0 4px 12px rgba(29, 77, 156, 0.3);
}

.btn--success {
    background: var(--mas-green-deep, #237a20);
    color: #fff;
}

.btn--success:hover {
    box-shadow: 0 4px 12px rgba(35, 122, 32, 0.3);
}

.btn--danger {
    background: #fff;
    color: #b91c1c;
    border-color: rgba(185, 28, 28, 0.4);
}

.btn--danger:hover {
    background: #fef2f2;
}

.btn--ghost {
    background: transparent;
    color: var(--ink-soft, #3a4760);
    border-color: var(--rule-strong, rgba(21, 35, 59, 0.32));
}

.btn--ghost:hover {
    background: var(--paper-deep, #f1ece3);
}

.btn--block {
    width: 100%;
}

.btn--sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
}

.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Forms ---------- */
.form__group {
    margin-bottom: 1.25rem;
}

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

.form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink-soft, #3a4760);
}

.form .req {
    color: #b91c1c;
}

.form input,
.form textarea,
.form select {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ink, #15233b);
    background: #fff;
    border: 1px solid var(--rule-strong, rgba(21, 35, 59, 0.32));
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form textarea {
    min-height: 110px;
    resize: vertical;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
    outline: none;
    border-color: var(--mas-blue, #1d4d9c);
    box-shadow: 0 0 0 3px rgba(29, 77, 156, 0.15);
}

.form__hint {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: var(--ink-muted, #6b7689);
}

.form__password {
    position: relative;
    display: flex;
    align-items: center;
}

.form__password input {
    padding-right: 4.25rem;
}

.form__password-toggle {
    position: absolute;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: var(--mas-blue, #1d4d9c);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
}

.form__password-toggle:hover {
    text-decoration: underline;
}

.form__section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink, #15233b);
    margin: 1.75rem 0 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule, rgba(21, 35, 59, 0.12));
}

/* ---------- Alerts ---------- */
.alert {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid rgba(185, 28, 28, 0.25);
}

.alert--success {
    background: var(--mas-green-soft, #e8f5e7);
    color: var(--mas-green-deep, #237a20);
    border: 1px solid rgba(35, 122, 32, 0.25);
}

/* ---------- Auth pages ---------- */
.youth-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--mas-blue, #1d4d9c) 0%, var(--mas-blue-dark, #143d80) 100%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 14px;
    padding: 2.5rem;
    box-shadow: 0 18px 50px rgba(20, 35, 70, 0.28);
}

.auth-card--wide {
    max-width: 640px;
}

.auth-card__head {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-card__head h1 {
    font-size: 1.5rem;
}

.auth-card__head p {
    margin: 0.25rem 0 0;
    color: var(--ink-muted, #6b7689);
}

.auth-card__foot {
    margin: 1.5rem 0 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--ink-muted, #6b7689);
}

/* ---------- App shell: sidebar ---------- */
.youth-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    padding: 1.1rem 0.75rem 1rem;
    overflow-y: auto;
    z-index: 50;
}

.youth-sidebar__brand {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
    letter-spacing: -0.01em;
    padding: 0.4rem 0.75rem 1.1rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0.6rem;
}

.youth-sidebar__brand:hover {
    text-decoration: none;
}

.youth-sidebar__back {
    color: #64748b;
    margin-bottom: 0.4rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 8px 8px 0 0;
}

.youth-sidebar__back i {
    color: #94a3b8;
}

.youth-sidebar__links {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.youth-sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.youth-sidebar__link:hover {
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
}

.youth-sidebar__link.is-active {
    background: #0f4f9f;
    color: #fff;
    box-shadow: 0 1px 2px rgba(15, 79, 159, 0.25);
}

.youth-sidebar__link i {
    font-size: 0.9rem;
    width: 1.1rem;
    text-align: center;
    color: #94a3b8;
    transition: color 0.15s;
}

.youth-sidebar__link:hover i {
    color: #475569;
}

.youth-sidebar__link.is-active i {
    color: #fff;
}

.youth-sidebar__spacer {
    flex-grow: 1;
    min-height: 1rem;
}

.youth-sidebar__user {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.9rem 0.5rem 0;
    margin: 0.5rem 0 0;
    border-top: 1px solid #e2e8f0;
    white-space: nowrap;
}

.youth-sidebar__name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.875rem;
}

.youth-sidebar__role {
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.youth-sidebar__role.lead {
    background: #fef3c7;
    color: #92400e;
}

.youth-sidebar__role.worker {
    background: #dbeafe;
    color: #1e40af;
}

.youth-sidebar__logout {
    width: 100%;
    margin-top: 0.4rem;
    color: #dc2626;
}

.youth-sidebar__logout i {
    color: #dc2626;
}

.youth-sidebar__logout:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.youth-sidebar__logout:hover i {
    color: #b91c1c;
}

.youth-main {
    margin: 0 0 0 var(--sidebar-width);
    padding: 2rem 2.5rem 4rem;
}

.page-head {
    margin-bottom: 1.75rem;
}

.page-head h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.page-head p {
    margin: 0.25rem 0 0;
    color: #64748b;
}

/* ---------- Cards ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--surface, #fff);
    border: 1px solid var(--rule, rgba(21, 35, 59, 0.12));
    border-radius: 12px;
    padding: 1.5rem;
}

.card h3 {
    font-size: 1.05rem;
}

.card__muted {
    color: var(--ink-muted, #6b7689);
    font-size: 0.9rem;
    margin: 0;
}

.card__metric {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--mas-blue, #1d4d9c);
    line-height: 1;
    margin: 0.25rem 0 0.75rem;
}

.card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

/* ---------- Table ---------- */
.table-wrap {
    background: #fff;
    border: 1px solid var(--rule, rgba(21, 35, 59, 0.12));
    border-radius: 12px;
    overflow: hidden;
}

table.data {
    width: 100%;
    border-collapse: collapse;
}

table.data th,
table.data td {
    text-align: left;
    padding: 0.9rem 1.1rem;
    font-size: 0.92rem;
    vertical-align: top;
}

table.data thead th {
    background: var(--paper-deep, #f1ece3);
    color: var(--ink-soft, #3a4760);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

table.data tbody tr {
    border-top: 1px solid var(--rule, rgba(21, 35, 59, 0.12));
}

.cell-name {
    font-weight: 600;
    color: var(--ink, #15233b);
}

.cell-sub {
    display: block;
    color: var(--ink-muted, #6b7689);
    font-size: 0.82rem;
    margin-top: 0.2rem;
    max-width: 320px;
}

.row-actions {
    display: flex;
    gap: 0.5rem;
}

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: capitalize;
}

.badge--pending {
    background: #fff7ed;
    color: #b45309;
}

.badge--approved {
    background: var(--mas-green-soft, #e8f5e7);
    color: var(--mas-green-deep, #237a20);
}

.badge--declined {
    background: #fef2f2;
    color: #b91c1c;
}

/* ---------- Workflow badges ---------- */
.badge--draft {
    background: #eef0f3;
    color: #51607a;
}

.badge--submitted,
.badge--resubmitted {
    background: var(--mas-blue-soft, #e8eef8);
    color: var(--mas-blue, #1d4d9c);
}

.badge--changes_requested {
    background: #fff7ed;
    color: #b45309;
}

.badge--withdrawn,
.badge--cancelled {
    background: #eef0f3;
    color: #6b7689;
}

/* ---------- Detail layout ---------- */
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.detail-field {
    margin-bottom: 1rem;
}

.detail-field__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 700;
    color: var(--ink-muted, #6b7689);
    margin-bottom: 0.15rem;
}

.flyer-thumb {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--rule, rgba(21, 35, 59, 0.12));
}

/* ---------- Review thread ---------- */
.thread {
    list-style: none;
    margin: 0;
    padding: 0;
}

.thread__item {
    padding: 1rem 0;
    border-top: 1px solid var(--rule, rgba(21, 35, 59, 0.12));
}

.thread__item:first-child {
    border-top: none;
}

.thread__meta {
    font-size: 0.82rem;
    color: var(--ink-muted, #6b7689);
    margin-bottom: 0.35rem;
}

.thread__author {
    font-weight: 700;
    color: var(--ink, #15233b);
}

.thread__action {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: var(--paper-deep, #f1ece3);
    color: var(--ink-soft, #3a4760);
}

.thread__body {
    color: var(--ink-soft, #3a4760);
    white-space: pre-wrap;
}

/* ---------- Form: fieldsets, repeaters, toggles ---------- */
.form fieldset {
    border: 1px solid var(--rule, rgba(21, 35, 59, 0.12));
    border-radius: 10px;
    padding: 1.25rem;
    margin: 0 0 1.5rem;
}

.form legend {
    padding: 0 0.5rem;
    font-weight: 700;
    color: var(--ink, #15233b);
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.toggle-row input[type='checkbox'] {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
}

.toggle-row label {
    margin: 0;
    font-weight: 600;
}

.repeater__row {
    display: grid;
    gap: 0.75rem;
    align-items: end;
    padding: 0.9rem;
    margin-bottom: 0.75rem;
    background: var(--paper, #faf8f4);
    border: 1px solid var(--rule, rgba(21, 35, 59, 0.12));
    border-radius: 8px;
}

.repeater__row .form__group {
    margin-bottom: 0;
}

.tier-row {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
}

.field-row {
    grid-template-columns: 2fr 1fr 1.2fr auto auto;
}

.res-row {
    grid-template-columns: 1fr 1.4fr 2fr auto;
}

.res-row--file {
    grid-template-columns: 1.4fr 2fr auto;
}

.resource-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.resource-list li {
    margin: 0.3rem 0;
}

.resource-list .res-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink-muted, #6b7689);
    margin-right: 0.4rem;
}

.repeater__remove {
    background: transparent;
    border: 1px solid rgba(185, 28, 28, 0.4);
    color: #b91c1c;
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    cursor: pointer;
    font-size: 0.85rem;
    height: fit-content;
}

.repeater__remove:hover {
    background: #fef2f2;
}

.flyer-preview {
    margin-top: 0.75rem;
    max-width: 240px;
    border-radius: 8px;
    border: 1px solid var(--rule, rgba(21, 35, 59, 0.12));
    display: none;
}

.form__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.form-status {
    margin-left: auto;
    align-self: center;
    font-size: 0.9rem;
    color: var(--ink-muted, #6b7689);
}

.checkbox-pick {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--rule, rgba(21, 35, 59, 0.12));
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.checkbox-pick label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin: 0.3rem 0;
}

.checkbox-pick input {
    width: auto;
}

/* ---------- Empty state ---------- */
.empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--ink-muted, #6b7689);
}

@media (max-width: 720px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .tier-row,
    .field-row {
        grid-template-columns: 1fr;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    :root {
        --sidebar-width: 0px;
    }

    .youth-sidebar {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.25rem;
        padding: 0.5rem;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        overflow-y: visible;
    }

    .youth-sidebar__brand {
        border-bottom: none;
        padding: 0.4rem 0.6rem;
        margin-bottom: 0;
        margin-right: auto;
    }

    .youth-sidebar__links {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        order: 3;
    }

    .youth-sidebar__link {
        width: auto;
    }

    .youth-sidebar__spacer {
        display: none;
    }

    .youth-sidebar__user {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        width: auto;
        gap: 0.5rem;
        padding: 0;
        margin: 0;
        border-top: none;
    }

    .youth-sidebar__logout {
        width: auto;
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .form__row {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 1.75rem;
    }

    table.data thead {
        display: none;
    }

    table.data,
    table.data tbody,
    table.data tr,
    table.data td {
        display: block;
        width: 100%;
    }

    table.data tr {
        padding: 0.5rem 0;
    }

    table.data td {
        padding: 0.35rem 1.1rem;
    }
}

/* ---------- Fieldsets (checkbox / radio groups) ---------- */
.form__fieldset {
    border: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.form__fieldset legend {
    padding: 0;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink, #15233b);
}

.radio-inline {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.radio-inline label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 500;
    cursor: pointer;
}

.radio-inline input {
    width: auto;
}

/* ---------- Application detail (leadership review) ---------- */
.detail-row td {
    padding-top: 0;
    border-top: none;
}

.app-detail {
    background: var(--surface-soft, rgba(21, 35, 59, 0.03));
    border: 1px solid var(--rule, rgba(21, 35, 59, 0.1));
    border-radius: 8px;
    padding: 0 1rem;
    margin-bottom: 0.5rem;
}

.app-detail > summary {
    cursor: pointer;
    padding: 0.65rem 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand, #1f5fa6);
    list-style-position: inside;
}

.app-detail[open] > summary {
    border-bottom: 1px solid var(--rule, rgba(21, 35, 59, 0.1));
    margin-bottom: 0.75rem;
}

.kv {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.5rem;
    margin: 0 0 0.85rem;
}

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

.kv dt {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink-muted, #6b7689);
    margin-bottom: 0.2rem;
}

.kv dd {
    margin: 0;
    color: var(--ink, #15233b);
    white-space: pre-wrap;
}

@media (max-width: 720px) {
    .kv {
        grid-template-columns: 1fr;
    }
}

/* ---- Youth modal (workers edit) ---- */
.youth-modal { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; }
.youth-modal__overlay { position: absolute; inset: 0; background: rgba(21,35,59,.45); }
.youth-modal__box { position: relative; background: #fff; border-radius: 12px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; box-shadow: 0 8px 40px rgba(0,0,0,.18); }
.youth-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem 1rem; border-bottom: 1px solid #e8eaf0; }
.youth-modal__head h2 { margin: 0; font-size: 1.1rem; color: #15233b; }
.youth-modal__close { background: none; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: #6b7689; padding: 0 0.25rem; }
.youth-modal__body { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.youth-modal__foot { display: flex; justify-content: flex-end; gap: 0.75rem; padding: 1rem 1.5rem; border-top: 1px solid #e8eaf0; }
.form__input { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid #d0d5e0; border-radius: 6px; font-size: 14px; color: #15233b; box-sizing: border-box; }
.form__input:focus { outline: none; border-color: #1d4d9c; box-shadow: 0 0 0 3px rgba(29,77,156,.12); }

/* ---------- Program form: richer sections ---------- */
.char-count {
    margin: 0.3rem 0 0;
    font-size: 0.78rem;
    color: var(--ink-muted, #6b7689);
    text-align: right;
}

.day-pick {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.day-pick label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.4rem 0.7rem;
    font-weight: 600;
    font-size: 0.85rem;
    background: var(--paper, #faf8f4);
    border: 1px solid var(--rule, rgba(21, 35, 59, 0.12));
    border-radius: 999px;
    cursor: pointer;
}
.day-pick input { width: auto; }

.inline-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin: 0.4rem 0;
}
.inline-radio input { width: auto; }

.custom-date-add {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.custom-date-add input { max-width: 220px; }

.custom-dates-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}
.date-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    background: var(--paper, #faf8f4);
    border: 1px solid var(--rule, rgba(21, 35, 59, 0.12));
    border-radius: 999px;
    font-size: 0.85rem;
}
.date-chip__remove {
    background: transparent;
    border: none;
    color: #b91c1c;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
    padding: 0 0.15rem;
}

.quick-add {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.quick-add__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-muted, #6b7689);
}
.quick-add__btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mas-blue, #1d4d9c);
    background: rgba(29, 77, 156, 0.08);
    border: 1px solid rgba(29, 77, 156, 0.2);
    border-radius: 999px;
    cursor: pointer;
}
.quick-add__btn:hover { background: rgba(29, 77, 156, 0.15); }

.repeater__check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    font-weight: 500;
}
.repeater__check input { width: auto; }

.tier-row .tier-desc { grid-column: 1 / -1; }

.ack-row { grid-template-columns: 1fr auto auto; }

.speaker-row {
    grid-template-columns: 1fr;
    background: var(--paper, #faf8f4);
}

.gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.75rem;
}
.gallery-item {
    width: 120px;
}
.gallery-item img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--rule, rgba(21, 35, 59, 0.12));
    display: block;
}
.gallery-item__remove {
    margin-top: 0.3rem;
    width: 100%;
    font-size: 0.75rem;
    padding: 0.25rem;
    background: transparent;
    border: 1px solid rgba(185, 28, 28, 0.4);
    color: #b91c1c;
    border-radius: 6px;
    cursor: pointer;
}
