:root { font-family: Inter, system-ui, sans-serif; color: #152344; background: #f3f5fa; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; background: #244fe5; color: white; border-radius: 9px; padding: 10px 14px; font-weight: 650; }
button:focus-visible, a:focus-visible { outline: 3px solid #829aff; outline-offset: 3px; }
.shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
aside { background: #111c38; color: white; padding: 30px 18px; display: flex; flex-direction: column; gap: 36px; }
.brand { font-size: 19px; font-weight: 750; letter-spacing: -.04em; }
.brand span, .identity { color: #aab7d5; font-weight: 450; font-size: 13px; }
nav { display: grid; gap: 5px; }
nav button, .identity button { background: transparent; text-align: left; }
nav .active { background: #293b69; }
.identity { margin-top: auto; overflow-wrap: anywhere; }
main { padding: clamp(20px, 4vw, 56px); max-width: 1440px; width: 100%; }
header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
h1, h2, h3 { margin: 0; letter-spacing: -.045em; }
h1 { font-size: clamp(27px, 4vw, 44px); }
p { color: #53627d; margin: 8px 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.stats div, .panel { background: white; border: 1px solid #e0e6f1; border-radius: 14px; }
.stats div { padding: 18px; }
.stats span { color: #53627d; font-size: 13px; }
.stats strong { display: block; font-size: 31px; margin-top: 6px; }
.panel { margin-top: 20px; overflow: auto; }
.toolbar, .actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px; }
input, select, textarea { background: white; color: #152344; border: 1px solid #cbd5e8; border-radius: 8px; padding: 9px 10px; min-width: 0; }
.toolbar input { flex: 1; }
table { border-collapse: collapse; width: 100%; min-width: 530px; }
th, td { text-align: left; padding: 14px 16px; border-top: 1px solid #e8edf6; }
th { font-size: 13px; color: #53627d; background: #f8faff; }
td { font-size: 14px; }
td small { display: block; color: #53627d; margin-top: 4px; }
.text-button { background: transparent; color: #1b42cb; padding: 0; text-align: left; }
.badge { display: inline-block; border-radius: 20px; color: #244398; background: #edf1ff; padding: 4px 9px; font-size: 12px; }
.green { background: #def6e9; color: #166145; }
.late, .error { color: #a52835; }
.error:empty { display: none; }
.empty { padding: 28px; }
dialog { padding: 0; border: 0; border-radius: 15px; color: inherit; width: min(760px, 94vw); max-height: 88vh; }
dialog::backdrop { background: #101c3a88; }
.dialog-inner { padding: 24px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
label { display: grid; align-content: start; gap: 5px; font-size: 14px; font-weight: 600; }
.actions { align-items: center; padding-inline: 0; }
.secondary { background: #edf1ff; color: #244398; }
.history { border-top: 1px solid #e0e6f1; margin-top: 16px; padding-top: 18px; }
.history ol { padding-left: 22px; }
.history li { padding: 10px 0; }
.history p { white-space: pre-wrap; overflow-wrap: anywhere; }
.login { max-width: 460px; margin: 8vh auto; }
.login h1, .login label { margin: 18px 0; }
@media (max-width: 760px) {
  .shell { display: block; }
  aside { padding: 15px 20px; gap: 12px; }
  nav { display: flex; flex-wrap: wrap; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .fields { grid-template-columns: 1fr; } }

/* Outreach workspace */
:root { color: #10182e; background: #f8faff; }
.shell { grid-template-columns: 230px minmax(0, 1fr); }
aside { background: #f4f7fc; color: #10182e; border-right: 1px solid #e8eef9; gap: 32px; padding: 24px 16px; }
.brand { display: flex; gap: 13px; align-items: center; padding: 0 10px; font-size: 25px; line-height: 1.05; }
.brand i { width: 29px; height: 29px; flex: 0 0 auto; background: #064bff; border-radius: 8px; transform: skew(-24deg); }
.brand span { display: block; color: #53627d; letter-spacing: 0; margin-top: 5px; }
button { background: #0646fa; }
nav button, .identity button { color: #152344; display: flex; align-items: center; gap: 13px; padding: 12px; }
nav .active { background: #0646fa; color: white; }
.identity { color: #53627d; padding-inline: 10px; }
.icon { width: 21px; height: 21px; flex: 0 0 auto; vertical-align: middle; }
main { max-width: 1680px; padding: 22px clamp(16px, 2vw, 34px) 40px; }
h1 { font-size: clamp(26px, 2.5vw, 36px); }
h2 { font-size: 23px; }
.page-header { align-items: flex-start; }
.header-tools, .table-actions, .tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search-box { display: flex; align-items: center; gap: 9px; border: 1px solid #e1e8f8; border-radius: 40px; padding: 0 13px; color: #53627d; background: #f4f7fc; }
.search-box input { border: 0; background: transparent; width: clamp(165px, 19vw, 300px); font-weight: 450; }
.bell { border: 1px solid #e1e8f8; border-radius: 50%; padding: 9px; }
.profile, .owner, .company, .next { display: flex; align-items: center; gap: 9px; }
.profile { font-weight: 650; font-size: 14px; overflow-wrap: anywhere; }
.avatar { display: grid; place-items: center; background: #e6eeff; color: #0646fa; width: 27px; height: 27px; border-radius: 50%; flex: 0 0 auto; font-weight: 700; }
.profile .avatar { width: 36px; height: 36px; color: white; background: #272593; }
.stats { margin: 24px 0 18px; gap: 14px; }
.stats .stat { display: flex; align-items: center; gap: 12px; background: #f0f5ff; border-color: transparent; }
.stats .stat:last-child { background: #edf9f0; }
.stats .stat div { background: transparent; border: 0; padding: 0; }
.stats .stat i { border-radius: 14px; display: grid; place-items: center; width: 45px; height: 45px; flex: 0 0 auto; background: #e4edff; color: #0646fa; }
.stats .stat:last-child i { background: #dff7e6; color: #087a40; }
.stats .stat i .icon { width: 26px; height: 26px; }
.stats span { font-weight: 620; color: #10182e; }
.stats strong { margin: 1px 0 0; }
.panel { border-color: #e8eef9; border-radius: 19px; box-shadow: 0 4px 16px #31559806; padding: 16px; }
.pipeline header { margin-bottom: 12px; }
.segments { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.segments button { text-align: left; padding: 13px 17px 12px 21px; color: #10182e; border-radius: 9px; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); }
.segments button:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.segments button:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10px 50%); }
.segments button[aria-pressed=true], .segments button:focus-visible { box-shadow: inset 0 -3px #0646fa; }
.segments strong { display: block; font-size: 25px; margin-top: 4px; }
.slate { background: #edf0f6; }
.blue { background: #e3ecff; }
.purple { background: #eee7ff; }
.yellow { background: #f9f2de; }
.sky { background: #e2f0ff; }
.mint { background: #e7f8eb; }
.toolbar { justify-content: space-between; padding: 0 0 15px; }
.tabs button { background: #f2f5fb; color: #152344; }
.tabs .selected { background: #0646fa; color: white; }
.filter { position: relative; }
.filter summary, .extra summary { cursor: pointer; font-weight: 650; }
.filter summary { display: flex; align-items: center; gap: 6px; padding: 9px 11px; border: 1px solid #e1e8f8; border-radius: 9px; }
.filter select { position: absolute; z-index: 2; right: 0; top: calc(100% + 5px); }
#rows { border: 1px solid #ecf0f8; border-radius: 12px; overflow-x: auto; }
table { min-width: 760px; }
th, td { padding: 11px 13px; }
th { background: #f3f6fb; border-top: 0; color: #152344; }
td .text-button { color: #10182e; }
td .text-button:hover { color: #0646fa; text-decoration: underline; }
td small.late { color: #a52835; }
.company-mark { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; border-radius: 8px; background: #152344; color: white; font-weight: 750; }
.shade-1 { background: #0a805f; }
.shade-2 { background: #0646fa; }
.shade-3 { background: #5326b9; }
.shade-4 { background: #233058; }
.next .icon { width: 17px; height: 17px; }
.badge { white-space: nowrap; font-weight: 650; color: #152344; }
.badge.blue, .badge.sky { color: #1241af; }
.badge.mint { color: #166145; }
.extra { border: 1px solid #e8eef9; border-radius: 9px; padding: 12px; }
.extra .fields { margin-bottom: 0; }
.login .brand { display: block; padding: 0; }
@media (max-width: 1120px) {
  .stats .stat { padding: 12px; }
  .stats .stat i { width: 36px; height: 36px; }
  .segments { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  aside { gap: 11px; padding: 14px 16px; }
  .identity { margin-top: 0; }
  .brand { padding: 0; }
  nav button { padding: 8px; gap: 6px; }
  nav .icon { width: 16px; height: 16px; }
  .header-tools { width: 100%; }
  .search-box { flex: 1; }
  .search-box input { width: 100%; }
}
@media (max-width: 400px) {
  .segments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .stat { gap: 7px; }
  .stats .stat i { width: 30px; height: 30px; }
  .stats .stat i .icon { width: 20px; height: 20px; }
}
.panel { overflow: visible; }
