:root {
  font:
    15px/1.5 system-ui,
    sans-serif;
  color: #182d42;
  background: #f3f6fa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button,
.button {
  cursor: pointer;
  border: 1px solid #cdd9e3;
  border-radius: 7px;
  background: white;
  color: #243f55;
  padding: 9px 14px;
  text-decoration: none;
  display: inline-block;
}
button:hover,
.button:hover {
  background: #e9f3f7;
}
button.primary {
  background: #087e91;
  color: white;
  border-color: #087e91;
}
button.danger {
  color: #a12d34;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #20a8b9;
  outline-offset: 2px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #c4d2de;
  border-radius: 6px;
  padding: 10px;
  background: white;
  color: #18334c;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 13px 0 5px;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
  margin: 0 0 8px;
}
h2 {
  font-size: 20px;
  margin: 0 0 15px;
}
h3 {
  font-size: 16px;
}
p {
  margin: 8px 0 18px;
}
small,
.muted {
  color: #667b8d;
}
.shell {
  min-height: 100vh;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 4%;
  background: #13283b;
  color: #c6d5e3;
}
.menubtn {
  border: 0;
  background: #254253;
  color: white;
  font-size: 20px;
  line-height: 1;
  width: 42px;
  height: 42px;
  padding: 0;
}
.menubtn[aria-expanded="true"] {
  background: #087e91;
}
.toporg {
  margin-left: auto;
  font-size: 13px;
  color: #9fb6c8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu {
  position: fixed;
  top: 62px;
  left: max(12px, 4%);
  z-index: 30;
  width: min(300px, calc(100vw - 24px));
  max-height: calc(100vh - 80px);
  overflow: auto;
  background: #13283b;
  color: #c6d5e3;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 18px 40px #0b1a2840;
}
.menu[hidden] {
  display: none;
}
.ico {
  display: inline-block;
  width: 26px;
  opacity: 0.8;
}
.brand {
  color: white;
  font-size: 20px;
  font-weight: 750;
}
.brand span {
  color: #55c7cd;
}
nav button {
  display: block;
  width: 100%;
  text-align: left;
  margin: 2px 0;
  border: 0;
  background: none;
  color: #bbcedb;
  padding: 12px;
}
nav button.active {
  background: #254253;
  color: white;
  border-left: 3px solid #4bd0d1;
}
.sidefoot {
  margin-top: 8px;
  padding: 12px;
  border-top: 1px solid #254253;
  font-size: 12px;
  overflow-wrap: anywhere;
}
main {
  padding: 32px 4%;
  max-width: 1550px;
  width: 100%;
  min-width: 0;
}
header,
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}
header {
  margin-bottom: 26px;
}
.eyebrow {
  color: #087e91;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.card {
  background: white;
  border: 1px solid #dfe7ee;
  border-radius: 12px;
  padding: 22px;
  margin: 18px 0;
  box-shadow: 0 3px 12px #18394e04;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.metric {
  margin: 0;
  padding: 22px;
}
.metric strong {
  display: block;
  font-size: 29px;
  margin: 8px 0;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
td,
th {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid #e8edf2;
  font-size: 14px;
}
th {
  font-size: 11px;
  color: #6a7f8f;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
td:first-child {
  font-weight: 600;
}
td button {
  padding: 5px 10px;
}
.badge {
  font-size: 11px;
  border-radius: 20px;
  padding: 4px 8px;
  background: #e8f2f5;
  color: #126476;
  display: inline-block;
}
.badge.high {
  background: #fff0e8;
  color: #a55416;
}
.empty {
  text-align: center;
  padding: 42px 15px;
  color: #60788a;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.filters input,
.filters select {
  width: auto;
  min-width: 140px;
  max-width: 240px;
}
.board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.task {
  background: white;
  border: 1px solid #d9e4eb;
  border-radius: 8px;
  padding: 15px;
  margin: 12px 0;
}
.auth {
  max-width: 460px;
  margin: 7vh auto;
  padding: 32px;
}
.auth .brand {
  color: #18334c;
  margin-left: 0;
}
.notice {
  border-left: 3px solid #1b91a2;
  background: #edf8fa;
  padding: 12px 16px;
  font-size: 13px;
  margin: 15px 0;
}
dialog {
  width: min(740px, 94vw);
  max-height: 90vh;
  border: 0;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 20px 90px #12273855;
}
dialog::backdrop {
  background: #11263a77;
}
#close {
  float: right;
  padding: 0 9px;
  font-size: 25px;
  border: 0;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f3f7f9;
  padding: 16px;
  border-radius: 8px;
  font:
    13px/1.6 ui-monospace,
    monospace;
}
#toast {
  position: fixed;
  right: 20px;
  top: 14px;
  z-index: 999;
  background: #113c4c;
  color: white;
  border-radius: 8px;
  padding: 12px 20px;
  display: none;
  max-width: 90vw;
}
.error {
  color: #a52e3d;
}
.check {
  width: auto;
}
a {
  color: #087e91;
}
.span2 {
  grid-column: span 2;
}
@media (max-width: 1100px) {
  .metrics,
  .board {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .topbar {
    padding: 10px 16px;
  }
  main {
    padding: 22px 16px;
  }
  .metrics {
    gap: 8px;
  }
  .metric {
    padding: 14px;
  }
  .metric strong {
    font-size: 23px;
  }
  .board {
    grid-template-columns: 1fr;
  }
  .auth {
    margin: 20px auto;
  }
  .grid {
    gap: 0;
  }
  header h1 {
    font-size: 25px;
  }
}
.grid > .card,
.metrics > .card,
.board > section {
  min-width: 0;
}
.grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
@media (max-width: 1100px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.actions {
  align-items: center;
}
.actions + small {
  display: block;
  margin-top: 10px;
}
input[type="file"] {
  margin-bottom: 12px;
}
.board {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.card hr {
  border: 0;
  border-top: 1px solid #e3eaf0;
  margin: 22px 0;
}
textarea {
  line-height: 1.6;
}
dialog textarea {
  min-height: 180px;
}
details {
  margin-top: 18px;
}
summary {
  cursor: pointer;
}
.card .danger {
  margin-top: 8px;
}
.filters label {
  margin: 0;
}
.auth .actions {
  margin-top: 16px;
}
@media (max-width: 700px) {
  dialog {
    padding: 20px;
  }
  .filters input,
  .filters select {
    max-width: 100%;
    min-width: 0;
  }
  .actions button,
  .actions .button {
    max-width: 100%;
  }
}
.mfaqr {
  width: 200px;
  max-width: 100%;
  display: block;
  margin: 15px auto;
}

/* Workspace: work processes, overview and areas */
.count {
  font-size: 12px;
  color: #667b8d;
  font-weight: 500;
}
.wfcard {
  display: block;
  width: 100%;
  text-align: left;
  margin: 10px 0;
  padding: 14px;
  border-radius: 9px;
  background: white;
}
.wfcard:hover {
  border-color: #087e91;
}
.wfcard strong {
  display: block;
  margin-bottom: 6px;
}
.wfcard small {
  display: block;
  margin-top: 4px;
}
.late {
  color: #b4441a;
  font-weight: 600;
}
.progress {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 10px;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  appearance: none;
  background: #e8edf2;
  accent-color: #087e91;
}
.progress::-webkit-progress-bar {
  background: #e8edf2;
}
.progress::-webkit-progress-value {
  background: #087e91;
}
.progress::-moz-progress-bar {
  background: #087e91;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  margin: 6px 0;
}
.step .box {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid #9fb2c1;
  border-radius: 5px;
  flex: none;
  color: white;
  font-size: 13px;
}
.step.done {
  color: #667b8d;
  text-decoration: line-through;
}
.step.done .box {
  background: #087e91;
  border-color: #087e91;
}
.nextlist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nextlist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e8edf2;
}
.nextlist li small {
  display: block;
}
.period summary,
details summary {
  cursor: pointer;
  color: #087e91;
  margin: 8px 0;
}
.modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.module {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #dfe7ee;
  border-radius: 9px;
  padding: 12px;
  cursor: pointer;
}
.module small {
  display: block;
}
.choices {
  display: grid;
  gap: 10px;
}
.choices button {
  padding: 14px;
  text-align: left;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

/* Assistant chat and install button */
.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100vh - 230px);
  min-height: 420px;
}
.chatlog {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px;
}
.chatintro {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.bubble {
  max-width: min(680px, 85%);
  padding: 10px 14px;
  border-radius: 14px;
  background: #eef3f7;
}
.bubble p {
  margin: 0;
}
.bubble.me {
  align-self: flex-end;
  background: #087e91;
  color: white;
  border-bottom-right-radius: 4px;
}
.bubble.ai {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.typing p {
  color: #667b8d;
}
.proposal {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 12px;
  background: white;
  border: 1px solid #cfe3e8;
  border-radius: 10px;
}
.proposal button {
  justify-self: start;
}
.chatinput {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.chatinput textarea {
  flex: 1;
  min-height: 48px;
  resize: vertical;
  margin: 0;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.install {
  margin-top: 8px;
  background: #087e91;
  color: white;
  border-color: #087e91;
}

/* Mailboxes and floating assistant */
.planname {
  margin: 2px 0 0;
  font-size: 26px;
}
.accts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.acct {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 170px;
  padding: 16px;
  border: 1px solid #dfe7ee;
  border-radius: 12px;
  background: white;
  text-align: left;
}
.acct-mail {
  overflow-wrap: anywhere;
}
.acct .actions {
  margin-top: auto;
}
.acct .actions button {
  padding: 5px 10px;
  font-size: 13px;
}
.acct-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  flex: none;
}
.acct-icon svg {
  width: 100%;
  height: 100%;
}
.empty-slot {
  align-items: center;
  justify-content: center;
  border: 2px dashed #b8cbd8;
  background: #f8fbfd;
  color: #087e91;
}
button.empty-slot:hover {
  border-color: #087e91;
  background: #eef8fa;
}
.plus {
  font-size: 30px;
  line-height: 1;
}
.upgrade {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.upgrade p {
  margin: 4px 0 0;
}
.providers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0 0 12px;
}
.providers legend {
  font-weight: 600;
  margin-bottom: 8px;
}
.provider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #dfe7ee;
  border-radius: 10px;
  cursor: pointer;
}
.provider:has(input:checked) {
  border-color: #087e91;
  background: #eef8fa;
}
.provider input {
  width: auto;
  margin: 0;
}
.provider .acct-icon {
  width: 28px;
  height: 28px;
}
.badge.ok {
  background: #e3f6ea;
  color: #1d7a43;
}
.chatfab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: #087e91;
  color: white;
  font-size: 24px;
  box-shadow: 0 10px 26px #0b1a2850;
}
.chatpop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: min(390px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 100px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: white;
  border: 1px solid #dfe7ee;
  border-radius: 16px;
  box-shadow: 0 18px 44px #0b1a2840;
}
.chatpophead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chatpophead button {
  padding: 4px 10px;
}
.chatpop .chatintro h2 {
  font-size: 17px;
}
.chatpop .bubble {
  max-width: 92%;
}
@media (max-width: 700px) {
  .chatfab,
  .chatpop {
    right: 12px;
    bottom: 12px;
  }
}
.module.locked {
  cursor: default;
  background: #f8fbfd;
  border-style: dashed;
}
.module.locked button {
  margin-top: 8px;
  padding: 5px 10px;
  font-size: 13px;
}
.upsell {
  color: #087e91;
  font-weight: 600;
}

/* Legal pages */
.legal {
  max-width: 760px;
  margin: 6vh auto;
  padding: 32px;
}
.legal .brand {
  color: #18334c;
}
.legal h2 {
  font-size: 17px;
  margin-top: 24px;
}
.legal li {
  margin-bottom: 10px;
}
@media (max-width: 700px) {
  .legal {
    margin: 0;
    border-radius: 0;
    padding: 22px 16px;
  }
}
