.v2-type-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;border-radius:16px;background:#09080c;margin-bottom:18px}.v2-type-tabs button{padding:14px;border:0;border-radius:12px;background:none;color:#a39aa9;font:inherit;font-weight:700;letter-spacing:.08em;cursor:pointer}.v2-type-tabs button[aria-selected=true]{background:#ff8fc8;color:#1c1017}.v2-pick{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:16px 18px;border:1px solid #ffffff24;border-radius:16px;background:#ffffff04;color:inherit;font:inherit;text-align:left;cursor:pointer}.v2-pick small{display:block;color:#a69daa;margin-bottom:5px}.v2-pick:disabled{opacity:.6;cursor:default}.v2-setting{margin-top:20px}.v2-setting[hidden]{display:none}.v2-formats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.v2-format{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:86px;border:1px solid #ffffff1c;border-radius:12px;color:#b5acba;background:#ffffff03;font:inherit;font-size:14px;cursor:pointer}.v2-shape{display:block;aspect-ratio:var(--shape-ratio);height:30px;max-width:46px;border:1.5px solid currentColor;border-radius:4px}.v2-format[aria-pressed=true],.v2-durations button[aria-pressed=true],.v2-filters button[aria-pressed=true]{border-color:#ff8fc8;color:#ff8fc8;background:#ff8fc810}.v2-durations{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.v2-showcase{margin:0 auto 48px;width:min(1160px,calc(100% - 48px))}.v2-muted{font-size:14px;color:#a198a5}#showcase-track{position:relative;display:flex;gap:14px;overflow-x:auto;padding:4px 0 14px;scrollbar-width:none}#showcase-track::-webkit-scrollbar{display:none}.v2-showcase-card{flex:0 0 clamp(190px,22vw,245px);height:310px;overflow:hidden;background:#151219;border:1px solid #ffffff15;border-radius:20px}.v2-showcase-card video{width:100%;height:100%;object-fit:cover}#v2-picker{width:min(800px,calc(100vw - 28px));max-height:88dvh;overflow:auto}.v2-filters{display:flex;gap:8px;overflow-x:auto;margin:16px 0}#v2-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.v2-mode{display:flex;flex-direction:column;gap:8px;background:#ffffff04;border:1px solid #ffffff20;border-radius:14px;padding:10px;color:inherit;text-align:left;font:inherit;cursor:pointer;overflow:hidden}.v2-mode img,.v2-mode video{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:8px}.v2-mode small{color:#a79cab}.v2-manager{padding:24px;margin-bottom:24px}.v2-manager-grid{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;margin-top:24px}.v2-manager textarea{width:100%;padding:12px;color:inherit;background:#0c0a10;border:1px solid #ffffff25;border-radius:12px;font:inherit;resize:vertical}.v2-manager [hidden]{display:none}.personal-work video{width:100%;aspect-ratio:4/5;object-fit:cover;background:#15121a}#generation-history .personal-work video{max-height:150px}@media(max-width:700px){.v2-showcase{width:calc(100% - 40px);margin-bottom:30px}.v2-showcase .section-title{display:block}.v2-showcase-card{flex-basis:calc(100% - 24px);height:300px}.v2-manager-grid{grid-template-columns:1fr}.v2-manager{padding:18px}#generation-history .personal-work video{max-height:120px}}

.v2-admin-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#0b090e;border:1px solid #ffffff15;border-radius:18px;padding:6px;margin:22px 0 28px}.v2-admin-tabs[hidden]{display:none}.v2-admin-tabs button,.v2-admin-kinds button{font:inherit;border:0;cursor:pointer;background:transparent;color:#aaa1af;border-radius:12px;padding:14px 16px}.v2-admin-tabs button[aria-selected=true],.v2-admin-kinds button[aria-selected=true]{background:#ff8fc8;color:#1c1017}.v2-admin-kinds{display:grid;grid-template-columns:1fr 1fr;gap:6px;max-width:420px;padding:5px;border-radius:15px;background:#0c0a10;margin:22px 0}.v2-management-heading,.v2-category-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.v2-management-heading h2,.v2-category-heading h3{margin:0}.v2-category-manager{background:#0c0a1070;border:1px solid #ffffff18;border-radius:18px;padding:20px;margin-bottom:26px}.v2-category-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #ffffff10}.v2-category-row:last-child{border-bottom:0}.v2-category-row small,.v2-admin-mode-row small{display:block;color:#a79cab;font-size:14px;margin-top:5px}.v2-category-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.v2-category-actions button{font-size:14px}.v2-category-manager form{border-top:1px solid #ffffff18;margin-top:16px;padding-top:18px}.v2-admin-mode-row{text-align:left}.v2-section-pick{display:flex;align-items:center;gap:12px;padding:13px 16px;margin-bottom:12px;width:100%;border-radius:14px;border:1px solid #ffffff1c;background:#ffffff04;color:inherit;font:inherit;cursor:pointer}.v2-section-pick>span:first-child{color:#a79cab}.v2-section-pick strong{margin-left:auto}#v2-section-picker{width:min(520px,calc(100vw - 28px));max-height:85dvh;overflow:auto}.v2-section-options{display:grid;gap:10px;margin-top:18px}.v2-section-choice{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #ffffff20;border-radius:14px;background:#ffffff04;padding:16px;color:inherit;font:inherit;text-align:left;cursor:pointer}.v2-section-choice small{color:#a79cab;font-size:14px}.v2-section-choice[aria-pressed=true]{border-color:#ff8fc8;color:#ff8fc8}body[data-admin-panel=catalog] #period{display:none!important}.v2-manager[hidden],#admin-statistics-panel[hidden]{display:none!important}@media(max-width:700px){.v2-management-heading,.v2-category-heading{align-items:flex-start;flex-direction:column}.v2-category-row{align-items:flex-start;flex-direction:column}.v2-category-manager{padding:16px}.v2-admin-tabs button{font-size:14px;padding:12px 6px}.v2-section-pick{font-size:14px}.v2-manager-grid{gap:18px}}

/* Categories only appear inside the mode picker after the owner adds them. */
.v2-filters[hidden]{display:none}.v2-filters{gap:22px;border-bottom:1px solid #ffffff18;padding-bottom:0}.v2-filters .outline{border:0;border-bottom:2px solid transparent;border-radius:0;padding:11px 2px;background:none;color:#a79cab;white-space:nowrap;font-size:15px}.v2-filters .outline[aria-pressed=true]{border-bottom-color:#ff8fc8;color:#ff8fc8;background:none}

#v2-auto-format[hidden]{display:none}

.file-error:empty{display:none}.file-error{margin:.45rem 0;color:#ffb0cf}

.v2-duration-heading{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px}
.v2-duration-heading output{color:#ffacd5;font-variant-numeric:tabular-nums}
.v2-duration-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:12px;align-items:center}
.v2-duration-controls input{width:100%;min-width:0;accent-color:#ff8fc8}
.v2-duration-controls button{width:44px;min-height:44px;padding:0;font-size:1.25rem}


#topup[data-studio-order] { max-width: 430px; }

#studio .editor { min-width: 0; }
#studio .workspace:has(#v2-picker:not([hidden])) { align-items: start; }
#studio #v2-form-fields { display: contents; }
#studio #v2-picker[hidden], #studio #v2-form-fields[hidden], #studio .v2-gallery-action[hidden] { display: none; }
#studio #v2-picker { width: auto; max-height: none; overflow: visible; container-type: inline-size; }
.v2-gallery-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 12px; }
.v2-gallery-heading h3 { margin: 0; font-size: 1.25rem; }
.v2-mode-count { color: #b5a9b9; font-size: .8125rem; font-variant-numeric: tabular-nums; }
#studio .v2-filters { flex-wrap: wrap; gap: 7px; border: 0; margin: 0 0 12px; overflow: visible; }
#studio .v2-filters button { padding: 8px 12px; min-height: 44px; border: 1px solid #ffffff24; border-radius: 10px; background: #ffffff07; color: #c8becb; white-space: normal; overflow-wrap: anywhere; text-align: start; font-size: .875rem; }
#studio .v2-filters button[aria-pressed="true"] { border-color: #ff8fc8; background: #ff8fc818; color: #ffacd5; }
#studio #v2-modes { gap: 8px; }
@container (min-width: 420px) {
  #studio #v2-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (min-width: 640px) {
  #studio #v2-modes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
#studio .v2-mode { min-width: 0; padding: 6px 6px 10px; gap: 7px; border-radius: 13px; }
#studio .v2-mode[aria-pressed="true"] { border-color: #ff8fc8; background: #ff8fc819; }
#studio .v2-mode strong { padding-inline: 3px; font-size: .875rem; line-height: 1.25; overflow-wrap: anywhere; }
.v2-gallery-preview { display: block; position: relative; width: 100%; aspect-ratio: 3/4; background: #251e29; border-radius: 8px; overflow: hidden; }
#studio .v2-gallery-preview img, #studio .v2-gallery-preview video { display: block; width: 100%; height: 100%; pointer-events: none; }
.v2-gallery-tick { display: none; position: absolute; top: 6px; right: 6px; width: 25px; height: 25px; border-radius: 50%; background: #ff8fc8; color: #21101a; font-weight: 700; place-items: center; }
.v2-mode[aria-pressed="true"] .v2-gallery-tick { display: grid; }
#studio .v2-gallery-action { position: sticky; z-index: 2; bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; padding: 10px; background: #1c1720; border: 1px solid #ffffff24; border-radius: 12px; }
.v2-gallery-action span { display: grid; min-width: 0; gap: 2px; }
.v2-gallery-action small { color: #b5a9b9; }
.v2-gallery-action strong { overflow-wrap: anywhere; font-size: .875rem; }
.v2-gallery-action button { min-height: 44px; padding: 8px 13px; white-space: nowrap; }
#v2-picker-title, #drop { scroll-margin-block: 90px; }
@media (max-width: 760px) {
  #studio .v2-gallery-action { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

.home-title,.home-workspace,#studio.studio{width:min(1160px,calc(100% - 40px));margin-inline:auto}
.home-title{text-align:center;font:650 clamp(32px,5vw,72px)/1.07 system-ui,sans-serif;letter-spacing:-.06em;margin-block:32px 22px}.home-title em{color:#ffb1d5}
.home-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,300px);align-items:start;gap:clamp(16px,3vw,40px);margin-bottom:40px}
.home-create h2{text-align:center;text-transform:none;font-size:clamp(27px,4vw,48px);letter-spacing:-.05em;margin:0 0 15px}
.entry-cover{position:relative;isolation:isolate;width:100%;display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:12px;padding:clamp(16px,2.4vw,32px);border:1px solid #79586a;border-radius:12px;overflow:hidden;background:#261a23;color:white;text-decoration:none}
.entry-video{aspect-ratio:3/4}.entry-photo{aspect-ratio:1}.entry-cover img,.entry-cover video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 25%;z-index:-2}.entry-cover:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(12deg,#190f19d9,transparent 58%)}.entry-cover b{font:700 clamp(34px,4.2vw,58px)/1 system-ui,sans-serif;letter-spacing:-.06em}.entry-cover i{width:42px;height:42px;border:1px solid #fffa;border-radius:50%;display:grid;place-items:center;font:23px Arial}
.home-perks{padding:20px;background:#231c22;border:1px solid #4d3f48;border-radius:16px;margin-top:55px}.home-perks h2{font-size:21px}.home-perks article{padding:12px 0;border-top:1px solid #ffffff20}.home-perks article:first-of-type{border:0}.home-perks h3{margin:0;font-size:16px}.home-perks p,.home-perks small{display:block;color:#cebfca;font-size:14px;margin:4px 0 10px}.home-perks button{width:100%}.home-perks article:first-of-type button{background:#ffb1d5;color:#281522}
html:not(.room) #studio{display:none}.room .home-title,.room #examples,.room .home-workspace,.room .promo{display:none}
#studio .workspace{display:flex;flex-direction:column;align-items:stretch;gap:16px}#studio .workspace>*{width:100%;min-width:0}#studio .editor{padding:clamp(15px,2vw,28px)}#studio #create{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);column-gap:24px;row-gap:10px}#studio .v2-type-tabs{grid-column:1/-1;margin:0 0 5px}#studio #v2-form-fields{display:contents}#studio .source-pane{grid-column:1;grid-row:2/span 14}#studio #drop{min-height:300px;height:100%;max-height:430px;background-color:#211b23;background-image:radial-gradient(#483845 1px,transparent 1px);background-size:15px 15px}#studio #v2-form-fields>:not(.source-pane),#studio #create>.consent,#studio #create>.create-action,#studio #create>#form-status{grid-column:2}#studio #v2-picker{width:100%;box-sizing:border-box;align-self:stretch;padding:18px;border:1px solid #ffffff25;border-radius:16px;background:#1a171c}#studio #v2-duration{appearance:auto;-webkit-appearance:auto;display:block;min-height:44px;accent-color:#ffaed5}#studio .v2-duration-controls{display:block}#studio #v2-duration-up,#studio #v2-duration-down{display:none}#create,#choose{scroll-margin:80px}
@media(max-width:700px){.home-workspace{grid-template-columns:1fr}.home-perks{margin-top:0}.home-title,.home-workspace,#studio.studio{width:calc(100% - 28px)}#studio #create{display:flex;flex-direction:column}#studio #drop{min-height:215px}#studio .editor,#studio #v2-picker{padding:14px}.home-title{font-size:32px}}

#studio .mode-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:10px 16px;border:0;border-radius:12px;background:#ffb1d5;color:#2a1420;font:inherit;font-weight:700;text-align:left;cursor:pointer}
.mode-choice #v2-selected{min-width:0;overflow-wrap:anywhere}
.mode-choice:focus-visible{outline:2px solid white;outline-offset:3px}

@media (min-width: 900px) {
  .home-workspace {
    grid-template-columns: minmax(0, 784px) clamp(210px, 22vw, 290px);
    justify-content: center;
    gap: clamp(20px, 3vw, 40px);
  }
  .home-create {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 4fr);
    gap: 14px;
    align-items: start;
  }
  .home-create h2 {
    grid-column: 1 / -1;
    margin: 0;
    font-size: clamp(30px, 2.8vw, 38px);
    line-height: 1.15;
    text-align: left;
  }
  .home-create .entry-cover { margin: 0; padding: 16px; }
  .home-create .entry-cover b { font-size: 32px; }
  .home-create .entry-cover i { width: 32px; height: 32px; font-size: 18px; }
  .home-perks { margin-top: calc(clamp(30px, 2.8vw, 38px) * 1.15 + 14px); }
}

/* Saved example in the mode editor. */
.v2-current-example {
    margin: 0;
    padding: 12px;
    border: 1px solid #ffffff24;
    border-radius: 12px;
    background: #ffffff06;
}
.v2-current-example-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px 12px;
    margin-bottom: 10px;
}
.v2-current-example-heading a {
    color: #ffc0d3;
    font-size: .875rem;
}
#v2-current-example-media :is(img, video) {
    display: block;
    max-width: 100%;
    max-height: 220px;
    border-radius: 8px;
    object-fit: contain;
}
