*{box-sizing:border-box}body{margin:0;background:#f5f6fa;color:#202435;font:15px/1.5 Inter,system-ui,-apple-system,Segoe UI,sans-serif}.topbar{height:68px;background:#fff;border-bottom:1px solid #e8eaf0;display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100% - 1120px)/2));gap:18px}.brand{font-weight:800;color:#22263a;text-decoration:none;font-size:18px}.topbar nav{display:flex;gap:20px;align-items:center}.topbar nav a{color:#60677b;text-decoration:none}.container{max-width:1120px;margin:34px auto;padding:0 22px}.welcome{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:20px 0 28px}.welcome h1,h1{font-size:30px;line-height:1.2;margin:0 0 8px}.eyebrow{font-size:11px;letter-spacing:2px;color:#777f94;font-weight:700;margin:0 0 8px}.muted,small{color:#747b8d}.small{font-size:12px}.primary,.button-link{background:#5555d9;color:#fff;border:0;border-radius:10px;padding:12px 17px;font-weight:700;text-decoration:none;display:inline-block;cursor:pointer}.secondary{background:#ececff;color:#4646b8;border:0;border-radius:9px;padding:10px 14px;text-decoration:none;display:inline-block}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0}.tile,.panel,.auth-card{background:#fff;border:1px solid #e8eaf0;border-radius:15px;padding:21px}.tile{color:inherit;text-decoration:none;display:flex;flex-direction:column;gap:7px;min-height:150px}.tile-icon{font-size:25px;color:#5555d9}.tile b{font-size:25px}.tile small{font-size:12px}.panel{margin:18px 0}.panel h2,.section-title h2{font-size:18px;margin:0 0 12px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-head p{margin:0}.progress{height:9px;background:#eceef4;border-radius:20px;overflow:hidden}.progress span{display:block;height:100%;background:#6262df;border-radius:20px}.section-title{display:flex;justify-content:space-between;align-items:center;margin:28px 0 12px}.asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:15px}.asset-card{background:#fff;border:1px solid #e8eaf0;border-radius:13px;overflow:hidden}.asset-card img{width:100%;height:155px;object-fit:contain;background:#f0f1f5}.asset-info{padding:12px;display:grid;gap:5px}.asset-info strong{overflow-wrap:anywhere}.danger-link{color:#c0394b;font-size:12px;text-decoration:none}.upload-form{display:grid;grid-template-columns:1fr 1.5fr auto;gap:14px;align-items:end}.upload-form small{grid-column:1/-1}label{display:grid;gap:7px;font-weight:650;font-size:13px}input{width:100%;border:1px solid #dfe2eb;border-radius:9px;padding:11px 12px;font:inherit;background:#fff}form{display:grid;gap:15px}.auth{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(135deg,#f1f2ff,#f7f8fb)}.auth-card{width:min(100%,420px);padding:30px;box-shadow:0 18px 55px #29305a12}.auth-card h1{margin:24px 0}.auth-card .brand{font-size:20px}.auth-card form{margin:22px 0}.auth-card .primary{width:100%}.alert,.notice{padding:14px 16px;border-radius:10px;background:#edf7f0;color:#28613a;margin:15px 0}.alert.error{background:#fff0f0;color:#a42e38}.notice{background:#eef0ff;color:#383c82}.notice p{margin-bottom:0}.back{display:inline-block;margin-bottom:18px;color:#575bd0;text-decoration:none}.muted a{color:#4e52c6}.auth-card .muted{font-size:13px}.auth-card .muted a{font-weight:700}@media(max-width:760px){.cards{grid-template-columns:repeat(2,1fr)}.welcome{align-items:flex-start;flex-direction:column}.upload-form{grid-template-columns:1fr}.topbar{padding:0 16px}.container{margin:22px auto;padding:0 16px}.welcome h1,h1{font-size:25px}.panel-head{align-items:flex-start;flex-direction:column}}@media(max-width:380px){.cards{grid-template-columns:1fr}.topbar nav{gap:10px;font-size:13px}}

/* Galeri tahap 2 */
.gallery-switch{display:flex;gap:6px;background:#eceef6;padding:4px;border-radius:11px}
.gallery-switch a{padding:8px 13px;border-radius:8px;text-decoration:none;color:#626a7d;font-weight:700;font-size:13px}
.gallery-switch a.active{background:#fff;color:#4d50c9;box-shadow:0 1px 4px #20243512}
.storage-progress{margin:13px 0 7px}
.search-form{display:flex;gap:9px;align-items:center;margin:12px 0 18px}
.search-form input{max-width:430px}
.clear-search{color:#5555d9;font-size:13px;text-decoration:none;font-weight:650}
.selection-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid #e8eaf0;border-radius:12px;padding:14px 16px;margin:14px 0}
.selection-toolbar form{display:block}
.asset-card-enhanced{position:relative}
.asset-card-enhanced>img{height:190px}
.asset-select{display:flex;align-items:center;gap:7px;padding:10px 12px;background:#fff;font-size:12px;color:#50576a;cursor:pointer}
.asset-select input{width:17px;height:17px;accent-color:#5555d9}
.asset-actions{border-top:1px solid #eceef4;padding-top:8px;margin-top:4px}
.asset-actions summary{cursor:pointer;color:#5555d9;font-size:12px;font-weight:700}
.rename-form,.delete-form{display:flex;gap:7px;align-items:center;margin-top:9px}
.rename-form input{min-width:0;padding:8px;font-size:12px}
.small-button{padding:8px 9px;font-size:11px;white-space:nowrap}
.danger-button{background:#fff0f0;color:#b33342;border:0;border-radius:8px;padding:8px 10px;font-size:12px;cursor:pointer}
.empty-state{text-align:center;background:#fff;border:1px dashed #d8dbea;border-radius:15px;padding:48px 20px;margin-top:15px}
.empty-icon{font-size:38px;color:#7779dc}
.empty-state h3{margin:8px 0 4px}
.editor-selection{background:#fff;border:1px solid #e8eaf0;border-radius:16px;padding:22px;margin-top:20px}
.editor-selection-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.editor-selection-head h2{margin:0 0 5px}
.selected-main{display:flex;align-items:center;gap:18px;padding:15px;background:#f7f8fc;border-radius:12px;margin:18px 0}
.selected-main img{width:150px;height:120px;object-fit:contain;background:#fff;border:1px solid #e7e9f0;border-radius:9px}
.selected-main h3{margin:5px 0}
.selected-logo-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:24px}
.selected-logo-heading h3{margin:0}
.selected-logo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;margin-top:12px}
.selected-logo{border:1px solid #e8eaf0;border-radius:10px;padding:10px;text-align:center;min-width:0}
.selected-logo img{width:100%;height:90px;object-fit:contain}
.selected-logo span{display:block;font-size:12px;font-weight:650;overflow-wrap:anywhere;margin-top:5px}
@media(max-width:650px){.selection-toolbar,.editor-selection-head,.selected-logo-heading{align-items:flex-start;flex-direction:column}.selection-toolbar .primary{width:100%}.search-form{flex-wrap:wrap}.search-form input{max-width:none;flex:1 1 100%}.selected-main{align-items:flex-start;flex-direction:column}.selected-main img{width:100%;height:180px}.gallery-switch{width:100%}.gallery-switch a{flex:1;text-align:center}}

/* Gallery page compact heading and inline collection controls */
.gallery-page .welcome{margin:20px 0 28px}
.gallery-page .welcome h1{margin:0}
.gallery-tools{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:28px 0 14px}
.gallery-tools .section-title{display:flex;align-items:baseline;gap:12px;margin:0;white-space:nowrap}
.gallery-tools .section-title h2{margin:0}
.gallery-tools .search-form{display:flex;align-items:center;gap:10px;margin:0;flex:1;justify-content:flex-end}
.gallery-tools .search-form select{width:150px;min-width:120px;border:1px solid #dfe2eb;border-radius:9px;padding:11px 12px;background:#fff;color:#202435;font:inherit}
.gallery-tools .search-form input{max-width:430px;flex:1}
.gallery-tools .clear-search{white-space:nowrap;color:#5555d9;text-decoration:none;font-size:13px}
@media(max-width:760px){.gallery-tools{align-items:stretch;flex-direction:column;gap:12px}.gallery-tools .search-form{justify-content:flex-start}.gallery-tools .search-form input{max-width:none;min-width:0}.gallery-tools .search-form select{width:125px}}

/* eToll Editor brand mark */
.brand-image{display:inline-flex;align-items:center;justify-content:flex-start;line-height:0;min-width:0}
.brand-image .brand-logo-img{display:block;width:168px;max-width:100%;height:auto;max-height:54px;object-fit:contain;object-position:left center}
.auth-card .brand.brand-image{display:flex;width:100%;margin:0 0 28px;line-height:0}
.auth-card .brand.brand-image .brand-logo-img{width:220px;max-height:74px}
.editor-topbar .brand.brand-image .brand-logo-img{width:156px;max-height:52px}
@media(max-width:520px){
 .brand-image .brand-logo-img{width:138px;max-height:46px}
 .auth-card .brand.brand-image .brand-logo-img{width:190px;max-height:64px}
 .editor-topbar .brand.brand-image .brand-logo-img{width:132px;max-height:44px}
}
