:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #203047;
  background: #f7f9fc;
  font-size: 16px;
  --blue: #1956b7;
  --muted: #6d7b90;
  --line: #e3e9f1;
  --gold: #b38a32;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 16px;
  color: #203047;
  background: white;
  font-weight: 600;
}
button:hover {
  background: #edf3fd;
  border-color: #b6cdee;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--blue);
}
button.primary,
.primary {
  background: var(--blue);
  color: white;
  border: 0;
}
button.danger {
  color: #ad3030;
}
button.quiet {
  border: 0;
  background: transparent;
  color: var(--blue);
}
h1 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 650;
  letter-spacing: -1px;
  margin: 8px 0 14px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.4px;
  margin: 0 0 16px;
}
h3 {
  font-size: 17px;
  margin: 0 0 10px;
}
p {
  line-height: 1.55;
}
small,
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--muted);
  font-weight: 700;
}
.loading,
.login {
  max-width: 460px;
  margin: 12vh auto;
  padding: 30px;
}
.login {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 50px #182b4a08;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
}
.brand img {
  width: 40px;
  height: 40px;
}
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: white;
  border-right: 1px solid var(--line);
  padding: 30px 20px;
  position: fixed;
  width: 240px;
  height: 100vh;
  overflow: auto;
}
.sidebar nav {
  display: grid;
  gap: 5px;
  margin: 36px 0;
}
.sidebar button {
  text-align: left;
  background: none;
  border: 0;
  font-size: 14px;
  color: #64738a;
}
.sidebar button.active {
  color: var(--blue);
  background: #edf3fd;
}
.navicon {
  display: inline-block;
  width: 27px;
  font-size: 19px;
  color: var(--blue);
}
.workspace {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  background: #ffffffd9;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(14px);
}
.topbar .actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eaf0fa;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}
.main {
  max-width: 1320px;
  margin: auto;
  padding: 38px 42px 80px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.heading p {
  margin: 0;
  color: var(--muted);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 3px 12px #23304703;
}
.card.clickable {
  cursor: pointer;
  text-align: left;
}
.stat {
  font-size: 32px;
  letter-spacing: -1px;
  display: block;
  margin: 14px 0 6px;
}
.section {
  margin: 32px 0;
}
.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  border-radius: 6px;
  padding: 5px 8px;
  background: #f0f4fa;
  color: #506581;
}
.pill.urgent {
  background: #fff0ed;
  color: #ae4331;
}
.pill.positive {
  color: #277650;
  background: #edf8f1;
}
.request {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.request:last-child {
  border: 0;
}
.request .grow {
  flex: 1;
}
.request p {
  margin: 6px 0;
  font-size: 14px;
  color: var(--muted);
}
.request h3 {
  margin: 6px 0;
}
.request-number {
  font-size: 11px;
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: white;
}
.tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  overflow: auto;
}
.tabs button.active {
  background: #eaf1ff;
  color: var(--blue);
  border-color: #c4d7f4;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin: 16px 0;
}
.filters label {
  flex: 1;
  min-width: 130px;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 14px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #d8e1ec;
  border-radius: 10px;
  background: white;
  padding: 12px;
  margin-top: 7px;
  color: #203047;
  min-height: 44px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input[type="checkbox"] {
  display: inline-block;
  width: 20px;
  height: 20px;
  min-height: 0;
  vertical-align: middle;
  accent-color: var(--blue);
  margin: 0 9px 0 0;
}
input[type="color"] {
  padding: 4px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  min-height: 32px;
}
.check input {
  flex-shrink: 0;
}
.error {
  background: #fff1ed;
  color: #a53725;
  padding: 14px;
  border-radius: 10px;
}
.note {
  background: #f0f5fc;
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  color: #526580;
  line-height: 1.55;
}
.small {
  font-size: 12px;
}
.full {
  width: 100%;
}
.spacer {
  height: 20px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  width: min(720px, 94vw);
  max-height: 90dvh;
  padding: 28px;
  color: #203047;
  box-shadow: 0 20px 80px #1233;
}
dialog::backdrop {
  background: #152a4655;
  backdrop-filter: blur(3px);
}
.modalhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.modalhead h2 {
  margin: 0;
}
.repeater {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
  position: relative;
}
.plan-list {
  display: grid;
  gap: 6px;
  max-height: 34vh;
  overflow: auto;
  margin: 14px 0 22px;
}
.plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.plan-row.level-2 { padding-left: 28px; }
.plan-row.level-3 { padding-left: 44px; }
.plan-row small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.section-title { margin-top: 20px; }
.remove {
  float: right;
  font-size: 12px;
}
.choice {
  display: block;
  width: 100%;
  text-align: left;
  padding: 20px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.choice.selected {
  border: 2px solid var(--blue);
  background: #f5f9ff;
}
.choice p {
  font-weight: 400;
  color: #536680;
}
.confirm {
  margin-top: 24px;
  padding: 18px;
  width: 100%;
  font-size: 17px;
}
.conversation {
  background: #f8fafd;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
}
.conversation p {
  white-space: pre-wrap;
  margin-bottom: 0;
}
.matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.quadrant {
  border: 1px solid var(--line);
  border-top: 3px solid #b64848;
  min-height: 280px;
  border-radius: 16px;
  background: white;
  padding: 20px;
}
.quadrant:nth-child(2) {
  border-top-color: #c69c39;
}
.quadrant:nth-child(3) {
  border-top-color: #346dc7;
}
.quadrant:nth-child(4) {
  border-top-color: #36937b;
}
.task {
  display: flex;
  align-items: start;
  gap: 10px;
  border-bottom: 1px solid #eef2f7;
  padding: 12px 0;
}
.task input {
  margin-top: 8px;
  flex-shrink: 0;
}
.task button {
  text-align: left;
  flex: 1;
  border: 0;
  background: none;
  font-weight: 450;
  padding: 4px;
  min-height: 36px;
}
.task.done {
  text-decoration: line-through;
  color: var(--muted);
}
.focus .sidebar,
.focus .topbar {
  display: none;
}
.focus.layout {
  display: block;
}
.focus .workspace {
  width: 100%;
}
.focus .main {
  max-width: 850px;
  padding-top: 25px;
}
.focus-card {
  min-height: calc(100dvh - 150px);
  display: flex;
  flex-direction: column;
}
.focus-card .choices {
  flex: 1;
}
.cal-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  max-height: 70vh;
}
.calendar {
  min-width: 680px;
  position: relative;
}
.cal-head {
  display: grid;
  grid-template-columns: 55px repeat(var(--days), 1fr);
  position: sticky;
  top: 0;
  z-index: 3;
  background: white;
  border-bottom: 1px solid var(--line);
}
.cal-head div {
  padding: 14px;
  text-align: center;
  font-size: 12px;
}
.cal-body {
  display: grid;
  grid-template-columns: 55px repeat(var(--days), 1fr);
  height: 1152px;
}
.timecol {
  position: relative;
}
.timecol span {
  position: absolute;
  font-size: 10px;
  color: var(--muted);
  right: 7px;
}
.daycol {
  position: relative;
  border-left: 1px solid var(--line);
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 23px,
    #f0f3f7 23px,
    #f0f3f7 24px
  );
  cursor: crosshair;
}
.event {
  position: absolute;
  left: 3px;
  width: calc(100% - 6px);
  border: 0;
  border-left: 3px solid var(--event-color);
  background: color-mix(in srgb, var(--event-color) 12%, white);
  color: #203047;
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 11px;
  line-height: 1.3;
  min-height: 22px;
  text-align: left;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}
.event strong {
  display: block;
}
.donut {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  position: relative;
  margin: 20px auto;
}
.donut:after {
  content: "";
  position: absolute;
  inset: 48px;
  border-radius: 50%;
  background: white;
}
.legend {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  font-size: 13px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.progress {
  height: 7px;
  border-radius: 8px;
  background: #edf1f6;
  margin: 15px 0;
  overflow: hidden;
}
.progress span {
  height: 100%;
  display: block;
  background: var(--blue);
}
.bar-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 220px;
  padding: 25px 10px 30px;
  border-bottom: 1px solid var(--line);
}
.bar-group {
  display: flex;
  gap: 3px;
  align-items: end;
  height: 100%;
  flex: 1;
  position: relative;
}
.bar {
  flex: 1;
  min-height: 2px;
  background: #4479c7;
  border-radius: 5px 5px 0 0;
}
.bar.cost {
  background: #c9d7ec;
}
.bar-group small {
  position: absolute;
  bottom: -25px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
}
.provenance {
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 15px;
}
.mobile-menu {
  display: none;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #213b5e;
  color: white;
  padding: 14px 22px;
  border-radius: 12px;
  z-index: 100;
  max-width: 90vw;
  display: none;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
td,
th {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-weight: 550;
}
.permissions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.offline {
  background: #fff6e7;
  color: #84591d;
  padding: 10px 20px;
  text-align: center;
  font-size: 13px;
}
.accountbar {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.brand small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  margin-top: 4px;
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
    z-index: 20;
    box-shadow: 15px 0 80px #1233;
  }
  .sidebar.open {
    display: block;
  }
  .workspace {
    grid-column: 1;
  }
  .mobile-menu {
    display: block;
  }
  .main {
    padding: 24px 20px 70px;
  }
  .topbar {
    padding: 0 20px;
    height: 64px;
  }
  .topbar .eyebrow {
    display: none;
  }
  .heading {
    align-items: start;
    flex-direction: column;
  }
  .grid {
    gap: 14px;
  }
  .card {
    padding: 20px;
  }
  .request {
    gap: 10px;
    align-items: stretch;
    flex-direction: column;
    padding: 18px 0;
  }
  .request > button {
    width: 100%;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .matrix {
    gap: 10px;
  }
  .quadrant {
    padding: 14px;
    min-height: 240px;
  }
  .quadrant h3 {
    font-size: 14px;
  }
  .task button {
    font-size: 13px;
  }
  .permissions {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 20px;
    width: calc(100vw - 20px);
    border-radius: 16px;
  }
  dialog form > button,
  dialog form > .quiet {
    min-height: 48px;
  }
  .repeater {
    padding: 14px;
  }
  .form-help {
    font-size: 12px;
  }
  .focus .main {
    padding: 20px;
  }
  .cal-head div {
    padding: 12px 4px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  .card {
    transition:
      background 0.15s,
      border-color 0.15s;
  }
}
@media print {
  .sidebar,
  .topbar,
  .heading button,
  .filters,
  .tabs {
    display: none;
  }
  .layout {
    display: block;
  }
  .main {
    padding: 0;
  }
  .matrix {
    break-inside: avoid;
  }
  .card,
  .quadrant {
    box-shadow: none;
  }
  body {
    background: white;
  }
}
