/* Kanakdham — ops console.
   This screen is read at 21:25 (will tomorrow go out?) and at 06:10 (did it land?).
   Both times the room is dark and the reader is in a hurry, so: dark surface, mono numerals,
   one signal colour (dawn amber) reserved strictly for "you must act". */

:root {
    --ink: #ffffff;
    --surface: #ffffff;
    --surface-2: #fbf3f3;
    --line: #f0dede;
    --text: #2a1416;
    --muted: #9a7d80;
    --dawn: #d32f3a; /* brand red accent (was gold) */
    --landed: #2e9c66; /* delivered */
    --missed: #e08a2e; /* not delivered — amber, kept distinct from brand red */

    --display: 'Archivo', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    --r: 6px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: var(--display);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Every number in this app is a quantity, a rupee, or a time. All of them get the mono face,
   so columns line up and a missing digit is visible at a glance. */
.num, td.num, .metric-value, .clock {
    font-family: var(--mono);
    font-feature-settings: 'tnum' 1;
}

/* ---- shell ---- */
.shell {
    display: grid;
    grid-template-columns: 232px 1fr;
    min-height: 100vh;
}

.rail {
    background: linear-gradient(180deg, #d32f3a 0%, #b3232e 100%);
    border-right: 1px solid #a01f29;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: var(--dawn);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .04em;
    border-radius: var(--r);
}

.rail .brand-text {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    line-height: 1.2;
}

    .rail .brand-text em {
        font-style: normal;
        font-size: 11px;
        color: var(--muted);
        font-weight: 500;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rail-link {
    display: block;
    padding: 9px 12px;
    color: var(--muted);
    text-decoration: none;
    border-radius: var(--r);
    font-weight: 500;
    font-size: 14px;
}

    .rail-link:hover {
        background: var(--surface-2);
        color: var(--text);
    }

    .rail-link.active {
        background: var(--surface-2);
        color: var(--text);
        box-shadow: inset 2px 0 0 var(--dawn);
    }

.rail-foot {
    margin-top: auto;
    font-size: 12px;
    color: var(--muted);
    font-family: var(--mono);
}

.dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--landed);
    margin-right: 6px;
}

.stage {
    padding: 32px 36px 64px;
    max-width: 1180px;
}

/* ---- type ---- */
h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0 0 4px;
}

h2 {
    font-size: 15px;
    font-weight: 600;
    margin: 32px 0 12px;
    letter-spacing: .02em;
}

.sub {
    color: var(--muted);
    margin: 0 0 26px;
    font-size: 14px;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
}

/* ---- the cutoff clock: the signature element of this console ----
   Not decoration. It answers the only question that matters at 21:25. */
.cutoff {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--dawn);
    border-radius: var(--r);
    padding: 22px 26px;
    margin-bottom: 28px;
}

.clock {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1;
}

.cutoff-copy {
    color: var(--muted);
    font-size: 14px;
}

    .cutoff-copy strong {
        color: var(--text);
        font-weight: 600;
        display: block;
        margin-bottom: 2px;
    }

/* ---- metrics ---- */
.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.metric {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 16px 18px;
}

.metric-label {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: .02em;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    margin-top: 6px;
    letter-spacing: -.02em;
}

    .metric-value.landed {
        color: var(--landed);
    }

    .metric-value.missed {
        color: var(--missed);
    }

    .metric-value.dawn {
        color: var(--dawn);
    }

/* ---- tables ---- */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
}

th {
    text-align: left;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    font-weight: 500;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

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

tbody tr:hover {
    background: var(--surface-2);
}

td.num, th.num {
    text-align: right;
}

/* ---- status pills ---- */
.pill {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: .04em;
}

    .pill.pending {
        background: rgba(140,153,171,.15);
        color: var(--muted);
    }

    .pill.delivered {
        background: rgba(79,169,123,.15);
        color: var(--landed);
    }

    .pill.missed {
        background: rgba(242,163,60,.15);
        color: var(--missed);
    }

    .pill.credit {
        color: var(--landed);
    }

    .pill.debit {
        color: var(--missed);
    }

/* ---- controls ---- */
button, .btn {
    font-family: var(--display);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
}

    button:hover {
        border-color: var(--muted);
    }

    button.primary {
        background: var(--dawn);
        color: #fff;
        border-color: var(--dawn);
    }

        button.primary:hover {
            filter: brightness(1.08);
        }

    button:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

    button:focus-visible, a:focus-visible, input:focus-visible {
        outline: 2px solid var(--dawn);
        outline-offset: 2px;
    }

input[type=date], input[type=text], select {
    font-family: var(--mono);
    font-size: 14px;
    padding: 8px 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: var(--r);
}

.toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

/* ---- run result ---- */
.warnings {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--dawn);
    border-radius: var(--r);
    padding: 14px 18px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    max-height: 260px;
    overflow-y: auto;
}

    .warnings div {
        padding: 3px 0;
    }

.empty {
    color: var(--muted);
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
}

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

    .rail {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 12px 16px;
    }

        .rail nav {
            flex-direction: row;
            overflow-x: auto;
        }

    .rail-foot {
        display: none;
    }

    .stage {
        padding: 20px 16px 48px;
    }

    .cutoff {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* ---- catalog image thumbnails ---- */
.img-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

    .img-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .img-thumb span {
        font-size: 10px;
        color: var(--muted);
        text-align: center;
    }

    .img-thumb.sm {
        width: 40px;
        height: 40px;
        border-radius: 6px;
    }

/* ---- admin login ---- */
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--ink);
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.auth-title {
    font-family: var(--display, 'Archivo'), sans-serif;
    font-weight: 800;
    font-size: 20px;
}

.auth-sub {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.auth-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 16px 0 6px;
}

.auth-input {
    width: 100%;
    padding: 11px 13px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    font-family: var(--mono, monospace);
}

    .auth-input:focus {
        outline: none;
        border-color: var(--dawn);
        box-shadow: 0 0 0 3px rgba(233,185,73,.2);
    }

.auth-btn {
    width: 100%;
    margin-top: 22px;
    padding: 12px;
    background: var(--dawn);
    color: var(--ink);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

    .auth-btn:hover {
        filter: brightness(1.06);
    }

.auth-error {
    background: rgba(224,87,75,.12);
    color: var(--missed);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 8px;
}

.rail-user {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.rail-logout {
    background: none;
    border: 1px solid var(--line);
    color: var(--muted);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    margin-bottom: 12px;
}

    .rail-logout:hover {
        border-color: var(--muted);
        color: var(--text);
    }

/* ---- banner thumbnails (wide) ---- */
.banner-thumb {
    width: 200px;
    height: 84px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    overflow: hidden;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

    .banner-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .banner-thumb span {
        font-size: 11px;
        color: var(--muted);
    }

    .banner-thumb.sm {
        width: 120px;
        height: 50px;
        border-radius: 6px;
    }

/* ---- small inline upload button ---- */
.mini-upload {
    display: inline-block;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
}

    .mini-upload:hover {
        border-color: var(--muted);
    }


/* ---- red+white: sidebar contrast ---- */
.rail .brand-text {
    color: #fff;
}

    .rail .brand-text em {
        color: rgba(255,255,255,.7);
    }

.rail-link {
    color: rgba(255,255,255,.82);
}

    .rail-link:hover {
        background: rgba(255,255,255,.12);
        color: #fff;
    }

    .rail-link.active {
        background: rgba(255,255,255,.18);
        color: #fff;
        box-shadow: inset 2px 0 0 #fff;
    }

.rail-foot {
    color: rgba(255,255,255,.7);
}

.rail-user {
    color: #fff;
}

.rail-logout {
    border-color: rgba(255,255,255,.4);
    color: rgba(255,255,255,.85);
}

    .rail-logout:hover {
        border-color: #fff;
        color: #fff;
    }

.brand-mark {
    background: #fff !important;
    color: #d32f3a !important;
}

/* ---- danger (delete) buttons ---- */
button.danger {
    background: transparent;
    border: 1px solid rgba(211,47,58,.4);
    color: #d32f3a;
    margin-left: 6px;
}

    button.danger:hover {
        background: #d32f3a;
        border-color: #d32f3a;
        color: #fff;
    }

/* ---- inline delete confirmation ---- */
.confirm-text {
    font-size: 13px;
    font-weight: 600;
    color: #d32f3a;
    margin-right: 8px;
}
/* Kanakdham — ops console.
   This screen is read at 21:25 (will tomorrow go out?) and at 06:10 (did it land?).
   Both times the room is dark and the reader is in a hurry, so: dark surface, mono numerals,
   one signal colour (dawn amber) reserved strictly for "you must act". */

:root {
    --ink: #ffffff;
    --surface: #ffffff;
    --surface-2: #fbf3f3;
    --line: #f0dede;
    --text: #2a1416;
    --muted: #9a7d80;
    --dawn: #d32f3a; /* brand red accent (was gold) */
    --landed: #2e9c66; /* delivered */
    --missed: #e08a2e; /* not delivered — amber, kept distinct from brand red */

    --display: 'Archivo', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    --r: 6px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: var(--display);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Every number in this app is a quantity, a rupee, or a time. All of them get the mono face,
   so columns line up and a missing digit is visible at a glance. */
.num, td.num, .metric-value, .clock {
    font-family: var(--mono);
    font-feature-settings: 'tnum' 1;
}

/* ---- shell ---- */
.shell {
    display: grid;
    grid-template-columns: 232px 1fr;
    min-height: 100vh;
}

.rail {
    background: linear-gradient(180deg, #d32f3a 0%, #b3232e 100%);
    border-right: 1px solid #a01f29;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: var(--dawn);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .04em;
    border-radius: var(--r);
}

.rail .brand-text {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    line-height: 1.2;
}

    .rail .brand-text em {
        font-style: normal;
        font-size: 11px;
        color: var(--muted);
        font-weight: 500;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rail-link {
    display: block;
    padding: 9px 12px;
    color: var(--muted);
    text-decoration: none;
    border-radius: var(--r);
    font-weight: 500;
    font-size: 14px;
}

    .rail-link:hover {
        background: var(--surface-2);
        color: var(--text);
    }

    .rail-link.active {
        background: var(--surface-2);
        color: var(--text);
        box-shadow: inset 2px 0 0 var(--dawn);
    }

.rail-foot {
    margin-top: auto;
    font-size: 12px;
    color: var(--muted);
    font-family: var(--mono);
}

.dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--landed);
    margin-right: 6px;
}

.stage {
    padding: 32px 36px 64px;
    max-width: 1180px;
}

/* ---- type ---- */
h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0 0 4px;
}

h2 {
    font-size: 15px;
    font-weight: 600;
    margin: 32px 0 12px;
    letter-spacing: .02em;
}

.sub {
    color: var(--muted);
    margin: 0 0 26px;
    font-size: 14px;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
}

/* ---- the cutoff clock: the signature element of this console ----
   Not decoration. It answers the only question that matters at 21:25. */
.cutoff {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--dawn);
    border-radius: var(--r);
    padding: 22px 26px;
    margin-bottom: 28px;
}

.clock {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1;
}

.cutoff-copy {
    color: var(--muted);
    font-size: 14px;
}

    .cutoff-copy strong {
        color: var(--text);
        font-weight: 600;
        display: block;
        margin-bottom: 2px;
    }

/* ---- metrics ---- */
.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.metric {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 16px 18px;
}

.metric-label {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: .02em;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    margin-top: 6px;
    letter-spacing: -.02em;
}

    .metric-value.landed {
        color: var(--landed);
    }

    .metric-value.missed {
        color: var(--missed);
    }

    .metric-value.dawn {
        color: var(--dawn);
    }

/* ---- tables ---- */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
}

th {
    text-align: left;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    font-weight: 500;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

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

tbody tr:hover {
    background: var(--surface-2);
}

td.num, th.num {
    text-align: right;
}

/* ---- status pills ---- */
.pill {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: .04em;
}

    .pill.pending {
        background: rgba(140,153,171,.15);
        color: var(--muted);
    }

    .pill.delivered {
        background: rgba(79,169,123,.15);
        color: var(--landed);
    }

    .pill.missed {
        background: rgba(242,163,60,.15);
        color: var(--missed);
    }

    .pill.credit {
        color: var(--landed);
    }

    .pill.debit {
        color: var(--missed);
    }

/* ---- controls ---- */
button, .btn {
    font-family: var(--display);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
}

    button:hover {
        border-color: var(--muted);
    }

    button.primary {
        background: var(--dawn);
        color: #fff;
        border-color: var(--dawn);
    }

        button.primary:hover {
            filter: brightness(1.08);
        }

    button:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

    button:focus-visible, a:focus-visible, input:focus-visible {
        outline: 2px solid var(--dawn);
        outline-offset: 2px;
    }

input[type=date], input[type=text], select {
    font-family: var(--mono);
    font-size: 14px;
    padding: 8px 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: var(--r);
}

.toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

/* ---- run result ---- */
.warnings {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--dawn);
    border-radius: var(--r);
    padding: 14px 18px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    max-height: 260px;
    overflow-y: auto;
}

    .warnings div {
        padding: 3px 0;
    }

.empty {
    color: var(--muted);
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
}

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

    .rail {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 12px 16px;
    }

        .rail nav {
            flex-direction: row;
            overflow-x: auto;
        }

    .rail-foot {
        display: none;
    }

    .stage {
        padding: 20px 16px 48px;
    }

    .cutoff {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* ---- catalog image thumbnails ---- */
.img-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

    .img-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .img-thumb span {
        font-size: 10px;
        color: var(--muted);
        text-align: center;
    }

    .img-thumb.sm {
        width: 40px;
        height: 40px;
        border-radius: 6px;
    }

/* ---- admin login ---- */
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--ink);
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.auth-title {
    font-family: var(--display, 'Archivo'), sans-serif;
    font-weight: 800;
    font-size: 20px;
}

.auth-sub {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.auth-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 16px 0 6px;
}

.auth-input {
    width: 100%;
    padding: 11px 13px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    font-family: var(--mono, monospace);
}

    .auth-input:focus {
        outline: none;
        border-color: var(--dawn);
        box-shadow: 0 0 0 3px rgba(233,185,73,.2);
    }

.auth-btn {
    width: 100%;
    margin-top: 22px;
    padding: 12px;
    background: var(--dawn);
    color: var(--ink);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

    .auth-btn:hover {
        filter: brightness(1.06);
    }

.auth-error {
    background: rgba(224,87,75,.12);
    color: var(--missed);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 8px;
}

.rail-user {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.rail-logout {
    background: none;
    border: 1px solid var(--line);
    color: var(--muted);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    margin-bottom: 12px;
}

    .rail-logout:hover {
        border-color: var(--muted);
        color: var(--text);
    }

/* ---- banner thumbnails (wide) ---- */
.banner-thumb {
    width: 200px;
    height: 84px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    overflow: hidden;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

    .banner-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .banner-thumb span {
        font-size: 11px;
        color: var(--muted);
    }

    .banner-thumb.sm {
        width: 120px;
        height: 50px;
        border-radius: 6px;
    }

/* ---- small inline upload button ---- */
.mini-upload {
    display: inline-block;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
}

    .mini-upload:hover {
        border-color: var(--muted);
    }


/* ---- red+white: sidebar contrast ---- */
.rail .brand-text {
    color: #fff;
}

    .rail .brand-text em {
        color: rgba(255,255,255,.7);
    }

.rail-link {
    color: rgba(255,255,255,.82);
}

    .rail-link:hover {
        background: rgba(255,255,255,.12);
        color: #fff;
    }

    .rail-link.active {
        background: rgba(255,255,255,.18);
        color: #fff;
        box-shadow: inset 2px 0 0 #fff;
    }

.rail-foot {
    color: rgba(255,255,255,.7);
}

.rail-user {
    color: #fff;
}

.rail-logout {
    border-color: rgba(255,255,255,.4);
    color: rgba(255,255,255,.85);
}

    .rail-logout:hover {
        border-color: #fff;
        color: #fff;
    }

.brand-mark {
    background: #fff !important;
    color: #d32f3a !important;
}

/* ---- danger (delete) buttons ---- */
button.danger {
    background: transparent;
    border: 1px solid rgba(211,47,58,.4);
    color: #d32f3a;
    margin-left: 6px;
}

    button.danger:hover {
        background: #d32f3a;
        border-color: #d32f3a;
        color: #fff;
    }

/* ---- inline delete confirmation ---- */
.confirm-text {
    font-size: 13px;
    font-weight: 600;
    color: #d32f3a;
    margin-right: 8px;
}

/* ---- keep row action buttons on one line ---- */
.row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

    .row-actions button, .row-actions .mini-upload {
        margin: 0;
    }
/* cancel stray margins */
