.console-body {
  background: #0f1510;
}
.auth-shell {
  width: min(460px, calc(100% - 36px));
  margin: max(32px, 9vh) auto 35px;
}
.auth-shell > .brand { margin-bottom: 24px; }
.auth-card, .panel-card {
  padding: 24px 26px;
  background: #171e17;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.auth-card h1, .workspace h1 {
  margin: 0;
  font-weight: 780;
  font-size: clamp(32px, 4vw, 51px);
  line-height: 1.07;
  letter-spacing: -.064em;
}
.auth-card p, .panel-card p { color: var(--muted); }
.auth-card form, .checkout-form { display: grid; gap: 10px; }
.auth-card .button { margin-top: 6px; }
.google-login { width: 100%; margin-bottom: 16px; }
.auth-card .note { margin-block: 0 14px; }
.auth-bot { color: var(--lime); font-size: 14px; }
.auth-card label, .checkout-form label { font-weight: 650; font-size: 13px; }
.auth-card input, .checkout-form input {
  border: 1px solid #495746;
  border-radius: 8px;
  background: #0d140f;
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
  width: 100%;
}
.auth-card input:focus-visible, .checkout-form input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}
.console-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 43px;
  padding: 23px 15px 17px;
  background: #141b14;
  border-right: 1px solid var(--line);
}
.sidebar .brand { margin-inline: 9px; }
.sidebar nav, .sidebar-bottom { display: grid; gap: 6px; }
.sidebar-bottom { margin-top: auto; }
.sidebar nav a, .sidebar-bottom a, .sidebar-bottom button {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  text-align: start;
  font-size: 14px;
  background: transparent;
}
.sidebar-bottom button { cursor: pointer; }
.sidebar b { font-weight: 650; }
.sidebar nav span, .sidebar-bottom span {
  flex: 0 0 21px;
  color: #d4e154;
  font: 650 17px/1 var(--mono);
  text-align: center;
}
.sidebar a:hover, .sidebar button:hover { background: #222b1d; color: var(--text); }
.sidebar a[aria-current="page"] {
  color: var(--lime);
  background: #272f1b;
  border-color: #455331;
}
.workspace { width: min(100%, 1370px); padding: 17px clamp(20px, 4vw, 70px) 64px; min-width: 0; }
.workspace-top {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
}
.workspace-top p { color: var(--muted); margin: 0; font-weight: 650; font-size: 13px; }
.workspace-top button { min-height: 35px; padding: 6px 12px; }
.panel-status { margin: 8px 0; min-height: 1.5em; color: #e0e9d0; font-size: 13px; }
.panel-status[data-error] { color: #ffbbad; }
.workspace h1 { margin: 7px 0 25px; }
.workspace h1:focus { outline: none; }
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.metric {
  min-width: 0;
  min-height: 135px;
  background: #1a2219;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px;
}
.metric:first-child { background: #272f1b; border-color: #485637; }
.metric p { margin: 0; color: var(--muted); font-size: 13px; }
.metric strong {
  display: block;
  margin-top: 10px;
  letter-spacing: -.04em;
  font-size: clamp(22px, 3.5vw, 39px);
  line-height: 1.12;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.metric:first-child strong { color: var(--lime); }
.panel-card + .panel-card { margin-top: 14px; }
.panel-card h2 { font-size: 23px; line-height: 1.2; letter-spacing: -.038em; }
.panel-card-header, .economy-card {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}
.inline-action { color: var(--lime); font-size: 13px; font-weight: 700; }
.inline-action:hover { text-decoration: underline; }
.budget { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 16px 0 0; font-size: 14px; }
.budget dt { color: var(--muted); }
.budget dd { margin: 0; font-variant-numeric: tabular-nums; }
.economy-card button[aria-pressed="true"] { border-color: #789048; color: var(--lime); }
.grid-scroll { overflow-x: auto; margin-top: 14px; }
.data-table th, .data-table td { padding: 10px 12px; font-size: 14px; white-space: nowrap; }
.data-table tbody th { width: auto; color: var(--text); }
.data-table td:last-child { color: #d9e4c9; }
.data-table .empty { padding-block: 17px; color: var(--muted); }
.checkout-form { max-width: 430px; margin-top: 12px; }
.checkout-input, .command-line { display: flex; gap: 10px; }
.checkout-input button, .command-line button { white-space: nowrap; }
.amount-choices, .client-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.amount-choices button, .client-choices button {
  color: var(--text);
  background: #121b13;
  border: 1px solid #455241;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.amount-choices button:hover, .client-choices button:hover, .client-choices button[aria-pressed="true"] {
  color: var(--lime);
  border-color: #849452;
}
.command-line { align-items: center; margin-top: 11px; }
.command-line pre {
  min-height: 0;
  min-width: 0;
  padding: 11px 12px;
  background: #0c140e;
  border: 1px solid var(--line);
  border-radius: 8px;
  flex: 1;
}
.panel-card details { margin-block: 12px 0; }
.panel-card summary { color: var(--lime); cursor: pointer; }
.issued-key {
  display: block; max-width: 100%; overflow-wrap: anywhere; padding: 10px 12px; margin-block: 10px;
  background: #0c140e; border: 1px solid var(--line); border-radius: 8px;
}
.console-body button:disabled { opacity: .62; cursor: wait; }
@media (max-width: 850px) {
  .console-layout { grid-template-columns: 174px minmax(0, 1fr); }
  .workspace { padding-inline: 18px; }
  .metrics { gap: 8px; }
  .metric { padding: 12px; min-height: 110px; }
}
@media (max-width: 650px) {
  .console-layout { grid-template-columns: 54px minmax(0, 1fr); }
  .sidebar { padding-inline: 6px; }
  .sidebar .brand { margin: 0 auto; }
  .sidebar-brand, .sidebar b { display: none; }
  .sidebar nav a, .sidebar-bottom a, .sidebar-bottom button { padding: 9px; }
  .workspace { padding: 12px 12px 35px; }
  .metrics { grid-template-columns: 1fr; }
  .metric { min-height: 0; }
  .panel-card { padding: 15px 13px; }
  .panel-card-header, .economy-card, .command-line { flex-wrap: wrap; }
  .command-line pre { flex-basis: 100%; }
  .checkout-input { flex-wrap: wrap; }
}
