:root { --bg: #0b0f14; --panel: #0f141a; --card: #0b1117; --line: #1e2a36; --ink: #e6edf3; --muted: #9fb0c3; --pos: #19c37d; --neg: #ef4444; --neu: #64748b; --warn: #f59e0b; --pill: #1a2230; --good: #16a34a; --watch: #0284c7; --fs: clamp(12px, 0.95vw, 15px); /* UPDATED: adaptive font */ } * { box-sizing: border-box; } html, body { height: 100%; } body { margin: 0; background: var(--bg); color: var(--ink); font: var(--fs) / 1.45 system-ui, -apple-system, Segoe UI, Roboto, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; } a { color: #8ab4ff; text-decoration: none; } a:hover { opacity: 0.9; } .container { max-width: min( 1400px, 96vw ); /* UPDATED: widen on big screens, fit on mobile */ margin: 0 auto; padding: 16px; } /* ================= Header / Nav ================= */ .header { position: sticky; top: 0; z-index: 10; background: rgba(11, 15, 20, 0.8); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); } .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; } .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; } .brand .dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, #4ade80, #22c55e); } .nav { display: flex; gap: 10px; flex-wrap: wrap; } .nav a { padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-weight: 600; } .nav a.active { border-color: #3b82f6; box-shadow: 0 0 0 1px #1d4ed8 inset; } /* ================= Title ================= */ h1 { font-size: clamp(18px, 1.4vw, 22px); margin: 12px 0 12px; } /* UPDATED */ /* ================= Toolbar ================= */ .toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); padding: 12px; border-radius: 12px; position: sticky; top: 52px; z-index: 5; } .toolbar label { color: var(--muted); font-size: 12px; margin-right: 6px; } input[type="text"], select { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 120px; outline: none; } button { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; } button:hover { border-color: #2b3a4a; } .badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; background: var(--pill); border: 1px solid var(--line); font-size: 12px; color: var(--muted); } .badge.warn { color: #fff; background: var(--warn); } .badge.small { font-size: 11px; padding: 1px 6px; } /* ================= KPI Grid ================= */ /* BEFORE: fixed 3 columns AFTER : auto-fit masonry with min card width 240px */ .grid.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* UPDATED */ gap: 10px; margin: 12px 0; } .metric { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px; } .metric .label { color: var(--muted); font-size: 12px; } .metric .val { font-weight: 700; font-size: clamp(15px, 1.2vw, 18px); margin-top: 2px; } /* UPDATED */ /* ================= Panel / Risk ================= */ .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 12px; } .risk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .risk-badge { padding: 4px 10px; border-radius: 999px; background: var(--pill); border: 1px solid var(--line); font-weight: 700; } .risk0 { color: #9fb0c3; } .risk1 { color: #60a5fa; } .risk2 { color: #f59e0b; } .risk3 { color: #ef4444; } .sep { height: 1px; background: var(--line); margin: 10px 0; } .tip { color: var(--muted); font-size: 12px; margin: 4px 0 8px; } /* ================= Log ================= */ /* BEFORE: max-height:360px AFTER : adaptive height using viewport (bigger on desktop) */ .log { max-height: 44vh; /* UPDATED */ overflow: auto; border: 1px dashed var(--line); border-radius: 10px; background: var(--card); padding: 8px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; line-height: 1.4; white-space: pre-wrap; } /* ================= Responsive breakpoints ================= */ @media (max-width: 980px) { .toolbar { top: 48px; } } @media (max-width: 640px) { :root { --fs: 12.5px; } .toolbar { top: 44px; } }