:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #182035;
  background: #f3f6fb;
  --ink: #182035;
  --muted: #66738d;
  --line: #dce3ef;
  --blue: #175cd3;
  --blue-dark: #1249aa;
  --navy: #121a31;
  --green: #087a5b;
  --orange: #a65315;
  --red: #a82929;
  --panel: #fff;
  --soft: #edf3ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  color: #fff;
  background: #111;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 30px;
  color: #fff;
  background: var(--navy);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.brand > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #2768df;
  font-weight: 900;
}
.brand strong {
  font-size: 17px;
}
.brand small {
  color: #aebbd3;
}
.environment {
  margin-left: auto;
  color: #aebbd3;
  font-size: 12px;
}
.quiet-button {
  border: 1px solid #ffffff2e;
  border-radius: 10px;
  padding: 9px 13px;
  color: #fff;
  background: #ffffff0d;
}
.login-shell {
  width: min(1160px, calc(100% - 40px));
  min-height: calc(100vh - 72px);
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr;
  align-items: center;
  gap: 80px;
}
.login-copy h1 {
  max-width: 650px;
  margin: 10px 0 20px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.055em;
}
.login-copy > p {
  max-width: 610px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.boundary-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.boundary-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #38435a;
  font-size: 13px;
  font-weight: 700;
}
.boundary-list span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: #dff5ed;
}
.boundary-list li:nth-child(n + 3) span {
  color: var(--red);
  background: #fae8e7;
}
.login-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 18px 60px #27446a12;
}
.login-card {
  padding: 34px;
}
.login-card h2 {
  margin: 8px 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.login-card > p:not(.eyebrow) {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.5;
}
.login-card label,
.form-panel label {
  display: grid;
  gap: 7px;
  margin: 15px 0;
  color: #334058;
  font-size: 12px;
  font-weight: 800;
}
.login-card input,
.form-panel input,
.form-panel select,
.form-panel textarea {
  width: 100%;
  border: 1px solid #cbd5e4;
  border-radius: 10px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
}
.login-card input:focus,
.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus {
  outline: 3px solid #dbe8ff;
  border-color: var(--blue);
}
.primary-button,
.secondary-button,
.light-button {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 15px;
  font-weight: 850;
}
.primary-button {
  width: 100%;
  color: #fff;
  background: var(--blue);
}
.primary-button:hover {
  background: var(--blue-dark);
}
.secondary-button {
  border-color: #cbd5e4;
  color: var(--ink);
  background: #fff;
}
.light-button {
  color: #173b70;
  background: #fff;
}
.form-note {
  margin: 14px 0 0 !important;
  font-size: 11px;
  text-align: center;
}
.portal {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: calc(100vh - 72px);
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: #fff;
}
.partner-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 8px 22px;
}
.partner-identity > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}
.partner-identity div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.partner-identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.partner-identity small {
  color: var(--muted);
  font-size: 11px;
}
.sidebar nav {
  display: grid;
  gap: 4px;
}
.sidebar nav button {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  border: 0;
  border-radius: 10px;
  padding: 10px;
  text-align: left;
  color: #4a5872;
  background: transparent;
  font-size: 13px;
  font-weight: 750;
}
.sidebar nav button span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: #f0f3f8;
}
.sidebar nav button:hover {
  background: #f5f7fb;
}
.sidebar nav button.active {
  color: #fff;
  background: var(--navy);
}
.sidebar nav button.active span {
  background: #ffffff18;
}
.sidebar-note {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 20px;
  padding: 15px;
  border-radius: 14px;
  color: #dbe6f8;
  background: var(--navy);
}
.sidebar-note strong {
  font-size: 12px;
}
.sidebar-note p {
  margin: 6px 0 0;
  color: #9facc3;
  font-size: 11px;
  line-height: 1.5;
}
.workspace {
  width: min(1420px, 100%);
  padding: 34px 42px 80px;
}
.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 24px;
}
.workspace-header h1 {
  margin: 5px 0 4px;
  font-size: 38px;
  letter-spacing: -0.045em;
}
.workspace-header p:last-child {
  margin: 0;
  color: var(--muted);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.metric strong {
  display: block;
  margin-top: 14px;
  font-size: 30px;
  letter-spacing: -0.04em;
}
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 18px;
}
.panel {
  overflow: hidden;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 22px 18px;
}
.panel-heading h2 {
  margin: 5px 0 0;
  font-size: 21px;
  letter-spacing: -0.025em;
}
.panel-heading p:last-child {
  color: var(--muted);
  font-size: 12px;
}
.text-button {
  border: 0;
  padding: 4px;
  color: var(--blue);
  background: transparent;
  font-weight: 800;
}
.trust-panel {
  padding: 26px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, #173e83, #182035);
  box-shadow: 0 18px 50px #17213a24;
}
.trust-panel .eyebrow {
  color: #9fc2ff;
}
.trust-panel h2 {
  margin: 9px 0;
  font-size: 27px;
  letter-spacing: -0.035em;
}
.trust-panel p:not(.eyebrow) {
  color: #c1cee3;
  line-height: 1.6;
}
.trust-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  color: #0c6;
  background: #fff;
  font-weight: 900;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(420px, 1.1fr);
  gap: 18px;
}
.form-panel {
  padding-bottom: 22px;
}
.form-panel > label,
.form-panel > .field-row,
.form-panel > fieldset,
.form-panel > .primary-button {
  margin-left: 22px;
  margin-right: 22px;
}
.form-panel label span {
  color: var(--muted);
  font-weight: 500;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.field-row.three {
  grid-template-columns: repeat(3, 1fr);
}
fieldset {
  margin-top: 15px;
  margin-bottom: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
}
legend {
  padding: 0 6px;
  color: #334058;
  font-size: 12px;
  font-weight: 800;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 9px;
  border-radius: 8px;
  background: #f6f8fb;
}
.check-grid input {
  width: auto;
}
.step-chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  padding: 6px 9px;
  color: #31507f;
  background: #edf3ff;
  font-size: 10px;
  font-weight: 850;
}
.list-panel {
  min-height: 420px;
}
.list-panel.wide {
  max-width: 1000px;
}
.record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
}
.record:first-child {
  border-top: 0;
}
.record-main {
  display: grid;
  gap: 5px;
}
.record strong {
  font-size: 13px;
}
.record small {
  color: var(--muted);
  font-size: 11px;
}
.record-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-chip.good {
  color: #076246;
  background: #e1f5ed;
}
.status-chip.wait {
  color: #85500b;
  background: #fff1d6;
}
.status-chip.bad {
  color: #8d2828;
  background: #fde8e8;
}
.empty {
  padding: 48px 22px;
  color: var(--muted);
  text-align: center;
}
.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.permission-card {
  padding: 26px;
  border-radius: 20px;
}
.permission-card h2 {
  margin: 7px 0 18px;
  font-size: 25px;
}
.permission-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.permission-card li {
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 13px;
}
.permission-card.allowed {
  border: 1px solid #bde4d5;
  background: #f4fbf8;
}
.permission-card.allowed li {
  color: #155d49;
  background: #e2f4ed;
}
.permission-card.forbidden {
  border: 1px solid #f0c7c3;
  background: #fff8f7;
}
.permission-card.forbidden li {
  color: #852e29;
  background: #fae9e7;
}
.boundary-callout {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.boundary-callout p {
  margin: 6px 0 0;
  color: var(--muted);
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: 440px;
  padding: 14px 18px;
  border-radius: 12px;
  color: #fff;
  background: #182035;
  box-shadow: 0 18px 50px #0003;
}
.toast.error {
  background: #8e2f2b;
}
@media (max-width: 1050px) {
  .login-shell {
    gap: 40px;
  }
  .content-grid,
  .two-column {
    grid-template-columns: 1fr;
  }
  .portal {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .workspace {
    padding: 28px 24px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .site-header {
    padding: 0 16px;
  }
  .environment {
    display: none;
  }
  .login-shell {
    display: block;
    padding: 48px 0;
  }
  .login-card {
    margin-top: 36px;
  }
  .boundary-list {
    grid-template-columns: 1fr;
  }
  .portal {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
  }
  .sidebar nav button {
    grid-template-columns: 24px max-content;
  }
  .sidebar-note {
    display: none;
  }
  .workspace {
    padding: 24px 16px;
  }
  .workspace-header {
    align-items: flex-start;
    gap: 16px;
  }
  .workspace-header h1 {
    font-size: 31px;
  }
  .content-grid,
  .boundary-grid,
  .field-row,
  .field-row.three {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .check-grid {
    grid-template-columns: 1fr;
  }
  .partner-identity {
    padding-bottom: 12px;
  }
}
