/* TUR-74 (owner 25.11): retry at 30 % off, engine compare, saved characters. Theme tokens only (light + dark). */

/* ---------- modal (Fable 25.11: soft card, icon head, scrolling body, pinned foot bar; a bottom sheet on phones) ---------- */
.t74-back { position: fixed; inset: 0; z-index: 80; background: rgba(10, 12, 16, .5); backdrop-filter: blur(2px); }
.t74-modal { position: fixed; z-index: 81; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px); display: flex; flex-direction: column; overflow: hidden; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 80px rgba(15, 17, 21, .2); }
html[data-theme="dark"] .t74-modal { border-color: var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.t74-modal.wide { width: min(880px, calc(100vw - 32px)); }
.t74-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 14px 12px 20px; flex: none; }
.t74-hico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--rd-green-tint, #ecfdf3); color: var(--rd-green, #16a34a); }
.t74-hico .ico { width: 20px; height: 20px; }
.t74-htxt { flex: 1; min-width: 0; padding-top: 1px; }
.t74-head h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.t74-sub { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.t74-x { margin: -4px -2px 0 0; }
.t74-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 6px 20px 18px;
  display: flex; flex-direction: column; gap: 8px; }
.t74-body > * { flex: none; }                  /* phones: the prompt box was the only child that could shrink */
.t74-footbar { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 20px;
  border-top: 1px solid var(--line); background: var(--bg); }
.t74-footbar:empty { display: none; }
.t74-footbar .btn.primary { min-height: 46px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 800; }
.t74-footbar .btn.ghost { border-radius: 999px; }
.t74-lead { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.t74-lead s, .rt-btn s, .t74-deal s { opacity: .7; text-decoration-thickness: 1.5px; }
.t74-green { color: var(--rd-green, #16a34a); }
.t74-lab { font-size: 13px; font-weight: 800; color: var(--text); margin-top: 8px; }
.t74-labrow { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.t74-labrow .t74-lab { margin: 0; }
.t74-small { font-size: 12px; margin: 0; line-height: 1.45; }
.t74-prompt, .t74-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 14.5px; line-height: 1.5; color: var(--text); background: var(--panel);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 14px; resize: vertical; transition: border-color .15s, box-shadow .15s; }
.t74-prompt { min-height: 104px; }
.t74-prompt:focus, .t74-input:focus { outline: 0; border-color: var(--rd-green, #16a34a); box-shadow: 0 0 0 3px var(--rd-green-tint, #ecfdf3); }
.t74-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.t74-chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--panel); color: var(--text);
  font: inherit; font-size: 13.5px; cursor: pointer; transition: border-color .15s, background .15s; }
.t74-chip:hover { border-color: var(--line-strong); }
.t74-chip[aria-pressed="true"] { border-color: var(--rd-green, #16a34a); background: var(--rd-green-tint, #ecfdf3); color: var(--rd-green-ink, #166534); font-weight: 800; }
/* retry: the deal banner */
.t74-deal { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 14px 16px; border-radius: 16px; background: var(--rd-green-tint, #ecfdf3); }
.t74-deal-txt { flex: 1 1 200px; font-size: 14.5px; font-weight: 600; color: var(--text); }
.t74-deal-txt small { display: block; margin-top: 3px; font-size: 13px; font-weight: 500; color: var(--muted); }
.t74-deal-p { font-size: 15px; color: var(--muted); white-space: nowrap; }
.t74-deal-p b { font-size: 22px; font-weight: 800; color: var(--rd-green-ink, #166534); }
.t74-off { padding: 3px 10px; border-radius: 999px; background: var(--rd-green, #16a34a); color: #fff; font-size: 12.5px; font-weight: 800; }

/* ---------- 1. retry line under a fresh tile (owner 26.11, Fable option A: quiet grey row) ---------- */
.rt-slot:empty { display: none; }
.rt-btn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; margin-top: 10px; padding: 8px 12px; border: 0; border-radius: 12px;
  background: var(--panel-2, #f6f7f8); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer;
  transition: background .15s; }
.rt-btn .ico { flex: none; width: 15px; height: 15px; color: var(--muted); transition: color .15s; }
.rt-l { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-x, .rt-t { font-weight: 500; color: var(--muted); }
.rt-btn.is-ending .rt-t { color: var(--rd-green-ink, #15803d); font-weight: 700; }
.rt-p { flex: none; display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.rt-btn .rt-p s { opacity: 1; color: var(--muted); font-weight: 500; text-decoration-thickness: 1.5px; text-decoration-color: #9ca3af; }
.rt-p b { color: var(--rd-green-ink, #15803d); font-weight: 800; }
html[data-theme="dark"] .rt-p b, html[data-theme="dark"] .rt-btn.is-ending .rt-t { color: #4ade80; }
.rt-btn:hover { background: var(--rd-green-tint, #ecfdf3); }
.rt-btn:hover .ico { color: var(--rd-green-ink, #15803d); }   /* owner 26.11: no turn on hover, it smeared the icon */
.rt-btn:focus-visible { outline: 3px solid var(--accent-border, #93c5fd); outline-offset: 2px; }
@media (max-width: 640px) { .rt-x { display: none; } .rt-btn { font-size: 12.5px; padding: 7px 10px; } }

/* ---------- 2. compare ---------- */
.t74-tool { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 9px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--panel-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; }
.t74-tool .ico { width: 16px; height: 16px; color: var(--rd-green, #16a34a); }
.t74-tool:hover { background: var(--rd-green-tint, #ecfdf3); }
@media (max-width: 640px) { .t74-tool span { display: none; } .t74-tool { padding: 0 9px; } }
.cmp4-headrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.cmp4-headrow .t74-lab { margin: 0; }
.cmp4-headrow .seg-inline { margin-left: auto; }
.cmp4-count { padding: 2px 9px; border-radius: 999px; background: var(--rd-green-tint, #ecfdf3); color: var(--rd-green-ink, #166534); font-size: 12px; font-weight: 800; }
.cmp4-refs .chr-th img, .cmp4-refs .chr-add { width: 64px; height: 64px; border-radius: 14px; }
.cmp4-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.cmp4-card { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center;
  column-gap: 12px; row-gap: 1px; padding: 10px 42px 10px 10px; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: var(--panel); border: 1.5px solid var(--line); border-radius: 16px;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; }
.cmp4-card:hover:not(:disabled) { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--rd-card-sh); }
.cmp4-card > img, .cmp4-mono { grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--panel-2); }
.cmp4-mono { display: grid; place-items: center; font-weight: 800; font-size: 18px; color: var(--muted); }
.cmp4-name { align-self: end; font-size: 14.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp4-sub { grid-column: 2; align-self: start; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp4-price { grid-row: 1 / 3; grid-column: 3; font-size: 15px; font-weight: 800; white-space: nowrap; }
.cmp4-check { position: absolute; top: 50%; right: 12px; margin-top: -11px; width: 22px; height: 22px; border-radius: 50%; box-sizing: border-box;
  border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: 11.5px; font-weight: 800; color: #fff; transition: background .15s, border-color .15s; }
.cmp4-card[aria-pressed="true"] { border-color: var(--rd-green, #16a34a); background: var(--rd-green-tint, #ecfdf3); }
.cmp4-card[aria-pressed="true"] .cmp4-check { background: var(--rd-green, #16a34a); border-color: var(--rd-green, #16a34a); }
.cmp4-card:disabled { opacity: .45; cursor: not-allowed; }
.cmp4-card.dim { opacity: .55; }
.cmp4-card:focus-visible { outline: 2px solid var(--rd-green, #16a34a); outline-offset: 2px; }
.cmp4-total { margin-right: auto; display: grid; line-height: 1.15; font-size: 12px; color: var(--muted); }
.cmp4-total b { color: var(--text); font-size: 20px; font-weight: 800; }
/* result */
.cmp4-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cmp4-cell { border-radius: 18px; overflow: hidden; background: var(--panel); box-shadow: var(--rd-card-sh); }
html[data-theme="dark"] .cmp4-cell { box-shadow: none; border: 1px solid var(--line); }
.cmp4-media { position: relative; }
.cmp4-media video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.cmp4-badge { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border-radius: 999px;
  background: rgba(15, 17, 21, .72); color: #fff; font-size: 12.5px; font-weight: 700; pointer-events: none; backdrop-filter: blur(4px); }
.cmp4-badge i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--rd-green, #16a34a); font-size: 11px; font-weight: 800; }
.cmp4-wait { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px;
  background: var(--panel-2); animation: t74-shim 1.6s ease-in-out infinite; }
.cmp4-wait.failed { animation: none; background: var(--panel-2); color: var(--muted); }
@keyframes t74-shim { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.cmp4-cap { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; flex-wrap: wrap; }
.cmp4-cap .btn { margin-left: auto; border-radius: 999px; background: var(--rd-green-tint, #ecfdf3); color: var(--rd-green-ink, #166534);
  border: 0; box-shadow: inset 0 0 0 1.5px var(--rd-green, #16a34a); font-weight: 800; }
.cmp-tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--panel-2); color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 700; }
.cmp-tag .ico { width: 12px; height: 12px; }
.nudge-slot:empty { display: none; }
.cmp-nudge { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 8px 8px 8px 12px; border-radius: 12px;
  background: var(--rd-green-tint2, #f6fef9); border: 1px solid var(--line); font-size: 13.5px; color: var(--text); }
.cmp-nudge > .ico { color: var(--rd-green, #16a34a); flex: none; }
.cmp-nudge > span { flex: 1; min-width: 0; }
.cmp-nudge .link-btn { font-weight: 700; color: var(--rd-green, #16a34a); white-space: nowrap; }
@media (max-width: 640px) {
  .t74-modal, .t74-modal.wide { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 94dvh;
    border-radius: 22px 22px 0 0; border-width: 1px 0 0; animation: t74-up .24s cubic-bezier(.2, .9, .3, 1); }
  .t74-modal.full { top: 0; max-height: none; border-radius: 0; }
  .t74-modal::before { content: ""; position: absolute; left: 50%; top: 7px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-strong); }
  .t74-modal.full::before { display: none; }
  .t74-head { padding: 20px 10px 10px 16px; }
  .t74-body { padding: 4px 16px 16px; }
  .t74-prompt, .t74-input { font-size: 16px; }
  .t74-footbar { padding: 10px 16px max(12px, env(safe-area-inset-bottom)); }
  .t74-footbar .btn.primary { flex: 1; padding: 0 14px; }
  .cmp4-cards, .cmp4-grid { grid-template-columns: 1fr; }
}
@keyframes t74-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .t74-modal, .cmp4-wait { animation: none; } .cmp4-card { transition: none; } }

/* ---------- 3. characters ---------- */
.chr-pill.has .pill { box-shadow: inset 0 0 0 1.5px var(--rd-green, #16a34a); }
.chr-wrap { min-width: 260px; max-width: 360px; padding: 4px; }
.chr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chr-item { position: relative; }
.chr-pick, .chr-new { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; }
.chr-pick:hover:not(:disabled), .chr-new:hover { border-color: var(--rd-green, #16a34a); }
.chr-pick:disabled { opacity: .5; cursor: not-allowed; }
.chr-pick img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.chr-pick span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.chr-pick small { color: var(--muted); font-size: 11px; }
.chr-new { justify-content: center; min-height: 104px; border-style: dashed; color: var(--muted); }
.chr-new .ico { width: 22px; height: 22px; color: var(--rd-green, #16a34a); }
.chr-del { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--panel-2); color: var(--muted); cursor: pointer; opacity: 0; }
.chr-item:hover .chr-del, .chr-del:focus-visible { opacity: 1; }
@media (hover: none) { .chr-del { opacity: 1; } }
.chr-del .ico { width: 13px; height: 13px; }
.chr-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.chr-thumbs > img, .chr-th img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; display: block; }
.chr-th { position: relative; }
.chr-th.main img { box-shadow: 0 0 0 2px var(--rd-green, #16a34a); }
.chr-th small { position: absolute; left: 4px; bottom: 4px; padding: 0 5px; border-radius: 6px; background: var(--rd-green, #16a34a); color: #fff; font-size: 10.5px; font-weight: 700; }
.chr-th-x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg);
  color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
.chr-th-x .ico { width: 12px; height: 12px; }
.chr-add { width: 76px; height: 76px; border-radius: 10px; border: 1px dashed var(--line-strong); background: transparent; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; font-size: 11.5px; cursor: pointer; }
.chr-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--rd-green-tint2, #f6fef9); }
.chr-consent[hidden] { display: none; }
.cmp4-check .ico { width: 13px; height: 13px; stroke-width: 3; }
.t74-deal-p s { font-size: 18px; font-weight: 600; margin-right: 4px; opacity: 1; text-decoration-thickness: 2px; text-decoration-color: #9ca3af; }
html[data-theme="dark"] .t74-deal-p b { color: #4ade80; }
.t74-hint { margin-right: auto; font-size: 13px; color: var(--muted); }
.t74-hint[hidden] { display: none; }

/* owner 25.11: Yes / No is a small switch, not a full-width grey bar */
.t74-body > .seg-inline { align-self: flex-start; }

/* Studio menu captions (owner 26.11, Fable option 2): CREATE over Image / Video / Audio, MY LIBRARY over the libraries */
.nav-sub .nav-cap { display: block; padding: 8px 12px 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); pointer-events: none; }
.nav-sub .nav-cap-lib { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 980px) { .tb-panel .nav-sub .nav-cap { padding: 10px 4px 2px; font-size: 12px; } }

/* ---------- #/characters page (owner 26.11) ---------- */
.chr-page-count { margin: 4px 0 16px; font-size: 13px; }
.chr-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.chr-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.chr-card-ph { display: grid; gap: 2px; aspect-ratio: 1; background: var(--panel-2); }
.chr-card-ph img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; }
.chr-card-ph.n2 { grid-template-columns: 1fr 1fr; }
.chr-card-ph.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.chr-card-ph.n3 img:first-child { grid-row: 1 / 3; }
.chr-card-ph.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.chr-card-meta { display: flex; align-items: center; gap: 8px; padding: 12px 14px 4px; }
.chr-card-meta b { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chr-card-meta small { font-size: 12.5px; white-space: nowrap; }
.chr-card-del { margin-left: auto; flex: none; }
.chr-card-go { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 14px 14px; }
.chr-card-go .btn { flex: 1 1 auto; justify-content: center; gap: 6px; border-radius: 999px; }
.chr-card-go .btn .ico { width: 16px; height: 16px; }
.chr-card-new { align-items: center; justify-content: center; gap: 8px; min-height: 300px; padding: 24px; border: 1.5px dashed var(--line-strong);
  background: transparent; color: var(--text); font: inherit; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.chr-card-new:hover { border-color: var(--rd-green, #16a34a); background: var(--rd-green-tint2, #f6fef9); }
.chr-card-new small { max-width: 220px; line-height: 1.45; }
.chr-card-plus { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--rd-green-tint, #ecfdf3); color: var(--rd-green, #16a34a); }
@media (max-width: 480px) { .chr-page-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .chr-card-meta { padding: 10px 10px 2px; } .chr-card-meta small { display: none; } .chr-card-go { padding: 6px 10px 12px; } .chr-card-go .btn { font-size: 12.5px; padding: 0 10px; }
  .chr-card-new { min-height: 220px; padding: 14px; } }
/* desktop: the Studio menu is a strip under the header -> captions sit in the row, a short vertical divider before MY LIBRARY */
@media (min-width: 981px) {
  .topbar .nav-sub .nav-cap { display: flex; align-items: center; align-self: center; margin: 0 -4px 2px 0; padding: 0; }
  .topbar .nav-sub .nav-cap-lib { height: 24px; margin: 0 -4px 2px 10px; padding: 0 0 0 22px; border-top: 0; border-left: 1px solid var(--line); }
}
/* owner 26.11 (Fable): captions = a quiet eyebrow label (lighter, smaller, wider tracking), more air between the groups */
.nav-sub .nav-cap { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: #9ca3af; user-select: none; }
html.rd-v6[data-theme="dark"] .nav-sub .nav-cap { color: #6b7280; }
@media (max-width: 980px) {
  .tb-panel .nav-sub .nav-cap { padding: 16px 4px 6px; font-size: 11px; }
  .tb-panel .nav-sub .nav-cap-lib { margin-top: 10px; padding-top: 18px; }
}
@media (min-width: 981px) {
  .topbar .nav-sub .nav-cap { margin: 0 2px 2px 0; }
  .topbar .nav-sub .nav-cap-lib { height: 28px; margin: 0 2px 2px 22px; padding: 0 0 0 28px; border-left: 1px solid var(--line-strong, var(--line)); }
}

/* owner 26.11: the starred badge looked crooked - the Lucide path sets fill="none", so the outline showed at 13 px; a filled star in a round badge */
.tile-star { width: 26px; height: 26px; border-radius: 50%; }
.tile-star .ico { width: 14px; height: 14px; stroke-width: 1.5; }
.tile-star .ico path, .tile-btn.on .ico path { fill: currentColor; }

/* owner 26.11: one look for the Tools row chips (Motion / Compare / Character) - grey pill, green icon, same text */
html.rd-v6 .cmp-tools .mo-chip, html.rd-v6 .cmp-tools .t74-tool, html.rd-v6 .cmp-tools .chr-pill .pill {
  height: 34px; padding: 0 12px 0 9px; gap: 6px; border-radius: 999px; background: var(--panel-2); color: var(--text); font-size: 13px; font-weight: 700; }
html.rd-v6 .cmp-tools .mo-chip .ico, html.rd-v6 .cmp-tools .chr-pill .pill > .ico:first-child { width: 16px; height: 16px; color: var(--rd-green, #16a34a); }
html.rd-v6 .cmp-tools .mo-chip:hover, html.rd-v6 .cmp-tools .chr-pill .pill:hover { background: var(--rd-green-tint, #ecfdf3); }
html.rd-v6[data-theme="dark"] .cmp-tools .mo-chip:hover, html.rd-v6[data-theme="dark"] .cmp-tools .t74-tool:hover,
html.rd-v6[data-theme="dark"] .cmp-tools .chr-pill .pill:hover { background: rgba(34, 197, 94, .16); }
@media (max-width: 640px) {
  html.rd-v6 .cmp-tools .mo-chip, html.rd-v6 .cmp-tools .t74-tool, html.rd-v6 .cmp-tools .chr-pill .pill {
    height: 30px; padding: 0 9px 0 7px; gap: 5px; font-size: 12.5px; background: var(--cmp-bg, var(--panel)); }
  html.rd-v6 .composer.is-open .cmp-tools { gap: 5px; }
  html.rd-v6 .composer.is-open .cmp-tools > .cmp-lab { padding: 0 2px 0 4px; }
  html.rd-v6 .cmp-tools .mo-chip span, html.rd-v6 .cmp-tools .t74-tool span { display: inline; }
}

/* owner 26.11 (Fable 5.2): Black Friday price - old price struck through in Generate and in the server list */
html.rd-v6 .go-bf { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 3px; }
html.rd-v6 .go-bf-note { font-size: 11.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
html.rd-v6 .go-bf-note b { color: var(--text); font-weight: 700; }
html.rd-v6 .go-bf-was { display: none; }
html.rd-v6 .btn.go .btn-was { margin-right: 6px; font-size: .82em; font-weight: 600; opacity: .7; text-decoration-thickness: 1.5px; }
html.rd-v6 .pm-price .pm-was { margin-right: 4px; font-size: .9em; opacity: .6; }
html.rd-v6 .pop-bf { grid-column: 1 / -1; margin: 0 0 6px; font-size: 12.5px; font-weight: 700; color: var(--rd-green, #16a34a); }
@media (max-width: 640px) {
  html.rd-v6 .go-bf { display: flex; width: 100%; align-items: stretch; }
  html.rd-v6 .go-bf-note { text-align: center; }
  html.rd-v6 .go-bf-ends { display: none; }
  html.rd-v6 .go-bf-was { display: inline; }
  html.rd-v6 .btn.go.is-bf .btn-was { display: none; }
}

/* ---- our own how-to videos (owner 29.11, howto.js): the play chip + the player in the page lightbox ---- */
.lightbox:has(.lightbox-howto) { z-index: 95; }          /* above a dialog the video was opened from */
.lightbox-body .lightbox-howto { display: block; width: min(92vw, calc(86vh * 16 / 9)); aspect-ratio: 16 / 9; height: auto; max-height: 86vh; border-radius: 12px; background: #000; }
.lightbox-body .lightbox-howto.tall { width: min(92vw, calc(84vh * 9 / 16)); aspect-ratio: 9 / 16; max-height: 84vh; }
.howto-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; margin-top: 10px; padding: 0 14px 0 5px; border: 0; border-radius: 999px;
  background: color-mix(in srgb, #16a34a 12%, transparent); color: inherit; font: 800 13.5px/1 var(--font, inherit); cursor: pointer; white-space: nowrap; }
.howto-chip:hover, .howto-chip:focus-visible { background: color-mix(in srgb, #16a34a 22%, transparent); outline: none; }
.howto-chip:focus-visible { box-shadow: 0 0 0 2px #16a34a; }
.howto-chip i { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #16a34a; }
.howto-chip i::after { content: ""; position: absolute; left: 9px; top: 7px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }
.howto-chip small { font-size: 12.5px; font-weight: 700; opacity: .7; font-variant-numeric: tabular-nums; }
.howto-chip.on-page { margin: 0 0 14px; }
/* home news rows: a play badge on the thumbnail (the row itself still opens the feature) */
.hm-nw-pic.has-tut { position: relative; }
.hm-nw-play { position: absolute; left: 5px; right: 5px; bottom: 5px; display: flex; align-items: center; justify-content: center; gap: 5px; height: 26px; border-radius: 999px;
  background: rgba(10, 14, 12, .72); color: #fff; cursor: pointer; backdrop-filter: blur(4px); }
.hm-nw-play::before { content: ""; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #4ade80; }
.hm-nw-play small { display: inline; font-size: 12px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.hm-nw-play:hover, .hm-nw-play:focus-visible { background: #16a34a; outline: none; }
.hm-nw-play:hover::before, .hm-nw-play:focus-visible::before { border-left-color: #fff; }

/* owner 29.11: "Details in the Terms of use" under the retry rules; on phones the grey "pick a reason" hint takes its own
   row so a translated "Retry for N cr" button keeps its full width */
.t74-terms { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
@media (max-width: 640px) {
  .t74-footbar { flex-wrap: wrap; }
  .t74-footbar .t74-hint { flex: 1 0 100%; margin: 0; text-align: center; }
}
