/* Approved DARKMOVIE dashboard language, shared by every Web tool.
   Editor media/canvas styles are intentionally owned by darkmovie-clips.css. */
:root {
  --dm-app-bg: #08080b;
  --vv-bg: #08080b;
  --vv-surface: #111115;
  --vv-raised: #17171d;
  --vv-hover: #22202a;
  --vv-border: #ffffff18;
  --vv-text: #f3f2f6;
  --vv-secondary: #d4cfdf;
  --vv-muted: #9a98a5;
  --vv-accent: #9766f1;
  --vv-accent-hover: #ae87f8;
  --vv-accent-soft: #9766f118;
  --vv-on-accent: #ffffff;
  --vv-highlight: #c0a9f1;
  --vv-highlight-soft: #9766f118;
  --vv-focus: #c0a9f1;
  --vv-shadow: #00000030;
  --vv-overlay: #08080bcc;
  --dm-font-display: 'Inter', system-ui, sans-serif;
  --dm-font-ui: 'Inter', system-ui, sans-serif;
  --dm-radius-lg: 20px;
}
html { background: var(--dm-app-bg); scroll-padding-top: 100px; }
html body.dm-app { margin: 0; background: var(--dm-app-bg); color: var(--vv-text); font: 400 14px/1.6 var(--dm-font-ui); -webkit-font-smoothing: antialiased; }
html body.dm-app :is(input,textarea,select,button) { font-family: var(--dm-font-ui); }
html body.dm-app :is(h1,h2,h3,h4) { font-family: var(--dm-font-ui); font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
html body.dm-app :is(button,a,summary,input,select,textarea):focus-visible { outline: 2px solid var(--vv-focus); outline-offset: 4px; }
html body.dm-app ::selection { background: #8050db88; color: white; }
html body.dm-app :is(input,select,textarea) { border: 1px solid var(--vv-border); border-radius: 10px; background: var(--vv-raised); color: var(--vv-text); box-shadow: none; max-width: 100%; }
html body.dm-app :is(input,select):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=color]) { min-height: 44px; }
html body.dm-app :is(input,textarea)::placeholder { color: var(--vv-muted); opacity: 1; }
html body.dm-app input:is([type=checkbox],[type=radio]) { accent-color: var(--vv-accent); }
html body.dm-app :is(.button,button.primary) { min-height: 44px; padding: 10px 17px; border: 1px solid var(--vv-border); border-radius: 10px; color: var(--vv-text); background: var(--vv-raised); font-weight: 550; box-shadow: none; transition: background .16s,border-color .16s; }
html body.dm-app .button:hover:not(:disabled) { background: var(--vv-hover); border-color: #c0a9f150; transform: none; }
html body.dm-app :is(.button.primary,button.primary) { color: white; background: linear-gradient(135deg,#9462ed,#7040c0); border-color: #b688ff50; box-shadow: inset 0 1px 0 #ffffff18; }
html body.dm-app .button.primary:hover:not(:disabled) { background: linear-gradient(135deg,#a472f8,#7f4cce); border-color: #c5a2ff80; }
html body.dm-app :is(.button,button.primary):disabled { background: var(--vv-raised); color: var(--vv-muted); border-color: var(--vv-border); box-shadow: none; opacity: .65; cursor: not-allowed; }
html body.dm-app .text-button { color: var(--vv-highlight); font-weight: 500; }
html body.dm-app .fine { line-height: 1.65; }
html body.dm-app .eyebrow { color: var(--vv-highlight); }
.dm-skip { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 18px; background: #8050db; color: white; border-radius: 10px; }
.dm-skip:focus { top: 12px; }

/* The same navigation destinations, inside the approved dashboard header. */
html body.dm-app > header { --app-header-height: 78px; min-height: 78px; height: 78px; padding: 0 max(28px,calc((100vw - 1440px)/2)); gap: 30px; border-bottom: 1px solid var(--vv-border); background: #08080bf2; backdrop-filter: blur(18px); box-shadow: none; }
html body.dm-app > header .brand { display: inline-flex; gap: 9px; align-items: center; text-decoration: none; color: var(--vv-text); font: 800 21px/1 var(--dm-font-ui); letter-spacing: -.9px; }
html body.dm-app > header .brand img { display: block; width: 28px; height: 32px; }
html body.dm-app > header .brand .dm-wordmark { display: inline; color: var(--vv-text); }
html body.dm-app > header .brand .dm-wordmark span { color: #aa7bf4; }
html body.dm-app > header .top-navigation nav { gap: 8px; }
html body.dm-app > header .top-navigation nav button, html body.dm-app .creation-nav-group > summary { font: 500 13px/1.3 var(--dm-font-ui); color: var(--vv-muted); min-height: 44px; }
html body.dm-app > header .top-navigation nav button.active, html body.dm-app .creation-nav-group.active > summary { color: var(--vv-highlight); }
html body.dm-app > header .top-navigation nav > button:is(.active, :hover, :focus-visible),
html body.dm-app:has(#clips-home) > header .top-navigation nav > button:is(.active, :hover, :focus-visible),
html body.dm-app > header .top-navigation .creation-nav-group:is(.active, [open]) > summary,
html body.dm-app > header .top-navigation .creation-nav-group > summary:is(:hover, :focus-visible) {
  border-radius: 9px;
  background-color: #a775ec1c;
  box-shadow: inset 0 0 0 1px #b78df32b, 0 3px 12px #0007, 0 0 16px #a775ec1a;
  text-shadow: 0 0 10px #b78df34d;
}
html body.dm-app .creation-nav-submenu { background: var(--vv-surface); border-color: var(--vv-border); border-radius: 12px; padding: 8px; box-shadow: 0 8px 18px #0008, 0 22px 44px #0008, 0 0 22px #9a64e521, inset 0 1px #c4a4f520; }
html body.dm-app > header .top-navigation nav .creation-nav-submenu :is(button,a) { padding: 10px 14px; min-height: 44px; }
html body.dm-app > header .top-navigation nav .creation-nav-submenu :is(button,a) {
  padding-inline: 16px;
  border-radius: 8px;
}
html body.dm-app > header .top-navigation nav .creation-nav-submenu :is(button,a):is(:hover, :focus-visible) {
  background-color: #a775ec1c;
  box-shadow: inset 0 0 0 1px #b78df32b, 0 3px 12px #0007, 0 0 16px #a775ec1a;
  text-shadow: 0 0 10px #b78df34d;
  color: #f3edf9;
}
html body.dm-app > header .top-navigation nav > button,
html body.dm-app > header .top-navigation .creation-nav-group > summary {
  padding-inline: 16px;
  border-radius: 9px;
}
@media (prefers-reduced-motion: no-preference) {
  html body.dm-app > header .top-navigation nav > button,
  html body.dm-app > header .top-navigation .creation-nav-group > summary,
  html body.dm-app > header .top-navigation nav .creation-nav-submenu :is(button,a) {
    transition: background-color 180ms ease, box-shadow 180ms ease, text-shadow 180ms ease, color 180ms ease;
  }
}
html body.dm-app > header .header-actions { gap: 12px; }
html body.dm-app > header #account-button { width: 36px; height: 36px; min-height: 36px; color: #ded0ef; background: #382849; border: 1px solid #a784cb50; outline: none; font-size: 13px; }
html body.dm-app > header #account-button:focus-visible { outline: 2px solid var(--vv-focus); }
html body.dm-app #journey-balance-button { color: var(--vv-highlight); background: #9766f10a; border-color: #9766f130; border-radius: 8px; padding: 8px 10px; min-height: 36px; white-space: nowrap; font-size: 12px; }
html body.dm-app #journey-notices { background: none; color: var(--vv-muted); border-color: transparent; padding: 8px; min-width: 36px; min-height: 36px; }
html body.dm-app #account-popover { top: 88px; background: var(--vv-surface); border-color: var(--vv-border); border-radius: 16px; font-family: var(--dm-font-ui); }
html body.dm-app #account-popover :is(.header-wallet,.profile-avatar) { background: var(--vv-raised); }
html body.dm-app #account-popover .profile-avatar { color: var(--vv-highlight); border-color: #9766f150; }
html body.dm-app #account-popover :is(.profile-links button,.profile-logout):hover { background: var(--vv-hover); }
html body.dm-app #account-popover :is(.header-buy-credits,.profile-logout) { border-color: var(--vv-border); }
html body.dm-app #account-popover .header-buy-credits > span:first-child { color: var(--vv-highlight); }
html body.dm-app #account-popover .header-buy-credits::after { color: white; background: #8050db; border-radius: 8px; }

/* Workspace rhythm: content, controls, then previews. */
html body.dm-app .studio { max-width: 1488px; padding: 30px 32px 48px; margin: 0 auto; }
html body.dm-app .studio > .studio-top { margin: 0 0 24px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
html body.dm-app .studio .studio-top h2 { font-size: clamp(25px,2.4vw,34px); font-weight: 650; letter-spacing: -.04em; }
html body.dm-app :is(.panel,.card,.lesson,.guide-checklist,.character-photo-form,.character-photo-aside,.product-photo-form,.product-photo-aside,.video-wizard,.animation-aside,.product-video-output,.product-video-settings,.history-card) { border: 1px solid var(--vv-border); border-radius: 20px; background: var(--vv-surface); box-shadow: none; }
html body.dm-app :is(.character-photo-form,.product-photo-form) { padding: 24px; }
html body.dm-app :is(.character-photo-heading,.product-photo-heading,.product-video-heading) { margin-bottom: 24px; gap: 16px; }
html body.dm-app :is(.character-photo-heading,.product-photo-heading,.product-video-heading) h2 { font-size: clamp(25px,2.4vw,34px); }
html body.dm-app :is(.tabs,.character-photo-tabs,.product-photo-tabs,.product-video-tabs,.video-tabs) { gap: 6px; padding: 6px; margin-bottom: 24px; border: 1px solid var(--vv-border); border-radius: 12px; background: var(--vv-surface); box-shadow: none; }
html body.dm-app :is(.tabs,.character-photo-tabs,.product-photo-tabs,.product-video-tabs,.video-tabs) > button { padding: 10px 16px; min-height: 44px; border: 0; border-radius: 8px; font: 500 13px/1.35 var(--dm-font-ui); color: var(--vv-muted); background: none; white-space: nowrap; }
html body.dm-app :is(.tabs,.character-photo-tabs,.product-photo-tabs,.product-video-tabs,.video-tabs) > :is(.active,[aria-current]) { background: var(--vv-accent-soft); color: var(--vv-highlight); border: 0; }
html body.dm-app :is(.character-photo-grid,.product-photo-grid) { grid-template-columns: minmax(300px,340px) minmax(0,1fr); gap: 24px; }
html body.dm-app :is(.character-photo-form,.product-photo-form) label { font-weight: 550; font-size: 13px; }
html body.dm-app :is(.character-photo-form,.product-photo-form) :is(input,textarea) { font-family: var(--dm-font-ui); font-size: 14px; }
html body.dm-app :is(.character-photo-form .style-options img,.product-scene img) { height: 100px; }
html body.dm-app :is(.style-options button,.product-scene,.product-mode,.video-character,.video-mode,.video-model-option) { border-radius: 12px; }
html body.dm-app :is(.character-photo-upload,.product-photo-upload,.animation-video-drop,.animation-upload) { background: #ffffff02; border-color: #c0a9f12b; border-radius: 12px; }
html body.dm-app :is(.character-form-footer,.product-form-footer,.video-wizard-actions) { padding-top: 18px; border-color: var(--vv-border); }
html body.dm-app :is(.character-photo-aside,.product-photo-aside) { padding: 20px; }
html body.dm-app :is(.character-result-image,.product-result-image) { max-height: 480px; border-radius: 12px; }
html body.dm-app .product-photo-tip { background: #9766f10a; border: 1px solid #9766f11f; }
html body.dm-app :is(.animation-preview-art,.history-media,.product-video-canvas) { background: #0d0d12; border-radius: 14px; }
html body.dm-app .animation-grid { grid-template-columns: minmax(300px,350px) minmax(0,1fr); gap: 20px; }
html body.dm-app .animation-aside { grid-template-columns: minmax(0,1fr); padding: 16px; gap: 16px; }
html body.dm-app .animation-inspector { border: 0; padding: 6px; }
html body.dm-app .animation-studio .animation-prompt-switch input:checked { background: var(--vv-accent); }
html body.dm-app .product-video-grid { grid-template-columns: minmax(280px,320px) minmax(0,1fr) minmax(220px,250px); gap: 20px; }
html body.dm-app :is(.product-video-settings,.animation-inspector) h3 { font-size: 17px; }
html body.dm-app :is(.video-selection,.animation-upload,.video-model-details) { background: var(--vv-raised); }
html body.dm-app .canaldark-frame { width: 100%; border: 0; background: var(--dm-app-bg); }
html body.dm-app .creator-studio { padding: 16px 24px 32px; max-width: 1600px; }

/* Library keeps all five collections and recent creations. */
html body.dm-app .creation-library { --collection-lime: var(--vv-success); --collection-pink: var(--vv-highlight); gap: 28px; }
html body.dm-app .creation-library h1 { font-size: clamp(27px,2.6vw,38px); }
html body.dm-app .creation-library h2 { font-size: 22px; }
html body.dm-app .collection-section-title::after { display: none; }
html body.dm-app .collection-shelf { gap: 16px; margin-top: 16px; }
html body.dm-app .collection-cover { border: 1px solid var(--vv-border); border-radius: 16px; aspect-ratio: 1.5; }
html body.dm-app .collection-cover strong { font-size: clamp(16px,1.5vw,22px); left: 16px; bottom: 16px; font-weight: 600; }
html body.dm-app .creation-library .collection-search .button { background: #8050db; color: white; }
html body.dm-app .creation-library :is(.collection-tabs button[aria-pressed=true],.collection-actions > summary) { color: var(--vv-highlight); }
html body.dm-app .creation-library .collection-tabs button[aria-pressed=true] { background: var(--vv-accent-soft); }
html body.dm-app .creation-library .library-card { border: 1px solid var(--vv-border); border-radius: 16px; background: var(--vv-surface); box-shadow: none; }
html body.dm-app .creation-library .library-detail { padding: 16px; }
html body.dm-app .creation-library .library-detail h3 { font-size: 15px; font-weight: 550; }
html body.dm-app .gallery { gap: 20px; }
html body.dm-app .gallery .card { overflow: hidden; }
html body.dm-app .gallery .card h3 { font-size: 18px; }

/* Account, wallet, support, operations and shared dialogs. */
html body.dm-app .wallet-page { max-width: none; gap: 24px; }
html body.dm-app :is(.wallet-overview,.wallet-package,.wallet-rates) { background: var(--vv-surface); border: 1px solid var(--vv-border); border-radius: 20px; box-shadow: none; }
html body.dm-app .wallet-overview { padding: 28px; }
html body.dm-app .wallet-overview h3 strong, html body.dm-app .wallet-package-credits { color: var(--vv-highlight); font-size: 32px; font-weight: 600; }
html body.dm-app .wallet-package-price { font-size: 25px; font-weight: 550; }
html body.dm-app :is(.table-wrap,.public-table) { max-width: 100%; overflow-x: auto; border-radius: 12px; }
html body.dm-app :is(table,th,td) { border-color: var(--vv-border); }
html body.dm-app th { color: var(--vv-muted); font-weight: 500; background: var(--vv-raised); }
html body.dm-app td { font-size: 13px; }
html body.dm-app .article { max-width: 880px; padding: 32px; margin: 24px auto; background: var(--vv-surface); border: 1px solid var(--vv-border); border-radius: 20px; box-shadow: none; }
html body.dm-app .article h1 { font-size: clamp(28px,3vw,40px); }
html body.dm-app .article p { line-height: 1.85; }
html body.dm-app .article a { color: var(--vv-highlight); }
html body.dm-app .article .button.primary { color: white; }
html body.dm-app dialog { color: var(--vv-text); background: var(--vv-surface); border: 1px solid #c0a9f130; border-radius: 20px; box-shadow: 0 28px 90px #0008; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding: 24px; }
html body.dm-app dialog::backdrop { background: var(--vv-overlay); backdrop-filter: blur(6px); }
html body.dm-app dialog > header { max-width: none; padding: 0 0 18px; margin: 0 0 20px; border-bottom: 1px solid var(--vv-border); gap: 16px; background: none; }
html body.dm-app dialog > header :is(h2,h3) { font-size: 22px; margin: 0; }
html body.dm-app .journey-dialog .journey-body { padding: 0; }
html body.dm-app .journey-dialog :is(.journey-balance,.journey-cost,.journey-guide-step) { background: var(--vv-raised); border-color: var(--vv-border); }
html body.dm-app .journey-dialog .journey-packages label:has(input:checked) { background: var(--vv-accent-soft); border-color: var(--vv-accent); }
html body.dm-app #toast { color: var(--vv-text); background: #21192d; border: 1px solid #b38aea44; border-radius: 12px; box-shadow: 0 15px 60px #0008; }
html body.dm-app > footer { max-width: 1488px; margin: 0 auto; padding: 24px 32px; border-top: 1px solid var(--vv-border); color: var(--vv-muted); font-size: 12px; }
html body.dm-app .mobile-navigation { width: min(440px,calc(100vw - 24px)); }
html body.dm-app .mobile-navigation nav > button { min-height: 48px; border-radius: 8px; color: var(--vv-text); }
html body.dm-app .mobile-navigation nav > button.active { color: var(--vv-highlight); background: var(--vv-accent-soft); }

@media(max-width:1200px) {
  html body.dm-app > header { gap: 20px; padding-inline: 24px; }
  html body.dm-app > header .top-navigation nav { gap: 18px; }
  html body.dm-app .studio { padding: 28px 24px 40px; }
  html body.dm-app .product-video-grid { grid-template-columns: minmax(260px,310px) minmax(0,1fr); }
  html body.dm-app .product-video-settings { grid-column: 1; grid-row: 2; }
  html body.dm-app .product-video-output { grid-column: 2; grid-row: 1 / span 2; }
}
@media(max-width:1000px) {
  html body.dm-app > header .brand { font-size: 18px; }
  html body.dm-app > header .top-navigation nav { gap: 14px; }
  html body.dm-app > header .top-navigation nav button, html body.dm-app .creation-nav-group > summary { font-size: 12px; }
  html body.dm-app :is(.character-photo-grid,.product-photo-grid) { grid-template-columns: 300px minmax(0,1fr); gap: 16px; }
  html body.dm-app .animation-grid { grid-template-columns: minmax(280px,320px) minmax(0,1fr); gap: 16px; }
}
@media(max-width:850px) {
  html body.dm-app > header { min-height: 68px; height: 68px; gap: 16px; padding-inline: 20px; }
  html body.dm-app > header .brand { font-size: 21px; }
  html body.dm-app > header .top-navigation { display: none; }
  html body.dm-app > header .header-actions { margin-left: auto; gap: 10px; }
  html body.dm-app > header .mobile-menu-open { display: grid; place-items: center; min-width: 40px; min-height: 44px; padding: 0; background: none; border: 0; font-size: 0; color: var(--vv-muted); }
  html body.dm-app > header .mobile-menu-open::before { content: '☰'; font-size: 20px; }
  html body.dm-app #account-popover { top: 78px; }
  html body.dm-app .studio { padding: 24px 20px 36px; }
  html body.dm-app :is(.character-photo-grid,.product-photo-grid,.animation-grid) { grid-template-columns: minmax(0,1fr); }
  html body.dm-app :is(.character-photo-aside,.product-photo-aside) { position: static; }
  html body.dm-app .collection-shelf { grid-template-columns: repeat(6,minmax(0,1fr)); }
  html body.dm-app .collection-cover { grid-column: span 2; }
  html body.dm-app .collection-cover:nth-last-child(-n+2) { grid-column: span 3; aspect-ratio: 2.2; }
  html body.dm-app .animation-studio .animation-preview-art :is(img,#video-preview) { height: 400px; }
}
@media(max-width:700px) {
  html body.dm-app .product-video-grid { display: flex; flex-direction: column; gap: 16px; }
  html body.dm-app .product-video-grid > * { width: 100%; }
  html body.dm-app .product-video-settings { order: 1; }
  html body.dm-app .product-video-output { order: 2; }
  html body.dm-app :is(.product-video-heading,.character-photo-heading,.product-photo-heading) { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  html body.dm-app :is(.tabs,.character-photo-tabs,.product-photo-tabs,.product-video-tabs,.video-tabs) { overflow-x: auto; flex-wrap: nowrap; }
}
@media(max-width:540px) {
  html body.dm-app > header { padding-inline: 16px; gap: 10px; }
  html body.dm-app > header .brand { font-size: 18px; gap: 7px; }
  html body.dm-app > header .brand img { width: 24px; height: 28px; }
  html body.dm-app > header .header-actions { gap: 4px; }
  html body.dm-app #journey-balance-button { padding: 6px; font-size: 11px; }
  html body.dm-app > header #account-button { width: 32px; height: 32px; min-height: 32px; }
  html body.dm-app .studio { padding: 22px 16px 32px; }
  html body.dm-app :is(.character-photo-form,.product-photo-form,.panel,.character-photo-aside,.product-photo-aside) { padding: 18px; border-radius: 16px; }
  html body.dm-app :is(.character-form-footer,.product-form-footer) { flex-wrap: wrap; gap: 12px; }
  html body.dm-app :is(.character-form-footer,.product-form-footer) .button.primary { width: 100%; white-space: normal; }
  html body.dm-app :is(.character-photo-form .style-options,.product-scene-grid) { gap: 8px; }
  html body.dm-app :is(.character-photo-form .style-options img,.product-scene img) { height: 110px; }
  html body.dm-app .collection-shelf { gap: 12px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  html body.dm-app .collection-cover,html body.dm-app .collection-cover:nth-last-child(-n+2) { grid-column: auto; aspect-ratio: 1.5; }
  html body.dm-app .collection-cover:last-child { grid-column: 1/-1; aspect-ratio: 3; }
  html body.dm-app .collection-cover strong { left: 12px; bottom: 12px; }
  html body.dm-app :is(.creation-library .unified-library,.gallery) { grid-template-columns: minmax(0,1fr); }
  html body.dm-app .wallet-overview { padding: 20px; }
  html body.dm-app .article { padding: 22px 18px; margin: 12px 0; border-radius: 16px; }
  html body.dm-app dialog { padding: 20px 16px; max-width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 16px; }
  html body.dm-app dialog > header :is(h2,h3) { font-size: 20px; }
  html body.dm-app > footer { padding: 24px 16px; flex-wrap: wrap; gap: 16px; }
  html body.dm-app :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]) { font-size: 16px; }
}
@media(max-width:390px) {
  html body.dm-app > header .dm-wordmark { display: none !important; }
  html body.dm-app > header .header-actions { gap: 8px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  html body.dm-app *,html body.dm-app *::before,html body.dm-app *::after { transition: none !important; animation: none !important; }
}

html body.dm-app .character-preview-canvas { background: #0d0d12; }
html body.dm-app .character-result-image { max-height: calc(100dvh - 260px); }
html body.dm-app :is(.character-form-footer,.product-form-footer) { position: static; bottom: auto; }
html body.dm-app .character-photo-grid { height: auto; min-height: 0; align-items: start; }
html body.dm-app .character-photo-form,html body.dm-app .character-photo-aside { overflow: visible; }
html body.dm-app :is(.tabs,.character-photo-tabs,.product-photo-tabs,.product-video-tabs,.video-tabs) > span[aria-current] { display: inline-flex; align-items: center; padding: 10px 16px; min-height: 44px; border: 0; border-radius: 8px; font: 500 13px/1.35 var(--dm-font-ui); }
html body.dm-app :is(.character-photo-tabs,.product-photo-tabs) > .active { box-shadow: none; }
html body.dm-app :is(.character-photo-form,.product-photo-form,.product-video-studio,.animation-studio) .button.primary:not(:disabled) { background: linear-gradient(135deg,#9462ed,#7040c0); color: #fff; border-color: #b688ff50; }
html body.dm-app:has(#clips-home) > header .brand { gap: 9px; }
html body.dm-app:has(#clips-home) > header .top-navigation nav { gap: 8px; }
html body.dm-app:has(#clips-home) > header .top-navigation nav button { font-weight: 500; }
@media(max-width:850px){html body.dm-app .character-result-image { max-height: 500px; }}

/* Account workspace: scoped to the profile content, never the shared header. */
html body.dm-app .account-studio { max-width: 1440px; }
html body.dm-app .account-studio .account-breadcrumb { display:flex; gap:14px; margin:0 0 18px; color:var(--vv-muted); font-size:12px; }
html body.dm-app .account-studio .account-breadcrumb span { color:#60586d; }
html body.dm-app .account-studio .account-subtitle { margin:10px 0 0; color:var(--vv-muted); font-size:15px; }
html body.dm-app .account-studio > .tabs { width:fit-content; max-width:100%; background:transparent; border:0; padding:0; gap:8px; }
html body.dm-app .account-studio > .tabs > .active { background:linear-gradient(135deg,#9462ed,#7040c0); color:white; }
html body.dm-app .account-layout { display:grid; grid-template-columns:minmax(240px,.85fr) minmax(0,2.35fr); gap:24px; align-items:start; }
html body.dm-app .account-layout :is(.account-sidebar,.account-content) { display:grid; gap:20px; min-width:0; }
html body.dm-app .account-layout .panel { margin:0; padding:24px; border-radius:16px; background:linear-gradient(145deg,#141319,#101014); min-width:0; }
html body.dm-app .account-layout h3 { display:flex; align-items:center; gap:12px; margin:0; font-size:20px; }
html body.dm-app .account-icon { width:23px; height:23px; flex:0 0 23px; color:#c6bed5; }
html body.dm-app .account-layout p { color:var(--vv-muted); font-size:13px; line-height:1.6; }
html body.dm-app .account-layout .account-verified { color:#7cdda7; }
html body.dm-app .account-identity { position:relative; overflow:hidden; padding-top:58px !important; }
html body.dm-app .account-ribbon { position:absolute; inset:0 0 auto; height:110px; pointer-events:none; overflow:hidden; background:radial-gradient(ellipse at 90% -10%,#793bd438,transparent 65%); }
html body.dm-app .account-ribbon::before, html body.dm-app .account-ribbon::after { content:""; position:absolute; width:115%; height:100px; left:-7%; top:-75px; border-radius:50%; transform:rotate(15deg); border-bottom:1px solid #ba86ff70; background:linear-gradient(160deg,transparent 30%,#9b5df33b 75%,#4e277520); box-shadow:0 12px 25px #8e4ce915; }
html body.dm-app .account-ribbon::after { transform:rotate(-17deg); left:28%; top:-65px; }
html body.dm-app .account-monogram { position:relative; display:grid; place-items:center; width:80px; height:80px; border:2px solid #9e6be5; border-radius:50%; background:linear-gradient(135deg,#49315f,#241b35); font-size:34px; font-weight:650; margin-bottom:18px; }
html body.dm-app .account-identity h3 { font-size:24px; overflow-wrap:anywhere; }
html body.dm-app .account-identity p { margin:10px 0 0; }
html body.dm-app .account-section-nav { display:grid; gap:6px; border-top:1px solid var(--vv-border); margin-top:24px; padding-top:18px; }
html body.dm-app .account-section-nav a { display:flex; align-items:center; gap:12px; min-height:46px; padding:10px 12px; border-radius:9px; text-decoration:none; color:var(--vv-secondary); font-size:13px; transition:background .2s,color .2s; }
html body.dm-app .account-section-nav a:is([aria-current],:hover) { background:#9766f11c; color:#e9dafa; }
html body.dm-app .account-support h3 { font-size:17px; }
html body.dm-app .account-support button { margin:12px 0 0 35px; padding:4px 0; text-align:left; }
html body.dm-app .account-details h3 { padding-bottom:18px; border-bottom:1px solid var(--vv-border); }
html body.dm-app .account-details dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 32px; margin:20px 0 0; }
html body.dm-app .account-details dt { font-size:12px; color:var(--vv-muted); margin-bottom:3px; }
html body.dm-app .account-details dd { margin:0; font-size:14px; overflow-wrap:anywhere; }
html body.dm-app .account-details #account-resend { margin-top:18px; }
html body.dm-app .account-security-intro { margin:6px 0 24px 35px; }
html body.dm-app .account-layout h4 { font-size:15px; margin:0; }
html body.dm-app .account-password-block > p { margin:6px 0 18px; }
html body.dm-app .account-password { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); max-width:none; gap:16px; margin:0; }
html body.dm-app .account-password label { display:grid; gap:7px; margin:0; font-size:12px; font-weight:500; }
html body.dm-app .account-password input { margin:0; background:#0d0d12; }
html body.dm-app .account-password .account-full { grid-column:1/-1; }
html body.dm-app .account-password p { margin:0; }
html body.dm-app .account-password [role=status]:empty { display:none; }
html body.dm-app .account-password button { justify-self:end; }
html body.dm-app .account-devices { margin-top:24px; padding-top:22px; border-top:1px solid var(--vv-border); }
html body.dm-app .account-devices h4 { display:flex; align-items:center; gap:12px; }
html body.dm-app .account-devices p { margin:7px 0 12px; }
html body.dm-app .account-devices summary { width:fit-content; border:1px solid var(--vv-border); border-radius:9px; padding:10px 14px; font-size:12px; cursor:pointer; }
html body.dm-app .account-privacy { overflow:hidden; }
html body.dm-app .account-privacy-top { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:18px; }
html body.dm-app .account-privacy .account-actions { display:flex; flex-wrap:wrap; gap:10px; margin:0; }
html body.dm-app .account-privacy .button { font-size:12px; }
html body.dm-app .account-danger { margin:22px -24px -24px; border:0; border-top:1px solid #ed819b30; border-radius:0; padding:0; background:#e8769610; }
html body.dm-app .account-danger > summary { padding:18px 24px; color:#ef9bb3; cursor:pointer; font-size:13px; font-weight:550; }
html body.dm-app .account-danger > :not(summary) { margin:0 24px 20px; }
html body.dm-app .account-danger form { display:grid; gap:16px; }
html body.dm-app .account-danger label { margin:0; }
html body.dm-app .account-danger button { justify-self:start; }
html body.dm-app .account-content > section { scroll-margin-top:100px; }
@media(max-width:900px) {
  html body.dm-app .account-layout { grid-template-columns:minmax(210px,.85fr) minmax(0,1.65fr); gap:18px; }
  html body.dm-app .account-layout .panel { padding:20px; }
  html body.dm-app .account-danger { margin:20px -20px -20px; }
}
@media(max-width:700px) {
  html body.dm-app .account-studio { padding:24px 16px 36px; }
  html body.dm-app .account-layout { grid-template-columns:minmax(0,1fr); }
  html body.dm-app .account-layout .account-sidebar { grid-template-columns:minmax(0,1fr); }
  html body.dm-app .account-layout .account-support { order:2; }
  html body.dm-app .account-identity { padding-top:28px !important; }
  html body.dm-app .account-monogram { width:64px; height:64px; font-size:28px; }
  html body.dm-app .account-section-nav { display:flex; flex-wrap:wrap; gap:4px; margin-top:18px; padding-top:14px; }
  html body.dm-app .account-section-nav a { padding:8px 10px; font-size:12px; }
  html body.dm-app .account-section-nav .account-icon { width:18px; height:18px; flex-basis:18px; }
  html body.dm-app .account-support { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; }
  html body.dm-app .account-support button { margin:0; }
  html body.dm-app .account-details dl { gap:18px; }
  html body.dm-app .account-password { grid-template-columns:minmax(0,1fr); }
  html body.dm-app .account-password button { justify-self:stretch; }
  html body.dm-app .account-privacy-top { align-items:flex-start; flex-direction:column; }
}
@media(max-width:400px) {
  html body.dm-app .account-details dl { grid-template-columns:minmax(0,1fr); }
  html body.dm-app .account-layout h3 { font-size:18px; }
}
@media(prefers-reduced-motion:reduce) {
  html body.dm-app .account-section-nav a { transition:none; }
}

/* Wallet follows the account workspace; shared header and checkout stay untouched. */
html body.dm-app .wallet-studio { max-width:1440px; }
html body.dm-app .wallet-studio .wallet-breadcrumb { display:flex; gap:14px; margin:0 0 18px; color:var(--vv-muted); font-size:12px; }
html body.dm-app .wallet-studio .wallet-breadcrumb span { color:#60586d; }
html body.dm-app .wallet-studio .wallet-subtitle { margin:10px 0 0; color:var(--vv-muted); font-size:15px; }
html body.dm-app .wallet-studio > .tabs { width:fit-content; max-width:100%; background:transparent; border:0; padding:0; gap:8px; }
html body.dm-app .wallet-studio > .tabs > .active { background:linear-gradient(135deg,#9462ed,#7040c0); color:white; }
html body.dm-app .wallet-redesign { display:grid; gap:24px; min-width:0; }
html body.dm-app .wallet-redesign .wallet-overview { position:relative; overflow:hidden; margin:0; min-height:158px; padding:26px 32px; border-radius:16px; border-color:#9766f14d; background:linear-gradient(110deg,#14111d,#1c122d); }
html body.dm-app .wallet-redesign .wallet-balance-copy, html body.dm-app .wallet-redesign #wallet-refresh { position:relative; z-index:1; }
html body.dm-app .wallet-redesign .wallet-balance-label { font-size:14px; font-weight:600; }
html body.dm-app .wallet-redesign .wallet-overview h3 { display:flex; flex-wrap:wrap; gap:12px; align-items:baseline; margin:8px 0; font-size:17px; font-weight:500; }
html body.dm-app .wallet-redesign .wallet-overview h3 strong { color:white; font-size:48px; line-height:1.1; font-weight:650; }
html body.dm-app .wallet-redesign .wallet-overview p { margin:6px 0 0; font-size:12px; color:#c4b9d5; }
html body.dm-app .wallet-redesign .wallet-overview p:empty { display:none; }
html body.dm-app .wallet-redesign #wallet-refresh { display:flex; gap:8px; align-items:center; align-self:flex-start; min-height:44px; font-size:12px; color:#dfd0f5; border-radius:8px; }
html body.dm-app .wallet-redesign #wallet-refresh span { font-size:22px; }
html body.dm-app .wallet-redesign .wallet-ribbon { position:absolute; inset:0; overflow:hidden; pointer-events:none; background:radial-gradient(ellipse at 80% 120%,#833ac647,transparent 55%); }
html body.dm-app .wallet-redesign .wallet-ribbon::before, html body.dm-app .wallet-redesign .wallet-ribbon::after { content:""; position:absolute; right:-5%; width:65%; height:180px; top:-90px; border-bottom:1px solid #c991fb8a; border-radius:50%; transform:rotate(-14deg); background:linear-gradient(165deg,transparent 25%,#9766f140 80%,#9766f170); box-shadow:0 15px 35px #9766f130; }
html body.dm-app .wallet-redesign .wallet-ribbon::after { right:0; top:-25px; transform:rotate(12deg); background:linear-gradient(155deg,transparent 50%,#9766f130); }
html body.dm-app .wallet-redesign .wallet-section-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px; margin:0 0 18px; }
html body.dm-app .wallet-redesign .wallet-section-heading h3 { margin:0; font-size:22px; }
html body.dm-app .wallet-redesign .wallet-section-heading p { margin:0; color:var(--vv-muted); font-size:12px; }
html body.dm-app .wallet-redesign .wallet-package { padding:22px; gap:12px; border-radius:16px; background:linear-gradient(145deg,#141319,#101014); }
html body.dm-app .wallet-redesign .wallet-package-credits { font-size:28px; line-height:1.2; }
html body.dm-app .wallet-redesign .wallet-package-credits small { display:inline; color:inherit; font-size:18px; font-weight:550; letter-spacing:-.02em; }
html body.dm-app .wallet-redesign .wallet-package-price { font-size:26px; font-weight:650; }
html body.dm-app .wallet-redesign .wallet-package .fine { font-size:12px; color:var(--vv-muted); }
html body.dm-app .wallet-redesign .wallet-package .button { margin-top:6px; }
html body.dm-app .wallet-redesign .wallet-rates { padding:20px 24px; border-radius:16px; background:linear-gradient(145deg,#141319,#101014); min-width:0; }
html body.dm-app .wallet-redesign .wallet-rates summary { display:flex; justify-content:space-between; align-items:center; gap:16px; list-style:none; font-size:16px; font-weight:600; }
html body.dm-app .wallet-redesign .wallet-rates summary::-webkit-details-marker { display:none; }
html body.dm-app .wallet-redesign .wallet-rates summary::after { content:'⌄'; font-size:19px; color:var(--vv-muted); }
html body.dm-app .wallet-redesign .wallet-rates[open] > summary::after { transform:rotate(180deg); }
html body.dm-app .wallet-redesign .wallet-disclosure-copy { display:grid; gap:3px; }
html body.dm-app .wallet-redesign .wallet-disclosure-copy small { color:var(--vv-muted); font-weight:400; font-size:12px; }
html body.dm-app .wallet-redesign .wallet-history-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:24px; align-items:start; }
html body.dm-app .wallet-redesign .table-wrap { margin-top:18px; overflow-x:auto; border:0; }
html body.dm-app .wallet-redesign table { width:100%; min-width:0; table-layout:fixed; font-size:12px; }
html body.dm-app .wallet-redesign th { font-weight:500; color:var(--vv-muted); background:transparent; }
html body.dm-app .wallet-redesign :is(th,td) { padding:12px 8px; white-space:normal; overflow-wrap:anywhere; border-bottom:1px solid var(--vv-border); }
html body.dm-app .wallet-redesign tbody tr:last-child td { border-bottom:0; }
html body.dm-app .wallet-redesign .ledger-date { width:28%; }
html body.dm-app .wallet-redesign .ledger-credits { width:18%; }
html body.dm-app .wallet-redesign .wallet-ledger :is(th,td):last-child { text-align:right; }
html body.dm-app .wallet-redesign .wallet-orders th:first-child { width:21%; }
html body.dm-app .wallet-redesign .wallet-orders th:nth-child(2) { width:32%; }
html body.dm-app .wallet-redesign .wallet-orders th:last-child { width:24%; }
html body.dm-app .wallet-redesign .wallet-orders .button { padding:8px; font-size:11px; white-space:normal; }
html body.dm-app .wallet-redesign .wallet-order-status { display:inline-block; font-size:11px; }
html body.dm-app .wallet-redesign .wallet-order-status.is-paid { padding:3px 9px; border-radius:6px; background:#56c98915; color:#7cdda7; border:1px solid #56c98930; }
html body.dm-app .wallet-redesign .wallet-support { display:flex; flex-wrap:wrap; align-items:center; gap:10px; color:var(--vv-muted); font-size:12px; }
html body.dm-app .wallet-redesign .wallet-support .text-button { padding:8px 0; font-size:12px; }
@media(max-width:1100px) {
  html body.dm-app .wallet-redesign .wallet-history-grid { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:600px) {
  html body.dm-app .wallet-studio { padding:24px 16px 36px; }
  html body.dm-app .wallet-redesign { gap:20px; }
  html body.dm-app .wallet-redesign .wallet-overview { padding:24px; gap:10px; }
  html body.dm-app .wallet-redesign .wallet-overview h3 { font-size:15px; }
  html body.dm-app .wallet-redesign .wallet-overview h3 strong { font-size:42px; }
  html body.dm-app .wallet-redesign .wallet-rates { padding:18px 14px; }
  html body.dm-app .wallet-redesign .wallet-ribbon::before, html body.dm-app .wallet-redesign .wallet-ribbon::after { width:95%; right:-40%; opacity:.6; }
  html body.dm-app .wallet-redesign :is(th,td) { padding:10px 5px; font-size:11px; }
}

html body.dm-app .account-creation-tools{margin-top:24px;}html body.dm-app .account-creation-tools>summary{cursor:pointer;font-weight:600;padding:8px 0;}html body.dm-app .account-creation-tools[open]>summary{margin-bottom:20px;}html body.dm-app .account-tools-mount{min-width:0;}
