/* BearDrive viewer — near-black, hairline-crafted, honey accent. Design language: Linear-grade restraint; the one accent (honey) is spent only on active state, the live/brand mark, and the palette selection. */ :root { /* The app is dark-only. Without this, anything the UA paints itself — scrollbars, autofill, select/date popups, and any control that loses its author `color` — resolves in the light scheme. That trapdoor is how BEA-54 turned one dead selector into black-on-black text. */ color-scheme: dark; --bg: #0a0b0d; /* main ground */ --bg-side: #0c0e10; /* sidebar / panels */ --bg-raise: #15171b; /* palette, modals, elevated cards */ --surface: rgba(255,255,255,.03); /* inputs, ghost buttons */ --hover: rgba(255,255,255,.06); /* row / control hover */ --border: rgba(255,255,255,.07); --border-2: rgba(255,255,255,.11); --code-bg: #0d0f12; --text: #eef0f3; --text-dim: #9aa0a9; /* AA on both grounds */ --text-faint: #868b93; /* ≥4.5:1 on near-black */ --text-ghost: #666b74; /* decorative icons only */ --accent: #f5a623; /* honey */ --accent-bright: #ffcf85; /* honey text / primary hover */ --accent-dim: #d3861a; --accent-press: #e0951a; --glow: rgba(245,166,35,.13); --add: #4cc38a; --del: #f26d6d; --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace; --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif; --r-ctl: 7px; --r-card: 10px; --r-over: 14px; /* Page columns. Three widths for every route — see .page below. */ --page-read: 768px; /* rendered files only (markdown prose) — Tailwind md */ --page-app: 768px; /* structured views: guide, listings, history, insights, settings, admin — Tailwind md */ --page-wide: 1200px; /* data-dense: treemap, coverage matrix, big tables */ --hero-top: clamp(32px, 8vh, 88px); /* one vertical start for short centered states */ } /* Jersey 10 — the logo face, and only the logo (a pixel face is a logo, not a UI font). Self-hosted: Vite fingerprints it into static/assets/ alongside the bundle, so the binary stays self-contained and no request leaves the hub. SIL OFL; licence sits beside the file in src/assets/. Deliberately NOT a token: tw.css's @theme is mirrored by the cloud landing's tokens.css and a drift check fails the build if they diverge. */ @font-face { font-family: "Jersey 10"; font-style: normal; font-weight: 400; font-display: swap; src: url("./assets/jersey-10.woff2") format("woff2"); } /* Same optical size for whichever face wins the load race. */ @font-face { font-family: "Logo Fallback"; src: local("Helvetica Neue"), local("Arial"), local("Segoe UI"), local("Roboto"); size-adjust: 73%; } * { box-sizing: border-box; } [hidden] { display: none !important; } html, body { height: 100%; margin: 0; } /* The React shell renders inside #root; make it transparent to layout so body's flex still governs sidebar + main. */ #root { display: contents; } body { display: flex; background: var(--bg); color: var(--text); font: 13px/1.5 var(--ui); letter-spacing: -.006em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; } ::selection { background: var(--glow); color: var(--accent-bright); } :focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 5px; } :focus-visible { outline-color: var(--accent); } .admin input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; } .admin input[aria-invalid="true"]:focus-visible { outline-color: var(--del); } [role="dialog"] input[aria-invalid="true"] { border-color: var(--del); } [role="dialog"] input[aria-invalid="true"]:focus-visible { outline-color: var(--del); } button:disabled, .btn:disabled { cursor: default; } input[type="checkbox"] { accent-color: var(--accent); width: 20px; height: 20px; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; } .sprite { position: absolute; } .ico { width: 16px; height: 16px; flex: none; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; } button, input, a.btn { font-family: inherit; } /* ---- sidebar ---- */ #sidebar { width: 264px; min-width: 210px; background: var(--bg-side); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; } #vault { display: flex; align-items: center; gap: 9px; height: 52px; padding: 0 12px 0 14px; border-bottom: 1px solid var(--border); /* Own stacking context above the sections below, so the search tooltip paints over their borders instead of sliding behind them. */ position: relative; z-index: 45; } /* Brand lockup: the mark in honey, the name in text colour, so the accent lands once. Same mark and same face as the landing page and the docs — the three surfaces are one identity. */ #vault-badge { flex: none; display: grid; place-items: center; color: var(--accent); } #vault-name { font-family: "Jersey 10", "Logo Fallback", var(--ui); /* Jersey 10 is a condensed pixel face with a single weight: 18px here sets to the same optical size as 13px of the UI face, and synthetic bold would fill the gaps between pixels. */ font-size: 18px; font-weight: 400; font-synthesis: none; letter-spacing: .01em; line-height: 1; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vault-actions { display: flex; align-items: center; gap: 4px; } #vault #signout, .icon-btn2 { width: 28px; height: 28px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-ghost); background: transparent; border: none; cursor: pointer; text-decoration: none; } #vault #signout:hover, .icon-btn2:hover { color: var(--text); background: var(--hover); } #vault #signout .ico, .icon-btn2 .ico { width: 16px; height: 16px; } /* projects */ #projects { flex: none; max-height: 32%; overflow-y: auto; padding: 10px 8px 8px; border-bottom: 1px solid var(--border); } .nav-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); } .nav-add { display: grid; place-items: center; width: 18px; height: 18px; border: none; background: transparent; color: var(--text-ghost); cursor: pointer; border-radius: 5px; } .nav-add .ico { width: 14px; height: 14px; } .nav-add:hover { color: var(--text); background: var(--hover); } #projects ul { list-style: none; margin: 0; padding: 0; } #projects .row { display: flex; align-items: center; gap: 9px; height: 31px; padding: 0 8px; border-radius: 7px; color: var(--text-dim); cursor: pointer; position: relative; white-space: nowrap; overflow: hidden; } .proj-mark { width: 17px; height: 17px; border-radius: 5px; flex: none; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #0a0b0d; letter-spacing: -.02em; text-transform: uppercase; } /* The project's lucide glyph sits inside the colored square. */ .proj-mark svg { width: 11px; height: 11px; } /* Menu rows carry their own mark, so they need the same row layout the trigger has. */ .proj-menu [data-slot="select-item"] { display: flex; align-items: center; gap: 8px; } #projects .row .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; } #projects .row:hover { background: var(--hover); color: var(--text); } #projects .row.active { background: var(--glow); color: var(--accent-bright); } #projects .row.active::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--accent); } /* file tree */ #tree { flex: 1; overflow-y: auto; padding: 8px 8px 24px; } .tguide { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); pointer-events: none; } #tree .row { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: 7px; color: var(--text-dim); cursor: pointer; position: relative; white-space: nowrap; overflow: hidden; } #tree .row:hover { background: var(--hover); color: var(--text); } #tree .row.active { background: var(--glow); color: var(--accent-bright); } #tree .row.active::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 2px; border-radius: 2px; background: var(--accent); } #tree .chev { width: 14px; height: 14px; flex: none; color: var(--text-ghost); transition: transform .12s; display: flex; align-items: center; justify-content: center; } #tree .chev .ico { width: 13px; height: 13px; } #tree .ticon { flex: none; display: flex; color: var(--text-ghost); } #tree .ticon .ico { width: 15px; height: 15px; } #tree .row:hover .ticon, #tree .row:hover .chev { color: var(--text-faint); } #tree .row.active .ticon, #tree .row.active .chev { color: var(--accent); } #tree .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; } #tree .file .label { font-size: 12.5px; } #tree .file .chev { visibility: hidden; } #tree .row.collapsed .chev { transform: rotate(-90deg); } /* org bar */ .field-err { color: var(--del); font-size: 12px; margin: 6px 2px 0; } /* Radix/shadcn content utilities set the CSS `translate` property; house overlays center with `transform`. Both compose — neutralize the utility so house positioning owns these surfaces. */ .modal, #palette { translate: none; } /* react-table admin tables ride the .admin-item/.ai-* vocabulary */ .admin-card-table { padding: 0; } .admin-table { width: 100%; border-collapse: collapse; table-layout: fixed; } .admin-table td .ai-main, .admin-table td a.ai-main, .admin-table td .ai-copy, .admin-table td .ai-tag { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* table-layout: fixed takes its tracks from the first row, so the actions column needs a real width — otherwise `width: 100%` on the first cell starves it to nothing and the content of column two spills across it. */ /* table-layout: fixed takes its tracks from the FIRST ROW, which is the header — sizing td alone did nothing. The last column holds the row's controls (a role select plus a destructive button), so it gets a real track and the text column takes the rest. */ .admin-table th:last-child, .admin-table td:last-child { width: 186px; text-align: right; } .admin-table tr:last-child td { border-bottom: none; } .admin-table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-faint); padding: 0; border-bottom: 1px solid var(--border); user-select: none; } .admin-table td { padding: 0; border-bottom: 1px solid var(--border); overflow: hidden; text-overflow: ellipsis; } .admin-table tr.admin-item { display: table-row; } .admin-table tr.admin-item td { padding: 8px 10px; } /* Narrow screens: the table keeps its own horizontal scroll so the page never scrolls sideways under it. */ .admin-card-table { overflow-x: auto; } /* The shares table's actions column holds one button, not a select plus one like the members table. At 186px it stole the room the row's own facts (who, when, whether it expires) needed, and they truncated to "no exp…". */ .shares-table .admin-table th:last-child, .shares-table .admin-table td:last-child { width: 110px; } /* ---- file-page "this file is public" banner ---- */ .share-banner { margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-ctl); background: var(--surface); } .share-banner .sb-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); } .share-banner .sb-head .ico, .share-banner .sb-head svg { width: 15px; height: 15px; flex: none; color: var(--accent); } .share-banner .sb-count { color: var(--text-faint); font-size: 12px; } .share-banner .sb-note { margin: 6px 0 10px; font-size: 12.5px; line-height: 1.55; color: var(--text-faint); max-width: 64ch; } .share-banner .sb-link { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--border); } .share-banner .sb-link + .sb-link { margin-top: 8px; } .share-banner .sb-url { flex: 1 1 260px; min-width: 0; font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .share-banner .sb-meta { font-size: 11.5px; color: var(--text-faint); } .share-banner .sb-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; } /* ---- project menu ---- */ .nav-menu { list-style: none; margin: 6px 0 0; padding: 0; } .nav-menu .row .ico { width: 15px; height: 15px; flex: none; color: var(--text-ghost); } .nav-menu .row.active .ico { color: var(--accent-bright); } /* ---- project switcher ---- */ .proj-row { display: flex; align-items: center; gap: 4px; padding: 0 10px 4px 12px; } #project-select { flex: 1; min-width: 0; height: 30px; padding: 0 9px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: var(--r-ctl); background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap; outline: none; } #project-select > span:last-of-type { overflow: hidden; text-overflow: ellipsis; } #project-select:hover { background: var(--hover); border-color: var(--border-2); } #project-select svg { color: var(--text-ghost); } .proj-menu { z-index: 80; min-width: var(--radix-select-trigger-width, 200px); border: 1px solid var(--border-2); border-radius: 9px; padding: 4px; background: var(--bg-raise); box-shadow: 0 10px 32px rgba(0, 0, 0, .35); } .proj-menu [role="option"] { font-size: 12.5px; color: var(--text-dim); border-radius: 6px; outline: none; } .proj-menu [role="option"][data-highlighted] { background: var(--hover); color: var(--text); } /* ---- account bar ---- */ #accountbar { position: relative; border-top: 1px solid var(--border); padding: 7px 10px; } .gh-star { display: flex; align-items: center; gap: 8px; padding: 4px 8px; margin-bottom: 2px; border-radius: 7px; color: var(--text-faint); font-size: 11px; text-decoration: none; } .gh-star:hover { background: var(--hover); color: var(--text); } .gh-star .gh-mark { width: 12px; height: 12px; flex: none; } .gh-star .ext { margin-left: auto; font-size: 9px; } #account-btn { width: 100%; display: flex; align-items: center; gap: 9px; text-align: left; padding: 6px 8px; border: none; border-radius: 7px; background: transparent; color: var(--text-dim); cursor: pointer; font: inherit; } #account-btn:hover { background: var(--hover); color: var(--text); } #account-btn .avatar { width: 26px; height: 26px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; } #account-btn .acct { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; } #account-btn .acct b { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #account-btn .acct small { font-size: 11px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #account-btn > .ico { width: 14px; height: 14px; color: var(--text-ghost); } #account-menu { min-width: var(--radix-dropdown-menu-trigger-width, 220px); padding: 5px; border: 1px solid var(--border-2); border-radius: 9px; background: var(--bg-raise); box-shadow: 0 10px 32px rgba(0, 0, 0, .35); display: flex; flex-direction: column; z-index: 80; outline: none; } #account-menu [role="menuitem"] { outline: none; } #account-menu [role="menuitem"][data-highlighted] { background: var(--hover); color: var(--text); } #account-menu .menu-sec { padding: 7px 9px 3px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); } #account-menu [role="menuitem"] { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: none; border-radius: 6px; background: transparent; text-align: left; color: var(--text-dim); font: inherit; font-size: 12.5px; cursor: pointer; text-decoration: none; } #account-menu [role="menuitem"]:hover { background: var(--hover); color: var(--text); } #account-menu [role="menuitem"] b { font-weight: 600; } #account-menu [role="menuitem"] .ico { width: 15px; height: 15px; } #account-menu .plan-chip { margin-left: auto; color: var(--accent); border-color: var(--border-2); } #account-menu #signout { color: var(--del); } #account-menu #signout:hover { color: var(--del); background: var(--hover); } /* ---- billing view (managed hubs) ---- */ #billing-view .plan-chip { color: var(--accent); } .plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 700px) { .plan-grid { grid-template-columns: 1fr; } } .usage-bar { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; height: 6px; overflow: hidden; } .usage-bar > div { background: var(--accent); height: 100%; } .plan-price { font-size: 20px; font-weight: 700; margin: 0 0 10px; } .plan-price small { font-size: 12px; color: var(--text-dim); font-weight: 500; } .muted-note { color: var(--text-dim); font-size: 13px; } /* ---- main pane ---- */ #main { flex: 1; display: flex; flex-direction: column; min-width: 0; } #topbar { position: relative; display: flex; align-items: center; gap: 9px; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--border); } .icon-btn { display: none; width: 34px; height: 34px; border: none; background: transparent; color: var(--text-dim); cursor: pointer; border-radius: 7px; align-items: center; justify-content: center; } .icon-btn:hover { color: var(--text); background: var(--hover); } #crumb { font-size: 12.5px; color: var(--text); font-weight: 500; letter-spacing: -.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #crumb .crumb-seg { color: var(--text-dim); cursor: pointer; } #crumb .crumb-seg:hover { color: var(--accent-bright); } #crumb .crumb-sep { color: var(--text-ghost); margin: 0 5px; } #meta { flex: 1; min-width: 0; font-size: 12px; color: var(--text-faint); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .btn { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 30px; padding: 0 11px; border-radius: var(--r-ctl); border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); font-size: 12.5px; font-weight: 500; cursor: pointer; text-decoration: none; } .btn:hover { background: var(--hover); color: var(--text); border-color: var(--border-2); } .btn .ico { width: 15px; height: 15px; } .btn.ghost { color: var(--text-dim); } /* Radix tooltip card (house style) */ .tipcard { display: flex; align-items: center; gap: 7px; white-space: nowrap; padding: 6px 9px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--surface-solid, var(--bg-raise)); color: var(--text); font-size: 12.5px; font-weight: 500; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); z-index: 80; } .tipcard kbd { font: 11px var(--ui); color: var(--text-faint); background: var(--hover); border: 1px solid var(--border-2); border-radius: 5px; padding: 1px 5px; } #more-menu { position: absolute; right: 12px; top: calc(100% - 4px); z-index: 80; background: var(--bg-raise); border: 1px solid var(--border-2); border-radius: var(--r-card); box-shadow: 0 18px 44px -14px rgba(0,0,0,.75); padding: 6px; min-width: 168px; } .more-item { display: block; width: 100%; text-align: left; min-height: 40px; padding: 0 12px; background: transparent; border: none; cursor: pointer; color: var(--text); font: inherit; font-size: 13.5px; border-radius: var(--r-ctl); } .more-item:hover { background: var(--hover); } /* The scroll container owns scrolling and the page gutter — never a width. Width and centering belong to .page (one per view), so every route shares the same column edges and the gutter never eats into the reading measure. */ #content { flex: 1; overflow-y: auto; padding: 44px 40px 110px; scroll-behavior: smooth; } .page { width: 100%; max-width: var(--page-app); margin-inline: auto; min-width: 0; } .page.read { max-width: var(--page-read); } .page.wide { max-width: var(--page-wide); } .empty { color: var(--text-faint); text-align: center; margin-top: var(--hero-top); } .empty-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--text-faint); } /* ---- onboarding ---- */ /* A hero card inside .page.read, not a page column of its own. */ .onboard { max-width: 560px; margin: var(--hero-top) auto 0; } .onboard h1 { font-size: 25px; font-weight: 640; letter-spacing: -.02em; margin: 0 0 8px; color: #f4f6f9; } .onboard > p { color: var(--text-dim); margin: 0 0 28px; font-size: 14px; } .ob-card { background: var(--bg-side); border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px 22px; margin-bottom: 14px; } .ob-card h3 { margin: 0 0 6px; font-size: 14.5px; font-weight: 600; } .ob-card p { margin: 0 0 14px; font-size: 13px; color: var(--text-dim); } /* The create-here card leads; the agent-paste card follows it. Accent edge marks which one is the primary path without a second button competing. */ .ob-card.ob-start { border-color: var(--border-2); box-shadow: inset 2px 0 0 var(--accent); } .ob-card.ob-start .pbtn { margin-top: 2px; } .ob-alt { margin: 12px 0 0; } .ob-alt a { color: var(--text-faint); font-size: 12.5px; font-weight: 600; text-decoration: none; } .ob-alt a:hover { color: var(--text); } /* primary + secondary buttons */ .pbtn { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 32px; padding: 0 14px; border-radius: var(--r-ctl); border: none; background: var(--accent); color: #241704; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; } .pbtn:hover { background: var(--accent-bright); } .pbtn .ico { width: 15px; height: 15px; } .danger-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--r-ctl); border: none; background: #b3382e; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; } .danger-btn:hover { background: #c94336; } /* Tailwind preflight is deliberately off (see tw.css), so copied shadcn components miss two of its defaults: form controls inheriting the page font and color (a bare