.csg-files { --fm-bg:#0f1924; --fm-side:#16212e; --fm-head:#1d2937; --fm-line:#304052; --fm-text:#becbd9; --fm-muted:#8298b0; --fm-accent:#efae7d; --fm-danger:#d38f98; color:var(--fm-text); }
:root[data-theme="light"] .csg-files { --fm-bg:#fff; --fm-side:#f0f4f8; --fm-head:#e7edf4; --fm-line:#cbd5e1; --fm-text:#29394b; --fm-muted:#5c7087; --fm-accent:#934510; --fm-danger:#a63848; }
.csg-files .files-toolbar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.csg-account .csg-files .files-search { display:flex; align-items:center; flex:1 1 230px; margin:0; padding:0 14px; gap:10px; border:1px solid var(--fm-line); background:var(--fm-bg); }
.csg-files .files-search>span:first-child { font-size:25px; color:var(--fm-accent); }
.csg-account .csg-files .files-search input { width:100%; min-width:0; height:38px; margin:0; padding:0; border:0; border-radius:0; box-shadow:none; background:none; color:var(--fm-text); font-size:12px; }
.csg-files input::placeholder { color:var(--fm-muted); }
.csg-files .files-layout { display:grid; grid-template-columns:165px minmax(0,1fr); border:1px solid var(--fm-line); border-top:2px solid var(--orange); background:var(--fm-bg); }
.csg-files .files-sidebar { display:flex; flex-direction:column; min-width:0; padding:20px 12px; background:var(--fm-side); border-right:1px solid var(--fm-line); }
.csg-files .files-eyebrow { padding:0 10px; margin-bottom:18px; font-size:9px; letter-spacing:1.8px; color:var(--fm-muted); }
.csg-files .files-sidebar nav { display:grid; gap:2px; }
.csg-files .files-folder { text-align:left; padding:12px 10px; border:1px solid transparent; background:none; color:var(--fm-muted); font-size:12px; overflow-wrap:anywhere; }
.csg-files .files-folder:hover,.csg-files .files-folder.is-current { color:var(--fm-accent); border-color:var(--fm-line); background:var(--fm-head); }
.csg-files .files-brand { margin-top:auto; padding:45px 10px 0; color:var(--fm-muted); }
.csg-files .files-brand strong { display:block; font:700 21px var(--head); opacity:.7; }
.csg-files .files-brand small { display:block; margin-top:10px; font-size:7px; letter-spacing:1.4px; }
.csg-files .files-main { min-width:0; }
.csg-files .files-breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:7px; min-height:48px; padding:12px 16px; border-bottom:1px solid var(--fm-line); background:var(--fm-head); color:var(--fm-muted); }
.csg-files .files-breadcrumb button { padding:2px 0; color:var(--fm-accent); border:0; background:none; font:11px Consolas,monospace; overflow-wrap:anywhere; }
.csg-files .files-table-wrap { overflow:auto; min-height:320px; max-height:620px; }
.csg-account .csg-files .files-table { width:100%; min-width:530px; margin:0; border-collapse:collapse; table-layout:fixed; font-size:11px; }
.csg-account .csg-files .files-table th,.csg-account .csg-files .files-table td { padding:18px 16px; text-align:left; border:0; border-bottom:1px solid var(--fm-line); background:none; color:var(--fm-text); overflow-wrap:anywhere; }
.csg-account .csg-files .files-table thead th { position:sticky; top:0; z-index:1; padding:14px 16px; background:var(--fm-side); color:var(--fm-muted); font-size:9px; letter-spacing:1px; }
.csg-account .csg-files .files-table thead th:first-child { width:39%; }
.csg-account .csg-files .files-table thead th:nth-child(2) { width:20%; }
.csg-account .csg-files .files-table thead th:nth-child(3) { width:17%; }
.csg-account .csg-files .files-table thead th:last-child { width:24%; }
.csg-account .csg-files .files-table tbody th { font-weight:600; }
.csg-account .csg-files .files-table tbody td { color:var(--fm-muted); }
.csg-files .files-folder-icon,.csg-files .files-file-icon { display:inline-block; width:24px; color:var(--fm-accent); font-size:17px; vertical-align:middle; }
.csg-files .files-file-icon { color:var(--fm-muted); }
.csg-files .files-entry { cursor:pointer; }
.csg-account .csg-files .files-entry>th,.csg-account .csg-files .files-entry>td { transition:background-color .15s ease; }
.csg-account .csg-files .files-entry:hover>th,.csg-account .csg-files .files-entry:hover>td,
.csg-account .csg-files .files-entry:focus-visible>th,.csg-account .csg-files .files-entry:focus-visible>td { background:var(--fm-head); }
.csg-account .csg-files .files-entry:hover>th { color:var(--fm-accent); }
@media(prefers-reduced-motion:reduce) { .csg-account .csg-files .files-entry>th,.csg-account .csg-files .files-entry>td { transition:none; } }
.csg-files .files-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; font-size:10px; color:var(--fm-muted); }
.csg-files .files-help { color:var(--fm-muted); font-size:11px; line-height:1.8; }
.csg-files :is(button,input,textarea,[tabindex]):focus-visible { outline:2px solid var(--orange); outline-offset:3px; }
.csg-files [hidden] { display:none !important; }
.csg-files .files-queue { border:1px solid var(--fm-line); background:var(--fm-side); margin-bottom:18px; padding:14px; }
.csg-files .files-queue header { display:flex; justify-content:space-between; gap:16px; align-items:center; font-size:12px; }
.csg-files .files-queue ul { list-style:none; padding:0; margin:12px 0 0; max-height:200px; overflow:auto; }
.csg-files .files-queue li { display:flex; justify-content:space-between; gap:16px; padding:8px 0; border-top:1px solid var(--fm-line); font-size:11px; overflow-wrap:anywhere; }
.csg-files .files-queue li>span { color:var(--fm-muted); text-align:right; }
@media(max-width:650px) { .csg-files .files-layout { grid-template-columns:minmax(0,1fr); } .csg-files .files-sidebar { border-right:0; border-bottom:1px solid var(--fm-line); padding:12px; } .csg-files .files-sidebar nav { display:flex; overflow:auto; } .csg-files .files-folder { white-space:nowrap; } .csg-files .files-brand,.csg-files .files-eyebrow { display:none; } .csg-files .files-search { flex-basis:100%; } }
