:root {
  color-scheme: dark;
  --bg: #04110d;
  --panel: #091c15;
  --panel-raised: #0d261c;
  --line: #19e39a;
  --cyan: #4be3cf;
  --text: #f2fff8;
  --muted: #a0b8aa;
  --gold: #f4d779;
  --danger: #ff6976;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; padding-bottom: var(--safe-bottom); overflow-x: hidden;
  color: var(--text); font: 15px/1.48 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 120% 44% at 50% -12%, #14573a 0, #0a2c1c 32%, transparent 74%),
    radial-gradient(ellipse at 100% 48%, #073b2c55, transparent 42%),
    linear-gradient(180deg, #06170f 0, var(--bg) 47%);
}
button, input, textarea { font: inherit; }
button { color: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

header {
  position: sticky; z-index: 5; top: 0; display: flex; align-items: center; gap: 10px;
  min-height: 64px; padding: calc(8px + var(--safe-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid #38eaa226; background: #04120eeb; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.mark { position: relative; display: grid; flex: none; place-items: center; width: 42px; height: 42px; overflow: hidden; border: 1px solid #72f6bd85; border-radius: 15px; color: var(--gold); background: radial-gradient(circle at 50% 30%, #3c8254, #0b2619 68%); box-shadow: 0 0 21px #00db8734, inset 0 0 13px #b8ffda1c; }
.mark b { font-size: 22px; line-height: 1; text-shadow: 0 0 12px #ffe991a8; }
.mark span { position: absolute; top: 1px; right: 5px; color: #fff2a7; font-size: 11px; }
.brand { min-width: 0; }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .13em; font-size: 13px; }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: .05em; }
.connection { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #b5e8cb; font-size: 10px; white-space: nowrap; }
.connection i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); box-shadow: 0 0 9px var(--line); }
.connection.offline { color: #ffb1a5; }
.connection.offline i { background: var(--danger); box-shadow: 0 0 9px var(--danger); }
header #reload { flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid #38eaa22e; border-radius: 14px; background: #0b241a; color: var(--cyan); font-size: 22px; }
header #reload:active { transform: rotate(35deg); }

main { width: min(100%, 760px); margin: auto; padding: 18px 15px 34px; }
.intro { position: relative; display: flex; min-height: 196px; align-items: center; overflow: hidden; padding: 23px 20px; border: 1px solid #40e6a538; border-radius: 25px; background: linear-gradient(112deg, #0c2a1deF 0%, #0b211ad9 55%, #0b241bd9 100%); box-shadow: 0 16px 45px #0004, inset 0 1px #e1ffec0c; }
.intro:after { position: absolute; inset: auto -9% -92px 30%; height: 150px; border: 1px solid #29e49a2a; border-radius: 50%; content: ""; transform: rotate(-13deg); }
.intro-copy { position: relative; z-index: 1; max-width: 78%; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--line); font-size: 9px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow:before { width: 6px; height: 6px; border-radius: 50%; background: var(--line); box-shadow: 0 0 11px var(--line); content: ""; }
.intro h1 { margin: 9px 0 8px; font-size: clamp(26px, 7.3vw, 38px); line-height: 1.05; letter-spacing: -.045em; }
.intro h1 em { color: #6debc0; font-style: normal; }
.intro p { max-width: 300px; margin: 0; color: #b5cbbd; font-size: 12px; line-height: 1.5; }
.intro-action { min-height: 40px; margin-top: 13px; padding: 8px 12px; border-color: #34ecad; background: linear-gradient(105deg, #12bb7b, #147c64); color: #001b13; font-size: 10px; font-weight: 900; letter-spacing: .035em; box-shadow: 0 5px 18px #00df9a30; }
.intro-art { position: absolute; right: -3px; bottom: 6px; display: grid; width: 132px; height: 132px; place-items: center; color: #f5dd82; }
.intro-art > span { z-index: 1; display: grid; width: 62px; height: 62px; place-items: center; border: 1px solid #ffe98c80; border-radius: 23px; background: radial-gradient(circle at 50% 30%, #4c8753, #102719 72%); box-shadow: 0 0 25px #ffd05b37, inset 0 0 15px #fff7c729; font-size: 38px; text-shadow: 0 0 13px #ffe685b3; }
.intro-art > i { position: absolute; top: 14px; right: 31px; color: #fff3b0; font-size: 19px; font-style: normal; text-shadow: 0 0 15px white; }
.art-ring { position: absolute; width: 112px; height: 39px; border: 1px solid #29ef9a80; border-radius: 50%; box-shadow: 0 0 14px #06db8140; transform: rotate(-24deg); }
.ring-two { width: 94px; height: 27px; border-color: #4ce6d66b; transform: rotate(24deg); }
.hidden { display: none !important; }

.panel { margin: 15px 0; padding: 17px; border: 1px solid #2dd99760; border-radius: 21px; background: linear-gradient(145deg, #0a211aee, #04130fee); box-shadow: 0 12px 35px #0007, inset 0 1px #ffffff08; }
.panel h1, .panel h2 { margin: 0 0 12px; font-size: 19px; letter-spacing: -.02em; }
.panel p { margin: 0 0 14px; color: var(--muted); }
button { min-height: 46px; padding: 10px 14px; border: 1px solid #1abf8c77; border-radius: 14px; background: linear-gradient(145deg, #0b241b, #071711); transition: transform .15s, border-color .15s, filter .15s; }
button:active { transform: scale(.985); }
button:disabled { opacity: .48; filter: saturate(.55); }
.primary { width: 100%; min-height: 53px; margin-top: 15px; border: 0; background: linear-gradient(105deg, #19e59a, #24d2b7); color: #002116; font-weight: 900; letter-spacing: .035em; box-shadow: 0 7px 24px #00df9a36; }
.quiet { border: 0; background: transparent; color: var(--cyan); padding-inline: 0; }

#notice { min-height: 0; margin: 12px 0 4px; color: var(--cyan); font-size: 12px; }
#notice:not(:empty) { padding: 11px 13px; border: 1px solid #12d8905c; border-radius: 13px; background: #082017; }
.notification-card { display: flex; width: 100%; min-height: 65px; align-items: center; gap: 11px; margin: 15px 0 24px; padding: 10px 13px; border: 1px solid #42d99a36; border-radius: 17px; text-align: left; background: linear-gradient(105deg, #0d291d, #081b14); box-shadow: 0 8px 22px #0003; }
.notification-icon { display: grid; flex: none; width: 39px; height: 39px; place-items: center; border-radius: 13px; background: #173d2b; color: #80f0b3; font-size: 23px; }
.notification-copy { display: grid; gap: 2px; min-width: 0; }
.notification-copy strong { font-size: 12px; }
.notification-copy small { color: var(--muted); font-size: 10px; }
.notification-arrow { margin-left: auto; color: var(--line); font-size: 25px; }
.notification-card.is-on { border-color: #19e39a91; background: linear-gradient(105deg, #103725, #0b241a); }
.notification-card:disabled { opacity: .6; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin: 0 2px 12px; }
.section-heading .eyebrow { font-size: 9px; }
.section-heading h2 { margin: 3px 0 0; font-size: 21px; letter-spacing: -.03em; }
.count-pill { padding: 6px 10px; border: 1px solid #2c845d60; border-radius: 99px; background: #0b241a; color: #b1e6c8; font-size: 10px; white-space: nowrap; }

.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.video-card { position: relative; overflow: hidden; padding: 0; border: 1px solid #226848; border-radius: 18px; text-align: left; background: #061711; box-shadow: 0 9px 23px #0006; }
.video-card:active { border-color: var(--line); }
.video-card video { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; opacity: 0; border-radius: 0; background: transparent; object-fit: cover; transition: opacity .25s ease; }
.video-card.has-frame video { opacity: 1; }
.video-media { position: relative; display: block; width: 100%; aspect-ratio: 9 / 13; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #22583d 0, #0b291c 42%, #020805 78%); }
.video-cover { position: absolute; inset: 0; display: grid; width: 100%; height: 100%; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #22583d 0, #0b291c 42%, #020805 78%); }
.video-cover:before, .video-cover:after { position: absolute; width: 76%; height: 31%; border: 1px solid #23d99268; border-radius: 50%; content: ""; transform: rotate(-28deg); box-shadow: 0 0 18px #00df9a17; }
.video-cover:after { width: 56%; height: 22%; border-color: #f4d77950; transform: rotate(28deg); }
.video-cover b { z-index: 1; display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid #f4d7798a; border-radius: 21px; background: radial-gradient(circle at 50% 28%, #40704a, #102619 75%); color: #ffe99b; font-size: 34px; font-weight: 500; text-shadow: 0 0 13px #ffe38a85; box-shadow: 0 0 25px #ffd05b2b, inset 0 0 14px #fff7c71c; }
.video-cover i { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #a8f6d257; border-radius: 50%; background: #04140ed9; color: #70edba; font-size: 10px; font-style: normal; padding-left: 2px; }
.video-copy { display: block; padding: 10px 10px 11px; }
.video-card strong, .video-card small, .video-card em { display: block; }
.video-card strong { display: -webkit-box; overflow: hidden; font-size: 12px; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.video-card small { padding-top: 5px; color: var(--muted); font-size: 10px; }
.video-card em { padding-top: 8px; color: #64e6b1; font-size: 10px; font-style: normal; font-weight: 750; }
.empty-state { display: grid; grid-column: 1 / -1; justify-items: center; gap: 6px; padding: 30px 22px; border: 1px dashed #3b87645e; border-radius: 19px; background: linear-gradient(145deg, #0a211ac9, #06150f); text-align: center; }
.empty-state > span { display: grid; width: 43px; height: 43px; place-items: center; margin-bottom: 3px; border: 1px solid #31ca8a55; border-radius: 15px; background: #123522; color: var(--gold); font-size: 22px; }
.empty-state strong { font-size: 13px; }
.empty-state small { max-width: 265px; color: var(--muted); font-size: 11px; }

label:not(.account):not(.confirm) { display: block; margin: 14px 0 7px; color: #daf9eb; font-size: 12px; font-weight: 750; }
input:not([type="checkbox"]):not([type="range"]), textarea { width: 100%; padding: 13px; border: 1px solid #246d54; border-radius: 13px; outline: none; background: #03120e; color: var(--text); }
input:focus, textarea:focus { border-color: var(--line); box-shadow: 0 0 0 3px #00df9a20; }
textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #246d54; border-radius: 13px; background: #03120e; color: var(--text); font: inherit; }
select:focus { outline: 2px solid var(--cyan); outline-offset: 2px; }
input[type="range"] { width: 100%; accent-color: var(--line); }
.creator-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.creator-toggles label { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 10px; border: 1px solid #1b5140; border-radius: 12px; background: #061810; font-size: 11px !important; }
.creator-toggles input { width: 18px; height: 18px; margin: 0; accent-color: var(--line); }
.creator-advanced { margin-top: 12px; padding: 10px 12px; border: 1px solid #1b5140; border-radius: 13px; background: #061810; }
.creator-advanced summary { color: var(--cyan); font-size: 12px; font-weight: 800; cursor: pointer; }
.creator { margin-top: 17px; }
.creator > .eyebrow { margin-bottom: 6px; }
.creator > p { margin-top: -5px; font-size: 12px; }
.voicebox-start { width: 100%; margin: 0 0 12px; color: var(--gold); }
.creator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 11px; }
.creator-grid > div { min-width: 0; }
#createNotice { min-height: 0; margin-top: 10px; color: var(--cyan); font-size: 12px; }
#createNotice:not(:empty) { padding: 10px 12px; border: 1px solid #12d8905c; border-radius: 12px; background: #082017; }
.create-progress { margin-top: 11px; padding: 12px; border: 1px solid #755f2e; border-radius: 13px; background: #211b0d; color: var(--gold); font-size: 12px; }
video#preview { display: block; width: 100%; max-height: 67vh; aspect-ratio: 9 / 16; margin: 13px auto; border: 1px solid #137a55; border-radius: 17px; background: #000; object-fit: contain; }
.accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.account { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 10px; border: 1px solid #1b5140; border-radius: 14px; background: #061810; }
.account:has(input:checked) { border-color: var(--line); background: linear-gradient(120deg, #0a3927, #092018); box-shadow: 0 0 16px #00df9a1c; }
.account input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--line); }
.account-icon { display: grid; flex: none; width: 31px; height: 31px; place-items: center; border-radius: 11px; background: #10382c; color: var(--cyan); font-weight: 900; }
.account-text { min-width: 0; }
.account-text strong, .account-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-text strong { font-size: 10px; letter-spacing: .08em; }
.account-text small { color: var(--muted); font-size: 10px; }
.confirm { display: flex; align-items: flex-start; gap: 10px; margin: 16px 1px; color: var(--muted); font-size: 12px; }
.confirm input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--line); }

.job { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 12px 0; border-bottom: 1px solid #174837; }
.job:last-child { border: 0; }
.job strong { font-size: 13px; }
.job small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.job-state { align-self: center; padding: 3px 8px; border: 1px solid #287258; border-radius: 99px; color: var(--cyan); font-size: 9px; text-transform: uppercase; }
.job-state.published { border-color: var(--line); color: var(--line); }
.job-state.failed, .job-state.partial { border-color: #b18b24; color: var(--gold); }
.job-state.needs_review { border-color: var(--danger); color: #ff9ca3; }
footer { max-width: 760px; margin: 0 auto; padding: 8px 18px max(20px, var(--safe-bottom)); color: #819c90; font-size: 10px; text-align: center; }

@media (min-width: 600px) {
  main { padding: 28px 24px 44px; }
  .intro { min-height: 230px; padding-inline: 28px; }
  .intro-art { right: 17px; transform: scale(1.18); }
  .notification-card { margin-bottom: 29px; }
  .videos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .video-media { aspect-ratio: 9 / 12; }
  .video-copy { padding: 12px; }
  .video-card strong { font-size: 14px; }
  .video-card small, .video-card em { font-size: 11px; }
  .panel { padding: 22px; }
}
@media (max-width: 480px) {
  .intro-art { right: -56px; bottom: -22px; opacity: .42; transform: scale(.72); }
}
@media (max-width: 360px) {
  main { padding-inline: 11px; }
  .intro { min-height: 177px; padding-inline: 15px; }
  .intro-copy { max-width: 82%; }
  .intro-art { right: -49px; bottom: -25px; opacity: .32; transform: scale(.72); }
  .intro p { max-width: 225px; font-size: 11px; }
  .videos { gap: 8px; }
  .video-copy { padding: 8px; }
  .video-card strong { font-size: 11px; }
  .panel { padding: 14px; }
  .accounts { grid-template-columns: 1fr; }
  .creator-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.download-photo {
  display: grid;
  place-items: center;
  text-decoration: none;
}
