/* V14 — controls, delivery and ten distinct download compositions */
:is(.modal-body,#downloadAdmin,.download-edit) label{display:flex;flex-direction:column;gap:9px;min-width:0;font-size:14px;color:#d7cfbd}
:is(.modal-body,#downloadAdmin,.download-edit) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea){display:block;box-sizing:border-box;width:100%;min-height:48px;padding:13px 15px;border:1px solid #4b4435;border-radius:12px;background:#151511;color:#f4eddb;font:inherit;line-height:1.8;outline:none;box-shadow:inset 0 1px 0 #ffffff03}
:is(.modal-body,#downloadAdmin,.download-edit) textarea{min-height:130px;resize:vertical}
:is(.modal-body,#downloadAdmin,.download-edit) :is(input,textarea):focus{border-color:#e7b75e;box-shadow:0 0 0 3px #d6a84e1b}
:is(.modal-body,#downloadAdmin,.download-edit) .checkbox{flex-direction:row;align-items:center!important}
.simple-details>.form-grid{padding:18px 0;gap:20px}.share-result{background:linear-gradient(135deg,#28251b,#181915);border-color:#70603b;padding:22px}.share-result label{font-weight:600}.share-result input[readonly]{font-family:ui-monospace,Consolas,monospace;font-size:13px;direction:ltr;text-align:left;background:#11120f}.share-result .row-actions{flex-wrap:wrap}
.download-admin-row{gap:20px;align-items:center;padding:24px 0}.download-admin-row>div:first-child{min-width:0}.download-id{display:block;max-width:100%;font:12px ui-monospace,Consolas,monospace;color:#d7bf84;overflow-wrap:anywhere;letter-spacing:.3px;margin:9px 0}.download-admin-row time{display:block;color:#b2ab9a;font-size:12px;margin:8px 0}.live-label{font-size:12px;color:#b6d9ba;display:flex;align-items:center;gap:7px}.live-label:before{content:'';width:7px;height:7px;border-radius:50%;background:#8bbf8c;box-shadow:0 0 0 4px #80ba8010}.download-edit{width:min(660px,calc(100vw - 28px));max-width:660px;max-height:88dvh;padding:28px;background:#1b1b17;color:#eee5d1;overflow:auto}.download-edit h2{margin-top:0}.download-edit .form-grid{margin:22px 0}.download-edit::backdrop{background:#000a;backdrop-filter:blur(6px)}
.upload-status:not(:empty),.upload-selection:not(:empty){display:block;margin:16px 0;padding:14px 17px;border:1px solid #5c5138;border-radius:12px;background:#242116;color:#e9d6ab;font-size:14px;line-height:1.9;overflow-wrap:anywhere}.upload-status[data-state=success]{background:#14271c;border-color:#41684d;color:#b8e9c5}.upload-status[data-state=error]{background:#301b1b;border-color:#7d4444;color:#ffc8c1}.upload-status[data-state=uploading]{background:linear-gradient(100deg,#252014,#40351e,#252014);background-size:200% 100%;animation:upload-shimmer 2s linear infinite}.upload-selection{color:#c6c0af!important;background:#24241e!important}.delivery-types{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0}.delivery-types span{display:flex;gap:8px;align-items:center;padding:9px 14px;border:1px solid #55492e;background:#2a2518;border-radius:99px;color:#e5c580;font-size:13px}
.delivery-heading{display:flex;align-items:center;gap:16px;margin-bottom:24px}.delivery-heading h2{margin:0}.delivery-heading p{font-size:13px;color:#b9b4a5;margin:7px 0 0}.delivery-heading-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:#3e311c;color:#ffc367;flex:none}.delivery-v14{border:1px solid #49402f;border-radius:18px;padding:24px;background:linear-gradient(140deg,#252319,#191a16);margin:16px 0}.delivery-title{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.delivery-title small{color:#bca77e;font-size:11px}.delivery-title h3{margin:5px 0;font-size:20px}.delivery-ready{display:flex;gap:6px;align-items:center;font-size:11px;padding:6px 10px;border-radius:99px;color:#b6ddbb;background:#29422b}.delivery-instructions{display:flex;gap:12px;background:#ffffff04;padding:16px;border-radius:12px;margin:20px 0;color:#d4cfbf;line-height:2}.delivery-instructions p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.delivery-instructions>.p-icon{margin-top:8px}.delivery-codes-v14 h4{font-size:13px;color:#baaf95}.delivery-code-row{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid #514833;border-radius:12px;background:#11130f;margin:10px 0}.delivery-code-row>span{font-size:11px;color:#a89c80}.delivery-code-row code{flex:1;text-align:left;overflow-wrap:anywhere;min-width:0;color:#f0dba6;border:0;background:transparent;padding:0}.delivery-links{display:grid;gap:10px;margin-top:15px}.delivery-link{display:flex;align-items:center;gap:12px;padding:14px 18px;border:1px solid #625034;border-radius:12px;color:#efd59e;background:#282316}.delivery-link>span:nth-child(2){flex:1}.delivery-file{display:flex;align-items:center;gap:15px;margin-top:20px;padding:18px;border-radius:15px;background:#efb85a;color:#231b0c;text-decoration:none}.delivery-file-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#0001;flex:none}.delivery-file>span:nth-child(2){flex:1;min-width:0}.delivery-file strong{display:block;font-size:14px;overflow-wrap:anywhere;direction:ltr;text-align:right}.delivery-file small{display:block;font-size:11px;margin-top:5px}.delivery-file b{font-size:13px}.delivery-v14>time{display:block;color:#938975;font-size:11px;margin-top:20px}
/* Motion is interaction-driven; it never delays form submission or hides content. */
:is(button,.button,.btn,.chip,.nav-item,summary){position:relative;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s,transform .2s,opacity .2s}
:is(button,.button,.btn,.chip):not(:disabled):hover{box-shadow:0 5px 20px #0003;filter:brightness(1.07)}
:is(button,.button,.btn,.chip):not(:disabled):active{transform:scale(.97)}
:is(input,textarea,.ui-select-button){transition:border-color .2s,box-shadow .2s,background-color .2s}
:is(a,button,input,textarea,summary):focus-visible{outline:2px solid #edbd6b;outline-offset:4px}
.interaction-wave{pointer-events:none;position:absolute;width:22px;height:22px;border-radius:50%;background:currentColor;z-index:1}.interaction-wave~*{pointer-events:auto}
:is(.btn,.button,button){overflow:hidden}.ui-select-menu{animation:menu-enter .18s ease-out}.modal-backdrop.open .modal{animation:panel-enter .25s ease-out}details[open]>summary{color:#efc773}.download-admin-row:hover{background:#ffffff03}.upload-status[data-state=success]{animation:panel-enter .35s ease-out}
@keyframes menu-enter{from{opacity:0;translate:0 -5px}to{opacity:1;translate:0 0}}@keyframes panel-enter{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}@keyframes upload-shimmer{to{background-position:-200% 0}}
/* Shared shell, with structurally different theme treatments. */
.download-page{--accent:#efbb62;--theme-text:#eee9df;--theme-muted:#b8b0a0;isolation:isolate;overflow-x:hidden;position:relative;font-family:'IBM Plex Sans Arabic',Tahoma,sans-serif;color:var(--theme-text)}.theme-scene{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}.theme-scene i{position:absolute;border:1px solid #ffffff0a;display:block;width:60vw;height:60vw;border-radius:50%;left:-20vw;top:-30vw}.theme-scene i:nth-child(2){left:auto;right:-35vw;top:30vh}.theme-scene i:nth-child(3){width:30vw;height:30vw;top:50vh;left:10vw}.download-card{position:relative;overflow:hidden;padding:0;width:min(720px,100%);background:#191915;box-shadow:0 30px 100px #0007}.download-copy{padding:40px}.download-cover{display:block;width:100%;max-height:330px;object-fit:cover;border-bottom:1px solid #ffffff12}.download-cover[hidden]{display:none}.download-card h1{line-height:1.5;margin:14px 0}.download-card .lead{color:var(--theme-muted)}.download-card .muted{color:var(--theme-muted);font-size:12px}.download-card dt{color:var(--theme-muted)}.download-card dd{color:var(--theme-text)}.download-card dd:first-of-type{font:12px ui-monospace,Consolas,monospace;direction:ltr;text-align:right}.download-card .button{background:var(--accent);color:#131313;border-color:transparent;gap:10px}.file-emblem{color:var(--accent)}
/* Purple: glowing circuit frame, faceted corners and a violet nebula. */
.download-page[data-theme=purple]{--accent:#c69aff;--theme-text:#f4ebff;--theme-muted:#b8a0d0;background:radial-gradient(ellipse at 70% 0,#4a1d7b,transparent 60%),radial-gradient(ellipse at 0 90%,#201b66,transparent 60%),#0c081b}.download-page[data-theme=purple] .download-card{border:1px solid #a56ee9;border-radius:8px 48px 8px 48px;background:linear-gradient(135deg,#291143ee,#100d29);box-shadow:0 0 80px #8b39ee30,inset 0 0 30px #7638b41a}.download-page[data-theme=purple] .download-card:after{content:'';position:absolute;inset:9px;border:1px solid #ad72ec44;border-radius:3px 40px 3px 40px;pointer-events:none}.download-page[data-theme=purple] .file-emblem{background:#813bea30;box-shadow:0 0 30px #b675ff33;border:1px solid #bc82ff60}.download-page[data-theme=purple] .theme-scene i{border-radius:20%;border:1px solid #b17af933;rotate:40deg;animation:store-orbit 100s linear infinite}
/* Silver: restrained monochrome, chrome linework and editorial spacing. */
.download-page[data-theme=silver]{--accent:#e2e5e9;--theme-text:#f2f3f4;--theme-muted:#a7abb1;background:radial-gradient(ellipse at 50% 0,#494c50,transparent 65%),#101113}.download-page[data-theme=silver] .download-card{border-radius:5px;border:1px solid #6a6d72;background:linear-gradient(145deg,#2d2f32,#151618);box-shadow:0 30px 100px #000b,inset 0 1px #fff7}.download-page[data-theme=silver] .download-copy{padding:48px}.download-page[data-theme=silver] .file-emblem{border-radius:50%;background:linear-gradient(145deg,#f8fafb,#555b61);color:#24272b;box-shadow:inset 0 2px 2px #fff9,0 8px 20px #0005}.download-page[data-theme=silver] .button{background:linear-gradient(#f4f5f6,#a6abb1);border-radius:4px}.download-page[data-theme=silver] dl{border-color:#686b70}.download-page[data-theme=silver] .theme-scene i{border-color:#ffffff0c;border-radius:0;rotate:-22deg}
/* Blue: a technical window with a slim side rail. */
.download-page[data-theme=blue]{--accent:#80baff;--theme-text:#eaf4ff;--theme-muted:#9bb2cb;background:linear-gradient(130deg,#0b213c,#0a101e)}.download-page[data-theme=blue] .download-card{border-radius:12px;border-color:#3c6598;border-inline-start:5px solid #72afff;background:#111e30}.download-page[data-theme=blue] .file-emblem{border-radius:10px;background:#243d61}.download-page[data-theme=blue] .theme-scene{background-image:linear-gradient(#84b5ec08 1px,transparent 1px),linear-gradient(90deg,#84b5ec08 1px,transparent 1px);background-size:50px 50px}
/* Green: organic rounded composition. */
.download-page[data-theme=green]{--accent:#a3d9a4;--theme-text:#eaf2e4;--theme-muted:#a8b7a0;background:radial-gradient(at 0 0,#31553b,transparent 60%),#0e1c16}.download-page[data-theme=green] .download-card{border-radius:50px 16px 50px 16px;background:#18291f;border-color:#648268}.download-page[data-theme=green] .file-emblem{border-radius:50% 15% 50% 20%;background:#36503b}.download-page[data-theme=green] .theme-scene i{background:#426d3520;border:0;border-radius:70% 10% 70% 30%}
/* Rose: soft inset panels and rounded pill controls. */
.download-page[data-theme=rose]{--accent:#f2acc7;--theme-text:#fff0f5;--theme-muted:#c4a6b3;background:radial-gradient(at 80% 10%,#613449,transparent 65%),#251520}.download-page[data-theme=rose] .download-card{background:#35222d;border-color:#80566a;border-radius:36px}.download-page[data-theme=rose] .button{border-radius:99px}.download-page[data-theme=rose] dl{background:#261923;padding:22px;border:0;border-radius:20px}.download-page[data-theme=rose] .file-emblem{border-radius:50%;background:#624154}
/* Sunset: warm split horizon and offset framing. */
.download-page[data-theme=sunset]{--accent:#ffc37d;--theme-text:#fff1df;--theme-muted:#d5b1a0;background:linear-gradient(160deg,#773d38 0%,#352030 45%,#171722 100%)}.download-page[data-theme=sunset] .download-card{background:#32232a;border-color:#ce8562;border-radius:28px 28px 6px 6px;box-shadow:12px 12px 0 #ad76552a,0 30px 100px #0005}.download-page[data-theme=sunset] .file-emblem{border-radius:50% 50% 5px 5px;background:linear-gradient(#e99f68,#593141);color:#fff}.download-page[data-theme=sunset] .theme-scene i{border:0;background:linear-gradient(#dca17625,transparent);top:40vh}
/* Ice: translucent glass and asymmetrical halo. */
.download-page[data-theme=ice]{--accent:#b8eff3;--theme-text:#efffff;--theme-muted:#a9c8cf;background:radial-gradient(at 15% 15%,#456d80,transparent 55%),#102a37}.download-page[data-theme=ice] .download-card{border-radius:30px;background:#d0f9ff0d;backdrop-filter:blur(22px);border-color:#b7f0ff55}.download-page[data-theme=ice] .file-emblem{background:#bdefff22;border:1px solid #c8fbff55}.download-page[data-theme=ice] .theme-scene i{background:#a0e2ed15;border:1px solid #c3f4ff22;filter:blur(1px)}
/* Paper: light stationery, dark ink and perforated separator. */
.download-page[data-theme=paper]{--accent:#333d36;--theme-text:#28322a;--theme-muted:#657064;background:#dadbd1}.download-page[data-theme=paper] .download-card{border-radius:2px;background:#f6f3e9;border:1px solid #c1c6b9;box-shadow:7px 7px 0 #b6b9ad55,0 25px 70px #3c463226}.download-page[data-theme=paper] .file-emblem{background:#e1e5d9;border-radius:3px;color:#435444}.download-page[data-theme=paper] .button{color:#f5f4eb;border-radius:4px}.download-page[data-theme=paper] dl{border-block:2px dashed #bac1b3}.download-page[data-theme=paper] .eyebrow{color:#626f58}.download-page[data-theme=paper] .theme-scene i{border-color:#7f8b7422}
/* Midnight: wide orbital layout and a star field. */
.download-page[data-theme=midnight]{--accent:#d4ddff;--theme-text:#f0f2ff;--theme-muted:#9ca5c7;background:radial-gradient(at 50% 40%,#192342,transparent 70%),#060c1a}.download-page[data-theme=midnight] .download-card{width:min(850px,100%);border-color:#3d476c;background:#0e1629;border-radius:28px}.download-page[data-theme=midnight] .download-copy{text-align:center}.download-page[data-theme=midnight] .file-emblem{margin-inline:auto;border-radius:50%;background:#222c4a;outline:1px solid #899aca33;outline-offset:8px}.download-page[data-theme=midnight] dl{text-align:right}.download-page[data-theme=midnight] .theme-scene{background-image:radial-gradient(#dddfff80 1px,transparent 1px);background-size:70px 90px}.download-page[data-theme=midnight] .theme-scene i{border-color:#7c93da22;animation:store-orbit 90s linear infinite}
@media(max-width:760px){.download-copy,.download-page[data-theme=silver] .download-copy{padding:26px 22px}.download-cover{max-height:240px}.download-edit{padding:20px}.download-admin-row .row-actions{width:100%}.download-admin-row .row-actions .btn{flex:1}.delivery-v14{padding:17px}.delivery-heading{align-items:flex-start}.delivery-heading h2{font-size:22px}.delivery-code-row{flex-wrap:wrap}.delivery-code-row code{flex-basis:60%}.delivery-file{padding:14px;gap:10px}.delivery-file strong{font-size:12px}.download-page{padding:24px 14px}.download-page[data-theme=sunset] .download-card{box-shadow:5px 5px 0 #ad76552a}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.interaction-wave{display:none}}

#dlProgress{appearance:none;background:#24261e}#dlProgress::-webkit-progress-bar{background:#24261e;border-radius:99px}#dlProgress::-webkit-progress-value{background:linear-gradient(90deg,#9b6b28,#efc069);border-radius:99px;transition:width .2s}#dlProgress::-moz-progress-bar{background:#efc069}

#freeLimitLabel{display:grid;gap:13px}#freeLimitLabel[hidden],#freeCountLabel[hidden]{display:none}#freeLimitLabel small{color:#b0a791;font-size:12px}#deliveries{scroll-margin-top:110px}
