:root {
  color: #172026;
  background: #f4f7f8;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

button,
input,
select {
  font: inherit;
}

.shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  min-height: 100vh;
}

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  color: #f7fbfc;
  background: linear-gradient(135deg, #0d343c 0%, #134f59 48%, #203d43 100%);
  background-position: center;
  background-size: cover;
}

.brand-panel h1 {
  max-width: 460px;
  margin: 0;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0;
}

.lede {
  max-width: 480px;
  margin: 24px 0 0;
  color: #d2e3e7;
  font-size: 18px;
  line-height: 1.6;
}

.work-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-form,
.vm-card {
  width: min(100%, 520px);
  padding: 32px;
  border: 1px solid #dce6e8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(19, 46, 53, 0.08);
}

.login-form {
  display: grid;
  gap: 20px;
}

h2,
h3 {
  margin: 0;
  color: #14272c;
  letter-spacing: 0;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #35707b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-panel .eyebrow {
  color: #9dd8df;
}

.muted {
  margin: 8px 0 0;
  color: #627177;
}

label {
  display: grid;
  gap: 8px;
  color: #26383e;
  font-size: 14px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c7d5d8;
  border-radius: 6px;
  padding: 10px 12px;
  color: #172026;
  background: #fbfdfd;
}

input:focus,
select:focus {
  border-color: #167a8b;
  outline: 3px solid rgba(22, 122, 139, 0.16);
}

button,
.primary-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

button,
.primary-link {
  color: #ffffff;
  background: #0f6d7b;
}

button:hover,
.primary-link:hover {
  background: #0b5964;
}

.secondary-button {
  color: #173037;
  border: 1px solid #c9d8db;
  background: #ffffff;
}

.secondary-button:hover {
  background: #eef5f6;
}

.error {
  margin: 0;
  color: #b42318;
  font-weight: 700;
}

.session-header {
  display: flex;
  width: min(100%, 520px);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.work-panel:has(.session-header) {
  flex-direction: column;
}

.work-panel:has(.dashboard),
.work-panel:has(.admin-panel) {
  align-items: flex-start;
}

.dashboard {
  display: grid;
  width: min(100%, 980px);
  gap: 18px;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 18px;
}

.primary-panel,
.side-panel {
  border: 1px solid #dce6e8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(19, 46, 53, 0.08);
}

.primary-panel {
  display: grid;
  gap: 24px;
  padding: 32px;
}

.side-panel {
  display: grid;
  align-content: start;
  gap: 28px;
  padding: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.stacked-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
}

.vm-card {
  display: grid;
  gap: 24px;
}

dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

dt {
  color: #65777d;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  color: #1f3036;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.compact-actions {
  justify-content: flex-end;
}

.admin-panel {
  display: grid;
  width: min(100%, 920px);
  gap: 18px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  border: 1px solid #dce6e8;
  border-radius: 8px;
  background: #ffffff;
}

.admin-form h3 {
  grid-column: 1 / -1;
}

.admin-form button {
  align-self: end;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid #dce6e8;
  border-radius: 8px;
  background: #ffffff;
}

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

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f3;
  text-align: left;
  vertical-align: top;
}

th {
  color: #52676d;
  font-size: 12px;
  text-transform: uppercase;
}

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

.notice {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #b9dcca;
  border-radius: 6px;
  color: #155b38;
  background: #eefaf3;
  font-weight: 700;
}

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

  .brand-panel {
    min-height: 34vh;
    padding: 36px 24px;
  }

  .brand-panel h1 {
    font-size: 44px;
  }

  .work-panel {
    align-items: start;
    padding: 24px;
  }

  .session-header {
    align-items: flex-start;
    flex-direction: column;
  }

  dl,
  .detail-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-form {
    grid-template-columns: 1fr;
  }
}
