@font-face {
  font-family: "Geist";
  src: url("/static/fonts/geist-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/static/fonts/geist-mono-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  --background: #f6f5f1;
  --foreground: #17211f;
  --ink: #17211f;
  --muted: #66726e;
  --line: #dcd8ce;
  --surface: #ffffff;
  --surface-muted: #f6f5f1;
  --teal: #0f766e;
  --teal-strong: #0b5f59;
  --teal-soft: #e4f3ef;
  --blue: #1d4ed8;
  --blue-soft: #e7eefc;
  --amber: #b7791f;
  --warn: #9a5b10;
  --warn-soft: #fff2d9;
  --warn-line: #f2d28f;
  --good: #147a4b;
  --good-soft: #e7f5ed;
  --good-line: #b7dec7;
  --bad: #b42318;
  --bad-soft: #fde8e7;
  --bad-line: #f3b8b3;
  --dark: #101513;
  --shadow-sm: 0 1px 2px rgba(23, 33, 31, 0.05);
  --shadow-md: 0 18px 45px rgba(23, 33, 31, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--background);
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--foreground);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input,
select,
textarea,
a {
  outline-color: var(--teal);
  outline-offset: 3px;
}

button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

button:hover:not(:disabled) {
  background: #000;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

button.secondary,
button.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

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

button.secondary:hover:not(:disabled),
button.ghost:hover:not(:disabled) {
  background: #fff;
  border-color: var(--teal);
  color: var(--teal-strong);
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  font-size: 56px;
  line-height: 1.02;
  font-weight: 680;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 680;
}

h3 {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 680;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 520;
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 112px;
  padding: 11px 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
  outline: none;
}

.brand-mark {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-mark img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.brand-mark strong,
.brand-mark span {
  display: block;
}

.brand-mark strong {
  color: inherit;
  font-size: 16px;
  font-weight: 680;
  line-height: 1.18;
}

.brand-mark span {
  max-width: 260px;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}

.login-screen::before {
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 520px;
  height: 520px;
  background: url("/static/logo.svg") center / contain no-repeat;
  content: "";
  opacity: 0.055;
  transform: rotate(-8deg);
}

.login-screen::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  opacity: 0.18;
  pointer-events: none;
}

.login-screen > * {
  position: relative;
  z-index: 1;
}

.login-header {
  display: flex;
  width: min(1280px, 100%);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 28px;
}

.login-header .brand-mark span,
.login-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.host-pill,
.secure-pill,
.live-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  white-space: nowrap;
}

.host-pill {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  padding: 8px 11px;
}

.login-grid {
  display: grid;
  width: min(1280px, 100%);
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) 460px;
  align-items: center;
  gap: 48px;
  padding: 44px 28px 64px;
}

.login-copy {
  max-width: 760px;
}

.login-copy h1 {
  max-width: 690px;
  margin: 22px 0 20px;
  color: #fff;
}

.login-copy p {
  max-width: 620px;
  margin-bottom: 30px;
  font-size: 16px;
  font-weight: 430;
  line-height: 1.72;
}

.live-chip {
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  padding: 7px 11px;
  backdrop-filter: blur(12px);
}

.live-chip i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--teal);
  box-shadow: 0 0 14px rgba(15, 118, 110, 0.9);
}

.login-metrics {
  display: grid;
  max-width: 760px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.login-metrics article {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  padding: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
}

.login-metrics span {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 650;
}

.login-metrics strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 680;
  line-height: 1.2;
}

.login-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.login-card-head {
  position: relative;
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding: 28px;
}

.lock-tile {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(23, 33, 31, 0.18);
}

.secure-pill {
  position: absolute;
  top: 28px;
  right: 28px;
  border: 1px solid var(--good-line);
  background: var(--good-soft);
  color: var(--good);
  padding: 6px 10px;
}

.login-card-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
}

.login-card-head h2 {
  margin: 2px 0 0;
  font-size: 26px;
  font-weight: 680;
}

.login-card-body {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.login-card-body input {
  min-height: 48px;
}

.login-card-body button {
  min-height: 48px;
  margin-top: 2px;
  background: var(--ink);
}

.login-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
}

.portal-shell {
  min-height: 100vh;
  background: var(--surface-muted);
}

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  padding: 16px max(22px, calc((100vw - 1280px) / 2 + 40px));
  backdrop-filter: blur(14px);
}

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

.portal-layout {
  display: grid;
  width: min(1280px, 100%);
  margin: 0 auto;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 40px 48px;
}

.side-nav {
  position: sticky;
  top: 98px;
  align-self: start;
  display: grid;
  gap: 14px;
}

.side-nav-card,
.boundary-note,
.panel,
.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.side-nav-card {
  padding: 12px;
}

.side-nav-meta {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  padding: 2px 8px 12px;
}

.side-nav-meta p {
  margin: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.side-nav-meta span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
}

nav {
  display: grid;
  gap: 4px;
}

.nav-item {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.nav-item::before {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  content: attr(data-icon);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 750;
}

.nav-item.active,
.nav-item:hover {
  background: var(--ink);
  color: #fff;
}

.nav-item.active::before,
.nav-item:hover::before {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.boundary-note {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.boundary-note strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 680;
}

.boundary-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 480;
  line-height: 1.45;
}

.content {
  display: grid;
  min-width: 0;
  gap: 20px;
}

.page-heading {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.page-heading h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 680;
  line-height: 1.08;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  padding: 0 13px;
  white-space: nowrap;
}

.status-pill.ok {
  border-color: var(--good-line);
  background: var(--good-soft);
  color: var(--good);
}

.view {
  display: none;
}

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

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

.metric {
  position: relative;
  display: grid;
  min-height: 126px;
  align-content: space-between;
  padding: 16px;
}

.metric::before {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--teal);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.metric:nth-child(1)::before {
  content: "K";
}

.metric:nth-child(2)::before {
  content: "AI";
}

.metric:nth-child(3)::before {
  content: "SRV";
  font-size: 10px;
}

.metric:nth-child(4)::before {
  content: "EUR";
  font-size: 10px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.metric strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 690;
  line-height: 1.05;
  word-break: break-word;
}

.split,
.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.panel {
  min-width: 0;
  padding: 18px;
}

.panel-heading {
  display: flex;
  margin-bottom: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-heading span,
.panel-heading strong {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

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

td {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

td strong {
  font-weight: 660;
}

td span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

th {
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.table-empty {
  color: var(--muted);
  padding: 26px 10px;
  text-align: center;
}

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

.item-card,
.billing-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
}

.item-card header,
.billing-card header {
  display: flex;
  margin-bottom: 9px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.item-card strong,
.billing-card strong {
  font-weight: 660;
}

.item-card p,
.billing-card p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 480;
  line-height: 1.45;
}

.server-card p,
.preview-card p,
.item-card p {
  word-break: break-word;
}

.server-facts {
  display: grid;
  gap: 8px;
  margin: 0;
}

.server-facts div,
.sync-status-row {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: 12px;
}

.server-facts dt,
.sync-status-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}

.server-facts dd,
.sync-status-row strong {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 680;
  overflow-wrap: anywhere;
  text-align: right;
}

.sync-status {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  padding: 14px;
  margin-bottom: 16px;
}

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

.button-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  padding: 0 12px;
  text-decoration: none;
}

.button-link:hover {
  border-color: var(--teal);
  color: var(--teal-strong);
}

.button-row button {
  min-height: 36px;
  font-size: 13px;
}

.badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--good-line);
  border-radius: 999px;
  background: var(--good-soft);
  color: var(--good);
  font-size: 12px;
  font-weight: 700;
  padding: 0 8px;
  white-space: nowrap;
}

.badge.warn {
  border-color: var(--warn-line);
  background: var(--warn-soft);
  color: var(--warn);
}

.badge.blue {
  border-color: #c5d2f8;
  background: var(--blue-soft);
  color: var(--blue);
}

.empty-state {
  display: grid;
  gap: 5px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  color: var(--muted);
  padding: 22px;
}

.empty-state strong {
  color: var(--ink);
  font-weight: 660;
}

.empty-state span {
  font-size: 14px;
}

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

.form-grid h2,
.span-two {
  grid-column: 1 / -1;
}

.form-grid h2 {
  margin: 0 0 2px;
}

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

.form-grid button[type="submit"] {
  justify-self: start;
  min-width: 170px;
}

.billing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.billing-card dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.billing-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.billing-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
}

.billing-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 680;
  text-align: right;
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.readiness-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 13px;
}

.readiness-card header {
  display: flex;
  margin-bottom: 8px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.readiness-card strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 690;
}

.readiness-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 480;
  line-height: 1.45;
}

.readiness-card.blocked {
  border-color: var(--warn-line);
  background: var(--warn-soft);
}

.policy-list {
  display: grid;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  gap: 10px;
  font-size: 14px;
}

.policy-list code {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  padding: 1px 5px;
}

.preview-empty,
.preview-card {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.preview-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.preview-card h3 {
  margin: 18px 0 0;
  font-size: 14px;
}

.preview-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.preview-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.preview-card a {
  color: var(--teal-strong);
  overflow-wrap: anywhere;
}

.prompt-preview {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  color: var(--ink);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  padding: 12px;
  white-space: pre-wrap;
}

.task-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  padding: 12px;
}

.task-row strong,
.task-row span {
  display: block;
}

.task-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.preview-meta span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--good-line);
  border-radius: 999px;
  background: var(--good-soft);
  color: var(--teal-strong);
  font-size: 12px;
  font-weight: 700;
  padding: 0 8px;
}

.toast-host {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: grid;
  max-width: min(360px, calc(100vw - 32px));
  gap: 10px;
}

.toast {
  border: 1px solid var(--good-line);
  border-radius: var(--radius);
  background: var(--good-soft);
  color: var(--good);
  box-shadow: var(--shadow-md);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 650;
}

.toast.error {
  border-color: var(--bad-line);
  background: var(--bad-soft);
  color: var(--bad);
}

@media (max-width: 1180px) {
  h1 {
    font-size: 48px;
  }

  .portal-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    padding-inline: 24px;
  }

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

@media (max-width: 980px) {
  h1 {
    font-size: 42px;
  }

  .login-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 30px;
    padding-top: 36px;
  }

  .login-copy,
  .login-copy h1,
  .login-copy p {
    max-width: none;
  }

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

  .side-nav {
    position: static;
  }

  .side-nav-card {
    padding: 10px;
  }

  .side-nav-meta {
    display: none;
  }

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

  .nav-item {
    justify-content: center;
  }

  .boundary-note {
    display: none;
  }

  .split,
  .grid-two,
  .billing-grid,
  .readiness-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: 34px;
  }

  .login-screen::before {
    width: 360px;
    height: 360px;
  }

  .login-header,
  .portal-topbar,
  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .login-header {
    padding: 16px;
  }

  .host-pill {
    width: fit-content;
  }

  .login-grid {
    padding: 24px 16px 36px;
    gap: 22px;
  }

  .login-metrics,
  .metric-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .login-copy h1 {
    margin: 16px 0 12px;
  }

  .login-copy p {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.6;
  }

  .login-metrics {
    display: none;
  }

  .login-card-head,
  .login-card-body {
    padding: 20px;
  }

  .secure-pill {
    position: static;
    width: fit-content;
    margin-top: 8px;
  }

  .portal-topbar {
    padding: 14px;
  }

  .top-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-actions button {
    width: 100%;
  }

  .portal-layout {
    padding: 18px 14px 34px;
  }

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

  .nav-item {
    min-height: 42px;
    padding-inline: 10px;
    justify-content: flex-start;
  }

  .nav-item::before {
    width: 22px;
    height: 22px;
  }

  .page-heading h1 {
    font-size: 30px;
  }

  .panel {
    padding: 14px;
  }

  .panel-heading,
  .form-heading-row,
  .item-card header,
  .billing-card header,
  .billing-card dl div {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .form-grid button[type="submit"] {
    width: 100%;
    justify-self: stretch;
  }

  th,
  td {
    padding: 11px 10px;
  }

  .toast-host {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }
}
