/* Shared light chrome for Workbook pages. Colony does not use this file.
   Restated here so a dark office.css (the Colony sheet) cannot paint the main pane black. */

html:has(body[data-screen]) {
  margin: 0;
  color-scheme: light;
  --bg: #eef1f6;
  --panel: #ffffff;
  --panel-2: #f7f8fb;
  --line: #e4e7ee;
  --text: #1c2430;
  --muted: #667085;
  --dim: #98a2b3;
  --accent: #c2410c;
  --navy: #1e3a5f;
  --danger: #b42318;
  --shadow: 0 8px 24px rgba(28, 36, 48, 0.06);
  background: #eef1f6;
  color: #1c2430;
}

body[data-screen] {
  margin: 0;
  background: #eef1f6;
  color: #1c2430;
}

body[data-screen] .wb-content {
  background: #eef1f6;
  color: #1c2430;
  min-height: calc(100vh - 59px);
}

body[data-screen="dashboard"] .wb-content {
  background: #f4f6f8;
}

body[data-screen] .review,
body[data-screen] .hook,
body[data-screen] .page,
body[data-screen] .task-page,
body[data-screen] main {
  color: #1c2430;
}

body[data-screen] .review,
body[data-screen] .hook {
  background: #fff;
}




/* Sign-in and not-authorized. Same light tokens as the signed-in shell. */
body[data-screen="gate"] {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px 16px;
}

body[data-screen="gate"] .gate-card {
  width: min(480px, 100%);
  padding: 32px 32px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: var(--shadow);
}

body[data-screen="gate"] .gate-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}

body[data-screen="gate"] .gate-workbook {
  display: block;
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin-bottom: 12px;
}

body[data-screen="gate"] h1 {
  margin: 0;
  text-align: center;
  font-size: 32px;
  letter-spacing: -0.03em;
}

body[data-screen="gate"] .gate-by {
  margin: 6px 0 0;
  text-align: center;
  color: #667085;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

body[data-screen="gate"] .gate-status {
  margin: 0 0 8px;
  text-align: center;
  font-size: 22px;
  letter-spacing: -0.02em;
}

body[data-screen="gate"] .lede,
body[data-screen="gate"] .quiet {
  text-align: center;
}

body[data-screen="gate"] .eyebrow { color: var(--accent); }

body[data-screen="gate"] .lede,
body[data-screen="gate"] .quiet { color: var(--muted); }

body[data-screen="gate"] .btn.google {
  background: #fff;
  color: #1c2430;
  border: 1px solid #d0d5dd;
  font-weight: 700;
}

body[data-screen="gate"] .btn.primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

body[data-screen="gate"] .message {
  background: #fef3f2;
  color: var(--danger);
  border: 1px solid #fecdca;
}

.wb-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 30;
}

.wb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1c2430;
  text-decoration: none;
  min-width: 0;
}

.wb-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  flex: none;
}

.wb-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 18px;
}

.wb-name small {
  font-weight: 600;
  color: #667085;
  letter-spacing: 0;
  font-size: 11px;
}

.wb-home {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e4e7ee;
  background: #f7f8fb;
  color: #1e3a5f;
  text-decoration: none;
}

.wb-home:hover { background: #eef4ff; }

.wb-crumb {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #667085;
  min-width: 0;
}

.wb-crumb a { color: #1e3a5f; font-weight: 700; text-decoration: none; }
.wb-crumb .sep { color: #c5cad3; }

.wb-spacer { flex: 1; }

.wb-top .who { margin-left: 0; color: #667085; font-size: 14px; }

.wb-top .btn {
  border: 1px solid #d5d9e2;
  background: white;
  color: #1c2430;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
}

.wb-shell { display: flex; align-items: stretch; min-height: calc(100vh - 59px); }

.wb-side {
  width: 248px;
  flex: none;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  position: sticky;
  top: var(--wb-top-height, 72px);
  height: calc(100dvh - var(--wb-top-height, 72px));
  max-height: calc(100dvh - var(--wb-top-height, 72px));
  display: flex;
  flex-direction: column;
  padding: 14px 0 8px;
  overflow: hidden;
  box-sizing: border-box;
}

.wb-groups { flex: 1 1 auto; overflow: auto; min-height: 0; }

.wb-group + .wb-group { margin-top: 16px; }

.wb-kicker {
  margin: 0 0 8px;
  padding: 0 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
}

.wb-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.wb-tabbar a,
.wb-crumb a {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.wb-side nav a.wb-link,
.wb-more a.wb-link {
  width: auto;
  margin: 2px 10px;
  justify-content: flex-start;
  border: none;
  outline: none;
  box-shadow: none;
  background: #ffffff;
  color: #1c2430;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 12px;
}

.wb-ico.tone-tasks { background: #e7f0fb; color: #2457c5; }
.wb-ico.tone-timesheets { background: #e5f6ec; color: #1c8a4c; }
.wb-ico.tone-bills { background: #fff1e6; color: #c2410c; }
.wb-ico.tone-toolbox { background: #fff6d8; color: #a16207; }
.wb-ico.tone-scout { background: #e5f7f2; color: #0f766e; }
.wb-ico.tone-settings { background: #eef0f6; color: #3d4a63; }

.wb-crumb a {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  color: #1e3a5f;
  font-weight: 700;
}

.wb-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 4px 8px;
  border-radius: 10px;
  color: #3d4654;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.wb-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
  color: #5c6b80;
}

.wb-label { flex: 1; min-width: 0; }

.wb-side nav a.wb-link:hover,
.wb-more a.wb-link:hover {
  background: #f9fafb;
  border: none;
  color: #111827;
}

.wb-side nav a.wb-link:hover .wb-ico,
.wb-more a.wb-link:hover .wb-ico { filter: brightness(0.97); }

.wb-link:focus-visible {
  outline: 2px solid #1e3a5f;
  outline-offset: 2px;
}

.wb-side nav a.wb-link[aria-current="page"],
.wb-more a.wb-link[aria-current="page"] {
  background: #e7f0fb;
  border: none;
  color: #102a4c;
  font-weight: 800;
}

.wb-side .wb-ico,
.wb-more .wb-ico,
.wb-tabbar .wb-ico {
  display: grid;
}

.wb-link .count {
  margin-left: 8px;
  min-width: 1.4em;
  text-align: center;
  border-radius: 999px;
  background: #fff;
  color: #1e3a5f;
  font-size: 12px;
  font-weight: 700;
  padding: 1px 6px;
}

.wb-collapse {
  margin-top: auto;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-top: 1px solid #eef1f6;
  background: #fff;
  color: #667085;
  font-weight: 650;
  font-size: 13px;
  min-height: 44px;
  padding: 10px 8px 4px;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.wb-collapse:hover { background: #f3f6fb; color: #1c2430; }

.wb-shell.is-collapsed .wb-side { width: 76px; padding-left: 0; padding-right: 0; }
.wb-shell.is-collapsed .wb-collapse {
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 8px 0;
}
.wb-bills-count {
  margin-left: auto;
  min-width: 1.4em;
  padding: 1px 6px;
  border-radius: 999px;
  background: #c2410c;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}
.wb-shell.is-collapsed .wb-side .wb-bills-count {
  position: absolute;
  top: 12px;
  left: calc(50% - 6px);
  right: auto;
  margin: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  line-height: 16px;
  z-index: 3;
  pointer-events: none;
}
.wb-shell.is-collapsed .wb-kicker,
.wb-shell.is-collapsed .wb-label,
.wb-shell.is-collapsed .count,
.wb-shell.is-collapsed .wb-collapse-label { display: none; }
.wb-shell.is-collapsed .wb-nav a.wb-link,
.wb-shell.is-collapsed .wb-collapse { justify-content: center; padding-left: 0; padding-right: 0; }
.wb-shell.is-collapsed .wb-group + .wb-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef1f6;
}

.wb-content { flex: 1; min-width: 0; }

.wb-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: #fff;
  border-top: 1px solid #e4e7ee;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}

.wb-tabbar a.wb-link, .wb-tabbar .wb-more-btn {
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 0;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 4px 2px;
  cursor: pointer;
}

.wb-tabbar .wb-ico { width: 22px; height: 22px; border-radius: 7px; box-shadow: none; }
.wb-tabbar .wb-label { flex: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.wb-tabbar .wb-link::before { display: none; }
.wb-tabbar a.wb-link[aria-current="page"], .wb-tabbar .wb-more-btn[aria-current="page"] {
  background: #e7f0fb;
  color: #102a4c;
  border-radius: 12px;
}
.wb-tabbar .count { margin-left: 0; }

.wb-more-btn {
  display: flex;
  align-items: center;
  color: #667085;
  font: inherit;
}

.wb-more {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: 64px;
  z-index: 41;
  background: #fff;
  border: 1px solid #e4e7ee;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(28, 36, 48, 0.12);
  padding: 8px;
}

.task-page { padding: 22px; max-width: 880px; }
.task-page h1 { margin: 0; font-size: 28px; letter-spacing: -0.03em; }
.task-page .sub { margin: 6px 0 16px; color: #667085; }
.task-card {
  display: block;
  background: #fff;
  border: 1px solid #e4e7ee;
  border-left: 4px solid var(--stripe, #3b6fd8);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(28, 36, 48, 0.04);
}
.task-card strong { display: block; }
.task-card span { display: block; color: #667085; font-size: 13px; margin-top: 4px; }
.task-card em { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #1e3a5f; }
.task-card .task-notes { color: #98a2b3; }

.shortcut-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.shortcut-list li { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.shortcut-list kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.8em;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid #d5dbe6;
  background: #f7f8fb;
  color: #1e3a5f;
  font: 700 12px/1.4 ui-sans-serif, system-ui, sans-serif;
}
.empty-tasks { background: #fff; border: 1px solid #e4e7ee; border-radius: 14px; padding: 22px; color: #667085; }

.dash-page { padding: 22px 28px 40px; max-width: none; }
.dash-page h1 { margin: 0; font-size: 34px; font-weight: 750; letter-spacing: -0.03em; color: #1c2430; }

.tb-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.tb-title-row { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap; }
.tb-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef0f4;
  color: #8b93a3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.tb-logo { height: 46px; width: auto; object-fit: contain; flex: none; }

.dispatch-panel {
  background: #fff;
  border: 1px solid #e7e9ef;
  border-top: 3px solid #0047AB;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
  padding: 16px 18px 6px;
}
.dispatch-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 12px;
  padding-bottom: 12px;
}
.dispatch-ident { display: flex; align-items: flex-start; gap: 12px; min-width: 0; grid-column: 1; }
.dispatch-ident > div { min-width: 0; flex: 1; }
.dispatch-cal {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f3f4f6;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 18px;
}
.dispatch-ident h2 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; color: #003C95; }
.dispatch-ident p { margin: 2px 0 0; color: #98a2b3; font-size: 13px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid #e6e8ee;
  border-radius: 999px;
  background: #fff;
  padding: 2px;
  grid-column: 2;
  justify-self: center;
}
.day-pill .day-nav {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  font-size: 18px;
  cursor: pointer;
}
.day-pill .day-nav:hover { background: #f3f4f6; color: #111827; }
.day-label {
  min-width: 108px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #003C95;
}
.dispatch-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; grid-column: 3; justify-self: end; }
.today-jump, .icon-btn, .collapse-btn {
  border: 1px solid #e6e8ee;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
  font-weight: 800;
}
.today-jump {
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 16px;
}
.collapse-btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.today-jump:hover, .icon-btn:hover, .collapse-btn:hover { background: #f8fafc; }
.dispatch-panel .error { margin: 0 0 8px; color: #c2410c; font-weight: 700; font-size: 13px; }
.dispatch-panel .error:empty { display: none; }
.dispatch-panel.is-collapsed { padding-bottom: 16px; }

.job-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  width: 100%;
  min-height: 52px;
  border-top: 1px solid #f0f2f6;
  background: transparent;
}
.job-row:hover { background: #f8fafc; }
.job-check {
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.job-check:focus-visible { outline: 2px solid #0047AB; outline-offset: 1px; }
.job-check:disabled { cursor: default; opacity: 0.6; }
.job-check-box {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #c5cad3;
  background: #fff;
  display: grid;
  place-items: center;
}
.job-row.is-done .job-check-box,
.mt-card.is-done .job-check-box {
  border-color: #16a34a;
  background: #16a34a;
}
.job-row.is-done .job-check-box::after,
.mt-card.is-done .job-check-box::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}
.job-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.job-open {
  flex: 1;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 8px 2px 8px 0;
}
.job-line {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}
.ref-pill {
  display: inline-flex;
  align-items: center;
  flex: none;
  border-radius: 6px;
  padding: 1px 7px;
  background: #0047AB;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.45;
}
.ref-pill.s, .ref-pill.ref { background: #0047AB; }
.ref-pill.p { background: #4d7c0f; }
.ref-pill.j { background: #5b4db8; }
.ref-pill.q { background: #c2410c; }
.job-chip {
  display: block;
  flex: none;
  max-width: 34%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.job-chip.install { background: #f3e8ff; color: #7c3aed; }
.job-chip.service { background: #e5eeff; color: #0047AB; }
.job-chip.pmi { background: #ecfccb; color: #4d7c0f; }
.job-chip.quote, .job-chip.office { background: #ffedd5; color: #c2410c; }
.job-chip.mechanic { background: #ccfbf1; color: #0f766e; }
.job-chip.task, .job-chip.status, .job-chip.job-project { background: #f3f4f6; color: #4b5563; }
.job-chip.done { background: #e7f8ee; color: #16a34a; }
.job-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  font-weight: 650;
  color: #1f2937;
}
.job-name.is-wrap { flex-wrap: wrap; align-items: center; }
.job-title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.job-name.is-wrap .job-title-text {
  overflow: visible;
  white-space: normal;
  text-overflow: unset;
}
.job-row.is-done .job-title-text { color: #9ca3af; text-decoration: line-through; }
.job-row.is-backlog .job-name,
.job-row.is-backlog .job-title-text { font-weight: 400; }
.job-parent {
  flex: 0 1 auto;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 400;
}
.job-row.is-backlog .job-open { flex-wrap: wrap; }
.job-comment {
  flex: 1 0 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
}
.job-row.is-done .job-comment { color: #9ca3af; text-decoration: line-through; }
.job-row.is-dragging { opacity: 0.45; }
.job-person {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  max-width: 32%;
  min-width: 0;
}
.job-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}
.job-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.job-assignee-field { position: relative; }
.job-assignee-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 36px;
  border: 1px solid #e4e7ee;
  border-radius: 999px;
  background: #fff;
  color: #1f2937;
  padding: 2px 10px 2px 4px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.job-assignee-btn:hover { background: #f3f6fb; }
.job-assignee-caret { color: #98a2b3; font-size: 12px; }
.job-people {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid #e4e7ee;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.14);
  overflow: hidden;
}
.job-people[hidden] { display: none; }
.job-people input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eef1f6;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color: #1f2937;
  background: #fff;
}
.job-people-list { max-height: 220px; overflow: auto; }
.job-person-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  border: 0;
  background: #fff;
  color: #1f2937;
  padding: 6px 10px;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.job-person-choice:hover { background: #f3f6fb; }
.job-people-note { margin: 0; padding: 10px 12px; color: #98a2b3; font-size: 13px; }
.job-assignee-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 750;
  color: #374151;
}
.job-empty {
  margin: 4px 0 12px;
  padding: 18px 12px;
  border: 1px dashed #e4e7ee;
  border-radius: 14px;
  background: #fafbfc;
  text-align: center;
}
.job-empty strong { display: block; color: #1f2937; font-size: 14px; }
.job-empty span { display: block; margin-top: 4px; color: #98a2b3; font-size: 13px; font-weight: 650; }
.dispatch-soft { margin: 0 0 8px; color: #667085; font-size: 13px; font-weight: 650; }
.dispatch-soft:empty { display: none; }

.mt-backlog { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.mt-section {
  background: #fff;
  border: 1px solid #e7e9ef;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.04);
  overflow: hidden;
}
.mt-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  background: #fff;
  color: #003C95;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
}
.mt-toggle:hover { background: #f8fafc; }
.mt-chev { width: 14px; flex: none; color: #98a2b3; font-size: 11px; }
.mt-name { min-width: 0; }
.mt-count {
  margin-left: auto;
  min-width: 1.5em;
  padding: 1px 7px;
  border-radius: 999px;
  background: #e8f0fe;
  color: #0047AB;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.mt-section.is-collapsed .mt-body { display: none; }
.mt-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 4px 8px 4px 4px;
}
.mt-fold {
  width: auto;
  flex: none;
  min-height: 36px;
  padding: 8px 6px;
}
.mt-head .mt-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #003C95;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.mt-rename-btn {
  flex: none;
  border: 0;
  background: transparent;
  color: #0047AB;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  padding: 4px 2px;
}
.mt-rename-btn:hover { color: #003C95; }
.mt-rename-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #c5d4f5;
  border-radius: 8px;
  background: #fff;
  color: #003C95;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 8px;
}
.mt-delete {
  flex: none;
  border: 0;
  background: transparent;
  color: #98a2b3;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 2px;
}
.mt-delete:hover { color: #b42318; }
.mt-body.is-drop { background: #f3f7ff; }
.mt-card.is-dragging { opacity: 0.45; }
.mt-grip {
  flex: none;
  align-self: center;
  margin-top: 4px;
  color: #c5cad3;
  font-size: 12px;
  letter-spacing: -2px;
  cursor: grab;
  padding: 6px 2px;
  user-select: none;
}
.mt-grip:active { cursor: grabbing; }
.mt-add {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 8px;
  background: #fff;
  border: 1px dashed #d5dbe6;
  border-radius: 16px;
}
.mt-add-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #e4e7ee;
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  font: inherit;
  font-size: 14px;
  padding: 8px 10px;
}
.mt-add-btn {
  flex: none;
  border: 0;
  border-radius: 10px;
  background: #e8f0fe;
  color: #0047AB;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  cursor: pointer;
}
.mt-flat {
  background: #fff;
  border: 1px solid #e7e9ef;
  border-radius: 16px;
  overflow: hidden;
}
.mt-flat .mt-none { border-top: 0; }
.mt-card {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  min-height: 44px;
  border-top: 1px solid #f0f2f6;
  background: #fff;
  padding-right: 8px;
}
.mt-card .job-check { margin-top: 2px; }
.mt-card:hover { background: #f8fafc; }
.mt-open {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 6px 0;
}
.mt-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  font-weight: 400;
}
.mt-task-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1f2937;
  font-size: 14px;
  font-weight: 400;
}
.mt-parent {
  flex: 0 1 auto;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 400;
}
.mt-card.is-done .mt-task-name { color: #9ca3af; text-decoration: line-through; }
.mt-status {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.mt-open .mt-ref { flex: none; font-size: 13px; padding: 2px 8px; }
.mt-parts {
  flex: 0 0 auto;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.35;
}
.mt-parts.is-ordered { background: #ffefd2; color: #b45309; }
.mt-parts.is-shop { background: #e5f6ea; color: #15803d; }
.mt-parts.is-site { background: #e5eeff; color: #0047AB; }
.mt-parts.is-parts { background: #fff6d0; color: #a16207; }
.mt-due {
  flex: none;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.mt-comment {
  min-width: 5.5rem;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  color: #667085;
}
.mt-card.is-done .mt-comment { color: #9ca3af; text-decoration: line-through; }
.mt-open .job-chip { display: inline-block; max-width: 34%; flex: none; padding: 2px 6px; }
.mt-none {
  margin: 0;
  padding: 8px 12px 10px;
  border-top: 1px solid #f0f2f6;
  color: #98a2b3;
  font-size: 13px;
  font-weight: 650;
}
.mt-empty {
  margin: 0;
  padding: 14px 12px;
  border: 1px dashed #e4e7ee;
  border-radius: 14px;
  background: #fff;
  color: #98a2b3;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}
body[data-screen="tasks"] .wb-content { background: #f4f6f8; }

body.job-modal-open { overflow: hidden; }
.job-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  background: rgba(16, 24, 40, 0.45);
}
.job-modal[hidden] { display: none; }
.job-modal-card {
  width: min(560px, 100%);
  max-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e7e9ef;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.18);
  overflow: hidden;
}
.job-modal-top { display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 8px; }
.job-modal-heading { min-width: 0; flex: 1; }
.job-modal-top h3 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 750; color: #003C95; }
.job-modal-top h3 .job-name { color: #1f2937; }
.job-modal-top h3 .job-name.is-wrap .job-title-text { font-weight: 400; }
.job-modal-top h3 .job-name.is-wrap .job-parent {
  max-width: none;
  overflow: visible;
  white-space: normal;
  text-overflow: unset;
  font-weight: 400;
}
.job-modal-body { flex: 1; min-height: 0; overflow: auto; padding: 4px 16px 8px; }
.job-facts { margin: 0; }
.job-facts > div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #f0f2f6;
}
.job-facts dt { margin: 0; color: #98a2b3; font-size: 12px; font-weight: 750; }
.job-facts dd { margin: 0; color: #1f2937; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.job-facts .job-person { max-width: none; }
.job-address { color: #0047AB; font-weight: 800; text-underline-offset: 2px; }
.job-address:hover { color: #003C95; }
.asana-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}
.asana-pill.is-plain { background: #f3f4f6; color: #4b5563; }
.job-block { margin-top: 14px; }
.job-block h4 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #98a2b3;
}
.job-description { margin: 0; white-space: pre-wrap; color: #1f2937; font-size: 14px; line-height: 1.45; }
.job-comment { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-top: 1px solid #f0f2f6; }
.job-comment strong { display: block; font-size: 12px; color: #003C95; }
.job-comment p { margin: 2px 0 0; font-size: 14px; color: #1f2937; white-space: pre-wrap; }
.job-comment-empty { margin: 0; color: #98a2b3; font-size: 13px; }
.job-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.job-photos:empty { display: none; }
.job-photos a {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e4e7ee;
  background: #f8fafc;
  text-decoration: none;
}
.job-photos a.job-shot { width: 72px; height: 72px; }
.job-photos a.job-file {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: #0047AB;
  font-size: 13px;
  font-weight: 800;
}
.job-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.job-composer { display: flex; flex-direction: column; gap: 6px; }
.job-pending {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  max-width: 100%;
}
.job-pending[hidden] { display: none; }
.job-composer-row { display: flex; align-items: flex-end; gap: 6px; min-width: 0; }
.job-comment-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
.job-composer textarea {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 40px;
  min-height: 40px;
  max-height: 80px;
  resize: none;
  border: 1px solid #e4e7ee;
  border-radius: 20px;
  padding: 9px 12px;
  font: inherit;
  font-size: 16px;
  line-height: 1.25;
  color: #1f2937;
  background: #f7f8fb;
}
.job-attach { position: relative; display: flex; align-items: center; flex: none; }
.job-plus {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #0047AB;
  color: #fff;
  cursor: pointer;
}
.job-plus svg { display: block; }
.job-plus:hover, .job-plus[aria-expanded="true"] { background: #003C95; }
.job-plus:active { transform: scale(0.96); }
.job-plus:disabled { opacity: 0.55; cursor: default; box-shadow: none; }
.job-attach-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 6;
  width: min(280px, calc(100vw - 48px));
  padding: 6px;
  background: #fff;
  border: 1px solid #e6eaf2;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.18);
}
.job-attach-menu[hidden] { display: none; }
.job-attach-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #1f2937;
  padding: 6px 8px;
  text-align: left;
  cursor: pointer;
}
.job-attach-ico {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #0047AB;
  color: #fff;
}
.job-attach-item:nth-child(2) .job-attach-ico { background: #003C95; }
.job-attach-ico svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.job-attach-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; gap: 1px; }
.job-attach-item strong { font-size: 15px; font-weight: 750; letter-spacing: -0.01em; color: #1c2430; }
.job-attach-item small { color: #667085; font-size: 12px; font-weight: 650; }
.job-attach-item:hover, .job-attach-item:focus-visible { background: #f3f6fb; }
.job-attach-item:active { background: #e5eeff; }
.job-photo-clear {
  border: 0;
  background: transparent;
  color: #667085;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  flex: none;
}
.job-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
.job-photo-preview {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e4e7ee;
  flex: none;
}
.job-photo-preview[hidden] { display: none; }
.job-photo-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}
.job-comment-send, .job-complete {
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  flex: none;
}
.job-comment-send {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: #0047AB;
  color: #fff;
}
.job-comment-send:hover { background: #003C95; }
.job-comment-send svg { display: block; }
.job-modal-foot {
  border-top: 1px solid #e7e9ef;
  padding: 8px 12px 10px;
  background: #fff;
}
.job-modal-error { margin: 0 0 6px; color: #c2410c; font-size: 13px; font-weight: 700; }
.job-modal-error:empty { display: none; margin: 0; }
.job-actionbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.job-complete, .job-asana {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  border: 0;
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.job-complete { background: #16a34a; color: #fff; }
.job-complete.is-done { background: #e5e7eb; color: #1f2937; }
.job-asana { background: #0047AB; color: #fff; }
.job-asana:hover { background: #003C95; }
.job-asana.is-disabled { opacity: 0.55; pointer-events: none; }
.job-complete:disabled, .job-comment-send:disabled { opacity: 0.55; cursor: default; }
@media (min-width: 760px) {
  .job-modal { align-items: center; padding: 24px; }
}

.tools-kicker {
  margin: 26px 0 14px;
  text-align: center;
  color: #b0b7c3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.tool-rows { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tool-row { display: flex; justify-content: center; gap: 14px; width: 100%; }
.tool-row .tool-tile { flex: 1 1 0; max-width: 340px; }
.tool-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 16px 14px 14px;
  background: #fff;
  border: 1px solid #e8eaef;
  border-top: 4px solid var(--edge, #94a3b8);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
  color: #1c2430;
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.tool-tile:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(16, 24, 40, 0.08); }
.tool-emoji { font-size: 26px; line-height: 1; flex: none; }
.tool-name { flex: 1; min-width: 0; font-size: 15px; line-height: 1.25; }
.tool-badge {
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--badge, #f3f4f6);
  color: var(--edge, #4b5563);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.tool-chev { color: #c5cad3; font-size: 18px; font-weight: 700; flex: none; }
.tool-tile.timecard { --edge: #22c55e; --badge: #e8f8ee; }
.tool-tile.code { --edge: #3b82f6; --badge: #e7f0ff; }
.tool-tile.wire { --edge: #f59e0b; --badge: #fff6d8; }
.tool-tile.gas { --edge: #f97316; --badge: #ffedd5; }
.tool-tile.duct { --edge: #14b8a6; --badge: #ccfbf1; }

.dash-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 80;
  max-width: min(440px, calc(100vw - 24px));
  margin: 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: #102a4c;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 40px rgba(28, 36, 48, 0.2);
}
.dash-toast[hidden] { display: none; }

@media (max-width: 1100px) {
  .dispatch-ident p { display: none; }
}
@media (max-width: 760px) {
  .dash-page { padding: 12px 12px 20px; overflow-x: hidden; }
  .dash-page h1 { font-size: 28px; }
  .tb-head { align-items: flex-start; margin-bottom: 12px; }
  .tb-logo { height: 36px; }
  .tool-row { flex-direction: column; align-items: center; }
  .tool-row .tool-tile { width: min(100%, 420px); max-width: 420px; flex: none; }
  .dispatch-panel { border-radius: 16px; padding: 12px 12px 4px; }
  .dispatch-head {
    grid-template-columns: 1fr auto auto 1fr;
    grid-template-areas: "title title title title" ". day actions .";
    align-items: center;
    column-gap: 8px;
    row-gap: 8px;
    padding-bottom: 8px;
  }
  .dispatch-ident { grid-area: title; grid-column: auto; }
  .day-pill { grid-area: day; justify-self: end; grid-column: auto; }
  .dispatch-actions {
    grid-area: actions;
    grid-column: auto;
    width: auto;
    justify-self: start;
    flex-wrap: nowrap;
  }
  .collapse-btn { margin-left: 0; white-space: nowrap; }
  .job-check { width: 44px; height: 44px; }
  .job-chip { max-width: 30%; font-size: 10px; padding: 3px 6px; }
  .job-person { max-width: none; }
  .job-facts > div { grid-template-columns: 84px minmax(0, 1fr); }
  .job-modal { align-items: flex-end; padding: 0; }
  .job-modal-card {
    width: 100%;
    max-height: min(92dvh, calc(100dvh - env(safe-area-inset-top) - 8px));
    border-radius: 18px 18px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }
  .job-modal-foot { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .dash-toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .dash-page h1 { font-size: 24px; }
  .tb-pill { font-size: 10px; padding: 5px 8px; }
  .day-label { min-width: 92px; letter-spacing: 0.04em; }
  .collapse-btn { padding: 0 8px; }
}

.wb-ico { font-size: 16px; }

.wb-account { position: relative; }

.wb-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #1c2430;
  border-radius: 999px;
  min-height: 36px;
  padding: 2px 8px 2px 2px;
  font-weight: 700;
  cursor: pointer;
}

.wb-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #fff;
  background: #4186e0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.wb-account-name {
  font-weight: 700;
}

.wb-account-btn:hover { background: #f3f6fb; }

.wb-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  min-width: 220px;
  padding: 6px;
  background: #fff;
  color: #1c2430;
  border: 1px solid #e4e7ee;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(28, 36, 48, 0.12);
}

.wb-menu a,
.wb-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  min-height: 36px;
  padding: 8px 10px;
  color: #1c2430;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.wb-menu a:hover,
.wb-menu button:hover { background: #f3f6fb; }

.wb-dialog {
  width: min(480px, calc(100vw - 32px));
  background: #fff;
  color: #1c2430;
  border: 1px solid #e4e7ee;
  border-radius: 16px;
  padding: 18px;
}

.wb-dialog h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.03em; text-transform: none; color: #1c2430; }

.tab-picks { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 12px 0; }

.pick {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #1c2430;
}

.pick input { width: auto; }

.wb-dialog .btn {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #1c2430;
  border-radius: 10px;
  min-height: 36px;
  padding: 0 12px;
  font-weight: 700;
  cursor: pointer;
}
.wb-dialog .btn.primary { background: #1e3a5f; border-color: #1e3a5f; color: #fff; }
.bar-picks { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.bar-row { display: flex; align-items: center; gap: 8px; }
.bar-row .pick { flex: 1; }
.bar-stub {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fff6d8;
  color: #92400e;
  font-size: 11px;
  font-weight: 800;
}
.settings-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.settings-tab {
  border: 1.5px solid #d0d5dd;
  background: #fff;
  color: #1c2430;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 750;
  cursor: pointer;
}
.settings-tab[aria-selected="true"] {
  background: #1e3a5f;
  border-color: #1e3a5f;
  color: #fff;
}
.perm-scroll { overflow: auto; background: #fff; border: 1px solid #e4e7ee; border-radius: 16px; }
.perm-table { min-width: 760px; }
.perm-table th, .perm-table td { background: #fff; }
.perm-table input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; }
.perm-mail, .perm-status { display: block; color: #667085; font-size: 12px; font-weight: 600; }
.perm-own { margin: 0 0 12px; font-weight: 700; }
body[data-screen="settings"] .page { max-width: 1100px; }

@media (max-width: 760px) {
  .wb-side { display: none; }
  .wb-tabbar { display: flex; }
  .wb-content { padding-bottom: 76px; }
  .wb-crumb { display: none; }
  .wb-top { gap: 8px; padding-left: 10px; padding-right: 10px; }
  .wb-brand { flex: none; min-width: max-content; }
  .wb-name { font-size: 16px; }
  .wb-home { display: none; }
  .wb-account-name { display: none; }
  .wb-top .btn { padding: 0 10px; }
}
