/* PlayheadX UI round 3 (e2e/FABLE_LIVE_REVIEW.md items 1-4, 6-8): refresh toast, 404, email fix, one checklist, phone pass. Loaded last. */
/* 1. "New version" is a corner toast: never over the nav, the logo or the credits; above the phone tab bar */
.newver { position:fixed; left:auto; top:auto; right:16px; bottom:calc(16px + env(safe-area-inset-bottom, 0px)); transform:none; z-index:190; display:inline-flex; align-items:center; gap:0; min-height:0; padding:0; border-radius:14px; border:1px solid var(--brass-line); background:var(--ink-3); box-shadow:var(--shadow); max-width:calc(100vw - 32px); white-space:nowrap; }
.newver button { all:unset; box-sizing:border-box; cursor:pointer; display:inline-flex; align-items:center; gap:9px; color:var(--cream); font-size:13px; font-weight:600; padding:10px 6px 10px 14px; }
.newver .nv-x { padding:10px 12px 10px 8px; color:var(--cream-3); font-size:18px; line-height:1; } .newver .nv-x:hover { color:var(--cream); }
.newver button:focus-visible { outline:2px solid var(--brass); outline-offset:-2px; border-radius:12px; }
@media (max-width:860px) { .newver { right:12px; bottom:calc(84px + env(safe-area-inset-bottom, 0px)); } }
/* 2. a failed kit: one plain sentence and one button */
.gempty.kfail { display:flex; gap:14px; align-items:center; flex-wrap:wrap; padding:18px 40px; } .gempty.kfail p { margin:0; color:var(--cream-2); }
.kit.compact .gempty.kfail { padding:12px 16px; }
/* 3. set a real email */
.emfix { border-color:rgba(231,166,90,.45); } .emfix h2 { margin-top:0; }
.emfix-f { display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; } .emfix-f label { display:flex; flex-direction:column; gap:4px; flex:1; min-width:200px; }
/* 6. the 404 page */
.nf { max-width:620px; margin:12vh auto 0; text-align:left; } .nf h1 { margin:6px 0 8px; } .nf code { font-size:13px; padding:1px 6px; border-radius:6px; background:rgba(241,232,218,.06); }
.nf .row { display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
/* 7. one checklist: waiting steps and the setup rows under Next */
.mod-step.wait .n { border-style:dashed; color:var(--amber); } .mod-step.wait .n .ic { width:14px; height:14px; }
.mod-setup { border-top:1px solid var(--line); margin-top:4px; padding-top:14px; } .mod-setup h3 { margin:0 0 8px; font-size:15px; display:flex; gap:10px; align-items:baseline; flex-wrap:wrap; }
.mod-setup ul { list-style:none; margin:0; padding:0; display:grid; gap:6px; } .mod-setup li { display:flex; gap:8px; align-items:center; flex-wrap:wrap; font-size:14px; }
.mod-setup li.ok { color:var(--cream-3); } .mod-setup li.ok .ic { color:var(--sage); } .mod-setup li .ic { color:var(--amber); flex:none; }
/* Tube Insights with no channel: one empty state; the rail keeps every item (the same rail on every page), the ones that need a channel dimmed */
.t2-notrack .t2-rail a:not([href="#/tube"]):not([href="#/tube/keywords"]):not([href="#/tube/patterns"]):not([href="#/tube/setup"]):not([href="#/tube/lookup"]) { opacity:.5; }
/* FRESH_UI_REVIEW 2026-10-31: the one invalid-email bar under the top bar, the scene page's kit dropdown, locked module switches */
.embar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; padding:7px 32px; font-size:13px; color:var(--amber); background:rgba(231,166,90,.08); border-bottom:1px solid rgba(231,166,90,.3); }
.embar a { color:var(--cream); font-weight:600; white-space:nowrap; } .embar .ic { flex:none; }
/* BILLING_V2 wallet floor: the top-up bar (amber below zero, red at the limit) and the blocked line in quotes */
.crbar.blk { color:#ff9b8f; background:rgba(224,90,72,.10); border-bottom-color:rgba(224,90,72,.4); } .qblk { margin:6px 0 0; } .qblk a { color:var(--cream); font-weight:600; }
.kswitch .ksel { display:flex; gap:10px; align-items:center; min-width:0; max-width:100%; } .kswitch .ksel select { max-width:min(560px, 100%); min-width:0; }
.mod-sw { white-space:nowrap; } .mod-sw.locked .switch { opacity:.5; pointer-events:none; } .mod-sw.locked { cursor:not-allowed; }
.mod-lock { display:inline-flex; vertical-align:middle; margin-right:8px; color:var(--cream-3); }
/* 8. phone pass */
.cv-tabs { flex-wrap:wrap; }
.cvx-opt { height:auto; min-height:0; white-space:normal; line-height:1.35; align-content:start; }
@media (max-width:860px) {
  .embar { padding:7px 16px; }
  .cv-tabs { gap:0; } .cv-tabs a { padding:10px 11px; font-size:14px; }
  .dx-quick { flex-wrap:wrap; overflow:visible; } .dx-quick .dx-chip { flex:0 1 auto; white-space:normal; text-align:left; }
  .t2-rail { flex-wrap:wrap; overflow-x:visible; } .t2-rail a { padding:6px 10px; }
  .seg { flex-wrap:nowrap; height:auto; overscroll-behavior-x:contain; max-width:min(100%, calc(100vw - 32px)); } .seg > * { flex:none; }   /* one clean row that scrolls sideways; wrapped pills in a 999px radius clip and read as a blob */
  .t2k { grid-template-columns:minmax(0, 1fr); } .t2-head { flex-wrap:nowrap; } .t2-pick select { width:100%; max-width:100%; }   /* a long series name never widens the page */
  .va-url code { overflow-wrap:anywhere; white-space:normal; }
  .va-fc b { top:auto; bottom:18px; color:var(--ink); font-size:10px; }
  .va-plh, .va-now { min-width:0; } .va-now p { overflow-wrap:anywhere; }
  .tablewrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
}
@media (max-width:700px) {
  .mod-t .hide-p { display:none; } .mod-t td:first-child { width:auto; } .mod-t td b { word-break:normal; hyphens:none; }
  .page-head h1 { word-break:normal; overflow-wrap:normal; }
}
