:root {
  color-scheme: dark;
  --bg: #090b0c;
  --panel: #111416;
  --line: #303538;
  --fg: #e8ebed;
  --dim: #7c858a;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 14px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* The same heading, three-column card grid, and close footer as the 11-card layout. */
.site {
  width: min(1004px, calc(100% - 48px));
  margin: 0 auto;
  min-height: calc(100vh - 85px);
  display: flex;
  flex-direction: column;
  padding-top: clamp(80px, 17.75vh, 160px);
  padding-bottom: 0;
}
h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .28em;
  margin: 0 0 38px;
  line-height: 1.3;
}
.grid {
  width: min(938px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.portal {
  min-height: 123px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 21px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: inherit;
  text-decoration: none;
  transition: background .14s, border-color .14s;
}
.portal:hover { background: #1a1f22; border-color: #899397; }
.portal:focus-visible, .back:focus-visible, input:focus-visible, button:focus-visible {
  outline: 2px solid #c7d0d4;
  outline-offset: 3px;
}
.number {
  color: var(--dim);
  font-size: 14px;
  letter-spacing: .12em;
  line-height: 1;
}
.name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .055em;
}
footer {
  color: #5b6469;
  letter-spacing: .08em;
  font-size: 12px;
  margin-top: auto;
}
/* Two future applications have visual-only login pages, no backend. */
.login-layout {
  width: min(390px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0;
}
.login-layout .number { display: block; margin-bottom: 26px; }
.login-layout h1 { letter-spacing: .15em; font-size: 22px; margin-bottom: 36px; }
label { display: block; color: #9da8ad; font-size: 11px; letter-spacing: .12em; margin: 19px 0 8px; }
input {
  width: 100%; height: 43px; display: block;
  padding: 10px 12px; background: var(--panel); color: var(--fg);
  font: inherit; border: 1px solid var(--line); border-radius: 0;
}
button {
  width: 100%; padding: 12px; margin-top: 25px; background: #202528;
  border: 1px solid #899397; color: var(--fg); font: inherit;
  letter-spacing: .12em; cursor: pointer;
}
button:hover { background: #292f33; }
.status { min-height: 18px; margin: 20px 0 25px; color: #aeb7bc; font-size: 12px; }
.back { color: var(--dim); text-decoration: none; font-size: 12px; }
.back:hover { color: var(--fg); }
@media (max-width: 700px) {
  .site { width: min(470px, calc(100% - 40px)); padding-top: 76px; min-height: calc(100vh - 45px); }
  h1 { font-size: 21px; margin-bottom: 29px; }
  .grid { grid-template-columns: 1fr; gap: 11px; }
  .portal { min-height: 105px; padding: 17px 19px; }
  .name { font-size: 15px; }
  .number { font-size: 12px; }
  footer { margin-top: auto; padding-top: 27px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
