hbauzan's picture
Release v4.17.7 — sync from GitHub main
819a47f
Raw
History Blame Contribute Delete
21.2 kB
@import "./generated/tokens.css";
@import "./themes/anti-ai-themes.css";
/* Theme Contract (Alternative opt-in themes — light / alt accents) */
body[data-theme="light"] {
color-scheme: light;
--color-brand-background: var(--color-primitive-neutral-100);
--color-brand-surface: oklch(from var(--color-primitive-neutral-50) l c h / 0.85);
--color-brand-primary: oklch(0.52 0.22 260);
--color-brand-secondary: oklch(0.60 0.20 330);
--color-brand-primary-dark: color-mix(in oklch, var(--color-brand-primary), oklch(0 0 0) 15%);
--color-brand-secondary-dark: color-mix(in oklch, var(--color-brand-secondary), oklch(0 0 0) 15%);
--color-neutral-100: var(--color-primitive-neutral-900);
--color-neutral-200: var(--color-primitive-neutral-800);
--color-text-muted: var(--color-neutral-600);
}
body[data-theme="alt"] {
color-scheme: dark;
--color-brand-primary: oklch(0.65 0.20 175);
--color-brand-secondary: oklch(0.70 0.22 140);
--color-brand-primary-dark: color-mix(in oklch, var(--color-brand-primary), oklch(0 0 0) 15%);
--color-brand-secondary-dark: color-mix(in oklch, var(--color-brand-secondary), oklch(0 0 0) 15%);
}
/* Base Styles */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
font-family: var(--font-sans);
font-size: var(--font-size-body);
background-color: var(--color-brand-background);
color: var(--color-neutral-100);
overflow: hidden;
width: 100vw;
height: 100vh;
user-select: none;
}
#app {
width: 100%;
height: 100%;
position: relative;
}
canvas {
display: block;
}
/* Glassmorphism Panel Component */
.app-panel {
background: var(--color-brand-surface);
backdrop-filter: blur(calc(16px * (1 - var(--theme-flat-panels))));
-webkit-backdrop-filter: blur(calc(16px * (1 - var(--theme-flat-panels))));
border: var(--theme-border-width) solid var(--color-brand-border);
box-shadow: var(--shadow-glass);
border-radius: var(--radius-lg);
color: var(--color-neutral-200);
text-transform: var(--theme-text-transform);
transition: border-color var(--motion-fast) var(--motion-easing-standard),
box-shadow var(--motion-fast) var(--motion-easing-standard);
}
.app-panel:hover {
border-color: var(--color-brand-border-glow);
box-shadow: 0 8px 32px 0 oklch(from var(--color-brand-primary) l c h / 0.15);
}
/* Sidebar Specific Layout */
.app-sidebar {
position: fixed;
top: 20px;
left: 20px;
bottom: 20px;
width: 320px;
display: flex;
flex-direction: column;
padding: var(--spacing-lg);
z-index: 1000;
overflow-y: auto;
gap: var(--spacing-lg);
}
/* Custom Scrollbars */
.app-sidebar::-webkit-scrollbar,
.custom-scrollbar::-webkit-scrollbar {
width: 6px;
height: 6px;
}
.app-sidebar::-webkit-scrollbar-track,
.custom-scrollbar::-webkit-scrollbar-track {
background: transparent;
}
.app-sidebar::-webkit-scrollbar-thumb,
.custom-scrollbar::-webkit-scrollbar-thumb {
background: oklch(from var(--color-neutral-50) l c h / 0.1);
border-radius: var(--radius-full);
}
.app-sidebar::-webkit-scrollbar-thumb:hover,
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
background: oklch(from var(--color-neutral-50) l c h / 0.25);
}
/* HUD / Coordinates Panel */
#hud {
position: fixed;
top: 20px;
right: 20px;
padding: var(--spacing-md) var(--spacing-lg);
display: flex;
flex-direction: column;
gap: var(--spacing-xs);
z-index: 999;
font-family: var(--font-mono);
font-size: var(--font-size-small);
min-width: 220px;
pointer-events: none;
}
#coords, #intensity {
padding: var(--spacing-xs) 0;
display: flex;
justify-content: space-between;
border-bottom: 1px solid oklch(from var(--color-neutral-50) l c h / 0.05);
}
#intensity {
border-bottom: none;
}
/* Section Containers */
.section-card {
border-bottom: 1px solid oklch(from var(--color-neutral-50) l c h / 0.05);
padding-bottom: var(--spacing-md);
}
.section-card:last-of-type {
border-bottom: none;
padding-bottom: 0;
}
.section-title {
font-size: var(--font-size-small);
font-weight: 700;
color: var(--color-neutral-400);
letter-spacing: 0.05em;
text-transform: uppercase;
margin-bottom: var(--spacing-sm);
}
/* Forms & Inputs */
.input-group {
display: flex;
gap: var(--spacing-xs);
margin-bottom: var(--spacing-sm);
}
.input-field {
flex: 1;
background: oklch(from var(--color-neutral-50) l c h / 0.04);
border: var(--theme-border-width) solid oklch(from var(--color-neutral-50) l c h / 0.08);
border-radius: var(--radius-md);
color: var(--color-neutral-50);
padding: var(--spacing-sm) var(--spacing-md);
font-family: var(--font-sans);
font-size: var(--font-size-body);
text-transform: var(--theme-text-transform);
transition: all var(--motion-fast) var(--motion-easing-standard);
outline: none;
}
.input-field:focus {
background: oklch(from var(--color-neutral-50) l c h / 0.08);
border-color: var(--color-brand-primary);
box-shadow: 0 0 0 2px oklch(from var(--color-brand-primary) l c h / 0.2);
}
.input-field::placeholder {
color: var(--color-neutral-600);
}
/* Primary/Secondary Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
font-family: var(--font-sans);
font-size: var(--font-size-body);
font-weight: 600;
border-radius: var(--radius-md);
border: none;
cursor: pointer;
padding: var(--spacing-sm) var(--spacing-lg);
min-height: 36px;
text-transform: var(--theme-text-transform);
transition: all var(--motion-fast) var(--motion-easing-spring);
text-align: center;
outline: none;
}
.btn:active {
transform: scale(0.97);
}
.btn:focus-visible {
outline: 2px solid var(--color-brand-primary);
outline-offset: 2px;
}
.btn-primary {
background: linear-gradient(135deg, var(--color-brand-primary) 0%, var(--color-brand-primary-dark) 100%);
color: white;
box-shadow: 0 2px 8px oklch(from var(--color-brand-primary) l c h / 0.3);
}
.btn-primary:hover {
box-shadow: 0 4px 12px oklch(from var(--color-brand-primary) l c h / 0.45);
transform: translateY(-1px);
}
.btn-secondary {
background: oklch(from var(--color-neutral-50) l c h / 0.08);
color: var(--color-neutral-200);
border: var(--theme-border-width) solid oklch(from var(--color-neutral-50) l c h / 0.1);
}
.btn-secondary:hover {
background: oklch(from var(--color-neutral-50) l c h / 0.12);
color: white;
border-color: oklch(from var(--color-neutral-50) l c h / 0.2);
transform: translateY(-1px);
}
.btn-danger {
background: oklch(from var(--color-semantic-error) l c h / 0.15);
color: var(--color-semantic-error);
border: 1px solid oklch(from var(--color-semantic-error) l c h / 0.2);
}
.btn-danger:hover {
background: oklch(from var(--color-semantic-error) l c h / 0.25);
border-color: var(--color-semantic-error);
transform: translateY(-1px);
}
.btn-accent {
background: linear-gradient(135deg, var(--color-brand-secondary) 0%, var(--color-brand-secondary-dark) 100%);
color: white;
box-shadow: 0 2px 8px oklch(from var(--color-brand-secondary) l c h / 0.3);
}
.btn-accent:hover {
box-shadow: 0 4px 12px oklch(from var(--color-brand-secondary) l c h / 0.45);
transform: translateY(-1px);
}
.btn-square {
padding: 0;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
/* Range Input / Sliders styling */
input[type="range"] {
-webkit-appearance: none;
width: 100%;
background: transparent;
outline: none;
cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
width: 100%;
height: 4px;
background: oklch(from var(--color-neutral-50) l c h / 0.15);
border-radius: var(--radius-full);
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
height: 12px;
width: 12px;
border-radius: var(--radius-full);
background: white;
margin-top: -4px;
box-shadow: var(--shadow-sm);
transition: transform var(--motion-fast) var(--motion-easing-spring);
}
input[type="range"]:hover::-webkit-slider-thumb {
transform: scale(1.2);
}
/* Custom Toggle Switch styling */
.switch {
position: relative;
display: inline-block;
width: 34px;
height: 18px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0; left: 0; right: 0; bottom: 0;
background-color: oklch(from var(--color-neutral-50) l c h / 0.15);
transition: background-color var(--motion-fast) var(--motion-easing-standard);
border-radius: var(--radius-full);
}
.slider:before {
position: absolute;
content: "";
height: 14px;
width: 14px;
left: 2px;
bottom: 2px;
background-color: white;
transition: transform var(--motion-fast) var(--motion-easing-spring);
border-radius: var(--radius-full);
box-shadow: var(--shadow-sm);
}
input:checked + .slider {
background-color: var(--color-brand-primary);
}
input:focus-visible + .slider {
outline: 2px solid var(--color-brand-primary);
outline-offset: 2px;
}
input:checked + .slider:before {
transform: translateX(16px);
}
/* List Component Styles */
.list-container {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: var(--spacing-xs);
}
.list-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--spacing-sm);
background: oklch(from var(--color-neutral-50) l c h / 0.02);
border: 1px solid oklch(from var(--color-neutral-50) l c h / 0.04);
border-radius: var(--radius-md);
transition: all var(--motion-fast) var(--motion-easing-standard);
}
.list-item:hover {
background: oklch(from var(--color-neutral-50) l c h / 0.05);
border-color: oklch(from var(--color-neutral-50) l c h / 0.08);
}
/* Specific UI elements styling */
.status-indicator {
display: inline-flex;
align-items: center;
gap: var(--spacing-xs);
font-size: var(--font-size-caption);
font-weight: 700;
text-transform: uppercase;
}
.status-dot {
width: 6px;
height: 6px;
background-color: var(--color-semantic-success);
border-radius: var(--radius-full);
box-shadow: 0 0 8px var(--color-semantic-success);
animation: pulse-glow 2s infinite ease-in-out;
}
@keyframes pulse-glow {
0%, 100% { opacity: 0.6; box-shadow: 0 0 4px var(--color-semantic-success); }
50% { opacity: 1; box-shadow: 0 0 10px var(--color-semantic-success); }
}
/* Crosshair Cross */
#hud-crosshair {
position: fixed;
top: 50%;
left: 50%;
width: 24px;
height: 24px;
border: 2px solid var(--color-brand-primary);
border-radius: var(--radius-full);
transform: translate(-50%, -50%);
pointer-events: none;
z-index: 2000;
opacity: 0.7;
transition: border-color var(--motion-fast) var(--motion-easing-standard),
transform var(--motion-fast) var(--motion-easing-spring);
}
#hud-crosshair > div {
position: absolute;
top: 50%;
left: 50%;
width: 4px;
height: 4px;
background-color: var(--color-brand-primary);
border-radius: var(--radius-full);
transform: translate(-50%, -50%);
transition: background-color var(--motion-fast) var(--motion-easing-standard);
}
/* Modals & Dialogs System */
.modal-overlay {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: oklch(from var(--color-neutral-950) l c h / 0.7);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
display: flex;
align-items: center;
justify-content: center;
z-index: 3000;
opacity: 0;
pointer-events: none;
transition: opacity var(--motion-normal) var(--motion-easing-standard);
}
.modal-overlay.active {
opacity: 1;
pointer-events: auto;
}
.modal-content {
width: 100%;
max-width: 400px;
transform: scale(0.92);
transition: transform var(--motion-normal) var(--motion-easing-spring);
padding: var(--spacing-xl);
display: flex;
flex-direction: column;
gap: var(--spacing-md);
}
.modal-overlay.active .modal-content {
transform: scale(1);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid oklch(from var(--color-neutral-50) l c h / 0.05);
padding-bottom: var(--spacing-sm);
}
.modal-title {
font-size: var(--font-size-h2);
font-weight: 700;
color: white;
}
.modal-body {
font-size: var(--font-size-body);
line-height: 1.6;
color: var(--color-neutral-200);
}
.modal-actions {
display: flex;
justify-content: flex-end;
gap: var(--spacing-sm);
margin-top: var(--spacing-sm);
}
/* =========================================================
PDF Ingestion Progress Bar — 3D Blanket Relief
========================================================= */
/* Container wrapping the full progress UI */
.pdf-ingest-progress {
display: none;
flex-direction: column;
gap: var(--spacing-xs);
margin-top: var(--spacing-sm);
padding: var(--spacing-sm) var(--spacing-md);
background: oklch(from var(--color-brand-primary) l c h / 0.06);
border: 1px solid oklch(from var(--color-brand-primary) l c h / 0.2);
border-radius: var(--radius-md);
animation: ingest-fadein 0.25s ease;
}
.pdf-ingest-progress.active {
display: flex;
}
@keyframes ingest-fadein {
from { opacity: 0; transform: translateY(4px); }
to { opacity: 1; transform: translateY(0); }
}
/* Phase label row */
.ingest-phase-row {
display: flex;
align-items: center;
gap: 6px;
}
.ingest-spinner {
width: 12px;
height: 12px;
border: 2px solid oklch(from var(--color-brand-primary) l c h / 0.3);
border-top-color: var(--color-brand-primary);
border-radius: 50%;
animation: spin 0.7s linear infinite;
flex-shrink: 0;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.ingest-phase-label {
font-size: var(--font-size-small);
font-family: var(--font-mono);
color: var(--color-neutral-200);
flex: 1;
line-height: 1.3;
}
/* Progress track */
.ingest-track {
width: 100%;
height: 6px;
background: oklch(from var(--color-neutral-50) l c h / 0.08);
border-radius: var(--radius-full);
overflow: hidden;
position: relative;
}
/* Animated fill bar */
.ingest-fill {
height: 100%;
border-radius: var(--radius-full);
background: linear-gradient(
90deg,
var(--color-brand-primary),
var(--color-brand-secondary),
var(--color-brand-primary)
);
background-size: 200% 100%;
animation: shimmer 1.8s linear infinite;
transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
width: 0%;
}
@keyframes shimmer {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
/* Percentage readout */
.ingest-pct {
font-size: var(--font-size-caption);
font-family: var(--font-mono);
color: var(--color-brand-primary);
text-align: right;
letter-spacing: 0.04em;
}
/* Result status line (shown after completion) */
.ingest-result {
font-size: var(--font-size-small);
font-family: var(--font-mono);
min-height: 14px;
}
/* Shield overlay — disables controls during ingestion */
.ingest-shield {
position: absolute;
inset: 0;
background: oklch(from var(--color-neutral-950) l c h / 0.55);
border-radius: var(--radius-md);
z-index: 10;
cursor: not-allowed;
display: none;
}
.ingest-shield.active {
display: block;
}
/* Fullscreen Inspector Overlay (Mode C) */
/* Workstation Inspector Panel (Mode C) */
.fullscreen-inspector {
position: fixed;
top: 20px;
left: 360px;
right: 20px;
bottom: 20px;
width: auto;
height: auto;
z-index: 1500;
background: oklch(from var(--color-neutral-950) l c h / 0.88);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid oklch(from var(--color-neutral-50) l c h / 0.12);
border-radius: var(--radius-xl, 16px);
box-shadow: 0 16px 48px oklch(0 0 0 / 0.5), var(--shadow-glass);
display: none;
flex-direction: column;
padding: 20px 24px;
gap: 16px;
font-family: var(--font-mono);
opacity: 0;
transition: opacity 0.3s ease-out, transform 0.3s ease-out;
transform: translateY(8px) scale(0.99);
pointer-events: none;
}
.fullscreen-inspector.show {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: auto;
}
@media (max-width: 1024px) {
.fullscreen-inspector {
left: 20px;
}
}
.fullscreen-inspector .inspector-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
border-bottom: 1px solid oklch(from var(--color-neutral-50) l c h / 0.08);
padding-bottom: 16px;
position: relative;
}
.fullscreen-inspector .inspector-title-col {
display: flex;
flex-direction: column;
gap: 4px;
}
.fullscreen-inspector .inspector-title {
font-size: 16px;
color: var(--color-brand-primary);
font-weight: bold;
}
.fullscreen-inspector .inspector-actions {
display: flex;
align-items: center;
gap: 12px;
margin-right: 40px; /* leave room for close button */
}
.fullscreen-inspector .inspector-close-btn {
position: absolute;
top: 0px;
right: 0px;
font-size: 20px;
cursor: pointer;
color: var(--color-text-muted);
background: none;
border: none;
transition: color 0.2s;
padding: 4px;
line-height: 1;
}
.fullscreen-inspector .inspector-close-btn:hover {
color: var(--color-semantic-error);
}
.fullscreen-inspector .inspector-body {
display: flex;
flex-direction: row;
gap: 24px;
flex: 1;
min-height: 0;
}
.fullscreen-inspector .inspector-left-col {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
}
.fullscreen-inspector .inspector-right-col {
width: 300px;
display: flex;
flex-direction: column;
gap: 16px;
border-left: 1px solid oklch(from var(--color-neutral-50) l c h / 0.08);
padding-left: 20px;
min-height: 0;
}
/* Sidebar Tabs (IBM Carbon) */
.sidebar-tabs {
display: flex;
gap: var(--spacing-xxs, 4px);
padding: var(--spacing-xxs, 4px);
background: oklch(from var(--color-neutral-950) l c h / 0.3);
border-bottom: 1px solid var(--color-brand-border);
margin-bottom: var(--spacing-sm, 12px);
border-radius: var(--radius-md, 6px) var(--radius-md, 6px) 0 0;
}
.sidebar-tab-btn {
flex: 1;
background: transparent;
border: 1px solid transparent;
border-radius: var(--radius-sm, 4px);
color: var(--color-neutral-400);
padding: var(--spacing-xs, 8px) var(--spacing-sm, 12px);
font-size: var(--font-size-caption, 11px);
font-weight: 500;
cursor: pointer;
font-family: var(--font-sans);
transition: all var(--motion-fast) var(--motion-easing-standard);
text-align: center;
}
.sidebar-tab-btn:hover {
color: var(--color-neutral-100);
background: oklch(from var(--color-neutral-50) l c h / 0.05);
}
.sidebar-tab-btn.active {
color: var(--color-brand-primary);
background: oklch(from var(--color-brand-primary) l c h / 0.15);
border-color: oklch(from var(--color-brand-primary) l c h / 0.3);
font-weight: 700;
}
.sidebar-tab-btn:focus-visible {
outline: 2px solid var(--color-brand-secondary);
outline-offset: -2px;
}
.sidebar-tab-panel {
display: flex;
flex-direction: column;
gap: var(--spacing-sm, 12px);
transition: opacity 0.25s ease-in-out;
opacity: 0;
}
.sidebar-tab-panel.active {
opacity: 1;
}
/* Onboarding Tour styles */
.tour-backdrop {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: oklch(from var(--color-neutral-950) l c h / 0.45);
z-index: 9999;
pointer-events: auto;
transition: opacity 0.3s ease;
}
.tour-tooltip-card {
position: absolute;
background: var(--color-brand-surface);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid var(--color-brand-border-glow);
box-shadow: 0 12px 40px oklch(0 0 0 / 0.5), var(--shadow-glass);
border-radius: var(--radius-lg, 12px);
color: var(--color-neutral-100);
padding: var(--spacing-md, 16px);
width: 300px;
z-index: 10000;
display: flex;
flex-direction: column;
gap: var(--spacing-sm, 12px);
transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
pointer-events: auto;
}
.tour-title {
font-family: var(--font-sans);
font-size: var(--font-size-body, 14px);
font-weight: 700;
color: var(--color-brand-primary);
display: flex;
justify-content: space-between;
align-items: center;
}
.tour-text {
font-family: var(--font-sans);
font-size: var(--font-size-small, 12px);
color: var(--color-neutral-200);
line-height: 1.5;
}
.tour-actions {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 4px;
}
.tour-step-dot {
font-size: 10px;
color: var(--color-neutral-400);
font-family: var(--font-mono);
}
.tour-btn-group {
display: flex;
gap: 6px;
}
/* Tour highlight helper */
.tour-highlight {
position: relative;
z-index: 10001 !important;
box-shadow: 0 0 0 4px var(--color-brand-primary-dark), 0 0 20px oklch(from var(--color-brand-primary) l c h / 0.5) !important;
pointer-events: auto !important;
transition: box-shadow var(--motion-fast) var(--motion-easing-standard);
}
#hud-sidebar.tour-highlight,
#hud-crosshair.tour-highlight {
position: fixed !important;
}
#hud-sidebar.tour-highlight,
#hud-sidebar:has(.tour-highlight) {
z-index: 10000 !important;
}