@font-face{font-family:"DM Sans";src:url("/fonts/dm-sans.woff2") format("woff2");font-weight:100 1000;font-display:swap}
:root{font-family:"DM Sans",system-ui,sans-serif}
.account-page{margin:0;background:#111310;color:#f2f4ee;color-scheme:dark;font:16px/1.5 "DM Sans",system-ui,sans-serif}
.topbar{box-sizing:border-box;display:flex;align-items:center;gap:clamp(12px,3vw,42px);height:64px;padding:0 clamp(12px,3vw,48px);background:#10120f;border-bottom:1px solid #32362d}
.topbar .brand{font-size:clamp(20px,2.4vw,25px);font-weight:780;letter-spacing:-.07em;color:#e3ff97;text-decoration:none}
.topbar nav{display:flex;gap:4px;align-items:center}
.topbar nav a,.topbar .signout{font:550 14px/1.4 "DM Sans",sans-serif;text-decoration:none;color:#b9c0b3;border-radius:8px;padding:7px 10px}
.topbar nav a:hover,.topbar nav a[aria-current=page]{background:#252a21;color:#f4f6ef}
.topbar .signout{margin-left:auto;background:transparent;border:1px solid #40453b;cursor:pointer;white-space:nowrap}
.topbar #engineState{margin:0 0 0 auto}.topbar #engineState:not([hidden])~.signout{margin-left:0}
html:not([data-admin="1"]) #engineState{display:none!important}
.signin{display:grid;place-items:center;min-height:calc(90vh - 64px);padding:16px}
.signin form,.library article{box-sizing:border-box;background:#1a1d18;border:1px solid #34392e;border-radius:16px;padding:24px}
.signin form{width:min(100%,360px)}.account-page h1{font-size:clamp(30px,4vw,46px);letter-spacing:-.055em;line-height:1.1;margin:0 0 24px}
.signin label{display:grid;gap:6px;margin:14px 0;font-size:14px}
.signin input{font:inherit;background:#10120f;color:inherit;padding:10px;border:1px solid #404638;border-radius:8px}
.primary{width:100%;border:0;border-radius:8px;background:#d2fc58;color:#191d13;padding:12px;font:650 15px "DM Sans",sans-serif;cursor:pointer}
.library{max-width:1200px;margin:auto;padding:clamp(24px,5vw,64px) 20px}
#generations{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,265px),1fr));gap:16px}
.library video{width:100%;aspect-ratio:16/9;background:#080908;border-radius:8px}
.library h2{font-size:17px;overflow-wrap:anywhere}.library p{color:#b4baae}.library a{color:#dcfaa0}
@media(max-width:600px){.topbar{gap:7px}.topbar nav a,.topbar .signout{padding:6px;font-size:13px}.topbar #engineState{font-size:0;padding:4px;gap:0}}

.auth-page{min-height:100svh;background:#10120f}
.auth-header{height:74px;padding:0 clamp(20px,4vw,70px);display:flex;align-items:center}
.auth-brand{display:inline-flex;align-items:center;gap:12px;color:#f4f6ed;text-decoration:none;font-size:26px;font-weight:750;letter-spacing:-.07em}
.auth-brand i{display:block;width:26px;height:26px;background:#d2fc58;clip-path:polygon(0 0,100% 0,100% 29%,64% 29%,64% 100%,34% 100%,34% 29%,0 29%);transform:skew(-12deg)}
.auth-layout{display:grid;grid-template-columns:1.12fr 1fr;min-height:calc(100svh - 98px);margin:0 24px 24px}
.auth-art{position:relative;overflow:hidden;isolation:isolate;border-radius:22px;background:#252b23;display:flex;align-items:flex-end}
.art-frames,.art-frames::before,.art-frames::after,.auth-art::after{position:absolute;inset:0;pointer-events:none}
.art-frames{z-index:-2;background:center/cover url('/film-studio.jpg')}
.auth-art::after{content:"";z-index:-1;background:linear-gradient(0deg,#0b100de8,transparent 71%)}
@media(prefers-reduced-motion:no-preference){
  .art-frames::before,.art-frames::after{content:"";opacity:0;background-position:center;background-size:cover;animation:scene-crossfade 18s ease-in-out infinite}
  .art-frames::before{background-image:url('/film-scene-2.jpg');animation-delay:4.5s}
  .art-frames::after{background-image:url('/film-scene-3.jpg');animation-delay:10.5s;animation-name:last-scene-crossfade}
}
@keyframes scene-crossfade{0%,43%,100%{opacity:0}8.333%,42%{opacity:1}}
@keyframes last-scene-crossfade{0%,41.667%,100%{opacity:0}8.333%,33.333%{opacity:1}}
.art-caption{padding:clamp(22px,4.5vw,80px)}.art-caption span{color:#e1ff9d;font-weight:650;font-size:15px}
.art-caption h2{margin:14px 0 0;font-size:clamp(44px,6.6vw,114px);line-height:.96;letter-spacing:-.07em;font-weight:580}
.art-caption em{color:#d2fc58;font-weight:440}
.auth-panel{display:grid;place-items:center;padding:35px clamp(16px,5vw,90px)}
.auth-inner{width:min(100%,360px)}.auth-inner h1{margin:0;font-size:clamp(34px,3.8vw,60px);letter-spacing:-.065em}
#authIntro,.auth-switch{color:#b4b8af}.auth-inner form{margin-top:30px}
.auth-inner label{display:block;font-weight:550;font-size:14px;margin:17px 0 6px}
.auth-inner input{box-sizing:border-box;width:100%;font:inherit;border:1px solid #44493f;border-radius:10px;padding:12px;background:#191c17;color:#fff}
.auth-inner input:focus-visible,.auth-inner button:focus-visible,.auth-switch a:focus-visible{outline:2px solid #c7f75a;outline-offset:3px}
.auth-inner .primary{margin-top:4px;padding:14px;transition:background .16s,transform .16s}.auth-inner .primary:hover{background:#e2ff99}.auth-inner .primary:active{transform:translateY(1px)}
.auth-inner #notice{color:#e8eabf;font-size:14px}.auth-switch{font-size:14px;margin-top:24px}.auth-switch a{color:#edf6da;text-underline-offset:4px}
@media(max-width:720px){.auth-header{height:62px}.auth-layout{grid-template-columns:1fr;min-height:0;margin:0 16px 24px}.auth-art{min-height:150px;max-height:200px;border-radius:14px}.art-caption{padding:16px 20px}.art-caption h2{font-size:37px;margin-top:6px}.auth-panel{padding:30px 8px}}
@media(prefers-reduced-motion:reduce){.auth-inner .primary{transition:none}}
.auth-inner [hidden]{display:none}
#googleSection{margin:22px 0}.auth-divider{display:flex;align-items:center;gap:12px;margin:18px 0 0;color:#aab1a2;font-size:13px}.auth-divider::before,.auth-divider::after{content:"";flex:1;height:1px;background:#373d32}
.topbar{gap:clamp(12px,3vw,48px);background:#121410;border-color:#32352f}
.topbar .brand{color:#f2f4ec}.topbar .brand::before{content:"";display:inline-block;width:19px;height:20px;margin-right:8px;background:#d2fc58;clip-path:polygon(5% 0,100% 0,93% 30%,62% 30%,48% 100%,20% 100%,34% 30%,0 30%)}
.topbar nav a{border-radius:24px}.topbar nav a[aria-current=page]{background:#303629;color:#e5f4ce}
.account-link{margin-left:auto;text-decoration:none}.topbar .signout[hidden]{display:none}.topbar #engineState:not([hidden])~.account-link{margin-left:0}
html:not([data-admin="1"]) .topbar #engineState~.account-link{margin-left:auto}
.avatar{display:inline-grid;place-items:center;overflow:hidden;border-radius:50%;background:#cbd9b2;color:#25351a;font:700 15px "DM Sans",sans-serif;width:36px;height:36px;flex-shrink:0}.avatar img{width:100%;height:100%;object-fit:cover}.avatar.big{width:60px;height:60px;font-size:23px}
.pricing-link,.signin-link{color:#def0cc;margin-left:auto;text-decoration:none}
.settings-page{max-width:720px;padding:48px 20px;margin:auto}.settings-page section{border:1px solid #373c32;border-radius:16px;background:#191c17;padding:24px;margin:18px 0}.settings-page h2{margin:0 0 16px;font-size:20px;letter-spacing:-.03em}.settings-page label{display:grid;gap:6px;margin:14px 0;font-size:14px}.settings-page input:not([type=file]){box-sizing:border-box;width:100%;background:#10120f;border:1px solid #474c41;border-radius:9px;color:inherit;padding:12px;font:inherit}.settings-page .primary{width:auto}.settings-page output{display:block;color:#cadaba;margin-top:8px}.photo-row{display:flex;align-items:center;gap:14px}.photo-picker,.quiet,.action{border-radius:8px;border:1px solid #495041;padding:8px 12px;color:#e0e6d9;background:#22261e;cursor:pointer;font:inherit;text-decoration:none}.photo-picker:focus-within{outline:2px solid #d2fc58}.photo-picker input{position:absolute;width:1px;opacity:0}.action{display:inline-block;margin-top:18px}.settings-page p,.settings-page #rates{color:#b7c0ad}
.tf-player{background:#090b08;border-radius:12px;overflow:hidden;position:relative;line-height:1}.tf-player video{display:block;width:100%;object-fit:contain}.tf-player:fullscreen{display:flex;flex-direction:column;justify-content:center}.tf-player:fullscreen video{flex:1;min-height:0;max-height:none!important}
.play-controls{display:flex;align-items:center;gap:8px;padding:7px 10px;background:#181b16;color:#e3e7dd}.play-controls button{display:grid;place-items:center;width:30px;height:30px;flex:none;padding:5px;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer}.play-controls button:hover{background:#353b2e}.play-controls svg{width:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.play-controls button[aria-label=Play] svg{fill:currentColor}.play-controls span{font:500 11px "DM Sans",sans-serif;white-space:nowrap;font-variant-numeric:tabular-nums}.play-controls input{appearance:none;min-width:24px;flex:1;height:4px;padding:0;border:0;border-radius:9px;background:linear-gradient(to right,#cffa60 var(--played),#444b3e var(--played));cursor:pointer}.play-controls input::-webkit-slider-thumb{appearance:none;width:10px;height:10px;background:#d2fc58;border-radius:50%}#result[data-pending] .play-controls{display:none}
.library article{padding:10px 10px 16px}.library article h2,.library article>p,.library article>a{margin-left:8px}.library video{border-radius:0}.library article h2{margin-bottom:4px}.library article>p{margin-top:0;font-size:13px}
@media(max-width:550px){.topbar{gap:4px;padding:0 8px}.topbar .brand{font-size:19px}.topbar .brand::before{width:14px;margin-right:3px}.topbar nav{gap:0}.topbar .avatar{width:30px;height:30px}}
#frame .play-controls{height:42px;box-sizing:border-box}#frame #points{bottom:42px}
html[data-view="public"] main>section{background:radial-gradient(ellipse at 75% 0%,#20241c 0,transparent 58%),#121410}
html[data-view="public"] .settings>h1{font-weight:640;letter-spacing:-.06em}
html[data-view="public"] .bar h2{font-weight:590;letter-spacing:-.025em}
html[data-view="public"] .monitor{border-radius:16px;border-color:#404638;background:radial-gradient(ellipse at center,#252a20,#171a15)}
.pricing #rates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pricing #rates small{grid-column:1/-1}.rate-tile{background:#24291e;padding:22px;border-radius:12px}.rate-tile strong,.rate-tile span{display:block}.rate-tile strong{font-size:clamp(23px,4vw,36px);color:#eaf7d7;letter-spacing:-.06em}.pricing select{width:fit-content;padding:8px 14px;border:1px solid #49513e;border-radius:8px;background:#1a1e17;color:inherit;font:inherit}

.preferences{max-width:1080px;margin:0 auto;padding:clamp(36px,6vw,80px) 28px;display:grid;grid-template-columns:215px minmax(0,1fr);gap:clamp(36px,7vw,100px)}
.pref-nav h1{font-size:21px;font-weight:650;letter-spacing:-.045em;margin:4px 0 24px}
.pref-nav nav{display:grid;gap:3px}
.pref-nav a,.pref-nav button{display:block;color:#aeb3a8;text-decoration:none;padding:9px 13px;border-radius:6px;font:500 14px/1.45 "DM Sans",sans-serif}
.pref-nav a:hover,.pref-nav button:hover{color:white;background:#20231e}
.pref-nav a[aria-current]{background:#272c23;color:#f2f7e9;box-shadow:inset 2px 0 #d2fc58}
.pref-nav button{margin-top:24px;border:0;background:transparent;cursor:pointer}
.pref-content{min-width:0}.pref-content h2{margin:0 0 24px;font-size:32px;line-height:1.15;letter-spacing:-.055em;font-weight:600}
.pref-content h3,.pref-row>label{margin:0;font:550 14px/1.5 "DM Sans",sans-serif}
.pref-row{border-top:1px solid #34382f;padding:22px 0;display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,2fr);align-items:center;gap:16px}
.pref-row>input{width:100%;box-sizing:border-box;font:inherit;font-size:14px;color:#eaede6;background:#1a1d18;border:1px solid #41463b;border-radius:7px;padding:10px 12px}
.pref-row>input:focus-visible{outline:2px solid #a7c783;outline-offset:2px}
.pref-row #loginId{color:#adb3a6;overflow-wrap:anywhere;font-size:14px}
.preferences .photo-row{gap:12px;flex-wrap:wrap}.preferences .photo-picker,.preferences .primary{font:600 13px/1.4 "DM Sans",sans-serif;padding:9px 14px;border-radius:7px}
.pref-actions{border-top:1px solid #34382f;padding-top:18px;display:flex;align-items:center;justify-content:flex-end;gap:15px}
.pref-actions output,.text-btn{color:#b6bcae;font:500 13px/1.45 "DM Sans",sans-serif}.text-btn{background:transparent;border:none;cursor:pointer}
.pref-actions .primary{width:auto}.preferences [hidden]{display:none}
.pricing section{border:0;border-top:1px solid #373c32;border-radius:0;padding:24px 0;background:transparent}
.pricing #rates{display:block}.pricing .rate-tile{border-bottom:1px solid #373c32;background:transparent;border-radius:0;padding:17px 0;display:flex;align-items:center;justify-content:space-between}.pricing .rate-tile strong{font-size:20px;letter-spacing:-.03em}.pricing #rates small{display:block;margin-top:12px}
@media(max-width:700px){.preferences{display:block;padding:28px 18px}.pref-nav{position:relative;margin:0 0 28px}.pref-nav h1{margin-top:0;margin-bottom:16px}.pref-nav nav{display:flex;flex-wrap:wrap}.pref-nav button{position:absolute;right:0;top:-7px;margin:0}.pref-content h2{font-size:26px}.pref-row{grid-template-columns:1fr;gap:9px;padding:16px 0}.pref-nav a[aria-current]{box-shadow:inset 0 -2px #d2fc58}}

.price-guide{max-width:980px;margin:auto;padding:clamp(42px,6vw,88px) clamp(18px,4vw,48px) 60px}
.price-intro{text-align:center}.price-intro h1{font-size:clamp(42px,6vw,82px);font-weight:550;letter-spacing:-.075em;margin:0}.price-intro p{max-width:490px;margin:16px auto 0;color:#b9c0b3;font-size:17px}
.duration-strip{display:flex;align-items:center;gap:18px;max-width:440px;margin:36px auto 24px;padding:12px 18px;border:1px solid #3b4035;border-radius:12px;font-size:14px}.duration-strip input{min-width:40px;flex:1;accent-color:#cdf957}.duration-strip output{font-variant-numeric:tabular-nums;min-width:75px;text-align:right}
.format-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.format-card{padding:clamp(20px,3vw,34px);background:#1b1e19;border:1px solid #383e32;border-radius:18px}.format-card.full-hd{background:linear-gradient(120deg,#2c3621,#20251b 72%);border-color:#637748}
.format-card header>span{font-size:14px;color:#bdc5b6}.format-card h2{margin:8px 0 4px;font-size:clamp(44px,6vw,72px);line-height:1;letter-spacing:-.07em;font-weight:550}.format-card header p,.format-card dt,.price-status{color:#b4bdac}.format-card header p{margin:12px 0 28px}.format-card dl{border-top:1px solid #41483b;padding-top:12px}.format-card dl div{display:flex;justify-content:space-between;font-size:14px;margin:10px 0}.format-card dd{margin:0}.format-card a{display:flex;justify-content:space-between;text-decoration:none;background:#373d31;border-radius:8px;padding:11px 15px;color:white;font-weight:600}.full-hd a{background:#d2fc58;color:#1b220f}.price-status{text-align:center;font-size:13px}
.pricing-questions{margin-top:48px;display:grid;grid-template-columns:1fr 1.4fr;gap:24px}.pricing-questions h2{margin:0;font-size:25px;letter-spacing:-.045em}.pricing-questions details{border-top:1px solid #3b4035;padding:14px 0}.pricing-questions summary{cursor:pointer;font-weight:550}.pricing-questions p{color:#bcc4b5;font-size:14px}
@media(max-width:640px){.format-grid,.pricing-questions{grid-template-columns:1fr}.price-intro{text-align:left}.price-intro p{margin-left:0}.duration-strip{margin:24px 0 16px}.format-card header p{margin-bottom:18px}}

/* Generation library */
.collection-page{background:#101110;color:#f5f5ee}
.collection{max-width:1340px;margin:auto;padding:clamp(36px,6vw,86px) clamp(18px,5.4vw,82px) 80px}
.collection [hidden]{display:none}
.collection-heading,.collection-tools,.library-viewer header,.library-viewer footer{display:flex;align-items:center;justify-content:space-between;gap:14px}
.collection-heading{border-bottom:1px solid #353631;padding-bottom:24px}
.collection-heading h1{display:flex;align-items:flex-start;gap:10px;font-size:clamp(37px,5vw,70px);font-weight:550;line-height:1;letter-spacing:-.068em;margin:0}
.collection-heading h1 span{margin-top:5px;border:1px solid #484940;color:#c0c2b9;border-radius:20px;padding:4px 8px;font-size:12px;letter-spacing:0;font-variant-numeric:tabular-nums}
.new-render,.library-empty a{background:#d2fc58;color:#1c2111;border-radius:999px;text-decoration:none;padding:11px 17px;font-size:14px;font-weight:650;white-space:nowrap}
.collection-tools{padding:20px 0}
.library-search,.collection-tools select{box-sizing:border-box;display:flex;align-items:center;gap:8px;color:#d4d6cf;background:#1a1b19;border:1px solid #393b35;border-radius:9px;padding:9px 12px;font:inherit;font-size:14px}
.library-search input{width:100%;min-width:0;background:transparent;color:inherit;font:inherit;border:0;outline:0}.library-search:focus-within{outline:2px solid #c8ee69}
.collection #generations{grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:26px 18px}
.collection-thumb{box-sizing:border-box;width:100%;position:relative;display:grid;place-items:center;overflow:hidden;padding:0;aspect-ratio:16/10;border-radius:12px;border:1px solid #34362e;background:radial-gradient(ellipse at 70% 0%,#343a2c,#191b18 75%);color:white;cursor:pointer;text-decoration:none}
.collection-thumb video{position:absolute;width:100%;height:100%;object-fit:cover}
.library-play{position:absolute;bottom:12px;left:12px;border:1px solid #ffffff70;border-radius:50%;background:#101110b3;width:34px;height:34px;display:grid;place-items:center;padding-left:2px;box-sizing:border-box;font-size:13px}
.collection-thumb:hover .library-play{background:#d2fc58;color:#171c10}
.library-state{font-size:13px;color:#d4d8c8}.collection article h2{margin:12px 0 3px;font-size:17px;font-weight:550;overflow-wrap:anywhere;letter-spacing:-.02em}.collection article h2 a,.library-viewer a{color:inherit;text-decoration:none}.collection article h2 a:hover,.library-viewer a:hover{text-decoration:underline}
.collection article p,.collection #notice{color:#a7aaa0;font-size:13px;margin:0}.collection #notice:not(:empty){margin:24px 0}
.library-empty{text-align:center;padding:clamp(40px,7vw,100px) 10px}.library-stills{display:flex;justify-content:center;align-items:center;height:clamp(110px,17vw,195px);isolation:isolate;margin:0 auto 30px}
.library-stills img{width:min(27%,205px);aspect-ratio:1.55;border:4px solid #30322c;border-radius:9px;object-fit:cover;box-shadow:0 12px 26px #0005}.library-stills img:first-child{transform:translateX(17%) rotate(-12deg)}.library-stills img:last-child{transform:translateX(-17%) rotate(12deg)}.library-stills img:nth-child(2){z-index:1;transform:translateY(-8%);width:min(31%,235px)}
.library-empty h2{font-size:clamp(24px,3vw,38px);letter-spacing:-.055em;font-weight:550;margin:12px 0}.library-empty p{color:#b4b6ad;margin:0 0 24px}.library-empty a{display:inline-flex;gap:15px;background:#282c22;color:#e3f9aa}
/* Controls share one height and corner radius across the collection. */
.collection-page .lib-icon{display:block;width:17px;height:17px;flex:none}
.new-render,.library-viewer #downloadVideo{
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:42px;padding:0 16px;border:1px solid transparent;border-radius:8px;
  font:650 14px/1 "DM Sans",sans-serif;letter-spacing:-.02em;text-decoration:none;
}
.new-render{background:#d2fc58;color:#1b2010}
.new-render:hover{background:#e1ff88}
.library-search{width:min(360px,100%);height:42px;gap:11px;padding:0 13px;background:#191a18;border-color:#393b34;color:#989c91;cursor:text}
.library-search input{height:100%;color:#f3f4ed;font-size:14px}
.library-search input::placeholder{color:#a7ab9f}
.library-search:focus-within{border-color:#a1b47a;outline:2px solid #d2fc5826;outline-offset:1px}
.collection-tools select{height:42px}
.library-viewer{
  box-sizing:border-box;width:min(1240px,96vw);max-width:96vw;max-height:96dvh;
  overflow:auto;background:#181917;color:#f0f3ea;border:1px solid #42443c;
  border-radius:14px;padding:0;box-shadow:0 28px 100px #0008;
}
.library-viewer::backdrop{background:#080908ed}
.library-viewer header,.library-viewer footer{padding:12px 20px}
.library-viewer h2{min-width:0;font:550 18px/1.3 "DM Sans",sans-serif;letter-spacing:-.032em;margin:0;overflow-wrap:anywhere}
.library-viewer header button{display:grid;place-items:center;flex:none;width:36px;height:36px;border:0;border-radius:7px;background:transparent;color:#b8bbb2;cursor:pointer}
.library-viewer header button:hover{background:#30322e;color:white}
.library-viewer .tf-player{border-radius:0;background:#050505}
.library-viewer video{height:min(64vw,calc(92dvh - 180px),720px);object-fit:contain}
.library-viewer .tf-player:fullscreen video{height:100%}
.library-viewer .play-controls{padding:8px 14px;background:#111210}
.library-viewer #openRender{display:inline-flex;align-items:center;gap:6px;color:#c5c8bf;font-size:14px}
.library-viewer #openRender .lib-icon{width:14px;height:14px}
.library-viewer #downloadVideo{color:#1d2119;background:#f0f3e8}
.library-viewer #downloadVideo:hover{background:#d2fc58}
.collection-page :is(a,button,select):focus-visible{outline:2px solid #d2fc58;outline-offset:2px}
@media(max-width:550px){
  .collection-heading{gap:6px}.new-render{min-height:40px;padding:0 11px;font-size:13px;gap:5px}
  .library-search{min-width:0}.collection-tools select{max-width:45%}
  .library-viewer{width:98vw;max-width:98vw;border-radius:10px}
  .library-viewer header,.library-viewer footer{padding:10px 12px}
  .library-viewer video{height:auto;max-height:calc(94dvh - 170px);min-height:160px}
}
.library-caption{display:flex;align-items:baseline;gap:12px;justify-content:space-between}
.library-caption button,.rename-dialog button{font:inherit;cursor:pointer}
.library-caption button{border:0;background:transparent;color:#a6ac9c;font-size:12px;padding:6px 0}
.library-caption button:hover{color:#d2fc58}
.rename-dialog{width:min(360px,85vw);box-sizing:border-box;padding:22px;border:1px solid #44473e;border-radius:12px;background:#1a1b18;color:#f5f5ee}
.rename-dialog::backdrop{background:#080908ce}.rename-dialog h2{margin:0 0 18px;font-size:21px}
.rename-dialog label{display:block;font-size:13px;margin-bottom:6px}
.rename-dialog input{box-sizing:border-box;width:100%;font:inherit;color:inherit;background:#101110;border:1px solid #52564b;border-radius:7px;padding:10px}
.rename-dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.rename-dialog button{color:inherit;background:transparent;border:0;border-radius:7px;padding:9px 13px}.rename-dialog button[type=submit]{background:#d2fc58;color:#1b2010}
.rename-dialog p{font-size:13px}.rename-dialog p:empty{display:none}

.topbar nav[aria-label="Workspace"]{align-self:stretch;align-items:stretch;gap:clamp(12px,2vw,28px)}
.topbar nav[aria-label="Workspace"] a{display:inline-flex;align-items:center;position:relative;padding:0 2px;color:#a6aaa2;background:transparent;border-radius:0;font:550 14px/1 "DM Sans",sans-serif}
.topbar nav[aria-label="Workspace"] a:hover,.topbar nav[aria-label="Workspace"] a[aria-current="page"]{color:#f6f7f2}
.topbar nav[aria-label="Workspace"] a[aria-current="page"]::after{content:"";position:absolute;inset:auto 2px 0;height:2px;background:#d2fc58}
.topbar nav[aria-label="Workspace"] a:focus-visible{outline:2px solid #d2fc58;outline-offset:-2px}
.recast-heading{display:flex;align-items:center;gap:8px}
.recast-heading #editRecastName{display:grid;place-items:center;width:26px;height:26px;padding:4px;background:transparent;border:0;border-radius:5px;color:#a9ada2;cursor:pointer}
.recast-heading #editRecastName:hover{background:#292c26;color:white}
.recast-heading svg{width:15px;height:15px}
@media(max-width:550px){.topbar nav[aria-label="Workspace"]{margin-left:10px;gap:12px}.topbar nav[aria-label="Workspace"] a{font-size:13px}}

.delete-setting{border-top:1px solid #393b35;margin-top:32px;padding-top:24px}
.delete-setting p,#deleteDialog p{max-width:48ch;color:#b5b8af;line-height:1.5}
.delete-link,.delete-actions button{border:1px solid #55594e;background:transparent;color:#eee;border-radius:8px;padding:10px 15px;cursor:pointer;font:inherit}
.delete-link{color:#ffb1a8}
#deleteDialog{box-sizing:border-box;width:min(420px,calc(100% - 32px));color:#f3f4ef;background:#191b18;border:1px solid #41463b;border-radius:14px;padding:24px}
#deleteDialog::backdrop{background:#000a}
#deleteDialog h2{margin:0}#deleteDialog label,#deleteDialog output{display:block;margin:14px 0 6px}
#deleteDialog input{box-sizing:border-box;width:100%;padding:10px;border:1px solid #52564d;border-radius:7px;background:#111310;color:#fff}
#deleteDialog output{color:#ffb1a8}
.delete-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.delete-actions .delete-confirm{background:#942f28;border-color:#a03c32;color:#fff}
#deleteDialog [hidden]{display:none}
