/* MAX CLOUD PRO — responsive demo workspace */
.skip-link { position: fixed; z-index: 200; top: 10px; inset-inline-start: 10px; padding: 10px 14px; color: white; background: #2453d9; border-radius: 9px; transform: translateY(-160%); transition: transform .18s ease; }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--text-2); }
.boot-title { color: var(--text); font-size: 17px; font-weight: 800; letter-spacing: .11em; }
.boot-subtitle { font-size: 13px; }
.brand-mark { width: 36px; height: 36px; position: relative; flex: 0 0 auto; display: grid; place-items: center; overflow: visible; border-radius: 12px; color: #fff; background: linear-gradient(145deg,#4278ff,#6353df); box-shadow: 0 5px 13px rgba(49,99,235,.25); }
.brand-mark--large { width: 56px; height: 56px; border-radius: 18px; }
.brand-glyph { font-size: 19px; font-weight: 850; letter-spacing: -.08em; }
.brand-mark--large .brand-glyph { font-size: 29px; }
.brand-spark { position: absolute; width: 7px; height: 7px; top: 4px; inset-inline-end: 4px; border-radius: 99px; background: #69e2d3; border: 1.5px solid #fff; }
.app-shell { min-height: 100vh; }
.layout { min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; inset-block: 0; inset-inline-start: 0; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 23px 15px 16px; background: var(--surface); border-inline-end: 1px solid var(--line); transition: transform .24s ease; }
[dir="rtl"] .sidebar { inset-inline-start: 0; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 25px; }
.brand-copy { display: flex; min-width: 0; flex-direction: column; line-height: 1.17; }
.brand-name { color: var(--text); font-size: 13px; font-weight: 850; letter-spacing: .08em; white-space: nowrap; }
.brand-caption { margin-top: 5px; color: var(--text-3); font-size: 10px; letter-spacing: .02em; }
.demo-pill { width: fit-content; display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(207,147,39,.22); border-radius: 999px; padding: 4px 8px; color: var(--amber); background: var(--amber-soft); font-size: 10px; font-weight: 800; white-space: nowrap; }
.demo-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.side-section-label { margin: 13px 10px 7px; color: var(--text-3); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nav-list { display: grid; gap: 3px; }
.nav-item { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 11px; border: 0; border-radius: 11px; color: var(--text-2); background: transparent; text-align: start; cursor: pointer; transition: background .17s ease, color .17s ease, transform .17s ease; }
.nav-item:hover { color: var(--text); background: var(--surface-2); }
.nav-item:active { transform: scale(.985); }
.nav-item.is-active { color: var(--primary); background: var(--primary-soft); font-weight: 750; }
.nav-item .nav-label { flex: 1; }
.nav-item .count { min-width: 21px; height: 21px; display: grid; place-items: center; border-radius: 7px; color: var(--text-3); background: var(--surface-3); font-size: 10px; font-weight: 750; }
.nav-icon, .icon { width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.nav-icon svg, .icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-spacer { flex: 1; }
.sidebar-storage { margin-top: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(155deg,var(--surface-2),var(--surface)); }
.storage-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; font-weight: 750; }
.storage-caption { color: var(--text-3); font-size: 10px; }
.progress-track { height: 6px; overflow: hidden; border-radius: 999px; background: var(--surface-3); }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg,#3971f7,#7b65e8); }
.sidebar-storage .progress-track { margin: 11px 0 8px; }
.sidebar-footer { padding: 14px 8px 0; color: var(--text-3); font-size: 10px; }
.workspace { min-height: 100vh; margin-inline-start: var(--sidebar-width); }
.topbar { position: sticky; z-index: 20; top: 0; min-height: var(--topbar-height); display: flex; align-items: center; gap: 18px; padding: 12px clamp(20px,3vw,48px); background: color-mix(in srgb,var(--canvas) 90%,transparent); border-bottom: 1px solid color-mix(in srgb,var(--line) 80%,transparent); backdrop-filter: blur(16px); }
.mobile-brand { display: none; align-items: center; gap: 9px; }
.icon-button { width: 39px; height: 39px; display: inline-grid; place-items: center; flex: 0 0 auto; padding: 0; border: 1px solid transparent; border-radius: 11px; color: var(--text-2); background: transparent; cursor: pointer; transition: all .16s ease; }
.icon-button:hover { color: var(--text); border-color: var(--line); background: var(--surface); }
.icon-button:active { transform: scale(.95); }
.search-wrap { position: relative; width: min(520px, 48vw); margin-inline-end: auto; }
.search-wrap .icon { position: absolute; top: 50%; inset-inline-start: 13px; color: var(--text-3); transform: translateY(-50%); pointer-events: none; }
.search-input { width: 100%; height: 42px; padding: 0 42px 0 38px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--surface); outline: none; transition: border .18s ease, box-shadow .18s ease; }
.search-input::placeholder { color: var(--text-3); }
.search-input:focus { border-color: rgba(56,103,237,.48); box-shadow: 0 0 0 4px rgba(56,103,237,.08); }
.search-shortcut { position: absolute; top: 50%; inset-inline-end: 10px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--text-3); font-size: 10px; transform: translateY(-50%); pointer-events: none; }
.topbar-actions { display: flex; align-items: center; gap: 5px; }
.avatar-button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: linear-gradient(145deg,#89a2fc,#7661d6); font-size: 12px; font-weight: 800; cursor: pointer; box-shadow: 0 2px 7px rgba(64,87,183,.19); }
.mobile-menu-btn { display: none; }
.main-content { width: min(100%, 1510px); margin: 0 auto; padding: 31px clamp(20px,3vw,48px) 54px; }
.demo-banner { display: flex; align-items: center; gap: 11px; margin-bottom: 25px; padding: 12px 15px; border: 1px solid rgba(205,147,38,.18); border-radius: 13px; color: var(--text-2); background: color-mix(in srgb,var(--amber-soft) 62%,var(--surface)); font-size: 12px; }
.demo-banner strong { color: var(--amber); }
.demo-banner .banner-copy { flex: 1; }
.demo-banner .banner-link { padding: 0; border: 0; color: var(--primary); background: none; font-size: 11px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.page-heading h1 { margin: 0; color: var(--text); font-size: clamp(23px,2.3vw,30px); font-weight: 800; letter-spacing: -.035em; line-height: 1.25; }
.page-eyebrow { margin-bottom: 6px; color: var(--text-3); font-size: 11px; }
.page-subtitle { margin: 7px 0 0; color: var(--text-2); font-size: 13px; }
.heading-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text-2); background: var(--surface); font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: transform .15s ease, border .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { border-color: var(--line-strong); color: var(--text); box-shadow: var(--shadow-sm); }
.button:active { transform: scale(.97); }
.button .icon { width: 16px; height: 16px; }
.button-primary { color: #fff; border-color: transparent; background: linear-gradient(135deg,#3a70f6,#5365e8); box-shadow: 0 5px 13px rgba(55,103,231,.18); }
.button-primary:hover { color: #fff; border-color: transparent; background: linear-gradient(135deg,#2f64e8,#4659db); box-shadow: 0 7px 17px rgba(55,103,231,.24); }
.button-quiet { color: var(--primary); border-color: transparent; background: var(--primary-soft); }
.button-danger { color: var(--red); border-color: transparent; background: var(--red-soft); }
.button-small { min-height: 33px; padding: 0 10px; font-size: 11px; }
.icon-button.is-on { color: #e2a32e; background: var(--amber-soft); }
.card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; margin-bottom: 25px; }
.stat-card { position: relative; min-height: 131px; padding: 17px 18px; overflow: hidden; }
.stat-card:after { content: ""; position: absolute; top: -36px; inset-inline-end: -34px; width: 100px; height: 100px; border-radius: 50%; background: var(--stat-glow,rgba(56,103,237,.055)); }
.stat-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stat-label { color: var(--text-2); font-size: 11px; font-weight: 650; }
.stat-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--stat-color,var(--primary)); background: var(--stat-bg,var(--primary-soft)); }
.stat-icon .icon { width: 17px; height: 17px; }
.stat-value { margin-top: 15px; font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.stat-note { margin-top: 8px; color: var(--text-3); font-size: 10px; }
.stat-note .good { color: var(--green); font-weight: 700; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.8fr); gap: 17px; align-items: start; }
.panel { min-width: 0; overflow: hidden; }
.panel-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.panel-title { display: flex; flex-direction: column; gap: 2px; }
.panel-title strong { font-size: 13px; font-weight: 780; }
.panel-title span { color: var(--text-3); font-size: 10px; }
.panel-body { padding: 13px 17px 16px; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 4px; border: 0; color: var(--primary); background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.file-list { display: grid; }
.file-row { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) 116px 104px 77px; align-items: center; gap: 12px; min-height: 58px; padding: 8px 3px; border-bottom: 1px solid var(--line); }
.file-row:last-child { border-bottom: 0; }
.file-main { min-width: 0; display: flex; align-items: center; gap: 11px; }
.file-copy { min-width: 0; }
.file-name { display: block; overflow: hidden; color: var(--text); font-size: 11px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { display: block; margin-top: 3px; overflow: hidden; color: var(--text-3); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.file-type-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: #fff; background: var(--file-color,#4c79e8); }
.file-type-icon.folder { color: #d79c34; background: #fff5df; }
.file-type-icon .icon { width: 18px; height: 18px; }
.file-type-icon .type-mark { font-size: 9px; font-weight: 850; text-transform: uppercase; }
.row-meta { color: var(--text-2); font-size: 10px; white-space: nowrap; }
.row-actions { display: flex; justify-content: flex-end; gap: 2px; }
.activity-list { display: grid; }
.activity-item { display: flex; gap: 11px; padding: 12px 1px; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border: 0; }
.activity-avatar { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: var(--primary); background: var(--primary-soft); font-size: 10px; font-weight: 800; }
.activity-copy { min-width: 0; flex: 1; }
.activity-copy p { margin: 0; color: var(--text-2); font-size: 10px; line-height: 1.6; }
.activity-copy strong { color: var(--text); font-weight: 720; }
.activity-time { margin-top: 4px; color: var(--text-3); font-size: 9px; }
.sync-card { margin-top: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.sync-head { display: flex; align-items: center; gap: 10px; }
.sync-status-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--green); background: var(--green-soft); }
.sync-copy { min-width: 0; flex: 1; }
.sync-copy strong { display: block; font-size: 11px; }
.sync-copy span { display: block; margin-top: 3px; color: var(--text-3); font-size: 9px; }
.sync-caption { margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 10px; }
.quick-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin: 18px 0 24px; }
.quick-action { min-height: 82px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--text-2); background: var(--surface); text-align: start; cursor: pointer; transition: transform .16s ease, border .16s ease, box-shadow .16s ease; }
.quick-action:hover { transform: translateY(-2px); border-color: rgba(56,103,237,.25); box-shadow: var(--shadow-card); }
.quick-action .quick-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: var(--primary-soft); }
.quick-action:nth-child(2) .quick-icon { color: var(--violet); background: color-mix(in srgb,var(--violet) 12%,var(--surface)); }
.quick-action:nth-child(3) .quick-icon { color: var(--teal); background: color-mix(in srgb,var(--teal) 12%,var(--surface)); }
.quick-action span:last-child { font-size: 10px; font-weight: 720; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 13px; }
.section-heading h2 { margin: 0; font-size: 15px; font-weight: 780; }
.section-heading p { margin: 4px 0 0; color: var(--text-3); font-size: 11px; }
.usage-card { padding: 18px; }
.usage-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.usage-top strong { display: block; font-size: 13px; }
.usage-top span { display: block; margin-top: 4px; color: var(--text-3); font-size: 10px; }
.usage-big { color: var(--primary); font-size: 21px; font-weight: 850; white-space: nowrap; }
.usage-card .progress-track { height: 9px; margin: 17px 0 10px; }
.usage-legend { display: flex; flex-wrap: wrap; gap: 9px 18px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 10px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.folder-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 23px; }
.folder-card { position: relative; min-width: 0; display: flex; gap: 11px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: start; cursor: pointer; transition: border .16s, transform .16s, box-shadow .16s; }
.folder-card:hover { transform: translateY(-2px); border-color: rgba(56,103,237,.27); box-shadow: var(--shadow-card); }
.folder-card .folder-emblem { width: 41px; height: 41px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: #d39931; background: #fff4dc; }
:root[data-theme="dark"] .folder-card .folder-emblem { background: #3b3120; }
.folder-card .folder-emblem .icon { width: 21px; height: 21px; }
.folder-card .row-actions { gap: 0; opacity: .72; }
.folder-card:hover .row-actions { opacity: 1; }
.folder-card .row-actions .icon-button { width: 26px; height: 28px; }
.folder-card-copy { min-width: 0; flex: 1; }
.folder-card-copy strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.folder-card-copy span { display: block; margin-top: 4px; color: var(--text-3); font-size: 9px; }
.files-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 15px 0 13px; }
.toolbar-select { height: 35px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--text-2); background: var(--surface); font-size: 11px; }
.toolbar-spacer { flex: 1; }
.segmented { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.segmented button { width: 29px; height: 27px; display: grid; place-items: center; border: 0; border-radius: 7px; color: var(--text-3); background: transparent; cursor: pointer; }
.segmented button.active { color: var(--primary); background: var(--primary-soft); }
.segmented .icon { width: 15px; height: 15px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 11px; color: var(--text-3); font-size: 11px; }
.breadcrumbs button { padding: 0; border: 0; color: var(--text-2); background: transparent; cursor: pointer; }
.breadcrumbs button:hover { color: var(--primary); }
.breadcrumb-sep { opacity: .55; }
.file-table { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-sm); }
.file-table-head, .file-table-row { display: grid; grid-template-columns: minmax(230px,1fr) minmax(85px,140px) minmax(80px,115px) minmax(104px,144px) 104px; align-items: center; gap: 12px; padding: 0 15px; }
.file-table-head { min-height: 40px; border-bottom: 1px solid var(--line); color: var(--text-3); background: var(--surface-2); font-size: 10px; font-weight: 700; }
.file-table-row { min-height: 62px; border-bottom: 1px solid var(--line); transition: background .13s; }
.file-table-row:last-child { border-bottom: 0; }
.file-table-row:hover { background: color-mix(in srgb,var(--primary-soft) 35%,var(--surface)); }
.file-table-row.is-selected { background: color-mix(in srgb,var(--primary-soft) 62%,var(--surface)); }
.file-table-row .file-main { gap: 10px; }
.file-check { width: 15px; height: 15px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.file-table-row .file-type-icon { width: 34px; height: 34px; border-radius: 10px; }
.file-table-row .file-type-icon .icon { width: 17px; height: 17px; }
.owner-cell { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 10px; white-space: nowrap; }
.owner-avatar { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #8296de; font-size: 8px; font-weight: 800; }
.file-table-row .row-actions { opacity: .8; }
.file-table-row:hover .row-actions { opacity: 1; }
.row-actions .icon-button { width: 28px; height: 28px; border-radius: 8px; }
.row-actions .icon-button .icon { width: 15px; height: 15px; }
.file-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.file-card { position: relative; min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); cursor: pointer; transition: border .16s, transform .16s, box-shadow .16s; }
.file-card:hover { transform: translateY(-2px); border-color: rgba(56,103,237,.24); box-shadow: var(--shadow-card); }
.file-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.file-card .file-type-icon { width: 41px; height: 41px; border-radius: 12px; }
.file-card .file-type-icon .icon { width: 21px; height: 21px; }
.file-card .row-actions { opacity: 0; }
.file-card:hover .row-actions { opacity: 1; }
.file-card .file-name { margin-top: 14px; font-size: 11px; }
.file-card .file-meta { margin-top: 5px; }
.file-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 9px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 6px; color: var(--text-2); background: var(--surface-3); font-size: 9px; font-weight: 700; white-space: nowrap; }
.badge--green { color: var(--green); background: var(--green-soft); }
.badge--amber { color: var(--amber); background: var(--amber-soft); }
.badge--blue { color: var(--primary); background: var(--primary-soft); }
.badge--red { color: var(--red); background: var(--red-soft); }
.selection-bar { position: sticky; z-index: 4; bottom: 16px; display: flex; align-items: center; gap: 9px; width: fit-content; max-width: 100%; margin: 15px auto 0; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-pop); }
.selection-bar .selection-count { padding-inline: 5px; font-size: 11px; font-weight: 750; }
.empty-state { min-height: 215px; display: grid; justify-items: center; align-content: center; gap: 9px; padding: 24px; border: 1px dashed var(--line-strong); border-radius: 15px; color: var(--text-3); background: color-mix(in srgb,var(--surface) 70%,transparent); text-align: center; }
.empty-illustration { width: 53px; height: 53px; display: grid; place-items: center; border-radius: 17px; color: var(--primary); background: var(--primary-soft); }
.empty-illustration .icon { width: 25px; height: 25px; }
.empty-state strong { color: var(--text); font-size: 13px; }
.empty-state p { max-width: 330px; margin: 0; font-size: 11px; }
.shared-card { display: grid; grid-template-columns: minmax(240px,1fr) 160px 130px 100px; gap: 12px; align-items: center; min-height: 65px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.shared-card:last-child { border-bottom: 0; }
.activity-page-list { padding: 8px 18px; }
.activity-page-list .activity-item { padding: 16px 2px; }
.activity-page-list .activity-avatar { width: 36px; height: 36px; }
.activity-page-list .activity-copy p { font-size: 12px; }
.activity-page-list .activity-time { font-size: 10px; }
.settings-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 15px; }
.settings-card { padding: 18px; }
.settings-card h2 { margin: 0 0 5px; font-size: 14px; }
.settings-card > p { margin: 0 0 16px; color: var(--text-3); font-size: 11px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.setting-row strong { display: block; font-size: 11px; }
.setting-row span { display: block; margin-top: 3px; color: var(--text-3); font-size: 10px; }
.switch { width: 40px; height: 23px; position: relative; flex: 0 0 auto; border: 0; border-radius: 99px; background: var(--line-strong); cursor: pointer; transition: background .18s; }
.switch:after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 17px; height: 17px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .18s; }
.switch[aria-checked="true"] { background: var(--primary); }
[dir="rtl"] .switch[aria-checked="true"]:after { transform: translateX(-17px); }
[dir="ltr"] .switch[aria-checked="true"]:after { transform: translateX(17px); }
.storage-breakdown { display: grid; gap: 10px; margin-top: 17px; }
.storage-breakdown-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; color: var(--text-2); font-size: 10px; }
.storage-breakdown-row strong { color: var(--text); font-size: 10px; }
.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(14,21,39,.47); backdrop-filter: blur(4px); animation: fade-in .16s ease; }
.modal { width: min(100%, 480px); max-height: min(88vh,760px); overflow: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-pop); animation: modal-in .2s cubic-bezier(.2,.8,.2,1); }
.modal--wide { width: min(100%, 790px); }
.modal-head { position: sticky; z-index: 1; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 19px 21px 15px; border-bottom: 1px solid var(--line); background: var(--surface); }
.modal-head h2 { margin: 0; font-size: 16px; }
.modal-head p { margin: 5px 0 0; color: var(--text-3); font-size: 11px; }
.modal-body { padding: 19px 21px 21px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 0 21px 20px; }
.form-field { display: grid; gap: 6px; margin-bottom: 15px; }
.form-field label { color: var(--text-2); font-size: 11px; font-weight: 700; }
.form-input, .form-select, .form-textarea { width: 100%; min-height: 41px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); background: var(--surface); outline: none; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(56,103,237,.09); }
.form-help { color: var(--text-3); font-size: 10px; }
.permission-list { display: grid; gap: 8px; }
.permission-option { display: flex; align-items: flex-start; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.permission-option input { margin-top: 3px; accent-color: var(--primary); }
.permission-option strong { display: block; font-size: 11px; }
.permission-option small { display: block; margin-top: 3px; color: var(--text-3); font-size: 10px; }
.demo-note { display: flex; gap: 9px; margin-top: 13px; padding: 11px; border-radius: 10px; color: var(--amber); background: var(--amber-soft); font-size: 10px; }
.preview-pane { min-height: 310px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; color: var(--text-3); background: var(--surface-2); }
.preview-pane img, .preview-pane video, .preview-pane iframe { width: 100%; max-height: 65vh; border: 0; object-fit: contain; }
.preview-file-info { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.preview-file-info strong { display: block; font-size: 12px; }
.preview-file-info span { display: block; margin-top: 3px; color: var(--text-3); font-size: 10px; }
.toast-region { position: fixed; z-index: 120; inset-inline-end: 20px; bottom: 20px; display: grid; gap: 9px; width: min(350px,calc(100vw - 40px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: var(--surface); box-shadow: var(--shadow-pop); font-size: 11px; animation: toast-in .22s ease; pointer-events: auto; }
.toast .toast-icon { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; color: var(--green); background: var(--green-soft); }
.toast--warning .toast-icon { color: var(--amber); background: var(--amber-soft); }
.toast--error .toast-icon { color: var(--red); background: var(--red-soft); }
.toast strong { display: block; margin-bottom: 2px; font-size: 11px; }
.toast span { display: block; color: var(--text-2); }
.backdrop-mobile { display: none; }
@keyframes fade-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.985) } to { opacity: 1; transform: translateY(0) scale(1) } }
@keyframes toast-in { from { opacity: 0; transform: translateY(9px) } to { opacity: 1; transform: translateY(0) } }
@media (max-width: 1180px) {
  :root { --sidebar-width: 226px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .file-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .folder-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 920px) {
  .sidebar { transform: translateX(-105%); box-shadow: var(--shadow-pop); }
  [dir="rtl"] .sidebar { transform: translateX(105%); }
  .sidebar.is-open, [dir="rtl"] .sidebar.is-open { transform: translateX(0); }
  .workspace { margin-inline-start: 0; }
  .mobile-menu-btn { display: inline-grid; }
  .mobile-brand { display: flex; }
  .sidebar-brand { padding-top: 12px; }
  .backdrop-mobile.is-visible { position: fixed; z-index: 25; inset: 0; display: block; background: rgba(14,21,39,.38); }
  .topbar { gap: 12px; }
  .topbar .search-wrap { width: min(480px,44vw); }
}
@media (max-width: 720px) {
  :root { --topbar-height: 65px; }
  .topbar { gap: 8px; padding: 9px 14px; }
  .topbar .mobile-brand .brand-name, .topbar .mobile-brand .brand-caption { display: none; }
  .topbar .search-wrap { width: auto; flex: 1; }
  .search-input { height: 39px; padding-inline-start: 38px; }
  .search-shortcut { display: none; }
  .topbar-actions { gap: 1px; }
  .topbar-actions .icon-button[data-action="help"] { display: none; }
  .icon-button { width: 35px; height: 35px; }
  .main-content { padding: 23px 15px 35px; }
  .demo-banner { align-items: flex-start; margin-bottom: 20px; padding: 10px 11px; font-size: 10px; }
  .demo-banner .banner-link { max-width: 70px; white-space: normal; text-align: end; }
  .page-heading { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 19px; }
  .page-heading h1 { font-size: 24px; }
  .heading-actions { justify-content: flex-start; }
  .stats-grid { gap: 9px; margin-bottom: 17px; }
  .stat-card { min-height: 116px; padding: 13px; }
  .stat-label { font-size: 10px; }
  .stat-value { margin-top: 12px; font-size: 21px; }
  .stat-icon { width: 30px; height: 30px; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 13px; }
  .quick-actions { gap: 7px; margin: 15px 0 19px; }
  .quick-action { min-height: 75px; padding: 10px; gap: 8px; }
  .quick-action span:last-child { font-size: 9px; }
  .file-row { grid-template-columns: minmax(0,1fr) 65px 48px; gap: 7px; }
  .file-row .row-meta:nth-of-type(3) { display: none; }
  .file-row .row-actions { display: none; }
  .panel-head { padding: 12px 13px; }
  .panel-body { padding: 8px 13px 12px; }
  .row-meta { font-size: 9px; }
  .folder-grid { gap: 8px; }
  .folder-card { padding: 11px; gap: 8px; }
  .folder-card .folder-emblem { width: 34px; height: 34px; }
  .file-table-head, .file-table-row { grid-template-columns: minmax(160px,1fr) 62px 74px; gap: 7px; padding: 0 9px; }
  .file-table-head > :nth-child(3), .file-table-row > :nth-child(3), .file-table-head > :nth-child(4), .file-table-row > :nth-child(4) { display: none; }
  .file-table-row .row-actions { opacity: 1; }
  .file-table-row .file-main { gap: 6px; }
  .file-table-row .file-check { width: 13px; height: 13px; }
  .file-table-row .file-type-icon { width: 29px; height: 29px; }
  .file-table-row .file-name { font-size: 10px; }
  .file-table-row .file-meta { font-size: 9px; }
  .file-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .file-card { padding: 12px; }
  .file-card .file-type-icon { width: 35px; height: 35px; }
  .file-card .row-actions { opacity: 1; }
  .file-card .row-actions .icon-button { width: 25px; height: 25px; }
  .shared-card { grid-template-columns: minmax(0,1fr) 70px; gap: 8px; padding: 10px; }
  .shared-card > :nth-child(2), .shared-card > :nth-child(3) { display: none; }
  .settings-grid { grid-template-columns: 1fr; }
  .selection-bar { bottom: 10px; flex-wrap: wrap; justify-content: center; }
  .selection-bar .button { min-height: 30px; }
}
@media (max-width: 410px) {
  .mobile-brand { display: none; }
  .topbar-actions .icon-button[data-action="theme"] { display: none; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .file-table-head, .file-table-row { grid-template-columns: minmax(145px,1fr) 65px 60px; }
  .file-card .file-card-foot { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
