/* ===========================================================================
   BodegaPOS — Fêtes de la Madeleine, Mont-de-Marsan : BLEU & BLANC
   Polices embarquées (offline) : Fraunces (display) + Plus Jakarta Sans (UI).
   =========================================================================== */
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/jakarta.woff2') format('woff2');
  font-weight: 400 800; font-style: normal; font-display: swap;
}

:root {
  --paper:    #FFFFFF;
  --paper-2:  #EAF2FC;
  --card:     #FFFFFF;
  --ink:      #122844;
  --ink-soft: #46597A;
  --muted:    #8092AC;
  --blue:     #0E54B0;
  --blue-deep:#0A3F86;
  --blue-bright:#2E78E0;
  --sky:      #DCEAFB;
  --green:    #2F9E44;
  --green-d:  #237A33;
  --red:      #D63A3A;
  --line:     #DCE6F3;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius: 20px;
  --radius-sm: 13px;
  --shadow: 0 14px 34px -16px rgba(14, 84, 176, .30);
  --shadow-sm: 0 6px 16px -8px rgba(14, 84, 176, .26);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(120% 80% at 100% -10%, rgba(46,120,224,.16), transparent 60%),
    radial-gradient(90% 60% at -10% 0%, rgba(14,84,176,.10), transparent 55%);
  background-attachment: fixed;
  overscroll-behavior: none;
  overflow-x: hidden;            /* aucun débordement horizontal possible */
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: none; color: inherit; }
input, select { font-family: inherit; }
.hidden { display: none !important; }

/* Liseré festif bleu/blanc en haut de chaque interface */
.app--server::before, .app--admin::before, .app--bar::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; height: 5px; z-index: 100;
  background: repeating-linear-gradient(90deg, var(--blue) 0 20px, #fff 20px 40px);
  box-shadow: 0 1px 0 var(--line);
}

/* --- Boutons -------------------------------------------------------------- */
.btn {
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: 16px; font-weight: 700;
  background: #e9f0fb; color: var(--ink); letter-spacing: -.01em;
  transition: transform .06s ease, filter .15s, box-shadow .15s;
}
.btn:active { transform: scale(.96); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 22px -10px rgba(14,84,176,.7); }
.btn--primary:disabled { background: #d7e3f3; color: #9fb0c9; box-shadow: none; }
.btn--success { background: var(--green); color: #fff; box-shadow: 0 10px 22px -10px rgba(47,158,68,.6); }
.btn--info { background: var(--blue-bright); color: #fff; }
.btn--danger-ghost { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1.6px rgba(214,58,58,.4); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1.6px var(--line); }
.btn--big { width: 100%; padding: 18px; font-size: 18px; }
.btn--active { background: rgba(14,84,176,.12); }
.iconbtn { background: transparent; font-size: 22px; padding: 8px 12px; }

/* --- Toasts -------------------------------------------------------------- */
#toasts {
  position: fixed; left: 0; right: 0; bottom: calc(22px + var(--safe-b));
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 9999; pointer-events: none;
}
.toast {
  background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 700; max-width: 90vw; text-align: center;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(14px) scale(.96); transition: .28s cubic-bezier(.2,.9,.3,1.3);
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast--success { background: var(--green); }
.toast--error { background: var(--red); }
.toast--warn { background: var(--blue-bright); }

/* --- Badges de statut ---------------------------------------------------- */
.st { display: inline-block; padding: 5px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .01em; }
.st--pending { background: var(--sky); color: var(--blue-deep); }
.st--preparing { background: #cfe2fb; color: #0c469a; }
.st--ready { background: #d8f3df; color: var(--green-d); }
.st--cancelled { background: #fbdcdc; color: var(--red); }
.st--queued { background: #e6ecf5; color: var(--muted); }

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--on { background: var(--green); box-shadow: 0 0 0 3px rgba(47,158,68,.22); }
.dot--off { background: #b9c6d9; }

/* ===========================================================================
   INTERFACE SERVEUR
   =========================================================================== */
.screen { min-height: 100vh; }

/* --- Connexion : simple formulaire prénom -------------------------------- */
.login { padding: calc(72px + var(--safe-t)) 24px calc(40px + var(--safe-b)); text-align: center; max-width: 460px; margin: 0 auto; }
.login__title { font-family: var(--font-display); font-weight: 900; font-size: 46px; letter-spacing: -.02em; margin: 18px 0 6px; line-height: 1; color: var(--blue); }
.login__subtitle { color: var(--ink-soft); margin: 0 0 30px; font-size: 17px; font-weight: 500; }
.login-form { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.login-input {
  width: 100%; padding: 20px 22px; font-family: var(--font-display); font-weight: 700; font-size: 24px; text-align: center;
  border: 1.5px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); color: var(--ink);
}
.login-input::placeholder { color: #aab8cc; font-weight: 600; }
.login-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(14,84,176,.12), var(--shadow); }

/* --- App shell ----------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.86); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + var(--safe-t)) 18px 12px; border-bottom: 1px solid var(--line);
}
.topbar__user { display: flex; align-items: center; gap: 11px; background: none; font-size: 16px; font-weight: 800; }
.avatar {
  width: 40px; height: 40px; border-radius: 14px; background: linear-gradient(145deg, var(--blue-bright), var(--blue-deep)); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 19px; box-shadow: var(--shadow-sm);
}
.topbar__right { display: flex; align-items: center; gap: 12px; }
.topbar__status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); font-weight: 600; }

.tabbar { display: flex; gap: 9px; padding: 12px 18px 6px; position: sticky; top: calc(65px + var(--safe-t)); background: linear-gradient(var(--paper), rgba(255,255,255,.9)); z-index: 9; }
.navbtn {
  flex: 1; background: var(--card); border-radius: 14px; padding: 13px; font-size: 15px; font-weight: 800;
  display: flex; justify-content: center; align-items: center; gap: 7px; border: 1.5px solid var(--line); box-shadow: var(--shadow-sm);
}
.navbtn.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
.badge { background: var(--blue-bright); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 800; }
.navbtn.is-active .badge { background: #fff; color: var(--blue); }

.screen--app { padding: 6px 18px calc(108px + var(--safe-b)); max-width: 760px; margin: 0 auto; }
.motivation {
  background: linear-gradient(135deg, #fff, #f1f6fd); border: 1.5px solid var(--line); border-left: 5px solid var(--blue-bright);
  border-radius: 14px; padding: 13px 16px; margin: 8px 0 16px; color: var(--ink-soft); font-weight: 700; font-size: 14.5px;
}

/* --- Onglets catégories -------------------------------------------------- */
.cat-tabs { display: flex; gap: 9px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab { white-space: nowrap; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 11px 17px; font-size: 14px; font-weight: 700; box-shadow: var(--shadow-sm); }
.cat-tab.is-active { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 8px 18px -8px rgba(14,84,176,.6); }

/* --- Grille produits (photos = vendeur) ---------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 6px; }
.product {
  position: relative; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden; text-align: left; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .07s, box-shadow .15s;
}
.product:active { transform: scale(.97); box-shadow: var(--shadow); }
.product__media {
  aspect-ratio: 5/3; width: 100%; overflow: hidden; display: grid; place-items: center; font-size: 46px;
  background: linear-gradient(150deg, #e7f0fc, #cfe0f7);
}
.product__media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.product__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product__name { font-weight: 700; font-size: 15px; line-height: 1.2; letter-spacing: -.01em; }
.product__price { align-self: flex-start; font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--blue); margin-top: auto; }
.product--out { opacity: .55; }
.product--out .product__media { filter: grayscale(.7); }
.product--out .product__price { color: var(--muted); }
.product__badge {
  position: absolute; top: 9px; right: 9px; background: var(--blue); color: #fff;
  min-width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 15px; box-shadow: 0 4px 12px rgba(10,63,134,.4); border: 2px solid #fff;
}

/* --- Barre panier flottante ---------------------------------------------- */
.cartbar {
  position: fixed; left: 18px; right: 18px; bottom: calc(18px + var(--safe-b)); max-width: 724px; margin: 0 auto;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; border-radius: 18px; padding: 16px 22px;
  display: flex; align-items: center; gap: 13px; font-size: 17px; font-weight: 800;
  box-shadow: 0 16px 34px -12px rgba(10,63,134,.7); z-index: 20; animation: cartpop .25s cubic-bezier(.2,.9,.3,1.3);
}
@keyframes cartpop { from { transform: translateY(20px); opacity: 0; } }
.cartbar__count { background: rgba(255,255,255,.24); border-radius: 11px; min-width: 30px; height: 30px; display: grid; place-items: center; font-family: var(--font-display); }
.cartbar__total { margin-left: auto; font-family: var(--font-display); font-size: 20px; }

/* --- Encaissement -------------------------------------------------------- */
.screen__head { display: flex; align-items: center; gap: 8px; margin: 6px 0 14px; }
.screen__head h2 { font-family: var(--font-display); font-weight: 800; font-size: 24px; margin: 0; letter-spacing: -.01em; }
.cart-items { display: flex; flex-direction: column; gap: 2px; }
.cart-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line__name { font-weight: 700; }
.cart-line__price { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 13px; }
.stepper__btn { width: 40px; height: 40px; border-radius: 12px; background: #e9f0fb; font-size: 23px; font-weight: 700; color: var(--ink); }
.stepper__val { min-width: 22px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; }

.checkout-total { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; }
.checkout-total span { font-weight: 700; color: var(--ink-soft); }
.checkout-total strong { font-family: var(--font-display); font-size: 32px; color: var(--blue); }
.section-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; margin: 10px 0; }

.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.paybtn {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 26px; font-weight: 800; box-shadow: var(--shadow-sm);
}
.paybtn span { font-size: 14px; }
.paybtn.is-active { border-color: var(--blue); background: #eef4fd; box-shadow: 0 8px 18px -10px rgba(14,84,176,.5); }

.pay-detail { margin: 18px 0; background: linear-gradient(150deg, #fff, #f1f6fd); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px; }
.pay-info { margin: 0 0 6px; color: var(--ink-soft); font-weight: 600; }
.pay-amount { font-family: var(--font-display); font-size: 34px; color: var(--ink); display: block; }
.cash-label { display: block; font-weight: 700; margin: 12px 0 7px; }
.cash-input { width: 100%; font-family: var(--font-display); font-size: 28px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 14px; text-align: right; background: #fff; }
.cash-input:focus { outline: none; border-color: var(--blue); }
.cash-quick { display: flex; gap: 8px; margin: 13px 0; }
.chip { flex: 1; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px; font-weight: 800; }
.chip:active { background: var(--paper-2); }
.cash-change { margin-top: 10px; font-family: var(--font-display); font-size: 24px; font-weight: 800; text-align: center; padding: 14px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); }
.cash-change--ok { color: var(--green); border-color: rgba(47,158,68,.4); background: #f1faf3; }
.cash-change--short { color: var(--red); border-color: rgba(214,58,58,.3); }
#send-order { margin-top: 18px; }

/* --- Tickets serveur ----------------------------------------------------- */
.tickets-list { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.ticket { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 17px; box-shadow: var(--shadow-sm); }
.ticket--ready { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,158,68,.18), var(--shadow); animation: pulse 1.5s infinite; }
.ticket--queued { border-style: dashed; opacity: .82; box-shadow: none; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(47,158,68,.18), var(--shadow); } 50% { box-shadow: 0 0 0 7px rgba(47,158,68,.05), var(--shadow); } }
.ticket__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }
.ticket__id { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.ticket__line { color: var(--ink-soft); padding: 3px 0; font-weight: 600; }
.ticket__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; }
.ticket__foot strong { font-family: var(--font-display); font-size: 19px; }
.empty { text-align: center; color: var(--muted); padding: 64px 20px; font-size: 16px; font-weight: 600; }

/* ===========================================================================
   INTERFACE BAR (claire, bleu & blanc)
   =========================================================================== */
.app--bar { background: var(--paper-2); color: var(--ink); min-height: 100vh; font-family: var(--font-ui); }
.barhead {
  position: sticky; top: 0; z-index: 10; width: 100%; max-width: 100%; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: calc(14px + var(--safe-t)) 20px 14px; gap: 12px 14px;
}
.barhead__title { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin: 0; letter-spacing: -.01em; color: var(--blue); flex: 0 1 auto; min-width: 0; }
.barhead__right { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.app--bar .btn { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.app--bar .btn--active { background: var(--blue); color: #fff; border-color: var(--blue); }
.counter { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--blue); }

.orders-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; padding: 22px; align-content: start; }
.app--bar .empty { color: var(--muted); grid-column: 1 / -1; }

.order-card {
  background: #fff; border-radius: var(--radius); padding: 17px; display: flex; flex-direction: column; gap: 11px;
  border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); animation: cardin .3s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes cardin { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.order-card--ready { border-color: var(--green); box-shadow: 0 0 0 2px rgba(47,158,68,.3), var(--shadow); }
.order-card__head { display: flex; justify-content: space-between; align-items: center; }
.order-card__server { font-family: var(--font-display); font-size: 23px; font-weight: 800; color: var(--blue); letter-spacing: -.01em; }
.order-card__num { color: var(--muted); font-family: var(--font-display); font-weight: 700; }
.order-card__items { display: flex; flex-direction: column; gap: 5px; padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.order-card__item { font-size: 17px; display: flex; gap: 11px; align-items: baseline; font-weight: 500; }
.order-card__item .qty { font-family: var(--font-display); color: var(--blue-bright); font-weight: 800; min-width: 34px; font-size: 18px; }
.order-card__foot { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; font-weight: 600; }
.order-card__total { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 17px; }
.order-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.order-card__actions .btn { flex: 1; padding: 13px; font-size: 14px; }
.await-close { flex: 1; text-align: center; color: var(--green-d); font-weight: 700; padding: 13px; font-size: 13px; }

/* Panneau stocks */
.stock-panel { position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 92vw); background: var(--paper); color: var(--ink); transform: translateX(100%); transition: transform .26s cubic-bezier(.3,.9,.3,1); z-index: 50; overflow-y: auto; box-shadow: -12px 0 40px rgba(10,40,80,.28); }
.stock-panel.open { transform: translateX(0); }
.stock-panel__head { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); }
.stock-panel__head h2 { font-family: var(--font-display); margin: 0; font-size: 22px; color: var(--blue); }
.stock-panel__hint { padding: 13px 20px; color: var(--ink-soft); font-size: 14px; margin: 0; font-weight: 500; }
.stock-list { padding: 0 20px 40px; }
.stock-cat { font-family: var(--font-display); font-size: 16px; color: var(--ink-soft); margin: 20px 0 8px; }
.stock-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.stock-row__name { flex: 1; font-weight: 700; }
.stock-row__price { color: var(--muted); font-size: 14px; font-weight: 600; }
.stock-row--out { opacity: .6; }
.switch { border-radius: 999px; padding: 9px 17px; font-weight: 800; font-size: 14px; min-width: 88px; }
.switch--on { background: #d8f3df; color: var(--green-d); }
.switch--off { background: #fbdcdc; color: var(--red); }
.backdrop { position: fixed; inset: 0; background: rgba(10,30,60,.45); z-index: 40; }

/* ===========================================================================
   INTERFACE ADMIN
   =========================================================================== */
.app--admin { min-height: 100vh; }
.admin-wrap { max-width: 920px; margin: 0 auto; padding: calc(28px + var(--safe-t)) 18px 60px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.admin-head h1 { font-family: var(--font-display); font-weight: 800; font-size: 30px; margin: 0; color: var(--blue); }
.admin-card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.admin-card h2 { font-family: var(--font-display); margin: 0 0 14px; font-size: 20px; }
.admin-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-row input, .admin-row select { padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 11px; font-size: 15px; background: #fff; }
.admin-row input:focus, .admin-row select:focus { outline: none; border-color: var(--blue); }
.admin-prod { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.admin-prod__thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: linear-gradient(150deg, #e7f0fc, #cfe0f7); display: grid; place-items: center; font-size: 22px; flex: none; }
.admin-prod input[type=text], .admin-prod .pname { min-width: 120px; }
.login-gate { max-width: 380px; margin: 90px auto; text-align: center; padding: 0 20px; }
.login-gate h1 { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--blue); }
.login-gate input { width: 100%; padding: 15px; border: 1.5px solid var(--line); border-radius: 14px; font-size: 16px; margin: 16px 0; background: #fff; }
.filebtn { position: relative; overflow: hidden; }
.filebtn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ===========================================================================
   SÉLECTEUR DE VUE (commun serveur / bar / admin)
   =========================================================================== */
.view-switch {
  display: inline-flex; align-items: center; gap: 7px; background: var(--card); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: 14px; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.view-switch:active { transform: scale(.95); }

.vs-backdrop { position: fixed; inset: 0; background: rgba(10,30,60,.45); z-index: 998; opacity: 0; transition: opacity .22s; }
.vs-backdrop.show { opacity: 1; }
.vs-sheet {
  position: fixed; z-index: 999; left: 50%; bottom: calc(16px + var(--safe-b)); transform: translate(-50%, 24px);
  width: min(440px, calc(100vw - 28px)); background: var(--paper); border: 1.5px solid var(--line); border-radius: 24px;
  padding: 18px; box-shadow: 0 30px 60px -20px rgba(10,40,80,.5); opacity: 0; transition: transform .24s cubic-bezier(.2,.9,.3,1.2), opacity .2s;
}
.vs-sheet.show { transform: translate(-50%, 0); opacity: 1; }
.vs-sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.vs-sheet__head h3 { font-family: var(--font-display); font-weight: 800; font-size: 21px; margin: 0; color: var(--blue); }
.vs-list { display: flex; flex-direction: column; gap: 9px; }
.vs-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; text-decoration: none;
  color: var(--ink); background: var(--card); border: 1.5px solid var(--line); transition: background .12s, transform .06s;
}
.vs-item:active { transform: scale(.98); }
.vs-item__icon { font-size: 26px; width: 30px; text-align: center; }
.vs-item__txt { display: flex; flex-direction: column; flex: 1; }
.vs-item__txt strong { font-weight: 800; font-size: 16px; }
.vs-item__txt small { color: var(--muted); font-size: 13px; font-weight: 600; }
.vs-item__go { color: var(--blue); font-weight: 800; font-size: 18px; }
.vs-item.is-current { background: #eef4fd; border-color: var(--blue); }
.vs-item.is-current .vs-item__go { color: var(--green); }
.vs-changeuser { width: 100%; margin-top: 14px; }
