:root {
  --bg: #f7f6f3;
  --panel: #fff;
  --ink: #24211f;
  --muted: #706b67;
  --line: #e4e0dc;
  --soft: #efede9;
  --accent: #e34b3f;
  --green: #24845d;
  --shadow: 0 18px 60px rgba(42, 35, 30, 0.1);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
button,
a {
  font: inherit;
}
button {
  cursor: pointer;
}
.shell {
  display: grid;
  grid-template-columns: 244px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 15px;
  border-right: 1px solid var(--line);
  background: #f3f1ed;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 10px 26px;
  font-weight: 720;
  font-size: 18px;
}
.brandmark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 6px 16px rgba(227, 75, 63, 0.24);
}
.nav-label {
  padding: 12px 12px 7px;
  color: #96908a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav {
  display: grid;
  gap: 3px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  color: #595450;
  background: transparent;
  text-align: left;
}
.nav button:hover {
  background: #ebe8e3;
}
.nav button.active {
  color: #211e1c;
  background: #e7e4df;
  font-weight: 650;
}
.nav svg {
  width: 18px;
  height: 18px;
}
.account {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 18px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
}
.account-name {
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-email {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.main {
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 246, 243, 0.88);
  backdrop-filter: blur(12px);
}
.topbar h1 {
  margin: 0;
  font-size: 18px;
}
.top-actions {
  display: flex;
  gap: 9px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #d8d3ce;
  border-radius: 8px;
  color: #332f2c;
  background: #fff;
  font-weight: 650;
  font-size: 13px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.button:hover {
  background: #faf9f7;
}
.button.primary {
  border-color: #282422;
  color: #fff;
  background: #282422;
}
.button.danger {
  border-color: #f0c8c4;
  color: #b8352b;
  background: #fff7f6;
}
.content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 38px 70px;
}
.intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.intro h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 26px;
}
.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.7);
}
.stat-label {
  color: var(--muted);
  font-size: 12px;
}
.stat-value {
  margin-top: 10px;
  font-size: 25px;
  font-weight: 720;
  letter-spacing: -0.03em;
}
.stat-note {
  margin-top: 4px;
  color: #99928d;
  font-size: 11px;
}
.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.02);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.panel-head h3 {
  margin: 0;
  font-size: 14px;
}
.search {
  width: 250px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: #faf9f7;
}
.search:focus {
  border-color: #aaa39d;
  background: #fff;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  padding: 11px 16px;
  color: #8a837e;
  background: #faf9f7;
  text-align: left;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
td {
  padding: 14px 16px;
  border-top: 1px solid #eeeae6;
  vertical-align: middle;
}
.machine {
  display: flex;
  align-items: center;
  gap: 11px;
}
.machine-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #625c57;
  background: #efede9;
}
.machine-name {
  font-weight: 650;
}
.sub {
  margin-top: 3px;
  color: #8c8580;
  font-size: 11px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 12px;
}
.status:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(36, 132, 93, 0.1);
}
.pill {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  color: #625c57;
  background: #efede9;
  font-size: 11px;
}
.empty {
  padding: 56px 24px;
  color: var(--muted);
  text-align: center;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}
.server-list,
.activity-list {
  display: grid;
}
.server,
.activity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid #eeeae6;
}
.server:first-child,
.activity:first-child {
  border-top: 0;
}
.server-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}
.server-copy {
  flex: 1;
}
.server-name {
  font-size: 13px;
  font-weight: 650;
}
.server-meta,
.activity-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}
.activity-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0eeea;
  color: #6f6863;
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  min-height: 100vh;
}
.auth-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  background: #fff;
}
.auth-login-shell {
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  min-height: min(720px, calc(100vh - 64px));
  text-align: center;
}
.auth-login-brand {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  color: #111;
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -0.05em;
}
.auth-login-brand small {
  color: #929292;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.auth-login-body {
  margin: auto 0;
  padding: 70px 0;
}
.auth-login-body h1 {
  margin: 0;
  color: #111;
  font-size: 27px;
  letter-spacing: -0.045em;
}
.auth-login-body > p {
  margin: 11px 0 34px;
  color: #777;
  font-size: 14px;
}
.google-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  color: #171717;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.google-login-button svg { width: 23px; height: 23px; flex: none; }
.google-login-button:hover { border-color: #aaa; background: #fafafa; }
.google-login-button:active { transform: scale(0.99); }
.auth-state {
  margin-top: 18px;
  min-height: 18px;
  color: #c34e32;
  font-size: 13px;
}
.auth-login-terms {
  margin: 0;
  color: #929292;
  font-size: 11px;
  line-height: 1.6;
}
@media (max-width: 520px) {
  .auth-login-page { padding: 28px 22px; place-items: stretch; }
  .auth-login-shell { min-height: calc(100vh - 56px); }
  .auth-login-brand { justify-content: flex-start; font-size: 24px; }
  .auth-login-body { padding: 56px 0; }
}
.login-art {
  position: relative;
  overflow: hidden;
  padding: 52px;
  background: #25211f;
  color: #fff;
}
.login-art:before,
.login-art:after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}
.login-art:before {
  width: 720px;
  height: 720px;
  left: -290px;
  top: 110px;
}
.login-art:after {
  width: 520px;
  height: 520px;
  left: -190px;
  top: 210px;
}
.network-map {
  position: absolute;
  inset: 0;
  opacity: 0.72;
  background-image:
    radial-gradient(circle at 18% 37%, #e34b3f 0 4px, transparent 5px),
    radial-gradient(circle at 54% 26%, #fff 0 3px, transparent 4px),
    radial-gradient(circle at 72% 64%, #fff 0 3px, transparent 4px),
    radial-gradient(circle at 35% 75%, #e34b3f 0 4px, transparent 5px),
    linear-gradient(
      128deg,
      transparent 37%,
      rgba(255, 255, 255, 0.12) 37.2%,
      transparent 37.5%
    ),
    linear-gradient(
      38deg,
      transparent 54%,
      rgba(255, 255, 255, 0.1) 54.2%,
      transparent 54.5%
    );
}
.login-brand,
.login-message {
  position: relative;
  z-index: 1;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 720;
}
.login-message {
  max-width: 530px;
  margin-top: 28vh;
}
.login-message h1 {
  margin: 0 0 18px;
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.login-message p {
  max-width: 470px;
  color: #cfc9c5;
  font-size: 16px;
  line-height: 1.65;
}
.login-side {
  display: grid;
  place-items: center;
  padding: 36px;
  background: #fbfaf8;
}
.login-card {
  width: min(410px, 100%);
}
.auth-product {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.login-card h2 {
  margin: 0 0 9px;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.login-card > p {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.55;
}
.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px;
  border: 1px solid #ccc6c0;
  border-radius: 9px;
  background: #fff;
  font-weight: 650;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.google-button:hover {
  background: #f7f5f2;
}
.google-g {
  font-size: 19px;
  font-weight: 800;
  color: #4285f4;
}
.login-foot {
  margin-top: 26px;
  color: #9a938e;
  font-size: 11px;
  line-height: 1.5;
}
.login-state {
  margin: 0 0 20px;
  padding: 11px 12px;
  border-radius: 8px;
  color: #685e56;
  background: #f0ede8;
  font-size: 12px;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  padding: 12px 16px;
  border-radius: 9px;
  color: #fff;
  background: #282422;
  box-shadow: var(--shadow);
  font-size: 13px;
}
.hidden {
  display: none !important;
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 76px 1fr;
  }
  .sidebar {
    padding: 18px 10px;
  }
  .brand {
    padding: 4px 10px 24px;
  }
  .brand span,
  .nav span,
  .nav-label,
  .account {
    display: none;
  }
  .nav button {
    justify-content: center;
  }
  .topbar {
    padding: 0 22px;
  }
  .content {
    padding: 28px 22px 60px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
}
@media (max-width: 600px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    z-index: 10;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: 67px;
    padding: 7px 10px;
    border-top: 1px solid var(--line);
    border-right: 0;
  }
  .brand,
  .nav-label,
  .account {
    display: none;
  }
  .nav {
    grid-template-columns: repeat(4, 1fr);
  }
  .nav button {
    padding: 9px 6px;
  }
  .nav span {
    display: block;
    font-size: 10px;
  }
  .topbar {
    height: 60px;
    padding: 0 16px;
  }
  .content {
    padding: 22px 14px 92px;
  }
  .intro {
    display: block;
  }
  .intro .button {
    margin-top: 16px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 14px;
  }
  .stat-value {
    font-size: 21px;
  }
  .panel-head {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }
  .search {
    width: 100%;
  }
  .login-side {
    padding: 24px;
  }
  .login-card h2 {
    font-size: 25px;
  }
}
