:root {
  --bg: #070b14;
  --bg-soft: #0d1524;
  --panel: #0f1b2f;
  --panel-2: #13223a;
  --text: #e8eef9;
  --muted: #98a8c8;
  --line: #203251;
  --accent: #6be67a;
  --accent-2: #62b4ff;
  --danger: #ff6e7f;
  --warn: #ffd56a;
  --scrollbar-track: #0b1424;
  --scrollbar-thumb: #2a3f65;
  --scrollbar-thumb-hover: #355181;
}

[data-theme='light'] {
  --bg: #f4f8ff;
  --bg-soft: #e9f0fb;
  --panel: #ffffff;
  --panel-2: #f6f9ff;
  --text: #0d1a31;
  --muted: #52627f;
  --line: #cddbf1;
  --accent: #1ea05d;
  --accent-2: #2f7de6;
  --danger: #de3f60;
  --warn: #b68000;
  --scrollbar-track: #e2eaf8;
  --scrollbar-thumb: #a6b5cf;
  --scrollbar-thumb-hover: #879dbc;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(850px 420px at 8% -15%, rgba(98, 180, 255, 0.16), transparent 65%),
    radial-gradient(950px 500px at 115% 110%, rgba(107, 230, 122, 0.12), transparent 67%),
    var(--bg);
  transition: background-color 0.25s ease, color 0.25s ease;
}

[data-theme='light'] body {
  background:
    radial-gradient(900px 430px at 0% -10%, rgba(47, 125, 230, 0.18), transparent 68%),
    radial-gradient(820px 410px at 100% 100%, rgba(30, 160, 93, 0.1), transparent 70%),
    var(--bg);
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

a {
  color: inherit;
}

.shell {
  width: min(1280px, 95vw);
  margin: 0 auto;
}

.suite-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 20, 0.86);
}

[data-theme='light'] .suite-header {
  background: rgba(244, 248, 255, 0.9);
}

.suite-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

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

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, #ffffff, #d6e7ff);
  color: #0b1f3f;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}

.brand-copy h1 {
  margin: 0;
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: 0.02em;
}

.brand-copy p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.suite-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
}

.nav-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 9px 13px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  transition: 0.18s ease;
  cursor: pointer;
}

.nav-btn:hover,
.btn:hover {
  transform: translateY(-1px);
  border-color: #2d4a77;
}

[data-theme='light'] .nav-btn,
[data-theme='light'] .btn {
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
}

.btn-primary {
  background: linear-gradient(180deg, #73f184, #4bca5d);
  color: #07210d;
  border-color: rgba(107, 230, 122, 0.6);
  font-weight: 700;
}

.btn-danger {
  color: #ffdce2;
  border-color: rgba(255, 110, 127, 0.45);
  background: rgba(255, 110, 127, 0.12);
}

.suite-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 10px 0 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.suite-nav a {
  white-space: nowrap;
  text-decoration: none;
}

.suite-nav::-webkit-scrollbar {
  height: 4px;
}

.suite-nav::-webkit-scrollbar-track {
  background: transparent;
}

.suite-nav::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--scrollbar-thumb) 85%, transparent);
  border-radius: 999px;
}

.suite-nav .active {
  color: #081d35;
  border-color: rgba(98, 180, 255, 0.78);
  background: linear-gradient(180deg, #8ec8ff, #69b3ff);
}

main {
  padding: 28px 0 60px;
}

.hero {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(18px, 4vw, 32px);
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(98, 180, 255, 0.17), transparent 70%),
    radial-gradient(420px 190px at 100% 100%, rgba(107, 230, 122, 0.13), transparent 72%),
    linear-gradient(180deg, #101c30, #0a1220);
}

[data-theme='light'] .hero {
  background:
    radial-gradient(520px 240px at 0% 0%, rgba(47, 125, 230, 0.14), transparent 72%),
    radial-gradient(420px 210px at 100% 100%, rgba(30, 160, 93, 0.1), transparent 74%),
    linear-gradient(180deg, #f8fbff, #edf4ff);
}

.hero h2 {
  margin: 0;
  font-size: clamp(24px, 4.6vw, 48px);
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 2vw, 17px);
  max-width: 760px;
}

.grid {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

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

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

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border-radius: 18px;
  padding: 16px;
}

[data-theme='light'] .panel {
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
}

.panel h3,
.panel h4 {
  margin: 0;
  font-weight: 600;
}

.panel p {
  color: var(--muted);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(7, 14, 27, 0.42);
  min-width: 0;
  overflow: hidden;
}

[data-theme='light'] .kpi {
  background: rgba(18, 42, 80, 0.08);
}

.kpi .label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kpi .value {
  font-size: clamp(22px, 2vw, 32px);
  margin-top: 8px;
  font-weight: 700;
  line-height: 1.12;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.span-2 {
  grid-column: span 2;
}

label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #304f7e;
  background: #0a1426;
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}

[data-theme='light'] input,
[data-theme='light'] select,
[data-theme='light'] textarea {
  background: #ffffff;
  color: #0d1a31;
  border-color: #b9cae8;
}

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

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(98, 180, 255, 0.16);
}

.actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 740px;
  background: rgba(4, 11, 22, 0.45);
}

[data-theme='light'] table {
  background: rgba(255, 255, 255, 0.9);
}

th,
td {
  padding: 10px 11px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

th {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #9fb1d4;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
}

[data-theme='light'] th {
  color: #435472;
  background: rgba(13, 26, 49, 0.06);
}

tr:last-child td {
  border-bottom: 0;
}

.pill {
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pill.long {
  border-color: rgba(107, 230, 122, 0.6);
  color: #b7f7bf;
  background: rgba(107, 230, 122, 0.13);
}

.pill.short {
  border-color: rgba(255, 110, 127, 0.55);
  color: #ffd4db;
  background: rgba(255, 110, 127, 0.13);
}

.pill.neutral {
  border-color: rgba(98, 180, 255, 0.45);
  color: #d2e8ff;
  background: rgba(98, 180, 255, 0.14);
}

.bar {
  width: 100%;
  height: 10px;
  background: #0a1322;
  border-radius: 999px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #6be67a, #62b4ff);
}

.note {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid rgba(98, 180, 255, 0.35);
  color: #cfe8ff;
  background: rgba(98, 180, 255, 0.1);
  padding: 10px 12px;
  font-size: 13px;
}

[data-theme='light'] .note {
  color: #0f315c;
  background: rgba(47, 125, 230, 0.12);
  border-color: rgba(47, 125, 230, 0.35);
}

.footer-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
}

.link-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.link-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.link-card h4 {
  margin: 0;
  font-size: 16px;
}

.link-card p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.link-card:hover {
  border-color: #31548a;
}

@media (max-width: 1000px) {
  .grid.cols-3,
  .kpis,
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .grid.cols-2,
  .grid.cols-3,
  .kpis,
  .form-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .field.span-2 {
    grid-column: span 1;
  }

  .suite-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .suite-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
