:root {
    --bg: #070707;
    --card: #121212;
    --text: #f7f7f7;
    --muted: #b5b5b5;
    --orange: #f58220;
    --orange-soft: #ff9a3c;
    --danger: #ff6b6b;
    --border: rgba(255, 255, 255, 0.08);
    --input: #1a1a1a;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% -10%, rgba(245, 130, 32, 0.22), transparent 42%),
        radial-gradient(circle at 90% 90%, rgba(245, 130, 32, 0.08), transparent 30%);
}

.page {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 36px max(24px, env(safe-area-inset-right)) 64px max(24px, env(safe-area-inset-left));
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

.hero,
.form-shell,
.errors {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    max-width: 100%;
    box-sizing: border-box;
}

.hero {
    text-align: center;
    padding: 28px 24px 24px;
    margin-bottom: 18px;
    background: #000;
}

.logo {
    display: block;
    width: min(280px, 70%);
    height: auto;
    aspect-ratio: 256 / 106;
    margin: 0 auto 18px;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--orange);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 12px;
}

h1 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 800;
}

.subtitle,
.muted,
.success p {
    color: var(--muted);
    margin: 0;
}

.date-badge {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 18px;
    padding: 10px 18px;
    border: 1px solid rgba(245, 130, 32, 0.35);
    border-radius: 999px;
    background: rgba(245, 130, 32, 0.08);
}

.date-badge span {
    color: var(--muted);
    font-size: 12px;
}

.date-badge strong {
    color: var(--orange-soft);
    font-size: 16px;
}

.form-shell {
    padding: 28px 28px;
}

.field {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

label span {
    color: var(--orange);
}

.field-hint {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.turnstile-wrap {
    display: flex;
    justify-content: flex-start;
    min-height: 65px;
    max-width: 100%;
    overflow-x: auto;
}

.turnstile-wrap .cf-turnstile,
.turnstile-wrap iframe {
    max-width: 100%;
}

select[data-locked="1"] {
    cursor: not-allowed;
    opacity: 0.85;
}

#name.is-matched,
#department.is-matched {
    color: #ec761e;
    font-weight: 700;
    border-color: rgba(236, 118, 30, 0.55);
}

#department.is-matched option {
    color: var(--text);
    font-weight: 400;
}

input[type="text"],
input[type="date"],
input[type="time"],
input[type="password"],
input[type="email"],
input[type="search"],
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 16px;
    outline: none;
    background: var(--input);
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
    color: #7d7d7d;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.18);
}

select,
input[type="date"],
input[type="time"] {
    color-scheme: dark;
    min-width: 0;
    max-width: 100%;
}

textarea {
    resize: vertical;
    min-height: 96px;
}

.time-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    min-width: 0;
    width: 100%;
}

.time-grid > * {
    min-width: 0;
    width: 100%;
}

@media (min-width: 520px) {
    .time-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 16px;
    }
}

button,
.success a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, var(--orange), #ff7a00);
    color: #111;
    border: none;
    border-radius: 14px;
    padding: 14px 24px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    box-shadow: 0 10px 24px rgba(245, 130, 32, 0.28);
}

button:disabled {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.excel-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--orange);
    font-weight: 700;
    text-decoration: none;
}

.form-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.form-links .excel-link {
    margin-top: 16px;
}

.actions {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.success a.secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

.success a {
    margin-top: 22px;
}

.errors {
    color: var(--danger);
    padding: 16px 20px;
    margin-bottom: 16px;
    border-color: rgba(255, 107, 107, 0.35);
}

.errors p {
    margin: 4px 0;
}

.hidden {
    display: none;
}

.success {
    text-align: center;
    padding: 42px 28px;
}

.success h1 {
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .page {
        padding: 20px max(22px, env(safe-area-inset-right)) 48px max(22px, env(safe-area-inset-left));
    }

    .page-wide {
        padding-left: max(18px, env(safe-area-inset-left));
        padding-right: max(18px, env(safe-area-inset-right));
    }

    h1 {
        font-size: 22px;
    }

    .logo {
        width: min(220px, 62%);
        margin-bottom: 12px;
    }

    .hero,
    .form-shell,
    .errors {
        border-radius: 18px;
        padding: 22px 20px;
        width: 100%;
        max-width: 100%;
    }

    .hero {
        padding: 22px 20px 20px;
    }

    input[type="text"],
    input[type="date"],
    input[type="time"],
    input[type="password"],
    input[type="email"],
    input[type="search"],
    select,
    textarea {
        padding: 14px 16px;
        max-width: 100%;
    }

    .filter-bar,
    .dash-filter-bar,
    .track-filter-bar,
    .employee-filter-bar {
        grid-template-columns: 1fr;
    }

    .filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    a.filter-chip,
    button.filter-chip {
        width: 100%;
        min-height: 42px;
    }

    .bulk-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .reason-field,
    .bulk-bar .btn-sm {
        width: 100%;
        min-height: 44px;
        font-size: 14px;
    }

    .inline-actions {
        width: 100%;
    }

    .inline-actions .btn-sm {
        flex: 1;
        min-height: 42px;
        font-size: 13px;
    }

    .table-wrap {
        overflow: visible;
    }

    table thead {
        display: none;
    }

    table,
    tbody {
        display: block;
        width: 100%;
    }

    tbody tr {
        display: block;
        background: #141414;
        border: 1px solid var(--border);
        border-radius: 16px;
        margin-bottom: 12px;
        padding: 6px 2px;
    }

    tbody tr[hidden] {
        display: none !important;
    }

    th,
    td {
        white-space: normal;
    }

    tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        border-bottom: 1px solid var(--border);
        padding: 10px 12px;
    }

    tbody td:last-child {
        border-bottom: none;
    }

    tbody td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        flex: 0 0 34%;
        padding-top: 2px;
    }

    tbody td.card-check {
        justify-content: flex-start;
        padding-bottom: 4px;
    }

    tbody td.card-check::before {
        content: none;
    }

    tbody td.card-actions {
        display: block;
    }

    tbody td.card-actions::before {
        display: block;
        margin-bottom: 8px;
    }

    .track-toolbar .filters {
        margin-bottom: 4px;
    }

    .track-filter-bar button {
        min-height: 46px;
    }

    .track-card-head {
        align-items: flex-start;
    }

    .track-card-head .badge {
        flex-shrink: 0;
    }
}

@media (max-width: 640px) {
    .page {
        padding: 16px max(20px, env(safe-area-inset-right)) 40px max(20px, env(safe-area-inset-left));
    }

    .hero,
    .form-shell,
    .errors {
        padding: 20px 18px;
    }

    h1 {
        font-size: 22px;
    }

    input[type="date"],
    input[type="time"] {
        padding-inline: 12px;
    }
}

.page-wide {
    max-width: 1180px;
}

.dash-hero {
    margin-bottom: 18px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px 120px;
    gap: 10px;
    margin-bottom: 16px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.filter-bar > input[type="hidden"] {
    display: none;
}

.dash-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
}

.dash-filter-bar > input[type="search"],
.dash-filter-bar > select {
    flex: 1 1 160px;
    min-width: 140px;
    max-width: 100%;
}

.dash-filter-bar > .filter-date {
    flex: 1 1 150px;
    min-width: 150px;
    max-width: 220px;
}

.dash-filter-bar > button {
    flex: 0 1 120px;
    min-width: 110px;
    width: auto;
}

.employee-filter-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin: 12px 0 16px;
}

.filter-date {
    display: grid;
    gap: 4px;
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    min-width: 0;
}

.filter-date span {
    color: var(--muted);
    font-weight: 700;
}

.filter-date input,
.filter-date input[type="date"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 46px;
    box-sizing: border-box;
}

.filter-bar input,
.filter-bar select {
    min-width: 0;
}

.filter-bar button {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
}

.bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.reason-field {
    flex: 1 1 220px;
    width: auto;
    min-width: 180px;
    margin: 0;
    padding: 10px 12px;
    font-size: 14px;
}

.wrap-cell {
    white-space: normal;
    max-width: 180px;
}

td.card-name {
    color: var(--orange);
    font-weight: 800;
}

.select-all-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 700;
    cursor: pointer;
}

.row-check,
#select-all {
    width: 18px;
    height: 18px;
    accent-color: var(--orange);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}

a.filter-chip,
a.filter-chip:link,
a.filter-chip:visited,
button.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f7f7f7;
    background: #1a1a1a;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 14px;
    width: auto;
    box-shadow: none;
}

a.filter-chip:hover,
button.filter-chip:hover {
    border-color: var(--orange);
    color: #fff;
}

a.filter-chip.active,
a.filter-chip.active:visited,
button.filter-chip.active {
    color: #111;
    background: var(--orange);
    border-color: var(--orange);
}

.track-filter-bar {
    grid-template-columns: minmax(0, 1fr) 120px;
    margin-top: 12px;
    align-items: end;
}

.track-toolbar {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.track-count {
    color: var(--muted);
    font-weight: 700;
    margin: 16px 4px 10px;
}

.leave-balance-card {
    margin-top: 18px;
}

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

.leave-balance-grid > div {
    background: #101010;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 12px;
    text-align: center;
}

.leave-balance-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.leave-balance-grid strong {
    font-size: 28px;
    color: var(--accent);
    line-height: 1;
}

.employee-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(245, 130, 32, 0.28);
    border-radius: 14px;
    background: rgba(245, 130, 32, 0.07);
}

.employee-badge strong {
    display: block;
    font-size: 17px;
    color: var(--text);
}

.employee-badge-label,
.employee-badge-meta {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.employee-badge-links {
    display: flex;
    gap: 14px;
    font-size: 13px;
}

.employee-badge-links a {
    color: var(--orange);
    text-decoration: none;
}

td.card-actions form + form {
    margin-top: 6px;
}

td.card-actions select[name="job_role"] {
    min-width: 150px;
}

.kpi-job-role {
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

.kpi-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.kpi-card-head .section-title {
    margin-bottom: 0;
}

.kpi-cycle {
    color: var(--muted);
    font-size: 13px;
}

.kpi-cycle-select {
    width: auto;
    max-width: 100%;
    padding: 7px 12px;
    font-size: 13px;
    border-radius: 999px;
}

.kpi-panel[hidden] {
    display: none;
}

.kpi-overall {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(245, 130, 32, 0.28);
    border-radius: 12px;
    background: rgba(245, 130, 32, 0.07);
}

.kpi-overall-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.kpi-overall-meta {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.kpi-overall-value {
    font-size: 26px;
    line-height: 1;
    color: var(--orange);
}

.kpi-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0 12px;
}

.kpi-hero-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.kpi-hero-value {
    font-size: 44px;
    line-height: 1;
    color: var(--orange);
}

.kpi-badge {
    border: 1px solid var(--border);
    background: #101010;
    color: var(--muted);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
}

.kpi-badge-full {
    color: #3ddc84;
    border-color: rgba(61, 220, 132, 0.35);
    background: rgba(61, 220, 132, 0.08);
}

.kpi-bar {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: #1c1c1c;
    overflow: visible;
}

.kpi-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--orange), var(--orange-soft));
}

.kpi-bar > span.kpi-bar-full {
    background: linear-gradient(90deg, #22b566, #3ddc84);
}

.kpi-bar-legend {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 11px;
    margin: 8px 0 18px;
}

.kpi-criteria {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.kpi-criteria li {
    background: #101010;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
}

.kpi-criteria-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.kpi-criteria-label {
    font-size: 14px;
    color: var(--text);
}

.kpi-criteria-en {
    display: block;
    font-size: 11px;
    color: var(--muted);
    text-align: right;
}

.kpi-criteria-percent {
    display: block;
    margin-top: 2px;
    font-size: 15px;
    font-weight: 700;
    color: var(--orange);
}

.kpi-criteria-score {
    font-size: 18px;
    font-weight: 700;
    color: var(--orange);
    white-space: nowrap;
}

.kpi-criteria-score small {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
}

.kpi-mini-bar {
    height: 5px;
    border-radius: 999px;
    background: #1c1c1c;
    overflow: hidden;
}

.kpi-mini-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--orange);
    margin-right: auto;
}

.kpi-note {
    margin-top: 14px;
}

.leave-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 16px;
}

.leave-days-input {
    max-width: 90px;
}

.track-list {
    display: grid;
    gap: 12px;
}

.track-card {
    background: #141414;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px 16px 10px;
}

.track-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.track-card-head strong {
    font-size: 16px;
    line-height: 1.35;
}

.track-meta {
    display: grid;
    margin-top: 8px;
}

.track-meta > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}

.track-meta > div:last-child {
    border-bottom: none;
}

.track-meta span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex: 0 0 34%;
    padding-top: 2px;
}

.track-meta strong {
    font-weight: 600;
    text-align: right;
    font-size: 14px;
    line-height: 1.4;
}

.track-card p {
    margin: 4px 0;
    color: var(--muted);
    font-size: 14px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    white-space: nowrap;
}

th {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
}

.badge-pending {
    background: rgba(245, 130, 32, 0.16);
    color: var(--orange-soft);
}

.badge-approved {
    background: rgba(46, 204, 113, 0.16);
    color: #2ecc71;
}

.badge-rejected {
    background: rgba(255, 107, 107, 0.16);
    color: var(--danger);
}

.inline-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    width: auto;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 10px;
    box-shadow: none;
}

.btn-approve {
    background: #2ecc71;
    color: #07210f;
}

.btn-reject {
    background: var(--danger);
    color: #fff;
}

.success-msg {
    color: #2ecc71;
    padding: 16px 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(46, 204, 113, 0.35);
}

.empty-state {
    color: var(--muted);
    margin: 8px 0 4px;
    padding: 18px 4px;
}

.reject-reason {
    color: var(--danger) !important;
    font-weight: 600;
}

/* Desktop filter grids are defined after the earlier 900px query, so
   mobile stacking must be repeated here to win cascade. */
@media (max-width: 900px) {
    .form-shell {
        overflow-x: hidden;
        min-width: 0;
    }

    .filter-bar,
    .dash-filter-bar,
    .track-filter-bar,
    .employee-filter-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
        min-width: 0;
    }

    .dash-filter-bar > input[type="search"],
    .dash-filter-bar > select,
    .dash-filter-bar > .filter-date,
    .dash-filter-bar > button {
        flex: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .filter-bar > *,
    .dash-filter-bar > *,
    .track-filter-bar > *,
    .employee-filter-bar > * {
        min-width: 0;
        max-width: 100%;
    }

    .filter-span,
    .track-filter-bar button {
        grid-column: 1 / -1;
    }

    .filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    a.filter-chip,
    button.filter-chip {
        width: 100%;
        min-height: 42px;
    }

    .bulk-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .reason-field {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        min-height: 44px;
    }

    .wrap-cell {
        max-width: none;
    }

    .table-wrap {
        overflow: visible;
        width: 100%;
        min-width: 0;
    }

    table,
    tbody,
    tbody tr {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    table thead {
        display: none;
    }

    tbody tr {
        background: #141414;
        border: 1px solid var(--border);
        border-radius: 16px;
        margin-bottom: 12px;
        padding: 8px 6px;
        box-sizing: border-box;
    }

    tbody tr[hidden] {
        display: none !important;
    }

    th,
    td {
        white-space: normal;
    }

    tbody td {
        display: grid;
        grid-template-columns: 7.2rem minmax(0, 1fr);
        align-items: start;
        column-gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-bottom: 1px solid var(--border);
        padding: 10px 8px;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    tbody td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        white-space: normal;
        line-height: 1.3;
        padding-top: 2px;
    }

    tbody td.card-check {
        display: flex;
        justify-content: flex-start;
        padding-bottom: 4px;
    }

    tbody td.card-check::before {
        content: none;
    }

    tbody td.card-actions {
        display: block;
    }

    tbody td.card-actions::before {
        display: block;
        margin-bottom: 8px;
    }

    tbody td.card-name {
        color: var(--orange);
        font-size: 16px;
        font-weight: 800;
    }
}

.pwa-install-wrap {
    margin-top: 14px;
    text-align: center;
}

.pwa-install {
    width: auto;
    min-width: 180px;
    margin: 0 auto;
    padding: 12px 22px;
    font-size: 15px;
}

.pwa-ios-hint {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.section-title {
    margin: 0 0 16px;
    font-size: 18px;
}

.summary-toggle > summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    cursor: pointer;
    list-style: none;
}

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

.summary-toggle > summary .section-title {
    margin: 0;
    font-weight: 700;
}

.summary-toggle > summary .section-title::before {
    content: "▸";
    display: inline-block;
    margin-right: 8px;
    color: var(--muted);
    transition: transform .15s ease;
}

.summary-toggle[open] > summary .section-title::before {
    transform: rotate(90deg);
}

.summary-toggle[open] > summary {
    margin-bottom: 12px;
}

.users-shell {
    margin-top: 18px;
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.inline-form input,
.inline-edit {
    min-width: 0;
    flex: 1;
    margin: 0;
}

.date-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.date-chips .badge {
    font-weight: 700;
    font-size: 11px;
}
