/* ============================================================
   SHINWA MEMBER OS  ―  Components (Ver.2.0 Premium)
   すべて --token 参照でライト/ダーク自動対応
   ============================================================ */

/* ---------- Phone frame ---------- */
.stage {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 30px 16px;
  background:
    radial-gradient(1100px 520px at 18% -12%, #223052 0%, transparent 58%),
    radial-gradient(900px 500px at 112% 16%, #1a2740 0%, transparent 55%),
    #0B0F1A;
}
.phone {
  position: relative; width: var(--app-w); height: 844px; background: var(--bg);
  border-radius: 46px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 50px 100px rgba(0,0,0,.55), 0 0 0 11px #0a0e18, 0 0 0 12px #2a3550, 0 0 0 13px #0a0e18;
}
.phone__notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 132px; height: 30px; background: #0a0e18; border-radius: 0 0 18px 18px; z-index: 60; }
.statusbar { height: 52px; flex: 0 0 52px; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 28px 7px; font-size: 14px; font-weight: 800; color: var(--text); z-index: 40; position: relative; letter-spacing: .01em; }
.statusbar__right { display: flex; gap: 7px; align-items: center; color: var(--text); }

/* ---------- 実機（スマホ）は全画面のネイティブ表示に ---------- */
@media (max-width: 520px) {
  .stage { padding: 0; min-height: 100svh; background: var(--bg); align-items: stretch; }
  .phone { width: 100%; height: 100svh; height: 100dvh; border-radius: 0; box-shadow: none; }
  .phone__notch { display: none; }
  .statusbar { display: none; }              /* 端末の本物のステータスバーを使う */
  .viewport { padding-top: env(safe-area-inset-top, 0px); }
  .subbar { top: env(safe-area-inset-top, 0px); }
  .bottomnav { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .overlay, .loading { padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* ---------- Viewport / screens ---------- */
.viewport { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; position: relative; scrollbar-width: none; background: var(--bg); }
.viewport::-webkit-scrollbar { display: none; }
.screen { animation: screenIn var(--dur-3) var(--ease); }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pad { padding: 0 var(--pad); }

/* staggered card entrance */
.stagger > * { animation: cardIn var(--dur-3) var(--ease) backwards; }
.stagger > *:nth-child(1){animation-delay:.02s}.stagger > *:nth-child(2){animation-delay:.06s}
.stagger > *:nth-child(3){animation-delay:.10s}.stagger > *:nth-child(4){animation-delay:.14s}
.stagger > *:nth-child(5){animation-delay:.18s}.stagger > *:nth-child(6){animation-delay:.22s}
@keyframes cardIn { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform:none; } }

/* ---------- Icons ---------- */
.ic { display: block; flex: 0 0 auto; }

/* ---------- Section heading ---------- */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 14px; }
.sec-head h2 { font-size: var(--fs-18); font-weight: 800; letter-spacing: .01em; }
.sec-head .more { font-size: var(--fs-13); color: var(--text-2); font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.sec-head .more:active { color: var(--brand-green-deep); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; padding: 0 22px; border-radius: var(--r-md); width: 100%;
  font-size: var(--fs-16); font-weight: 800; letter-spacing: .02em;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease), filter var(--dur-2), background var(--dur-2);
}
.btn:active { transform: scale(.978); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn--primary { background: var(--grad-primary); color: #fff; box-shadow: var(--sh-primary); }
.btn--green { background: var(--grad-green); color: #fff; box-shadow: var(--sh-green); }
.btn--gold { background: var(--grad-gold); color: #3a2c05; box-shadow: var(--sh-gold); }
.btn--navy { background: var(--grad-blue); color: #fff; box-shadow: var(--sh-blue); }
.btn--ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--border), var(--sh-xs); }
.btn--sm { height: 44px; font-size: var(--fs-14); border-radius: 12px; width: auto; padding: 0 18px; }
.btn[disabled] { filter: grayscale(.5) opacity(.5); pointer-events: none; }
@media (hover: hover) { .btn--primary:hover,.btn--green:hover{filter:brightness(1.05)} .btn--ghost:hover{background:var(--surface-2)} }

/* ripple */
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.45); pointer-events: none; animation: ripple .6s var(--ease-soft); z-index: -1; }
.btn--ghost .ripple, .iconbtn .ripple { background: rgba(20,24,36,.12); }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

.iconbtn {
  position: relative; overflow: hidden; width: 42px; height: 42px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 42px;
  background: var(--surface); box-shadow: var(--sh-sm); color: var(--text);
  transition: transform var(--dur-1) var(--ease), background var(--dur-2);
}
.iconbtn:active { transform: scale(.9); }
.iconbtn:focus-visible { outline: none; box-shadow: var(--ring); }
@media (hover: hover) { .iconbtn:hover { background: var(--surface-2); } }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px;
  border-radius: var(--r-pill); font-size: 11px; font-weight: 800; letter-spacing: .04em; line-height: 1; }
.badge--new { background: var(--brand-green); color: #fff; }
.badge--hot { background: var(--hot-soft); color: var(--hot-ink); }
.badge--member { background: var(--blue-deep); color: #fff; }
.badge--today { background: var(--brand-error); color: #fff; }
.badge--limit { background: var(--brand-orange); color: #fff; }
.badge--soft { background: var(--surface-3); color: var(--text-2); }

/* ---------- Card ---------- */
.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--sh-card); border: 1px solid var(--border); overflow: hidden; }

/* ============================================================
   FLAGSHIP: Coupon Card  ―  最高視認性（値引き最優先）
   ============================================================ */
.coupon {
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--sh-card);
  border: 1px solid var(--border);
  overflow: hidden; margin-bottom: var(--s4); cursor: pointer; position: relative;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.coupon:active { transform: scale(.99); }
@media (hover: hover) { .coupon:hover { transform: translateY(-2px); box-shadow: var(--sh-md); } }
.coupon__media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.coupon__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 4s var(--ease-soft); }
@media (hover: hover) { .coupon:hover .coupon__media img { transform: scale(1.05); } }
.coupon__media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 55%, rgba(10,14,25,.28)); }
.coupon__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.coupon__fav { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; z-index: 2;
  border-radius: var(--r-pill); background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; color: var(--text-2);
  transition: transform var(--dur-1) var(--ease), color var(--dur-2); }
.coupon__fav:active { transform: scale(.85); }
.coupon__fav.is-on { color: var(--brand-error); }
.coupon__fav.is-on .ic { fill: var(--brand-error); }
.coupon__body { padding: 16px 17px 18px; }
.coupon__store { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.coupon__logo { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; flex: 0 0 24px; box-shadow: inset 0 0 0 1px var(--border); }
.coupon__storename { font-size: 12px; color: var(--text-2); font-weight: 600; }
.coupon__title { font-size: 15.5px; font-weight: 700; line-height: 1.5; letter-spacing: .002em; }
.coupon__offer { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.coupon__value { font-family: var(--num); font-size: 36px; font-weight: 900; color: var(--brand-green-deep); line-height: .95; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.coupon__unit { font-size: 16px; font-weight: 800; color: var(--brand-green-deep); }
.coupon__was { font-size: 12px; color: var(--text-3); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.coupon__meta { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-2); }
.coupon__exp { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); font-weight: 700; }
.coupon__exp.urgent { color: var(--brand-error); }
.coupon__left { margin-left: auto; font-size: 11.5px; font-weight: 800; color: var(--brand-orange); background: var(--hot-soft); color: var(--hot-ink); padding: 3px 9px; border-radius: var(--r-pill); }

/* ---------- Point / Rank card (dark surface, both themes) ---------- */
.pointcard { position: relative; border-radius: var(--r-lg); padding: 22px; background: var(--grad-member); color: #fff; overflow: hidden; box-shadow: var(--sh-md); }
.pointcard::after { content:""; position:absolute; inset:0; background: radial-gradient(420px 180px at 118% -20%, rgba(201,162,77,.30), transparent 60%); }
.pointcard > * { position: relative; z-index: 1; }
.pointcard__row { display: flex; justify-content: space-between; align-items: flex-start; }
.rankchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-pill);
  background: rgba(201,162,77,.16); border: 1px solid rgba(201,162,77,.5); color: var(--brand-gold-lt); font-weight: 800; font-size: 12px; }
/* ヒーローカード(オレンジ)上ではランクチップ等を白系で視認性確保 */
.pointcard .rankchip, .membercard .rankchip { background: rgba(255,255,255,.20); border-color: rgba(255,255,255,.6); color: #fff; }
.pointcard__label { font-size: 12px; color: rgba(255,255,255,.62); margin-top: 16px; letter-spacing: .02em; }
.pointcard__pts { font-family: var(--num); font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.pointcard__pts small { font-size: 15px; font-weight: 800; color: rgba(255,255,255,.75); margin-left: 5px; }
.pointcard__bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,.14); margin-top: 18px; overflow: hidden; }
.pointcard__bar > span { display: block; height: 100%; background: rgba(255,255,255,.95); border-radius: 99px; transition: width .8s var(--ease); }
.pointcard__hint { font-size: 12px; color: rgba(255,255,255,.82); margin-top: 9px; }
.pointcard__hint b { color: #FFF1DD; }

/* ---------- Store card ---------- */
.storecard { display: flex; gap: 13px; padding: 12px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--sh-card); border: 1px solid var(--border); margin-bottom: 12px; align-items: center; transition: transform var(--dur-1) var(--ease); }
.storecard:active { transform: scale(.99); }
.storecard__img { width: 66px; height: 66px; border-radius: 13px; object-fit: cover; flex: 0 0 66px; background: var(--surface-2); }
.storecard__name { font-size: 15px; font-weight: 800; }
.storecard__meta { font-size: 12px; color: var(--text-2); margin-top: 4px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.storecard__meta .ic { color: var(--text-3); }
.storecard__tags { display: flex; gap: 6px; margin-top: 9px; }
.chip-open { color: var(--brand-green-deep); font-weight: 800; }
.dotsep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); display: inline-block; }

/* ---------- Chips / Tabs ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px var(--pad); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; height: 38px; padding: 0 15px; border-radius: var(--r-pill);
  background: var(--surface); color: var(--text-2); box-shadow: inset 0 0 0 1.5px var(--border);
  font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--dur-2) var(--ease); }
.chip:active { transform: scale(.96); }
.chip.is-on { background: var(--primary); color: #fff; box-shadow: none; }
.chip.is-on .ic { color: #fff; }

.tabs { position: relative; display: flex; gap: 4px; padding: 5px; background: var(--surface-3); border-radius: var(--r-pill); margin: 0 var(--pad); }
.tab { flex: 1; height: 40px; border-radius: var(--r-pill); font-size: 13px; font-weight: 800; color: var(--text-2);
  transition: color var(--dur-2) var(--ease); position: relative; z-index: 1; }
.tab.is-on { color: var(--text); }
.tabs__ind { position: absolute; top: 5px; height: 40px; border-radius: var(--r-pill); background: var(--surface);
  box-shadow: var(--sh-sm); transition: left var(--dur-3) var(--ease), width var(--dur-3) var(--ease); z-index: 0; }

/* ---------- List rows ---------- */
.list-card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--sh-card); border: 1px solid var(--border); overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; padding: 15px 16px; background: var(--surface); border-bottom: 1px solid var(--border-2); transition: background var(--dur-1); }
.row:last-child { border-bottom: none; }
.row:active { background: var(--surface-2); }
.row__ico { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--brand-navy); flex: 0 0 40px; }
:root[data-theme="dark"] .row__ico, .row__ico { color: var(--text); }
.row__main { flex: 1; min-width: 0; }
.row__title { font-size: 15px; font-weight: 700; }
.row__sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.row__val { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- Bottom navigation (最重要) ---------- */
.bottomnav { flex: 0 0 var(--nav-h); height: var(--nav-h); background: var(--nav-bg); backdrop-filter: blur(20px) saturate(1.4);
  border-top: 1px solid var(--border); box-shadow: var(--sh-nav); display: flex; align-items: stretch; padding: 8px 10px 16px; z-index: 50; }
.navitem { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--text-3); font-size: 10.5px; font-weight: 700; position: relative; transition: color var(--dur-2) var(--ease); }
.navitem .ic { transition: transform var(--dur-2) var(--ease); }
.navitem::before { content:""; position: absolute; top: 4px; width: 44px; height: 30px; border-radius: var(--r-pill);
  background: var(--primary-soft); opacity: 0; transform: scale(.7); transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
.navitem.is-on { color: var(--primary-deep); }
.navitem.is-on::before { opacity: 1; transform: scale(1); }
.navitem.is-on .ic { transform: translateY(-1px); }
.navitem:active .ic { transform: scale(.86); }
.navitem--center::before { display: none; }
.navitem--center .navitem__bubble { width: 56px; height: 56px; margin-top: -24px; border-radius: var(--r-pill);
  background: var(--grad-primary); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px rgba(240,115,10,.42); border: 3px solid var(--bg); transition: transform var(--dur-2) var(--ease); }
.navitem--center:active .navitem__bubble { transform: scale(.92); }
.navitem--center.is-on { color: var(--primary-deep); }

/* ---------- Overlay / Sheet (Dialog) ---------- */
.overlay { position: absolute; inset: 0; z-index: 80; display: none; background: var(--scrim); backdrop-filter: blur(3px); align-items: flex-end; }
.overlay.is-open { display: flex; animation: fadeIn var(--dur-2) var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet { width: 100%; background: var(--surface); border-radius: 28px 28px 0 0; padding: 10px 22px 28px; box-shadow: var(--sh-modal); animation: sheetUp var(--dur-3) var(--ease); }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet__grip { width: 40px; height: 5px; border-radius: 99px; background: var(--surface-3); margin: 4px auto 18px; }
.sheet__title { font-size: var(--fs-20); font-weight: 800; text-align: center; }
.sheet__text { font-size: var(--fs-14); color: var(--text-2); text-align: center; margin-top: 8px; line-height: 1.6; }
.successmark { width: 84px; height: 84px; margin: 6px auto 4px; border-radius: 50%; background: var(--grad-green);
  display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: var(--sh-green); animation: pop .45s var(--ease); }
@keyframes pop { 0%{transform:scale(.4);opacity:0} 60%{transform:scale(1.08)} 100%{transform:scale(1)} }

/* ---------- Toast ---------- */
.toast { position: absolute; left: 50%; bottom: 106px; transform: translateX(-50%) translateY(10px);
  background: var(--brand-navy); color: #fff; padding: 12px 18px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; z-index: 90; box-shadow: var(--sh-modal); display: inline-flex; align-items: center; gap: 8px;
  opacity: 0; transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); white-space: nowrap; }
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .ic { color: var(--brand-green); }

/* ---------- Skeleton ---------- */
.skel { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 8px; }
.skel::after { content:""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shimmer 1.4s infinite; }
@media (prefers-color-scheme: dark) { .skel::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); } }
:root[data-theme="dark"] .skel::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-coupon { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--sh-card); overflow: hidden; margin-bottom: var(--s4); }
.skel-coupon__media { aspect-ratio: 16/9; }
.skel-coupon__body { padding: 14px 16px 16px; }
.skel-line { height: 12px; border-radius: 6px; margin-bottom: 10px; }

/* ---------- Loading splash ---------- */
.loading { position: absolute; inset: 0; z-index: 95; background: var(--grad-member); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px; color: #fff; }
.loading__mark { width: 78px; height: 78px; border-radius: 22px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.45);
  display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 900; color: #fff;
  animation: breathe 2.4s var(--ease-soft) infinite; }
@keyframes breathe { 0%,100%{transform:scale(1);opacity:.92} 50%{transform:scale(1.06);opacity:1} }
.loading__brand { font-size: 13px; letter-spacing: .26em; font-weight: 800; color: rgba(255,255,255,.7); }
.loading__spin { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.32); border-top-color: #fff; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Empty / Error states ---------- */
.state { padding: 56px 32px; text-align: center; }
.state__art { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 26px; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--text-3); }
.state__art.warm { background: var(--gold-soft); color: var(--brand-gold); }
.state__title { font-size: var(--fs-18); font-weight: 800; }
.state__text { font-size: var(--fs-14); color: var(--text-2); margin-top: 8px; line-height: 1.7; }
.state__btn { margin-top: 22px; }

/* ---------- Auth screens ---------- */
.auth { padding: 8px var(--pad) 24px; min-height: 100%; display: flex; flex-direction: column; }
.auth__brand { text-align: center; padding: 24px 0 8px; }
.auth__mark { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 22px; background: var(--grad-primary);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 900; box-shadow: var(--sh-primary); }
.auth__k { font-size: 11px; letter-spacing: .24em; font-weight: 800; color: var(--primary-deep); }
.auth__title { font-size: 24px; font-weight: 900; margin-top: 6px; }
.auth__sub { font-size: 13px; color: var(--text-2); margin-top: 8px; line-height: 1.6; }
.auth__body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.auth__foot { font-size: 12px; color: var(--text-3); text-align: center; line-height: 1.7; }
.auth__foot a { color: var(--brand-green-deep); font-weight: 700; }

.field { display: block; }
.field__lbl { font-size: 12px; font-weight: 700; color: var(--text-2); margin: 0 0 7px 2px; }
.field input { width: 100%; height: 54px; padding: 0 16px; border-radius: var(--r-md); font-size: 16px; font-weight: 600;
  color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border); transition: box-shadow var(--dur-2) var(--ease); font-family: inherit; }
.field input::placeholder { color: var(--text-3); font-weight: 500; }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand-green), var(--ring); }

/* OTP boxes */
.otp { display: flex; gap: 10px; justify-content: center; }
.otp input { width: 46px; height: 58px; text-align: center; font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums;
  border-radius: var(--r-md); color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border); font-family: var(--num); }
.otp input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand-green), var(--ring); }
.devcode { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--hot-ink); background: var(--hot-soft);
  border-radius: var(--r-pill); padding: 8px 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.devcode b { font-variant-numeric: tabular-nums; letter-spacing: .18em; font-size: 14px; }

/* ---------- Area / Category selector ---------- */
.selrow { display: flex; gap: 10px; padding: 0 var(--pad); }
.selpill { flex: 1; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px;
  background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-sm); text-align: left;
  transition: transform var(--dur-1) var(--ease), background var(--dur-2); }
.selpill:active { transform: scale(.985); }
@media (hover: hover) { .selpill:hover { background: var(--surface-2); } }
.selpill .ic { color: var(--primary-deep); flex: 0 0 auto; }
:root[data-theme="dark"] .selpill .ic { color: var(--primary); }
.selpill__body { flex: 1; min-width: 0; }
.selpill__lbl { font-size: 10.5px; color: var(--text-3); font-weight: 700; letter-spacing: .02em; }
.selpill__val { font-size: 14px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selpill__chev { color: var(--text-3); }

/* picker list (inside sheet) */
.picklist { margin-top: 6px; max-height: 52vh; overflow-y: auto; scrollbar-width: none; }
.picklist::-webkit-scrollbar { display: none; }
.pickrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 6px; border-bottom: 1px solid var(--border-2);
  font-size: 15px; font-weight: 700; color: var(--text); text-align: left; transition: background var(--dur-1); }
.pickrow:last-child { border-bottom: none; }
.pickrow:active { background: var(--surface-2); }
.pickrow__count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pickrow__check { color: var(--brand-green-deep); opacity: 0; }
.pickrow.is-on { color: var(--brand-green-deep); }
.pickrow.is-on .pickrow__check { opacity: 1; }
.pickrow.is-on .pickrow__count { color: var(--brand-green-deep); }

.note { font-size: 12px; color: var(--text-3); line-height: 1.6; }
.divider { height: 8px; background: var(--bg); }
