:root {
  color-scheme: light;
  font: 15px/1.5 system-ui, sans-serif;
  color: #1d2735;
  background: #f6f7fa;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #405de3; outline-offset: 3px; }
.login { display: grid; place-items: center; padding: 20px; }
.login main { width: min(100%, 360px); }
.login-form {
  display: grid;
  padding: 28px;
  background: #fff;
  border: 1px solid #dee3eb;
  border-radius: 12px;
}
h1 { margin: 0 0 22px; font-size: 24px; }
label { margin-bottom: 5px; font-weight: 600; }
input {
  min-width: 0;
  padding: 9px 11px;
  margin-bottom: 16px;
  border: 1px solid #c5ceda;
  border-radius: 6px;
}
.submit {
  color: #fff;
  background: #324fc5;
  border: 0;
  border-radius: 6px;
  padding: 10px;
}
.error { margin-bottom: 12px; color: #9c2525; }
.panel {
  display: grid;
  grid-template: 56px 1fr / 216px minmax(0, 1fr);
}
.panel.collapsed { grid-template-columns: 58px minmax(0, 1fr); }
.sidebar {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #dee3eb;
  padding: 10px;
  min-height: 100vh;
}
.toggle {
  align-self: flex-start;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #dee3eb;
  border-radius: 6px;
  background: #fff;
  color: inherit;
}
nav { display: flex; flex: 1; flex-direction: column; gap: 6px; margin-top: 16px; }
nav a {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
}
nav a:hover, nav a[aria-current="page"] { background: #eef1f7; }
nav .settings { margin-top: auto; }
.collapsed .label { display: none; }
.collapsed nav a { justify-content: center; padding-inline: 0; }
.topbar {
  display: flex;
  min-width: 0;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid #dee3eb;
}
.profile { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel main {
  min-width: 0;
  margin: 16px;
  border: 1px solid #dee3eb;
  border-radius: 8px;
  background: #fff;
}
@media (max-width: 560px) {
  .panel { grid-template-columns: 148px minmax(0, 1fr); }
  .topbar { padding-inline: 12px; }
  .panel main { margin: 10px; }
}

.integration-settings { max-width: 640px; padding: 24px; }
.integration-form {
  display: grid;
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid #dee3eb;
  border-radius: 8px;
}
.integration-form h2 { margin: 0 0 14px; font-size: 17px; }
.integration-form input { width: 100%; margin-bottom: 4px; }
.field-status { margin: 0 0 14px; color: #536175; font-size: 13px; }
.integration-form button { justify-self: start; padding: 8px 14px; }
.saved { color: #246746; }
@media (max-width: 560px) {
  .integration-settings { padding: 10px; }
  .integration-form { padding: 10px; }
}
