:root{
  --bg:#f8fafd;--surface:#fff;--surface2:#f0f4f9;--text:#1f1f1f;--muted:#5f6368;
  --blue:#0b57d0;--blue2:#c2e7ff;--border:#dadce0;--danger:#b3261e;--success:#137333;
  --shadow:0 1px 2px rgba(60,64,67,.08),0 1px 3px 1px rgba(60,64,67,.08)
}
*{box-sizing:border-box}html,body{margin:0;padding:0;width:100%;max-width:100%;overflow-x:hidden;font-family:Arial,"Helvetica Neue",sans-serif;color:var(--text);background:var(--bg)}.app-shell,.layout,.main{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
a{color:inherit;text-decoration:none}button,input{font:inherit}.app-shell{min-height:100vh}.topbar{height:64px;display:flex;align-items:center;gap:18px;padding:8px 18px;position:sticky;top:0;background:var(--bg);z-index:20}.brand{display:flex;align-items:center;gap:10px;font-size:21px;min-width:215px}.brand-logo{width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg,#0b57d0,#34a853);display:grid;place-items:center;color:#fff;font-weight:700}.search-wrap{flex:1;max-width:720px;position:relative}.search{width:100%;height:48px;border:0;background:#e9eef6;border-radius:24px;padding:0 48px;font-size:16px;outline:0}.search:focus{background:#fff;box-shadow:var(--shadow)}.search-icon{position:absolute;left:18px;top:14px;color:var(--muted)}.top-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#d3e3fd;color:#174ea6;font-weight:700}.layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:10px;padding:0 14px 14px}.sidebar{padding:6px 0}.new-btn{margin:8px 0 18px 4px;padding:16px 22px;border:0;border-radius:16px;background:#fff;box-shadow:var(--shadow);display:inline-flex;gap:12px;align-items:center;font-weight:600;cursor:pointer}.new-btn:hover{background:#f5f7fa}.nav-item{display:flex;align-items:center;gap:16px;height:40px;padding:0 18px;border-radius:0 22px 22px 0;color:#3c4043;font-size:14px}.nav-item.active{background:var(--blue2);color:#001d35;font-weight:600}.nav-item:hover{background:#e9eef6}.storage-box{padding:18px}.meter{height:5px;background:#dfe3e7;border-radius:3px;overflow:hidden;margin:10px 0}.meter>span{display:block;height:100%;background:var(--blue);border-radius:3px}.small{font-size:12px;color:var(--muted)}.main{background:var(--surface);border-radius:16px;min-height:calc(100vh - 78px);padding:18px 20px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.page-head h1{font-size:24px;font-weight:500;margin:0}.view-actions{display:flex;border:1px solid var(--border);border-radius:20px;overflow:hidden}.view-actions button{border:0;background:#fff;padding:7px 12px;cursor:pointer}.view-actions button.active{background:#e6f4ea}.chips{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.chip{border:1px solid var(--border);border-radius:8px;padding:8px 14px;background:#fff;font-size:14px;cursor:pointer}.notice{padding:12px 14px;border-radius:10px;margin:10px 0}.notice.success{background:#e6f4ea;color:#0d652d}.notice.error{background:#fce8e6;color:#a50e0e}.notice.info{background:#e8f0fe;color:#174ea6}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}.file-card{background:#f0f4f9;border-radius:12px;overflow:hidden;border:1px solid transparent;position:relative}.file-card:hover{box-shadow:var(--shadow);border-color:#e1e5ea}.file-card.blocked{opacity:.63}.file-card-top{height:46px;display:flex;align-items:center;gap:10px;padding:0 12px;font-size:13px;font-weight:600}.file-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.dots{border:0;background:transparent;border-radius:50%;width:30px;height:30px;cursor:pointer}.dots:hover{background:#dfe4ea}.thumb{height:150px;margin:0 8px 8px;background:#fff;border-radius:8px;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.thumb img{width:100%;height:100%;object-fit:cover}.thumb .file-icon{font-size:48px;color:#5f6368}.blocked-badge{position:absolute;top:8px;right:8px;background:#a50e0e;color:#fff;padding:5px 8px;border-radius:12px;font-size:11px}.list-view .grid{display:block}.list-view .file-card{display:grid;grid-template-columns:minmax(280px,1fr) 140px 140px 52px;align-items:center;border-radius:0;background:#fff;border-bottom:1px solid #eee}.list-view .file-card-top{height:52px}.list-view .thumb{display:none}.list-meta{display:none;font-size:13px;color:var(--muted)}.list-view .list-meta{display:block}.list-view .dots{justify-self:center}.empty{padding:70px 20px;text-align:center;color:var(--muted)}
.modal{position:fixed;inset:0;background:rgba(32,33,36,.64);z-index:100;display:none;align-items:center;justify-content:center;padding:20px}.modal.open{display:flex}.modal-card{background:#fff;border-radius:14px;width:min(920px,96vw);max-height:92vh;overflow:auto;box-shadow:0 12px 40px rgba(0,0,0,.3)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #eee}.modal-body{padding:18px}.close{border:0;background:transparent;font-size:24px;cursor:pointer}.dropzone{border:2px dashed #b9c1cc;border-radius:14px;padding:34px;text-align:center;background:#fafcff}.dropzone.drag{border-color:var(--blue);background:#e8f0fe}.btn{border:0;border-radius:18px;padding:9px 16px;cursor:pointer;font-weight:600}.btn-primary{background:var(--blue);color:#fff}.btn-outline{background:#fff;color:var(--blue);border:1px solid #a8c7fa}.btn-danger{background:#b3261e;color:#fff}.file-actions{display:flex;gap:8px;flex-wrap:wrap}.preview-frame{width:100%;height:70vh;border:0;background:#111;border-radius:8px}.auth-page{min-height:100vh;display:grid;place-items:center;padding:20px}.auth-card{width:min(460px,96vw);background:#fff;border:1px solid var(--border);border-radius:18px;padding:32px}.auth-card h1{font-weight:500}.field{margin:15px 0}.field label{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}.field input{width:100%;height:46px;border:1px solid #c4c7c5;border-radius:8px;padding:0 12px}.field input:focus{outline:2px solid #a8c7fa;border-color:var(--blue)}.auth-footer{display:flex;align-items:center;justify-content:space-between;margin-top:22px}.admin-layout{max-width:1180px;margin:24px auto;padding:0 18px}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}.stat{background:#fff;border:1px solid var(--border);border-radius:14px;padding:18px}.stat b{font-size:27px;display:block;margin-top:8px}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--border);border-radius:14px;margin-top:18px}table{border-collapse:collapse;width:100%}th,td{text-align:left;padding:12px;border-bottom:1px solid #eee;font-size:13px}th{background:#f8fafd}.qris-box{text-align:center}.qris-box img{max-width:300px;width:100%;border:1px solid #eee;border-radius:12px}.badge{display:inline-block;padding:4px 8px;border-radius:12px;background:#e8eaed;font-size:11px}.badge.paid{background:#e6f4ea;color:#137333}.badge.pending{background:#fef7e0;color:#b06000}.badge.blocked{background:#fce8e6;color:#a50e0e}
@media(max-width:820px){.layout{grid-template-columns:72px minmax(0,1fr);padding-left:6px}.sidebar .nav-item{padding:0 20px}.nav-item span,.storage-box,.brand span{display:none}.brand{min-width:auto}.topbar{gap:10px;padding:8px}.main{padding:14px}.grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.list-view .file-card{grid-template-columns:1fr 50px}.list-view .list-meta{display:none}.top-actions .plan-text{display:none}}@media(max-width:520px){.layout{display:block}.sidebar{display:flex;position:fixed;bottom:0;left:0;right:0;height:58px;background:#fff;z-index:30;padding:4px;justify-content:space-around;border-top:1px solid #ddd}.sidebar .new-btn,.sidebar .storage-box{display:none}.nav-item{border-radius:16px!important;padding:0 12px!important}.main{border-radius:0;min-height:calc(100vh - 122px)}.topbar .brand{display:none}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.thumb{height:120px}}

/* ZY-Drive branding + Google-style header loading */
.brand-logo-img{width:40px;height:40px;display:block;object-fit:contain;flex:0 0 40px}
.admin-brand{min-width:0}.admin-brand h1{margin:0;font-size:24px;font-weight:500}
.site-footer{margin-top:28px;padding:18px 0 6px;text-align:center;color:var(--muted);font-size:12px;border-top:1px solid #eef0f2}
.main-footer{margin-top:40px}
.global-loader{position:fixed;left:0;right:0;top:0;height:3px;z-index:9999;overflow:hidden;opacity:0;pointer-events:none;transition:opacity .15s ease;background:transparent}
.global-loader.active{opacity:1}
.global-loader span{position:absolute;top:0;bottom:0;width:38%;background:#0b57d0;border-radius:0 3px 3px 0;transform:translateX(-110%)}
.global-loader.active span{animation:zydrive-loading 1.05s cubic-bezier(.4,0,.2,1) infinite}
@keyframes zydrive-loading{0%{transform:translateX(-110%) scaleX(.65)}45%{transform:translateX(120%) scaleX(1)}100%{transform:translateX(310%) scaleX(.5)}}
.admin-controls{display:flex;flex-direction:column;gap:7px;min-width:330px}.admin-controls form{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.mini-input{width:70px;height:36px;border:1px solid var(--border);border-radius:8px;padding:0 8px}.storage-input{width:92px}.admin-users td{vertical-align:top}.admin-users .btn{padding:7px 10px;font-size:12px}.badge.disabled{background:#fce8e6;color:#a50e0e}
@media(max-width:820px){.admin-controls{min-width:260px}.brand-logo-img{width:36px;height:36px;flex-basis:36px}}

/* Dashboard polish: desktop + mobile responsive refinement */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.topbar{height:68px;padding:8px 20px;gap:16px}
.brand{min-width:218px;gap:10px;font-size:20px;font-weight:500;line-height:1}
.brand-logo-img{width:32px!important;height:32px!important;max-width:32px!important;max-height:32px!important;flex:0 0 32px!important;border-radius:9px}
.search-wrap{max-width:720px}
.search{height:46px;background:#edf2fa;padding-left:48px}
.search-icon{left:17px;top:50%;width:20px;height:20px;transform:translateY(-50%);display:grid;place-items:center}
.search-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
.layout{grid-template-columns:224px minmax(0,1fr);gap:12px;padding:0 16px 16px}
.sidebar{padding:5px 0 12px}
.new-btn{margin:7px 0 18px 2px;min-width:112px;height:52px;padding:0 18px;border-radius:16px;font-size:14px}
.new-plus{font-size:25px;line-height:1;font-weight:400}
.nav-item{gap:14px;height:42px;padding:0 18px;border-radius:0 22px 22px 0}
.nav-icon{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav-icon-star{fill:none}
.storage-box{padding:18px 16px}
.main{min-height:calc(100dvh - 84px);padding:22px 24px;display:flex;flex-direction:column}
.page-head h1{font-size:24px}
.view-actions button{width:42px;height:38px;padding:0;display:grid;place-items:center}
.view-actions button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.chips{margin:20px 0}
.empty{flex:1;min-height:360px;padding:50px 20px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.empty-icon{width:64px;height:64px;fill:none;stroke:#5f6368;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;margin-bottom:8px}
.empty h3{font-size:18px;margin:7px 0 4px;color:#5f6368}.empty p{margin:6px 0;font-size:15px}
.site-footer{font-size:12px!important;line-height:1.5}.main-footer{margin-top:auto;padding-top:18px}
.mobile-fab{display:none}

@media(max-width:980px) and (min-width:641px){
  .layout{grid-template-columns:76px minmax(0,1fr);padding:0 12px 14px;gap:10px}
  .brand{min-width:76px}.brand span{display:none}
  .sidebar .nav-item{padding:0 27px}.sidebar .nav-item span,.storage-box{display:none}
  .new-btn{min-width:58px;width:58px;padding:0;justify-content:center;margin-left:4px}.new-btn>span:last-child{display:none}
  .main{padding:18px}.top-actions .plan-text{display:none}
  .grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
  .folder-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
}

@media(max-width:640px){
  body{padding-bottom:68px;background:#fff;width:100%;max-width:100%;overflow-x:hidden}
  .app-shell{min-height:calc(100dvh - 68px);width:100%;max-width:100%;overflow-x:hidden}
  .topbar{height:66px;padding:8px 14px;gap:10px;background:#fff;box-shadow:0 1px 0 rgba(60,64,67,.08);width:100%;box-sizing:border-box}
  .topbar .brand{display:none}
  .search-wrap{max-width:none;min-width:0;flex:1}
  .search{height:46px;border-radius:24px;font-size:15px;padding:0 38px 0 42px;background:#eef3fb}
  .search-icon{left:14px}
  .top-actions{gap:6px;margin-left:auto;flex-shrink:0}
  .top-actions .plan-text,.top-actions .admin-top-btn{display:none}
  .avatar{width:38px;height:38px;flex:0 0 38px}

  .layout{display:block;padding:0;width:100%;box-sizing:border-box}
  .main{border-radius:0;min-height:calc(100dvh - 134px);padding:16px 14px 20px;background:#fff;width:100%;box-sizing:border-box}

  .page-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;width:100%}
  .page-head h1{font-size:22px;line-height:1.2;margin:0}
  .view-actions{border-radius:20px;flex-shrink:0}
  .view-actions button{width:40px;height:36px}
  .view-actions button svg{width:18px;height:18px}

  .breadcrumb-nav{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-bottom:14px;padding:0;width:100%}
  .crumbs{width:100%;font-size:13.5px;gap:4px;word-break:break-word}
  .crumb-link,.crumb-current{padding:2px 4px;font-size:13px}
  .crumb-btn-group{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
  .crumb-btn-group .btn{width:100%;display:flex;align-items:center;justify-content:center;text-align:center;padding:8px 6px;font-size:12.5px;border-radius:14px;white-space:nowrap}

  .chips{display:flex;gap:8px;margin:12px 0 16px;width:100%;max-width:100%;box-sizing:border-box}
  .chip{flex:1;min-width:0;text-align:center;padding:7px 4px;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:8px}

  .folder-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:18px;width:100%}
  .folder-card{padding:8px 10px;min-width:0;box-sizing:border-box;border-radius:10px}
  .folder-card-body{gap:6px;min-width:0}
  .folder-card-icon{font-size:18px;flex:0 0 18px}
  .folder-card-title{font-size:12.5px}
  .dots{width:28px;height:28px;flex:0 0 28px}

  .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
  .file-card{min-width:0;box-sizing:border-box;border-radius:10px}
  .thumb{height:112px;margin:0 6px 6px;border-radius:6px}
  .file-card-top{height:40px;padding:0 8px;font-size:12px;gap:6px}

  .list-view .folder-grid{grid-template-columns:1fr;gap:6px}
  .list-view .file-card{grid-template-columns:minmax(0,1fr) 38px;width:100%}
  .list-view .file-card-top{min-width:0}

  .empty{min-height:calc(100dvh - 320px);padding:30px 12px 50px}
  .empty-icon{width:56px;height:56px}
  .empty h3{font-size:18px}
  .empty p{font-size:14px;text-align:center}
  .main-footer{margin-top:auto;padding:12px 0 80px;font-size:11px!important;text-align:center;border-top:0;color:#777}

  .sidebar{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;height:64px;background:rgba(255,255,255,.98);z-index:40;padding:3px 2px 2px;border-top:1px solid #e3e7ec;box-shadow:0 -1px 6px rgba(60,64,67,.06)}
  .sidebar .new-btn,.sidebar .storage-box{display:none}
  .sidebar .nav-item{height:56px!important;min-width:0;padding:4px 2px 2px!important;border-radius:14px!important;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:10px;line-height:1.1;color:#4b4f52;background:transparent}
  .sidebar .nav-item span{display:block!important;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .sidebar .nav-item.active{background:transparent;color:#0b57d0;font-weight:600}
  .sidebar .nav-item.active .nav-icon{background:#c2e7ff;border-radius:14px;padding:4px;width:34px;height:26px}
  .nav-icon{width:20px;height:20px;flex:0 0 auto;stroke-width:1.8}

  .mobile-fab{display:grid;place-items:center;position:fixed;right:16px;bottom:78px;width:54px;height:54px;border:0;border-radius:16px;background:#fff;color:#0b57d0;box-shadow:0 2px 8px rgba(60,64,67,.28),0 1px 3px rgba(60,64,67,.18);z-index:45;cursor:pointer}
  .mobile-fab span{font-size:28px;font-weight:300;line-height:1;transform:translateY(-1px)}

  .modal{padding:10px}
  .modal-card{width:100%;max-width:100%;max-height:90dvh;border-radius:16px;box-sizing:border-box}
  .preview-frame{height:70dvh}

  .admin-layout{margin:12px auto;padding:0 12px;width:100%;max-width:100%;box-sizing:border-box}
  .admin-brand{min-width:0}
  .admin-brand h1{font-size:20px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .stat{padding:12px}
  .stat b{font-size:18px}
  .table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}

  .auth-page{padding:14px;min-height:100dvh}
  .auth-card{width:100%;padding:24px 18px;border-radius:16px}
  .auth-card .brand{min-width:0;width:100%}
}

/* ===== ZY-Drive smooth loaders, account menu, security & PWA ===== */
body{opacity:.985;transition:opacity .18s ease}body.page-ready{opacity:1}
.avatar-button{border:0;cursor:pointer;padding:0;font:inherit;transition:transform .16s ease,box-shadow .16s ease}.avatar-button:hover{transform:scale(1.04);box-shadow:0 0 0 4px rgba(11,87,208,.08)}
.nav-account-mobile{display:none}
.soft-loader{position:fixed;inset:0;z-index:9998;background:rgba(248,250,253,.38);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);display:grid;place-items:center;opacity:0;visibility:hidden;transition:opacity .18s ease,visibility .18s ease;pointer-events:none}.soft-loader.active{opacity:1;visibility:visible;pointer-events:auto}.soft-loader-card{display:flex;align-items:center;gap:13px;min-width:220px;max-width:86vw;padding:14px 18px;background:rgba(255,255,255,.96);border:1px solid rgba(218,220,224,.9);border-radius:18px;box-shadow:0 8px 30px rgba(60,64,67,.18)}.soft-loader-card b{display:block;font-size:14px;font-weight:600}.soft-loader-card span{display:block;margin-top:3px;font-size:12px;color:var(--muted)}
.soft-spinner{width:27px;height:27px;border:3px solid #dbe5f5;border-top-color:#0b57d0;border-radius:50%;animation:soft-spin .72s linear infinite;flex:0 0 27px}@keyframes soft-spin{to{transform:rotate(360deg)}}
.btn{position:relative;transition:transform .14s ease,box-shadow .14s ease,background .14s ease}.btn:active{transform:scale(.985)}.btn-loading{pointer-events:none;color:transparent!important;min-width:44px}.btn-loading:after{content:"";position:absolute;width:16px;height:16px;left:50%;top:50%;margin:-8px 0 0 -8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:soft-spin .65s linear infinite;color:inherit}.btn-primary.btn-loading:after,.btn-danger.btn-loading:after{border-color:rgba(255,255,255,.5);border-right-color:#fff}.btn-outline.btn-loading:after{border-color:#a8c7fa;border-right-color:#0b57d0}
.toast-stack{position:fixed;right:18px;bottom:18px;z-index:10020;display:flex;flex-direction:column;gap:8px;pointer-events:none}.soft-toast{max-width:min(360px,88vw);padding:11px 14px;background:#303134;color:#fff;border-radius:10px;box-shadow:0 5px 18px rgba(0,0,0,.18);font-size:13px;opacity:0;transform:translateY(8px);transition:.2s ease}.soft-toast.show{opacity:1;transform:none}.soft-toast.success{background:#137333}.soft-toast.error{background:#b3261e}
.dropzone{transition:border-color .18s ease,background .18s ease,transform .18s ease}.dropzone:hover{background:#f4f8ff}.dropzone.drag{transform:scale(.995)}.dropzone.uploading{opacity:.5;pointer-events:none}.dropzone-cloud{font-size:48px;line-height:1}.upload-status{margin-top:14px;padding:14px;border:1px solid #d9e2f0;border-radius:14px;background:#f8fbff}.upload-status[hidden]{display:none}.upload-status-row{display:flex;align-items:center;gap:12px}.upload-file-icon{width:38px;height:38px;border-radius:12px;background:#e8f0fe;color:#0b57d0;display:grid;place-items:center;font-size:22px;font-weight:700}.upload-status-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}.upload-status-copy b{font-size:13px}.upload-status-copy span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.upload-status-row strong{font-size:13px;color:#0b57d0}.upload-progress{height:7px;margin-top:12px;background:#e5eaf2;border-radius:7px;overflow:hidden}.upload-progress span{display:block;width:0;height:100%;background:#0b57d0;border-radius:7px;transition:width .16s ease}
.account-modal{background:rgba(32,33,36,.24);align-items:flex-start;justify-content:flex-end;padding:66px 18px 18px}.account-menu-card{width:360px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 84px);border-radius:22px;box-shadow:0 10px 36px rgba(60,64,67,.23);overflow:auto}.account-menu-handle{display:none}.account-menu-user{display:flex;align-items:center;gap:12px;padding:17px 18px 13px}.account-menu-avatar{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#d3e3fd;color:#174ea6;font-weight:700;font-size:18px;flex:0 0 46px}.account-menu-user>div:last-child{min-width:0}.account-menu-user b,.account-menu-user span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-menu-user span{margin-top:3px;font-size:12px;color:var(--muted)}.account-menu-links{padding:4px 9px 10px}.account-menu-links>a,.account-menu-action{width:100%;border:0;background:transparent;display:flex;align-items:center;gap:12px;padding:11px 10px;border-radius:13px;text-align:left;cursor:pointer;color:#202124}.account-menu-links>a:hover,.account-menu-action:hover{background:#f1f3f4}.account-menu-links>a>span:last-child,.account-menu-action>span:last-child{display:flex;min-width:0;flex-direction:column;gap:2px}.account-menu-links b{font-size:13px;font-weight:600}.account-menu-links small{font-size:11px;color:var(--muted)}.menu-link-icon{width:34px;height:34px;flex:0 0 34px;border-radius:11px;background:#eef3fb;color:#174ea6;display:grid;place-items:center;font-size:16px}.logout-link{color:#a50e0e!important}.logout-link .menu-link-icon{background:#fce8e6;color:#a50e0e}.account-menu-footer{padding:12px 16px 16px;border-top:1px solid #eef0f2;font-size:10.5px;color:#777;text-align:center}

/* Account / security page */
.account-page{min-height:100dvh;background:#f8fafd}.account-topbar{height:68px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px max(20px,calc((100vw - 1080px)/2));background:#f8fafd;position:sticky;top:0;z-index:20}.account-topbar .brand{min-width:0}.account-main{width:min(980px,calc(100% - 32px));margin:20px auto 40px}.account-hero{display:flex;align-items:center;gap:16px;padding:22px 4px}.account-hero h1{margin:0;font-size:28px;font-weight:500}.account-hero p{margin:5px 0 0;color:var(--muted)}.account-avatar{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:#d3e3fd;color:#174ea6;font-size:26px;font-weight:700}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.settings-card{background:#fff;border:1px solid #e0e3e7;border-radius:20px;padding:20px;box-shadow:0 1px 2px rgba(60,64,67,.03)}.settings-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.settings-card-head h2{margin:0;font-size:18px;font-weight:600}.settings-card-head p{margin:6px 0 0;font-size:13px;line-height:1.5;color:var(--muted)}.settings-icon{font-size:24px}.settings-form{margin-top:14px}.settings-form h3{margin:0 0 10px;font-size:15px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.settings-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.compact-form{padding-top:6px;border-top:1px solid #eef0f2}.status-pill{padding:6px 9px;border-radius:999px;font-size:11px;font-weight:700}.status-pill.on{background:#e6f4ea;color:#137333}.status-pill.off{background:#f1f3f4;color:#5f6368}.security-state{display:flex;align-items:center;gap:12px;padding:13px;border-radius:14px;background:#eaf5ed}.security-state p{margin:3px 0 0;font-size:12px;color:#4b6351}.security-check{width:35px;height:35px;border-radius:50%;background:#137333;color:#fff;display:grid;place-items:center;font-weight:700}.muted-state{background:#f6f8fb}.muted-state .security-check{background:#e8f0fe;color:#0b57d0}.muted-state p{color:var(--muted)}.auth-setup-box{display:flex;align-items:flex-start;gap:12px;padding:14px 0;border-top:1px solid #eef0f2}.auth-setup-box:first-of-type{border-top:0}.step-number{width:28px;height:28px;flex:0 0 28px;border-radius:50%;display:grid;place-items:center;background:#0b57d0;color:#fff;font-size:12px;font-weight:700}.auth-setup-box p{font-size:12px;line-height:1.5;color:var(--muted)}.secret-box{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px;margin:10px 0;background:#f1f5fb;border-radius:10px}.secret-box>span{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;letter-spacing:.8px;word-break:break-all;flex:1}.open-authenticator-btn{display:inline-flex;margin:2px 0 4px}.otp-input{letter-spacing:5px;font-weight:700;font-size:18px!important;text-align:center}.pwa-card{display:flex;align-items:center;gap:12px;padding:12px 0 16px}.pwa-logo-wrap{width:52px;height:52px;border-radius:15px;background:#eef3fb;display:grid;place-items:center;flex:0 0 52px}.pwa-logo-wrap img{width:40px;height:40px}.pwa-card p{margin:4px 0 0;font-size:12px;color:var(--muted)}.pwa-help{margin-top:12px;line-height:1.5}.danger-card{align-self:start}.logout-wide{display:inline-flex}.auth-card-soft{box-shadow:0 8px 32px rgba(60,64,67,.08)}.security-heading{display:flex;align-items:center;gap:12px;margin:20px 0}.security-heading h1{margin:0;font-size:23px}.security-heading p{margin:5px 0 0;color:var(--muted);font-size:13px}.security-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#e6f4ea;color:#137333;font-weight:700}

@media(max-width:760px){
  .toast-stack{left:12px;right:12px;bottom:84px}.soft-toast{max-width:none;width:100%}
  .nav-api{display:none!important}.nav-account-mobile{display:flex!important}
  .account-modal{align-items:flex-end;justify-content:center;padding:0;background:rgba(32,33,36,.38)}.account-menu-card{width:100%;max-width:none;max-height:84dvh;border-radius:22px 22px 0 0;padding-bottom:max(6px,env(safe-area-inset-bottom))}.account-menu-handle{display:block;width:42px;height:4px;border-radius:4px;background:#c9cdd1;margin:8px auto 1px}.account-menu-card .modal-head{padding-top:10px}
  .account-main{width:min(100% - 20px,640px);margin-top:8px}.account-topbar{height:62px;padding:8px 12px}.account-topbar .brand{font-size:18px}.account-topbar .btn{padding:8px 11px;font-size:12px}.account-hero{padding:14px 6px}.account-hero h1{font-size:22px}.account-avatar{width:54px;height:54px;font-size:22px}.account-grid{grid-template-columns:1fr;gap:12px}.settings-card{padding:17px;border-radius:18px}.field-row{grid-template-columns:1fr}.auth-setup-box{gap:9px}.secret-box{align-items:stretch}.secret-box .btn{width:100%}.soft-loader-card{min-width:0;width:calc(100% - 44px)}
}

/* ===== Folder & Breadcrumb System ===== */
.breadcrumb-nav{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:16px;padding:4px 0}
.crumbs{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:16px;font-weight:500}
.crumb-arrow{color:var(--muted);font-size:13px;user-select:none}
.crumb-link{color:#0b57d0;display:inline-flex;align-items:center;gap:4px;border-radius:6px;padding:3px 6px;text-decoration:none}
.crumb-link:hover{background:#e8f0fe}
.crumb-current{color:var(--text);font-weight:600;padding:3px 6px}
.crumb-btn-group{display:flex;align-items:center;gap:8px}
.section-title{font-size:13px;font-weight:700;color:var(--muted);margin:16px 0 10px;text-transform:uppercase;letter-spacing:.6px}
.folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;margin-bottom:20px}
.folder-card{display:flex;align-items:center;justify-content:space-between;background:#f0f4f9;border-radius:12px;padding:10px 14px;border:1px solid transparent;transition:background .15s,box-shadow .15s}
.folder-card:hover{background:#e9edf2;box-shadow:var(--shadow);border-color:#dadce0}
.folder-card-body{display:flex;align-items:center;gap:10px;flex:1;min-width:0;color:inherit;text-decoration:none}
.folder-card-icon{font-size:22px;line-height:1;flex:0 0 22px}
.folder-card-title{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.btn-sm{padding:6px 14px;font-size:13px;border-radius:14px}
.new-action-list{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.new-action-btn{display:flex;align-items:center;gap:14px;width:100%;padding:14px 16px;border-radius:14px;border:1px solid var(--border);background:#fff;text-align:left;cursor:pointer;font-weight:600;font-size:15px;color:var(--text);transition:background .15s}
.new-action-btn:hover{background:#f0f4f9}
.new-action-btn span:first-child{font-size:24px}
.folder-select{width:100%;height:46px;border:1px solid #c4c7c5;border-radius:8px;padding:0 12px;background:#fff;font-size:14px}
.folder-select:focus{outline:2px solid #a8c7fa;border-color:var(--blue)}


/* ===== 20260907b: defensive SVG sizing + responsive hardening ===== */
img{max-width:100%}
.brand-logo-img{display:block;object-fit:contain}
.search-icon svg,.nav-icon,.view-actions button svg,.empty-icon{display:block;overflow:visible}
.search-icon svg{width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important}
.nav-icon{width:20px!important;height:20px!important;min-width:20px!important;max-width:20px!important;max-height:20px!important;fill:none!important;stroke:currentColor!important}
.view-actions button svg{width:19px!important;height:19px!important;max-width:19px!important;max-height:19px!important;fill:none!important;stroke:currentColor!important}
.empty-icon{width:64px!important;height:64px!important;max-width:64px!important;max-height:64px!important;fill:none!important;stroke:#5f6368!important}

.topbar,.layout,.sidebar,.main,.page-head,.breadcrumb-nav,.grid,.folder-grid{min-width:0}
.main{overflow:hidden}
.file-name,.folder-card-title,.account-menu-user b,.account-menu-user span{min-width:0}
.notice{overflow-wrap:anywhere}
.auth-link{color:#0b57d0;font-weight:600}
.auth-heading{margin:24px 0 18px}
.auth-heading h1{margin:0 0 7px;font-size:28px}
.auth-heading p{margin:0;color:var(--muted);line-height:1.45}
.auth-brand{min-width:0}
.auth-brand .brand-logo-img{width:40px!important;height:40px!important;max-width:40px!important;max-height:40px!important;flex-basis:40px!important}
.auth-card form{width:100%}
.auth-card .btn{min-height:40px}

@media(min-width:981px){
  .layout{grid-template-columns:232px minmax(0,1fr);gap:12px;padding:0 16px 16px}
  .sidebar{width:232px}
  .main{min-width:0;padding:22px 24px}
  .topbar{padding-left:20px;padding-right:20px}
  .brand{min-width:226px}
  .grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
  .folder-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
}

@media(max-width:980px) and (min-width:641px){
  .topbar{padding:8px 12px}
  .layout{grid-template-columns:72px minmax(0,1fr);gap:8px;padding:0 10px 12px 4px}
  .brand{min-width:72px}
  .sidebar{width:72px}
  .sidebar .nav-item{padding:0!important;justify-content:center}
  .sidebar .nav-item .nav-icon{flex:0 0 20px}
  .main{padding:18px 16px}
  .search-wrap{max-width:none}
}

@media(max-width:640px){
  html{background:#fff}
  body{padding-bottom:calc(68px + env(safe-area-inset-bottom));background:#fff}
  .app-shell{min-height:100dvh}
  .topbar{position:sticky;top:0;z-index:50;height:64px;padding:8px 12px;background:rgba(255,255,255,.97);backdrop-filter:saturate(180%) blur(12px);-webkit-backdrop-filter:saturate(180%) blur(12px)}
  .search-wrap{width:auto;min-width:0}
  .search{width:100%;min-width:0;height:44px;font-size:14px;padding-left:40px;padding-right:14px}
  .top-actions{min-width:38px}
  .avatar{width:38px;height:38px}
  .layout{display:block;width:100%;padding:0}
  .main{width:100%;min-height:calc(100dvh - 132px);padding:14px 12px 22px;border-radius:0;overflow:visible}
  .page-head{margin-bottom:10px}
  .page-head h1{font-size:21px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .view-actions{flex:0 0 auto}
  .breadcrumb-nav{gap:9px;margin-bottom:12px}
  .crumbs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px;scrollbar-width:none}
  .crumbs::-webkit-scrollbar{display:none}
  .crumb-link,.crumb-current,.crumb-arrow{flex:0 0 auto;white-space:nowrap}
  .crumb-btn-group{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .crumb-btn-group .btn{min-width:0;overflow:hidden;text-overflow:ellipsis}
  .chips{gap:6px;margin:10px 0 14px}
  .chip{height:36px;padding:0 8px}
  .folder-grid,.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .file-card,.folder-card{width:100%;min-width:0}
  .thumb{height:clamp(104px,31vw,142px)}
  .sidebar{height:calc(64px + env(safe-area-inset-bottom));padding:3px 2px max(2px,env(safe-area-inset-bottom));grid-template-columns:repeat(5,minmax(0,1fr))}
  .sidebar .nav-item{width:100%;min-width:0;height:56px!important}
  .sidebar .nav-item span{font-size:10px}
  .mobile-fab{bottom:calc(78px + env(safe-area-inset-bottom));right:14px}
  .modal{padding:10px 8px calc(10px + env(safe-area-inset-bottom))}
  .modal-card{max-height:calc(100dvh - 24px)}
  .modal-head{padding:13px 14px}
  .modal-body{padding:14px}
  .auth-page{display:flex;align-items:center;justify-content:center;padding:18px 14px calc(18px + env(safe-area-inset-bottom));background:#f8fafd}
  .auth-card{width:min(100%,460px);padding:24px 18px;border-radius:18px}
  .auth-heading{margin:20px 0 15px}
  .auth-heading h1{font-size:25px}
  .auth-footer{gap:12px;flex-wrap:wrap}
  .auth-footer .btn{margin-left:auto}
}

@media(max-width:380px){
  .main{padding-left:10px;padding-right:10px}
  .folder-grid,.grid{grid-template-columns:1fr}
  .thumb{height:180px}
  .crumb-btn-group{grid-template-columns:1fr}
  .auth-footer{align-items:stretch;flex-direction:column-reverse}
  .auth-footer .btn{width:100%;margin-left:0}
  .auth-footer .auth-link{text-align:center;padding:8px 0}
}


/* ZY-Drive sky-blue system theme + retention UI */
:root{
  --bg:#eef9ff;--surface:#ffffff;--surface2:#e8f7ff;--text:#15364a;--muted:#628096;
  --blue:#0ea5e9;--blue2:#d9f2ff;--border:#cfeaf6;
  --shadow:0 10px 30px rgba(14,165,233,.10),0 2px 8px rgba(15,86,118,.07)
}
html,body{background:linear-gradient(180deg,#eef9ff 0,#f7fcff 38%,#eef9ff 100%);color:var(--text)}
.main,.auth-card,.stat,.table-wrap,.settings-card,.modal-card,.file-card,.folder-card{border-color:#d7edf7}
.btn-primary{background:linear-gradient(135deg,#0ea5e9,#38bdf8)}
.btn-outline{color:#0284c7;border-color:#8ed8f5;background:rgba(255,255,255,.88)}
.notice.info{background:#e0f5ff;color:#075985}
.nav-item.active{background:#d9f2ff;color:#075985}.nav-item:hover{background:#e4f6ff}
.meter{background:#dceff8}.meter>span{background:linear-gradient(90deg,#38bdf8,#0ea5e9)}
.file-card{background:#effaff}.file-card:hover{border-color:#bce5f6}
.search{background:#e3f5ff;color:#164e63}.search:focus{background:#fff;box-shadow:0 0 0 4px rgba(14,165,233,.12),var(--shadow)}
.global-loader span{background:#0ea5e9}

/* Main Drive search/header floats on desktop and mobile. */
.app-shell>.topbar{
  position:sticky;top:10px;height:64px;margin:10px 16px 12px;padding:8px 14px;width:calc(100% - 32px);
  border:1px solid rgba(125,211,252,.55);border-radius:22px;background:rgba(255,255,255,.86);
  box-shadow:0 14px 34px rgba(14,165,233,.12);backdrop-filter:blur(16px) saturate(160%);-webkit-backdrop-filter:blur(16px) saturate(160%);z-index:55
}
.app-shell>.topbar .search{border:1px solid transparent}
.app-shell>.topbar .search:focus{border-color:#7dd3fc}
.layout{padding-top:0}

/* Storage retention rules appear throughout the system. */
.zy-storage-policy{margin:28px 0 14px;padding:20px;border:1px solid #bfe8f8;border-radius:20px;background:linear-gradient(145deg,#f0faff,#fff);box-shadow:0 10px 28px rgba(14,165,233,.07)}
.zy-policy-head{display:flex;align-items:flex-start;gap:12px}.zy-policy-head b{display:block;font-size:16px;color:#075985}.zy-policy-head p{margin:4px 0 0;color:#648397;font-size:12.5px;line-height:1.5}.zy-policy-icon{width:32px;height:32px;flex:0 0 32px;border-radius:11px;display:grid;place-items:center;background:#0ea5e9;color:#fff;font-weight:800;font-family:Georgia,serif}
.zy-policy-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.zy-policy-grid>div{display:grid;grid-template-columns:72px 1fr;gap:12px;align-items:start;padding:14px;border:1px solid #d8eef8;border-radius:16px;background:rgba(255,255,255,.84)}.zy-policy-grid strong{color:#0284c7;font-size:18px;line-height:1.2}.zy-policy-grid span{font-size:12.5px;line-height:1.55;color:#4f7185}.zy-policy-note{margin:13px 2px 0;color:#69889a;font-size:11.5px;line-height:1.55}
.zy-storage-policy-compact{padding:12px 14px;margin:18px 0 10px;border-radius:14px;font-size:11.5px;line-height:1.55;color:#35677f;background:#eefaff}

/* Footer identity uses the complete company name. On mobile the Drive bottom menu
   becomes a floating dock and the company identity sits directly below it. */
.site-footer{border-top-color:#dceff8;color:#7893a3}

@media(max-width:640px){
  body{background:linear-gradient(180deg,#eef9ff 0,#fff 28%,#eef9ff 100%)}
  .app-shell>.topbar{position:sticky;top:max(8px, env(safe-area-inset-top));height:60px;margin:8px 10px 10px;width:calc(100% - 20px);padding:7px 9px;border-radius:19px;background:rgba(255,255,255,.91)}
  .app-shell>.topbar .search{height:44px;background:#e8f7ff}
  .main{background:rgba(255,255,255,.96);border-radius:20px 20px 0 0}
  .zy-policy-grid{grid-template-columns:1fr}.zy-policy-grid>div{grid-template-columns:64px 1fr;padding:12px}.zy-storage-policy{padding:16px;margin:20px 0 10px;border-radius:18px}.zy-policy-head b{font-size:15px}.zy-policy-head p{font-size:12px}.zy-policy-grid strong{font-size:16px}.zy-policy-grid span{font-size:12px}
}

/* Drive-only floating mobile dock + company identity below the dock. */
@media(max-width:640px){
  .app-shell .sidebar{
    left:10px;right:10px;bottom:calc(28px + env(safe-area-inset-bottom));
    width:auto;height:64px;padding:4px 6px;
    border:1px solid rgba(125,211,252,.58);border-radius:22px;
    background:rgba(255,255,255,.93);box-shadow:0 14px 34px rgba(14,165,233,.20),0 3px 10px rgba(15,86,118,.08);
    backdrop-filter:blur(16px) saturate(160%);-webkit-backdrop-filter:blur(16px) saturate(160%);
    overflow:visible
  }
  .app-shell .sidebar::after{
    content:'PT CUTIEZY ID NUSANTARA';position:absolute;left:0;right:0;top:calc(100% + 6px);
    text-align:center;color:#5f8397;font-size:9.5px;font-weight:800;line-height:1;letter-spacing:.12em;
    white-space:nowrap;pointer-events:none;text-shadow:0 1px 0 rgba(255,255,255,.9)
  }
  .app-shell .sidebar .nav-item{height:54px!important;border-radius:16px!important}
  .app-shell .sidebar .nav-item.active{background:#e0f5ff;color:#0284c7}
  .app-shell .sidebar .nav-item.active .nav-icon{background:transparent}
  .app-shell .main{padding-bottom:132px}
  .app-shell .main-footer{padding-bottom:10px;margin-bottom:0}
  .app-shell .mobile-fab{bottom:calc(108px + env(safe-area-inset-bottom));right:16px}
}

/* === 2026-09-07d: email verification + collapsible dashboard policy === */
.zy-policy-collapsible{padding:0;overflow:hidden}
.zy-policy-collapsible>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 17px;cursor:pointer;user-select:none}
.zy-policy-collapsible>summary::-webkit-details-marker{display:none}
.zy-policy-summary-main{display:flex;align-items:center;gap:11px;min-width:0}
.zy-policy-summary-main>span:last-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.zy-policy-summary-main b{font-size:14px;color:#075985}
.zy-policy-summary-main small{font-size:11.5px;color:#6b8ba0;line-height:1.35}
.zy-policy-chevron{font-size:22px;line-height:1;color:#0284c7;transition:transform .2s ease;transform:rotate(0deg)}
.zy-policy-collapsible[open] .zy-policy-chevron{transform:rotate(180deg)}
.zy-policy-body{padding:0 17px 16px;border-top:1px solid #dceff8}
.zy-policy-collapsible .zy-policy-grid{margin-top:14px}
.zy-policy-collapsible:not([open]){box-shadow:0 7px 18px rgba(14,165,233,.06)}

.zy-security-panel{margin:18px 0 18px;padding:20px;border:1px solid #bfe8f8;border-radius:20px;background:linear-gradient(135deg,#08314e 0%,#0f4f75 48%,#0284c7 100%);color:#fff;box-shadow:0 18px 36px rgba(8,47,73,.14)}
.zy-security-kicker{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);font-size:11.5px;font-weight:800;letter-spacing:.08em;margin-bottom:12px}
.zy-security-panel h2{margin:0 0 9px;font-size:22px;line-height:1.22;color:#fff}
.zy-security-panel p{margin:0;color:rgba(255,255,255,.86);font-size:13.5px;line-height:1.7}
.zy-security-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}
.zy-security-grid>div{padding:14px;border-radius:16px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.14)}
.zy-security-grid strong{display:block;margin-bottom:5px;font-size:13.5px;color:#fff}
.zy-security-grid span{display:block;font-size:12px;line-height:1.65;color:rgba(255,255,255,.82)}
.zy-security-note{margin-top:14px;font-size:11.5px!important;color:rgba(255,255,255,.76)!important}

.verify-email-card{max-width:480px}
.verify-email-icon{width:58px;height:58px;margin:8px 0 14px;border-radius:18px;display:grid;place-items:center;background:#e0f5ff;color:#0284c7;font-size:28px;box-shadow:inset 0 0 0 1px #bae6fd}
.verify-resend-form{margin-top:18px}
.verify-email-actions{margin-top:16px;gap:16px;flex-wrap:wrap}
.auth-verify-link{margin:14px 0 0;text-align:center;font-size:12px;line-height:1.5}
.auth-verify-link a{color:#0284c7;text-decoration:none}
.auth-verify-link a:hover{text-decoration:underline}

@media(max-width:640px){
  .zy-policy-collapsible>summary{padding:13px 14px}
  .zy-policy-body{padding:0 14px 14px}
  .zy-policy-summary-main b{font-size:13px}
  .zy-policy-summary-main small{font-size:10.8px}
  .zy-security-panel{padding:16px 15px;border-radius:18px;margin:16px 0 12px}
  .zy-security-panel h2{font-size:18px}
  .zy-security-grid{grid-template-columns:1fr;gap:10px}
  .zy-security-grid>div{padding:12px 13px}
  /* Tombol + dinaikkan lagi agar lebih jauh dari dock menu bawah floating. */
  .app-shell .mobile-fab{bottom:calc(154px + env(safe-area-inset-bottom));right:16px}
}


/* === 2026-09-07f: mobile floating search + FAB clearance === */
@media(max-width:640px){
  /* Search bar benar-benar fixed/melayang saat halaman di-scroll. */
  .app-shell>.topbar{
    position:fixed!important;
    top:max(8px,env(safe-area-inset-top))!important;
    left:10px!important;right:10px!important;
    width:auto!important;height:60px!important;
    margin:0!important;padding:7px 9px!important;
    border:1px solid rgba(125,211,252,.68)!important;
    border-radius:19px!important;
    background:rgba(255,255,255,.94)!important;
    box-shadow:0 14px 34px rgba(14,165,233,.16),0 3px 10px rgba(15,86,118,.08)!important;
    backdrop-filter:blur(16px) saturate(160%);
    -webkit-backdrop-filter:blur(16px) saturate(160%);
    z-index:80!important;
  }
  .app-shell>.topbar .search-wrap{width:auto!important;min-width:0!important;flex:1 1 auto!important}
  .app-shell>.topbar .search{height:44px!important;width:100%!important;background:#e8f7ff!important}
  /* Karena topbar fixed keluar dari flow, beri ruang agar konten tidak tertutup. */
  .app-shell>.layout{padding-top:calc(76px + env(safe-area-inset-top))!important}

  /* FAB dinaikkan lagi agar tidak bertabrakan dengan footer/dock bawah. */
  .app-shell .mobile-fab{
    bottom:calc(260px + env(safe-area-inset-bottom))!important;
    right:16px!important;
    z-index:75!important;
  }
}


/* === 2026-09-07h: FAB mobile berada di luar .app-shell === */
@media(max-width:640px){
  /* Tombol FAB dirender sebagai child langsung body, jadi selector lama .app-shell .mobile-fab tidak pernah cocok. */
  body > .mobile-fab{
    display:grid!important;
    position:fixed!important;
    right:16px!important;
    bottom:calc(150px + env(safe-area-inset-bottom))!important;
    z-index:90!important;
  }
  /* Sisakan zona kosong di bawah konten agar copyright/footer tidak berada di belakang FAB dan dock. */
  .app-shell .main{padding-bottom:190px!important}
}


/* === 2026-09-07i: collapsible privacy card + animated mobile FAB === */
.zy-security-collapsible{padding:0;overflow:hidden}
.zy-security-collapsible>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;cursor:pointer;user-select:none}
.zy-security-collapsible>summary::-webkit-details-marker{display:none}
.zy-security-summary-main{display:flex;align-items:center;gap:12px;min-width:0}
.zy-security-collapsible .zy-security-kicker{margin:0;flex:0 0 auto}
.zy-security-summary-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.zy-security-summary-copy strong{font-size:16px;line-height:1.3;color:#fff}
.zy-security-summary-copy small{font-size:11.5px;line-height:1.4;color:rgba(255,255,255,.72)}
.zy-security-chevron{font-size:24px;line-height:1;color:#fff;transition:transform .22s ease;flex:0 0 auto}
.zy-security-collapsible[open] .zy-security-chevron{transform:rotate(180deg)}
.zy-security-body{padding:0 18px 18px;border-top:1px solid rgba(255,255,255,.14)}
.zy-security-body>p:first-child{padding-top:15px}
.zy-security-collapsible:not([open]){box-shadow:0 12px 28px rgba(8,47,73,.12)}

@keyframes zyFabRainbowSpin{to{transform:rotate(360deg)}}
@keyframes zyFabSoftPulse{0%,100%{box-shadow:0 7px 22px rgba(14,165,233,.24),0 2px 8px rgba(15,86,118,.12)}50%{box-shadow:0 10px 28px rgba(168,85,247,.28),0 3px 10px rgba(236,72,153,.16)}}

@media(max-width:640px){
  .zy-security-collapsible>summary{padding:14px 14px}
  .zy-security-summary-main{gap:9px;align-items:flex-start}
  .zy-security-collapsible .zy-security-kicker{font-size:9.5px;padding:6px 8px;margin-top:1px}
  .zy-security-summary-copy strong{font-size:14px}
  .zy-security-summary-copy small{font-size:10.5px}
  .zy-security-body{padding:0 14px 14px}

  /* Sedikit diturunkan: tetap aman di atas dock, tetapi tidak terlalu tinggi. */
  body > .mobile-fab{
    right:16px!important;
    bottom:calc(116px + env(safe-area-inset-bottom))!important;
    width:56px!important;height:56px!important;
    border:0!important;
    border-radius:18px!important;
    background:#fff!important;
    color:#0b57d0!important;
    isolation:isolate;
    overflow:visible;
    animation:zyFabSoftPulse 2.8s ease-in-out infinite;
  }
  body > .mobile-fab::before{
    content:'';
    position:absolute;
    inset:-4px;
    border-radius:21px;
    background:conic-gradient(from 0deg,#22d3ee,#3b82f6,#8b5cf6,#ec4899,#f97316,#facc15,#22c55e,#22d3ee);
    animation:zyFabRainbowSpin 2.1s linear infinite;
    z-index:-2;
  }
  body > .mobile-fab::after{
    content:'';
    position:absolute;
    inset:0;
    border-radius:18px;
    background:#fff;
    z-index:-1;
  }
  body > .mobile-fab span{position:relative;z-index:1}
}

@media(prefers-reduced-motion:reduce){
  body > .mobile-fab,body > .mobile-fab::before{animation:none!important}
}

/* === 2026-09-07j: softer navigation + adaptive login security === */
.btn,.nav-item,.chip,.view-actions button,.new-action-btn,.mobile-fab,.auth-link,.crumb-link,.folder-card,.file-card{
  transition:transform .16s cubic-bezier(.2,.8,.2,1),box-shadow .2s ease,background-color .2s ease,border-color .2s ease,opacity .2s ease
}
.btn:active,.chip:active,.view-actions button:active,.new-action-btn:active,.mobile-fab:active{transform:scale(.965)}
.nav-item:active,.auth-link:active,.crumb-link:active{opacity:.72}

.soft-loader{transition:opacity .24s ease,visibility .24s ease!important;background:rgba(240,249,255,.48)!important;backdrop-filter:blur(4px)!important;-webkit-backdrop-filter:blur(4px)!important}
.soft-loader-card{opacity:0;transform:translateY(8px) scale(.985);transition:opacity .22s ease,transform .28s cubic-bezier(.2,.8,.2,1)}
.soft-loader.active .soft-loader-card{opacity:1;transform:translateY(0) scale(1)}
body.page-leaving{cursor:progress}
body.page-leaving .auth-card,body.page-leaving .admin-layout,body.page-leaving .account-main,body.page-leaving .main{opacity:.86}
.auth-card,.admin-layout,.account-main,.main{transition:opacity .2s ease}

.login-security-note{display:flex;flex-direction:column;gap:3px;margin:14px 0 4px;padding:12px 14px;border:1px solid #cfeaf6;border-radius:14px;background:#eefaff;color:#35677f;font-size:12px;line-height:1.55}
.login-security-note b{color:#075985;font-size:12.5px}
.login-security-note span{display:block}
.captcha-security-icon{background:#e0f5ff!important;color:#0284c7!important}
.captcha-box{display:flex;align-items:stretch;gap:10px;margin:16px 0 8px;flex-wrap:wrap}
.math-captcha-card{min-width:220px;min-height:88px;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:14px 18px;border-radius:16px;background:linear-gradient(135deg,#e0f5ff,#f8fdff);box-shadow:inset 0 0 0 1px #bae6fd;text-align:center}
.math-captcha-card span{display:block;margin-bottom:5px;color:#5f7f93;font-size:12px;font-weight:700}
.math-captcha-card strong{display:block;color:#075985;font-size:30px;line-height:1.15;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.captcha-refresh{min-height:42px;white-space:nowrap;align-self:center}
.field .captcha-input{font-size:22px;font-weight:750;letter-spacing:.04em;text-align:center;font-variant-numeric:tabular-nums}

@media(max-width:520px){
  .captcha-box{display:grid;grid-template-columns:1fr;gap:8px}
  .math-captcha-card{width:100%;min-width:0}
  .captcha-refresh{width:100%}
  .login-security-note{padding:11px 12px}
}

@media(prefers-reduced-motion:reduce){
  .btn,.nav-item,.chip,.view-actions button,.new-action-btn,.mobile-fab,.auth-link,.crumb-link,.folder-card,.file-card,.soft-loader,.soft-loader-card,.auth-card,.admin-layout,.account-main,.main{transition:none!important}
}

/* ===== 2026-09-07l: mobile gallery picker + safer upload ===== */
.upload-picker-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:14px 0 10px}
.upload-picker-actions .btn{min-width:132px}
.upload-limit-note{display:block;max-width:470px;margin:0 auto;color:var(--muted);font-size:11.5px;line-height:1.55}
.dropzone[role="button"]{cursor:pointer;outline:none}
.dropzone[role="button"]:focus-visible{border-color:var(--blue);box-shadow:0 0 0 4px rgba(14,165,233,.12)}
@media(max-width:760px){
  .dropzone{padding:24px 16px}
  .dropzone-cloud{font-size:42px}
  .dropzone h3{margin-bottom:6px}
  .dropzone p{font-size:12px;line-height:1.55;margin:0 auto;max-width:330px}
  .upload-picker-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px;margin-top:15px}
  .upload-picker-actions .btn{width:100%;min-width:0}
  .upload-limit-note{font-size:10.8px}
}

/* === 2026-09-08a: mobile storage usage card === */
.mobile-storage-status{display:none}
@media(max-width:640px){
  .mobile-storage-status{
    display:block;
    margin:0 0 14px;
    padding:12px 14px;
    border:1px solid #cfeaf6;
    border-radius:16px;
    background:linear-gradient(145deg,rgba(240,250,255,.98),rgba(255,255,255,.98));
    box-shadow:0 8px 22px rgba(14,165,233,.08);
  }
  .mobile-storage-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
  .mobile-storage-head>span{display:flex;flex-direction:column;gap:2px;min-width:0}
  .mobile-storage-head b{font-size:13px;color:#075985}
  .mobile-storage-head small{font-size:11px;color:#6b8ba0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-storage-head strong{font-size:12px;color:#0284c7;white-space:nowrap}
  .mobile-storage-meter{height:6px;margin:9px 0 6px;border-radius:999px;background:#dceff8;overflow:hidden}
  .mobile-storage-meter>span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#38bdf8,#0ea5e9)}
  .mobile-storage-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10.5px;color:#6c8797}
}

/* === 2026-09-13: Full-Page Desktop Drag & Drop Auto Upload === */
.page-drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(235, 244, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
}
.page-drop-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.page-drop-overlay[hidden] {
  display: none !important;
}
.page-drop-overlay * {
  pointer-events: none;
}
.page-drop-box {
  background: #ffffff;
  border: 3px dashed var(--blue, #0b57d0);
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(11, 87, 208, 0.18), 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.page-drop-overlay.active .page-drop-box {
  transform: scale(1) translateY(0);
}
.page-drop-icon {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 16px;
  display: inline-block;
  animation: pageDropBounce 1.4s ease-in-out infinite;
}
@keyframes pageDropBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.page-drop-box h2 {
  font-size: 22px;
  font-weight: 600;
  color: #1f1f1f;
  margin: 0 0 10px;
}
.page-drop-box p {
  font-size: 14px;
  color: #5f6368;
  margin: 0;
  line-height: 1.5;
}
.page-drop-box b {
  color: var(--blue, #0b57d0);
}

/* === 2026-09-13: Account Active Sessions & Device Management === */
.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 12px;
}
.sessions-top-actions {
  margin-bottom: 14px;
  display: flex;
  justify-content: flex-end;
}
.device-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.device-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #f8fafd;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.device-item:hover {
  background: #f1f5f9;
}
.device-item.current-device {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.device-icon {
  font-size: 24px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}
.device-details {
  flex: 1;
  min-width: 0;
}
.device-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.device-name {
  font-size: 13.5px;
  color: #1e293b;
}
.badge-current-device {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}
.device-meta {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.device-action {
  flex-shrink: 0;
}
.device-status-active {
  font-size: 12px;
  color: #16a34a;
  font-weight: 600;
}
.btn-logout-device {
  color: #dc2626;
  border-color: #fca5a5;
}
.btn-logout-device:hover {
  background: #fef2f2;
  border-color: #ef4444;
}
.sessions-bottom-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid #edf2f7;
}
@media(max-width: 600px){
  .device-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .device-action {
    width: 100%;
  }
  .device-action form, .device-action button {
    width: 100%;
  }
  .sessions-bottom-actions {
    flex-direction: column;
  }
  .sessions-bottom-actions form, .sessions-bottom-actions button {
    width: 100%;
  }
}

