:root {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #f3f7f4;
  background: #07110e;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(47, 208, 142, 0.14), transparent 32rem),
    linear-gradient(145deg, #07110e 0%, #091914 52%, #07110e 100%);
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 38px;
}

.topbar,
.brand,
.topbar-actions,
footer {
  display: flex;
  align-items: center;
}

.topbar,
footer {
  justify-content: space-between;
}

.topbar {
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(206, 240, 222, 0.13);
}

.brand {
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(75, 231, 164, 0.48);
  border-radius: 12px;
  color: #6ff0b6;
  font-weight: 800;
}

.brand div {
  display: grid;
  gap: 2px;
}

.brand span,
footer,
.status {
  color: #91a99e;
  font-size: 0.8rem;
}

.status {
  padding: 8px 12px;
  border: 1px solid rgba(206, 240, 222, 0.14);
  border-radius: 999px;
}

.status.ok {
  color: #75efb7;
  border-color: rgba(75, 231, 164, 0.38);
  background: rgba(47, 208, 142, 0.08);
}

.status.error {
  color: #ff9a8d;
  border-color: rgba(255, 117, 99, 0.4);
}

.hidden {
  display: none !important;
}

.topbar-actions {
  gap: 10px;
}

.button,
.icon-button,
.text-button,
input,
select {
  font: inherit;
}

.button,
.icon-button,
.text-button {
  cursor: pointer;
}

.button {
  padding: 10px 16px;
  border: 1px solid rgba(206, 240, 222, 0.2);
  border-radius: 10px;
  color: #eaf4ef;
  background: rgba(255, 255, 255, 0.04);
}

.button.primary {
  color: #03110b;
  border-color: #61e9aa;
  background: #61e9aa;
  font-weight: 750;
}

.button.ghost {
  background: transparent;
}

.hero {
  max-width: 900px;
  padding: 110px 0 90px;
}

.eyebrow,
.number {
  color: #61e9aa;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 880px;
  margin: 18px 0 24px;
  font-size: clamp(2.7rem, 7vw, 6.3rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.lede {
  max-width: 690px;
  margin: 0;
  color: #a9beb4;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(206, 240, 222, 0.13);
  border-bottom: 1px solid rgba(206, 240, 222, 0.13);
}

article {
  min-height: 210px;
  padding: 30px;
}

article + article {
  border-left: 1px solid rgba(206, 240, 222, 0.13);
}

h2 {
  margin: 34px 0 10px;
  font-size: 1.1rem;
}

article p {
  margin: 0;
  color: #91a99e;
  line-height: 1.55;
}

footer {
  padding-top: 28px;
}

.auth-panel,
.dashboard {
  margin: 70px 0 30px;
}

.auth-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 48px;
  border: 1px solid rgba(206, 240, 222, 0.14);
  border-radius: 22px;
  background: rgba(10, 27, 21, 0.72);
}

.auth-panel h2,
.dashboard h2 {
  margin: 10px 0;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
}

.auth-panel p {
  color: #91a99e;
}

form,
label {
  display: grid;
}

form {
  gap: 18px;
}

label {
  gap: 7px;
  color: #b9cbc2;
  font-size: 0.86rem;
}

input,
select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid rgba(206, 240, 222, 0.18);
  border-radius: 9px;
  outline: none;
  color: #edf7f2;
  background: #081712;
}

input:focus,
select:focus {
  border-color: #61e9aa;
  box-shadow: 0 0 0 3px rgba(97, 233, 170, 0.1);
}

.form-error {
  margin: 0;
  color: #ff9a8d !important;
  font-size: 0.85rem;
}

.dialog-result {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(97, 233, 170, 0.3);
  border-radius: 9px;
  color: #9ef4ca;
  background: rgba(97, 233, 170, 0.07);
  overflow-wrap: anywhere;
}

.dashboard-head,
.panel-head,
.section-title,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.select-label {
  min-width: 250px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 18px;
  margin-top: 30px;
}

.panel {
  min-height: 440px;
  padding: 22px;
  border: 1px solid rgba(206, 240, 222, 0.13);
  border-radius: 16px;
  background: rgba(8, 23, 18, 0.74);
}

.panel h3,
.panel h4 {
  margin: 0;
}

.icon-button,
.text-button {
  border: 0;
  color: #61e9aa;
  background: transparent;
}

.icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(97, 233, 170, 0.32);
  border-radius: 8px;
  font-size: 1.2rem;
}

.text-button {
  padding: 4px 0;
  font-size: 0.78rem;
}

.list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.list-item {
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(206, 240, 222, 0.1);
  border-radius: 10px;
  color: #dbe9e2;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}

button.list-item {
  cursor: pointer;
}

.list-item.active {
  border-color: rgba(97, 233, 170, 0.5);
  background: rgba(97, 233, 170, 0.08);
}

.list-item strong,
.list-item span {
  display: block;
}

.list-item span,
.muted,
.empty-state {
  color: #829b8f;
  font-size: 0.8rem;
}

.workspace-panel {
  padding: 28px;
}

.empty-state {
  display: grid;
  min-height: 370px;
  place-items: center;
}

.badge {
  padding: 6px 9px;
  border-radius: 999px;
  color: #71eeb5;
  background: rgba(97, 233, 170, 0.1);
  font-size: 0.75rem;
}

.work-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 30px;
}

.operations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid rgba(206, 240, 222, 0.1);
}

.side-section {
  margin-top: 30px;
}

.live-indicator {
  color: #829b8f;
  font-size: 0.72rem;
}

.live-indicator.online {
  color: #61e9aa;
}

.section-title {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(206, 240, 222, 0.1);
}

dialog {
  width: min(520px, calc(100% - 30px));
  padding: 0;
  border: 1px solid rgba(206, 240, 222, 0.18);
  border-radius: 16px;
  color: #edf7f2;
  background: #0a1a14;
}

dialog::backdrop {
  background: rgba(0, 8, 5, 0.76);
  backdrop-filter: blur(5px);
}

dialog form {
  padding: 24px;
}

.dialog-actions {
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding: 78px 0 60px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  article {
    min-height: auto;
  }

  article + article {
    border-top: 1px solid rgba(206, 240, 222, 0.13);
    border-left: 0;
  }

  .auth-panel,
  .dashboard-grid,
  .work-columns,
  .operations-grid {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    gap: 28px;
    padding: 28px;
  }

  .dashboard-head {
    align-items: stretch;
    flex-direction: column;
  }
}
