/* PDTV Cloud V0.0.7 */
html,body,button,input,textarea,select{font-family:'Battambang','Noto Sans SC',sans-serif}
.google{background:#fff;color:#202124;border:1px solid #dadce0;display:flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;font-weight:700}.google:hover{background:#f8faff;border-color:#b7c6e8}.gmark{font-family:Arial,sans-serif;font-weight:700;color:#4285f4;font-size:20px}.or{display:flex;align-items:center;justify-content:center;color:#7a8498;margin:16px 0}.notice{padding:12px 14px;border-radius:12px;background:#fff8e7;color:#72561b;font-size:13px;margin:12px 0}
@import url('https://fonts.googleapis.com/css2?family=Battambang:wght@400;700&family=Inter:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700&family=Noto+Sans+Khmer:wght@400;500;600;700&display=swap');:root{--bg:#f3f7fd;--ink:#10203c;--muted:#73819a;--blue:#087cf0;--line:#e1e9f4;--card:#fff}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 15% 0%,#e0f2ff 0,transparent 35%),var(--bg);color:var(--ink);font-family:Battambang,"Noto Sans Khmer","Noto Sans SC",Inter,system-ui,sans-serif}a{color:var(--blue);text-decoration:none}header{height:auto;min-height:76px;display:flex;align-items:center;justify-content:space-between;padding:15px clamp(18px,6vw,88px);background:#ffffffed;border-bottom:1px solid var(--line);gap:16px}.brand{display:flex;align-items:center;gap:7px;color:var(--ink);font-size:19px;font-weight:800}.brand span{color:var(--blue)}.brand small{font-size:10px;color:var(--muted);margin-left:6px}nav{display:flex;align-items:center;gap:20px;font-size:12px;font-weight:600}nav>a:not(.navcta){color:#53627d}.navcta{background:var(--blue);color:#fff;padding:11px 15px;border-radius:10px}.inline{display:inline}.navbtn{border:0;background:transparent;color:#52617c;cursor:pointer}main{min-height:calc(100vh - 140px);padding:30px clamp(18px,6vw,88px) 60px}.hero{max-width:1080px;margin:40px auto;padding:28px 0}.eyebrow{color:var(--blue);font-size:10px;letter-spacing:2px;font-weight:800}.hero h1{font-size:clamp(42px,7vw,78px);letter-spacing:-3px;line-height:1.1;margin:20px 0}.hero h1 em{font-style:normal;color:var(--blue)}.lead{font-size:17px;line-height:1.9;color:#64738e;max-width:590px}.actions{display:flex;gap:12px;margin:26px 0 50px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:11px;padding:13px 19px;font:600 13px Battambang,"Noto Sans Khmer","Noto Sans SC",Inter,sans-serif;cursor:pointer}.primary{background:linear-gradient(135deg,#168dfb,#0569df);color:#fff;box-shadow:0 8px 20px #087cf02a}.secondary{background:#fff;color:var(--ink);border:1px solid var(--line)}.full{width:100%;margin-top:5px}.features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;max-width:870px}.features article,.storage,.upload-card,.table-card,.auth-card{background:var(--card);border:1px solid var(--line);border-radius:17px;padding:22px;box-shadow:0 12px 30px #17335d08}.features article>span{display:grid;place-items:center;background:#e9f4ff;color:var(--blue);border-radius:12px;width:42px;height:42px;font-size:22px;margin-bottom:17px}.features b{font-size:13px}.features p,.muted{font-size:12px;color:var(--muted);line-height:1.8}.auth-wrap{display:flex;justify-content:center;padding:25px 0}.auth-card{width:min(100%,450px);padding:34px}.auth-logo{font-size:34px;color:var(--blue);margin-bottom:14px}.auth-card h1{font-size:27px;letter-spacing:-1px;margin:12px 0}.stack{display:grid;gap:14px;margin-top:24px}.stack label{font-size:12px;font-weight:600;color:#4b5a76}.stack input{display:block;width:100%;padding:13px;margin-top:7px;border:1px solid #dfe7f2;border-radius:10px;font:14px Battambang,"Noto Sans Khmer","Noto Sans SC",Inter,sans-serif}.switch{text-align:center;font-size:12px;color:var(--muted);margin-top:22px}.alert{max-width:1080px;margin:0 auto 12px;padding:12px 15px;border-radius:10px;background:#eef5ff;font-size:12px}.alert.error,.alert.warning{background:#fff0ee;color:#a7352a}.alert.success{background:#e8fbf0;color:#176b3a}.pagehead{display:flex;justify-content:space-between;align-items:center;gap:15px;max-width:1080px;margin:5px auto 24px}.pagehead h1{font-size:32px;margin:8px 0}.pill{font-size:10px;color:#17844b;background:#e8fbf0;padding:9px 12px;border-radius:20px;white-space:nowrap}.storage,.upload-card,.table-card{max-width:1080px;margin:0 auto 17px}.storage h2{font-size:22px;margin:8px 0 15px}.storage h2 small{font-size:12px;color:var(--muted);font-weight:500}.progress{height:8px;background:#edf2f9;border-radius:20px;overflow:hidden}.progress i{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#21c5f4,#087cf0)}.upload-card{display:flex;align-items:center;justify-content:space-between;gap:18px}.upload-card h2,.table-title h2{font-size:16px;margin:0}.uploadform{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.uploadform input{max-width:300px;font-size:11px}.table-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.file-row{display:grid;grid-template-columns:minmax(150px,2fr) minmax(75px,.7fr) minmax(125px,1fr) minmax(130px,1fr);gap:12px;align-items:center;padding:14px 0;border-top:1px solid var(--line);font-size:11px}.file-row.header{font-size:9px;text-transform:uppercase;letter-spacing:1px;color:var(--muted);border-top:0}.filename{overflow-wrap:anywhere;font-weight:600}.file-actions{display:flex;align-items:center;gap:12px}.file-actions form{display:inline}.file-actions a,.text-danger{font-size:10px;font-weight:600}.text-danger{background:none;border:0;color:#d44848;cursor:pointer}.empty{text-align:center;padding:40px 10px;color:var(--muted)}.empty>span{font-size:34px;color:var(--blue)}.empty b{display:block;color:var(--ink);margin-top:10px}.empty p{font-size:12px}.file-row small{display:block;color:var(--muted);margin-top:5px;font-size:10px}.quotaform{display:flex;gap:5px}.quotaform input{width:78px;min-width:0;border:1px solid var(--line);border-radius:7px;padding:7px}.mini{border:1px solid var(--line);background:#fff;padding:7px 9px;border-radius:7px;font-size:10px;cursor:pointer}footer{border-top:1px solid var(--line);padding:22px clamp(18px,6vw,88px);font-size:10px;color:var(--muted);display:flex;justify-content:space-between;gap:12px}
@media(max-width:700px){header{align-items:flex-start}.brand{font-size:15px}.brand small{display:none}nav{gap:10px;flex-wrap:wrap;justify-content:flex-end}nav>a{font-size:10px}main{padding-top:20px}.hero{margin:10px auto}.hero h1{letter-spacing:-2px}.lead{font-size:14px}.features{grid-template-columns:1fr}.features article{display:grid;grid-template-columns:44px 1fr;column-gap:12px}.features article>span{grid-row:span 2;margin:0}.features p{margin:5px 0}.auth-card{padding:25px 19px}.pagehead h1{font-size:26px}.upload-card{align-items:flex-start;flex-direction:column}.file-row{grid-template-columns:minmax(100px,1.5fr) minmax(60px,.7fr);gap:8px}.file-row.header span:nth-child(3),.file-row.header span:nth-child(4),.file-row>span:nth-child(3){display:none}.file-actions{grid-column:1/-1}footer{flex-direction:column}}

/* PDTV Cloud V0.1.0 authentication refresh */
.auth-stage{min-height:calc(100vh - 155px);margin:-30px calc(clamp(18px,6vw,88px) * -1) -60px;padding:34px 18px 28px;background:radial-gradient(ellipse at 50% 10%,#292929 0,#171717 55%,#101010 100%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;color:#f8fafc}
.auth-brand-top{display:flex;align-items:center;gap:12px;margin-bottom:4px;color:#fff}.auth-brand-top .cloud-mark{width:46px;height:46px;border:1px solid #b98b2d;border-radius:14px;display:grid;place-items:center;font-size:26px;color:#d5aa4b;background:#252525}.auth-brand-top strong{display:block;font-size:23px;letter-spacing:-.5px}.auth-brand-top strong span{color:#d5aa4b}.auth-brand-top small{display:block;font:700 9px Inter,Arial,sans-serif;letter-spacing:2px;color:#b9c0ca;margin-top:2px}
.auth-card-v010{width:min(100%,570px);padding:34px clamp(22px,5vw,60px) 28px;border-radius:10px;background:#fff;color:#152238;border:0;box-shadow:0 24px 70px #0004}.auth-kicker{font:700 9px Inter,Arial,sans-serif;letter-spacing:2px;color:#b78b31;margin-bottom:10px}.auth-card-v010 h1{font-size:clamp(24px,3vw,30px);letter-spacing:0;line-height:1.55;margin:0 0 6px}.auth-intro{font-size:12px;line-height:1.9;color:#7b8799;margin:0 0 22px}.google-button{width:100%;min-height:52px;display:flex;align-items:center;justify-content:center;gap:12px;border:1px solid #dce2ea;border-radius:9px;background:#fff;color:#3c4656;font:600 14px Inter,Arial,sans-serif;text-decoration:none;transition:background .15s,border-color .15s}.google-button:hover{background:#f8fafc;border-color:#b9c5d5}.google-g{font:bold 23px Arial,sans-serif;background:conic-gradient(from -45deg,#4285f4 0 25%,#34a853 25% 50%,#fbbc05 50% 75%,#ea4335 75%);background-clip:text;-webkit-background-clip:text;color:transparent}.auth-divider{display:flex;align-items:center;gap:12px;margin:21px 0;color:#929bad;font-size:11px}.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:#e8edf3}.auth-notice{padding:12px 14px;background:#fff8e7;color:#765b20;border-radius:8px;font-size:11px;line-height:1.8;margin:12px 0 18px}.auth-stack{gap:15px;margin-top:0}.auth-stack label{font-size:12px;color:#3e4b60}.auth-stack input:not([type=checkbox]){height:49px;margin-top:7px;padding:12px 14px;border:1px solid #d3dae4;border-radius:7px;background:#fbfcfe;font-size:13px;outline:none}.auth-stack input:focus{border-color:#b98b2d;box-shadow:0 0 0 3px #b98b2d20}.remember-row{display:flex;align-items:center;gap:9px;font-weight:400!important}.remember-row input{width:17px;height:17px;accent-color:#b98b2d}.auth-submit{width:100%;height:54px;margin-top:4px;border-radius:7px;background:linear-gradient(110deg,#c5a044,#a87a20);color:#fff;font-size:15px;justify-content:center;gap:10px;box-shadow:none}.auth-submit:hover{filter:brightness(1.04)}.auth-switch{text-align:center;margin:22px 0 0;color:#7a8495;font-size:12px}.auth-switch a{color:#b18328;font-weight:700}.auth-safe{text-align:center;color:#9aa3b2;font-size:10px;margin:17px 0 0}.auth-copyright{font:13px Inter,Arial,sans-serif;color:#d0d4da;margin:0;text-align:center}
@media(max-width:600px){.auth-stage{margin:-20px -18px -60px;padding:26px 14px}.auth-card-v010{padding:28px 21px 24px}.auth-brand-top strong{font-size:20px}.auth-intro{font-size:11px}}

/* V0.1.8 additions */
.searchform{display:flex;gap:10px;align-items:center;margin:0 0 18px;flex-wrap:wrap}.searchform input,.share-input{flex:1;min-width:180px;padding:12px 14px;border:1px solid #dbe5f0;border-radius:10px;background:#fff;color:#18324b}.file-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.file-actions form{display:inline;margin:0}.text-link{border:0;background:none;color:#1685d9;cursor:pointer;font:inherit;padding:0}.share-page{max-width:760px;margin:32px auto;padding:28px}.share-input{display:block;width:100%;box-sizing:border-box;margin:18px 0}footer{display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:space-between;padding:22px max(24px,calc((100% - 1180px)/2));border-top:1px solid #e3ebf5;background:rgba(255,255,255,.9);color:#71839a}footer p{margin:6px 0;font-size:13px}.footerlinks{display:flex;gap:18px;flex-wrap:wrap}.footerlinks a{color:#3b82b9;text-decoration:none}footer small{width:100%;padding-top:10px;border-top:1px solid #edf1f7}

/* PDTV Cloud V0.2.0 cloud workspace */
[hidden]{display:none!important}.topbar{position:sticky;top:0;z-index:10;backdrop-filter:blur(16px)}main:has(.cloud-layout){padding:24px clamp(14px,3vw,42px) 48px}.cloud-layout{max-width:1500px;margin:0 auto;display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;align-items:start}.cloud-sidebar{position:sticky;top:98px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px 15px;min-height:500px;box-shadow:0 12px 32px #12304b0a}.side-heading{font-size:10px;letter-spacing:2px;color:#8b9ab0;font-weight:800;padding:0 12px 16px}.side-item{display:flex;gap:12px;align-items:center;padding:12px;border-radius:11px;color:#64738e;font-size:13px;margin:3px 0}.side-item.active,.side-item:hover{background:#eaf5ff;color:var(--blue);font-weight:700}.side-storage{margin:28px 8px 20px;padding:16px 12px;background:#f4f8fc;border-radius:13px;display:grid;gap:9px;font-size:12px;color:var(--muted)}.side-storage strong{color:var(--ink);font-size:15px}.side-storage strong small{font-size:11px;color:var(--muted);font-weight:400}.side-storage .progress{margin:0}.side-note{margin-top:35px;padding:16px 10px;color:#687a92;font-size:11px;line-height:1.7}.side-icon{display:block;font-size:32px;color:var(--blue)}.side-note b{color:#24435e;font-size:13px}.cloud-main{min-width:0}.pagehead{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:5px 0 22px}.pagehead h1{font-size:clamp(24px,3vw,34px);margin:8px 0}.pagehead p{margin:0;font-size:12px}.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px;min-width:0;box-shadow:0 10px 28px #15385a08}.stat-card>span{display:grid;place-items:center;width:34px;height:34px;background:#edf6ff;color:var(--blue);border-radius:10px;font-size:19px;margin-bottom:12px}.stat-card small{display:block;color:var(--muted);font-size:11px}.stat-card strong{display:block;font-size:23px;margin:3px 0}.stat-card p{margin:0 0 9px;color:var(--muted);font-size:11px}.stat-primary{background:linear-gradient(135deg,#168cf1,#0873df);color:white}.stat-primary>span{background:#ffffff25;color:white}.stat-primary small,.stat-primary p{color:#e4f2ff}.stat-primary .progress{background:#ffffff45}.stat-primary .progress i{background:#fff}.upload-card{display:flex;align-items:center;gap:15px;margin:0 0 16px;padding:20px;border-radius:17px}.upload-symbol{display:grid;place-items:center;width:44px;height:44px;flex:0 0 auto;border-radius:13px;background:#e9f5ff;color:var(--blue);font-size:25px}.upload-copy{flex:1;min-width:180px}.upload-copy h2,.upload-card h2{margin:0 0 5px;font-size:16px}.upload-copy p,.upload-card p{margin:0;font-size:11px}.uploadform{display:flex;align-items:center;gap:9px;max-width:100%;flex-wrap:wrap}.uploadform input[type=file]{max-width:260px;width:100%;font-size:11px;color:var(--muted)}.uploadform button:disabled{opacity:.65;cursor:wait}.table-card{padding:20px;border-radius:18px;min-width:0}.table-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.table-title h2{margin:4px 0 0;font-size:20px}.count-pill{background:#eff7ff;color:#2779bd;border-radius:30px;padding:6px 11px;font-size:11px;white-space:nowrap}.file-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}.searchform{display:flex;align-items:center;gap:8px;flex:1;min-width:230px}.searchform>span{color:#9aabc0;font-size:22px}.searchform input{flex:1;min-width:80px;border:1px solid var(--line);border-radius:10px;padding:11px 12px;background:#f9fbfe}.searchform .button{padding:10px 13px}.quick-filters{display:flex;gap:6px;flex-wrap:wrap}.filter-chip{border:1px solid var(--line);background:#fff;color:#65758d;border-radius:30px;padding:7px 11px;font:500 11px inherit;cursor:pointer}.filter-chip.active,.filter-chip:hover{background:#e9f5ff;color:#087cf0;border-color:#cde7ff}.filelist{overflow-x:auto}.file-row{display:grid;grid-template-columns:minmax(180px,2fr) minmax(70px,.6fr) minmax(130px,1fr) minmax(190px,1.3fr);align-items:center;gap:12px;padding:13px 10px;border-bottom:1px solid #edf1f6;font-size:11px;min-width:700px}.file-row.header{color:#8997aa;font-weight:700;background:#f8fafd;border-radius:8px}.filename{display:flex;align-items:center;gap:10px;min-width:0;color:#25425d;font-weight:600}.file-type{display:grid;place-items:center;width:34px;height:34px;flex:0 0 auto;border-radius:9px;background:#e8f4ff;color:#1784ed;font-size:17px}.file-name-text{overflow-wrap:anywhere}.file-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.file-actions form{display:inline;margin:0}.file-actions a,.text-link,.text-danger{font-size:11px}.file-actions a{white-space:nowrap}.text-link,.text-danger{border:0;background:none;padding:0;cursor:pointer;font-family:inherit}.text-danger{color:#e45463}.no-filter-results{padding:25px;text-align:center;color:var(--muted);font-size:12px}.site-footer{border-top:1px solid #e2eaf3;background:#fff;padding:28px clamp(18px,5vw,72px) 15px;color:#718198}.footer-main{max-width:1400px;margin:0 auto;display:grid;grid-template-columns:2fr 1fr 1.4fr;gap:28px;padding-bottom:23px}.footer-brand b{color:#1d4262;font-size:16px}.footer-brand b span{font-size:10px;color:var(--blue);background:#edf6ff;padding:4px 7px;border-radius:6px;margin-left:5px}.footer-brand p,.footer-col{font-size:11px;line-height:1.9}.footer-col{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.footer-col b{color:#294965;font-size:12px;margin-bottom:4px}.footer-col a,.footer-col span{color:#718198}.footer-bottom{max-width:1400px;margin:auto;border-top:1px solid #edf1f6;padding-top:13px;display:flex;justify-content:space-between;gap:10px;font-size:10px}
@media(max-width:950px){.cloud-layout{grid-template-columns:1fr}.cloud-sidebar{position:static;min-height:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px}.side-heading,.side-storage,.side-note{display:none}.side-item{margin:0}.stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.upload-card{flex-wrap:wrap}.upload-copy{flex:1}.uploadform{width:100%;padding-left:59px}.footer-main{grid-template-columns:1fr 1fr}.footer-brand{grid-column:1/-1}}
@media(max-width:600px){header{padding:12px 15px;align-items:flex-start;flex-direction:column}nav{gap:12px;flex-wrap:wrap}main:has(.cloud-layout){padding:16px 10px 30px}.pagehead{align-items:flex-start;flex-direction:column}.stat-grid{grid-template-columns:1fr}.stat-card{padding:14px}.stat-card>span{float:right}.upload-card{padding:15px}.uploadform{padding-left:0;align-items:stretch}.uploadform input[type=file]{max-width:100%}.uploadform button{width:100%}.table-card{padding:13px}.file-toolbar{align-items:stretch}.searchform{min-width:0;flex-wrap:wrap}.searchform input{min-width:100%}.quick-filters{width:100%}.footer-main{grid-template-columns:1fr}.footer-brand{grid-column:auto}.footer-bottom{flex-direction:column}}
/* PDTV Cloud V0.2.0 folders and workspace polish */
.folder-tools{max-width:1080px;margin:0 auto 16px;padding:15px 18px;background:#fff;border:1px solid var(--line);border-radius:15px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.breadcrumbs{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:12px}.breadcrumbs span{color:#9aa9bb}.breadcrumbs a{font-weight:600}.new-folder-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.new-folder-form input{min-width:190px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;font:12px inherit}.new-folder-form button{padding:10px 13px}.folder-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px;margin:0 0 14px}.folder-entry{display:flex;align-items:center;gap:10px;padding:13px;border:1px solid var(--line);border-radius:12px;background:#f8fbff;min-width:0}.folder-emoji{font-size:24px}.folder-entry form{flex:1;min-width:0}.folder-entry button{border:0;background:none;padding:0;max-width:100%;overflow-wrap:anywhere;text-align:left;color:#24435e;font:600 12px inherit;cursor:pointer}.folder-entry small{color:#8a9ab0;font-size:10px}@media(max-width:600px){.folder-tools{padding:13px}.new-folder-form{width:100%}.new-folder-form input{min-width:0;flex:1;width:100%}.new-folder-form button{width:100%}.folder-list{grid-template-columns:1fr}}

/* V0.2.1 layout alignment and responsive polish */
.cloud-layout{width:100%;max-width:1500px;grid-template-columns:200px minmax(0,1fr);gap:20px}
.cloud-main{width:100%;min-width:0;display:flex;flex-direction:column;gap:0}
.pagehead,.stat-grid,.upload-card,.folder-tools,.table-card{width:100%;max-width:none;margin-left:0;margin-right:0}
.folder-tools{margin-bottom:16px}
.table-card{margin-top:0}
.folder-tools,.table-title,.file-toolbar{min-width:0}
.breadcrumbs{min-width:0;flex:1}
.new-folder-form{max-width:100%}
.new-folder-form input{max-width:100%;font-family:inherit}
.upload-card{display:grid;grid-template-columns:44px minmax(180px,1fr) minmax(260px,auto);align-items:center}
.uploadform{justify-content:flex-end;min-width:0}
.uploadform input[type=file]{max-width:min(100%,300px)}
.file-row{grid-template-columns:minmax(180px,2fr) minmax(80px,.65fr) minmax(135px,1fr) minmax(210px,1.35fr)}
.file-actions{gap:10px}
.folder-entry{min-width:0}
@media(max-width:950px){.cloud-layout{grid-template-columns:1fr}.upload-card{grid-template-columns:44px minmax(0,1fr)}.uploadform{grid-column:1/-1;padding-left:0;justify-content:flex-start}}
@media(max-width:600px){.upload-card{display:flex;flex-direction:column;align-items:stretch}.upload-symbol{align-self:flex-start}.uploadform{width:100%;padding:0}.uploadform input[type=file]{max-width:100%;width:100%}.folder-tools{align-items:stretch}.breadcrumbs{width:100%}.new-folder-form{width:100%}.file-row{min-width:640px}}


/* PDTV Cloud V0.2.2 typography clarity and alignment */
:root{font-size:16px}
body{font-family:"Battambang","Noto Sans Khmer",Inter,sans-serif;font-size:15px;line-height:1.65;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.topbar{min-height:64px;padding:13px clamp(18px,4vw,60px)}
.brand{font-size:21px;gap:8px}
.brand small{font-size:12px}
nav{font-size:14px;gap:22px}
nav>a,.navbtn{font-size:14px}
main:has(.cloud-layout){padding:28px clamp(18px,3.5vw,52px) 52px}
.cloud-layout{max-width:1560px;grid-template-columns:220px minmax(0,1fr);gap:24px}
.side-heading,.eyebrow{font-size:12px;letter-spacing:1.4px}
.side-item{font-size:15px;padding:13px}
.side-storage{font-size:14px}
.side-storage strong{font-size:17px}
.side-storage strong small,.side-storage>small{font-size:12px}
.side-note{font-size:13px}
.side-note b{font-size:15px}
.pagehead{margin-bottom:24px}
.pagehead h1{font-size:clamp(30px,2.4vw,38px);line-height:1.5}
.pagehead p,.muted{font-size:14px;line-height:1.9}
.pill{font-size:12px;padding:9px 14px}
.stat-grid{gap:18px;margin-bottom:20px}
.stat-card{padding:22px}
.stat-card small{font-size:14px}
.stat-card strong{font-size:28px;line-height:1.5}
.stat-card p{font-size:13px;line-height:1.8}
.upload-card{padding:22px;gap:18px;margin-bottom:20px}
.upload-copy h2,.upload-card h2{font-size:19px;line-height:1.6}
.upload-copy p,.upload-card p{font-size:14px;line-height:1.8}
.uploadform input[type=file]{font-size:13px;max-width:320px}
.button{font-size:14px;padding:13px 18px}
.folder-tools{padding:18px 20px;margin-bottom:20px}
.breadcrumbs{font-size:15px;gap:12px}
.new-folder-form input{font-size:14px;padding:12px 14px}
.table-card{padding:24px}
.table-title h2{font-size:23px;line-height:1.6}
.count-pill{font-size:13px}
.file-toolbar{gap:14px;margin-bottom:16px}
.searchform input{font-size:14px;padding:13px 14px}
.searchform .button{padding:11px 15px}
.quick-filters{gap:8px}
.filter-chip{font-size:13px;padding:9px 13px}
.file-row{font-size:14px;gap:14px;padding:16px 12px;line-height:1.65}
.file-row.header{font-size:12px;letter-spacing:.3px}
.file-type{width:38px;height:38px;font-size:19px}
.filename{font-size:14px}
.file-actions{gap:13px}
.file-actions a,.text-link,.text-danger{font-size:13px}
.folder-entry{padding:15px;gap:12px}
.folder-entry button{font-size:14px}
.folder-entry small{font-size:12px}
.empty{padding:52px 12px}
.empty>span{font-size:42px}
.empty b{font-size:17px}
.empty p{font-size:14px;line-height:1.8}
.alert{font-size:14px;line-height:1.8}
.site-footer{padding-top:30px}
.footer-brand b{font-size:18px}
.footer-brand p,.footer-col{font-size:13px;line-height:2}
.footer-col b{font-size:14px}
.footer-bottom{font-size:12px}
.stack label{font-size:14px}
.stack input{font-size:15px;padding:14px}
.auth-intro{font-size:14px}
.auth-stack label{font-size:14px}
.auth-stack input:not([type=checkbox]){font-size:15px}
@media(max-width:950px){
 .cloud-layout{grid-template-columns:1fr;gap:16px}
 .cloud-sidebar{gap:8px}
 .side-item{font-size:14px}
 .upload-card{grid-template-columns:44px minmax(0,1fr)}
 .uploadform{grid-column:1/-1;padding-left:0;justify-content:flex-start}
 .file-row{grid-template-columns:minmax(180px,2fr) minmax(80px,.65fr) minmax(135px,1fr) minmax(210px,1.35fr)}
}
@media(max-width:600px){
 body{font-size:14px}
 .topbar{gap:12px}
 .brand{font-size:18px}
 nav{gap:12px}
 nav>a,.navbtn{font-size:13px}
 main:has(.cloud-layout){padding:16px 12px 30px}
 .pagehead h1{font-size:27px}
 .stat-grid{grid-template-columns:1fr}
 .stat-card{padding:17px}
 .stat-card strong{font-size:25px}
 .upload-card{display:flex;flex-direction:column;align-items:stretch;padding:17px}
 .uploadform{align-items:stretch}
 .uploadform input[type=file]{font-size:13px}
 .table-card{padding:14px}
 .table-title h2{font-size:20px}
 .searchform{min-width:0}
 .searchform input{font-size:14px;min-width:100%}
 .quick-filters{width:100%}
 .filter-chip{font-size:12px}
 .file-row{min-width:680px;font-size:13px}
 .folder-tools{padding:14px}
 .new-folder-form input{font-size:14px}
 .footer-main{gap:18px}
}


/* PDTV Cloud V0.2.3 — full-screen layout and 15 GB upload UI */
html, body { width:100%; min-height:100%; }
body { overflow-x:hidden; }
main:has(.cloud-layout) {
  width:100%;
  max-width:none;
  min-height:calc(100vh - 130px);
  margin:0;
  padding:clamp(16px,2vw,32px) clamp(14px,2.2vw,36px) 42px;
}
.cloud-layout {
  width:100%;
  max-width:none;
  margin:0;
  grid-template-columns:clamp(190px,16vw,250px) minmax(0,1fr);
  gap:clamp(14px,1.6vw,26px);
  align-items:start;
}
.cloud-sidebar { width:100%; min-width:0; }
.cloud-main { width:100%; min-width:0; }
.pagehead,.stat-grid,.upload-card,.folder-tools,.table-card {
  width:100%;
  max-width:none;
  margin-left:0;
  margin-right:0;
}
.stat-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(10px,1vw,16px); }
.stat-card,.upload-card,.folder-tools,.table-card { min-width:0; }
.upload-card { display:grid; grid-template-columns:44px minmax(160px,1fr) minmax(280px,1.2fr); align-items:center; gap:16px; }
.uploadform { width:100%; min-width:0; display:flex; align-items:center; justify-content:flex-end; gap:10px; }
.uploadform input[type=file] { width:100%; max-width:420px; min-width:0; font-size:14px; }
.uploadform .button { white-space:nowrap; }
.folder-tools { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.table-card { overflow:hidden; }
.file-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.searchform { flex:1 1 320px; min-width:0; }
.quick-filters { display:flex; flex-wrap:wrap; gap:8px; }
.file-list { width:100%; }
.file-row { font-size:14px; }
.file-row.header { font-size:12px; }
footer { width:100%; }
@media (min-width:1600px) {
  main:has(.cloud-layout) { padding-left:36px; padding-right:36px; }
  .cloud-layout { grid-template-columns:250px minmax(0,1fr); gap:26px; }
  .stat-card { padding:24px; }
  .table-card { padding:26px; }
}
@media (max-width:1000px) {
  .cloud-layout { grid-template-columns:1fr; }
  .cloud-sidebar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
  .side-heading,.side-storage,.side-note { display:none; }
  .upload-card { grid-template-columns:44px minmax(0,1fr); }
  .uploadform { grid-column:1/-1; justify-content:flex-start; }
}
@media (max-width:650px) {
  main:has(.cloud-layout) { padding:14px 10px 26px; }
  .stat-grid { grid-template-columns:1fr; }
  .upload-card { display:flex; flex-direction:column; align-items:stretch; }
  .uploadform { width:100%; flex-direction:column; align-items:stretch; }
  .uploadform input[type=file] { max-width:none; width:100%; }
  .uploadform button { width:100%; }
  .folder-tools { flex-direction:column; align-items:stretch; }
  .new-folder-form { width:100%; }
  .file-toolbar { align-items:stretch; }
  .quick-filters { width:100%; }
}
