/* «مساحة القرص» on the home page (editor/disk.js) */
dialog.dk { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 0; overflow: hidden; border-radius: 20px; display: flex; flex-direction: column; }
dialog.dk:not([open]) { display: none; }
.dk-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.dk-head h2 { margin: 0; font-size: 18px; } .dk-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.dk-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: var(--ink); flex: none; }
.dk-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.dk-x { margin-inline-start: auto; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 15px; }
.dk-x:hover { background: var(--chip); color: var(--text); }
.dk-wait { padding: 48px 22px; text-align: center; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 10px; }
.dk-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: dkspin .8s linear infinite; }
@keyframes dkspin { to { transform: rotate(360deg); } }
.dk-body { padding: 18px 22px 22px; overflow: auto; }
.dk-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.dk-total span { color: var(--muted); font-size: 13px; }
.dk-total b { font-size: 30px; font-weight: 700; letter-spacing: -.5px; }
.dk-bar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: var(--chip); gap: 2px; }
.dk-bar i { min-width: 3px; }
.dk-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 18px; font-size: 12px; color: var(--muted); }
.dk-legend span { display: flex; align-items: center; gap: 6px; }
.dk-legend i { width: 10px; height: 10px; border-radius: 3px; }
.dk-legend b { color: var(--text); font-weight: 600; }
.dk-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.dk-card { position: relative; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.dk-card::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.dk-card-h { display: flex; align-items: center; gap: 8px; }
.dk-card-h i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.dk-card-h b { font-size: 13.5px; }
.dk-big { margin-inline-start: auto; font-size: 18px; font-weight: 700; white-space: nowrap; }
.dk-card-h b { min-width: 0; }
.dk-card p { margin: 0; font-size: 12.5px; color: var(--muted-2); line-height: 1.6; flex: 1; }
.dk-card small { color: var(--muted); }
.dk-btn { height: 38px; border-radius: 11px; border: 0; background: var(--c); color: #061218; font-weight: 700; font-size: 13px; }
.dk-btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.dk-btn.danger { background: #ef6b6b; color: #fff; }
.dk-btn:disabled { opacity: .45; cursor: default; }
.dk-msg { margin: 12px 0 0; font-size: 13px; color: var(--accent); min-height: 0; }
.dk-msg:empty { display: none; }
.dk-body h3 { font-size: 14px; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.dk-body h3 small { font-size: 12px; color: var(--muted); font-weight: 400; padding: 1px 8px; border-radius: 99px; background: var(--chip); }
.dk-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dk-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 150px 80px auto; gap: 12px; align-items: center; padding: 10px 12px; }
.dk-row + .dk-row { border-top: 1px solid var(--line); }
.dk-thumb { width: 64px; height: 38px; border-radius: 8px; overflow: hidden; background: var(--thumb); }
.dk-thumb { display: grid; place-items: center; }
.dk-noimg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linejoin: round; opacity: .7; }
.dk-noimg path { fill: var(--muted); stroke: none; }
.dk-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dk-name { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dk-name b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-name small { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.dk-name em { font-style: normal; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.dk-name em::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.dk-mini { display: flex; height: 8px; border-radius: 5px; overflow: hidden; background: var(--chip); gap: 1px; }
.dk-mini i { min-width: 2px; }
.dk-size { text-align: end; font-weight: 700; font-size: 13.5px; }
.dk-link { border: 0; background: none; color: var(--accent-2); font-size: 12px; padding: 4px; }
.dk-others { display: flex; flex-direction: column; gap: 6px; }
.dk-orow { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; }
.dk-orow span { color: var(--muted); flex: 1; }
.dk-orow em { font-style: normal; font-weight: 600; }
.dk-note { margin: 18px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .dk-row { grid-template-columns: 52px minmax(0, 1fr) 70px; } .dk-mini, .dk-link { display: none; } }
/* Each project's folder on the computer, its date, and naming it in English (owner's notes 18-11). */
.dk-folder { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 11.5px; color: var(--muted); }
.dk-folder code { font: 600 11.5px/1.4 ui-monospace, 'Cascadia Mono', Consolas, monospace; padding: 1px 6px; border-radius: 5px; background: var(--chip, rgba(127, 127, 127, .12)); color: var(--text); unicode-bidi: isolate; }
.dk-folder code.dk-noname { color: var(--muted); }
.dk-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.dk-link.danger { color: var(--danger, #d9534f); }
.dk-rn { width: 150px; height: 30px; padding: 0 8px; border: 1px solid var(--line-2, var(--line)); border-radius: 8px; background: var(--panel, #fff); color: var(--text); font: 13px ui-monospace, Consolas, monospace; }
.dk-hint { margin: -4px 0 8px; font-size: 12.5px; color: var(--muted); }
