/* Hallmark-inspired WebM8 v1.9.1 | material: utilitarian | job: share a file | existing design retained */
/* Design critique: removed decorative labels, redundant file pickers and nested flourishes; improved focus, contrast, rhythm. */
:root{color-scheme:dark;--background:#1c1627;--header:#282033;--text:#f0e7fc;--muted:#b9aacb;--line:#4d3b60;--accent:#d1afff;--active:#493060;--overlay:rgba(10,7,17,.48);--font:system-ui,-apple-system,"Segoe UI",sans-serif;--rail-width:64px;--rail-open:216px;--width:1360px;--gutter:28px}
:root[data-theme="light"]{color-scheme:light;--background:#f3f1fa;--header:#fff;--text:#302443;--muted:#756581;--line:#dfd7e9;--accent:#7345ad;--active:#f0e8fb}
:root[data-rail="expanded"]{--rail-width:var(--rail-open)}
*,*::before,*::after{box-sizing:border-box}html,body{overflow-x:clip}html{scrollbar-color:var(--muted) var(--background)}body{margin:0;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;padding-left:var(--rail-width);background:var(--background);color:var(--text);font:400 14px/1.6 var(--font)}[hidden]{display:none!important}::selection{background:var(--accent);color:var(--background)}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}a{color:inherit;text-decoration:none}button,input{font:inherit}a,button{touch-action:manipulation}button{cursor:pointer}a:hover{color:var(--accent)}button:active,a:active{opacity:.8}button:disabled{opacity:.55;cursor:not-allowed}button[aria-busy="true"]{cursor:progress}.container{width:100%;max-width:var(--width);margin-inline:auto;padding-inline:var(--gutter)}svg{display:block;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.rail{position:fixed;inset:0 auto 0 0;width:var(--rail-width);z-index:60;display:flex;flex-direction:column;gap:14px;padding:10px 10px 16px;background:var(--header);color:var(--text);border-right:1px solid var(--line);overflow-y:auto;overflow-x:clip}.rail-head{min-height:40px;display:flex;align-items:center;justify-content:center;gap:6px}.rail-brand{display:none;align-items:center;min-height:40px;min-width:0;white-space:nowrap;font-weight:650;font-size:20px;letter-spacing:-.7px}.rail-brand-short{display:none}.rail-brand-full{display:inline}.suffix{color:var(--accent)}.rail-toggle{width:40px;height:40px;border:0;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;padding:9px;background:transparent;color:var(--muted);flex-shrink:0}.rail-toggle svg{width:20px;height:20px}.rail-toggle:hover{background:var(--active);color:var(--accent)}:root[data-rail="expanded"] .rail-head{justify-content:space-between;padding-left:8px}:root[data-rail="expanded"] .rail-brand{display:flex}:root[data-rail="expanded"] .collapse-icon{transform:rotate(180deg)}.rail-nav{display:flex;flex-direction:column;gap:6px}.rail-link{display:flex;align-items:center;justify-content:center;gap:12px;min-height:40px;width:100%;padding:10px;border:0;border-radius:8px;color:var(--muted);background:transparent;font-size:13px;white-space:nowrap}.rail-link svg{width:20px;height:20px}.rail-link:hover,.rail-link[aria-current="page"]{background:var(--active);color:var(--accent)}.rail-label{display:none}:root[data-rail="expanded"] .rail-label{display:inline}:root[data-rail="expanded"] .rail-link{justify-content:flex-start;padding-inline:12px}.rail-backdrop{position:fixed;inset:0;border:0;background:var(--overlay);z-index:50;padding:0}
.site-header{background:var(--background);color:var(--text);border-bottom:1px solid var(--line)}.header-inner{max-width:none;min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:8px}.page-title{font-weight:550;font-size:14px;line-height:1.4;letter-spacing:-.2px}.top-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.top-actions form{margin:0}.account-name{font-size:12px;color:var(--muted)}.button,.login-link{min-height:38px;display:inline-flex;align-items:center;justify-content:center;padding:8px 14px;border:1px solid var(--line);border-radius:8px;background:var(--header);color:var(--text);font-size:13px;line-height:1.4;white-space:nowrap}.button:hover,.login-link:hover{background:var(--active);color:var(--accent)}.theme-control{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;padding:9px;border:0;border-radius:8px;background:transparent;color:var(--muted);flex-shrink:0}.theme-control:hover{background:var(--active);color:var(--accent)}.theme-control svg{width:20px;height:20px}.theme-control .sun-icon{display:block}.theme-control .moon-icon{display:none}:root[data-theme="light"] .theme-control .sun-icon{display:none}:root[data-theme="light"] .theme-control .moon-icon{display:block}
.main-content{flex:1;padding-block:28px}.site-footer{border:0}.footer-inner{min-height:48px;display:flex;justify-content:flex-end;align-items:center;gap:12px;padding-block:12px;color:var(--muted);font-size:11px}.footer-brand{display:none}.auth-main{display:grid;align-content:center;justify-items:center;padding-block:40px}.auth-box{width:100%;max-width:370px}.auth-box h1{font-size:28px;line-height:1.2;font-weight:550;letter-spacing:-.8px;margin:0 0 10px}.auth-intro{margin:0 0 28px;color:var(--muted);font-size:14px}.field{margin-bottom:18px}.field label{display:block;margin-bottom:7px;font-size:13px}.field input{display:block;width:100%;min-width:0;min-height:46px;padding:10px 12px;border:1px solid var(--muted);border-radius:8px;background:var(--header);color:var(--text);caret-color:var(--accent);font-size:16px}.auth-box .submit{min-height:44px;width:100%;margin-top:6px;background:var(--active);color:var(--accent)}.form-message{padding:12px 14px;margin:0 0 20px;border:1px solid var(--line);border-radius:8px;color:var(--text);background:var(--header);font-size:13px}.back-link{display:inline-flex;align-items:center;min-height:44px;margin-top:16px;color:var(--muted);font-size:13px;text-decoration:underline;text-underline-offset:4px}.account-tools{display:flex;justify-content:flex-end;margin-bottom:20px}.account-tools a{font-size:13px;min-height:40px;display:inline-flex;align-items:center;text-decoration:underline}
@media(max-width:700px){:root,:root[data-rail="expanded"]{--rail-width:64px;--rail-open:216px;--gutter:16px}body{padding-left:64px}.rail{width:64px;padding:10px}.rail-head{min-height:44px}.rail-toggle,.rail-link{min-height:44px}.rail-toggle{height:44px;width:44px}:root[data-rail="expanded"] .rail{width:min(var(--rail-open),calc(100% - 40px));box-shadow:12px 0 28px var(--overlay)}:root[data-rail="expanded"] .rail-head{padding-left:6px}.rail-brand{font-size:19px}.header-inner{min-height:60px;gap:8px}.page-title{font-size:13px;max-width:16ch}.top-actions{gap:4px}.theme-control{width:40px;height:44px}.button,.login-link{min-height:44px;font-size:12px;padding:9px 10px}.account-name{display:none}.main-content{padding-block:20px}.footer-inner{font-size:10px;min-height:44px}.auth-main{padding-block:28px}.auth-box h1{font-size:25px}.auth-intro{font-size:13px}.account-tools{margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* WebM8 v1.2: login-only public header, signup from form, authenticated profile */
.signup-link{border-color:transparent;background:var(--active);color:var(--accent);font-weight:650}
.signup-link:hover{filter:brightness(1.12)}
.profile-menu{position:relative;z-index:45}
.profile-trigger{display:flex;align-items:center;gap:9px;min-height:40px;padding:5px 9px 5px 5px;border-radius:10px;border:1px solid var(--line);background:var(--header);cursor:pointer;list-style:none}
.profile-trigger::-webkit-details-marker{display:none}
.profile-trigger:hover,.profile-menu[open] .profile-trigger{background:var(--active)}
.profile-avatar{width:30px;height:30px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:var(--active);border:1px solid var(--line);color:var(--accent);font-weight:750;font-size:13px}
.profile-name{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600}
.profile-chevron{width:14px;height:14px;stroke-width:2;color:var(--muted)}
.profile-menu[open] .profile-chevron{transform:rotate(180deg)}
.profile-dropdown{position:absolute;right:0;top:calc(100% + 9px);min-width:218px;max-width:calc(100vw - 85px);padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--header);box-shadow:0 16px 40px var(--overlay)}
.profile-dropdown-heading{padding:11px 12px 12px;margin-bottom:5px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:3px;max-width:250px}
.profile-dropdown-heading strong{font-size:13px;overflow-wrap:anywhere}.profile-dropdown-heading span{font-size:11px;color:var(--muted)}
.profile-dropdown>a,.profile-dropdown button{display:flex;align-items:center;width:100%;min-height:40px;padding:9px 12px;border:0;border-radius:8px;background:transparent;text-align:left;color:var(--text);font-size:13px;line-height:1.4;cursor:pointer}
.profile-dropdown>a:hover,.profile-dropdown button:hover{background:var(--active);color:var(--accent)}
.profile-dropdown form{margin:4px 0 0;border-top:1px solid var(--line);padding-top:5px}
.auth-switch{color:var(--muted);font-size:13px;margin:18px 0 0}.auth-switch a{color:var(--accent);font-weight:650;text-decoration:underline;text-underline-offset:3px}
.field-hint{display:block;color:var(--muted);font-size:11px;margin-top:6px;line-height:1.5}
.profile-page{display:flex;justify-content:center;align-items:flex-start;padding-block:36px}
.profile-card{width:100%;max-width:750px;padding:26px;border:1px solid var(--line);background:var(--header);border-radius:16px}
.profile-hero{display:flex;align-items:center;gap:18px;padding-bottom:22px;border-bottom:1px solid var(--line);margin-bottom:25px}
.profile-avatar-large{width:66px;height:66px;font-size:26px;border-radius:18px}
.profile-hero-copy{min-width:0}.profile-hero-copy h1{font-size:24px;font-weight:650;letter-spacing:-.5px;margin:0 0 7px;overflow-wrap:anywhere}
.profile-role{display:inline-flex;border:1px solid var(--line);border-radius:6px;padding:3px 8px;color:var(--accent);background:var(--active);font-size:11px}
.profile-card h2{font-size:15px;font-weight:650;margin:0 0 12px}
.profile-facts{margin:0}.profile-facts>div{display:grid;grid-template-columns:minmax(130px,1fr) minmax(0,1.4fr);gap:14px;border-bottom:1px solid var(--line);padding:15px 0}
.profile-facts dt{color:var(--muted);font-size:13px}.profile-facts dd{margin:0;font-size:13px;overflow-wrap:anywhere;font-weight:550}
.profile-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
@media(max-width:700px){.profile-name{display:none}.profile-trigger{padding-right:7px}.profile-dropdown{min-width:205px}.profile-page{padding-block:20px}.profile-card{padding:18px;border-radius:12px}.profile-facts>div{grid-template-columns:1fr;gap:3px}.login-outline,.signup-link{padding-inline:9px}.profile-avatar-large{width:56px;height:56px;font-size:23px}}
@media(max-width:390px){.top-actions{gap:3px}.page-title{max-width:10ch}.login-outline,.signup-link{font-size:11px;padding-inline:7px}}

/* Guest header: single clear login action. Registration belongs to the login form. */
.login-outline{font-weight:600;border-color:var(--line);background:var(--header)}
.login-outline:hover{border-color:var(--accent)}
.auth-box form+.auth-switch{border-top:1px solid var(--line);padding-top:16px;margin-top:22px}
.auth-switch a:focus-visible,.profile-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:700px){.auth-box{max-width:390px}}


/* WebM8 v1.3: registration Gmail + E.164 phone, editable contacts */
.auth-register-box{max-width:420px}
.auth-register-box .auth-intro{margin-bottom:23px}
.auth-register-box .field{margin-bottom:15px}
.auth-register-box .field input{min-height:44px}
.required{color:var(--accent)}
.profile-edit-details{margin-top:24px;border:1px solid var(--line);border-radius:11px;background:var(--background)}
.profile-edit-details>summary{padding:14px 16px;font-weight:600;font-size:13px;cursor:pointer}
.profile-edit-details[open]>summary{border-bottom:1px solid var(--line)}
.profile-contact-form{padding:18px 16px 20px}
.profile-contact-form .field{max-width:460px}
.profile-contact-form .submit{max-width:240px}
@media(max-width:700px){.auth-register-box{max-width:390px}.profile-contact-form .submit{max-width:none}}

/* WebM8 v1.4 / Compact Center registration and accessible country picker. */
.auth-register-compact{max-width:460px;background:var(--header);border:1px solid var(--line);border-radius:16px;padding:28px 29px 25px;box-shadow:0 18px 50px var(--overlay)}
.auth-register-compact h1{font-size:26px;margin-bottom:8px}
.auth-register-compact .auth-intro{font-size:13px;line-height:1.55;margin-bottom:23px}
.auth-register-compact .field label{font-weight:600;font-size:12px}
.auth-register-compact .field>input,.auth-register-compact .auth-password-control>input{background:var(--background);border:1px solid var(--line);border-radius:9px}
.auth-register-compact .field>input:focus,.auth-register-compact .auth-password-control>input:focus,.phone-line input:focus,.phone-native:focus,.phone-region-trigger:focus-visible,.phone-country-popup input:focus{outline:2px solid var(--accent);outline-offset:1px}
.auth-register-compact .submit{background:var(--accent);color:var(--background);min-height:45px;border:0;border-radius:9px;font-weight:750}
.auth-password-control{position:relative}
.auth-password-control input{padding-right:57px!important}
.password-reveal{position:absolute;right:5px;top:50%;transform:translateY(-50%);height:38px;width:40px;display:grid;place-items:center;padding:7px;border:0;background:transparent;color:var(--muted);border-radius:7px;cursor:pointer}
.password-reveal:hover,.password-reveal:focus-visible{color:var(--accent);background:var(--active)}
.password-reveal svg{width:21px;height:21px;stroke-width:1.8;pointer-events:none}
.password-reveal .eye-closed,.password-reveal[aria-pressed="true"] .eye-open{display:none}
.password-reveal[aria-pressed="true"] .eye-closed{display:block}
.password-strength{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin:8px 0 0}
.password-strength span{height:4px;border-radius:6px;background:var(--line)}
.password-strength[data-strength="1"] span:nth-child(-n+1){background:#b67e6b}
.password-strength[data-strength="2"] span:nth-child(-n+2){background:#b6a56b}
.password-strength[data-strength="3"] span:nth-child(-n+3){background:#70b98d}
.password-strength[data-strength="4"] span:nth-child(-n+4){background:#70b98d}
.phone-component{width:100%;position:relative}
.phone-line{display:flex;align-items:stretch;gap:8px;min-width:0}
.phone-region{position:relative;flex:0 0 122px;min-width:0}
.phone-native{width:100%;min-width:0;max-width:100%;height:44px;border:1px solid var(--line);border-radius:9px;padding:8px;color:var(--text);background:var(--background);font-size:12px}
.phone-component.country-enhanced .phone-native{display:none}
.phone-region-trigger{display:flex;width:100%;align-items:center;gap:7px;justify-content:space-between;min-height:44px;border:1px solid var(--line);border-radius:9px;background:var(--background);color:var(--text);padding:0 10px;cursor:pointer}
.phone-region-trigger[hidden],.phone-country-popup[hidden]{display:none!important}
.phone-region-trigger:hover{border-color:var(--accent)}
.phone-region-flag,.phone-option-flag{font-family:system-ui,'Segoe UI Emoji','Apple Color Emoji',sans-serif;font-size:17px}
.phone-region-dial{font-size:13px;font-weight:750;white-space:nowrap}
.phone-chevron{font-size:15px;color:var(--muted)}
.phone-line>input{flex:1;min-width:0;display:block;width:100%;min-height:44px;border:1px solid var(--line);border-radius:9px;padding:8px 12px;background:var(--background);color:var(--text);font-size:16px}
.phone-country-popup{position:absolute;z-index:100;left:0;top:calc(100% + 7px);width:min(350px,calc(100vw - 105px));padding:9px;background:var(--header);border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 40px var(--overlay)}
.phone-country-popup input{width:100%;height:41px;border:1px solid var(--line);border-radius:8px;background:var(--background);color:var(--text);padding:8px 11px;font-size:14px}
.phone-country-results{max-height:230px;overflow:auto;margin-top:6px;overscroll-behavior:contain}
.phone-country-option{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;min-height:42px;background:transparent;border:0;border-radius:8px;color:var(--text);text-align:left;cursor:pointer}
.phone-country-option:hover,.phone-country-option:focus-visible,.phone-country-option[aria-current="true"]{background:var(--active);color:var(--accent)}
.phone-option-name{flex:1;font-size:12px}.phone-option-dial{font-size:12px;font-weight:650;color:var(--muted)}
.phone-country-empty{margin:8px;color:var(--muted);font-size:12px}
.profile-contact-form .phone-component{max-width:460px}
@media(max-width:700px){.auth-register-compact{padding:21px 17px 18px;border-radius:12px}.auth-register-compact h1{font-size:23px}.phone-region{flex-basis:112px}.phone-country-popup{width:min(315px,calc(100vw - 106px))}}
@media(max-width:380px){.auth-register-compact{padding:18px 12px}.phone-region{flex-basis:100px}.phone-region-trigger{padding:0 7px;gap:3px}.phone-region-dial{font-size:12px}}

/* WebM8 v1.4.1 — shared Compact Center login/register card. */
.auth-main{align-content:center;justify-items:center;padding-block:32px}
.auth-box.auth-panel{width:100%;max-width:460px;background:var(--header);border:1px solid var(--line);border-radius:16px;padding:28px 29px 25px;box-shadow:0 18px 50px var(--overlay)}
.auth-panel h1{font-size:26px;line-height:1.25;font-weight:650;margin:0 0 8px;letter-spacing:-.65px}
.auth-panel .auth-intro{font-size:13px;line-height:1.55;margin-bottom:23px;color:var(--muted)}
.auth-panel .field{margin-bottom:15px}
.auth-panel .field label{font-size:12px;font-weight:600;margin-bottom:7px}
.auth-panel .field>input,.auth-panel .auth-password-control>input{min-height:44px;background:var(--background);border:1px solid var(--line);border-radius:9px}
.auth-panel .field>input:focus-visible,.auth-panel .auth-password-control>input:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.auth-panel .submit{width:100%;min-height:45px;margin-top:9px;border:0;border-radius:9px;background:var(--accent);color:var(--background);font-size:13px;font-weight:750}
.auth-panel .submit:hover{filter:brightness(1.09);background:var(--accent);color:var(--background)}
.auth-panel .auth-switch{text-align:center;margin-top:18px}
.auth-panel .back-link{display:flex;width:max-content;margin:12px auto 0;font-size:12px;color:var(--muted)}
.auth-panel .password-strength[data-strength="0"]{visibility:hidden;margin-top:0;height:0;overflow:hidden}
.auth-panel .password-strength[data-strength="0"] span{height:0}
@media(max-width:700px){.auth-box.auth-panel{max-width:460px;padding:21px 17px 18px;border-radius:12px}.auth-panel h1{font-size:23px}}
@media(max-width:380px){.auth-box.auth-panel{padding:18px 12px}}


/* WebM8 v1.5 — authenticated file sharing, matched to Compact Center */
.files-main{padding-top:34px;padding-bottom:36px;max-width:1280px}
.files-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:24px}
.files-head h1{font-weight:690;font-size:27px;line-height:1.2;letter-spacing:-.8px;margin:0 0 9px}
.files-head p{font-size:13px;color:var(--muted);margin:0}
.files-link-back{padding:8px 11px;border:1px solid var(--line);background:var(--header);border-radius:8px;font-size:12px;white-space:nowrap}
.files-grid{display:grid;grid-template-columns:minmax(270px,410px) minmax(0,1fr);gap:18px;align-items:start}
.files-panel{border:1px solid var(--line);border-radius:15px;background:var(--header);padding:20px;min-width:0}
.files-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}
.files-section-heading h2{font-size:16px;font-weight:700;margin:0}
.files-tag,.files-count{font-size:11px;color:var(--muted);white-space:nowrap}
.files-tag{border:1px solid var(--line);background:var(--active);color:var(--accent);padding:4px 8px;border-radius:6px}
.files-drop{border:1px dashed var(--accent);background:var(--background);border-radius:12px;padding:25px 14px;min-height:170px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:10px;cursor:pointer;transition:background .12s}
.files-drop:hover,.files-drop.dragging{background:var(--active)}
.files-drop svg{width:31px;height:31px;stroke:var(--accent);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.files-drop strong{font-size:13px;font-weight:650;overflow-wrap:anywhere;max-width:100%}
.files-drop small{font-size:11px;color:var(--muted);overflow-wrap:anywhere;max-width:100%}
.files-file-input{display:block;width:100%;margin:11px 0 18px;font-size:12px;color:var(--muted)}
.files-file-input::file-selector-button{border-radius:6px;border:1px solid var(--line);background:var(--header);color:var(--text);padding:6px 8px;margin-right:8px;cursor:pointer;font:inherit}
.files-field{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.files-field label{font-size:12px;font-weight:600}
.files-field select{width:100%;padding:11px;border:1px solid var(--line);background:var(--background);color:var(--text);border-radius:8px;font:inherit;font-size:13px}
.files-button{background:var(--active);color:var(--accent);border:1px solid var(--line);border-radius:8px;padding:10px 13px;cursor:pointer;min-height:40px;font:inherit;font-size:12px;font-weight:600;white-space:nowrap}
.files-button:hover,.files-small-button:hover{filter:brightness(1.12)}
.files-button:disabled{opacity:.6;cursor:not-allowed}
.files-primary{display:block;width:100%;background:var(--accent);color:var(--background);border-color:transparent}
.files-note{font-size:11px;line-height:1.6;color:var(--muted);margin:14px 0 0}
.files-new-link{border:1px solid var(--accent);background:var(--header);padding:15px;border-radius:12px;margin-bottom:18px}
.files-new-link strong{display:block;font-size:13px;margin-bottom:10px}
.files-link-actions{display:flex;gap:8px;align-items:center}
.files-link-actions input{flex:1;min-width:0;padding:12px 10px;border:1px solid var(--line);border-radius:8px;background:var(--background);color:var(--text);font-size:12px}
.files-error{border-color:var(--danger)}.files-success{border-color:var(--accent)}
.files-empty{text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;padding:40px 10px}
.files-empty-symbol{font-size:30px;color:var(--accent);width:58px;height:58px;display:grid;place-items:center;background:var(--active);border-radius:15px}
.files-empty strong{font-size:13px}.files-empty p{font-size:12px;color:var(--muted);margin:0}
.files-list{display:flex;flex-direction:column;gap:10px}
.files-item{padding:15px;border:1px solid var(--line);background:var(--background);border-radius:10px;min-width:0}
.files-item-top{display:flex;align-items:start;gap:10px;min-width:0}
.files-file-icon{display:grid;place-items:center;flex:0 0 32px;height:32px;background:var(--active);color:var(--accent);border-radius:8px;font-size:19px}
.files-item-name{min-width:0;display:flex;flex:1;flex-direction:column;gap:4px}
.files-item-name strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.files-item-name>span{font-size:11px;color:var(--muted);line-height:1.5}
.files-status{border-radius:6px;white-space:nowrap;padding:4px 6px;font-size:10px}
.files-status-good{background:var(--active);color:var(--accent)}
.files-status-off{background:var(--header);color:var(--muted)}
.files-item-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-top:13px}
.files-item-actions form{margin:0}
.files-small-button{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:6px 9px;border:1px solid var(--line);background:var(--header);color:var(--text);border-radius:6px;cursor:pointer;font:inherit;font-size:11px;line-height:1.3}
.files-warn{color:var(--warning)}.files-danger{color:var(--danger)}
@media(max-width:1020px){.files-grid{grid-template-columns:1fr}.files-list-panel{min-width:0}}
@media(max-width:700px){.files-main{padding-top:19px}.files-panel{padding:15px}.files-head{align-items:center}.files-head h1{font-size:22px}.files-head p{max-width:280px}.files-item-top{flex-wrap:wrap}.files-status{margin-left:42px}.files-link-actions{flex-wrap:wrap}.files-link-actions input{flex-basis:100%}}

/* WebM8 v1.6: public upload landing page; consistent with Compact Rail and dark/light. */
.home-upload-main{width:100%;max-width:1040px;padding-top:clamp(36px,7vh,86px);padding-bottom:58px}
.home-upload-intro{text-align:center;margin:0 auto 28px;max-width:710px}
.home-upload-kicker{font-size:10px;letter-spacing:2px;font-weight:750;color:var(--accent)}
.home-upload-intro h1{font-size:clamp(25px,4.2vw,39px);line-height:1.18;letter-spacing:-1.15px;font-weight:720;margin:15px 0 13px}
.home-upload-intro p{font-size:14px;line-height:1.65;color:var(--muted);margin:0}
.home-upload-panel{width:100%;max-width:760px;margin:auto;padding:clamp(19px,3vw,30px);border-radius:18px;box-shadow:0 18px 44px var(--overlay)}
.home-upload-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.home-upload-heading h2{font-size:16px;font-weight:700;margin:0}
.home-expiry{display:inline-flex;align-items:center;padding:6px 10px;border:1px solid var(--line);background:var(--active);color:var(--accent);font-size:11px;font-weight:680;border-radius:7px}
.home-files-drop{min-height:228px;padding:30px 20px;gap:12px}
.home-files-drop strong{font-size:15px}
.home-files-drop small{font-size:12px}
.home-files-drop svg{width:43px;height:43px}
.home-upload-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:12px}
.home-upload-actions p{font-size:11px;line-height:1.7;color:var(--muted);margin:0;max-width:320px}
.home-upload-actions strong{color:var(--text);font-weight:650}
.home-upload-submit{min-height:44px;min-width:194px;width:auto;white-space:nowrap}
.home-upload-footnote{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 21px;color:var(--muted);font-size:11px;line-height:1.6;margin:23px auto 0;max-width:760px}
.home-my-files{text-align:center;margin-top:24px;font-size:12px}.home-my-files a{color:var(--accent);text-decoration:underline;text-underline-offset:4px}
.home-link-success{margin-bottom:23px}.home-link-success small{display:block;font-size:11px;color:var(--muted);margin-top:9px}
.home-honeypot{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
@media(max-width:700px){.home-upload-main{padding-top:35px}.home-upload-intro{margin-bottom:20px}.home-upload-intro p{font-size:12px}.home-upload-panel{border-radius:12px}.home-files-drop{min-height:174px;padding:22px 11px}.home-files-drop strong{font-size:13px}.home-upload-actions{display:flex;flex-direction:column;align-items:stretch}.home-upload-actions p{text-align:center;max-width:none}.home-upload-submit{width:100%}.home-upload-footnote{gap:8px}}

/* WebM8 v1.7: visible file hub and inline share actions. */
.files-new-link .files-link-actions{flex-wrap:wrap}
.files-new-link .files-link-actions input{min-width:min(240px,100%)}
.files-link-actions a.files-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
@media(max-width:700px){.files-link-actions a.files-button{flex:1}}

/* WebM8 1.8: upload speed feedback, independent of slow shared-hosting network. */
.files-upload-progress{margin:15px 0 12px;padding:15px 17px;border:1px solid var(--line);border-radius:12px;background:var(--header)}
.files-upload-progress[hidden],.files-upload-progress button[hidden]{display:none!important}
.files-progress-line,.files-progress-footer{display:flex;align-items:center;justify-content:space-between;gap:14px}
.files-progress-line{font-size:12px;font-weight:600;line-height:1.5}
.files-progress-line span:last-child{font-variant-numeric:tabular-nums;white-space:nowrap}
.files-upload-progress progress{display:block;width:100%;height:9px;appearance:none;-webkit-appearance:none;margin:11px 0 10px;border:0;border-radius:10px;overflow:hidden;background:var(--line)}
.files-upload-progress progress::-webkit-progress-bar{background:var(--line)}
.files-upload-progress progress::-webkit-progress-value{background:var(--accent);border-radius:10px}
.files-upload-progress progress::-moz-progress-bar{background:var(--accent);border-radius:10px}
.files-progress-footer{font-size:11px;color:var(--muted)}
.files-progress-error{color:var(--danger)}
.files-upload-result{margin:0 0 17px;overflow-wrap:anywhere}
@media(max-width:700px){.files-progress-footer{align-items:flex-start}.files-upload-progress{padding:13px}}


/* Hallmark-inspired: WebM8 design-system polish. Preserves original HTML/PHP wiring. */
:root{
  --danger:#ef8796;--warning:#d6b47f;
  --ui-panel:#25222f;--ui-panel-raised:#2a2635;--ui-field:#1c1b25;
  --ui-shadow:0 10px 32px rgba(7,4,17,.16);
  --ui-hairline:rgba(255,255,255,.09);
  --ui-radius:14px;--ui-focus:#d7b4ff;
}
:root[data-theme="light"]{
  --background:#f8f7fb;--header:#ffffff;--text:#292336;
  --muted:#645c72;--line:#ddd8e5;--accent:#64399e;--active:#eee7f8;
  --ui-panel:#ffffff;--ui-panel-raised:#ffffff;--ui-field:#fcfbfe;
  --ui-shadow:0 16px 42px rgba(39,26,60,.095);
  --ui-hairline:rgba(37,27,48,.09);--ui-focus:#7042a7;
  --danger:#a83a51;--warning:#9a6225;
}
:root[data-theme="dark"]{
  --background:#16141d;--header:#211e2a;--text:#f0eef4;
  --muted:#beb5ce;--line:#433a53;--accent:#d6baff;--active:#3c3151;
  --ui-panel:#211e2a;--ui-panel-raised:#272334;--ui-field:#181620;
  --ui-shadow:0 16px 45px rgba(4,3,8,.23);
  --ui-hairline:rgba(255,255,255,.09);--ui-focus:#d7b4ff;
}
html,body{overflow-x:clip}
body{font-size:14px;line-height:1.55}
button, input, select, textarea, summary{font:inherit}
button, a, input, select, textarea, summary, [role="button"]{outline-offset:3px}
:where(button,a,input,select,textarea,summary,[role="button"]):focus-visible{outline:3px solid var(--ui-focus);outline-offset:3px}
:where(button,a,input,select,textarea,summary,[role="button"]):focus:not(:focus-visible){outline:none}
.rail{background:var(--header);border-right:1px solid var(--line);padding-top:14px}
.rail-head{margin-bottom:9px}
.rail-nav{gap:4px}
.rail-link{min-height:44px;font-size:13px;border-radius:10px;font-weight:550}
.rail-link:hover,.rail-link[aria-current="page"]{background:var(--active);color:var(--accent)}
.rail-toggle,.theme-control{border-radius:10px}
.site-header{background:var(--header);border-bottom:1px solid var(--line)}
.header-inner{min-height:66px}
.page-title{font-size:13px;letter-spacing:0;font-weight:600}
.login-link,.profile-trigger{border-radius:10px;background:var(--ui-field)}
.site-footer{margin-top:auto}
.footer-inner{padding-bottom:20px;letter-spacing:0}
.auth-box.auth-panel{border-radius:var(--ui-radius);background:var(--ui-panel);box-shadow:var(--ui-shadow);padding:32px;border:1px solid var(--line)}
.auth-panel h1{font-weight:720;font-size:27px;letter-spacing:-.6px}
.auth-panel .auth-intro{font-size:14px;line-height:1.55}
.auth-panel .field{margin-bottom:17px}
.auth-panel .field label{font-size:13px}
.auth-panel .field>input,.auth-panel .auth-password-control>input{background:var(--ui-field);min-height:47px;border-radius:10px}
.auth-panel .submit{min-height:47px;font-size:14px;border-radius:10px}
.auth-panel .auth-switch{font-size:13px}
.auth-panel .back-link{font-size:13px}
.form-message{border-radius:10px}
.profile-card{box-shadow:var(--ui-shadow);border-radius:var(--ui-radius)}
.profile-dropdown{box-shadow:var(--ui-shadow);border-radius:12px}
.home-upload-main{max-width:1080px;padding-top:clamp(30px,6vh,70px);padding-bottom:50px}
.home-upload-intro{max-width:640px;margin-bottom:25px;text-align:center}
.home-upload-intro h1{font-weight:720;font-size:clamp(28px,3.6vw,38px);letter-spacing:-.9px;margin:0 0 9px;overflow-wrap:break-word;min-width:0}
.home-upload-intro p{font-size:14px;line-height:1.55}
.home-upload-kicker{display:none}
.home-upload-panel{max-width:700px;background:var(--ui-panel);padding:clamp(22px,3vw,32px);border:1px solid var(--line);border-radius:var(--ui-radius);box-shadow:var(--ui-shadow)}
.home-upload-heading{margin-bottom:17px}
.home-upload-heading h2{font-size:16px;font-weight:700}
.home-expiry{padding:7px 10px;border:1px solid var(--line);background:var(--active);color:var(--accent);border-radius:8px;font-size:12px;font-weight:600}
.files-drop{border:1.5px dashed var(--muted);background:var(--background);border-radius:12px;transition:background .14s ease,border-color .14s ease}
.files-drop:hover,.files-drop.dragging{border-color:var(--accent);background:var(--active)}
.files-drop:focus-visible{outline:3px solid var(--ui-focus);outline-offset:3px}
.home-files-drop{min-height:220px;padding:28px 18px;gap:10px}
.home-files-drop svg{width:40px;height:40px}
.home-files-drop strong{font-size:16px;font-weight:700;line-height:1.45}
.home-files-drop .files-drop-link{color:var(--accent);text-decoration:underline;text-underline-offset:3px;font-size:13px;font-weight:600}
.home-files-drop small{font-size:12px}
.webm8-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.files-file-input.webm8-visually-hidden{position:absolute!important}
.home-upload-actions{margin-top:20px;align-items:center;gap:14px}
.home-upload-actions p{font-size:12px;max-width:365px}
.home-upload-submit{min-height:46px;min-width:178px;font-size:13px;font-weight:700;border-radius:10px}
.home-upload-footnote{display:block;text-align:center;max-width:680px;margin:19px auto 0;font-size:12px;line-height:1.55;color:var(--muted)}
.files-upload-progress{background:var(--ui-field);border-radius:10px}
.files-progress-line{font-size:13px}
.files-progress-error{color:var(--danger)}
.files-new-link{border-radius:12px;background:var(--ui-field);border-color:var(--line)}
.files-link-actions{flex-wrap:wrap}
.files-link-actions input{background:var(--ui-field)}
.files-button{border-radius:9px}
.files-item{background:var(--ui-field);border-radius:10px}
.files-panel{border-radius:var(--ui-radius);background:var(--ui-panel)}
.files-grid{grid-template-columns:minmax(260px,390px) minmax(0,1fr)}
@media(max-width:700px){
  .header-inner{min-height:60px}
  .home-upload-main{padding-top:25px;padding-bottom:34px}
  .home-upload-intro{margin-bottom:20px}
  .home-upload-intro h1{font-size:27px}
  .home-upload-panel{padding:18px 15px;border-radius:12px}
  .home-files-drop{min-height:178px;padding:20px 12px}
  .home-files-drop strong{font-size:14px}
  .home-upload-actions{flex-direction:column;align-items:stretch}
  .home-upload-actions p{text-align:center;max-width:none}
  .home-upload-submit{width:100%}
  .auth-box.auth-panel{padding:23px 18px}
  .rail{padding-top:10px}
}
@media(prefers-reduced-motion:reduce){.files-drop{transition:none}}

/* v1.9.4: gentle explanation and account option when free uploads run out. */
.files-login-gate{border:1px solid var(--line);border-radius:12px;background:var(--ui-panel);padding:20px;margin:0 0 19px;display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.files-login-gate strong{flex-basis:100%;font-size:15px}
.files-login-gate p{flex-basis:100%;margin:0;color:var(--muted);font-size:13px}
.files-login-gate .files-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;text-decoration:none}
.files-small-link,.files-inline-login{color:var(--accent);font-size:13px;font-weight:600;text-underline-offset:3px}
.files-progress-login{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-top:12px}
.files-progress-login[hidden]{display:none!important}
.files-progress-login a:not(.files-button){color:var(--accent);text-underline-offset:3px}
/* Short link page: same Hallmark visual language as Files and login. */
.short-main{max-width:900px;padding-top:clamp(34px,7vh,74px)}
.short-intro{text-align:center;max-width:660px;margin:0 auto 25px}
.short-intro h1{font-size:clamp(25px,3.4vw,36px);letter-spacing:-.7px;line-height:1.2;margin:0 0 12px;color:var(--text)}
.short-intro p{margin:0;color:var(--muted);font-size:14px}
.short-card{padding:clamp(20px,4vw,32px);max-width:690px;margin-inline:auto;border-radius:var(--ui-radius);background:var(--ui-panel);border:1px solid var(--line);box-shadow:var(--ui-shadow)}
.short-card h2,.short-history h2{font-size:16px;margin:0 0 15px}
.short-label{display:block;font-size:13px;font-weight:650;margin-bottom:9px}
.short-field{width:100%;min-height:50px;border:1px solid var(--line);border-radius:10px;color:var(--text);background:var(--ui-field);padding:12px 14px}
.short-field:focus{border-color:var(--accent)}
.short-action{margin-top:15px;display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}
.short-action .files-primary{min-width:180px;min-height:46px}
.short-action p,.short-tip{font-size:12px;color:var(--muted);margin:0}
.short-result{margin:0 auto 18px;max-width:690px;border:1px solid var(--line);border-radius:12px;background:var(--ui-panel);padding:20px}
.short-result strong{display:block;margin-bottom:10px}
.short-history{max-width:690px;margin:26px auto 0;padding:22px;background:var(--ui-panel);border:1px solid var(--line);border-radius:var(--ui-radius)}
.short-list{display:grid;gap:10px}
.short-item{padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--ui-field)}
.short-item-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.short-item-head a{font-weight:650;color:var(--accent);overflow-wrap:anywhere}
.short-destination{font-size:12px;color:var(--muted);overflow-wrap:anywhere;line-height:1.45;margin:7px 0}
.short-item-meta{font-size:11px;color:var(--muted)}
.short-secondary{background:transparent;border:1px solid var(--line);color:var(--text);border-radius:9px;padding:7px 10px;cursor:pointer;font-size:12px}
.short-revoke{border:0;background:transparent;color:var(--danger);font-size:12px;cursor:pointer;padding:7px}
.short-empty{padding:22px;text-align:center;color:var(--muted);font-size:13px}
@media(max-width:700px){.short-main{padding-top:30px}.short-card{padding:20px 16px}.short-action{align-items:stretch;flex-direction:column}.short-action .files-primary{width:100%}}

/* WebM8 1.9.5: lời nhắc đăng nhập và thời hạn liên kết, thân thiện với thiết bị nhỏ */
.short-access-note{display:flex;align-items:center;justify-content:space-between;gap:18px;max-width:690px;margin:0 auto 20px;border:1px solid var(--line);border-radius:var(--ui-radius);padding:16px 18px;background:var(--ui-panel)}
.short-access-text{display:grid;gap:5px;min-width:0}
.short-access-text strong{font-size:14px;color:var(--text)}
.short-access-text span{font-size:13px;line-height:1.6;color:var(--muted)}
.short-access-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:42px;padding:10px 17px;color:#fff;background:var(--accent);border-radius:10px;text-decoration:none;font-weight:650;font-size:13px}
.short-access-button:hover{filter:brightness(1.07)}
.short-access-button:focus-visible,.short-lifetime input:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.short-lifetime{border:0;margin:17px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:10px 18px}
.short-lifetime legend{font-weight:650;color:var(--text);font-size:13px;margin-bottom:11px;padding:0}
.short-lifetime label{display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:8px 13px;border:1px solid var(--line);border-radius:10px;background:var(--ui-field);font-size:13px;color:var(--text);cursor:pointer}
.short-lifetime input{accent-color:var(--accent);margin:0}
@media(max-width:600px){.short-access-note{align-items:stretch;flex-direction:column;padding:16px}.short-access-button{width:100%}}

/* WebM8 1.9.7 — Logo stays stationary; gentle light only.
   The seasonal images ALREADY CONTAIN the perspective orbit.  Rotating
   another flattened CSS ellipse on top made it appear to wobble/flip.
   Do not draw a second ring.  The actual artwork stays untouched. */
.rail-head{min-height:92px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;margin-bottom:3px}
.rail-brand{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;overflow:visible;min-height:43px;max-width:100%;gap:0;isolation:isolate;text-decoration:none}
.rail-brand-full{display:none;font-size:17px;letter-spacing:-.5px;line-height:1.25;font-weight:750}
.brand-picture{position:relative;z-index:1;display:block;object-fit:contain;width:52px;height:34px;max-width:none;transform-origin:center;filter:drop-shadow(0 2px 4px rgba(48,119,205,.15));transition:transform .24s ease-out}
.brand-motion .brand-picture{animation:webm8-logo-light 6s ease-in-out infinite}
.brand-motion:hover .brand-picture{transform:translateY(-1px) scale(1.025)}
:root[data-rail="expanded"] .rail-head{min-height:65px;flex-direction:row;justify-content:space-between;padding-left:2px;gap:4px}
:root[data-rail="expanded"] .rail-brand{display:flex;flex-direction:row;gap:4px;min-width:0}
:root[data-rail="expanded"] .brand-picture{width:58px;height:40px}
:root[data-rail="expanded"] .rail-brand-full{display:inline;white-space:nowrap;font-size:14px}
/* Slow light shimmer without rotating or deforming any geometry. */
@keyframes webm8-logo-light{
  0%,100%{filter:brightness(1) drop-shadow(0 2px 4px rgba(48,119,205,.12))}
  50%{filter:brightness(1.065) drop-shadow(0 2px 7px rgba(44,176,224,.29))}
}
@media(max-width:700px){.rail-head{min-height:92px;gap:2px}.brand-picture{width:46px;height:31px}:root[data-rail="expanded"] .rail-head{min-height:62px}}
@media(prefers-reduced-motion:reduce){.brand-motion .brand-picture{animation:none!important}.brand-motion:hover .brand-picture{transform:none}}
/* Seasonal brand settings — visible only to Admin, not ordinary users. */
.brand-admin{max-width:1160px;padding-top:32px;padding-bottom:52px}
.brand-admin h1{font-size:clamp(22px,3vw,30px);line-height:1.2;margin:0 0 9px}
.brand-admin .brand-lede{color:var(--muted);margin:0 0 24px;font-size:13px}
.brand-admin .brand-cols{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:18px;align-items:start}
.brand-admin .brand-panel{border:1px solid var(--line);border-radius:15px;background:var(--header);padding:22px;margin-bottom:16px}
.brand-admin .brand-panel h2{font-size:16px;margin:0 0 14px}
.brand-admin .brand-panel p{color:var(--muted);font-size:12px;margin:6px 0 12px}
.brand-admin .brand-choices{display:flex;flex-wrap:wrap;gap:14px}
.brand-admin .brand-choices label{display:inline-flex;align-items:center;gap:6px;min-height:38px;font-size:13px;cursor:pointer}
.brand-admin .brand-choices input{accent-color:var(--accent)}
.brand-admin .brand-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.brand-admin .brand-option{position:relative;border:1.5px solid var(--line);border-radius:11px;cursor:pointer;background:var(--background);padding:6px 5px 10px;display:grid;grid-template-rows:70px auto;justify-items:center;gap:4px;text-align:center}
.brand-admin .brand-option:has(input:checked){border-color:var(--accent);background:var(--active)}
.brand-admin .brand-option img{width:100%;height:65px;object-fit:contain}
.brand-admin .brand-option span{font-size:12px;line-height:1.25;font-weight:650}
.brand-admin .brand-option input{position:absolute;opacity:0;pointer-events:none}
.brand-admin .brand-option:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:2px}
.brand-admin .brand-select{color:var(--text);background:var(--background);border:1px solid var(--line);padding:9px 11px;border-radius:8px;min-height:42px;font:inherit}
.brand-admin .brand-schedule{display:grid;grid-template-columns:1fr 150px 150px;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}
.brand-admin .brand-schedule:last-child{border-bottom:none}
.brand-admin .brand-schedule label{font-size:12px}
.brand-admin .brand-schedule input{width:100%;min-width:0;font:inherit;font-size:12px;padding:9px 5px;color:var(--text);background:var(--background);border-radius:8px;border:1px solid var(--line)}
.brand-admin .brand-live{position:sticky;top:20px}
.brand-admin .brand-live-inner{height:192px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#111b34,#263657);overflow:hidden}
.brand-admin .brand-live img{width:95%;max-height:160px;object-fit:contain;animation:webm8-logo-light 6s ease-in-out infinite}
.brand-admin .brand-live[data-motion="off"] img{animation:none}
.brand-admin .brand-save{background:var(--accent);color:var(--background);padding:11px 25px;font-weight:750;border-radius:10px;border:0;min-height:45px}
.brand-admin .brand-message{border-radius:10px;padding:11px 14px;margin-bottom:16px;border:1px solid var(--line);background:var(--active)}
@media(max-width:950px){.brand-admin .brand-cols{grid-template-columns:1fr}.brand-admin .brand-live{position:static}.brand-admin .brand-schedule{grid-template-columns:1fr 1fr}.brand-admin .brand-schedule label{grid-column:1/-1}}
@media(max-width:550px){.brand-admin .brand-panel{padding:15px}.brand-admin .brand-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.brand-admin .brand-schedule{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.brand-admin .brand-live img{animation:none!important}}

.brand-admin .brand-timezone{margin-top:8px}

/* WebM8 v1.9.8: Mail ao, simple accessible mailbox UI */
.temp-main{max-width:1060px;padding-top:42px}
.temp-intro{text-align:center;margin-bottom:28px}
.temp-intro h1{font-size:clamp(26px,3.5vw,36px);letter-spacing:-.9px;margin:0 0 5px;line-height:1.25}
.temp-intro p{color:var(--muted);margin:0;font-size:14px}
.temp-notice{max-width:860px;margin:0 auto 18px;padding:13px 16px;border:1px solid var(--line);border-radius:12px;background:var(--header)}
.temp-error{border-color:#c47575;color:var(--text)}
.temp-disabled,.temp-hero{max-width:560px;margin:0 auto;padding:36px 27px;text-align:center;background:var(--header);border:1px solid var(--line);border-radius:18px;box-shadow:0 16px 45px var(--overlay)}
.temp-disabled h2,.temp-hero h2{font-size:22px;margin:12px 0 7px}
.temp-disabled p,.temp-hero p{font-size:14px;line-height:1.7;color:var(--muted);margin:0 0 24px}
.temp-hero small{display:block;font-size:12px;color:var(--muted);margin-top:18px}
.temp-badge{display:inline-block;background:var(--active);border-radius:9px;padding:6px 10px;color:var(--accent);font-size:12px;font-weight:700}
.temp-art{display:grid;place-items:center;width:88px;height:88px;background:var(--active);border-radius:23px;margin:0 auto;color:var(--accent)}
.temp-art svg{width:55px;height:55px}
.temp-primary,.temp-quiet,.temp-refresh{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border-radius:10px;font-size:13px;font-weight:700;border:1px solid var(--line)}
.temp-primary{border-color:transparent;background:var(--accent);color:var(--background)}
.temp-primary:hover{filter:brightness(1.09)}
.temp-quiet,.temp-refresh{background:var(--header);color:var(--text)}
.temp-address-card{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;border:1px solid var(--line);background:var(--header);border-radius:16px;padding:20px 24px;margin-bottom:20px}
.temp-eyebrow{display:block;font-size:12px;color:var(--muted);margin-bottom:7px}
.temp-address-card h2{overflow-wrap:anywhere;font-size:clamp(17px,2.7vw,26px);font-weight:750;letter-spacing:-.3px;margin:0 0 5px}
.temp-address-card p{margin:0;font-size:12px;color:var(--muted)}
.temp-dot{display:inline-block;width:8px;height:8px;border-radius:100%;background:#43ae86;margin-right:5px}
.temp-address-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.temp-address-actions form{margin:0}
.temp-columns{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr);gap:18px}
.temp-mail-list,.temp-reader{min-height:365px;background:var(--header);border:1px solid var(--line);border-radius:15px;overflow:hidden}
.temp-section-head{min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px 19px;border-bottom:1px solid var(--line)}
.temp-section-head h2{font-size:16px;line-height:1.4;margin:0;overflow-wrap:anywhere}
.temp-counter{display:inline-block;min-width:24px;text-align:center;border-radius:50px;padding:2px 7px;background:var(--active);color:var(--accent);font-size:12px}
.temp-refresh{min-height:36px;padding:6px 12px;font-size:12px}
.temp-empty{min-height:275px;display:flex;flex-direction:column;gap:9px;align-items:center;justify-content:center;padding:20px;text-align:center}
.temp-empty svg{height:46px;width:46px;color:var(--accent);margin-bottom:7px}
.temp-empty strong{font-size:15px}.temp-empty span,.temp-reader-empty{color:var(--muted);font-size:13px}
.temp-messages{max-height:550px;overflow-y:auto}
.temp-message{display:flex;flex-direction:column;gap:4px;padding:14px 18px;border-bottom:1px solid var(--line)}
.temp-message:hover,.temp-message.is-active{background:var(--active)}
.temp-message strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.temp-message small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--muted)}
.temp-message time{font-size:11px;color:var(--muted)}
.temp-reader-empty{padding:70px 20px;text-align:center}
.temp-letter{padding:20px}
.temp-letter .temp-from,.temp-letter .temp-date{margin:0 0 8px;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.temp-letter-body{white-space:normal;overflow-wrap:anywhere;font-size:14px;line-height:1.7;margin-top:22px;border-top:1px solid var(--line);padding-top:18px}
.temp-disclaimer{font-size:12px;color:var(--muted);text-align:center;margin-top:17px}
@media(max-width:770px){.temp-main{padding-top:25px}.temp-columns{grid-template-columns:1fr}.temp-address-card{align-items:stretch}.temp-address-actions{width:100%}.temp-address-actions>.temp-primary{flex:1}.temp-mail-list,.temp-reader{min-height:230px}.temp-empty{min-height:155px}}
@media(max-width:420px){.temp-hero,.temp-disabled{padding:30px 17px}.temp-address-card{padding:17px}.temp-address-actions{flex-direction:column;align-items:stretch}.temp-address-actions>*{width:100%}.temp-address-actions form button{width:100%}}
