/*
   Feuille de style partagée par la tablette Web et l'application Android.

   Dimensionnée pour une tablette tactile renforcée posée dans un fournil :
   cibles tactiles larges (des mains gantées ou farineuses ne visent pas au
   pixel), contrastes élevés (lumière rasante, écran parfois taché), et aucune
   information portée par la seule couleur.
*/

:root {
    --b4k-surface: #fffdf8;
    --b4k-ink: #241c14;
    --b4k-muted: #6b5c4c;
    --b4k-crust: #b5651d;
    --b4k-crust-dark: #8a4a12;
    --b4k-late: #a4161a;
    --b4k-ok: #386641;
    --b4k-line: #e0d6c7;
    --b4k-radius: 0.6rem;

    /* 48 px : plancher recommandé pour une cible tactile, appliqué partout. */
    --b4k-touch: 3rem;
}

body {
    margin: 0;
    background: var(--b4k-surface);
    color: var(--b4k-ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1.05rem;
    line-height: 1.5;
}

.b4k-title {
    font-size: 1.75rem;
    margin: 1rem;
}

.b4k-loading,
.b4k-empty {
    margin: 1rem;
    color: var(--b4k-muted);
}

/* ---------- Boutons ---------- */

.b4k-btn {
    min-height: var(--b4k-touch);
    min-width: var(--b4k-touch);
    padding: 0 1.25rem;
    border: 2px solid var(--b4k-crust);
    border-radius: var(--b4k-radius);
    background: transparent;
    color: var(--b4k-crust-dark);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
}

.b4k-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.b4k-btn--primary {
    background: var(--b4k-crust);
    color: #fff;
}

.b4k-btn--ack {
    background: var(--b4k-ok);
    border-color: var(--b4k-ok);
    color: #fff;
}

.b4k-btn--mic {
    width: 100%;
    margin: 0.5rem 1rem;
}

.b4k-btn--listening {
    animation: b4k-pulse 1.2s ease-in-out infinite;
}

@keyframes b4k-pulse {
    50% { opacity: 0.55; }
}

/* Respecte le réglage système : une animation qui pulse en continu gêne
   certaines personnes, et l'information « à l'écoute » est déjà dans le texte. */
@media (prefers-reduced-motion: reduce) {
    .b4k-btn--listening { animation: none; }
}

/* ---------- Alertes ---------- */

.b4k-alerts {
    margin: 1rem;
}

.b4k-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-left: 6px solid var(--b4k-crust);
    border-radius: var(--b4k-radius);
    background: #fff4e2;
}

.b4k-alert--critical {
    border-left-color: var(--b4k-late);
    background: #fbe6e6;
}

.b4k-alert__label {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.b4k-alert__detail,
.b4k-alert__note {
    margin: 0.15rem 0 0;
    color: var(--b4k-muted);
}

.b4k-alert__late {
    color: var(--b4k-late);
    font-weight: 600;
}

/* ---------- Commande vocale ---------- */

.b4k-voice__confirm {
    margin: 1rem;
    padding: 1rem;
    border: 2px dashed var(--b4k-crust);
    border-radius: var(--b4k-radius);
}

.b4k-voice__prompt {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.b4k-voice__actions {
    display: flex;
    gap: 0.75rem;
}

.b4k-voice__transcript,
.b4k-voice__message,
.b4k-voice__unsupported {
    margin: 0.75rem 1rem 0;
    color: var(--b4k-muted);
    font-style: italic;
}

/* ---------- Planning ---------- */

.b4k-table {
    width: calc(100% - 2rem);
    margin: 1rem;
    border-collapse: collapse;
}

.b4k-table th,
.b4k-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--b4k-line);
    text-align: left;
}

.b4k-row--late {
    background: #fbe6e6;
}

.b4k-late {
    color: var(--b4k-late);
}

/* ---------- Sessions ---------- */

.b4k-sessions {
    display: grid;
    gap: 1rem;
    margin: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
}

.b4k-session {
    padding: 1rem;
    border: 1px solid var(--b4k-line);
    border-radius: var(--b4k-radius);
    background: #fff;
}

.b4k-session__title {
    margin: 0;
    font-size: 1.3rem;
}

.b4k-session__equipment,
.b4k-session__author {
    margin: 0.15rem 0;
    color: var(--b4k-muted);
}

.b4k-session__stage-name {
    font-weight: 700;
}

.b4k-stages {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
}

.b4k-stage__state {
    color: var(--b4k-muted);
    font-size: 0.95rem;
}

.b4k-stage--done .b4k-stage__label {
    text-decoration: line-through;
    color: var(--b4k-muted);
}

.b4k-stage--current .b4k-stage__label {
    font-weight: 700;
}

/* L'état « en retard » est signalé par la couleur ET par le gras : la couleur
   seule serait invisible pour une partie des utilisateurs. */
.b4k-stage--overdue .b4k-stage__label {
    color: var(--b4k-late);
    font-weight: 700;
}

.b4k-session__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* ---------- Formulaire de commande ---------- */

.b4k-form {
    display: grid;
    gap: 1rem;
    max-width: 40rem;
    margin: 1rem;
}

.b4k-field {
    display: grid;
    gap: 0.25rem;
    border: 0;
    padding: 0;
    margin: 0;
}

.b4k-field__label {
    font-weight: 600;
}

.b4k-field__label em {
    font-weight: 400;
    color: var(--b4k-muted);
}

.b4k-input {
    min-height: var(--b4k-touch);
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--b4k-line);
    border-radius: var(--b4k-radius);
    background: #fff;
    color: var(--b4k-ink);
    font: inherit;
}

.b4k-input:focus-visible {
    outline: 3px solid var(--b4k-crust);
    outline-offset: 1px;
}

.b4k-input--qty {
    width: 6rem;
    text-align: right;
}

.b4k-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
}

.b4k-form__error {
    margin: 0;
    padding: 0.75rem;
    border-left: 6px solid var(--b4k-late);
    border-radius: var(--b4k-radius);
    background: #fbe6e6;
    color: var(--b4k-late);
    font-weight: 600;
}

.b4k-home__intro {
    margin: 0 1rem 1rem;
    max-width: 44rem;
}

.b4k-home__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem;
}

/* Les liens servant de boutons doivent s'aligner comme des boutons. */
a.b4k-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

/* ==========================================================================
   Planificateur, recettes, stock

   Le temps descend et chaque fabrication occupe une colonne. C'est la lecture
   d'un chef devant sa journée, et c'est ce qui rend le glissement vertical
   naturel : on attrape une recette, on la fait glisser dans l'heure.

   Les levées reprennent les quatre flèches du schéma manuscrit — simple,
   double, triple, pointillée — sous forme de motifs distincts. Le code (L, LF,
   LC, LS) reste écrit dans la case : la couleur et le motif ne sont jamais la
   seule différence, ce qui est indispensable sous une lumière rasante et pour
   qui distingue mal les nuances.
   ========================================================================== */

.b4k-planner__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.b4k-planner__day {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem;
}

.b4k-planner__compose {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    margin: 0 1rem 1rem;
    padding: 1rem;
    border: 1px solid var(--b4k-line);
    border-radius: var(--b4k-radius);
    background: #fff;
}

.b4k-planner__margin {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.b4k-field--inline {
    max-width: 18rem;
}

.b4k-planner__status {
    margin: 0 1rem 1rem;
}

.b4k-planner__ok {
    margin: 0.25rem 0;
    color: var(--b4k-ok);
    font-weight: 600;
}

.b4k-planner__warning {
    margin: 0.25rem 0;
    color: var(--b4k-muted);
}

/* ---------- Conflits ---------- */

.b4k-conflict {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-left: 6px solid var(--b4k-late);
    border-radius: var(--b4k-radius);
    background: #fbe6e6;
}

/* Un enchaînement trop serré reste faisable en courant : il se distingue d'une
   impossibilité matérielle, que rien ne rattrape. */
.b4k-conflict--margin {
    border-left-color: var(--b4k-crust);
    background: #fff4e2;
}

.b4k-conflict__message,
.b4k-conflict__when {
    margin: 0;
}

.b4k-conflict__when {
    color: var(--b4k-muted);
    font-size: 0.95rem;
}

.b4k-conflict__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* ---------- Grille du planning ---------- */

.b4k-board {
    display: flex;
    gap: 0.5rem;
    margin: 0 1rem 1rem;
    padding: 0.5rem;
    border: 1px solid var(--b4k-line);
    border-radius: var(--b4k-radius);
    background: #fff;
    overflow: auto;
}

.b4k-board__gutter {
    position: relative;
    flex: 0 0 3.5rem;
    height: var(--b4k-board-height);
}

.b4k-board__hour {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid var(--b4k-line);
}

.b4k-board__hour-label {
    display: block;
    padding-left: 0.25rem;
    color: var(--b4k-muted);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.b4k-board__lanes {
    display: flex;
    gap: 0.5rem;
    min-width: 0;
}

.b4k-lane {
    position: relative;
    flex: 0 0 12.5rem;
    height: var(--b4k-board-height);
    border-left: 1px solid var(--b4k-line);
}

/* Pendant le glissement, la bande passe au-dessus des autres et perd sa
   transition : elle doit suivre le doigt sans retard perceptible. */
.b4k-lane--dragging {
    z-index: 5;
    opacity: 0.9;
    cursor: grabbing;
}

.b4k-lane--conflict .b4k-seg {
    outline: 2px solid var(--b4k-late);
    outline-offset: -2px;
}

/* Hauteur figée à 124 px, en accord avec Scheduler.CardHeight : la page calcule
   sa position à partir de cette valeur pour que la poignée ne sorte jamais du
   plateau par le haut. Les deux doivent changer ensemble. */
.b4k-lane__card {
    position: absolute;
    left: 0.25rem;
    right: 0.25rem;
    z-index: 3;
    height: 124px;
    box-sizing: border-box;
    display: grid;
    align-content: start;
    gap: 0.1rem;
    padding: 0.35rem 0.5rem;
    border: 2px solid var(--b4k-crust);
    border-radius: var(--b4k-radius);
    background: var(--b4k-surface);
    overflow: hidden;
}

/* La carte est la poignée : la saisir déplace toute la fabrication. Les
   segments, eux, restent inertes, sinon on ne pourrait plus faire défiler la
   grille au doigt. */
.b4k-lane__card--grab {
    cursor: grab;
    touch-action: none;
}

.b4k-lane__grip {
    color: var(--b4k-muted);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
}

/* Deux lignes au plus : la carte a une hauteur figée, et un nom long ne doit
   pas chasser l'heure et les boutons hors de la poignée. */
.b4k-lane__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Hauteur explicite : sans elle, la grille de la carte ne réserve qu'une
       ligne et « Pain de campagne graines » se lit « Pain de ». */
    height: 2.4em;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
}

.b4k-lane__meta {
    color: var(--b4k-muted);
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.b4k-lane__nudge {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

/* Les pastilles de réglage fin restent des cibles tactiles honnêtes, mais pas
   au point de faire trois centimètres dans une carte de bande. */
.b4k-btn--nudge {
    min-height: 2.25rem;
    min-width: 2.25rem;
    padding: 0;
    font-size: 1rem;
}

/* ---------- Segments d'étape ---------- */

.b4k-seg {
    position: absolute;
    left: 0.25rem;
    right: 0.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--b4k-crust-dark);
    border-radius: 0.25rem;
    background: #f2e6d6;
    font-size: 0.85rem;
    line-height: 1;
}

.b4k-seg__code {
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Une étape de cinq minutes ne fait que dix pixels de haut. Son code reste
   écrit — c'est la notation du carnet — mais dans un corps qui y tient. */
.b4k-seg--tiny {
    font-size: 0.62rem;
}

.b4k-seg__detail {
    color: var(--b4k-muted);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.b4k-seg--knead {
    background: var(--b4k-crust);
    color: #fff;
}

.b4k-seg--knead .b4k-seg__detail {
    color: #fbe9d5;
}

.b4k-seg--shape {
    background: #e7dcc9;
}

.b4k-seg--bake {
    background: #a4161a;
    border-color: #6d0f12;
    color: #fff;
}

.b4k-seg--bake .b4k-seg__detail {
    color: #f7d9da;
}

/* Levée à l'ambiante : la flèche simple du schéma, donc rien de plus. */
.b4k-seg--rise {
    background: #fdf6ea;
    border-style: solid;
    color: var(--b4k-muted);
}

/* Froid positif — flèche double : rayures espacées, fond bleuté. */
.b4k-seg--cold {
    background: repeating-linear-gradient(
        135deg,
        #e8f1f8 0 10px,
        #d3e5f2 10px 20px
    );
    border-color: #3d6d92;
    color: #1f4661;
}

/* Congélateur — flèche triple : rayures serrées, contraste plus marqué. */
.b4k-seg--frozen {
    background: repeating-linear-gradient(
        135deg,
        #dfeaf6 0 5px,
        #b9d3ea 5px 10px
    );
    border-color: #1f4661;
    color: #12303f;
}

/* Cellule de refroidissement — flèche pointillée : bordure en pointillés. */
.b4k-seg--chill {
    background: #eef4fa;
    border-style: dashed;
    border-width: 2px;
    border-color: #3d6d92;
    color: #1f4661;
}

/* Un tour se marque À L'INTÉRIEUR de la levée, comme le « ^ » sous la flèche du
   schéma : rabattre la pâte n'interrompt pas la fermentation. */
.b4k-seg__fold {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 2px solid var(--b4k-crust-dark);
    color: var(--b4k-crust-dark);
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    line-height: 1;
}

.b4k-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin: 0 1rem 2rem;
    color: var(--b4k-muted);
    font-size: 0.9rem;
}

/* ---------- Recettes ---------- */

.b4k-recipes {
    display: grid;
    gap: 1rem;
    margin: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
    align-items: start;
}

.b4k-recipes__list {
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.b4k-recipe {
    padding: 1rem;
    border: 1px solid var(--b4k-line);
    border-radius: var(--b4k-radius);
    background: #fff;
}

.b4k-recipe--active {
    border-color: var(--b4k-crust);
    border-width: 2px;
}

.b4k-recipe__name {
    margin: 0;
    font-size: 1.2rem;
}

.b4k-recipe__meta {
    margin: 0.15rem 0 0.5rem;
    color: var(--b4k-muted);
    font-size: 0.9rem;
}

/* La gamme se lit comme sur le carnet : une suite de codes, de gauche à
   droite, dans l'ordre du fournil. */
.b4k-route {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 0.5rem;
    padding: 0;
    list-style: none;
}

.b4k-route__step {
    display: grid;
    justify-items: center;
    padding: 0.25rem 0.45rem;
    border: 1px solid var(--b4k-line);
    border-radius: 0.25rem;
    background: #fdf6ea;
}

.b4k-route__code {
    font-weight: 700;
}

.b4k-route__time,
.b4k-route__folds {
    color: var(--b4k-muted);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.b4k-recipe__actions,
.b4k-editor__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.b4k-editor {
    padding: 1rem;
    border: 2px solid var(--b4k-crust);
    border-radius: var(--b4k-radius);
    background: #fff;
}

.b4k-editor__title {
    margin: 0 0 0.75rem;
    font-size: 1.3rem;
}

.b4k-editor__section {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.05rem;
}

.b4k-editor__section em {
    color: var(--b4k-muted);
    font-weight: 400;
}

.b4k-editor__row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.b4k-editor__rowactions {
    display: flex;
    gap: 0.25rem;
}

.b4k-table--compact {
    width: 100%;
    margin: 0;
}

.b4k-table--compact th,
.b4k-table--compact td {
    padding: 0.35rem 0.35rem;
    vertical-align: top;
}

.b4k-table--compact .b4k-input {
    min-height: 2.5rem;
    padding: 0.25rem 0.4rem;
}

/* ---------- Stock ---------- */

.b4k-coverage,
.b4k-stock {
    margin: 0 1rem 2rem;
}

.b4k-badge {
    display: inline-block;
    padding: 0.05rem 0.4rem;
    margin-left: 0.35rem;
    border: 1px solid var(--b4k-line);
    border-radius: 1rem;
    background: #fdf6ea;
    color: var(--b4k-muted);
    font-size: 0.75rem;
    white-space: nowrap;
}

.b4k-badge--allergen {
    border-color: var(--b4k-late);
    background: #fbe6e6;
    color: var(--b4k-late);
}

.b4k-draw {
    display: block;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.b4k-draw--expired {
    color: var(--b4k-late);
    font-weight: 600;
}

.b4k-row--note td {
    padding-top: 0;
    border-bottom: 1px solid var(--b4k-line);
    color: var(--b4k-muted);
    font-size: 0.9rem;
}

.b4k-muted {
    color: var(--b4k-muted);
}

/* Visible pour les lecteurs d'écran, absent de l'affichage : un en-tête de
   colonne d'actions n'a rien à montrer mais doit être annoncé. */
.b4k-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Absences et propositions ----------

   Une absence barre toute la largeur du plateau : elle ne concerne pas une
   fabrication en particulier, mais le fournil entier. Elle est dessinée en
   hachures plutôt qu'en aplat — un aplat lirait comme une bande de plus, alors
   qu'une absence est un trou, pas une occupation.
   ------------------------------------------------------------------------- */

.b4k-planner__hint {
    flex: 1 1 100%;
    margin: 0;
    color: var(--b4k-muted);
    font-size: 0.95rem;
}

.b4k-away {
    position: absolute;
    left: 0;
    /* Déborde sur les colonnes : le repère doit traverser toute la grille. */
    right: -100vw;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    /* Groupés à gauche, et surtout PAS « space-between » : la bande s'étend de
       cent pour cent de la fenêtre vers la droite, ce qui enverrait le bouton
       hors de l'écran, donc hors d'atteinte. */
    justify-content: flex-start;
    gap: 0.5rem;
    /* Dégage la colonne des heures, large de 3,5 rem. */
    padding: 0.15rem 0.35rem 0.15rem 3.75rem;
    border-top: 2px dashed var(--b4k-muted);
    border-bottom: 2px dashed var(--b4k-muted);
    background: repeating-linear-gradient(
        45deg,
        rgba(107, 92, 76, 0.10) 0 8px,
        rgba(107, 92, 76, 0.02) 8px 16px
    );
    pointer-events: none;
}

.b4k-away__label {
    color: var(--b4k-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Seul le bouton reprend les événements : le reste du bandeau laisse passer le
   doigt vers les bandes qu'il recouvre. */
.b4k-away__remove {
    pointer-events: auto;
}

.b4k-proposal {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-left: 6px solid var(--b4k-ok);
    border-radius: var(--b4k-radius);
    background: #eef5ee;
}

.b4k-proposal__message {
    margin: 0;
}

.b4k-proposal__moves {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
    font-variant-numeric: tabular-nums;
}

/* ---------- Connexion et session ---------- */

/*
   Les cibles de cet écran sont plus grandes que le plancher habituel : c'est le
   seul moment où quelqu'un tape une suite de chiffres exacte, souvent d'une main,
   parfois farinée. Une erreur de frappe y coûte une tentative sur les dix que la
   limitation de débit accorde par minute.
*/

.b4k-login__people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.b4k-person {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 8rem;
    padding: 1rem;
    border: 2px solid var(--b4k-line);
    border-radius: var(--b4k-radius);
    background: #fff;
    color: var(--b4k-ink);
    font: inherit;
    cursor: pointer;
}

.b4k-person:hover,
.b4k-person:focus-visible {
    border-color: var(--b4k-crust);
}

.b4k-person__initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--b4k-crust);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
}

.b4k-person__name {
    font-size: 1.1rem;
    text-align: center;
}

.b4k-login__pin {
    max-width: 22rem;
    margin: 1.5rem auto 0;
}

/* Le code n'apparaît jamais : un écran de comptoir est visible des clients. */
.b4k-pin__dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    min-height: 1.25rem;
    margin: 0 0 1rem;
}

.b4k-pin__dot {
    width: 0.9rem;
    height: 0.9rem;
    border: 2px solid var(--b4k-line);
    border-radius: 50%;
}

.b4k-pin__dot--filled {
    border-color: var(--b4k-crust);
    background: var(--b4k-crust);
}

.b4k-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.b4k-pad__key {
    min-height: 4rem;
    font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
}

.b4k-login__back {
    width: 100%;
    margin-top: 1rem;
}

.b4k-login__error {
    padding: 0.75rem 1rem;
    border-left: 6px solid var(--b4k-late);
    border-radius: var(--b4k-radius);
    background: #fdecec;
    color: var(--b4k-late);
}

.b4k-session-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--b4k-line);
}

.b4k-session-bar__who {
    color: var(--b4k-muted);
}

.b4k-session-bar__out {
    min-height: 2.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.95rem;
}
