:root{
  --slate-50:#f8fafc; --slate-100:#f1f5f9; --slate-200:#e2e8f0; --slate-300:#cbd5e1;
  --slate-400:#94a3b8; --slate-500:#64748b; --slate-600:#475569; --slate-700:#334155;
  --slate-800:#1e293b; --slate-900:#0f172a; --slate-950:#020617;

  --indigo-600:#4f46e5; --indigo-500:#818cf8;
  --emerald-500:#10b981; --amber-500:#f59e0b; --red-500:#ef4444; --red-400:#f87171;

  --r12:8px; --r16:12px; --r20:16px;
  --shadow: 0 12px 30px rgba(2,6,23,.03);
  --shadow-dark: 0 18px 45px rgba(0,0,0,.35);
}

html.theme-light{
  color-scheme: light;
  --bg: var(--slate-50);
  --surface: #ffffff;
  --surface-2: rgba(255,255,255,.70);
  --text: var(--slate-700);
  --muted: rgba(15,23,42,.62);
  --border: rgba(15,23,42,.10);
  --ring: rgba(79,70,229,.18);

  --row-odd: rgba(2,6,23,.02);
  --row-even: rgba(2,6,23,.045);
  --row-hover: rgba(79,70,229,.08);
  --shadow-use: var(--shadow);
}

html.theme-dark{
  color-scheme: dark;
  --bg: var(--slate-950);
  --surface: rgba(15,23,42,.72);
  --surface-2: rgba(15,23,42,.45);
  --text: var(--slate-200);
  --muted: rgba(148,163,184,.75);
  --border: rgba(148,163,184,.14);
  --ring: rgba(99,102,241,.22);

  --row-odd: rgba(255,255,255,.02);
  --row-even: rgba(255,255,255,.045);
  --row-hover: rgba(99,102,241,.12);
  --shadow-use: var(--shadow-dark);
}

*{box-sizing:border-box}
html{overflow-x:hidden}
body{
  margin:0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  font-weight:400;
  background: var(--bg);
  color: var(--text);
  overflow-x:hidden;
}
a{color:inherit; text-decoration:none}

/* ===== Layout ===== */
.app{min-height:100vh}
.sidebar{
  position:fixed;
  left:0; top:0; bottom:0;
  width:260px;
  border-right:1px solid var(--border);
  background: var(--surface-2);
  backdrop-filter: blur(10px);
  z-index:50;
  transform: translateX(0);
  transition: transform .18s ease, width .18s ease;
}
/* Sidebar must be true fixed-height container */
.sidebar{
  height:100vh;
  max-height:100vh;
  overflow:hidden;           /* prevent sidebar from becoming page-height */
}

.sidebar__inner{
  height:100%;
  min-height:100%;
  display:flex;
  flex-direction:column;
  padding:10px;
  overflow:hidden;           /* important: only nav scrolls */
  background-color:var(--bg);
}

/* Make nav the scroll area (footer stays fixed at bottom) */
.snav{
  flex: 1 1 auto;
  overflow:auto;
  padding-bottom:12px;
  overscroll-behavior: contain;
  align-content: start;
  grid-auto-rows: max-content;
}

/* footer never scrolls away */
.sidebar__foot{
  flex: 0 0 auto;
}
.main{
  margin-left:260px;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
.content{
  padding:20px;
  max-width:1200px;
  width:100%;
  margin:0 auto;
}

/* overlay for mobile */
.overlay{
  position:fixed; inset:0;
  background: rgba(2,6,23,.45);
  opacity:0; pointer-events:none;
  transition: opacity .18s ease;
  z-index:40;
}

/* ===== Desktop collapsed sidebar ===== */
body.sidebar-collapsed .sidebar{ width:88px; }
body.sidebar-collapsed .main{ margin-left:88px; }
body.sidebar-collapsed .logo__text,
body.sidebar-collapsed .tripchip__name,
body.sidebar-collapsed .snav__label,
body.sidebar-collapsed .suser__meta,
body.sidebar-collapsed .btn__text{
  display:none;
}
/* In collapsed mode, hide user row completely (otherwise it becomes empty space) */
body.sidebar-collapsed .suser{ display:none; }

/* Remove username partitions in icon-only sidebar */
body.sidebar-collapsed .sidebar__foot .divider{ display:none; }
body.sidebar-collapsed .sidebar__foot{ padding-top:0; }


/* Stack footer actions vertically so nothing falls outside the 88px sidebar */
body.sidebar-collapsed .foot-actions{
  display:grid;
  grid-auto-flow:row;
  justify-items:center;
  gap:10px;
  padding: 0 0 6px;
}

/* Make logout button icon-only in collapsed mode (fits 88px sidebar) */
body.sidebar-collapsed .btn--logout{
  width:40px;
  height:40px;
  padding:0;
  border-radius: var(--r12);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
body.sidebar-collapsed .btn--logout .btn__text{ display:none; }
body.sidebar-collapsed .btn--logout .btn__icon{ margin:0; }
body.sidebar-collapsed .logo{ justify-content:center; }
body.sidebar-collapsed .snav__item{ justify-content:center; }
body.sidebar-collapsed .foot-actions{ justify-content:center; }

/* ===== Mobile drawer ===== */
@media (max-width: 980px){
  .sidebar{
    transform: translateX(-100%);
    width:280px;
  }
  .main{ margin-left:0; }
  .content{ padding:20px; }

  body.sidebar-open .sidebar{ transform: translateX(0); }
  body.sidebar-open .overlay{ opacity:1; pointer-events:auto; }
}

/* ===== Sidebar brand ===== */
.sidebar__brand{display:grid; gap:12px; padding:6px}
.logo{display:flex; gap:10px; align-items:center}
.logo__mark{
  color: var(--indigo-600);
  width:40px; height:40px;
  display:grid; place-items:center;
}
.logo__name{display:block; font-weight:900; letter-spacing:.2px; font-size:20px;}
.logo__sub{display:block; font-size:12px; color:var(--slate-400);}

.tripchip{
  display:flex; gap:8px; align-items:center;
  padding:10px 10px;
  border:1px solid var(--border);
  border-radius: var(--r16);
  background: var(--surface);
  font-size:13px;
  color: var(--muted);
}
.tripchip .dot{width:8px; height:8px; border-radius:999px; background: var(--emerald-500)}
.tripchip__name{font-weight:600}

/* ===== Sidebar nav ===== */
.snav{
  display:grid;
  gap:6px;
  margin-top:10px;
  padding-bottom:12px;
  overflow:auto;
}
.snav__item{
  display:flex; gap:10px; align-items:center;
  padding:10px 12px;
  border-radius: var(--r12);
  border:1px solid transparent;
  color: var(--muted);
  font-weight:600;
}
.snav__item:hover{background: var(--surface); color: var(--text); border-color: var(--border)}
.snav__item.is-active{
  background: rgba(79,70,229,.10);
  border-color: rgba(79,70,229,.22);
  color: var(--text);
}
.snav__icon{width:18px; height:18px; display:inline-flex; align-items:center; justify-content:center}
.snav__icon svg{width:18px; height:18px}
.snav__icon--rupee{font-weight:900; font-size:16px}

/* ===== Sidebar footer fixed ===== */
.sidebar__foot{
  margin-top:auto;
  padding-top:10px;
}
.divider{
  height:1px;
  background: var(--border);
  margin:10px 6px;
}
.suser{
  display:flex;
  gap:10px;
  align-items:center;
  padding:6px 6px;
}
.suser__name{font-weight:600}
.suser__role{font-size:12px; color:var(--slate-300);}

.foot-actions{
  display:flex;
  gap:8px;
  align-items:center;
  padding: 0 6px 6px;
}

/* ===== Top bar ===== */
.top{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  backdrop-filter: blur(10px);
  position:sticky;
  top:0;
  z-index:10;
}
.top__left{display:flex; gap:12px; align-items:center}
.top__h{font-weight:900}
.top__sub{font-size:12px; color:var(--slate-400);}
.top__right{display:flex; gap:10px; align-items:center}

/* icon buttons */
.iconbtn{
  width:40px; height:40px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius: var(--r12);
  border:1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor:pointer;
}
.iconbtn svg{width:18px; height:18px}
.iconbtn:hover{filter: brightness(1.02)}

/* Theme icons swap */
html.theme-light .i-moon{display:inline}
html.theme-light .i-sun{display:none}
html.theme-dark .i-moon{display:none}
html.theme-dark .i-sun{display:inline}

/* ===== Buttons ===== */
.btn{
  padding:10px 12px;
  border-radius: var(--r12);
  border:1px solid rgba(79,70,229,.22);
  background: rgba(79,70,229,.12);
  color: var(--text);
  font-weight:600;
  cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  white-space:nowrap;
  gap:8px;
}
.btn--soft{background: transparent; border-color: var(--border)}
.btn--primary{background: rgba(79,70,229,.14); border-color: rgba(79,70,229,.28)}
.btn--action{color:var(--indigo-600);font-weight:600;}
.btn--filter{color:var(--muted);font-size: 12px;border-radius:999px;}
.btn--filter.is-active{
  color: var(--emerald-500);
  border-color: rgba(16,185,129,.28);
  background: rgba(16,185,129,.10);
}
.btn__icon{width:16px; height:16px; display:inline-flex}
.btn__icon svg{width:16px; height:16px}
/* Tabler icons (stroke icons) */
svg.tabler-icon,
.snav__icon svg,
.iconbtn svg,
.btn__icon svg{
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn--action .btn__icon svg{stroke-width:3;}

.btn--logout{
  border-color: rgba(239,68,68,.28);
  background: rgba(239,68,68,.10);
  color: var(--red-500);
  font-size:12px;
}

/* ===== Flash ===== */
.flash{
  margin: 0 0 16px;
  padding:12px 14px;
  border-radius: var(--r16);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: opacity .22s ease, transform .22s ease, max-height .22s ease, margin .22s ease, padding .22s ease, border-width .22s ease;
}
.flash.is-hide{
  opacity:0;
  transform: translateY(-6px);
  max-height:0;
  margin:0;
  padding:0;
  border-width:0;
  overflow:hidden;
}
.flash.ok{border-color: rgba(16,185,129,.28); background: rgba(16,185,129,.10)}
.flash.err{border-color: rgba(239,68,68,.28); background: rgba(239,68,68,.10)}

/* ===== Subbar ===== */
.subbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:nowrap;
  margin: 4px 0 16px;
}
.subbar__left{flex:1; min-width:0; display:flex; flex-flow:column; gap:4px;}
.subbar__right{flex:0 0 auto; display:flex; align-items:center; gap:10px}
.subbar__title{font-weight:600}
.subbar__meta{font-size:12px; color:var(--slate-300);}

/* Clear link (text-only, no border) */
.actionlink{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:10px 8px;
  border-radius: var(--r12);
  border:0;
  background:transparent;
  color: var(--red-400);
  text-decoration:none;
  font-size: 12px;
}
.actionlink:hover{background: var(--surface-2)}
.actionlink__text{white-space:nowrap}

/* ===== Cards ===== */
.card{
  width:100%;
  max-width:100%;
  min-width:0;
  border:1px solid var(--border);
  border-radius: var(--r12);
  background: var(--surface);
  box-shadow: var(--shadow-use);
  overflow:hidden;
}
.card__hd{
  padding:16px 18px;
  border-bottom: 1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.card__title{font-weight:600; letter-spacing:.1px; color: var(--indigo-500);}
.card__sub{font-size:12px; color:var(--slate-300);}
.card__sub .badge{ line-height: 3;}
.card__bd{padding:16px 18px}
.stack{display:grid; gap:16px; min-width:0}
.stack > *{min-width:0}

/* KPIs (mobile-first: 2 per row on phone) */
.kpis{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
}
@media (min-width: 1100px){
  .kpis{grid-template-columns: repeat(4, minmax(0,1fr));}
}
.kpi{
  min-width:0;                               /* allow grid items to shrink */
  border:1px solid var(--border);
  border-radius: var(--r16);
  padding:12px 12px;
  background: var(--surface-2);
}
.kpi__k{font-size:12px; color:var(--slate-400); font-weight:600; white-space:normal; overflow-wrap:anywhere}
.kpi__v{font-size:20px; font-weight:900; margin-top:6px}
.kpi--small .kpi__v{font-size:18px}
.note{margin-top:16px; font-size:12px; color: var(--slate-400);}


/* badges */
.badge{
  padding:4px 6px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: var(--surface-2);
  font-weight:400;
  font-size:12px;
}
.badge--ok{
  border-color: rgba(16,185,129,.28);
  background: rgba(16,185,129,.10);
  color:rgba(16,185,129,.58)
}
.badge--warn{
  border-color: rgba(245,158,11,.30);
  background: rgba(245,158,11,.12);
  color:rgba(245,158,11,.60)
}

/* tables */
.tablewrap{
  min-width:0;
  width:100%;
  max-width:100%;
  display:block;
  border:1px solid var(--border);
  border-radius: var(--r16);
  background: var(--surface-2);
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior: contain;
}
.tablewrap--y{
  max-height:58vh;
  overflow:auto;
}
.tablewrap--y thead th{
  position:sticky;
  top:0;
  background: var(--surface-2);
  z-index:2;
}
.table{width:100%; border-collapse:collapse}
.table--wide{min-width:820px}
.table th,.table td{
  padding:12px;
  border-bottom:1px solid var(--border);
  text-align:left;
  font-size:14px;
}
.table th{
  font-size:12px;
  color: var(--slate-400);
  text-transform:uppercase;
  letter-spacing: .08em;
  font-weight:600;
}
.table tbody tr:nth-child(odd){background: var(--row-odd)}
.table tbody tr:nth-child(even){background: var(--row-even)}
.table tbody tr:hover{background: var(--row-hover)}
.num{text-align:right; font-variant-numeric: tabular-nums}

.member{display:flex; flex-direction:column; gap:4px}
.member__name{font-weight:600}
.member__role{font-size:12px; color: var(--muted); font-weight:600}

.pos{color: var(--emerald-500); font-weight:900}
.neg{color: var(--red-500); font-weight:900}
.empty{
  padding:14px;
  border:1px dashed var(--border);
  border-radius: var(--r16);
  color: var(--muted);
  font-weight:600;
}

/* settlements (mobile-first, no horizontal scroll) */
.settlements{
  display:grid;
  gap:10px;
}
.settle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius: var(--r16);
  background: var(--surface-2);
  min-width:0;
}
.settle__left{display:flex; flex-direction:column; gap:4px; min-width:0}
.settle__from{font-weight:900; overflow-wrap:anywhere}
.settle__meta{font-size:12px; color:var(--slate-300);overflow-wrap:anywhere}
.settle__to{font-weight:600; color: var(--slate-400)}
.settle__amt{
  font-weight:900;
  font-variant-numeric: tabular-nums;
  white-space:nowrap;
  flex:0 0 auto;
  text-align:right;
}

/* ===== Modal (Filter) ===== */
.modal{position:fixed; inset:0; display:none; z-index:100}
.modal.is-open{display:block}
.modal__backdrop{position:absolute; inset:0; background: rgba(2,6,23,.85)}
.modal__panel{
  position:relative;
  margin: 12vh auto 0;
  width: min(640px, calc(100% - 24px));
  border:1px solid var(--border);
  border-radius: var(--r20);
  background: var(--surface);
  box-shadow: var(--shadow-use);
  overflow:hidden;
}
.modal__hd{
  padding:16px 18px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  background:var(--bg);
}
.modal__title{font-weight:900}
.modal__sub{font-size:12px; color:var(--slate-400);}
.modal__bd{padding:16px 18px}
.mfooter{margin-top:12px; display:flex; justify-content:flex-end}
.msection{display:grid; gap:10px}
.msection__label{font-size:12px; color:var(--muted); font-weight:600}
.mpartition{
  margin:14px 0;
  display:flex;
  align-items:center;
  content:""; height:1px; background: var(--border); flex:1
}

/* Single-line rows on mobile too */
.inline-row{display:flex; align-items:center; gap:10px; flex-wrap:nowrap}
.inline-scroll{overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:2px}
.field-inline input[type="date"]{
  width:168px;
  min-width:168px;
  padding:10px 10px;
  border-radius: var(--r12);
  border:1px solid var(--border);
  background: transparent;
  color: var(--text);
  outline:none;
}
.field-inline input[type="date"]:focus{
  box-shadow: 0 0 0 4px var(--ring);
  border-color: rgba(79,70,229,.35);
}
.seg__btn{
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-weight:600;
  cursor:pointer;
  white-space:nowrap;
}
.seg__btn:hover{background: var(--surface-2); color: var(--text)}
.seg__btn.is-active{
  background: rgba(79,70,229,.12);
  border-color: rgba(79,70,229,.22);
  color: var(--text);
}
.sr-only{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}
body.modal-open{overflow:hidden}

/* ===== Login page (scoped) ===== */
/* Login spacing fix: keep brand + card together */
.authwrap{
  min-height: calc(100vh - 40px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center; /* full section centered */
  gap:0;                  /* no space between logo block and card */
  padding:0;              /* remove extra top/bottom spacing */
}

.authbrand{
  width: min(520px, 100%);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap: 8px;
}

.authbrand__mark{
  width:56px;
  height:56px;
  display:grid;
  place-items:center;
  border-radius: var(--r16);
  border:1px solid var(--border);
  background: var(--surface-2);
}

.authbrand__name{
  font-weight:900;
  letter-spacing:.2px;
  font-size:18px;
  line-height:1.15;
}

.authbrand__sub{
  font-size:12px;
  color: var(--slate-400);
}

.authcard{
  width: min(520px, 100%);
  margin-top: 20px;
}
.authcard .card__title{color: var(--slate-600);}
.authform{ display:grid; gap:12px; }
.authfield{ display:grid; gap:6px; }
.authlabel{ font-size:12px; color: var(--muted); font-weight:600; }

.authfield input{
  width:100%;
  padding:10px 12px;
  border-radius: var(--r12);
  border:1px solid var(--border);
  background: transparent;
  color: var(--text);
  outline:none;
}
.authfield input:focus{
  box-shadow: 0 0 0 4px var(--ring);
  border-color: rgba(79,70,229,.35);
}

.authactions{ margin-top:6px; }
.authbtn{ width:100%; }

.authlist{ margin:0; padding-left:18px; }
/* ===== Expenses page additions (scoped; safe for other pages) ===== */

/* In-page expense form toggle */
.expenseform{ display:none; overflow:visible; }      /* overrides .card overflow:hidden only for this card */
.expenseform.is-open{ display:block; }

/* Danger button (used only on expenses delete) */
.btn--danger{
  border-color: rgba(239,68,68,.28);
  background: rgba(239,68,68,.10);
  color: var(--red-500);
}

/* Minimal form system (used only where classes are applied) */
.formx{ display:grid; gap:16px; min-width:0; }
.formx__grid{ display:grid; gap:12px; min-width:0; }
.formx__grid--2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.formx__grid--3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 920px){ .formx__grid--3{ grid-template-columns: 1fr; } }
@media (max-width: 720px){ .formx__grid--2{ grid-template-columns: 1fr; } }

.formx__field{ display:grid; gap:6px; min-width:0; }
.formx__label{ font-size:12px; color: var(--muted); font-weight:600; }

.formx__control{
  width:100%;
  padding:10px 12px;
  border-radius: var(--r12);
  border:1px solid var(--border);
  background: transparent;
  color: var(--text);
  outline:none;
}
.formx__control:focus{
  box-shadow: 0 0 0 4px var(--ring);
  border-color: rgba(79,70,229,.35);
}
.btn[disabled]{ opacity:.55; cursor:not-allowed; }

/* Checkbox item (participants list inside dropdown) */
.checkitem{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border:1px solid var(--border);
  border-radius: var(--r12);
  background: var(--surface-2);
  min-width:0;
}
.checkitem input{ width:16px; height:16px; flex:0 0 auto; }
.checkitem span{
  font-weight:600;
  font-size:13px;
  color: var(--text);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Participants dropdown (opens over UI; no layout shift) */
.msx{ position:relative; min-width:0; }
.msx__control{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius: var(--r12);
  border:1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor:pointer;
  outline:none;
}
.msx__control:focus{
  box-shadow: 0 0 0 4px var(--ring);
  border-color: rgba(79,70,229,.35);
}
.msx__value{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color: var(--muted);
  font-weight:600;
  text-align:left;
}
.msx.is-open .msx__value{ color: var(--text); }
.msx__chev{ width:18px; height:18px; display:inline-flex; align-items:center; justify-content:center; color: var(--muted); flex:0 0 auto; }
.msx.is-open .msx__chev{ transform: rotate(180deg); }
.msx__panel{
  position:absolute;
  left:0; right:0;
  top: calc(100% + 10px);
  z-index: 80;
  border:1px solid var(--border);
  border-radius: var(--r16);
  background: var(--surface-2);
  box-shadow: var(--shadow-use);
  padding:10px;
}
.msx__tools{ display:flex; justify-content:flex-end; gap:8px; margin-bottom:10px; }
.msx__list{
  display:grid;
  gap:8px;
  max-height: min(280px, calc(100vh - 260px));
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Paid-by dropdown (Person/Fund buttons inside selection box) */
.psx{ position:relative; min-width:0; }
.psx__control{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius: var(--r12);
  border:1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor:pointer;
  outline:none;
}
.psx__control:focus{
  box-shadow: 0 0 0 4px var(--ring);
  border-color: rgba(79,70,229,.35);
}
.psx__value{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color: var(--muted);
  font-weight:600;
  text-align:left;
}
.psx.is-open .psx__value{ color: var(--text); }
.psx__chev{ width:18px; height:18px; display:inline-flex; align-items:center; justify-content:center; color: var(--muted); flex:0 0 auto; }
.psx.is-open .psx__chev{ transform: rotate(180deg); }
.psx__panel{
  position:absolute;
  left:0; right:0;
  top: calc(100% + 10px);
  z-index: 80;
  border:1px solid var(--border);
  border-radius: var(--r16);
  background: var(--surface-2);
  box-shadow: var(--shadow-use);
  padding:10px;
}
.psx__user{ margin-top:10px; display:grid; gap:6px; }
.psx__hint{ margin-top:10px; font-size:12px; color: var(--slate-400); }
