:root{color-scheme:dark;--tw-bg:#0a0a0b;--tw-panel:#151517;--tw-raised:#1c1c1f;--tw-line:#303033;--tw-text:#f8f4ef;--tw-muted:#ada8a3;--tw-orange:#ff9b43;--tw-red:#ffa3a3;--tw-green:#91dfb1;--tw-radius:20px;font:16px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--tw-text);background:var(--tw-bg)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--tw-orange);outline-offset:3px}input,select,textarea{width:100%;color:var(--tw-text);background:#0e0e10;border:1px solid var(--tw-line);border-radius:12px;padding:12px 14px;min-height:46px}input[type=checkbox]{width:20px;min-height:20px;accent-color:var(--tw-orange)}input[type=file]{padding:11px;font-size:.875rem}textarea{min-height:112px;resize:vertical}input:disabled,select:disabled{opacity:.55}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.85rem,4vw,2.8rem);line-height:1.12;letter-spacing:-.04em}h2{font-size:1.35rem;line-height:1.3}h3{font-size:1.05rem}img,video{max-width:100%}[hidden]{display:none!important}.tw-topbar{min-height:80px;border-bottom:1px solid var(--tw-line);display:flex;align-items:center;gap:38px;padding:16px max(24px,calc((100vw - 1320px)/2));background:#0e0e10}.tw-brand{font-size:1.15rem;font-weight:850;display:flex;gap:10px;align-items:center;letter-spacing:.1em}.tw-mark{height:34px;width:34px;border-radius:11px;display:grid;place-items:center;color:#191009;background:var(--tw-orange);font-weight:900;letter-spacing:0}.tw-topbar nav{display:flex;gap:24px;align-items:center;flex:1}.tw-topbar nav a{font-size:.9375rem;color:var(--tw-muted)}.tw-topbar nav a[aria-current=page]{color:var(--tw-text)}.tw-main{max-width:1320px;padding:38px 24px 80px;margin:auto}.tw-heading{display:flex;gap:24px;align-items:center;justify-content:space-between;margin-bottom:30px}.tw-heading p{color:var(--tw-muted);margin-top:10px;max-width:720px}.tw-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:11px 18px;border-radius:12px;border:1px solid transparent;background:var(--tw-orange);color:#1c1006;font-weight:700;line-height:1.25;white-space:normal;text-align:center}.tw-button:hover{text-decoration:none;filter:brightness(1.06)}.tw-quiet{background:var(--tw-raised);border-color:var(--tw-line);color:var(--tw-text)}.tw-danger{background:#361c22;border-color:#73414a;color:#ffc6ce}.tw-small{font-size:.875rem;min-height:36px;padding:8px 11px}.tw-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.tw-filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:24px}.tw-filters .tw-search{min-width:200px;flex:1;max-width:360px}.tw-filters select{width:auto;min-width:150px}.tw-tabs{display:flex;gap:8px;flex-wrap:wrap}.tw-tab{border:1px solid var(--tw-line);background:transparent;color:var(--tw-muted);padding:9px 15px;border-radius:999px;font-size:.9375rem}.tw-tab[aria-pressed=true],.tw-tab[aria-current=page]{background:var(--tw-text);border-color:var(--tw-text);color:#161617}.tw-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.tw-card{background:var(--tw-panel);border:1px solid var(--tw-line);border-radius:var(--tw-radius);overflow:hidden;min-width:0}.tw-card-media{display:block;position:relative;aspect-ratio:4/5;background:#202023;overflow:hidden}.tw-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .25s}.tw-card-media:hover img{transform:scale(1.025)}.tw-media-empty{height:100%;display:grid;place-items:center;padding:20px;text-align:center;color:var(--tw-muted)}.tw-badge{display:inline-flex;padding:5px 9px;font-size:.8125rem;line-height:1.35;border-radius:8px;background:#29292e;color:var(--tw-text)}.tw-card-media .tw-badge{position:absolute;top:12px;left:12px;background:#111111d9}.tw-card-body{padding:17px;display:grid;gap:10px}.tw-card h3{overflow-wrap:anywhere;line-height:1.35}.tw-card-author{color:var(--tw-muted);font-size:.875rem}.tw-card-bottom{display:flex;gap:10px;justify-content:space-between;align-items:center;padding-top:7px;border-top:1px solid var(--tw-line);font-size:.875rem}.tw-price{font-weight:750;color:#ffc691}.tw-muted{color:var(--tw-muted)}.tw-text-small{font-size:.875rem}.tw-empty{padding:56px 24px;text-align:center;border:1px dashed var(--tw-line);border-radius:var(--tw-radius);color:var(--tw-muted)}.tw-empty h2{color:var(--tw-text);margin-bottom:10px}.tw-empty .tw-actions{justify-content:center;margin-top:20px}.tw-panel{border:1px solid var(--tw-line);background:var(--tw-panel);border-radius:var(--tw-radius);padding:24px}.tw-stack{display:grid;gap:20px}.tw-two{display:grid;grid-template-columns:1fr 1fr;gap:20px}.tw-detail{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:32px;align-items:start}.tw-preview{border-radius:var(--tw-radius);background:#111114;overflow:hidden;min-height:250px;display:flex;align-items:center;justify-content:center}.tw-preview img,.tw-preview video{max-height:76vh;width:100%;object-fit:contain;display:block}.tw-eyebrow{font-size:.8125rem;font-weight:750;color:var(--tw-orange);letter-spacing:.08em;text-transform:uppercase}.tw-detail-copy{display:grid;gap:20px}.tw-description{white-space:pre-line;overflow-wrap:anywhere;color:#cdc7c1}.tw-numbers{display:flex;gap:18px;flex-wrap:wrap;color:var(--tw-muted);font-size:.9375rem}.tw-field{display:grid;gap:7px;align-content:start}.tw-field>span,.tw-field>label{font-size:.9375rem;font-weight:650}.tw-field small{font-size:.8125rem;color:var(--tw-muted);line-height:1.5}.tw-checkbox{display:flex;align-items:center;gap:10px}.tw-checkbox input{flex-shrink:0}.tw-upload{border:1px dashed #595453;border-radius:14px;padding:16px;display:grid;gap:8px}.tw-upload p{font-size:.875rem;color:var(--tw-muted)}.tw-upload strong{font-size:.9375rem}.tw-pay{display:flex;justify-content:space-between;align-items:center;gap:16px}.tw-pay strong{font-size:1.5rem}.tw-note{padding:13px 16px;border:1px solid #6e5133;border-radius:12px;background:#2a2119;font-size:.875rem;color:#f4d7b8}.tw-error{border-color:#713c43;background:#321b20;color:#ffd2d9}.tw-success{border-color:#395c46;background:#192b20;color:#bbefcd}.tw-stepper{display:flex;gap:8px;margin-bottom:26px;flex-wrap:wrap}.tw-step{border:0;background:transparent;color:var(--tw-muted);padding:8px 12px;border-bottom:2px solid var(--tw-line);font-size:.9375rem}.tw-step[aria-current=step]{color:var(--tw-orange);border-color:var(--tw-orange)}.tw-editor{max-width:900px;margin:auto}.tw-step-title{margin-bottom:22px}.tw-step-title p{margin-top:7px;color:var(--tw-muted);font-size:.9375rem}.tw-editor-footer{display:flex;justify-content:space-between;gap:14px;margin-top:24px}.tw-type-options{display:grid;grid-template-columns:1fr 1fr;gap:18px}.tw-type{border:1px solid var(--tw-line);background:#171719;color:var(--tw-text);padding:25px;border-radius:16px;text-align:left;display:grid;gap:10px}.tw-type[aria-pressed=true]{border-color:var(--tw-orange);background:#292016}.tw-type strong{font-size:1.4rem}.tw-type span{color:var(--tw-muted);font-size:.9375rem}.tw-slot{border:1px solid var(--tw-line);border-radius:14px;padding:18px;display:grid;gap:14px}.tw-slot-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.tw-inline-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tw-money-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.tw-metric{border:1px solid var(--tw-line);border-radius:15px;background:var(--tw-panel);padding:19px}.tw-metric span{display:block;font-size:.875rem;color:var(--tw-muted);margin-bottom:8px}.tw-metric strong{display:block;font-size:1.7rem;overflow-wrap:anywhere}.tw-metric small{font-size:.8125rem;color:var(--tw-muted)}.tw-table-wrap{overflow:auto;border:1px solid var(--tw-line);border-radius:14px}.tw-table{border-collapse:collapse;width:100%;font-size:.875rem}.tw-table th,.tw-table td{padding:13px 15px;text-align:left;border-bottom:1px solid var(--tw-line);vertical-align:top;white-space:nowrap}.tw-table th{color:var(--tw-muted);font-weight:550;background:#18181b}.tw-table tr:last-child td{border-bottom:0}.tw-table td.tw-wrap{white-space:normal;min-width:180px;max-width:420px;overflow-wrap:anywhere}.tw-toast{position:fixed;z-index:100;left:50%;bottom:25px;transform:translateX(-50%);padding:14px 22px;max-width:min(580px,calc(100vw - 32px));border-radius:14px;border:1px solid #7b6148;background:#27211c;color:var(--tw-text);box-shadow:0 12px 40px #0009;text-align:center}.tw-toast[data-error=true]{background:#3b2028;border-color:#9d5669}.tw-dialog{background:var(--tw-panel);color:var(--tw-text);border:1px solid var(--tw-line);border-radius:22px;max-width:min(900px,calc(100vw - 30px));width:600px;padding:32px;max-height:85vh;overflow:auto}.tw-dialog::backdrop{background:#000a;backdrop-filter:blur(4px)}.tw-dialog h2{padding-right:24px;margin-bottom:16px}.tw-close{position:absolute;right:12px;top:12px;min-height:32px;width:32px;padding:0;font-size:1.2rem}.tw-spacer{height:12px}.tw-back{display:inline-flex;margin-bottom:20px;color:var(--tw-muted);font-size:.9375rem}.tw-profile{display:flex;gap:18px;align-items:center}.tw-avatar{width:70px;height:70px;border-radius:50%;object-fit:cover;background:var(--tw-raised)}.tw-code{font:13px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;word-break:break-word;background:#09090b;border:1px solid var(--tw-line);padding:16px;border-radius:12px;max-height:500px;overflow:auto}.tw-admin-tabs{margin-bottom:24px}.tw-admin-thumb{width:90px;height:110px;object-fit:cover;border-radius:10px}.tw-file-list{display:flex;flex-wrap:wrap;gap:8px}.tw-file-chip{font-size:.8125rem;display:flex;align-items:center;gap:7px;border:1px solid var(--tw-line);padding:7px 10px;border-radius:8px;background:#1c1c20}.tw-file-chip button{border:0;background:transparent;color:var(--tw-muted);font-size:1rem}.tw-pager{margin-top:26px;display:flex;justify-content:center;gap:12px}.tw-busy{opacity:.6;pointer-events:none}.tw-admin-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px}.tw-admin-nav{display:grid;gap:8px;align-content:start;position:sticky;top:20px}.tw-admin-nav .tw-tab{text-align:left;border-radius:10px}.tw-full{width:100%}.tw-status-published,.tw-status-completed,.tw-status-paid{color:var(--tw-green)}.tw-status-rejected,.tw-status-failed,.tw-status-suspended,.tw-status-deleted{color:var(--tw-red)}.tw-status-moderation,.tw-status-test_running,.tw-status-pending{color:#f2c885}.tw-required{color:var(--tw-orange)}.tw-price-lines{display:grid;gap:12px}.tw-price-lines>div{display:flex;justify-content:space-between;gap:20px}.tw-price-lines>div:last-child{padding-top:12px;border-top:1px solid var(--tw-line);font-weight:750}.tw-form-error{font-size:.875rem;color:var(--tw-red)}
@media(max-width:1080px){.tw-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tw-money-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tw-topbar{padding:15px 24px;gap:24px}}
@media(max-width:760px){.tw-topbar{gap:14px;flex-wrap:wrap;padding:14px 18px}.tw-topbar nav{order:3;flex-basis:100%;gap:22px;padding-top:3px}.tw-topbar>#tw-account{margin-left:auto}.tw-main{padding:26px 18px 60px}.tw-heading{align-items:flex-start;gap:18px;flex-wrap:wrap}.tw-heading p{font-size:.9375rem}.tw-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tw-detail,.tw-two{grid-template-columns:1fr}.tw-detail{gap:22px}.tw-preview img,.tw-preview video{max-height:65vh}.tw-panel{padding:19px}.tw-inline-fields{grid-template-columns:1fr 1fr}.tw-admin-layout{grid-template-columns:1fr}.tw-admin-nav{display:flex;flex-wrap:wrap;position:static}.tw-admin-nav .tw-tab{font-size:.875rem}.tw-dialog{padding:25px 19px}.tw-pay{align-items:flex-start}.tw-stepper{gap:4px}.tw-step{font-size:.8125rem;padding:8px}.tw-filters .tw-search{max-width:none}.tw-filters select{flex:1}.tw-card-body{padding:13px}.tw-card-bottom{flex-wrap:wrap;gap:6px}.tw-card h3{font-size:.9375rem}}
@media(max-width:410px){.tw-type-options{grid-template-columns:1fr}.tw-money-grid{gap:10px}.tw-metric{padding:15px}.tw-metric strong{font-size:1.4rem}.tw-grid{gap:10px}.tw-card-body{padding:11px}.tw-card-author,.tw-card-bottom{font-size:.8125rem}.tw-inline-fields{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.tw-reference-thumb{width:56px;height:56px;object-fit:cover;border-radius:7px}.tw-dialog .tw-money-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

/* Display derivatives keep the original media URL available to the backend. */
.tw-media{position:relative;display:grid;width:100%;min-height:180px;place-items:center;background:#111114;overflow:hidden}
.tw-media>img,.tw-media>video{grid-area:1/1;width:100%;max-width:100%;display:block}
.tw-card-media>.tw-media{height:100%;min-height:0}.tw-card-media .tw-media>img{height:100%;object-fit:cover}
.tw-media[data-media-state="loading"]>img,.tw-media[data-media-state="error"]>img{opacity:0}
.tw-media-status{grid-area:1/1;z-index:1;text-align:center;padding:16px;color:var(--tw-muted);font-size:.875rem}
.tw-media-status[hidden],.tw-media-status [hidden]{display:none!important}
.tw-media[data-media-state="error"]{min-height:180px}.tw-media-error{color:#ffd2d9}
.tw-media-retry{display:inline-block;margin-top:8px;padding:8px 12px;border-radius:8px;background:#302b27;color:#ffc691;cursor:pointer}
.tw-media-retry:focus-visible{outline:2px solid var(--tw-orange);outline-offset:3px}
.tw-media-small,.tw-media-small[data-media-state="error"]{width:72px;height:72px;min-height:72px;border-radius:7px;flex-shrink:0}
.tw-media-small>img{height:72px;object-fit:cover}.tw-media-small .tw-media-status{padding:3px;font-size:10px}
.tw-submitted{margin-top:30px}.tw-submitted h1{font-size:clamp(1.6rem,4vw,2.5rem)}.tw-submitted>.tw-badge{justify-self:start}
.tw-local-files{display:flex;gap:8px;flex-wrap:wrap}.tw-local-files img{width:64px;height:64px;object-fit:cover;border-radius:8px}

.tw-media-with-original{display:grid;width:100%;gap:8px}.tw-original{padding:8px 12px;text-align:center;font-size:.875rem;color:#ffc691}

/* Bounded editor cover: the original stays intact in Storage. */
.tw-cover-preview{width:min(240px,100%);height:240px;max-width:100%;margin:12px 0;overflow:hidden;border-radius:12px;background:#101012}
.tw-cover-preview .tw-media{width:100%;height:100%;min-height:0}
.tw-cover-preview .tw-media img{width:100%;height:100%;object-fit:contain}

/* V3.5: compact creator editor. Catalog, studio and admin keep their own layout. */
body:has(.tw-editor-flow) .tw-topbar{min-height:60px;padding-top:10px;padding-bottom:10px;gap:28px}
body:has(.tw-editor-flow) .tw-mark{width:32px;height:32px;border-radius:10px;font-size:18px}
body:has(.tw-editor-flow) .tw-brand{font-size:18px;gap:10px}
body:has(.tw-editor-flow) .tw-topbar nav{font-size:14px;gap:22px}
body:has(.tw-editor-flow) #tw-account{min-height:38px;padding:8px 13px;border-radius:10px;font-size:14px}
.tw-main:has(>.tw-editor-flow){padding-top:22px}
.tw-editor-flow{max-width:900px;color:#f6f3ef;color-scheme:dark}
.tw-editor-flow .tw-editor-icon{display:block;width:22px;height:22px;flex-shrink:0}
.tw-editor-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.tw-editor-flow .tw-editor-heading h1{margin:0;font-size:24px;line-height:1.2;letter-spacing:-.6px}
.tw-editor-flow .tw-editor-heading h1,
.tw-editor-flow .tw-step-title h2,
.tw-editor-flow .tw-format-choice strong{color:#f6f3ef;-webkit-text-fill-color:#f6f3ef}
.tw-editor-home{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;border:1px solid #333335;border-radius:10px;color:#c7c2bd;background:#19191c}
.tw-step-count{margin-left:auto;font-size:12px;color:#c3b7a9;white-space:nowrap}
.tw-editor-flow .tw-editor-save{min-height:36px;padding:7px 12px;font-size:13px;border-radius:10px}
.tw-editor-flow .tw-stepper{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}
.tw-editor-flow .tw-step{display:flex;align-items:center;gap:7px;padding:4px 0;border:0;background:transparent;color:#aaa5a0;font-size:13px;white-space:nowrap;min-height:32px}
.tw-editor-flow .tw-step-number{display:grid;place-items:center;flex-shrink:0;width:24px;height:24px;border:1px solid #424044;border-radius:50%;font-size:12px;font-weight:400}
.tw-editor-flow .tw-step[aria-current="step"]{color:#ffad5e}
.tw-editor-flow .tw-step[aria-current="step"] .tw-step-number{color:#18110c;background:#ff9b3d;border-color:#ff9b3d}
.tw-editor-flow .tw-step:disabled{color:#8f8a86;opacity:1;cursor:not-allowed}
.tw-editor-flow>.tw-panel{padding:25px;border:1px solid #343032;border-radius:20px;background:#151517}
.tw-editor-flow.tw-format-step>.tw-panel{background-image:radial-gradient(ellipse at 12% 0%,#32241c 0%,#151517 52%)}
.tw-editor-flow .tw-step-title{margin-bottom:20px}
.tw-editor-flow .tw-step-title h2{margin:0;font-size:23px;line-height:1.25;letter-spacing:-.5px}
.tw-editor-flow .tw-type-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:4px}
.tw-editor-flow .tw-format-choice{position:relative;isolation:isolate;overflow:hidden;min-width:0;min-height:130px;border:1px solid #444048;border-radius:15px;background:#202023;padding:18px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:13px;color:#f7f0e8;text-align:left}
.tw-editor-flow .tw-format-choice[aria-pressed="true"]{border-color:#ff9b3d;background:#302319;box-shadow:inset 0 0 0 1px #ff9b3d22}
.tw-editor-flow .tw-format-choice:hover:not(:disabled){border-color:#d3a47a}
.tw-editor-flow .tw-format-choice:disabled{opacity:1;cursor:default}
.tw-editor-flow .tw-format-choice>.tw-editor-icon{position:relative;z-index:2;color:#e2d0bb}
.tw-editor-flow .tw-format-choice strong{position:relative;z-index:2;font-size:20px;font-weight:700}
.tw-editor-flow .tw-format-art{position:absolute;right:25px;top:11px;z-index:-1;pointer-events:none;width:92px;height:112px}
.tw-editor-flow .tw-format-frame{position:absolute;inset:9px 7px 11px 12px;border:1px solid #e9c99e88;border-radius:9px;background:linear-gradient(145deg,#b5774377,#8c513522 40%,#281c1977);transform:rotate(13deg)}
.tw-editor-flow .tw-format-frame+.tw-format-frame{transform:rotate(-9deg);inset:1px 15px 19px 4px;background:radial-gradient(ellipse at 57% 37%,#f3ba8588 0 12%,transparent 13%),radial-gradient(ellipse at 54% 92%,#b3724566 0 32%,transparent 33%),linear-gradient(145deg,#935443,#322225);box-shadow:0 8px 25px #0005}
.tw-editor-flow .tw-format-video .tw-format-art{right:16px;top:20px;height:90px;width:120px;transform:rotate(-9deg);border:1px solid #c2a4ec77;border-radius:13px;background:linear-gradient(140deg,#a786c155,#41314377);display:grid;place-items:center;box-shadow:0 12px 30px #a85abd15}
.tw-editor-flow .tw-format-video .tw-format-art svg{width:31px;height:31px;fill:#f3e7ff22;color:#e2cdee}
.tw-editor-flow .tw-format-check{position:absolute;right:10px;top:10px;width:21px;height:21px;border-radius:50%;background:#ff9b3d;color:#22170c;display:none;align-items:center;justify-content:center;z-index:3;pointer-events:none}
.tw-editor-flow .tw-format-check svg{width:15px;height:15px}
.tw-editor-flow .tw-format-choice[aria-pressed="true"] .tw-format-check{display:flex}
.tw-editor-flow.tw-format-step .tw-field{gap:8px}
.tw-editor-flow.tw-format-step .tw-field>span{color:#f0e8e1;font-size:14px;font-weight:700}
.tw-editor-flow.tw-format-step .tw-field input,
.tw-editor-flow.tw-format-step .tw-field textarea{border:1px solid #3e3b3d;background:#101012;color:#f8f2e9;border-radius:11px;padding:12px 14px;font-size:16px;line-height:1.4}
.tw-editor-flow.tw-format-step .tw-field input::placeholder,
.tw-editor-flow.tw-format-step .tw-field textarea::placeholder{color:#9f9996;opacity:1}
.tw-editor-flow.tw-format-step .tw-field textarea{min-height:94px;resize:vertical}
.tw-editor-flow .tw-editor-footer{margin-top:22px}
.tw-editor-flow.tw-format-step .tw-editor-footer{justify-content:flex-end}
.tw-editor-flow.tw-format-step [data-action="editor-next"]{gap:13px;border-radius:11px;padding:13px 19px;background:#ff9b3d;color:#1c140c;font-size:14px}
.tw-editor-flow.tw-format-step [data-action="editor-next"]::after{content:"→";font-size:20px;line-height:1}
#tw-app[aria-busy="true"] .tw-format-step [data-action="editor-next"]::after{content:none}
.tw-editor-flow button:focus-visible,.tw-editor-flow a:focus-visible{outline:2px solid #ffad5e;outline-offset:4px}
@media(max-width:760px){
  body:has(.tw-editor-flow) .tw-topbar{gap:12px}
  body:has(.tw-editor-flow) .tw-topbar nav{padding-top:0}
}
@media(max-width:600px){
  .tw-main:has(>.tw-editor-flow){padding:18px 14px 40px}
  .tw-editor-heading{gap:9px;margin-bottom:14px}
  .tw-editor-flow .tw-editor-heading h1{font-size:21px;flex:1;min-width:0}
  .tw-editor-flow .tw-step-count{font-size:11px}
  .tw-editor-flow .tw-editor-save{margin-left:auto}
  .tw-editor-flow .tw-stepper{gap:8px;margin-bottom:18px}
  .tw-editor-flow .tw-step{min-height:40px;padding:4px;font-size:12px;gap:5px}
  .tw-editor-flow .tw-step:not([aria-current="step"]) .tw-step-label{display:none}
  .tw-editor-flow>.tw-panel{padding:19px 16px;border-radius:16px}
  .tw-editor-flow .tw-step-title h2{font-size:21px}
  .tw-editor-flow .tw-type-options{gap:10px}
  .tw-editor-flow .tw-format-choice{padding:13px;min-height:112px}
  .tw-editor-flow .tw-format-choice strong{font-size:16px}
  .tw-editor-flow .tw-format-art{opacity:.48;right:7px;width:84px;height:100px}
  .tw-editor-flow .tw-format-video .tw-format-art{right:-17px;opacity:.4;width:110px;height:83px}
  .tw-editor-flow.tw-format-step [data-action="editor-next"]{width:100%;justify-content:center}
}

/* V3.6: public trend page; editor V3.5, catalog and admin are unaffected. */
.tw-recipe-mode{padding:12px 14px;border:1px solid var(--tw-line);border-radius:12px;background:#0e0e10;color:var(--tw-text)}
.tw-card-create{width:100%}
.tw-catalog-preview{position:relative;isolation:isolate;background:#101013;overflow:hidden}
.tw-catalog-play{position:absolute;inset:0;z-index:1;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent;color:#fff}
.tw-catalog-play:focus-visible{outline:3px solid var(--tw-orange);outline-offset:-4px}
.tw-catalog-poster,.tw-catalog-poster>.tw-media{display:block;width:100%;height:100%;min-height:0}
.tw-catalog-poster>.tw-media img{width:100%;height:100%;object-fit:cover}
.tw-catalog-poster .tw-media-status{position:absolute;left:0;right:0;bottom:12px;z-index:2;pointer-events:none}
.tw-catalog-poster .tw-media-retry{pointer-events:auto}
.tw-catalog-play-icon{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:60px;height:60px;border:1px solid #ffffff70;border-radius:50%;background:#111c;box-shadow:0 4px 24px #0006;pointer-events:none}
.tw-catalog-play-icon svg{width:29px;height:29px}
.tw-catalog-video{display:block;width:100%;height:100%;object-fit:contain;background:#08080a}
.tw-catalog-preview>.tw-badge{pointer-events:none;z-index:2}
.tw-catalog-video-status{position:absolute;left:12px;right:12px;top:52px;z-index:3;padding:8px 10px;border-radius:8px;background:#111e;color:#f5f1eb;font-size:13px;text-align:center;pointer-events:none}
.tw-catalog-retry{position:absolute;z-index:4;left:50%;top:50%;transform:translate(-50%,-50%);border:1px solid var(--tw-line);border-radius:10px;padding:12px 16px;background:#272124;color:#f5f1eb;min-height:44px;max-width:90%}
body:has(.tw-trend-page) .tw-topbar{min-height:60px;padding-top:10px;padding-bottom:10px;gap:26px}
body:has(.tw-trend-page) .tw-mark{width:32px;height:32px;border-radius:10px;font-size:18px}
body:has(.tw-trend-page) .tw-brand{font-size:18px}
body:has(.tw-trend-page) #tw-account{min-height:38px;padding:8px 13px;border-radius:10px;font-size:14px}
.tw-main:has(>.tw-trend-page){padding-top:20px}
.tw-trend-page{max-width:960px;margin:auto;color:#f5f1eb}
.tw-trend-page .tw-editor-icon{display:block;width:18px;height:18px;flex-shrink:0}
.tw-trend-back{display:inline-flex;align-items:center;gap:8px;color:#bdb7b1;margin-bottom:20px;font-size:14px}
.tw-trend-layout{display:grid;grid-template-columns:minmax(0,.83fr) minmax(0,1fr);align-items:start;gap:36px}
.tw-trend-visual{min-width:0}
.tw-trend-preview{position:relative;max-width:360px;margin:auto;min-width:0}
.tw-trend-preview>.tw-media-empty{min-height:220px;padding:56px 20px 28px;border-radius:17px;background:#131316}
.tw-trend-preview .tw-media{background:transparent;min-height:220px;border-radius:17px}
.tw-trend-preview .tw-media>img,.tw-trend-preview .tw-media>video{max-height:560px;width:auto;height:auto;max-width:100%;object-fit:contain;justify-self:center;border-radius:17px}
.tw-trend-preview .tw-media>video{width:100%;background:#131316}
.tw-trend-preview .tw-media-with-original{position:relative;gap:0}
.tw-trend-preview .tw-original{position:absolute;right:12px;bottom:12px;display:grid;place-items:center;width:36px;height:36px;border:1px solid #ffffff38;border-radius:9px;padding:0;background:#151515ed;color:#f5f1eb;z-index:2}
.tw-trend-preview .tw-original:hover{background:#27211c}
.tw-result-tag{position:absolute;top:12px;left:12px;z-index:2;display:flex;gap:6px;align-items:center;max-width:calc(100% - 24px);border:1px solid #ffffff28;border-radius:8px;padding:5px 9px;background:#151515ef;color:#faf5ef;font-size:12px;pointer-events:none}
.tw-result-tag .tw-editor-icon{width:14px;height:14px}
.tw-result-caption{max-width:360px;margin:12px auto 0;font-size:13px;line-height:1.5;color:#ada7a1}
.tw-trend-copy{min-width:0;padding-top:2px}
.tw-trend-meta{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:12px}
.tw-trend-kind{display:flex;gap:6px;align-items:center;flex-shrink:0;color:#ffb575;font-size:12px;letter-spacing:.6px;text-transform:uppercase}
.tw-trend-kind .tw-editor-icon{width:15px;height:15px}
.tw-trend-author{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0;margin-left:auto;color:#a9a39d;font-size:13px;text-align:right}
.tw-trend-author>span:last-child{min-width:0;overflow-wrap:anywhere}
.tw-trend-author b{color:#ddd6ce;font-weight:400}
.tw-buyer-avatar{width:27px;height:27px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:#35271f;color:#f4bf90;font-size:13px}
.tw-trend-copy>h1{margin:0 0 9px;color:#f5f1eb;-webkit-text-fill-color:#f5f1eb;font-size:32px;line-height:1.15;letter-spacing:-.8px;overflow-wrap:anywhere}
.tw-trend-copy>.tw-description{margin:0 0 13px;font-size:15px;line-height:1.55;color:#cdc6bf}
.tw-trend-social{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:17px}
.tw-trend-social .tw-button{border:1px solid #353237;background:#1a191d;color:#ddd6ce;border-radius:9px;font-size:13px;min-height:36px;padding:7px 10px}
.tw-trend-social [data-action="like"][aria-pressed="true"]{color:#ffbf98;background:#2c201c;border-color:#6a4533}
.tw-trend-uses{font-size:12px;color:#ada7a1}
.tw-buyer-panel{padding:22px;border:1px solid #3e332d;border-radius:18px;background:#171517;background-image:radial-gradient(ellipse at 10% 0%,#2a201b 0%,#171517 64%)}
.tw-buyer-panel>h2{margin:0 0 14px;color:#f5f1eb;-webkit-text-fill-color:#f5f1eb;font-size:21px;line-height:1.3;letter-spacing:-.3px}
.tw-buyer-inputs{display:grid;gap:20px}
.tw-buyer-panel .tw-buyer-upload{display:grid;gap:10px;border:0;border-radius:0;padding:0;min-width:0}
.tw-buyer-panel .tw-buyer-upload>strong{color:#f5f1eb;font-size:14px}
.tw-buyer-panel .tw-buyer-instruction{font-size:13px;line-height:1.5;color:#b9b0a8;white-space:pre-line;overflow-wrap:anywhere}
.tw-buyer-panel .tw-file-list{display:grid;gap:8px;min-width:0}
.tw-buyer-panel .tw-file-list:empty{display:none}
.tw-buyer-drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:146px;padding:17px 12px;border:1px dashed #75604d;border-radius:12px;background:#111012;color:#f5f1eb;text-align:center;cursor:pointer;min-width:0}
.tw-buyer-drop:hover,.tw-buyer-drop.tw-drag-over{border-color:#ff9c42;background:#201913}
.tw-buyer-drop:focus-within{outline:3px solid var(--tw-orange);outline-offset:3px}
.tw-buyer-drop:has(input:disabled){cursor:default;opacity:.65}
.tw-buyer-drop input.tw-buyer-file-input{position:absolute;inset:0;z-index:1;width:100%;height:100%;opacity:0;cursor:pointer;padding:0;min-height:0}
.tw-buyer-drop input.tw-buyer-file-input:disabled{cursor:default}
.tw-buyer-drop>span{pointer-events:none}
.tw-buyer-upload-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#32261d;color:#ffbf86}
.tw-buyer-upload-icon .tw-editor-icon{width:22px;height:22px}
.tw-buyer-pick-label{font-size:15px;font-weight:700;color:#f5f1eb}
.tw-buyer-drop-hint{font-size:13px;color:#b9afa6}
.tw-buyer-panel .tw-buyer-rules{margin:0 0 3px;font-size:12px;color:#b6ada5;overflow-wrap:anywhere}
.tw-buyer-upload.tw-has-files .tw-buyer-drop{min-height:36px;padding:8px 12px;border-style:solid;justify-self:start}
.tw-buyer-upload.tw-has-files .tw-buyer-upload-icon,.tw-buyer-upload.tw-has-files .tw-buyer-drop-hint{display:none}
.tw-buyer-upload.tw-has-files .tw-buyer-pick-label{font-size:13px;font-weight:400}
.tw-buyer-file{display:flex;align-items:center;gap:11px;min-width:0;padding:12px;border:1px solid #6b5239;border-radius:12px;background:#171311}
.tw-buyer-file>img{width:50px;height:60px;object-fit:cover;border-radius:7px;flex-shrink:0}
.tw-buyer-file-symbol{display:grid;place-items:center;flex-shrink:0;width:40px;height:46px;color:#c6af96}
.tw-buyer-file-info{display:grid;gap:4px;min-width:0;flex:1;font-size:13px;color:#e8dfd5}
.tw-buyer-file-info>span{overflow-wrap:anywhere}
.tw-buyer-file-info small{color:#adc9ac;font-size:12px}
.tw-buyer-remove{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border:0;border-radius:8px;background:#2a2420;color:#d2c5b9;padding:0}
.tw-buyer-quote{display:grid;gap:9px;margin-top:18px}
.tw-buyer-quote #tw-generate{width:100%;min-height:48px;padding:12px 16px;border:0;border-radius:11px;background:#ff9c42;color:#201409;font-size:16px;font-weight:700}
.tw-buyer-quote #tw-generate:disabled{opacity:.6}
.tw-buyer-price-note,.tw-buyer-input-hint{text-align:center;margin:0;color:#b9afa6;font-size:12px}
.tw-buyer-input-hint{color:#dfc6ad}
.tw-buyer-no-inputs{font-size:14px;color:#b9b0a8}
.tw-buyer-panel #tw-form-progress:not([hidden]){margin-top:13px}
.tw-buyer-panel #tw-run-status:not(:empty){margin-top:16px}
.tw-trend-report-row{display:flex;justify-content:flex-end;margin-top:12px}
.tw-trend-report{display:inline-flex;align-items:center;gap:5px;padding:5px 0;border:0;background:transparent;color:#a49c95;font-size:12px}
.tw-trend-report .tw-editor-icon{width:14px;height:14px}
@media(max-width:760px){
  body:has(.tw-trend-page) .tw-topbar{gap:12px}
  .tw-trend-layout{gap:24px}
  .tw-trend-meta{gap:10px;flex-wrap:wrap}
  .tw-trend-kind{font-size:11px}
  .tw-trend-author{font-size:12px}
}
@media(max-width:620px){
  .tw-main:has(>.tw-trend-page){padding:17px 16px 32px}
  .tw-trend-layout{grid-template-columns:minmax(0,1fr);gap:23px}
  .tw-trend-preview{max-width:300px}
  .tw-trend-preview .tw-media>img,.tw-trend-preview .tw-media>video{max-height:420px}
  .tw-result-caption{max-width:300px;text-align:center;font-size:12px}
  .tw-trend-back{margin-bottom:16px}
  .tw-trend-copy>h1{font-size:28px}
  .tw-buyer-panel{padding:18px 16px}
  .tw-buyer-panel>h2{font-size:20px}
}
@media(pointer:coarse){
  .tw-trend-social .tw-button,.tw-trend-report,.tw-buyer-remove,.tw-trend-preview .tw-original,.tw-trend-author{min-height:44px;min-width:44px}
  .tw-buyer-upload.tw-has-files .tw-buyer-drop{min-height:44px}
}
