:root {
  --bg: #f4f3fa;
  --card: #ffffff;
  --line: #e4e1f0;
  --line2: #efedf6;
  --ink: #1c1a29;
  --muted: #5e5a72;
  --acc: #5b47c9;
  --acc-d: #4a37b5;
  --acc-bg: #ece9f8;
  --acc-ink: #3f2fa0;
  --ok-bg: #e3f4ea;
  --ok: #1f6b44;
  --wait-bg: #fff2d6;
  --wait: #7a4a00;
  --bad-bg: #fceeee;
  --bad: #8c1d18;
  --gray-bg: #edebf3;
  --gray: #3b3850;
  --stop: #b3261e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.45 "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a {
  color: var(--acc);
}
a:hover {
  color: var(--acc-d);
}
[hidden] {
  display: none !important;
}
.num {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, monospace;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.err {
  color: var(--bad);
  font-weight: 600;
}
.err:empty {
  display: none;
}
.row {
  display: flex;
  align-items: center;
}
.wrap {
  flex-wrap: wrap;
}
.gap16 {
  gap: 16px;
}
.gap8 {
  gap: 8px;
}
.grow {
  flex: 1 1 20px;
}
.pad {
  padding: 12px 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.btn {
  font: inherit;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 16px;
  min-height: 44px;
  cursor: pointer;
  border: 1px solid #d9d5ea;
  background: #fff;
  color: var(--ink);
}
.btn:hover {
  border-color: var(--acc);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-main {
  background: var(--acc);
  border-color: var(--acc);
  color: #fff;
  text-decoration: none;
}
.btn-main:hover {
  background: var(--acc-d);
  color: #fff;
}
.btn-stop {
  border-color: var(--stop);
  color: var(--stop);
}
.btn-stop:hover {
  background: var(--bad-bg);
}
.btn-sm {
  padding: 6px 12px;
  min-height: 36px;
  font-size: 13px;
}
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pill-ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.pill-wait {
  background: var(--wait-bg);
  color: var(--wait);
}
.pill-bad {
  background: var(--bad-bg);
  color: var(--bad);
}
.pill-gray {
  background: var(--gray-bg);
  color: var(--gray);
}
.pill-acc {
  background: var(--acc-bg);
  color: var(--acc-ink);
}
.top {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}
.logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--acc);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid #d9d5ea;
  background: #fff;
  font: inherit;
  font-size: 13px;
  min-height: 36px;
  cursor: pointer;
}
.chip.on {
  border-color: var(--acc);
  background: var(--acc-bg);
  color: var(--acc-ink);
  font-weight: 600;
}
.banner {
  background: var(--bad-bg);
  color: var(--bad);
  padding: 12px 24px;
  font-weight: 600;
  border-top: 1px solid #f1c9c6;
}
.layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.side {
  flex: 1 1 220px;
  max-width: 260px;
  padding: 20px 16px;
}
.side nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.navbtn {
  text-decoration: none;
  font: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 10px;
  padding: 11px 12px;
  min-height: 44px;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
}
.navbtn:hover {
  background: var(--acc-bg);
}
.navbtn.on {
  background: var(--acc-bg);
  color: var(--acc-ink);
  font-weight: 600;
}
.side-note {
  margin-top: 20px;
  padding: 14px;
}
.side-note p {
  margin: 6px 0 0;
}
.main {
  flex: 999 1 560px;
  min-width: 0;
  padding: 20px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  outline: none;
}
h1 {
  margin: 0;
  font-size: 26px;
}
h2 {
  margin: 0;
  font-size: 18px;
}
h3 {
  margin: 0;
  font-size: 15px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}
.kpi .v {
  font-size: 26px;
  font-weight: 600;
  margin-top: 6px;
}
.cols {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.cols > * {
  flex: 1 1 360px;
  min-width: 0;
}
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.skill {
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
  color: var(--ink);
}
.skill:hover {
  border-color: var(--acc);
}
.role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--acc-bg);
  color: var(--acc-ink);
  font-weight: 700;
  font-size: 12px;
  flex: none;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.tblbox {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line2);
  vertical-align: top;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.dot.ok {
  background: #1f7a4d;
}
.dot.bad {
  background: var(--stop);
}
.dot.na {
  background: #b9b5c9;
}
.feed-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line2);
  align-items: flex-start;
}
.empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line2);
}
.kv:last-child {
  border-bottom: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.field input {
  font: inherit;
  padding: 10px;
  border: 1px solid #d9d5ea;
  border-radius: 10px;
  min-height: 44px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.code {
  font-family: ui-monospace, Menlo, monospace;
  background: var(--gray-bg);
  padding: 10px 12px;
  border-radius: 10px;
  word-break: break-all;
}
.drawer-bg {
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 41, 0.35);
  display: flex;
  justify-content: flex-end;
  z-index: 20;
}
.drawer {
  background: var(--bg);
  width: min(720px, 100%);
  height: 100%;
  overflow: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.login-card {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-card input {
  font: inherit;
  padding: 12px;
  border: 1px solid #d9d5ea;
  border-radius: 10px;
  min-height: 44px;
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  z-index: 30;
  max-width: 90vw;
}
.cabmenu { position: relative; }
.cabmenu-btn {
  max-width: 240px;
  height: 36px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  border-radius: 6px;
  background: #15803d;
  color: #fff;
  font: 500 14px/1 inherit;
  padding: 0 12px;
  cursor: pointer;
}
.cabmenu-btn:hover { background: #166534; }
.cabmenu-pop {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  right: 0;
  min-width: 220px;
  background: #fff;
  color: #09090b;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
  padding: 4px;
}
.cabmenu-label {
  color: #09090b;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 8px;
}
.cabmenu-sep { height: 1px; background: #f4f4f5; margin: 4px 0; }
.cabmenu-item {
  position: relative;
  display: flex;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  font: 400 14px/1.4 inherit;
  border-radius: 4px;
  padding: 6px 8px 6px 32px;
  cursor: pointer;
}
.cabmenu-item:hover, .cabmenu-item:focus { background: #f4f4f5; outline: none; }
.cabmenu-item.on { background: transparent; }
.cabmenu-item.on::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}
.cab-lead { margin: -8px 0 16px; max-width: 62ch; }
.cab-list { display: flex; flex-direction: column; gap: 12px; }
.cab-card { display: flex; flex-direction: column; gap: 12px; }
.cab-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mgr { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line2); padding-top: 12px; }
.mgr-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mgr-name { font-weight: 600; }
.sh-select { position: relative; width: 180px; flex: 0 0 180px; }
.sh-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  background: #fff;
  color: #09090b;
  font: 400 14px/1 inherit;
  padding: 0 12px;
  cursor: pointer;
}
.sh-select-btn:focus { outline: 2px solid #18181b; outline-offset: 2px; }
.sh-chev {
  width: 16px;
  height: 16px;
  opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2309090b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.sh-select-pop {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  right: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
  padding: 4px;
}
.sh-select-item {
  position: relative;
  display: flex;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: 400 14px/1.4 inherit;
  border-radius: 4px;
  padding: 6px 8px 6px 32px;
  cursor: pointer;
}
.sh-select-item:hover, .sh-select-item:focus { background: #f4f4f5; outline: none; }
.sh-select-item.on::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2309090b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
  transform: translateY(-50%);
}
@media (max-width: 720px) {
  .side {
    max-width: none;
    flex-basis: 100%;
  }
  .side nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .navbtn {
    width: auto;
  }
  .side-note {
    display: none;
  }
  .main {
    padding: 16px;
  }
  .pad {
    padding: 12px 16px;
  }
}
