/* Canvas — noir et blanc de Hosted, Host Grotesk, clair et sombre suivant le système (?theme=dark|light pour les
   captures). Une seule idée : la boucle au centre, dans un cadre de téléphone. Contrastes : 21:1 (noir/blanc),
   gris #4A4A4A sur blanc 8,9:1, #BFC3C9 sur noir 12:1. */
:root {
  --bg: #FFFFFF; --fg: #000000; --muted: #4A4A4A; --line: #000000; --soft: #E6E6E6; --surface: #F4F4F4;
  --on-fg: #FFFFFF; --warn-bg: #FFF4D6; --warn-fg: #4A3500; --err: #B00020;
  --bar-h: 60px; --radius: 14px;
  font-family: "Host Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --fg: #FFFFFF; --muted: #BFC3C9; --line: #FFFFFF; --soft: #2A2A2A; --surface: #141414;
    --on-fg: #000000; --warn-bg: #2B2410; --warn-fg: #FFE6A3; --err: #FF8A9A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --fg: #FFFFFF; --muted: #BFC3C9; --line: #FFFFFF; --soft: #2A2A2A; --surface: #141414;
  --on-fg: #000000; --warn-bg: #2B2410; --warn-fg: #FFE6A3; --err: #FF8A9A; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1 { font-size: 32px; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 16px; font-weight: 600; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* En-tête identique aux autres outils Hosted : logo → hosted.art, nom de l'outil. */
.hbar {
  position: sticky; top: 0; z-index: 20; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 24px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.hbar-brand { display: flex; align-items: center; gap: 12px; }
.hbar-home, .hbar-tool { color: inherit; text-decoration: none; }
.hbar-home { display: block; line-height: 0; }
.hbar-logo {
  display: block; width: 120px; aspect-ratio: 1790 / 286; background: currentColor;
  -webkit-mask: url(assets/hosted-logo.webp) center / contain no-repeat; mask: url(assets/hosted-logo.webp) center / contain no-repeat;
}
.hbar-tool { font-weight: 600; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; padding-left: 12px; border-left: 1px solid var(--line); }
.hbar-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hbar-email { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px;
  border: 1px solid var(--fg); border-radius: 999px; background: var(--fg); color: var(--bg);
  font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.pill.ghost { background: transparent; color: var(--fg); }
.pill.big { min-height: 52px; padding: 0 28px; font-size: 16px; width: 100%; }
.pill:disabled { opacity: 0.5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--fg); font-size: 14px; }

/* Mise en page : la scène (téléphone) et le panneau. */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; min-height: calc(100vh - var(--bar-h)); }
.stage {
  position: sticky; top: var(--bar-h); height: calc(100vh - var(--bar-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 32px;
  background: var(--surface);
}
.phone {
  position: relative; height: min(calc(100vh - var(--bar-h) - 130px), 820px); aspect-ratio: 9 / 16;
  border-radius: 28px; overflow: hidden; background: #000; border: 6px solid #000;
  box-shadow: 0 0 0 1px var(--soft);
}
.phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* Barre de la boucle : avance pendant la lecture et repart à zéro au moment où la boucle recommence. */
.loopbar { position: relative; width: min(100%, 400px); height: 4px; border-radius: 2px; background: var(--soft); overflow: hidden; margin-top: -4px; }
.loopbar span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--fg); }
.phone #live { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; align-items: center; font-size: 14px; color: var(--muted); }
.stage-meta > * { white-space: nowrap; }
.toggle { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; color: var(--fg); }
.toggle input, .check input { width: 18px; height: 18px; accent-color: var(--fg); margin: 0; }

/* Zone sûre : bords qui peuvent être coupés, bas couvert par les commandes du lecteur Spotify. */
.safe { position: absolute; inset: 0; pointer-events: none; }
.safe-box { position: absolute; left: 8%; right: 8%; top: 12%; bottom: 26%; border: 1.5px dashed rgb(255 255 255 / 0.9); border-radius: 8px; box-shadow: 0 0 0 999px rgb(0 0 0 / 0.35); }
.safe-player { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; }
.safe-player span { color: #fff; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; }
.updating {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px;
  background: rgb(0 0 0 / 0.72); color: #fff; font-size: 13px; white-space: nowrap;
}
.updating .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .updating .dot { animation: none; } }

.panel { padding: 32px 32px 48px; border-left: 1px solid var(--line); min-width: 0; }
.lead { font-size: 18px; margin: 0 0 20px; }
.facts { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--soft); }
.facts li { padding: 10px 0; border-bottom: 1px solid var(--soft); }
.muted { color: var(--muted); font-size: 14px; }
.error { color: var(--err); font-size: 14px; margin: 12px 0 0; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.mode { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--soft); border-radius: var(--radius); cursor: pointer; min-height: 104px; }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode-name { font-size: 20px; font-weight: 600; }
.mode-text { font-size: 14px; color: var(--muted); }
.mode:has(input:checked) { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.mode:has(input:focus-visible) { outline: 2px solid var(--fg); outline-offset: 3px; }

.drop { border: 1.5px dashed var(--muted); border-radius: var(--radius); padding: 32px 20px; text-align: center; }
.drop.over { border-color: var(--fg); background: var(--surface); }
.drop-title { font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.drop-limits { font-size: 14px; color: var(--muted); margin: 0 0 18px; }

.bar { height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; margin: 8px 0 12px; }
.bar span { display: block; height: 100%; width: 0; background: var(--fg); }

.file-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--soft); }
.file-name { display: flex; gap: 10px; align-items: center; min-width: 0; font-weight: 500; }
.file-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--fg); border-radius: 999px; flex: none; }

.field { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.field legend { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; padding: 0; }
.hint { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.small { font-size: 14px; color: var(--muted); }

.seg { display: flex; border: 1px solid var(--fg); border-radius: 999px; padding: 3px; gap: 3px; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 36px; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 500; }
.seg input:checked + span { background: var(--fg); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }

.motions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.motions label { position: relative; }
.motions input { position: absolute; opacity: 0; pointer-events: none; }
.motions span { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--soft); border-radius: 12px; cursor: pointer; font-size: 13px; color: var(--muted); min-height: 72px; }
.motions b { font-size: 16px; color: var(--fg); font-weight: 600; }
.motions input:checked + span { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.motions input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }

.length { display: flex; align-items: center; gap: 12px; }
.length input[type="range"] { flex: 1; min-width: 0; accent-color: var(--fg); height: 28px; }
.length output { min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; font-size: 15px; }
.check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-size: 15px; }

.take { display: flex; align-items: center; gap: 12px; }
.take p { flex: 1; margin: 0; text-align: center; font-size: 15px; }
.square { width: 44px; height: 44px; border: 1px solid var(--fg); border-radius: 12px; background: transparent; cursor: pointer; font-size: 22px; line-height: 1; }
.square:disabled { opacity: 0.4; cursor: not-allowed; }

/* Frise de la vidéo : une fenêtre à déplacer et à étirer, comme la sélection de passage de Turn. */
.strip { position: relative; height: 64px; border-radius: 10px; overflow: hidden; background: var(--surface); touch-action: none; user-select: none; }
.strip img { display: block; width: 100%; height: 100%; object-fit: fill; opacity: 0.6; pointer-events: none; }
.strip-window {
  position: absolute; top: 0; bottom: 0; border-top: 3px solid var(--fg); border-bottom: 3px solid var(--fg); cursor: grab;
  background: rgb(255 255 255 / 0.12);
}
.strip-window img { display: none; }
.strip-window:active { cursor: grabbing; }
.strip { margin: 0 14px; overflow: visible; }
.strip img { border-radius: 10px; }
/* Poignées à l'extérieur de la fenêtre : le passage choisi reste visible même court sur une longue vidéo. */
.strip-handle { position: absolute; top: -3px; bottom: -3px; width: 14px; background: var(--fg); cursor: ew-resize; }
.strip-handle.start { left: -17px; border-radius: 6px 0 0 6px; }
.strip-handle.end { right: -17px; border-radius: 0 6px 6px 0; }
.strip-handle::after { content: ""; position: absolute; left: 6px; top: 22px; bottom: 22px; width: 2px; background: var(--bg); border-radius: 1px; }
.strip-handle::before { content: ""; position: absolute; inset: -6px -10px; } /* zone de toucher plus large */
.strip-time { margin: 10px 0 0; font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; }
#move-frame { margin-top: 16px; }

/* Cadre 9:16 déplaçable sur une image de la source. */
.framer { position: relative; display: flex; justify-content: center; width: 100%; background: var(--surface); border-radius: 10px; overflow: hidden; touch-action: none; user-select: none; }
.framer img { display: block; max-width: 100%; max-height: 300px; width: auto; height: auto; }
.framer-rect { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 999px rgb(0 0 0 / 0.55), 0 0 0 1px #000; cursor: grab; border-radius: 4px; }
.framer-rect:active { cursor: grabbing; }
.framer + .length { margin-top: 10px; }

.notes { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.note { background: var(--warn-bg); color: var(--warn-fg); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.note.info { background: var(--surface); color: var(--fg); }

.actions { position: sticky; bottom: 0; background: var(--bg); padding: 16px 0 4px; margin-top: 24px; border-top: 1px solid var(--soft); }
.actions p { margin: 8px 0 0; min-height: 20px; text-align: center; }

/* Téléphone et tablette : la boucle d'abord, les réglages dessous. */
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .stage { position: static; height: auto; padding: 20px 16px; }
  .phone { height: min(62vh, 560px); border-radius: 22px; border-width: 4px; }
  .panel { border-left: 0; border-top: 1px solid var(--line); padding: 24px 16px 40px; }
  .hbar { padding: 0 16px; }
  .hbar-email { display: none; }
  .hbar-logo { width: 96px; }
}
@media (max-width: 380px) {
  .modes, .motions { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Studio v2 ---------- */
.phone #stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.label { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 10px; }

/* Directions : 3 vrais aperçus animés. */
.dirs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dir { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: var(--fg); font: inherit; }
.dir canvas { width: 100%; aspect-ratio: 9 / 16; border-radius: 10px; background: #000; display: block; outline: 1px solid var(--soft); outline-offset: 0; }
.dir span { font-size: 14px; font-weight: 600; line-height: 1.2; }
.dir[aria-checked="true"] canvas { outline: 3px solid var(--fg); outline-offset: 2px; }
.dir:focus-visible { outline: none; }
.dir:focus-visible canvas { outline: 3px solid var(--fg); outline-offset: 4px; }
.surprise { margin-top: 12px; width: 100%; }
.dir-text { margin-top: 12px; font-size: 14px; color: var(--muted); }
.dir-text p { margin: 0 0 6px; }
.dir-text b { color: var(--fg); font-weight: 600; }

/* Réglages repliés. */
.adjust { margin-top: 20px; border-top: 1px solid var(--soft); }
.adjust summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.adjust summary::after { content: "+"; font-size: 20px; line-height: 1; }
.adjust[open] summary::after { content: "–"; }
.adjust summary::-webkit-details-marker { display: none; }
.adjust .field { margin-top: 12px; }
.tools span { font-size: 13px; min-height: 32px; }

/* Éditeur de la pochette : point focal, formes, zones protégées. */
.editor { position: relative; margin-top: 10px; line-height: 0; border-radius: 10px; overflow: hidden; background: var(--surface); touch-action: none; user-select: none; }
.editor img { width: 100%; height: auto; display: block; }
.editor svg { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.editor + .length { margin-top: 10px; }
.layers { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--soft); }
.layers li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--soft); font-size: 14px; }
.layers li .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layers li .tag { font-size: 10px; }
.layers li label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; white-space: nowrap; }
.layers li input { accent-color: var(--fg); width: 16px; height: 16px; margin: 0; }
.layers .x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 4px 6px; }
.layers .empty { color: var(--muted); }
.row { margin-top: 8px; }
.caps { list-style: none; padding: 0; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.caps li { padding: 3px 0; }
.caps li::before { content: "○ "; }
.caps li.on::before { content: "● "; color: var(--fg); }
#ai-analyze { margin-top: 6px; }
#cancel { display: block; margin: 4px auto 0; }
.actions .bar { margin: 10px 0 0; }
.stage-meta .link { font-size: 14px; }
.loopbar.seam span { animation: seam 0.45s ease-out; }
@keyframes seam { from { background: #FFCC00; } to { background: var(--fg); } }
@media (prefers-reduced-motion: reduce) { .loopbar.seam span { animation: none; } }
/* Tracés de l'éditeur (SVG en fraction de la pochette : traits d'épaisseur fixe). */
.editor svg * { vector-effect: non-scaling-stroke; fill: none; stroke-width: 2px; }
.editor svg .lay { stroke: #fff; stroke-dasharray: 6 4; filter: drop-shadow(0 0 1px #000); }
.editor svg .lay.still { stroke: #FFCC00; }
.editor svg .lay.sel { stroke-width: 3px; stroke-dasharray: none; }
.editor svg .prot { stroke: #FFCC00; fill: rgb(255 204 0 / 0.22); }
.editor svg .focus { stroke: #fff; filter: drop-shadow(0 0 1px #000); }
.editor svg .focus-dot { fill: #fff; stroke: #000; stroke-width: 1px; }
.editor svg .draft { stroke: #fff; stroke-dasharray: 3 3; fill: rgb(255 255 255 / 0.12); }

/* Effets : pastilles à choix unique. */
/* Effets : une vignette animée par effet (fx-thumbs.js), le nom dessous. */
.effects, .fx-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 14px 10px; }
.effects label { position: relative; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.effects input { position: absolute; opacity: 0; pointer-events: none; }
.effects canvas, .fx-gallery canvas { width: 100%; aspect-ratio: 9 / 16; border-radius: 8px; background: #000; display: block; outline: 1px solid var(--soft); }
.effects span, .fx-gallery figcaption { font-size: 13px; font-weight: 600; line-height: 1.2; }
.effects label:has(input:checked) canvas { outline: 3px solid var(--fg); outline-offset: 2px; }
.effects label:has(input:focus-visible) canvas { outline: 3px solid var(--fg); outline-offset: 4px; }
.fx-gallery figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.fx-title { font-size: 16px; font-weight: 600; margin: 36px 0 14px; padding-top: 20px; border-top: 1px solid var(--soft); }

.tempo { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.tempo input[type="number"] { width: 76px; min-height: 36px; padding: 0 10px; border: 1px solid var(--fg); border-radius: 10px; background: var(--bg); color: var(--fg); font-variant-numeric: tabular-nums; }

/* Menu Hosted dans l'en-tête de l'outil (décisions de François, 01/10) : le même partout, Radio · Tools · Label, et
   STUDIO en plus dès qu'on est connecté (studio.hosted.art : tous ses outils), souligné dans un outil. Tools est la
   présentation publique. Connecté = l'e-mail du compte est affiché dans la barre (.hbar-email sans « hidden »).
   Sous 900 px, un seul lien reste : Studio si connecté, Tools sinon. */
.hbar-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); margin-right: 6px; }
.hbar-nav a { font-weight: 500; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; color: inherit; white-space: nowrap; padding: 10px 0; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.hbar-nav a:hover, .hbar-nav a[aria-current="page"] { text-decoration-line: underline; }
.hbar-nav .hbar-studio { display: none; }
.hbar:has(.hbar-email:not([hidden])) .hbar-nav .hbar-studio { display: inline; }
@media (max-width: 900px) {
  .hbar-nav a { display: none; }
  .hbar-nav .hbar-tools-link { display: inline; }
  .hbar:has(.hbar-email:not([hidden])) .hbar-nav .hbar-tools-link { display: none; }
}

/* Téléphone (audit du 03/10) : la barre tient sur 360 px, le bouton de compte ne sort plus de l'écran.
   Le nom de l'outil peut se couper (…), le bouton jamais. */
.hbar-brand { min-width: 0; }
.hbar-tool { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-right { flex-shrink: 0; }
@media (max-width: 520px) {
  .hbar { gap: 10px; padding: 0 14px; }
  .hbar-brand { gap: 8px; }
  .hbar-logo { width: 80px; }
  .hbar-tool { font-size: 13px; letter-spacing: 0.1em; padding-left: 8px; }
  .hbar-right { gap: 10px; }
  .hbar-nav { margin-right: 0; }
  .hbar-nav a { font-size: 13px; }
  .hbar-right .pill { min-height: 36px; height: 36px; padding: 0 14px; font-size: 14px; }
}

/* ---------- Menu à gauche (03/10, validé sur Drops) : HOSTED | CANVAS ▾ (changer d'outil) ; à droite STUDIO + son nom ---------- */
.hbar-switch, .hbar-acct { position: relative; }
.hbar-tool { display: inline-flex; align-items: center; gap: 6px; height: 40px; border: 0; border-left: 1px solid var(--line); background: none; color: inherit; font: inherit; font-weight: 600; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.hbar-tool svg, .hbar-acct-btn svg { width: 12px; height: 12px; flex: none; }
.hbar-tool[aria-expanded="true"] svg, .hbar-acct-btn[aria-expanded="true"] svg { rotate: 180deg; }
.hbar-dd { position: absolute; top: calc(100% + 10px); left: 0; z-index: 30; display: grid; min-width: 240px; padding: 8px 0; background: var(--bg); border: 1px solid var(--fg); border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14); }
.hbar-dd[hidden] { display: none; }
.hbar-dd-right { left: auto; right: 0; }
.hbar-dd a, .hbar-dd button { display: block; padding: 10px 18px; border: 0; background: none; color: inherit; font: inherit; font-size: 16px; text-align: left; text-decoration: none; cursor: pointer; }
.hbar-dd a:hover, .hbar-dd button:hover { background: rgba(127, 127, 127, 0.12); }
.hbar-dd a[aria-current="page"] { font-weight: 700; }
.hbar-dd hr { margin: 6px 0; border: 0; border-top: 1px solid rgba(127, 127, 127, 0.3); }
.hbar-dd .hbar-email { display: block; max-width: none; padding: 6px 18px 10px; font-size: 13px; }
.hbar-studio-link { color: inherit; font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.hbar-login { color: inherit; font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; }
.hbar-studio-link:hover, .hbar-login:hover { text-decoration: underline; text-underline-offset: 6px; }
.hbar-acct-btn { gap: 8px; padding-left: 7px; }
.hbar-ini { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 13px; font-weight: 700; }
@media (max-width: 700px) {
  .hbar-studio-link, .hbar-create, .hbar-name, .hbar-acct-btn svg { display: none; }
  .hbar-right .hbar-acct-btn { width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; }
  .hbar-dd { position: fixed; top: calc(var(--bar-h) + 6px); left: 12px; right: 12px; }
}
