/* Inner Dive · tools on the phone (27 Oct 2026) · goes with tool-phone.js */
.tp-dock, .tp-sheet, .tp-quick, .tp-about { display: none; }
@media (max-width: 819.98px) {
  body.tp-on .tp-hide { display: none !important; }
  body.tp-on main.app { padding-bottom: calc(var(--tabbar-h, 64px) + 96px); }
  html.tp-lock, html.tp-lock body { overflow: hidden; }

  /* ---------- How it works pill ---------- */
  .tp-about { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 7px 13px 7px 9px; border-radius: 999px; cursor: pointer;
    font: 600 .82rem/1 var(--font-body, inherit); color: var(--ink, #E7EBF8); background: rgba(18,25,53,.75); border: 1px solid rgba(157,180,255,.22); }
  .tp-about svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; color: #9DB4FF; }

  /* ---------- Quick start ---------- */
  .tp-quick { display: block; margin: 4px 0 14px; }
  .tp-qlab { margin: 0 2px 8px; font: 600 .7rem/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--tk) 70%, #fff); }
  .tp-quick { min-width: 0; width: min(100%, calc(100vw - 32px)); contain: inline-size; overflow: hidden; }
  .tp-qrow { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100vw - 32px) * .62); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 2px 2px 6px; scrollbar-width: none; }
  .tp-qrow::-webkit-scrollbar { display: none; }
  .tp-q { all: unset; box-sizing: border-box; scroll-snap-align: start; position: relative; display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 12px 14px; border-radius: 16px; cursor: pointer; --qk: var(--tk);
    background: linear-gradient(135deg, color-mix(in srgb, var(--qk) 18%, #111836), #0D1332); border: 1px solid color-mix(in srgb, var(--qk) 40%, transparent); -webkit-tap-highlight-color: transparent; transition: transform .2s, box-shadow .3s; }
  .tp-q:active { transform: scale(.97); }
  .tp-q.on { border-color: var(--qk); box-shadow: 0 0 22px -8px var(--qk); }
  .tp-q span { display: grid; gap: 3px; min-width: 0; }
  .tp-q strong { font-size: .92rem; font-weight: 650; color: #fff; white-space: nowrap; }
  .tp-q small { font-size: .74rem; color: var(--muted, #9BA7CA); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tp-q em { position: absolute; top: 8px; right: 10px; font: 700 .56rem/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .08em; font-style: normal; padding: 3px 6px; border-radius: 6px; color: #1A1200; background: linear-gradient(90deg, #FFD27A, #FFB547); }
  .tp-qwave { flex: none; display: flex; align-items: center; gap: 2px; height: 26px; }
  .tp-qwave b { width: 3px; height: 100%; border-radius: 2px; background: var(--qk); box-shadow: 0 0 6px var(--qk); transform: scaleY(.35); }
  .tp-qwave b:nth-child(2) { transform: scaleY(.7); } .tp-qwave b:nth-child(3) { transform: scaleY(1); } .tp-qwave b:nth-child(4) { transform: scaleY(.6); } .tp-qwave b:nth-child(5) { transform: scaleY(.3); }
  .tp-q.on .tp-qwave b { animation: tpWave 1.2s ease-in-out infinite; }
  .tp-q.on .tp-qwave b:nth-child(2) { animation-delay: -.3s } .tp-q.on .tp-qwave b:nth-child(3) { animation-delay: -.6s } .tp-q.on .tp-qwave b:nth-child(4) { animation-delay: -.15s } .tp-q.on .tp-qwave b:nth-child(5) { animation-delay: -.45s }

  /* ---------- Control dock ---------- */
  .tp-dock { display: flex; position: fixed; z-index: 9; left: 12px; right: 12px; bottom: calc(var(--tabbar-h, 64px) + 10px + env(safe-area-inset-bottom, 0px));
    align-items: center; gap: 12px; padding: 9px 10px 9px 9px; border-radius: 22px;
    background: linear-gradient(120deg, color-mix(in srgb, var(--tk) 16%, rgba(14,20,46,.92)), rgba(12,17,40,.94)); border: 1px solid color-mix(in srgb, var(--tk) 45%, transparent);
    box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset, 0 16px 34px -14px #000, 0 0 30px -14px var(--tk); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .tp-dock[hidden] { display: none; }
  .tp-play { all: unset; position: relative; flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #0A0F24;
    background: radial-gradient(circle at 35% 30%, #fff, var(--tk) 60%); box-shadow: 0 0 22px -4px var(--tk); -webkit-tap-highlight-color: transparent; }
  .tp-play:active { transform: scale(.94); }
  .tp-play[hidden] { display: none; }
  .tp-play svg { width: 24px; height: 24px; position: relative; z-index: 1; }
  .tp-ring { position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--tk); opacity: 0; }
  .tp-on .tp-ring { animation: tpRing 2s ease-out infinite; }
  .tp-now { flex: 1; min-width: 0; display: grid; gap: 3px; }
  .tp-now b { font-size: .95rem; font-weight: 650; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tp-now span { font: 500 .74rem/1.2 var(--font-mono, ui-monospace, monospace); color: color-mix(in srgb, var(--tk) 55%, #C9D2EE); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tp-set { all: unset; flex: none; display: grid; justify-items: center; gap: 3px; min-width: 52px; padding: 6px 4px; border-radius: 14px; cursor: pointer; color: var(--ink, #E7EBF8); }
  .tp-set[hidden] { display: none; }
  .tp-set svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .tp-set small { font-size: .62rem; color: var(--muted, #9BA7CA); }

  /* ---------- Sheet ---------- */
  .tp-sheet { display: block; position: fixed; inset: 0; z-index: 70; }
  .tp-sheet[hidden] { display: none; }
  .tp-scrim { position: absolute; inset: 0; background: rgba(3,5,14,.6); opacity: 0; transition: opacity .3s; backdrop-filter: blur(2px); }
  .tp-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; display: flex; flex-direction: column; border-radius: 24px 24px 0 0;
    background: linear-gradient(180deg, #121A3C, #0A0F26 40%); border-top: 1px solid color-mix(in srgb, var(--tk) 50%, transparent);
    box-shadow: 0 -20px 50px -20px color-mix(in srgb, var(--tk) 50%, transparent); transform: translateY(100%); transition: transform .34s cubic-bezier(.2,.8,.2,1); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .tp-open .tp-scrim { opacity: 1; }
  .tp-open .tp-panel { transform: none; }
  .tp-grab { width: 44px; height: 5px; margin: 9px auto 2px; border-radius: 3px; background: rgba(157,180,255,.35); }
  .tp-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 10px; border-bottom: 1px solid rgba(157,180,255,.1); }
  .tp-title { font-size: 1.05rem; color: #fff; }
  .tp-top .tp-title::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--tk); box-shadow: 0 0 10px var(--tk); vertical-align: middle; }
  .tp-x { all: unset; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; border: 1px solid rgba(157,180,255,.2); cursor: pointer; }
  .tp-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .tp-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 14px 16px 26px; }
  .tp-sec > * + * { margin-top: 14px; }
  .tp-sec.cymlab { max-width: none; margin: 0; padding: 0; }
}
@keyframes tpWave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes tpRing { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tp-q.on .tp-qwave b, .tp-on .tp-ring { animation: none; } }

/* ---------- Generator: the Breathwork window shows in the phone list only ---------- */
.gm-win.brw { display: none !important; }
@media (max-width: 819.98px) {
  body.tp-on #gmBar { display: none !important; }
  body.tp-on .gm-veil { display: none !important; }
  .tp-gall { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; margin: 12px 0 4px; padding: 11px 14px; border-radius: 16px; cursor: pointer;
    background: linear-gradient(120deg, color-mix(in srgb, var(--gk, #E3A0BE) 20%, #121935), #0F1532); border: 1px solid color-mix(in srgb, var(--gk, #E3A0BE) 45%, transparent); -webkit-tap-highlight-color: transparent; }
  .tp-gall:active { transform: scale(.98); }
  .tp-gall .tp-gdot { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(10,15,36,.8); border: 1px solid color-mix(in srgb, var(--gk) 50%, transparent); }
  .tp-gall .tp-gdot svg { width: 18px; height: 18px; fill: none; stroke: var(--gk); stroke-width: 1.8; stroke-linecap: round; }
  .tp-gall span { flex: 1; min-width: 0; display: grid; gap: 2px; }
  .tp-gall small { font: 600 .64rem/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--gk) 70%, #fff); }
  .tp-gall b { font-size: .98rem; color: #fff; font-weight: 650; }
  .tp-gall em { font-style: normal; font-size: .8rem; color: var(--muted, #9BA7CA); white-space: nowrap; }
  /* the list of generators in the sheet */
  .tp-glist { display: grid; gap: 10px; }
  .tp-gi { all: unset; box-sizing: border-box; position: relative; display: flex; align-items: center; gap: 13px; min-height: 68px; padding: 12px 14px; border-radius: 16px; cursor: pointer; --qk: #E3A0BE;
    background: linear-gradient(135deg, color-mix(in srgb, var(--qk) 16%, #111836), #0D1332); border: 1px solid color-mix(in srgb, var(--qk) 34%, transparent); -webkit-tap-highlight-color: transparent; transition: transform .2s; }
  .tp-gi:active { transform: scale(.98); }
  .tp-gi.on { border-color: var(--qk); box-shadow: 0 0 22px -8px var(--qk); }
  .tp-gi span { flex: 1; min-width: 0; display: grid; gap: 3px; }
  .tp-gi strong { font-size: 1rem; color: #fff; font-weight: 650; }
  .tp-gi small { font-size: .78rem; color: var(--muted, #9BA7CA); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tp-gi .tp-qwave b { background: var(--qk); box-shadow: 0 0 6px var(--qk); }
  .tp-gi.on .tp-qwave b { animation: tpWave 1.2s ease-in-out infinite; }
  .tp-gi.on .tp-qwave b:nth-child(2) { animation-delay: -.3s } .tp-gi.on .tp-qwave b:nth-child(3) { animation-delay: -.6s } .tp-gi.on .tp-qwave b:nth-child(4) { animation-delay: -.15s } .tp-gi.on .tp-qwave b:nth-child(5) { animation-delay: -.45s }
  .tp-gi em { flex: none; font: 700 .58rem/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .08em; font-style: normal; padding: 4px 7px; border-radius: 6px; color: #1A1200; background: linear-gradient(90deg, #FFD27A, #FFB547); }
  .tp-gi i.tp-now { flex: none; font: 600 .6rem/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .12em; text-transform: uppercase; font-style: normal; padding: 4px 7px; border-radius: 6px; color: var(--qk); border: 1px solid color-mix(in srgb, var(--qk) 50%, transparent); }
  .tp-gi .tp-go { flex: none; color: var(--qk); font-size: 1.1rem; }
}

/* ---------- a sheet made in place (for tools whose parts must stay where they are) ---------- */
@media (max-width: 819.98px) {
  body.tp-on .tp-ipnode { display: none !important; }
  body.tp-on .tp-ipnode.tp-ipopen { display: block !important; position: fixed; z-index: 71; left: 0; right: 0; top: 22vh; bottom: 0; margin: 0 !important; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    padding: 14px 16px calc(26px + env(safe-area-inset-bottom, 0px)); background: #0A0F26; width: auto !important; max-width: none !important; }
  .tp-sheet.tp-ip .tp-panel { top: calc(22vh - 62px); bottom: auto; max-height: none; height: 62px; padding-bottom: 0; }
  .tp-sheet.tp-ip .tp-body { display: none; }
}
/* 2 Nov 2026 · phone Generator, calmer: no floating Breath guide, and "All generators" becomes a quiet text link */
@media (max-width: 819.98px) {
  .br-fab { display: none !important; }
  .tp-gall { width: auto; margin: 2px 0 6px auto; padding: 4px 2px; border: 0 !important; background: none !important; box-shadow: none !important; gap: 6px; float: right; }
  .tp-gall .tp-gdot, .tp-gall small { display: none; }
  .tp-gall b { font: 500 .78rem/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .06em; color: var(--muted, #9BA7CA); }
  .tp-gall em { font-size: .78rem; }
}
@media (max-width: 819.98px) {
  .tp-gall { display: none !important; }
  .app > header.has-studio { position: relative; }
  .app > header.has-studio > h1 { padding-right: 150px; }
  #co-studio.in-head { position: absolute; right: 0; top: 0; margin: 0; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px 9px 11px; border-radius: 12px; cursor: pointer;
    font: 600 .8rem/1 Inter, system-ui; letter-spacing: .08em; text-transform: uppercase; color: #F2C94C;
    background: linear-gradient(135deg, rgba(242,201,76,.10), rgba(255,79,216,.06)); border: 1px solid rgba(242,201,76,.45); }
  #co-studio.in-head svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  #co-studio.in-head[aria-pressed="true"] { color: #0A0F24; background: linear-gradient(135deg, #F2C94C, #FFB36B 60%, #FF8FD8); border-color: transparent; box-shadow: 0 0 22px rgba(242,201,76,.45); }
}
