/* ============================================================
   Yatra OPERATOR portal — vibrant "fleet cockpit"
   Gradient sidebar · light glowing canvas · indigo/violet + amber
   ============================================================ */
:root {
  --ind: #4f46e5;
  --vio: #7c3aed;
  --amber: #f59e0b;
  --orange: #f97316;
  --teal: #0d9488;
  --emerald: #10b981;
  --rose: #f43f5e;
  --sky: #0ea5e9;
  --bg: #f5f6fd;
  --surface: #ffffff;
  --surface2: #f6f7fc;
  --border: #e7e9f4;
  --border2: #d5d8ea;
  --tx: #2b2d45;
  --tx-strong: #14152b;
  --tx-mut: #6b6f8a;
  --tx-faint: #9a9eb8;
  --ok: #10b981;
  --warn: #f59e0b;
  --bad: #f43f5e;
  --info: #0ea5e9;
  --r: 14px;
  --r-lg: 20px;
  --sh: 0 2px 8px rgba(20, 21, 43, 0.06);
  --sh-md: 0 10px 30px rgba(20, 21, 43, 0.09);
  --sh-lg: 0 22px 55px rgba(20, 21, 43, 0.16);
  --glow: 0 10px 30px rgba(99, 102, 241, 0.35);
  --sidebar-w: 262px;
  --sidebar-w-collapsed: 78px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  color: var(--tx);
  background: var(--bg);
  background-image:
    radial-gradient(
      1000px 520px at 108% -8%,
      rgba(124, 58, 237, 0.14),
      transparent 60%
    ),
    radial-gradient(
      760px 460px at -10% 4%,
      rgba(6, 182, 212, 0.12),
      transparent 58%
    );
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
h1,
h2,
h3 {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--tx-strong);
  letter-spacing: -0.02em;
}
a {
  color: var(--ind);
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.35);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ---------- shell ---------- */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  transition: grid-template-columns 0.2s ease;
}
.shell.collapsed {
  grid-template-columns: var(--sidebar-w-collapsed) 1fr;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 40;
  background: linear-gradient(180deg, #1e1b4b 0%, #312e81 45%, #3730a3 100%);
  color: #c7cbf0;
  padding: 1.3rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: padding 0.2s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.sidebar::-webkit-scrollbar {
  width: 5px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}
.collapse-toggle {
  position: absolute;
  top: 1.55rem;
  right: -12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #312e81;
  color: #c7cbf0;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 41;
  transition:
    transform 0.2s ease,
    background 0.15s ease;
}
.collapse-toggle:hover {
  background: #4338ca;
  color: #fff;
}
.collapse-toggle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  transition: transform 0.2s ease;
}
.sidebar.collapsed .collapse-toggle svg {
  transform: rotate(180deg);
}
.sidebar.collapsed .brand small,
.sidebar.collapsed .brand b,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav a span,
.sidebar.collapsed .side-user b,
.sidebar.collapsed .side-user small,
.sidebar.collapsed .logout span {
  display: none;
}
.sidebar.collapsed .brand {
  justify-content: center;
  padding: 0.2rem 0;
}
.sidebar.collapsed .nav a,
.sidebar.collapsed .logout {
  justify-content: center;
  padding: 0.62rem;
}
.sidebar.collapsed .side-user {
  justify-content: center;
  padding: 0.5rem 0.2rem;
}
.sidebar.collapsed .nav a.on::before {
  left: -0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.2rem 0.4rem;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #fbbf24, #f97316);
  color: #241203;
  font-weight: 800;
  font-size: 1.1rem;
  font-family: "Manrope", sans-serif;
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.45);
}
.brand b {
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  display: block;
  line-height: 1.1;
}
.brand small {
  color: #8b8fc4;
  font-size: 0.72rem;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.nav-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8b8fc4;
  font-weight: 700;
  margin: 0.9rem 0.5rem 0.25rem;
}
.nav-label:first-child {
  margin-top: 0;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.72rem;
  border-radius: 12px;
  color: #c7cbf0;
  font-size: 0.855rem;
  font-weight: 500;
  transition: all 0.15s ease;
  position: relative;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.nav a.on {
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.04)
  );
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 6px 18px rgba(0, 0, 0, 0.18);
}
.nav-badge {
  margin-left: auto;
  background: #f97316;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.28rem 0.42rem;
  border-radius: 999px;
  min-width: 1.1rem;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(30, 27, 75, 0.6);
}
.sidebar.collapsed .nav-badge {
  display: block !important;
  position: absolute;
  top: 4px;
  right: 4px;
  margin-left: 0;
  padding: 0.2rem 0.32rem;
  font-size: 0.6rem;
}
.pill-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #f97316;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.1rem 0.32rem;
  border-radius: 999px;
  line-height: 1.3;
}
.nav a.on::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 22%;
  height: 56%;
  width: 4px;
  border-radius: 99px;
  background: linear-gradient(#fbbf24, #f97316);
  box-shadow: 0 0 14px #f59e0b;
}
.nav svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}
.nav a.on svg {
  stroke: #fbbf24;
}
.side-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.8rem;
}
.side-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(140deg, #4f46e5, #7c3aed);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
}
.side-user b {
  color: #fff;
  font-size: 0.82rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.side-user small {
  color: #8b8fc4;
  font-size: 0.7rem;
}
.logout {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  margin-top: 0.5rem;
  background: none;
  border: none;
  color: #8b8fc4;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  font-size: 0.85rem;
  transition: 0.15s;
}
.logout:hover {
  background: rgba(244, 63, 94, 0.18);
  color: #fecdd3;
}

/* ---------- topbar + page ---------- */
.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(170%) blur(16px);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar h1 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.topbar h1::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--ind), var(--vio));
  box-shadow: 0 0 10px var(--ind);
}
.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border2);
  border-radius: 9px;
  padding: 0.45rem;
  color: var(--tx);
}
.spacer {
  flex: 1;
}
.chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: 99px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--ind);
}
.page {
  flex: 1;
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 1.9rem 1.5rem;
}
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.page-head h2 {
  font-size: 1.55rem;
}
.page-head p {
  color: var(--tx-mut);
  font-size: 0.875rem;
  margin-top: 2px;
}

/* ---------- cards / stats ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  box-shadow: var(--sh);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}
.stat {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.2rem;
  box-shadow: var(--sh);
  transition: 0.25s;
}
.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}
.stat .ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 0.8rem;
}
.stat .ic svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
}
.ic-ind {
  background: linear-gradient(140deg, #4f46e5, #7c3aed);
}
.ic-amb {
  background: linear-gradient(140deg, #f59e0b, #f97316);
}
.ic-grn {
  background: linear-gradient(140deg, #10b981, #0d9488);
}
.ic-sky {
  background: linear-gradient(140deg, #0ea5e9, #2563eb);
}
.ic-rose {
  background: linear-gradient(140deg, #f43f5e, #ec4899);
}
.stat .lbl {
  color: var(--tx-mut);
  font-size: 0.8rem;
  font-weight: 500;
}
.stat .val {
  font-family: "Manrope", sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--tx-strong);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.05rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 600;
  transition: 0.18s;
  white-space: nowrap;
}
.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.btn:active {
  transform: translateY(1px);
}
.btn-p {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  box-shadow: var(--sh);
}
.btn-p:hover {
  box-shadow: var(--glow);
  transform: translateY(-2px);
}
.btn-s {
  background: var(--surface);
  color: var(--tx-strong);
  border-color: var(--border2);
}
.btn-s:hover {
  border-color: var(--ind);
  color: var(--ind);
}
.btn-d {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
}
.btn-d:hover {
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.4);
  transform: translateY(-2px);
}
.btn-g {
  background: transparent;
  color: var(--tx-mut);
}
.btn-g:hover {
  background: var(--surface2);
  color: var(--tx-strong);
}
.btn-sm {
  padding: 0.42rem 0.7rem;
  font-size: 0.78rem;
  border-radius: 10px;
}

/* ---------- table ---------- */
.tcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  overflow: hidden;
}
.tbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.06), transparent);
}
.search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.5rem 1rem;
  min-width: 230px;
}
.search input {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  font-size: 0.85rem;
}
.search svg {
  width: 15px;
  height: 15px;
  stroke: var(--tx-faint);
  fill: none;
  stroke-width: 2;
}
.twrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tx-mut);
  font-weight: 700;
  padding: 0.75rem 1.2rem;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
}
tbody tr {
  transition: background 0.12s;
}
tbody tr:hover {
  background: rgba(79, 70, 229, 0.05);
}
tbody tr:last-child td {
  border-bottom: none;
}
.mut {
  color: var(--tx-mut);
}
.strong {
  font-weight: 600;
  color: var(--tx-strong);
}
.empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--tx-mut);
}

/* ---------- badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.22rem 0.6rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge--ok {
  background: #d1fae5;
  color: #059669;
}
.badge--warn {
  background: #fef3c7;
  color: #b45309;
}
.badge--bad {
  background: #ffe4e6;
  color: #e11d48;
}
.badge--info {
  background: #e0f2fe;
  color: #0369a1;
}
.badge--muted {
  background: #eef0f7;
  color: #6b6f8a;
}

/* ---------- forms / modal ---------- */
.fg {
  margin-bottom: 0.95rem;
}
.fl {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tx-strong);
  margin-bottom: 0.4rem;
}
.fc {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  font-size: 0.86rem;
  transition: 0.15s;
}
.fc:focus {
  outline: none;
  border-color: var(--ind);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.16);
}
.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.hint {
  font-size: 0.74rem;
  color: var(--tx-mut);
  margin-top: 0.3rem;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 28, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 60;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: pop 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal--wide {
  max-width: 760px;
}
.mhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.07), transparent);
}
.mhead h3 {
  font-size: 1.02rem;
}
.mbody {
  padding: 1.2rem 1.3rem;
}
.mfoot {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  padding: 1rem 1.3rem;
  border-top: 1px solid var(--border);
}
.x {
  background: none;
  border: none;
  color: var(--tx-mut);
  font-size: 1.15rem;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
}
.x:hover {
  background: var(--surface2);
  color: var(--tx-strong);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- toast / skeleton / alert ---------- */
.toast-region {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 330px;
  max-width: calc(100vw - 2.4rem);
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--ind);
  border-radius: 12px;
  box-shadow: var(--sh-lg);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  animation: pop 0.2s ease;
  transition: opacity 0.3s;
}
.toast--ok {
  border-left-color: var(--ok);
}
.toast--err {
  border-left-color: var(--bad);
}
.skel {
  height: 13px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef0f7 25%, #e2e5f0 37%, #eef0f7 63%);
  background-size: 400% 100%;
  animation: sh 1.4s ease infinite;
}
@keyframes sh {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
.alert {
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  margin-bottom: 1.1rem;
  font-weight: 500;
  font-size: 0.87rem;
}
.alert-warn {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}
.alert-ok {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

/* ---------- login split ---------- */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.auth-art {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  background: linear-gradient(150deg, #1e1b4b, #312e81 55%, #3730a3);
  color: #fff;
}
.auth-art::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(249, 115, 22, 0.35),
    transparent 70%
  );
  top: -140px;
  right: -120px;
}
.auth-art::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.4), transparent 70%);
  bottom: -120px;
  left: -90px;
}
.auth-art > * {
  position: relative;
  z-index: 1;
}
.auth-art h1 {
  color: #fff;
  font-size: 2rem;
  margin-top: 1.4rem;
}
.auth-art p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 340px;
  margin-top: 0.5rem;
}
.auth-art ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.auth-art li {
  color: rgba(255, 255, 255, 0.85);
}
.auth-art li b {
  color: #fbbf24;
  margin-right: 6px;
}
.auth-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
  background-image: radial-gradient(
    700px 400px at 80% 10%,
    rgba(124, 58, 237, 0.1),
    transparent 60%
  );
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: 2rem;
}
.auth-card h2 {
  font-size: 1.45rem;
  margin-bottom: 0.3rem;
}
.auth-card > p {
  color: var(--tx-mut);
  font-size: 0.86rem;
  margin-bottom: 1.3rem;
}
.auth-err {
  background: #ffe4e6;
  color: #e11d48;
  border: 1px solid #fda4af;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.83rem;
  margin-bottom: 1rem;
  display: none;
}
.otp-box {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  margin: 1rem 0 1.3rem;
}
.otp-box input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  border: 1.5px solid var(--border2);
  border-radius: 12px;
  font-family: "Manrope", sans-serif;
}
.otp-box input:focus {
  outline: none;
  border-color: var(--ind);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.16);
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-w);
    transform: translateX(-100%);
    transition: 0.25s;
    box-shadow: var(--sh-lg);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .scrim {
    position: fixed;
    inset: 0;
    background: rgba(10, 11, 28, 0.55);
    z-index: 35;
  }
  .hamburger {
    display: inline-flex;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-art {
    display: none;
  }
}
@media (max-width: 620px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .page {
    padding: 1.2rem 1rem;
  }
  .frow {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 0 1rem;
  }
}
.logout svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.1rem 0;
  color: var(--tx-faint);
  font-size: 0.76rem;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.btn-google {
  width: 100%;
  justify-content: center;
  background: var(--surface);
  color: var(--tx-strong);
  border: 1px solid var(--border2);
}
.btn-google:hover {
  border-color: #4285f4;
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.18);
}

.link-row {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--tx-mut);
}
.link-row a {
  font-weight: 600;
}
.avatar-xl {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  font-size: 1.3rem;
}
.swatches {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.sw {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.15s;
}
.sw:hover {
  transform: scale(1.12);
}
.sw.on {
  border-color: var(--tx-strong);
  box-shadow: 0 0 0 3px rgba(20, 21, 43, 0.15);
}
@media (max-width: 980px) {
  #grid {
    grid-template-columns: 1fr !important;
  }
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}
