/* The workspace uses one visual language across every feature and overlay. */ .workspace-shell, .workspace-overlay { --primary: var(--shell-action); --primary-foreground: #fff; --foreground: var(--shell-ink); --card: var(--shell-surface); --muted: var(--shell-field); --muted-foreground: var(--shell-ink-muted); --border: var(--shell-hairline); --ring: var(--shell-focus); color: var(--shell-ink); font-size: 14px; line-height: 1.6; } .workspace-shell { --nav-rail: 76px; --nav-side: 248px; --nav-motion: 230ms; --nav-ease: cubic-bezier(.22,.68,.28,1); display: flex; width: 100%; height: 100dvh; overflow: hidden; background: var(--shell-sidebar); } /* * Collapsing the sidebar animates the width of the navigation column and * clips it, instead of toggling `display: none` on the sidebar. The sidebar * keeps its own width inside that clip, so its contents never reflow while * the column closes — only the main column relayouts, which it must anyway. */ .workspace-navigation { display: flex; flex-shrink: 0; overflow: hidden; width: calc(var(--nav-rail) + var(--nav-side)); transition: width var(--nav-motion) var(--nav-ease); } .workspace-rail { display: flex; width: var(--nav-rail); flex-shrink: 0; flex-direction: column; align-items: center; gap: 14px; overflow-y: auto; padding: 20px 0; background: var(--shell-rail); } .workspace-sidebar { display: flex; flex-direction: column; width: var(--nav-side); border-right: 1px solid var(--shell-hairline); background: var(--shell-sidebar); transition: opacity calc(var(--nav-motion) * .45) ease calc(var(--nav-motion) * .4), visibility 0s; } .workspace-sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 76px; padding: 14px 20px; border-bottom: 1px solid var(--shell-hairline); } .workspace-sidebar-header > div { min-width: 0; } .workspace-nav-caption { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 8px 20px; color: var(--shell-ink-muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; } .workspace-nav-pinned { flex-shrink: 0; padding: 10px 12px 2px; } .workspace-nav { flex: 1; overflow-y: auto; padding: 0 12px 20px; } .workspace-sidebar-footer { display: flex; min-height: 80px; align-items: center; gap: 10px; margin: 0 12px; padding: 16px 6px; border-top: 1px solid var(--shell-hairline); } .workspace-main { position: relative; display: flex; flex: 1; min-width: 0; min-height: 0; flex-direction: column; background: var(--shell-surface); } .workspace-main:focus { outline: none; } .workspace-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; color: var(--shell-ink-muted); transition: background 160ms, color 160ms; } .workspace-icon-button:hover { background: var(--shell-active); color: var(--shell-ink); } .workspace-collapse { width: 28px; height: 28px; } .workspace-expand { position: absolute; z-index: 15; top: 20px; left: 14px; background: var(--shell-field); opacity: 0; visibility: hidden; transform: translateX(-8px) scale(.94); transition: opacity 120ms ease, transform 180ms ease, background 160ms, color 160ms, visibility 0s linear 120ms; } .navigation-collapsed .workspace-expand { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms ease calc(var(--nav-motion) * .5), transform 300ms var(--nav-ease) calc(var(--nav-motion) * .45), background 160ms, color 160ms, visibility 0s; } .navigation-collapsed .workspace-navigation { width: var(--nav-rail); } .navigation-collapsed .workspace-sidebar { opacity: 0; visibility: hidden; transition: opacity calc(var(--nav-motion) * .45) ease, visibility 0s linear calc(var(--nav-motion) * .45); } /* * The collapsed-nav expand button floats over the top-left of the content * column, so the bar underneath it reserves that gutter. The button is * `main`'s own first child, which rules out a structural `first-child` * match, and the chat header sits four levels deep — so the two bars that * can lead the column are named here. */ .workspace-main :is(.shell-top-bar, .chat-header) { transition: padding-left var(--nav-motion) var(--nav-ease); } .navigation-collapsed .workspace-main :is(.shell-top-bar, .chat-header) { padding-left: 64px; } .workspace-mobile-bar, .workspace-drawer-close, .workspace-scrim { display: none; } .workspace-skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 10px; color: white; background: var(--shell-action); } .workspace-skip:focus { top: 12px; } .shell-top-bar { display: flex; align-items: center; gap: 12px; min-height: 76px; flex-shrink: 0; padding: 14px 24px; border-bottom: 1px solid var(--shell-hairline); } .shell-top-icon { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border: 1px solid var(--shell-hairline); border-radius: 12px; color: var(--shell-ink-muted); background: var(--shell-field); } .shell-top-icon svg { color: inherit; } .shell-top-actions { display: flex; flex-shrink: 0; align-items: center; gap: 10px; color: var(--shell-ink-muted); } .workspace-nav-row { position: relative; min-height: 40px; margin-bottom: 4px; gap: 10px; border-radius: 10px; transition: background 160ms, color 160ms; } .workspace-nav-row[aria-current="page"] { color: var(--shell-ink); background: var(--shell-surface); font-weight: 600; box-shadow: inset 0 0 0 1px var(--shell-hairline); } .workspace-nav-row[aria-current="page"] > span:first-child { color: var(--shell-ink-muted); } .workspace-nav-row[data-kind="folder"] { margin-top: 12px; } .workspace-rail a, .workspace-rail button { border-radius: 16px; transition: background 160ms, color 160ms, border-radius 160ms, box-shadow 160ms; } .workspace-rail a[aria-current="page"] { background: var(--shell-surface); color: var(--shell-ink); box-shadow: inset 0 0 0 1px var(--shell-hairline); } /* Keyboard focus for controls. */ .workspace-shell :is(button, a, summary, [role="button"], [role="option"]):focus-visible, .workspace-overlay :is(button, a, summary, [role="button"], [role="option"]):focus-visible { outline: 2px solid color-mix(in srgb, var(--shell-focus) 70%, transparent); outline-offset: 2px; } /* * Fields: one hairline, real corners, and a soft ring on focus. The 2px * near-black frame these used to get read as an error state rather than a * focused input, and the bare `` inside an icon row has no radius of * its own, so the browser outline drew square corners. */ .workspace-shell :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not(.bg-transparent), .workspace-overlay :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not(.bg-transparent) { border-width: 1px; border-radius: 9px; } .workspace-shell :is(input, select, textarea):not(.bg-transparent):focus, .workspace-overlay :is(input, select, textarea):not(.bg-transparent):focus { border-color: var(--shell-tile); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--shell-focus) 20%, transparent); } .workspace-shell :is(input, select, textarea):not(.bg-transparent):hover:not(:focus), .workspace-overlay :is(input, select, textarea):not(.bg-transparent):hover:not(:focus) { border-color: color-mix(in srgb, var(--shell-tile) 70%, var(--shell-hairline)); } /* A transparent field is bare: its rounded wrapper owns the border and ring. */ .workspace-shell .bg-transparent:focus-visible, .workspace-overlay .bg-transparent:focus-visible { outline: none; } .workspace-shell :is(button, [role="button"]):not(:disabled), .workspace-overlay :is(button, [role="button"]):not(:disabled) { cursor: pointer; touch-action: manipulation; } .workspace-shell :is(button, input, select, textarea), .workspace-overlay :is(button, input, select, textarea) { font-family: inherit; } .workspace-shell .bg-primary.font-mono, .workspace-overlay .bg-primary.font-mono { font-family: var(--font-sans); letter-spacing: normal; } .workspace-shell ::selection, .workspace-overlay ::selection { background: var(--shell-active); color: var(--shell-ink); } .workspace-shell *, .workspace-overlay * { scrollbar-width: thin; scrollbar-color: var(--shell-tile) transparent; } .workspace-overlay { background: rgb(18 20 22 / 46%); backdrop-filter: blur(5px); } .workspace-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; border: 1px solid var(--shell-hairline); border-radius: 20px; padding: 28px; box-shadow: 0 24px 80px rgb(15 17 19 / 20%); } .workspace-dialog h2 { font-size: 20px; line-height: 1.4; } .workspace-dialog :is(input, select, textarea) { border-width: 1px; border-radius: 10px; font-size: 14px; } .workspace-dialog :is(input:not([type="checkbox"]), select) { min-height: 42px; } .workspace-dialog button[aria-label="关闭"] { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--shell-field); } .settings-dialog { display: flex; position: relative; width: min(1060px, 94vw); height: min(820px, 90dvh); overflow: hidden; border: 1px solid var(--shell-hairline); border-radius: 22px; background: var(--shell-surface); box-shadow: 0 24px 80px rgb(15 17 19 / 22%); } .settings-nav { display: flex; width: 220px; flex-shrink: 0; flex-direction: column; gap: 5px; overflow-y: auto; padding: 24px 16px; background: var(--shell-sidebar); border-right: 1px solid var(--shell-hairline); } .settings-nav > p { padding: 0 12px 18px; font-size: 13px; font-weight: 600; color: var(--shell-ink-muted); } .settings-nav > button { min-height: 40px; padding: 8px 12px; border-radius: 10px; font-size: 14px; } .settings-nav > button[aria-current="page"] { background: var(--shell-surface); color: var(--shell-ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--shell-hairline); } .settings-content { flex: 1; min-width: 0; overflow-y: auto; padding: 38px 42px 60px; } .settings-content > section { max-width: 660px; } .settings-content :is(input, select, textarea) { border-width: 1px; border-radius: 10px; min-height: 40px; font-size: 14px; } .settings-content input[type="checkbox"] { min-height: 0; } .settings-close { position: absolute; right: 16px; top: 16px; background: var(--shell-field); } /* * Settings lists (user / space / repo): one card per entry, its inline editor * revealed below. Surfaces stay neutral — selection is shown by weight and a * hairline, never by a tint, so a page of rows does not turn into a colour chart. */ .settings-row { display: flex; min-width: 0; align-items: center; gap: 12px; } /* * A card is filled rather than outlined onto the same colour as the dialog, so * its padding reads as part of the container. Everything inside steps back up * to the dialog surface, and `--muted` is remapped so a secondary button keeps * a hover state darker than the card instead of the same colour as it. */ .settings-card { --card: var(--shell-surface); --muted: var(--shell-active); --input: var(--shell-tile); border: 1px solid var(--shell-hairline); border-radius: 14px; background: var(--shell-field); } .settings-card > .settings-row { padding: 12px 14px; } .settings-card :is(input, select, textarea):not([type="color"]) { background: var(--shell-surface); } .settings-card .settings-chip { background: var(--shell-surface); } .settings-card .settings-segment-group { background: var(--shell-active); } .settings-card .settings-segment[aria-pressed="true"] { background: var(--shell-surface); } .settings-card .settings-facts code { background: var(--shell-surface); } .settings-card.is-danger { border-color: color-mix(in srgb, #f23f43 45%, var(--shell-hairline)); background: color-mix(in srgb, #f23f43 7%, var(--shell-field)); padding: 16px; } .settings-subpanel { padding: 14px 14px 16px; border-top: 1px solid var(--shell-hairline); } .settings-subpanel.is-flat { border-top: 0; } .settings-disclose { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 8px; color: var(--shell-ink-muted); font-size: 12.5px; transition: background 160ms, color 160ms; } .settings-disclose:hover { color: var(--shell-ink); background: color-mix(in srgb, var(--shell-ink) 8%, transparent); } .settings-disclose svg { transition: transform 180ms; } .settings-segment-group { display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--shell-field); } .settings-segment { min-height: 28px; padding: 3px 10px; border-radius: 8px; color: var(--shell-ink-muted); font-size: 12.5px; transition: background 160ms, color 160ms, box-shadow 160ms; } .settings-segment:hover:not(:disabled) { color: var(--shell-ink); } .settings-segment[aria-pressed="true"] { color: var(--shell-ink); font-weight: 600; background: var(--shell-surface); box-shadow: inset 0 0 0 1px var(--shell-hairline); } .settings-segment:disabled { opacity: .55; } .settings-chip { padding: 4px 10px; border: 1px solid var(--shell-hairline); border-radius: 999px; background: var(--shell-field); color: var(--shell-ink-muted); font-size: 12px; transition: border-color 160ms, background 160ms, color 160ms; } .settings-chip:hover { color: var(--shell-ink); } .settings-chip.is-on { color: var(--shell-ink); font-weight: 600; background: var(--shell-surface); border-color: var(--shell-ink-muted); } .settings-facts { display: grid; gap: 9px; margin: 0; } .settings-facts > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; } .settings-facts dt { width: 96px; flex-shrink: 0; color: var(--shell-ink-muted); font-size: 12px; } .settings-facts dd { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; } .settings-facts code { padding: 2px 6px; border-radius: 5px; background: var(--shell-field); font-family: var(--font-mono); font-size: 11.5px; } .settings-danger-btn { background: #f23f43; color: #fff; } .settings-danger-btn:hover { background: color-mix(in srgb, #f23f43 88%, #000); } .board-toolbar { padding: 16px 24px; gap: 12px; border-bottom: 1px solid var(--shell-hairline); } .board-canvas { min-height: 0; padding: 20px 24px; background: var(--shell-field); } .board-track { gap: 18px; } .repo-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 60px; padding: 12px 24px; border-bottom: 1px solid var(--shell-hairline); } .repo-toolbar-refs { display: flex; min-width: 0; flex-wrap: wrap; gap: 8px; } .repo-toolbar-clone { display: flex; min-width: 0; margin-left: auto; align-items: center; gap: 8px; } .repo-toolbar-tabs { display: flex; min-width: 0; align-items: center; padding-left: 12px; border-left: 1px solid var(--shell-hairline); } .repo-content-layout { display: flex; flex: 1; min-height: 0; gap: 24px; padding: 16px 24px 24px; background: var(--shell-field); } .repo-content-layout > aside { width: 260px; } .repo-overview-toggle { display: none; } @media (max-width: 1200px) { .workspace-shell { --nav-rail: 68px; --nav-side: 224px; } .repo-content-layout > aside { display: none; } .repo-toolbar-tabs { padding-left: 0; border-left: 0; } .repo-content-layout.overview-open > aside { display: block; width: 260px; } .repo-overview-toggle { display: flex; } } /* Appearance picker: swatch cards for the base64-persisted palettes. */ .palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; } .palette-card { display: flex; flex-direction: column; gap: 5px; padding: 9px 10px; border: 1px solid var(--shell-hairline); border-radius: 12px; background: var(--shell-surface); text-align: left; transition: border-color 160ms, box-shadow 160ms; } .palette-card:hover { border-color: var(--shell-tile); } .palette-card.is-active { border-color: var(--shell-ink-muted); box-shadow: inset 0 0 0 1px var(--shell-ink-muted); } .palette-swatches { display: flex; height: 22px; gap: 3px; } .palette-swatches > i { flex: 1; border: 1px solid rgb(0 0 0 / 8%); border-radius: 4px; } .palette-swatches > i:first-child { flex: 2.4; } .palette-name { font-size: 13px; font-weight: 600; } .palette-origin { font-size: 11px; color: var(--shell-ink-muted); } .palette-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--shell-ink-muted); } .palette-meta code { max-width: 100%; overflow: hidden; padding: 2px 6px; border-radius: 5px; background: var(--shell-field); font-family: var(--font-mono); font-size: 11px; } .palette-restore { color: var(--shell-ink); text-decoration: underline; text-underline-offset: 2px; } @media (max-width: 760px) { .workspace-shell { flex-direction: column; } .workspace-mobile-bar { display: flex; min-height: 52px; flex-shrink: 0; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--shell-hairline); } .workspace-navigation, .navigation-collapsed .workspace-navigation { position: fixed; inset: 0 auto 0 0; z-index: 45; width: min(338px, calc(100vw - 44px)); visibility: hidden; transform: translateX(-100%); transition: transform var(--nav-motion) var(--nav-ease), visibility 0s linear var(--nav-motion); } .navigation-open .workspace-navigation { visibility: visible; transform: translateX(0); box-shadow: 20px 0 60px rgb(15 17 19 / 18%); transition-delay: 0s, 0s; } .workspace-sidebar, .navigation-collapsed .workspace-sidebar { display: flex; flex: 1; min-width: 0; width: auto; opacity: 1; visibility: visible; } .workspace-sidebar-header { padding: 14px; } .workspace-rail { width: 64px; } .workspace-drawer-close, .workspace-scrim { display: flex; } .workspace-collapse, .workspace-expand { display: none; } .workspace-scrim { position: fixed; inset: 0; z-index: 40; background: rgb(15 17 19 / 42%); backdrop-filter: blur(3px); } .shell-top-bar, .navigation-collapsed .workspace-main :is(.shell-top-bar, .chat-header) { min-height: 68px; padding: 12px 16px; } .shell-top-actions { gap: 6px; } .shell-top-icon { width: 32px; height: 32px; border-radius: 10px; } .workspace-overlay { padding: 12px; } .workspace-dialog { padding: 22px; max-height: calc(100dvh - 24px); } .settings-dialog { width: 100%; height: calc(100dvh - 24px); border-radius: 18px; flex-direction: column; } .settings-nav { width: 100%; flex-direction: row; padding: 56px 14px 12px; border-right: 0; border-bottom: 1px solid var(--shell-hairline); overflow-x: auto; flex-shrink: 0; } .settings-nav > p { position: absolute; top: 20px; left: 16px; padding: 0; } .settings-nav > button { width: auto; flex-shrink: 0; white-space: nowrap; } .settings-content { padding: 24px 20px 40px; } .settings-row { flex-wrap: wrap; align-items: flex-start; } .settings-card > .settings-row { padding: 12px; } .settings-subpanel { padding: 12px; } .settings-facts dt { width: 100%; } .board-toolbar { padding: 12px 16px; } .board-canvas { padding: 16px; } .repo-toolbar { padding: 10px 16px; } .repo-toolbar-clone { max-width: 100%; flex-wrap: wrap; margin-left: 0; } .repo-content-layout { padding: 12px 16px 16px; } .repo-content-layout.overview-open { flex-direction: column; overflow-y: auto; } .repo-content-layout.overview-open > section { flex: none; overflow: visible; } .repo-content-layout.overview-open > aside { width: 100%; overflow: visible; } .workspace-shell input, .workspace-shell textarea, .workspace-overlay input, .workspace-overlay textarea, .workspace-overlay select { font-size: 16px; } } @media (prefers-reduced-motion: reduce) { .workspace-shell *, .workspace-overlay * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; } }