:root{--ink:#17243a;--muted:#738096;--line:#e7ebf2;--paper:#fff;--bg:#f5f7fb;--blue:#4569e8;--blue-dark:#3555c8;--teal:#20a68a;--danger:#cf4b55;--warning:#b87818;--shadow:0 8px 28px rgba(29,47,82,.06);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink)}*{box-sizing:border-box}body{margin:0;background:var(--bg);min-height:100vh;font-size:14px}.topbar{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100% - 1440px)/2));background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-weight:750;font-size:17px;text-decoration:none;white-space:nowrap}.logo{width:34px;height:34px;object-fit:contain;border-radius:9px}.topnav,.member-actions{display:flex;align-items:center;gap:22px}.topnav a,.topnav form,.member-actions form{color:#56647a;text-decoration:none}.topnav a:hover,.sidenav a:hover{color:var(--blue)}.topnav form,.member-actions form{margin:0}.link-button,.text-button{font:inherit;border:0;background:none;color:inherit;cursor:pointer;padding:0}.link-button:hover,.text-button:hover{text-decoration:underline;color:var(--blue)}.admin-shell{max-width:1440px;margin:auto;display:grid;grid-template-columns:210px minmax(0,1fr);gap:26px;padding:28px 24px}.sidenav{display:flex;flex-direction:column;gap:5px;position:sticky;top:90px;height:max-content}.sidenav a{padding:12px 15px;border-radius:10px;color:#5c6b80;text-decoration:none}.sidenav a:first-child{color:var(--blue);background:#eaf0ff;font-weight:650}.content{min-width:0;padding-bottom:40px}.member-content{max-width:1000px;margin:0 auto;padding:38px 24px 56px}.footer{color:#9aa4b5;font-size:11px;text-align:center;padding:18px 20px 32px}.page-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:5px 0 23px}.page-title h1,.search-hero h1,.login-card h1{font-size:27px;letter-spacing:-.5px;margin:2px 0 7px}.page-title p{margin:0}.eyebrow{text-transform:uppercase;letter-spacing:1.5px;color:#8290a6;font-size:10px;font-weight:750;margin:0 0 5px!important}.muted{color:var(--muted)}.tiny{font-size:12px}.block{display:block;margin-top:4px}.panel,.stat-card{background:var(--paper);border:1px solid var(--line);border-radius:15px;padding:22px;box-shadow:var(--shadow)}.panel h2{font-size:16px;margin:0 0 16px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.stat-card{min-height:115px;display:flex;flex-direction:column;gap:7px}.stat-card span{color:#718097;font-size:12px}.stat-card strong{font-size:29px;line-height:1.05;letter-spacing:-.5px}.stat-card small{font-size:11px;color:#98a3b4}.warning-card{border-color:#f0dfbf}.warning-card strong{color:#b87818}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.section-heading h2{margin:0}.section-heading p{font-size:12px;margin:5px 0 0}.section-heading a{color:var(--blue);text-decoration:none}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-card{display:flex;align-items:center;gap:12px;background:#f7f8fc;border:1px solid var(--line);border-radius:11px;padding:13px;text-decoration:none;color:var(--ink)}.quick-card b{font-size:16px;color:var(--blue);background:#e7edff;width:34px;height:34px;display:grid;place-items:center;border-radius:9px}.event-row{display:flex;gap:10px;border-top:1px solid #f0f2f6;padding:12px 0}.event-row p{margin:3px 0;color:#697890;font-size:12px}.event-row small{color:#9aa4b5}.status-dot{width:8px;height:8px;margin-top:5px;background:#e6a644;border-radius:50%;flex:none}.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid transparent;border-radius:9px;padding:10px 15px;font:inherit;font-weight:650;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s;white-space:nowrap}.primary{background:var(--blue);color:#fff}.primary:hover{background:var(--blue-dark)}.secondary{background:#fff;border-color:var(--line);color:#485770}.secondary:hover{background:#f7f8fc}.danger{background:var(--danger);color:white}.danger-outline{background:white;border-color:#f0cdd0;color:var(--danger)}.download{background:#eaf6f3;color:#13866f;border-color:#d4eee8;padding:9px 16px}.download:hover{background:#d9f0ea}.wide{width:100%}.tiny-button{font-size:12px;padding:6px 9px}.button-row{display:flex;align-items:center;gap:9px}.table-wrap{overflow:auto;width:100%}table{width:100%;border-collapse:collapse;min-width:650px}th,td{text-align:left;padding:12px 10px;border-bottom:1px solid #edf0f5;vertical-align:middle}th{font-size:11px;font-weight:650;color:#8591a4;white-space:nowrap}td{font-size:13px}td a{color:var(--blue);text-decoration:none}tbody tr:last-child td{border-bottom:0}.empty-cell{text-align:center;padding:30px;color:#96a1b1}.tag{display:inline-flex;padding:4px 8px;border-radius:99px;font-size:11px;font-weight:650;white-space:nowrap}.good{background:#e9f7f2;color:#19836d}.danger.tag{background:#fff0f1;color:#b94450}.warning{background:#fff5e5;color:#a56d19}.neutral{background:#eff1f5;color:#707b8b}.row-actions{display:flex;flex-wrap:wrap;gap:7px 10px;max-width:235px;font-size:11px}.row-actions form{display:inline}.text-button{color:#4e607a;font-size:11px}.text-danger{color:var(--danger)!important;font-size:11px}.inline-search{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.inline-search input,.inline-search select{max-width:210px}.rename-form{display:flex;gap:5px;min-width:320px}.rename-form input{flex:1;min-width:100px}input,select,textarea{font:inherit;color:var(--ink);border:1px solid #dfe4ed;border-radius:9px;background:white;padding:10px 11px;outline:none;min-height:40px}input:focus,select:focus,textarea:focus{border-color:#93a8f5;box-shadow:0 0 0 3px rgba(69,105,232,.11)}label{display:flex;flex-direction:column;gap:7px;font-weight:600;font-size:13px}label small{font-weight:400;color:#8995a8}.form-panel{max-width:640px}.stack{display:flex;flex-direction:column;gap:17px}.upload-panel{margin-bottom:20px}.upload-form{display:grid;grid-template-columns:minmax(300px,1fr) 2fr auto;align-items:center;gap:15px}.upload-drop{position:relative;display:flex;align-items:center;gap:10px;min-height:80px;padding:14px;background:#f7f8fc;border:1px dashed #bdc8df;border-radius:11px;cursor:pointer}.upload-drop .upload-icon{font-size:23px;color:var(--blue)}.upload-drop strong{font-size:12px}.upload-drop small{font-weight:400;font-size:10px;color:var(--muted)}.upload-drop input{position:absolute;inset:0;opacity:0;cursor:pointer}.check-label{display:flex;flex-direction:row;align-items:flex-start;font-weight:400;font-size:12px;color:#65738a}.check-label input{min-height:auto;margin-top:1px}.table-actions{padding-top:13px}.messages{display:grid;gap:8px;margin-bottom:14px}.notice{border-radius:9px;background:#edf4ff;color:#355794;padding:11px 14px;font-size:13px}.notice.success{background:#e9f7f2;color:#147b66}.notice.error{background:#fff0f1;color:#a83c48}.notice.warning{background:#fff5e5;color:#996618}.pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;color:#7d899c;font-size:12px;margin-top:15px}.pagination a{color:var(--blue);text-decoration:none}.login-wrap{min-height:55vh;display:grid;place-items:center}.login-card{width:min(100%,410px);background:white;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:18px;padding:33px}.login-card h1{font-size:24px}.login-card .tiny{display:block;margin-top:20px}.login-logo{width:50px;height:50px;object-fit:contain;margin-bottom:14px}.search-hero{text-align:center;padding:38px 0 40px}.search-hero h1{font-size:32px;margin:9px 0}.search-hero>p{margin:8px 0}.search-form{display:flex;max-width:650px;margin:24px auto 0;gap:9px}.search-form input{flex:1;min-height:50px;padding:12px 16px;border-radius:12px}.search-form button{padding:12px 23px}.member-content .section-heading{margin:15px 0}.member-file{display:flex;align-items:center;gap:13px;background:white;border:1px solid var(--line);padding:15px 17px;border-radius:12px;margin-bottom:9px}.file-mark{display:grid;place-items:center;background:#eff3ff;color:var(--blue);border-radius:10px;width:39px;height:39px;font-size:20px;flex:none}.file-main{flex:1;min-width:0}.file-name{font-weight:650;overflow-wrap:anywhere}.file-meta{color:#8b97a9;font-size:11px;margin-top:6px}.count-pill{color:#748198;background:white;border:1px solid var(--line);border-radius:99px;padding:6px 10px;font-size:11px}.empty{text-align:center;background:white;border:1px dashed #dce2ed;border-radius:14px;padding:42px 15px;color:#8a96a8}.empty h3{color:#4c5b72;margin:0 0 8px}.empty p{margin:0;font-size:13px}.empty-icon{font-size:30px;color:#98a8cb;margin-bottom:8px}.poster{margin:0 auto 20px;max-width:920px}.poster img{display:block;width:100%;max-height:280px;object-fit:cover;border-radius:14px}.announcement{display:flex;gap:13px;padding:14px 17px;border:1px solid #dce6ff;background:#f1f5ff;border-radius:12px;color:#536582;font-size:13px}.announcement strong{color:#4b65b7;white-space:nowrap}.member-content .search-hero{padding-top:35px}.member-content .pagination{justify-content:center;padding:16px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.settings-grid>.panel{align-self:start}.settings-preview{display:block;object-fit:contain;margin-top:8px;border:1px solid var(--line);border-radius:8px}.logo-preview{width:74px;height:74px}.poster-preview{width:min(100%,340px);max-height:120px}.confirm-card{max-width:620px}.confirm-card h1{font-size:22px}.confirm-list{max-height:300px;overflow:auto;line-height:1.9;color:#526078;padding-left:21px}.top-gap{margin-top:18px}.tab-links{display:flex;align-items:center;gap:7px}.tab-links a{padding:8px 12px;color:#738096;text-decoration:none;border-radius:8px}.tab-links .selected{color:var(--blue);background:#eaf0ff;font-weight:650}.chart-legend{display:flex;gap:15px;margin:0 0 10px;color:#687891;font-size:11px}.chart-legend span:first-child{color:#4569e8}.chart-legend span:nth-child(2){color:#20a68a}.chart-legend span:last-child{color:#b67bce}.bar-cell{display:flex;align-items:center;gap:8px}.bar-cell span{min-width:25px}.bar-cell i{display:block;height:7px;background:#4569e8;border-radius:9px;max-width:180px}.download-bar i{background:#b67bce}.tiny-button{font-size:11px}.member-actions{font-size:12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1050px){.topnav{gap:12px}.admin-shell{grid-template-columns:175px minmax(0,1fr);gap:16px;padding:20px 16px}.sidenav a{padding:10px}.stat-grid{grid-template-columns:repeat(3,1fr)}.upload-form{grid-template-columns:1fr 1fr}.upload-form>.button{justify-self:start}.settings-grid{grid-template-columns:1fr}}
@media(max-width:760px){body{font-size:14px}.topbar{height:58px;padding:0 15px}.brand{font-size:15px}.topnav{display:flex;gap:0}.topnav>a{display:none}.topnav form{display:block}.admin-shell{display:block;padding:13px 12px}.sidenav{position:static;flex-direction:row;overflow:auto;gap:5px;margin-bottom:15px;padding-bottom:4px}.sidenav a{white-space:nowrap;font-size:11px;padding:9px 11px;background:white;border:1px solid var(--line)}.sidenav a:first-child{background:#eaf0ff}.member-content{padding:22px 14px 38px}.page-title{align-items:flex-start;margin:5px 0 16px}.page-title h1{font-size:22px}.page-title>.button-row{flex-direction:column;align-items:stretch}.stat-grid{grid-template-columns:repeat(2,1fr);gap:9px}.stat-card{min-height:94px;padding:14px}.stat-card strong{font-size:25px}.two-col{grid-template-columns:1fr;gap:12px}.panel{padding:16px;border-radius:13px}.upload-form{grid-template-columns:1fr}.upload-drop{min-height:72px}.section-heading{align-items:flex-start;flex-direction:column}.section-heading>.inline-search{width:100%}.section-heading .inline-search input{flex:1;min-width:120px}.quick-grid{grid-template-columns:1fr 1fr}.search-hero{padding:25px 0 28px}.search-hero h1{font-size:26px}.search-form{margin-top:18px}.search-form input{min-width:0}.search-form button{padding:10px 15px}.member-file{padding:12px;gap:9px}.file-mark{width:34px;height:34px}.download{padding:8px 10px;font-size:12px}.file-name{font-size:13px}.file-meta{font-size:10px}.login-card{padding:25px 21px}.settings-grid{gap:12px}.page-title .button-row{gap:6px}.row-actions{max-width:180px}.footer{font-size:10px}.chart-legend{flex-wrap:wrap}.confirm-card{padding:20px}}
@media(max-width:440px){.page-title{gap:8px}.page-title .button{font-size:11px;padding:8px}.page-title>.button-row{flex:none}.member-actions{gap:9px}.stat-card span{font-size:11px}.stat-card small{font-size:10px}.search-form{gap:6px}.search-form input{font-size:13px}.announcement{font-size:12px}.member-file .button{white-space:normal}}.member-bar i{background:#20a68a}.upload-drop.is-dragover{border-color:var(--blue);background:#edf2ff;box-shadow:0 0 0 3px rgba(69,105,232,.1)}

/* Give the member workflow comfortable touch targets on real phones. */
@media(max-width:600px){
  .login-wrap{min-height:calc(100vh - 125px);padding:12px 0}
  .login-card{width:100%;padding:26px 22px;border-radius:16px}
  .login-card input{min-height:48px;font-size:16px}
  .login-card .button{min-height:48px;font-size:16px}
  .search-form{gap:8px}
  .search-form input{min-height:50px;font-size:16px}
  .search-form .button{min-height:48px;padding:11px 17px}
  .member-file{min-height:70px;padding:12px 11px;gap:9px}
  .member-file .download{min-width:76px;min-height:46px;padding:10px 12px;font-size:14px}
  .pagination a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:#fff}
  .member-content .section-heading{gap:9px}
}
@media(max-width:360px){
  .member-content{padding-left:10px;padding-right:10px}
  .search-form{flex-direction:column}
  .search-form .button{width:100%}
  .member-file{gap:7px}
  .member-file .download{min-width:68px;padding:8px;font-size:13px}
}

/* Keep the admin uploader readable when its available width is limited. */
.upload-form{min-width:0}
.upload-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:124px;text-align:center}
.upload-drop .upload-icon{display:block;font-size:25px;line-height:1}
.upload-drop strong{max-width:100%;line-height:1.45;text-align:center;overflow-wrap:anywhere}
.upload-drop small{display:block;width:100%;min-width:0;font-size:11px;line-height:1.5;text-align:left;overflow-wrap:anywhere}
.check-label{min-width:0;gap:8px;line-height:1.5}
.check-label input{flex:none;margin-top:2px}
.check-label span{min-width:0;overflow-wrap:anywhere}
@media(max-width:1050px){.upload-form{grid-template-columns:minmax(0,1fr)}.upload-form>.button{justify-self:start}}
.brand-image-field{min-width:0}.brand-upload-note{line-height:1.55}.brand-file-name{overflow-wrap:anywhere}.brand-new-preview[hidden]{display:none}
.member-expiry-card{max-width:920px;margin:0 auto 18px;padding:13px 17px;display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:6px 12px;background:#fff;border:1px solid #dce6ff;border-radius:12px}.member-expiry-card span{font-size:12px;color:#64728a}.member-expiry-card strong{font-size:15px;color:#3555c8;white-space:nowrap}.member-expiry-card small{justify-self:end;color:#8793a6;font-size:11px}@media(max-width:600px){.member-expiry-card{grid-template-columns:auto 1fr;gap:5px 9px;padding:12px 14px}.member-expiry-card small{grid-column:1/-1;justify-self:start;line-height:1.5}}

/* Make file selection obvious before the administrator starts the upload. */
.upload-drop.has-files{border-style:solid;border-color:#72c8b2;background:#eef9f6;box-shadow:0 0 0 3px rgba(32,166,138,.09)}
.upload-drop.has-files .upload-icon{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#20a68a;color:#fff;font-size:17px}
.upload-selection{display:grid;width:100%;gap:4px;padding:10px 12px;border:1px solid #cceae2;border-radius:9px;background:#fff;color:#176f5e;text-align:left}
.upload-selection[hidden]{display:none}
.upload-selection b{font-size:12px}
.upload-selection span{font-size:11px;font-weight:400;line-height:1.5}
.upload-file-names{max-height:52px;overflow:auto;color:#66778b;overflow-wrap:anywhere}
.button:disabled{opacity:.48;cursor:not-allowed}
.search-hero.search-only{padding-bottom:18px}
.search-rule{max-width:650px;margin:0 auto 18px;line-height:1.6}

/* V1.1 member poster and quota presentation. The image stays behind the
   content so search results and controls remain sharp and touchable. */
body.member-page{background:#111827;position:relative;isolation:isolate}
body.member-page::before{content:"";position:fixed;inset:-18px;z-index:-2;background-image:var(--member-poster);background-size:cover;background-position:var(--member-poster-position,center);filter:blur(var(--member-poster-blur,2px));transform:scale(1.04);}
body.member-page::after{content:"";position:fixed;inset:0;z-index:-1;background:rgba(8,18,36,var(--member-poster-overlay,.18));pointer-events:none}
body.member-page .topbar{background:rgba(255,255,255,.9);backdrop-filter:blur(12px)}
body.member-page .member-content{max-width:1040px}
.brand .logo{width:auto;max-width:min(180px,36vw);height:50px;object-fit:contain;border-radius:7px}
.member-topbar{min-height:84px}
.member-topbar .brand .logo{max-width:220px;height:72px}
.member-download-quota{width:max-content;max-width:100%;margin:0 auto 14px;display:flex;align-items:baseline;gap:7px;padding:8px 13px;border:1px solid rgba(220,230,255,.95);border-radius:999px;background:rgba(255,255,255,.9);box-shadow:0 5px 18px rgba(20,35,70,.08);color:#56647a;font-size:12px}
.member-download-quota strong{font-size:18px;color:var(--blue)}
.member-download-quota small{color:#8793a6}
.upload-progress{grid-column:1/-1;padding:10px 12px;background:#f7f9ff;border:1px solid #dce5ff;border-radius:10px}
.upload-progress[hidden]{display:none}
.upload-progress-head{display:flex;justify-content:space-between;gap:10px;color:#56647a;font-size:12px;margin-bottom:6px}
.upload-progress progress{width:100%;height:9px;accent-color:var(--blue)}
.upload-over-limit{color:var(--danger)!important;font-weight:650!important}
@media(max-width:600px){.brand .logo{max-width:180px;height:62px}.member-topbar{min-height:86px}.member-topbar .brand .logo{width:92px;max-width:92px;height:64px}.member-download-quota{margin-bottom:10px}.member-page .member-topbar{padding-left:10px;padding-right:10px}.member-page .member-content{padding-top:18px}}

/* V1.2 member surface: one dark glass visual system over the poster. */
body.member-page{color:#f7f9ff;background:#091224}
body.member-page::before{filter:blur(var(--member-poster-blur,2px));transform:scale(1.035);opacity:.95}
body.member-page::after{background:linear-gradient(180deg,rgba(4,10,24,.78) 0%,rgba(5,13,30,.42) 28%,rgba(5,13,30,.58) 58%,rgba(4,9,22,.9) 100%)}
body.member-page .topbar{background:linear-gradient(180deg,rgba(4,10,24,.72),rgba(4,10,24,.3));border-bottom:1px solid rgba(255,255,255,.14);backdrop-filter:blur(14px);color:#fff}
.member-topbar{height:auto;min-height:74px;padding-top:max(6px,env(safe-area-inset-top));padding-bottom:6px}
.member-topbar .brand{color:#fff;gap:9px;padding:4px 13px 4px 6px;background:rgba(4,10,24,.38);border:1px solid rgba(255,255,255,.2);border-radius:16px;box-shadow:0 8px 26px rgba(0,0,0,.13)}
.member-topbar .brand .logo{width:94px;height:62px;max-width:none;object-fit:contain;border-radius:11px;background:#0b1528;border:1px solid rgba(175,205,255,.3);box-shadow:0 4px 16px rgba(0,0,0,.24)}
.member-topbar .brand>span{font-size:16px;color:#fff;text-shadow:0 1px 12px rgba(0,0,0,.4)}
.member-topbar .member-menu{position:relative;flex:none}
.member-menu summary{list-style:none;display:flex;align-items:center;gap:7px;min-height:44px;padding:5px 9px;border:1px solid rgba(255,255,255,.2);border-radius:14px;background:rgba(4,10,24,.4);color:#fff;cursor:pointer}
.member-menu summary::-webkit-details-marker{display:none}
.member-avatar{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:rgba(255,255,255,.2);font-size:12px;font-weight:750}
.member-menu-label{font-size:12px;white-space:nowrap}
.member-menu-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:8;width:210px;padding:14px;border:1px solid rgba(255,255,255,.18);border-radius:15px;background:rgba(10,20,40,.94);box-shadow:0 16px 40px rgba(0,0,0,.3);backdrop-filter:blur(18px);display:grid;gap:7px;color:#fff}
.member-menu-panel strong{font-size:14px}.member-menu-panel span{font-size:12px;color:#c5d0e4}.member-logout{min-height:40px;margin-top:4px;border:1px solid rgba(255,255,255,.2);border-radius:9px;background:rgba(255,255,255,.11);color:#fff;font:inherit;cursor:pointer}.member-logout:hover{background:rgba(255,255,255,.2)}
body.member-page .member-content{max-width:960px;padding-top:24px;color:#f7f9ff}
.member-status-strip{display:flex;align-items:center;gap:10px;max-width:680px;margin:0 auto 14px;padding:10px 13px;border:1px solid rgba(255,255,255,.2);border-radius:14px;background:rgba(10,22,43,.58);box-shadow:0 10px 28px rgba(0,0,0,.13);backdrop-filter:blur(14px)}
.member-status-icon{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:50%;background:rgba(49,205,166,.18);color:#80e6c6;font-weight:800}.member-status-icon.is-warning{background:rgba(242,182,74,.2);color:#ffd17a}.member-status-strip div{display:flex;align-items:baseline;gap:8px;min-width:0}.member-status-label{font-size:12px;color:#bdc9dc}.member-status-strip strong{font-size:14px;color:#fff;white-space:nowrap}.member-status-state{margin-left:auto;font-size:11px;color:#8fe8cc}.member-status-state.is-warning{color:#ffd17a}
body.member-page .announcement{background:rgba(11,25,48,.62);border-color:rgba(255,255,255,.18);color:#d3dced;box-shadow:0 10px 28px rgba(0,0,0,.1);backdrop-filter:blur(13px)}
body.member-page .announcement strong{color:#fff}
body.member-page .search-hero{padding:30px 0 25px;text-align:center}
body.member-page .search-hero .eyebrow{color:#bed0ef}
body.member-page .search-hero h1{color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.35);font-size:clamp(28px,4vw,38px);line-height:1.2}
body.member-page .search-form{max-width:760px;margin:22px auto 0;padding:6px;gap:6px;border:1px solid rgba(255,255,255,.22);border-radius:17px;background:rgba(8,20,40,.58);box-shadow:0 14px 36px rgba(0,0,0,.18);backdrop-filter:blur(13px)}
body.member-page .search-form input{border:0;background:rgba(255,255,255,.97);border-radius:12px;color:#17243a}
body.member-page .search-form button{min-width:86px;border-radius:12px}
body.member-page .section-heading h2{color:#fff}body.member-page .section-heading p{color:#c3cde0}.count-pill{background:rgba(10,22,43,.64);border-color:rgba(255,255,255,.2);color:#dae3f2}
body.member-page .member-file{background:rgba(9,22,43,.7);border-color:rgba(255,255,255,.18);box-shadow:0 10px 25px rgba(0,0,0,.13);backdrop-filter:blur(10px)}
body.member-page .file-name{color:#fff}body.member-page .file-meta{color:#bec9da}.file-mark{background:rgba(87,121,231,.25);color:#dce5ff}
body.member-page .empty{background:rgba(9,22,43,.68);border-color:rgba(255,255,255,.22);color:#c3cde0;box-shadow:0 10px 25px rgba(0,0,0,.12)}body.member-page .empty h3{color:#fff}
body.member-page .pagination{color:#d0d9e8}body.member-page .pagination a{color:#dbe5ff;border-color:rgba(255,255,255,.22);background:rgba(9,22,43,.62)}
body.member-page .search-rule{background:rgba(87,53,8,.82);border:1px solid rgba(255,212,121,.35);color:#ffe8b0}
body.member-page .footer{position:relative;margin-top:16px;padding:14px 20px calc(24px + env(safe-area-inset-bottom));background:rgba(4,10,24,.42);border-top:1px solid rgba(255,255,255,.12);color:#c3cde0;line-height:1.65;backdrop-filter:blur(10px)}
.download.is-loading{opacity:.62;pointer-events:none}.download.is-loading::after{content:"…";margin-left:4px}
.download-dialog-backdrop{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:22px;background:rgba(2,7,18,.62);backdrop-filter:blur(7px)}.download-dialog-backdrop[hidden]{display:none}.download-dialog{width:min(100%,360px);padding:25px 22px 22px;text-align:center;border:1px solid rgba(255,255,255,.2);border-radius:20px;background:rgba(13,28,52,.96);box-shadow:0 22px 70px rgba(0,0,0,.42);color:#fff}.download-dialog-icon{display:grid;place-items:center;width:44px;height:44px;margin:0 auto 13px;border-radius:50%;background:rgba(242,182,74,.2);color:#ffd27b;font-size:24px;font-weight:800}.download-dialog h1,.download-dialog h2{margin:0 0 8px;font-size:20px}.download-dialog p{margin:0 0 20px;color:#d0d9e8;line-height:1.65}.download-dialog .button{min-width:120px}.download-dialog-page{min-height:52vh;display:grid;place-items:center;padding:30px 0}.dialog-open{overflow:hidden}

/* V1.3 member portal visual system. These tokens keep the member surface
   coherent while leaving the administrator workspace untouched. */
body.member-page{
  --brand-primary:#6d8dff;
  --brand-primary-hover:#829dff;
  --bg-overlay-top:rgba(4,10,24,.88);
  --bg-overlay-middle:rgba(5,13,30,.48);
  --bg-overlay-bottom:rgba(4,9,22,.94);
  --text-primary:#f8fbff;
  --text-secondary:#c6d1e4;
  --text-muted:#9aa9c1;
  --glass-bg:rgba(9,20,40,.64);
  --glass-bg-strong:rgba(8,18,36,.82);
  --glass-border:rgba(221,232,255,.2);
  --radius-sm:10px;
  --radius-md:15px;
  --radius-lg:20px;
  --shadow-soft:0 18px 48px rgba(0,0,0,.2);
  color:var(--text-primary);
}
body.member-page::before{filter:blur(1.5px);opacity:.82;transform:scale(1.025)}
body.member-page::after{background:linear-gradient(180deg,var(--bg-overlay-top) 0%,rgba(5,13,30,.56) 24%,var(--bg-overlay-middle) 49%,rgba(5,12,28,.7) 74%,var(--bg-overlay-bottom) 100%)}
body.member-page .member-topbar{position:relative;min-height:64px;padding:8px max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left));background:linear-gradient(180deg,rgba(4,10,24,.48),rgba(4,10,24,.08));border-bottom:0;backdrop-filter:blur(9px)}
body.member-page .member-topbar .brand{gap:9px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;color:var(--text-primary)}
body.member-page .member-topbar .brand .logo{width:76px;height:48px;max-width:76px;object-fit:contain;border:0;border-radius:8px;background:transparent;box-shadow:none}
body.member-page .member-menu summary{min-height:40px;padding:4px 8px;gap:7px;border:1px solid rgba(221,232,255,.25);border-radius:999px;background:rgba(8,18,36,.48);box-shadow:0 8px 22px rgba(0,0,0,.12);transition:background .16s,border-color .16s,transform .16s}
body.member-page .member-menu summary:hover,body.member-page .member-menu[open] summary{background:rgba(108,139,255,.18);border-color:rgba(171,193,255,.52)}
body.member-page .member-menu summary:active{transform:scale(.97)}
body.member-page .member-avatar{width:30px;height:30px;background:linear-gradient(145deg,#819cff,#425bd2);color:#fff;box-shadow:0 4px 12px rgba(55,79,190,.32)}
body.member-page .member-menu-label{display:inline;font-size:12px;color:var(--text-secondary)}
body.member-page .member-menu-panel{width:232px;padding:16px;border:1px solid var(--glass-border);border-radius:var(--radius-md);background:var(--glass-bg-strong);box-shadow:var(--shadow-soft);color:var(--text-primary)}
body.member-page .member-menu-panel .member-menu-kicker{font-size:11px;color:var(--text-muted);letter-spacing:.06em}
body.member-page .member-menu-panel strong{font-size:16px}
body.member-page .member-menu-panel span{font-size:13px;color:var(--text-secondary)}
body.member-page .member-logout{min-height:42px;border-radius:var(--radius-sm);background:rgba(255,255,255,.1);color:#fff}
body.member-page .member-content{max-width:980px;padding:0 24px 56px;color:var(--text-primary)}
body.member-page .announcement{max-width:640px;margin:20px auto 0;padding:10px 14px;border:1px solid var(--glass-border);border-radius:var(--radius-sm);background:rgba(9,20,40,.48);color:var(--text-secondary);font-size:13px;box-shadow:none}
body.member-page .search-hero{padding:clamp(70px,14vh,138px) 0 34px;text-align:center}
body.member-page .search-hero h1{max-width:720px;margin:0 auto;color:var(--text-primary);font-size:clamp(28px,4vw,36px);font-weight:680;letter-spacing:-.035em;line-height:1.18;text-shadow:0 3px 24px rgba(0,0,0,.32)}
body.member-page .search-subtitle{margin:12px 0 0;color:var(--text-secondary);font-size:14px;line-height:1.5}
body.member-page .search-form{display:flex;align-items:center;max-width:720px;height:58px;margin:24px auto 0;padding:5px 5px 5px 15px;gap:6px;border:1px solid rgba(226,235,255,.27);border-radius:17px;background:rgba(7,17,34,.63);box-shadow:0 16px 38px rgba(0,0,0,.24);backdrop-filter:blur(15px)}
body.member-page .search-symbol{flex:none;color:#9fb3dc;font-size:23px;line-height:1}
body.member-page .search-form input{min-width:0;min-height:46px;padding:10px 5px;border:0;background:transparent;color:var(--text-primary);font-size:16px;box-shadow:none}
body.member-page .search-form input::placeholder{color:#8e9fbc;opacity:1}
body.member-page .search-form input:focus{box-shadow:none}
body.member-page .search-form:focus-within{border-color:rgba(151,176,255,.72);box-shadow:0 0 0 3px rgba(105,137,255,.18),0 16px 38px rgba(0,0,0,.24)}
body.member-page .search-form button{width:88px;min-width:88px;height:46px;padding:9px 12px;border-radius:12px;background:var(--brand-primary);font-size:14px;transition:background .16s,transform .16s}
body.member-page .search-form button:hover{background:var(--brand-primary-hover)}
body.member-page .search-form button:active{transform:scale(.97)}
body.member-page .search-form.is-searching button{background:#556aa9}
body.member-page .search-hint{margin:14px 0 0;color:var(--text-muted);font-size:12px}
body.member-page .member-results-panel{padding:18px 18px 14px;border:1px solid var(--glass-border);border-radius:var(--radius-lg);background:rgba(8,18,36,.58);box-shadow:var(--shadow-soft);backdrop-filter:blur(14px)}
body.member-page .section-heading{margin:0 0 8px;padding:0 2px}
body.member-page .section-heading h2{font-size:17px;font-weight:650;color:var(--text-primary)}
body.member-page .section-heading p{color:var(--text-muted);font-size:12px}
body.member-page .count-pill{padding:5px 9px;border-color:var(--glass-border);background:rgba(255,255,255,.07);color:var(--text-secondary);font-size:11px}
body.member-page .file-list{border-top:1px solid rgba(221,232,255,.12)}
body.member-page .member-file{min-width:0;margin:0;padding:15px 2px;border:0;border-bottom:1px solid rgba(221,232,255,.12);border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none}
body.member-page .member-file:last-child{border-bottom:0}
body.member-page .file-main{min-width:0}
body.member-page .file-name{display:-webkit-box;overflow:hidden;color:var(--text-primary);font-size:15px;line-height:1.4;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
body.member-page .file-name mark{padding:0 2px;border-radius:3px;background:rgba(125,155,255,.28);color:#fff}
body.member-page .file-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px;color:var(--text-muted);font-size:12px;line-height:1.4}
body.member-page .file-meta span+span::before{content:"·";margin-right:8px;color:#7082a5}
body.member-page .member-file .download{flex:none;min-width:76px;min-height:44px;padding:9px 12px;border:1px solid rgba(164,218,204,.3);border-radius:11px;background:rgba(32,166,138,.18);color:#a4f1da;font-size:14px}
body.member-page .member-file .download:hover{background:rgba(32,166,138,.3)}
body.member-page .empty{padding:42px 16px;border:0;background:transparent;box-shadow:none;color:var(--text-secondary)}
body.member-page .empty h3{margin:0 0 8px;color:var(--text-primary);font-size:17px}
body.member-page .empty p{color:var(--text-muted);font-size:13px}
body.member-page .empty-icon{font-size:32px;color:#aabce7}
body.member-page .pagination{color:var(--text-muted)}
body.member-page .pagination a{border-color:var(--glass-border);background:rgba(8,18,36,.6);color:var(--text-secondary)}
body.member-page .member-toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));z-index:40;transform:translateX(-50%);padding:10px 15px;border:1px solid rgba(164,218,204,.3);border-radius:999px;background:rgba(10,30,45,.94);box-shadow:0 12px 32px rgba(0,0,0,.32);color:#c4f7e8;font-size:13px}
body.member-page .member-toast[hidden]{display:none}
body.member-page .download-dialog-backdrop{background:rgba(2,7,18,.68)}
body.member-page .download-dialog{border-color:var(--glass-border);border-radius:var(--radius-lg);background:rgba(10,22,43,.96)}
body.member-login-page .member-topbar{min-height:58px}
body.member-login-page .member-content{display:grid;min-height:calc(100dvh - 58px);padding-top:0;padding-bottom:24px;place-items:center}
body.member-login-page .login-wrap{width:min(100%,430px);min-height:0;padding:32px 0}
body.member-login-page .login-card{width:100%;padding:32px 30px;border:1px solid var(--glass-border);border-radius:var(--radius-lg);background:rgba(8,18,36,.72);box-shadow:var(--shadow-soft);backdrop-filter:blur(15px);color:var(--text-primary)}
body.member-login-page .login-kicker{margin:0 0 10px;color:#a9bce8;font-size:11px;letter-spacing:.18em}
body.member-login-page .login-card h1{margin:0;color:var(--text-primary);font-size:28px}
body.member-login-page .login-subtitle{margin:9px 0 24px;color:var(--text-secondary);font-size:14px}
body.member-login-page .login-card label{color:var(--text-secondary)}
body.member-login-page .login-card input{min-height:50px;border-color:rgba(221,232,255,.22);background:rgba(255,255,255,.96);font-size:16px}
body.member-login-page .login-card .button{min-height:50px;font-size:16px}
body.member-login-page .notice.error{border:1px solid rgba(255,150,160,.25);background:rgba(122,38,53,.45);color:#ffd9de}
body.member-page button:focus-visible,body.member-page a:focus-visible,body.member-page summary:focus-visible,body.member-page input:focus-visible{outline:3px solid rgba(164,190,255,.9);outline-offset:3px}
@media (max-width:600px){
  body.member-page .member-topbar{min-height:60px;padding-top:max(5px,env(safe-area-inset-top));padding-bottom:5px}
  body.member-page .member-topbar .brand .logo{width:64px;height:44px;max-width:64px}
  body.member-page .member-menu-label{display:inline;font-size:11px}
  body.member-page .member-menu summary{padding:4px 7px}
  body.member-page .member-content{padding-right:14px;padding-left:14px}
  body.member-page .search-hero{padding-top:clamp(56px,12vh,96px);padding-bottom:28px}
  body.member-page .search-hero h1{font-size:clamp(27px,8vw,33px)}
  body.member-page .search-subtitle{font-size:13px}
  body.member-page .search-form{height:56px;margin-top:20px;padding-left:12px;border-radius:16px}
  body.member-page .search-form button{width:82px;min-width:82px;height:44px}
  body.member-page .member-results-panel{padding:14px 13px 10px;border-radius:17px}
  body.member-page .member-file{padding:14px 0}
  body.member-page .file-name{font-size:14px}
  body.member-page .member-file .download{min-width:74px;min-height:44px}
  body.member-login-page .member-content{min-height:calc(100dvh - 60px);padding:0 14px 20px}
  body.member-login-page .login-wrap{padding:20px 0}
  body.member-login-page .login-card{padding:26px 21px}
}
@media (max-width:380px){
  body.member-page .member-topbar .brand .logo{width:58px;height:42px;max-width:58px}
  body.member-page .member-menu-label{font-size:10px}
  body.member-page .search-form{padding-left:10px}
  body.member-page .search-form button{width:78px;min-width:78px;padding-right:8px;padding-left:8px}
  body.member-page .member-content{padding-right:11px;padding-left:11px}
}
/* Final V1.3 logo sizing pass: preserve the real artwork while keeping its
   Chinese brand text legible in the compact mobile header. */
body.member-page .member-topbar .brand .logo{width:80px;height:50px;max-width:80px}
@media(max-width:600px){body.member-page .member-topbar .brand .logo{width:76px;height:48px;max-width:76px}}
@media(max-width:380px){body.member-page .member-topbar .brand .logo{width:70px;height:46px;max-width:70px}}

/* Compact member identity control: avatar only, with a highlighted expiry date. */
body.member-page .member-menu-label{display:none}
body.member-page .member-menu summary{width:44px;height:44px;min-height:44px;padding:5px;justify-content:center}
body.member-page .member-avatar{width:32px;height:32px}
body.member-page .member-avatar svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.member-page .member-menu-panel .member-menu-kicker{display:none}
body.member-page .member-menu-panel .member-expiry-line{color:var(--text-secondary);display:block}
body.member-page .member-menu-panel .member-expiry-line strong{display:inline;color:#ffd17a;font-size:14px;white-space:nowrap}
@media(max-width:600px){body.member-page .member-menu summary{width:42px;height:42px;min-height:42px}}

/* Final V1.3 polish: a quiet member pill and a lower, calmer search focus. */
body.member-page .member-menu summary{width:auto;min-width:84px;height:40px;min-height:40px;padding:4px 10px;justify-content:center;gap:7px;border-color:rgba(221,232,255,.22);background:rgba(8,18,36,.42);color:var(--text-secondary)}
body.member-page .member-menu summary:hover,body.member-page .member-menu[open] summary{background:rgba(8,18,36,.62);border-color:rgba(221,232,255,.38)}
body.member-page .member-avatar{width:22px;height:22px;background:transparent;box-shadow:none;color:#d8e4ff}
body.member-page .member-avatar svg{width:20px;height:20px}
body.member-page .member-menu-label{display:inline;font-size:13px;color:#d8e4ff}
body.member-page .member-menu-chevron{display:inline-block;margin-top:-3px;color:#aebbd3;font-size:16px;line-height:1}
body.member-page .member-menu-panel{position:absolute}
body.member-page .member-menu-close{position:absolute;top:8px;right:9px;width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:#c8d3e7;font-size:22px;line-height:1;cursor:pointer}
body.member-page .member-menu-close:hover{background:rgba(255,255,255,.1)}
body.member-page .search-hero{padding-top:clamp(92px,16vh,156px)}
body.member-page::after{background:radial-gradient(ellipse at 50% 30%,rgba(4,10,24,.2) 0%,rgba(4,10,24,.5) 48%,transparent 74%),linear-gradient(180deg,rgba(4,10,24,.84) 0%,rgba(5,13,30,.48) 28%,rgba(5,13,30,.62) 60%,rgba(4,9,22,.86) 100%)}
body.member-page .search-form{height:56px;border-color:rgba(226,235,255,.17);background:rgba(7,17,34,.58);box-shadow:0 14px 34px rgba(0,0,0,.2)}
body.member-page .search-form button{width:84px;min-width:84px;height:44px}
@media(max-width:600px){
  body.member-page .member-menu summary{min-width:84px;width:auto;height:40px;min-height:40px}
  body.member-page .member-menu-panel{position:fixed;left:12px;right:12px;top:auto;bottom:calc(12px + env(safe-area-inset-bottom));width:auto;padding:20px 18px 16px;border-radius:20px;box-shadow:0 24px 70px rgba(0,0,0,.46)}
  body.member-page .member-menu-panel::before{content:"";position:fixed;inset:0;z-index:-1;background:rgba(2,7,18,.42);backdrop-filter:blur(3px)}
  body.member-page .search-hero{padding-top:clamp(82px,16vh,138px)}
  body.member-page .search-form{height:55px}
  body.member-page .search-form button{width:82px;min-width:82px}
}
@media(max-width:380px){
  body.member-page .member-menu summary{min-width:78px;padding-right:8px;padding-left:8px}
  body.member-page .member-menu-label{font-size:12px}
  body.member-page .search-hero{padding-top:clamp(70px,15vh,110px)}
  body.member-page .search-form button{width:78px;min-width:78px}
}

/* Member menu action: keep logout in the panel header at the top right. */
body.member-page .member-menu-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;min-width:0}
body.member-page .member-menu-identity{display:grid;gap:5px;min-width:0;padding-top:2px}
body.member-page .member-menu-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.member-page .member-menu-head form{flex:none;margin:0}
body.member-page .member-menu-head .member-logout{min-height:34px;margin:0;padding:6px 10px;border-radius:9px;font-size:12px;white-space:nowrap}
body.member-page .member-menu-panel .member-expiry-line{margin-top:2px}

/* Restore the compact dropdown shown directly below the member control. */
body.member-page .member-menu-panel{position:absolute;right:0;top:calc(100% + 8px);left:auto;bottom:auto;width:232px;padding:14px;border-radius:15px}
body.member-page .member-menu-head{display:block}
body.member-page .member-menu-identity{display:grid;gap:4px;padding-top:0}
body.member-page .member-menu-identity strong{font-size:14px}
body.member-page .member-menu-identity span{font-size:12px}
body.member-page .member-menu-panel .member-expiry-line{font-size:12px}
body.member-page .member-menu-panel .member-expiry-line strong{font-size:13px}
body.member-page .member-menu-panel>form{margin:8px 0 0}
body.member-page .member-menu-panel>form .member-logout{min-height:36px;margin:0;padding:6px 11px;font-size:13px}
@media(max-width:600px){
  body.member-page .member-menu-panel{position:absolute;left:auto;right:0;top:calc(100% + 8px);bottom:auto;width:min(356px,calc(100vw - 24px));padding:14px;border-radius:15px;box-shadow:0 16px 40px rgba(0,0,0,.38)}
  body.member-page .member-menu-panel::before{display:none}
}


/* Poster performance and mobile search-focus refinement. */
body.member-page::before{filter:blur(.65px);opacity:.94;transform:scale(1.012)}
body.member-page::after{background:linear-gradient(180deg,rgba(4,10,24,.58) 0%,rgba(5,13,30,.28) 30%,rgba(5,13,30,.4) 62%,rgba(4,9,22,.62) 100%)}
body.member-page .search-form input:focus,body.member-page .search-form input:focus-visible{outline:0!important;box-shadow:none!important}
body.member-page .search-form:focus-within{border-color:rgba(151,176,255,.76);box-shadow:0 0 0 2px rgba(105,137,255,.22),0 14px 34px rgba(0,0,0,.2)}
