/* The same retro visual language as the public storefront, scoped to the app. */
body:not(.landing) {
  color-scheme: dark;
  --bg: var(--vv-bg);
  --panel: var(--vv-surface);
  --line: var(--vv-border);
  --muted: var(--vv-muted);
  --lime: var(--vv-accent);
  --ink: var(--vv-text);
  font-family: var(--dm-font-ui);
  background: linear-gradient(var(--vv-bg) 0, var(--vv-bg) 540px);
  color: var(--vv-text);
  min-height: 100vh;
}
body:not(.landing) h1,
body:not(.landing) h2,
body:not(.landing) h3 {
  font-family: var(--dm-font-display);
  font-weight: 900;
  letter-spacing: -0.025em;
}
body:not(.landing) p {
  color: var(--vv-muted);
}
body:not(.landing) header {
  max-width: 1360px;
  padding: 24px 5%;
  border-bottom: 2px solid var(--vv-border);
  gap: 20px;
}
body:not(.landing) .brand {
  font-family: var(--dm-font-display);
  font-size: 27px;
  color: var(--vv-text);
  letter-spacing: -1px;
}
body:not(.landing) .brand > span:not(.brand-icon) {
  color: var(--vv-accent);
}
body:not(.landing) .brand-icon {
  color: var(--vv-on-accent);
  background: var(--vv-accent);
  border: 2px solid var(--vv-border);
  box-shadow: 0 4px var(--vv-shadow);
  border-radius: 13px;
  padding: 5px 12px;
}
body:not(.landing) .brand small {
  color: var(--vv-muted);
  font-family: var(--dm-font-ui);
}
body:not(.landing) nav {
  gap: 16px;
}
body:not(.landing) .button {
  background: var(--vv-surface);
  color: var(--vv-text);
  border: 2px solid var(--vv-border);
  border-radius: 100px;
  box-shadow: 0 4px var(--vv-shadow);
  font-weight: 700;
  padding: 13px 20px;
}
body:not(.landing) .button.primary {
  background: var(--vv-accent);
  color: var(--vv-on-accent);
  border-color: var(--vv-border);
  box-shadow: 0 5px var(--vv-shadow);
}
body:not(.landing) .button:disabled {
  background: var(--vv-surface);
  color: var(--vv-muted);
  border-color: var(--vv-border);
  box-shadow: 0 3px var(--vv-shadow);
  opacity: 1;
  cursor: not-allowed;
}
body:not(.landing) .button.small {
  padding: 9px 15px;
  font-size: 13px;
}
body:not(.landing) .text-button,
body:not(.landing) footer button {
  color: var(--vv-muted);
  font-weight: 700;
}
body:not(.landing) .eyebrow {
  color: var(--vv-accent);
  font-size: 11px;
}
body:not(.landing) .studio {
  padding-top: 30px;
}
body:not(.landing) .studio-top {
  position: relative;
  background: linear-gradient(120deg, var(--vv-surface), var(--vv-surface));
  border: 3px solid var(--vv-border);
  border-radius: 25px;
  padding: 28px;
  box-shadow: 0 7px var(--vv-shadow);
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 30px;
}
body:not(.landing) .studio-top::after {
  content: "";
  position: absolute;
  right: 25%;
  bottom: -20px;
  width: 190px;
  height: 95px;
  z-index: -1;
  background:
    radial-gradient(ellipse at 25% 65%, var(--vv-surface) 0 37%, transparent 38%),
    radial-gradient(ellipse at 58% 40%, var(--vv-surface) 0 43%, transparent 44%),
    radial-gradient(ellipse at 85% 65%, var(--vv-surface) 0 30%, transparent 31%);
  pointer-events: none;
}
body:not(.landing) .studio-top h2 {
  font-size: 36px;
  margin-top: 8px;
  line-height: 1.12;
}
body:not(.landing) .balance {
  background: var(--vv-surface);
  border: 2px solid var(--vv-border);
  border-radius: 100px;
  box-shadow: 0 3px var(--vv-shadow);
  color: var(--vv-text);
  font-weight: 700;
  font-size: 13px;
  white-space: normal;
  flex-shrink: 0;
}
body:not(.landing) .tabs {
  border: 0;
  gap: 12px;
  margin: 28px 0;
  padding: 0;
}
body:not(.landing) .tabs button {
  border: 2px solid var(--vv-border);
  background: var(--vv-surface);
  border-radius: 100px;
  box-shadow: 0 3px var(--vv-shadow);
  color: var(--vv-text);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
}
body:not(.landing) .tabs button.active {
  color: var(--vv-on-accent);
  background: var(--vv-accent);
}
body:not(.landing) .creator {
  gap: 28px;
  align-items: start;
}
body:not(.landing) .panel {
  background: var(--vv-surface);
  border: 3px solid var(--vv-border);
  border-radius: 22px;
  box-shadow: 0 7px var(--vv-shadow);
  padding: 26px;
}
body:not(.landing) .panel h3 {
  font-size: 26px;
  margin: 18px 0;
}
body:not(.landing) label {
  color: var(--vv-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
body:not(.landing) input:not([type="checkbox"]),
body:not(.landing) textarea,
body:not(.landing) select {
  border: 2px solid var(--vv-border);
  border-radius: 12px;
  background: var(--vv-raised);
  color: var(--vv-text);
  padding: 12px;
  font-weight: 400;
}
body:not(.landing) input::placeholder,
body:not(.landing) textarea::placeholder {
  color: var(--vv-muted);
  opacity: 1;
}
body:not(.landing) input[type="checkbox"] {
  accent-color: var(--vv-accent);
  flex-shrink: 0;
}
body:not(.landing) .check {
  color: var(--vv-muted);
  font-weight: 400;
}
body:not(.landing) .style-options {
  gap: 10px;
  margin-bottom: 16px;
}
body:not(.landing) .style-options button {
  border: 2px solid var(--vv-border);
  color: var(--vv-text);
  background: var(--vv-surface);
  border-radius: 15px;
  box-shadow: 0 3px var(--vv-shadow);
  font-size: 12px;
  font-weight: 700;
  padding: 0 0 12px;
}
body:not(.landing) .style-options button.selected {
  color: var(--vv-on-accent);
  background: var(--vv-accent);
  border-color: var(--vv-border);
  box-shadow: 0 5px var(--vv-shadow);
}
body:not(.landing) .style-options button img {
  border-bottom: 2px solid var(--vv-border);
}
body:not(.landing) .idea-shortcuts {
  padding: 10px;
  border: 1px dashed var(--vv-border);
  border-radius: 12px;
  background: var(--vv-surface);
  gap: 2px;
}
body:not(.landing) .idea-shortcuts button {
  font-size: 12px;
  padding: 6px;
}
body:not(.landing) .empty {
  min-height: 480px;
  background: repeating-linear-gradient(
    -45deg,
    var(--vv-surface) 0 18px,
    var(--vv-surface) 18px 36px
  );
  border: 3px dashed var(--vv-accent);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 6px var(--vv-focus);
}
body:not(.landing) .empty .symbol {
  color: var(--vv-accent);
  text-shadow: 2px 3px var(--vv-shadow);
}
body:not(.landing) .empty h3 {
  font-size: 30px;
  line-height: 1.12;
}
body:not(.landing) .empty p {
  color: var(--vv-muted);
}
body:not(.landing) .gallery {
  gap: 26px;
}
body:not(.landing) .card {
  border: 3px solid var(--vv-border);
  border-radius: 22px;
  background: var(--vv-surface);
  box-shadow: 0 7px var(--vv-shadow);
}
body:not(.landing) .card img {
  display: block;
  background: var(--vv-surface);
  border-bottom: 2px solid var(--vv-border);
}
body:not(.landing) .card .card-body {
  padding: 20px;
  gap: 12px;
}
body:not(.landing) .card h3 {
  font-size: 23px;
  margin: 0 0 3px;
}
body:not(.landing) .card .small {
  font-size: 12px;
  padding: 9px 12px;
}
body:not(.landing) .status {
  background: var(--vv-surface);
  color: var(--vv-muted);
  font-weight: 700;
}
body:not(.landing) .status > span {
  color: var(--vv-accent);
  font-size: 35px;
}
body:not(.landing) .banner {
  border: 2px solid var(--vv-border);
  border-radius: 20px;
  background: var(--vv-surface);
  box-shadow: 0 5px var(--vv-shadow);
  padding: 24px;
}
body:not(.landing) .banner h2 {
  font-size: 33px;
}
body:not(.landing) .notice {
  border: 2px solid var(--vv-border);
  border-left: 7px solid var(--vv-accent);
  border-radius: 12px;
  background: var(--vv-surface);
  color: var(--vv-muted);
  margin: 22px 0;
}
body:not(.landing) .variation-reference {
  background: var(--vv-surface);
  border: 2px solid var(--vv-border);
  border-radius: 15px;
}
body:not(.landing) .variation-reference img {
  border: 1px solid var(--vv-border);
  background: var(--vv-surface);
}
body:not(.landing) .guide-checklist {
  border: 2px solid var(--vv-border);
  background: var(--vv-surface);
  box-shadow: 0 5px var(--vv-shadow);
  border-radius: 20px;
}
body:not(.landing) .lesson {
  border-top: 2px solid var(--vv-border);
}
body:not(.landing) .lesson > b {
  color: var(--vv-accent);
  font-weight: 700;
}
body:not(.landing) .lesson h3 {
  font-size: 28px;
}
body:not(.landing) .prompt-box {
  border: 2px solid var(--vv-border);
  border-radius: 18px;
  background: var(--vv-surface);
  box-shadow: 0 4px var(--vv-shadow);
}
body:not(.landing) .prompt-box pre {
  color: var(--vv-text);
}
body:not(.landing) table {
  background: var(--vv-bg);
}
body:not(.landing) th {
  color: var(--vv-text);
  background: var(--vv-bg);
  font-size: 12px;
}
body:not(.landing) td,
body:not(.landing) th {
  border-bottom: 1px solid var(--vv-border);
  padding: 14px 10px;
}
body:not(.landing) .article {
  max-width: 900px;
}
body:not(.landing) .article h1 {
  font-size: 48px;
  letter-spacing: -1px;
}
body:not(.landing) .article a {
  color: var(--vv-accent);
}
body:not(.landing) .article .button {
  color: var(--vv-text);
}
body:not(.landing) .article .button.primary {
  color: var(--vv-text);
}
body:not(.landing) .guide-article {
  max-width: 1180px;
}
body:not(.landing) .error {
  color: var(--vv-danger) !important;
}
body:not(.landing) dialog {
  background: var(--vv-bg);
  border: 3px solid var(--vv-border);
  border-radius: 24px;
  box-shadow: 0 8px var(--vv-shadow);
  color: var(--vv-text);
}
body:not(.landing) dialog h2 {
  font-size: 30px;
  line-height: 1.15;
}
body:not(.landing) dialog::backdrop {
  background: var(--vv-overlay);
}
body:not(.landing) .close {
  color: var(--vv-text);
}
body:not(.landing) #toast {
  background: var(--vv-bg);
  color: var(--vv-text);
  border: 2px solid var(--vv-border);
  border-radius: 15px;
  box-shadow: 0 5px var(--vv-focus);
}
body:not(.landing) footer {
  border-top: 2px solid var(--vv-border);
  color: var(--vv-muted);
  max-width: 1360px;
  font-size: 12px;
}
body:not(.landing) hr {
  border: 0;
  border-top: 2px solid var(--vv-border);
  margin: 28px 0;
}
@media (max-width: 900px) {
  body:not(.landing) .studio-top {
    padding: 23px;
  }
  body:not(.landing) .studio-top h2 {
    font-size: 31px;
  }
  body:not(.landing) .creator {
    grid-template-columns: 1fr;
  }
  body:not(.landing) .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  body:not(.landing) header {
    padding: 18px 5%;
    gap: 12px;
  }
  body:not(.landing) .brand {
    font-size: 23px;
  }
  body:not(.landing) .brand-icon {
    padding: 4px 9px;
    margin-right: 8px;
  }
  body:not(.landing) nav {
    gap: 5px;
  }
  body:not(.landing) nav > .text-button {
    font-size: 10px;
    max-width: 90px;
    padding: 4px;
  }
  body:not(.landing) #account-button {
    font-size: 11px;
    padding: 9px 11px;
  }
  body:not(.landing) .studio-top {
    padding: 22px 20px;
    align-items: flex-start;
    gap: 18px;
  }
  body:not(.landing) .studio-top h2 {
    font-size: 31px;
  }
  body:not(.landing) .balance {
    font-size: 12px;
    padding: 9px 12px;
  }
  body:not(.landing) .tabs {
    gap: 10px;
  }
  body:not(.landing) .tabs button {
    font-size: 12px;
    padding: 9px 13px;
  }
  body:not(.landing) .panel {
    padding: 22px;
  }
  body:not(.landing) .style-options {
    gap: 7px;
  }
  body:not(.landing) .style-options button {
    font-size: 11px;
  }
  body:not(.landing) .gallery {
    grid-template-columns: 1fr;
  }
  body:not(.landing) .card h3 {
    font-size: 24px;
  }
  body:not(.landing) .banner {
    padding: 20px;
  }
  body:not(.landing) .banner h2 {
    font-size: 29px;
  }
  body:not(.landing) .empty {
    min-height: 350px;
    padding: 22px;
  }
  body:not(.landing) .empty h3 {
    font-size: 27px;
  }
  body:not(.landing) .article h1 {
    font-size: 38px;
  }
  body:not(.landing) .article {
    padding: 40px 5%;
  }
  body:not(.landing) dialog {
    padding: 30px 24px;
  }
  body:not(.landing) .prompt-box {
    padding: 18px;
  }
}
@media print {
  body:not(.landing) {
    background: white;
    color: black;
  }
  body:not(.landing) header,
  body:not(.landing) footer {
    display: none;
  }
  body:not(.landing) .studio {
    padding: 0;
  }
  body:not(.landing) .guide-checklist,
  body:not(.landing) .prompt-box {
    background: white;
    box-shadow: none;
  }
  body:not(.landing) p,
  body:not(.landing) .lesson > b {
    color: black;
  }
}
html {
  background: var(--vv-bg);
  color-scheme: dark;
}
@media (max-width: 380px) {
  body:not(.landing) header {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  body:not(.landing) nav {
    margin-left: auto;
  }
  body:not(.landing) .studio-top h2 {
    font-size: 28px;
  }
  body:not(.landing) .panel {
    padding: 18px;
  }
  body:not(.landing) .style-options {
    gap: 6px;
  }
  body:not(.landing) .style-options button {
    font-size: 10px;
  }
  body:not(.landing) .tabs button {
    padding: 8px 11px;
  }
  body:not(.landing) .button {
    font-size: 13px;
  }
}
body:not(.landing) .panel h3,
body:not(.landing) .card h3,
body:not(.landing) .banner p,
body:not(.landing) .article a {
  overflow-wrap: anywhere;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Video preparation: original library and four explicit stages. */
body:not(.landing) .video-intro {max-width:72ch}
body:not(.landing) .video-workspace {display:grid;grid-template-columns:1.1fr 1fr 1fr 1.05fr;gap:14px;margin-top:24px;align-items:stretch}
body:not(.landing) .video-step {background:var(--retro-paper,var(--vv-surface));border:2px solid var(--vv-border);border-radius:20px;box-shadow:3px 4px 0 var(--vv-shadow);min-width:0;overflow:hidden}
body:not(.landing) .video-step>header {display:flex;align-items:center;gap:9px;padding:17px 14px;background:var(--vv-surface);border-bottom:2px solid var(--vv-border)}
body:not(.landing) .video-step>header>span {display:grid;place-items:center;width:29px;height:29px;flex-shrink:0;border:2px solid var(--vv-border);border-radius:50%;background:var(--vv-accent);color:var(--vv-on-accent);font-weight:700;box-shadow:1px 2px 0 var(--vv-shadow)}
body:not(.landing) .video-step h3 {font-family:var(--dm-font-ui);font-size:16px;margin:0}
body:not(.landing) .video-step>header .text-button {margin-left:auto;font-size:12px;white-space:nowrap}
body:not(.landing) .video-step-body {padding:16px;display:flex;flex-direction:column;gap:14px}
body:not(.landing) .video-step-body>p {margin:0}
body:not(.landing) .video-selection {display:flex;align-items:center;gap:12px;min-height:100px;background:var(--vv-raised);border:1px solid var(--vv-border);border-radius:12px;padding:10px}
body:not(.landing) .video-selection img {width:70px;height:94px;object-fit:cover;object-position:top;border:1px solid var(--vv-border);border-radius:7px}
body:not(.landing) .video-selection small {display:block;margin-top:5px}
body:not(.landing) .video-selection strong {overflow-wrap:anywhere}
body:not(.landing) .video-selection .text-button {font-size:12px}
body:not(.landing) .video-filter {display:flex;gap:5px;flex-wrap:wrap}
body:not(.landing) .video-filter .button {font-size:11px;padding:8px}
body:not(.landing) .video-filter .selected {background:var(--vv-accent)}
body:not(.landing) .video-character-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:520px;overflow:auto;padding:2px 4px 5px 2px}
body:not(.landing) .video-character-grid > .empty {grid-column:1 / -1;min-width:0}
body:not(.landing) .video-character {padding:0;background:var(--vv-surface);border:2px solid var(--vv-border);border-radius:12px;overflow:hidden;cursor:pointer;color:var(--vv-text)}
body:not(.landing) .video-character.selected {outline:3px solid var(--vv-accent);outline-offset:-3px}
body:not(.landing) .video-character img {display:block;width:100%;aspect-ratio:3/4;object-fit:cover;object-position:top}
body:not(.landing) .video-character span {display:block;padding:8px 3px;font-size:12px;font-weight:700}
body:not(.landing) .video-character:focus-visible {outline:3px solid var(--vv-border);outline-offset:2px}
body:not(.landing) .video-drop {display:flex;flex-direction:column;gap:8px;text-align:center;padding:22px 10px;border:2px dashed var(--vv-border);border-radius:12px;cursor:pointer;background:var(--vv-surface)}
body:not(.landing) .video-drop span {font-size:12px}
body:not(.landing) .video-drop input {width:100%;font-size:11px}
body:not(.landing) .video-drop.dragging {background:var(--vv-surface)}
body:not(.landing) #video-preview {width:100%;max-height:380px;border-radius:12px;background:var(--vv-bg)}
body:not(.landing) .video-model {display:flex;flex-direction:column;gap:8px;border:1px solid var(--vv-border);background:var(--vv-surface);padding:14px;border-radius:12px}
body:not(.landing) .video-model .eyebrow {font-size:9px}
body:not(.landing) .video-model small {font-size:12px}
body:not(.landing) .video-readiness h4 {margin:0 0 14px}
body:not(.landing) .video-readiness ul {list-style:none;padding:0;margin:0;display:grid;gap:12px}
body:not(.landing) .video-readiness li {display:flex;gap:9px;align-items:start;font-size:13px}
body:not(.landing) .video-readiness li span {font-size:17px;font-weight:700}
body:not(.landing) .video-readiness .ready span {color:var(--vv-success)}
body:not(.landing) .video-next,body:not(.landing) .video-coming {border:1px solid var(--vv-border);background:var(--vv-surface);padding:14px;border-radius:12px}
body:not(.landing) .video-next p,body:not(.landing) .video-coming p {font-size:13px;line-height:1.6}
body:not(.landing) .video-next .button {width:100%;margin-top:8px;font-size:12px;white-space:normal}
body:not(.landing) .video-coming {background:var(--vv-surface)}
@media (max-width:1150px) {body:not(.landing) .video-workspace {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:650px) {body:not(.landing) .video-workspace {grid-template-columns:minmax(0,1fr)} body:not(.landing) .video-character-grid {grid-template-columns:repeat(3,minmax(0,1fr));max-height:450px}}

/* A calm application shell; the public storefront keeps its illustration style. */
body.platform {background:var(--vv-bg);--panel:var(--vv-surface);--ink:var(--vv-text);--muted:var(--vv-muted);--line:var(--vv-border);color:var(--vv-text)}
body.platform h1,body.platform h2,body.platform h3 {font-family:var(--dm-font-ui);letter-spacing:-.035em}
body.platform>header {max-width:none;background:var(--vv-bg);padding:18px 32px;border-bottom:1px solid var(--vv-border);position:sticky;top:0;z-index:30}
body.platform>header .brand small {display:none}
body.platform>header nav>[data-view="tutorial"] {display:none}
body.platform>footer {margin-left:240px;border-top:1px solid var(--vv-border)}
body.platform p {color:var(--vv-muted)}
body.platform .platform-layout {display:grid;grid-template-columns:240px minmax(0,1fr);max-width:1800px;margin:auto}
body.platform .platform-sidebar {position:sticky;top:83px;height:calc(100dvh - 83px);padding:28px 18px;background:var(--vv-surface);border-right:1px solid var(--vv-border);display:flex;flex-direction:column}
body.platform .sidebar-heading {font-size:10px;font-weight:700;letter-spacing:1.4px;color:var(--vv-muted);padding:0 14px 15px}
body.platform .sidebar-heading.secondary {padding-top:30px}
body.platform .platform-sidebar nav {display:flex;flex-direction:column;gap:7px}
body.platform .platform-sidebar nav button {display:flex;align-items:center;gap:12px;text-align:left;border:0;border-radius:12px;background:none;padding:13px;color:var(--vv-muted);font-size:13px;font-weight:700;cursor:pointer}
body.platform .platform-sidebar nav button>span:first-child {font-size:23px;width:25px;text-align:center}
body.platform .platform-sidebar nav button.active {color:var(--vv-accent);background:var(--vv-accent-soft)}
body.platform .platform-sidebar nav button:hover {background:var(--vv-hover)}
body.platform .sidebar-note {margin-top:auto;border-radius:16px;background:var(--vv-surface);padding:18px;font-size:13px}
body.platform .sidebar-note p {font-size:12px;line-height:1.6;margin:7px 0 0}
body.platform .studio {padding:32px clamp(20px,3vw,48px) 45px;width:100%;max-width:none;min-width:0;margin:0}
body.platform .studio-top {background:transparent;box-shadow:none;border:0;border-radius:0;padding:0;margin:0 0 25px;overflow:visible}
body.platform .studio-top::after {display:none}
body.platform .studio-top h2 {font-size:30px;margin:8px 0 0}
body.platform .balance {border:1px solid var(--vv-border);box-shadow:none;background:var(--vv-surface);color:var(--vv-muted);padding:11px 15px;cursor:pointer;font-family:inherit}
body.platform .eyebrow {color:var(--vv-accent);letter-spacing:1.3px;font-size:10px}
body.platform .button {border:1px solid var(--vv-border);box-shadow:none;border-radius:12px;background:var(--vv-surface);color:var(--vv-text);font-weight:700}
body.platform .button.primary {border-color:var(--vv-accent);box-shadow:none;background:var(--vv-accent);color:var(--vv-on-accent)}
body.platform .button:disabled {border-color:var(--vv-border);box-shadow:none;background:var(--vv-surface);color:var(--vv-muted)}
body.platform .text-button {color:var(--vv-accent)}
body.platform .banner,body.platform .notice {border:1px solid var(--vv-border);border-radius:16px;box-shadow:none;background:var(--vv-surface);padding:18px;margin-bottom:20px}
body.platform .banner strong {font-size:13px}
body.platform .banner p {font-size:12px;margin:5px 0 0}
body.platform .platform-steps {display:flex;gap:8px;padding:10px;background:var(--vv-surface);border:1px solid var(--vv-border);border-radius:16px;margin:0 0 28px}
body.platform .platform-steps button {border:0;background:none;display:flex;gap:10px;align-items:center;justify-content:center;flex:1;color:var(--vv-muted);font-size:12px;padding:10px;border-radius:11px;cursor:pointer}
body.platform .platform-steps button>span {border:1px solid var(--vv-border);width:25px;height:25px;display:grid;place-items:center;border-radius:50%;flex-shrink:0}
body.platform .platform-steps button.active {color:var(--vv-accent);background:var(--vv-accent-soft);font-weight:700}
body.platform .platform-steps button.active>span {background:var(--vv-accent);color:var(--vv-on-accent);border-color:var(--vv-accent)}
body.platform .panel,body.platform .card,body.platform .lesson,body.platform .guide-checklist {border:1px solid var(--vv-border);border-radius:20px;box-shadow:0 6px 20px var(--vv-shadow);background:var(--vv-surface)}
body.platform .panel h3 {font-size:23px}
body.platform input:not([type="checkbox"]),body.platform textarea,body.platform select {border:1px solid var(--vv-border);border-radius:10px;background:var(--vv-raised);color:var(--vv-text)}
body.platform .style-options button {border:1px solid var(--vv-border);border-radius:13px;box-shadow:none;background:var(--vv-surface);color:var(--vv-text)}
body.platform .style-options button.selected {border:2px solid var(--vv-accent);background:var(--vv-raised);box-shadow:none;color:var(--vv-accent)}
body.platform #preview.empty {border:1px dashed var(--vv-border);border-radius:20px;background:var(--vv-bg)}
body.platform .video-step {border:1px solid var(--vv-border);background:var(--vv-surface);box-shadow:none;border-radius:18px}
body.platform .video-step>header {background:var(--vv-surface);border-bottom:1px solid var(--vv-border);padding:16px 12px}
body.platform .video-step>header>span {border:0;background:var(--vv-accent-soft);box-shadow:none;color:var(--vv-accent)}
body.platform .video-selection,body.platform .video-model,body.platform .video-next,body.platform .video-coming {border:1px solid var(--vv-border);background:var(--vv-raised)}
body.platform .video-selection img {border:0}
body.platform .video-character {border:1px solid var(--vv-border);border-radius:12px;background:var(--vv-surface);color:var(--vv-text)}
body.platform .video-drop {border:1px dashed var(--vv-border);background:var(--vv-surface)}
body.platform .video-filter .selected {color:var(--vv-on-accent);background:var(--vv-accent)}
body.platform .profile-shortcuts {display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}
body.platform .platform-bottom {display:none}
body.platform button:focus-visible {outline:3px solid var(--vv-accent);outline-offset:3px}
@media(min-width:1250px){body.platform .video-workspace {grid-template-columns:1.1fr 1fr 1fr 1.05fr}}
@media(max-width:1249px){body.platform .video-workspace {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
body.platform>header {padding:14px 18px;position:static}
body.platform>header .brand {font-size:23px}
body.platform .platform-layout {display:block}
body.platform .platform-sidebar {display:none}
body.platform .studio {padding:25px 16px 110px}
body.platform .studio-top {gap:12px;align-items:start;flex-direction:column;margin-bottom:20px}
body.platform .studio-top h2 {font-size:27px}
body.platform .balance {font-size:11px;padding:8px 12px}
body.platform .banner {align-items:start;padding:14px}
body.platform .banner .button {font-size:11px;padding:9px}
body.platform .platform-steps {padding:7px;gap:3px;margin-bottom:20px}
body.platform .platform-steps button {flex-direction:column;font-size:10px;text-align:center;padding:8px 3px;gap:6px}
body.platform .panel {padding:20px}
body.platform .platform-bottom {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));position:fixed;bottom:max(12px,env(safe-area-inset-bottom));left:12px;right:12px;margin:auto;max-width:520px;z-index:50;padding:7px 4px;background:var(--vv-surface);backdrop-filter:blur(16px);border:1px solid var(--vv-border);border-radius:22px;box-shadow:0 5px 30px var(--vv-shadow);gap:0}
body.platform .platform-bottom button {display:flex;flex-direction:column;align-items:center;gap:5px;justify-content:center;min-height:54px;font-size:9px;line-height:1.2;border:0;background:transparent;color:var(--vv-muted);padding:6px 2px;cursor:pointer}
body.platform .platform-bottom button>span:first-child {font-size:24px;line-height:1}
body.platform .platform-bottom button.active {color:var(--vv-accent);font-weight:700}
body.platform>footer {margin-left:0;padding-bottom:100px}
body.platform .video-workspace {grid-template-columns:minmax(0,1fr)}
}
body.platform .platform-sidebar svg,body.platform .platform-bottom svg {width:23px;height:23px;display:block}
body.platform #preview.empty {box-shadow:none}
body.platform .empty p {color:var(--vv-muted)}
@media(max-width:760px){body.platform #toast {bottom:100px}}
body.platform .creator>* {min-width:0}
@media(min-width:761px) and (max-width:1150px){body.platform .creator {grid-template-columns:minmax(0,1fr)}}

/* Keep the application chrome on a single full-width grid. */
body.platform {--app-header-height:72px;--app-sidebar-width:240px}
body.platform>header {height:var(--app-header-height);padding:0 24px;margin:0;width:100%;gap:20px}
body.platform>header .brand {font-size:24px;line-height:1;flex-shrink:0}
body.platform>header .brand-icon {display:grid;place-items:center;width:36px;height:36px;padding:0;margin-right:10px;border:1px solid var(--vv-accent);border-radius:10px;box-shadow:none;font-size:23px}
body.platform>header nav {margin-left:auto;align-items:center}
body.platform>header .button {min-height:36px;padding:8px 14px;font-size:12px}
body.platform .platform-layout {grid-template-columns:var(--app-sidebar-width) minmax(0,1fr);max-width:none;margin:0;width:100%}
body.platform .platform-sidebar {top:var(--app-header-height);height:calc(100dvh - var(--app-header-height));padding:24px 16px;overflow-y:auto;gap:20px}
body.platform .platform-sidebar nav {align-items:stretch;gap:5px;width:100%}
body.platform .platform-sidebar nav button {width:100%;min-height:46px;gap:12px;padding:11px 14px;line-height:20px;font-family:inherit;flex-shrink:0}
body.platform .platform-sidebar nav button>span:first-child {display:grid;place-items:center;flex:0 0 20px;width:20px;height:20px;font-size:20px}
body.platform .platform-sidebar nav button>span:last-child {display:block;min-width:0;line-height:20px}
body.platform .platform-sidebar svg {width:20px;height:20px}
body.platform .sidebar-heading {padding:0 14px;font-size:10px;line-height:16px;letter-spacing:1.2px;white-space:nowrap}
body.platform .sidebar-heading.secondary {padding:24px 14px 8px}
body.platform .sidebar-note {flex-shrink:0;padding:16px}
body.platform .studio {padding-top:28px}
@media(min-width:761px){body.platform>header::after {content:"";position:absolute;left:calc(var(--app-sidebar-width) - 1px);top:0;bottom:0;border-right:1px solid var(--vv-border);pointer-events:none}}
@media(max-width:760px){body.platform {--app-header-height:64px} body.platform>header {padding:0 16px} body.platform>header .brand {font-size:22px} body.platform .platform-layout {display:block} body.platform .studio {padding-top:24px}}
body.platform .video-step>header {justify-content:flex-start;gap:10px;min-height:62px}
body.platform .platform-sidebar nav button.active:hover {background:var(--vv-accent-soft)}

/* Guided video creation: one decision at a time on every screen. */
body.platform .video-wizard {max-width:1100px;background:var(--vv-surface);border:1px solid var(--vv-border);border-radius:22px;overflow:hidden;margin-top:22px;scroll-margin-top:90px}
body.platform .video-wizard-nav {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:14px;background:var(--vv-surface);gap:8px;border-bottom:1px solid var(--vv-border)}
body.platform .video-wizard-nav button {display:flex;align-items:center;justify-content:center;gap:9px;border:0;background:none;color:var(--vv-muted);font:700 12px var(--dm-font-ui);padding:10px 7px;border-radius:12px}
body.platform .video-wizard-nav button>span {display:grid;place-items:center;width:25px;height:25px;border:1px solid var(--vv-border);border-radius:50%;font-size:12px;flex-shrink:0}
body.platform .video-wizard-nav button.active {background:var(--vv-accent-soft);color:var(--vv-accent)}
body.platform .video-wizard-nav button.active>span {background:var(--vv-accent);color:var(--vv-on-accent);border-color:var(--vv-accent)}
body.platform .video-wizard-nav button:disabled {opacity:.45;cursor:not-allowed}
body.platform .video-wizard .video-workspace {display:block;margin:0}
body.platform .video-wizard .video-step {border:0;border-radius:0;box-shadow:none}
body.platform .video-wizard .video-step>header {padding:20px 26px;background:var(--vv-surface)}
body.platform .video-wizard .video-step-body {padding:10px 26px 26px;gap:18px}
body.platform .video-wizard .video-character-grid {grid-template-columns:repeat(4,minmax(0,1fr));max-height:460px;gap:14px}
body.platform .video-wizard .video-character img {aspect-ratio:3/3;object-position:top}
body.platform .video-wizard .video-selection {min-height:70px;padding:12px}
body.platform .video-wizard .video-selection img {width:48px;height:64px}
body.platform .video-wizard .video-filter .button {font-size:12px;padding:9px 15px}
body.platform .video-wizard-actions {display:flex;align-items:center;gap:16px;padding:18px 26px;border-top:1px solid var(--vv-border);background:var(--vv-surface)}
body.platform .video-wizard-actions #video-next {margin-left:auto}
body.platform .video-wizard-actions p {margin:0}
body.platform .video-mode-options {display:grid;grid-template-columns:1fr 1fr;gap:14px}
body.platform .video-kind-switch {margin-bottom:18px;gap:10px}
body.platform .video-kind-switch .button {min-height:44px;padding:10px 20px;font-size:13px}
body.platform .product-video-wizard .video-mode-options {grid-template-columns:minmax(0,1fr)}
body.platform .product-video-wizard .video-character img,body.platform .product-video-wizard .video-selection img,body.platform .product-video-wizard .video-summary img {object-fit:contain;object-position:center;background:var(--vv-raised)}
body.platform .video-mode {display:flex;flex-direction:column;gap:8px;text-align:left;border:1px solid var(--vv-border);border-radius:14px;background:var(--vv-surface);padding:20px;font-family:inherit;color:var(--vv-text)}
body.platform .video-mode span {font-size:13px;line-height:1.5;color:var(--vv-muted)}
body.platform .video-mode.selected {border:2px solid var(--vv-accent);background:var(--vv-raised);padding:19px}
body.platform #video-reference-fields {display:grid;gap:14px}
body.platform .video-settings-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.platform .video-summary {display:flex;align-items:start;gap:22px;padding:20px;border:1px solid var(--vv-border);border-radius:16px;background:var(--vv-surface)}
body.platform .video-summary img {width:120px;height:170px;object-fit:cover;object-position:top;border-radius:10px}
body.platform .video-summary p {font-size:13px;line-height:1.6;overflow-wrap:anywhere}
body.platform #video-generate {align-self:stretch;min-height:50px}
body.platform .video-results {margin-top:36px;scroll-margin-top:90px}
body.platform .video-results-head {display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}
body.platform .video-results-head h3 {font-size:24px;margin:8px 0 0}
body.platform .video-results-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
body.platform .video-result {background:var(--vv-surface);border:1px solid var(--vv-border);border-radius:18px;padding:18px;min-width:0}
body.platform .video-result h4 {margin:0 0 14px;overflow-wrap:anywhere}
body.platform .video-result video {width:100%;max-height:420px;background:var(--vv-bg);border-radius:12px;display:block;margin-bottom:14px}
body.platform .video-job-status {min-height:130px;display:flex;flex-direction:column;justify-content:center;text-align:center;background:var(--vv-surface);border-radius:12px;padding:20px}
body.platform .video-job-status>span {color:var(--vv-accent);font-size:26px}
body.platform .video-job-status small {font-size:12px;color:var(--vv-muted)}
body.platform .video-results-empty {padding:28px;background:var(--vv-surface);border:1px dashed var(--vv-border);border-radius:18px}
@media(max-width:1000px){body.platform .video-results-grid {grid-template-columns:repeat(2,minmax(0,1fr))}body.platform .video-wizard .video-character-grid {grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){body.platform .video-wizard-nav {padding:9px;gap:3px}body.platform .video-wizard-nav button {flex-direction:column;gap:7px;font-size:9px;padding:8px 2px}body.platform .video-wizard .video-step>header {padding:18px}body.platform .video-wizard .video-step-body {padding:8px 18px 20px}body.platform .video-wizard .video-character-grid {grid-template-columns:repeat(2,minmax(0,1fr));max-height:440px;gap:10px}body.platform .video-wizard-actions {padding:16px 18px;gap:10px;flex-wrap:wrap}body.platform .video-wizard-actions p {order:3;width:100%;font-size:11px}body.platform .video-mode-options,body.platform .video-settings-grid,body.platform .video-results-grid {grid-template-columns:minmax(0,1fr)}body.platform .video-mode {padding:16px}body.platform .video-mode.selected {padding:15px}body.platform .video-summary {padding:14px;gap:14px}body.platform .video-summary img {width:80px;height:115px}}

/* Keep the account controls anchored to the viewport, including at the page footer. */
@media(min-width:761px) {
  body.platform .platform-layout {display:block;padding-left:var(--app-sidebar-width)}
  body.platform .platform-sidebar {position:fixed;left:0;top:var(--app-header-height);bottom:0;width:var(--app-sidebar-width);height:auto;z-index:25;overflow:hidden;padding:16px 12px;gap:12px}
  body.platform .sidebar-scroll {flex:1;min-height:0;overflow-y:auto;overflow-x:hidden}
  body.platform .sidebar-account {flex-shrink:0;border-top:1px solid var(--vv-border);padding-top:12px;margin-top:auto}
  body.platform>footer {margin-left:var(--app-sidebar-width)}
  body.platform .sidebar-toggle {align-self:flex-end;display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;padding:5px;border:1px solid var(--vv-border);border-radius:9px;background:var(--vv-surface);color:var(--vv-muted);cursor:pointer}
  body.platform .sidebar-toggle svg {width:20px;height:20px}
  body.platform.sidebar-collapsed {--app-sidebar-width:76px}
  body.platform.sidebar-collapsed .sidebar-heading {font-size:0;padding:0;height:16px;margin:8px 0;border-top:1px solid var(--vv-border)}
  body.platform.sidebar-collapsed .platform-sidebar nav button {justify-content:center;padding:11px 0}
  body.platform.sidebar-collapsed .platform-sidebar nav button>span:last-child {display:none}
  body.platform.sidebar-collapsed .sidebar-toggle {align-self:center}
  body.platform.sidebar-collapsed .sidebar-toggle svg {transform:rotate(180deg)}
}

/* Display the original image at a compact size without cropping or recompression. */
body.platform .creator #preview {width:100%;max-width:440px;justify-self:start;align-self:start}
body.platform .creator #preview .card img {display:block;width:100%;height:auto;max-height:500px;object-fit:contain;background:var(--vv-surface)}

/* Creation tools share the platform's spacing, focus and mobile navigation. */
body.platform .quick-guide,body.platform .cost-review,body.platform .motion-library {max-width:1100px;border:1px solid var(--vv-border);background:var(--vv-surface);border-radius:16px;padding:18px 22px;margin-bottom:16px}
body.platform .quick-guide summary,body.platform .motion-library summary {font-weight:700;cursor:pointer}
body.platform .quick-guide li {padding:5px 0;line-height:1.6}
body.platform .cost-review {margin:0;display:grid;gap:12px;background:var(--vv-surface)}
body.platform .cost-review p {margin:0}
body.platform .library-toolbar {display:flex;align-items:center;gap:16px;margin:16px 0 24px;flex-wrap:wrap}
body.platform .library-toolbar label {flex:1;min-width:180px;max-width:400px;margin:0}
body.platform .library-toolbar p {margin:0}
body.platform .asset-actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}
body.platform .asset-actions .button {margin:0}
body.platform .asset-menu {position:relative;margin-left:auto}
body.platform .asset-menu summary {cursor:pointer;padding:8px;font-size:12px}
body.platform .asset-menu[open] {border:1px solid var(--vv-border);border-radius:10px;padding:4px;background:var(--vv-surface)}
body.platform .asset-menu button {display:block;text-align:left;min-width:100px}
body.platform .button[aria-pressed=true] {border-color:var(--vv-accent);background:var(--vv-accent-soft);color:var(--vv-accent)}
body.platform .motion-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px;margin-top:16px}
body.platform .motion-grid article {max-width:280px;padding:12px;border:1px solid var(--vv-border);border-radius:12px;background:var(--vv-surface)}
body.platform .motion-grid video {width:100%;max-height:220px;border-radius:8px;background:var(--vv-bg)}
body.platform #video-trim {display:grid;gap:12px;padding:18px;background:var(--vv-bg);border:1px solid var(--vv-border);border-radius:14px}
body.platform #video-trim .video-settings-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
body.platform .video-consent-card {display:flex;align-items:flex-start;gap:14px;padding:18px;border:2px solid var(--vv-border);border-radius:14px;background:var(--vv-surface);cursor:pointer;font-size:14px}
body.platform .video-consent-card input[type="checkbox"] {width:22px;height:22px;flex:0 0 22px;margin:2px 0 0;cursor:pointer}
body.platform .video-consent-card>span {display:grid;gap:4px;min-width:0}
body.platform .video-consent-card strong {color:var(--vv-text);font-size:15px}
body.platform .video-consent-card.confirmed {border-color:var(--vv-success);background:var(--vv-surface)}
body.platform .video-consent-card:focus-within {border-color:var(--vv-accent)}
body.platform #video-access-help {padding:14px 18px;border:1px solid var(--vv-border);border-radius:12px;background:var(--vv-bg)}
body.platform #video-access-help p {margin:0 0 12px}
body.platform #clip-state.error {color:var(--vv-danger)}
@media(max-width:760px){body.platform #video-trim .video-settings-grid {grid-template-columns:minmax(0,1fr)}body.platform .video-consent-card {padding:14px}body.platform .video-wizard-actions #video-next {max-width:100%;white-space:normal}}
body.platform #video-preview {width:100%;max-height:360px;object-fit:contain;background:var(--vv-bg);border-radius:12px}
body.platform .studio-dialog {width:min(1050px,calc(100vw - 32px));max-height:88dvh;padding:26px;border:1px solid var(--vv-border);border-radius:22px;color:var(--vv-text);background:var(--vv-surface);overflow:auto}
body.platform .studio-dialog::backdrop {background:var(--vv-overlay);backdrop-filter:blur(3px)}
body.platform .dialog-heading {display:flex;align-items:center;justify-content:space-between;gap:16px}
body.platform .dialog-heading h2 {font-size:23px;margin:0;overflow-wrap:anywhere}
body.platform .studio-dialog label {display:grid;gap:8px;margin-bottom:14px;font-size:13px;font-weight:700}
body.platform .studio-dialog input:not([type=range]),body.platform .studio-dialog select {width:100%;padding:11px;border:1px solid var(--vv-border);background:var(--vv-raised);border-radius:9px;font:inherit;min-width:0}
body.platform .studio-dialog input[type=range] {width:100%;accent-color:var(--vv-accent)}
body.platform .export-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;margin:24px 0}
body.platform .export-preview {position:relative;align-self:start;width:100%;max-width:380px;justify-self:center}
body.platform .export-preview video {width:100%;max-height:480px;border-radius:14px;background:var(--vv-bg);object-fit:contain}
body.platform #export-title-preview {position:absolute;bottom:15%;left:7%;right:7%;text-align:center;background:var(--vv-bg);color:var(--vv-text);white-space:pre-wrap;overflow-wrap:anywhere;pointer-events:none;font-size:16px}
body.platform #export-title-preview:empty {display:none}
body.platform .export-result {display:flex;align-items:center;gap:18px;border-top:1px solid var(--vv-border);padding:18px 0}
body.platform .export-result img {width:85px;height:110px;object-fit:contain;background:var(--vv-surface);border-radius:8px}
body.platform .character-profile-head {display:flex;gap:24px;align-items:center;margin:24px 0}
body.platform .character-profile-head img {width:150px;height:200px;object-fit:contain;background:var(--vv-surface);border-radius:12px}
body.platform .profile-versions {display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px;margin-bottom:28px}
body.platform .profile-versions article {max-width:230px;border:1px solid var(--vv-border);padding:12px;border-radius:12px}
body.platform .profile-versions img {width:100%;height:175px;object-fit:contain}
body.platform .profile-versions h4 {margin:8px 0}
body.platform .profile-video {display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:15px 0;border-top:1px solid var(--vv-border)}
body.platform .profile-video span {font-size:12px;color:var(--vv-muted)}
body.platform .integration-state {border-left:3px solid var(--vv-accent);padding:10px 14px;background:var(--vv-surface);border-radius:0 8px 8px 0}
body.platform .video-result h4,body.platform .card h3 {overflow-wrap:anywhere}
body.platform button:focus-visible,body.platform summary:focus-visible,body.platform input:focus-visible,body.platform select:focus-visible {outline:3px solid var(--vv-accent);outline-offset:3px}
@media(max-width:600px){body.platform .studio-dialog {padding:18px;width:calc(100vw - 20px);max-height:90dvh}body.platform .export-layout {grid-template-columns:minmax(0,1fr)}body.platform .export-preview {max-width:240px}body.platform .character-profile-head {gap:14px;align-items:start}body.platform .character-profile-head img {width:90px;height:130px}body.platform .character-profile-head .button {font-size:11px;padding:10px}body.platform .library-toolbar {gap:10px}body.platform .library-toolbar label {max-width:none}body.platform .video-results-head {align-items:start;gap:12px}body.platform .motion-grid {grid-template-columns:repeat(2,minmax(0,1fr))}body.platform .quick-guide {padding:14px}}

body.platform .motion-grid:has(article:only-child) {grid-template-columns:minmax(0,1fr)}

/* The wallet uses the same surfaces and controls as the rest of the studio. */
body.platform .wallet-page {display:grid;gap:28px;max-width:1200px}
body.platform .wallet-overview {display:flex;justify-content:space-between;align-items:center;gap:22px}
body.platform .wallet-overview h3 {font-size:18px;margin:10px 0}
body.platform .wallet-overview h3 strong {font-size:36px;letter-spacing:-1px}
body.platform .wallet-overview p {max-width:660px;margin:8px 0;color:var(--vv-muted)}
body.platform .wallet-section-heading {display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}
body.platform .wallet-section-heading h3 {margin:0 0 8px}
body.platform .wallet-section-heading p {margin:0;color:var(--vv-muted)}
body.platform .wallet-packages {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
body.platform .wallet-package {display:flex;flex-direction:column;gap:12px;padding:24px 20px;border:1px solid var(--vv-border);border-radius:18px;background:var(--vv-surface);min-width:0}
body.platform .wallet-package-credits {font-size:30px;font-weight:800;letter-spacing:-.6px}
body.platform .wallet-package-credits small {display:block;font-size:13px;font-weight:500;letter-spacing:0;color:var(--vv-muted)}
body.platform .wallet-package-price {font-size:24px;white-space:nowrap}
body.platform .wallet-package .button {margin-top:8px;width:100%;white-space:normal}
body.platform .wallet-rates {border:1px solid var(--vv-border);background:var(--vv-surface);border-radius:14px;padding:18px 22px}
body.platform .wallet-rates summary {cursor:pointer;font-weight:700}
body.platform .wallet-rates li {padding:5px 0;line-height:1.6}
body.platform .wallet-transaction-status {display:block;color:var(--vv-muted);margin-top:5px}
body.platform .wallet-credit-in {color:var(--vv-success);font-weight:700}
body.platform .wallet-checkout-dialog {max-width:620px}
body.platform .wallet-checkout-summary {display:grid;gap:8px;padding:22px 0;margin-bottom:18px;border-bottom:1px solid var(--vv-border)}
body.platform .wallet-checkout-summary>span {font-size:18px;font-weight:700}
body.platform .wallet-checkout-summary>strong {font-size:32px}
body.platform .wallet-checkout-summary p {margin:0;color:var(--vv-muted)}
body.platform .wallet-customer-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
body.platform #wallet-card-host {min-height:100px;margin:12px 0}
body.platform .wallet-pix-qr {display:block;width:min(240px,100%);height:auto;margin:18px auto;background:var(--vv-surface)}
body.platform #wallet-pix-code {width:100%;resize:vertical;font:13px/1.6 monospace;overflow-wrap:anywhere}
body.platform #wallet-payment-result .button {margin:8px 8px 8px 0}
body.platform .wallet-payment-success {padding:20px;border:1px solid var(--vv-success);border-radius:14px;background:var(--vv-surface)}
body.platform .wallet-payment-success strong {color:var(--vv-success)}
@media(max-width:1100px){body.platform .wallet-packages {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body.platform .wallet-packages {grid-template-columns:minmax(0,1fr)}body.platform .wallet-overview {align-items:flex-start;flex-direction:column}body.platform .wallet-package {padding:20px}body.platform .wallet-customer-fields {grid-template-columns:minmax(0,1fr)}}

/* The credit wallet stays available beside the account on every app screen. */
body:not(.landing) .brand>span.brand-name {color:inherit}
body:not(.landing) .brand-name>span {color:var(--vv-accent)}
body.has-header-wallet>header>nav {gap:12px}
body>header .header-wallet {display:flex;align-items:center;gap:0;min-width:0;border:1px solid var(--vv-border);border-radius:12px;background:var(--vv-surface);white-space:nowrap}
body>header .header-wallet[hidden] {display:none}
body>header .header-wallet button {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;margin:0;padding:8px 12px;border:0;background:transparent;color:var(--vv-text);font:600 12px/1.4 "DM Sans",system-ui,sans-serif;white-space:nowrap}
body>header .header-wallet .header-credit-balance {border-radius:11px 0 0 11px}
body>header .header-credit-balance svg {width:21px;height:21px;flex-shrink:0;color:var(--vv-accent)}
body>header .header-credit-label {display:inline-flex;align-items:baseline;gap:4px}
body>header .header-credit-label strong {font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
body>header #header-credit-unit {color:var(--vv-muted);font-weight:500}
body>header .header-wallet .header-buy-credits {border-left:1px solid var(--vv-border);border-radius:0 11px 11px 0;color:var(--vv-accent);background:var(--vv-surface)}
body>header .header-wallet button:hover {background:var(--vv-accent-soft)}
body>header .header-wallet button:focus-visible {outline:3px solid var(--vv-accent);outline-offset:3px;position:relative;z-index:1}
body>header .header-buy-short {display:none}
body.platform #wallet-packages-title {scroll-margin-top:100px}
@media(max-width:760px) {
  body.has-header-wallet>header {gap:12px;flex-wrap:nowrap}
  body.has-header-wallet>header #account-button {display:none}
  body.has-header-wallet>header>nav {gap:0;min-width:0}
}
@media(max-width:600px) {
  body.has-header-wallet:not(.landing)>header {padding:0 12px;min-height:64px}
  body.has-header-wallet>header .brand-name,body.has-header-wallet>header .brand small {display:none}
  body.has-header-wallet>header .brand-icon {margin-right:0}
  body.has-header-wallet>header>nav>[data-view="tutorial"] {display:none}
  body>header .header-wallet button {padding:8px 10px}
  body>header .header-buy-label {display:none}
  body>header .header-buy-short {display:inline}
  body.landing.has-header-wallet>header {right:12px;max-width:calc(100vw - 24px)}
}

@media(max-width:760px){body.platform .platform-bottom{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(52px,1fr);overflow-x:auto;max-width:calc(100vw - 24px)}}
.canaldark-frame {display:block;width:100%;height:calc(100dvh - 200px);min-height:720px;border:0;border-radius:0;background:var(--vv-surface);color-scheme:dark}
@media(max-width:760px){.canaldark-frame {height:calc(100dvh - 220px);min-height:600px}}

.mobile-navigation {width:min(420px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:20px;border:1px solid var(--vv-border);border-radius:20px;background:var(--vv-surface);color:var(--vv-text)}
.mobile-navigation::backdrop {background:var(--vv-overlay)}
.mobile-navigation header {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.mobile-navigation h2 {margin:0;font-size:21px}
.mobile-navigation nav {display:grid;gap:4px}
.mobile-navigation nav p {font-size:11px;letter-spacing:.07em;color:var(--vv-muted);margin:20px 8px 8px}
.mobile-navigation nav button {display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:0;background:transparent;padding:12px;border-radius:10px;font:inherit;color:inherit;cursor:pointer;min-height:44px}
.mobile-navigation nav button.active {background:var(--vv-accent-soft);color:var(--vv-accent)}
.mobile-navigation nav svg {width:20px;height:20px;display:block}

/* Shared entry points and library keep the same studio palette. */
.journey-intro {max-width:720px;color:var(--vv-muted);line-height:1.7;margin:0 0 24px}
.journey-choices {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.journey-choice {display:flex;flex-direction:column;align-items:flex-start;gap:12px;text-align:left;padding:28px;border:1px solid var(--vv-border);border-radius:22px;background:var(--vv-surface);color:var(--vv-text);font:inherit;cursor:pointer;min-width:0}
.journey-choice.selected {border:2px solid var(--vv-accent);padding:27px;background:var(--vv-raised)}
.journey-choice:focus-visible {outline:3px solid var(--vv-accent);outline-offset:3px}
.journey-choice:disabled {opacity:.65;cursor:wait}
.journey-choice strong {font-size:24px;line-height:1.25}
.journey-choice>span:not(.journey-icon) {color:var(--vv-muted);line-height:1.6}
.journey-choice small {color:var(--vv-accent);font-weight:650;margin-top:auto;padding-top:8px}
.journey-icon {font-size:28px;background:var(--vv-accent-soft);border-radius:14px;width:52px;height:52px;display:grid;place-items:center;color:var(--vv-accent)}
.journey-section {margin-top:36px}
.journey-section h3 {font-size:22px;margin-bottom:14px}
.journey-tools {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.journey-tools .panel {display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0}
.journey-tools h4 {margin:0;font-size:19px;line-height:1.3}
.journey-tools p {margin:0 0 8px;color:var(--vv-muted);font-size:14px;line-height:1.6}
.journey-tools .button {margin-top:auto}
.journey-footer {display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:32px;padding:24px 0;border-top:1px solid var(--vv-border);font-size:13px;color:var(--vv-muted)}
.journey-welcome {margin-top:24px}
body.platform .journey-welcome,body.platform .unified-library>.empty {min-height:220px;padding:32px;border:1px dashed var(--vv-border);border-radius:20px;background:var(--vv-surface);box-shadow:none}
body.platform .journey-welcome h3,body.platform .unified-library>.empty h3 {font-size:22px;line-height:1.35}
body.platform .journey-welcome p,body.platform .unified-library>.empty p {max-width:520px}
body.platform .library-filters {display:grid;grid-template-columns:2fr repeat(3,minmax(110px,1fr)) auto;gap:14px;align-items:end}
.library-filters label {margin:0;min-width:0}
.library-filters input,.library-filters select {width:100%;min-width:0}
.library-summary {display:flex;justify-content:space-between;align-items:center;gap:16px;margin:18px 0;color:var(--vv-muted);font-size:14px}
.unified-library {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
@media(max-width:1400px){.unified-library{grid-template-columns:repeat(3,minmax(0,1fr))}}
.unified-library>.empty {grid-column:1/-1}
.library-card {border:1px solid var(--vv-border);background:var(--vv-surface);border-radius:18px;overflow:hidden;min-width:0}
.library-preview {position:relative;aspect-ratio:16/10;background:var(--vv-surface);display:grid;place-items:center;color:var(--vv-muted);font-size:50px}
.library-preview img {width:100%;height:100%;object-fit:contain;position:absolute}
.library-type {position:absolute;left:12px;bottom:12px;font-size:11px;background:var(--vv-surface);color:var(--vv-muted);padding:5px 9px;border-radius:8px}
.library-detail {padding:20px}
.library-detail h3 {font-size:18px;margin:8px 0;overflow-wrap:anywhere}
.library-detail .asset-actions {flex-wrap:wrap;margin-top:16px}
.library-more {display:block;margin:24px auto}
.library-more[hidden] {display:none}
@media(max-width:1100px){body.platform .library-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.library-filters>label:first-child{grid-column:1/-1}.unified-library{grid-template-columns:repeat(2,minmax(0,1fr))}.journey-tools{grid-template-columns:1fr}}
@media(max-width:760px){body.platform .platform-bottom{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-flow:row;grid-auto-columns:auto;overflow-x:visible}.journey-choices{gap:12px}.journey-choice{padding:20px}.journey-choice.selected{padding:19px}.journey-choice strong{font-size:20px}}
@media(max-width:480px){.journey-choices,.unified-library{grid-template-columns:1fr}.journey-choice{gap:9px}.journey-icon{width:40px;height:40px;font-size:23px}.journey-choice>span:not(.journey-icon){font-size:14px}body.platform .library-filters{grid-template-columns:1fr}.library-filters>label:first-child{grid-column:auto}.library-preview{aspect-ratio:16/9}}

/* Account data and password controls fit narrow devices. */
.account-details dl {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:10px 16px}
.account-details dd {margin:0;overflow-wrap:anywhere}
.account-password {max-width:480px}
.account-password input {width:100%;min-width:0}
@media(max-width:480px){.account-details dl{grid-template-columns:minmax(0,1fr);gap:6px}.account-details dd{margin-bottom:10px}}

/* DS: ledger figures align on the right edge, including tabular numerals. */
.wallet-page #wallet-history-title + .table-wrap :is(th,td):last-child:not(.wallet-empty){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
@media print{.wallet-credit-in,.wallet-overview strong,.wallet-package-credits,#header-credit-balance,.clips-count,.journey-cost strong,.journey-balance strong{color:#111!important}}

html body.dm-app .wallet-page.wallet-redesign .wallet-ledger td.wallet-empty{text-align:left;color:var(--vv-muted)}
