:root {
  --bg:        #0a0f0c;
  --panel:     #101712;
  --panel-2:   #0d1310;
  --line:      #22322a; 
  --text:      #d7e4dc;
  --text-dim:  #7e948a;
  --phosphor:  #6fefa0;
  --phosphor-dim: #3a6b52;
  --amber:     #f0a83c;
  --danger:    #ff6b5e;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --head: 'Space Grotesk', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  min-height: 100vh;
}

body {
  background-image:
    radial-gradient(circle at 20% -10%, rgba(111,239,160,0.06), transparent 45%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 3px);
}



.tower-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #0d1410, transparent);
}

.tower-bar__id { display: flex; align-items: center; gap: 12px; }

.tower-bar__glyph {
  font-size: 26px;
  color: var(--phosphor);
  text-shadow: 0 0 12px rgba(111,239,160,0.55);
}

.tower-bar__title {
  font-family: var(--head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #eef7f1;
}

.tower-bar__sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.tower-bar__status { display: flex; align-items: center; gap: 18px; }

.status-pill {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-dim);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel-2);
}

.status-pill__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-dim);
}

.status-pill__dot.ok { background: var(--phosphor); box-shadow: 0 0 8px rgba(111,239,160,0.7); }
.status-pill__dot.down { background: var(--danger); box-shadow: 0 0 8px rgba(255,107,94,0.7); }

.tower-bar__clock {
  font-size: 15px;
  color: var(--phosphor);
  letter-spacing: 0.08em;
  min-width: 78px;
  text-align: right;
}


.console {
  display: grid;
  grid-template-columns: 560px 1fr;
  gap: 20px;
  padding: 24px 28px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 20px 20px;
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.panel__head h2 {
  font-family: var(--head);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #eef7f1;
  letter-spacing: 0.01em;
}

.panel__meta {
  font-size: 11px;
  color: var(--text-dim);
}

.panel--report { grid-column: 1 / -1; }
.panel--log    { grid-column: 1 / -1; }



.scope-wrap {
  display: flex;
  justify-content: center;
}

#radarCanvas {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, #0c1512 0%, #060a08 78%, #040605 100%);
  border: 1px solid var(--line);
}

.scope-legend {
  list-style: none;
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 14px 0 0;
  padding: 0;
  font-size: 11px;
  color: var(--text-dim);
}

.scope-legend li { display: flex; align-items: center; gap: 6px; }

.swatch { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.swatch--contact { background: var(--phosphor); }
.swatch--subject { background: var(--amber); }
.swatch--ash { background: var(--danger); opacity: 0.6; }


.intake-form { display: flex; flex-direction: column; gap: 14px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-dim); }

.field em { font-style: normal; opacity: 0.7; }

.field input {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 10px 11px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}

.field input:focus { border-color: var(--phosphor-dim); }

.btn-clear {
  margin-top: 4px;
  background: var(--phosphor);
  color: #06110a;
  border: none;
  border-radius: 3px;
  padding: 12px 16px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.btn-clear:hover { filter: brightness(1.08); }
.btn-clear:disabled { opacity: 0.55; cursor: progress; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-dim);
  border-radius: 3px;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
}
.btn-ghost:hover { color: var(--text); border-color: var(--phosphor-dim); }

.form-error {
  color: var(--danger);
  font-size: 12px;
  min-height: 1em;
  margin: 0;
}



.ticket {
  font-size: 13px;
  line-height: 1.75;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px dashed var(--line);
}

.ticket-row span:first-child { color: var(--text-dim); }

.ticket-section-title {
  margin: 16px 0 6px;
  font-family: var(--head);
  font-size: 11px;
  color: var(--phosphor);
  letter-spacing: 0.04em;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}
.tag--ok    { background: rgba(111,239,160,0.14); color: var(--phosphor); }
.tag--warn  { background: rgba(240,168,60,0.14); color: var(--amber); }
.tag--danger{ background: rgba(255,107,94,0.16); color: var(--danger); }



.log-table-wrap { overflow-x: auto; }

.log-table { width: 100%; border-collapse: collapse; font-size: 12px; }

.log-table th {
  text-align: left;
  color: var(--text-dim);
  font-weight: 500;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.log-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.log-empty { color: var(--text-dim); text-align: center; padding: 22px 0 !important; }



@media (max-width: 980px) {
  .console { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}


@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
