/* Arkiv UI v5: DaisyUI components + Drive-style app layout */
[data-theme=arkiv]{--p:0.68 0.19 250;--pc:1 0 0;--s:0.8 0.13 220;--sc:0.15 0.05 260;--a:0.8 0.13 220;--ac:0.15 0.05 260;--n:0.22 0.07 260;--nc:0.93 0.02 250;--b1:0.18 0.06 262;--b2:0.15 0.055 262;--b3:0.24 0.07 262;--bc:0.95 0.015 250;--rounded-box:1.25rem;--rounded-btn:999px;--rounded-badge:999px;--tab-radius:999px}
#shell main{position:relative}
#shell header{height:auto;min-height:72px;padding:14px 18px;background:transparent;border:0;backdrop-filter:none}
#shell .heading strong{font-size:24px;font-weight:700;letter-spacing:-.5px}
#shell .heading small{font-size:12px}
#shell header .menu{display:none}
#shell #content{padding:6px 16px 190px;gap:12px}
#shell .btm-nav{position:absolute;left:12px;right:12px;bottom:12px;width:auto;height:66px;border-radius:26px;background:linear-gradient(160deg,#0c2a5ef2,#061a3df5);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border:1px solid #7fb2ff2e;box-shadow:0 18px 50px #000b,inset 0 1px 0 #ffffff1c;z-index:6;display:flex;overflow:hidden}
#shell .btm-nav>button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#8fb0e6;background:transparent;border:0;border-radius:22px;margin:6px 3px;min-height:0;padding:0}
#shell .btm-nav>button.active{background:linear-gradient(180deg,#2bb4ff,#0a6cff);color:#fff;box-shadow:0 8px 20px #0a84ff66}
#shell .btm-nav-label{font-size:11px;font-weight:600}
#shell .search-area{position:absolute;left:12px;right:12px;bottom:90px;padding:0;background:transparent;border:0;backdrop-filter:none;z-index:5}
#shell .search-area input{box-shadow:0 10px 30px #0008;background:#0b2557ee!important}
#shell .fab{position:absolute;right:20px;bottom:96px;width:60px;height:60px;min-height:60px;padding:0;z-index:7;box-shadow:0 14px 34px #0a84ffaa,inset 0 1px 0 #ffffff66;background:linear-gradient(180deg,#3cc0ff,#0a6cff);border:0;color:#fff}
#shell .fgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#shell .ftile{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:start;padding:14px;min-height:96px;border-radius:26px;background:linear-gradient(155deg,#0c2a5ecc,#06173acc);border:1px solid #7fb2ff2a;color:#fff;box-shadow:0 12px 30px #0006,inset 0 1px 0 #ffffff14}
#shell .ftile .fi{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:15px;background:#ffffff14;color:#5cd0ff;margin-bottom:4px}
#shell .ftile.t1 .fi{color:#7ee0b4}#shell .ftile.t2 .fi{color:#ffc46b}#shell .ftile.t3 .fi{color:#ff9db8}#shell .ftile.t4 .fi{color:#b8a2ff}
#shell .ftile b{font-size:14px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
#shell .ftile small{font-size:11px;color:#8fb0e6}
#shell .sec{margin:14px 4px 0;font-size:13px;font-weight:700;color:#8fb0e6;letter-spacing:.04em;text-transform:uppercase}
#shell .crumb{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;background:#ffffff10;border:1px solid #7fb2ff22;border-radius:999px;color:#cfe0ff;padding:0 16px 0 10px;min-height:36px;font-size:13px}
#shell .up-bar{margin:0}
#shell .up-btn{min-height:0;padding:12px 16px;border-radius:22px}
#shell .up-btn small{display:none}
#shell .asset{border-radius:22px;padding:14px}
#shell .asset.file .f-top{gap:12px}
#shell .f-thumb{width:56px;height:56px;border-radius:16px}
#shell .f-actions{margin-top:10px}
#shell .btn{font-family:inherit;font-weight:600;text-transform:none}
#shell .btn-primary,dialog .btn-primary{background:linear-gradient(180deg,#2bb4ff,#0a6cff);border:0;color:#fff;box-shadow:0 8px 20px #0a84ff55,inset 0 1px 0 #ffffff55}
#shell .tabs-boxed{background:#ffffff0d;border:1px solid #7fb2ff1c;padding:4px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
#shell .tabs-boxed .tab{color:#8fb0e6;height:2.2rem;white-space:nowrap;flex-shrink:0;border:0;background:transparent;font-size:13px}
#shell .tabs-boxed .tab-active{background:linear-gradient(180deg,#2bb4ff,#0a6cff)!important;color:#fff!important;box-shadow:0 6px 16px #0a84ff55}
#shell aside nav .navrow.btn{height:auto;min-height:46px;justify-content:flex-start;font-weight:500;border:0;padding-top:8px;padding-bottom:8px;text-align:start}
#shell aside nav .navrow.btn.selected{background:linear-gradient(180deg,#2bb4ff33,#0a6cff2b);box-shadow:inset 0 0 0 1px #2bb4ff55}
body:has(#shell) dialog{border-radius:30px;padding:24px}
dialog .badge{color:#fff}
@media(max-width:760px){#shell .btm-nav{left:10px;right:10px}}
body.drawer #shell .btm-nav,body.drawer #shell .search-area,body.drawer #shell .fab{display:none!important}
#content{padding-bottom:150px!important}
/* RTL */
@media(max-width:760px){[dir=rtl] #shell aside{left:auto;right:0;transform:translateX(110%);border-radius:28px 0 0 28px}[dir=rtl] body.drawer #shell aside,body.drawer [dir=rtl] #shell aside,[dir=rtl] #shell aside{}}
body.drawer [dir=rtl] aside{transform:none!important}
[dir=rtl] #shell .fab{right:auto;left:20px}
[dir=rtl] .crumb svg{transform:scaleX(-1)}
.asset small,.asset .meta,.asset time,.vbadge+*{unicode-bidi:plaintext}
@media(max-width:760px){
html[lang=ar] #shell aside{right:auto!important;left:calc(100vw - min(280px,86vw))!important;transform:translateX(110%);border-radius:28px 0 0 28px}
html[lang=ar] body.drawer #shell aside{transform:none!important}
html[lang=ar] #shell .fab{right:auto!important;left:16px!important}
}
#shell .search-area::before{content:"";position:absolute;left:-12px;right:-12px;top:-30px;bottom:-90px;background:linear-gradient(180deg,#0000,#030b1bf2 45%);z-index:-1;pointer-events:none}
.btm-nav{z-index:6}
.acct{position:absolute;inset:0;z-index:3;background:#030b1b;background-image:radial-gradient(900px 400px at 50% -10%,#0a3d8f55,transparent);overflow:auto;padding:0 14px 120px}
.acct-h{padding:22px 4px 14px;font-size:24px;font-weight:700}
.acct-card{padding:16px;margin-bottom:12px;gap:10px;display:flex;flex-direction:column;border:1px solid #7fb2ff2e;background:linear-gradient(170deg,#0c2a5e99,#051433aa);border-radius:22px}
.acct-me{flex-direction:row;align-items:center;gap:14px}
.acct-me div{display:flex;flex-direction:column;gap:4px;min-width:0}.acct-me b{overflow:hidden;text-overflow:ellipsis}
.avatar-c{width:52px;height:52px;border-radius:50%;background:linear-gradient(180deg,#2bb4ff,#0a6cff);display:grid;place-items:center;font-size:22px;font-weight:700;color:#fff;flex-shrink:0}
.acct small{opacity:.7;font-size:12px}
.acct-row{display:flex;justify-content:space-between;gap:10px;align-items:center}.acct-row span{opacity:.85;font-size:14px}
.acct progress{width:100%;height:10px}
.acct-actions{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.acct-actions .btn{width:100%;border-radius:16px;min-height:48px}
body.acct #shell .fab,body.acct #shell .search-area{display:none!important}
#shell aside>h1{display:none}
.av{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;background:linear-gradient(180deg,#2bb4ff,#0a6cff);color:#fff;font-weight:700;font-size:18px;overflow:hidden;flex-shrink:0}
.av img{width:100%;height:100%;object-fit:cover}.av-lg{width:76px;height:76px;font-size:30px}
.acct-side{display:flex;align-items:center;gap:12px;width:100%;padding:12px;margin-bottom:10px;border-radius:20px;border:1px solid #7fb2ff2e;background:#ffffff0d;text-align:start;color:inherit}
.acct-txt{display:flex;flex-direction:column;min-width:0;flex:1}.acct-txt b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.acct-txt small{opacity:.65;font-size:11px;overflow:hidden;text-overflow:ellipsis}
html[lang=ar] .acct-side .chev{transform:scaleX(-1)}
.av-pick{position:relative;cursor:pointer;flex-shrink:0}.av-cam{position:absolute;bottom:-2px;inset-inline-end:-2px;width:28px;height:28px;border-radius:50%;background:#0a2a63;border:2px solid #2bb4ff;display:grid;place-items:center}
.acct-id{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}.acct-id input{width:100%}
.acct-msg{min-height:18px;font-size:13px;opacity:.8;margin:4px 4px 8px}
.acct{scrollbar-width:none}.acct::-webkit-scrollbar{display:none}
.acct-actions .btn,.acct>.btn{border:1px solid #7fb2ff55;background:#ffffff10;color:#e7f0ff;font-weight:600;font-size:15px;display:flex;align-items:center;justify-content:center;border-radius:16px;min-height:48px;width:100%}
.acct-actions .btn-error{color:#ff8a8a;border-color:#ff8a8a55}
.acct>.btn-primary{background:linear-gradient(180deg,#2bb4ff,#0a6cff);border:0;color:#fff;margin-bottom:0}
/* stage 1 visual pass: contrast + spacing */
#shell small,.asset small,.asset .meta,.asset time,.acct small,.fgrid small{color:#a9c2e6!important;opacity:1!important}
#shell .btm-nav>button:not(.active){color:#b9cdea}
#shell .ftile,#shell .asset,.acct-card{border-color:#7fb2ff47}
#shell header .heading small{color:#a9c2e6!important;opacity:1}
.cur-chip{display:inline-block;margin-inline:6px;padding:2px 10px;border-radius:999px;background:#17c26433;color:#5ff0a0;border:1px solid #17c26488;font-size:12px;font-weight:600}
dialog .cur-row{box-shadow:inset 0 0 0 1px #17c26455}
.btm-nav>button{gap:2px}
.btm-nav-label{font-size:12px!important}

/* Arkiv light study. Local preview only. */
:root,[data-theme=arkiv]{color-scheme:light;--color-base-100:#fff;--color-base-200:#f2f4f8;--color-base-300:#e9edf3;--color-base-content:#202124;--color-primary:#202124;--color-primary-content:#fff}
html,body,body.light{--bg:#f2f4f8!important;--side:#fff!important;--ink:#202124!important;--muted:#777e89!important;--line:#e9edf3!important;--bubble:#e8edf4!important;--button:#f1f3f7!important;background:#f2f4f8!important;color:#202124!important;background-image:none!important;font-family:'Tajawal',Arial,sans-serif!important}
*{box-sizing:border-box}button,input,select,textarea{font-family:inherit!important}button:hover{filter:brightness(.97)}
#shell{background:#f2f4f8!important}#shell main{background:#f2f4f8!important;background-image:none!important;direction:rtl}
#shell main>header{margin:16px 16px 0;padding:20px 18px 58px!important;min-height:154px!important;border-radius:28px!important;background:#232527!important;background-image:none!important;color:#fff!important;position:relative;align-items:flex-start!important;gap:12px!important;box-shadow:none!important}
#shell .heading{order:1}#shell .heading strong{font-size:25px!important;font-weight:750!important;text-align:start!important;line-height:1.6;color:#fff!important}#shell header .heading small{color:#c8cbd1!important;font-size:12px!important;margin-top:2px}
#shell header .menu{display:flex!important;order:0;background:#ffffff15!important;color:#fff!important;border-radius:50%;width:36px;height:36px;min-height:36px;padding:8px;justify-content:center;align-items:center}
#shell .header-menu{order:3;margin-inline-start:auto}#shell .header-menu summary{padding:0;width:28px;color:#fff}
#shell .header-menu>div{background:#fff!important;color:#202124!important;border:0!important;box-shadow:0 10px 30px #20212418;left:0;right:auto}
.light-search{position:absolute;inset-inline:16px;bottom:16px;height:43px;border-radius:14px;background:#fff;color:#8a8e97;display:flex;align-items:center;gap:10px;padding:0 14px;font-size:12px;direction:rtl}
#shell #content{padding:22px 18px 118px!important;gap:16px!important;background:transparent!important;scrollbar-width:none}
#shell .fgrid{display:flex!important;overflow-x:auto;gap:12px;padding-bottom:2px;scrollbar-width:none;flex-shrink:0}
#shell .ftile{flex:0 0 155px;min-height:176px;align-items:flex-start!important;justify-content:flex-start;padding:18px!important;border-radius:26px!important;border:0!important;background:#e5ebf5!important;box-shadow:none!important;color:#232527!important;gap:8px!important;text-align:start!important}
#shell .ftile:first-child{background:#232527!important;color:#fff!important}
#shell .ftile .fi{background:#fff!important;color:#232527!important;width:38px;height:38px;border-radius:50%;margin:0 0 8px!important}
#shell .ftile b{font-size:17px!important;font-weight:700!important}#shell .ftile small{font-size:12px!important;color:#707783!important}#shell .ftile:first-child small{color:#c7cbd2!important}
.light-section{display:flex;align-items:center;justify-content:space-between;font-size:18px;font-weight:750;margin:0 2px -4px}.light-section small{font-size:11px!important;color:#858b95!important;font-weight:400}
#shell .sec{font-size:18px!important;color:#242629!important;margin:6px 2px -3px!important;letter-spacing:0;text-transform:none}
#shell .up-bar{margin:0!important}#shell .up-btn{border:0!important;border-radius:22px!important;background:#e5ebf5!important;color:#242629!important;padding:18px!important;width:100%;box-shadow:none!important;min-height:74px!important;display:flex;align-items:center;justify-content:flex-start;gap:12px}
#shell .up-btn svg{color:#242629!important}#shell .up-btn small{display:block!important;color:#707783!important;font-size:11px!important}
#shell .up-proj{border:0!important;background:#fff!important;border-radius:12px!important;color:#363a40!important;margin:8px 0 0!important}
#shell .tabs-boxed,#shell .filters{border:0!important;background:transparent!important;padding:0!important;gap:6px!important;border-radius:0!important;overflow:auto;scrollbar-width:none;flex-wrap:nowrap}
#shell .tabs-boxed .tab{color:#7a818d!important;background:#fff!important;border-radius:999px!important;padding:0 14px!important;height:34px!important;font-size:11px!important;box-shadow:none!important;min-height:34px!important}
#shell .tabs-boxed .tab-active,#shell .filters .active{background:#232527!important;color:#fff!important;box-shadow:none!important}
#shell .asset{background:#fff!important;background-image:none!important;border:0!important;border-radius:22px!important;box-shadow:0 4px 18px #23252704!important;padding:16px!important;margin:0!important;color:#242629!important}
#shell .asset h3{font-weight:650!important;margin:0 0 4px!important;font-size:13px!important;line-height:1.6}
#shell small,.asset small,.asset .meta,.asset time,.acct small,.fgrid small{color:#7b818c!important;opacity:1!important}#shell .asset p{color:#7b818c!important}.asset a{color:#333!important}
#shell .f-thumb{background:#eef1f6!important;color:#343940!important;border:0!important;border-radius:16px!important;width:46px;height:50px;box-shadow:none!important}
#shell .btn-primary,dialog .btn-primary{background:#232527!important;background-image:none!important;color:#fff!important;border:0!important;box-shadow:none!important}
#shell .f-actions{gap:6px!important;margin-top:12px!important}#shell .asset .ghost{background:#f3f5f8!important;color:#717986!important;border:0!important;box-shadow:none!important}.btn-sm{font-size:11px!important}
#shell .vbadge,dialog .vbadge{background:#eef1f6!important;color:#30343a!important;border:0!important;box-shadow:none!important;font-weight:600}
#shell .btm-nav{position:absolute!important;bottom:14px!important;left:16px!important;right:16px!important;background:#fff!important;background-image:none!important;border:0!important;box-shadow:0 6px 35px #2426290b!important;border-radius:26px!important;height:68px!important;padding:7px!important;align-items:center;gap:6px;overflow:visible!important;backdrop-filter:none!important;z-index:8!important;direction:rtl}
#shell .btm-nav>button{margin:0!important;border-radius:19px!important;color:#9399a3!important;height:50px!important;box-shadow:none!important;gap:2px!important;font-size:10px!important;background:transparent!important}
#shell .btm-nav>button.active{background:#eef1f6!important;color:#242629!important}.btm-nav-label{font-size:10px!important}#shell .btm-nav svg{width:20px;height:20px}
#shell .btm-nav>.nav-add{flex:0 0 48px!important;width:48px;height:48px!important;min-height:48px!important;border-radius:50%!important;background:#232527!important;color:#fff!important;border:4px solid #e7eaf0!important}
#shell .fab{display:none!important}#shell .search-area{background:#fff!important}.search-area::before{display:none!important}#shell .search-area input{background:#fff!important;color:#232527!important;box-shadow:none!important;border:0!important}
#shell .crumb{background:#fff!important;border:0!important;color:#727a86!important;border-radius:999px!important;font-size:11px!important;min-height:34px!important;align-self:flex-start;box-shadow:none!important}
#shell aside{background:#f6f7fa!important;background-image:none!important;color:#232527!important;border:0!important;box-shadow:10px 0 40px #20212418!important}#shell aside nav .navrow.btn{color:#6f7784!important}#shell aside nav .selected{background:#e7ecf4!important;box-shadow:none!important;color:#232527!important}
.acct-side{background:#fff!important;border:0!important;padding:16px!important;border-radius:22px!important}.av{background:#e1e7f1!important;background-image:none!important;color:#323943!important}.av-cam{background:#232527!important;border:3px solid #fff!important;color:#fff!important}
.acct{background:#f2f4f8!important;background-image:none!important;padding:0 18px 112px!important;color:#242629!important;direction:rtl}
#shell .acct-h{background:transparent!important;color:#242629!important;min-height:0!important;padding:25px 2px 18px!important;margin:0!important;font-size:26px!important}
.acct-card{border:0!important;background:#fff!important;background-image:none!important;border-radius:24px!important;padding:20px!important;box-shadow:0 4px 20px #23252703!important;margin-bottom:14px!important;gap:14px!important}
.acct-me{flex-direction:column!important;align-items:center!important;padding:25px 18px!important;gap:15px!important}.acct-id{width:100%;align-items:center}.acct-id input{font-size:18px!important;font-weight:700!important;text-align:center!important;border:0!important;background:#f4f6f9!important;color:#30353d!important;border-radius:12px!important;padding:10px!important}.acct-id small{font-size:10px!important;color:#868c96!important}
.acct>.btn-primary{background:#232527!important;background-image:none!important;color:#fff!important;border:0!important;box-shadow:none!important;min-height:44px!important;border-radius:15px!important;font-size:12px!important}
.acct-msg{margin:0!important;min-height:16px!important}.acct-row{gap:8px;font-size:12px}.acct-row b{font-size:12px;font-weight:600}.acct-row span{font-size:12px!important}
.acct progress{height:6px!important;background:#edf0f5!important;color:#25272a!important;border-radius:9px}.acct progress::-webkit-progress-bar{background:#edf0f5;border-radius:9px}.acct progress::-webkit-progress-value{background:#25272a;border-radius:9px}
.acct-actions{display:flex!important;flex-direction:column!important;gap:1px!important;background:#fff!important;border-radius:24px!important;overflow:hidden;margin-top:0!important;padding:5px 16px!important}
.acct-actions .btn{background:#fff!important;border:0!important;color:#444c58!important;border-radius:0!important;text-align:start!important;justify-content:space-between!important;font-size:12px!important;min-height:48px!important;box-shadow:none!important}.acct-actions .btn+.btn{border-top:1px solid #f0f2f6!important}
.acct-actions .btn::after{content:'‹';font-size:23px;color:#969da7}.acct-actions .btn-error{color:#777d86!important}
dialog{background:#f7f8fa!important;background-image:none!important;color:#232527!important;border:0!important;border-radius:28px!important;box-shadow:0 20px 70px #20212420!important}dialog .vrow{background:#fff!important;border:0!important;border-radius:19px!important;padding:15px!important}dialog .cur-row{box-shadow:none!important}.cur-chip{background:#232527!important;color:#fff!important;border:0!important}.status{color:#7b818c!important}
.login{background:#fff!important;border:0!important;box-shadow:0 10px 40px #24262906!important;border-radius:28px!important;color:#232527!important}.login button{background:#232527!important;color:#fff!important}.login input{background:#f1f3f7!important;border:0!important;color:#242629!important}.login .brand-logo{filter:grayscale(1)}
.msg{background:#fff!important;color:#30363e!important;box-shadow:none!important;border:0!important}.msg.user{background:#e8edf4!important}.day{color:#7b818c!important}
#shell .heading strong{font-size:22px!important;letter-spacing:0!important}
#shell .asset h3,#shell .f-title,#shell .f-info,#shell .f-info h3{color:#25272b!important}
#shell .f-meta,#shell .list-caption{color:#818995!important}
#shell select{background:#fff!important;color:#555e6b!important;border:0!important;border-radius:14px!important}
#shell .btm-nav{display:grid!important;grid-template-columns:repeat(5,1fr);gap:0!important}
#shell .btm-nav>button:nth-child(1){grid-column:1;grid-row:1}
#shell .btm-nav>.nav-add{grid-column:3;grid-row:1;justify-self:center}
#shell .btm-nav>button:nth-child(3){grid-column:2;grid-row:1}
#shell .btm-nav>button:nth-child(4){grid-column:5;grid-row:1}
body.acct #shell main{margin:0!important;padding:0!important}
#shell section.acct{inset:0!important;margin:0!important;border-radius:0!important;width:100%!important;background:#f2f4f8!important}
#shell .acct-h{border:0!important;border-radius:0!important;box-shadow:none!important}
body:has(.fgrid) #shell .up-bar{display:none!important}
#shell .asset .f-name{color:#25272b!important}
#shell::before,#shell::after,#shell main::before,#shell main::after,.acct::before,.acct::after{display:none!important}
body.acct #shell main>header,body.acct #shell #content{visibility:hidden!important}
#shell .asset-type{color:#818995!important}
.light-search .hero-search{padding:0!important;margin:0!important;min-width:0!important;width:100%;height:100%;background:transparent!important;border:0!important;box-shadow:none!important;color:#333b46!important;font-size:12px!important;outline:none}
.light-search:focus-within{outline:2px solid #bbc4d2;outline-offset:2px}
.light-search #results{position:absolute;top:49px;bottom:auto;left:0;right:0;border-radius:18px;background:#fff!important;color:#25282c!important;box-shadow:0 16px 35px #2222;z-index:12;max-height:330px;overflow:auto}
#shell .search-area{display:none!important}#shell .message{background:#fff!important;background-image:none!important;border:0!important;color:#2d333c!important;border-radius:20px!important;box-shadow:none!important;padding:16px!important}
#shell .message.user{background:#e4eaf3!important;color:#2d333c!important}#shell .message a{color:#46566b!important;text-decoration:underline}#shell .message .meta{color:#7f8792!important}#shell .date-divider{color:#8b939f!important;background:transparent!important}
#shell .empty{background:#fff!important;color:#77818e!important;border-radius:24px;padding:32px 22px!important;font-size:13px;text-align:center}
#shell .message .body{font-size:13px;line-height:1.9}#shell .usage-panel{background:#fff!important;border-radius:18px;padding:14px;border:0!important}#shell .usage-panel progress{accent-color:#25272b}#shell .usage-panel small{font-size:10px!important}
dialog input,dialog select,dialog textarea,.login input{background:#eef1f6!important;color:#2f3640!important;border:0!important;border-radius:12px!important}dialog button{background:#232527;color:#fff;border-radius:12px}dialog .ghost{background:#e8ecf2!important;color:#3b4350!important}dialog .danger{color:#8b4348!important}dialog .status{color:#77818e!important}dialog h2,dialog h3{color:#232527!important}
.login{direction:rtl;margin:7vh auto!important;padding:30px 25px!important;width:min(340px,calc(100% - 28px))!important}.login h1{font-size:28px!important;color:#232527!important}.login label,.login p,.login small{color:#75808d!important}.login a{color:#424e60!important}.login .brand-logo{background:#f2f4f8!important}.login button{border:0!important;box-shadow:none!important;border-radius:14px!important;min-height:46px}
#error,.error{color:#9a414b!important;background:#f8edef;border-radius:12px;padding:8px 12px}#error:empty{display:none}
#shell aside footer{border-color:#e9edf3!important}#shell aside footer button{color:#6e7887!important;background:#fff!important}#shell aside .acct-side{direction:rtl}
@media(min-width:761px){#shell{max-width:1400px;margin:auto}#shell aside{width:270px}#shell .ftile{flex-basis:185px}#shell .fgrid{flex-wrap:wrap}#shell main>header{min-height:150px!important}#shell .btm-nav{max-width:420px;margin:auto}.acct{max-width:650px;margin:auto!important}}
#app .login{min-height:0!important;display:block!important;background:#fff!important;background-image:none!important;overflow:visible!important;max-width:340px!important}
#app .login::before,#app .login::after{display:none!important}.login *{animation:none!important;transition:none!important;opacity:1!important}
#app .l-top{padding:12px 0 20px!important;animation:none!important}.l-top .brand-logo{width:58px!important;height:58px!important;box-shadow:none!important;animation:none!important}
#app .l-top .brand-mark{font-size:29px!important;color:#232527!important;-webkit-text-fill-color:#232527!important;background:none!important;font-family:inherit!important;letter-spacing:0!important}
#app .l-card{background:#fff!important;background-image:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;margin:0!important;padding:0!important;animation:none!important;border-radius:0!important}
#app .l-card h2{display:block!important;font-size:19px!important;font-weight:700!important;color:#232527!important;margin:0 0 10px!important}#app .l-card form{display:block!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
#app .l-card label{display:block!important;font-size:12px!important;color:#77818e!important}.l-card input{display:block!important;height:47px!important;border:0!important;margin:6px 0 16px!important;width:100%!important}
#app .l-card .primary{background:#232527!important;background-image:none!important;color:#fff!important;width:100%!important;margin:18px 0 0!important;box-shadow:none!important;border:0!important}
#app .l-pill{display:none!important}#app .l-card .login-options{margin-top:14px!important;gap:8px!important;flex-wrap:wrap!important}#app .login-options button,#app .l-lang{background:#f0f3f7!important;background-image:none!important;border:0!important;color:#737d8a!important;box-shadow:none!important;min-height:36px!important;padding:8px 12px!important;font-size:11px!important}#app .l-lang span{color:#737d8a!important}
#shell aside svg,#shell .header-menu summary{color:inherit!important}#shell .date-divider{border:0!important;box-shadow:none!important}
body:has(#shell) dialog [data-action=close],body:has(#shell) dialog .primary{background:#232527!important;background-image:none!important;color:#fff!important;box-shadow:none!important;border:0!important}dialog .vrow small{color:#818995!important}
@media(max-width:760px){html[lang=ar] #shell aside{width:min(280px,86vw)!important;left:auto!important;right:0!important;transition:none!important}}
#app .login .l-card input{background:#f0f3f7!important;color:#313943!important;-webkit-text-fill-color:#313943!important;box-shadow:none!important;border:0!important;border-radius:12px!important;padding:10px 12px!important;font-size:14px!important}
#app .login .brand-logo{display:none!important}#app .login .password-links{display:flex!important}#shell aside .mini{color:#84909f!important;background:#fff!important;border:0!important;box-shadow:none!important}
#lang-sheet .ls-card{background:#f7f8fa!important;background-image:none!important;border:0!important;color:#262d35!important}#lang-sheet button{background:#fff!important;color:#3e4856!important;border-color:#edf0f5!important;box-shadow:none!important}
#shell .asset{position:relative}#shell .asset .trash-icon{position:relative;align-self:flex-end;color:#818b99!important;background:#f2f4f8!important;border:0!important;box-shadow:none!important;min-width:36px;min-height:36px;padding:8px;margin-top:8px}.trash-row{display:flex;flex-direction:column;gap:8px;background:#fff;padding:16px;border-radius:20px;margin:10px 0}.trash-row small{color:#8a939f!important;font-size:11px}.trash-row>div{display:flex;gap:6px}.trash-row button{font-size:12px}#shell aside [data-trash-open]{display:flex!important;gap:12px;align-items:center}
body:has(#shell) dialog .trash-row button:not(.ghost){background:#232527!important;background-image:none!important;color:#fff!important;box-shadow:none!important;border:0!important}.trash-icon svg{color:#818b99!important}
html[lang=ar] body,html[lang=ar] body #app,html[lang=ar] body #app .login,html[lang=ar] body #app .login *,html[lang=ar] body #shell *,html[lang=ar] body dialog *,html[lang=ar] body #lang-sheet *{font-family:'Tajawal',Arial,sans-serif!important}
.storage-row{display:flex;justify-content:space-between;gap:16px;padding:15px;background:#fff;border-radius:16px;margin:8px 0;font-size:12px}.storage-progress{appearance:none;width:100%;height:8px;accent-color:#242629}.storage-progress::-webkit-progress-bar{background:#e9edf3;border-radius:10px}.storage-progress::-webkit-progress-value{background:#242629;border-radius:10px}.storage-warn{padding:16px;border:0;border-radius:20px;background:#fff;color:#555f6c}.storage-note{font-size:10px}
.search-controls{display:flex;gap:8px;margin:8px 0}.search-controls select{width:50%;font-size:11px;padding:10px;min-height:42px}.search-hit{display:flex;flex-direction:column;gap:7px;text-align:start!important;width:100%;padding:16px!important;margin:8px 0!important;background:#fff!important;background-image:none!important;color:#323a46!important;box-shadow:none!important;border:0!important;border-radius:18px!important}.search-hit b{font-weight:500;font-size:12px;line-height:1.9}.search-hit small{font-size:10px;color:#858e9b!important}.found-item{outline:2px solid #adb9cb!important;outline-offset:2px}
body #modal input,body #modal select,body #modal textarea{background:#eef1f6!important;background-image:none!important;color:#333d4a!important;-webkit-text-fill-color:#333d4a!important;box-shadow:none!important;border:0!important;border-radius:12px!important;font-family:'Tajawal',Arial,sans-serif!important}body #modal select option{color:#333d4a;background:#fff}
#shell .asset .fav-btn{color:#98a1ae!important;background:#fff!important;border:0!important;box-shadow:none!important}#shell .asset .fav-btn.on{color:#d99a2b!important}.tag-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.tag-chip{padding:6px 12px!important;min-height:28px!important;font-size:10px!important;border-radius:999px!important;background:#eef1f6!important;color:#6a7482!important;border:0!important;box-shadow:none!important;font-weight:400!important}.tag-add{color:#9aa3b0!important}
#shell .f-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}#shell .f-actions .trash-icon,#shell .f-actions .fav-btn{margin-top:0;min-width:40px;min-height:40px}
#shell .asset .asset-edit{color:#9aa3b0!important;background:#f2f4f8!important;border:0!important;box-shadow:none!important}
.offline-banner{margin:12px 16px 0;padding:12px 16px;border-radius:14px;background:#f6ecd8;color:#7a6130;font-size:11px;text-align:center}

/* account page: keep actions reachable on small screens */
#shell main .acct{max-height:100%;overflow-y:auto;padding-bottom:130px}

/* Arkiv logo: stacked-sheets mark */
#app .login .brand-logo{display:block!important;width:58px!important;height:58px!important;margin:0 auto 10px!important;border-radius:16px!important;box-shadow:none!important;animation:none!important;filter:none!important}
#shell aside h1{display:flex!important;align-items:center;gap:8px;padding:12px 16px 4px;margin:0;font-size:15px;font-weight:700;color:#232527}
#shell aside h1 .logo-img{width:26px!important;height:26px!important;border-radius:8px!important;box-shadow:none!important}
