/* ==========================================================================
   ระบบส่งงานหลังการอบรม — ธีมโมเดิร์น สีสันสดใส (ฟอนต์ Prompt)
   ========================================================================== */

:root {
    --violet: #7c3aed;
    --violet-dark: #5b21b6;
    --pink: #db2777;
    --cyan: #06b6d4;
    --amber: #f59e0b;
    --emerald: #10b981;
    --red: #ef4444;

    --grad: linear-gradient(120deg, #7c3aed 0%, #c026d3 50%, #db2777 100%);
    --grad-soft: linear-gradient(120deg, #ede9fe 0%, #fae8ff 50%, #fce7f3 100%);

    --ink: #1e1b3a;
    --muted: #6b7280;
    --line: #e9e6f2;
    --bg: #f6f5fb;
    --card: #ffffff;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 2px 10px rgba(31, 20, 66, 0.06);
    --shadow: 0 12px 34px rgba(91, 33, 182, 0.12);
    --shadow-lg: 0 24px 60px rgba(91, 33, 182, 0.22);

    --font: 'Prompt', 'Segoe UI', 'Helvetica Neue', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-weight: 300;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 18px;
}
.container-wide { max-width: 1180px; }

/* ---------- Topbar ---------- */
.topbar {
    background: var(--grad);
    color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 40;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    max-width: 1180px;
    margin: 0 auto;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand-logo {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .22);
    display: grid; place-items: center;
    font-size: 22px;
    flex-shrink: 0;
}
.brand-text { min-width: 0; }
.brand-text b { display: block; font-weight: 600; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text span { display: block; font-size: .78rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.topbar .btn-login {
    background: rgba(255, 255, 255, .18);
    border: 1.5px solid rgba(255, 255, 255, .45);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}
.topbar .btn-login:hover { background: rgba(255, 255, 255, .3); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    padding: 46px 0 10px;
}
.hero h1 {
    font-size: 1.9rem;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.hero p { color: var(--muted); max-width: 620px; margin: 0 auto; }

.section { padding: 26px 0 60px; }
.step-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.15rem; margin: 30px 0 16px;
}
.step-num {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--grad); color: #fff;
    display: grid; place-items: center;
    font-size: .95rem; font-weight: 600; flex-shrink: 0;
}

/* ---------- Choice cards ---------- */
.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.choice-card {
    background: var(--card);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 20px;
    cursor: pointer;
    text-align: left;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    font-family: inherit;
    color: inherit;
}
.choice-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--violet);
    text-decoration: none;
}
.choice-card .cc-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: grid; place-items: center;
    font-size: 26px;
    background: var(--grad-soft);
}
.choice-card .cc-title { font-weight: 600; font-size: 1.08rem; }
.choice-card .cc-desc { color: var(--muted); font-size: .9rem; }
.choice-card .cc-go {
    margin-top: auto;
    color: var(--violet);
    font-size: .85rem;
    font-weight: 500;
}

.choice-card.c-violet .cc-icon { background: #ede9fe; }
.choice-card.c-violet:hover { border-color: var(--violet); }
.choice-card.c-cyan .cc-icon { background: #cffafe; }
.choice-card.c-cyan:hover { border-color: var(--cyan); }
.choice-card.c-amber .cc-icon { background: #fef3c7; }
.choice-card.c-amber:hover { border-color: var(--amber); }
.choice-card.c-emerald .cc-icon { background: #d1fae5; }
.choice-card.c-emerald:hover { border-color: var(--emerald); }
.choice-card.c-pink .cc-icon { background: #fce7f3; }
.choice-card.c-pink:hover { border-color: var(--pink); }

#step2 { animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: none; cursor: pointer;
    color: var(--muted); font-family: inherit; font-size: .9rem;
    padding: 6px 0; margin-bottom: 4px;
}
.back-link:hover { color: var(--violet); }

/* ---------- Cards / panels ---------- */
.card {
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 18px; }
.card-title { font-size: 1.15rem; margin-bottom: 4px; }
.card-sub { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }

/* ---------- Sender box ---------- */
.sender-box {
    background: var(--grad-soft);
    border: 1.5px solid #e6d9fb;
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 20px;
}
.sender-box .sb-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 12px; flex-wrap: wrap;
}
.sender-box .sb-head b { font-size: 1rem; color: var(--violet-dark); }
.sender-box .sb-edit {
    font-size: .82rem; background: #fff; border: 1.5px solid #e6d9fb;
    border-radius: 999px; padding: 5px 14px; color: var(--violet); white-space: nowrap;
}
.sender-box .sb-edit:hover { background: var(--violet); color: #fff; text-decoration: none; }
.sb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px 22px;
}
.sb-item .k { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.sb-item .v { font-weight: 400; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field > label,
.field-label {
    display: block;
    font-weight: 400;
    font-size: .92rem;
    margin-bottom: 6px;
}
.field .req { color: var(--red); }
.hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 300;
    color: var(--ink);
    background: #fbfaff;
    border: 1.5px solid #ddd6ef;
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .16);
    background: #fff;
}
input[readonly], input:disabled, select:disabled {
    background: #f1eefb;
    color: var(--muted);
    cursor: not-allowed;
}
.field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0 16px;
}

/* radio group */
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-chip {
    position: relative;
    border: 1.5px solid #ddd6ef;
    border-radius: 999px;
    padding: 9px 18px;
    cursor: pointer;
    font-size: .95rem;
    transition: .15s;
    background: #fbfaff;
}
.radio-chip input { position: absolute; opacity: 0; pointer-events: none; }
.radio-chip:hover { border-color: var(--violet); }
.radio-chip.checked {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
}

/* ---------- Typeahead ---------- */
.typeahead { position: relative; }
.typeahead-list {
    display: none;
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    max-height: 280px;
    overflow-y: auto;
}
.typeahead-list.open { display: block; }
.ta-item {
    padding: 11px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f2f0fa;
    font-size: .95rem;
}
.ta-item:last-child { border-bottom: none; }
.ta-item:hover, .ta-item.active { background: var(--grad-soft); }
.ta-item small { display: block; color: var(--muted); font-size: .8rem; }
.ta-empty { padding: 13px 15px; color: var(--muted); font-size: .88rem; }
.ta-chosen {
    display: none;
    align-items: center; gap: 8px;
    margin-top: 8px;
    background: #d1fae5;
    border: 1.5px solid #a7f3d0;
    color: #065f46;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: .9rem;
}
.ta-chosen.show { display: flex; }

/* ---------- File field ---------- */
.file-field {
    border: 2px dashed #cfc6ec;
    border-radius: var(--radius-sm);
    padding: 18px;
    text-align: center;
    background: #fbfaff;
    transition: .15s;
    cursor: pointer;
}
.file-field:hover { border-color: var(--violet); background: #f6f2ff; }
.file-field.has-file { border-style: solid; border-color: var(--emerald); background: #f0fdf9; }
.file-field input[type="file"] { display: none; }
.file-field .ff-icon { font-size: 26px; }
.file-field .ff-text { font-size: .92rem; margin-top: 4px; }
.file-field .ff-name { font-weight: 500; color: var(--emerald); word-break: break-all; }
.file-field .ff-hint { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.file-existing {
    font-size: .84rem; color: var(--muted);
    background: #f1eefb; border-radius: 8px; padding: 6px 10px; margin-top: 8px;
}

.photo-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.photo-slot .ps-label {
    font-weight: 500;
    margin-bottom: 6px;
    display: flex; align-items: center; gap: 6px;
}
.photo-slot .ps-num {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--amber); color: #fff;
    display: grid; place-items: center; font-size: .78rem; font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    border: none;
    border-radius: 999px;
    padding: 12px 26px;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s, opacity .12s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(219, 39, 119, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(219, 39, 119, .38); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 7px 16px; font-size: .86rem; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Alerts ---------- */
.alert {
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    font-size: .93rem;
    margin-bottom: 16px;
    border: 1.5px solid transparent;
}
.alert-error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }

.field-error { color: var(--red); font-size: .82rem; margin-top: 4px; }
.input-invalid { border-color: var(--red) !important; }

/* ---------- Closed banner ---------- */
.closed-banner {
    background: linear-gradient(120deg, #fef3c7, #fde68a);
    border: 2px solid #fbbf24;
    border-radius: var(--radius);
    padding: 30px 26px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.closed-banner .cb-icon { font-size: 44px; }
.closed-banner h2 { color: #92400e; margin: 10px 0 6px; }
.closed-banner p { color: #b45309; margin: 0; font-size: 1.02rem; }

/* ---------- Modal ---------- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(30, 20, 60, .55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    padding: 20px;
    overflow-y: auto;
}
.modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; }
.modal {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 460px;
    margin: auto;
    animation: modalIn .22s ease;
}
.modal-lg { max-width: 900px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(-16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 1.1rem; }
.modal-x {
    background: none; border: none; font-size: 26px; line-height: 1;
    cursor: pointer; color: var(--muted); padding: 0 4px;
}
.modal-x:hover { color: var(--ink); }
.modal-body { padding: 22px; }
.modal-body-scroll { max-height: 74vh; overflow-y: auto; }

.id-modal-icon {
    width: 60px; height: 60px; margin: 0 auto 12px;
    border-radius: 16px; background: var(--grad-soft);
    display: grid; place-items: center; font-size: 30px;
}
.id-input {
    letter-spacing: .18em;
    text-align: center;
    font-size: 1.2rem !important;
    font-weight: 400 !important;
}

/* ---------- Progress overlay ---------- */
.progress-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(30, 20, 60, .62);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.progress-overlay.open { display: flex; }
.progress-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 34px;
    text-align: center;
    max-width: 360px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}
.progress-spinner {
    width: 44px; height: 44px;
    margin: 0 auto 16px;
    border: 4px solid #ede9fe;
    border-top-color: var(--violet);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-text { font-weight: 400; margin-bottom: 14px; }
.progress-track {
    width: 100%; height: 10px;
    background: #ede9fe;
    border-radius: 999px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 0;
    background: var(--grad);
    border-radius: 999px;
    transition: width .18s ease;
}
.progress-fill.indeterminate {
    width: 40% !important;
    animation: indet 1.1s ease-in-out infinite;
}
@keyframes indet {
    0% { margin-left: -40%; }
    100% { margin-left: 100%; }
}
.progress-pct { font-size: .84rem; color: var(--muted); margin-top: 8px; }

/* ---------- Done page ---------- */
.done-wrap { text-align: center; padding: 40px 0 60px; }
.done-check {
    width: 84px; height: 84px; margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--emerald);
    color: #fff;
    display: grid; place-items: center;
    font-size: 44px;
    box-shadow: 0 12px 30px rgba(16, 185, 129, .4);
    animation: pop .4s ease;
}
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Footer ---------- */
.site-footer {
    text-align: center;
    padding: 26px 18px 34px;
    color: var(--muted);
    font-size: .84rem;
}

/* ==========================================================================
   Admin
   ========================================================================== */
.admin-body { background: #f4f2fb; }
.admin-topbar {
    background: var(--grad);
    color: #fff;
    padding: 12px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    flex-wrap: wrap;
    position: sticky; top: 0; z-index: 40;
    box-shadow: var(--shadow);
}
.admin-topbar .at-brand { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.admin-topbar .at-brand span { font-size: 20px; }
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-nav a {
    color: #fff;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 300;
    opacity: .9;
}
.admin-nav a:hover { background: rgba(255, 255, 255, .18); text-decoration: none; opacity: 1; }
.admin-nav a.active { background: rgba(255, 255, 255, .26); opacity: 1; font-weight: 400; }
.admin-main { max-width: 1180px; margin: 0 auto; padding: 26px 18px 60px; }
.admin-h1 { font-size: 1.5rem; margin-bottom: 18px; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}
.stat-card {
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: block;
    color: inherit;
    transition: transform .15s, box-shadow .15s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.stat-card .sc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.stat-card .sc-icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center; font-size: 21px;
    background: var(--grad-soft);
}
.stat-card .sc-name { font-weight: 500; font-size: .98rem; }
.stat-card .sc-count { font-size: 2rem; font-weight: 600; color: var(--violet); }
.stat-card .sc-count small { font-size: .9rem; color: var(--muted); font-weight: 300; }

.status-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 400;
}
.status-pill.open { background: #d1fae5; color: #065f46; }
.status-pill.closed { background: #fee2e2; color: #991b1b; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- Table ---------- */
.table-wrap {
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.table-tools {
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}
.table-tools input[type="search"] { max-width: 280px; }
.table-scroll { overflow-x: auto; }
table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
    min-width: 720px;
}
table.data th, table.data td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
table.data th {
    background: #faf9fe;
    font-weight: 500;
    white-space: nowrap;
}
table.data tbody tr { cursor: pointer; transition: background .12s; }
table.data tbody tr:hover { background: var(--grad-soft); }
table.data .col-idx { color: var(--muted); width: 40px; }
.empty-row td { text-align: center; color: var(--muted); padding: 40px 14px; cursor: default; }
.empty-row:hover { background: transparent !important; }

.btn-view {
    background: var(--grad); color: #fff;
    border: none; border-radius: 8px;
    padding: 6px 14px; font-size: .84rem; cursor: pointer; font-family: inherit;
}

/* ---------- Submission detail modal ---------- */
.detail-section { margin-bottom: 20px; }
.detail-section h4 {
    font-size: .82rem; text-transform: uppercase; letter-spacing: .03em;
    color: var(--muted); margin-bottom: 8px;
    border-bottom: 1px solid var(--line); padding-bottom: 5px;
}
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 20px; }
.detail-grid .k { font-size: .76rem; color: var(--muted); }
.detail-grid .v { margin-bottom: 6px; }
.detail-answer {
    background: #faf9fe; border: 1px solid var(--line); border-radius: 10px;
    padding: 10px 13px; margin-bottom: 10px; white-space: pre-wrap;
}
.detail-answer .q { font-weight: 500; font-size: .9rem; margin-bottom: 4px; color: var(--violet-dark); }

.file-viewer { margin-bottom: 18px; }
.file-viewer .fv-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    flex-wrap: wrap; margin-bottom: 8px;
}
.file-viewer .fv-title { font-weight: 500; }
.file-viewer iframe {
    width: 100%;
    height: 480px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #f8f8fc;
}
.file-viewer img.fv-img {
    width: 100%; max-height: 520px; object-fit: contain;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: #f8f8fc;
}
.fv-ios-note {
    background: #fffbeb; border: 1.5px solid #fde68a; color: #b45309;
    border-radius: var(--radius-sm); padding: 12px 14px; font-size: .9rem;
}

/* ---------- Login ---------- */
.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background: var(--grad);
}
.login-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 34px 30px;
    width: 100%;
    max-width: 380px;
}
.login-card .lc-logo {
    width: 58px; height: 58px; margin: 0 auto 14px;
    border-radius: 16px; background: var(--grad-soft);
    display: grid; place-items: center; font-size: 28px;
}
.login-card h1 { text-align: center; font-size: 1.3rem; margin-bottom: 4px; }
.login-card .lc-sub { text-align: center; color: var(--muted); font-size: .88rem; margin-bottom: 22px; }

/* ---------- misc ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

@media (max-width: 720px) {
    body { font-size: 15px; }
    .hero { padding: 32px 0 6px; }
    .hero h1 { font-size: 1.5rem; }
    .card { padding: 18px; }
    .two-col { grid-template-columns: 1fr; }
    .photo-slots { grid-template-columns: 1fr; }
    .file-viewer iframe { height: 60vh; }
    .modal-body { padding: 18px; }
}
