/* ---------- FILES ---------- */
/* Head on the scrim, the folder as a list panel with a toolbar, and a rail with the inspector and storage. */
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files > .files-head { margin: 4px 0 14px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files > .files-head > .files-head-copy { flex: 1 1 320px; min-width: 0; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-head > .files-head-copy > p.files-summary { margin: 10px 0 0; font-size: 15px; color: var(--at-ink); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-summary b { font-weight: 600; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-dot { display: inline-block; width: 8px; height: 8px; margin-inline-end: 9px; border-radius: 50%; background: var(--at-green); vertical-align: 2px; box-shadow: 0 0 0 3px var(--at-green-soft); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-dot.is-amber { background: var(--at-amber); box-shadow: 0 0 0 3px var(--at-amber-soft); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-head-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-head-actions > button { display: inline-flex; align-items: center; gap: 8px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-icon-inline { width: 16px; height: 16px; stroke-width: 2; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files > p.files-status, html body.workspace-framed.rt-route:not(#_):not(._) #panel-files > p#files-error { display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; min-height: 32px; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; background: var(--at-glass-2); box-shadow: var(--at-sheen), inset 0 0 0 1px var(--at-line); color: var(--at-ink); font-size: 13px; line-height: 1.4; text-shadow: none; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files > p.files-status::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--at-green); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files > p#files-error { margin: 14px 0 0; border-radius: 12px; background: var(--at-rose-soft); box-shadow: none; color: var(--at-rose); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files > .files-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); align-items: start; gap: 16px; margin: 0; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-workspace > .files-rail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* the folder panel */
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-workspace > .files-content { min-width: 0; padding: 0 !important; overflow: hidden; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-content > .files-list-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border-bottom: 1px solid var(--at-line-2); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-list-toolbar > .files-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0; padding: 0; border: 0; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-navigation > button:not(:disabled) { min-height: 44px; padding: 0 12px; border-color: transparent !important; background: transparent !important; color: var(--at-ink-2) !important; font-size: 13px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-navigation > button:not(:disabled):hover { background: var(--at-hover) !important; color: var(--at-ink) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-navigation > span { flex: none; padding: 0 8px; line-height: 1.4; font-size: 14px; font-weight: 600; color: var(--at-ink); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-navigation > span::before { content: "/"; margin-inline-end: 10px; color: var(--at-ink-4); font-weight: 400; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-list-toolbar > .files-navigation:has(> button + span)::after, html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-list-toolbar > .files-navigation:not(:has(span))::after { content: ""; width: 1px; height: 20px; margin-inline-start: 8px; background: var(--at-line); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-list-toolbar > .files-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-filters > button.files-filter:not(:disabled) { position: relative; z-index: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0 !important; border-radius: 10px; background: transparent !important; box-shadow: none !important; color: var(--at-ink-2) !important; font-size: 13px; font-weight: 500; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-filters > button.files-filter:not(:disabled)::before { content: ""; position: absolute; z-index: -1; inset: 4px 0; border-radius: 10px; background: var(--at-fill-1); box-shadow: inset 0 0 0 1px var(--at-line); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-filters > button.files-filter:not(:disabled):hover::before { background: var(--at-fill-2); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-filters > button.files-filter[aria-pressed="true"]:not(:disabled) { color: var(--at-ink) !important; font-weight: 600; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-filters > button.files-filter[aria-pressed="true"]:not(:disabled)::before { background: var(--at-green-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--at-green) 45%, transparent); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-filter > .files-filter-count { color: var(--at-ink-3); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-list-toolbar > .files-view { display: inline-flex; gap: 2px; margin-inline-start: auto; padding: 0; border-radius: 12px; background: var(--at-fill-1); box-shadow: inset 0 0 0 1px var(--at-line); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-view > button:not(:disabled) { display: inline-grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 0 !important; border-radius: 12px; background: transparent !important; box-shadow: none !important; color: var(--at-ink-3) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-view > button:not(:disabled):hover { color: var(--at-ink) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-view > button[aria-pressed="true"]:not(:disabled) { background: var(--at-glass-strong) !important; box-shadow: 0 1px 3px rgb(0 0 0 / .25), var(--at-sheen) !important; color: var(--at-ink) !important; }
html[data-theme="light"] body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-view > button[aria-pressed="true"]:not(:disabled) { background: #fff !important; box-shadow: 0 1px 3px rgb(30 60 45 / .14) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-view svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-content > .files-list-head { display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin: 0; padding: 16px 20px 6px; border: 0; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-content > .files-list-head > h2 { margin: 0 !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: var(--at-ink-3) !important; }
html[lang="ar"] body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-content > .files-list-head > h2 { font-size: 13px !important; letter-spacing: 0 !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-content > .files-list-head > span:not(.chip) { min-height: 0; min-width: 0; padding: 0 !important; background: none !important; box-shadow: none !important; color: var(--at-ink-3) !important; font-size: 12px !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-content > .files-empty { padding: 36px 16px 44px !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-content > ul.files-list { margin: 0; padding: 0 8px 8px; list-style: none; }
/* rows: type tile, name over kind and size, date, hover-revealed actions */
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files ul.files-list > li[data-file-row] { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; min-height: 60px; padding: 8px 12px !important; cursor: pointer; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files ul.files-list > li[data-file-row].is-selected { background: var(--at-green-soft) !important; box-shadow: inset 3px 0 0 var(--at-green) !important; }
html[dir="rtl"] body.workspace-framed.rt-route:not(#_):not(._) #panel-files ul.files-list > li[data-file-row].is-selected { box-shadow: inset -3px 0 0 var(--at-green) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files ul.files-list > li[data-file-row]:is(:hover, .is-selected)::before, html body.workspace-framed.rt-route:not(#_):not(._) #panel-files ul.files-list > li[data-file-row]:is(:hover, .is-selected) + li::before { opacity: 0; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-row-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--at-fill-2); color: var(--at-ink-2); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files [data-file-kind="folder"] > .files-row-icon, html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-icon[data-file-kind="folder"] { background: var(--at-amber-soft); color: var(--at-amber); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files [data-file-kind="pdf"] > .files-row-icon, html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-icon[data-file-kind="pdf"] { background: var(--at-rose-soft); color: var(--at-rose); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files [data-file-kind="image"] > .files-row-icon, html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-icon[data-file-kind="image"] { background: var(--at-blue-soft); color: var(--at-blue); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files [data-file-kind="sheet"] > .files-row-icon, html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-icon[data-file-kind="sheet"] { background: var(--at-green-soft); color: var(--at-green-text); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files li[data-file-row] > .files-row-identity { display: flex; flex-direction: row; flex-wrap: wrap; flex: initial; gap: 0; align-items: baseline; column-gap: 6px; min-width: 0; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-row-identity > :is(a, button):first-child { display: block; flex: 1 0 100%; min-width: 0; max-width: 100%; min-height: 44px; margin: -8px 0 -10px; line-height: 44px !important; padding: 0 !important; border: 0 !important; border-radius: 6px; background: transparent !important; box-shadow: none !important; color: var(--at-ink) !important; font-size: 14px; font-weight: 500; text-align: start; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-row-identity > :is(a, button):first-child:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--at-ink-4); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-row-identity > span { display: inline; font-size: 13px; line-height: 1.4; color: var(--at-ink-3); white-space: nowrap; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-row-identity > span + span::before { content: "·"; margin-inline: 5px 6px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files li[data-file-row] > time.files-row-date { grid-column: 3; grid-row: 1; justify-self: end; font-size: 13px; color: var(--at-ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files li[data-file-row] > .files-row-actions { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 2px; margin: 0; padding: 3px; border-radius: 12px; background: var(--at-glass-strong); box-shadow: var(--at-shadow-sm), inset 0 0 0 1px var(--at-line); }
html[data-theme="light"] body.workspace-framed.rt-route:not(#_):not(._) #panel-files li[data-file-row] > .files-row-actions { background: #fff; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-row-actions > button:not(:disabled) { min-height: 38px; padding: 0 10px; border: 0 !important; border-radius: 9px; background: transparent !important; box-shadow: none !important; color: var(--at-ink-2) !important; font-size: 13px; white-space: nowrap; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-row-actions > button:not(:disabled):hover { background: var(--at-hover) !important; color: var(--at-ink) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-row-actions > button[data-files-action="trash"]:not(:disabled):hover { background: var(--at-rose-soft) !important; color: var(--at-rose) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-row-actions > button:disabled { min-height: 38px; padding: 0 10px; font-size: 13px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-row-actions > button.files-row-inspect:not(:disabled) { display: inline-grid; place-items: center; width: 38px; padding: 0; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-row-actions > button.files-row-inspect svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (hover: hover) {
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files li[data-file-row] > .files-row-actions { opacity: 0; transform: translateY(2px); pointer-events: none; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files li[data-file-row]:is(:hover, :focus-within) > .files-row-actions { opacity: 1; transform: none; pointer-events: auto; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files li[data-file-row]:is(:hover, :focus-within) > time.files-row-date { visibility: hidden; }
}
/* grid view: tidy tiles */
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-content > ul.files-list.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; padding: 8px 14px 16px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files ul.files-list.is-grid > li[data-file-row] { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 148px; padding: 14px !important; border-radius: 14px !important; background: var(--at-fill-1) !important; box-shadow: inset 0 0 0 1px var(--at-line-2) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files ul.files-list.is-grid > li[data-file-row]:hover { background: var(--at-fill-2) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files ul.files-list.is-grid > li[data-file-row].is-selected { background: var(--at-green-soft) !important; box-shadow: inset 0 0 0 1.5px var(--at-green) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files ul.files-list.is-grid > li::before { display: none; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files ul.files-list.is-grid .files-row-icon { width: 44px; height: 44px; border-radius: 12px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files ul.files-list.is-grid .files-row-icon svg { width: 22px; height: 22px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files ul.files-list.is-grid .files-row-identity { width: 100%; margin-top: auto; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files ul.files-list.is-grid > li > time.files-row-date { display: none; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files ul.files-list.is-grid > li > .files-row-actions { position: absolute; top: 10px; inset-inline-end: 10px; }
/* tiles keep only Details; rename, move and trash live in the inspector it opens */
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files ul.files-list.is-grid .files-row-actions > button:is([data-files-action="rename"], [data-files-action="move"], [data-files-action="trash"]) { display: none; }
/* rail: inspector, then storage and adding */
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-rail > .files-inspector { box-sizing: border-box; min-width: 0; padding: 18px 20px 20px; border: 1px solid var(--at-line); border-radius: var(--at-r-lg); background: var(--at-pane); box-shadow: var(--at-sheen), var(--at-shadow); color: var(--at-ink); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--at-fill-2); color: var(--at-ink-2); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-top > button.files-inspector-close:not(:disabled) { display: inline-grid; place-items: center; width: 44px; min-height: 44px; margin: -6px -10px 0 0; padding: 0; border: 0 !important; border-radius: 12px; background: transparent !important; color: var(--at-ink-3) !important; }
html[dir="rtl"] body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-top > button.files-inspector-close:not(:disabled) { margin: -6px 0 0 -10px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-top > button.files-inspector-close:not(:disabled):hover { background: var(--at-hover) !important; color: var(--at-ink) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector > h2.files-inspector-title { margin: 0 0 14px; font-family: var(--at-serif); font-size: 26px; font-weight: 400; line-height: 1.15; letter-spacing: -.005em; color: var(--at-ink); overflow-wrap: anywhere; }
html[lang="ar"] body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector > h2.files-inspector-title { font-family: var(--at-sans); font-size: 20px; font-weight: 600; line-height: 1.45; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 0 0 16px; font-size: 14px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-facts > :is(dt, dd) { margin: 0; padding: 10px 0; border-top: 1px solid var(--at-line-2); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-facts > dt { padding-inline-end: 16px; color: var(--at-ink-3); font-size: 13px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-facts > dd { color: var(--at-ink); text-align: end; overflow-wrap: anywhere; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-actions { display: flex; flex-wrap: wrap; gap: 8px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-actions > button:not(:disabled) { flex: 1 1 auto; border-color: transparent !important; background: var(--at-fill-1) !important; box-shadow: inset 0 0 0 1px var(--at-line) !important; color: var(--at-ink) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-actions > button:not(:disabled):hover { background: var(--at-fill-2) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-actions > button:first-child:not(:disabled) { flex: 1 1 100%; background: var(--at-fill-2) !important; border-color: transparent !important; box-shadow: inset 0 0 0 1px var(--at-line) !important; font-weight: 600; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-actions > button:first-child:not(:disabled):hover { background: var(--at-fill-3) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-actions > button[data-files-inspector-action="trash"]:not(:disabled) { background: transparent !important; box-shadow: none !important; color: var(--at-rose) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-actions > button[data-files-inspector-action="trash"]:not(:disabled):hover { background: var(--at-rose-soft) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-empty { display: flex; align-items: center; gap: 14px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-empty > .files-inspector-icon { width: 44px; height: 44px; flex: none; color: var(--at-ink-3); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector-empty > p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--at-ink-3); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector > .files-editor { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector > .files-editor > h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--at-ink); overflow-wrap: anywhere; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector > .files-editor > label { font-size: 13px; color: var(--at-ink-2); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector > .files-editor > p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--at-ink-3); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector > .files-editor > :is(input, select, .localized-control):not(:disabled) { width: 100%; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-editor-actions > button:not(:disabled) { flex: 1 1 auto; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-editor-actions > button:not(.rt-btn-primary):not(:disabled) { border-color: transparent !important; background: var(--at-fill-1) !important; box-shadow: inset 0 0 0 1px var(--at-line) !important; color: var(--at-ink) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-editor-actions > button:not(.rt-btn-primary):not(:disabled):hover { background: var(--at-fill-2) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-inspector [role="alert"] { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--at-rose-soft); color: var(--at-rose); font-size: 13px; line-height: 1.5; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-rail > .files-tools { display: flex; flex-direction: column; gap: 0; min-width: 0; padding: 4px 20px !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-tools > :is(.files-usage, .files-toolbar, .files-upload) { margin: 0 !important; padding: 16px 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-tools > * + * { border-top: 1px solid var(--at-line-2) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-usage > p:first-child { margin: 0 0 10px; font-size: 14px !important; font-weight: 600 !important; line-height: 1.45 !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-usage meter { display: block; width: 100%; height: 8px; border: 0; border-radius: 999px; background: var(--at-fill-2); overflow: hidden; -webkit-appearance: none; appearance: none; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-usage meter::-webkit-meter-bar { border: 0; border-radius: 999px; background: var(--at-fill-2); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-usage meter::-webkit-meter-optimum-value, html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-usage meter::-webkit-meter-suboptimum-value, html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-usage meter::-webkit-meter-even-less-good-value { border-radius: 999px; background: var(--at-green); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-usage > p:last-child { margin: 10px 0 0; font-size: 13px; line-height: 1.55; color: var(--at-ink-3); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-tools > form.files-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-toolbar > .files-folder-field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--at-ink-2); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-toolbar > .files-folder-field > input:not(:disabled) { width: 100%; height: 44px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-toolbar > button.rt-btn-primary:not(:disabled) { background: var(--at-fill-2) !important; border: 1px solid transparent !important; box-shadow: inset 0 0 0 1px var(--at-line) !important; color: var(--at-ink) !important; font-weight: 600 !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-toolbar > button.rt-btn-primary:not(:disabled):hover { background: var(--at-fill-3) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-toolbar > button:not(.rt-btn-primary):not(:disabled) { border-color: transparent !important; background: transparent !important; color: var(--at-ink-2) !important; font-size: 13px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-toolbar > button { justify-self: stretch; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-toolbar > [role="alert"], html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-upload > [role="alert"] { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--at-rose-soft); color: var(--at-rose); font-size: 13px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-tools > .files-upload { display: flex; flex-direction: column; gap: 8px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-upload > .files-upload-field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--at-ink-2); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-upload .localized-control-input:not(:disabled) { width: 100%; min-height: 52px; border-style: dashed !important; border-color: color-mix(in srgb, var(--at-ink) 26%, transparent) !important; background: transparent !important; color: var(--at-ink) !important; font-weight: 500; text-align: center; justify-content: center; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-upload .localized-control-input:not(:disabled):hover { background: var(--at-fill-1) !important; border-color: var(--at-green) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-upload > #files-upload-help { margin: 0; font-size: 13px; color: var(--at-ink-3); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-upload > [role="status"] { margin: 0; font-size: 13px; color: var(--at-ink-2); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-tools > p.files-local-note { margin: 0; padding: 14px 0 16px; font-size: 13px; line-height: 1.55; color: var(--at-ink-3); text-shadow: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files li[data-file-row] > .files-row-actions { transition: opacity var(--at-fast) var(--at-ease), transform var(--at-fast) var(--at-ease); }
}
@media (max-width: 1100px) {
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files > .files-workspace { grid-template-columns: minmax(0, 1fr); }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-workspace > .files-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
}
@media (max-width: 760px) {
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files > .files-head > .files-head-actions { width: 100%; justify-content: stretch; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-head-actions > button { flex: 1 1 0; justify-content: center; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-content > .files-list-toolbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 8px 10px; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-list-toolbar > * { flex: none; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-list-toolbar > .files-filters { flex-wrap: nowrap; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files ul.files-list:not(.is-grid) > li[data-file-row] { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 8px 6px 8px 10px !important; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files ul.files-list:not(.is-grid) > li > time.files-row-date { display: none; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files li[data-file-row] > .files-row-actions { padding: 0; background: none; box-shadow: none; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-row-actions > button:is([data-files-action="rename"], [data-files-action="move"], [data-files-action="trash"]) { display: none; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-row-actions > button.files-row-inspect:not(:disabled) { width: 44px; min-height: 44px; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-content > ul.files-list.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-workspace > .files-rail { display: flex; }
}
/* ---------- FILES · bento r2 (work pages) ---------- */
/* The folder panel runs the rail's height; an empty folder is a quiet tray that fills the panel instead of trailing off into scene. */
@media (min-width: 1101px) {
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files > .files-workspace:not(#_) { align-items: stretch; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-workspace > .files-content:not(#_) { display: flex; flex-direction: column; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-content > .files-empty:not(#_) { flex: 1 1 auto; margin: 8px 12px 12px; border-radius: 14px !important; background: var(--at-fill-1) !important; box-shadow: inset 0 0 0 1px var(--at-line-2) !important; }
}
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-content > .files-empty:not(#_) { min-height: 64px; padding: 16px 20px !important; color: var(--at-ink-2); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-tools > :is(.files-usage, .files-toolbar, .files-upload):not(#_) { padding: 12px 0 !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-rail > .files-inspector:not(#_) { padding: 14px 16px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-files > .files-head:not(#_) { margin-block-end: 12px; }
/* DENSITY 3 · Files: from 2000px the rail's tools run two across (half as tall). */
@media (min-width: 1600px) {
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files > .files-workspace:not(#_):not(#__) { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); }
}
@media (min-width: 2000px) {
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files > .files-workspace:not(#_):not(#__) { grid-template-columns: minmax(0, 1fr) minmax(560px, 640px); }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-rail > .files-tools:not(#_) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-content: start; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-tools > .files-usage:not(#_) { grid-column: 1; grid-row: 1; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-tools > p.files-local-note:not(#_) { grid-column: 1; grid-row: 2; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-tools > form.files-toolbar:not(#_) { grid-column: 2; grid-row: 1; border-top: 0 !important; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-files .files-tools > .files-upload:not(#_) { grid-column: 2; grid-row: 2; }
}
