/* R5 (A-154, Rrahul 13 Nov 2026): Studio made easy. Loaded last, so it wins over the pages' own sizes. */

/* (5) Delete is a bin everywhere. Edit and Open stay written. */
.icon-del { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--hb-bad, #c0392b); cursor: pointer; flex: none; }
.icon-del .svg-i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-del:hover, .icon-del:focus-visible { border-color: currentColor; background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-del:disabled { color: var(--hb-faint, #999); cursor: not-allowed; background: transparent; border-color: transparent; }

/* (8) Every pop-up with content fills the Studio window; a yes/no question stays small in the middle. */
#dlg:not(.ask) { width: calc(100vw - 32px) !important; max-width: none !important; height: calc(100dvh - 32px) !important;
  max-height: none !important; overflow: auto; box-sizing: border-box; }
#dlg:not(.ask) video { max-height: calc(100dvh - 220px); }

/* (12) Today's staff PIN on Settings > Keys. */
.r5pin { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.r5pinv { font-size: 28px; font-weight: 700; letter-spacing: 3px; }

/* (7) Pictures in the sequence picker: a 3D model's preview, an avatar's drawn body. */
.pick .poster.seq-step img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* (2) A film on its way: a spinner over the player until it plays. */
.player { position: relative; }
.player .pv-spin { display: none; position: absolute; left: 50%; top: 40%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 4px solid rgba(255, 255, 255, .85); border-right-color: transparent; border-radius: 50%; animation: r5spin .8s linear infinite; pointer-events: none; }
.player.loading .pv-spin { display: block; }
@keyframes r5spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .player .pv-spin { animation-duration: 2.4s; } }

/* (1) Maya: the Actions tab, and the default mood marked. */
.tabs button.tab { border: 0; background: none; font: inherit; cursor: pointer; padding: 10px 14px; color: var(--hb-slate); font-weight: 500; position: relative; border-radius: 0; min-height: 0; box-shadow: none; }
.tabs button.tab:hover { color: var(--hb-ink); background: none; }
.tabs button.tab.on { color: var(--hb-ink); font-weight: 600; }
.tabs button.tab.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--hb-headline); }
.my-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.my-act { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.my-act:hover:not(:disabled) { background: var(--hb-mist, #f3f3f6); }
.my-act:disabled { opacity: .55; cursor: not-allowed; }
.my-default { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--hb-ok, #2e7d32); color: #fff; }

/* A-155: the Avatars page, one journey (the picture Rrahul approved on 14 Nov). */
.av-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.av-steps > div { display: flex; flex-direction: column; gap: 6px; }
.av-n { width: 32px; height: 32px; border-radius: 999px; background: var(--hb-mist); color: var(--hb-purple); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.av-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin: 8px 0 12px; }
.av-head h2 { margin: 0; }
.av-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.av-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.av-pic { height: 220px; background: var(--hb-night); display: flex; align-items: flex-end; justify-content: center; }
.av-pic.draft { background: var(--hb-mist); align-items: center; }
.av-pic svg { width: 110px; height: 150px; fill: none; stroke: #18E8F8; stroke-width: 1.5; }
.av-pic.draft svg { stroke: var(--hb-slate); stroke-dasharray: 3 3; }
.av-pic img { width: 100%; height: 100%; object-fit: contain; }
.av-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.av-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.av-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.av-acts .icon-del { margin-left: auto; }
.av-new { min-height: 320px; border: 2px dashed var(--hb-line); border-radius: 16px; background: transparent; color: var(--hb-slate); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font: inherit; }
.av-new > span:first-child { font-size: 34px; line-height: 1; color: var(--hb-purple); }
.av-new b { color: var(--hb-ink); }
.av-list { padding: 0; }
.av-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--hb-line); }
.av-row:last-child { border-bottom: 0; }
.av-row .grow { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.av-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--hb-mist); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.av-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--hb-blue-deep); stroke-width: 1.8; }
.av-icon img { width: 100%; height: 100%; object-fit: cover; }
.av-form { display: grid; gap: 14px; max-width: 760px; }
.av-langs { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.av-langs legend { padding: 0; margin-bottom: 6px; font-weight: 600; }
.av-bodies .poster img { width: 100%; height: 100%; object-fit: contain; }

/* A-155: a count in the Categories pop-up stays on one line ("14 videos"). */
#ctList .tyrow .small { white-space: nowrap; }

/* A-155, seen on v2: Studio's own card rule (display:flex, padding 20px) won over these; they are made specific to the page. */
#main .card.av-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
#main .card.av-card { padding: 0; display: flex; flex-direction: column; gap: 0; }
#main .card.av-list { padding: 0; display: block; }

/* A-174 (UX-18): a sequence card - a filmstrip of its first four pictures, "Play on HoloBox911", and a ... menu. */
.seq-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; width: 100%; height: 100%; }
.seq-strip img { width: 100%; height: 100%; object-fit: cover; background: var(--hb-mist); min-width: 0; }
.seq-acts { gap: 8px; align-items: center; justify-content: space-between; }
.seq-acts .primary { flex: 1; }
.seq-menu .actbtn { height: 32px; min-height: 32px; padding: 0 10px; font-size: 16px; line-height: 1; }
.seq-menu .actbtn .svg-i { display: none; }
