.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.login-story {
  background: var(--navy);
  color: white;
  padding: 3.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-story h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  max-width: 550px;
  line-height: 1.08;
  margin: 4rem 0 1.5rem;
  letter-spacing: -0.12rem;
}
.login-story > div > p {
  max-width: 470px;
  color: #d2def5;
}
.host-list {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}
.host-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #ffffff22;
}
.host-row .icon {
  color: #32bddd;
  width: 25px;
  height: 25px;
}
.host-row small {
  display: block;
  color: #d2def5;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}
.login-card {
  width: 100%;
  max-width: 440px;
}
.login-card h2 {
  font-size: 1.9rem;
  letter-spacing: -0.06rem;
  margin-bottom: 0.65rem;
}
.login-card > p {
  color: var(--muted);
  margin-bottom: 2rem;
}
.login-card .btn {
  width: 100%;
  margin-top: 0.4rem;
}
.login-foot {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.two-col {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.4rem;
}
.text-block {
  display: grid;
  gap: 1rem;
}
.text-block p {
  color: var(--muted);
  font-size: 0.875rem;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.detail-item small {
  display: block;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.detail-item strong {
  font-size: 0.875rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: steps;
}
.steps > div {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}
.steps > div::before {
  counter-increment: steps;
  content: counter(steps);
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: #edf3f6;
  color: #49617d;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
}
.steps strong {
  color: var(--navy);
}
@media (min-width: 1600px) {
  .content {
    padding: 2.5rem 3rem;
  }
  .host-card p {
    min-height: 0;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 205px 1fr;
  }
  .topbar,
  .content {
    padding-left: 1.3rem;
    padding-right: 1.3rem;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .host-cards {
    grid-template-columns: 1fr;
  }
  .host-card p {
    min-height: 0;
  }
  .host-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
  }
  .host-card-top {
    grid-row: 1/3;
    display: block;
    margin: 0;
  }
  .host-card-top .host-icon {
    margin-bottom: 0.7rem;
  }
  .host-card-footer {
    grid-column: 2;
  }
  .host-card h3 {
    grid-column: 2;
    grid-row: 1;
  }
  .host-card p {
    grid-column: 2;
    margin: 0.4rem 0;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 3rem 2rem;
  }
}
@media (max-width: 720px) {
  .login {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 1.5rem;
  }
  .login-story h1 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    letter-spacing: -0.06rem;
  }
  .host-list,
  .login-story > small {
    display: none;
  }
  .login-form {
    padding: 2rem 1.4rem;
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    width: 245px;
    z-index: 5;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 15px 0 60px #101c3644;
  }
  .topbar .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: auto;
    min-height: 68px;
    padding: 0.8rem 1rem;
    flex-wrap: wrap;
  }
  .breadcrumb {
    display: none;
  }
  .topbar-right {
    margin-left: auto;
    gap: 0.5rem;
  }
  .topbar-right .btn {
    padding: 0.5rem;
    font-size: 0.8125rem;
  }
  .content {
    padding: 1.4rem 1rem;
  }
  .page-title {
    flex-direction: column;
  }
  .page-title .actions {
    width: 100%;
  }
  .metrics {
    gap: 0.65rem;
  }
  .metric {
    padding: 1rem;
  }
  .metric strong {
    font-size: 1.7rem;
  }
  .panel-head {
    padding: 1rem;
  }
  .filterbar {
    padding: 1rem;
    flex-wrap: wrap;
  }
  .filterbar input {
    max-width: none;
  }
  .host-card {
    display: block;
  }
  .host-card-top {
    display: flex;
    margin-bottom: 0.6rem;
  }
  .host-card-top .host-icon {
    margin: 0;
  }
  .host-card-footer {
    margin-top: 0.8rem;
  }
  .banner {
    align-items: flex-start;
    flex-direction: column;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  th,
  td {
    padding: 0.8rem 1rem;
  }
  .dialog-content {
    padding: 1.1rem;
  }
  .connection {
    font-size: 0.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
/* Praeto site theme — mirrors praeto.dev's navy / royal-blue / pale-blue hierarchy. */
.btn {
  border-radius: 4px;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
.btn:hover {
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px #101c3614;
}
.btn:not(.secondary):not(.ghost):not(.danger) {
  background: var(--ink);
}
.btn:not(.secondary):not(.ghost):not(.danger):hover {
  background: var(--accent-strong);
}
.btn.teal {
  background: var(--accent) !important;
}
.btn.teal:hover {
  background: var(--accent-strong) !important;
}
.btn.secondary:hover {
  background: var(--soft);
  border-color: #bdd4f4;
}
.brand-mark {
  background: #ffffff;
  color: var(--ink);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px #ffffff2b;
}
.login-story {
  background: linear-gradient(155deg, #101c36 0%, #183666 70%, #17346c 100%);
}
.login-story > div > p {
  color: #d2def5;
}
.host-row {
  border-top-color: #ffffff24;
}
.host-row .icon {
  color: #68d6ee;
}
.host-row small {
  color: #c8d6ef;
}
.login-form {
  background: var(--soft);
}
.login-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2rem;
  box-shadow: 0 18px 55px #101c3610;
}
.eyebrow {
  color: var(--accent);
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #bdd4f4;
  border-color: var(--accent);
}
.sidebar {
  background: var(--ink);
  color: #c8d6ef;
  border-right: 1px solid #183666;
}
.nav button {
  color: #d2def5;
  border-radius: 4px;
}
.nav button:hover {
  background: #ffffff12;
  color: #ffffff;
}
.nav button.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 5px 16px #08173d33;
}
.nav .count {
  background: #183fa3;
  color: #ffffff;
}
.avatar {
  background: #183666;
}
.topbar {
  background: var(--paper);
}
.content {
  background: var(--soft);
}
.metric,
.panel,
.host-card {
  border-color: var(--line);
  border-radius: 5px;
  box-shadow: 0 4px 18px #101c3608;
}
.metric {
  border-top: 2px solid #d6e4f6;
}
.metric-label .icon {
  color: var(--accent);
}
.host-card {
  border-top-color: #667998;
}
.host-card.praeto_hosted {
  border-top-color: var(--accent);
}
.host-card.msp_hosted {
  border-top-color: var(--cyan);
}
.host-icon {
  background: var(--soft);
  color: #49617d;
  border-radius: 4px;
}
.praeto_hosted .host-icon {
  background: var(--soft-blue);
  color: var(--accent);
}
.msp_hosted .host-icon {
  background: #f0faff;
  color: #194ba8;
}
.host-card-footer {
  border-top-color: #e7edf6;
}
th {
  background: #f7faff;
}
td {
  border-bottom-color: #e7edf6;
}
.link-button,
.table-title:hover {
  color: var(--accent);
}
.notice {
  border-left-color: var(--accent);
  background: var(--soft-blue);
}
.steps > div::before {
  background: var(--soft-blue);
  color: var(--accent);
}
.close,
.secret {
  background: var(--soft);
}
#toast {
  background: var(--ink);
}
@media (max-width: 720px) {
  .sidebar.open {
    box-shadow: 15px 0 60px #101c3644;
  }
  .login-card {
    padding: 1.5rem;
  }
}
.outcome-run {
  max-width: 1200px;
  margin: auto;
}
.outcome-run .run-section {
  padding: 24px;
  margin: 20px 0;
  border: 1px solid var(--border, #ddd);
  border-radius: 12px;
}
.outcome-run .run-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.outcome-run dt {
  font-size: 12px;
  color: var(--muted, #777);
}
.outcome-run dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.outcome-run .run-record {
  border-top: 1px solid var(--border, #ddd);
  padding: 16px 0;
}
.outcome-run pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.outcome-run .run-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.outcome-run .run-timeline {
  padding-left: 24px;
}
.outcome-run .run-timeline li {
  padding: 8px 0 20px;
}
.dialog-content .run-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.dialog-content .run-fields dt {
  font-size: 12px;
  color: var(--muted, #777);
}
.dialog-content .run-fields dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
