:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --green: #039855;
  --red: #d92d20;
  --shadow: 0 22px 70px rgba(16, 24, 40, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.92), rgba(245,247,251,0.95) 48%),
    linear-gradient(180deg, #ffffff, #f5f7fb);
}

.auth-shell {
  width: min(430px, 100%);
}

.brand {
  text-align: center;
  margin-bottom: 24px;
}

.brand h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.brand p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.card {
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f2f4f7;
  padding: 5px;
  border-radius: 16px;
  margin-bottom: 18px;
}

.tab {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.tab.active {
  background: white;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(16,24,40,0.06);
}

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

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

label {
  font-size: 13px;
  color: var(--muted);
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  background: #fff;
  color: var(--text);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.10);
}

.primary {
  width: 100%;
  border-radius: 14px;
  padding: 13px 14px;
  background: var(--blue);
  color: white;
  font-weight: 800;
}

.secondary {
  border-radius: 14px;
  padding: 11px 13px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
}

.ghost {
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.message {
  min-height: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.message.bad {
  color: var(--red);
}

.message.ok {
  color: var(--green);
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--bg);
}

.sidebar {
  background: white;
  border-right: 1px solid var(--line);
  padding: 24px;
}

.sidebar h1 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.sidebar p {
  margin: 0 0 28px;
  color: var(--muted);
}

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

.nav a,
.nav button {
  text-decoration: none;
  text-align: left;
  border-radius: 14px;
  padding: 12px 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.nav a.active {
  background: var(--blue-soft);
  color: var(--blue);
}

.main {
  padding: 30px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.topbar h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.topbar p {
  margin: 7px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr);
}

.stat {
  font-size: 34px;
  font-weight: 850;
  letter-spacing: -0.05em;
  margin-top: 6px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

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

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.price {
  font-weight: 850;
  font-size: 22px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 13px 8px;
  vertical-align: top;
}

.table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: #f2f4f7;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.badge.ok {
  background: #ecfdf3;
  color: #027a48;
}

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  word-break: break-all;
}

.notice {
  padding: 12px 14px;
  border-radius: 16px;
  background: #fffbeb;
  border: 1px solid #fef0c7;
  color: #92400e;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
  }

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

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

  .main {
    padding: 18px;
  }

  .topbar {
    display: grid;
  }
}

/* AEVLO_PACK17M_CABINET_UI_CSS */

.sidebar-note {
  margin-top: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.sidebar-note strong {
  color: var(--text);
}

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

.cabinet-note {
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.96));
  box-shadow: 0 12px 38px rgba(16, 24, 40, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cabinet-note strong {
  display: block;
  margin-bottom: 4px;
}

.cabinet-note p {
  margin: 0;
  color: var(--muted);
}

.kbd {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--muted);
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.cabinet-grid {
  align-items: start;
}

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

.metric-card {
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 14px 45px rgba(16, 24, 40, 0.06);
  display: grid;
  gap: 5px;
}

.metric-card span,
.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-title h3 {
  margin-bottom: 4px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.total-row {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.soft-card {
  background: #f8fafc;
  box-shadow: none;
}

@media (max-width: 1120px) {
  .mini-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .cabinet-note {
    display: grid;
  }

  .pill-row {
    justify-content: flex-start;
  }
}
