/* ==========================================================================
   TPH Mobile - shared design system
   Indigo -> violet, glass surfaces, light theme.
   Loaded after Bootstrap 5.3 so it can override component defaults.
   ========================================================================== */

:root {
    /* brand ramp */
    --brand-1: #4f46e5;   /* indigo 600 */
    --brand-2: #6d3fef;
    --brand-3: #7c3aed;   /* violet 600 */
    --brand-4: #a855f7;   /* purple 500 */
    --brand-ink: #312e81;

    /* neutrals */
    --bg:        #f5f6fb;
    --bg-tint:   #eef0fa;
    --surface:   #ffffff;
    --glass:     rgba(255, 255, 255, .72);
    --ink:       #0f172a;
    --ink-2:     #334155;
    --muted:     #64748b;
    --line:      #e6e8f2;
    --line-soft: #f0f1f7;

    /* status */
    --ok:    #059669;
    --ok-bg: #ecfdf5;
    --warn:    #b45309;
    --warn-bg: #fffbeb;
    --bad:    #dc2626;
    --bad-bg: #fef2f2;
    --info:    #0369a1;
    --info-bg: #f0f9ff;

    /* elevation */
    --sh-1: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
    --sh-2: 0 4px 8px -2px rgba(16, 24, 40, .07), 0 2px 4px -2px rgba(16, 24, 40, .04);
    --sh-3: 0 12px 24px -6px rgba(16, 24, 40, .10), 0 4px 8px -4px rgba(16, 24, 40, .05);
    --sh-4: 0 24px 48px -12px rgba(79, 70, 229, .22), 0 8px 16px -8px rgba(16, 24, 40, .08);

    --r-sm: 8px;
    --r:    12px;
    --r-lg: 16px;
    --r-xl: 22px;

    --ease-spring: cubic-bezier(.22, 1, .36, 1);
    --ease-out:    cubic-bezier(.16, 1, .3, 1);

    --header-h: 64px;
}

/* --------------------------------------------------------------- base --- */

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

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

body {
    margin: 0;
    background: var(--bg);
    background-image:
        radial-gradient(1100px 620px at 12% -8%,  rgba(99, 102, 241, .13), transparent 60%),
        radial-gradient(900px  520px at 92%  0%,  rgba(168,  85, 247, .11), transparent 62%),
        radial-gradient(800px  600px at 50% 110%, rgba(79,  70, 229, .07), transparent 60%);
    background-attachment: fixed;
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 { font-weight: 650; letter-spacing: -.018em; color: var(--ink); }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }

a { color: var(--brand-1); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-3); }

code, .mono, .tabular {
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
    font-variant-numeric: tabular-nums;
}

::selection { background: rgba(124, 58, 237, .18); }

/* ------------------------------------------------------------- header --- */

.app-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(105deg, var(--brand-1) 0%, var(--brand-2) 42%, var(--brand-3) 72%, var(--brand-4) 100%);
    background-size: 180% 180%;
    animation: hdrShift 18s ease-in-out infinite;
    box-shadow: 0 6px 24px -8px rgba(79, 70, 229, .45), inset 0 -1px 0 rgba(255, 255, 255, .14);
    overflow: hidden;
}
@keyframes hdrShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* slow diagonal sheen sweeping across the bar */
.app-header::after {
    content: '';
    position: absolute;
    top: -60%; left: -30%;
    width: 40%; height: 220%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16), transparent);
    transform: skewX(-18deg);
    animation: sheen 9s ease-in-out infinite;
    pointer-events: none;
}
@keyframes sheen {
    0%          { left: -35%; opacity: 0; }
    18%         { opacity: 1; }
    55%, 100%   { left: 115%; opacity: 0; }
}

.app-header__inner {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    min-height: var(--header-h);
    padding: .55rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: -.02em;
    font-size: 1.06rem;
    white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand__mark {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .17);
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
    font-size: .95rem;
    flex: 0 0 auto;
}
.brand__sub {
    font-weight: 500;
    opacity: .82;
    font-size: .82rem;
    letter-spacing: .01em;
    border-left: 1px solid rgba(255, 255, 255, .3);
    padding-left: .6rem;
    margin-left: .1rem;
}

.app-nav { display: flex; align-items: center; gap: .45rem; }

.navpill {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    padding: .46rem .85rem;
    border-radius: 999px;
    color: #fff;
    font-size: .875rem;
    font-weight: 550;
    white-space: nowrap;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background .18s ease, transform .18s var(--ease-spring), border-color .18s ease;
}
.navpill:hover {
    color: #fff;
    background: rgba(255, 255, 255, .26);
    border-color: rgba(255, 255, 255, .4);
    transform: translateY(-1px);
}
.navpill:active { transform: translateY(0); }
.navpill--active { background: rgba(255, 255, 255, .3); border-color: rgba(255, 255, 255, .55); }
.navpill--ghost { background: transparent; border-color: rgba(255, 255, 255, .3); }
.navpill--ghost:hover { background: rgba(255, 255, 255, .18); }

.app-user {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255, 255, 255, .95);
    font-size: .85rem;
    font-weight: 550;
}
.app-user__avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .34);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .02em;
}

@media (max-width: 640px) {
    .app-header__inner { padding: .5rem .8rem; }
    .brand__sub, .app-user__name { display: none; }
    .navpill span.navpill__label { display: none; }
    .navpill { padding: .46rem .6rem; }
}

/* --------------------------------------------------------------- page --- */

.page { max-width: 1240px; margin: 0 auto; padding: 1.6rem 1.1rem 4rem; }
.page--narrow { max-width: 760px; }
.page--mid    { max-width: 980px; }

.page-hero { margin-bottom: 1.5rem; }
.page-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .7rem;
    font-weight: 700;
    color: var(--brand-3);
    margin-bottom: .3rem;
}
.page-hero__title {
    font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -.028em;
    margin: 0 0 .3rem;
    line-height: 1.15;
}
.page-hero__title .grad {
    background: linear-gradient(96deg, var(--brand-1), var(--brand-3) 55%, var(--brand-4));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.page-hero__sub { color: var(--muted); margin: 0; font-size: 1rem; }

/* -------------------------------------------------------------- cards --- */

.card,
.panel {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-2);
}

.panel { overflow: hidden; }
.panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    padding: .95rem 1.15rem;
    background: linear-gradient(180deg, #fcfcff, #f7f8fd);
    border-bottom: 1px solid var(--line-soft);
    font-weight: 640;
    color: var(--ink);
}
.panel__head i { color: var(--brand-3); }
.panel__body { padding: 1.15rem; }
.panel__note { color: var(--muted); font-size: .84rem; margin: .85rem 0 0; }

/* glass tile used on the dashboard */
.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    padding: 1.7rem 1.1rem;
    min-height: 148px;
    text-align: center;
    border-radius: var(--r-xl);
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: var(--sh-2);
    color: var(--ink);
    overflow: hidden;
    isolation: isolate;
    transition: transform .32s var(--ease-spring), box-shadow .32s var(--ease-out);
}
/* gradient ring revealed on hover */
.tile::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 2;
    pointer-events: none;
}
/* soft wash behind the content */
.tile::after {
    content: '';
    position: absolute;
    inset: auto -30% -60% -30%;
    height: 130%;
    background: radial-gradient(closest-side, rgba(124, 58, 237, .16), transparent);
    opacity: 0;
    transition: opacity .35s ease;
    z-index: -1;
}
.tile:hover, .tile:focus-visible {
    transform: translateY(-6px) scale(1.017);
    box-shadow: var(--sh-4);
    color: var(--ink);
}
.tile:hover::before, .tile:focus-visible::before { opacity: 1; }
.tile:hover::after,  .tile:focus-visible::after  { opacity: 1; }
.tile:active { transform: translateY(-2px) scale(1.005); }

.tile__icon {
    width: 58px; height: 58px;
    display: grid; place-items: center;
    border-radius: 17px;
    font-size: 1.42rem;
    color: #fff;
    background: linear-gradient(140deg, var(--brand-1), var(--brand-3));
    box-shadow: 0 10px 20px -8px rgba(79, 70, 229, .65), inset 0 1px 0 rgba(255, 255, 255, .3);
    transition: transform .32s var(--ease-spring);
}
.tile:hover .tile__icon { transform: scale(1.08) rotate(-4deg); }

.tile__label {
    font-weight: 640;
    font-size: .95rem;
    letter-spacing: -.01em;
    line-height: 1.3;
}
.tile__meta { font-size: .76rem; color: var(--muted); }

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.05rem;
}
@media (max-width: 420px) {
    .tile-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
    .tile { min-height: 128px; padding: 1.3rem .8rem; }
    .tile__icon { width: 48px; height: 48px; font-size: 1.18rem; }
}

/* --------------------------------------------------------------- stat --- */

.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1rem 1.15rem;
    box-shadow: var(--sh-1);
}
.stat__label {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .085em;
    font-weight: 700; color: var(--muted); margin-bottom: .3rem;
}
.stat__value { font-size: 1.65rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__value--grad {
    background: linear-gradient(96deg, var(--brand-1), var(--brand-4));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ------------------------------------------------------------ buttons --- */

.btn {
    --bs-btn-focus-box-shadow: 0 0 0 3px rgba(99, 102, 241, .28);
    border-radius: 10px;
    font-weight: 570;
    letter-spacing: -.005em;
    padding: .5rem 1rem;
    transition: transform .16s var(--ease-spring), box-shadow .2s ease, filter .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary,
.btn-brand {
    color: #fff;
    border: none;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
    box-shadow: 0 6px 14px -6px rgba(79, 70, 229, .7);
}
.btn-primary:hover, .btn-brand:hover,
.btn-primary:focus, .btn-brand:focus {
    color: #fff;
    filter: brightness(1.07);
    box-shadow: 0 10px 20px -8px rgba(79, 70, 229, .8);
}
.btn-primary:disabled, .btn-brand:disabled { background: #c7cae4; box-shadow: none; }

.btn-success { border: none; background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 6px 14px -6px rgba(5, 150, 105, .6); }
.btn-success:hover { filter: brightness(1.07); }
.btn-danger  { border: none; background: linear-gradient(135deg, #dc2626, #f43f5e); box-shadow: 0 6px 14px -6px rgba(220, 38, 38, .55); }
.btn-danger:hover { filter: brightness(1.07); }

.btn-outline-secondary {
    border-color: var(--line);
    color: var(--ink-2);
    background: #fff;
}
.btn-outline-secondary:hover {
    background: var(--bg-tint);
    border-color: #d6d9ea;
    color: var(--brand-1);
}
.btn-ghost {
    background: transparent; border: 1px solid var(--line); color: var(--ink-2);
}
.btn-ghost:hover { background: var(--bg-tint); color: var(--brand-1); }

.btn-icon { width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center; }

/* ------------------------------------------------------------- tables --- */

.table {
    --bs-table-bg: transparent;
    margin: 0;
    color: var(--ink-2);
    font-size: .9rem;
}
.table > thead > tr > th {
    background: linear-gradient(180deg, #fbfbff, #f5f6fc);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: .71rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .075em;
    padding: .72rem .9rem;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}
.table > tbody > tr > td {
    padding: .72rem .9rem;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: middle;
}
.table > tbody > tr { transition: background .14s ease; }
.table > tbody > tr:hover > td { background: rgba(99, 102, 241, .045); }
.table > tbody > tr:last-child > td { border-bottom: 0; }

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* inline-editable payroll cells */
td.cell-edit {
    cursor: text;
    border-radius: 6px;
    transition: box-shadow .15s ease, background .15s ease;
}
td.cell-edit:hover { background: rgba(99, 102, 241, .07); }
td.cell-edit:focus {
    outline: none;
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--brand-1);
}
td.cell-edit.is-saving { background: var(--info-bg); }
td.cell-edit.is-saved  { animation: cellOk 1.1s var(--ease-out); }
td.cell-edit.is-error  { animation: cellBad .5s ease; }
@keyframes cellOk  { 0% { background: rgba(16,185,129,.28); } 100% { background: transparent; } }
@keyframes cellBad {
    0%, 100% { transform: translateX(0); background: var(--bad-bg); }
    25% { transform: translateX(-4px); } 75% { transform: translateX(4px); }
}

/* ------------------------------------------------------------- badges --- */

.badge { font-weight: 620; letter-spacing: .01em; border-radius: 999px; padding: .34em .7em; font-size: .74rem; }
.pill { display: inline-flex; align-items: center; gap: .32rem; border-radius: 999px;
        padding: .26rem .62rem; font-size: .75rem; font-weight: 640; border: 1px solid transparent; }
.pill--ok   { background: var(--ok-bg);   color: var(--ok);   border-color: rgba(5,150,105,.2); }
.pill--warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(180,83,9,.2); }
.pill--bad  { background: var(--bad-bg);  color: var(--bad);  border-color: rgba(220,38,38,.2); }
.pill--info { background: var(--info-bg); color: var(--info); border-color: rgba(3,105,161,.2); }
.pill--mute { background: #f1f2f7; color: var(--muted); border-color: var(--line); }
.pill__dot  { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--live .pill__dot { animation: livePulse 1.8s ease-in-out infinite; }
@keyframes livePulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }

/* -------------------------------------------------------------- forms --- */

.form-label { font-size: .78rem; font-weight: 640; color: var(--ink-2); margin-bottom: .3rem; }
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid var(--line);
    padding: .55rem .8rem;
    font-size: .92rem;
    color: var(--ink);
    background-color: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand-1);
    box-shadow: 0 0 0 3.5px rgba(99, 102, 241, .16);
}
.form-control::placeholder { color: #a6acc4; }
.input-icon { position: relative; }
.input-icon > i {
    position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
    color: #9aa1bd; pointer-events: none; font-size: .9rem;
}
.input-icon > .form-control { padding-left: 2.4rem; }

/* one-time-code entry */
.otp-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.9rem;
    letter-spacing: .5em;
    text-indent: .5em;
    text-align: center;
    padding: .7rem .5rem;
    border-radius: 14px;
    font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------- alerts --- */

.alert { border: 1px solid transparent; border-radius: var(--r); font-size: .9rem; padding: .8rem 1rem; }
.alert-success { background: var(--ok-bg);   border-color: rgba(5,150,105,.22);  color: #065f46; }
.alert-danger  { background: var(--bad-bg);  border-color: rgba(220,38,38,.22);  color: #991b1b; }
.alert-warning { background: var(--warn-bg); border-color: rgba(180,83,9,.22);   color: #92400e; }
.alert-info    { background: var(--info-bg); border-color: rgba(3,105,161,.22);  color: #075985; }

/* toast used for inline-save feedback */
.toast-slot {
    position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
    z-index: 1080; pointer-events: none; width: min(92vw, 420px);
}
.toast-msg {
    display: flex; align-items: center; gap: .6rem;
    padding: .7rem 1rem; border-radius: 12px;
    background: rgba(15, 23, 42, .93);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    color: #fff; font-size: .88rem; font-weight: 550;
    box-shadow: var(--sh-3);
    animation: toastIn .35s var(--ease-spring);
}
.toast-msg--ok  { background: rgba(4, 120, 87, .95); }
.toast-msg--bad { background: rgba(185, 28, 28, .95); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- tabs --- */

.nav-tabs { border-bottom: 1px solid var(--line); gap: .25rem; }
.nav-tabs .nav-link {
    border: none;
    border-bottom: 2.5px solid transparent;
    border-radius: 0;
    color: var(--muted);
    font-weight: 600;
    font-size: .92rem;
    padding: .6rem .95rem;
    transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.nav-tabs .nav-link:hover { color: var(--brand-1); background: rgba(99,102,241,.05); }
.nav-tabs .nav-link.active {
    color: var(--brand-1);
    background: transparent;
    border-bottom-color: var(--brand-1);
}

/* ------------------------------------------------------------- modals --- */

.modal-content { border: none; border-radius: var(--r-xl); box-shadow: var(--sh-4); overflow: hidden; }
.modal-header {
    border-bottom: 1px solid var(--line-soft);
    padding: 1.05rem 1.25rem;
    background: linear-gradient(180deg, #fcfcff, #f7f8fd);
}
.modal-title { font-weight: 660; font-size: 1.06rem; }
.modal-body { padding: 1.25rem; }
.modal-footer { border-top: 1px solid var(--line-soft); padding: .9rem 1.25rem; }
.modal-icon {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    color: #fff; font-size: 1rem; flex: 0 0 auto;
    background: linear-gradient(140deg, var(--brand-1), var(--brand-3));
    box-shadow: 0 8px 16px -8px rgba(79,70,229,.7);
}

/* ------------------------------------------------------------- motion --- */

@keyframes riseIn {
    from { opacity: 0; transform: translateY(16px) scale(.985); }
    to   { opacity: 1; transform: none; }
}
.rise { opacity: 0; animation: riseIn .62s var(--ease-spring) forwards; }
.rise-1  { animation-delay: .04s; } .rise-2  { animation-delay: .09s; }
.rise-3  { animation-delay: .14s; } .rise-4  { animation-delay: .19s; }
.rise-5  { animation-delay: .24s; } .rise-6  { animation-delay: .29s; }
.rise-7  { animation-delay: .34s; } .rise-8  { animation-delay: .39s; }
.rise-9  { animation-delay: .44s; } .rise-10 { animation-delay: .49s; }
.rise-11 { animation-delay: .54s; } .rise-12 { animation-delay: .59s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn .5s ease forwards; }

/* skeleton shimmer for loading states */
.skeleton {
    background: linear-gradient(90deg, #eef0f7 25%, #f7f8fc 37%, #eef0f7 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Anyone who has asked their OS to reduce motion gets none of the above. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .rise { opacity: 1; transform: none; }
    .app-header, .app-header::after { animation: none; }
}

/* -------------------------------------------------------------- misc --- */

.divider { height: 1px; background: var(--line); border: 0; margin: 1.15rem 0; }
.text-muted { color: var(--muted) !important; }
.small, small { font-size: .82rem; }

.empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}
.empty__icon {
    width: 62px; height: 62px; margin: 0 auto .9rem;
    border-radius: 18px; display: grid; place-items: center;
    background: var(--bg-tint); color: var(--brand-3); font-size: 1.5rem;
}

.app-footer {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.5rem 1.1rem 2.5rem;
    color: #9aa1bd;
    font-size: .78rem;
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}

/* focus visibility for keyboard users */
:focus-visible { outline: 2.5px solid var(--brand-3); outline-offset: 2px; border-radius: 4px; }

@media print {
    .app-header, .app-nav, .app-footer, .btn { display: none !important; }
    body { background: #fff; }
    .panel, .card { box-shadow: none; border-color: #ccc; }
}
