:root {
  color-scheme:light;
  --ink:#182635;
  --muted:#67788b;
  --line:#e3eaf0;
  --blue:#1761df;
  --bg:#f4f7fb;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:14px;
  line-height:1.5;
}

.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:250px;
  background:#fff;
  border-right:1px solid var(--line);
  padding:30px 22px;
  display:flex;
  flex-direction:column;
}

.brand {
  display:flex;
  gap:12px;
  align-items:center;
  font-size:22px;
  font-weight:750;
}

.brand-mark {
  display:grid;
  place-items:center;
  background:var(--blue);
  color:white;
  width:42px;
  height:42px;
  border-radius:12px;
}

.brand small {
  display:block;
  font-size:10px;
  letter-spacing:2px;
  color:var(--muted);
}

nav {
  display:grid;
  gap:8px;
  margin-top:42px;
}

nav a {
  display:block;
  padding:12px;
  border-radius:8px;
  font-size:13px;
  text-decoration:none;
  color:var(--ink);
}

nav a.active {
  background:#edf3ff;
  color:var(--blue);
  font-weight:650;
}

.sidebar-footer {
  margin-top:auto;
  font-size:11px;
  color:var(--muted);
}

.sidebar-footer small {
  display:block;
}

main {
  margin-left:250px;
  padding:0 40px;
  max-width:1700px;
}

header {
  height:86px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  gap:16px;
}

.breadcrumb {
  font-size:12px;
  color:var(--muted);
}

.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:35px 0 26px;
  gap:20px;
}

.eyebrow {
  color:var(--blue);
  font-size:10px;
  letter-spacing:1.6px;
  font-weight:700;
}

h1 {
  font-size:32px;
  letter-spacing:-1px;
  margin:5px 0;
}

p {
  color:var(--muted);
}

.account {
  font-weight:650;
}

.account small {
  display:block;
  font-weight:400;
  color:var(--muted);
  font-size:11px;
}

.notice {
  padding:16px 20px;
  background:#fff8e7;
  border:1px solid #f0dfb5;
  border-radius:10px;
  color:#705522;
  font-size:12px;
}

.notice strong {
  display:block;
  margin-bottom:3px;
}

.login-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(100%, 460px);
  margin: 0;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 50px #1826350a;
}
.login-card h1 { font-size: 25px; margin-top: 28px; }
.login-card form { display: grid; gap: 12px; margin-top: 24px; }
.login-card label { font-weight: 600; }
.login-card input {
  width: 100%;
  border: 1px solid #b8c5d3;
  border-radius: 8px;
  padding: 12px;
  font: inherit;
}
button { cursor: pointer; font: inherit; }
.login-card button {
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  padding: 13px;
  font-weight: 650;
  margin-top: 8px;
}
.login-help { font-size: 12px; margin-top: 24px; }
.login-error {
  background: #fff0f0;
  border: 1px solid #f1c2c2;
  color: #9b2222;
  padding: 12px;
  border-radius: 8px;
}
.badge {
  background:#e9f0ff;
  color:#2252a6;
  border:1px solid #d4e2ff;
  border-radius:20px;
  padding:6px 12px;
  font-size:11px;
  font-weight:600;
}
.integration-card { width: min(100%, 640px); }
.page-links { display: flex; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.login-card .secondary-button { background: #edf3ff; color: #2252a6; }
.table-scroll { overflow:auto; margin-top: 20px; }
table { width:100%; border-collapse:collapse; text-align:left; white-space:nowrap; }
th {
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.7px;
  color:var(--muted);
  background:#fafbfd;
}
th,td { padding:14px 16px; border-bottom:1px solid var(--line); }
td { font-size:12px; white-space:normal; }
td small { display:block; color:var(--muted); font-size:10px; margin-top:4px; }
.primary-button {
  background: var(--blue); color: #fff; border: 0; padding: 10px 16px;
  border-radius: 8px; font-weight: 650; text-decoration: none; display: inline-block;
}
.empty-state { text-align: center; padding: 36px; color: var(--muted); }
.header-actions { display: flex; gap: 14px; align-items: center; }
.logout-button {
  background: #fff;
  border: 1px solid #b8c5d3;
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--ink);
}
input:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (max-width: 480px) {
  .login-body { padding: 16px; }
  .login-card { padding: 24px; }
}

@media(max-width:700px) {
  .sidebar {
    position:static;
    width:auto;
    padding:20px;
  }
  nav {
    margin-top:16px;
  }
  .sidebar-footer {
    display:none;
  }
  .brand {
    font-size:20px;
  }
  main {
    margin-left:0;
    padding:0 18px;
  }
  header {
    height:65px;
  }
  .breadcrumb {
    display:none;
  }
  .page-heading {
    margin:26px 0;
    align-items:flex-start;
  }
  .account {
    display:none;
  }
  h1 {
    font-size:27px;
  }
}
