:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  color: #20364d;
  background: #f6f9fc;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.google-setup { margin-top: 18px; border-top: 1px solid #dce5ee; padding-top: 15px; }
.google-setup summary { cursor: pointer; color: #245a77; font-weight: 650; font-size: 13px; }
.setup-steps { padding-left: 20px; font-size: 12px; line-height: 1.65; color: #526b80; }
.setup-steps li { margin: 10px 0; }
.callback-row { display: flex; align-items: center; gap: 8px; margin: 9px 0; }
.callback-row code { overflow-wrap: anywhere; flex: 1; min-width: 0; color: #20364d; font-size: 11px; }
.setup-form { display: grid; gap: 8px; margin-top: 16px; }
.setup-form label { font-size: 12px; font-weight: 600; }
.setup-form .fineprint { margin: 1px 0 8px; }
.setup-form .button { justify-self: start; }
button:disabled { cursor: not-allowed; opacity: .55; }

.shell { min-height: 100vh; display: flex; }
.rail {
  width: 232px;
  flex: 0 0 232px;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 13px 17px;
  background: #142438;
  color: #adbdcf;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 12px 24px; color: #fff; font-weight: 720; font-size: 19px; letter-spacing: -.5px; }
.brand small { display: block; margin-top: 2px; color: #8fa6ba; font-size: 9px; font-weight: 670; letter-spacing: 1.3px; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; background: #27a6d6; position: relative; display: block; }
.brand-mark span { position: absolute; left: 10px; top: 16px; width: 15px; height: 3px; border-radius: 3px; background: #fff; transform: rotate(60deg); }
.brand-mark span:nth-child(2) { transform: rotate(0deg); }
.brand-mark span:nth-child(3) { transform: rotate(-60deg); }
.workspace-switch { display: flex; align-items: center; gap: 9px; padding: 11px 10px; margin: 0 2px 19px; border: 1px solid #34465b; border-radius: 7px; background: #1a2e45; }
.workspace-avatar, .topbar-avatar { flex: 0 0 29px; height: 29px; display: grid; place-items: center; border-radius: 6px; color: #e7f7fc; background: #426b84; font-size: 13px; font-weight: 700; }
.workspace-switch strong, .workspace-switch small { display: block; white-space: nowrap; }
.workspace-switch strong { color: #eff7fb; font-size: 11px; font-weight: 650; }
.workspace-switch small { color: #839bb0; font-size: 10px; margin-top: 3px; }
.switch-caret { margin-left: auto; font-size: 17px; color: #a3b5c7; }
.rail-caption { margin: 8px 13px 9px; color: #738da4; font-size: 10px; font-weight: 700; letter-spacing: 1.15px; }
.rail-caption-second { margin-top: 27px; }
.rail nav { display: grid; gap: 3px; }
.nav-link { min-height: 38px; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 5px; border-left: 3px solid transparent; font-size: 12px; font-weight: 560; }
.nav-link:hover, .nav-link:focus-visible { color: #fff; background: #243a50; }
.nav-link.active { color: #e9faff; background: #1d3d58; border-left-color: #35b9e9; }
.nav-icon { width: 19px; text-align: center; color: #94b0c6; font-size: 18px; line-height: 1; }
.nav-link.active .nav-icon { color: #50c6f0; }
.rail-bottom { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 15px 11px 0; border-top: 1px solid #314358; font-size: 11px; }
.rail-version { margin-left: auto; color: #8197a9; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #61d5a3; }

.main { flex: 1; min-width: 0; }
.topbar { height: 58px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #dce5ee; background: #fff; }
.breadcrumbs, .topbar-right { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.breadcrumbs { color: #788da2; font-size: 12px; }
.breadcrumbs strong { color: #243c52; font-weight: 650; }
.chevron { color: #bac7d1; font-size: 20px; font-weight: 300; }
.topbar-label { color: #8b9cac; font-size: 10px; font-weight: 720; letter-spacing: .8px; }
.environment { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #bee6f4; border-radius: 4px; background: #eaf8fd; color: #087ba8; font-size: 10px; font-weight: 770; letter-spacing: .45px; }
.environment::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #26acd8; }
.topbar-avatar { margin-left: 9px; background: #e3f1f9; color: #2387aa; }
.content { max-width: 1490px; margin: 0 auto; padding: 31px 34px 24px; }
.heading-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.eyebrow { margin: 0 0 8px; color: #178caf; font-size: 10px; font-weight: 750; letter-spacing: 1.25px; }
.heading-row h1 { margin: 0; color: #19334b; font-size: 28px; font-weight: 680; letter-spacing: -.75px; line-height: 1.2; }
.subhead, .section-caption { margin: 7px 0 0; color: #788c9f; font-size: 12px; line-height: 1.5; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 34px; padding: 7px 13px; border: 1px solid #cbd9e4; border-radius: 5px; background: #fff; color: #166c9a; font-size: 11px; font-weight: 690; white-space: nowrap; }
.button:hover { border-color: #1994c2; background: #f0faff; }
.button.primary { background: #087fad; color: #fff; border-color: #087fad; }
.button.primary:hover { background: #076d96; }
.button.small { min-height: 29px; padding: 5px 9px; font-size: 11px; }
.button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #76d2f1; outline-offset: 2px; }
.refresh span { font-size: 17px; line-height: .7; }
.alert { margin-bottom: 18px; padding: 11px 13px; border: 1px solid #f0c9bc; border-left: 3px solid #d97952; border-radius: 4px; background: #fff7f4; color: #994f35; font-size: 12px; }
.alert.success { border-color: #a9d8c8; border-left-color: #42af89; background: #eefaf5; color: #187958; }

.overview-panel, .card { background: #fff; border: 1px solid #dce6ef; border-radius: 6px; box-shadow: 0 1px 2px #14385308; }
.overview-panel { overflow: hidden; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin: 30px 0 13px; }
.section-heading h2 { margin: 0; color: #263d51; font-size: 17px; font-weight: 690; letter-spacing: -.3px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.overview-heading { margin: 0; padding: 17px 20px 16px; border-bottom: 1px solid #e7edf2; align-items: center; }
.overview-heading h2 { font-size: 14px; }
.overview-heading .section-caption { margin-top: 3px; font-size: 11px; }
.muted { color: #9aaab8; font-size: 11px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: flex; gap: 13px; align-items: flex-start; min-width: 0; min-height: 105px; padding: 21px 20px; border-right: 1px solid #e7edf2; }
.stat:last-child { border-right: 0; }
.stat-icon, .card-icon { display: inline-grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 5px; font-size: 19px; }
.blue { background: #e9f6fc; color: #0c91c1; }
.cyan { background: #e7f9f8; color: #139eaa; }
.indigo { background: #edf1fd; color: #5b78c1; }
.gray { background: #eef3f7; color: #728ba4; }
.stat p { margin: 1px 0 5px; color: #8394a5; font-size: 9px; font-weight: 760; letter-spacing: .7px; }
.stat strong { display: block; color: #253f55; font-size: 18px; font-weight: 690; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat small { display: block; margin-top: 3px; color: #9aa9b5; font-size: 10px; }

.section-block { scroll-margin-top: 20px; }
.count { display: inline-block; vertical-align: middle; padding: 3px 7px; margin-left: 5px; border: 1px solid #d1eaf4; border-radius: 4px; background: #eff9fc; color: #1582aa; font-size: 11px; font-weight: 690; }
.text-link { color: #1088b4; font-size: 11px; font-weight: 690; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.points-card { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th { text-align: left; padding: 12px 17px; background: #f7fafc; color: #72899e; font-size: 10px; font-weight: 730; letter-spacing: .5px; text-transform: uppercase; border-bottom: 1px solid #dfe8ef; }
td { padding: 11px 17px; border-bottom: 1px solid #eaf0f4; color: #597084; font-size: 11px; }
tbody tr:hover { background: #f7fbfd; }
tbody tr:last-child td { border-bottom: 0; }
.point-source strong { display: block; color: #1f6089; font-size: 12px; font-weight: 670; }
.point-source small { display: block; margin-top: 4px; color: #9cabb9; font-size: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 4px; border: 1px solid #dce6ed; background: #f5f8fa; color: #6c8394; font-size: 10px; font-weight: 660; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9babb5; }
.badge.good { background: #effaf5; border-color: #ceebda; color: #227c5e; }
.badge.good::before { background: #45b98c; }
.badge.neutral { background: #f7f9fb; border-color: #e1e8ee; color: #6f8292; }
.actions-heading, .row-actions { text-align: right; }
.row-actions { white-space: nowrap; }
.row-actions button + button { margin-left: 6px; }
#handoff-body td:last-child { white-space: nowrap; }
#handoff-body td:last-child button + button { margin-left: 6px; }
.empty-cell { padding: 37px 16px; text-align: center; color: #8c9fb0; }
.points-note { padding: 11px 17px; margin: 0; border-top: 1px solid #e6edf3; color: #8194a4; font-size: 10px; line-height: 1.5; }

.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.source-grid { grid-template-columns: 1.12fr .88fr; }
.card { padding: 18px 19px; min-width: 0; }
.card-heading { display: flex; align-items: center; gap: 11px; }
.card-heading h3 { margin: 0; color: #294258; font-size: 13px; font-weight: 680; }
.card-heading p { margin: 3px 0 0; color: #91a2b0; font-size: 10px; }
.card-heading .badge { margin-left: auto; }
.source-list { margin-top: 17px; }
.source-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid #e9eff3; }
.source-icon { display: grid; flex: 0 0 31px; width: 31px; height: 31px; place-items: center; border: 1px solid #d4edf3; border-radius: 5px; background: #f0fbfd; color: #158eae; font-size: 17px; }
.source-info { flex: 1; min-width: 0; }
.source-info strong, .source-info small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-info strong { color: #36566e; font-size: 11px; }
.source-info small { margin-top: 4px; color: #94a5b2; font-size: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.empty { margin: 16px 0 3px; color: #91a2af; font-size: 11px; line-height: 1.6; }
.form-card form { display: grid; gap: 8px; margin-top: 15px; }
.form-card label, dialog label { color: #546a7d; font-size: 11px; font-weight: 650; }
.form-card input, dialog input { width: 100%; padding: 9px 10px; border: 1px solid #cfdde7; border-radius: 4px; background: #fff; color: #29445b; font-size: 11px; outline: none; }
.form-card input::placeholder, dialog input::placeholder { color: #aab9c5; }
.form-card .checkbox-label { display: flex; align-items: center; gap: 8px; line-height: 1.4; margin-top: 4px; }
.form-card input[type="checkbox"] { width: 15px; height: 15px; flex: 0 0 15px; padding: 0; margin: 0; }
.form-card #new-key { overflow-wrap: anywhere; user-select: all; }
.form-card form .button { justify-self: start; margin-top: 7px; }
.card-description { margin: 19px 0 13px; color: #697f90; font-size: 11px; line-height: 1.6; }
.connector-path { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 12px; margin: 0 0 14px; border: 1px solid #e4edf3; border-radius: 4px; background: #f8fbfd; color: #537188; font-size: 10px; font-weight: 650; }
.connector-path .path-arrow { color: #63a6c7; font-size: 14px; font-weight: 400; }
.fineprint { color: #93a5b2; font-size: 10px; line-height: 1.5; margin: 11px 0 0; }
.activity-state { display: flex; align-items: center; gap: 11px; margin-top: 20px; }
.activity-symbol { display: grid; flex: 0 0 33px; width: 33px; height: 33px; place-items: center; border-radius: 5px; color: #5383aa; background: #edf5fa; font-size: 18px; }
.activity-symbol.running { animation: pulse 1.3s infinite; }
.activity-symbol.done { color: #238b65; background: #e8f8ef; }
.activity-symbol.failed { color: #b75b47; background: #fef0ea; }
.activity-state strong { display: block; color: #375268; font-size: 12px; }
.activity-state small { display: block; margin-top: 4px; color: #91a4b1; font-size: 10px; }
.activity-note { padding-top: 12px; margin-top: 18px; border-top: 1px solid #e9eff3; }
.job-error { color: #a94932; font-size: 11px; overflow-wrap: anywhere; }
.job-id { color: #92a3b1; font-size: 10px; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
footer { margin-top: 30px; padding: 15px 0; border-top: 1px solid #e1e9ef; color: #91a3b2; font-size: 10px; }
footer span { margin: 0 6px; }

dialog { width: min(460px, calc(100vw - 32px)); padding: 25px; border: 1px solid #d9e5ed; border-radius: 6px; box-shadow: 0 22px 70px #11263d55; color: #28435b; }
dialog::backdrop { background: #14243899; }
dialog h2 { margin: 0; font-size: 19px; }
dialog p:not(.eyebrow) { color: #708699; font-size: 11px; line-height: 1.6; }
dialog label { display: block; margin: 18px 0 7px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
@keyframes pulse { 50% { opacity: .5; } }
@media (max-width: 1150px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid #e7edf2; }
}
@media (max-width: 900px) {
  .grid-two, .source-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .shell { display: block; }
  .rail { width: 100%; height: auto; position: static; display: block; padding: 12px; }
  .brand { display: inline-flex; padding: 3px 5px 9px; font-size: 17px; }
  .brand small, .workspace-switch, .rail-caption, .rail-bottom { display: none; }
  .rail nav { display: inline-flex; gap: 3px; max-width: 100%; overflow-x: auto; vertical-align: middle; }
  .nav-link { min-height: 30px; padding: 6px 8px; font-size: 10px; white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
  .nav-link.active { border-left: 0; border-bottom-color: #35b9e9; }
  .nav-icon { display: none; }
  .topbar { height: 49px; padding: 0 16px; }
  .topbar-label, .topbar-avatar { display: none; }
  .breadcrumbs { gap: 7px; font-size: 11px; }
  .environment { font-size: 9px; padding: 5px 6px; }
  .content { padding: 22px 15px; }
  .heading-row h1 { font-size: 24px; }
  .heading-row .refresh { font-size: 0; min-width: 34px; padding: 5px; }
  .heading-row .refresh span { font-size: 19px; }
  .overview-heading { padding: 14px; }
  .stat { padding: 15px 12px; min-height: 95px; gap: 9px; }
  .stat-icon { flex-basis: 28px; width: 28px; height: 28px; font-size: 16px; }
  .stat strong { font-size: 15px; }
  .section-heading { align-items: start; }
  .text-link { margin-top: 5px; }
  .source-row .button { font-size: 10px; }
}
