/* Rise Studio, layered on Rise's styles.css (same palette, fonts, cards, buttons, modals). */

.icon-img { width: 22px; height: 22px; border-radius: 6px; flex: none; display: block; }
.nav .count + .kbd { margin-left: 8px; }
.thread-list .row > svg, .rows .row > svg { width: 20px; height: 20px; flex: none; color: var(--text-2); }
.nav button .count, #tabs .count { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #1b1c20; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.brand-logo { object-fit: cover; }
.w-signout button { all: unset; cursor: pointer; display: block; padding: 2px 6px; font-size: 12px; color: var(--text-3); }
.w-signout button:hover { color: var(--text); }
a { color: var(--accent-2); }
.muted { color: var(--text-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; flex: none; }
textarea.inp { resize: vertical; min-height: 84px; font: inherit; }
.empty .icon-img { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 10px; }

/* ---------- Sign-in / join ---------- */
body.gate { display: grid; place-items: center; min-height: 100dvh; overflow: auto; padding: 24px 16px; }
.gate-card { width: min(360px, 100%); display: grid; gap: 10px; text-align: center; }
.gate-card h1 { font-size: 24px; margin: 4px 0 6px; }
.gate-card .btn { justify-content: center; padding: 12px; font-size: 15px; }
.gate-card .inp { font-size: 16px; padding: 12px; }
.gate-logo { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 4px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.gate-err { color: var(--danger); font-size: 14px; margin: 4px 0 0; }
.gate-note { color: var(--text-2); font-size: 14px; line-height: 1.5; margin: 0 0 6px; }

/* ---------- Stage pill and stepper ---------- */
.stage { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 20px; font-size: 12px; font-weight: 600; background: rgba(236,238,241,.07); border: 1px solid var(--line-2); white-space: nowrap; }
.stage .icon-img { width: 18px; height: 18px; border-radius: 5px; }
.stage.s-review, .stage.s-revisions { border-color: rgba(227,182,90,.5); color: #f0d49a; }
.stage.s-delivered, .stage.s-approved { color: var(--text-2); }
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.steps .st { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 11.5px; color: var(--text-3); padding: 8px 2px; border-radius: 12px; border: 1px solid transparent; }
.steps .st img { width: 40px; height: 40px; border-radius: 11px; filter: grayscale(1) brightness(.6); transition: filter .2s; }
.steps .st.done img { filter: grayscale(.5) brightness(.85); }
.steps .st.now { color: var(--text); font-weight: 700; border-color: var(--line-2); background: rgba(236,238,241,.05); }
.steps .st.now img { filter: none; box-shadow: 0 0 0 2px var(--accent), 0 0 18px rgba(240,200,120,.35); }
button.st { all: unset; cursor: pointer; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 11.5px; color: var(--text-3); padding: 8px 2px; border-radius: 12px; border: 1px solid transparent; }
button.st:hover { background: rgba(236,238,241,.05); }
.progress { display: flex; gap: 4px; }
.progress i { flex: 1; height: 4px; border-radius: 2px; background: rgba(236,238,241,.1); }
.progress i.on { background: var(--accent); }

/* ---------- Stats ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 16px; }
.tile b { display: block; font-size: 28px; line-height: 1.1; }
.tile span { font-size: 12.5px; color: var(--text-3); }
.tile.hot b { color: #f0d49a; }

/* ---------- Lists ---------- */
.rows { display: grid; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.row:last-child { border-bottom: 0; }
.row:hover { background: rgba(236,238,241,.04); }
.row .main-t { flex: 1; min-width: 0; }
.row .main-t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .main-t span { font-size: 12.5px; color: var(--text-3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .side { font-size: 12.5px; color: var(--text-3); text-align: right; white-space: nowrap; }
.late { color: var(--danger) !important; }

/* ---------- Board ---------- */
.board { display: grid; grid-template-columns: repeat(6, minmax(160px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 10px; }
.col { background: rgba(0,0,0,.16); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 160px; }
.col.drop { border-color: var(--accent); background: rgba(201,204,210,.06); }
.col-h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; margin: 2px 2px 10px; }
.col-h .n { margin-left: auto; color: var(--text-3); font-weight: 600; }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; cursor: pointer; display: grid; gap: 4px; transition: border-color .15s, transform .1s; }
.pcard:hover { border-color: var(--line-2); }
.pcard.dragging { opacity: .5; }
.pcard b { font-weight: 600; line-height: 1.25; }
.pcard .meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.pcard .meta .dot { margin-left: auto; }

/* ---------- Project page ---------- */
.proj { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 16px; align-items: start; }
.proj .side-col { position: sticky; top: 0; }
.kv { display: grid; gap: 12px; }
.kv > div > label { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-3); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; }
.kv .val { word-break: break-word; white-space: pre-wrap; }
.link-btn { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }
.link-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-cta { border-color: rgba(227,182,90,.45); background: linear-gradient(180deg, rgba(227,182,90,.10), rgba(38,40,46,.72)); }
.review-cta .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.timer-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.timer-row .clock { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.del-edit { display: grid; grid-template-columns: 1fr 1.6fr 32px; gap: 6px; margin-bottom: 6px; }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; height: min(70vh, 640px); padding: 0; overflow: hidden; }
.chat-h { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.chat-h b { flex: 1; }
/* Client project chat: "Chat with editor" and "Chat with studio" as two pills; the open one is filled */
.chat-pill { flex: none; font: inherit; font-weight: 700; font-size: 14px; line-height: 1; padding: 8px 14px; border-radius: 999px; }
.chat-pill { color: var(--text); background: transparent; border: 1px solid var(--line-2); cursor: pointer; transition: background-color .2s, border-color .2s; }
.chat-pill:hover { background: var(--accent-dim); border-color: var(--text-3); }
.chat-pill.on { background: var(--accent-dim); cursor: default; }
.msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; background: rgba(236,238,241,.07); border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; line-height: 1.4; }
.msg small { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 2px; }
.msg.mine { align-self: flex-end; background: var(--accent-dim); border-color: rgba(201,204,210,.3); }
.msg.sys { align-self: center; background: none; border: 0; font-size: 12px; color: var(--text-3); text-align: center; padding: 2px 8px; }
.compose { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); align-items: flex-end; }
.compose textarea { flex: 1; min-height: 42px; max-height: 140px; resize: none; }
.thread-list .row img { width: 36px; height: 36px; border-radius: 10px; }

/* ---------- Calendar ---------- */
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mgrid .dw { background: rgba(0,0,0,.25); font-size: 11px; color: var(--text-3); text-align: center; padding: 6px 0; }
.mgrid .dc { background: rgba(30,31,36,.85); min-height: 96px; padding: 6px; display: grid; align-content: start; gap: 4px; }
.mgrid .dc.out { opacity: .4; }
.mgrid .dc .dn { font-size: 12px; color: var(--text-3); }
.mgrid .dc.today .dn { color: #1b1c20; background: var(--accent); border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; font-weight: 700; }
.due-chip { font-size: 11.5px; padding: 3px 6px; border-radius: 6px; background: rgba(236,238,241,.08); border-left: 3px solid var(--accent); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.due-chip.s-delivered { opacity: .5; text-decoration: line-through; }
.due-chip.late { border-left-color: var(--danger); }

/* ---------- Insights ---------- */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.bars .b { flex: 1; display: grid; justify-items: center; gap: 6px; font-size: 11px; color: var(--text-3); }
.bars .b i { width: 100%; max-width: 44px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); min-height: 2px; }
.bars .b em { font-style: normal; color: var(--text); font-weight: 700; }
.hbar { display: grid; grid-template-columns: 140px 1fr 70px; gap: 10px; align-items: center; padding: 6px 0; font-size: 13.5px; }
.hbar i { height: 8px; border-radius: 4px; background: var(--accent); display: block; }
.hbar span:last-child { text-align: right; color: var(--text-2); }

#tabs { display: none; }

@media (max-width: 1100px) {
  .proj { grid-template-columns: minmax(0, 1fr); }
  .proj .side-col { position: static; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- iPhone ---------- */
@media (max-width: 760px) {
  :root { --tabbar: calc(58px + env(safe-area-inset-bottom)); }
  body { background-attachment: scroll; -webkit-tap-highlight-color: transparent; }
  input, select, textarea { font-size: 16px !important; }
  .app { grid-template-columns: 1fr; height: 100dvh; }
  .sidebar { display: none; }
  .topbar { padding: calc(env(safe-area-inset-top) + 14px) 16px 10px; gap: 10px; }
  .topbar h1 { font-size: 26px; }
  .topbar > .spacer { display: none; }
  .topbar > div:first-child { flex: 1 1 100%; }
  .content { padding: 4px 16px calc(var(--tabbar) + 24px); overscroll-behavior-y: contain; }
  .content .grid { grid-template-columns: minmax(0, 1fr) !important; }
  .btn { padding: 10px 14px; font-size: 14px; }

  #tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 46;
    height: var(--tabbar); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(20,21,25,.85); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); border-top: 1px solid var(--line); }
  #tabs button { all: unset; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--text-3); cursor: pointer; }
  #tabs button svg { width: 23px; height: 23px; }
  #tabs button.active { color: var(--text); }
  #tabs .count { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; }

  .overlay { place-items: end stretch; }
  .modal { width: 100% !important; max-width: none !important; max-height: 92dvh; display: flex; flex-direction: column; border-radius: 22px 22px 0 0 !important; }
  .modal-b { overflow: auto; flex: 1; }
  .modal-f { padding-bottom: calc(12px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .toast { bottom: calc(var(--tabbar) + 14px); }

  .tiles, .tiles[style] { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .tile { padding: 14px; }
  .tile b { font-size: 22px; overflow-wrap: anywhere; }
  .board { display: block; }
  .col { margin-bottom: 12px; min-height: 0; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chat { height: 62dvh; }
  .msg { max-width: 88%; }
  .mgrid .dc { min-height: 64px; padding: 4px; }
  .due-chip { font-size: 10px; padding: 2px 4px; }
  .hbar { grid-template-columns: 96px 1fr 56px; }
  .del-edit { grid-template-columns: 1fr; }
}

/* ---------- Personal | Business switch (under the logo; shown only where Rise Studio is available) ---------- */
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; margin: -6px 2px 0; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 11px; }
.mode-switch button { all: unset; cursor: pointer; text-align: center; padding: 7px 0; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); transition: background .15s, color .15s; }
.mode-switch button:hover { color: var(--text); }
.mode-switch button.on { background: rgba(236,238,241,.13); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.3); cursor: default; }

/* ---------- Alturas × Rise (client side and sign-in pages) ----------
   Alturas brand: navy #000e25, cream #efe0cd, Urca type; Rise's star and icons on top. */
.theme-alturas {
  --bg: #000e25; --panel: rgba(6, 23, 53, .72); --panel-solid: #061735; --panel-2: rgba(10, 31, 69, .6);
  --line: rgba(239, 224, 205, .12); --line-2: rgba(239, 224, 205, .22);
  --text: #efe0cd; --text-2: rgba(239, 224, 205, .74); --text-3: rgba(239, 224, 205, .52);
  --accent: #efe0cd; --accent-2: #f7efe4; --accent-dim: rgba(239, 224, 205, .14);
  font-family: "urca", ui-sans-serif, system-ui, -apple-system, sans-serif;
}
body.theme-alturas {
  color: var(--text);
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(239,224,205,.55), transparent), radial-gradient(1px 1px at 72% 9%, rgba(239,224,205,.45), transparent),
    radial-gradient(1.5px 1.5px at 38% 42%, rgba(239,224,205,.35), transparent), radial-gradient(1px 1px at 88% 56%, rgba(239,224,205,.4), transparent),
    radial-gradient(1px 1px at 22% 74%, rgba(239,224,205,.3), transparent), radial-gradient(1px 1px at 60% 86%, rgba(239,224,205,.3), transparent),
    radial-gradient(120% 70% at 50% -10%, #0a1f45 0%, #000e25 58%, #000918 100%);
  background-color: #000e25;
  background-attachment: fixed;
}
body.theme-alturas::before, body.theme-alturas::after { display: none; }
.theme-alturas h1, .theme-alturas h2, .theme-alturas h3, .theme-alturas .brand-name { font-family: "urca", ui-sans-serif, system-ui, sans-serif; letter-spacing: .01em; }
.theme-alturas .card h3 { letter-spacing: .14em; }
/* ---------- Client sky: the alturas.ca landing page's, behind the content area only ----------
   Night: star field (sky.js) and the crescent moon. Day (html[data-mode="day"]): blue sky, sun and
   clouds that part around the mouse. The switch turns the moon/sun wheel half a turn, like the site. */
.theme-alturas { --ease: cubic-bezier(.22, .61, .36, 1); --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-sky: cubic-bezier(.62, .02, .28, 1); }
.sky { position: fixed; top: 0; left: 252px; right: 0; bottom: 0; z-index: 0; overflow: hidden; pointer-events: none; }
@media (max-width: 760px) { .sky { left: 0; } }
.sky-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-day { opacity: 0; transition: opacity 1.5s var(--ease) .2s;
  background: radial-gradient(70% 50% at 50% 100%, rgb(255 255 255 / .6), transparent 72%),
    linear-gradient(180deg, #3b84d4 0%, #67abe6 38%, #a7d1f2 70%, #dcebf5 100%); }
.sky-dawn { opacity: 0;
  background: radial-gradient(60% 55% at 18% 100%, rgb(255 170 110 / .85), transparent 72%),
    radial-gradient(60% 50% at 82% 100%, rgb(255 128 112 / .55), transparent 72%),
    radial-gradient(120% 40% at 50% 100%, rgb(255 196 140 / .5), transparent 80%); }
:root.sky-turning .sky-dawn { animation: dawn 1.9s ease-in-out; }
@keyframes dawn { 45% { opacity: 1; } }
.client-sky { transform-origin: 50% 100%; rotate: var(--sky-turn, 0deg); transition: rotate 1.9s var(--ease-sky), opacity .9s var(--ease); }
/* Moon top right; the sun waits at the mirror point below the horizon, and half a turn swaps them */
.sky-wheel { position: absolute; inset: 0; transform-origin: 50% 100%; rotate: var(--sky-turn, 0deg); transition: rotate 1.9s var(--ease-sky); }
.sky-moon, .sky-sun { position: absolute; translate: -50% -50%; }
.sky-moon { left: 84%; top: 36%; width: clamp(44px, 5.2vw, 84px); rotate: -18deg;
  filter: drop-shadow(0 0 18px rgb(239 224 205 / .35)) drop-shadow(0 0 60px rgb(239 224 205 / .14)); }
.sky-sun { left: 16%; top: 164%; width: clamp(76px, 8vw, 128px); rotate: 180deg;
  filter: drop-shadow(0 0 26px rgb(255 228 168 / .95)) drop-shadow(0 0 90px rgb(255 210 130 / .55)); }
.client-clouds { opacity: 0; translate: -6% 0; transition: opacity 1.1s var(--ease), translate 2.2s var(--ease-out); }
.sky-ridges { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(140px, 30vh, 300px);
  background: url(assets/mountains.svg) center / 100% 100% no-repeat; }
.sky-ridges::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s var(--ease) .2s;
  background: url(assets/mountains-day.svg) center / 100% 100% no-repeat; }
:root[data-mode="day"] .sky-day, :root[data-mode="day"] .sky-ridges::after { opacity: 1; }
:root[data-mode="day"] .client-sky { opacity: 0; }
:root[data-mode="day"] .client-clouds { opacity: 1; translate: 0 0; transition-delay: .55s, .35s; }
.theme-alturas .app { position: relative; z-index: 1; }

/* Day colours: navy and cream trade places, as on the site */
:root[data-mode="day"] .theme-alturas {
  --bg: #efe0cd; --panel: rgba(248, 241, 231, .78); --panel-solid: #f8f1e7; --panel-2: rgba(239, 224, 205, .7);
  --line: rgba(0, 14, 37, .12); --line-2: rgba(0, 14, 37, .22);
  --text: #000e25; --text-2: rgba(0, 14, 37, .74); --text-3: rgba(0, 14, 37, .55);
  --accent: #000e25; --accent-2: #0a1f45; --accent-dim: rgba(0, 14, 37, .1);
  color-scheme: light;
}
:root[data-mode="day"] body.theme-alturas { background: #efe0cd; }
:root[data-mode="day"] .theme-alturas .sidebar { background: rgba(239, 224, 205, .9); }
:root[data-mode="day"] .theme-alturas .modal { background: #f8f1e7; }
:root[data-mode="day"] .theme-alturas .btn.primary { background: #000e25; color: #efe0cd; }
:root[data-mode="day"] .lockup .al-mark, :root[data-mode="day"] .m-brand .al-mark { filter: brightness(0) saturate(100%) invert(6%) sepia(40%) saturate(3000%) hue-rotate(205deg); }
:root.mode-switching body, :root.mode-switching .app, :root.mode-switching .app * {
  transition: background-color 1.3s var(--ease), color 1.3s var(--ease), border-color 1.3s var(--ease), fill 1.3s var(--ease), stroke 1.3s var(--ease); }

/* The toggle: a tiny sky wheel of its own (moon and sun swap places over a ridge) */
.mode-btn { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; border: 0;
  color: var(--text); background: transparent; cursor: pointer; transition: background-color .25s, transform .25s var(--ease); }
.mode-btn:hover { background: var(--accent-dim); }
.mode-btn:active { transform: scale(.92); }
.mode-icon { width: 22px; height: 22px; overflow: hidden; }
.mi-wheel { transform-box: view-box; transform-origin: 12px 24px; rotate: var(--sky-turn, 0deg); transition: rotate 1.9s var(--ease-sky); }
.mi-moon, .mi-sun circle { fill: currentColor; }
.mi-sun path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.mi-hill { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.m-brand .mode-btn { margin-left: auto; }
@media (prefers-reduced-motion: reduce) {
  .sky-wheel, .mi-wheel, .client-sky { transition: none; }
  :root.sky-turning .sky-dawn { animation: none; }
}
.theme-alturas .sidebar { background: rgba(0, 9, 24, .72); }
.theme-alturas .modal { background: #061735; }
.theme-alturas .btn.primary { background: #efe0cd; color: #000e25; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.theme-alturas .btn.primary:hover { background: #f7efe4; }
.theme-alturas .inp { background: rgba(0, 9, 24, .55); }
.theme-alturas .msg.mine { background: rgba(239, 224, 205, .12); border-color: rgba(239, 224, 205, .28); }
.theme-alturas .review-cta { border-color: rgba(239, 224, 205, .45); background: linear-gradient(180deg, rgba(239, 224, 205, .10), rgba(6, 23, 53, .72)); }
.theme-alturas .icon-img { box-shadow: 0 0 0 1px rgba(239, 224, 205, .14); }
.theme-alturas #tabs { background: rgba(0, 9, 24, .88); }
.theme-alturas .toast { background: #efe0cd; color: #000e25; }

/* Lockup: Alturas mark × Rise icon */
.lockup { display: grid; grid-template-columns: auto auto auto; justify-content: center; justify-items: center; align-items: center; column-gap: 14px; }
.lockup .al-mark { width: 62px; height: 40px; }
.lockup .rs-mark { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(239, 224, 205, .2), 0 8px 24px rgba(0, 0, 0, .45); }
.lockup .lx { grid-column: 2; grid-row: 1 / 3; font-size: 13px; color: var(--text-3); font-weight: 300; }
/* Trailing letter-spacing is cancelled so each name centers exactly under its logo. */
.lk-name { font-family: "urca", ui-sans-serif, system-ui, sans-serif; font-weight: 600; letter-spacing: .32em; margin-right: -.32em; font-size: 15px; margin-top: 14px; }
.lockup-sub { text-align: center; font-size: 12px; letter-spacing: .18em; margin-right: -.18em; text-transform: uppercase; color: var(--text-3); margin-top: 8px; }
.gate .lockup-sub { margin-bottom: 14px; }
.brand-co { display: block; padding: 6px 4px 2px; }
.brand-co .lockup { column-gap: 12px; }
.brand-co .al-mark { width: 44px; height: 28px; }
.brand-co .rs-mark { width: 34px; height: 34px; border-radius: 9px; }
.brand-co .lx { font-size: 11px; }
.brand-co .lk-name { font-size: 12.5px; margin-top: 10px; letter-spacing: .28em; margin-right: -.28em; }
.brand-co .lockup-sub { font-size: 10.5px; }
.m-brand { display: none; }
@media (max-width: 760px) {
  .m-brand { display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top) + 12px) 16px 0; }
  .m-brand .al-mark { width: 34px; height: 22px; }
  .m-brand .rs-mark { width: 26px; height: 26px; border-radius: 7px; }
  .m-brand .lx { font-size: 13px; color: var(--text-3); }
  .m-brand b { font-family: "urca", ui-sans-serif, system-ui, sans-serif; font-size: 11px; letter-spacing: .26em; font-weight: 600; margin-left: 4px; color: var(--text-2); }
  .m-brand + .topbar { padding-top: 10px; }
}
.m-switch { display: none; }
@media (max-width: 760px) {
  .m-switch { display: block; padding: 12px 16px 0; }
  .m-switch .mode-switch { margin: 0; }
  .m-switch .mode-switch button { padding: 10px 0; font-size: 14px; }
}
@media (max-width: 760px) { .m-switch + .topbar { padding-top: 12px; } }
/* Alturas stage icons are flat navy tiles: no greyed-out filter, just dimmed until reached. */
.theme-alturas .steps .st img { filter: none; opacity: .35; }
.theme-alturas .steps .st.done img { opacity: .7; }
.theme-alturas .steps .st.now img { opacity: 1; box-shadow: 0 0 0 2px #efe0cd, 0 0 18px rgba(239, 224, 205, .25); }

/* ==========================================================================
   Alturas FM (radio.js): the alturas.ca hub, styles copied from its styles.css.
   The site's colour variables, night and day, scoped to the button and the hub.
   ========================================================================== */
.radio-btn, .radio-hub {
  --cream: #efe0cd; --navy: #000e25; --cream-rgb: 239 224 205; --deep-rgb: 0 9 24;
  --fg-2: rgb(var(--cream-rgb) / .74); --fg-3: rgb(var(--cream-rgb) / .54);
  --line: rgb(var(--cream-rgb) / .12); --line-2: rgb(var(--cream-rgb) / .22);
  --surface: rgb(var(--cream-rgb) / .035); --surface-2: rgb(var(--cream-rgb) / .07);
  font-family: "urca", ui-sans-serif, system-ui, sans-serif;
}
:root[data-mode="day"] .radio-btn, :root[data-mode="day"] .radio-hub { --cream: #000e25; --navy: #efe0cd; --cream-rgb: 0 14 37; --deep-rgb: 247 239 228; }
.radio-hub button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; padding: 0; }
.radio-hub p { margin: 0; }
.radio-btn { border: 0; cursor: pointer; }
.side-foot .radio-btn { width: 38px; height: 38px; border-radius: 12px; }
.m-brand .radio-btn { width: 38px; height: 38px; }
.m-brand .radio-btn + .mode-btn { margin-left: 0; }
.m-brand .radio-btn { margin-left: auto; }
@media (prefers-reduced-motion: reduce) {
  .radio-hub, .radio-hub > * { transition: none !important; }
  .radio-btn *, .radio-btn::after { animation: none !important; }
}
/* ---------- Sound & radio (assets/js/radio.js) ----------
   A minimalist radio in the nav opens the hub: it grows out of the button as a circle,
   its rows slide in one after another, and a ring of bars dances to the music around
   the north star. Music: Epidemic Sound; interface sounds: ElevenLabs. */
.radio-btn { /* just the sound icon: no box */
  position: relative; display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 14px;
  color: var(--cream); background: transparent;
  transition: background-color .25s, transform .25s var(--ease);
}
.radio-btn:hover, .radio-btn[aria-expanded="true"] { background: var(--surface-2); }
.radio-btn:active { transform: scale(.92); }
.sound-icon { width: 24px; height: 24px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.si-speaker { fill: currentColor; fill-opacity: .14; }
.si-wave { opacity: .3; transition: opacity .3s; } /* all sound off: the waves rest faintly */
.radio-btn.has-sound .si-wave { opacity: 1; }
.radio-btn.is-playing .si-wave { animation: sound-wave 1.4s ease-in-out infinite; } /* music on: they pulse outwards */
.radio-btn.is-playing .si-wave--2 { animation-delay: .2s; }
@keyframes sound-wave { 0%, 100% { opacity: .35; translate: 0 0; } 50% { opacity: 1; translate: 1.5px 0; } }
/* radio on: the speaker gives way to the little radio, with its antenna waves, eq bars and breathing ring */
.sound-icon, .radio-icon { grid-area: 1 / 1; transition: opacity .35s var(--ease), scale .45s var(--ease-out); }
.radio-icon { width: 22px; height: 22px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; scale: .6; }
.radio-btn.is-playing .sound-icon { opacity: 0; scale: .6; }
.radio-btn.is-playing .radio-icon { opacity: 1; scale: 1; }
.ri-tip { fill: currentColor; stroke: none; }
.ri-wave { opacity: 0; }
.radio-eq { /* three tiny bars under the speaker while the radio plays */
  position: absolute; left: 50%; bottom: 5px; translate: -50% 0;
  display: flex; align-items: flex-end; gap: 2px; height: 5px; opacity: 0; transition: opacity .3s;
}
.radio-eq i { width: 2px; height: 100%; border-radius: 1px; background: currentColor; transform-origin: bottom; }
.radio-btn.is-playing .radio-eq { opacity: 1; }
.radio-btn.is-playing .radio-eq i { animation: radio-eq .9s ease-in-out infinite alternate; }
.radio-btn.is-playing .radio-eq i:nth-child(2) { animation-duration: .6s; animation-delay: -.3s; }
.radio-btn.is-playing .radio-eq i:nth-child(3) { animation-duration: .75s; animation-delay: -.5s; }
.radio-btn.is-playing .ri-wave { animation: radio-wave 1.6s ease-out infinite; }
.radio-btn.is-playing .ri-wave--2 { animation-delay: .25s; }
.radio-btn.is-playing::after { /* a soft ring breathing out of the button */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--cream);
  animation: radio-ring 2.4s ease-out infinite; pointer-events: none;
}
@keyframes radio-eq { from { scale: 1 .25; } to { scale: 1 1; } }
@keyframes radio-wave { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes radio-ring { 0% { opacity: .55; scale: 1; } 100% { opacity: 0; scale: 1.35; } }

@media (min-width: 1024px) { .radio-btn { width: 40px; height: 40px; border-radius: 12px; } }

.radio-hub {
  --ox: 50%; --oy: 100%; /* where it grows from: the button (set by radio.js) */
  position: fixed; z-index: 70; left: var(--hub-x, 16px); top: var(--hub-y, auto); bottom: var(--hub-b, auto);
  width: min(360px, calc(100vw - 32px)); max-height: calc(100svh - 120px); overflow: auto;
  display: grid; gap: 14px; padding: 18px;
  border: 1px solid var(--line-2); border-radius: 26px;
  background: radial-gradient(120% 80% at 50% 0%, rgb(10 31 69 / .96), rgb(var(--deep-rgb) / .97) 70%);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgb(var(--cream-rgb) / .08), 0 40px 80px -30px rgb(0 0 0 / .9), 0 0 0 1px rgb(0 0 0 / .3);
  color: var(--cream);
  clip-path: circle(0 at var(--ox) var(--oy));
  transition: clip-path .7s var(--ease-out), translate .7s var(--ease-out);
  translate: 0 10px;
  scrollbar-width: none;
}
.radio-hub[hidden] { display: grid !important; visibility: hidden; pointer-events: none; } /* kept laid out so it can animate both ways */
.radio-hub.is-open { clip-path: circle(150% at var(--ox) var(--oy)); translate: 0 0; visibility: visible; }
.radio-hub.is-closing { transition-duration: .45s, .45s; transition-timing-function: cubic-bezier(.7, 0, .84, 0); }
.radio-hub > * { opacity: 0; translate: 0 14px; transition: opacity .5s var(--ease), translate .7s var(--ease-out); }
.radio-hub.is-open > * { opacity: 1; translate: 0 0; transition-delay: calc(.08s + var(--s, 0) * .05s); }

.rh-head { display: flex; align-items: center; justify-content: space-between; }
.rh-title { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.rh-freq { font-variant-numeric: tabular-nums; letter-spacing: .04em; text-transform: none; color: var(--fg-2); }
.rh-live { /* red: radio off · green: on air */
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff5b52; box-shadow: 0 0 8px rgb(255 91 82 / .6); transition: background-color .4s, box-shadow .4s;
}
.radio-hub.is-playing .rh-live { background: #3ee08a; box-shadow: 0 0 0 0 rgb(62 224 138 / .6), 0 0 8px rgb(62 224 138 / .7); animation: rh-live 1.6s ease-out infinite; }
@keyframes rh-live { 70% { box-shadow: 0 0 0 7px rgb(62 224 138 / 0), 0 0 8px rgb(62 224 138 / .7); } 100% { box-shadow: 0 0 0 0 rgb(62 224 138 / 0), 0 0 8px rgb(62 224 138 / .7); } }
.rh-close { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--fg-2); transition: background-color .2s, color .2s, rotate .4s var(--ease-out); }
.rh-close:hover { background: var(--surface-2); color: var(--cream); rotate: 90deg; }
.rh-close svg { width: 16px; height: 16px; }

.rh-scope { position: relative; display: grid; place-items: center; height: 172px; margin: -4px -8px 0; }
.rh-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rh-star { position: relative; width: 26px; height: 35px; color: var(--cream); filter: drop-shadow(0 0 10px rgb(var(--cream-rgb) / .55)); transition: scale .12s; }
.rh-orbit { position: absolute; width: 150px; height: 150px; border-radius: 50%; border: 1px dashed rgb(var(--cream-rgb) / .12); animation: rh-spin 30s linear infinite; }
.rh-orbit i { position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 10px var(--cream); }
.radio-hub.is-playing .rh-orbit { animation-duration: 6s; }
@keyframes rh-spin { to { rotate: 360deg; } }

.rh-now { text-align: center; }
.rh-station { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.rh-track { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 6px; margin-top: 4px; }
.rh-song { min-width: 0; display: grid; }
.rh-song b, .rh-song span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rh-song b { font-size: 16px; font-weight: 700; }
.rh-song span { font-size: 13px; color: var(--fg-2); }
.rh-song.is-new { animation: rh-song .55s var(--ease-out); }
@keyframes rh-song { from { opacity: 0; translate: 0 8px; filter: blur(4px); } }
.rh-skip { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--fg-2); transition: background-color .2s, color .2s, translate .2s; }
.rh-skip svg { width: 16px; height: 16px; rotate: 90deg; }
.rh-skip--next svg { rotate: -90deg; }
.rh-skip:hover { background: var(--surface-2); color: var(--cream); }
.rh-skip:active { translate: -2px 0; }
.rh-skip--next:active { translate: 2px 0; }

.rh-stations { --i: 0; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.rh-stations button { position: relative; z-index: 1; height: 34px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--fg-2); transition: color .3s; }
.rh-stations button[aria-checked="true"] { color: var(--navy); }
.rh-pill { /* slides under the chosen station with a little overshoot */
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 10px;
  background: var(--cream); box-shadow: 0 6px 18px -8px rgb(var(--cream-rgb) / .7);
  translate: calc(var(--i) * 100%) 0; transition: translate .55s cubic-bezier(.34, 1.4, .64, 1);
}

.rh-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--fg-2); }
.rh-switch { position: relative; width: 48px; height: 28px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); transition: background-color .3s, border-color .3s; }
.rh-switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--fg-2); transition: translate .45s cubic-bezier(.34, 1.56, .64, 1), background-color .3s, width .2s; }
.rh-switch:active i { width: 24px; }
.rh-switch[aria-checked="true"] { background: var(--cream); border-color: var(--cream); }
.rh-switch[aria-checked="true"] i { translate: 20px 0; background: var(--navy); }
.rh-switch[aria-checked="true"]:active i { translate: 16px 0; }

.rh-volume { --v: 60%; display: grid; grid-template-columns: auto 1fr 30px; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--fg-2); }
.rh-volume output { text-align: right; font-size: 12.5px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.rh-volume input { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
.rh-volume input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--cream) var(--v), rgb(var(--cream-rgb) / .16) var(--v)); }
.rh-volume input::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--cream) var(--v), rgb(var(--cream-rgb) / .16) var(--v)); }
.rh-volume input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 4px rgb(var(--cream-rgb) / .14), 0 0 14px rgb(var(--cream-rgb) / .5); transition: scale .2s; }
.rh-volume input::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 4px rgb(var(--cream-rgb) / .14), 0 0 14px rgb(var(--cream-rgb) / .5); }
.rh-volume input:active::-webkit-slider-thumb { scale: 1.25; }

.radio-hub :focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }


/* Client space: the hub as wet, glossy glass. Light blur so the sky reads through like water;
   a big gloss dome on top, a bright rim, a pool of light at the bottom and a slow sheen
   gliding across. Night is tinted Alturas navy, day the beige. */
.radio-hub {
  background:
    radial-gradient(130% 62% at 50% -12%, rgb(255 255 255 / .42), rgb(255 255 255 / .12) 36%, transparent 60%),
    radial-gradient(70% 38% at 82% 108%, rgb(120 170 255 / .30), transparent 70%),
    radial-gradient(45% 30% at 8% 78%, rgb(255 255 255 / .10), transparent 70%),
    linear-gradient(180deg, rgb(10 31 69 / .26), rgb(0 14 37 / .40));
  -webkit-backdrop-filter: blur(9px) saturate(200%) brightness(1.08) contrast(1.05);
  backdrop-filter: blur(9px) saturate(200%) brightness(1.08) contrast(1.05);
  border: 1px solid rgb(255 255 255 / .26);
  box-shadow:
    inset 0 1.5px 0 rgb(255 255 255 / .6),
    inset 0 22px 34px -22px rgb(255 255 255 / .38),
    inset 0 -14px 28px -14px rgb(140 185 255 / .4),
    inset 0 0 0 1px rgb(255 255 255 / .05),
    0 30px 70px -28px rgb(0 0 0 / .6);
}
.radio-hub::before { /* the sheen sliding across the glass */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(112deg, transparent 32%, rgb(255 255 255 / .16) 44%, rgb(255 255 255 / .04) 50%, transparent 60%) 0 0 / 260% 100%;
  animation: hub-sheen 9s ease-in-out infinite;
}
@keyframes hub-sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
:root[data-mode="day"] .radio-hub {
  background:
    radial-gradient(130% 62% at 50% -12%, rgb(255 255 255 / .75), rgb(255 255 255 / .25) 36%, transparent 60%),
    radial-gradient(70% 38% at 82% 108%, rgb(255 238 212 / .55), transparent 70%),
    radial-gradient(45% 30% at 8% 78%, rgb(255 255 255 / .25), transparent 70%),
    linear-gradient(180deg, rgb(239 224 205 / .26), rgb(230 212 189 / .42));
  border-color: rgb(255 255 255 / .65);
  box-shadow:
    inset 0 1.5px 0 rgb(255 255 255 / .95),
    inset 0 22px 34px -22px rgb(255 255 255 / .7),
    inset 0 -14px 28px -14px rgb(255 236 205 / .7),
    0 30px 70px -28px rgb(0 14 37 / .35);
}
:root[data-mode="day"] .radio-hub::before { background-image: linear-gradient(112deg, transparent 32%, rgb(255 255 255 / .45) 44%, rgb(255 255 255 / .1) 50%, transparent 60%); }
@media (prefers-reduced-motion: reduce) { .radio-hub::before { animation: none; } }

/* ==========================================================================
   Plan your content (plan.js): board, calendar and notes on one set of items
   ========================================================================== */
.c-cream { --pc: #efe0cd; } .c-sky { --pc: #8fc1ff; } .c-mint { --pc: #8fe3c0; } .c-sun { --pc: #ffd27a; } .c-rose { --pc: #ff9fb1; } .c-violet { --pc: #b9a6ff; }
:root[data-mode="day"] .c-cream { --pc: #c4a57d; } :root[data-mode="day"] .c-sky { --pc: #4f8fdc; } :root[data-mode="day"] .c-mint { --pc: #3fae84; }
:root[data-mode="day"] .c-sun { --pc: #e0a530; } :root[data-mode="day"] .c-rose { --pc: #e06a84; } :root[data-mode="day"] .c-violet { --pc: #8470dc; }
.plan-tabs button { padding: 7px 16px; }
.plan-hint { font-size: 12px; color: var(--text-3); }
.content.plan { display: grid; gap: 14px; align-content: start; }

/* Quick capture */
.capture { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border: 1px solid var(--line-2); border-radius: 18px;
  background: var(--panel); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.cap-ic { font-size: 16px; color: var(--accent); }
.cap-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.cap-in { all: unset; font: inherit; font-size: 16px; color: var(--text); width: 100%; }
.cap-in::placeholder { color: var(--text-3); }
.cap-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cap-chips:empty { display: none; }
.cap-chip { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-dim); color: var(--text-2); }
.cap-search { width: 190px; flex: none; padding: 8px 12px; border-radius: 12px; }
.plan-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.plan-tools .plan-hint { margin-left: auto; }
.pl-month { font-size: 16px; min-width: 150px; text-align: center; }

/* Board */
.pboard-wrap { position: relative; overflow: auto; height: calc(100vh - 250px); min-height: 380px; border: 1px solid var(--line); border-radius: 20px;
  background: radial-gradient(circle at 1px 1px, rgb(239 224 205 / .14) 1px, transparent 1.4px) 0 0 / 22px 22px, rgb(0 9 24 / .28); }
:root[data-mode="day"] .pboard-wrap { background: radial-gradient(circle at 1px 1px, rgb(0 14 37 / .16) 1px, transparent 1.4px) 0 0 / 22px 22px, rgb(248 241 231 / .45); }
.pboard { position: relative; }
/* Tidy up / Clear board: pinned to the board's top right corner, above the cards, while it scrolls */
.pboard-frame { position: relative; min-width: 0; }
.pboard-corner { position: absolute; z-index: 6; top: 12px; right: 14px; display: flex; gap: 8px; }
/* Full screen: the board covers the whole window; its editor and dialogs still open above it */
.pboard-frame.full { position: fixed; inset: 0; z-index: 47; padding: 12px; box-sizing: border-box; background: var(--bg); }
.pboard-frame.full .pboard-wrap { height: 100%; min-height: 0; }
.pboard-frame.full .pboard-corner, .pboard-frame.full .pl-boards { margin: 12px; } /* the same spots, inside the padding */
body.board-full .pl-drawer { z-index: 48; }
body.board-full #tabs { display: none; } /* the phone tab bar sits outside the app's layer, so it can't be covered */
.pboard-corner .pl-full { opacity: 1; display: inline-flex; align-items: center; gap: 6px; }
.pl-full svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Faded while you work on the board, full strength on hover (phones, with no hover, always show them) */
.pboard-corner .btn, .theme-alturas .pboard-corner .btn:disabled { opacity: .45; pointer-events: auto; transition: opacity .25s, filter .2s, transform .15s, box-shadow .2s; }
.pboard-corner:hover .btn, .theme-alturas .pboard-corner:hover .btn:disabled, .pboard-corner .btn:focus-visible { opacity: 1; }
.theme-alturas .pboard-corner .btn:disabled { cursor: not-allowed; filter: none; transform: none; }
@media (hover: none) { .pboard-corner .btn { opacity: 1; } }
.plinks { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.plink { fill: none; stroke: var(--text-3); stroke-width: 1.6; stroke-linecap: round; opacity: .7; }
.plink.temp { stroke: var(--accent); stroke-dasharray: 5 6; opacity: 1; }
.pcard { position: absolute; width: 232px; box-sizing: border-box; display: grid; gap: 6px; padding: 10px 14px 12px; border-radius: 16px;
  background: var(--panel); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line-2); border-top: 4px solid var(--pc); box-shadow: 0 10px 26px -14px rgb(0 0 0 / .6);
  cursor: grab; user-select: none; -webkit-user-select: none; transition: box-shadow .2s, transform .2s, opacity .2s; }
.pcard:hover { box-shadow: 0 16px 34px -14px rgb(0 0 0 / .7); }
.pcard.open { outline: 2px solid var(--pc); outline-offset: 2px; }
.pcard.dragging { cursor: grabbing; transform: scale(1.03) rotate(-.6deg); z-index: 5; box-shadow: 0 26px 50px -18px rgb(0 0 0 / .75); transition: none; }
.pcard.target { outline: 2px dashed var(--accent); outline-offset: 3px; }
.pcard.dim { opacity: .28; }
.pcard.t-note { background: linear-gradient(transparent 23px, var(--line) 24px) 0 34px / 100% 24px, var(--panel); }
.pc-top { display: flex; align-items: center; gap: 6px; min-height: 18px; }
.pc-grip { color: var(--text-3); font-size: 13px; letter-spacing: -1px; cursor: grab; touch-action: none; padding: 2px 2px 2px 0; }
.pc-kind, .pc-fmt { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.pc-fmt { padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--pc) 24%, transparent); color: var(--text); }
.pc-sp { flex: 1; }
.pc-star { color: #ffd27a; }
.pc-title { font-size: 15px; line-height: 1.3; word-break: break-word; }
.pc-body { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--text-2); word-break: break-word; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 11px; color: var(--text-3); }
.pc-meta:empty { display: none; }
.pc-date { color: var(--text); font-weight: 600; }
.pc-status { font-weight: 700; color: var(--pc); }
.pc-link { position: absolute; right: -8px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; box-sizing: border-box;
  background: var(--bg); border: 2px solid var(--pc); cursor: crosshair; touch-action: none; opacity: 0; transition: opacity .2s, transform .2s; }
.pcard:hover .pc-link, .pcard.open .pc-link { opacity: 1; }
.pc-link:hover { transform: scale(1.3); }
@media (hover: none) { .pc-link { opacity: .9; } }
.pboard-empty { position: absolute; left: 40px; top: 40px; max-width: 460px; display: grid; gap: 10px; color: var(--text-2); }
.pboard-empty b { font-size: 18px; color: var(--text); }
.spark-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.spark { all: unset; cursor: pointer; display: grid; gap: 4px; padding: 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--accent-dim); transition: transform .15s, border-color .15s; }
.spark:hover { transform: translateY(-2px); border-color: var(--text-3); }
.spark b { font-size: 14px; } .spark span { font-size: 12px; color: var(--text-3); }

/* Calendar */
.pl-cal { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
.pl-calmain { display: grid; gap: 16px; }
.theme-alturas .mgrid { border-radius: 18px; }
.theme-alturas .mgrid .dw { background: var(--panel-2); }
.theme-alturas .mgrid .dc { background: var(--panel); }
.theme-alturas .mgrid .dc.today .dn { color: var(--bg); }
.pl-dc { position: relative; min-height: 104px; transition: background-color .15s; }
.pl-dc.over, .pl-rail.over { outline: 2px dashed var(--accent); outline-offset: -3px; }
.pl-chip { font-size: 11.5px; line-height: 1.3; padding: 3px 7px; border-radius: 7px; background: color-mix(in srgb, var(--pc, var(--text-3)) 18%, transparent);
  border-left: 3px solid var(--pc, var(--text-3)); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-chip i { font-style: normal; font-weight: 700; opacity: .7; margin-right: 4px; }
.pl-chip.st-posted { opacity: .55; text-decoration: line-through; }
.pl-chip.proj { --pc: var(--text-3); opacity: .85; }
.pl-chip.dragging { opacity: .4; }
.pl-add { all: unset; position: absolute; top: 4px; right: 5px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; cursor: pointer;
  font-size: 16px; color: var(--text-2); opacity: 0; transition: opacity .15s, background-color .15s; }
.pl-dc:hover .pl-add { opacity: 1; }
.pl-add:hover { background: var(--accent-dim); }
@media (hover: none) { .pl-add { opacity: .55; } }
.pl-rail h3 span, .pl-upcoming h3 span { font-weight: 700; color: var(--text-2); }
.pl-railist { display: grid; gap: 6px; }
.pl-rail .plan-hint { margin: 10px 0 0; }
.pl-dot { all: unset; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--pc); box-sizing: border-box; }
button.pl-dot { width: 22px; height: 22px; cursor: pointer; border: 2px solid transparent; box-shadow: inset 0 0 0 2px var(--panel-solid, #061735); }
button.pl-dot.on { border-color: var(--text); }

/* Notes */
.pl-notes { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.pl-nlist { display: grid; gap: 10px; max-height: calc(100vh - 230px); overflow: auto; }
.pl-ntpl { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-nlist .row { gap: 10px; }
.pl-nlist .row.on { background: var(--accent-dim); }
.pl-nlist .row .side { font-size: 11px; color: var(--text-3); }
.pl-nback { display: none; }

/* The editor (side panel and Notes page) */
.pl-drawer { position: fixed; z-index: 40; top: 14px; right: 14px; bottom: 14px; width: min(460px, calc(100vw - 28px)); overflow: auto; padding: 18px; box-sizing: border-box;
  border-radius: 24px; border: 1px solid var(--line-2); background: var(--panel); -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 30px 80px -30px rgb(0 0 0 / .7); animation: pl-in .35s cubic-bezier(.16, 1, .3, 1); }
:root[data-mode="day"] .pl-drawer { background: rgb(248 241 231 / .86); }
@keyframes pl-in { from { opacity: 0; translate: 24px 0; } }
.ped { display: grid; gap: 14px; }
.ped-top { display: flex; align-items: center; gap: 10px; }
.ped-star { all: unset; cursor: pointer; font-size: 20px; color: var(--text-3); transition: color .2s, transform .2s; }
.ped-star.on { color: #ffd27a; }
.ped-star:hover { transform: scale(1.15); }
.ped-saved { margin-left: auto; font-size: 11.5px; color: var(--text-3); }
.ped-title { all: unset; font: inherit; font-size: 22px; font-weight: 700; color: var(--text); width: 100%; }
.ped-title::placeholder { color: var(--text-3); }
.ped-sec { display: grid; gap: 6px; }
.ped-sec > label, .ped-grid label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.ped-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.ped-grid .field:last-child { grid-column: 1 / -1; }
.ped-grid .field { margin: 0; }
.ped-colors { display: flex; gap: 6px; padding: 4px 0; }
.ped-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ped-count { font-size: 11.5px; color: var(--text-3); }
.ped-body { min-height: 150px; line-height: 1.55; }
.ped.full .ped-body { min-height: 42vh; }
.ped-checks { display: grid; gap: 4px; }
.ped-checks:empty { display: none; }
.ped-progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 4px; }
.ped-progress i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .3s; }
.ped-ck { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.ped-ck input { accent-color: var(--accent); width: 16px; height: 16px; }
.ped-ck input:checked + span { text-decoration: line-through; color: var(--text-3); }
.ped-refs { display: grid; gap: 6px; }
.ped-refs:empty { display: none; }
.ped-ref { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); }
.ped-ref img, .ped-refic { flex: none; width: 64px; height: 36px; border-radius: 8px; object-fit: cover; }
.ped-refic { display: grid; place-items: center; background: var(--accent-dim); font-size: 12px; font-weight: 800; color: var(--text-2); }
.ped-ref a { flex: 1; min-width: 0; display: grid; color: inherit; text-decoration: none; }
.ped-ref a b { font-size: 13px; }
.ped-ref a span { font-size: 11.5px; color: var(--text-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ped-tags { align-items: center; }
.ped-tagin { all: unset; font: inherit; font-size: 12.5px; color: var(--text); min-width: 90px; padding: 4px 6px; }
.ped-linked { display: inline-flex; align-items: center; gap: 6px; padding-right: 6px; cursor: default; }
.ped-linked b { cursor: pointer; font-weight: 600; }
.ped-linked button { all: unset; cursor: pointer; opacity: .6; font-size: 11px; }
.ped-linked button:hover { opacity: 1; }
.ped-connect { width: auto; max-width: 100%; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; }
.ped-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.ped-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); }

@media (max-width: 1100px) {
  .pl-cal { grid-template-columns: 1fr; }
  .plan-tools .plan-hint { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 760px) {
  .plan-tabs { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
  .plan-tabs button { text-align: center; }
  .capture { flex-wrap: wrap; }
  .cap-search { width: 100%; }
  .pboard-wrap { height: calc(100dvh - 330px); border-radius: 16px; }
  .pl-notes { grid-template-columns: 1fr; }
  .pl-notes.has-note .pl-nback { display: inline-flex; justify-self: start; }
  .pl-nlist { max-height: none; }
  .pl-dc { min-height: 70px; }
  .pl-chip { font-size: 10px; padding: 2px 4px; }
  .pl-chip i { display: none; }
  .pl-drawer { top: 8dvh; right: 0; bottom: 0; left: 0; width: auto; border-radius: 24px 24px 0 0; padding-bottom: calc(env(safe-area-inset-bottom) + 18px); }
  @keyframes pl-in { from { opacity: 0; translate: 0 40px; } }
}
:root[data-mode="day"] .theme-alturas { --danger: #c0392f; }
/* Undo bar (Clear board) */
.pl-undo { position: fixed; z-index: 60; left: 50%; bottom: 24px; translate: -50% 0; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px;
  border-radius: 16px; border: 1px solid var(--line-2); background: var(--panel-solid); color: var(--text); font-size: 14px;
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / .7); animation: pl-up .35s cubic-bezier(.16, 1, .3, 1); transition: opacity .3s, translate .3s; }
.pl-undo.out { opacity: 0; translate: -50% 12px; }
@keyframes pl-up { from { opacity: 0; translate: -50% 16px; } }
@media (max-width: 760px) { .pl-undo { bottom: calc(var(--tabbar, 64px) + 16px); width: max-content; max-width: calc(100vw - 32px); } }
@media (prefers-reduced-motion: reduce) { .pl-drawer, .pl-undo { animation: none; } .pcard, .spark { transition: none; } }

/* ==========================================================================
   Client space buttons: liquid glass, the reference look. A clear capsule that only
   lightly blurs what's behind it, a thin rim that catches the light at the top-left
   and bottom-right and fades along the sides, and a faint inner glow. Same in day and
   night (only the text colour follows the theme); the main button is a touch brighter.
   ========================================================================== */
.theme-alturas .btn, .theme-alturas .chip, .theme-alturas .chat-pill, .theme-alturas .tip-q {
  --glass: rgb(255 255 255 / .04); --rim-a: rgb(255 255 255 / .75); --rim-b: rgb(255 255 255 / .55);
  position: relative; isolation: isolate; border-radius: 999px; color: var(--text); border: 0; background: var(--glass);
  -webkit-backdrop-filter: blur(6px) saturate(140%); backdrop-filter: blur(6px) saturate(140%);
  box-shadow: inset 0 0 14px rgb(255 255 255 / .06), inset 0 1px 1px rgb(255 255 255 / .18), 0 8px 24px -14px rgb(0 0 0 / .4);
  transition: background-color .2s, box-shadow .2s, transform .15s, opacity .25s;
}
/* the rim: a 1px gradient ring, bright at two corners, almost gone in between */
.theme-alturas .btn::before, .theme-alturas .chip::before, .theme-alturas .chat-pill::before, .theme-alturas .tip-q::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--rim-a), rgb(255 255 255 / .1) 30%, rgb(255 255 255 / .04) 55%, rgb(255 255 255 / .12) 75%, var(--rim-b));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.theme-alturas .btn { padding: 8px 16px; }
.theme-alturas .btn.sm { padding: 6px 13px; }
.theme-alturas .btn.icon { padding: 7px 10px; }
.theme-alturas .btn:hover, .theme-alturas .chip:hover, .theme-alturas .chat-pill:hover, .theme-alturas .tip-q:hover { --glass: rgb(255 255 255 / .09); transform: translateY(-1px); }
.theme-alturas .btn:active { transform: scale(.97); }
.theme-alturas .btn:disabled { opacity: .45; pointer-events: none; }
.theme-alturas .btn.primary, .theme-alturas .chip.on, .theme-alturas .chat-pill.on { --glass: rgb(255 255 255 / .1); --rim-a: rgb(255 255 255 / .95); --rim-b: rgb(255 255 255 / .7); font-weight: 700; }
.theme-alturas .btn.primary:hover { --glass: rgb(255 255 255 / .15); }
.theme-alturas .btn.ghost { --glass: rgb(255 255 255 / .02); --rim-a: rgb(255 255 255 / .45); --rim-b: rgb(255 255 255 / .3); color: var(--text-2); }
.theme-alturas .btn.danger { color: var(--danger); }
/* the earlier cream / navy main-button colours stay out, in every state and mode */
.theme-alturas .btn.primary, .theme-alturas .btn.primary:hover, :root[data-mode="day"] .theme-alturas .btn.primary, :root[data-mode="day"] .theme-alturas .btn.primary:hover,
:root[data-mode="day"] .theme-alturas .btn, :root[data-mode="day"] .theme-alturas .btn:hover, :root[data-mode="day"] .theme-alturas .chip.on {
  background: var(--glass); border: 0;
  box-shadow: inset 0 0 14px rgb(255 255 255 / .06), inset 0 1px 1px rgb(255 255 255 / .18), 0 8px 24px -14px rgb(0 0 0 / .4); }
/* Day: the same clear glass; a little more white so the rim still reads on a light sky */
:root[data-mode="day"] .theme-alturas .btn, :root[data-mode="day"] .theme-alturas .chip, :root[data-mode="day"] .theme-alturas .chat-pill, :root[data-mode="day"] .theme-alturas .tip-q {
  --glass: rgb(255 255 255 / .12); --rim-a: rgb(255 255 255 / .95); --rim-b: rgb(255 255 255 / .8); color: #000e25; border: 0;
  box-shadow: inset 0 0 14px rgb(255 255 255 / .12), inset 0 1px 1px rgb(255 255 255 / .35), 0 8px 22px -14px rgb(0 14 37 / .3); }
:root[data-mode="day"] .theme-alturas .btn:hover, :root[data-mode="day"] .theme-alturas .chip:hover { --glass: rgb(255 255 255 / .22); }
:root[data-mode="day"] .theme-alturas .btn.primary, :root[data-mode="day"] .theme-alturas .chip.on, :root[data-mode="day"] .theme-alturas .chat-pill.on { --glass: rgb(255 255 255 / .26); color: #000e25; }
:root[data-mode="day"] .theme-alturas .btn.ghost { --glass: rgb(255 255 255 / .07); color: rgb(0 14 37 / .75); }
:root[data-mode="day"] .theme-alturas .btn.danger { color: var(--danger); }
/* Night: main buttons keep the same light text as every other button (the old cream button had navy text) */
.theme-alturas .btn.primary, .theme-alturas .btn.primary:hover { color: var(--text); }

/* Day: clear glass disappears on a pale sky, so it gets a hairline and a soft shadow to hold its shape */
:root[data-mode="day"] .theme-alturas .btn, :root[data-mode="day"] .theme-alturas .btn:hover, :root[data-mode="day"] .theme-alturas .btn.primary, :root[data-mode="day"] .theme-alturas .btn.primary:hover,
:root[data-mode="day"] .theme-alturas .chip, :root[data-mode="day"] .theme-alturas .chip.on, :root[data-mode="day"] .theme-alturas .chat-pill, :root[data-mode="day"] .theme-alturas .tip-q {
  box-shadow: 0 0 0 1px rgb(0 14 37 / .07), inset 0 0 14px rgb(255 255 255 / .14), inset 0 1px 1px rgb(255 255 255 / .45), 0 8px 20px -12px rgb(0 14 37 / .35); }
@media (prefers-reduced-motion: reduce) { .theme-alturas .btn { transition: none; } .theme-alturas .btn:hover { transform: none; } }

/* Tips (plan.js): a tutorial phrase shows for a few seconds, then blurs away and folds into a "?"
   that pops in; hovering, focusing or tapping the "?" brings the phrase back as a bubble */
.tip { position: relative; display: inline-flex; align-items: center; vertical-align: middle; max-width: 100%; }
.tip-text { display: inline-block; max-width: 900px; overflow: hidden; vertical-align: middle;
  transition: max-width .7s cubic-bezier(.65, 0, .35, 1), opacity .45s ease, filter .45s ease, translate .6s ease; }
.tip-q { all: unset; display: none; place-items: center; width: 20px; height: 20px; border-radius: 50%; cursor: help; flex: none;
  font-size: 12px; font-weight: 800; line-height: 1; color: var(--text); border: 1px solid rgb(255 255 255 / .3);
  background: radial-gradient(90% 90% at 20% 10%, rgb(255 255 255 / .22), transparent 60%), radial-gradient(90% 100% at 0% 100%, rgb(120 175 255 / .35), transparent 65%),
    radial-gradient(90% 100% at 100% 0%, rgb(185 160 255 / .3), transparent 65%), var(--accent-dim);
  -webkit-backdrop-filter: blur(10px) saturate(180%); backdrop-filter: blur(10px) saturate(180%);
  box-shadow: 0 4px 10px -5px rgb(0 0 0 / .45); transition: transform .2s; }
.tip-q:hover, .tip-q:focus-visible { transform: scale(1.12); }
.tip.folding .tip-text { max-width: 0; opacity: 0; filter: blur(6px); translate: -10px 0; white-space: nowrap; }
.tip.folding .tip-q, .tip.folded .tip-q { display: grid; }
.tip.folding .tip-q { animation: tip-pop .55s .4s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes tip-pop { from { opacity: 0; transform: scale(.2) rotate(-90deg); } }
.tip.folded .tip-text { position: absolute; z-index: 30; top: calc(100% + 8px); left: -6px; width: max-content; max-width: min(320px, 80vw);
  padding: 9px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; color: var(--text); white-space: normal;
  background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: 0 14px 30px -12px rgb(0 0 0 / .6);
  opacity: 0; visibility: hidden; translate: 0 -4px; filter: none; transition: opacity .2s, translate .2s, visibility .2s; pointer-events: none; }
.plan-tools .tip.folded .tip-text { left: auto; right: -6px; }
.tip.folded:hover .tip-text, .tip.folded:focus-within .tip-text, .tip.folded.open .tip-text { opacity: 1; visibility: visible; translate: 0 0; }
.pl-railtip { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .tip-text, .tip.folding .tip-q { transition: none; animation: none; } }
.plan-tools .tip.folded { flex-basis: auto; margin-left: auto; }

/* Plan header: Board / Calendar / Notes centred on top; the title under it folds away after a few seconds */
.topbar.plan-top { display: grid; gap: 0; justify-items: stretch; }
.plan-tabsrow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; } /* tabs dead centre, the ? just after them */
.plan-tabsrow .plan-tabs { grid-column: 2; }
.plan-tabsrow .tip { grid-column: auto; justify-self: start; }
.plan-tabsend { grid-column: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.plan-inquiry { white-space: nowrap; }
.plan-tabsrow .tip.folded .tip-text { left: 50%; translate: -50% -4px; }
.plan-tabsrow .tip.folded:hover .tip-text, .plan-tabsrow .tip.folded:focus-within .tip-text, .plan-tabsrow .tip.folded.open .tip-text { translate: -50% 0; }
.plan-head { display: grid; grid-template-rows: 1fr; margin-top: 10px;
  transition: grid-template-rows .9s cubic-bezier(.65, 0, .35, 1), margin-top .9s cubic-bezier(.65, 0, .35, 1), opacity .6s ease, filter .6s ease, translate .9s cubic-bezier(.65, 0, .35, 1); }
.plan-head > div { overflow: hidden; min-height: 0; }
.plan-top.closed .plan-head { grid-template-rows: 0fr; margin-top: 0; opacity: 0; filter: blur(6px); translate: 0 -12px; }
@media (max-width: 760px) { .plan-tabsrow { grid-template-columns: 1fr auto; } .plan-tabsrow .plan-tabs { grid-column: 1; } .plan-tabsrow .tip { grid-column: 2; } }
@media (prefers-reduced-motion: reduce) { .plan-head { transition: none; } }

/* Board tab: the board fills the page down from the capture bar; + Idea / + Note / Idea sparks sit in its
   top left corner, faded like Tidy up and Clear board on the right until you hover them */
.content.plan-board { grid-template-rows: auto minmax(380px, 1fr); }
.plan-board .pboard-frame, .plan-board .pboard-wrap { height: 100%; }
.plan-board .pboard-wrap { min-height: 380px; }
.pboard-corner.left { right: auto; left: 14px; align-items: center; }
.pboard-corner.left .tip { margin-left: 2px; }
.pboard-corner.left .tip.folded .tip-text { left: -6px; right: auto; }
.pboard-empty { top: 72px; }
@media (max-width: 760px) {
  .plan-board .pboard-wrap { height: calc(100dvh - 300px); }
  .pboard-corner { top: 8px; gap: 6px; }
  .pboard-corner.left { left: 8px; } .pboard-corner:not(.left) { right: 8px; top: auto; bottom: 8px; }
}

/* The Plan bulb (the menu's icon) in the header's top left corner, in the buttons' glass */
.plan-bulb { grid-column: 1; grid-row: 1; justify-self: start; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--text);
  border: 1px solid rgb(255 255 255 / .16);
  background: radial-gradient(120% 90% at 15% 0%, rgb(255 255 255 / .16), transparent 55%), radial-gradient(80% 120% at 0% 100%, rgb(255 214 120 / .35), transparent 60%),
    radial-gradient(80% 120% at 100% 0%, rgb(185 160 255 / .24), transparent 60%), rgb(10 31 69 / .3);
  -webkit-backdrop-filter: blur(14px) saturate(190%); backdrop-filter: blur(14px) saturate(190%); box-shadow: 0 6px 18px -10px rgb(0 0 0 / .55); }
.plan-bulb svg { width: 22px; height: 22px; filter: drop-shadow(0 0 6px rgb(255 214 120 / .55)); }
:root[data-mode="day"] .plan-bulb { border-color: rgb(255 255 255 / .7);
  background: radial-gradient(120% 90% at 15% 0%, rgb(255 255 255 / .5), transparent 55%), radial-gradient(80% 120% at 0% 100%, rgb(255 205 110 / .45), transparent 60%),
    radial-gradient(80% 120% at 100% 0%, rgb(210 190 255 / .34), transparent 60%), rgb(248 241 231 / .5); }
@media (max-width: 760px) { .plan-tabsrow { grid-template-columns: auto 1fr auto; } .plan-tabsrow .plan-tabs { grid-column: 2; } .plan-tabsend { grid-column: 3; } .plan-inquiry span { display: none; } .plan-bulb { width: 36px; height: 36px; } }
.ped-kind { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.ped-head { display: flex; align-items: center; gap: 10px; }
.ped-head .ped-title { flex: 1; min-width: 0; }
.ped-head [data-board] { flex: none; }
.ped-top .ped-saved { margin-left: auto; }


/* ---------- Goals (plan.js) ---------- */
.g-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 2fr); gap: 10px; }
.g-summary > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--panel);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.g-summary b { font-size: 22px; } .g-summary span { font-size: 12px; color: var(--text-3); }
.g-summary .ok b { color: #5fd39a; } .g-summary .behind b { color: #ffb35c; } .g-summary .done b { color: var(--text); }
.g-summary .next b { font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.g-card { display: grid; gap: 12px; cursor: pointer; border-top: 3px solid var(--pc); transition: transform .15s, box-shadow .2s; }
.g-card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -16px rgb(0 0 0 / .55); }
.g-top { display: flex; align-items: center; gap: 14px; }
.g-main { display: grid; gap: 3px; min-width: 0; }
.g-main b { font-size: 15.5px; line-height: 1.3; }
.g-count { font-size: 13px; font-weight: 700; color: var(--text-2); }
.g-meta { font-size: 12px; color: var(--text-3); }
.g-pace { font-style: normal; font-weight: 700; }
.g-ok .g-pace, .g-pace.g-ok { color: #5fd39a; } .g-behind .g-pace, .g-pace.g-behind { color: #ffb35c; } .g-late .g-pace, .g-pace.g-late { color: var(--danger); }
.g-done .g-pace, .g-pace.g-done { color: var(--pc, var(--text)); }
:root[data-mode="day"] .g-ok .g-pace, :root[data-mode="day"] .g-pace.g-ok, :root[data-mode="day"] .g-summary .ok b { color: #1f9a62; }
:root[data-mode="day"] .g-behind .g-pace, :root[data-mode="day"] .g-pace.g-behind, :root[data-mode="day"] .g-summary .behind b { color: #c2700f; }
.g-ring { flex: none; }
.g-ring .g-track { fill: none; stroke: var(--line); stroke-width: 6; }
.g-ring .g-fill { fill: none; stroke: var(--pc, var(--accent)); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.16, 1, .3, 1); }
.g-ring text { fill: var(--text); font-size: 14px; font-weight: 800; font-family: inherit; }
.g-done .g-ring .g-fill { stroke: #5fd39a; }
.g-quick { display: flex; gap: 6px; align-items: center; }
.g-quick .btn.icon { min-width: 18px; justify-content: center; font-size: 15px; }
.g-next { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.g-next input { width: 16px; height: 16px; accent-color: var(--accent); }
.g-note { font-size: 12px; color: var(--text-3); line-height: 1.45; }
.g-spark { width: 100%; height: 44px; display: block; }
.g-spark polyline { fill: none; stroke: var(--pc, var(--accent)); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.goal-ed .g-spark polyline { stroke: var(--accent); }
.g-hero { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 16px; background: var(--accent-dim); }
.g-hero > div { display: grid; gap: 4px; }
.g-hero .g-count { font-size: 18px; color: var(--text); }
.g-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.g-metric { all: unset; cursor: pointer; display: grid; gap: 3px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-2); transition: background-color .2s, border-color .2s; }
.g-metric b { font-size: 13px; } .g-metric span { font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.g-metric:hover { background: var(--accent-dim); }
.g-metric.on { background: var(--accent-dim); border-color: var(--text-2); }
.g-empty { display: grid; gap: 10px; }
.g-empty b { font-size: 18px; } .g-empty > span { color: var(--text-2); }
.pl-chip.goal { border-left-style: double; border-left-width: 4px; font-weight: 700; }
@media (max-width: 1100px) { .g-summary { grid-template-columns: repeat(4, 1fr); } .g-summary .next { grid-column: 1 / -1; } }
@media (max-width: 760px) { .g-summary { grid-template-columns: repeat(2, 1fr); } .g-metrics { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .g-ring .g-fill, .g-card { transition: none; } }

/* ==========================================================================
   Info bubbles in the same liquid glass as the buttons: the "?" tip bubbles,
   the pop-up messages (toast), the Undo bar and the quick-capture chips.
   A touch more blur than a button, so their text stays easy to read.
   ========================================================================== */
.theme-alturas .tip.folded .tip-text, .theme-alturas .toast, .theme-alturas .pl-undo, .theme-alturas .cap-chip {
  --glass: rgb(255 255 255 / .06); --rim-a: rgb(255 255 255 / .7); --rim-b: rgb(255 255 255 / .45);
  isolation: isolate; color: var(--text); border: 0; background: var(--glass);
  -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%);
  box-shadow: inset 0 0 16px rgb(255 255 255 / .06), inset 0 1px 1px rgb(255 255 255 / .16), 0 14px 34px -16px rgb(0 0 0 / .55);
}
.theme-alturas .tip.folded .tip-text::before, .theme-alturas .toast::before, .theme-alturas .pl-undo::before, .theme-alturas .cap-chip::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--rim-a), rgb(255 255 255 / .1) 30%, rgb(255 255 255 / .04) 55%, rgb(255 255 255 / .12) 75%, var(--rim-b));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.theme-alturas .tip.folded .tip-text { border-radius: 16px; }
.theme-alturas .toast, .theme-alturas .pl-undo { border-radius: 999px; }
.theme-alturas .cap-chip { position: relative; color: var(--text-2); }
:root[data-mode="day"] .theme-alturas .tip.folded .tip-text, :root[data-mode="day"] .theme-alturas .toast,
:root[data-mode="day"] .theme-alturas .pl-undo, :root[data-mode="day"] .theme-alturas .cap-chip {
  --glass: rgb(255 255 255 / .28); --rim-a: rgb(255 255 255 / .95); --rim-b: rgb(255 255 255 / .8); color: #000e25;
  box-shadow: 0 0 0 1px rgb(0 14 37 / .07), inset 0 0 16px rgb(255 255 255 / .16), inset 0 1px 1px rgb(255 255 255 / .5), 0 14px 30px -16px rgb(0 14 37 / .35);
}

/* ==========================================================================
   Every section in liquid glass, like the buttons: cards, the Goals summary, the
   capture bar, board cards, the calendar, the side panel, pop-up windows, tab and
   switch groups. Clear glass with a light blur, the thin rim bright at two corners,
   a faint inner glow. Panels you read a lot in (side panel, pop-ups) get more blur.
   Colour labels stay as a thin line along the top of board cards and goal cards.
   ========================================================================== */
.theme-alturas .card, .theme-alturas .g-summary > div, .theme-alturas .capture, .theme-alturas .pcard, .theme-alturas .pl-drawer,
.theme-alturas .modal, .theme-alturas .seg, .theme-alturas .mode-switch, .theme-alturas .g-metric, .theme-alturas .spark,
.theme-alturas .ped-ref, .theme-alturas .g-hero, .theme-alturas .mgrid {
  --glass: rgb(255 255 255 / .035); --rim-a: rgb(255 255 255 / .55); --rim-b: rgb(255 255 255 / .35); --edge: 0 0 transparent;
  position: relative; isolation: isolate; border: 0; background: var(--glass);
  -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
  box-shadow: var(--edge), inset 0 0 22px rgb(255 255 255 / .04), inset 0 1px 1px rgb(255 255 255 / .12), 0 18px 40px -24px rgb(0 0 0 / .55);
}
.theme-alturas .card::before, .theme-alturas .g-summary > div::before, .theme-alturas .capture::before, .theme-alturas .pcard::before, .theme-alturas .pl-drawer::before,
.theme-alturas .modal::before, .theme-alturas .seg::before, .theme-alturas .mode-switch::before, .theme-alturas .g-metric::before, .theme-alturas .spark::before,
.theme-alturas .ped-ref::before, .theme-alturas .g-hero::before, .theme-alturas .mgrid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--rim-a), rgb(255 255 255 / .08) 28%, rgb(255 255 255 / .03) 55%, rgb(255 255 255 / .1) 78%, var(--rim-b));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
/* colour labels: a thin line of the card's colour along the top edge */
.theme-alturas .pcard, .theme-alturas .g-card { --edge: inset 0 3px 0 var(--pc); }
.theme-alturas .pcard.t-note { background: linear-gradient(transparent 23px, rgb(255 255 255 / .06) 24px) 0 34px / 100% 24px, var(--glass); }
/* hover and selected states stay glass */
.theme-alturas .g-metric:hover, .theme-alturas .spark:hover { --glass: rgb(255 255 255 / .08); }
.theme-alturas .g-metric.on { --glass: rgb(255 255 255 / .1); --rim-a: rgb(255 255 255 / .9); }
.theme-alturas .seg button.on, .theme-alturas .mode-switch button.on { background: rgb(255 255 255 / .1); box-shadow: inset 0 1px 1px rgb(255 255 255 / .2); }
/* the side panel and pop-ups: same glass, more blur so their text stays easy to read */
.theme-alturas .pl-drawer, .theme-alturas .modal { --glass: rgb(6 23 53 / .35); -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%); }
/* calendar: clear cells with hairlines instead of filled boxes */
.theme-alturas .mgrid { gap: 0; overflow: hidden; }
.theme-alturas .mgrid .dw { background: transparent; box-shadow: inset 0 -1px 0 rgb(255 255 255 / .08); }
.theme-alturas .mgrid .dc { background: transparent; box-shadow: inset -1px -1px 0 rgb(255 255 255 / .06); }
.theme-alturas .mgrid .dc.out { background: rgb(0 0 0 / .08); }
/* the board itself: a glass pane (its rim is a plain edge, since it scrolls) */
.theme-alturas .pboard-wrap { border: 1px solid rgb(255 255 255 / .12); box-shadow: inset 1px 1px 0 rgb(255 255 255 / .1), inset 0 0 30px rgb(255 255 255 / .03); }

/* Day: whiter glass, a hairline so it holds its shape on the pale sky */
:root[data-mode="day"] .theme-alturas .card, :root[data-mode="day"] .theme-alturas .g-summary > div, :root[data-mode="day"] .theme-alturas .capture,
:root[data-mode="day"] .theme-alturas .pcard, :root[data-mode="day"] .theme-alturas .seg, :root[data-mode="day"] .theme-alturas .mode-switch,
:root[data-mode="day"] .theme-alturas .g-metric, :root[data-mode="day"] .theme-alturas .spark, :root[data-mode="day"] .theme-alturas .ped-ref,
:root[data-mode="day"] .theme-alturas .g-hero, :root[data-mode="day"] .theme-alturas .mgrid {
  --glass: rgb(255 255 255 / .2); --rim-a: rgb(255 255 255 / .95); --rim-b: rgb(255 255 255 / .75); border: 0;
  box-shadow: var(--edge), 0 0 0 1px rgb(0 14 37 / .06), inset 0 0 22px rgb(255 255 255 / .12), inset 0 1px 1px rgb(255 255 255 / .45), 0 18px 36px -24px rgb(0 14 37 / .35);
}
:root[data-mode="day"] .theme-alturas .pl-drawer, :root[data-mode="day"] .theme-alturas .modal {
  --glass: rgb(248 241 231 / .55); --rim-a: rgb(255 255 255 / .95); --rim-b: rgb(255 255 255 / .75); border: 0;
  box-shadow: 0 0 0 1px rgb(0 14 37 / .06), inset 0 1px 1px rgb(255 255 255 / .6), 0 30px 70px -30px rgb(0 14 37 / .45); }
:root[data-mode="day"] .theme-alturas .pcard.t-note { background: linear-gradient(transparent 23px, rgb(0 14 37 / .07) 24px) 0 34px / 100% 24px, var(--glass); }
:root[data-mode="day"] .theme-alturas .mgrid .dw { box-shadow: inset 0 -1px 0 rgb(0 14 37 / .08); }
:root[data-mode="day"] .theme-alturas .mgrid .dc { box-shadow: inset -1px -1px 0 rgb(0 14 37 / .06); }
:root[data-mode="day"] .theme-alturas .pboard-wrap { border-color: rgb(255 255 255 / .7); }
:root[data-mode="day"] .theme-alturas .seg button.on, :root[data-mode="day"] .theme-alturas .mode-switch button.on { background: rgb(255 255 255 / .55); }
/* Text fields (search, editor, forms): clear glass wells to match */
.theme-alturas .inp { background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .14); color: var(--text);
  -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / .18), inset 0 0 0 1px rgb(255 255 255 / .02); }
.theme-alturas .inp:focus { border-color: rgb(255 255 255 / .35); outline: none; }
.theme-alturas .inp::placeholder { color: var(--text-3); }
:root[data-mode="day"] .theme-alturas .inp { background: rgb(255 255 255 / .3); border-color: rgb(255 255 255 / .75); color: #000e25;
  box-shadow: 0 0 0 1px rgb(0 14 37 / .06), inset 0 1px 2px rgb(0 14 37 / .08); }
:root[data-mode="day"] .theme-alturas .inp:focus { border-color: rgb(0 14 37 / .25); }
@media (max-width: 1100px) { .plan-inquiry span:first-of-type { display: none; } }

/* Projects and Messages: the page's icon in a glass tile instead of the text title */
.topbar h1 .page-icon { display: grid; vertical-align: middle; }
.topbar h1:has(.page-icon) + .sub { margin-top: 8px; }
.page-icon svg { filter: none; color: var(--text); }

/* What we do (content strategy inquiry): each service as a glass tile with its icon */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.svc { all: unset; box-sizing: border-box; position: relative; isolation: isolate; cursor: pointer; display: grid; gap: 4px; align-content: start; padding: 12px; border-radius: 16px;
  background: rgb(255 255 255 / .035); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .2s, transform .15s; }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgb(255 255 255 / .5), rgb(255 255 255 / .08) 30%, rgb(255 255 255 / .03) 55%, rgb(255 255 255 / .1) 78%, rgb(255 255 255 / .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.svc:hover { background: rgb(255 255 255 / .07); transform: translateY(-1px); }
.svc.on { background: rgb(255 255 255 / .11); }
.svc.on::before { background: linear-gradient(135deg, rgb(255 255 255 / .95), rgb(255 255 255 / .2) 35%, rgb(255 255 255 / .1) 60%, rgb(255 255 255 / .75)); }
.svc-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; margin-bottom: 4px; color: var(--text); background: rgb(255 255 255 / .07); box-shadow: inset 0 1px 1px rgb(255 255 255 / .2); }
.svc-ic svg { width: 19px; height: 19px; }
.svc b { font-size: 13px; line-height: 1.25; }
.svc > span:not(.svc-ic) { font-size: 11.5px; line-height: 1.35; color: var(--text-3); }
.svc-tick { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-style: normal; font-weight: 800;
  color: var(--bg); background: var(--text); opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.svc.on .svc-tick { opacity: 1; transform: scale(1); }
:root[data-mode="day"] .svc { background: rgb(255 255 255 / .25); box-shadow: 0 0 0 1px rgb(0 14 37 / .06); }
:root[data-mode="day"] .svc.on { background: rgb(255 255 255 / .6); }
:root[data-mode="day"] .svc-ic { background: rgb(255 255 255 / .55); }

/* ---------- Uploads ---------- */
.src-tabs { display: flex; margin-bottom: 10px; }
.src-tabs button { flex: 1; text-align: center; }
.field .drop { display: flex; font-size: inherit; color: inherit; text-transform: none; letter-spacing: normal; font-weight: 400; margin: 0; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 14px; border: 1.5px dashed var(--line-2); border-radius: 14px; cursor: pointer; text-align: center; transition: border-color .2s var(--ease), background .2s var(--ease); }
.drop-icon { width: 34px; height: 34px; margin-bottom: 4px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.drop:hover .drop-icon, .drop.over .drop-icon { transform: translateY(-3px); }
.drop b { color: var(--text); font-size: 15px; }
.drop span { color: var(--text-3); font-size: 12.5px; }
.drop:hover, .drop.over { border-color: var(--accent); background: rgb(255 255 255 / .04); }
.u-list { display: grid; gap: 6px; margin-top: 8px; }
.u-row { display: grid; grid-template-columns: 48px 1fr auto 28px; align-items: center; gap: 10px; font-size: 13px; }
.u-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.u-size { color: var(--text-3); }
.u-bar { grid-column: 1 / -1; display: none; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.u-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.u-row.on .u-bar { display: block; }
.u-row.done .u-size::after { content: ' ✓'; color: var(--accent); }
.u-row.failed .u-size::after { content: ' failed'; color: #e57373; }
.files { display: grid; gap: 6px; margin: 4px 0 8px; }
.file { all: unset; cursor: pointer; display: flex; flex-direction: column; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.file span { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file small { color: var(--text-3); font-size: 12px; }
.file:hover { border-color: var(--line-2); }
.file-row { display: flex; align-items: center; gap: 6px; }
.file-row .file { flex: 1; min-width: 0; }

/* Paired night/day images (client editor icon): show the one matching the mode */
.icon-img.only-day, :root[data-mode="day"] .icon-img.only-night { display: none; }
:root[data-mode="day"] .icon-img.only-day { display: block; }

/* Client Messages and Projects: each chat or project sits in its own bubble, outlined by a faint glass line */
.theme-alturas .thread-list .rows, .theme-alturas .rows.bubbles { gap: 8px; }
.theme-alturas .thread-list .row, .theme-alturas .thread-list .row:last-child, .theme-alturas .thread-list .row:hover,
.theme-alturas .bubbles .row, .theme-alturas .bubbles .row:last-child, .theme-alturas .bubbles .row:hover {
  padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; background: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.theme-alturas .thread-list + .thread-list { margin-top: 18px; }

/* Unread badges: cream on navy at night, navy on cream by day, with a soft glow and pulse */
.theme-alturas .count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 700; background: #efe0cd; color: #000e25;
  box-shadow: 0 0 0 3px rgba(239, 224, 205, .18), 0 0 12px rgba(239, 224, 205, .45); animation: count-pulse 2.4s ease-in-out infinite; }
:root[data-mode="day"] .theme-alturas .count { background: #000e25; color: #efe0cd; box-shadow: 0 0 0 3px rgba(0, 14, 37, .12), 0 0 12px rgba(0, 14, 37, .3); }
.theme-alturas .thread-list .side .count { margin-top: 4px; }
@keyframes count-pulse { 50% { transform: scale(1.08); } }

/* Client progress bar: steps still to come stay clearly visible */
.theme-alturas .progress i:not(.on) { background: rgba(255, 255, 255, .38); box-shadow: inset 0 0 0 1px rgba(0, 14, 37, .08); }

/* project chat tabs: round icon inside each pill */
.theme-alturas .chat-pill { display: inline-flex; align-items: center; gap: 7px; padding-left: 5px; }
.theme-alturas .chat-pill .icon-img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; margin: 0; box-shadow: 0 2px 5px rgba(0, 14, 37, .28); }
.theme-alturas .st .icon-img { filter: drop-shadow(0 2px 3px rgba(0, 14, 37, .28)); }
.theme-alturas .thread-list .icon-img { filter: drop-shadow(0 2px 3px rgba(0, 14, 37, .28)); }
/* the owner's "Need your attention" number: deep amber so it reads on the pale day sky */
:root[data-mode="day"] .theme-alturas .tile.hot b { color: #a86a12; }
/* Owner Projects board: its cards sit in the stage columns (the content-plan board's .pcard is absolute and
   fixed-width). Columns stay side by side like Trello and the board scrolls sideways when they don't fit. */
.board { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 250px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x proximity; }
.board .col { scroll-snap-align: start; }
.col .pcard { position: relative; width: auto; min-width: 0; }
.col .pcard b { overflow-wrap: anywhere; }
.theme-alturas .col { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
:root[data-mode="day"] .theme-alturas .col { background: rgb(255 255 255 / .16); border-color: rgb(255 255 255 / .6); }
/* ---------- Sidebar: hide / show (☰), peek from the left edge while hidden ---------- */
.sidebar { transition: transform .35s var(--ease-out, ease), box-shadow .35s; }
.app { transition: grid-template-columns .35s var(--ease-out, ease); }
.sky { transition: left .35s var(--ease-out, ease); }
.side-toggle { position: fixed; z-index: 40; top: 16px; left: 210px; width: 34px; height: 34px; border-radius: 10px; border: 0; cursor: pointer;
  display: grid; place-content: center; gap: 4px; background: transparent; color: var(--text-2); transition: left .35s var(--ease-out, ease), background .2s; }
.side-toggle span { display: block; width: 16px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .25s; }
.side-toggle:hover { background: rgb(255 255 255 / .1); color: var(--text); }
:root[data-mode="day"] .theme-alturas .side-toggle:hover { background: rgb(0 14 37 / .06); }
.side-edge { position: fixed; z-index: 30; top: 0; bottom: 0; left: 0; width: 14px; display: none; }
body.side-closed .app { grid-template-columns: 0 1fr; }
body.side-closed .main { grid-column: 2; }
body.side-closed .sidebar { position: fixed; z-index: 35; top: 0; bottom: 0; left: 0; width: 252px; box-sizing: border-box; transform: translateX(-100%); }
body.side-closed.side-peek .sidebar { transform: none; box-shadow: 24px 0 60px -20px rgb(0 0 0 / .45); }
body.side-closed .sky { left: 0; }
body.side-closed .side-edge { display: block; }
body.side-closed .side-toggle { left: 14px; }
body.side-closed.side-peek .side-toggle { left: 210px; }
body.side-closed .main .topbar { padding-left: 64px; }
@media (max-width: 760px) { .side-toggle, .side-edge { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .sidebar, .app, .sky, .side-toggle { transition: none; } }
/* ---------- You (sidebar) and Settings ---------- */
.me-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 4px; margin: -4px; border: 0; border-radius: 12px;
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .2s; }
.me-btn:hover { background: rgb(255 255 255 / .08); }
:root[data-mode="day"] .theme-alturas .me-btn:hover { background: rgb(0 14 37 / .06); }
.me-t { display: grid; min-width: 0; }
.me-t .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the gear sits as a small badge on the picture's corner, so the name keeps its room */
.me-btn { position: relative; }
.me-gear { position: absolute; left: 26px; top: 26px; width: 17px; height: 17px; padding: 2px; box-sizing: border-box; border-radius: 50%;
  background: #efe0cd; color: #000e25; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .4s; }
:root[data-mode="day"] .theme-alturas .me-gear { background: #000e25; color: #efe0cd; }
.me-btn:hover .me-gear { transform: rotate(60deg); }
.avatar { flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-foot .avatar { width: 34px; height: 34px; }
.pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 10px; max-height: 260px; overflow-y: auto; padding: 4px; }
.pic { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; overflow: hidden; cursor: pointer; background: #0a1a36;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .14); transition: transform .15s, box-shadow .2s; }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic:hover { transform: scale(1.06); }
.pic.on { box-shadow: 0 0 0 2px #efe0cd, 0 0 0 5px rgb(239 224 205 / .25); }
:root[data-mode="day"] .theme-alturas .pic.on { box-shadow: 0 0 0 2px #000e25, 0 0 0 5px rgb(0 14 37 / .15); }
.pic-up { display: grid; place-content: center; justify-items: center; gap: 0; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .3); color: var(--text-2); }
.pics .pic-up { display: grid; margin: 0; text-transform: none; letter-spacing: 0; font-weight: 500; }
.pic-up span { font-size: 22px; line-height: 1; } .pic-up small { display: block; font-size: 10px; }
:root[data-mode="day"] .theme-alturas .pic-up { background: rgb(0 14 37 / .04); box-shadow: inset 0 0 0 1.5px rgb(0 14 37 / .25); }
/* Settings: picture groups that open and close */
.pics-own { grid-template-columns: repeat(auto-fill, 58px); max-height: none; margin-bottom: 6px; }
.pic-group { border-top: 1px solid rgb(255 255 255 / .1); padding: 6px 0 2px; }
:root[data-mode="day"] .theme-alturas .pic-group { border-top-color: rgb(0 14 37 / .08); }
.pic-group summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 6px 2px; font-size: 13px; font-weight: 600; user-select: none; }
.pic-group summary::-webkit-details-marker { display: none; }
.pic-group summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg); transition: transform .2s; opacity: .6; }
.pic-group[open] summary::after { transform: rotate(45deg); }
.pic-group .pics { max-height: 200px; padding-top: 6px; }
/* Short windows: only the page list scrolls, so the logo, your picture/name (Settings) and Sign out stay in view */
.sidebar { overflow: hidden; }
.sidebar .nav { flex: 0 1 auto; min-height: 96px; overflow-y: auto; }
@media (max-height: 560px) and (min-width: 761px) {
  .sidebar { gap: 10px; padding-top: 10px; }
  .sidebar .brand-co .lk-name, .sidebar .brand-co .lockup-sub { display: none; }
}
.sidebar .side-foot, .sidebar .w-signout { flex: none; }
/* Pop-ups never start see-through: if the browser pauses animations (a background tab or panel), a fade
   from opacity 0 could leave Settings and other windows open but invisible, and the next click closed them. */
.overlay { animation: none; }
@keyframes pop-in { from { transform: scale(.96) translateY(8px); } }
/* Owner Messages: project chats on top with client filter, then Studio | Editor side by side */
.msg-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.msg-head h3 { margin: 0; }
.msg-head .chips { margin-left: auto; }
.chips .chip .count, .thread-list h3 .count { animation: none; margin-left: 4px; }
.msg-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; align-items: start; }
@media (max-width: 900px) { .msg-cols { grid-template-columns: 1fr; } }
.theme-alturas .msg-cols .thread-list { margin-top: 0; }
/* Project chat: stage track above the chat. The bubble sits over the current stage's bar, pointing down at it;
   --i is the stage number (0-5), so the bubble's spot follows the bar. */
.stage-track { position: relative; width: min(440px, 100%); padding-top: 46px; margin: 2px 0 14px; touch-action: none; user-select: none; }
.st-bars { display: flex; gap: 5px; }
.st-bars i { flex: 1; height: 7px; border-radius: 4px; background: rgb(255 255 255 / .22); transition: background .2s; }
.st-bars i.on { background: #efe0cd; box-shadow: 0 0 10px rgb(239 224 205 / .35); }
:root[data-mode="day"] .theme-alturas .st-bars i { background: rgb(0 14 37 / .12); }
:root[data-mode="day"] .theme-alturas .st-bars i.on { background: #000e25; box-shadow: none; }
.st-bubble { position: absolute; top: 0; left: calc((var(--i) + .5) * 100% / 6); transform: translateX(-50%); transition: left .25s var(--ease-out, ease);
  white-space: nowrap; filter: drop-shadow(0 6px 12px rgb(0 14 37 / .25)); }
.st-bubble { --bb: #efe0cd; --bt: #000e25; }
:root[data-mode="day"] .theme-alturas .st-bubble { --bb: #000e25; --bt: #efe0cd; }
.st-bubble .stage { padding: 5px 12px 5px 6px; border-radius: 999px; border: 0; background: var(--bb); color: var(--bt); font-size: 12.5px; }
.st-bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg);
  background: var(--bb); border-radius: 0 0 3px 0; }
.stage-track.movable .st-bubble { cursor: grab; }
.stage-track.movable .st-bars { cursor: pointer; padding: 6px 0; margin: -6px 0; }
.stage-track.dragging .st-bubble { cursor: grabbing; transition: left .08s linear; }

/* ---------- Idea editor: a bubble beside its board card (plan.js placeDrawer) ---------- */
.theme-alturas .pl-drawer { position: fixed; }
.pl-drawer.anchored { right: auto; bottom: auto; max-height: calc(100dvh - 28px); overflow: visible; display: flex; flex-direction: column;
  animation: pl-pop .3s cubic-bezier(.16, 1, .3, 1); }
.pl-drawer.anchored > * { min-height: 0; overflow: auto; margin: -18px; padding: 18px; }
/* the tail points at the card */
.pl-drawer.anchored::after { content: ""; position: absolute; top: var(--ay); left: -7px; width: 14px; height: 14px; rotate: 45deg;
  background: rgb(14 30 62); border-left: 1px solid rgb(255 255 255 / .4); border-bottom: 1px solid rgb(255 255 255 / .4); }
.pl-drawer.anchored[data-side="r"]::after { left: auto; right: -7px; rotate: -135deg; }
:root[data-mode="day"] .pl-drawer.anchored::after { background: rgb(240 236 230); border-color: rgb(255 255 255 / .8); }
@keyframes pl-pop { from { opacity: 0; scale: .96; } }
.pcard.open { outline: 1.5px solid rgb(255 255 255 / .55); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .pl-drawer.anchored { animation: none; } }
/* Content board cards sit at their saved spots (the glass rule above makes .pcard relative), so the links meet them */
.theme-alturas .pboard .pcard { position: absolute; }
/* ---------- Content boards: the Boards button and its list (plan.js boardList) ---------- */
.pboard-corner .pl-boards-btn { opacity: 1; display: inline-flex; align-items: center; gap: 7px; max-width: 220px; }
.pl-boards-btn svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pl-boards-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-caret { font-style: normal; font-size: 10px; opacity: .7; transition: rotate .3s; }
.pl-boards-btn.on .pl-caret { rotate: 180deg; }
/* slides down over the top of the board */
.pl-boards { position: absolute; z-index: 7; top: 54px; left: 12px; right: 12px; display: grid; grid-template-rows: 0fr; pointer-events: none;
  transition: grid-template-rows .4s cubic-bezier(.16, 1, .3, 1); }
.pl-boards.open { grid-template-rows: 1fr; pointer-events: auto; }
.pl-boards-in { min-height: 0; overflow: hidden; border-radius: 20px; opacity: 0; translate: 0 -8px; transition: opacity .25s, translate .4s cubic-bezier(.16, 1, .3, 1); }
.pl-boards.open .pl-boards-in { opacity: 1; translate: 0; }
/* the tiles sit side by side and scroll sideways */
.pl-bstrip { display: flex; gap: 12px; padding: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin;
  background: rgb(6 23 53 / .55); border: 1px solid rgb(255 255 255 / .16); border-radius: 20px;
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); box-shadow: 0 24px 50px -28px rgb(0 0 0 / .7); }
:root[data-mode="day"] .pl-bstrip { background: rgb(248 241 231 / .7); border-color: rgb(255 255 255 / .8); }
.pl-btile { position: relative; flex: 0 0 168px; scroll-snap-align: start; display: grid; gap: 3px; align-content: start; padding: 8px 8px 10px; box-sizing: border-box;
  border-radius: 14px; border: 1px solid rgb(255 255 255 / .12); background: rgb(255 255 255 / .04); color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s; }
.pl-btile:hover { background: rgb(255 255 255 / .09); transform: translateY(-1px); }
.pl-btile.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
:root[data-mode="day"] .pl-btile { border-color: rgb(0 14 37 / .1); background: rgb(255 255 255 / .35); }
.pl-btile b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 22px; margin-top: 4px; }
.pl-btile span { font-size: 12px; color: var(--text-3); }
.pl-bmap { position: relative; height: 70px; border-radius: 9px; overflow: hidden;
  background: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .14) 1px, transparent 1.4px) 0 0 / 9px 9px, rgb(255 255 255 / .03); }
:root[data-mode="day"] .pl-bmap { background: radial-gradient(circle at 1px 1px, rgb(0 14 37 / .14) 1px, transparent 1.4px) 0 0 / 9px 9px, rgb(255 255 255 / .4); }
.pl-bmap i { position: absolute; width: 16%; height: 10px; border-radius: 3px; background: var(--pc); opacity: .75; }
.pl-bmore { position: absolute; right: 6px; bottom: 7px; width: 24px; height: 24px; border: 0; border-radius: 8px; background: transparent; color: var(--text-3);
  font: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
.pl-bmore:hover { background: rgb(255 255 255 / .12); color: var(--text); }
.pl-bnew { place-content: center; justify-items: center; border-style: dashed; color: var(--text-2); }
.pl-bnew b { padding: 0; margin: 0; }
.pl-bplus { font-size: 26px !important; line-height: 1; color: var(--text-2) !important; }
@media (max-width: 760px) { .pl-boards { top: 48px; left: 8px; right: 8px; } .pl-btile { flex-basis: 140px; } .pl-boards-btn span { max-width: 90px; } }
@media (prefers-reduced-motion: reduce) { .pl-boards, .pl-boards-in, .pl-caret { transition: none; } }
/* Content board: hold the mouse on empty space to move around (plan.js startPan) */
@media (hover: hover) { .pboard { cursor: grab; } .pboard .pcard { cursor: pointer; } .pboard-wrap.panning, .pboard-wrap.panning * { cursor: grabbing !important; user-select: none; } }
/* Idea sparks pop-up: "Surprise me" centred above the sparks */
.spark-surprise { display: flex; justify-content: center; margin: 0 0 14px; }
/* Board covers: on the board tiles, and the picker in the board's settings (plan.js boardSettings) */
.pl-bmap { height: 84px; }
.pl-bcover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-cvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.pl-cvlabel { margin: 14px 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.pl-cv { position: relative; aspect-ratio: 6 / 5; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; display: grid; place-content: center;
  justify-items: center; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .2); color: var(--text-2); font: inherit;
  transition: transform .15s, box-shadow .2s; }
.pl-cv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pl-cv:hover { transform: translateY(-2px); }
.pl-cv.on { box-shadow: 0 0 0 2px #efe0cd, 0 0 0 5px rgb(239 224 205 / .25); }
:root[data-mode="day"] .pl-cv { background: rgb(0 14 37 / .04); box-shadow: inset 0 0 0 1.5px rgb(0 14 37 / .2); }
:root[data-mode="day"] .pl-cv.on { box-shadow: 0 0 0 2px #000e25, 0 0 0 5px rgb(0 14 37 / .15); }
.pl-cv span { font-size: 22px; line-height: 1; } .pl-cv small { font-size: 11px; }
.field .pl-cv-up { display: grid; margin: 0; text-transform: none; letter-spacing: 0; font-weight: 500; }
/* Owner: clients shown as their profile picture (or initial) in the client list and every chat with them (studio.js clientPic).
   Rows style every <img> inside them (.thread-list .row img), so these rules name the picture and badge directly. */
.cl-av { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(239 224 205 / .12); box-shadow: 0 0 0 1px rgb(239 224 205 / .22), 0 3px 8px rgb(0 14 37 / .35); }
.row .cl-av > img, .chat-h .cl-av > img, .cl-av > img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; box-shadow: none; filter: none; }
.cl-av > i { font-style: normal; font-weight: 600; font-size: 15px; line-height: 1; color: var(--text); }
:root[data-mode="day"] .cl-av { background: rgb(0 14 37 / .08); box-shadow: 0 0 0 1px rgb(0 14 37 / .15), 0 3px 8px rgb(0 14 37 / .15); }
/* project chats: the stage as a small round badge on the picture's corner */
.cl-badge { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: #0e2148; box-shadow: 0 0 0 2px #071530; }
.row .cl-badge img.icon-img, .cl-badge img.icon-img { width: 13px; height: 13px; border-radius: 0; box-shadow: none; filter: none; object-fit: contain; }
.cl-badge img.icon-img.only-day { display: none; }
:root[data-mode="day"] .cl-badge { background: #fbf6ee; box-shadow: 0 0 0 2px #e9e1d4; }
:root[data-mode="day"] .cl-badge img.icon-img.only-night { display: none; }
:root[data-mode="day"] .cl-badge img.icon-img.only-day { display: block; }
.chat-h .cl-av { width: 30px; height: 30px; }
.chat-h .cl-av > i { font-size: 13px; }

/* Media previews: thumbnails on chosen and uploaded files, and the player that opens under a file in the page */
.u-thumb, .file-thumb { position: relative; flex: none; width: 48px; height: 34px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer;
  display: grid; place-items: center; background: rgb(0 14 37 / .55); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); color: #efe0cd; font: inherit; }
.u-thumb.doc, .file-thumb.doc { cursor: default; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: var(--text-3); background: rgb(255 255 255 / .05); }
:root[data-mode="day"] .u-thumb.doc, :root[data-mode="day"] .file-thumb.doc { background: rgb(0 14 37 / .05); box-shadow: inset 0 0 0 1px rgb(0 14 37 / .14); }
.u-thumb video, .u-thumb img, .file-thumb video, .file-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.u-play { position: relative; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgb(0 14 37 / .6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: 0 0 0 1px rgb(255 255 255 / .35); transition: transform .15s; }
.u-play svg { width: 11px; height: 11px; fill: #efe0cd; margin-left: 1px; }
.u-thumb:hover .u-play, .file-thumb:hover .u-play { transform: scale(1.12); }
.u-note { position: absolute; left: 6px; top: 2px; font-size: 13px; opacity: .8; }
.file-row .file-thumb { width: 56px; height: 40px; }
.media-player { grid-column: 1 / -1; position: relative; border-radius: 12px; overflow: hidden; background: #000914; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); animation: mp-in .3s cubic-bezier(.16, 1, .3, 1); }
.media-player video, .media-player img { display: block; width: 100%; max-height: 60vh; object-fit: contain; background: #000914; }
.media-player.k-audio { background: transparent; box-shadow: none; padding: 4px 0; }
.media-player audio { display: block; width: 100%; }
.media-err { margin: 0; padding: 18px 14px; text-align: center; font-size: 13px; color: #efe0cd; }
@keyframes mp-in { from { opacity: 0; transform: translateY(-4px); } }
.files .media-player { margin: 2px 0 6px; }
/* Owner: download icon on each project file */
.dl-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; display: block; }
/* Pop-ups: the title and the buttons stay in view; only the middle scrolls, so Save / Send is never below the screen */
.modal { display: flex; flex-direction: column; max-height: calc(100dvh - 40px); overflow: hidden; }
.modal-h, .modal-f { flex: none; }
.modal-b { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
/* New project / Upload: a tighter drop zone so the whole form usually fits without scrolling */
.modal .drop { padding: 14px 14px 12px; gap: 2px; }
.modal .drop-icon { width: 28px; height: 28px; margin-bottom: 2px; }
.modal .field { margin-bottom: 12px; }
/* ---------- Uploading (studio.js uploadStage): the form folds away, a ring and a row per file, all gliding ---------- */
.folding { overflow: hidden; opacity: 0; margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important;
  transition: height .5s cubic-bezier(.16, 1, .3, 1), opacity .25s, margin .5s cubic-bezier(.16, 1, .3, 1), padding .5s cubic-bezier(.16, 1, .3, 1); }
.up-stage { display: flex; align-items: center; gap: 18px; padding: 6px 2px 16px; animation: up-in .55s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes up-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.up-ring { position: relative; flex: none; width: 92px; height: 92px; }
.up-ring > svg:first-child { width: 100%; height: 100%; rotate: -90deg; }
.up-track { fill: none; stroke: var(--line-2); stroke-width: 7; }
.up-arc { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 6px rgb(239 224 205 / .35)); transition: stroke .4s; }
:root[data-mode="day"] .up-arc { filter: none; }
.up-pct { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 30px; color: var(--text); transition: opacity .3s, transform .4s cubic-bezier(.16, 1, .3, 1); }
.up-pct b { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1; }
.up-pct small { font-size: 12px; margin-left: 1px; color: var(--text-3); }
.up-check { position: absolute; inset: 24px; width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.up-check path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.up-stage.complete .up-pct { opacity: 0; transform: scale(.7); }
.up-stage.complete .up-check { opacity: 1; }
.up-stage.complete .up-check path { animation: draw .55s .15s cubic-bezier(.65, 0, .35, 1) forwards; }
.up-stage.complete .up-ring { animation: ring-pop .6s cubic-bezier(.34, 1.56, .64, 1); }
.up-stage.partial .up-arc { stroke: #e8a07a; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring-pop { 40% { transform: scale(1.07); } }
.up-txt { min-width: 0; display: grid; gap: 3px; }
.up-title { font-size: 17px; color: var(--text); }
.up-bytes { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.up-eta { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
/* lines that change slide in from below while the old text slides away */
.up-title, .up-eta { position: relative; display: grid; overflow: hidden; }
.up-title > span, .up-eta > span { grid-area: 1 / 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-title > .in, .up-eta > .in { animation: line-in .38s cubic-bezier(.16, 1, .3, 1) both; }
.up-title > .out, .up-eta > .out { animation: line-out .3s ease-in both; }
@keyframes line-in { from { opacity: 0; transform: translateY(70%); } }
@keyframes line-out { to { opacity: 0; transform: translateY(-70%); } }
/* the file rows while uploading */
.u-list.up { gap: 10px; }
.u-list.up .u-bar { display: block; height: 5px; background: var(--line); }
.u-list.up .u-bar i { transition: none; border-radius: 5px; }
.u-list.up .u-row { transition: opacity .35s var(--d, 0ms), transform .45s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms); }
.u-row.queued { opacity: .5; }
.u-row.on { transform: translateX(2px); }
.u-row.on .u-bar i { background: linear-gradient(90deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 45%, white) 50%, var(--accent) 100%) 0 0 / 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.u-row.on .u-size, .u-row.done .u-size { color: var(--text-2); font-variant-numeric: tabular-nums; }
.u-row.done .u-size::after, .u-row.failed .u-size::after { content: none; }
.u-row.failed .u-size { color: #e8a07a; }
.u-row.failed .u-bar i { background: #e8a07a; }
.u-state { justify-self: center; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.u-row.queued .u-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.u-row.on .u-state { border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.u-row.done .u-state { background: var(--accent); animation: ring-pop .45s cubic-bezier(.34, 1.56, .64, 1); }
.u-row.done .u-state svg { width: 14px; height: 14px; fill: none; stroke: var(--bg, #000e25); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.theme-alturas .u-row.done .u-state svg { stroke: #000e25; }
:root[data-mode="day"] .theme-alturas .u-row.done .u-state svg { stroke: #f8f1e7; }
.u-row.done .u-state path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .4s .1s ease-out forwards; }
.u-row.failed .u-state { background: #e8a07a; color: #000e25; font-weight: 800; font-size: 12px; }
@keyframes spin { to { rotate: 360deg; } }
/* the Upload / Send button while it works: three breathing dots */
.btn.busy::after { content: ""; width: 18px; height: 6px; margin-left: 6px; background: radial-gradient(circle, currentColor 2px, transparent 2.5px) 0 50% / 6px 6px repeat-x; animation: dots 1.1s steps(4) infinite; }
@keyframes dots { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -10% 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .folding, .up-stage, .up-title > *, .up-eta > *, .u-list.up .u-row { transition: none; animation: none; }
  .u-row.on .u-bar i, .u-row.on .u-state, .btn.busy::after { animation: none; }
}
/* ---------- Client pass fixes (2026-10-30) ---------- */
/* Notes list: rows stay inside the list (no sideways scroll), long previews end in … */
.pl-nlist { overflow-x: hidden; }
.pl-nlist .row { min-width: 0; }
.pl-nlist .main-t { min-width: 0; overflow: hidden; }
/* Phone tab bar in day mode: light glass with navy icons (it kept the night bar before) */
:root[data-mode="day"] .theme-alturas #tabs { background: rgb(248 241 231 / .9); border-top: 1px solid rgb(0 14 37 / .1);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
@media (max-width: 760px) {
  /* Plan header: tabs take the row, the inquiry becomes a round ✦ button (it hung off the screen) */
  .plan-tabsrow { grid-template-columns: minmax(0, 1fr) auto; }
  .plan-tabsrow .plan-bulb { display: none; }
  .plan-tabsrow .plan-tabs { grid-column: 1; }
  .plan-tabsend { grid-column: 2; }
  .theme-alturas .plan-inquiry.btn { width: 34px; height: 34px; padding: 0; justify-content: center; flex: none; font-size: 15px; }
  /* Board buttons: one line that scrolls sideways instead of squeezing into two-line pills */
  .pboard-corner.left { right: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .pboard-corner.left::-webkit-scrollbar { display: none; }
  .pboard-corner .btn, .pboard-corner .tip { flex: none; white-space: nowrap; }
}
/* The cut playing in the hub: embedded players keep a 16:9 frame */
.media-player.k-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000914; }
.review-cta .media-player, .kv .media-player { margin-top: 10px; }
@media (max-width: 760px) { .plan-inquiry span { display: none; } }
/* ---------- The project climb (climb.js): a 3D mountain above the stage steps ---------- */
.climb-slot { position: relative; height: 0; margin: 0 -18px; overflow: hidden; transition: height .6s cubic-bezier(.16, 1, .3, 1); }
.climb-slot.ready { height: 250px; margin-bottom: 6px; }
.proj .card > .climb-slot { max-width: none; } /* runs edge to edge of the card (the project page's max-width: 100% cut it short on the right) */
.climb-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; animation: climb-in .9s cubic-bezier(.16, 1, .3, 1) both; }
.climb-canvas:active { cursor: grabbing; }
@keyframes climb-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
/* the stage name above the Yeti */
.climb-tag { position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: #efe0cd; color: #000e25; box-shadow: 0 4px 14px rgb(0 14 37 / .35); will-change: transform; }
.climb-tag::after { content: ""; position: absolute; left: calc(50% + var(--arrow, 0px)); bottom: -4px; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 0 0 2px 0; }
:root[data-mode="day"] .climb-tag { background: #000e25; color: #efe0cd; }
/* tapping a camp */
.climb-tip { position: absolute; left: 0; top: 0; z-index: 2; display: grid; gap: 2px; justify-items: center; padding: 8px 12px 10px; border-radius: 12px; text-align: center;
  background: rgb(6 23 53 / .9); color: #efe0cd; box-shadow: 0 10px 30px rgb(0 0 0 / .4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: tip-in .25s cubic-bezier(.16, 1, .3, 1); }
.climb-tip[hidden] { display: none; }
.climb-tip b { font-size: 13px; } .climb-tip span { font-size: 12px; opacity: .75; }
.climb-tip .btn { margin-top: 6px; }
:root[data-mode="day"] .climb-tip { background: rgb(248 241 231 / .95); color: #000e25; }
@keyframes tip-in { from { opacity: 0; translate: 0 6px; } }
@media (max-width: 760px) { .climb-slot.ready { height: 200px; } }
@media (prefers-reduced-motion: reduce) { .climb-slot, .climb-canvas, .climb-tip { transition: none; animation: none; } }
.climb-tag[hidden] { display: none; }
/* Raw footage: + Upload files sits at the right end of the heading */
.kv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.kv-head > label { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
/* Content strategy inquiry: every few seconds a light runs once around its outline (a dash sliding along an SVG outline), then rests */
.plan-inquiry .shine { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.plan-inquiry .shine rect { x: 1px; y: 1px; width: calc(100% - 2px); height: calc(100% - 2px); rx: 999px; fill: none; stroke-linecap: round; opacity: 0; }
.plan-inquiry .shine .tail { stroke: rgb(255 246 225 / .55); stroke-width: 2; stroke-dasharray: 22 78; animation: shine-tail 200s linear 3s infinite; }
.plan-inquiry .shine .head { stroke: #fff; stroke-width: 2.4; stroke-dasharray: 5 95; filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 7px rgb(255 236 200 / .9));
  animation: shine-head 200s linear 3s infinite; }
/* the head rides at the front of the tail (17 ahead), both go once around (100) */
/* every 200 s (3 min 20 s): a slow, eased trip around (about 2.9 s) that fades softly in and out, then a long rest */
@keyframes shine-tail { 0% { stroke-dashoffset: 0; opacity: 0; animation-timing-function: cubic-bezier(.37, 0, .63, 1); }
  0.35% { opacity: 1; } 1.1% { opacity: 1; animation-timing-function: ease-in-out; } 1.45% { stroke-dashoffset: -100; opacity: 0; } 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes shine-head { 0% { stroke-dashoffset: -17; opacity: 0; animation-timing-function: cubic-bezier(.37, 0, .63, 1); }
  0.35% { opacity: 1; } 1.1% { opacity: 1; animation-timing-function: ease-in-out; } 1.45% { stroke-dashoffset: -117; opacity: 0; } 100% { stroke-dashoffset: -117; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .plan-inquiry .shine { display: none; } }
.plan-inquiry span + span { margin-left: -3px; } /* "Content strategy inquiry" reads as one phrase */

/* ---------- Polish pass (2026-10-30) ---------- */
/* a chat page shows its name once (in the title), not again in the chat's own header */
.thread-page .chat > .chat-h:not(.chat-pills) { display: none; }
/* day mode: cream icons on glass keep a thin ring, so they stay clear when a cloud drifts behind */
:root[data-mode="day"] .theme-alturas .thread-list .icon-img, :root[data-mode="day"] .theme-alturas .row > .icon-img { box-shadow: 0 0 0 1px rgb(0 14 37 / .18), 0 2px 5px rgb(0 14 37 / .12); }
/* the 1 2 3 shortcut hints only show while you're over the menu */
.nav .kbd { opacity: 0; transition: opacity .2s; }
.nav:hover .kbd { opacity: .7; }
/* phone-only buttons (the project page's ‹ Projects) */
.m-only { display: none !important; }
@media (max-width: 760px) { .m-only { display: inline-flex !important; } }
/* phone calendar: the + shows on the day you tap */
@media (hover: none) { .pl-add { opacity: 0; pointer-events: none; } .pl-dc.pick .pl-add { opacity: 1; pointer-events: auto; } .pl-dc.pick { background: rgb(255 255 255 / .08); } }
/* ---------- Review card: versions, the player, comments pinned to moments (studio.js reviewCard) ---------- */
.review-card h3 { display: flex; align-items: baseline; gap: 10px; }
.rc-count { margin-left: auto; font-size: 11px; letter-spacing: .04em; text-transform: none; color: var(--accent); font-weight: 700; }
.rc-sub { font-size: 13px; line-height: 1.45; margin: -2px 0 10px; }
.cut-v { margin-bottom: 10px; }
.rc-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.review-card .media-player { margin-top: 12px; }
.cmt-new { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin-top: 10px; animation: mp-in .3s cubic-bezier(.16, 1, .3, 1); }
.cmt-at { display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; height: 38px; border-radius: 999px; background: var(--accent); color: #000e25; font-weight: 700; font-size: 13px; cursor: text; }
:root[data-mode="day"] .cmt-at { color: #efe0cd; }
.cmt-at input { all: unset; width: 3.4em; font-variant-numeric: tabular-nums; }
.cmt-list { display: grid; gap: 6px; margin-top: 12px; }
.cmt { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: start; padding: 8px 8px 8px 8px; border-radius: 12px; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--line); animation: mp-in .3s cubic-bezier(.16, 1, .3, 1); }
:root[data-mode="day"] .cmt { background: rgb(255 255 255 / .3); }
.cmt-t { all: unset; cursor: pointer; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--accent-dim); color: var(--text); transition: background .15s, transform .15s; }
.cmt-t:hover { background: var(--accent); color: #000e25; transform: translateY(-1px); }
:root[data-mode="day"] .cmt-t:hover { color: #efe0cd; }
.cmt-t.gen { cursor: default; opacity: .7; }
.cmt-b p { margin: 1px 0 2px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.cmt-b small { font-size: 11.5px; color: var(--text-3); }
.cmt.done { opacity: .55; }
.cmt.done .cmt-b p { text-decoration: line-through; text-decoration-color: rgb(127 140 160 / .6); }
.cmt-done { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background .2s; }
.cmt-done input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cmt-done span { font-size: 13px; opacity: .25; transition: opacity .2s, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.cmt-done:has(input:checked) { background: var(--accent); color: #000e25; box-shadow: none; }
.cmt-done:has(input:checked) span { opacity: 1; transform: scale(1.15); }
.cmt-ok { font-size: 11.5px; font-weight: 700; color: var(--accent); align-self: center; white-space: nowrap; }
.cmt-del { opacity: 0; transition: opacity .2s; }
.cmt:hover .cmt-del { opacity: 1; }
@media (hover: none) { .cmt-del { opacity: .6; } }
.cmt-empty { font-size: 13px; }
/* Revisions: used of included, one segment each */
.rounds { display: grid; gap: 6px; }
.rounds i { display: flex; gap: 4px; }
.rounds b { flex: 1; max-width: 46px; height: 6px; border-radius: 4px; background: var(--line-2); }
.rounds b.on { background: var(--accent); }
.rounds b.extra { background: #e8a07a; }
/* ---------- Client home (studio.js viewClientHome) ---------- */
.home-hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; }
.home-hero h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.01em; }
.home-hero p { margin: 0; }
.up-zone { all: unset; cursor: pointer; display: grid; justify-items: center; gap: 2px; padding: 14px 26px; border-radius: 18px; text-align: center;
  border: 1.5px dashed var(--line-2); transition: border-color .2s, background .2s, transform .2s; }
.up-zone svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.up-zone b { font-size: 14px; } .up-zone span { font-size: 11.5px; color: var(--text-3); }
.up-zone:hover { border-color: var(--accent); background: rgb(255 255 255 / .05); transform: translateY(-2px); }
.up-zone:hover svg { transform: translateY(-3px); }
.home-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: start; }
.home-cols .row .btn.sm { flex: none; pointer-events: none; }
.caught-up { display: flex; align-items: center; gap: 14px; }
.caught-up img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgb(239 224 205 / .3); }
.caught-up b { display: block; margin-bottom: 2px; }
.caught-up span { font-size: 13px; }
.row.wk { cursor: pointer; }
.wk-d { flex: none; width: 46px; display: grid; justify-items: center; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.wk-d b { font-size: 19px; color: var(--text); letter-spacing: 0; line-height: 1.1; }
@media (max-width: 900px) { .home-cols { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .home-hero { grid-template-columns: 1fr; } .up-zone { justify-self: stretch; } }
/* Drop files anywhere */
#drop-veil { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: rgb(0 14 37 / .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#drop-veil.on { opacity: 1; }
#drop-veil > div { display: grid; justify-items: center; gap: 10px; padding: 34px 48px; border-radius: 26px; border: 2px dashed #efe0cd; color: #efe0cd; transform: scale(.96); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
#drop-veil.on > div { transform: none; }
#drop-veil svg { width: 54px; height: 54px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; animation: veil-bob 1.4s ease-in-out infinite; }
#drop-veil b { font-size: 18px; }
@keyframes veil-bob { 50% { transform: translateY(-6px); } }
/* ---------- Chat: files, voice notes, "Seen", "typing…" (studio.js paintMessages / sendFiles / recordVoice) ---------- */
.compose { align-items: flex-end; }
.c-tool { flex: none; width: 38px; height: 38px; padding: 0 !important; justify-content: center; }
.c-tool svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-tool.on { background: #e5534b !important; color: #fff; animation: rec-pulse 1.2s ease-in-out infinite; }
@keyframes rec-pulse { 50% { box-shadow: 0 0 0 6px rgb(229 83 75 / .25); } }
.compose { position: relative; }
.compose.recording textarea { visibility: hidden; }
.rec-bar { position: absolute; left: 96px; right: 90px; top: 50%; translate: 0 -50%; display: flex; align-items: center; gap: 10px; font-size: 13px; z-index: 1; }
.rec-bar b { font-variant-numeric: tabular-nums; }
.rec-bar span { color: var(--text-3); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #e5534b; animation: rec-blink 1s steps(2) infinite; }
@keyframes rec-blink { 50% { opacity: .2; } }
.chat-status { height: 0; overflow: hidden; padding: 0 16px; font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; justify-content: flex-end; gap: 6px; transition: height .25s; }
.chat-status.on { height: 22px; }
.typing { display: inline-flex; gap: 3px; margin-right: 2px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: typing 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-3px); opacity: 1; } }
.msg.has-file { padding: 6px; }
.msg.has-file small { padding: 2px 6px 4px; display: block; }
.msg-file img, .msg-file video { display: block; max-width: min(320px, 100%); max-height: 260px; border-radius: 10px; background: rgb(0 14 37 / .3); cursor: zoom-in; }
.msg-file video { cursor: auto; }
.mf-vid { position: relative; width: fit-content; }
.mf-full { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px;
  background: rgb(0 14 37 / .55); color: #fff; cursor: pointer; opacity: .85; transition: opacity .2s; }
.mf-full:hover, .mf-full:focus-visible { opacity: 1; }
.mf-full svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* A chat video big, in its own shape, over the page blurred behind it */
.vid-full { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; background: rgb(0 9 24 / .45);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); cursor: zoom-out; }
.vid-full video { --pad: 32px; aspect-ratio: var(--ar); width: min(calc(100vw - var(--pad) * 2), calc((100dvh - var(--pad) * 2) * var(--ar))); height: auto;
  border-radius: 14px; background: #000914; box-shadow: 0 30px 80px rgb(0 0 0 / .45); cursor: auto; }
@media (max-width: 760px) { .vid-full video { --pad: 12px; } }
.vid-x { position: absolute; top: calc(env(safe-area-inset-top) + 14px); right: 14px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px;
  background: rgb(255 255 255 / .16); color: #fff; font-size: 17px; cursor: pointer; transition: background .2s; }
.vid-x:hover, .vid-x:focus-visible { background: rgb(255 255 255 / .28); }
.mf-ph { width: 220px; height: 140px; border-radius: 10px; background: linear-gradient(110deg, rgb(255 255 255 / .06) 30%, rgb(255 255 255 / .16) 50%, rgb(255 255 255 / .06) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.mf-aud { display: grid; gap: 4px; padding: 4px 6px; font-size: 12.5px; }
.mf-aud span::before { content: "🎙 "; }
.mf-aud audio { width: min(260px, 70vw); height: 36px; }
.mf-doc { all: unset; cursor: pointer; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 6px 10px 6px 6px; max-width: 280px; }
.mf-doc span { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; background: rgb(255 255 255 / .1); }
.mf-doc b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-doc small { padding: 0 !important; font-size: 11px; opacity: .7; }
.msg.sending { opacity: .85; min-width: 160px; }
.msg.sending .u-bar { display: block; margin-top: 6px; height: 3px; }
.msg.sending .u-bar i { background: currentColor; transition: width .3s; }
.msg.failed { opacity: .6; }
@media (prefers-reduced-motion: reduce) { .typing i, .c-tool.on, .rec-dot { animation: none; } }
/* Settings: email toggle, password, team, calendar */
.set-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 4px 0 14px; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400; }
.set-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.set-row b { display: block; font-size: 14px; color: var(--text); }
.set-row small { font-size: 12px; }
.pw-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; }
.team-row, .cal-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 760px) { .pw-row { grid-template-columns: 1fr; } }
/* ---------- Brief builder, final files, upload pill ---------- */
.brief .field { margin-bottom: 10px; }
.brief .chips { gap: 6px; }
.brief .chip { transition: background .15s, color .15s, transform .15s; }
.brief .chip.on { background: var(--accent); color: #000e25; transform: translateY(-1px); }
:root[data-mode="day"] .brief .chip.on { color: #efe0cd; }
.brief-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.brief-tags span { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accent-dim); }
.fin-btn { font-size: 14px; opacity: .45; }
.fin-btn.on { opacity: 1; color: #f0c060; text-shadow: 0 0 8px rgb(240 192 96 / .6); }
.up-pill { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgb(6 23 53 / .88); color: #efe0cd; box-shadow: 0 12px 30px rgb(0 0 0 / .35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: pill-in .45s cubic-bezier(.34, 1.56, .64, 1); font-size: 13px; }
.up-pill svg { width: 36px; height: 36px; rotate: -90deg; }
.up-pill .t { fill: none; stroke: rgb(239 224 205 / .2); stroke-width: 3.5; }
.up-pill .a { fill: none; stroke: #efe0cd; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.up-pill b { position: absolute; left: 8px; width: 36px; text-align: center; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.up-pill.done { background: rgb(28 70 52 / .92); } .up-pill.failed { background: rgb(110 40 30 / .92); }
.up-pill.done b, .up-pill.failed b { font-size: 15px; }
@keyframes pill-in { from { opacity: 0; transform: translateY(20px) scale(.9); } }
@media (max-width: 760px) { .up-pill { bottom: calc(76px + env(safe-area-inset-bottom)); right: 12px; } }
/* ---------- Search, quotes & invoices, install ---------- */
.nav-search { opacity: .85; }
/* Sidebar search: a real search box, then a line and some air before the pages */
.side-search { position: relative; display: flex; align-items: center; gap: 8px; margin: 4px 0 0; padding: 0 10px; height: 38px; border-radius: 12px;
  background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), inset 0 1px 2px rgb(0 0 0 / .18); color: var(--text-3);
  transition: box-shadow .2s, background-color .2s; }
.side-search:focus-within { background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .32); color: var(--text); }
.side-search svg { width: 17px; height: 17px; flex: none; }
.side-search input { all: unset; flex: 1; min-width: 0; font-size: 14px; color: var(--text); }
.side-search input::placeholder { color: var(--text-3); }
.side-search input::-webkit-search-cancel-button { display: none; }
.side-search .kbd { font-size: 11px; color: var(--text-3); padding: 1px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); }
.side-search:focus-within .kbd { visibility: hidden; }
.side-search + .side-q-res + .nav { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
:root[data-mode="day"] .side-search { background: rgb(255 255 255 / .4); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .85), 0 0 0 1px rgb(0 14 37 / .07); }
:root[data-mode="day"] .side-search:focus-within { box-shadow: inset 0 0 0 1px rgb(0 14 37 / .25); }
:root[data-mode="day"] .side-search .kbd { box-shadow: inset 0 0 0 1px rgb(0 14 37 / .15); }
/* its results: a glass panel beside the sidebar, over the page */
.side-q-res { position: fixed; z-index: 60; width: min(420px, calc(100vw - 32px)); max-height: min(60vh, 520px); margin: 0; padding: 8px; border-radius: 16px; box-sizing: border-box;
  background: rgb(6 23 53 / .72); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14), 0 24px 60px -20px rgb(0 0 0 / .65); }
.side-q-res[hidden] { display: none; }
:root[data-mode="day"] .side-q-res { background: rgb(248 241 231 / .9); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .9), 0 0 0 1px rgb(0 14 37 / .08), 0 24px 60px -24px rgb(0 14 37 / .4); }
.nav-search svg, .m-search svg { width: 18px; height: 18px; }
.m-search { all: unset; cursor: pointer; display: grid; place-items: center; width: 34px; height: 34px; margin-left: auto; color: var(--text); }
.search-modal { width: min(640px, 94vw) !important; }
.q-res { display: grid; gap: 6px; margin-top: 12px; max-height: 60vh; overflow-y: auto; }
.q-hint { padding: 10px 2px; font-size: 13px; }
.q-hit { all: unset; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; column-gap: 10px; row-gap: 2px; align-items: baseline; padding: 10px 12px; border-radius: 12px; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s; }
.q-hit:hover, .q-hit:focus-visible { background: rgb(255 255 255 / .09); }
.q-type { grid-row: 1 / 3; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); width: 62px; }
.q-hit b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-hit > span:not(.q-type) { grid-column: 2; font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-hit small { grid-column: 3; grid-row: 1; font-size: 11px; color: var(--text-3); }
.q-hit mark { background: rgb(240 200 120 / .45); color: inherit; border-radius: 3px; padding: 0 1px; }
.inv-card h3 { display: flex; align-items: center; }
.inv-new { margin-left: auto; display: flex; gap: 6px; text-transform: none; letter-spacing: 0; }
.inv-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; background: var(--accent-dim); }
.inv-st { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--line-2); }
.inv-st.st-sent { background: rgb(240 200 120 / .3); } .inv-st.st-paid, .inv-st.st-accepted { background: rgb(80 180 130 / .35); } .inv-st.st-declined { background: rgb(229 83 75 / .3); }
.inv-line { display: grid; grid-template-columns: 1fr 70px 110px auto; gap: 6px; margin-bottom: 6px; }
.inv-sum { text-align: right; font-size: 14px; } .inv-sum b { font-size: 18px; margin-left: 6px; }
.inv-modal { width: min(720px, 96vw) !important; }
.inv-doc { background: #fff; color: #10203a; border-radius: 14px; padding: 26px; font-size: 14px; }
.inv-doc .muted { color: #6a7790; }
.inv-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.inv-top > div { display: grid; gap: 2px; }
.inv-brand { letter-spacing: .2em; font-size: 15px; }
.inv-meta { text-align: right; justify-items: end; }
.inv-to { display: grid; gap: 1px; margin-bottom: 18px; }
.inv-tbl { width: 100%; border-collapse: collapse; }
.inv-tbl th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #6a7790; border-bottom: 1.5px solid #10203a; padding: 6px 4px; }
.inv-tbl td { padding: 8px 4px; border-bottom: 1px solid #e3e7ee; }
.inv-tbl th:not(:first-child), .inv-tbl td:not(:first-child) { text-align: right; white-space: nowrap; }
.inv-tot { display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; justify-items: end; margin-top: 14px; }
.inv-tot .big { font-size: 18px; }
.inv-notes { margin-top: 18px; padding-top: 12px; border-top: 1px solid #e3e7ee; white-space: pre-wrap; color: #44506a; }
.inv-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.install-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.install-card img { width: 52px; height: 52px; border-radius: 13px; }
.install-card b { display: block; } .install-card span { font-size: 13px; }
@media (max-width: 760px) { .inv-line { grid-template-columns: 1fr 56px 84px auto; } .install-card { grid-template-columns: auto 1fr; } .install-card .btn { grid-column: 1 / -1; } }
@media print {
  body * { visibility: hidden !important; }
  .inv-doc, .inv-doc * { visibility: visible !important; }
  .inv-doc { position: fixed; inset: 0; border-radius: 0; padding: 32px; }
}
/* ---------- Delivery reveal (scenes.js) ---------- */
#reveal { position: fixed; inset: 0; z-index: 95; display: grid; grid-template-rows: 1fr auto; opacity: 0; transition: opacity .35s;
  background: radial-gradient(ellipse at 50% 30%, #1b3466 0%, #071530 55%, #020818 100%); }
#reveal.in { opacity: 1; } #reveal.out { opacity: 0; }
.rv-stage { position: relative; min-height: 0; }
.rv-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rv-panel { justify-self: center; display: grid; justify-items: center; gap: 8px; text-align: center; color: #efe0cd; padding: 0 20px 36px; max-width: 640px;
  opacity: 0; transform: translateY(26px); transition: opacity .6s, transform .8s cubic-bezier(.34, 1.56, .64, 1); }
#reveal.show .rv-panel { opacity: 1; transform: none; }
.rv-kicker { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.rv-panel h2 { margin: 0; font-size: clamp(22px, 4vw, 34px); }
.rv-panel p { margin: 0 0 6px; opacity: .8; }
.rv-files { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rv-files .btn { background: rgb(239 224 205 / .12); color: #efe0cd; }
.rv-files .btn.primary { background: #efe0cd; color: #000e25; }
#reveal.show .rv-files .btn { animation: rv-rise .6s cubic-bezier(.34, 1.56, .64, 1) both; }
#reveal.show .rv-files .btn:nth-child(2) { animation-delay: .08s; } #reveal.show .rv-files .btn:nth-child(3) { animation-delay: .16s; } #reveal.show .rv-files .btn:nth-child(4) { animation-delay: .24s; }
@keyframes rv-rise { from { opacity: 0; transform: translateY(18px) scale(.94); } }
.rv-close { color: #efe0cd; opacity: .7; }
.rv-x { all: unset; cursor: pointer; position: absolute; top: 16px; right: 18px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #efe0cd; background: rgb(239 224 205 / .1); }
.rv-open { background: linear-gradient(135deg, #f0c060, #e8a07a) !important; color: #000e25 !important; }
/* the reveal's scene fills the screen behind its panel (the peak runs on behind the text) */
.rv-stage { position: absolute; inset: 0; }
.rv-panel { position: relative; z-index: 1; grid-row: 2; }
#reveal::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; pointer-events: none; background: linear-gradient(transparent, rgb(2 8 24 / .75)); }
.rv-panel, .rv-x { z-index: 2; }
/* Goal "How is it measured?": clear choice cards (chosen = filled with a ✓, the others an empty circle) */
.theme-alturas .g-metric { position: relative; align-content: start; padding: 12px 34px 12px 14px; transition: background-color .25s, color .25s, transform .15s, box-shadow .25s; }
.theme-alturas .g-metric::after { content: ""; position: absolute; top: 11px; right: 11px; width: 16px; height: 16px; border-radius: 50%; box-sizing: border-box;
  border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 10px; font-weight: 800; transition: background .25s, border-color .25s, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.theme-alturas .g-metric:active { transform: scale(.97); }
.theme-alturas .g-metric.on { background: #efe0cd; color: #000e25; box-shadow: 0 8px 22px -10px rgb(0 0 0 / .45); }
.theme-alturas .g-metric.on span { color: rgb(0 14 37 / .7); }
.theme-alturas .g-metric.on::after { content: "✓"; background: #000e25; border-color: #000e25; color: #efe0cd; transform: scale(1.1); }
:root[data-mode="day"] .theme-alturas .g-metric.on { background: #000e25; color: #efe0cd; }
:root[data-mode="day"] .theme-alturas .g-metric.on span { color: rgb(239 224 205 / .75); }
:root[data-mode="day"] .theme-alturas .g-metric.on::after { background: #efe0cd; border-color: #efe0cd; color: #000e25; }
.theme-alturas .g-metric.on::before { opacity: 0; }
.pl-drawer.stay, .pl-drawer.stay.anchored { animation: none !important; } /* redraws of an already-open editor don’t replay its entrance */
/* Client home: long titles never widen the page (columns may shrink; text ends in …) */
.grid.home { grid-template-columns: minmax(0, 1fr); }
.home-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.home-cols > *, .home .card { min-width: 0; }
.home .row { min-width: 0; }
.home .row .main-t { min-width: 0; overflow: hidden; }
.home .row .main-t b, .home .row .main-t > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home .row > .btn { flex: none; }
@media (max-width: 900px) { .home-cols { grid-template-columns: minmax(0, 1fr); } }
.home-side { display: grid; gap: 14px; min-width: 0; align-content: stretch; } /* Recent messages, matching Needs you */

/* project page: keep the left column inside its slot so the chat never covers it */
.proj > .grid { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.proj > .grid > *, .proj .card { min-width: 0; }
.proj .card > div, .proj .files, .proj .file-row, .proj .file { min-width: 0; max-width: 100%; }
.proj .file span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* owner project board: all six stages fit the width, long titles clamp to three lines */
.board { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(120px, 1fr)); grid-auto-columns: auto; gap: 10px; }
.board .col { min-width: 0; padding: 10px; }
.board .col-h { gap: 6px; min-width: 0; font-size: 12.5px; }
.board .col-h > :not(.n) { flex: none; }
.board .pcard { padding: 10px 11px; }
.board .pcard b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; font-size: 13.5px; }
.board .pcard .meta { flex-wrap: wrap; column-gap: 8px; row-gap: 2px; }
.board .pcard .meta span { white-space: nowrap; }
@media (max-width: 760px) { .board { display: block; } }

/* project board drag and drop: the target column glows without changing its layout; a dropped card pulses once */
.board { align-items: stretch; }
.board .col { transition: border-color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease); }
.board .col.drop-on { border-color: var(--accent); background-color: rgb(239 224 205 / .12); box-shadow: inset 0 0 0 1px var(--accent), 0 10px 30px -14px rgb(0 0 0 / .5); }
.board .pcard[draggable] { cursor: grab; }
.board .pcard.dragging { display: none; }
.board .pcard.landed { animation: pc-land .7s var(--ease); }
@keyframes pc-land { 0% { box-shadow: 0 0 0 0 rgb(239 224 205 / .55); } 100% { box-shadow: 0 0 0 10px rgb(239 224 205 / 0); } }
@media (prefers-reduced-motion: reduce) { .board .pcard.landed { animation: none; } }
/* the gap that opens where a dragged card will land */
.board .pc-slot { border: 1.5px dashed var(--accent); border-radius: 12px; margin-bottom: 8px; background: rgb(239 224 205 / .08); animation: pc-slot-in .18s var(--ease); }
@keyframes pc-slot-in { from { opacity: 0; transform: scaleY(.6); } }
.board .pcard.landed { animation: pc-land .7s var(--ease), pc-settle .32s cubic-bezier(.2,.8,.2,1); }
@keyframes pc-settle { from { transform: scale(.94); opacity: .6; } }

/* ==========================================================================
   Video player (player.js): the browser's controls swapped for the buttons' liquid glass.
   White on the picture in day and night alike, since the video is what they sit on.
   ========================================================================== */
.sp { position: relative; display: block; width: fit-content; max-width: 100%; white-space: normal; line-height: normal; outline: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.media-player .sp { width: 100%; }
.sp video { display: block; }
.sp.idle { cursor: none; }
/* a soft shade under the controls so they read on a bright frame */
.sp-ui { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 8px 8px; container-type: inline-size; color: #fff;
  border-radius: 0 0 var(--sp-r, 10px) var(--sp-r, 10px); background: linear-gradient(transparent, rgb(0 9 24 / .6)); }
/* they fade out, but come back at once: a fade-in can stall (a paused page) and leave them invisible */
.sp.idle .sp-ui { opacity: 0; translate: 0 6px; pointer-events: none; transition: opacity .3s, translate .3s; }
.sp.bad .sp-ui, .sp.bad .sp-mid { display: none; }
.sp svg { fill: currentColor; }
.sp svg .w { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sp:not(.paused) .i-play, .sp.paused .i-pause, .sp:not(.muted) .i-mute, .sp.muted .i-vol, .sp:not(.fs) .i-exit, .sp.fs .i-full { display: none; }
/* the timeline: played in white, loaded a lighter line, comment dots in cream */
.sp-line { --p: 0; --b0: 0; --b1: 0; position: relative; height: 18px; margin: 0 7px; cursor: pointer; touch-action: none; }
.sp-line::before, .sp-buf, .sp-done { content: ""; position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; transition: height .15s, margin .15s; }
.sp-line::before { right: 0; background: rgb(255 255 255 / .22); }
.sp-buf { left: calc(var(--b0) * 100%); width: calc((var(--b1) - var(--b0)) * 100%); background: rgb(255 255 255 / .35); }
.sp-done { width: calc(var(--p) * 100%); background: #fff; box-shadow: 0 0 8px rgb(255 255 255 / .45); }
.sp-line:hover::before, .sp-line:hover .sp-buf, .sp-line:hover .sp-done, .sp.drag .sp-line::before, .sp.drag .sp-buf, .sp.drag .sp-done { height: 6px; margin-top: -3px; }
.sp-knob { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgb(0 0 0 / .4); scale: 0; transition: scale .15s; pointer-events: none; }
.sp-line:hover .sp-knob, .sp.drag .sp-knob { scale: 1; }
.sp-marks { position: absolute; inset: 0; pointer-events: none; }
.sp-mark { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #efe0cd; box-shadow: 0 0 0 2px rgb(0 9 24 / .55); pointer-events: auto; transition: scale .15s; }
.sp-mark:hover { scale: 1.35; }
.sp-mark.done { background: rgb(255 255 255 / .45); }
.sp-tip { position: absolute; bottom: 20px; left: 0; translate: -50% 0; max-width: min(260px, 92cqw); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgb(0 9 24 / .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); visibility: hidden; pointer-events: none; }
.sp.tipping .sp-tip { visibility: visible; }
/* the row of glass buttons */
.sp-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.sp-gap { flex: 1; }
.sp .sp-b { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; flex: none; }
.sp .sp-b svg { width: 17px; height: 17px; }
.sp .sp-rate { width: auto; min-width: 34px; padding: 0 10px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.theme-alturas .sp .btn.sp-b, .theme-alturas .sp .btn.sp-mid { color: #fff; --glass: rgb(255 255 255 / .1); }
.theme-alturas .sp .btn.sp-b:hover, .theme-alturas .sp .btn.sp-mid:hover { --glass: rgb(255 255 255 / .2); }
.sp .sp-mid { position: absolute; left: 50%; top: calc((100% - 66px) / 2); translate: -50% -50%; width: 58px; height: 58px; padding: 0; display: grid; place-items: center; visibility: hidden; }
.sp .sp-mid svg { width: 26px; height: 26px; }
.sp.paused .sp-mid { visibility: visible; }
@media (hover: none) { .sp:not(.idle) .sp-mid { visibility: visible; } }
.sp.wait .sp-mid { visibility: hidden; }
.sp-vol { display: flex; align-items: center; }
.sp-v { -webkit-appearance: none; appearance: none; width: 0; height: 18px; margin: 0; padding: 0; background: transparent; cursor: pointer; visibility: hidden; transition: width .2s, margin .2s; }
.sp-vol:hover .sp-v, .sp-v:focus-visible { width: 64px; margin: 0 6px 0 4px; visibility: visible; }
.sp-v::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #fff calc(var(--v, 1) * 100%), rgb(255 255 255 / .25) 0); }
.sp-v::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border: 0; border-radius: 50%; background: #fff; }
.sp-v::-moz-range-track { height: 4px; border-radius: 4px; background: rgb(255 255 255 / .25); }
.sp-v::-moz-range-progress { height: 4px; border-radius: 4px; background: #fff; }
.sp-v::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
@media (hover: none) { .sp-v { display: none; } } /* phones set the volume with their own buttons */
.sp-time { margin-left: 4px; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 1px 3px rgb(0 0 0 / .5); }
.sp-time b, .sp-time i { font: inherit; }
.sp-time > span { opacity: .7; }
/* loading, and the word that shows for a moment (+5s, Muted, 1.5×) */
.sp-spin { position: absolute; left: 50%; top: calc((100% - 66px) / 2); width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 3px solid rgb(255 255 255 / .25); border-top-color: #fff; animation: sp-spin .8s linear infinite; display: none; pointer-events: none; }
.sp.wait .sp-spin { display: block; }
@keyframes sp-spin { to { rotate: 360deg; } }
.sp-flash { position: absolute; left: 50%; top: 14px; translate: -50% 0; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff;
  background: rgb(0 9 24 / .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); pointer-events: none; transition: opacity .3s; }
.sp-flash.out { opacity: 0; }
/* small players (a chat video): the extras step aside */
@container (max-width: 330px) { .sp-time > span, .sp .sp-rate { display: none; } .sp-row { gap: 4px; } }
@container (max-width: 210px) { .sp-vol, .sp-time { display: none; } }
/* real full screen, and the big view over the blurred page when the browser won't allow it */
.sp:fullscreen { width: 100%; height: 100%; max-width: none; display: grid; place-items: center; background: #000; --sp-r: 0px; }
.sp:fullscreen video { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; border-radius: 0; }
.sp-over .sp { --sp-r: 14px; cursor: auto; }
.sp-over .sp.idle { cursor: none; }
@media (prefers-reduced-motion: reduce) { .sp-ui, .sp-line *, .sp-v { transition: none; } }
.inv-paid { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: rgb(80 180 130 / .14); color: #1d5a3c; font-weight: 600; font-size: 13px; }
.inv-paid a { color: inherit; }
.pay-page > .card h3 { margin-bottom: 10px; }
.pay-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pay-list { display: grid; gap: 6px; margin-bottom: 8px; }
.pay-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; }
.pay-row.late { border-color: rgb(229 83 75 / .45); }
.pay-row .main-t { flex: 1 1 220px; min-width: 0; display: grid; gap: 2px; }
.pay-row .main-t span { font-size: 12px; }
.pay-empty { font-size: 13px; }
.inv-st.st-late { background: rgb(229 83 75 / .3); }
.pay-tbl-wrap { overflow-x: auto; }
.pay-tbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.pay-tbl th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line-2); }
.pay-tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.pay-tbl td.num { text-align: right; }
.pay-tbl tbody tr { cursor: pointer; }
.pay-tbl tbody tr:hover td { background: var(--line-2); }
@media (max-width: 600px) { .pay-tiles { grid-template-columns: minmax(0, 1fr) !important; } }
.kv.contact > h3 { margin: 0; }
.socials { display: flex; flex-wrap: wrap; gap: 6px; }
.socials .btn span { margin-left: 6px; font-weight: 400; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-inps { gap: 8px; }
.ctabs { margin-bottom: 14px; }
.pros-tiles { margin-bottom: 14px; }
.pros-filters { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px; margin-bottom: 12px; align-items: center; }
.pros-tbl td { vertical-align: top; }
.pros-tbl td.pros-note { white-space: normal; max-width: 260px; min-width: 140px; color: var(--text-2); }
.pros-tbl .num { text-align: right; }
.inv-st.pst-new { background: var(--line-2); } .inv-st.pst-contacted { background: rgb(240 200 120 / .3); } .inv-st.pst-replied { background: rgb(120 170 240 / .3); }
.inv-st.pst-client { background: rgb(80 180 130 / .35); } .inv-st.pst-skip { background: rgb(229 83 75 / .2); }
.pros-bio { font-size: 13px; white-space: pre-wrap; }
@media (max-width: 700px) { .pros-filters { grid-template-columns: minmax(0, 1fr); } }
.best-time { margin-bottom: 14px; display: grid; gap: 10px; }
.best-time h3 { margin: 0; }
.bt-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.bt-row { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; min-width: 0; }
.bt-row:hover, .bt-row.on { background: var(--line-2); }
.bt-row:focus-visible { outline: 2px solid currentColor; }
.bt-main { flex: 1; min-width: 0; display: grid; gap: 1px; font-size: 13px; }
.bt-main small { font-size: 12px; color: var(--text-3); }
.bt-when { display: grid; gap: 2px; font-size: 12px; text-align: right; white-space: nowrap; color: var(--text-2); }
.bt-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); margin-right: 5px; vertical-align: 1px; flex: none; }
.bt-dot.live { background: #3fbf7f; box-shadow: 0 0 0 3px rgb(63 191 127 / .2); }
.pros-awake { white-space: nowrap; }
@media (max-width: 900px) { .pros-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* ---------- Sign-up welcome (join.php): the client space's sky, a glass card, the site's ridge-and-star ----------
   Everything rises into place from a soft blur (never from invisible). Day/night follows the switch, shared with
   alturas.ca and the client space. */
body.join { display: block; padding: 0; }
.join .sky { left: 0; }
.wl-mode { position: fixed; z-index: 3; top: calc(env(safe-area-inset-top, 0px) + 14px); right: max(14px, env(safe-area-inset-right, 0px)); }
.wl-mode .mode-btn { width: 42px; height: 42px; border-radius: 14px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
:root[data-mode="day"] .wl-mode .mode-btn { background: rgb(255 255 255 / .3); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .8), 0 0 0 1px rgb(0 14 37 / .06); }
.wl { position: relative; z-index: 1; min-height: 100dvh; display: grid; align-content: center; justify-items: center; gap: 18px;
  padding-block: calc(env(safe-area-inset-top, 0px) + 56px) calc(env(safe-area-inset-bottom, 0px) + 48px);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wl .lockup-sub { margin-bottom: 0; }
.wl-card { width: min(460px, 100%); border-radius: 26px; padding: clamp(22px, 5vw, 34px); display: grid; gap: 12px; text-align: center; }
.theme-alturas .wl-card { --glass: rgb(6 23 53 / .32); -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); }
:root[data-mode="day"] .theme-alturas .wl-card { --glass: rgb(248 241 231 / .5); }
.wl-eyebrow { font-size: 11.5px; letter-spacing: .2em; margin-right: -.2em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.theme-alturas h1.wl-title { font-size: clamp(34px, 8vw, 50px); line-height: 1.08; letter-spacing: -.02em; margin: 0; padding-bottom: .5em; text-wrap: balance; }
.wl-note { margin: 0 auto; max-width: 34ch; color: var(--text-2); font-size: 15px; line-height: 1.55; }
/* each sentence on its own centered line, wrapped evenly */
.wl-note, .wl-note span { text-wrap: balance; }
.wl-note span { display: block; }
.wl-note span + span { margin-top: 6px; }

/* The highlight: ridge wipes in under the word, then the north star lands on the summit and twinkles */
.wl .hl { position: relative; display: inline-block; white-space: nowrap; }
.wl .hl-ridge { position: absolute; left: 0; bottom: -.5em; width: calc(100% + .14em); height: .48em; overflow: visible; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%); mask-image: linear-gradient(90deg, transparent, #000 16%);
  clip-path: inset(-60% 100% -60% -2%); animation: wl-wipe 1.6s .75s var(--ease-out) forwards; }
.wl .hl-ridge-line { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.wl .hl-ridge-fill { fill: currentColor; opacity: .14; }
.wl .hl-star { position: absolute; right: -.32em; bottom: -.04em; width: .36em; height: .48em; fill: currentColor; transform-origin: 50% 100%;
  filter: drop-shadow(0 0 10px rgb(239 224 205 / .85)); scale: .2; rotate: -40deg; animation: wl-star .6s 2.1s var(--ease-out) forwards, wl-twinkle 3.2s 2.8s ease-in-out infinite; }
:root[data-mode="day"] .wl .hl-star { filter: drop-shadow(0 0 8px rgb(255 214 140 / .9)); }
@keyframes wl-wipe { to { clip-path: inset(-50% -4% -50% -2%); } }
@keyframes wl-star { to { scale: 1; rotate: 0deg; } }
@keyframes wl-twinkle { 0%, 100% { scale: 1; } 50% { scale: .82; } }

.wl-steps { list-style: none; margin: 4px 0 2px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; counter-reset: step; }
.wl-steps li { display: grid; justify-items: center; gap: 2px; padding: 12px 6px 11px; border-radius: 16px; font-size: 12px; color: var(--text-3); line-height: 1.3;
  background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); transition: translate .35s var(--ease-out), background-color .35s; }
.wl-steps li:hover { translate: 0 -3px; background: rgb(255 255 255 / .08); }
.wl-steps .icon-img { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 6px; }
.wl-steps b { color: var(--text); font-size: 14px; }
:root[data-mode="day"] .wl-steps li { background: rgb(255 255 255 / .28); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .8), 0 0 0 1px rgb(0 14 37 / .05); }

.wl-form { display: grid; gap: 10px; text-align: left; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.wl-lead { margin: 0 0 2px; text-align: center; font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.wl-form .field { margin: 0; }
.wl-form .inp { font-size: 16px; padding: 12px 14px; border-radius: 14px; width: 100%; box-sizing: border-box; }
.wl-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.wl .btn.wl-go { justify-content: center; padding: 14px; font-size: 15.5px; margin-top: 4px; text-decoration: none; }
.wl-fine { color: var(--text-3); font-size: 12px; line-height: 1.45; text-align: center; }
.wl-foot { margin: 0; font-size: 13.5px; color: var(--text-2); min-height: 1em; }
.wl-foot a { color: var(--text); font-weight: 600; }
.wl .gate-err { text-align: center; }

/* Password strength (red → yellow → green) and the live "matches" note beside "Again" */
.wl { --weak: #e5534b; --fair: #e9b949; --good: #3fbf7f; }
:root[data-mode="day"] .wl { --weak: #c8392f; --fair: #b8860b; --good: #1f9a62; }
.wl-meter { display: flex; align-items: center; gap: 8px; margin-top: 7px; min-height: 14px; }
.wl-bar { flex: 1; height: 4px; border-radius: 4px; background: rgb(255 255 255 / .1); overflow: hidden; }
:root[data-mode="day"] .wl-bar { background: rgb(0 14 37 / .1); }
.wl-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--weak); transition: width .45s var(--ease-out), background-color .45s var(--ease); }
.wl-meter[data-s="1"] i { width: 25%; background: var(--weak); }
.wl-meter[data-s="2"] i { width: 50%; background: color-mix(in srgb, var(--weak) 45%, var(--fair)); }
.wl-meter[data-s="3"] i { width: 75%; background: var(--fair); }
.wl-meter[data-s="4"] i { width: 100%; background: var(--good); }
.wl-says { font-size: 11.5px; font-weight: 600; white-space: nowrap; min-width: 4.5em; text-align: right; }
.wl-meter[data-s="1"] .wl-says, .wl-meter[data-s="2"] .wl-says { color: var(--weak); }
.wl-meter[data-s="3"] .wl-says { color: var(--fair); }
.wl-meter[data-s="4"] .wl-says { color: var(--good); }
.wl-form .wl-lab { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.wl-forgot { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--text-2); }
.wl-forgot:hover { color: var(--text); }
.wl-match { font-size: 11.5px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.wl-match.ok { color: var(--good); }
.wl-match.no { color: var(--weak); }

/* Show / hide passwords: one eye in the Password box (slashed while hidden) shows both boxes */
.wl-pw { position: relative; display: block; }
.wl-form .wl-pw .inp { padding-right: 44px; }
.wl-eye { position: absolute; top: 50%; right: 6px; translate: 0 -50%; width: 34px; height: 34px; border: 0; border-radius: 10px; padding: 0;
  display: grid; place-items: center; background: transparent; color: var(--text-3); cursor: pointer; transition: color .2s, background-color .2s; }
.wl-eye:hover { color: var(--text); background: rgb(255 255 255 / .08); }
:root[data-mode="day"] .wl-eye:hover { background: rgb(0 14 37 / .06); }
.wl-eye:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; color: var(--text); }
.wl-eye svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wl-eye .e-slash { transition: stroke-dashoffset .3s var(--ease-out); stroke-dasharray: 23; stroke-dashoffset: 0; }
.wl-eye[aria-pressed="true"] .e-slash { stroke-dashoffset: 23; }
.wl-eye[aria-pressed="true"] { color: var(--text); }

/* The ? on the Rise logo and its bubble. The bubble grows out of the ? (it never fades in from nothing) */
.wl-brand { position: relative; z-index: 2; }
.rs-wrap { position: relative; display: block; grid-column: 3; grid-row: 1; }
.rs-wrap .rs-mark { display: block; }
.wl-q { position: absolute; top: -8px; right: -10px; width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; font: 700 13px/1 "urca", ui-sans-serif, system-ui, sans-serif; color: #000e25; background: #efe0cd;
  box-shadow: 0 0 0 2px #000e25, 0 4px 12px rgb(0 0 0 / .35); transition: scale .25s var(--ease-out); }
.wl-q:hover { scale: 1.12; }
.wl-q:focus-visible { outline: 2px solid #efe0cd; outline-offset: 3px; }
.wl-q:not(.seen)::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; box-shadow: 0 0 0 2px #efe0cd; animation: wl-ping 2.4s 2.6s var(--ease-out) 3 both; }
@keyframes wl-ping { from { scale: 1; opacity: .9; } 70%, to { scale: 2; opacity: 0; } }
:root[data-mode="day"] .wl-q { color: #efe0cd; background: #000e25; box-shadow: 0 0 0 2px #efe0cd, 0 4px 12px rgb(0 14 37 / .25); }
:root[data-mode="day"] .wl-q:not(.seen)::after { box-shadow: 0 0 0 2px #000e25; }
.wl-bubble { position: absolute; z-index: 5; width: min(320px, calc(100vw - 32px)); box-sizing: border-box; padding: 18px 18px 16px; border-radius: 20px;
  text-align: left; display: grid; gap: 8px; color: var(--text); font-size: 13.5px; line-height: 1.5;
  background: rgb(6 23 53 / .62); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16), inset 0 1px 1px rgb(255 255 255 / .2), 0 24px 60px -20px rgb(0 0 0 / .7);
  transform-origin: 0 34px; animation: wl-pop .45s var(--ease-out) both; }
.wl-bubble.below { transform-origin: var(--tail) 0; }
.wl-bubble[hidden] { display: none; }
@keyframes wl-pop { from { scale: .88; filter: blur(6px); } }
/* the point aiming at the ? (left edge beside it, top edge below it) */
.wl-bubble::before { content: ""; position: absolute; width: 12px; height: 12px; background: inherit; rotate: 45deg;
  left: -6px; top: 28px; box-shadow: inset 1px -1px 0 rgb(255 255 255 / .16); -webkit-backdrop-filter: none; backdrop-filter: none; }
.wl-bubble.below::before { left: calc(var(--tail) - 6px); top: -6px; box-shadow: inset 1px 1px 0 rgb(255 255 255 / .16); }
:root[data-mode="day"] .wl-bubble { background: rgb(248 241 231 / .8); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .9), 0 0 0 1px rgb(0 14 37 / .08), 0 24px 60px -24px rgb(0 14 37 / .45); }
.wl-bubble p { margin: 0; color: var(--text-2); }
.wl-bubble p b, .wl-bl b { color: var(--text); }
.wl-bt { font-family: "urca", ui-sans-serif, system-ui, sans-serif; font-size: 19px; line-height: 1.2; }
.wl-bl { list-style: none; margin: 2px 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.wl-bl li { padding: 7px 9px; border-radius: 11px; font-size: 11.5px; line-height: 1.3; color: var(--text-3); background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.wl-bl li b { display: block; font-size: 13px; }
:root[data-mode="day"] .wl-bl li { background: rgb(255 255 255 / .45); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .9), 0 0 0 1px rgb(0 14 37 / .05); }
.wl-bf { font-size: 12.5px; }
.wl-bx { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--text-3);
  font-size: 20px; line-height: 1; cursor: pointer; }
.wl-bx:hover { background: rgb(255 255 255 / .1); color: var(--text); }
@media (prefers-reduced-motion: reduce) { .wl-bubble { animation: none; } .wl-q::after { animation: none; display: none; } }

/* Arrival: each piece rises a little and comes into focus, one after another */
.wl-rise { animation: wl-rise 1s var(--ease-out) var(--d, 0s) both; }
@keyframes wl-rise { from { translate: 0 18px; filter: blur(8px); } }
@media (max-width: 420px) { .wl-two { grid-template-columns: minmax(0, 1fr); } .wl-steps li span { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .wl-rise, .wl-steps li { animation: none; transition: none; }
  .wl .hl-ridge { animation: none; clip-path: none; }
  .wl .hl-star { animation: none; scale: 1; rotate: 0deg; }
}

/* Phone polish: lighter header, icon + name on one row, touch wording. */
.up-touch { display: none; }
@media (hover: none) { .up-zone .up-desk { display: none; } .up-zone .up-touch { display: inline; } }
@media (max-width: 760px) {
  .m-brand { gap: 6px; }
  .m-brand .m-search, .m-brand .radio-btn, .m-brand > button { width: 32px; height: 32px; }
  .topbar > div:first-child:has(.page-icon) { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
  .topbar > div:first-child:has(.page-icon) .sub { margin-top: 0; font-size: 14px; color: var(--text-2); }
}
@media (max-width: 400px) { .m-brand b { display: none; } }
@media (max-width: 760px) { .m-brand .m-search ~ * { margin-left: 0; } }
@media (max-width: 600px) {
  .pay-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .pay-tiles > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) { .plan-tabs { min-width: 0; } .plan-tabs button { padding: 7px 4px; min-width: 0; text-align: center; } }

/* Install card: step-by-step how-to */
.install-card .inst-more { grid-column: 1 / -1; border-top: 1px solid var(--line-2); padding-top: 12px; }
.inst-more summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); padding: 4px 0; }
.inst-more summary::-webkit-details-marker { display: none; }
.inst-more summary svg { width: 16px; height: 16px; transition: transform .2s; }
.inst-more[open] summary svg { transform: rotate(180deg); }
.inst-more[open] .inst-how { animation: inst-in .25s ease; }
@keyframes inst-in { from { opacity: 0; transform: translateY(-4px); } }
.install-card .inst-how { margin-top: 10px; display: grid; gap: 12px; justify-items: center; }
.inst-ask { margin: 0; font-size: 13px; color: var(--text-2); }
.inst-pick { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 360px; }
.inst-pick label { padding: 9px 0; text-align: center; border-radius: 7px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-2); }
.inst-pick label:has(input:checked) { background: rgb(255 255 255 / .55); color: var(--text); }
.inst-os { display: none; justify-self: stretch; animation: inst-in .25s ease; }
.inst-how:has([value=ios]:checked) .inst-os.ios, .inst-how:has([value=android]:checked) .inst-os.android { display: block; }
.install-card h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.inst-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; }
.inst-steps li { counter-increment: st; position: relative; padding-left: 34px; min-height: 24px; font-size: 14px; line-height: 1.5; }
.inst-steps li::before { content: counter(st); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgb(255 255 255 / .5); color: var(--text); }
.inst-steps li b, .install-card .inst-how b { display: inline; }
.ic-inline { width: 17px; height: 17px; vertical-align: -3px; }
.inst-note { margin: 10px 0 0; font-size: 13px; }

/* Account page: profile header + settings list */
.acc-hero { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 26px 18px 20px; }
.acc-hero h2 { margin: 8px 0 0; font-size: 22px; }
.acc-pic { all: unset; cursor: pointer; position: relative; width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 0 0 3px rgb(255 255 255 / .6), 0 8px 24px rgb(0 0 0 / .15); }
.acc-pic img, .acc-pic span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-size: 36px; font-weight: 700; background: rgb(255 255 255 / .4); }
.acc-pic i { position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: #fff; box-shadow: 0 0 0 3px rgb(255 255 255 / .8); }
.acc-pic i svg { width: 15px; height: 15px; }
.acc-badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / .45); margin: 2px 0 8px; }
.acc-list { padding: 8px 6px; display: grid; }
.acc-list h4 { margin: 14px 12px 4px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.acc-list h4:first-child { margin-top: 8px; }
.acc-row { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; }
.acc-row:hover, .acc-row:active { background: rgb(255 255 255 / .3); }
.acc-row > svg { width: 18px; height: 18px; color: var(--text-3); }
.acc-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgb(255 255 255 / .5); }
.acc-ic svg { width: 18px; height: 18px; }
.acc-tx { display: grid; min-width: 0; }
.acc-tx b { font-size: 15px; font-weight: 600; }
.acc-tx small { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.acc-toggle .sw { width: 44px; height: 26px; border-radius: 13px; background: rgb(0 0 0 / .18); position: relative; transition: background .2s; }
.acc-toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .2s; }
.acc-toggle input:checked + .sw { background: #34c759; }
.acc-toggle input:checked + .sw::after { transform: translateX(18px); }
.acc-out { display: grid; }
.acc-out .btn { justify-content: center; color: #c0392b; font-weight: 600; padding: 13px; }
.modal-b > .field:only-child > label:first-child { display: none; }

/* Password page */
.pw-hub { display: grid; gap: 8px; }
.pw-f { display: grid; gap: 6px; }
.pw-f > span:first-child { font-size: 13px; font-weight: 600; color: var(--text-2); }
.pw-in { position: relative; display: block; }
.pw-in .inp { width: 100%; box-sizing: border-box; padding-right: 46px; }
.pw-eye { all: unset; cursor: pointer; position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--text-3); }
.pw-eye svg { width: 19px; height: 19px; }
.pw-eye .pw-slash { display: none; }
.pw-eye.on { color: var(--text); }
.pw-eye.on .pw-slash { display: inline; }
.pw-line { border: 0; border-top: 1px solid var(--line-2); margin: 10px 0; width: 100%; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.pw-meter i { height: 5px; border-radius: 3px; background: rgb(0 0 0 / .1); transition: background .2s; }
.pw-meter.lv1 i:nth-child(-n+1) { background: #e5484d; }
.pw-meter.lv2 i:nth-child(-n+2) { background: #f5a524; }
.pw-meter.lv3 i:nth-child(-n+3) { background: #7cc35f; }
.pw-meter.lv4 i { background: #2fa84f; }
.pw-hint { font-size: 12.5px; color: var(--text-3); min-height: 1em; margin-bottom: 6px; }
.pw-hint.ok { color: #2fa84f; } .pw-hint.bad { color: #e5484d; }
.pw-go { justify-content: center; padding: 12px; margin-top: 4px; }
.pw-go:disabled { opacity: .45; cursor: default; }

/* Board icons (labels show on wide screens, icons alone on phones) */
.pl-ib { display: inline-flex; align-items: center; gap: 6px; }
.pl-ib svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pe-touch { display: none; }
@media (hover: none) { .pboard-empty .pe-desk { display: none; } .pboard-empty .pe-touch { display: inline; } }
@media (max-width: 760px) {
  /* Top bar: board picker stretches, + Idea stays a word, Note and Sparks become round icons */
  .pboard-corner.left { right: 8px; overflow: visible; }
  .pboard-corner.left .tip { display: none; }
  .pboard-corner .pl-boards-btn { flex: 1 1 auto !important; min-width: 0; max-width: none; }
  .pboard-corner .pl-boards-btn span { overflow: hidden; text-overflow: ellipsis; }
  .pboard-corner .btn { height: 38px; box-sizing: border-box; }
  .pboard-corner .pl-ib { width: 38px; padding: 0; justify-content: center; }
  .pboard-corner .pl-ib span, .pboard-corner .pl-full span { display: none; }
  .pboard-corner .pl-ib svg, .pboard-corner .pl-full svg { width: 18px; height: 18px; }
  .pboard-corner .pl-full { width: 38px; padding: 0; justify-content: center; }
  /* Bottom right: only what works right now, fully visible */
  .pboard-corner .btn, .theme-alturas .pboard-corner .btn:disabled { opacity: 1; }
  .pboard-corner .btn:disabled { display: none; }
  /* Empty board message stays inside the phone's view and wraps */
  .pboard-empty { left: 16px; top: 66px; max-width: min(460px, calc(100vw - 66px)); }
  .pboard-empty .chips { flex-wrap: wrap; }
  .pboard-empty b { font-size: 20px; }
  .pboard-empty .chip { padding: 9px 14px; font-size: 14px; }
}
.pboard-empty span b { font-size: inherit; }
@media (hover: none) { .pc-grip { font-size: 18px; padding: 8px 12px 8px 4px; margin: -8px -6px -8px -4px; } .pc-link { width: 20px; height: 20px; margin-top: -10px; right: -11px; } }

/* Phone search: white bar that grows out of the search icon, right to left */
#m-qbar { position: fixed; z-index: 70; left: 12px; right: 12px; top: var(--mq-top, 12px); pointer-events: none; color: #0b1a33; }
#m-qbar::before { content: ""; position: fixed; inset: 0; z-index: -1; background: rgb(0 10 30 / .22); opacity: 0; transition: opacity .3s; }
#m-qbar.open::before { opacity: 1; pointer-events: auto; }
.mq-field { margin-left: auto; width: 44px; height: 44px; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding: 0 4px 0 13px; border-radius: 22px; overflow: hidden;
  background: #fff; box-shadow: 0 8px 28px rgb(0 20 50 / .18); opacity: 0; transition: width .38s cubic-bezier(.2, .8, .2, 1), opacity .18s; }
#m-qbar.open .mq-field { width: 100%; opacity: 1; pointer-events: auto; }
.mq-field > svg { width: 18px; height: 18px; flex: none; color: #5b6b82; }
.mq-field input { all: unset; flex: 1; min-width: 0; font-size: 16px !important; color: #0b1a33; }
.mq-field input::placeholder { color: #8a97a8; }
.mq-field input::-webkit-search-cancel-button { display: none; }
.mq-x { all: unset; cursor: pointer; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #5b6b82; }
.mq-x svg { width: 16px; height: 16px; }
.mq-x:active { background: #eef1f5; }
.mq-res { margin-top: 8px; max-height: 62dvh; overflow-y: auto; padding: 6px; display: grid; gap: 4px; border-radius: 20px; background: #fff;
  box-shadow: 0 12px 34px rgb(0 20 50 / .2); pointer-events: auto; animation: mq-drop .25s cubic-bezier(.2, .8, .2, 1); }
.mq-res[hidden] { display: none; }
@keyframes mq-drop { from { opacity: 0; transform: translateY(-6px); } }
.mq-res .q-hit { background: none; box-shadow: none; color: #0b1a33; padding: 11px 12px; }
.mq-res .q-hit:active, .mq-res .q-hit:focus-visible { background: #f1f4f8; }
.mq-res .q-hit > span:not(.q-type) { color: #4a5a70; } .mq-res .q-type, .mq-res .q-hit small { color: #8a97a8; }
.mq-res .q-hint { padding: 12px; font-size: 14px; color: #5b6b82; }
@media (prefers-reduced-motion: reduce) { .mq-field { transition: opacity .15s; } }

/* Invoices: column labels on the line editor; phones stack each line and keep the document readable */
.inv-head { margin-bottom: 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.inv-meta > b { white-space: nowrap; }
@media (max-width: 760px) {
  .inv-line { grid-template-columns: 1fr 1fr auto; }
  .inv-line > input:first-child { grid-column: 1 / -1; }
  .inv-head > span:first-child { display: none; }
  .inv-head { grid-template-columns: 1fr 1fr auto; }
  .inv-modal .modal-b { padding-left: 12px; padding-right: 12px; }
  .inv-doc { padding: 18px 14px !important; }
  .inv-top { gap: 10px; }
  .inv-brand { letter-spacing: .14em !important; }
  .inv-tbl { font-size: 13px; }
  .inv-tbl th, .inv-tbl td { padding-left: 2px; padding-right: 2px; }
  .inv-tbl th:nth-child(3), .inv-tbl td:nth-child(3) { display: none; } /* Price: qty × amount is enough on a phone */
  .inv-acts { display: grid; grid-template-columns: 1fr 1fr; }
  .inv-acts .btn { justify-content: center; }
  .inv-acts .btn.primary { grid-column: 1 / -1; padding: 13px; font-size: 15px; }
}
.inv-head > span:last-child { width: 34px; }

/* Payments: the Pay button stands out from View / Print */
.btn.pay-cta, .theme-alturas .btn.pay-cta { background: #000e25; color: #fff; box-shadow: 0 6px 18px rgb(11 26 51 / .25); }
.btn.pay-cta:hover { background: #16294a; }
.pay-row .inv-st.st-sent { display: none; } /* already under "To pay" */
@media (max-width: 600px) {
  /* All invoices: each row becomes a small card instead of a table that scrolls sideways */
  .pay-tbl thead { display: none; }
  .pay-tbl, .pay-tbl tbody { display: block; }
  .pay-tbl tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 2px; border-bottom: 1px solid var(--line-2); }
  .pay-tbl td { display: block; padding: 0 !important; border: 0 !important; white-space: normal; font-size: 13px; }
  .pay-tbl td:nth-child(1) { grid-column: 1; grid-row: 1; font-size: 14px; }
  .pay-tbl td:nth-child(5) { grid-column: 2; grid-row: 1; text-align: right; font-weight: 700; }
  .pay-tbl td:nth-child(6) { grid-column: 2; grid-row: 2 / 5; text-align: right; align-self: center; }
  .pay-tbl td[data-l] { grid-column: 1; color: var(--text-3); font-size: 12.5px; }
  .pay-tbl td[data-l]::before { content: attr(data-l) " · "; }
  .pay-tbl-wrap { overflow: visible; }
}
:root .theme-alturas .btn.pay-cta, :root[data-mode] .theme-alturas .btn.pay-cta { background: #000e25 !important; color: #fff !important; box-shadow: 0 6px 18px rgb(11 26 51 / .25) !important; }

/* Payments on phones: one summary card (three numbers side by side), then the lists */
.tile.done b { color: #2f8f4e; }
.tile.late b { color: #c8392f; }
@media (max-width: 600px) {
  .pay-tiles, .pay-tiles[style] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 0 !important; padding: 14px 6px;
    border-radius: 18px; background: rgb(255 255 255 / .22); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55); }
  .pay-tiles > .tile, .pay-tiles > :first-child { grid-column: auto !important; background: none !important; box-shadow: none !important; border: 0 !important;
    padding: 2px 8px !important; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; text-align: center; }
  .pay-tiles > .tile::before { display: none; }
  .pay-tiles > .tile + .tile { border-left: 1px solid rgb(0 14 37 / .1) !important; }
  .pay-tiles .tile b { font-size: 16px; overflow-wrap: anywhere; }
  .pay-tiles .tile span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
  /* each invoice to pay: details on top, View + Pay as two even buttons */
  .pay-row { display: grid; grid-template-columns: 1fr 1fr; padding: 12px; }
  .pay-row .main-t { grid-column: 1 / -1; }
  .pay-row .inv-st { grid-column: 1 / -1; justify-self: start; }
  .pay-row .btn { justify-content: center; padding: 10px 8px; }
  .pay-row .btn.pay-cta { order: 3; }
}
@media (max-width: 600px) { .pay-tiles > .tile { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-radius: 0 !important; } .pay-tiles { backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4); } }

/* Monthly retainers */
.ret-card h3 { display: flex; align-items: center; gap: 8px; }
.ret-card h3 .inv-st { margin-left: auto; }
.ret-box { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line-2); border-radius: 14px; }
.ret-head { display: flex; align-items: center; gap: 10px; } .ret-head b { font-size: 15px; } .ret-head .inv-st { margin-left: auto; }
.ret-title { font-size: 18px; font-weight: 700; margin: -2px 0 10px; }
.ret-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ret-facts > div { display: grid; } .ret-facts b { font-size: 17px; } .ret-facts span { font-size: 12px; color: var(--text-3); }
.ret-incl { display: grid; gap: 4px; font-size: 13.5px; line-height: 1.5; padding: 10px 12px; border-radius: 10px; background: rgb(255 255 255 / .18); margin-top: 2px; }
.ret-incl .muted { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.ret-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ret-client { display: grid; gap: 10px; } .ret-client small { line-height: 1.5; }
.ret-warn { padding: 10px 12px; border-radius: 10px; background: rgb(229 83 75 / .12); color: #b3322a; font-size: 13.5px; }
.ret-st-active { background: rgb(47 168 79 / .16); color: #1f7a3a; }
.ret-st-proposed, .ret-st-paused { background: rgb(240 180 70 / .2); color: #8a5a0c; }
.ret-st-past_due { background: rgb(229 83 75 / .16); color: #b3322a; }
.ret-st-draft, .ret-st-canceled, .ret-st-declined { background: rgb(0 14 37 / .08); color: var(--text-3); }
.ret-past summary { cursor: pointer; font-size: 13px; color: var(--text-3); margin-top: 10px; }
@media (max-width: 600px) {
  .ret-client .ret-acts { display: grid; grid-template-columns: 1fr; }
  .ret-client .ret-acts .btn { justify-content: center; padding: 13px; }
  .ret-acts .btn { flex: 1 1 auto; justify-content: center; }
}
.ret-head { align-items: flex-start; } .ret-card .inv-st { white-space: nowrap; flex: none; }
