:root {
  color-scheme: dark;
  --bg: #090b0e;
  --panel: #11161d;
  --panel-2: #151c24;
  --line: #27313c;
  --line-soft: #1d2630;
  --text: #e7edf2;
  --muted: #9aa7b4;
  --dim: #6f7c88;
  --accent: #f05a28;
  --accent-2: #54d2d2;
  --good: #66d68d;
  --warn: #f6b44b;
  --danger: #ff6b6b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 70% 0%, rgba(84, 210, 210, 0.08), transparent 34rem),
    linear-gradient(145deg, #08090c 0%, #0d1116 46%, #0a0d10 100%);
  color: var(--text);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: rgba(10, 13, 17, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #73412f;
  background: linear-gradient(145deg, #221510, #11161d);
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.access-box small {
  color: var(--muted);
  margin-top: 3px;
}

.nav {
  display: grid;
  gap: 6px;
}

.lang-switch {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}

.lang-switch a,
.lang-switch span {
  min-width: 42px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  text-decoration: none;
}

.lang-switch span {
  border-color: #31565b;
  color: var(--accent-2);
  background: #111923;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 9px 10px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: #121923;
  border-color: var(--line);
}

.nav-icon {
  width: 24px;
  color: var(--accent-2);
  text-align: center;
}

.access-box {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 20px;
  display: flex;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #0d1218;
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 16px rgba(102, 214, 141, 0.7);
}

main {
  padding: 26px 30px 48px;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 24px;
  padding: 10px 0 20px;
  background: linear-gradient(180deg, rgba(9, 11, 14, 0.98), rgba(9, 11, 14, 0.72) 72%, transparent);
  backdrop-filter: blur(8px);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 1.65rem;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent-2);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.global-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #0e141b;
}

.global-search span {
  color: var(--accent-2);
  font-size: 1.3rem;
}

.global-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero {
  min-height: 64vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
  align-items: end;
  gap: 32px;
  padding: 36px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(9, 11, 14, 0.96), rgba(9, 11, 14, 0.72) 52%, rgba(9, 11, 14, 0.28)),
    url("assets/images/1210_ExplosionDrawing.png") center right / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 780px;
}

.hero h2 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  line-height: 0.95;
}

.hero-actions,
.toolbar,
.chip-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
button {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: #121923;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
button.primary {
  border-color: #8f3c1e;
  background: linear-gradient(180deg, #f05a28, #a83416);
  color: white;
}

.button.ghost,
button.ghost {
  background: transparent;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric,
.card,
.notice,
.filter-panel,
.editor-panel {
  border: 1px solid var(--line);
  background: rgba(17, 22, 29, 0.88);
}

.metric {
  padding: 18px;
}

.metric strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.metric span,
.tag,
.meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.section {
  margin-top: 34px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  min-width: 0;
  padding: 18px;
}

.card.interactive {
  cursor: pointer;
}

.card.interactive:hover {
  border-color: #496578;
  background: #151d26;
}

.card img,
.media-frame img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  background: #080a0d;
}

.media-frame img {
  height: auto;
  max-height: 540px;
  object-fit: contain;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  background: #0d131a;
}

.tag.warn {
  border-color: rgba(246, 180, 75, 0.35);
  color: var(--warn);
}

.tag.good {
  border-color: rgba(102, 214, 141, 0.35);
  color: var(--good);
}

.notice {
  padding: 16px;
}

.notice.warning {
  border-color: rgba(246, 180, 75, 0.45);
  background: rgba(63, 45, 19, 0.52);
}

.notice.danger {
  border-color: rgba(255, 107, 107, 0.42);
  background: rgba(64, 18, 23, 0.5);
}

.layout-split {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filter-panel,
.editor-panel {
  padding: 16px;
}

.filter-panel label,
.editor-panel label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

select,
input,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: #0b1117;
  color: var(--text);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: rgba(17, 22, 29, 0.72);
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  background: #101720;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.detail {
  display: grid;
  gap: 16px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.kvs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kv {
  padding: 12px;
  border: 1px solid var(--line-soft);
  background: #0e141b;
}

.kv small {
  display: block;
  margin-bottom: 4px;
  color: var(--dim);
}

.stepper {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #101720;
}

.step-number {
  display: grid;
  place-items: center;
  height: 36px;
  border: 1px solid #31565b;
  color: var(--accent-2);
}

.search-results {
  margin-bottom: 22px;
  border: 1px solid var(--line);
  background: #0d131a;
}

.search-hit {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
}

.search-hit:hover {
  background: #141c25;
}

.hidden {
  display: none;
}

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tabs button.active {
  border-color: #31565b;
  color: var(--accent-2);
}

.timeline {
  display: grid;
  gap: 14px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 5px;
  width: 10px;
  height: 10px;
  background: var(--accent);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .access-box {
    position: static;
    margin-top: 18px;
  }

  .topbar,
  .hero,
  .layout-split,
  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

  main {
    padding: 18px;
  }
}

@media (max-width: 620px) {
  .topbar {
    position: static;
  }

  .hero {
    min-height: auto;
    padding: 22px;
  }

  .metrics,
  .kvs {
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 10px;
  }
}
