:root {
  --bg: #f4f6fa;
  --card: #fff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, .08);
  --blue: #2f6bff;
  --blue-soft: #e8efff;
  --shadow: 0 12px 40px rgba(15, 23, 42, .06);
  --radius: 16px;
  --font: "Segoe UI", "IBM Plex Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}
button, input, textarea { font-family: inherit; }
.login {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background: #071428;
  color: #0a0a0a;
  font-family: Outfit, "Segoe UI", system-ui, sans-serif;
}
.login-card {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  color: #0a0a0a;
  border-radius: 24px;
  padding: 36px 36px 32px;
  border: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #2f6bff;
}
.login-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.login-mark {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #2f6bff;
  flex: none;
}
.login h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #0a0a0a;
}
.login-lead {
  margin: 10px 0 28px;
  font-size: 16px;
  line-height: 1.45;
  color: #3a4150;
}
.login .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
}
.login label {
  display: block;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: #0a0a0a;
}
.login input {
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d5d8e0;
  border-radius: 12px;
  background: #fff;
  color: #0a0a0a;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
}
.login input.bad { border-color: #c53434; }
.login input:focus {
  outline: none;
  border-color: #2f6bff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .22);
}
.login input.bad:focus {
  border-color: #c53434;
  box-shadow: 0 0 0 3px rgba(197, 52, 52, .18);
}
.pass-row { position: relative; }
.pass-row input { width: 100%; padding-right: 112px; }
.reveal {
  position: absolute;
  top: 4px;
  right: 4px;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #2f6bff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.reveal:hover { background: #e8efff; }
.reveal:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .28);
}
.login-err {
  margin: 0 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff1f1;
  color: #9f1239;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.login-go {
  margin-top: 8px;
  height: 48px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #2f6bff;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.login-go:hover:not(:disabled) { background: #245eef; }
.login-go:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .35);
}
.login-go:disabled { cursor: default; opacity: .72; }
.login-go-spin {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin .7s linear infinite;
}
.login-go.is-busy .login-go-spin { display: block; }
@keyframes login-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .login-go-spin { animation: none; }
}
h1 { margin: 0; font-size: 28px; letter-spacing: 0; }
.muted { color: #334155; margin: 0 0 8px; font-size: 16px; line-height: 1.45; }
label { display: grid; gap: 6px; font-size: 14px; color: #334155; letter-spacing: 0; }
input, textarea {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
  width: 100%;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
textarea { min-height: 4.5em; resize: vertical; white-space: pre-wrap; word-break: break-word; }
.btn, .btn-ghost {
  border: 0; border-radius: 12px; padding: 12px 16px;
  font-weight: 600; cursor: pointer;
}
.btn { background: var(--blue); color: #fff; }
a.btn { text-decoration: none; display: inline-block; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-ghost { background: var(--blue-soft); color: var(--blue); }
.err { color: #b42318; margin: 0; }
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; flex-wrap: wrap; gap: 18px;
  padding: 14px 22px;
  background: #050b16;
  color: #fff;
  border-bottom: 0;
}
.brand-lock {
  display: flex; align-items: center; gap: 10px;
  background: none; border: 0; color: #fff; padding: 0; cursor: pointer; font: inherit;
}
.plate {
  width: 28px; height: 28px; border-radius: 8px; background: #fff;
  display: grid; place-items: center; flex: 0 0 28px;
}
.brand { font-weight: 700; letter-spacing: -0.03em; font-size: 18px; color: #fff; }
.top-nav { display: flex; align-items: center; gap: 2px; }
.top-nav button {
  background: none; border: 0; color: rgba(255,255,255,.62);
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 8px 10px; cursor: pointer;
  box-shadow: inset 0 -2px 0 transparent;
}
.top-nav button.on { color: #fff; box-shadow: inset 0 -2px 0 #2f6bff; }
.search { flex: 0 0 280px; margin-left: auto; }
.top .search input {
  width: 100%;
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: transparent;
}
.top .search input::placeholder { color: rgba(255,255,255,.45); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: #fff; color: #0a0a0a; font-size: 12px; font-weight: 700; cursor: pointer;
}
.menu {
  position: absolute; right: 18px; top: 62px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  min-width: 200px; padding: 8px; display: grid;
}
.menu button {
  text-align: left; background: none; border: 0; padding: 10px 12px;
  border-radius: 10px; cursor: pointer;
}
.menu button:hover { background: var(--bg); }
.menu-name { padding: 8px 12px 10px; font-weight: 600; }
#app { min-height: 100vh; display: flex; flex-direction: column; }
.workspace {
  flex: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 0;
}
.workspace.section-only { grid-template-columns: minmax(0, 1fr); }
.lists {
  display: flex;
  background: #fff;
  border-right: 1px solid var(--line);
  max-height: calc(100vh - 68px);
  width: 168px;
  min-width: 0;
}
.col {
  width: 168px;
  overflow: auto;
  padding: 8px;
  max-height: calc(100vh - 68px);
}
.col + .col { width: 210px; border-left: 1px solid var(--line); }
.rail-title {
  font-weight: 700; font-size: 12px; color: #64748b;
  padding: 4px 8px 8px; letter-spacing: 0;
}
main { padding: 20px 24px 48px; max-width: none; margin: 0; overflow: auto; max-height: calc(100vh - 68px); min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.page-head h2 { margin: 0; font-size: 26px; letter-spacing: 0; }
.crumb { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.crumb button { background: none; border: 0; color: var(--blue); cursor: pointer; padding: 0; font-weight: 600; }
.sim-list, .line-list { display: grid; gap: 10px; }
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; border: 1px solid transparent;
}
.sim, .line {
  width: 100%; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.sim { box-shadow: none; padding: 10px 12px; background: transparent; }
.sim.on, .line.on { background: var(--blue-soft); border-color: #bfd0ff; }
.line { padding: 8px 10px; box-shadow: none; background: transparent; }
.line-body { min-width: 0; }
.sim strong, .line strong {
  display: block; font-size: 16px; letter-spacing: 0; line-height: 1.35;
  white-space: normal; overflow: visible; text-overflow: clip;
}
.meta {
  display: block;
  color: #1e293b;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0;
  margin-top: 2px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
}
.pill {
  background: var(--blue-soft); color: var(--blue);
  border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600;
}
.pill.warn { background: #fff4e5; color: #b54708; }
.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
@media (max-width: 980px) {
  .grid-2, .fields.head-fields { grid-template-columns: 1fr; }
  .workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .lists { grid-column: 1; grid-row: 1; max-height: 200px; }
  main { grid-column: 1; grid-row: 2; max-height: none; }
  .workspace.section-only main { grid-row: 1 / span 2; }
}
.slots { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.slot {
  border: 1px dashed #cbd5e1; background: #fff; border-radius: 12px;
  padding: 8px 12px; cursor: pointer; font-weight: 600;
}
.slot.on { background: var(--blue); color: #fff; border-style: solid; border-color: var(--blue); }
.empty-sec h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: 0; }
.empty-sec p { font-size: 16px; line-height: 1.5; max-width: 42em; }
.fields { display: grid; grid-template-columns: 1fr; gap: 12px; }
.fields.head-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fields.person { grid-template-columns: 1fr 1fr; }
.fields label.wide { grid-column: 1 / -1; }
.contact-block { grid-column: 1 / -1; display: grid; gap: 8px; }
.contact-rows { display: grid; gap: 8px; }
.contact-row { display: grid; gap: 8px; align-items: center; }
.contact-row.phone { grid-template-columns: minmax(8.5em, 1.4fr) 4.6em minmax(5.5em, .7fr) auto; }
.contact-row.mail { grid-template-columns: minmax(0, 1fr) auto; }
.contact-row.self { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; }
.contact-add { justify-self: start; }
@media (max-width: 720px) {
  .contact-row.phone, .contact-row.self { grid-template-columns: 1fr; }
  .contact-row .contact-del { justify-self: start; }
  .top { gap: 10px; padding: 10px 12px; }
  .search { flex: 1 1 100%; margin-left: 0; max-width: none; }
  .avatar { margin-left: auto; }
}
.line-head { margin-bottom: 14px; }
.exp-flag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #2f6bff;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: middle;
}
.row-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.file { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.file-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.file-name { flex: 1; min-width: 12em; font-size: 16px; letter-spacing: 0; }
.hint p { font-size: 16px; line-height: 1.5; letter-spacing: 0; }
.roster-wrap { padding: 8px 8px 4px; }
.roster { width: 100%; border-collapse: collapse; font-size: 15px; }
.roster th {
  text-align: left; color: #64748b; font-size: 12px; font-weight: 700;
  padding: 8px 12px; border-bottom: 1px solid var(--line);
}
.roster td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.roster tbody tr { cursor: pointer; }
.roster tbody tr:hover { background: var(--blue-soft); }
.roster td:first-child, .roster th:first-child { width: 7em; font-weight: 700; }
.roster td.slot-cell { vertical-align: top; }
.roster tr.person-more td { border-bottom-color: #f1f5f9; }
.empty-slots { margin: 10px 12px 12px; }
.roster td.act { width: 13em; text-align: right; }
.act-btns { display: flex; gap: 6px; justify-content: flex-end; }
.btn.tiny, .btn-ghost.tiny { padding: 7px 10px; font-size: 13px; border-radius: 10px; }
.projects { margin-top: 16px; }
.projects h2 { font-size: 20px; }
.proj-add { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.proj-add input { flex: 1; }
select {
  border: 1px solid #cbd5e1; background: #fff; border-radius: 10px;
  padding: 8px 10px; font-size: 15px; color: #0f172a; width: 100%;
}
.toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: #0f172a; color: #fff; padding: 12px 16px; border-radius: 12px;
  max-width: min(560px, calc(100% - 24px)); z-index: 9;
}
.bind { font-size: 16px; color: #1e293b; display: grid; gap: 6px; letter-spacing: 0; line-height: 1.45; }
.hit { width: 100%; text-align: left; cursor: pointer; }
.hit small { color: var(--muted); }
.linkish { background: none; border: 0; color: var(--blue); cursor: pointer; font-weight: 600; }
.lists.tree, .lists.tree .col { width: 280px; }
.tree-esim { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #64748b; padding: 8px 10px 0; }
.tree-name {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 3px 10px 8px; border-radius: 8px; cursor: pointer; color: #0f172a; font-size: 14px;
}
.tree-name.on { background: #e8efff; color: #1d4ed8; font-weight: 650; }
.tree-name b { font-weight: 700; margin-right: 6px; }
.desk-meta { color: #64748b; margin: 4px 0 0; }
.desk-counts { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 8px 0 0; color: #64748b; }
.desk-counts b { color: #0f172a; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(10, 10, 10, .12); background: #fff; color: #0a0a0a;
  border-radius: 12px; padding: 8px 12px; font-weight: 650; cursor: pointer; font-size: 14px;
}
.chip.on { border-color: #2f6bff; box-shadow: inset 0 0 0 1px #2f6bff; }
.st {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 7px; font-size: 12px; font-weight: 700;
}
.st.yes { background: #dcfce7; color: #166534; }
.st.verif { background: #ffedd5; color: #c2410c; }
.st.no { background: #fee2e2; color: #b91c1c; }
.st.lock { background: #e2e8f0; color: #475569; }
.vbtn, .mini {
  border: 1px solid rgba(10, 10, 10, .12); background: #fff; color: #0a0a0a;
  border-radius: 8px; padding: 8px 12px; font-weight: 650; cursor: pointer; font-size: 13px;
  transition: background .12s, border-color .12s, color .12s;
}
.vbtn.yes.on { background: #dcfce7; color: #166534; border-color: #86efac; }
.vbtn.verif.on { background: #ffedd5; color: #c2410c; border-color: #fdba74; }
.vbtn.no.on { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
.vbtn.lock.on { background: #e2e8f0; color: #475569; border-color: #94a3b8; }
.vbtn.on:not(.yes):not(.verif):not(.no):not(.lock) { background: #f8fafc; color: #0a0a0a; border-color: #cbd5e1; }
.editor {
  display: grid; gap: 10px; margin-top: 4px; padding: 12px;
  background: #f4f6f8; border-radius: 14px;
}
.editor-vals, .pass-big, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.date-lab, .stage-lab { display: flex; align-items: center; gap: 8px; width: auto; }
.date-lab input, #pass-date { width: 88px; flex: none; }
.editor select, .desk-tabs select { width: auto; min-width: 9em; }
.add-bank {
  border: 1px dashed #cbd5e1; background: #fff; border-radius: 12px;
  padding: 10px 14px; font-weight: 650; cursor: pointer;
}
.add-pop {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  margin-top: 12px; padding: 12px; max-height: 280px; overflow: auto;
  background: #f4f6f8; border-radius: 14px;
}
.add-pop h3 { margin: 0 0 8px; font-size: 13px; color: #64748b; }
.add-pop .chips { margin: 0; }
.desk-sheet { overflow-x: auto; }
.desk-overview { margin-bottom: 16px; }
.desk-overview:last-child { margin-bottom: 0; }
.desk-group-title { margin: 0 0 12px; font-size: 1.05rem; font-weight: 600; color: #0f172a; }
.dash-lead { margin: 0 0 14px; font-size: 13px; line-height: 1.45; }
.dash-segments {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px;
  padding: 6px; background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid rgba(47, 107, 255, .12); border-radius: 14px;
}
.dash-seg {
  border: 1px solid transparent; background: transparent; color: #475569;
  border-radius: 10px; padding: 10px 16px; font-weight: 700; font-size: 13px;
  cursor: pointer; transition: background .15s, color .15s, box-shadow .15s;
}
.dash-seg:hover { background: rgba(255, 255, 255, .85); color: #0f172a; }
.dash-seg.on {
  background: #fff; color: #0f172a; border-color: rgba(47, 107, 255, .35);
  box-shadow: 0 4px 14px rgba(47, 107, 255, .12);
}
.dash-kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin-bottom: 18px;
}
.dash-kpi {
  position: relative; overflow: hidden; padding: 14px 16px 12px;
  border-radius: 16px; border: 1px solid var(--line); background: #fff;
}
.dash-kpi::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, #2f6bff, #7c5cff);
}
.dash-kpi-label { display: block; font-size: 12px; font-weight: 650; color: #64748b; }
.dash-kpi-val { display: block; margin-top: 4px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.dash-kpi-hint { display: block; margin-top: 4px; font-size: 11px; color: #94a3b8; }
.dash-cov {
  height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin-top: 6px;
}
.dash-cov > i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #2f6bff, #60a5fa);
}
.dash-stat-top { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.dash-stat-pct { margin-left: auto; font-size: 15px; font-weight: 800; color: #2f6bff; letter-spacing: -.02em; }
.dash-stat-mini {
  display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; font-size: 9px; font-weight: 500;
  color: #94a3b8; line-height: 1.25; opacity: .92;
}
.dash-stat-cell { min-width: 120px; }
.dash-inst-name { font-weight: 650; }
.dash-pii-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 16px;
  align-items: start;
}
.dash-pii-main { margin-bottom: 0; min-width: 0; }
.dash-pii-side {
  margin-bottom: 0;
  position: sticky;
  top: 12px;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #eef2ff 100%);
  border-color: rgba(47, 107, 255, .14);
  box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
}
.dash-pii-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.dash-pii-table { width: 100%; min-width: 1240px; }
.dash-pii-table th:nth-child(1), .dash-pii-table .dash-esim { width: 5.5rem; white-space: nowrap; }
.dash-pii-table th:nth-child(2), .dash-pii-table .dash-name { min-width: 10rem; font-weight: 600; }
.dash-pii-table th:nth-child(3), .dash-pii-table .dash-age { width: 3.6rem; text-align: center; }
.dash-pii-table th:nth-child(4), .dash-pii-table .dash-cs { width: 6.25rem; text-align: center; }
.dash-pii-table th:nth-child(5), .dash-pii-table .dash-state {
  width: 2.75rem; text-align: center; font-weight: 600; font-size: 12px;
  letter-spacing: 0.01em; color: #475569;
}
.dash-pii-table th:nth-child(6), .dash-pii-table .dash-dl { min-width: 6.5rem; font-variant-numeric: tabular-nums; }
.dash-pii-table th:nth-child(n+7), .dash-pii-table .dash-stat-cell {
  width: 8.75rem; min-width: 8.5rem; vertical-align: top;
  padding: 8px 6px 10px;
}
.dash-pii-table th:nth-child(n+7) { font-size: 12px; font-weight: 700; color: #334155; letter-spacing: 0.02em; }
.dash-pii-table .dash-stat-cell .dash-stat-top { font-size: 13px; gap: 4px; }
.dash-pii-table .dash-stat-cell .dash-stat-top b { font-size: 14px; }
.dash-pii-table .dash-stat-cell .dash-stat-pct { font-size: 15px; }
.dash-pii-table .dash-stat-cell .dash-cov { height: 5px; margin-top: 5px; }
.dash-pii-table .dash-stat-cell .dash-stat-mini {
  gap: 4px 5px; margin-top: 6px; font-size: 10px; font-weight: 600;
  color: #64748b; line-height: 1.3; opacity: 1;
}
.dash-pii-table .dash-stat-mini-chips {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 5px;
}
.dash-pii-table .dash-stat-chip {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 4px;
  padding: 3px 6px; border-radius: 6px; border: 1px solid #e2e8f0;
  background: #f8fafc; font-size: 10px; font-variant-numeric: tabular-nums;
}
.dash-pii-table .dash-stat-chip-lbl { font-weight: 650; letter-spacing: 0.02em; opacity: 0.92; }
.dash-pii-table .dash-stat-chip b { font-weight: 800; font-size: 11px; color: #0f172a; min-width: 1ch; text-align: right; }
.dash-pii-table .dash-stat-cell-totals .dash-stat-chip { justify-content: center; }
.dash-pii-table .dash-stat-cell-totals .dash-stat-chip b { text-align: center; min-width: 0; width: 100%; }
.dash-pii-table .dash-chip-yes { background: #ecfdf5; border-color: #bbf7d0; color: #166534; }
.dash-pii-table .dash-chip-yes b { color: #14532d; }
.dash-pii-table .dash-chip-no { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.dash-pii-table .dash-chip-no b { color: #7f1d1d; }
.dash-pii-table .dash-chip-verif { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.dash-pii-table .dash-chip-verif b { color: #7c2d12; }
.dash-pii-table .dash-chip-lock { background: #f1f5f9; border-color: #cbd5e1; color: #475569; }
.dash-pii-table .dash-chip-lock b { color: #334155; }
.dash-cs-th { text-align: center; vertical-align: middle; padding: 6px 4px; white-space: nowrap; }
.dash-cs-head-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(47, 107, 255, .35);
  background: linear-gradient(180deg, #fff 0%, #eef2ff 100%);
  color: #1e40af; font-weight: 800; font-size: 12px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(47, 107, 255, .12);
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.dash-pii-table .dash-cs-head-btn {
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-color: rgba(47, 107, 255, .22);
  background: #f8fafc;
  box-shadow: none;
  max-width: 100%;
}
.dash-cs-head-btn:hover {
  border-color: #2f6bff; box-shadow: 0 4px 14px rgba(47, 107, 255, .2); transform: translateY(-1px);
}
.dash-pii-table .dash-cs-head-btn:hover {
  border-color: rgba(47, 107, 255, .45);
  background: #eef2ff;
  box-shadow: none;
  transform: none;
}
.dash-pii-marks-side { max-height: calc(100vh - 120px); overflow-y: auto; }
.dash-marks-total {
  margin: 12px 0 16px; padding: 12px 14px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
}
.dash-marks-total-label { display: block; font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.dash-marks-blocks { display: flex; flex-direction: column; gap: 14px; }
.dash-marks-block {
  padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
}
.dash-marks-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dash-marks-block-head h4 { margin: 0; font-size: 14px; }
.dash-marks-foot { margin: 8px 0 0; font-size: 11px; }
body.dash-modal-open { overflow: hidden; }
.dash-modal {
  position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.dash-modal[hidden] { display: none !important; }
.dash-modal-backdrop {
  position: absolute; inset: 0; background: rgba(7, 20, 40, .52); backdrop-filter: blur(4px);
}
.dash-modal-panel {
  position: relative; z-index: 1; width: min(420px, 100%); max-height: min(90vh, 720px);
  display: flex; flex-direction: column; border-radius: 18px;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #eef2ff 100%);
  border: 1px solid rgba(47, 107, 255, .18);
  box-shadow: 0 24px 64px rgba(15, 23, 42, .22);
  animation: dashModalIn .22s ease-out;
}
@keyframes dashModalIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.dash-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.dash-modal-head h2 { margin: 0; font-size: 1.1rem; }
.dash-modal-close {
  width: 36px; height: 36px; border: 0; border-radius: 10px; background: #f1f5f9;
  font-size: 22px; line-height: 1; cursor: pointer; color: #475569;
}
.dash-modal-close:hover { background: #e2e8f0; color: #0f172a; }
.dash-modal-body { overflow-y: auto; padding: 4px 18px 18px; margin: 0; border: 0; box-shadow: none; }
.dash-pii-table .mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12px; }
.dash-pii-row:hover td { background: #f8fafc; }
.dash-pii-table .cs-pill { padding: 2px 7px; font-size: 11px; font-weight: 650; line-height: 1.3; }
.dash-pii-table .age-pill { padding: 1px 6px; font-size: 11px; min-width: 1.65rem; font-weight: 600; }
/* PII table: age without band colors (modal/sidebar keep bands) */
.dash-pii-table .age-pill.age-band-a18,
.dash-pii-table .age-pill.age-band-a25,
.dash-pii-table .age-pill.age-band-a35,
.dash-pii-table .age-pill.age-band-a45,
.dash-pii-table .age-pill.age-band-a55,
.dash-pii-table .age-pill.age-band-a65 {
  color: #0f172a;
  background: #f8fafc;
  border-color: #e2e8f0;
}
.cs-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.35;
  border: 1px solid transparent;
}
.cs-pill.cs-tier-sub { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.cs-pill.cs-tier-fair { background: #ffedd5; color: #9a3412; border-color: #fed7aa; }
.cs-pill.cs-tier-good { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.cs-pill.cs-tier-premium {
  background: linear-gradient(135deg, #d1fae5 0%, #6ee7b7 45%, #34d399 100%);
  color: #064e3b; border-color: #6ee7b7; font-weight: 800;
}
.cs-pill.cs-freeze { background: #e2e8f0; color: #475569; border-color: #cbd5e1; }
.cs-pill.cs-muted { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }
.cs-pill.cs-fraud { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.dash-cs-hero { margin: 12px 0 16px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.dash-cs-hero-label { display: block; font-size: 12px; font-weight: 650; color: #64748b; }
.dash-cs-hero-val { display: inline-block; margin-top: 6px; font-size: 1.25rem; padding: 4px 12px; }
.dash-cs-hero-range { display: block; margin-top: 6px; font-size: 12px; }
.dash-cs-ready {
  margin-bottom: 16px; padding: 12px 14px; border-radius: 14px;
  background: rgba(47, 107, 255, .06); border: 1px solid rgba(47, 107, 255, .12);
}
.dash-cs-ready strong { font-size: 1.2rem; margin: 0 6px; color: #1e40af; }
.dash-cs-tiers { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.dash-cs-tier-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; }
.dash-cs-tier-n { margin-left: auto; font-size: 14px; }
.dash-cs-tier-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dash-cs-tier-sub .dash-cs-tier-dot { background: #fca5a5; }
.dash-cs-tier-fair .dash-cs-tier-dot { background: #fdba74; }
.dash-cs-tier-good .dash-cs-tier-dot { background: #86efac; }
.dash-cs-tier-premium .dash-cs-tier-dot { background: #34d399; box-shadow: 0 0 0 2px #a7f3d0; }
.dash-cs-tier-bar .dash-cov > i { background: linear-gradient(90deg, #94a3b8, #64748b); }
.dash-cs-tier-sub .dash-cs-tier-bar .dash-cov > i { background: linear-gradient(90deg, #fca5a5, #ef4444); }
.dash-cs-tier-fair .dash-cs-tier-bar .dash-cov > i { background: linear-gradient(90deg, #fdba74, #f97316); }
.dash-cs-tier-good .dash-cs-tier-bar .dash-cov > i { background: linear-gradient(90deg, #86efac, #22c55e); }
.dash-cs-tier-premium .dash-cs-tier-bar .dash-cov > i { background: linear-gradient(90deg, #6ee7b7, #059669); }
.dash-cs-tier-hint { display: block; margin-top: 4px; font-size: 11px; color: #94a3b8; line-height: 1.35; }
.dash-cs-hero-median { display: block; margin-top: 6px; font-size: 12px; }

.age-pill {
  display: inline-block;
  min-width: 2rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  border: 1px solid transparent;
  line-height: 1.35;
}
.age-pill.age-band-hero {
  font-size: 28px;
  padding: 4px 14px;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: #3730a3;
  border-color: #a5b4fc;
}
.age-band-a18 { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.age-band-a25 { background: #e0e7ff; color: #4338ca; border-color: #a5b4fc; }
.age-band-a35 { background: #ede9fe; color: #5b21b6; border-color: #c4b5fd; }
.age-band-a45 { background: #fce7f3; color: #9d174d; border-color: #f9a8d4; }
.age-band-a55 { background: #ffedd5; color: #9a3412; border-color: #fdba74; }
.age-band-a65 { background: #fef3c7; color: #92400e; border-color: #fcd34d; }

.dash-age-tier-a18 .dash-cs-tier-dot { background: #60a5fa; }
.dash-age-tier-a25 .dash-cs-tier-dot { background: #818cf8; }
.dash-age-tier-a35 .dash-cs-tier-dot { background: #a78bfa; }
.dash-age-tier-a45 .dash-cs-tier-dot { background: #f472b6; }
.dash-age-tier-a55 .dash-cs-tier-dot { background: #fb923c; }
.dash-age-tier-a65 .dash-cs-tier-dot { background: #fbbf24; }
.dash-age-tier-a18 .dash-cs-tier-bar .dash-cov > i { background: linear-gradient(90deg, #93c5fd, #3b82f6); }
.dash-age-tier-a25 .dash-cs-tier-bar .dash-cov > i { background: linear-gradient(90deg, #a5b4fc, #6366f1); }
.dash-age-tier-a35 .dash-cs-tier-bar .dash-cov > i { background: linear-gradient(90deg, #c4b5fd, #8b5cf6); }
.dash-age-tier-a45 .dash-cs-tier-bar .dash-cov > i { background: linear-gradient(90deg, #f9a8d4, #ec4899); }
.dash-age-tier-a55 .dash-cs-tier-bar .dash-cov > i { background: linear-gradient(90deg, #fdba74, #f97316); }
.dash-age-tier-a65 .dash-cs-tier-bar .dash-cov > i { background: linear-gradient(90deg, #fcd34d, #d97706); }
.dash-cs-other-title { margin: 0 0 8px; font-size: 12px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.dash-cs-status { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-bottom: 1px solid #f1f5f9; }
.dash-cs-status:last-child { border-bottom: none; }
.dash-chip {
  display: inline-flex; align-items: center; gap: 4px; margin: 2px 4px 2px 0;
  padding: 2px 8px; border-radius: 999px; background: #f1f5f9; font-size: 11px; font-weight: 650;
}
.dash-more { margin-left: 4px; font-size: 11px; }
@media (max-width: 1100px) {
  .dash-pii-layout { grid-template-columns: 1fr; }
  .dash-pii-side { position: static; }
}
@media (max-width: 960px) {
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .dash-kpis { grid-template-columns: 1fr; }
  .dash-seg { flex: 1 1 calc(50% - 8px); text-align: center; padding: 10px 8px; }
}
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.desk-row { cursor: pointer; }
.desk-row:hover td { background: #f8fafc; }
.desk-tabs {
  display: flex; align-items: center; gap: 0; margin-top: 8px;
  border-top: 1px solid var(--line); overflow-x: auto;
}
.tab {
  background: none; border: 0; border-radius: 0; padding: 12px 14px;
  color: #64748b; font-weight: 650; cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent;
}
.tab.on { color: #0a0a0a; box-shadow: inset 0 -2px 0 #2f6bff; }
.desk-tabs select { margin: 8px; }
.pass-work { display: flex; gap: 22px; align-items: stretch; min-height: 420px; }
.pass-q {
  width: 260px; flex: none; overflow: auto; max-height: calc(100vh - 210px);
  display: grid; align-content: start; gap: 2px;
}
.pass-card {
  flex: 1; display: grid; align-content: start; gap: 14px;
  border: 1px solid var(--line); border-radius: 18px; padding: 28px;
}
.pass-card h2 { margin: 0; }
.pass-q button.on { background: #e8efff; }
.pass-big .vbtn { flex: 1; min-height: 64px; font-size: 18px; }
@media (max-width: 720px) {
  .pass-work { flex-direction: column; }
  .pass-q { width: auto; max-height: 220px; }
  .pass-card { padding: 16px; }
  .pass-big .vbtn { min-height: 48px; font-size: 16px; }
  .add-pop { grid-template-columns: 1fr; }
}
.line-tabs {
  display: flex; gap: 0; margin: 0 0 16px;
  border-bottom: 1px solid var(--line);
}
.line-tab {
  background: none; border: 0; padding: 10px 16px; font-weight: 650; cursor: pointer;
  color: #64748b; box-shadow: inset 0 -2px 0 transparent;
}
.line-tab.on { color: #0a0a0a; box-shadow: inset 0 -2px 0 #2f6bff; }
.banks-wrap { overflow: hidden; }
.banks-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.banks-head h3 { margin: 0; font-size: 15px; }
.matrix-scroll { overflow: auto; max-height: min(52vh, 520px); border: 1px solid var(--line); border-radius: 12px; }
.bank-matrix { width: 100%; border-collapse: collapse; font-size: 13px; }
.bank-matrix th, .bank-matrix td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.bank-matrix thead th { position: sticky; top: 0; background: #f8fafc; z-index: 1; }
.bank-matrix .row-bank { position: sticky; left: 0; background: #fff; z-index: 1; font-weight: 650; white-space: nowrap; }
.bank-matrix .col-pii.on { background: #eef4ff; }
.bank-matrix-wrap { min-width: 0; }
.matrix-group .matrix-group-h {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
}
.bank-matrix tr.matrix-product.bureau-row .bank-col {
  background: #fafbff;
  border-left: 3px solid #6366f1;
  padding-left: 9px;
}
.bank-label-split {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.12;
  font-size: 12px;
  gap: 1px;
}
.bank-label-split span:first-child { font-weight: 700; }
.bank-label-split span:last-child { font-weight: 650; color: #334155; }
.mcell {
  display: block; width: 100%; min-width: 72px; text-align: left;
  border: 1px solid #f1f5f9; background: #fff; border-radius: 10px;
  padding: 6px 8px; cursor: pointer; font: inherit;
  transition: background .12s, border-color .12s;
}
.mcell.has-val.mark-yes { background: #ecfdf5; border-color: #bbf7d0; }
.mcell.has-val.mark-verif { background: #fff7ed; border-color: #fed7aa; }
.mcell.has-val.mark-no { background: #fef2f2; border-color: #fecaca; }
.mcell.has-val.mark-lock { background: #f1f5f9; border-color: #cbd5e1; }
.mcell.on { border-color: #2f6bff; box-shadow: inset 0 0 0 1px #2f6bff; }
.mcell.on.has-val.mark-yes { background: #ecfdf5; }
.mcell.on.has-val.mark-verif { background: #fff7ed; }
.mcell.on.has-val.mark-no { background: #fef2f2; }
.mcell.on.has-val.mark-lock { background: #f1f5f9; }
.mcell:hover { filter: brightness(0.98); }
.mcell-empty { color: #cbd5e1; font-weight: 600; }
.mcell-meta { display: block; font-size: 11px; color: #64748b; margin-top: 4px; }
.mcell-badges { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.pin-badge, .cmt-badge {
  font-size: 11px; font-weight: 650; padding: 1px 6px; border-radius: 6px;
  background: #f1f5f9; color: #475569;
}
.mark-panel { align-self: start; position: sticky; top: 12px; }
.mark-panel h3 { margin: 0 0 8px; font-size: 16px; }
.mark-panel .desk-meta { margin-bottom: 12px; }
.note-lab { display: grid; gap: 6px; margin-top: 8px; }
.note-lab textarea {
  min-height: 72px; resize: vertical; width: 100%;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit;
}
.comment-thread { display: grid; gap: 10px; margin: 14px 0 0; max-height: 280px; overflow: auto; }
.comment {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fafbfc;
}
.comment header {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: #64748b; margin-bottom: 6px;
}
.comment header strong { color: #0f172a; font-size: 13px; }
.comment-body { font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.comment-form { display: grid; gap: 8px; margin-top: 12px; }
.comment-form textarea {
  min-height: 64px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; padding: 10px;
}
.linkish { background: none; border: 0; color: #2f6bff; cursor: pointer; font-size: 12px; padding: 0; margin-left: auto; }
@media (max-width: 960px) {
  .mark-panel { position: static; }
}

/* Project hub (Bank · APP · Site · …) */
.phub-head .row-actions { gap: 10px; }
.phub-nav {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px;
  padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .65);
  border: 1px solid var(--line);
}
.phub-tab {
  padding: 10px 16px; border-radius: 10px; font-weight: 650; font-size: 13px;
  color: #64748b; text-decoration: none; transition: background .15s, color .15s, box-shadow .15s;
}
.phub-tab:hover { color: #0f172a; background: rgba(255, 255, 255, .9); }
.phub-tab.on {
  color: #0f172a; background: #fff;
  box-shadow: 0 4px 14px rgba(47, 107, 255, .12); border: 1px solid rgba(47, 107, 255, .25);
}
.phub-kpis { margin-top: 4px; }
.phub-h3 { margin: 0 0 14px; font-size: 15px; font-weight: 750; letter-spacing: -.01em; }
.phub-cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}
.phub-cat-card {
  display: block; padding: 16px 18px; border-radius: 16px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.phub-cat-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--cat, #64748b) 35%, var(--line));
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}
.phub-cat-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.phub-cat-label { font-weight: 750; font-size: 15px; }
.phub-cat-n {
  font-size: 1.25rem; font-weight: 800; color: #0f172a; letter-spacing: -.02em;
}
.phub-bar {
  height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin: 10px 0 8px;
}
.phub-bar > i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--cat, #2f6bff), color-mix(in srgb, var(--cat, #2f6bff) 60%, #fff));
}
.phub-bar.inline { width: 72px; display: inline-block; vertical-align: middle; margin: 0 8px 0 0; }
.phub-pills {
  display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; font-weight: 650; color: #64748b;
}
.phub-pills span { color: #64748b; }
.phub-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle;
}
.phub-dot.lg { width: 12px; height: 12px; margin-right: 10px; }
.phub-sort { white-space: nowrap; width: 56px; }
.phub-sort .linkish { margin: 0 4px 0 0; font-size: 14px; }
.phub-report td { vertical-align: middle; }
.proj-add select {
  min-width: 140px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit;
}
@media (max-width: 720px) {
  .phub-cat-grid { grid-template-columns: 1fr; }
  .proj-add { flex-wrap: wrap; }
  .proj-add select { width: 100%; }
}
