/* --------------------------------------------------------------
   Design system – copied from upstream (CLAUDE / AGENTS.md)
   -------------------------------------------------------------- */
:root {
  /* ── Background layers ────────────────────── */
  --bg:      #0a0908;   /* void – canvas */
  --bg1:     #120d0c;   /* primary panel background */
  --bg2:     #161010;   /* header / card accents */
  --bg3:     #1e1410;   /* interactive block layer */

  /* ── Borders ─────────────────────────────── */
  --border:   #2b1414;
  --border2:  #4a1a1f;

  /* ── Text ───────────────────────────────── */
  --text:    #d9d2c4;
  --text2:   #7a736a;
  --text3:   #4a453f;

  /* ── Red accent family ───────────────────── */
  --red:       #b6182b;
  --red-ember: #ff2436;
  --red-dim:   #5c1018;
  --red-mute:  #3d1f18;

  /* ── Secondary accents ───────────────────── */
  --amber:     #c47c2e;
  --amber-dim: #8a5420;
  --green:     #5a8a4a;
  --green-dim: #2e4a22;

  /* ── Font stacks ───────────────────────────── */
  --mono:    'JetBrains Mono', monospace;
  --sans:    'Inter', system-ui, sans-serif;
  --display: 'Pirata One', serif;
}

/* Reset & base ------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
}

::selection {
  background: var(--red);
  color: var(--bg);
}

/* ── Custom Cursor ────────────────────────────────────────────────────────── */
* {
  /* Force a transparent 1x1 pixel image as cursor, falling back to none */
  cursor: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=') 0 0, none !important;
}

#custom-cursor {
  position: fixed; inset: 0; pointer-events: none; z-index: 99999;
}
#cc-dot {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background-color: var(--red-ember);
  box-shadow: 0 0 8px var(--red-ember);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.12s linear;
}
#cc-ring {
  position: fixed; top: 0; left: 0;
  width: 28px; height: 28px;
  border: 2px solid var(--red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.12s linear;
}
#cc-focus {
  position: fixed; top: 0; left: 0;
  opacity: 0;
  transition: opacity 0.14s linear, width 0.18s cubic-bezier(0.16, 1, 0.3, 1), height 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.cc-corner {
  position: absolute;
  width: 10px; height: 10px;
  border: 2px solid var(--red);
  transition: border-color 0.12s linear;
}
body.cursor-down .cc-corner { border-color: var(--red-ember); }

.cc-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.cc-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.cc-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.cc-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }

.layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
  z-index: 0;
}

/* ── Matrix Background ────────────────────────────────────────────── */
.matrix-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: transparent;
  overflow: hidden;
  z-index: -1;
}

#matrix-canvas {
  display: block;
  width: 100%; height: 100%;
  opacity: 0.15;
}

.matrix-vignette-outer {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(10,9,8,0) 40%, rgba(10,9,8,1) 100%);
}

.matrix-vignette-inner {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(10,9,8,0.8) 0%, rgba(10,9,8,0) 60%);
}

/* --------------------------------------------------------------
   MonitorBar
   -------------------------------------------------------------- */
.monitor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 36px;
  border-bottom: 1px solid var(--border);
  background: var(--bg1);
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}

.monitor-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--red);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow: 0 0 12px var(--red-ember);
}

.brand-text {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.08em;
  color: var(--red);
}

.separator {
  font-size: 13px;
  color: var(--border2);
}

.workspace-tabs {
  display: flex;
  gap: 4px;
  position: relative;
}

.workspace-tabs a {
  position: relative;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--text3);
  text-decoration: none;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.1s;
  z-index: 10;
}

.workspace-tabs a:hover {
  color: var(--text2);
}

.workspace-tabs a.active {
  color: var(--red);
}

.tab-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 4px;
  background: var(--red-mute);
  z-index: 5;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.shake {
  animation: shake 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  color: var(--red-ember) !important;
}

.monitor-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.host {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text3);
}

.clock {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--text3);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------
   StatusBar
   -------------------------------------------------------------- */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text3);
  font-size: 10px;
  letter-spacing: 0.5px;
  position: sticky;
  bottom: 0;
  z-index: 50;
  flex-shrink: 0;
}

.status-bar-left,
.status-bar-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.status-ws {
  color: var(--red-ember);
  font-weight: normal;
}

/* --------------------------------------------------------------
   Main Content
   -------------------------------------------------------------- */
.main-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  position: relative;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.brand-heading {
  font-family: var(--display);
  font-size: 64px;
  line-height: 1;
  color: var(--text);
  text-shadow: 0 0 30px rgba(255, 36, 54, 0.25);
  letter-spacing: 2px;
}

/* --------------------------------------------------------------
   Panels
   -------------------------------------------------------------- */
.panel {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  max-width: 600px;
  width: 100%;
}

.panel.cut {
  border-radius: 0;
  clip-path: polygon(0 16px, 16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.panel-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text2);
}

.dagger {
  color: var(--red);
  font-size: 12px;
}

.panel-title {
  color: var(--text);
  font-weight: bold;
}

.panel-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------
   Coming Soon Content inside Panel
   -------------------------------------------------------------- */
.lead {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}

.quote {
  border-left: 2px solid var(--red-dim);
  padding-left: 14px;
  margin: 8px 0 24px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text2);
  font-style: italic;
  line-height: 1.6;
}

.cs-progress {
  position: relative;
  width: 100%;
  height: 4px;
  background: var(--bg3);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.cs-progress-bar {
  height: 100%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red-ember);
  animation: loading-pulse 2s infinite alternate;
}

.cs-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 1px;
  color: var(--red-dim);
  text-transform: uppercase;
}

/* Animations */
@keyframes loading-pulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; box-shadow: 0 0 15px var(--red-ember); }
}

/* --------------------------------------------------------------
   Ambient background
   -------------------------------------------------------------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(182,24,43,0.06), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(182,24,43,0.04), transparent 60%);
}
