/* Design tokens, dark base theme, typography */ :root { /* Background palette */ --bg: #0D1117; /* --color-bg-base */ --bg-secondary: #10131C; /* --color-bg-elevated */ --bg-tile: #10131C; /* --color-bg-elevated */ --bg-header: #0D1117; /* --color-bg-base (header matches page) */ --bg-overlay: rgba(13, 17, 23, 0.85); /* brand base with opacity */ --bg-tile-hover: #1A1F2B; /* --color-bg-surface */ --bg-surface: #1A1F2B; /* Text palette */ --text: #F0F6FF; /* --color-text-primary */ --text-dim: #4A5060; /* --color-text-disabled */ --text-muted: #8E95A3; /* --color-text-secondary */ /* Borders */ --border: #2A3040; /* --color-border-default */ --border-subtle: #1E2430; /* --color-border-subtle */ /* Accent */ --accent: #00D9F5; /* brand cyan */ --accent-hover: #00b8d1; /* slightly darker cyan for hover */ --accent-dim: rgba(0, 217, 245, 0.15); /* Bell / notification */ --bell: #F1A640; --bell-color: #F1A640; /* brand amber */ --activity-color: #F1A640; --bell-glow: rgba(241, 166, 64, 0.25); --bell-border: rgba(241, 166, 64, 0.6); /* Status */ --ok: #3fb950; --warn: #d29922; --err: #f85149; /* Layout */ --tile-height: 300px; --tile-min-width: 360px; --grid-gap: 8px; --grid-padding: 16px; --header-height: 44px; /* Transitions */ --t-zoom: 250ms ease-in-out; --t-fast: 150ms ease; --t-fade: 200ms ease; /* Typography */ --font-ui: system-ui, -apple-system, 'Segoe UI', sans-serif; --font-mono: 'SF Mono', 'Fira Code', 'Consolas', 'Menlo', monospace; } /* Box-sizing reset */ *, *::before, *::after { box-sizing: border-box; } /* Base */ html, body { height: 100%; background: var(--bg); color: var(--text); font-family: var(--font-ui); font-size: 14px; overflow: hidden; margin: 0; padding: 0; } /* Utility */ .hidden { display: none !important; } /* ============================================================ App layout ============================================================ */ .view { height: 100vh; overflow: hidden; } .view--active { display: flex; flex-direction: column; } .view.hidden { display: none; } /* ============================================================ App header ============================================================ */ .app-header { height: var(--header-height); padding: 0 var(--grid-padding); background: var(--bg-header); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; } /* ============================================================ Session grid ============================================================ */ .session-grid { flex: 1; overflow-y: auto; padding: var(--grid-padding); display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tile-min-width), 1fr)); gap: var(--grid-gap); align-content: start; } /* ============================================================ Session tile ============================================================ */ .session-tile { height: var(--tile-height); background: var(--bg-tile); border: 1px solid var(--border); border-radius: 4px; display: flex; flex-direction: column; cursor: pointer; overflow: hidden; position: relative; transition: border-color var(--t-fast), box-shadow var(--t-fast); } .session-tile:hover, .session-tile:focus-visible { border-color: var(--accent); } /* Bell / notification tile */ .session-tile--bell { border-color: var(--bell-border); box-shadow: 0 0 0 1px var(--bell-border), inset 0 0 12px var(--bell-glow); } /* ============================================================ Tile header ============================================================ */ .tile-header { height: 32px; padding: 0 10px; background: var(--bg-header); border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; } .tile-name { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; } .tile-meta { font-size: 11px; color: var(--text-muted); white-space: nowrap; margin-left: 8px; } /* Bell notification badge */ .tile-bell { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; background: var(--bell); color: #0D1117; font-size: 9px; font-weight: 700; line-height: 1; flex-shrink: 0; margin-right: 6px; animation: bell-pulse 1.4s ease-in-out infinite; } @keyframes bell-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } } /* ============================================================ Tile body ============================================================ */ .tile-body { flex: 1; overflow: hidden; position: relative; } .tile-body pre { position: absolute; bottom: 0; left: 0; right: 0; } .tile-pre { position: absolute; inset: 0; padding: 6px 8px; font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); white-space: pre; overflow: hidden; margin: 0; } /* Fade gradient at bottom of tile body */ .tile-body::before { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 40px; background: linear-gradient(to bottom, transparent, var(--bg-tile)); pointer-events: none; z-index: 1; } /* ============================================================ Empty state ============================================================ */ .empty-state { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--text-dim); } /* ============================================================ Responsive breakpoints ============================================================ */ @media (max-width:1199px) and (min-width:900px) { :root { --tile-min-width:420px; } } @media (max-width:899px) and (min-width:600px) { .session-grid { grid-template-columns:1fr; padding:8px; } .session-tile { height:200px; } } @media (max-width:599px) { .session-grid { display:flex; flex-direction:column; gap:1px; padding:0; } .session-tile { height:auto; border-radius:0; border-left:none; border-right:none; } } @media (max-width:599px) and (orientation:landscape) { .session-grid { padding:0; } } /* ============================================================ Expanded view ============================================================ */ #view-expanded { position: relative; } .expanded-header { height: var(--header-height); padding: 0 12px; background: var(--bg-header); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; flex-shrink: 0; } .back-btn { background: none; border: 1px solid var(--border); border-radius: 4px; color: var(--text-muted); font-size: 18px; width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center; } .back-btn:hover { border-color: var(--accent); color: var(--text); } .expanded-session-name { flex: 1; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .palette-trigger { background: none; border: 1px solid var(--border); border-radius: 4px; color: var(--text-dim); font-size: 12px; padding: 4px 10px; cursor: pointer; } .view-body { display: flex; flex-direction: row; flex: 1; min-height: 0; overflow: hidden; } /* ============================================================ Session sidebar ============================================================ */ .session-sidebar { width: 200px; min-width: 200px; background: var(--bg-secondary); border-right: 1px solid var(--border-subtle); display: flex; flex-direction: column; overflow: hidden; flex-shrink: 0; transition: width 0.25s ease, min-width 0.25s ease; } .session-sidebar.sidebar--collapsed { width: 0; min-width: 0; } .sidebar-header { display: flex; flex-direction: row; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border-subtle); flex-shrink: 0; } .sidebar-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); } .sidebar-list { flex: 1; overflow-y: auto; overflow-x: hidden; } .sidebar-collapse-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 18px; padding: 2px 6px; border-radius: 4px; } .sidebar-collapse-btn:hover { color: var(--text); } .sidebar-toggle-btn { background: none; border: 1px solid var(--border); border-radius: 4px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; margin-right: 8px; cursor: pointer; color: var(--text-muted); } .sidebar-toggle-btn:hover { border-color: var(--accent); } /* ============================================================ Sidebar session card styles ============================================================ */ .sidebar-item { height: 120px; background: var(--bg-secondary); border-bottom: 1px solid var(--border-subtle); cursor: pointer; overflow: hidden; display: flex; flex-direction: column; position: relative; } .sidebar-item:hover { background: var(--bg-surface); } .sidebar-item--active { background: var(--bg-surface); border-left: 3px solid var(--accent); } .sidebar-item-header { display: flex; flex-direction: row; justify-content: space-between; padding: 8px 8px 4px; height: 32px; gap: 4px; align-items: center; flex-shrink: 0; } .sidebar-item-name { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; } .sidebar-item-body { flex: 1; position: relative; overflow: hidden; } .sidebar-item-body pre { position: absolute; bottom: 0; left: 0; right: 0; font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 10px; line-height: 1.4; color: var(--text-muted); white-space: pre; padding: 0 8px 6px; margin: 0; } .sidebar-empty { padding: 16px 12px; color: var(--text-muted); font-size: 12px; text-align: center; } .terminal-container { flex: 1; min-width: 0; overflow: hidden; background: #000; padding: 0 4px; /* keep text off the side edges */ } /* xterm.js injects overflow-y: scroll on .xterm-viewport — override it */ .xterm .xterm-viewport { overflow-y: hidden !important; } .reconnect-overlay { position: absolute; inset: var(--header-height) 0 0; background: var(--bg-overlay); display: flex; align-items: center; justify-content: center; z-index: 10; } /* ============================================================ Zoom-in-place expand/collapse transition ============================================================ */ .session-tile--expanding { position: fixed; z-index: 50; border-radius: 4px; transition: top var(--t-zoom), left var(--t-zoom), width var(--t-zoom), height var(--t-zoom), border-radius var(--t-zoom); } .session-tile--expanded { top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; border-radius: 0; } .session-grid--dimming .session-tile:not(.session-tile--expanding) { opacity: 0; transition: opacity var(--t-fade); } /* ============================================================ Bell count badge ============================================================ */ .tile-bell-count { font-size: 10px; font-weight: 600; color: var(--bell); min-width: 16px; text-align: right; } /* ============================================================ Connection status indicator states ============================================================ */ .connection-status--ok { color: var(--ok); } .connection-status--warn { color: var(--warn); } .connection-status--err { color: var(--err); } /* ============================================================ Toast notification ============================================================ */ .toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: var(--bg-header); border: 1px solid var(--border); border-radius: 4px; padding: 8px 16px; font-size: 13px; color: var(--text-muted); z-index: 100; pointer-events: none; animation: toast-in var(--t-fast) ease; } @keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } } /* ============================================================ Mobile three-tier priority list (bell / active / idle) ============================================================ */ @media (max-width:599px) { /* Tier 1 — bell: expanded preview (~126px total) */ .session-tile--tier-bell .tile-body { height: 90px; } .session-tile--tier-bell { min-height: 126px; } /* Tier 2 — active: single-line preview (~60px total) */ .session-tile--tier-active .tile-body { height: 24px; } .session-tile--tier-active { min-height: 60px; } .session-tile--tier-active .tile-pre { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Tier 3 — idle: name-only (~44px total) */ .session-tile--tier-idle .tile-body { display: none; } .session-tile--tier-idle { min-height: 44px; } .session-tile--tier-idle .tile-header { height: 44px; } .session-tile--tier-idle .tile-name { color: var(--text-dim); } } /* ============================================================ Command palette overlay (desktop session switching) ============================================================ */ .command-palette { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding-top: 15vh; } .command-palette__backdrop { position: absolute; inset: 0; background: var(--bg-overlay); backdrop-filter: blur(2px); } .command-palette__dialog { position: relative; width: min(440px, 90vw); background: var(--bg-header); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); } .command-palette__input { width: 100%; padding: 14px 16px; background: transparent; border: none; border-bottom: 1px solid var(--border); color: var(--text); font-size: 14px; font-family: var(--font-ui); outline: none; } .command-palette__input::placeholder { color: var(--text-dim); } .command-palette__list { list-style: none; max-height: 320px; overflow-y: auto; } .palette-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; cursor: pointer; font-size: 13px; color: var(--text-muted); transition: background var(--t-fast); } .palette-item:hover, .palette-item--selected { background: var(--accent-dim); color: var(--text); } .palette-item__index { font-size: 11px; color: var(--text-dim); width: 16px; } .palette-item__name { flex: 1; } .palette-item__bell { color: var(--bell); font-size: 11px; } .palette-item__time { font-size: 11px; color: var(--text-dim); } /* ─── Mobile Bottom Sheet ─────────────────────────────────────── */ .bottom-sheet { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; } .bottom-sheet__backdrop { position: absolute; inset: 0; background: var(--bg-overlay); } .bottom-sheet__panel { position: relative; width: 100%; background: var(--bg-header); border-top: 1px solid var(--border); border-radius: 12px 12px 0 0; max-height: 70vh; overflow-y: auto; animation: sheet-up var(--t-zoom) ease; } @keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } } .bottom-sheet__handle { width: 36px; height: 4px; background: var(--border); border-radius: 2px; margin: 10px auto 6px; } .bottom-sheet__list { list-style: none; padding-bottom: 8px; } .sheet-item { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 56px; cursor: pointer; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--border-subtle); transition: background var(--t-fast); } .sheet-item:hover { background: var(--accent-dim); } .sheet-item__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sheet-item__bell { color: var(--bell); } .sheet-item__time { font-size: 12px; color: var(--text-dim); } /* ─── Floating Session Pill ───────────────────────────────────── */ .session-pill { position: fixed; bottom: 24px; right: 16px; z-index: 50; background: var(--bg-header); border: 1px solid var(--border); border-radius: 20px; padding: 8px 14px; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); opacity: 0.75; } .session-pill:hover { opacity: 1; border-color: var(--accent); color: var(--text); } .session-pill__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; } .session-pill__bell { color: var(--bell); } /* ─── Reduced Motion ──────────────────────────────────────────── */ @media (prefers-reduced-motion: reduce) { .tile-bell { animation: none; } .session-tile--expanding { transition: none; } .session-grid--dimming .session-tile:not(.session-tile--expanding) { transition: none; } .bottom-sheet__panel { animation: none; } .toast { animation: none; } .session-sidebar { transition: none; } } /* ============================================================ App wordmark ============================================================ */ .app-wordmark { margin: 0; line-height: 1; display: flex; align-items: center; } .app-wordmark img { height: 24px; width: auto; display: block; } /* ============================================================ Responsive overlay sidebar at <960px ============================================================ */ @media (max-width: 959px) { .session-sidebar { position: fixed; left: 0; top: 0; height: 100%; z-index: 200; width: 240px; min-width: 240px; transition: transform 0.25s ease; transform: translateX(0); box-shadow: 2px 0 16px rgba(0,0,0,0.5); } .session-sidebar.sidebar--collapsed { width: 240px; min-width: 240px; transform: translateX(-100%); } .sidebar-collapse-btn { display: none; } }