:root {
    --pine: #153c31;
    --pine-deep: #0e2c25;
    --cream: #fbf8f0;
    --gold: #e6bd6c;
    --gold-light: #f4d998;
    --wine: #8b2e43;
    --ink: #22342d;
    --muted: #5b6d65;
    --card-border: #e8e4d8;
    --focus: #b67b22;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
a { color: inherit; }
.shell { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }

/* Pristupačnost */
.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    background: var(--gold);
    color: #1d2e25;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
main:focus, section:focus { outline: none; }

/* Zaglavlje */
.topbar { background: var(--pine-deep); color: #fff; position: relative; }
.topbar::after {
    /* tople lampice */
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 14px;
    background:
        radial-gradient(circle, #f6d27a 0 3px, transparent 4px) 0 50% / 56px 14px repeat-x,
        radial-gradient(circle, #e0707f 0 3px, transparent 4px) 28px 50% / 56px 14px repeat-x;
    filter: drop-shadow(0 0 4px #f6d27aaa);
    pointer-events: none;
    z-index: 2;
    animation: twinkle 3.2s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .75; } to { opacity: 1; } }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 75px; }
.brand { text-decoration: none; font-weight: 700; letter-spacing: .015em; font-size: 1.16rem; }
.topnav { display: flex; align-items: center; gap: 8px; }
.organize-link {
    color: #e2d5bb;
    border: 1px solid #dfd2b363;
    border-radius: 999px;
    padding: 9px 15px;
    font-size: .86rem;
    text-decoration: none;
    white-space: nowrap;
}
.organize-link:hover, .organize-link:focus-visible { background: #ffffff14; color: #fff; }
.nav-link, .nav-button {
    color: #e9e2cf;
    background: none;
    border: 0;
    font: inherit;
    font-size: .92rem;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
}
.nav-link:hover, .nav-button:hover, .nav-button:focus-visible { background: #ffffff14; color: #fff; }

/* Kompaktno zaglavlje naslovnice: naslov i pretraživanje, popis grupa odmah ispod */
.home-head {
    color: #fff;
    background:
        radial-gradient(circle at 88% 0%, #376750 0, transparent 40%),
        linear-gradient(122deg, #0e2c25, #1a4838 70%, #163b31);
    padding: 26px 0 24px;
}
.home-head-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; }
.home-title { font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.2; margin: 6px 0 0; letter-spacing: -.01em; }
.search { display: flex; gap: 8px; flex: 1 1 320px; max-width: 460px; }
.search input {
    flex: 1;
    min-width: 0;
    min-height: 46px;
    font: inherit;
    border-radius: 999px;
    border: 1px solid #ffffff55;
    background: #ffffff;
    color: var(--ink);
    padding: 10px 18px;
}
.search input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-gold { background: var(--gold); color: #24382c; }
.btn-gold:hover, .btn-gold:focus-visible { background: var(--gold-light); }
.groups-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; }

.eyebrow { font-weight: 700; letter-spacing: .19em; font-size: .75rem; color: #edc982; margin: 0; }
.eyebrow.burgundy { color: var(--wine); }
h1, h2, h3 { font-family: Georgia, serif; }
h1 { margin: 20px 0 24px; line-height: 1.11; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.7rem); margin: 5px 0; }
.primary-link {
    display: inline-block;
    margin-top: 20px;
    background: var(--gold);
    padding: 15px 23px;
    border-radius: 999px;
    color: #24382c;
    font-weight: 700;
    text-decoration: none;
}
.primary-link:hover, .primary-link:focus-visible { background: var(--gold-light); }

/* Popis grupa */
.groups { padding: 28px 0 80px; }
.section-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-bottom: 20px; flex-wrap: wrap; }
.hint { font-size: .85rem; color: var(--muted); }
.empty-state {
    text-align: center;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 48px 20px;
    box-shadow: 0 14px 38px #17392a0a;
}
.empty-icon { font-size: 3rem; }
.empty-state h3, .message-title { font-size: 1.6rem; margin: 15px 0 8px; letter-spacing: 0; }
.empty-state p { color: var(--muted); margin: 0; }
.empty-state .primary-link { color: #24382c; }

.group-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.group-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 26px 22px 20px;
    text-decoration: none;
    box-shadow: 0 10px 28px #17392a0d;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.group-card:hover, .group-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px #17392a1c;
    border-color: var(--gold);
}
.group-card-ribbon {
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, var(--wine), var(--gold), var(--pine));
}
.group-card-title { margin: 0; font-size: 1.35rem; line-height: 1.25; color: var(--pine); }
.group-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.group-card-cta { margin-top: auto; font-weight: 700; color: var(--wine); font-size: .92rem; }
.participant-count { font-size: .92rem; color: var(--muted); }
.participant-count.light { color: #e4e9e4; }

.badge {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 11px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    border: 1px solid transparent;
}
.badge-open { background: #e2f1e6; color: #1b5a37; border-color: #b8dcc3; }
.badge-locked { background: #fbf0d8; color: #6e4a08; border-color: #ebd29c; }
.badge-drawn { background: #f6e2e6; color: #7a2337; border-color: #e6bac4; }
.badge-sent { background: #e5ecf6; color: #23436e; border-color: #bccbe2; }
.badge-finished { background: #ecebe7; color: #4b4a45; border-color: #d4d2ca; }

/* Stranica grupe */
.group-hero {
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, #376750 0, transparent 30%),
        linear-gradient(122deg, #0e2c25, #1a4838 70%, #163b31);
    padding: 64px 0 56px;
}
.group-title { font-size: clamp(2.2rem, 6vw, 4rem); margin: 14px 0 18px; }
.group-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0; }
.group-body { padding: 48px 0 90px; }
.welcome-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-left: 6px solid var(--wine);
    border-radius: 18px;
    padding: 26px 26px;
    box-shadow: 0 10px 28px #17392a0a;
    max-width: 780px;
}
.welcome-text { font-size: 1.05rem; line-height: 1.7; }
.welcome-text p { margin: 0 0 1em; }
.welcome-text p:last-child { margin-bottom: 0; }
.welcome-text a { color: var(--wine); }
.back-link { margin-top: 32px; }
.back-link a { color: var(--pine); font-weight: 600; }

/* Obrasci i administracija */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.page-pad { padding: 44px 0 90px; }
.narrow { max-width: 520px; }
.narrow-wide { max-width: 860px; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 6px 0 12px; line-height: 1.2; letter-spacing: -.01em; }
.panel-title { font-size: 1.4rem; margin: 0 0 8px; }
.muted { color: var(--muted); }
.panel {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 14px 38px #17392a0a;
}
.panel-danger { border-top: 6px solid #a3283e; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin: 0 0 12px; }
.breadcrumb a { color: var(--pine); }
.status-wrap { padding-top: 20px; }

.form { display: grid; gap: 18px; margin-top: 18px; }
.field { display: grid; gap: 6px; }
.field > label { font-weight: 600; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input:not([type]), .field textarea {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1px solid #c9c4b4;
    border-radius: 10px;
    padding: 11px 13px;
    min-height: 46px;
}
.organize-form .form-row-2 { align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.password-field { position: relative; }
.field .password-field input { padding-inline-end: 52px; }
.password-field input::-ms-reveal { display: none; }
.password-toggle {
    position: absolute;
    inset-inline-end: 4px;
    inset-block: 4px;
    width: 44px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--pine);
    cursor: pointer;
}
.password-toggle:hover, .password-toggle[aria-pressed="true"] { background: #f2f6f3; }
.password-toggle svg { vertical-align: middle; }
.password-toggle[aria-pressed="false"] .eye-slash { display: none; }
.field textarea { resize: vertical; min-height: 160px; line-height: 1.6; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--focus); outline-offset: 1px; }
.field .hint { color: var(--muted); font-size: .86rem; }
.field-error { color: #a3283e; font-size: .9rem; font-weight: 600; }
.field-error:empty { display: none; }
.input-validation-error { border-color: #a3283e !important; }
.field-check, .field-switch { grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; }
.field-check .hint, .field-switch .hint { grid-column: 1 / -1; }
.field-check input { width: 22px; height: 22px; accent-color: var(--pine); }
.field-switch input {
    appearance: none;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: #8f8a7c;
    position: relative;
    cursor: pointer;
    margin: 0;
    transition: background .15s;
}
.field-switch input::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px #0003;
    transition: transform .15s;
}
.field-switch input:checked { background: var(--pine); }
.field-switch input:checked::after { transform: translateX(22px); }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix .prefix {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: #f1efe5;
    border: 1px solid #c9c4b4;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    color: var(--muted);
    font-size: .92rem;
    white-space: nowrap;
    overflow-wrap: normal;
}
.input-prefix input { border-radius: 0 10px 10px 0 !important; min-width: 0; }
.field .btn-small { justify-self: start; }
code { background: #f1efe5; border-radius: 4px; padding: 1px 5px; font-size: .9em; }

.alert { border-radius: 12px; padding: 12px 16px; border: 1px solid; }
.alert:empty, .alert.validation-summary-valid { display: none; }
.alert ul { margin: 0; padding-left: 18px; }
.alert + .panel, .alert + .steps { margin-top: 16px; }
.alert-error { background: #fbeaed; border-color: #e6bac4; color: #7a2337; }
.alert-success { background: #e2f1e6; border-color: #b8dcc3; color: #1b5a37; }
.alert-info { background: #e5ecf6; border-color: #bccbe2; color: #23436e; }
.alert-warning { background: #fbf0d8; border-color: #ebd29c; color: #5e3f06; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 46px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: #1f5242; }
.btn-secondary { background: #fff; color: var(--pine); border-color: #bcc9c1; }
.btn-secondary:hover, .btn-secondary:focus-visible { background: #f2f6f3; }
.btn-ghost { background: transparent; color: var(--pine); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: #f1efe5; }
.btn-danger { background: #a3283e; color: #fff; }
.btn-danger:hover, .btn-danger:focus-visible { background: #8a1f33; }
.btn-small { min-height: 38px; padding: 6px 14px; font-size: .9rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-footer { margin: 22px 0 0; color: var(--muted); line-height: 1.9; }
.form-footer a { color: var(--pine); font-weight: 600; }
.inline-form { display: inline; margin: 0; }
.form-inline-row { grid-template-columns: 1fr auto; align-items: end; border-top: 1px solid var(--card-border); padding-top: 20px; }

.tag {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: .78rem;
    font-weight: 600;
    background: #f1efe5;
    color: #4b4a45;
}
.tag-role { background: #f6e2e6; color: #7a2337; }
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.admin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 18px 20px;
}
.admin-row-title { margin: 0 0 8px; font-size: 1.25rem; }
.admin-row-title a { color: var(--pine); text-decoration: none; }
.admin-row-title a:hover { text-decoration: underline; }
.admin-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; }
.admin-row-meta a { color: var(--pine); font-size: .9rem; }
.admin-row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.group-admin-head { margin-bottom: 18px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--card-border); margin-bottom: 22px; }
.tabs a {
    padding: 10px 16px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.tabs a:hover { color: var(--pine); }
.tabs a[aria-current=page] { color: var(--pine); border-bottom-color: var(--wine); }
.share-box {
    display: grid;
    gap: 4px;
    background: #f7f4ea;
    border: 1px dashed #d8cfb5;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
}
.share-label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.share-url { color: var(--wine); font-weight: 600; word-break: break-all; }
.people-list { list-style: none; margin: 18px 0; padding: 0; }
.people-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--card-border);
}
.people-email { flex: 1 1 220px; font-weight: 600; word-break: break-all; }

/* Stranica grupe: prijava i popis imena */
.group-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 28px; align-items: start; }
.group-main { display: grid; gap: 24px; min-width: 0; }
.group-side { position: sticky; top: 20px; }
.signup-panel { border-top: 6px solid var(--gold); }
.signup-success { margin-bottom: 24px; }
.small { font-size: .9rem; }
.names-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 24px 26px;
}
.names-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    columns: 2 220px;
    column-gap: 24px;
}
.names-list li {
    break-inside: avoid;
    padding: 7px 0;
    border-bottom: 1px dashed #e5e0d1;
}
.names-list li::before { content: '🎁'; margin-right: 8px; font-size: .85em; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.count-pill {
    display: inline-block;
    min-width: 2em;
    text-align: center;
    background: #f1efe5;
    border-radius: 999px;
    padding: 1px 10px;
    font-size: .95rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    vertical-align: middle;
}
.panel-subtitle { font-size: 1.15rem; margin: 0; }
.add-participant { border-top: 1px solid var(--card-border); padding-top: 22px; margin-top: 8px; }
.people-name { flex: 1 1 180px; font-weight: 700; }
.participant-row .people-email { font-weight: 400; color: var(--muted); flex: 2 1 220px; }
.row-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.confirm-delete { position: relative; }
.confirm-delete summary { list-style: none; }
.confirm-delete summary::-webkit-details-marker { display: none; }
.confirm-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #e6bac4;
    background: #fbeaed;
    border-radius: 10px;
}

/* Zabrane i izvlačenje */
.field select {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1px solid #c9c4b4;
    border-radius: 10px;
    padding: 11px 13px;
    min-height: 46px;
}
.exclusion-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
.exclusion-arrow { padding-bottom: 12px; color: var(--wine); font-weight: 700; white-space: nowrap; }
.exclusion-text { flex: 1 1 260px; }
.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 18px; counter-reset: step; flex-wrap: wrap; }
.steps li {
    counter-increment: step;
    flex: 1 1 150px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f1efe5;
    color: var(--muted);
    font-weight: 600;
    font-size: .92rem;
}
.steps li::before { content: counter(step) '. '; }
.steps li.done { background: #e2f1e6; color: #1b5a37; }
.steps li.done::before { content: '✓ '; }
.steps li.current { background: var(--pine); color: #fff; }
.reopen-form { margin-top: 14px; }
.pairs-list { margin: 16px 0 0; padding-left: 1.6em; display: grid; gap: 6px; }
.pairs-list li { padding: 8px 4px; border-bottom: 1px dashed #e5e0d1; }
.pair-giver { font-weight: 700; }
.pair-arrow { color: var(--wine); font-weight: 700; margin: 0 6px; }

/* Poruke, predlošci i pregled e-maila */
.panel-gap { margin-top: 22px; }
.stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.stat {
    flex: 1 1 110px;
    background: #f7f4ea;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--muted);
}
.stat strong { display: block; font-size: 1.5rem; color: var(--ink); font-family: Georgia, serif; }
.stat-ok strong { color: #1b5a37; }
.stat-bad { border-color: #e6bac4; background: #fbeaed; }
.stat-bad strong { color: #a3283e; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th, .data-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--card-border); }
.data-table thead th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.data-table tbody th { font-weight: 600; }
.data-table th, .data-table td { overflow-wrap: normal; word-break: normal; }
.data-table td { width: 1%; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.data-table thead th:not(:first-child) { text-align: right; white-space: nowrap; }
.problems-title, .pairs-title { margin-top: 24px; }
.error-text { flex-basis: 100%; color: #7a2337; font-size: .88rem; }
.email-preview {
    margin: 4px 0 0;
    border: 1px dashed #c9c4b4;
    border-radius: 14px;
    padding: 14px;
    background: #fdfcf8;
}
.email-preview figcaption { margin-bottom: 12px; word-break: break-word; }
.email-preview-body { overflow-x: auto; }
.send-results { border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); padding: 18px 0; margin: 16px 0; display: grid; gap: 12px; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-link { display: inline-block; margin-left: 18px; font-size: .9rem; color: var(--muted) !important; }

.footer {
    background: #f1efe5;
    border-top: 1px solid #e5e0d1;
    text-align: center;
    padding: 26px 0;
    color: #5f6c64;
    font-size: .87rem;
}

@media (max-width: 900px) {
    .group-layout { grid-template-columns: 1fr; }
    .group-side { position: static; order: -1; }
}

@media (max-width: 640px) {
    .shell { width: min(100% - 32px, 1140px); }
    .topbar-inner { min-height: 68px; gap: 10px; }
    .brand { font-size: 1rem; }
    .organize-link { font-size: .78rem; padding: 7px 10px; }
    .nav-link, .nav-button { font-size: .85rem; padding: 6px 7px; }
    .panel { padding: 22px 18px; }
    .page-pad { padding: 30px 0 70px; }
    .admin-row { flex-direction: column; align-items: stretch; }
    .admin-row-actions { justify-content: flex-start; }
    .form-inline-row { grid-template-columns: 1fr; }
    .form-actions .btn { flex: 1 1 auto; }
    .section-top { display: block; }
    .hint { display: block; margin-top: 10px; }
    .groups { padding: 22px 0 60px; }
    .home-head { padding: 18px 0 18px; }
    .search { flex-basis: 100%; max-width: none; }
    .form-row-2, .organize-form .form-row-2 { grid-template-columns: 1fr; }
    .admin-link { display: block; margin: 12px 0 0; }
    .group-grid { grid-template-columns: 1fr; }
    .names-card { padding: 20px 18px; }
    .exclusion-grid { grid-template-columns: 1fr; }
    .exclusion-arrow { padding: 0; }
    .data-table { font-size: .88rem; }
    .data-table th, .data-table td { padding: 8px 6px; }
    .data-table thead th { font-size: .7rem; letter-spacing: .03em; }
    .group-hero { padding: 44px 0 40px; }
    .welcome-card { padding: 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .topbar::after { animation: none; }
    .group-card, .field-switch input, .field-switch input::after { transition: none; }
    .group-card:hover, .group-card:focus-visible { transform: none; }
}

/* My Secret Santa: hrvatski podnaslov "Tajni prijatelj" u zaglavlju (ne povećava visinu zaglavlja) i potpis u podnožju */
.brand-text { display: inline-flex; flex-direction: column; vertical-align: middle; line-height: 1.12; }
.brand-sub { font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); margin-top: 2px; }
.footer-brand { white-space: nowrap; margin-left: 1.25em; }
@media (max-width: 640px) {
    .brand-sub { font-size: .58rem; letter-spacing: .12em; }
    .footer-brand { display: block; margin: 4px 0 0; }
}
