test / frontend /styles.css
Anish
Deploy ParcelPilot AI with Git LFS
2567e7e
Raw
History Blame Contribute Delete
34.5 kB
/* ════════════════════════════════════════════════════════════════
ParcelPilot Intelligence β€” Professional Design System
Inspired by: Linear, Raycast, Vercel, Stripe Dashboard
════════════════════════════════════════════════════════════════ */
/* ── Tokens ── */
:root {
--c-bg: #090c14;
--c-surface-1: rgba(255,255,255,0.03);
--c-surface-2: rgba(255,255,255,0.055);
--c-surface-3: rgba(255,255,255,0.08);
--c-border: rgba(255,255,255,0.085);
--c-border-md: rgba(255,255,255,0.13);
--c-border-hi: rgba(255,255,255,0.22);
--c-txt-1: #f1f5f9;
--c-txt-2: #94a3b8;
--c-txt-3: #475569;
--c-blue: #3b82f6;
--c-blue-dim: rgba(59,130,246,0.18);
--c-blue-border: rgba(59,130,246,0.35);
--c-cyan: #22d3ee;
--c-cyan-dim: rgba(34,211,238,0.12);
--c-emerald: #34d399;
--c-emerald-dim: rgba(52,211,153,0.12);
--c-emerald-bdr: rgba(52,211,153,0.4);
--c-amber: #f59e0b;
--c-amber-dim: rgba(245,158,11,0.12);
--c-amber-bdr: rgba(245,158,11,0.4);
--c-rose: #f43f5e;
--c-rose-dim: rgba(244,63,94,0.12);
--c-rose-bdr: rgba(244,63,94,0.4);
--c-violet: #a78bfa;
--c-violet-dim: rgba(167,139,250,0.12);
--c-violet-bdr: rgba(167,139,250,0.4);
--shadow-xs: 0 1px 3px rgba(0,0,0,0.5);
--shadow-sm: 0 2px 8px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.4);
--shadow-md: 0 4px 16px rgba(0,0,0,0.6), 0 2px 4px rgba(0,0,0,0.4);
--shadow-lg: 0 12px 40px rgba(0,0,0,0.7), 0 4px 12px rgba(0,0,0,0.5);
--shadow-xl: 0 24px 64px rgba(0,0,0,0.85), 0 8px 24px rgba(0,0,0,0.6);
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 14px;
--radius-xl: 20px;
--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--font-mono: 'JetBrains Mono', 'Fira Code', monospace;
--ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
--ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
}
/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
font-family: var(--font-body);
font-size: 13px;
line-height: 1.5;
color: var(--c-txt-1);
background: var(--c-bg);
height: 100%;
overflow: hidden;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
button { font-family: inherit; cursor: pointer; }
textarea { font-family: inherit; }
select { font-family: inherit; }
/* ── Background layers ── */
.bg-layer {
position: fixed; inset: 0; z-index: 0;
pointer-events: none;
}
.bg-img {
position: absolute; inset: 0;
background-image: url('bg.jpg');
background-size: cover;
background-position: center;
background-attachment: fixed;
opacity: 0.3;
filter: grayscale(15%) contrast(1.1);
}
.bg-noise {
position: absolute; inset: 0;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
opacity: 0.03;
mix-blend-mode: overlay;
}
.bg-vignette {
position: absolute; inset: 0;
background: radial-gradient(ellipse 120% 120% at 50% 0%, transparent 40%, rgba(9,12,20,0.92) 100%);
}
.bg-gradient-radial {
position: absolute; inset: 0;
background:
radial-gradient(ellipse 60% 45% at 20% -5%, rgba(59,130,246,0.12) 0%, transparent 70%),
radial-gradient(ellipse 40% 35% at 85% 95%, rgba(52,211,153,0.07) 0%, transparent 70%);
}
/* ── App shell ── */
#app {
position: relative; z-index: 1;
display: flex;
flex-direction: column;
height: 100vh;
width: 100vw;
overflow: hidden;
}
/* ══════════════════════════════
TOPBAR
══════════════════════════════ */
.topbar {
flex-shrink: 0;
height: 52px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px;
border-bottom: 1px solid var(--c-border);
background: rgba(9, 12, 20, 0.8);
backdrop-filter: blur(20px) saturate(160%);
-webkit-backdrop-filter: blur(20px) saturate(160%);
}
.topbar-brand {
display: flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
}
.brand-icon {
width: 32px; height: 32px;
border-radius: 8px;
background: linear-gradient(145deg, #1d4ed8 0%, #0891b2 100%);
display: flex; align-items: center; justify-content: center;
box-shadow: 0 2px 10px rgba(29,78,216,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
flex-shrink: 0;
}
.brand-text {
display: flex; align-items: center; gap: 6px;
font-size: 14px; font-weight: 600;
letter-spacing: -0.02em;
color: var(--c-txt-1);
}
.brand-sep { color: var(--c-txt-3); }
.brand-product { color: var(--c-txt-2); font-weight: 400; }
.brand-tag {
height: 20px;
padding: 0 7px;
border-radius: 4px;
background: var(--c-blue-dim);
border: 1px solid var(--c-blue-border);
color: #93c5fd;
font-size: 10px;
font-weight: 600;
letter-spacing: 0.04em;
display: flex; align-items: center;
}
.topbar-controls {
display: flex; align-items: center; gap: 14px;
}
.context-group {
display: flex; align-items: center;
background: var(--c-surface-1);
border: 1px solid var(--c-border);
border-radius: var(--radius-md);
padding: 0 2px;
height: 34px;
}
.ctx-field {
display: flex; flex-direction: column;
padding: 4px 10px;
}
.ctx-label {
font-size: 9px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--c-txt-3);
line-height: 1;
margin-bottom: 1px;
}
.ctx-select {
background: transparent;
border: none; outline: none;
color: var(--c-txt-1);
font-size: 11.5px;
font-weight: 500;
cursor: pointer;
padding: 0;
line-height: 1;
appearance: none;
-webkit-appearance: none;
}
.ctx-select option { background: #0f172a; }
.ctx-divider {
width: 1px; height: 20px;
background: var(--c-border);
flex-shrink: 0;
}
.topbar-status {
display: flex; align-items: center; gap: 7px;
padding: 5px 12px;
border-radius: 20px;
background: var(--c-emerald-dim);
border: 1px solid var(--c-emerald-bdr);
color: var(--c-emerald);
font-size: 11px;
}
.status-dot {
width: 6px; height: 6px;
border-radius: 50%;
background: var(--c-emerald);
flex-shrink: 0;
}
.status-dot.active {
box-shadow: 0 0 0 3px rgba(52,211,153,0.25);
animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.4); }
50% { box-shadow: 0 0 0 5px rgba(52,211,153,0); }
}
.status-text { color: var(--c-emerald); font-size: 11px; }
.status-text strong { font-weight: 600; }
/* ══════════════════════════════
NAVTABS
══════════════════════════════ */
.navtabs {
flex-shrink: 0;
height: 40px;
display: flex;
align-items: stretch;
justify-content: space-between;
padding: 0 20px;
border-bottom: 1px solid var(--c-border);
background: rgba(9, 12, 20, 0.55);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}
.navtabs-left { display: flex; align-items: stretch; gap: 2px; }
.navtabs-right { display: flex; align-items: center; gap: 8px; }
.navtab {
display: inline-flex; align-items: center; gap: 6px;
padding: 0 13px;
background: transparent;
border: none;
color: var(--c-txt-3);
font-size: 12.5px;
font-weight: 500;
position: relative;
transition: color 0.15s var(--ease-out);
white-space: nowrap;
}
.navtab::after {
content: '';
position: absolute; bottom: -1px; left: 0; right: 0;
height: 2px;
background: var(--c-blue);
border-radius: 1px 1px 0 0;
opacity: 0;
transform: scaleX(0.4);
transition: all 0.2s var(--ease-spring);
}
.navtab:hover { color: var(--c-txt-2); }
.navtab.active { color: var(--c-txt-1); }
.navtab.active::after { opacity: 1; transform: scaleX(1); }
.navtab-icon {
width: 13px; height: 13px;
flex-shrink: 0;
opacity: 0.7;
}
.navtab.active .navtab-icon { opacity: 1; }
.navtab-badge {
height: 16px;
min-width: 16px;
padding: 0 4px;
border-radius: 8px;
background: var(--c-rose-dim);
border: 1px solid var(--c-rose-bdr);
color: #fb7185;
font-size: 9.5px;
font-weight: 700;
display: flex; align-items: center; justify-content: center;
line-height: 1;
}
.preset-label { font-size: 11.5px; color: var(--c-txt-3); white-space: nowrap; }
.preset-select {
height: 28px;
padding: 0 10px;
background: var(--c-surface-2);
border: 1px solid var(--c-border-md);
border-radius: var(--radius-sm);
color: var(--c-txt-1);
font-size: 11.5px;
font-weight: 500;
outline: none;
cursor: pointer;
min-width: 200px;
}
.preset-select option { background: #0f172a; }
/* ══════════════════════════════
STAGE & PANES
══════════════════════════════ */
.stage {
flex: 1;
overflow: hidden;
position: relative;
min-height: 0;
}
.stage-pane {
display: none;
height: 100%; width: 100%;
position: absolute; inset: 0;
}
.stage-pane.active { display: flex; }
/* ══════════════════════════════
CHAT WORKSPACE (Tab 1)
══════════════════════════════ */
.chat-workspace {
display: flex;
width: 100%; height: 100%;
gap: 1px;
background: var(--c-border);
}
/* Left: Chat panel */
.chat-panel {
flex: 0 0 62%;
display: flex;
flex-direction: column;
background: var(--c-bg);
min-height: 0;
}
.panel-head {
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 22px;
border-bottom: 1px solid var(--c-border);
background: rgba(9,12,20,0.6);
}
.panel-head-title {
display: flex; flex-direction: column; gap: 2px;
}
.panel-title {
font-size: 13px; font-weight: 600;
color: var(--c-txt-1);
letter-spacing: -0.01em;
}
.panel-ctx, .panel-sub {
font-size: 11px;
color: var(--c-txt-3);
}
.panel-sub { color: var(--c-cyan); }
.citation-badge {
display: flex; align-items: center; gap: 5px;
padding: 4px 9px;
border-radius: 20px;
background: var(--c-emerald-dim);
border: 1px solid var(--c-emerald-bdr);
color: var(--c-emerald);
font-size: 10.5px;
font-weight: 600;
}
/* Messages */
.messages-area {
flex: 1;
overflow-y: auto;
padding: 24px 22px;
display: flex;
flex-direction: column;
gap: 20px;
scroll-behavior: smooth;
}
.messages-area::-webkit-scrollbar { width: 4px; }
.messages-area::-webkit-scrollbar-track { background: transparent; }
.messages-area::-webkit-scrollbar-thumb { background: var(--c-surface-3); border-radius: 4px; }
.msg-row {
display: flex;
gap: 12px;
animation: msg-in 0.25s var(--ease-spring);
}
@keyframes msg-in {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
.msg-row.msg-user {
flex-direction: row-reverse;
align-self: flex-end;
max-width: 78%;
}
.msg-row.msg-assistant { max-width: 88%; }
.msg-avatar {
width: 30px; height: 30px;
border-radius: 8px;
background: var(--c-surface-2);
border: 1px solid var(--c-border);
display: flex; align-items: center; justify-content: center;
flex-shrink: 0;
box-shadow: var(--shadow-xs);
}
.msg-bubble {
background: var(--c-surface-1);
border: 1px solid var(--c-border);
border-radius: var(--radius-lg);
padding: 13px 17px;
font-size: 13px;
line-height: 1.6;
box-shadow: var(--shadow-sm);
}
.msg-bubble p { margin-bottom: 6px; }
.msg-bubble p:last-child { margin-bottom: 0; }
.msg-row.msg-user .msg-bubble {
background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
border-color: rgba(59,130,246,0.4);
color: #fff;
}
.msg-name {
font-size: 11px;
font-weight: 600;
color: var(--c-txt-3);
margin-bottom: 5px !important;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.msg-hint {
font-size: 12px;
color: var(--c-txt-3);
}
/* Widget cards embedded in chat */
.widget-card {
margin-top: 12px;
border-radius: var(--radius-md);
overflow: hidden;
border: 1px solid var(--c-border-md);
font-size: 12px;
}
.widget-header {
display: flex; justify-content: space-between; align-items: center;
padding: 9px 13px;
background: var(--c-surface-2);
border-bottom: 1px solid var(--c-border);
}
.widget-header-left {
font-size: 11.5px; font-weight: 600;
color: var(--c-txt-2);
}
.widget-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1px;
background: var(--c-border);
}
.widget-cell {
padding: 10px 13px;
background: var(--c-bg);
display: flex; flex-direction: column; gap: 3px;
}
.widget-cell-label {
font-size: 10px;
font-weight: 600;
color: var(--c-txt-3);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.widget-cell-value {
font-size: 13px;
font-weight: 600;
color: var(--c-txt-1);
}
.widget-cell-value.positive { color: var(--c-emerald); }
.widget-cell-value.negative { color: var(--c-rose); }
.widget-cell-value.strikethrough { text-decoration: line-through; color: var(--c-txt-3); }
.widget-footer {
padding: 8px 13px;
background: var(--c-bg);
font-size: 10.5px;
color: var(--c-txt-3);
border-top: 1px solid var(--c-border);
font-family: var(--font-mono);
}
/* Citations list in chat */
.chat-citations {
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid var(--c-border);
font-size: 11px;
}
.chat-citations-label {
color: var(--c-txt-3);
margin-bottom: 5px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
font-size: 10px;
}
.chat-citation-row {
display: flex; align-items: center; gap: 6px;
padding: 3px 0;
color: var(--c-txt-2);
}
.citation-dot {
width: 5px; height: 5px;
border-radius: 50%;
background: var(--c-cyan);
flex-shrink: 0;
}
/* Compose area */
.compose-area {
flex-shrink: 0;
display: flex; align-items: flex-end;
gap: 10px;
padding: 14px 22px;
border-top: 1px solid var(--c-border);
background: rgba(9,12,20,0.8);
}
.compose-input {
flex: 1;
background: var(--c-surface-2);
border: 1px solid var(--c-border-md);
border-radius: var(--radius-md);
color: var(--c-txt-1);
font-size: 13px;
padding: 10px 14px;
resize: none;
outline: none;
line-height: 1.5;
max-height: 140px;
transition: border-color 0.15s, box-shadow 0.15s;
}
.compose-input::placeholder { color: var(--c-txt-3); }
.compose-input:focus {
border-color: var(--c-blue-border);
box-shadow: 0 0 0 3px var(--c-blue-dim);
}
.btn-send {
width: 38px; height: 38px;
border-radius: var(--radius-md);
border: none;
background: var(--c-blue);
color: #fff;
display: flex; align-items: center; justify-content: center;
flex-shrink: 0;
box-shadow: 0 2px 10px rgba(59,130,246,0.4);
transition: all 0.15s var(--ease-spring);
}
.btn-send:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(59,130,246,0.6); }
.btn-send:active { transform: translateY(0); }
/* Right: Evidence panel */
.evidence-panel {
flex: 0 0 38%;
display: flex;
flex-direction: column;
background: rgba(9,12,20,0.5);
min-height: 0;
overflow-y: auto;
gap: 0;
}
.evidence-panel::-webkit-scrollbar { width: 4px; }
.evidence-panel::-webkit-scrollbar-thumb { background: var(--c-surface-3); border-radius: 4px; }
/* Anchor card */
.anchor-card {
margin: 16px;
border-radius: var(--radius-md);
background: var(--c-bg);
border: 1px solid var(--c-emerald-bdr);
overflow: hidden;
box-shadow: 0 0 20px rgba(52,211,153,0.08), var(--shadow-sm);
}
.anchor-card-header {
display: flex; justify-content: space-between; align-items: center;
padding: 10px 14px;
background: rgba(52,211,153,0.06);
border-bottom: 1px solid var(--c-border);
}
.anchor-level-badge {
font-size: 10px; font-weight: 700;
color: var(--c-emerald);
text-transform: uppercase;
letter-spacing: 0.04em;
}
.anchor-doc {
font-size: 10.5px;
color: var(--c-cyan);
font-family: var(--font-mono);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 55%;
}
.anchor-quote {
display: block;
margin: 0;
padding: 13px 14px;
font-style: italic;
font-size: 12px;
line-height: 1.6;
color: var(--c-txt-2);
border-left: 2px solid var(--c-emerald);
background: rgba(52,211,153,0.03);
}
.anchor-footer {
padding: 7px 14px;
font-size: 10.5px;
color: var(--c-txt-3);
font-family: var(--font-mono);
border-top: 1px solid var(--c-border);
}
/* Precedence matrix */
.matrix-panel {
margin: 0 16px 16px;
border-radius: var(--radius-md);
background: var(--c-bg);
border: 1px solid var(--c-border);
overflow: hidden;
box-shadow: var(--shadow-sm);
}
.matrix-panel-header {
display: flex; justify-content: space-between; align-items: center;
padding: 10px 14px;
border-bottom: 1px solid var(--c-border);
background: var(--c-surface-1);
}
.matrix-title { font-size: 11.5px; font-weight: 600; }
.matrix-hint { font-size: 10px; color: var(--c-txt-3); }
.matrix-rows { display: flex; flex-direction: column; }
.matrix-row-empty {
padding: 14px;
font-size: 11.5px;
color: var(--c-txt-3);
text-align: center;
font-style: italic;
}
.matrix-row {
display: flex;
align-items: stretch;
border-bottom: 1px solid var(--c-border);
font-size: 11.5px;
min-height: 52px;
position: relative;
transition: background 0.1s;
}
.matrix-row:last-child { border-bottom: none; }
.matrix-row:hover { background: var(--c-surface-1); }
.matrix-level-bar {
width: 3px;
flex-shrink: 0;
border-radius: 0;
}
.matrix-row.status-winner .matrix-level-bar { background: var(--c-emerald); }
.matrix-row.status-applied .matrix-level-bar { background: var(--c-cyan); }
.matrix-row.status-overridden .matrix-level-bar { background: var(--c-amber); }
.matrix-row.status-error .matrix-level-bar { background: var(--c-rose); }
.matrix-row.status-excluded .matrix-level-bar { background: var(--c-txt-3); }
.matrix-row-content { flex: 1; padding: 9px 13px; }
.matrix-row-header {
display: flex; justify-content: space-between; align-items: center;
margin-bottom: 4px;
}
.matrix-source-name {
font-size: 11px; font-weight: 600;
color: var(--c-txt-1);
}
.matrix-authority {
font-size: 9.5px; font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.matrix-row.status-winner .matrix-authority { color: var(--c-emerald); }
.matrix-row.status-applied .matrix-authority { color: var(--c-cyan); }
.matrix-row.status-overridden .matrix-authority { color: var(--c-amber); }
.matrix-row.status-error .matrix-authority { color: var(--c-rose); }
.matrix-row.status-excluded .matrix-authority { color: var(--c-txt-3); }
.matrix-rule { font-size: 11px; color: var(--c-txt-3); line-height: 1.4; }
.matrix-row.status-overridden .matrix-rule { text-decoration: line-through; opacity: 0.7; }
.matrix-row.status-excluded .matrix-rule { text-decoration: line-through; opacity: 0.5; }
.matrix-status-chip {
margin-top: 5px;
display: inline-block;
padding: 1px 6px;
border-radius: 4px;
font-size: 9px;
font-weight: 700;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.matrix-row.status-winner .matrix-status-chip { background: var(--c-emerald-dim); color: var(--c-emerald); border: 1px solid var(--c-emerald-bdr); }
.matrix-row.status-applied .matrix-status-chip { background: var(--c-cyan-dim); color: var(--c-cyan); border: 1px solid rgba(34,211,238,0.3); }
.matrix-row.status-overridden .matrix-status-chip { background: var(--c-amber-dim); color: var(--c-amber); border: 1px solid var(--c-amber-bdr); }
.matrix-row.status-error .matrix-status-chip { background: var(--c-rose-dim); color: var(--c-rose); border: 1px solid var(--c-rose-bdr); }
.matrix-row.status-excluded .matrix-status-chip { background: rgba(255,255,255,0.05); color: var(--c-txt-3); border: 1px solid var(--c-border); }
/* Trace drawer */
.trace-drawer {
margin: 0 16px 16px;
border-radius: var(--radius-md);
background: var(--c-bg);
border: 1px solid var(--c-border);
overflow: hidden;
box-shadow: var(--shadow-sm);
}
.trace-summary {
display: flex;
align-items: center;
gap: 7px;
padding: 10px 14px;
font-size: 11.5px;
font-weight: 600;
color: var(--c-txt-2);
cursor: pointer;
list-style: none;
background: var(--c-surface-1);
user-select: none;
}
.trace-summary::-webkit-details-marker { display: none; }
.trace-chevron {
transition: transform 0.2s var(--ease-spring);
flex-shrink: 0;
color: var(--c-txt-3);
}
details[open] .trace-chevron { transform: rotate(180deg); }
.trace-count {
margin-left: auto;
font-size: 10px;
font-weight: 700;
color: var(--c-cyan);
font-family: var(--font-mono);
}
.trace-body {
padding: 12px;
display: flex; flex-direction: column; gap: 8px;
max-height: 240px;
overflow-y: auto;
}
.trace-step {
background: var(--c-surface-1);
border: 1px solid var(--c-border);
border-radius: var(--radius-sm);
padding: 9px 11px;
font-size: 11.5px;
}
.trace-step-header {
display: flex; justify-content: space-between; align-items: center;
margin-bottom: 3px;
}
.trace-step-name { font-weight: 600; color: var(--c-cyan); }
.trace-step-ms { font-family: var(--font-mono); font-size: 10px; color: var(--c-txt-3); }
.trace-step-detail { font-size: 11px; color: var(--c-txt-3); }
/* ══════════════════════════════
DASHBOARD (Tabs 2,3,4)
══════════════════════════════ */
.dashboard-view {
width: 100%; height: 100%;
overflow-y: auto;
padding: 24px;
display: flex; flex-direction: column; gap: 20px;
}
.dashboard-view::-webkit-scrollbar { width: 5px; }
.dashboard-view::-webkit-scrollbar-thumb { background: var(--c-surface-3); border-radius: 4px; }
.dashboard-header {
display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.dashboard-title { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
.dashboard-desc { font-size: 12.5px; color: var(--c-txt-3); max-width: 580px; }
/* Radar grid */
.radar-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;
}
.radar-card {
background: var(--c-surface-1);
border: 1px solid var(--c-border);
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow-md);
}
.border-rose { border-top: 2px solid var(--c-rose); }
.border-amber { border-top: 2px solid var(--c-amber); }
.border-cyan { border-top: 2px solid var(--c-cyan); }
.border-violet { border-top: 2px solid var(--c-violet); }
.radar-card-header {
display: flex; justify-content: space-between; align-items: center;
padding: 13px 16px;
border-bottom: 1px solid var(--c-border);
background: var(--c-surface-1);
}
.radar-card-title { font-size: 12.5px; font-weight: 600; }
.radar-card-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; }
.radar-empty { padding: 16px; font-size: 12px; color: var(--c-txt-3); text-align: center; font-style: italic; }
/* Pills */
.pill {
height: 20px; padding: 0 7px;
border-radius: 10px;
font-size: 10px; font-weight: 700;
display: flex; align-items: center;
}
.pill-rose { background: var(--c-rose-dim); color: var(--c-rose); border: 1px solid var(--c-rose-bdr); }
.pill-amber { background: var(--c-amber-dim); color: var(--c-amber); border: 1px solid var(--c-amber-bdr); }
.pill-cyan { background: var(--c-cyan-dim); color: var(--c-cyan); border: 1px solid rgba(34,211,238,0.35); }
.pill-violet { background: var(--c-violet-dim); color: var(--c-violet); border: 1px solid var(--c-violet-bdr); }
.pill-emerald { background: var(--c-emerald-dim); color: var(--c-emerald); border: 1px solid var(--c-emerald-bdr); }
.pill-blue { background: var(--c-blue-dim); color: #93c5fd; border: 1px solid var(--c-blue-border); }
.pill-gray { background: var(--c-surface-3); color: var(--c-txt-2); border: 1px solid var(--c-border-md); }
/* Alert items */
.alert-item {
background: var(--c-bg);
border: 1px solid var(--c-border);
border-radius: var(--radius-sm);
padding: 10px 12px;
font-size: 12px;
}
.alert-item-header {
display: flex; justify-content: space-between; align-items: center;
margin-bottom: 5px;
}
.alert-item-id { font-weight: 700; font-family: var(--font-mono); font-size: 11px; }
.alert-item-subject { color: var(--c-txt-2); margin-bottom: 3px; }
.alert-item-source { font-size: 11px; color: var(--c-txt-3); }
.alert-action-btn {
margin-top: 8px;
padding: 4px 10px;
background: var(--c-rose-dim);
border: 1px solid var(--c-rose-bdr);
border-radius: var(--radius-sm);
color: var(--c-rose);
font-size: 10.5px; font-weight: 600;
cursor: pointer;
transition: all 0.15s;
}
.alert-action-btn:hover { background: rgba(244,63,94,0.22); }
.btn-outline {
display: inline-flex; align-items: center; justify-content: center;
background: transparent; color: var(--c-txt-1);
border: 1px solid var(--c-border);
border-radius: 6px; font-weight: 500;
cursor: pointer; transition: all 0.2s;
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.btn-outline:hover { background: var(--c-surface-2); border-color: var(--c-border-hover); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
/* Contract cards grid */
.contracts-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;
}
.contract-card {
background: var(--c-surface-1);
border: 1px solid var(--c-border);
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow-md);
}
.contract-card-header {
display: flex; justify-content: space-between; align-items: center;
padding: 13px 16px;
border-bottom: 1px solid var(--c-border);
background: var(--c-surface-2);
}
.contract-card-name { font-size: 13px; font-weight: 600; }
.contract-card-body { padding: 0; }
.contract-row {
display: flex;
align-items: stretch;
border-bottom: 1px solid var(--c-border);
min-height: 42px;
font-size: 12px;
}
.contract-row:last-child { border-bottom: none; }
.contract-row-label {
width: 38%;
padding: 10px 14px;
background: var(--c-surface-1);
font-size: 10.5px; font-weight: 600;
color: var(--c-txt-3);
text-transform: uppercase;
letter-spacing: 0.04em;
display: flex; align-items: center;
border-right: 1px solid var(--c-border);
}
.contract-row-value {
flex: 1;
padding: 10px 14px;
font-size: 12px; color: var(--c-txt-1);
display: flex; align-items: center;
}
.contract-row-value.highlight { color: var(--c-emerald); font-weight: 600; }
.contract-row-value.muted { color: var(--c-txt-3); font-family: var(--font-mono); font-size: 11px; }
.contract-note { padding: 10px 14px; font-size: 11px; color: var(--c-txt-3); line-height: 1.5; border-top: 1px solid var(--c-border); background: var(--c-bg); }
/* Subtabs */
.subtab-bar { display: flex; gap: 6px; flex-shrink: 0; }
.subtab {
padding: 6px 14px;
border-radius: var(--radius-sm);
border: 1px solid var(--c-border);
background: var(--c-surface-1);
color: var(--c-txt-3);
font-size: 12px; font-weight: 500;
cursor: pointer;
transition: all 0.15s;
}
.subtab:hover { color: var(--c-txt-2); border-color: var(--c-border-md); }
.subtab.active {
background: var(--c-blue-dim);
border-color: var(--c-blue-border);
color: #93c5fd;
font-weight: 600;
}
/* Data table */
.table-wrapper {
flex: 1;
background: var(--c-surface-1);
border: 1px solid var(--c-border);
border-radius: var(--radius-lg);
overflow: auto;
box-shadow: var(--shadow-sm);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table thead { position: sticky; top: 0; z-index: 2; }
.data-table th {
padding: 10px 14px;
background: var(--c-surface-2);
border-bottom: 1px solid var(--c-border-md);
text-align: left;
font-size: 10.5px;
font-weight: 700;
color: var(--c-txt-3);
text-transform: uppercase;
letter-spacing: 0.04em;
white-space: nowrap;
}
.data-table td {
padding: 9px 14px;
border-bottom: 1px solid var(--c-border);
color: var(--c-txt-2);
font-family: var(--font-mono);
font-size: 11.5px;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--c-surface-1); }
/* ══════════════════════════════
BUTTONS
══════════════════════════════ */
.btn-secondary {
display: inline-flex; align-items: center; gap: 7px;
padding: 7px 13px;
border-radius: var(--radius-sm);
background: var(--c-surface-2);
border: 1px solid var(--c-border-md);
color: var(--c-txt-2);
font-size: 12px; font-weight: 600;
cursor: pointer;
transition: all 0.15s;
}
.btn-secondary:hover { color: var(--c-txt-1); border-color: var(--c-border-hi); }
.btn-danger {
display: inline-flex; align-items: center; gap: 7px;
padding: 8px 16px;
border-radius: var(--radius-sm);
background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
border: none;
color: #fff;
font-size: 13px; font-weight: 600;
cursor: pointer;
box-shadow: 0 2px 10px rgba(225,29,72,0.4);
transition: all 0.15s var(--ease-spring);
}
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(225,29,72,0.6); }
/* ══════════════════════════════
MODAL
══════════════════════════════ */
.modal-mask {
position: fixed; inset: 0; z-index: 999;
background: rgba(0,0,0,0.72);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
display: flex; align-items: center; justify-content: center;
animation: mask-in 0.2s var(--ease-out);
}
@keyframes mask-in { from { opacity: 0; } to { opacity: 1; } }
.modal-mask.hidden { display: none; }
.modal-dialog {
width: 480px;
background: rgba(11, 17, 32, 0.97);
border: 1px solid var(--c-border-md);
border-radius: var(--radius-xl);
overflow: hidden;
box-shadow: var(--shadow-xl);
animation: dialog-in 0.25s var(--ease-spring);
}
@keyframes dialog-in {
from { opacity: 0; transform: scale(0.95) translateY(10px); }
to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-dialog-header {
display: flex; align-items: flex-start; gap: 13px;
padding: 20px 20px 16px;
border-bottom: 1px solid var(--c-border);
}
.modal-dialog-icon {
width: 38px; height: 38px;
border-radius: 10px;
background: var(--c-amber-dim);
border: 1px solid var(--c-amber-bdr);
display: flex; align-items: center; justify-content: center;
flex-shrink: 0;
}
.modal-dialog-title { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.modal-dialog-sub { font-size: 11.5px; color: var(--c-txt-3); margin-top: 2px; }
.modal-close {
margin-left: auto; flex-shrink: 0;
width: 26px; height: 26px;
border-radius: 6px;
background: var(--c-surface-2);
border: 1px solid var(--c-border);
color: var(--c-txt-3);
display: flex; align-items: center; justify-content: center;
cursor: pointer;
transition: all 0.15s;
}
.modal-close:hover { color: var(--c-txt-1); }
.modal-dialog-body { padding: 20px; }
.modal-action-name {
font-size: 14px; font-weight: 700; color: var(--c-amber);
margin-bottom: 12px;
letter-spacing: -0.01em;
}
.modal-code {
background: rgba(0,0,0,0.5);
border: 1px solid var(--c-border);
border-radius: var(--radius-sm);
padding: 12px;
font-family: var(--font-mono);
font-size: 11.5px;
color: var(--c-cyan);
overflow-x: auto;
white-space: pre;
max-height: 160px;
overflow-y: auto;
}
.modal-warning {
display: flex; align-items: flex-start; gap: 8px;
margin-top: 14px;
padding: 10px 12px;
border-radius: var(--radius-sm);
background: var(--c-surface-1);
border: 1px solid var(--c-border);
font-size: 11.5px; color: var(--c-txt-3);
line-height: 1.5;
}
.modal-dialog-footer {
display: flex; justify-content: flex-end; gap: 10px;
padding: 14px 20px;
border-top: 1px solid var(--c-border);
background: var(--c-surface-1);
}
/* ══════════════════════════════
LOADING STATE
══════════════════════════════ */
.msg-typing .msg-bubble {
display: flex; align-items: center; gap: 6px;
padding: 14px 17px;
min-width: 60px;
}
.typing-dot {
width: 6px; height: 6px;
border-radius: 50%;
background: var(--c-txt-3);
animation: typing 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
30% { transform: translateY(-5px); opacity: 1; }
}
/* ══════════════════════════════
MISC UTILITIES
══════════════════════════════ */
.text-muted { color: var(--c-txt-3); }
/* Anchor empty state */
.anchor-card--empty { border-color: var(--c-border); box-shadow: none; }
.anchor-empty-state {
display: flex; align-items: center; justify-content: center;
gap: 10px;
padding: 20px 16px;
font-size: 12px;
color: var(--c-txt-3);
font-style: italic;
text-align: center;
}
/* Compose keyboard hint */
.compose-hint {
flex-shrink: 0;
font-size: 10px;
color: var(--c-txt-3);
padding: 3px 6px;
border: 1px solid var(--c-border);
border-radius: 4px;
background: var(--c-surface-1);
white-space: nowrap;
align-self: flex-end;
margin-bottom: 1px;
font-family: var(--font-mono);
}
/* Scan animation for proactive badge on load */
@keyframes badge-flash {
0%, 100% { opacity: 1; }
50% { opacity: 0.4; }
}
.navtab-badge.loading { animation: badge-flash 1s ease-in-out 2; }