/* Muted teal and purple. Layout and responsive rules live in app.css. */
:root {
  color: #d9dce4;
  background: #17191f;
  --accent: #8dbbb6;
  --accent-hover: #9fcac5;
  --purple: #b0a1c9;
  --muted: #a0a5b4;
  --line: #343844;
  --panel: #1e2129;
  --hover: #282c36;
  --green: var(--accent);
  scrollbar-color: #4a505f #1b1e25;
}
::selection { background: #494057; color: #f0edf5; }
input:focus { outline-color: var(--accent); }
.brand { font-size: 26px; font-weight: 650; letter-spacing: -1px; }
.brand-mark { color: #17292a; border-radius: 6px; }
.brand-dot { color: var(--purple); }
.button, .place, .file-glyph { border-radius: 5px; }
.primary { color: #15292a; }
.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.secondary { background: #262a34; border-color: #434856; }
.secondary:hover { background: #303541; }
.icon-button, .text-button { color: #abb0be; }
.icon-button:hover { background: #303541; color: #e4e6ec; }
.icon-button.active { background: #393242; color: #c3b4d9; }
.sidebar, .browser-panel { background: #1b1e25; }
.place { color: #adb2c0; }
.place:hover { background: #282c36; color: #e4e6ec; }
.place.active { background: #293d3f; color: #a4d0ca; }
.place.active:after { background: var(--accent); }
.avatar { background: #393242; color: #d0c3e1; border-radius: 6px; }
.account-copy small, .breadcrumbs, .file-date, .file-size { color: var(--muted); }
.breadcrumbs button:last-child { color: #d9dce4; }
.breadcrumbs > span { color: #7f8796; }
.topbar { height: 70px; }
.page-heading { padding-top: 28px; padding-bottom: 24px; }
.page-heading h1 { font-size: 26px; font-weight: 550; letter-spacing: -.5px; margin: 8px 0; }
.browser-panel { border-radius: 6px; }
.filter-wrap { background: #232630; border-color: #3d4250; color: #a0a5b4; }
.filter-wrap input { color: #d9dce4; }
.filter-wrap input::placeholder { color: #a0a5b4; }
.filter-wrap kbd { border-color: #484e5d; color: #a0a5b4; }
.view-switch { border-color: #3d4250; }
.list-header { background: #232630; color: #a0a5b4; }
.list-header button { color: #c5c9d4; }
.list-header button span { color: var(--purple); }
.file-row { border-color: #2c303b; }
.file-row:hover { background: #252a34; }
.file-label small { color: var(--muted); }
.file-glyph { background: #2b2c3b; border-color: #454356; color: #bcb1cf; }
.file-glyph.folder { color: var(--accent); }
.file-glyph.folder .icon { fill: #2b4244; stroke: #91bdb8; }
.file-glyph.code { background: #263a3e; border-color: #3e565c; color: #9cc4c1; }
.file-glyph.image { background: #373041; border-color: #50465e; color: #c0b0d1; }
.file-glyph.document { background: #2c3245; border-color: #424a65; color: #b0bad4; }
.grid .file-row { border-color: #343844; border-radius: 5px; }
.browser-footer { background: #20232c; color: #a0a5b4; }
.empty-state { color: #a0a5b4; }
.empty-state > .icon { color: #a79abd; }
.empty-state h2 { color: #d9dce4; }
.drop-overlay { background: #253b3ded; }
.spinner { border-color: #424957; border-top-color: var(--accent); }
.login-card h2 { font-size: 24px; font-weight: 550; letter-spacing: -.4px; }
.login-card > p, dialog p { color: #a0a5b4; }
.login-card label, dialog label { color: #bfc3cf; }
.login-card input, dialog input { background: #232630; border-color: #434856; color: #d9dce4; border-radius: 5px; }
.login-card input::placeholder { color: #9299a7; }
.login-card > button { border-radius: 5px; }
.inline-error { color: #e6aaa9 !important; }
.toast { background: #283c3e; border-color: #536f71; color: #d6e8e5; box-shadow: 0 6px 24px #0004; border-radius: 5px; }
.toast.error { background: #423139; border-color: #805564; color: #efc3cb; }
.editor-panel { border-color: #484253; background: #1b1e25; border-radius: 6px; box-shadow: 0 12px 40px #0006; }
.editor-header, .editor-footer { background: #252530; border-color: #3d3a4b; }
.editor-title { color: #d6d0e0; }
.dirty-marker { color: #d1bda0; }
.save-hint, .editor-footer { color: #a8a2b5; }
.editor-container { color: #becacb; }
dialog { background: #22252e; color: #d9dce4; border-color: #4b445b; border-radius: 6px; box-shadow: 0 12px 40px #0006; }
dialog::backdrop { background: #101117bf; backdrop-filter: none; }
.danger { background: #a75e70 !important; border-color: #a75e70 !important; }
@media (min-width: 1500px) { .page-heading { padding-top: 34px; padding-bottom: 28px; } }
@media (max-width: 800px) { .brand { font-size: 26px; } .page-heading h1 { font-size: 24px; } }
.file-name-cell, .name-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.file-name-cell .file-open { flex: 1; }
.selection-checkbox { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; flex-shrink: 0; cursor: pointer; }
.file-row.selected, .file-row.selected:hover { background: #303342; }
.selection-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 20px; border-top: 1px solid var(--line); background: #292b38; color: #d3cadf; font-size: 12px; }
.selection-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.grid .file-name-cell { position: relative; width: 100%; }
.grid .selection-checkbox { position: absolute; top: 0; left: 0; z-index: 1; }
.grid .file-name-cell .file-open { padding-top: 14px; }
.browser-footer > #item-count { display: inline; }
@media (max-width: 800px) {
  .selection-toolbar { align-items: flex-start; flex-direction: column; padding: 10px 12px; }
  .file-name-cell, .name-heading { gap: 8px; }
  .toolbar-actions { flex-wrap: wrap; }
}
