/* Hallmark v2.0.0 | WebM8 v2.0.0 | shared core bundle; existing design and cascade preserved */
/* Critique: assemble verified final sources in original load order; no visual redesign. */
/* WebM8 v1.9.36: file retention selector (signed-in accounts only) */
.files-period-field{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 16px;color:var(--text);font-size:13px;font-weight:600}
.files-period-select{min-height:40px;min-width:150px;padding:8px 32px 8px 12px;border:1px solid var(--line);border-radius:9px;background:var(--header);color:var(--text);font:inherit;font-size:13px;cursor:pointer}
.files-period-select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:440px){.files-period-field{align-items:flex-start;flex-direction:column;gap:7px}.files-period-select{width:100%}}

/* Hallmark v2.0.0 | WebM8 v1.9.23 | redesign: polish | genre: modern-minimal | built: existing PHP application | brand: preserved */
/* Critique: legacy UI had scattered colour literals, small text and inconsistent focus. Polish preserves the compact rail, workflows, URLs and brand. */
/* Waive: 24b legacy 4px-scale spacing is retained to avoid form regressions in existing routes. */
: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:1220px;--gutter:24px;
--strength-low:#b67e6b;--strength-mid:#b6a56b;--strength-high:#70b98d;
--accent-ink:#16141d;--logo-shadow:rgba(48,119,205,.15);
--logo-shadow-low:rgba(48,119,205,.12);--logo-shadow-high:rgba(44,176,224,.29);
--brand-live-background:#1c1627;--temp-error-border:#c47575;--temp-dot:#43ae86;
--ding-accent:#0ca88a;--ding-accent-soft:rgba(16,185,148,.11);
--ding-primary-ink:#071d17;--ding-primary-hover-ink:#041b15;
--ding-danger-ink:#ffffff;--ding-danger-bg:#b43e46;--ding-danger-hover:#cd4552;
--ding-error-bg:rgba(200,75,86,.09);--ding-error-border:#b85c66}
:root[data-theme="light"]{color-scheme:light;--background:#f3f1fa;--header:#fff;--text:#302443;--muted:#756581;--line:#dfd7e9;--accent:#7345ad;--active:#f0e8fb;--accent-ink:#ffffff}
: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(100dvw - 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:var(--strength-low)}
.password-strength[data-strength="2"] span:nth-child(-n+2){background:var(--strength-mid)}
.password-strength[data-strength="3"] span:nth-child(-n+3){background:var(--strength-high)}
.password-strength[data-strength="4"] span:nth-child(-n+4){background:var(--strength-high)}
.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(100dvw - 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(100dvw - 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:0;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:var(--accent-ink);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 var(--logo-shadow));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 var(--logo-shadow-low))}
  50%{filter:brightness(1.065) drop-shadow(0 2px 7px var(--logo-shadow-high))}
}
@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:var(--brand-live-background);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:var(--temp-error-border);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:var(--temp-dot);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%}}

/* WebM8 v1.9.9 - member mailboxes with persistent addresses */
.temp-mode-tabs{max-width:880px;margin:0 auto 22px;display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.temp-mode-tabs a{display:flex;gap:9px;align-items:center;border-radius:12px;padding:11px 15px;border:1px solid var(--line);background:var(--header);font-size:13px;font-weight:700;color:var(--muted);text-decoration:none}
.temp-mode-tabs a span{font-size:11px;font-weight:500;opacity:.8}
.temp-mode-tabs a[aria-current="page"]{background:var(--active);border-color:var(--accent);color:var(--accent)}
.temp-join-tip{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 auto 22px;max-width:860px;padding:17px 21px;border:1px solid var(--line);background:var(--header);border-radius:15px}
.temp-join-tip strong{font-size:14px}.temp-join-tip p{font-size:12px;color:var(--muted);margin:5px 0 0}
.temp-member-banner{max-width:1050px;margin:0 auto 20px;padding:23px 27px;border-radius:18px;border:1px solid var(--line);background:var(--header)}
.temp-member-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.temp-member-heading h2{font-size:clamp(19px,2.5vw,25px);letter-spacing:-.5px;margin:0 0 6px}
.temp-member-heading p{margin:0;color:var(--muted);font-size:13px}
.temp-limit-chip{background:var(--active);border-radius:9px;padding:9px 11px;font-size:12px;color:var(--accent);white-space:nowrap;font-weight:700}
.temp-member-form{margin-top:20px}.temp-member-form label{display:block;font-weight:700;font-size:13px;margin-bottom:9px}
.temp-name-row{display:flex;flex-wrap:wrap;align-items:stretch;gap:9px}
.temp-name-row input{border:1px solid var(--line);background:var(--background);color:var(--text);border-radius:10px;padding:13px 15px;min-width:120px;flex:1 1 160px;font:inherit;font-size:14px}
.temp-name-row input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.temp-suffix{display:flex;align-items:center;border-radius:10px;background:var(--active);padding:10px 13px;font-size:12px;color:var(--muted)}
.temp-name-row button{min-width:136px}
.temp-name-row button:disabled{opacity:.55;cursor:not-allowed}
.temp-member-form small{display:block;font-size:12px;color:var(--muted);margin-top:9px;line-height:1.5}
.temp-member-grid{display:grid;grid-template-columns:minmax(220px,.76fr) minmax(0,1.24fr);gap:18px;margin-bottom:18px}
.temp-mailboxes{border:1px solid var(--line);border-radius:16px;background:var(--header);overflow:hidden}
.temp-mailbox-items{max-height:390px;overflow:auto}
.temp-mailbox-item{display:flex;gap:11px;padding:14px 17px;border-bottom:1px solid var(--line);text-decoration:none;color:var(--text);font-size:12px;overflow-wrap:anywhere;align-items:center}
.temp-mailbox-item:hover,.temp-mailbox-item.is-active{background:var(--active)}
.temp-mailbox-item span:last-child{min-width:0;flex:1}
.temp-mailbox-item small{display:block;color:var(--muted);font-size:11px;margin-top:4px}
.temp-mailbox-symbol{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:34px;height:34px;border-radius:10px;background:var(--active);color:var(--accent);font-size:16px;font-weight:700}
.temp-member-details .temp-address-card{height:100%;min-height:138px;margin-bottom:0}
.temp-member-invite,.temp-member-empty{border:1px solid var(--line);border-radius:16px;padding:30px;background:var(--header);text-align:center;color:var(--muted)}
.temp-member-empty{border:0}.temp-member-invite h2{color:var(--text);font-size:17px;margin:0 0 10px}.temp-member-invite p,.temp-member-empty p{font-size:13px;margin:5px 0}
@media(max-width:850px){.temp-member-grid{grid-template-columns:1fr}.temp-member-details .temp-address-card{min-height:0}}
@media(max-width:550px){.temp-member-banner{padding:18px}.temp-name-row input,.temp-name-row .temp-primary{flex-basis:100%}.temp-suffix{flex:1}.temp-join-tip{align-items:stretch;flex-direction:column}.temp-mode-tabs a{flex:1;justify-content:center}.temp-mode-tabs a span{display:none}}

/* WebM8 Hallmark v1.9.23: restrained type, predictable controls and accessible focus. */
body{font-size:15px;line-height:1.58}
.page-title{font-size:14px;min-width:0;overflow-wrap:break-word}
:root[data-theme="light"] .short-access-button{color:var(--accent-ink)}
.short-access-button{color:var(--accent-ink)}
:where(.rail-link,.rail-toggle,.theme-control,.login-link,.profile-trigger,.profile-dropdown a,.profile-dropdown button,.files-button,.short-secondary,.short-access-button):focus-visible{outline:3px solid var(--ui-focus);outline-offset:2px}
:where(input,select,textarea){accent-color:var(--accent);caret-color:var(--accent)}
:where(input,select,textarea)[aria-invalid="true"]{border-color:var(--danger)}
:where(input,select,textarea):disabled{opacity:.68;cursor:not-allowed}
:where(button,a)[aria-busy="true"]{cursor:progress}
.main-content{padding-top:32px;padding-bottom:44px}
.site-header{position:relative;z-index:10}
.rail-link{transition:background-color .14s ease,color .14s ease}
.profile-dropdown>a,.profile-dropdown button{transition:background-color .14s ease,color .14s ease}
.site-footer a:focus-visible{outline:3px solid var(--ui-focus);outline-offset:3px;border-radius:3px}
:root[data-theme="dark"] .auth-panel .submit:hover,:root[data-theme="light"] .auth-panel .submit:hover{filter:none}
@media(max-width:700px){body{font-size:15px}.page-title{font-size:13px}.main-content{padding-top:24px;padding-bottom:32px}}
@media(prefers-reduced-motion:reduce){.rail-link,.profile-dropdown>a,.profile-dropdown button{transition:none}}

/* WebM8 1.9.24: thin non-blocking indicator for in-place GET navigation. */
html.webm8-navigating::before{
  content:"";position:fixed;inset:0 auto auto 0;width:35%;height:3px;
  z-index:10000;background:var(--accent);border-radius:0 4px 4px 0;
  animation:webm8-nav-loading 1.15s ease-in-out infinite alternate;
  pointer-events:none;
}
@keyframes webm8-nav-loading{from{transform:translateX(-100%)}to{transform:translateX(300%)}}
@media(prefers-reduced-motion:reduce){html.webm8-navigating::before{animation:none;width:100%}}

/* WebM8 v1.9.26 | Admin area, separate from the account dropdown. */
.rail-admin-section{border-top:1px solid var(--line);padding-top:10px;margin-top:4px}
.rail-admin-section .rail-link{width:100%}
.admin-home{max-width:1160px;padding-top:32px;padding-bottom:48px}
.admin-home-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 25px}
.admin-home h1{font-size:clamp(24px,2.8vw,30px);line-height:1.25;letter-spacing:-.035em;margin:0;font-weight:750}
.admin-home-intro{color:var(--muted);font-size:13px;margin:9px 0 0}
.admin-home-tag{display:inline-flex;border:1px solid var(--line);border-radius:999px;padding:6px 12px;background:var(--header);color:var(--muted);font-size:12px;white-space:nowrap}
.admin-tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.admin-tool{border:1px solid var(--line);border-radius:16px;background:var(--header);padding:22px;display:flex;flex-direction:column;align-items:flex-start;gap:11px;min-width:0}
.admin-tool-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:var(--active);color:var(--accent)}
.admin-tool-icon svg{width:21px;height:21px}
.admin-tool h2{font-size:16px;line-height:1.35;margin:0;font-weight:700}
.admin-tool p{font-size:13px;line-height:1.65;color:var(--muted);margin:0;flex:1}
.admin-tool-links{display:flex;flex-wrap:wrap;align-items:center;gap:9px 15px;margin-top:8px}
.admin-tool-links a{display:inline-flex;align-items:center;min-height:40px;font-weight:650;font-size:13px;text-decoration:underline;text-underline-offset:4px;color:var(--accent)}
.admin-tool-links a:hover{color:var(--text)}
@media(max-width:980px){.admin-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.admin-home{padding-top:22px}.admin-home-head{flex-direction:column;gap:10px}.admin-tool-grid{grid-template-columns:1fr;gap:12px}.admin-tool{padding:19px}.admin-home-tag{font-size:11px}}

/* WebM8 v1.9.35: compact login prompts; external CSS required by strict CSP style-src self. */
.webm8-short-login-line,.webm8-mail-login-line{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px 14px;width:100%;max-width:690px;margin:16px auto 8px;padding:0 12px;text-align:center;color:var(--muted);font-size:13px;line-height:1.5}
.webm8-short-login-line>span,.webm8-mail-login-line>span{display:inline-block}
.webm8-short-login-line>a,.webm8-mail-login-line>a{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:36px;padding:7px 15px;border:1px solid var(--line);border-radius:10px;background:var(--header);color:var(--text);font-weight:650;font-size:13px;text-decoration:none;transition:border-color .15s ease,color .15s ease,background .15s ease}
.webm8-short-login-line>a:hover,.webm8-mail-login-line>a:hover{border-color:var(--accent);color:var(--accent);background:var(--active)}
.webm8-short-login-line>a:focus-visible,.webm8-mail-login-line>a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:420px){.webm8-short-login-line,.webm8-mail-login-line{gap:8px 10px;padding:0 6px}}
/* WebM8 v1.9.51 — sidebar categories only. Uses existing Hallmark tokens. */
.rail-nav { gap: 0; }
.rail-group { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rail-group + .rail-group { border-top: 1px solid var(--line); margin-top: 9px; padding-top: 9px; }
.rail-group-title { display: none; margin: 0; padding: 1px 12px 5px; color: var(--muted); font: 700 11px/1.4 var(--font); letter-spacing: .025em; white-space: nowrap; }
:root[data-rail="expanded"] .rail-group-title { display: block; }
/* The compact rail stays icon-only. Groups remain visible and keyboard reachable. */
:root:not([data-rail="expanded"]) .rail-group-title { display: none; }
@media (max-width: 700px) {
  .rail-group + .rail-group { margin-top: 7px; padding-top: 7px; }
  :root[data-rail="expanded"] .rail-group-title { padding-left: 12px; }
}
/* WebM8 v1.9.22: unified complete footer, independent from legacy footer selectors */
.site-footer{flex-shrink:0;margin-top:auto;border-top:1px solid var(--line);background:var(--header);color:var(--muted)}
.site-footer .webm8-footer-grid{display:grid;grid-template-columns:minmax(230px,1.55fr) repeat(2,minmax(160px,1fr));gap:28px 45px;padding-top:30px;padding-bottom:26px;align-items:start}
.site-footer .webm8-footer-about{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0}
.site-footer .webm8-footer-logo{color:var(--text);font-size:19px;font-weight:800;letter-spacing:-.65px;line-height:1.35}
.site-footer .webm8-footer-logo span{color:var(--accent)}
.site-footer .webm8-footer-about p{font-size:12px;line-height:1.7;max-width:280px;margin:0;color:var(--muted)}
.site-footer .webm8-footer-contact-link{display:block;font-size:12px;font-weight:550;color:var(--text);overflow-wrap:anywhere}
.site-footer .webm8-footer-nav{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
.site-footer .webm8-footer-nav h2{margin:0 0 3px;color:var(--text);font-size:13px;font-weight:700;line-height:1.5}
.site-footer .webm8-footer-nav a{font-size:12px;line-height:1.55;color:var(--muted);padding:2px 0;transition:color .15s ease}
.site-footer a:hover,.site-footer a:focus-visible{color:var(--accent)}
.site-footer .webm8-footer-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 18px;border-top:1px solid var(--line);padding-top:16px;padding-bottom:20px;color:var(--muted);font-size:11px;line-height:1.6}
.site-footer .webm8-footer-bottom-note{color:var(--muted)}
@media(max-width:880px){.site-footer .webm8-footer-grid{grid-template-columns:1.25fr 1fr;gap:26px 22px}.site-footer .webm8-footer-about{grid-column:1/-1}}
@media(max-width:580px){.site-footer .webm8-footer-grid{grid-template-columns:1fr 1fr;gap:22px 18px;padding-top:23px;padding-bottom:21px}.site-footer .webm8-footer-about{grid-column:1/-1}.site-footer .webm8-footer-bottom{padding-block:14px 18px}.site-footer .webm8-footer-bottom-note{display:inline}}
@media(max-width:380px){.site-footer .webm8-footer-grid{grid-template-columns:1fr}.site-footer .webm8-footer-about{grid-column:auto}}

/* Hallmark v2.0.0 | footer: clear content hierarchy, responsive and keyboard-friendly. */
.site-footer .webm8-footer-grid{gap:26px 36px;padding-top:27px;padding-bottom:23px}
.site-footer .webm8-footer-logo{font-size:21px;letter-spacing:-.02em}
.site-footer .webm8-footer-nav h2{font-size:13px;font-weight:700}
.site-footer .webm8-footer-nav a{font-size:13px;line-height:1.5;padding:3px 0;text-decoration-thickness:1px;text-underline-offset:4px}
.site-footer .webm8-footer-contact-link{font-size:13px;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:4px}
.site-footer .webm8-footer-bottom{font-size:12px;line-height:1.6}
@media(max-width:580px){.site-footer .webm8-footer-grid{gap:22px 18px;padding-top:24px;padding-bottom:21px}.site-footer .webm8-footer-bottom{flex-direction:column;align-items:flex-start;gap:4px}}
/* WebM8 v1.9.55: Footer policy links and the two informational pages.
   Scoped selectors retain Hallmark palette and avoid changing existing tools. */
.site-footer .webm8-footer-bottom-right{display:flex;align-items:center;justify-content:flex-end;gap:9px 18px;flex-wrap:wrap;min-width:0}
.site-footer .webm8-footer-legal{display:flex;align-items:center;flex-wrap:wrap;gap:8px 15px}
.site-footer .webm8-footer-legal a{font-size:12px;line-height:1.55;color:var(--muted);text-decoration:none;text-underline-offset:3px}
.site-footer .webm8-footer-legal a:hover,.site-footer .webm8-footer-legal a:focus-visible{color:var(--accent);text-decoration:underline}
@media(max-width:720px){.site-footer .webm8-footer-bottom-right{justify-content:flex-start;align-items:flex-start;flex-direction:column;gap:7px}}
.legal-main{width:100%;max-width:980px;padding-top:36px;padding-bottom:68px}
.legal-hero{margin-bottom:25px}
.legal-hero h1{font-size:clamp(25px,3.4vw,36px);font-weight:730;line-height:1.22;letter-spacing:-.035em;color:var(--text);margin:0 0 9px}
.legal-hero p{max-width:680px;color:var(--muted);font-size:14px;line-height:1.65;margin:0}
.legal-updated{display:inline-block;font-size:12px;color:var(--muted);margin-bottom:12px}
.legal-content{display:grid;gap:11px}
.legal-section{border:1px solid var(--line);border-radius:12px;background:var(--header);padding:22px 25px;min-width:0}
.legal-section h2{color:var(--text);font-size:16px;font-weight:700;line-height:1.4;letter-spacing:-.015em;margin:0 0 10px}
.legal-section p,.legal-section li{font-size:13px;line-height:1.75;color:var(--muted)}
.legal-section p{margin:0 0 10px}
.legal-section p:last-child{margin-bottom:0}
.legal-section ul{margin:6px 0 0;padding-left:19px}
.legal-section li+li{margin-top:6px}
.legal-section a,.legal-footnote a{color:var(--accent);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.legal-section strong{color:var(--text);font-weight:650}
.legal-footnote{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 20px;margin-top:22px;font-size:12px;color:var(--muted)}
@media(max-width:580px){.legal-main{padding-top:24px;padding-bottom:48px}.legal-section{padding:17px 16px}.legal-section h2{font-size:15px}.legal-section p,.legal-section li{font-size:13px}}
/* WebM8 v1.9.56 — compact footer, scoped to the shared footer.
   Loaded after footer.css and legal.css. No changes to tools or forms. */
.site-footer {
  border-top: 1px solid var(--line);
}
.site-footer .webm8-footer-grid,
.site-footer .webm8-footer-bottom {
  max-width: 1100px;
}
.site-footer .webm8-footer-grid {
  display: grid;
  grid-template-columns: minmax(185px, 1fr) minmax(360px, 1.6fr) minmax(170px, .85fr);
  column-gap: 36px;
  row-gap: 18px;
  align-items: start;
  padding-top: 27px;
  padding-bottom: 24px;
}
.site-footer .webm8-footer-about {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.site-footer .webm8-footer-logo {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 800;
}
.site-footer .webm8-footer-contact-link {
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.site-footer .webm8-footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}
.site-footer .webm8-footer-nav h2 {
  font-size: 12px;
  letter-spacing: .01em;
  margin: 0 0 7px;
  font-weight: 700;
}
.site-footer .webm8-footer-nav a {
  font-size: 12px;
  line-height: 1.4;
  padding: 2px 0;
  text-decoration: none;
}
.site-footer .webm8-footer-nav a:hover,
.site-footer .webm8-footer-nav a:focus-visible,
.site-footer .webm8-footer-legal a:hover,
.site-footer .webm8-footer-legal a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Two short columns replace the very tall list of services. */
.site-footer .webm8-footer-nav[aria-label="Dịch vụ WebM8"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 5px;
  align-content: start;
}
.site-footer .webm8-footer-nav[aria-label="Dịch vụ WebM8"] h2 {
  grid-column: 1 / -1;
}
.site-footer .webm8-footer-nav[aria-label="Dịch vụ WebM8"] a {
  min-width: 0;
  overflow-wrap: break-word;
}
.site-footer .webm8-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  padding-bottom: 17px;
  font-size: 11px;
  line-height: 1.6;
}
.site-footer .webm8-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px 22px;
}
.site-footer .webm8-footer-legal a {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  text-decoration: none;
}
/* Keep the independent rail scrollbar but make it visually quiet. */
.rail { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.rail::-webkit-scrollbar { width: 5px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
@media (max-width: 1130px) {
  .site-footer .webm8-footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 25px;
    row-gap: 19px;
  }
  .site-footer .webm8-footer-about {
    grid-column: 1 / -1;
  }
}
@media (max-width: 680px) {
  .site-footer .webm8-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
    padding-top: 23px;
    padding-bottom: 23px;
  }
  .site-footer .webm8-footer-about {
    grid-column: auto;
  }
  .site-footer .webm8-footer-nav[aria-label="Dịch vụ WebM8"] {
    column-gap: 14px;
    row-gap: 4px;
  }
  .site-footer .webm8-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .site-footer .webm8-footer-legal { justify-content: flex-start; gap: 8px 18px; }
}
@media (max-width: 370px) {
  .site-footer .webm8-footer-nav[aria-label="Dịch vụ WebM8"] {
    grid-template-columns: minmax(0,1fr);
  }
}

/* WebM8 v1.9.58 — text-only UI cleanup.
   Hide decorative descriptions and help notes across page templates.
   Never hide validation, alerts, interactive results, quotas, labels,
   selected file names, progress, or full legal-policy content. */

/* Shared page headers and introductory descriptions. */
.webm8-fx-main .webm8-fx-heading > p,
.home-upload-intro > p,
.short-intro > p,
.temp-intro > p,
.m8-ms-heading > div > p,
.otp-intro > div > p,
.ding-mini-hero > div > p,
.files-head > div > p,
.fb-intro-main > p,
.note-intro > p,
.am-heading > div > p,
.ding-history-head > div > p,
.legal-hero > p,
.auth-main .auth-intro,
.admin-home-intro,
.brand-admin > .brand-lede {
  display: none !important;
}

/* Homepage currency utility. The current amount and conversion remain visible. */
.webm8-fx-result > small#webm8-fx-meta {
  display: none !important;
}

/* File sharing and personal files. Keep selection, upload progress and errors. */
.home-upload-footnote,
.home-upload-action > p,
.home-upload-actions > p,
.home-link-success > small,
.home-upload-submit-row > p,
.home-upload-form > small,
.home-upload-form > p,
.files-main .files-note,
.files-empty > p {
  display: none !important;
}

/* Link shortener: hide descriptive notes only, not access warnings. */
.short-action > p,
.short-tip {
  display: none !important;
}

/* Notes: retain form labels, link, password UI and empty list status. */
.note-editor .note-fields small,
.note-editor .note-action > .note-muted,
.note-created > .note-muted,
.note-login-line {
  display: none !important;
}

/* Temporary mail: retain expiration countdown, mailbox and notices. */
.temp-hero > p,
.temp-hero > small,
.temp-disclaimer,
.temp-join-tip p,
.temp-hub-first > p,
.temp-hub-empty > p,
.temp-empty > p {
  display: none !important;
}

/* Outlook: no marketing description or helper beneath the token form. */
.m8-ms-connect > h2 + p,
.m8-ms-reader-empty > p {
  display: none !important;
}

/* Phone top-ups: retain order/payment warnings and actual prices. */
.ding-mini-hero .ding-security-note,
.ding-history-head .ding-muted {
  display: none !important;
}

/* 2FA: keep the generated code, timer, error feedback and controls. */
.otp-main .otp-hint,
.otp-main .otp-code-caption,
.otp-main .otp-private-label,
.otp-main .otp-safe {
  display: none !important;
}

/* Facebook: show input, remaining guest quota, progress and result. */
.fb-main .fb-kicker,
.fb-main .fb-limit-chip,
.fb-main .fb-card-heading > .fb-field-meta,
.fb-main .fb-input-hint,
.fb-main .fb-year-panel > .fb-year-help {
  display: none !important;
}

/* Account, profile and administration. Keep form errors and status messages. */
.profile-main .field-hint,
.profile-page .field-hint,
.auth-main .field-hint,
.admin-home-intro,
.brand-admin .brand-panel > p:not(#brand-preview-label),
.am-heading > div > p,
.admin-home .admin-tool > p,
.am-setup > p:not(:last-child),
.admin-home .admin-tool-card > p,
.admin-home .admin-card > p,
.admin-home .admin-shortcut > p {
  display: none !important;
}

/* Policies: do not hide the legal content — only the one-line header description. */
.legal-main .legal-hero > p,
.site-footer .webm8-footer-about > p {
  display: none !important;
}
