/* Showtello dashboard: Home and All tours (dashboard.php, dashboard.js) */
:root {
  --ink: #172033; --text: #2b3445; --muted: #5d6878; --faint: #9aa3b1; --line: #e4e7ec; --bg: #f5f6f8;
  --brand: #ff6b1a; --brand-hover: #f25c05; --soft: #fff1e8; --softink: #c2410c;
  --ok: #15803d; --okbg: #e9f7ee; --warn: #b45309; --warnbg: #fff5e1; --bad: #b42318;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(20, 30, 50, .04), 0 8px 26px rgba(20, 30, 50, .05);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.dash { min-height: 100vh; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
svg { flex: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.015em; }
a { color: inherit; }
button { font: inherit; }

.layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }

/* ---------- side menu ---------- */
.side { position: sticky; top: 0; height: 100vh; background: #fff; border-right: 1px solid var(--line); padding: 20px 14px 16px; display: flex; flex-direction: column; gap: 24px; }
.logo { display: flex; align-items: center; gap: 8px; padding: 0 6px; text-decoration: none; color: #1d1830; font: 800 24px/1 Manrope, var(--font); letter-spacing: -.03em; }
.logo svg { width: 40px; height: 40px; }
.nav { display: grid; gap: 4px; }
.nav .it { display: flex; align-items: center; gap: 13px; width: 100%; padding: 11px 14px; border: 0; border-radius: 12px; background: none; color: var(--text); font-size: 15.5px; font-weight: 500; text-decoration: none; text-align: left; cursor: pointer; }
.nav .it:hover { background: #f5f6f8; }
.nav .it.on { background: var(--soft); color: var(--softink); font-weight: 600; }
.nav .it:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.nav .it em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--faint); }
.fill { flex: 1; }
.acct { display: flex; align-items: center; gap: 10px; padding: 14px 4px 0; border-top: 1px solid var(--line); }
.acct:empty { display: none; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--soft); color: var(--softink); font-size: 13.5px; font-weight: 700; }
.acct-text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.acct-text b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-text small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct form { margin: 0; }

/* ---------- shared bits ---------- */
.main { padding: 28px 36px 40px; min-width: 0; }
.loading { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid #d9dde3; border-radius: 11px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { border-color: #c3c9d2; background: #fafbfc; }
.btn:focus-visible, .icon-btn:focus-visible, .start:focus-visible, .tcard a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-p { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(255, 107, 26, .28); }
.btn-p:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-soft { background: var(--soft); border-color: #ffd9c2; color: var(--softink); }
.btn-soft:hover { background: #ffe7d6; border-color: #ffc9a8; }
.btn-s { height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #d9dde3; border-radius: 9px; background: #fff; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: #c3c9d2; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; background: #eef0f3; color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.live { background: var(--okbg); color: var(--ok); }
.chip.changes { background: var(--warnbg); color: var(--warn); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.lbl { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--softink); }
.hint { color: var(--muted); font-size: 13.5px; }
h2 { font-size: 20px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sec-head .lnk { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--softink); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.sec-head .lnk:hover { text-decoration: underline; }

/* the first screen with the mascot standing in front (as in the builder's step strip) */
.thumb { position: relative; display: block; text-decoration: none; overflow: hidden; border-radius: 12px; background: #ece9f6; aspect-ratio: 16 / 9; }
.thumb img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.thumb img.m { position: absolute; left: 4%; bottom: -2%; height: 82%; width: auto; filter: drop-shadow(0 4px 8px rgba(20, 10, 40, .3)); }
.thumb.empty { display: grid; place-items: center; background: repeating-linear-gradient(-45deg, #f6f7f9 0 10px, #f0f2f5 10px 20px); border: 1.5px dashed #d6dbe2; color: var(--faint); }
.thumb.empty span { display: grid; justify-items: center; gap: 6px; font-size: 13px; }

/* ---------- home: hero ---------- */
.home { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.hero { position: relative; display: flex; min-height: 280px; overflow: hidden; border-radius: 22px; background: linear-gradient(120deg, #fff3e9, #ffe3cf 60%, #ffd2b3); }
.hero .hm { flex: none; align-self: flex-end; width: 260px; height: 330px; margin: 0 0 -54px 34px; object-fit: cover; object-position: center top; filter: drop-shadow(0 8px 16px rgba(120, 50, 0, .25)); }
.hero .ht { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 30px 28px 24px 22px; }
.hero h1 { font-size: 31px; line-height: 1.2; }
.hero .lead { margin: 4px 0 0; max-width: 540px; font-size: 16.5px; color: #5b4636; }
.hero .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 18px; }
.cont { display: flex; align-items: center; gap: 14px; margin-top: auto; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .86); }
.cont img { width: 104px; height: 64px; flex: none; object-fit: cover; object-position: left top; border-radius: 9px; background: #ece9f6; }
.cont > div { flex: 1; min-width: 0; display: grid; }
.cont small { font-size: 12.5px; font-weight: 600; color: var(--softink); }
.cont b { font-size: 16.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
.cols > div { min-width: 0; }

/* recent tours */
.sgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.scard { padding: 8px; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.scard:hover { box-shadow: 0 2px 4px rgba(20, 30, 50, .06), 0 12px 30px rgba(20, 30, 50, .1); transform: translateY(-1px); }
.scard .sb { display: grid; gap: 5px; justify-items: start; padding: 12px 6px 6px; }
.scard b { max-width: 100%; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* start a new tour */
.starts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.start { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.start:hover { border-color: #ffc9a8; }
.start > span:last-child { display: grid; }
.start b { font-size: 16.5px; }
.start small { font-size: 13.5px; color: var(--muted); }
.si { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--brand); color: #fff; }
.si.alt { background: var(--soft); color: var(--softink); }

/* how it works (new account) */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hw { display: grid; gap: 6px; align-content: start; padding: 20px; }
.hw b { font-size: 16px; }
.hw .n { width: 32px; height: 32px; margin-bottom: 4px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--softink); font-weight: 700; }
.empty-tours { margin-top: 22px; min-height: 160px; display: grid; place-content: center; justify-items: center; gap: 6px; border: 2px dashed #dfe3e9; border-radius: 18px; color: var(--faint); text-align: center; padding: 20px; }
.empty-tours b { font-size: 16px; color: var(--muted); }

/* right panel: needs your attention / first-tour checklist */
.panel { padding: 22px; }
.panel h3 { font-size: 18px; }
.panel ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.panel li { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid #f0f2f5; }
.panel li:last-child { border-bottom: 0; }
.panel li > div { flex: 1; min-width: 0; display: grid; }
.panel li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel li small { font-size: 13px; color: var(--muted); }
.ai { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #eef0f3; color: var(--muted); }
.ai.warn { background: var(--warnbg); color: var(--warn); }
.ai.go { background: var(--okbg); color: var(--ok); }
.allok { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--okbg); color: var(--ok); font-size: 14px; font-weight: 600; }
.more { display: inline-block; margin-top: 10px; color: var(--softink); font-size: 14px; font-weight: 600; }
.bar { height: 8px; margin: 10px 0 6px; border-radius: 99px; background: #f0f2f5; }
.bar i { display: block; height: 100%; min-width: 8px; border-radius: 99px; background: var(--brand); }
.ck { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border: 2px solid #d6dbe2; border-radius: 50%; }
li.done .ck { background: var(--brand); border-color: var(--brand); color: #fff; }
.panel li.step b { white-space: normal; }
li.done b { color: var(--muted); font-weight: 500; text-decoration: line-through; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- all tours ---------- */
.tours-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.tours-head h1 { font-size: 28px; margin-right: auto; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: #eceef2; }
.tabs button { padding: 7px 14px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20, 30, 50, .1); }
.tabs button:focus-visible { outline: 2px solid var(--brand); }
.tabs em { margin-left: 4px; font-style: normal; font-weight: 500; color: var(--faint); }
.search { display: flex; align-items: center; gap: 10px; height: 42px; margin-left: auto; padding: 0 14px; border: 1px solid #d9dde3; border-radius: 11px; background: #fff; color: var(--faint); width: min(320px, 100%); }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 107, 26, .14); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.tcard { position: relative; display: flex; flex-direction: column; padding: 10px; }
.tcard .tag { position: absolute; top: 20px; left: 20px; }
.tcard .tb { padding: 12px 6px 10px; display: grid; gap: 2px; }
.tcard h3 { font-size: 16.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard h3 a { text-decoration: none; }
.tcard h3 a:hover { text-decoration: underline; }
.tcard h3 input { width: 100%; font: inherit; padding: 2px 6px; border: 1px solid var(--brand); border-radius: 7px; outline: 0; box-shadow: 0 0 0 3px rgba(255, 107, 26, .14); }
.tcard .when { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--faint); }
.tcard .tf { display: flex; align-items: center; gap: 8px; padding: 0 4px 4px; }
.tcard .tf .sp { flex: 1; }
.no-match { padding: 40px; text-align: center; color: var(--muted); }

/* card menu */
.menu { position: absolute; right: 12px; bottom: 54px; z-index: 5; min-width: 170px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 12px 32px rgba(20, 30, 50, .16); }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font-size: 14px; text-align: left; cursor: pointer; }
.menu button:hover, .menu button:focus-visible { background: #f5f6f8; outline: 0; }
.menu button.danger { color: var(--bad); }

/* ---------- new tour dialog, toast ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(20, 24, 40, .45); }
.modal[hidden] { display: none; }
.modal-box { width: min(620px, 100%); padding: 22px; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(20, 24, 40, .3); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14.5px; box-shadow: 0 10px 30px rgba(20, 24, 40, .3); }
.toast.bad { background: var(--bad); }

/* ---------- smaller screens ---------- */
@media (max-width: 1280px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .logo { font-size: 21px; padding: 0; } .logo svg { width: 34px; height: 34px; }
  .nav { display: flex; order: 3; width: 100%; overflow-x: auto; gap: 4px; }
  .nav .it { width: auto; padding: 8px 12px; font-size: 14.5px; white-space: nowrap; }
  .fill { display: none; }
  .acct { margin-left: auto; padding: 0; border: 0; }
  .acct-text { display: none; }
  .main { padding: 20px 16px 32px; }
  .hero { flex-direction: column; min-height: 0; }
  .hero .hm { display: none; }
  .hero .ht { padding: 22px 20px 20px; }
  .hero h1 { font-size: 25px; }
  .hero h1 br { display: none; }
  .cont { flex-wrap: wrap; } .cont .btn { width: 100%; }
  .how, .starts { grid-template-columns: minmax(0, 1fr); }
  .search { margin-left: 0; width: 100%; }
}
@media (max-width: 520px) {
  .sgrid { grid-template-columns: minmax(0, 1fr); }
  .cont img { display: none; }
}
/* the account block's name: opens Clerk's account settings */
.acct-me { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 4px; margin: -4px; border: 0; border-radius: 12px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.acct-me:hover { background: #f5f6f8; }
.acct-me:focus-visible { outline: 2px solid var(--brand); }
@media (max-width: 900px) { .acct-me { flex: none; } }

/* first visit: "What should we call you?" */
.ask-box { width: min(440px, 100%); display: grid; justify-items: center; gap: 8px; padding: 26px 28px 22px; text-align: center; }
.ask-face { width: 120px; height: 140px; object-fit: cover; object-position: center top; margin-top: -4px; }
.ask-box h2 { font-size: 23px; }
.ask-box .hint { margin: 0 0 8px; max-width: 340px; }
.ask-box input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #d9dde3; border-radius: 11px; font: inherit; font-size: 16px; text-align: center; color: var(--ink); }
.ask-box input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 107, 26, .16); }
.ask-err { margin: 0; color: var(--bad); font-size: 13.5px; }
.ask-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 8px; }
.ask-foot .btn { flex: 1; }
.link { padding: 8px 4px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.link:hover { color: var(--ink); text-decoration: underline; }

/* ---------- views on the tour cards, and the stats dialog (dashboard.js openStats) ---------- */
.tcard .views { display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-top: 2px; padding: 2px 0; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.tcard .views:hover { color: var(--ink); text-decoration: underline; }
.tcard .views:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.st-box { width: min(720px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; }
.st-box .modal-head { align-items: flex-start; }
.st-box h2 { font-size: 20px; margin-top: 2px; }
.st-period { display: inline-flex; margin-bottom: 16px; }
.st-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.st-tile { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.st-tile small { color: var(--muted); font-size: 13px; font-weight: 600; }
.st-tile b { font: 800 28px/1.15 Manrope, var(--font); letter-spacing: -.02em; }
.st-tile .hint { font-size: 12.5px; }
.st-h { margin: 22px 0 10px; font-size: 15px; }
.st-chart { margin-top: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 140px auto; column-gap: 8px; }
.st-max { align-self: start; margin-top: -7px; color: var(--faint); font-size: 12px; text-align: right; }
.st-area { position: relative; border-top: 1px dashed var(--line); border-bottom: 1px solid #cfd4dc; }
.st-plot { display: flex; align-items: flex-end; gap: 2px; height: 100%; }
.st-col { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; border-radius: 4px 4px 0 0; cursor: default; }
.st-col:hover, .st-col.on { background: rgba(23, 32, 51, .05); }
.st-col:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.st-bar { display: block; width: 100%; border-radius: 4px 4px 0 0; background: #ea580c; }
.st-tip[hidden] { display: none; }
.st-tip { position: absolute; bottom: calc(100% + 6px); transform: translateX(-50%); z-index: 2; display: grid; gap: 2px; padding: 8px 11px; border-radius: 10px; background: #172033; color: #fff; font-size: 12.5px; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 20px rgba(20, 30, 50, .2); }
.st-axis { grid-column: 2; display: flex; justify-content: space-between; padding-top: 6px; color: var(--faint); font-size: 12px; }
.st-funnel { display: grid; gap: 8px; }
.st-row { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 84px; align-items: center; gap: 12px; font-size: 14px; }
.st-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.st-track { height: 12px; border-radius: 0 4px 4px 0; background: #f0f2f5; overflow: hidden; }
.st-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; background: #ea580c; }
.st-n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-n small { margin-left: 6px; color: var(--muted); font-weight: 500; }
.st-empty { display: grid; justify-items: center; gap: 6px; margin-top: 16px; padding: 28px 16px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; color: var(--muted); }
.st-empty b { color: var(--ink); }
.st-empty .btn { margin-top: 6px; }
.st-note { margin: 18px 0 0; color: var(--faint); font-size: 12.5px; }
@media (max-width: 560px) {
  .st-tiles { grid-template-columns: 1fr; }
  .st-row { grid-template-columns: minmax(0, 1fr) 72px; }
  .st-track { grid-column: 1 / -1; grid-row: 2; }
}
.st-body { transition: opacity .15s; }
.st-body.busy { opacity: .45; }

/* the Free plan's one tour (dashboard.js tourLimit) */
.limit-box { width: min(440px, 100%); }
.limit-box p { margin: 0 0 10px; line-height: 1.5; }
.limit-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* Plan & credits (assets/plan.js) */
.chip.offline { background: #fdecea; color: var(--bad); }
.chip.test { background: var(--warnbg); color: var(--warn); }
.plan-page { display: grid; gap: 22px; max-width: 1080px; }
.plan-page .tours-head { margin-bottom: 0; }
.plan-page h2 { margin: 0; font-size: 19px; color: var(--ink); }
.small { font-size: 12.5px; }
.pl-note { display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: var(--muted); font-size: 14.5px; }
.pl-now { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0; }
.pl-now > div { padding: 22px 24px; display: grid; align-content: start; gap: 4px; }
.pl-now-credits { border-left: 1px solid var(--line); }
.pl-now.warn { border-color: #f5c27a; }
.pl-now .hint { margin: 2px 0 0; line-height: 1.5; }
.pl-name { font: 800 30px/1.15 Manrope, var(--font); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.pl-plans-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; justify-content: space-between; margin-top: 6px; }
.tabs .save { margin-left: 7px; padding: 2px 7px; border-radius: 99px; background: var(--okbg); color: var(--ok); font-style: normal; font-size: 12px; font-weight: 700; }
.pl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pl-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; }
.pl-card.pro { border-color: #ffc59f; box-shadow: 0 10px 30px rgba(255, 107, 26, .12); }
.pl-card.on { outline: 2px solid var(--brand); outline-offset: -1px; }
.pl-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-size: 17px; color: var(--ink); }
.chip.pl-pop { background: var(--soft); color: var(--softink); }
.chip.pl-pop::before { display: none; }
.pl-price { display: flex; align-items: baseline; gap: 4px; margin-top: 6px; }
.pl-price b { font: 800 34px/1 Manrope, var(--font); letter-spacing: -.02em; color: var(--ink); }
.pl-price span { color: var(--muted); font-weight: 600; }
.pl-sub { margin: 0; min-height: 18px; }
.pl-card ul { margin: 10px 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; color: var(--text); }
.pl-card li { position: relative; padding-left: 24px; }
.pl-card li::before { content: ""; position: absolute; left: 3px; top: 4px; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.pl-cta { margin-top: auto; display: grid; }
.pl-cta .btn:disabled { opacity: .55; cursor: default; box-shadow: none; }
.pl-current { display: grid; place-items: center; height: 42px; border-radius: 11px; background: #f2f4f7; color: var(--muted); font-weight: 600; }
.pl-topup { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding: 20px 22px; }
.pl-topup h3 { margin: 0 0 4px; font-size: 16px; color: var(--ink); }
.pl-topup .hint { margin: 0; }
.pl-topup-buy { display: flex; gap: 10px; flex-wrap: wrap; }
.pl-topup select { height: 42px; padding: 0 12px; border: 1px solid #d9dde3; border-radius: 11px; background: #fff; font: inherit; font-size: 14.5px; color: var(--ink); }
.pl-keep { padding: 20px 22px; display: grid; gap: 8px; }
.pl-keep .hint { margin: 0 0 6px; }
.pl-pick { display: grid; gap: 8px; }
.pl-pick-it { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.pl-pick-it:has(input:checked) { border-color: var(--brand); background: var(--soft); }
.pl-pick-it input { accent-color: var(--brand); width: 18px; height: 18px; }
.pl-pick-it span { display: grid; }
.pl-pick-it small { color: var(--muted); }
.pl-dlg { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; }
.pl-dlg p { margin: 0 0 10px; line-height: 1.55; }
.pl-dlg-h { margin: 16px 0 8px; font-size: 15px; }
.pl-dlg p.pl-charge { background: var(--soft); border-radius: 10px; padding: 10px 12px; color: var(--ink); }
.pl-dlg-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-danger { color: var(--bad); border-color: #f1c4bf; }
.btn-danger:hover { background: #fdecea; }
@media (max-width: 900px) {
  .pl-grid { grid-template-columns: minmax(0, 1fr); }
  .pl-now { grid-template-columns: minmax(0, 1fr); }
  .pl-now-credits { border-left: 0; border-top: 1px solid var(--line); }
}
.pl-topup.off h3, .pl-topup.off .hint { opacity: .75; }

/* each plan card with its footnote below it (planCol in plan.js) */
.pl-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pl-col > .pl-card { flex: 1; }
.pl-foot { margin: 0 4px; min-height: 1.45em; font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .pl-foot:empty { display: none; } }

/* the account's plan, above the account (in the top bar on phones): as in the editor (studio.css) */
.plan-tag-box { padding: 0 4px; }
.plan-tag-box:empty { display: none; }
.plan-tag { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.plan-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, #b9b3cc); flex: none; }
.plan-tag:hover { border-color: #cfc9dd; color: var(--ink); }
.plan-tag.plan-starter { --dot: #ff6b1a; }
.plan-tag.plan-pro { --dot: #7c4dff; }
.plan-tag.plan-unlimited { --dot: #16a34a; }
@media (max-width: 900px) {
  .plan-tag-box { margin-left: auto; padding: 0; }
  .plan-tag-box:not(:empty) + .acct { margin-left: 0; }
  .plan-tag .pt-word { display: none; }
}
