:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #17243b;
  background: #f5f7fb;
  font-synthesis: none;
  --nav: #111d35;
  --ink: #17243b;
  --muted: #64748b;
  --line: #e3e8f0;
  --blue: #345ede;
  --accent: #c6ee70;
  --radius: 12px;
}
[hidden] { display: none !important; }
.ads-workspace { display: grid; gap: 24px; min-width: 0; }
.ads-toolbar, .ads-actions, .ads-account-heading, .ads-account-footer, .ads-section-heading, .ads-rec-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ads-actions { justify-content: flex-end; }
.ads-mode { color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; gap: 8px; }
.ads-mode > span { width: 7px; height: 7px; background: #728f48; border-radius: 50%; }
.ads-accounts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.ads-panel, .ads-account, .ads-empty { background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.ads-account { padding: 24px; border-top: 3px solid transparent; }
.ads-account.selected { border-top-color: var(--blue); }
.ads-brand { padding: 0; color: var(--ink); background: none; border: 0; font-size: 18px; font-weight: 700; }
.ads-account-meta, .ads-account-footer, .ads-period, .ads-footnote { color: var(--muted); font-size: 12px; line-height: 1.6; }
.ads-account-meta { margin: 8px 0 24px; }
.ads-health, .ads-status, .ads-category { font-size: 11px; padding: 5px 9px; border-radius: 5px; background: #eef2f8; color: #526681; text-transform: capitalize; }
.ads-health.good { background: #eaf4df; color: #456825; }
.ads-health.pending { background: #fff4df; color: #8a662b; }
.ads-metrics, .ads-evidence { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 0 0 24px; }
.ads-metrics dt, .ads-evidence dt { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.ads-metrics dd { font-size: 25px; font-weight: 650; margin: 0; letter-spacing: -.7px; }
.ads-account-footer { padding-top: 16px; border-top: 1px solid var(--line); }
.ads-account-footer button { font-size: 12px; }
.ads-error, .ads-message { font-size: 13px; line-height: 1.6; color: #87502d; background: #fff6e9; padding: 14px; border-radius: 8px; }
.ads-quality { padding: 24px; display: grid; grid-template-columns: 1fr auto; column-gap: 32px; }
.ads-quality h2, .ads-section-heading h2 { font-size: 18px; margin-bottom: 8px; }
.ads-quality p, .ads-section-heading p, .ads-settings p { color: var(--muted); font-size: 13px; line-height: 1.65; margin-bottom: 0; }
.ads-quality strong { display: block; font-size: 26px; }
.ads-quality span { color: var(--muted); font-size: 11px; }
.ads-quality .ads-quality-note { grid-column: 1/-1; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ads-table-wrap { overflow-x: auto; }
.ads-table { display: table; width: 100%; border-collapse: collapse; text-align: right; font-size: 13px; }
.ads-table thead { display: table-header-group; }
.ads-table tbody { display: table-row-group; }
.ads-table th, .ads-table td { padding: 17px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ads-table th:first-child, .ads-table td:first-child { text-align: left; }
.ads-table th { background: #fafbfd; font-size: 11px; color: var(--muted); font-weight: 600; }
.ads-table td:first-child { min-width: 220px; max-width: 400px; white-space: normal; overflow-wrap: anywhere; }
.ads-table small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }
.ads-table .ads-table-empty { text-align: center; white-space: normal; padding: 36px; color: var(--muted); }
.ads-settings { padding: 22px; display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.ads-settings > div { flex: 1 1 250px; }
.ads-settings h3 { font-size: 14px; margin-bottom: 6px; }
.ads-settings label, .ads-filter { display: grid; gap: 8px; color: var(--muted); font-size: 11px; }
.ads-settings input, .ads-filter select { border: 1px solid var(--line); padding: 10px; border-radius: 7px; background: white; color: var(--ink); }
.ads-settings input { width: 175px; }
.ads-recommendations { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.ads-recommendation { padding: 24px; min-width: 0; overflow-wrap: anywhere; }
.ads-recommendation h3 { font-size: 17px; line-height: 1.4; margin: 18px 0 12px; }
.ads-recommendation p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.ads-evidence { grid-template-columns: repeat(3,minmax(0,1fr)); background: #f6f8fb; border-radius: 8px; padding: 16px; gap: 12px; }
.ads-evidence dd { margin: 0; font-size: 16px; font-weight: 600; }
.ads-proposal strong { font-size: 12px; }
.ads-proposal p { margin: 6px 0 12px; }
.ads-recommendation .ads-actions { justify-content: flex-start; }
.ads-no-recs { grid-column: 1/-1; color: var(--muted); padding: 32px; font-size: 13px; }
.ads-empty { text-align: center; padding: 60px 30px; }
.ads-empty p { max-width: 560px; margin: 0 auto 16px; line-height: 1.7; }
.ads-empty-symbol { font-size: 40px; color: var(--blue); margin-bottom: 20px; }
@media(max-width: 1100px) { .ads-accounts,.ads-recommendations { grid-template-columns: 1fr; } }
@media(max-width: 600px) { .ads-account,.ads-panel { padding: 18px; } .ads-table-wrap { padding: 0; } .ads-quality { grid-template-columns: 1fr; gap: 16px; } .ads-toolbar { align-items: flex-start; } .ads-actions { justify-content: flex-start; } .ads-metrics dd { font-size: 23px; } .ads-settings label { width: 100%; } .ads-settings input { width: 100%; } }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: var(--blue);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
button svg {
  width: 18px;
  height: 18px;
  flex: none;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--muted);
}
button.icon-button:hover {
  color: var(--ink);
  background: #f3f5fa;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--nav);
  font-size: 27px;
  font-weight: 800;
  font-style: italic;
}
.loading-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  color: var(--muted);
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--nav);
  padding: 24px;
}
.login-card {
  width: min(440px, 100%);
  background: white;
  border-radius: 20px;
  padding: 42px;
  box-shadow: 0 20px 80px #040d2440;
}
.login-card .brand {
  color: var(--ink);
  margin-bottom: 40px;
}
.login-card h1 {
  font-size: 29px;
  letter-spacing: -1px;
}
.login-card p {
  color: var(--muted);
  line-height: 1.65;
}
.login-card .primary {
  width: 100%;
  margin-top: 15px;
  text-decoration: none;
}
.login-note {
  padding: 13px;
  border-radius: 9px;
  background: #fff4df;
  color: #8b5c17 !important;
  font-size: 14px;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  background: var(--nav);
  color: #b1bdd2;
  padding: 28px 16px 18px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.8px;
  padding: 0 10px;
  margin-bottom: 31px;
}
.brand span:last-child {
  font-weight: 400;
  color: #b9c6e3;
}
.workspace-label {
  margin: 0 12px 13px;
  color: #8293b1;
  letter-spacing: 1.6px;
  font-size: 12px;
  font-weight: 700;
}
.nav-group {
  display: grid;
  gap: 4px;
}
.nav-button {
  justify-content: flex-start;
  border: 0;
  width: 100%;
  background: none;
  color: #b1bdd2;
  padding: 12px 13px;
  font-size: 14px;
  text-align: left;
  border-radius: 8px;
  gap: 12px;
  line-height: 1.5;
}
.nav-button:hover {
  background: #1b2a46;
  color: white;
}
.nav-button.active {
  background: #263754;
  color: white;
}
.nav-button.active svg {
  color: var(--accent);
}
.nav-button .count {
  margin-left: auto;
  background: #3b4b65;
  color: #e0e7f5;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 12px;
}
.board-section {
  margin-top: 32px;
  min-height: 0;
  overflow: auto;
}
.board-section .workspace-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.board-section button.add-board {
  border: 0;
  background: transparent;
  color: #bac7db;
  font-size: 23px;
  line-height: 16px;
  width: 22px;
  height: 22px;
}
.board-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: #6d98ff;
  flex: none;
}
.board-dot.violet {
  background: #b394f8;
}
.board-dot.green {
  background: #72d6b3;
}
.board-dot.rose {
  background: #ef99ad;
}
.board-dot.amber {
  background: #f0c064;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 10px 0;
}
.profile {
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px solid #2a3650;
  padding-top: 18px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #dde6fa;
  color: #385c99;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.profile .avatar {
  background: #304364;
  color: #dce6f8;
}
.profile-name {
  font-size: 14px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}
.profile-label {
  font-size: 12px;
  margin-top: 4px;
  color: #8fa0bd;
}
.logout {
  font-size: 12px;
  color: #94a5c0;
  background: none;
  border: 0;
  padding: 10px 0;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 74px;
  border-bottom: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 16px;
}
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
}
.breadcrumb strong {
  font-weight: 550;
  color: var(--ink);
}
.topbar-right {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 18px;
}
.live-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4d6672;
}
.live-label svg {
  width: 15px;
  height: 15px;
}
.menu-toggle {
  display: none !important;
}
.content {
  padding: 34px 36px 60px;
  max-width: 1800px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 29px;
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--muted);
  margin-bottom: 9px;
  font-weight: 650;
}
h1 {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1.2px;
  margin-bottom: 9px;
}
.subtitle {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.primary {
  background: var(--blue);
  color: white;
  border: 1px solid var(--blue);
  border-radius: 9px;
  font-size: 14px;
  padding: 11px 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.primary:hover {
  background: #294fcb;
}
.secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 14px;
  padding: 10px 14px;
}
.secondary:hover {
  background: #f4f6fb;
}
.quiet-button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  padding: 10px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 19px 21px;
  align-items: stretch;
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 12px;
  color: var(--ink);
}
.stat:hover {
  border-color: #bbc9e8;
}
.stat-label {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.stat-label svg {
  width: 17px;
  color: #8696b0;
}
.stat-value {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1.1px;
}
.stat:first-child {
  border-top: 3px solid #6887f0;
  padding-top: 17px;
}
.stat:nth-child(2) {
  border-top: 3px solid #e5ad55;
  padding-top: 17px;
}
.stat:nth-child(3) {
  border-top: 3px solid #a98bdc;
  padding-top: 17px;
}
.stat:nth-child(4) {
  border-top: 3px solid #72b6a0;
  padding-top: 17px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  gap: 12px;
}
.panel-heading h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin: 0;
  font-weight: 650;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  min-width: 210px;
  max-width: 340px;
  flex: 1;
}
.search svg {
  width: 17px;
  height: 17px;
  color: #8795ac;
}
.search input {
  border: 0;
  background: transparent;
  outline: 0;
  width: 100%;
  height: 40px;
  min-width: 80px;
  font-size: 14px;
  color: var(--ink);
}
.filter {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #47556d;
  background: white;
  padding: 9px 12px;
  font-size: 14px;
  max-width: 220px;
}
.view-toggle {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  margin-left: auto;
}
.view-toggle button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 7px 10px;
  font-size: 13px;
  border-radius: 6px;
}
.view-toggle button.active {
  color: var(--blue);
  background: #ecf1fe;
}
.view-toggle svg {
  width: 15px;
  height: 15px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 600;
  color: #7a88a0;
  background: #f9fafc;
  padding: 12px 17px;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px;
  border-bottom: 1px solid #edf0f5;
  font-size: 14px;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
.item-row {
  cursor: pointer;
}
.item-row:hover {
  background: #f8faff;
}
.item-title {
  font-weight: 570;
  line-height: 1.4;
  display: block;
  border: 0;
  padding: 0;
  text-align: left;
  background: none;
  color: var(--ink);
  font-size: 14px;
  max-width: 370px;
}
.item-company {
  font-size: 12px;
  color: #8290a7;
  margin-top: 5px;
}
.item-title-cell {
  min-width: 220px;
  width: 27%;
}
.next-action {
  font-size: 13px;
  color: #687791;
  max-width: 250px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.owner {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
}
.owner .avatar {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 11px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  background: #f0f2f6;
  color: #64748b;
}
.badge.inbox {
  background: #f0f2f6;
  color: #69768b;
}
.badge.ready,
.badge.in_progress {
  background: #eaf0ff;
  color: #365dcb;
}
.badge.waiting {
  background: #fff3dd;
  color: #96651c;
}
.badge.needs_decision {
  background: #f1ebff;
  color: #8052bc;
}
.badge.blocked {
  background: #ffebee;
  color: #b9435d;
}
.badge.resolved {
  background: #e6f5ed;
  color: #28815c;
}
.priority {
  font-size: 12px;
  color: #7b88a0;
  white-space: nowrap;
}
.priority.high {
  color: #b67b26;
}
.priority.urgent {
  color: #be435e;
  font-weight: 650;
}
.date {
  font-size: 13px;
  white-space: nowrap;
  color: #62718a;
}
.date.overdue {
  color: #bd4256;
}
.empty {
  padding: 56px 24px;
  text-align: center;
  max-width: 520px;
  margin: auto;
}
.empty-icon {
  width: 48px;
  height: 48px;
  background: #f0f4fe;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin: 0 auto 19px;
  color: #5571b3;
}
.empty-icon svg {
  width: 24px;
  height: 24px;
}
.empty h3 {
  font-size: 18px;
  letter-spacing: -0.3px;
  margin-bottom: 9px;
}
.empty p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 20px;
}
.list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.coverage-strip {
  margin-top: 23px;
  padding: 18px 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #eef2f9;
}
.coverage-strip p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.coverage-strip .secondary {
  white-space: nowrap;
}
.kanban {
  display: flex;
  gap: 14px;
  overflow: auto;
  padding-bottom: 15px;
  align-items: flex-start;
}
.kanban-column {
  min-width: 260px;
  width: 280px;
  flex: 1;
  background: #edf1f7;
  border: 1px solid #e4e9f1;
  border-radius: 11px;
  padding: 12px;
}
.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #74829a;
  padding: 3px 3px 15px;
}
.kanban-card {
  display: block;
  text-align: left;
  width: 100%;
  border: 1px solid #dde4ef;
  border-radius: 9px;
  background: white;
  padding: 16px;
  margin-bottom: 10px;
  color: var(--ink);
  box-shadow: 0 2px 3px #152a4903;
}
.kanban-card:hover {
  border-color: #9bafe2;
}
.kanban-card strong {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  display: block;
  margin: 9px 0;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  gap: 8px;
}
.column-empty {
  font-size: 13px;
  color: #95a1b4;
  padding: 25px 8px;
  text-align: center;
}
.monitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}
.monitor-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.monitor-card h3 {
  font-size: 16px;
  margin: 16px 0 9px;
}
.monitor-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  min-height: 45px;
}
.monitor-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 12px;
  gap: 9px;
  margin: 20px 0 0;
}
.monitor-card dt {
  color: #8290a5;
}
.monitor-card dd {
  margin: 0;
  text-align: right;
  color: #4c5f7c;
}
.health-ok {
  background: #e6f5ed;
  color: #28815c;
}
.health-failed,
.health-stale {
  background: #ffebee;
  color: #b9435d;
}
.health-partial {
  background: #fff3dd;
  color: #96651c;
}
.health-running {
  background: #eaf0ff;
  color: #365dcb;
}
.info-note {
  border: 1px solid var(--line);
  background: #eef2f9;
  padding: 16px 19px;
  border-radius: 10px;
  color: #5c6e8a;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.activity-entry {
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.event-icon {
  border: 1px solid var(--line);
  background: #f6f8fc;
  color: #6680a9;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  flex: none;
}
.event-icon svg {
  width: 15px;
  height: 15px;
}
.activity-copy {
  min-width: 0;
  flex: 1;
}
.activity-copy p {
  font-size: 14px;
  margin: 0 0 7px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.activity-copy small {
  font-size: 12px;
  color: #8290a5;
}
.event-change {
  font-size: 12px;
  color: #70819b;
  margin: 6px 0;
  line-height: 1.6;
}
.activity-link {
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 14px;
  display: inline;
  text-align: left;
  padding: 0;
}
.error-box {
  padding: 25px;
  background: #fff1f2;
  border: 1px solid #f4d3da;
  border-radius: 12px;
  color: #9b3c4d;
  font-size: 14px;
  line-height: 1.6;
}
.error-box button {
  margin-top: 12px;
}
.spinner {
  padding: 60px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.row-actions {
  margin-top: 24px;
  display: flex;
  gap: 9px;
  justify-content: flex-end;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 25px 100px #0b193d38;
  padding: 0;
  color: var(--ink);
  background: white;
  width: min(440px, calc(100vw - 32px));
  max-height: 90vh;
}
dialog::backdrop {
  background: #08152f65;
  backdrop-filter: blur(2px);
}
.item-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(680px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 27px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}
.dialog-header h2 {
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.3px;
}
.dialog-body {
  padding: 25px 27px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 13px;
  color: #60718a;
  font-weight: 550;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  min-width: 0;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid #c9d7ff;
  border-color: #7b99eb;
}
.field textarea {
  resize: vertical;
  min-height: 86px;
}
.field.title input {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.field-help {
  font-size: 12px;
  line-height: 1.5;
  color: #8794a9;
}
.section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 30px 0 17px;
  color: #7a88a0;
}
.form-error {
  padding: 13px;
  border-radius: 8px;
  background: #ffedf0;
  color: #b24759;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 17px;
}
.form-error:empty {
  display: none;
}
.dialog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.footer-right {
  display: flex;
  gap: 8px;
}
.detail-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
  color: #8b97aa;
  line-height: 1.6;
}
.detail-history {
  margin: 25px -27px -25px;
  border-top: 1px solid var(--line);
  background: #fafbfe;
}
.detail-history h3 {
  font-size: 15px;
  padding: 23px 27px 0;
  margin: 0;
}
.comment-form {
  padding: 18px 27px 22px;
}
.comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
}
.comment-form button {
  margin-top: 9px;
}
.detail-history .activity-entry {
  padding: 16px 27px;
}
.danger-link {
  color: #9b4a62;
}
.archive-banner {
  background: #fff4df;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 13px;
  color: #946718;
  margin-bottom: 20px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #172943;
  color: white;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 14px;
  box-shadow: 0 8px 30px #10234525;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  max-width: calc(100% - 40px);
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.mobile-backdrop {
  display: none;
}
@media (min-width: 1600px) {
  .content {
    padding-left: 52px;
    padding-right: 52px;
  }
  .topbar {
    padding: 0 52px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sidebar {
    width: 210px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .content {
    padding: 27px 23px;
  }
  .topbar {
    padding: 0 23px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .topbar-right .today-date {
    display: none;
  }
  .table-next {
    display: none;
  }
  .brand {
    font-size: 21px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 250px;
  }
  .shell.nav-open .sidebar {
    transform: translateX(0);
  }
  .shell.nav-open .mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #07152b75;
    z-index: 19;
    border: 0;
  }
  .main {
    width: 100%;
  }
  .menu-toggle {
    display: inline-flex !important;
  }
  .topbar {
    height: 62px;
    padding: 0 18px;
    gap: 11px;
  }
  .breadcrumb {
    flex: 1;
    font-size: 13px;
  }
  .topbar-right {
    gap: 9px;
  }
  .topbar-right .live-label {
    display: none;
  }
  .content {
    padding: 25px 18px;
  }
  .page-heading {
    margin-bottom: 24px;
    gap: 10px;
  }
  .page-heading .primary {
    font-size: 13px;
    padding: 10px 12px;
    white-space: nowrap;
  }
  h1 {
    font-size: 28px;
  }
  .subtitle {
    font-size: 14px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
  }
  .stat {
    padding: 15px;
    gap: 9px;
  }
  .stat-label {
    font-size: 13px;
  }
  .stat-value {
    font-size: 27px;
  }
  .toolbar {
    gap: 8px;
  }
  .search {
    max-width: none;
    flex-basis: 100%;
    order: 0;
  }
  .filter {
    max-width: calc(50% - 5px);
    flex: 1;
    font-size: 13px;
  }
  .view-toggle {
    margin-left: 0;
  }
  .table-wrap {
    overflow: visible;
  }
  table,
  tbody {
    display: block;
  }
  thead {
    display: none;
  }
  .item-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }
  .item-row td {
    border: 0;
    padding: 4px 0;
    min-width: 0;
  }
  .item-title-cell {
    width: 100%;
    grid-column: 1/-1;
    padding-bottom: 9px !important;
  }
  .item-title {
    font-size: 15px;
    max-width: none;
  }
  .table-owner {
    display: none;
  }
  .table-next {
    display: none;
  }
  .table-priority {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }
  .table-due {
    grid-column: 2;
    grid-row: 3;
    text-align: right;
  }
  .coverage-strip {
    align-items: flex-start;
    flex-direction: column;
  }
  .coverage-strip p {
    font-size: 13px;
  }
  .panel-heading {
    padding: 17px;
  }
  .kanban-column {
    min-width: 255px;
  }
  .form-grid {
    gap: 14px;
  }
  .dialog-header {
    padding: 18px 20px;
  }
  .dialog-body {
    padding: 20px;
  }
  .detail-history {
    margin: 25px -20px -20px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
  .field.title input {
    font-size: 19px;
  }
  .login-card {
    padding: 32px 27px;
  }
  .monitor-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.login-access {
  margin-top: 24px;
}
/* Personal mail uses the same shell, with private account and message panels. */
.mail-home { display: grid; gap: 20px; }
.mail-topline, .mail-tabs { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mail-tabs { justify-content: flex-start; }
.mail-tabs [aria-pressed="true"] { background: #e9eefe; border-color: #798ac4; color: #233c7a; }
.mail-connect { background: white; border: 1px solid #dfe4ed; padding: 18px 20px; border-radius: 12px; }
.mail-connect summary { cursor: pointer; font-weight: 600; }
.mail-connect p { line-height: 1.6; }
.mail-connect a { color: #385db4; }
.mail-connect-fields, .mail-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.mail-home label { display: grid; gap: 6px; font-size: 12px; color: #536078; }
.mail-home input, .mail-home select, .mail-home textarea { padding: 10px 12px; background: white; border: 1px solid #ccd4e1; border-radius: 7px; font: inherit; font-size: 14px; color: #1b2840; min-width: 0; }
.mail-connect-fields label { flex: 1 1 190px; }
.mail-filters label { max-width: 100%; }
.mail-filters select { max-width: 290px; }
.mail-filters [hidden] { display: none; }
.mail-search { flex: 1 1 180px; }
.mail-layout { display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr); border: 1px solid #dfe4ed; border-radius: 12px; background: white; overflow: hidden; min-height: 320px; }
#mail-list { border-right: 1px solid #dfe4ed; max-height: 850px; overflow-y: auto; }
#mail-list > p { padding: 18px; }
.mail-row { display: grid; gap: 7px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #e9edf4; background: white; padding: 17px 18px; cursor: pointer; overflow-wrap: anywhere; }
.mail-row:hover, .mail-row:focus-visible { background: #f2f5fd; }
.mail-row strong { font-size: 14px; line-height: 1.4; }
.mail-row-top { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #536078; }
.mail-row-top time { flex-shrink: 0; font-size: 10px; }
.mail-row-account { color: #687c9c; font-size: 11px; }
.mail-unread { box-shadow: inset 3px 0 #486bbc; background: #fafbff; }
#mail-reader { padding: 24px; min-width: 0; max-height: 1000px; overflow-y: auto; }
#mail-reader h2 { font-size: 19px; overflow-wrap: anywhere; line-height: 1.4; }
.mail-address { font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.mail-body { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 13px; line-height: 1.75; margin-top: 24px; }
#mail-more { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.mail-drafts { margin: 20px 0; border: 1px solid #dfe4ed; border-radius: 10px; overflow: hidden; }
.mail-drafts > p { padding: 16px; }
.mail-dialog { max-width: 720px; width: calc(100vw - 32px); max-height: 90vh; border: 0; border-radius: 14px; padding: 24px; box-shadow: 0 20px 70px #111d3540; }
.mail-dialog::backdrop { background: #111d3570; }
.mail-draft-form { display: grid; gap: 14px; }
.mail-draft-form textarea { resize: vertical; }
@media (max-width: 900px) {
  .mail-layout { grid-template-columns: 1fr; }
  #mail-list { border-right: 0; border-bottom: 1px solid #dfe4ed; max-height: 420px; }
  #mail-reader { padding: 18px; }
  .mail-row-top { flex-direction: column; gap: 4px; }
  .mail-filters label, .mail-filters select { width: 100%; max-width: 100%; }
}
