/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

 pre.highlight,
.highlight pre {
  max-height: 30rem;
  margin: 1.5rem 0;
  overflow: auto;
  border-radius: var(--tblr-border-radius);
}

.highlight {
  margin: 0;
}
.highlight code > * {
  margin: 0 !important;
  padding: 0 !important;
}
.highlight .c, .highlight .c1 {
  color: #a0aec0;
}
.highlight .nt, .highlight .nc, .highlight .nx {
  color: #ff8383;
}
.highlight .na, .highlight .p {
  color: #ffe484;
}
.highlight .s, .highlight .dl, .highlight .s2 {
  color: #b5f4a5;
}
.highlight .k {
  color: #93ddfd;
}
.highlight .s1, .highlight .mi {
  color: #d9a9ff;
}

.dropdown-menu-demo {
  display: inline-block;
  width: 100%;
  position: relative;
  top: 0;
  margin-bottom: 1rem !important;
}

.demo-icon-preview {
  position: sticky;
  top: 0;
}
.demo-icon-preview svg,
.demo-icon-preview i {
  width: 15rem;
  height: 15rem;
  font-size: 15rem;
  stroke-width: 1.5;
  margin: 0 auto;
  display: block;
}

.demo-icon-preview-icon pre {
  margin: 0;
  user-select: all;
}

.demo-dividers > p {
  opacity: 0.2;
  user-select: none;
}

.demo-icons-list {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 -2px -1px 0;
  list-style: none;
}
.demo-icons-list > * {
  flex: 1 0 4rem;
}

.demo-icons-list-wrap {
  overflow: hidden;
}

.demo-icons-list-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  text-align: center;
  padding: 0.5rem;
  border-right: var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);
  border-bottom: var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);
  color: inherit;
  cursor: pointer;
}
.demo-icons-list-item .icon {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1.5rem;
}
.demo-icons-list-item:hover {
  text-decoration: none;
}
.swal2-title {
  line-height: 1.2;
}

/* =========================================================
   Toasts — Apple-style frosted glass. A highly translucent,
   heavily blurred light surface that lets the page show
   through, a hairline specular highlight along the top edge,
   and soft, low-opacity drop shadows for depth. Colour is kept
   to a whisper — a faint accent tint on the glass plus the
   semantic icon; the timer bar is neutral. Cosmetic only —
   SweetAlert2's compact toast geometry is left untouched.
   ========================================================= */
.swz-toast.swal2-toast {
  --swz-accent: var(--tblr-primary);
  --swz-accent-rgb: var(--tblr-primary-rgb);
  border-radius: 1.1rem;
  color: var(--tblr-dark);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.32)),
    linear-gradient(rgba(var(--swz-accent-rgb), 0.08), rgba(var(--swz-accent-rgb), 0.08));
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0px 0px rgb(17 24 39 / 68%), 0em 0em 0.6em rgb(17 24 39 / 51%)
}

.swz-toast.swz-toast-success { --swz-accent: var(--tblr-success); --swz-accent-rgb: var(--tblr-success-rgb); }
.swz-toast.swz-toast-error   { --swz-accent: var(--tblr-danger);  --swz-accent-rgb: var(--tblr-danger-rgb); }
.swz-toast.swz-toast-warning { --swz-accent: var(--tblr-warning); --swz-accent-rgb: var(--tblr-warning-rgb); }
.swz-toast.swz-toast-info    { --swz-accent: var(--tblr-info);    --swz-accent-rgb: var(--tblr-info-rgb); }

/* icon — the one place colour really lives; recolor the compact default */
.swz-toast .swz-toast-icon.swal2-success [class^='swal2-success-line'] {
  background-color: var(--swz-accent);
}
.swz-toast .swz-toast-icon.swal2-success .swal2-success-ring {
  border-color: rgba(var(--swz-accent-rgb), 0.3);
}
.swz-toast .swz-toast-icon.swal2-error [class^='swal2-x-mark-line'] {
  background-color: var(--swz-accent);
}
.swz-toast .swz-toast-icon.swal2-error,
.swz-toast .swz-toast-icon.swal2-warning,
.swz-toast .swz-toast-icon.swal2-info,
.swz-toast .swz-toast-icon.swal2-question {
  border-color: rgba(var(--swz-accent-rgb), 0.5);
  color: var(--swz-accent);
}

/* title */
.swz-toast .swz-toast-title.swal2-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tblr-dark);
}

/* close button */
.swz-toast .swz-toast-close.swal2-close {
  color: var(--tblr-secondary);
  box-shadow: none;
}
.swz-toast .swz-toast-close.swal2-close:hover,
.swz-toast .swz-toast-close.swal2-close:focus {
  color: var(--tblr-dark);
  outline: none;
}

/* timer progress bar — neutral & barely-there (no loud accent) */
.swz-toast .swz-toast-progress.swal2-timer-progress-bar {
  background: rgba(var(--tblr-dark-rgb), 0.12);
}

/* =========================================================
     Order-created notification — the richer sibling of the
     SweetAlert toasts above (bottom-right, pushed over
     ActionCable). Same frosted glass, plus the eyebrow /
     gradient icon tile / accent chip recipes. Themed through
     --swz-accent(-rgb), so an .swz-accent-* modifier on the
     toast retints the whole card. Selectors are anchored on
     `.toast.swz-notif` because tabler.css loads after this
     file and would otherwise win at equal specificity.
     ========================================================= */
.toast.swz-notif {
  --swz-accent: var(--tblr-primary);
  --swz-accent-rgb: var(--tblr-primary-rgb);
  width: 22rem;
  overflow: hidden;
  color: var(--tblr-dark);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1.25rem;
  background:
    radial-gradient(18rem 12rem at 10% 0%, rgba(var(--swz-accent-rgb), 0.18), transparent 62%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.55));
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    0 1.5rem 3rem -1.5rem rgba(31, 41, 55, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

/* tighten Tabler's toast-to-toast gap (page-padding * 2) when they stack */
.toast-container.swz-notif-stack > :not(:last-child) { margin-bottom: 0.75rem; }

.swz-notif-body {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
}

/* Gradient icon tile — 2.5rem/0.8rem keeps the confirm modal's squircle ratio.
   Anchored on the block so it out-specifies `.material-symbols-outlined`
   (material-symbols.css also loads after this file and would otherwise force
   the glyph back to inline-block/24px, breaking the centering). */
.swz-notif .swz-notif-icon {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  font-size: 1.35rem;
  border-radius: 0.8rem;
  color: var(--swz-accent);
  background: linear-gradient(135deg,
    rgba(var(--swz-accent-rgb), 0.20),
    rgba(var(--swz-accent-rgb), 0.07));
  box-shadow:
    inset 0 0 0 1px rgba(var(--swz-accent-rgb), 0.20),
    0 0.65rem 1.5rem -0.6rem rgba(var(--swz-accent-rgb), 0.55);
}

.swz-notif-main { flex: 1; min-width: 0; }
.swz-notif-title {
  margin: 0.45rem 0 0.15rem;
  font-size: 0.95rem; font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--tblr-dark);
}
.swz-notif-text {
  margin: 0;
  font-size: 0.825rem; line-height: 1.45;
  color: var(--tblr-secondary);
  overflow-wrap: anywhere;
}
.swz-notif-store { font-weight: 600; color: var(--tblr-dark); }

/* reference chip — the one interactive accent on the card */
.toast.swz-notif .swz-notif-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  max-width: 100%;
  margin-top: 0.7rem;
  padding: 0.3rem 0.75rem 0.3rem 0.65rem;
  font-size: 0.78rem; font-weight: 700;
  color: var(--swz-accent);
  background: rgba(var(--swz-accent-rgb), 0.12);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.toast.swz-notif .swz-notif-link:hover {
  color: var(--swz-accent); /* hold the accent; Tabler's a:hover would recolor it */
  transform: translateY(-1px);
  background: rgba(var(--swz-accent-rgb), 0.18);
  box-shadow: 0 0.5rem 1.1rem -0.6rem rgba(var(--swz-accent-rgb), 0.9);
}
.swz-notif-link .material-symbols-outlined { font-size: 0.95rem; line-height: 1; }
.swz-notif-ref { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.toast.swz-notif .swz-notif-close {
  flex: none;
  margin: -0.1rem -0.1rem 0 0;
  padding: 0.35rem;
  opacity: 0.45;
  transition: opacity 0.16s ease;
}
.toast.swz-notif .swz-notif-close:hover { opacity: 1; }

/* Entrance/exit ride on Bootstrap's own `.showing` class, which it applies in
   both directions — so the card slides out the way it slid in. */
@media (prefers-reduced-motion: no-preference) {
  .toast.swz-notif {
    transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .toast.swz-notif.showing {
    opacity: 0;
    transform: translateY(0.9rem) scale(0.97);
  }
  /* reuses the shared icon pop-in keyframes from the confirm modal section */
  .toast.swz-notif .swz-notif-icon {
    animation: swzConfirmPop 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  }
}

span[data-controller="confirmer"],
a[data-controller="confirmer"] {
  cursor: pointer;
}
.sidebar-icon {
  font-size: 1.3rem !important;
}
.tw-1 {
  width: 1%;
}

tr.unopened-order td {
  background-color: #ced4da !important;
  transition: background-color 0.3s ease !important;
}

.title-badge {
  float: left;
  margin-top: -22px;
  margin-left: 103px;
}

/* =========================================================
     Login — showcase (left) + sign-in (right)
     ========================================================= */

  /* ---- Brand showcase panel ---- */
  .login-hero {
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(38rem 38rem at 8% 12%, rgba(var(--tblr-primary-rgb),0.22), transparent 55%),
      radial-gradient(42rem 42rem at 92% 18%, rgba(var(--tblr-azure-rgb), 0.20), transparent 55%),
      radial-gradient(40rem 40rem at 78% 96%, rgba(66, 99, 235, 0.12), transparent 55%),
      radial-gradient(34rem 34rem at 22% 92%, rgba(var(--tblr-primary-rgb),0.12), transparent 55%),
      linear-gradient(140deg, #ffffff 0%, #f2f6fc 55%, #e6eef8 100%);
  }
  /* faded dot-grid texture */
  .login-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(rgba(31, 41, 55,0.06) 1px, transparent 1.6px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at 45% 40%, #000 35%, transparent 85%);
    mask-image: radial-gradient(ellipse 90% 90% at 45% 40%, #000 35%, transparent 85%);
  }
  /* drifting glow orb */
  .login-hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: 28rem; height: 28rem;
    top: -7rem; right: -9rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--tblr-primary-rgb),0.30), transparent 70%);
    filter: blur(28px);
  }
  /* centered, capped-width column so the hero sits balanced in its half */
  .login-hero-inner {
    position: relative; z-index: 1;
    width: 100%; max-width: 36rem;
    align-self: center;   /* horizontal placement in the column */
    flex: 1 1 auto;       /* ...while filling it top to bottom */
    display: flex; flex-direction: column;
  }
  /* `align-self` keeps the mark ranged left with the copy below it, now that
     the hero column is a flex column */
  .login-hero-logo { height: 2.75rem; width: auto; align-self: flex-start; }
  /* eyebrow chip now uses the shared `.swz-eyebrow` primitive */
  .login-hero-title {
    font-size: 2.25rem; font-weight: 800; line-height: 1.12;
    color: var(--tblr-dark); letter-spacing: -0.02em;
  }
  @media (max-width: 1199.98px) {
    .login-hero-title { font-size: 1.85rem; }
  }
  .login-hero-text { max-width: 30rem; }

  /* ---- Layered dashboard preview ---- */
  .login-stage { position: relative; width: 100%; }

  .login-glass {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
      0 1.75rem 3.5rem -1.25rem rgba(31, 41, 55,0.30),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }

  .login-preview-card {
    position: relative;
    z-index: 1;
    border-radius: 1.25rem;
    padding: 1.25rem 1.375rem 1.5rem;
  }
  .login-preview-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem;
  }
  .login-preview-head .title { font-weight: 700; color: var(--tblr-dark); line-height: 1.1; }
  .login-preview-head .sub { font-size: 0.75rem; color: var(--tblr-secondary); }
  .login-live {
    display: inline-flex; align-items: center; gap: 0.375rem;
    font-size: 0.6875rem; font-weight: 600; color: var(--tblr-success);
    background: rgba(var(--tblr-success-rgb),0.14);
    padding: 0.25rem 0.55rem; border-radius: 999px;
  }
  .login-live .dot {
    width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--tblr-success);
  }
  .login-stats { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
  .login-stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(31, 41, 55,0.05);
    border-radius: 0.85rem;
    padding: 0.7rem 0.8rem;
  }
  .login-stat .label { font-size: 0.6875rem; color: var(--tblr-secondary); margin-bottom: 0.15rem; }
  .login-stat .value {
    font-size: 1.2rem; font-weight: 800; color: var(--tblr-dark); line-height: 1.05;
    letter-spacing: -0.01em;
  }
  .login-up {
    font-size: 0.6875rem; font-weight: 700; color: var(--tblr-success); margin-left: 0.3rem;
    white-space: nowrap;
  }
  .login-chart { display: block; width: 100%; height: 5.5rem; }
  .login-chart .line { stroke: var(--tblr-primary); filter: drop-shadow(0 5px 10px rgba(var(--tblr-primary-rgb),0.35)); }

  /* service status list (admin console) */
  .login-svc-list { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.15rem; }
  .login-svc { display: flex; align-items: center; justify-content: space-between; }
  .login-svc .name {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem; font-weight: 600; color: var(--tblr-dark);
  }
  .login-svc .name .material-symbols-outlined { font-size: 18px; color: var(--tblr-secondary); }
  .login-svc .status {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.72rem; font-weight: 700; color: var(--tblr-success);
  }
  .login-svc .status .sdot {
    width: 0.45rem; height: 0.45rem; border-radius: 50%;
    background: var(--tblr-success); box-shadow: 0 0 0 3px rgba(var(--tblr-success-rgb),0.15);
  }

  .login-agents { display: flex; align-items: center; margin-top: 1rem; }
  .login-avatar {
    width: 1.75rem; height: 1.75rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.625rem; font-weight: 700; color: #fff;
    border: 2px solid #fff; margin-left: -0.5rem;
  }
  .login-avatar:first-child { margin-left: 0; }
  .login-agents .more { font-size: 0.75rem; color: var(--tblr-secondary); margin-left: 0.625rem; }

  /* floating notification pill (overhangs above the top-right) */
  .login-float {
    position: absolute;
    z-index: 2;
    top: -1.6rem; right: -0.9rem;
    display: flex; align-items: center; gap: 0.5rem;
    border-radius: 0.85rem;
    padding: 0.55rem 0.8rem;
  }
  .login-float .ic {
    width: 1.9rem; height: 1.9rem; border-radius: 0.6rem;
    display: flex; align-items: center; justify-content: center;
    background: rgba(var(--tblr-primary-rgb),0.16); color: var(--tblr-primary);
  }
  .login-float .ic .material-symbols-outlined { font-size: 18px; }
  .login-float .t1 { font-size: 0.75rem; font-weight: 700; color: var(--tblr-dark); line-height: 1.1; }
  .login-float .t2 { font-size: 0.6875rem; color: var(--tblr-secondary); }

  /* floating progress-ring chip (overhangs below the bottom-right) */
  .login-chip {
    position: absolute;
    z-index: 2;
    bottom: -1.3rem; right: -1.3rem;
    display: flex; align-items: center; gap: 0.6rem;
    border-radius: 0.85rem;
    padding: 0.55rem 0.85rem 0.55rem 0.6rem;
  }
  .login-ring { width: 2.4rem; height: 2.4rem; display: block; }
  .login-ring .track { stroke: rgba(31, 41, 55,0.10); }
  .login-ring .prog { stroke: var(--tblr-primary); stroke-linecap: round; }
  .login-ring text { fill: var(--tblr-dark); font-weight: 800; font-size: 10px; }
  .login-chip .t1 { font-size: 0.75rem; font-weight: 700; color: var(--tblr-dark); line-height: 1.05; }
  .login-chip .t2 { font-size: 0.6875rem; color: var(--tblr-secondary); }

  /* trust line */
  .login-trust-row { display: flex; align-items: center; gap: 0.6rem; color: var(--tblr-secondary); }
  .login-trust-row .stars { color: var(--tblr-primary); letter-spacing: 0.05em; }

  /* ---- Relay diagram — client apps fan into the gateway, SMS goes out.
          Wires are one SVG sized to a 640x320 viewBox; the nodes are HTML
          positioned in percentages off those same coordinates, so the two
          stay registered at any width. ---- */
  .login-relay-card {
    position: relative;
    z-index: 1;
    border-radius: 1.5rem;
    padding: 1.5rem 1.75rem 1.35rem;
  }
  .login-relay {
    position: relative;
    width: 100%;
    aspect-ratio: 640 / 320;
    margin: 0.85rem 0 2rem; /* bottom margin holds the column captions */
  }
  .login-relay-wires {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    overflow: visible;
  }
  .login-relay-wires .track {
    fill: none;
    stroke: rgba(var(--tblr-primary-rgb), 0.20);
    stroke-width: 2;
  }
  /* the travelling packet of light — a single dash chasing a long gap */
  .login-relay-wires .pulse {
    fill: none;
    stroke: var(--tblr-primary);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 4 240;
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 4px rgba(var(--tblr-primary-rgb), 0.85));
  }
  .login-relay-wires .pulse--out {
    stroke: #F3742A; /* brand orange: the leg that leaves the building */
    filter: drop-shadow(0 0 4px rgba(243, 116, 42, 0.85));
  }

  /* shared node chrome */
  .login-node {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex; align-items: center; justify-content: center;
    border-radius: 0.9rem;
    color: var(--tblr-primary);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(var(--tblr-primary-rgb), 0.18);
    box-shadow: 0 0.75rem 1.5rem -0.8rem rgba(31, 41, 55, 0.38), inset 0 1px 0 #fff;
  }
  .login-node--app {
    left: 11.25%;            /*  72 / 640 */
    width: 8.75%;            /*  56 / 640 */
    aspect-ratio: 1;
  }
  .login-node--app:nth-of-type(1) { top: 23.125%; } /*  74 / 320 */
  .login-node--app:nth-of-type(2) { top: 50%; }     /* 160 / 320 */
  .login-node--app:nth-of-type(3) { top: 76.875%; } /* 246 / 320 */
  .login-node--app .material-symbols-outlined { font-size: 22px; }

  .login-node--hub {
    left: 46.875%;           /* 300 / 640 */
    top: 50%;
    width: 16.25%;           /* 104 / 640 */
    aspect-ratio: 1;
    border-radius: 1.35rem;
    border-color: rgba(var(--tblr-primary-rgb), 0.28);
    background: #fff;
  }
  .login-node--hub svg { width: 62%; height: auto; display: block; }

  /* the handset the message lands on */
  .login-phone {
    position: absolute;
    left: 86.5%;             /* 554 / 640 */
    top: 50%;
    width: 18.125%;          /* 116 / 640 */
    aspect-ratio: 116 / 232;
    transform: translate(-50%, -50%);
    display: flex; flex-direction: column; justify-content: flex-end;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem 0.6rem;
    border-radius: 1.1rem;
    background: linear-gradient(160deg, #ffffff 0%, #f3f7fc 100%);
    border: 1px solid rgba(31, 41, 55, 0.10);
    box-shadow: 0 1.35rem 2.6rem -1.1rem rgba(31, 41, 55, 0.45), inset 0 1px 0 #fff;
  }
  .login-phone::before { /* earpiece slit */
    content: "";
    position: absolute;
    top: 0.4rem; left: 50%;
    transform: translateX(-50%);
    width: 26%; height: 3px;
    border-radius: 3px;
    background: rgba(31, 41, 55, 0.13);
  }
  /* abstract message lines — no invented copy, just the shape of a text */
  .login-bubble {
    display: flex; flex-direction: column; gap: 0.24rem;
    padding: 0.4rem 0.42rem;
    border-radius: 0.55rem 0.55rem 0.55rem 0.2rem;
    background: rgba(var(--tblr-primary-rgb), 0.11);
  }
  .login-bubble span {
    display: block; height: 3px; border-radius: 3px;
    background: rgba(var(--tblr-primary-rgb), 0.42);
  }
  .login-bubble span:last-child { width: 58%; }
  .login-bubble--new { background: rgba(243, 116, 42, 0.14); }
  .login-bubble--new span { background: rgba(243, 116, 42, 0.5); }

  /* micro-labels under each column of the diagram */
  .login-relay-cap {
    position: absolute;
    top: 100%;
    margin-top: 0.6rem;
    transform: translateX(-50%);
    font-size: 0.625rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--tblr-secondary);
    white-space: nowrap;
  }
  .login-relay-cap--apps { left: 11.25%; }
  .login-relay-cap--hub  { left: 46.875%; }
  .login-relay-cap--out  { left: 86.5%; }

  /* the record trail, stated once instead of as a list */
  .login-relay-note {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.8125rem;
    color: var(--tblr-secondary);
  }

  /* ---- Sign-in panel ---- */  /* ---- Sign-in panel ----
          Three anchored zones (logo / form / footer) rather than one cluster
          floating in the middle, so the panel is composed top to bottom. ---- */
  .login-panel {
    position: relative;
    z-index: 1;
    background: #fff;
    /* lifts the panel off the hero gradient so the split reads as deliberate */
    box-shadow: -1.5rem 0 3.5rem -1.75rem rgba(31, 41, 55, 0.20);
  }
  .login-panel-title {
    margin: 0 0 0.35rem;
    font-size: 1.75rem; font-weight: 800;
    line-height: 1.15; letter-spacing: -0.02em;
    color: var(--tblr-dark);
  }
  .login-panel-lede { color: var(--tblr-secondary); margin-bottom: 1.75rem; }

  .login-input-icon .material-symbols-outlined {
    font-size: 20px;
    color: var(--tblr-secondary);
  }
  /* roomier fields than Tabler's default without jumping to its 1.25rem `lg` */
  .login-panel .login-input-icon .form-control { min-height: 3rem; }
  .login-panel .btn-primary {
    min-height: 3rem;
    font-size: 1rem;
    font-weight: 600;
  }

  .login-panel-foot {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(31, 41, 55, 0.08);
    font-size: 0.8125rem;
    color: var(--tblr-secondary);
    text-align: center;
  }
  .login-panel-foot p { margin: 0; }
  .login-panel-foot .copy {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: rgba(31, 41, 55, 0.38);
  }

  /* =========================================================
     Motion — only when the user hasn't asked to reduce it
     ========================================================= */
  @media (prefers-reduced-motion: no-preference) {
    .login-preview-card { animation: loginIntroUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
    .login-relay-card   { animation: loginIntroUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
    .login-relay-wires .pulse { animation: loginDash 2.6s linear infinite; }
    .login-relay-wires .pulse--i2 { animation-delay: 0.55s; }
    .login-relay-wires .pulse--i3 { animation-delay: 1.10s; }
    .login-relay-wires .pulse--o1 { animation-duration: 2.2s; animation-delay: 1.35s; }
    .login-relay-wires .pulse--o2 { animation-duration: 2.2s; animation-delay: 1.85s; }
    .login-node--hub    { animation: loginHubGlow 3.2s ease-in-out 0.8s infinite; }
    .login-node--app    { animation: loginFade 0.5s ease-out both; }
    .login-node--app:nth-of-type(1) { animation-delay: 0.25s; }
    .login-node--app:nth-of-type(2) { animation-delay: 0.35s; }
    .login-node--app:nth-of-type(3) { animation-delay: 0.45s; }
    .login-phone        { animation: loginFade 0.6s ease-out 0.5s both; }
    .login-bubble--new  { animation: loginIntroUp 0.5s ease-out 1.9s both; }
    .login-chart        { animation: loginReveal 1.1s ease-out 0.45s both; }
    .login-live .dot    { animation: loginPulse 2s ease-in-out infinite; }
    .login-float {
      animation: loginFade 0.6s ease-out 0.3s both, loginFloat 5s ease-in-out 0.9s infinite;
    }
    .login-chip {
      animation: loginFade 0.6s ease-out 0.45s both, loginFloat 6.5s ease-in-out 1.1s infinite;
    }
    .login-hero::after  { animation: loginDrift 16s ease-in-out infinite alternate; }
    .login-ring .prog   { animation: loginRing 1.3s ease-out 0.5s both; }
  }

  @keyframes loginIntroUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes loginFade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes loginFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
  }
  @keyframes loginPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.6); opacity: 0.45; }
  }
  @keyframes loginReveal {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0 0 0); }
  }
  @keyframes loginDrift {
    from { transform: translate(0, 0); }
    to   { transform: translate(2.5rem, 2rem); }
  }
  /* animates from an empty ring (full circumference, r=16 → ~100.53)
     to each ring's own inline stroke-dashoffset target */
  /* with motion off the pulses can't travel, so don't park them on the wires */
  @media (prefers-reduced-motion: reduce) {
    .login-relay-wires .pulse { display: none; }
  }

  @keyframes loginDash {
    to { stroke-dashoffset: -244; }
  }
  /* ring breathing out of the gateway node */
  @keyframes loginHubGlow {
    0%, 100% {
      box-shadow: 0 0.75rem 1.5rem -0.8rem rgba(31, 41, 55, 0.38), inset 0 1px 0 #fff,
                  0 0 0 0 rgba(var(--tblr-primary-rgb), 0.30);
    }
    50% {
      box-shadow: 0 0.75rem 1.5rem -0.8rem rgba(31, 41, 55, 0.38), inset 0 1px 0 #fff,
                  0 0 0 0.85rem rgba(var(--tblr-primary-rgb), 0);
    }
  }
  @keyframes loginRing {
    from { stroke-dashoffset: 100.53; }
  }

/* =========================================================
   OTP — verification code field (sign-in step 2)
   Lives with the login styles: same glass/gradient language,
   same primary accent, same reduced-motion guard.
   ========================================================= */
.swz-otp-email {
  display: inline-block;
  font-weight: 700;
  color: var(--tblr-dark);
  background: rgba(var(--tblr-primary-rgb), 0.10);
  padding: 0.1rem 0.45rem;
  border-radius: 0.5rem;
  white-space: nowrap;
}

.swz-otp-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (max-width: 380px) {
  .swz-otp-grid { gap: 0.3rem; }
}

/* Nested under the grid so it out-specifies Tabler's own `.form-control`. */
.swz-otp-grid .swz-otp-input {
  height: 3.5rem;
  padding: 0;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--tblr-dark);
  border: 1px solid rgba(31, 41, 55, 0.12);
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #ffffff 0%, #f7fafd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.swz-otp-grid .swz-otp-input:hover {
  border-color: rgba(var(--tblr-primary-rgb), 0.35);
}
/* a filled box reads as "done" — needs the `placeholder=" "` on the input */
.swz-otp-grid .swz-otp-input:not(:placeholder-shown) {
  border-color: rgba(var(--tblr-primary-rgb), 0.45);
  background: #ffffff;
}
/* rejected code — set on the grid by create.turbo_stream.erb, cleared on retype */
.swz-otp-grid--invalid .swz-otp-input,
.swz-otp-grid--invalid .swz-otp-input:not(:placeholder-shown) {
  border-color: rgba(var(--tblr-danger-rgb), 0.55);
  background: rgba(var(--tblr-danger-rgb), 0.04);
}

.swz-otp-grid .swz-otp-input:focus {
  outline: none;
  border-color: rgba(var(--tblr-primary-rgb), 0.7);
  background: #ffffff;
  box-shadow:
    0 0 0 0.25rem rgba(var(--tblr-primary-rgb), 0.16),
    0 0.6rem 1.2rem -0.7rem rgba(var(--tblr-primary-rgb), 0.7);
  transform: translateY(-1px);
}

/* resend line */
.swz-otp-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--tblr-secondary);
}
.swz-otp-hint .material-symbols-outlined { font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .swz-otp-grid .swz-otp-input { transition: none; }
  .swz-otp-grid .swz-otp-input:focus { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .swz-otp-grid--invalid { animation: swzOtpShake 0.4s ease both; }
}
@keyframes swzOtpShake {
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

aside.swz-sidebar.navbar-vertical {
  --swz-nav-fg: rgba(255, 255, 255, 0.66);
  --swz-nav-fg-hover: #ffffff;
  --swz-nav-icon: rgba(255, 255, 255, 0.46);
  --swz-nav-accent: #8ec2ed;                 /* light azure — reads on dark */
  --swz-nav-hover-bg: rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(var(--tblr-primary-rgb), 0.18);
  box-shadow: 1px 0 3rem -0.75rem rgba(0, 0, 0, 0.6);
  background:
    radial-gradient(20rem 15rem at 50% -2rem, rgba(var(--tblr-primary-rgb), 0.32), transparent 70%),
    radial-gradient(24rem 20rem at 118% 6%, rgba(var(--tblr-azure-rgb), 0.14), transparent 60%),
    linear-gradient(180deg, #1a2740 0%, #141d2f 42%, #0f1826 100%) !important;
}

/* Slim, unobtrusive scrollbar — and only when the menu actually overflows.
   Tabler hard-codes `overflow-y: scroll` on the sidebar (tabler.css:15096 for
   navbar-expand-lg), which keeps a permanent scrollbar gutter reserved whether
   or not there is anything to scroll — measured 12px with zero content
   overflow. Blink hides that gutter because it honours the standard
   `scrollbar-color` below and paints the track transparent; WebKit falls back
   to the `::-webkit-scrollbar` pseudo-elements, which are always painted, so
   Safari shows a dead scrollbar down a menu that doesn't scroll. `auto` drops
   the gutter until it's earned, in every engine.
   Specificity (0,2,1) beats Tabler's `.navbar-vertical.navbar-expand-lg`. */
aside.swz-sidebar.navbar-vertical { overflow-y: auto; }
aside.swz-sidebar.navbar-vertical { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.16) transparent; }
aside.swz-sidebar.navbar-vertical::-webkit-scrollbar { width: 0.5rem; }
aside.swz-sidebar.navbar-vertical::-webkit-scrollbar-track { background: transparent; }
aside.swz-sidebar.navbar-vertical::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
aside.swz-sidebar.navbar-vertical::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.28); background-clip: content-box; }

/* ---- Brand / logo ---- */
.swz-sidebar .navbar-brand {
  margin: 0 0.9rem 0.35rem;
  padding-bottom: 0.9rem;
}
.swz-sidebar .navbar-brand img { max-height: 2.5rem; width: auto; }

/* ---- Menu list ---- */
.swz-sidebar .navbar-nav {
  gap: 0.15rem;
  padding: 0.4rem 0.6rem 0.7rem;
  width: 100%;
}

/* ---- Links (idle) ---- */
.swz-sidebar.navbar-vertical .navbar-nav .nav-link {
  position: relative;
  margin: 0;
  padding: 0.6rem 0.7rem;
  border-radius: 0.7rem;
  color: var(--swz-nav-fg);
  font-weight: 500;
  line-height: 1.25;
  transition: color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}
.swz-sidebar .navbar-nav .nav-link .nav-link-icon,
.swz-sidebar .navbar-nav .nav-link .material-symbols-outlined {
  color: var(--swz-nav-icon);
  transition: color 0.16s ease;
}

/* ---- Links (hover) ---- */
.swz-sidebar.navbar-vertical .navbar-nav .nav-link:hover,
.swz-sidebar.navbar-vertical .navbar-nav .nav-link:focus-visible {
  color: var(--swz-nav-fg-hover);
  background-color: var(--swz-nav-hover-bg);
}
.swz-sidebar .navbar-nav .nav-link:hover .nav-link-icon,
.swz-sidebar .navbar-nav .nav-link:hover .material-symbols-outlined {
  color: var(--swz-nav-accent);
}

/* ---- Links (active / open) ---- */
.swz-sidebar .navbar-nav .nav-item.active:after,
.swz-sidebar .navbar-nav .nav-item.show:after { display: none !important; }

.swz-sidebar.navbar-vertical .navbar-nav .nav-item.active > .nav-link,
.swz-sidebar.navbar-vertical .navbar-nav .nav-item.show > .nav-link {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(90deg, rgba(var(--tblr-primary-rgb), 0.36), rgba(var(--tblr-azure-rgb), 0.14));
  box-shadow:
    inset 0 0 0 1px rgba(var(--tblr-primary-rgb), 0.42),
    0 0.55rem 1.35rem -0.7rem rgba(var(--tblr-primary-rgb), 0.75);
}
.swz-sidebar .navbar-nav .nav-item.active > .nav-link .nav-link-icon,
.swz-sidebar .navbar-nav .nav-item.active > .nav-link .material-symbols-outlined,
.swz-sidebar .navbar-nav .nav-item.show > .nav-link .nav-link-icon,
.swz-sidebar .navbar-nav .nav-item.show > .nav-link .material-symbols-outlined {
  color: var(--swz-nav-accent);
}

/* ---- Dropdown caret (clean chevron, rotates on open) ---- */
.swz-sidebar .nav-link.dropdown-toggle::after {
  content: "";
  display: inline-block;
  width: 0.46rem;
  height: 0.46rem;
  margin-left: auto;
  border: 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);   /* ˅ points down */
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.swz-sidebar .nav-item.dropdown.show .dropdown-toggle::after,
.swz-sidebar .nav-item.dropdown:has(.dropdown-menu.show) .dropdown-toggle::after {
  transform: translateY(0.05rem) rotate(225deg);   /* ˄ points up */
  opacity: 0.95;
}

/* ---- Dropdown submenu (accordion) ---- */
.swz-sidebar .nav-item.dropdown .dropdown-menu { position: relative; }
/* guide rail down the icon column */
.swz-sidebar .nav-item.dropdown .dropdown-menu.show::before {
  content: "";
  position: absolute;
  left: 1.65rem;
  top: 2.55rem;
  bottom: 0.45rem;
  width: 1.5px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
}
.swz-sidebar .dropdown-menu .dropdown-item {
  position: relative;
  color: var(--swz-nav-fg) !important;
  border-radius: 0.55rem;
  margin: 0.08rem 0.2rem;
  padding-top: 0.42rem;
  padding-bottom: 0.42rem;
  font-weight: 500;
  transition: color 0.16s ease, background-color 0.16s ease;
}
.swz-sidebar .dropdown-menu .dropdown-item:hover,
.swz-sidebar .dropdown-menu .dropdown-item:focus-visible {
  color: #fff !important;
  background-color: var(--swz-nav-hover-bg) !important;
}
.swz-sidebar .dropdown-menu .dropdown-item.active {
  color: #fff !important;
  background-color: rgba(var(--tblr-primary-rgb), 0.24) !important;
}
.swz-sidebar .dropdown-menu .dropdown-item.active::before {
  content: "";
  position: absolute;
  left: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--swz-nav-accent);
  box-shadow: 0 0 0.45rem rgba(var(--tblr-azure-rgb), 0.9);
}

/* ---- Logout — sits at the foot, warns on hover ---- */
.swz-sidebar .navbar-nav .swz-sidebar-logout { margin-top: auto; }
.swz-sidebar.navbar-vertical .navbar-nav .swz-sidebar-logout .nav-link:hover {
  color: #fff;
  background-color: rgba(var(--tblr-danger-rgb), 0.16);
}
.swz-sidebar .navbar-nav .swz-sidebar-logout .nav-link:hover .nav-link-icon,
.swz-sidebar .navbar-nav .swz-sidebar-logout .nav-link:hover .material-symbols-outlined {
  color: var(--tblr-danger);
}

/* =========================================================
     Top bar (header) + page header
     (frosted-glass strip that echoes the dashboard cards and
      the sidebar's soft gradients — sticky, subtle, cohesive)
     ========================================================= */
header.swz-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  min-height: 3.75rem;
  border: 0;
  border-bottom: 1px solid rgba(31, 41, 55, 0.07);
  box-shadow: 0 0.6rem 1.6rem -1.1rem rgba(31, 41, 55, 0.35);
  background:
    radial-gradient(26rem 12rem at 100% -5rem, rgba(var(--tblr-azure-rgb), 0.12), transparent 62%),
    radial-gradient(26rem 12rem at 0% -6rem, rgba(var(--tblr-primary-rgb), 0.08), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78));
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
}

/* ---- User chip ---- */
.swz-user {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.32rem 0.7rem 0.32rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 55, 0.08);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.swz-user:hover,
.swz-user[aria-expanded="true"] {
  border-color: rgba(var(--tblr-primary-rgb), 0.35);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0.65rem 1.5rem -0.9rem rgba(var(--tblr-primary-rgb), 0.6);
  transform: translateY(-1px);
}
.swz-user-avatar {
  flex: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 3px rgba(var(--tblr-primary-rgb), 0.28);
}
.swz-user-meta {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  line-height: 1.15;
  min-width: 0;
}
.swz-user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--tblr-dark);
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.swz-user-email {
  font-size: 0.7rem;
  color: var(--tblr-secondary);
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.swz-user-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tblr-warning);
  background: rgba(var(--tblr-warning-rgb), 0.16);
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
}
.swz-user-caret {
  font-size: 1.05rem;
  color: var(--tblr-secondary);
  transition: transform 0.18s ease, color 0.18s ease;
}
.swz-user[aria-expanded="true"] .swz-user-caret {
  transform: rotate(180deg);
  color: var(--tblr-primary);
}
/* impersonation reads as a gentle amber alert */
.swz-user--impersonating {
  border-color: rgba(var(--tblr-warning-rgb), 0.45);
  background: rgba(var(--tblr-warning-rgb), 0.1);
}
.swz-user--impersonating .swz-user-avatar {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 3px rgba(var(--tblr-warning-rgb), 0.4);
}

/* ---- User dropdown menu ---- */
.swz-user-menu {
  margin-top: 0.55rem;
  padding: 0.4rem;
  border-radius: 1rem;
  border: 1px solid rgba(31, 41, 55, 0.08);
  box-shadow: 0 1.5rem 3rem -1.1rem rgba(31, 41, 55, 0.35);
}
.swz-user-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 0.6rem;
  padding: 0.5rem 0.7rem;
  font-weight: 500;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.swz-user-menu .dropdown-item:hover,
.swz-user-menu .dropdown-item:focus-visible {
  background-color: rgba(var(--tblr-primary-rgb), 0.1);
  color: var(--tblr-primary);
}
.swz-user-menu .swz-menu-icon { font-size: 1.15rem; line-height: 1; }
.swz-user-menu .swz-menu-danger:hover,
.swz-user-menu .swz-menu-danger:focus-visible {
  background-color: rgba(var(--tblr-danger-rgb), 0.12);
  color: var(--tblr-danger);
}
.swz-user-menu .dropdown-divider { margin: 0.3rem 0.2rem; }

/* ---- Page header (title strip below the top bar) ---- */
.swz-page-header {
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
  background: transparent;
  border: 0;
}
.swz-page-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--tblr-dark);
  margin: 0;
}

/* =========================================================
     Footer — frosted strip that mirrors the top bar,
     closing the page in the same design language
     ========================================================= */
footer.swz-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid rgba(31, 41, 55, 0.07);
  background:
    radial-gradient(24rem 9rem at 100% 130%, rgba(var(--tblr-azure-rgb), 0.10), transparent 62%),
    radial-gradient(24rem 9rem at 0% 130%, rgba(var(--tblr-primary-rgb), 0.07), transparent 62%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.4));
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
}

.swz-footer-copy {
  font-size: 0.8rem;
  color: var(--tblr-secondary);
}
.swz-footer-link {
  color: var(--tblr-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.16s ease;
}
.swz-footer-link:hover { color: var(--tblr-primary); }
.swz-footer-sep { color: rgba(31, 41, 55, 0.28); margin: 0 0.2rem; }

.swz-footer-powered {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--tblr-secondary);
}
.swz-footer-brand {
  font-weight: 700;
  color: var(--tblr-primary);
  background: linear-gradient(90deg, var(--tblr-primary), var(--tblr-azure));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.swz-footer-spark {
  flex: none;
  width: 0.45rem; height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tblr-primary), var(--tblr-azure));
  box-shadow: 0 0 0.5rem rgba(var(--tblr-primary-rgb), 0.55);
}
@media (prefers-reduced-motion: no-preference) {
  .swz-footer-spark { animation: loginPulse 2.4s ease-in-out infinite; }
}

/* =========================================================
     Modal — dashboard-style glass (forms, imports, reports)
     Mirrors the .dash-hero language: soft radial primary/azure
     tints, a faded dot-grid biased to the top, rounded corners
     and a gentle lift. Confirmer modals are excluded via
     :not(:has(.swz-confirm)) — they keep their own treatment.
     ========================================================= */
.modal-content:not(:has(.swz-confirm)) {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1.25rem;
  box-shadow:
    0 1.5rem 3rem -1rem rgba(31, 41, 55, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
/* faded dot-grid texture, biased to the top-left (echoes .dash-hero) */
.modal-content:not(:has(.swz-confirm))::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-image: radial-gradient(rgba(31, 41, 55, 0.05) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 95% 60% at 18% 0%, #000 28%, transparent 78%);
  mask-image: radial-gradient(ellipse 95% 60% at 18% 0%, #000 28%, transparent 78%);
  pointer-events: none;
}
.modal-content:not(:has(.swz-confirm)) > * { position: relative; z-index: 1; }

/* ---- Header ---- */
.modal-content:not(:has(.swz-confirm)) .modal-header {
  padding: 1.3rem 1.5rem 1.1rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
  background: transparent;
}
.modal-content:not(:has(.swz-confirm)) .modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--tblr-dark);
}
.modal-content:not(:has(.swz-confirm)) .modal-header .btn-close {
  opacity: 0.5;
  transition: opacity 0.16s ease;
}
.modal-content:not(:has(.swz-confirm)) .modal-header .btn-close:hover { opacity: 1; }

/* ---- Body ---- */
.modal-content:not(:has(.swz-confirm)) .modal-body {
  padding: 1.4rem 1.5rem;
}

/* ---- Footer ---- */
.modal-content:not(:has(.swz-confirm)) .modal-footer {
  gap: 0.5rem;
  /* padding: 1rem 1.5rem 1.3rem; */
  border-top: 1px solid rgba(31, 41, 55, 0.08);
  background: transparent;
}
/* shared geometry for every footer button */
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn {
  border: 0;
  border-radius: 0.75rem;
  padding: 0.55rem 1.4rem;
  font-weight: 600;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

/* solid-colour actions — accent gradient + glow (per-variant rgb) */
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-primary { --swz-btn-rgb: var(--tblr-primary-rgb); }
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-danger  { --swz-btn-rgb: var(--tblr-danger-rgb); }
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-success { --swz-btn-rgb: var(--tblr-success-rgb); }
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-primary,
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-danger,
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-success {
  color: #fff;
  background: linear-gradient(135deg,
    rgba(var(--swz-btn-rgb), 1),
    rgba(var(--swz-btn-rgb), 0.82));
  box-shadow: 0 0.7rem 1.5rem -0.6rem rgba(var(--swz-btn-rgb), 0.85);
}
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-primary:hover,
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-danger:hover,
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-success:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0.9rem 1.9rem -0.6rem rgba(var(--swz-btn-rgb), 0.95);
}

/* dismiss / neutral — a calm grey button, whatever colour class it carries
   (Cancel, Close, Abort — they all dismiss the modal) */
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn[data-bs-dismiss="modal"],
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-secondary,
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-light {
  color: var(--tblr-secondary);
  background: rgba(31, 41, 55, 0.06);
  box-shadow: none;
}
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn[data-bs-dismiss="modal"]:hover,
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-secondary:hover,
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-light:hover {
  color: var(--tblr-dark);
  background: rgba(31, 41, 55, 0.1);
}

/* ---- Gentle rise + scale entrance (all centred app modals) ---- */
@media (prefers-reduced-motion: no-preference) {
  .modal.fade .modal-dialog.modal-dialog-centered { transform: translateY(1.5rem) scale(0.98); }
  .modal.show .modal-dialog.modal-dialog-centered { transform: none; }
}

/* =========================================================
     Confirm modal (confirmer helper)
     Glass shell + gradient icon badge; the accent colour is
     driven per alert type via --swz-accent(-rgb) set inline
     on .swz-confirm, so danger/warning/etc. all theme cleanly.
     ========================================================= */
.modal-content:has(.swz-confirm) {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1.35rem;
  background: linear-gradient(160deg, #ffffff 0%, #f6f9fd 100%);
  box-shadow:
    0 2rem 4rem -1.5rem rgba(31, 41, 55, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.swz-confirm {
  position: relative;
  --swz-accent: var(--tblr-danger);
  --swz-accent-rgb: var(--tblr-danger-rgb);
}
/* soft accent glow behind the icon, tinted by the alert type */
.swz-confirm::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 18rem; height: 9rem;
  transform: translateX(-50%);
  background: radial-gradient(60% 100% at 50% 0%, rgba(var(--swz-accent-rgb), 0.16), transparent 70%);
  pointer-events: none;
}
.swz-confirm > * { position: relative; }

.swz-confirm-close {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  z-index: 2;
  opacity: 0.55;
  transition: opacity 0.16s ease;
}
.swz-confirm-close:hover { opacity: 1; }

.swz-confirm .swz-confirm-body {
  padding: 2rem 1.75rem 1.25rem;
}
.swz-confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem; height: 3.5rem;
  margin-bottom: 1rem;
  border-radius: 1.1rem;
  color: var(--swz-accent);
  background: linear-gradient(135deg,
    rgba(var(--swz-accent-rgb), 0.20),
    rgba(var(--swz-accent-rgb), 0.07));
  box-shadow:
    inset 0 0 0 1px rgba(var(--swz-accent-rgb), 0.20),
    0 0.65rem 1.5rem -0.6rem rgba(var(--swz-accent-rgb), 0.55);
}
.swz-confirm-icon svg { width: 1.7rem; height: 1.7rem; }
.swz-confirm-icon .material-symbols-outlined { font-size: 1.7rem; line-height: 1; }
.swz-confirm-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--tblr-dark);
  margin: 0 0 0.35rem;
}
.swz-confirm-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--tblr-secondary);
  max-width: 22rem;
  margin: 0 auto;
}

/* list variant — an itemised body (e.g. the row errors of a data import)
   inside the same glass dialog shell; left-aligned inside a centred body */
.swz-confirm-list {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  text-align: left;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.swz-confirm-list li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.7rem;
  font-size: 0.85rem; line-height: 1.45;
  color: var(--tblr-dark);
  background: rgba(var(--swz-accent-rgb), 0.07);
  box-shadow: inset 0 0 0 1px rgba(var(--swz-accent-rgb), 0.12);
}
.swz-confirm-list .material-symbols-outlined {
  flex: none;
  font-size: 1.05rem; line-height: 1.3;
  color: var(--swz-accent);
}

.swz-confirm .swz-confirm-footer {
  gap: 0.6rem;
  padding: 0.5rem 1.75rem 1.5rem;
  border-top: 0;
}
.swz-confirm .swz-confirm-footer > * { margin: 0; }
.swz-confirm .swz-confirm-btn {
  flex: 1;
  border: 0;
  border-radius: 0.8rem;
  padding: 0.6rem 1rem;
  font-weight: 600;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.swz-confirm .swz-confirm-btn:active { transform: translateY(1px); }
.swz-confirm .swz-confirm-btn--cancel {
  color: var(--tblr-secondary);
  background: rgba(31, 41, 55, 0.06);
}
.swz-confirm .swz-confirm-btn--cancel:hover {
  color: var(--tblr-dark);
  background: rgba(31, 41, 55, 0.1);
}
.swz-confirm .swz-confirm-btn--accept {
  color: #fff;
  background: linear-gradient(135deg,
    rgba(var(--swz-accent-rgb), 1),
    rgba(var(--swz-accent-rgb), 0.82));
  box-shadow: 0 0.7rem 1.5rem -0.6rem rgba(var(--swz-accent-rgb), 0.85);
}
.swz-confirm .swz-confirm-btn--accept:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0.9rem 1.9rem -0.6rem rgba(var(--swz-accent-rgb), 0.95);
}

@media (prefers-reduced-motion: no-preference) {
  .modal-content:has(.swz-confirm) .swz-confirm-icon {
    animation: swzConfirmPop 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  @keyframes swzConfirmPop {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
  }
}

/* =========================================================
     Partner dashboard — modern glass overview
     (shares the login design language: soft gradients,
      dot-grid texture, gradient icon tiles, gentle lift)
     ========================================================= */
.dash { width: 100%; }

/* ---- Welcome hero ---- */
.dash-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  border-radius: 1.25rem;
  padding: 1.6rem 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 1.5rem 3rem -1.5rem rgba(31, 41, 55, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  background:
    radial-gradient(30rem 30rem at 6% 8%,  rgba(var(--tblr-primary-rgb), 0.20), transparent 55%),
    radial-gradient(34rem 34rem at 98% 18%, rgba(var(--tblr-azure-rgb),   0.18), transparent 55%),
    linear-gradient(135deg, #ffffff 0%, #f4f8fd 55%, #eaf1fa 100%);
}
/* faded dot-grid texture, top-left biased */
.dash-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(31, 41, 55, 0.05) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 85% 120% at 18% 0%, #000 30%, transparent 82%);
  mask-image: radial-gradient(ellipse 85% 120% at 18% 0%, #000 30%, transparent 82%);
}
.dash-hero > * { position: relative; z-index: 1; }
.dash-hero-inner { min-width: 0; }
.dash-hero .swz-eyebrow { margin-bottom: 0.65rem; }
.dash-hero-title {
  font-size: 1.6rem; font-weight: 800;
  letter-spacing: -0.01em; line-height: 1.15;
  color: var(--tblr-dark);
  margin: 0 0 0.3rem;
}
.dash-hero-text { color: var(--tblr-secondary); max-width: 36rem; }
.dash-hero-aside { text-align: right; }
.dash-live {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.6875rem; font-weight: 700; color: var(--tblr-success);
  background: rgba(var(--tblr-success-rgb), 0.14);
  padding: 0.28rem 0.6rem; border-radius: 999px;
  border: 0; cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.dash-live:hover { background: rgba(var(--tblr-success-rgb), 0.22); }
.dash-live:active { transform: scale(0.96); }
.dash-live:disabled { cursor: default; opacity: 0.75; }
.dash-live .dot {
  width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--tblr-success);
}
.dash-live-icon { font-size: 0.85rem; line-height: 1; }
.dash-live.is-refreshing .dash-live-icon {
  animation: dashSpin 0.7s linear infinite;
}
@keyframes dashSpin { to { transform: rotate(360deg); } }
.dash-date { margin-top: 0.55rem; font-size: 0.8rem; font-weight: 600; color: var(--tblr-secondary); }

/* KPI cards now use the shared `.swz-kpi` + `.swz-accent-*` primitives. */

/* ---- Trend panels ---- */
.dash-panel {
  height: 100%;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid rgba(31, 41, 55, 0.06);
  box-shadow: 0 1.25rem 2.5rem -1.5rem rgba(31, 41, 55, 0.22);
}
.dash-panel-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1.4rem 0.5rem;
}
.dash-panel-title { font-size: 1.02rem; font-weight: 700; color: var(--tblr-dark); line-height: 1.1; }
.dash-panel-sub { font-size: 0.75rem; color: var(--tblr-secondary); margin-top: 0.15rem; }
.dash-panel-body { padding: 0.75rem 1.1rem 1.25rem; }

/* ---- entrance motion — reuses login keyframes ---- */
@media (prefers-reduced-motion: no-preference) {
  .dash-hero  { animation: loginIntroUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .dash-panel { animation: loginIntroUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
  .dash .row:nth-of-type(1) .col-md-4:nth-child(1) .swz-kpi { animation-delay: 0.05s; }
  .dash .row:nth-of-type(1) .col-md-4:nth-child(2) .swz-kpi { animation-delay: 0.12s; }
  .dash .row:nth-of-type(1) .col-md-4:nth-child(3) .swz-kpi { animation-delay: 0.19s; }
}

/* =========================================================
     Fluid content width (app-wide) — Tabler caps every
     [class^=container] at 1140px/1320px and centres it with
     `margin: auto`, so once the viewport passes ~1560px the
     leftover space splits evenly and the content drifts away
     from the fixed 15rem sidebar (20px @1600, 84px @1728,
     180px @1920). Going fluid keeps the content butted up
     against the sidebar — a constant `--tblr-page-padding`
     gutter — at every width.

     Structural selectors, not the `.swz-*` ones: the nadmin
     shell reuses the same markup without the swz classes.
     The sidebar's own `.container-fluid` is excluded by the
     `> .container-xl` child combinator, and the login/OTP
     screens sit in `.page-center` with no `.page-wrapper`,
     so they keep their centred layout.
     Specificity (0,3,0) beats Tabler's bare `.container-xl`,
     which loads AFTER application.css — `stylesheet_link_tag
     :app` globs the css under app/assets alphabetically.
     ========================================================= */
.page > .navbar > .container-xl,
.page > .page-wrapper .container-xl {
  max-width: 98%;
}

/* =========================================================
     Scrollbar shift (app-wide) — tabler.css:13913 hangs
     `margin-left: calc(100vw - 100%)` on `:root` above
     992px. `100vw` counts the classic scrollbar, `100%`
     doesn't, so on a scrollable page the whole html box
     slides right by the scrollbar width. The sidebar is
     `position: fixed`, so it stays pinned to the viewport
     edge while the content moves — the left gutter measured
     44.3px with a scrollbar vs 29.6px without, against a
     29.3px right gutter. Tabler does this to stop *centred*
     content from jumping as the scrollbar comes and goes;
     ours isn't centred any more (see the block above), so
     the hack only buys us a lopsided page.

     `html:root` is specificity (0,1,1) and beats Tabler's
     bare `:root` (0,1,0) despite tabler.css loading later.
     ========================================================= */
html:root {
  margin-left: 0;
  margin-right: 0;
}

/* =========================================================
     Glass cards (app-wide) — every Tabler .card in the
     authenticated shell adopts the report-panel look:
     rounded, hairline border, soft offset-down shadow,
     clean white surface, airy (grey-free) header/footer.

     Driven through Tabler's own card CSS variables, so
     card-header / card-footer / card-img / inner radii all
     follow automatically (no overflow:hidden that would clip
     dropdowns). Scoped to .page-wrapper — the bespoke
     login/OTP screens live outside it and keep their design.
     Specificity `.page-wrapper .card` (0,2,0) beats Tabler's
     bare `.card`, which loads AFTER application.css.
     ========================================================= */
.page-wrapper .card {
  --tblr-card-border-radius: 1.25rem;
  --tblr-card-inner-border-radius: calc(1.25rem - var(--tblr-card-border-width));
  --tblr-card-border-color: rgba(31, 41, 55, 0.06);
  --tblr-card-box-shadow: 0 1.25rem 2.5rem -1.5rem rgba(31, 41, 55, 0.22);
  --tblr-card-cap-bg: transparent;
  --tblr-card-bg: #fff;
}
/* compact cards get a slightly tighter radius */
.page-wrapper .card.card-sm {
  --tblr-card-border-radius: 1rem;
  --tblr-card-inner-border-radius: calc(1rem - var(--tblr-card-border-width));
}
/* a lone card inside a modal shouldn't carry a page-level drop shadow
   (nested .card .card is already flattened by Tabler) */
.page-wrapper .modal .card { --tblr-card-box-shadow: none; }

/* =========================================================
     Global chrome — the report re-skins folded onto the
     base Tabler classes so the whole authenticated app
     inherits them. Each selector out-specifies Tabler
     (which loads after application.css). Dropdowns/tables/
     lists are scoped to .page-wrapper (content only, leaving
     the header/sidebar menus alone); modals use `.modal .x`
     so they're caught wherever they mount in the DOM.
     ========================================================= */

/* ---- Frosted dropdown menus (content area) ---- */
.page-wrapper .dropdown-menu {
  padding: 0.4rem;
  border-radius: 1rem;
  border: 1px solid rgba(31, 41, 55, 0.08);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 1.5rem 3rem -1.25rem rgba(31, 41, 55, 0.35);
}
.page-wrapper .dropdown-menu .dropdown-item {
  display: flex; align-items: center;
  border-radius: 0.7rem;
  padding: 0.5rem 0.8rem;
  font-weight: 500;
  color: var(--tblr-dark);
}
.page-wrapper .dropdown-menu .dropdown-item:hover,
.page-wrapper .dropdown-menu .dropdown-item:focus-visible {
  background: rgba(var(--tblr-primary-rgb), 0.1);
  color: var(--tblr-primary);
}
.page-wrapper .dropdown-menu .dropdown-item.active {
  color: var(--tblr-primary);
  font-weight: 700;
  background: rgba(var(--tblr-primary-rgb), 0.14);
}
.page-wrapper .dropdown-menu .dropdown-item.active::after {
  content: "check";
  font-family: "Material Symbols Outlined";
  font-weight: normal; font-style: normal;
  letter-spacing: normal; text-transform: none;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  margin-left: auto; padding-left: 0.75rem;
  font-size: 1.05rem; line-height: 1;
}
.page-wrapper .dropdown-menu .dropdown-divider {
  margin: 0.3rem 0.2rem;
  border-color: rgba(31, 41, 55, 0.08);
}

/* ---- Glass modals (app-wide) ---- */
.modal .modal-content {
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1.35rem;
  background: linear-gradient(135deg, #ffffff 0%, #f7fafd 100%);
  box-shadow:
    0 2rem 4rem -1.5rem rgba(31, 41, 55, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.modal .modal-header { border-bottom: 1px solid rgba(31, 41, 55, 0.06); }
.modal .modal-title {
  font-weight: 800; letter-spacing: -0.01em; color: var(--tblr-dark);
}
.modal .modal-footer { border-top: 1px solid rgba(31, 41, 55, 0.06); }
.modal .modal-body .form-control,
.modal .modal-body .form-select { border-radius: 0.7rem; }

/* ---- Table polish (content area) ---- */
.page-wrapper .table { --tblr-table-bg: transparent; }
.page-wrapper .table thead th {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--tblr-secondary);
  border-bottom: 1px solid rgba(31, 41, 55, 0.1);
}
.page-wrapper .table tbody td { padding-top: 0.7rem; padding-bottom: 0.7rem; }
.page-wrapper .table tbody tr:hover td { background: rgba(var(--tblr-primary-rgb), 0.05); }

/* ---- List-group rows (content area) ---- */
.page-wrapper .list-group-item {
  border: 0;
  border-top: 1px solid rgba(31, 41, 55, 0.06);
  color: var(--tblr-dark);
  background: transparent;
}
.page-wrapper .list-group-item:first-child { border-top: 0; }
.page-wrapper .list-group-item.bg-light {
  background: rgba(31, 41, 55, 0.035) !important;
  font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--tblr-secondary);
}
.page-wrapper .list-group-item.bg-light .fw-bold { font-weight: 700; color: var(--tblr-secondary); }
.page-wrapper .list-group-flush .list-group-item:not(.bg-light):hover {
  background: rgba(var(--tblr-primary-rgb), 0.05);
}

/* ---- Buttons (app-wide) ----
   Rounded corners, weight 600 and a subtle hover-lift on every button;
   the filled accent/semantic variants also get a gradient fill + soft
   colored glow (the login / confirm-modal treatment). Driven through
   Tabler's own --tblr-btn-* variables. Anchored on `body` (specificity
   0,1,1) so it beats Tabler's bare `.btn` — which loads after this file —
   everywhere, including login and modals (mounted outside .page-wrapper).
   Per-variant text colour is left untouched so contrast is preserved. */
body .btn {
  --tblr-btn-border-radius: 0.8rem;
  --tblr-btn-font-weight: 600;
  transition: color 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
body .btn-sm { --tblr-btn-border-radius: 0.55rem; }
body .btn.btn-pill { --tblr-btn-border-radius: 100rem; } /* keep pills round */
body .btn:hover { transform: translateY(-1px); }
body .btn:active { transform: translateY(0); }

/* filled accent / semantic variants → gradient + glow (alpha gradient, so
   the button background is made transparent to let it read on light surfaces) */
body .btn-primary { --swz-btn-rgb: var(--tblr-primary-rgb); }
body .btn-success { --swz-btn-rgb: var(--tblr-success-rgb); }
body .btn-danger  { --swz-btn-rgb: var(--tblr-danger-rgb); }
body .btn-warning { --swz-btn-rgb: var(--tblr-warning-rgb); }
body .btn-info    { --swz-btn-rgb: var(--tblr-info-rgb); }
body .btn-primary,
body .btn-success,
body .btn-danger,
body .btn-warning,
body .btn-info {
  --tblr-btn-bg: transparent;
  --tblr-btn-hover-bg: transparent;
  --tblr-btn-active-bg: transparent;
  border-color: transparent;
  background-image: linear-gradient(135deg,
    rgba(var(--swz-btn-rgb), 1),
    rgba(var(--swz-btn-rgb), 0.82));
  --tblr-btn-box-shadow: 0 0.5rem 1.15rem -0.55rem rgba(var(--swz-btn-rgb), 0.6);
}
body .btn-primary:hover,
body .btn-success:hover,
body .btn-danger:hover,
body .btn-warning:hover,
body .btn-info:hover {
  --tblr-btn-box-shadow: 0 0.8rem 1.7rem -0.5rem rgba(var(--swz-btn-rgb), 0.78);
}

@media (prefers-reduced-motion: reduce) {
  body .btn { transition: none; }
  body .btn:hover { transform: none; }
}

/* =========================================================
     Shared "swz" primitives — one implementation each,
     consumed by the dashboard, reports and login (replaces
     the old per-feature dash-, rpt- and login- duplicates).
     Components theme via --swz-accent / --swz-accent-rgb.
     ========================================================= */

/* ---- Eyebrow chip (accent-aware; defaults to primary) ---- */
.swz-eyebrow {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--swz-accent, var(--tblr-primary));
  background: rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.12);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.swz-eyebrow .material-symbols-outlined { font-size: 0.95rem; line-height: 1; }

/* ---- Accent modifiers (set the accent variable for children) ---- */
.swz-accent-primary { --swz-accent: var(--tblr-primary); --swz-accent-rgb: var(--tblr-primary-rgb); }
.swz-accent-azure   { --swz-accent: var(--tblr-azure);   --swz-accent-rgb: var(--tblr-azure-rgb); }
.swz-accent-success { --swz-accent: var(--tblr-success); --swz-accent-rgb: var(--tblr-success-rgb); }
.swz-accent-warning { --swz-accent: var(--tblr-warning); --swz-accent-rgb: var(--tblr-warning-rgb); }
.swz-accent-danger  { --swz-accent: var(--tblr-danger);  --swz-accent-rgb: var(--tblr-danger-rgb); }
.swz-accent-purple  { --swz-accent: var(--tblr-purple);  --swz-accent-rgb: var(--tblr-purple-rgb); }
.swz-accent-pink    { --swz-accent: var(--tblr-pink);    --swz-accent-rgb: var(--tblr-pink-rgb); }
.swz-accent-teal    { --swz-accent: var(--tblr-teal);    --swz-accent-rgb: var(--tblr-teal-rgb); }
.swz-accent-secondary { --swz-accent: var(--tblr-secondary); --swz-accent-rgb: var(--tblr-secondary-rgb); }

/* ---- Muted pill / chip. `--accent` tints it with the inherited accent (pair
        it with a `.swz-accent-*` modifier); `--btn` makes it clickable. ---- */
.swz-pill {
  flex: none;
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.7rem; font-weight: 600; color: var(--tblr-secondary);
  background: rgba(31, 41, 55, 0.05);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}
.swz-pill .material-symbols-outlined { font-size: 0.95rem; line-height: 1; }
.swz-pill--accent {
  color: var(--swz-accent, var(--tblr-primary));
  background: rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.14);
}
.swz-pill--btn {
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.swz-pill--btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.5rem 1.1rem -0.6rem rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.9);
}

/* ---- Frosted filter select — a native <select> dressed as the report
        filter pill (frosted, rounded, chevron). Wrap it in `.swz-filter`
        to add a leading Material Symbols icon. Reusable on any filter. ---- */
.page-wrapper .filter-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }

.swz-filter { position: relative; display: inline-flex; vertical-align: middle; }
.swz-filter > .material-symbols-outlined {
  position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
  font-size: 1.15rem; line-height: 1;
  color: var(--tblr-primary);
  pointer-events: none; z-index: 2;
}
.swz-filter .swz-select.form-select { padding-left: 2.4rem; }

.swz-select.form-select {
  width: auto !important; /* beat gem's inline width on the duration field */
  min-width: 9.5rem;
  font-size: 0.85rem; font-weight: 600;
  color: var(--tblr-dark);
  background-color: rgba(255, 255, 255, 0.72);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 999px;
  box-shadow: 0 0.6rem 1.4rem -1rem rgba(31, 41, 55, 0.35);
  padding: 0.5rem 2.4rem 0.5rem 0.95rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.swz-select.form-select:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--tblr-primary-rgb), 0.35);
  box-shadow: 0 0.9rem 1.8rem -1rem rgba(var(--tblr-primary-rgb), 0.55);
}
.swz-select.form-select:focus {
  border-color: rgba(var(--tblr-primary-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--tblr-primary-rgb), 0.15);
  background-color: rgba(255, 255, 255, 0.9);
}

/* ---- Date inputs in a filter row: the `start_date`/`end_date` fields the
        datatable filter controller injects for a "Custom" duration, and the
        `.swz-date` bounds a report's own range form submits. Dress the native
        date input as the same frosted pill as `.swz-select`. */
.filter-form .customDurationField.form-control,
.filter-form .swz-date.form-control {
  width: auto;
  font-size: 0.85rem; font-weight: 600;
  color: var(--tblr-dark);
  background-color: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 999px;
  box-shadow: 0 0.6rem 1.4rem -1rem rgba(31, 41, 55, 0.35);
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.filter-form .customDurationField.form-control::-webkit-calendar-picker-indicator,
.filter-form .swz-date.form-control::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: 0.55;
}
.filter-form .customDurationField.form-control:hover,
.filter-form .swz-date.form-control:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--tblr-primary-rgb), 0.35);
  box-shadow: 0 0.9rem 1.8rem -1rem rgba(var(--tblr-primary-rgb), 0.55);
}
.filter-form .customDurationField.form-control:focus,
.filter-form .swz-date.form-control:focus {
  border-color: rgba(var(--tblr-primary-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--tblr-primary-rgb), 0.15);
  background-color: rgba(255, 255, 255, 0.9);
}

/* ==== Field validation ===================================================
   Inline rejection styling for a form field and its message. Deliberately
   generic — any swz form pairs `.swz-field-error` with `.swz-input--invalid`
   instead of growing a per-feature copy. Same danger treatment as the
   rejected-code state on `.swz-otp-grid--invalid`. Toggled from JS; hide the
   message with Bootstrap's `.d-none`. */
.swz-field-error {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tblr-danger);
}
.swz-field-error::before {
  content: "error";
  font-family: "Material Symbols Outlined";
  font-weight: normal; font-style: normal;
  letter-spacing: normal; text-transform: none;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  font-size: 1rem; line-height: 1;
  flex-shrink: 0;
}

.form-control.swz-input--invalid {
  border-color: rgba(var(--tblr-danger-rgb), 0.55);
  background-color: rgba(var(--tblr-danger-rgb), 0.04);
}
.form-control.swz-input--invalid:focus {
  border-color: rgba(var(--tblr-danger-rgb), 0.7);
  box-shadow: 0 0 0 0.25rem rgba(var(--tblr-danger-rgb), 0.16);
}

/* A flat input-group has to keep reading as one control when its field is
   rejected: tint the addons along with the input, and hold the danger ring
   through focus — Tabler's own `:focus-within` rule is `!important`, so the
   overrides here have to be too. */
.input-group-flat:has(> .form-control.swz-input--invalid) > .input-group-text {
  color: var(--tblr-danger);
  border-color: rgba(var(--tblr-danger-rgb), 0.55);
  background-color: rgba(var(--tblr-danger-rgb), 0.04);
}
.input-group-flat:has(> .form-control.swz-input--invalid) > .input-group-text .material-symbols-outlined {
  color: var(--tblr-danger);
}
.input-group-flat:has(> .form-control.swz-input--invalid):focus-within {
  box-shadow: 0 0 0 0.25rem rgba(var(--tblr-danger-rgb), 0.16);
}
.input-group-flat:has(> .form-control.swz-input--invalid):focus-within .form-control,
.input-group-flat:has(> .form-control.swz-input--invalid):focus-within .input-group-text {
  border-color: rgba(var(--tblr-danger-rgb), 0.7) !important;
}

@media (prefers-reduced-motion: no-preference) {
  .swz-field-error { animation: swzFieldErrorIn 0.22s ease both; }
}
@keyframes swzFieldErrorIn {
  from { opacity: 0; transform: translateY(-0.15rem); }
  to   { opacity: 1; transform: none; }
}

/* ==== Active filters bar (orders index) ==================================
   A frosted strip under the card header that shows, as removable pills, the
   filters currently applied to the datatable. Populated by the
   `partner--orders` Stimulus controller from the stored filter set. */
.swz-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
}
/* Hidden until the controller fills it, so there's no empty band on load. */
.swz-active-filters:empty { display: none; }

.swz-fchip-lead {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-right: 0.15rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--tblr-secondary);
}
.swz-fchip-lead .material-symbols-outlined { font-size: 1rem; color: var(--tblr-primary); }

.swz-fchip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0.45rem 0.3rem 0.7rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 999px;
  box-shadow: 0 0.5rem 1.2rem -0.9rem rgba(31, 41, 55, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.swz-fchip:not(.swz-fchip--static):hover {
  transform: translateY(-1px);
  border-color: rgba(var(--tblr-primary-rgb), 0.3);
  box-shadow: 0 0.7rem 1.4rem -0.9rem rgba(var(--tblr-primary-rgb), 0.6);
}
/* The always-on date-range chip is tinted with the accent to set it apart. */
.swz-fchip--static {
  padding-right: 0.85rem;
  background: linear-gradient(135deg, rgba(var(--tblr-primary-rgb), 0.14), rgba(var(--tblr-primary-rgb), 0.06));
  border-color: rgba(var(--tblr-primary-rgb), 0.22);
}

.swz-fchip-icon { font-size: 1.05rem; color: var(--tblr-primary); }
.swz-fchip-text { display: inline-flex; flex-direction: column; line-height: 1.1; }
.swz-fchip-label {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--tblr-secondary);
}
.swz-fchip-value { font-size: 0.82rem; font-weight: 600; color: var(--tblr-dark); }

.swz-fchip-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.35rem; height: 1.35rem; padding: 0; border: 0;
  border-radius: 999px; cursor: pointer;
  color: var(--tblr-secondary);
  background: rgba(31, 41, 55, 0.06);
  transition: background 0.15s ease, color 0.15s ease;
}
.swz-fchip-x .material-symbols-outlined { font-size: 1rem; }
.swz-fchip-x:hover { background: rgba(var(--tblr-danger-rgb), 0.14); color: var(--tblr-danger); }

.swz-fchip-clear {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-left: 0.15rem; padding: 0.4rem 0.75rem;
  border: 0; background: transparent; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; color: var(--tblr-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.swz-fchip-clear .material-symbols-outlined { font-size: 1.05rem; }
.swz-fchip-clear:hover { background: rgba(var(--tblr-danger-rgb), 0.12); color: var(--tblr-danger); }

/* ---- KPI tile (dashboard + reports). The accent is read with a primary
        fallback rather than declared here, so a `.swz-accent-*` modifier on
        the tile itself (equal specificity, defined earlier in this file) is
        not overridden. ---- */
.swz-kpi {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  padding: 1.35rem 1.45rem 1.3rem;
  /* the documented light-glass surface (as `.dash-hero`), accent-tinted:
     translucent white border, layered shadow, inset top highlight. */
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: linear-gradient(150deg, #ffffff 0%, #f8fbfd 52%, #eff4fb 100%);
  box-shadow:
    0 0.45rem 0.9rem -0.7rem rgba(31, 41, 55, 0.16),
    0 1.5rem 3rem -1.6rem rgba(31, 41, 55, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
/* Accent bloom in the top-right corner. This replaces the old 3px full-width
   top stripe — a coloured bar on a flat white card is the one detail that
   dated the tile. `z-index: -1` inside the isolated stacking context paints
   the bloom over the tile background but under the content. */
.swz-kpi::before {
  content: "";
  position: absolute;
  top: -3.75rem; right: -3.25rem;
  width: 11rem; height: 11rem;
  border-radius: 50%;
  z-index: -1;
  background: radial-gradient(circle,
    rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.17), transparent 62%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.swz-kpi:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.32);
  box-shadow:
    0 0.5rem 1rem -0.7rem rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.3),
    0 1.9rem 3.4rem -1.5rem rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.swz-kpi:hover::before { transform: scale(1.1); }

/* Label left, icon badge pinned top-right — the modern stat-tile reading
   order. Done with `row-reverse` so the markup (icon then label) is unchanged
   across every consumer. */
.swz-kpi-top {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.swz-kpi-icon {
  flex: none;
  width: 2.5rem; height: 2.5rem;
  border-radius: 1.1rem; /* the design language's icon-tile radius */
  display: flex; align-items: center; justify-content: center;
  color: var(--swz-accent, var(--tblr-primary));
  background: linear-gradient(135deg,
    rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.20),
    rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.06));
  box-shadow:
    inset 0 0 0 1px rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.18),
    0 0.5rem 1rem -0.65rem rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.65);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.swz-kpi:hover .swz-kpi-icon { transform: translateY(-1px) scale(1.05); }
.swz-kpi-icon .material-symbols-outlined { font-size: 21px; }
.swz-kpi-label {
  flex: 1 1 auto;
  padding-top: 0.15rem;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--tblr-secondary);
  line-height: 1.25;
}
/* `margin-top: auto` bottom-aligns the number, so values line up across a row
   even when one tile's label wraps to two lines. `tabular-nums` keeps digits
   the same width, so a JS-updated value doesn't jitter its own width. */
.swz-kpi-value {
  margin-top: auto;
  margin-bottom: 0;
  font-size: clamp(1.5rem, 1.15rem + 1.1vw, 1.95rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.1;
  color: var(--tblr-dark);
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.swz-kpi-sub {
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(31, 41, 55, 0.07);
  font-size: 0.78rem; line-height: 1.35;
  color: var(--tblr-secondary);
}
.swz-kpi-sub span { font-weight: 700; color: var(--tblr-dark); }
/* the placeholder a JS-fed tile shows until its value lands. It sits *inside*
   `.swz-kpi-value`, so the controller's `innerHTML =` replaces it — no JS needed
   to clear it. Muted so an empty tile never reads as real data. */
.swz-kpi-placeholder {
  color: rgba(31, 41, 55, 0.2);
  letter-spacing: 0.05em;
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes swzKpiPlaceholder { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
  .swz-kpi-placeholder { animation: swzKpiPlaceholder 1.6s ease-in-out infinite; }
}

/* ---- Page toolbar — eyebrow + optional description on the left, a control
        (filter, status pill, actions) on the right. Sits above the panels of
        a cardless page. ---- */
.swz-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  /* The entrance animation makes this a stacking context; lift it above the
     sibling cards (position:relative, z-index:auto) so an open dropdown,
     which is trapped inside this context, paints over them. */
  position: relative;
  z-index: 20;
}
.swz-toolbar-info { min-width: 0; }
.swz-toolbar-sub {
  margin: 0.55rem 0 0;
  font-size: 0.9rem; color: var(--tblr-secondary);
}

/* ---- Read-only metadata grid (detail / show pages): gradient icon tile,
        uppercase label, value. Auto-fits to the available width. ---- */
.swz-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 1.15rem 1.25rem;
}
.swz-meta-item { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.swz-meta-icon {
  flex: none;
  width: 2.4rem; height: 2.4rem;
  border-radius: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--swz-accent, var(--tblr-primary));
  background: linear-gradient(135deg,
    rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.18),
    rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.07));
  box-shadow: inset 0 0 0 1px rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.15);
}
.swz-meta-icon .material-symbols-outlined { font-size: 20px; }
.swz-meta-text { min-width: 0; }
.swz-meta-label {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--tblr-secondary);
  line-height: 1.4;
}
.swz-meta-value {
  font-size: 0.9rem; font-weight: 600; color: var(--tblr-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.swz-meta-value a { color: var(--tblr-primary); text-decoration: none; }
.swz-meta-value a:hover { text-decoration: underline; }

/* ---- Segmented control (frosted pill group) — e.g. filtering a table by
        outcome. Mark the current button `.active`; give a button its own
        `.swz-accent-*` to colour its active state. ---- */
.swz-seg {
  display: inline-flex; align-items: center; gap: 0.2rem;
  padding: 0.2rem;
  background: rgba(31, 41, 55, 0.05);
  border-radius: 999px;
}
.swz-seg-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 0; background: transparent;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem; font-weight: 600;
  color: var(--tblr-secondary);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.swz-seg-btn:hover { color: var(--tblr-dark); }
.swz-seg-btn.active {
  color: var(--swz-accent, var(--tblr-primary));
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0.35rem 0.9rem -0.5rem rgba(31, 41, 55, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}
.swz-seg-count {
  font-size: 0.68rem; font-weight: 700;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.07);
}
.swz-seg-btn.active .swz-seg-count {
  color: var(--swz-accent, var(--tblr-primary));
  background: rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.14);
}

/* ---- Scrollable table shell — vertical + horizontal scroll with a frosted
        sticky header row. Wrap a `.table` in it instead of `.table-responsive`
        when the row count can run long. ---- */
.swz-table-scroll {
  max-height: min(60vh, 34rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.page-wrapper .swz-table-scroll .table thead th {
  position: sticky; top: 0; z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
}
/* keep the card's rounded bottom when the shell is its last child */
.card > .swz-table-scroll:last-child {
  border-bottom-left-radius: var(--tblr-card-border-radius, 1.25rem);
  border-bottom-right-radius: var(--tblr-card-border-radius, 1.25rem);
}

/* ---- Full-height empty / error state (403, 404, no-data). Themeable via
        a `.swz-accent-*` modifier on the container (default primary). ---- */
.swz-state {
  width: 100%;
  min-height: 55vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}
.swz-state-icon {
  width: 4.5rem; height: 4.5rem;
  border-radius: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--swz-accent, var(--tblr-primary));
  background: linear-gradient(135deg,
    rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.18),
    rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.07));
  box-shadow: inset 0 0 0 1px rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.15);
}
.swz-state-icon .material-symbols-outlined { font-size: 2.2rem; line-height: 1; }
.swz-state .swz-eyebrow { margin-bottom: 0.85rem; }
.swz-state-title {
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: -0.01em; color: var(--tblr-dark);
  margin: 0 0 0.5rem;
}
.swz-state-text { color: var(--tblr-secondary); max-width: 26rem; margin: 0 auto 1.5rem; }
.swz-state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }

@media (prefers-reduced-motion: no-preference) {
  .swz-state { animation: loginIntroUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
}

/* =========================================================
     Partner reports — the report-specific layout that has
     no base-class equivalent (page toolbar, filter pill,
     ranked list). Panels/lists/tables now use plain cards.
     ========================================================= */
/* Like the other cardless pages, this one is a column inside the layout's
   `.row-deck`, which makes every column a flex box — without a direction the
   toolbar, the tiles and the panels would sit side by side. */
.rpt {
  width: 100%;
  flex-direction: column;
}
.rpt .card + .card { margin-top: 1rem; }
.rpt .swz-kpi-grid + .swz-kpi-grid { margin-top: 1rem; }

/* The report toolbar is the shared `.swz-toolbar` primitive above. */

/* ---- Filter pill (frosted dropdown trigger; the menu itself
        uses the global .dropdown-menu chrome above) ---- */
.rpt-filter { flex: none; }
.rpt-filter-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; font-weight: 600; color: var(--tblr-dark);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 999px;
  padding: 0.5rem 0.55rem 0.5rem 0.95rem;
  box-shadow: 0 0.6rem 1.4rem -1rem rgba(31, 41, 55, 0.35);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.rpt-filter-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--tblr-primary-rgb), 0.35);
  box-shadow: 0 0.9rem 1.8rem -1rem rgba(var(--tblr-primary-rgb), 0.55);
}
.rpt-filter-btn[aria-expanded="true"] {
  border-color: rgba(var(--tblr-primary-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--tblr-primary-rgb), 0.15);
}
.rpt-filter-icon { font-size: 1.15rem; line-height: 1; color: var(--tblr-primary); }
.rpt-filter-label { white-space: nowrap; }
.rpt-filter-caret {
  font-size: 1.2rem; line-height: 1;
  color: var(--tblr-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.6rem; height: 1.6rem;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.05);
  transition: transform 0.2s ease;
}
.rpt-filter-btn[aria-expanded="true"] .rpt-filter-caret { transform: rotate(180deg); }

/* ---- Ranked list (top products) ---- */
.rpt-ranklist.list-group { gap: 0.5rem; padding: 0.35rem 0; }
.rpt-ranklist .list-group-item {
  display: flex; align-items: center; gap: 0.75rem;
  border: 1px solid rgba(31, 41, 55, 0.06);
  border-radius: 0.85rem;
  padding: 0.7rem 0.9rem;
  color: var(--tblr-dark); font-weight: 500;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rpt-ranklist .list-group-item:hover {
  transform: translateX(2px);
  box-shadow: 0 0.6rem 1.4rem -1rem rgba(31, 41, 55, 0.4);
}
.rpt-ranklist .list-group-item .badge {
  flex: none;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  color: #fff;
}

/* ---- entrance motion — reuses login keyframes ---- */
@media (prefers-reduced-motion: no-preference) {
  .swz-kpi     { animation: loginIntroUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .swz-toolbar { animation: loginIntroUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .rpt .card,
  .swz-import .card { animation: loginIntroUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }
  .swz-kpi-grid > *:nth-child(1) .swz-kpi { animation-delay: 0.04s; }
  .swz-kpi-grid > *:nth-child(2) .swz-kpi { animation-delay: 0.09s; }
  .swz-kpi-grid > *:nth-child(3) .swz-kpi { animation-delay: 0.14s; }
  .swz-kpi-grid > *:nth-child(4) .swz-kpi { animation-delay: 0.19s; }
  .swz-kpi-grid > *:nth-child(5) .swz-kpi { animation-delay: 0.24s; }
  .swz-kpi-grid > *:nth-child(6) .swz-kpi { animation-delay: 0.29s; }
  .swz-kpi-grid > *:nth-child(7) .swz-kpi { animation-delay: 0.34s; }
  /* a page split across two grids keeps one continuous cascade */
  .swz-kpi-grid + .swz-kpi-grid > *:nth-child(1) .swz-kpi { animation-delay: 0.24s; }
  .swz-kpi-grid + .swz-kpi-grid > *:nth-child(2) .swz-kpi { animation-delay: 0.29s; }
  .swz-kpi-grid + .swz-kpi-grid > *:nth-child(3) .swz-kpi { animation-delay: 0.34s; }
}

/* =========================================================
     USAGE REPORT (usage_reports#show)
     A range of days and what went out on each. The tiles, toolbar, table
     shell and empty state are the shared primitives; what is new here is the
     range form's labels and the column chart, which is plain markup — one
     column per day, drawn from the accent, sized by its share of the axis.
     ========================================================= */
.rpt .swz-kpi-grid + .card { margin-top: 1rem; }
/* the no-data state sits inside a panel here, not on a full page */
.rpt .swz-state { min-height: 16rem; padding: 1.5rem; }
/* keep the blurb narrow enough that the range form stays beside it rather
   than wrapping under it */
.rpt .swz-toolbar-sub { max-width: 52ch; }

/* ---- "From"/"To" wrapped around their date input ---- */
.swz-range {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin: 0;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--tblr-secondary);
}

/* ---- Column chart. The scale is a sibling of the plot rather than inside
        it: the plot scrolls sideways once a long range outgrows the card, and
        the axis has to stay put. Their margins match so both start on the
        same line. ---- */
.swz-chart {
  --swz-chart-height: 15rem;
  --swz-chart-line: rgba(31, 41, 55, 0.09);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.75rem;
}
.swz-chart-scale {
  position: relative;
  height: var(--swz-chart-height);
  margin: 1.35rem 0 1.6rem;
  font-size: 0.68rem; font-weight: 700;
  color: var(--tblr-secondary);
  font-variant-numeric: tabular-nums;
}
/* Each label is centred on the gridline it names: parked above the line by
   `bottom`, then dropped half its own height. */
.swz-chart-scale span { position: absolute; right: 0; transform: translateY(50%); }
.swz-chart-scale span:nth-child(1) { bottom: 100%; }
.swz-chart-scale span:nth-child(2) { bottom: 50%; }
.swz-chart-scale span:nth-child(3) { bottom: 0; }

/* The caps and date ticks hang outside the plot, so the scroller carries the
   room for them — `overflow-x` would clip anything in the margin. */
.swz-chart-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.35rem 0 1.6rem;
}

/* `max-content` with a 100% floor: a month of days stretches to fill the
   card, a year of them keeps every column hoverable and scrolls instead. */
.swz-chart-plot {
  position: relative;
  display: flex; align-items: flex-end; gap: 2px;
  width: max-content; min-width: 100%;
  height: var(--swz-chart-height);
  margin: 0; padding: 0;
  list-style: none;
  border-top: 1px solid var(--swz-chart-line);
  border-bottom: 1px solid var(--swz-chart-line);
  /* the midway gridline; the other two are the borders above */
  background-image: linear-gradient(to top,
    transparent calc(50% - 1px),
    var(--swz-chart-line) calc(50% - 1px),
    var(--swz-chart-line) 50%,
    transparent 50%);
}
/* The column is the hover target, not the bar — a day nothing went out on has
   no bar to aim at. */
.swz-chart-col {
  position: relative;
  flex: 1 1 0; min-width: 0.5rem;
  height: 100%;
  display: flex; align-items: flex-end; justify-content: center;
}
.swz-chart-bar {
  position: relative;
  width: 100%; max-width: 24px;
  /* rounded at the data end, square on the baseline it grows from */
  border-radius: 4px 4px 0 0;
  background: rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.82);
  transition: background 0.15s ease;
}
.swz-chart-col:hover .swz-chart-bar { background: var(--swz-accent, var(--tblr-primary)); }

/* Only the busiest day is labelled — the rest are in the tooltip and, in
   full, in the table underneath. */
.swz-chart-cap {
  position: absolute; bottom: 100%; left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.3rem;
  font-size: 0.68rem; font-weight: 700;
  color: var(--tblr-dark);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.swz-chart-tick {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  margin-top: 0.45rem;
  font-size: 0.68rem; font-weight: 600;
  color: var(--tblr-secondary);
  white-space: nowrap;
}
/* A centred label on the outermost column hangs past the plot, where the
   scroller crops it — anchor those two inside instead. */
.swz-chart-col:first-child .swz-chart-tick { left: 0; transform: none; }
.swz-chart-col:last-child .swz-chart-tick { left: auto; right: 0; transform: none; }

/* =========================================================
     Data import — show page. Everything visual comes from
     the shared swz primitives (toolbar, KPI, meta grid,
     segmented control, scrollable table); only the page
     stacking and the row-results table cells are local.
     ========================================================= */
.swz-import { width: 100%; }
.swz-import .swz-kpi-grid { margin-bottom: 1rem; }
.swz-import .card + .card { margin-top: 1rem; }
/* the no-rows state sits inside a panel, not on a full page */
.swz-import .swz-state { min-height: 16rem; padding: 1.5rem; }

/* the row-results table can be very wide (one column per CSV header), so keep
   cells on one line and let `.swz-table-scroll` handle the overflow */
.page-wrapper .swz-import-table th,
.page-wrapper .swz-import-table td { white-space: nowrap; }
.page-wrapper .swz-import-table td { color: var(--tblr-dark); }
/* the CSV row-number column reads as an index, not as data */
.page-wrapper .swz-import-table .swz-import-no {
  width: 1%;
  font-weight: 700;
  color: var(--tblr-secondary);
}
/* result is the last column — anchor it right so the pills line up */
.page-wrapper .swz-import-table th:last-child,
.page-wrapper .swz-import-table td:last-child { text-align: right; }

/* "no rows match this filter" row — placed after the cell rules above so it
   wins the text-align at equal specificity */
.page-wrapper .swz-import-table .swz-import-nomatch td {
  padding: 2rem 1rem;
  text-align: center;
  font-weight: 500;
  color: var(--tblr-secondary);
}

/* =========================================================
     API token (settings) — the one page whose whole job is to
     show a single secret, so the token itself is the hero: a
     frosted well, blurred until asked for, with copy/reveal
     under it. Accent comes from a `.swz-accent-*` on the card.
     ========================================================= */
/* The parent `.row-deck` makes every column a flex box (`display: flex;
   align-items: stretch`), so the toolbar and the card row would otherwise sit
   side by side. Stack them instead — `flex-direction` is untouched by Tabler,
   so this needs no specificity fight with the later-loading tabler.css. */
.swz-token-page {
  width: 100%;
  flex-direction: column;
}

/* ---- Card heading: gradient icon tile + label/hint stack. Same 1.1rem
        squircle radius as `.swz-kpi-icon`, one step larger. ---- */
.swz-token-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}
.swz-token-icon {
  flex: none;
  width: 2.75rem; height: 2.75rem;
  border-radius: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--swz-accent, var(--tblr-primary));
  background: linear-gradient(135deg,
    rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.20),
    rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.06));
  box-shadow:
    inset 0 0 0 1px rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.18),
    0 0.5rem 1rem -0.65rem rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.65);
}
.swz-token-icon .material-symbols-outlined { font-size: 22px; }
.swz-token-heading { min-width: 0; padding-top: 0.1rem; }
.swz-token-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--tblr-secondary);
  line-height: 1.25;
}
.swz-token-hint {
  margin: 0.3rem 0 0;
  font-size: 0.85rem; line-height: 1.4;
  color: var(--tblr-secondary);
}

/* ---- The token well — an inset frosted trough, accent-tinted, so the
        secret reads as a distinct surface rather than as body copy. ---- */
.swz-token-well {
  position: relative;
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.16);
  background: linear-gradient(150deg,
    rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.07),
    rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.02));
  box-shadow: inset 0 1px 3px rgba(31, 41, 55, 0.05);
}
.swz-token-value {
  display: block;
  /* the well is the surface — drop the chip Tabler puts on a bare `code` */
  background: none;
  padding: 0;
  border-radius: 0;
  font-family: var(--tblr-font-monospace, ui-monospace, SFMono-Regular, monospace);
  font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0.02em; line-height: 1.5;
  color: var(--tblr-dark);
  overflow-wrap: anywhere;
  transition: filter 0.2s ease;
}
/* Masked by default in the markup, so the secret is never briefly legible
   before Stimulus connects. Blur only — the text stays selectable, so
   select-and-copy still works if the controller never loads. */
.swz-token-value.is-masked { filter: blur(0.34rem); }

.swz-token-actions {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 1.1rem;
}

/* ---- Timestamps, fenced off from the token itself. Shared with the metadata
        grids of the SMS log (`.swz-log-meta`) and app (`.swz-app-meta`)
        detail pages, which fence theirs off the same way. ---- */
.swz-token-meta,
.swz-log-meta,
.swz-app-meta {
  margin-top: 1.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(31, 41, 55, 0.07);
}

/* ---- Terminal snippet — the one dark surface in the content area; it
        signals "paste this somewhere else" at a glance. Shared with the
        `.swz-json` payload panel on the SMS log detail page. ---- */
.swz-token-snippet,
.swz-json {
  margin: 0;
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(150deg, #1f2937 0%, #171f2b 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 0.8rem; line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  white-space: pre;
  overflow-x: auto;
}
.swz-token-cmd { color: #7dd3fc; font-weight: 600; }
.swz-token-arg { color: #fcd34d; }

/* ---- Credential legend — `-u user:pass` collapses the Basic pair into one
        string, so name the two halves underneath it. ---- */
.swz-token-creds {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
}
.swz-token-cred {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 0.8rem;
  line-height: 1.45;
}
.swz-token-cred dt {
  flex: none;
  width: 5.25rem;
  font-weight: 700;
  color: var(--tblr-dark);
}
.swz-token-cred dd { margin: 0; color: var(--tblr-secondary); }

/* ---- Security note — a quiet warning band, not an alert box ---- */
.swz-token-note {
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin-top: 1.1rem;
  border-radius: 0.9rem;
  padding: 0.8rem 0.95rem;
  background: rgba(var(--tblr-warning-rgb), 0.08);
  font-size: 0.8rem; line-height: 1.5;
  color: var(--tblr-secondary);
}
.swz-token-note .material-symbols-outlined {
  flex: none;
  font-size: 20px;
  color: var(--tblr-warning);
}

@media (prefers-reduced-motion: no-preference) {
  .swz-token-page .card { animation: loginIntroUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .swz-token-page .col-xl-5 .card { animation-delay: 0.08s; }
}

/* =========================================================
     SMS LOG DETAIL (sms_logs#show)
     One message beside the API call that asked for it. Reuses the token
     page's card heading (`.swz-token-head`) and the shared `.swz-meta`
     grid; what is new here is the chat bubble and the JSON panel.
     ========================================================= */
.swz-log-page {
  width: 100%;
  flex-direction: column;
}

/* ---- Status chip — the toolbar's answer to "did it go out?", tinted by
        the `.swz-accent-*` the decorator picks for the status. ---- */
.swz-log-status {
  display: flex; align-items: center; gap: 0.75rem;
  flex: none;
  border-radius: 1rem;
  padding: 0.7rem 1.1rem 0.7rem 0.9rem;
  border: 1px solid rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.18);
  background: linear-gradient(135deg,
    rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.14),
    rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.04));
  box-shadow: 0 0.6rem 1.4rem -1rem rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.8);
}
.swz-log-status > .material-symbols-outlined {
  font-size: 26px;
  color: var(--swz-accent, var(--tblr-primary));
}
.swz-log-status-value {
  font-size: 0.95rem; font-weight: 700;
  text-transform: capitalize;
  color: var(--swz-accent, var(--tblr-primary));
}

/* ---- The message, as the handset would show it: a left-hung bubble on an
        accent-tinted trough, with the corner notched off. ---- */
.swz-log-bubble {
  border-radius: 1rem 1rem 1rem 0.25rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.16);
  background: linear-gradient(150deg,
    rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.07),
    rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.02));
  box-shadow: inset 0 1px 3px rgba(31, 41, 55, 0.05);
}
.swz-log-bubble-text {
  margin: 0;
  font-size: 0.95rem; line-height: 1.6;
  color: var(--tblr-dark);
  /* the text is stored verbatim — keep its line breaks, wrap the long runs */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* The metadata grid is fenced off from the bubble by the shared
   `.swz-token-meta` rule above. */

/* ---- JSON payload panel. The dark surface is the shared snippet rule
        above; these are the payload-specific parts: a copy button parked at
        the end of the heading, wrapping, and a capped height so a fat body
        scrolls instead of stretching the card. ---- */
.swz-token-head > .swz-pill { margin-left: auto; }

.swz-json {
  max-height: 22rem;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--tblr-font-monospace, ui-monospace, SFMono-Regular, monospace);
}
.swz-json-key { color: #7dd3fc; font-weight: 600; }
.swz-json-str { color: #86efac; }
.swz-json-num { color: #fcd34d; }
.swz-json-kw  { color: #c4b5fd; font-style: italic; }

@media (prefers-reduced-motion: no-preference) {
  .swz-log-page .card { animation: loginIntroUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .swz-log-page .col-xl-5 .card { animation-delay: 0.06s; }
  .swz-log-page .col-xl-6 .card { animation-delay: 0.12s; }
}

/* =========================================================
     APP DETAIL (apps#show)
     What the app is beside the variables it sends through. Reuses the token
     page's card heading (`.swz-token-head`), well, actions and note, and the
     shared `.swz-meta` grid; what is new here is the variable list, whose
     values mask the way the API token does.
     ========================================================= */
.swz-app-page {
  width: 100%;
  flex-direction: column;
}

/* ---- The description, in the token page's trough ---- */
.swz-app-desc {
  margin: 0;
  font-size: 0.95rem; line-height: 1.6;
  color: var(--tblr-dark);
  overflow-wrap: anywhere;
}

/* ---- Variable list — the saved key beside its value, which stays masked
        until asked for the same reason the API token does. ---- */
.swz-app-vars {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}
.swz-app-var {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.swz-app-var dt {
  flex: none;
  width: 7.5rem;
  font-family: var(--tblr-font-monospace, ui-monospace, SFMono-Regular, monospace);
  font-size: 0.78rem; font-weight: 700;
  color: var(--tblr-secondary);
  overflow-wrap: anywhere;
}
.swz-app-var dd { flex: 1; min-width: 0; margin: 0; }
/* The list carries a value per row, so it wants the token's masking without
   the single-secret page's display size. */
.swz-app-var .swz-token-value {
  font-size: 0.85rem;
  letter-spacing: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .swz-app-page .card { animation: loginIntroUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .swz-app-page .col-xl-5 .card { animation-delay: 0.08s; }
}

/* ==== Test send modal (apps#index → "Send test SMS") =====================
   Identifies the app the test will go out as, so a number is never typed
   against the wrong one. Borrows the meta row's label/value pairing and the
   `.swz-meta-icon` tile. */
.swz-test-app {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.15rem;
  border-radius: 0.9rem;
  padding: 0.7rem 0.9rem;
  background: rgba(31, 41, 55, 0.04);
}
.swz-test-app-icon {
  flex: none;
  width: 2.4rem; height: 2.4rem;
  border-radius: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--swz-accent, var(--tblr-primary));
  background: linear-gradient(135deg,
    rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.18),
    rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.07));
  box-shadow: inset 0 0 0 1px rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.15);
}
.swz-test-app-icon .material-symbols-outlined { font-size: 20px; }
.swz-test-app .swz-meta-text { flex: 1; }
.swz-test-app .swz-pill { text-transform: capitalize; }
