/* Kaptain Stream: Profile Studio's Household board, copy-a-setup and backup timeline styles. */

#profile-studio-overlay {
  --hh-line: rgba(255, 255, 255, 0.08);
  --hh-line-2: rgba(255, 255, 255, 0.12);
  --hh-line-mint: rgba(0, 245, 160, 0.32);
  --hh-ok: hsl(142, 70%, 45%);
  --hh-warn: hsl(38, 90%, 55%);
  --hh-ease: cubic-bezier(0.2, 0, 0, 1);
}
#profile-studio-overlay .hh {
  --hh-col: 1120px;
  --hh-line: rgba(255, 255, 255, 0.08);
  --hh-line-2: rgba(255, 255, 255, 0.12);
  --hh-line-mint: rgba(0, 245, 160, 0.32);
  --hh-ok: hsl(142, 70%, 45%);
  --hh-warn: hsl(38, 90%, 55%);
  --hh-ease: cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  isolation: isolate;
  padding: clamp(24px, 4vw, 44px) max(clamp(16px, 3vw, 32px), calc((100% - var(--hh-col)) / 2)) 96px !important;
}
#profile-studio-overlay .hh :focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
#profile-studio-overlay .hh-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#profile-studio-overlay .hh-sp { flex: 1; }
#profile-studio-overlay .hh-num { font-variant-numeric: tabular-nums; }

/* Head */
#profile-studio-overlay .hh-head { display: flex; align-items: flex-end; gap: 16px 20px; flex-wrap: wrap; margin-bottom: 24px; }
#profile-studio-overlay .hh-head-text { flex: 1; min-width: min(100%, 300px); }
#profile-studio-overlay .hh-title { font-family: var(--ps-display); font-size: clamp(1.75rem, 3vw, 2.15rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
#profile-studio-overlay .hh-lede { margin: 6px 0 0; color: var(--text-secondary); max-width: 62ch; font-size: 0.95rem; line-height: 1.5; }
#profile-studio-overlay .hh-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Buttons */
#profile-studio-overlay .hh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 12px;
  border-radius: 8px; border: 1px solid var(--hh-line-2); background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary); font-weight: 600; font-size: 0.82rem; white-space: nowrap; cursor: pointer;
  transition: transform 0.15s var(--hh-ease), background 0.15s, border-color 0.15s, color 0.15s;
}
#profile-studio-overlay .hh-btn:hover:not(:disabled) { transform: translateY(-1.5px); background: rgba(255, 255, 255, 0.06); color: var(--text-primary); border-color: rgba(255, 255, 255, 0.18); }
#profile-studio-overlay .hh-btn:disabled { opacity: 0.55; cursor: default; }
#profile-studio-overlay .hh-btn-lg { height: 44px; padding: 0 16px; font-size: 0.88rem; }
#profile-studio-overlay .hh-btn-sm { height: 32px; padding: 0 10px; }
#profile-studio-overlay .hh-btn-ghost { border-color: transparent; background: none; }
#profile-studio-overlay .hh-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 14px 34px -12px rgba(0, 245, 160, 0.55); }
#profile-studio-overlay .hh-btn-primary:hover:not(:disabled) { background: var(--accent); color: var(--on-accent); filter: brightness(1.06); border-color: var(--accent); }

/* Status dots: plain text with a leading dot, never pills. */
#profile-studio-overlay .hh-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--text-secondary); line-height: 1.35; }
#profile-studio-overlay .hh-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); flex: none; }
#profile-studio-overlay .hh-dot.is-ok::before { background: var(--hh-ok); }
#profile-studio-overlay .hh-dot.is-warn::before { background: var(--hh-warn); }
#profile-studio-overlay .hh-dot.is-info::before { background: var(--accent-light); }
#profile-studio-overlay .hh-dot.is-unknown { color: var(--text-muted); }

#profile-studio-overlay .hh-notes {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 16px; margin-bottom: 28px;
  border: 1px solid var(--hh-line); border-radius: 14px; background: rgba(255, 255, 255, 0.02);
}

/* Accounts and the board */
#profile-studio-overlay .hh-acct { margin-bottom: 36px; }
#profile-studio-overlay .hh-acct-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
#profile-studio-overlay .hh-acct-title { font-family: var(--ps-display); font-size: 1.15rem; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
#profile-studio-overlay .hh-acct-meta { font-size: 0.8rem; color: var(--text-muted); }
#profile-studio-overlay .hh-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }

#profile-studio-overlay .hh-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; cursor: pointer; text-align: left;
  border-radius: 16px; border: 1px solid var(--hh-line); color: var(--text-primary);
  background: linear-gradient(180deg, rgba(21, 25, 35, 0.92), rgba(14, 17, 24, 0.92));
  transition: transform 0.2s var(--hh-ease), box-shadow 0.2s var(--hh-ease), border-color 0.2s;
}
#profile-studio-overlay .hh-card:hover { transform: translateY(-1.5px); box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.85); border-color: rgba(255, 255, 255, 0.14); }
#profile-studio-overlay .hh-card.is-remote { cursor: default; }
#profile-studio-overlay .hh-shelf {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; height: 92px; flex: none;
  mask-image: linear-gradient(180deg, #000 40%, transparent);
  background: linear-gradient(135deg, rgba(0, 245, 160, 0.07), rgba(255, 255, 255, 0.02));
}
#profile-studio-overlay .hh-shelf[data-n="1"] { grid-template-columns: 1fr; }
#profile-studio-overlay .hh-shelf[data-n="2"] { grid-template-columns: repeat(2, 1fr); }
#profile-studio-overlay .hh-shelf[data-n="3"] { grid-template-columns: repeat(3, 1fr); }
#profile-studio-overlay .hh-shelf img { width: 100%; height: 100%; object-fit: cover; display: block; }
#profile-studio-overlay .hh-shelf.is-empty { mask-image: linear-gradient(180deg, #000 10%, transparent); }
#profile-studio-overlay .hh-card-body { position: relative; padding: 0 18px 16px; margin-top: -26px; display: flex; flex-direction: column; flex: 1; }
#profile-studio-overlay .hh-who { display: flex; align-items: flex-end; gap: 12px; min-width: 0; }
#profile-studio-overlay .hh-who-text { min-width: 0; flex: 1; padding-bottom: 2px; }
#profile-studio-overlay .hh-name { font-family: var(--ps-display); font-size: 1.15rem; font-weight: 700; line-height: 1.15; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#profile-studio-overlay .hh-tag { margin: 2px 0 0; font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#profile-studio-overlay .hh-av-wrap { position: relative; flex: none; display: inline-flex; }
#profile-studio-overlay .hh-av {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; flex: none;
  font: 800 1.25rem var(--ps-display); color: #0b0d12;
  box-shadow: 0 0 0 3px #151923, 0 0 0 4px var(--hh-line-2);
}
#profile-studio-overlay .hh-av img { width: 100%; height: 100%; object-fit: cover; }
#profile-studio-overlay .hh-av-lg { width: 84px; height: 84px; font-size: 2rem; }
#profile-studio-overlay .hh-av-edit {
  position: absolute; right: -6px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--hh-line-2); background: #1b202b; color: var(--text-secondary); cursor: pointer; opacity: 0;
  transition: opacity 0.15s;
}
#profile-studio-overlay .hh-av-edit .hh-i { width: 13px; height: 13px; }
#profile-studio-overlay .hh-card:hover .hh-av-edit, #profile-studio-overlay .hh-av-edit:focus-visible { opacity: 1; }
@media (hover: none) { #profile-studio-overlay .hh-av-edit { opacity: 1; } }
#profile-studio-overlay .hh-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 14px 0 10px; font-size: 0.82rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
#profile-studio-overlay .hh-facts b { color: var(--text-primary); font-weight: 600; }
#profile-studio-overlay .hh-status { display: flex; flex-direction: column; gap: 4px; padding: 10px 0 12px; border-top: 1px solid var(--hh-line); margin-top: auto; }
#profile-studio-overlay .hh-status-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#profile-studio-overlay .hh-link {
  border: 0; background: none; padding: 4px 0; cursor: pointer; font-size: 0.82rem; font-weight: 600; color: var(--accent-light);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(109, 250, 196, 0.4);
}
#profile-studio-overlay .hh-link:disabled { color: var(--text-muted); cursor: default; }
#profile-studio-overlay .hh-acts { display: flex; gap: 6px; }
#profile-studio-overlay .hh-acts .hh-btn { flex: 1; min-height: 40px; }

#profile-studio-overlay .hh-card-add {
  align-items: center; justify-content: center; gap: 6px; min-height: 268px; padding: 24px; text-align: center;
  border-style: dashed; background: none; color: var(--text-muted); font-size: 0.82rem; line-height: 1.45;
}
#profile-studio-overlay .hh-card-add strong { color: var(--text-primary); font-size: 0.95rem; }
#profile-studio-overlay .hh-card-add:hover { border-color: var(--hh-line-mint); color: var(--text-secondary); }
#profile-studio-overlay .hh-plus { width: 46px; height: 46px; border-radius: 50%; border: 1px dashed var(--hh-line-2); display: grid; place-items: center; margin-bottom: 6px; }

#profile-studio-overlay .hh-collapsed {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; text-align: left; cursor: pointer;
  border: 1px solid var(--hh-line); border-radius: 16px; background: rgba(255, 255, 255, 0.02); color: var(--text-primary);
}
#profile-studio-overlay .hh-collapsed:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.16); }
#profile-studio-overlay .hh-collapsed:disabled { cursor: default; opacity: 0.7; }
#profile-studio-overlay .hh-collapsed-text { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 0.82rem; color: var(--text-muted); min-width: 0; }
#profile-studio-overlay .hh-collapsed-text strong { color: var(--text-primary); font-size: 0.92rem; }

/* Loading placeholders */
#profile-studio-overlay .hh-card.is-skeleton { cursor: default; min-height: 250px; }
#profile-studio-overlay .is-skeleton .hh-shelf,
#profile-studio-overlay .hh-ln {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.09) 40%, rgba(255, 255, 255, 0.04) 80%);
  background-size: 300% 100%; animation: hh-shimmer 1.4s linear infinite;
}
#profile-studio-overlay .is-skeleton .hh-shelf { mask-image: none; }
#profile-studio-overlay .hh-ln { display: block; height: 11px; border-radius: 6px; margin-top: 10px; }
@keyframes hh-shimmer { to { background-position: -300% 0; } }

#profile-studio-overlay .hh-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 16px; border-top: 1px solid var(--hh-line); }
#profile-studio-overlay .hh .ps-linked { margin-bottom: 24px; }

/* Opening a profile: the card's art and picture, grown to a hero while the profile loads. */
#ps-content[data-screen="opening"] { position: relative; }
#profile-studio-overlay .hh-opening { position: relative; min-height: 60vh; }
#profile-studio-overlay .hh-opening .hh-shelf { height: min(42vh, 340px); opacity: 0.55; }
#profile-studio-overlay .hh-opening-in {
  position: absolute; left: max(16px, calc((100% - 1120px) / 2)); right: 16px; top: min(30vh, 250px);
  display: flex; align-items: center; gap: 18px;
}
#profile-studio-overlay .hh-opening-in .hh-lede::after { content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border-radius: 50%; border: 2px solid var(--hh-line-2); border-top-color: var(--accent); animation: hh-spin 0.8s linear infinite; }
@keyframes hh-spin { to { transform: rotate(360deg); } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }
::view-transition-group(*) { animation-duration: 0.42s; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }

@media (max-width: 560px) {
  #profile-studio-overlay .hh-head-actions { width: 100%; }
  #profile-studio-overlay .hh-head-actions .hh-btn { flex: 1; }
  #profile-studio-overlay .hh-foot .hh-sp { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #profile-studio-overlay .hh *, #profile-studio-overlay .hh-opening * { animation: none !important; transition: none !important; }
}

/* ---- Copy a setup: one screen, the per-person preview beside the choices ---- */
#profile-studio-overlay .cs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 24px; align-items: start; }
#profile-studio-overlay .cs-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
#profile-studio-overlay .cs-panel,
#profile-studio-overlay .cs-side {
  background: rgba(14, 17, 24, 0.82); border: 1px solid var(--hh-line); border-radius: 16px; padding: 20px 22px; margin: 0;
}
#profile-studio-overlay .cs-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 140px); }
#profile-studio-overlay .cs-h { font-family: var(--ps-display); font-size: 1.02rem; font-weight: 700; margin: 0 0 4px; }
#profile-studio-overlay .cs-lead { margin: 0 0 14px; font-size: 0.85rem; color: var(--text-muted); }
#profile-studio-overlay .cs-panel > .cs-h + .cs-pills { margin-top: 12px; }

#profile-studio-overlay .cs-pills { display: flex; flex-wrap: wrap; gap: 8px; }
#profile-studio-overlay .cs-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px 6px 6px; border-radius: 999px;
  border: 1px solid var(--hh-line-2); background: rgba(255, 255, 255, 0.02); color: var(--text-primary);
  font-weight: 600; font-size: 0.86rem; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
#profile-studio-overlay .cs-pill:hover { border-color: rgba(255, 255, 255, 0.2); }
#profile-studio-overlay .cs-pill.is-on { border-color: var(--hh-line-mint); background: rgba(0, 245, 160, 0.07); }
#profile-studio-overlay .cs-pill-new { border-style: dashed; color: var(--text-secondary); padding-left: 12px; }
#profile-studio-overlay .cs-av { width: 30px; height: 30px; font-size: 0.8rem; box-shadow: none; }
#profile-studio-overlay .cs-av-sm { width: 34px; height: 34px; font-size: 0.85rem; box-shadow: 0 0 0 2px #10131b; }
#profile-studio-overlay .cs-chk { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--hh-line-2); display: grid; place-items: center; }
#profile-studio-overlay .cs-pill.is-on .cs-chk { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
#profile-studio-overlay .cs-chk-i { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
#profile-studio-overlay .cs-pill.is-on .cs-chk-i { opacity: 1; }
#profile-studio-overlay .cs-group { margin-top: 16px; }
#profile-studio-overlay .cs-group-h { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin: 0 0 8px; }
#profile-studio-overlay .cs-other { margin-top: 14px; }
#profile-studio-overlay .cs-name { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 0.82rem; color: var(--text-secondary); max-width: 360px; }
#profile-studio-overlay .cs-name input { height: 44px; border-radius: 8px; border: 1px solid var(--hh-line-2); background: rgba(0, 0, 0, 0.25); color: var(--text-primary); padding: 0 12px; font-size: 0.92rem; }

#profile-studio-overlay .cs-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#profile-studio-overlay .cs-parts .ps-copy-part-row {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 0; padding: 12px 14px;
  border: 1px solid var(--hh-line); border-radius: 12px; background: rgba(255, 255, 255, 0.015);
}
#profile-studio-overlay .cs-parts .ps-copy-part-row.is-on { border-color: var(--hh-line-mint); background: rgba(0, 245, 160, 0.045); }
#profile-studio-overlay .cs-parts .ps-copy-part-row.is-soon { border-style: dashed; }
#profile-studio-overlay .cs-parts .ps-copy-choose { align-self: flex-start; }
/* The shared row gives each part a 260px flex basis for a side-by-side layout; stacked in a tile that would be its height. */
#profile-studio-overlay .cs-parts .ps-copy-part { flex: none; padding: 0; }
#profile-studio-overlay .cs-parts .ps-copy-part input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
#ps-content[data-screen="copy"],
#ps-content[data-screen="copyRun"],
#ps-content[data-screen="copyPreview"] { --ps-col: 1120px; }

#profile-studio-overlay .cs-switch { position: relative; display: flex; align-items: flex-start; gap: 14px; cursor: pointer; margin-top: 10px; }
#profile-studio-overlay .cs-switch input { position: absolute; left: 0; top: 2px; z-index: 1; width: 42px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
#profile-studio-overlay .cs-switch-track { width: 42px; height: 24px; border-radius: 24px; background: rgba(255, 255, 255, 0.14); position: relative; flex: none; margin-top: 2px; transition: background 0.2s; }
#profile-studio-overlay .cs-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s var(--hh-ease); }
#profile-studio-overlay .cs-switch input:checked + .cs-switch-track { background: var(--accent); }
#profile-studio-overlay .cs-switch input:checked + .cs-switch-track::after { transform: translateX(18px); background: var(--on-accent); }
#profile-studio-overlay .cs-switch input:focus-visible + .cs-switch-track { outline: 2px solid var(--accent-light); outline-offset: 2px; }
#profile-studio-overlay .cs-switch-text { display: flex; flex-direction: column; gap: 2px; font-size: 0.85rem; color: var(--text-muted); }
#profile-studio-overlay .cs-switch-text strong { color: var(--text-primary); font-size: 0.92rem; }
#profile-studio-overlay .cs-switch input:not(:checked) ~ .cs-switch-text strong { color: var(--hh-warn); }

#profile-studio-overlay .cs-flow { display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
#profile-studio-overlay .cs-stack { display: inline-flex; }
#profile-studio-overlay .cs-stack .hh-av + .hh-av { margin-left: -8px; }
#profile-studio-overlay .cs-cards { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding-right: 2px; }
#profile-studio-overlay .cs-cards .ps-copy-card,
#profile-studio-overlay .cs-run-cards .ps-copy-card {
  margin: 0; padding: 14px; border: 1px solid var(--hh-line); border-radius: 12px; background: rgba(255, 255, 255, 0.015);
}
#profile-studio-overlay .cs-empty { font-size: 0.88rem; color: var(--text-muted); margin: 4px 0; line-height: 1.5; }
#profile-studio-overlay .cs-skel { display: flex; flex-direction: column; }
#profile-studio-overlay .cs-foot { border-top: 1px solid var(--hh-line); padding-top: 14px; }
#profile-studio-overlay .cs-go { width: 100%; height: 48px; font-size: 0.95rem; }
#profile-studio-overlay .cs-foot p { font-size: 0.78rem; color: var(--text-muted); text-align: center; margin: 10px 0 0; }

/* Art lanes: what the person has, then what arrives (outlined); while copying, the new art lands card by card. */
#profile-studio-overlay .cs-lane { display: flex; gap: 4px; margin: 10px 0 8px; height: 34px; overflow: hidden; }
#profile-studio-overlay .cs-tile { width: 56px; flex: none; border-radius: 5px; overflow: hidden; position: relative; }
#profile-studio-overlay .cs-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
#profile-studio-overlay .cs-tile.is-incoming { box-shadow: inset 0 0 0 1.5px var(--hh-line-mint); opacity: 0.55; }
#profile-studio-overlay .cs-tile.is-replaced { opacity: 0.3; filter: grayscale(1); }
#profile-studio-overlay .cs-run .ps-copy-card.is-done .cs-tile.is-incoming { animation: cs-land 0.5s var(--hh-ease) both; animation-delay: calc(var(--n) * 90ms); }
@keyframes cs-land {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
}
#profile-studio-overlay .ps-copy-card .ps-copy-preview-title { display: flex; align-items: center; gap: 8px; }
#profile-studio-overlay .cs-done-mark { display: none; margin-left: auto; color: var(--hh-ok); }
#profile-studio-overlay .cs-done-mark svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
#profile-studio-overlay .cs-run .ps-copy-card.is-done .cs-done-mark { display: inline-flex; }
#profile-studio-overlay .cs-run .ps-copy-card.is-done .cs-done-mark svg { animation: cs-draw 0.5s 0.3s var(--hh-ease) forwards; }
@keyframes cs-draw { to { stroke-dashoffset: 0; } }
#profile-studio-overlay .cs-run-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; margin-bottom: 18px; }
#profile-studio-overlay .cs-run .ps-copy-card:not(.is-done) { opacity: 0.7; }
#profile-studio-overlay .cs-run.is-done .ps-copy-card { opacity: 1; }
#profile-studio-overlay .cs-steps summary { cursor: pointer; color: var(--text-secondary); font-size: 0.85rem; padding: 8px 0; }

@media (max-width: 900px) {
  #profile-studio-overlay .cs-grid { grid-template-columns: 1fr; }
  #profile-studio-overlay .cs-side { position: static; max-height: none; }
}
@media (max-width: 560px) {
  #profile-studio-overlay .cs-parts { grid-template-columns: 1fr; }
  #profile-studio-overlay .cs-panel,
  #profile-studio-overlay .cs-side { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #profile-studio-overlay .cs-run * { animation: none !important; }
  #profile-studio-overlay .cs-run .ps-copy-card.is-done .cs-done-mark svg { stroke-dashoffset: 0; }
}

/* ---- Backups: who on the left, the timeline beside it; Look inside docks as a drawer on wide screens ---- */
#ps-content[data-screen="backups"] { --ps-col: 1120px; }
#profile-studio-overlay .bt-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
#profile-studio-overlay .bt-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 18px; }
#profile-studio-overlay .bt-filters { display: flex; flex-direction: column; gap: 2px; }
#profile-studio-overlay .bt-filter {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 10px;
  background: none; color: var(--text-secondary); font-size: 0.88rem; font-weight: 500; text-align: left; cursor: pointer;
}
#profile-studio-overlay .bt-filter:hover { background: rgba(255, 255, 255, 0.03); color: var(--text-primary); }
#profile-studio-overlay .bt-filter[aria-pressed="true"] { background: rgba(255, 255, 255, 0.06); color: var(--text-primary); font-weight: 600; }
#profile-studio-overlay .bt-filter > span:not(.hh-av):not(.bt-n) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#profile-studio-overlay .bt-n { font-size: 0.78rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
#profile-studio-overlay .bt-tools { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 14px; border-top: 1px solid var(--hh-line); }
#profile-studio-overlay .bt-tools .hh-btn-ghost { padding-left: 10px; }

#profile-studio-overlay .bt-day { font: 600 0.8rem var(--ps-font); color: var(--text-muted); margin: 24px 0 10px; letter-spacing: 0.01em; }
#profile-studio-overlay .bt-day:first-child { margin-top: 0; }
#profile-studio-overlay .bt-line { position: relative; padding-left: 26px; display: flex; flex-direction: column; gap: 6px; }
#profile-studio-overlay .bt-line::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 1px; background: var(--hh-line-2); }
#profile-studio-overlay .bt .ps-backup-row.bt-ev {
  position: relative; align-items: flex-start !important; gap: 12px 16px !important; padding: 12px 14px !important;
  background: transparent !important; border: 1px solid transparent !important; border-radius: 12px !important; box-shadow: none !important;
}
#profile-studio-overlay .bt .ps-backup-row.bt-ev:hover { background: rgba(255, 255, 255, 0.03) !important; }
#profile-studio-overlay .bt .ps-backup-row.bt-ev.is-on { background: rgba(0, 245, 160, 0.05) !important; border-color: var(--hh-line-mint) !important; }
#profile-studio-overlay .bt-node { position: absolute; left: -23px; top: 19px; width: 9px; height: 9px; border-radius: 50%; background: #12151e; box-shadow: 0 0 0 1.5px var(--text-muted); }
#profile-studio-overlay .bt-ev.is-on .bt-node { background: var(--accent); box-shadow: 0 0 0 1.5px var(--accent), 0 0 0 5px rgba(0, 245, 160, 0.15); }
#profile-studio-overlay .bt .ps-backup-info { flex: 1 1 300px; min-width: 0; }
#profile-studio-overlay .bt-top { display: flex; align-items: baseline; gap: 12px; }
#profile-studio-overlay .bt .ps-backup-label { font-size: 0.95rem !important; font-weight: 600 !important; }
#profile-studio-overlay .bt-time { margin-left: auto; font-size: 0.78rem; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
#profile-studio-overlay .bt .ps-backup-summary { font-size: 0.84rem !important; color: var(--text-secondary) !important; }
#profile-studio-overlay .bt-film { display: flex; gap: 3px; margin: 6px 0 2px; }
#profile-studio-overlay .bt-film img { width: 48px; height: 29px; object-fit: cover; border-radius: 4px; opacity: 0.88; }
#profile-studio-overlay .bt .ps-backup-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 0.76rem !important; margin-top: 2px; }
#profile-studio-overlay .bt-meta-i { width: 14px; height: 14px; }
#profile-studio-overlay .bt .ps-backup-buttons { flex: none; gap: 6px !important; align-self: center; }
#profile-studio-overlay .bt-empty { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; max-width: 60ch; padding: 18px 0; }
#profile-studio-overlay .bt-skel { display: flex; flex-direction: column; padding-left: 26px; }

/* Before/after picture in Look inside */
#profile-studio-overlay .bt-mini { margin: 0 0 16px; }
#profile-studio-overlay .bt-seg { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--hh-line); margin-bottom: 10px; }
#profile-studio-overlay .bt-seg button { flex: 1; min-height: 36px; border: 0; border-radius: 7px; background: none; color: var(--text-secondary); font-weight: 600; font-size: 0.82rem; cursor: pointer; }
#profile-studio-overlay .bt-seg button[aria-pressed="true"] { background: #1a1e29; color: var(--text-primary); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--hh-line-2); }
#profile-studio-overlay .bt-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px; border-radius: 12px; background: #06070a; border: 1px solid var(--hh-line-2); min-height: 60px; }
#profile-studio-overlay .bt-mini.is-loading .bt-tiles { background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)); background-size: 300% 100%; animation: hh-shimmer 1.4s linear infinite; height: 120px; }
#profile-studio-overlay .bt-tile { aspect-ratio: 16 / 10; border-radius: 5px; overflow: hidden; position: relative; transition: opacity 0.35s var(--hh-ease), transform 0.35s var(--hh-ease), filter 0.35s; }
#profile-studio-overlay .bt-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
#profile-studio-overlay .bt-tile.is-back { box-shadow: inset 0 0 0 2px var(--accent); }
#profile-studio-overlay .bt-tile.is-away { filter: grayscale(1); opacity: 0.45; }
#profile-studio-overlay .bt-tile.is-away::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0, 0, 0, 0.4) 6px 7px); }
#profile-studio-overlay .bt-tiles.is-now .bt-tile.is-back { opacity: 0.12; transform: scale(0.94); box-shadow: inset 0 0 0 1px var(--hh-line-2); }
#profile-studio-overlay .bt-tiles.is-now .bt-tile.is-away { filter: none; opacity: 1; }
#profile-studio-overlay .bt-tiles.is-now .bt-tile.is-away::after { display: none; }
#profile-studio-overlay .bt-tiles.is-after .bt-tile.is-away { opacity: 0.18; transform: scale(0.94); }
#profile-studio-overlay .bt-legend { display: flex; gap: 14px; margin: 8px 0 0; font-size: 0.76rem; color: var(--text-muted); }
#profile-studio-overlay .bt-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
#profile-studio-overlay .bt-legend i.is-back { box-shadow: inset 0 0 0 2px var(--accent); }
#profile-studio-overlay .bt-legend i.is-away { background: rgba(255, 255, 255, 0.25); }

@media (min-width: 1100px) {
  /* A drawer beside the timeline: the list stays readable and another moment is one click away. */
  .ps-bk-backdrop { justify-content: flex-end; align-items: stretch; padding: 120px 24px 24px; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none; }
  .ps-bk-backdrop .ps-bk-sheet {
    pointer-events: auto; max-width: 420px; max-height: none; background: #0e1118 !important;
    border: 1px solid var(--hh-line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); animation: bt-drawer 0.3s var(--hh-ease);
  }
  #profile-studio-overlay #ps-content[data-screen="backups"]:has(#ps-backup-preview) > .ps-body.bt {
    padding-right: max(468px, calc((100% - var(--hh-col)) / 2)) !important;
  }
}
@keyframes bt-drawer { from { opacity: 0; transform: translateX(24px); } }

@media (max-width: 900px) {
  #profile-studio-overlay .bt-grid { grid-template-columns: 1fr; gap: 16px; }
  #profile-studio-overlay .bt-side { position: static; }
  #profile-studio-overlay .bt-filters { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  #profile-studio-overlay .bt-filter { flex: none; white-space: nowrap; border: 1px solid var(--hh-line); }
  #profile-studio-overlay .bt-tools { flex-direction: row; flex-wrap: wrap; border-top: 0; padding-top: 0; }
}
@media (max-width: 560px) {
  #profile-studio-overlay .bt .ps-backup-buttons { width: 100%; }
  #profile-studio-overlay .bt .ps-backup-buttons .hh-btn { flex: 1; min-height: 40px; }
}

/* ---- Share: the choices on the left, the picture people get on the right ---- */
#ps-content[data-screen="share"] { --ps-col: 1120px; }
/* The older share layout made the body a two-column grid; this screen lays itself out. */
#profile-studio-overlay #ps-content[data-screen="share"] > .ps-body.sh { display: block !important; }
#profile-studio-overlay .sh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 28px; align-items: start; }
#profile-studio-overlay .sh-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
#profile-studio-overlay .sh .sh-choice { margin: 0 !important; }
#profile-studio-overlay .sh .sh-choice.is-on { border-color: var(--hh-line-mint) !important; background: rgba(0, 245, 160, 0.05) !important; }
#profile-studio-overlay .sh .ps-share-contents { margin-top: 8px; }
#profile-studio-overlay .sh-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#profile-studio-overlay .sh-list .hh-dot { align-items: flex-start; }
#profile-studio-overlay .sh-list .hh-dot::before { margin-top: 6px; }
#profile-studio-overlay .sh-h2 { margin-top: 18px; }
#profile-studio-overlay .sh-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; }
#profile-studio-overlay .sh-card { margin: 0; aspect-ratio: 1200 / 630; border-radius: 16px; overflow: hidden; border: 1px solid var(--hh-line-2); background: #0a0b0f; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
#profile-studio-overlay .sh-card img { width: 100%; height: 100%; display: block; animation: sh-in 0.5s var(--hh-ease); }
#profile-studio-overlay .sh-card.is-loading { background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)); background-size: 300% 100%; animation: hh-shimmer 1.4s linear infinite; }
@keyframes sh-in { from { opacity: 0; transform: scale(1.02); } }
#profile-studio-overlay .sh-linkbox { display: flex; gap: 8px; margin: 0; }
#profile-studio-overlay .sh-linkbox input { flex: 1; min-width: 0; height: 44px; font: 500 0.8rem ui-monospace, Consolas, monospace; }
#profile-studio-overlay .sh-make { width: 100%; }
#profile-studio-overlay .sh-row { display: flex; gap: 8px; }
#profile-studio-overlay .sh-row .hh-btn { flex: 1; min-height: 40px; }
#profile-studio-overlay .sh-note { margin: 0; font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
@media (max-width: 900px) {
  #profile-studio-overlay .sh-grid { grid-template-columns: 1fr; }
  #profile-studio-overlay .sh-side { position: static; order: -1; }
}

/* ==== Screening Room (Nov 2026): profiles as cover cards on the profile-art glow, one mint action, a dock on phones ==== */
#profile-studio-overlay .hh-head { margin-bottom: 28px; }
#profile-studio-overlay .hh-lede { margin-top: 14px; font-size: 1rem; color: var(--scr-text-2, #b4bac6); }
#profile-studio-overlay .hh-head-actions .hh-btn { height: 46px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.08); }
#profile-studio-overlay .hh-head-actions .hh-btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: none; }
#profile-studio-overlay .hh-btn:hover:not(:disabled) { transform: none; }

#profile-studio-overlay .hh-jump { flex: none; /* a scroll container in the column would otherwise shrink to nothing */
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
#profile-studio-overlay .hh-jump-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); color: #c7ccd6; font-size: 0.88rem; font-weight: 500; text-decoration: none;
}
#profile-studio-overlay .hh-jump-pill.is-on { background: #f4f5f7; color: #07080b; }
#profile-studio-overlay .hh-jump-ini { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #3a3f4b; color: #e9ecf1; font-size: 0.75rem; font-weight: 700; }
#profile-studio-overlay .hh-jump-pill.is-on .hh-jump-ini { background: #07080b; color: #f4f5f7; }
#profile-studio-overlay .hh-jump-n { color: inherit; opacity: 0.6; font-variant-numeric: tabular-nums; }

#profile-studio-overlay .hh-acct { scroll-margin-top: 24px; margin-bottom: 40px; }
#profile-studio-overlay .hh-acct-head { align-items: center; padding-top: 4px; }
#profile-studio-overlay .hh-acct-title { font-family: Outfit, Inter, sans-serif; font-weight: 900; font-size: 1.6rem; letter-spacing: -0.03em; text-transform: uppercase; line-height: 1; }
#profile-studio-overlay .hh-board { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 14px; }

#profile-studio-overlay .hh-card { border: 0 !important; border-radius: 18px; background: rgba(255, 255, 255, 0.045); box-shadow: none; }
#profile-studio-overlay .hh-card:hover { transform: none; border-color: transparent; background: rgba(255, 255, 255, 0.06); box-shadow: none; }
#profile-studio-overlay .hh-card.is-last { box-shadow: 0 0 0 1.5px rgba(0, 245, 160, 0.55); }
#profile-studio-overlay .hh-shelf { height: 132px; }
#profile-studio-overlay .hh-shelf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10, 12, 16, 0.95)); pointer-events: none; }
#profile-studio-overlay .hh-name { font-family: Outfit, Inter, sans-serif; font-weight: 900; font-size: 1.45rem; letter-spacing: -0.03em; text-transform: uppercase; line-height: 1; }
#profile-studio-overlay .hh-status { border-top: 0; padding: 0 0 12px; }
#profile-studio-overlay .hh-facts { margin: 12px 0 8px; }
#profile-studio-overlay .hh-acts .hh-btn { border: 0; border-radius: 11px; background: rgba(255, 255, 255, 0.08); }
#profile-studio-overlay .hh-acts .hh-btn-open { background: #f4f5f7; color: #07080b; font-weight: 600; }
#profile-studio-overlay .hh-acts .hh-btn-open:hover:not(:disabled) { background: #fff; color: #07080b; }
#profile-studio-overlay .hh-card-add { border: 0 !important; background: rgba(255, 255, 255, 0.025); }
#profile-studio-overlay .hh-plus { border: 0; background: rgba(255, 255, 255, 0.07); color: #e9ecf1; }
#profile-studio-overlay .hh-collapsed { border: 0 !important; border-radius: 16px; background: rgba(255, 255, 255, 0.04); }
#profile-studio-overlay .hh-collapsed .hh-btn { border: 0; background: rgba(255, 255, 255, 0.08); }
#profile-studio-overlay .hh-notes { border: 0; background: rgba(255, 255, 255, 0.035); }

/* Profile cards: picture, name, one line and Open. Everything else lives in the detail panel behind the (i). */
#profile-studio-overlay .hh-more {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; cursor: pointer; color: #c7ccd6; background: rgba(8, 9, 13, 0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background 0.15s, color 0.15s, transform 0.2s var(--hh-ease);
}
#profile-studio-overlay .hh-more:hover { background: rgba(255, 255, 255, 0.14); color: #fff; transform: scale(1.06); }
#profile-studio-overlay .hh-av-flag { position: absolute; right: 1px; bottom: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--hh-warn); box-shadow: 0 0 0 3px #12151b; pointer-events: auto; }
/* The backup reminder sits as a compact amber strip, only as wide as what it says. */
#profile-studio-overlay .hh-notes { display: flex; width: fit-content; align-self: flex-start; flex-wrap: wrap; max-width: 100%; gap: 8px 14px; padding: 6px 6px 6px 16px; border: 0; border-radius: 999px; background: rgba(240, 168, 48, 0.08); box-shadow: 0 0 0 1px rgba(240, 168, 48, 0.18) inset; }
#profile-studio-overlay .hh-notes .hh-dot { color: #f3d6a6; }
#profile-studio-overlay .hh-notes .hh-btn { border: 0; border-radius: 999px; background: rgba(240, 168, 48, 0.16); color: #fbe7c6; }
#profile-studio-overlay .hh-notes .hh-btn:hover:not(:disabled) { background: rgba(240, 168, 48, 0.26); color: #fff; }
#profile-studio-overlay .hh-board .hh-facts > span:not(.ps-sr-only) ~ span:not(.ps-sr-only)::before { content: "\00b7"; margin: 0 7px; color: var(--text-muted); }

@media (min-width: 721px) {
  #profile-studio-overlay .hh-board > .hh-card:not(.hh-card-add) { text-align: center; min-height: 268px; }
  #profile-studio-overlay .hh-board .hh-shelf { position: absolute; inset: 0 0 auto; height: 112px; opacity: 0.32; filter: saturate(0.75); transition: opacity 0.35s var(--hh-ease), filter 0.35s var(--hh-ease); }
  /* Each card glows faintly in its own picture colour, so a profile without covers still has a face. */
  #profile-studio-overlay .hh-board > .hh-card[style*="--hh-tint"]::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(120% 75% at 50% 0%, color-mix(in srgb, var(--hh-tint) 16%, transparent), transparent 70%);
    transition: opacity 0.35s var(--hh-ease);
  }
  #profile-studio-overlay .hh-board .hh-av { transition: transform 0.35s var(--hh-ease), box-shadow 0.35s var(--hh-ease); }
  #profile-studio-overlay .hh-board > .hh-card:not(.hh-card-add):hover .hh-shelf { opacity: 0.52; filter: saturate(1); }
  #profile-studio-overlay .hh-board > .hh-card:not(.hh-card-add):hover .hh-av { transform: translateY(-3px) scale(1.04); box-shadow: 0 0 0 3px rgba(18, 21, 27, 0.95), 0 18px 30px -10px rgba(0, 0, 0, 0.95); }
  #profile-studio-overlay .hh-board .hh-shelf::after { background: linear-gradient(180deg, transparent 10%, #12151b 96%); }
  #profile-studio-overlay .hh-board .hh-card-body { margin-top: 0; padding: 30px 16px 16px; align-items: center; }
  #profile-studio-overlay .hh-board .hh-who { flex-direction: column; align-items: center; gap: 14px; width: 100%; }
  #profile-studio-overlay .hh-board .hh-who-text { width: 100%; padding: 0; }
  #profile-studio-overlay .hh-board .hh-av { width: 76px; height: 76px; font-size: 1.8rem; box-shadow: 0 0 0 3px rgba(18, 21, 27, 0.95), 0 12px 26px -10px rgba(0, 0, 0, 0.9); }
  #profile-studio-overlay .hh-board .hh-name {
    font-size: 1.22rem; line-height: 1.06; white-space: normal; overflow-wrap: anywhere; text-wrap: balance;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  }
  #profile-studio-overlay .hh-board .hh-facts { justify-content: center; gap: 0; margin: 6px 0 18px; font-size: 0.82rem; color: var(--text-muted); }
  #profile-studio-overlay .hh-board .hh-facts { margin-bottom: 8px; }
  #profile-studio-overlay .hh-board .hh-status { margin: 0 0 18px; padding: 0; border: 0; align-items: center; }
  #profile-studio-overlay .hh-board .hh-status .hh-dot { font-size: 0.8rem; }
  #profile-studio-overlay .hh-board .hh-acts { width: 100%; margin-top: auto; }
}

/* Profile detail panel: above the Studio header (z 25000) so the whole screen dims. */
html.hh-detail-open .kcv-pill { visibility: hidden; }
#profile-studio-overlay .hh-detail { position: fixed; inset: 0; z-index: 26000; display: grid; place-items: center; padding: 24px; }
#profile-studio-overlay .hh-detail[hidden] { display: none !important; }
#profile-studio-overlay .hh-dt-top, #profile-studio-overlay .hh-dt-foot { display: none; }
/* While the panel is open the board behind it holds still, so a swipe always scrolls the panel. */
@media (max-width: 720px) {
  html.hh-detail-open #profile-studio-overlay .ps-body { overflow: hidden !important; overscroll-behavior: none; }
}
#profile-studio-overlay .hh-dt-dim { position: absolute; inset: 0; background: rgba(4, 5, 8, 0.74); -webkit-backdrop-filter: blur(14px) saturate(0.8); backdrop-filter: blur(14px) saturate(0.8); }
#profile-studio-overlay .hh-dt {
  position: relative; width: min(1040px, 100%); max-height: min(740px, calc(100dvh - 48px)); overflow: auto; overscroll-behavior: contain;
  border-radius: 26px; background: #101319; color: var(--text-primary); text-align: left;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 40px 120px -30px rgba(0, 0, 0, 0.95);
}
#profile-studio-overlay .hh-dt :focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
#profile-studio-overlay .hh-dt-x {
  position: absolute; top: 16px; right: 16px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center;
  cursor: pointer; color: #fff; background: rgba(8, 9, 13, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background 0.15s;
}
#profile-studio-overlay .hh-dt-x:hover { background: rgba(255, 255, 255, 0.16); }
#profile-studio-overlay .hh-dt-band { position: relative; height: 230px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; overflow: hidden; opacity: 0.55; background: linear-gradient(135deg, rgba(0, 245, 160, 0.08), rgba(255, 255, 255, 0.02)); }
#profile-studio-overlay .hh-dt-band img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.8); }
#profile-studio-overlay .hh-dt-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 19, 25, 0.1), #101319); }
#profile-studio-overlay .hh-dt-id { position: relative; z-index: 2; margin-top: -92px; padding: 0 40px; display: flex; align-items: flex-end; gap: 16px 26px; flex-wrap: wrap; }
#profile-studio-overlay .hh-dt-av { position: relative; flex: none; display: inline-flex; }
#profile-studio-overlay .hh-av-xl { width: 132px; height: 132px; font-size: 3.2rem; box-shadow: 0 0 0 5px #101319, 0 24px 50px -16px rgba(0, 0, 0, 0.95); }
#profile-studio-overlay .hh-dt-av .hh-av-flag { width: 22px; height: 22px; right: 6px; bottom: 8px; box-shadow: 0 0 0 4px #101319; }
#profile-studio-overlay .hh-av-ghost { position: fixed !important; margin: 0; z-index: 26001; pointer-events: none; transform-origin: 0 0; }
#profile-studio-overlay .hh-dt-title { flex: 1; min-width: min(100%, 240px); padding-bottom: 6px; }
#profile-studio-overlay .hh-dt-title h2 { font: 900 clamp(2.1rem, 5.4vw, 3.9rem)/0.92 Outfit, Inter, sans-serif; text-transform: uppercase; letter-spacing: -0.035em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
#profile-studio-overlay .hh-dt-title .hh-tag { margin: 10px 0 0; font-size: 0.95rem; color: var(--text-secondary); white-space: normal; }
#profile-studio-overlay .hh-dt-cta { display: flex; gap: 8px; padding-bottom: 8px; }
#profile-studio-overlay .hh-dt-stats { display: flex; gap: 20px 40px; flex-wrap: wrap; padding: 28px 40px 26px; border-bottom: 1px solid var(--hh-line); }
#profile-studio-overlay .hh-dt-stats div { display: flex; flex-direction: column; }
#profile-studio-overlay .hh-dt-stats b { font: 700 2rem/1 Outfit, Inter, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
#profile-studio-overlay .hh-dt-stats span { color: var(--text-muted); font-size: 0.82rem; margin-top: 6px; }
#profile-studio-overlay .hh-dt-cols { display: grid; grid-template-columns: 1fr 1fr 1.15fr; }
#profile-studio-overlay .hh-dt-col { padding: 26px 32px 34px 40px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
#profile-studio-overlay .hh-dt-col + .hh-dt-col { border-left: 1px solid var(--hh-line); padding-left: 32px; }
#profile-studio-overlay .hh-dt-col h3 { font: 700 1.02rem/1.2 Outfit, Inter, sans-serif; margin: 0 0 4px; }
#profile-studio-overlay .hh-dt-lede { margin: 0 0 14px; color: var(--text-muted); font-size: 0.84rem; }
#profile-studio-overlay .hh-dt-col > .hh-dot { padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
#profile-studio-overlay .hh-dt-col > .hh-dot.is-warn { background: rgba(240, 168, 48, 0.12); color: #f3d6a6; }
#profile-studio-overlay .hh-dt-list { list-style: none; margin: 16px 0 4px; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 10px; font-size: 0.85rem; }
#profile-studio-overlay .hh-dt-list li { display: flex; justify-content: space-between; gap: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
#profile-studio-overlay .hh-dt-list li span:last-child { color: var(--text-muted); white-space: nowrap; }
#profile-studio-overlay .hh-dt-empty { margin: 14px 0 4px; color: var(--text-secondary); font-size: 0.86rem; max-width: 34ch; }
#profile-studio-overlay .hh-dt-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 18px; }
#profile-studio-overlay .hh-dt .hh-btn { border: 0; border-radius: 11px; background: rgba(255, 255, 255, 0.08); }
#profile-studio-overlay .hh-dt .hh-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.13); }
#profile-studio-overlay .hh-dt .hh-btn-light { background: #f4f5f7; color: #07080b; }
#profile-studio-overlay .hh-dt .hh-btn-light:hover:not(:disabled) { background: #fff; color: #07080b; }
#profile-studio-overlay .hh-dt .hh-btn-primary { background: var(--accent, #00f5a0); color: #04130d; }
#profile-studio-overlay .hh-dt .hh-btn-primary:hover:not(:disabled) { background: #6dfac4; color: #04130d; }
#profile-studio-overlay .hh-dt-addons { list-style: none; margin: 0; padding: 0; width: 100%; }
#profile-studio-overlay .hh-dt-addons li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--hh-line); font-size: 0.88rem; }
#profile-studio-overlay .hh-dt-addons li:last-child { border-bottom: 0; }
#profile-studio-overlay .hh-dt-addons li.is-more { color: var(--text-muted); }
#profile-studio-overlay .hh-dt-addons li > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#profile-studio-overlay .hh-dt-chip { flex: none; font-size: 0.7rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(0, 245, 160, 0.1); color: var(--accent-light); }
#profile-studio-overlay .hh-dt-acts { display: flex; flex-direction: column; gap: 4px; width: 100%; }
#profile-studio-overlay .hh-dt-act {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 16px; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 10px 12px 10px 10px; border: 0; border-radius: 14px; background: transparent; color: inherit; cursor: pointer; transition: background 0.15s;
}
#profile-studio-overlay .hh-dt-act:hover { background: rgba(255, 255, 255, 0.06); }
#profile-studio-overlay .hh-dt-tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); }
#profile-studio-overlay .hh-dt-act-text strong { display: block; font-size: 0.9rem; font-weight: 600; }
#profile-studio-overlay .hh-dt-act-text span { display: block; font-size: 0.78rem; color: var(--text-muted); }
#profile-studio-overlay .hh-dt-act > .hh-i:last-child { width: 16px; height: 16px; color: var(--text-muted); }

@media (max-width: 880px) {
  #profile-studio-overlay .hh-dt-cols { grid-template-columns: 1fr; }
  #profile-studio-overlay .hh-dt-col, #profile-studio-overlay .hh-dt-col + .hh-dt-col { padding: 24px; border-left: 0; }
  #profile-studio-overlay .hh-dt-col + .hh-dt-col { border-top: 1px solid var(--hh-line); }
  #profile-studio-overlay .hh-dt-id { padding: 0 24px; }
  #profile-studio-overlay .hh-dt-stats { padding: 22px 24px; gap: 16px 28px; }
}
@media (max-width: 560px) {
  #profile-studio-overlay .hh-detail { padding: 0; }
  #profile-studio-overlay .hh-dt { height: 100dvh; max-height: 100dvh; border-radius: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  #profile-studio-overlay .hh-dt-band { height: 180px; }
  #profile-studio-overlay .hh-dt-id { margin-top: -70px; }
  #profile-studio-overlay .hh-av-xl { width: 100px; height: 100px; font-size: 2.4rem; }
  #profile-studio-overlay .hh-dt-cta { width: 100%; }
  #profile-studio-overlay .hh-dt-cta .hh-btn { flex: 1; justify-content: center; }
  /* On a phone the panel is a page: a back pill stays pinned while it scrolls, and a Back button waits at the foot. */
  #profile-studio-overlay .hh-dt { touch-action: pan-y; -webkit-overflow-scrolling: touch; }
  #profile-studio-overlay .hh-dt-x { display: none; }
  #profile-studio-overlay .hh-dt-top { display: block; position: sticky; top: 0; z-index: 4; height: 0; }
  #profile-studio-overlay .hh-dt-back {
    position: absolute; top: max(12px, env(safe-area-inset-top, 0px)); left: 12px; min-height: 44px; padding: 0 16px 0 10px; border: 0; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-weight: 600; font-size: 0.9rem; color: #fff;
    background: rgba(8, 9, 13, 0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  }
  #profile-studio-overlay .hh-dt-foot { display: block; padding: 8px 24px max(28px, calc(env(safe-area-inset-bottom, 0px) + 16px)); }
  #profile-studio-overlay .hh-dt-foot .hh-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  #profile-studio-overlay .hh-more, #profile-studio-overlay .hh-board .hh-av, #profile-studio-overlay .hh-board .hh-shelf { transition: none; }
  #profile-studio-overlay .hh-board > .hh-card:not(.hh-card-add):hover .hh-av { transform: none; }
}

@media (max-width: 720px) {
  #profile-studio-overlay .ps-body.hh { padding-bottom: 120px !important; }
  /* A transformed ancestor would pin the dock to it instead of the screen, so the header skips the arrival slide here. */
  #ps-content[data-screen] > .ps-body.hh, #ps-content[data-screen] > .ps-body.hh > .hh-head { animation: none !important; transform: none !important; }
  /* The actions sit in a dock at the foot of the screen, in reach of a thumb. */
  #profile-studio-overlay .hh-head-actions {
    position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30; flex-wrap: nowrap; gap: 10px;
    padding: 10px; border-radius: 18px; background: rgba(12, 14, 19, 0.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 40px -16px rgba(0, 0, 0, 0.9);
  }
  #profile-studio-overlay .hh-head-actions #hh-backup-all { flex: none; width: 50px; padding: 0; justify-content: center; }
  #profile-studio-overlay .hh-head-actions #hh-backup-all .hh-btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #profile-studio-overlay .hh-head-actions #hh-copy-setup { flex: 1; justify-content: center; }
  #profile-studio-overlay .hh-jump { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 24px; padding: 0 16px; scrollbar-width: none; }
  #profile-studio-overlay .hh-jump-pill { flex: none; }
  /* The last used profile stays a cover card on top; everyone else becomes a row. */
  #profile-studio-overlay .hh-board { grid-template-columns: 1fr; gap: 0; border-radius: 16px; background: rgba(255, 255, 255, 0.04); overflow: hidden; }
  #profile-studio-overlay .hh-board > .hh-card.is-last { order: -1; margin: 0 0 12px; border-radius: 18px; }
  #profile-studio-overlay .hh-board:has(> .hh-card.is-last) { background: none; overflow: visible; }
  #profile-studio-overlay .hh-board > .hh-card:not(.is-last):not(.is-skeleton) {
    display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; column-gap: 14px; padding: 12px 14px; border-radius: 0; background: rgba(255, 255, 255, 0.04);
  }
  #profile-studio-overlay .hh-board > .hh-card:not(.is-last) + .hh-card:not(.is-last) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); }
  #profile-studio-overlay .hh-board > .hh-card:not(.is-last):not(.is-skeleton) .hh-shelf { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; grid-template-columns: 1fr 1fr; }
  #profile-studio-overlay .hh-board > .hh-card:not(.is-last):not(.is-skeleton) .hh-shelf::after { content: none; }
  #profile-studio-overlay .hh-board > .hh-card:not(.is-last):not(.is-skeleton) .hh-card-body { margin: 0; padding: 0; gap: 4px; }
  #profile-studio-overlay .hh-board > .hh-card:not(.is-last):not(.is-skeleton) :is(.hh-facts, .hh-av-wrap) { display: none; }
  #profile-studio-overlay .hh-board > .hh-card:not(.is-last):not(.is-skeleton) .hh-status { padding: 0; }
  #profile-studio-overlay .hh-board > .hh-card:not(.is-last):not(.is-skeleton) .hh-acts .hh-btn:not(.hh-btn-open) { display: none; }
  #profile-studio-overlay .hh-board > .hh-card:not(.is-last):not(.is-skeleton) .hh-acts .hh-btn-open { flex: none; min-height: 40px; padding: 0 16px; }
  #profile-studio-overlay .hh-board > .hh-card.is-last .hh-shelf { height: 150px; }
  #profile-studio-overlay .hh-board > .hh-card-add { min-height: 64px; display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-content: center; justify-items: start; text-align: left; padding: 12px 14px; border-radius: 0; }
  #profile-studio-overlay .hh-board > .hh-card-add > :not(.hh-plus) { grid-column: 2; }
  #profile-studio-overlay .hh-board > .hh-card-add .hh-plus { grid-row: 1 / span 2; margin: 0; width: 56px; height: 56px; border-radius: 12px; }
  #profile-studio-overlay .hh-board > .hh-card:not(.is-last):not(.is-skeleton) .hh-more { top: 50%; right: 14px; transform: translateY(-50%); background: rgba(255, 255, 255, 0.07); }
  #profile-studio-overlay .hh-board > .hh-card:not(.is-last):not(.is-skeleton) .hh-card-body { padding-right: 48px; }
}

/* Households: one tile per Nuvio account, before its profiles. Same language as the profile cards, one size up. */
#profile-studio-overlay .hh-back {
  display: inline-flex; align-items: center; gap: 4px; margin: 0 0 16px; padding: 6px 14px 6px 8px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.06); color: var(--text-secondary); font-size: 0.85rem; font-weight: 600; transition: background 0.15s, color 0.15s;
}
#profile-studio-overlay .hh-back:hover { background: rgba(255, 255, 255, 0.11); color: var(--text-primary); }
#profile-studio-overlay .hh-back .hh-i { width: 16px; height: 16px; }
#profile-studio-overlay .hh-hs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; margin-bottom: 36px; }
#profile-studio-overlay .hh-hs {
  position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 320px; border-radius: 22px; cursor: pointer; text-align: left;
  background: rgba(255, 255, 255, 0.045); color: var(--text-primary); transition: background 0.2s;
}
#profile-studio-overlay .hh-hs:hover { background: rgba(255, 255, 255, 0.065); }
#profile-studio-overlay .hh-hs.is-active { box-shadow: 0 0 0 1.5px rgba(0, 245, 160, 0.55); }
#profile-studio-overlay .hh-hs .hh-shelf { position: absolute; inset: 0 0 auto; height: 150px; opacity: 0.34; filter: saturate(0.75); transition: opacity 0.35s var(--hh-ease), filter 0.35s var(--hh-ease); }
#profile-studio-overlay .hh-hs .hh-shelf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 10%, #12151b 96%); }
#profile-studio-overlay .hh-hs:hover .hh-shelf { opacity: 0.55; filter: saturate(1); }
#profile-studio-overlay .hh-hs-now {
  position: absolute; top: 14px; left: 14px; z-index: 2; padding: 4px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 600;
  background: rgba(0, 245, 160, 0.14); color: var(--accent-light); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
#profile-studio-overlay .hh-hs-x {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center;
  cursor: pointer; color: #c7ccd6; background: rgba(8, 9, 13, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0.7; transition: opacity 0.15s, background 0.15s;
}
#profile-studio-overlay .hh-hs:hover .hh-hs-x, #profile-studio-overlay .hh-hs-x:focus-visible { opacity: 1; }
#profile-studio-overlay .hh-hs-x:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
#profile-studio-overlay .hh-hs-x .hh-i { width: 16px; height: 16px; }
#profile-studio-overlay .hh-hs-body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 92px 22px 20px; }
#profile-studio-overlay .hh-hs-faces { display: flex; margin-bottom: 16px; }
#profile-studio-overlay .hh-hs-face { width: 56px; height: 56px; font-size: 1.3rem; box-shadow: 0 0 0 3px #15181f; transition: transform 0.35s var(--hh-ease); }
#profile-studio-overlay .hh-hs-face + .hh-hs-face { margin-left: -14px; }
#profile-studio-overlay .hh-hs-face.is-empty { background: rgba(255, 255, 255, 0.07) !important; }
#profile-studio-overlay .hh-hs:hover .hh-hs-face { transform: translateY(-2px); }
#profile-studio-overlay .hh-hs:hover .hh-hs-face + .hh-hs-face { transform: translateY(-2px) translateX(3px); }
#profile-studio-overlay .hh-hs-name {
  margin: 0; font: 900 1.55rem/1 Outfit, Inter, sans-serif; text-transform: uppercase; letter-spacing: -0.03em; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
#profile-studio-overlay .hh-hs-mail { margin: 6px 0 0; font-size: 0.82rem; color: var(--text-muted); overflow-wrap: anywhere; }
#profile-studio-overlay .hh-hs-meta { margin: 10px 0 18px; font-size: 0.88rem; color: var(--text-secondary); }
#profile-studio-overlay .hh-hs-warn { color: #f3d6a6; }
#profile-studio-overlay .hh-hs-acts { margin-top: auto; display: flex; gap: 8px; }
#profile-studio-overlay .hh-hs-acts .hh-btn { border: 0; border-radius: 11px; min-height: 44px; background: rgba(255, 255, 255, 0.08); }
#profile-studio-overlay .hh-hs-acts .hh-btn-open { flex: 1; justify-content: center; background: #f4f5f7; color: #07080b; font-weight: 600; }
#profile-studio-overlay .hh-hs-acts .hh-btn-open:hover:not(:disabled) { background: #fff; color: #07080b; }
#profile-studio-overlay .hh-hs-acts .hh-btn-primary { flex: 1; justify-content: center; }
#profile-studio-overlay .hh-hs-pw { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
#profile-studio-overlay .hh-hs-pw .hh-btn-light { border: 0; border-radius: 11px; min-height: 44px; justify-content: center; background: #f4f5f7; color: #07080b; font-weight: 600; }
#profile-studio-overlay .hh-hs-add { align-items: center; justify-content: center; gap: 8px; padding: 28px; border: 0; text-align: center; background: rgba(255, 255, 255, 0.025); color: var(--text-muted); font-size: 0.86rem; }
#profile-studio-overlay .hh-hs-add strong { color: var(--text-primary); font-size: 1rem; }
#profile-studio-overlay .hh-hs-add span:last-child { max-width: 26ch; }
#profile-studio-overlay .hh-hs-form { cursor: default; gap: 8px; padding: 24px 22px 20px; }
#profile-studio-overlay .hh-hs-form .hh-hs-name { margin-bottom: 8px; font-size: 1.3rem; }
#profile-studio-overlay .hh-hs-form .hh-hs-acts { margin-top: 10px; }
@media (max-width: 560px) {
  #profile-studio-overlay .hh-hs { min-height: 0; }
  #profile-studio-overlay .hh-hs .hh-shelf { height: 120px; }
  #profile-studio-overlay .hh-hs-body { padding-top: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  #profile-studio-overlay .hh-hs .hh-shelf, #profile-studio-overlay .hh-hs-face { transition: none; }
  #profile-studio-overlay .hh-hs:hover .hh-hs-face, #profile-studio-overlay .hh-hs:hover .hh-hs-face + .hh-hs-face { transform: none; }
}
/* Households strip: every saved Nuvio account, plus the way to add one, above the profiles */
#profile-studio-overlay .hh-strip { margin: 0 0 32px; }
#profile-studio-overlay .hh-strip-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 12px; }
#profile-studio-overlay .hh-strip-title { font-family: Outfit, Inter, sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase; color: #9aa3b5; margin: 0; }
#profile-studio-overlay .hh-strip-lede { margin: 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.45; }
#profile-studio-overlay .hh-strip-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
#profile-studio-overlay .hh-st-item {
  width: 100%; height: 100%; min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 14px; border: 1px solid var(--hh-line); background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary); font: inherit; text-align: left;
}
#profile-studio-overlay button.hh-st-item { cursor: pointer; transition: transform 0.2s var(--hh-ease), border-color 0.2s, background 0.2s; }
#profile-studio-overlay button.hh-st-item:hover:not(:disabled) { transform: translateY(-1.5px); border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.05); }
#profile-studio-overlay button.hh-st-item:disabled { opacity: 0.6; cursor: default; }
#profile-studio-overlay .hh-st-item.is-active { border-color: var(--hh-line-mint); background: rgba(0, 245, 160, 0.05); }
#profile-studio-overlay .hh-st-faces { display: inline-flex; flex: none; padding-left: 2px; }
#profile-studio-overlay .hh-st-face { width: 32px; height: 32px; font-size: 0.82rem; box-shadow: 0 0 0 2px #12151e; }
#profile-studio-overlay .hh-st-face + .hh-st-face { margin-left: -10px; }
#profile-studio-overlay .hh-st-face.is-empty { background: rgba(255, 255, 255, 0.08) !important; color: var(--text-secondary); }
#profile-studio-overlay .hh-st-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
#profile-studio-overlay .hh-st-text strong { font-size: 0.94rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#profile-studio-overlay .hh-st-text span { font-size: 0.78rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
#profile-studio-overlay .hh-st-item.is-active .hh-st-text span { color: var(--accent-light); }
#profile-studio-overlay .hh-st-go { flex: none; font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); }
#profile-studio-overlay .hh-st-add { border-style: dashed; border-color: var(--hh-line-2); background: none; }
#profile-studio-overlay .hh-st-add:hover:not(:disabled) { border-color: var(--hh-line-mint) !important; background: rgba(0, 245, 160, 0.03) !important; }
#profile-studio-overlay .hh-st-add .hh-plus { width: 34px; height: 34px; margin: 0; flex: none; color: var(--accent-light); border-color: var(--hh-line-mint); }
#profile-studio-overlay .hh-add-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#profile-studio-overlay .hh-add-text strong { color: var(--text-primary); font-size: 0.94rem; font-weight: 600; }
#profile-studio-overlay .hh-add-why { display: block; font-size: 0.8rem; color: var(--text-muted); line-height: 1.45; }
#profile-studio-overlay .hh-add-why::first-letter { text-transform: uppercase; }
#profile-studio-overlay .hh-add-need {
  align-self: flex-start; margin-top: 6px; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 600;
  background: rgba(0, 245, 160, 0.1); color: var(--accent-light);
}
@media (min-width: 720px) { #profile-studio-overlay .hh-strip-list > li:has(.hh-st-add.is-locked) { grid-column: span 2; } }
#profile-studio-overlay .hh-hs-add .hh-add-text { align-items: center; gap: 6px; }
#profile-studio-overlay .hh-hs-add .hh-add-text strong { font-size: 1rem; }
#profile-studio-overlay .hh-hs-add .hh-add-why { max-width: 28ch; font-size: 0.86rem; }
#profile-studio-overlay .hh-hs-add .hh-add-need { align-self: center; }
/* The detail sheet carries three actions now; on a phone the page link leads, full width */
#profile-studio-overlay .hh-dt-cta { flex-wrap: wrap; }
@media (max-width: 560px) {
  #profile-studio-overlay .hh-strip-lede { display: none; }
  #profile-studio-overlay .hh-dt-cta a.hh-btn-primary { order: -1; flex-basis: 100%; }
}

/* A profile card's picture and name lead to its own page */
#profile-studio-overlay a.hh-who { color: inherit; text-decoration: none; border-radius: 10px; }
#profile-studio-overlay a.hh-who:hover .hh-name { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--hh-line-mint); }
#profile-studio-overlay a.hh-btn { text-decoration: none; }
#profile-studio-overlay .hh-acts .hh-btn .hh-i { width: 15px; height: 15px; }
@media (prefers-reduced-motion: reduce) {
  #profile-studio-overlay button.hh-st-item { transition: none; }
  #profile-studio-overlay button.hh-st-item:hover:not(:disabled) { transform: none; }
}
