:root {
  color-scheme: light;
  --ink: #172535;
  --muted: #5b6877;
  --line: #dce2e8;
  --blue: #155dcc;
  --pale: #edf3fc;
  --bg: #f5f6f8;
  --green: #176843;
  --orange: #8a5113;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  transition:
    background 0.15s,
    color 0.15s;
}
button,
a.button {
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: white;
  padding: 11px 16px;
  color: var(--ink);
  min-height: 44px;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
button:hover,
a.button:hover {
  background: #eaf0f8;
}
button.primary,
a.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
button.primary:hover {
  background: #114ca8;
}
a {
  color: var(--blue);
  text-underline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #357cec;
  outline-offset: 3px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: white;
  padding: 16px;
  z-index: 20;
}
.skip:focus {
  top: 16px;
}
.shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  font-size: 25px;
  letter-spacing: -1.6px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 7px 0 30px;
  text-transform: uppercase;
}
.nav {
  display: grid;
  gap: 6px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  min-height: 46px;
}
.nav a[aria-current="page"] {
  background: var(--pale);
  color: #154faa;
  font-weight: 650;
}
.nav svg {
  width: 19px;
  height: 19px;
}
.sidebar footer {
  margin-top: auto;
  padding-top: 32px;
  color: var(--muted);
  font-size: 12px;
}
.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  border-bottom: 1px solid var(--line);
  background: white;
  gap: 14px;
}
.topbar strong {
  font-size: 13px;
}
.demo {
  background: #fff4dc;
  color: #754708;
  border: 1px solid #eed5a2;
  border-radius: 30px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 650;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 100%;
}
.toplinks {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}
.workspace {
  padding: 32px 36px 48px;
  max-width: 1700px;
  margin: auto;
}
h1 {
  font-size: clamp(27px, 3.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 8px 0 12px;
}
h2 {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}
h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
p {
  margin: 8px 0 16px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
}
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.head p {
  margin-bottom: 0;
  max-width: 680px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.stat,
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  padding: 24px;
}
.stat strong {
  display: block;
  font-size: 30px;
  letter-spacing: -1px;
  margin: 8px 0;
}
.stat small {
  font-size: 12px;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 1fr);
  gap: 22px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.hero {
  border-radius: 20px;
  min-height: 230px;
  padding: 32px;
  background: #e6edf4 url("/assets/clarity-arch.png") right center/auto 150%
    no-repeat;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #e6edf4 0%,
    #e6edf4f5 35%,
    #e6edf48f 70%,
    #e6edf433
  );
  z-index: -1;
}
.hero h2 {
  font-size: 28px;
  max-width: 390px;
  letter-spacing: -1px;
}
.hero p {
  max-width: 390px;
  color: #40536a;
}
.hero .eyebrow {
  display: block;
  margin-bottom: 18px;
}
.list {
  display: grid;
  gap: 0;
}
.list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #edf0f3;
}
.list-item:last-child {
  border-bottom: 0;
}
.list-item .grow {
  flex: 1;
  min-width: 0;
}
.list-item p {
  margin: 3px 0;
  font-size: 12px;
}
.avatar {
  height: 40px;
  width: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf1f6;
  color: #344a66;
  font-weight: 650;
}
.tag {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: #edf1f6;
  color: #47596d;
  white-space: normal;
}
.tag.green {
  background: #e9f6ef;
  color: var(--green);
}
.tag.amber {
  background: #fff4df;
  color: var(--orange);
}
.tag.blue {
  background: #edf3fc;
  color: #1852ab;
}
.note {
  padding: 14px 16px;
  background: #edf3fc;
  border: 1px solid #d4e1f7;
  border-radius: 10px;
  color: #2f4f7e;
  font-size: 13px;
  margin: 18px 0;
}
.notice {
  padding: 10px 16px;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
}
.board-wrap {
  overflow: auto;
  padding-bottom: 20px;
}
.board {
  display: grid;
  grid-template-columns: repeat(9, 260px);
  gap: 14px;
}
.column {
  border-radius: 14px;
  background: #e9edf2;
  padding: 12px;
  min-height: 390px;
}
.column-head {
  display: flex;
  justify-content: space-between;
  padding: 4px 2px 15px;
  font-size: 12px;
  font-weight: 650;
}
.column .card {
  width: 100%;
  display: block;
  text-align: left;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #dde3eb;
  border-radius: 12px;
  box-shadow: 0 3px 8px #17253504;
}
.card strong {
  display: block;
  font-size: 13px;
  margin: 12px 0 3px;
}
.card p {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin: 5px 0 15px;
}
.card .foot {
  border-top: 1px solid #edf0f3;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.toolbar input {
  max-width: 330px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: #f7f9fb;
  padding: 13px;
}
td {
  padding: 15px 13px;
  border-bottom: 1px solid #edf0f3;
  font-size: 13px;
}
td a {
  font-weight: 600;
}
td small {
  display: block;
  color: var(--muted);
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #bcc7d3;
  background: white;
  color: var(--ink);
  padding: 12px;
  border-radius: 9px;
  min-height: 44px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: var(--blue);
}
.check {
  display: flex;
  align-items: flex-start;
  font-weight: 400;
  font-size: 13px;
  gap: 10px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.fields .full {
  grid-column: 1/-1;
}
form .actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
  margin: 25px 0;
}
.tabs a {
  padding: 13px 14px;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
  border-bottom: 2px solid transparent;
  min-height: 44px;
}
.tabs a[aria-current="page"] {
  color: var(--blue);
  border-color: var(--blue);
  font-weight: 650;
}
.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 275px;
  gap: 22px;
}
.sidecard {
  align-self: start;
}
.sidecard dl {
  display: grid;
  gap: 16px;
}
.sidecard dt {
  font-size: 11px;
  color: var(--muted);
}
.sidecard dd {
  margin: 4px 0;
  font-size: 13px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  border-left: 2px solid #e4eaf1;
  position: relative;
  padding: 0 0 24px 20px;
  margin-left: 4px;
}
.timeline li:before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #2970cc;
  left: -5px;
  top: 7px;
  border-radius: 100%;
}
.timeline small {
  color: var(--muted);
  font-size: 11px;
}
.timeline p {
  margin: 4px 0;
}
.empty {
  color: var(--muted);
  padding: 30px 0;
  font-size: 13px;
}
.progress {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
  margin: 20px 0;
}
.progress span {
  height: 5px;
  border-radius: 4px;
  background: #e1e7ef;
}
.progress .done {
  background: #235fc2;
}
.client {
  max-width: 1030px;
  margin: auto;
  padding: 32px 24px;
}
.client header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
}
.client .hero {
  min-height: 280px;
}
.client .hero h1 {
  max-width: 540px;
  font-size: 38px;
}
.client .grid {
  margin-top: 24px;
}
.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--muted);
}
.step b {
  border: 1px solid var(--line);
  height: 28px;
  width: 28px;
  border-radius: 100%;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.step.active {
  color: var(--blue);
  font-weight: 600;
}
.step.active b {
  background: var(--blue);
  color: white;
}
.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.screen-tile {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 16px;
}
.screen-tile span {
  font-size: 11px;
  color: var(--muted);
}
.screen-tile strong {
  display: block;
  font-size: 18px;
  margin: 18px 0 8px;
}
.screen-tile p {
  font-size: 12px;
  color: var(--muted);
}
.screen-tile:hover {
  border-color: #78a0d8;
}
.mini {
  font-size: 11px;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
pre.draft {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 13px;
  background: #f7f8fa;
  padding: 20px;
  border-radius: 10px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  background: #172535;
  color: white;
  padding: 14px 22px;
  border-radius: 12px;
  z-index: 99;
  box-shadow: 0 8px 30px #17253533;
  display: none;
}
#toast.visible {
  display: block;
}
.danger {
  color: #a33232;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 12px;
  }
  .brand {
    font-size: 22px;
  }
  .workspace {
    padding: 26px 24px;
  }
  .topbar {
    padding: 16px 24px;
  }
  .grid,
  .case-layout {
    grid-template-columns: 1fr;
  }
  .sidecard dl {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  .screen-grid {
    grid-template-columns: 1fr 1fr;
  }
  .toplinks {
    gap: 10px;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: relative;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand small {
    display: none;
  }
  .nav {
    display: flex;
    overflow: auto;
    margin-top: 16px;
    gap: 5px;
  }
  .nav a {
    white-space: nowrap;
    padding: 9px 11px;
    font-size: 12px;
  }
  .nav svg {
    display: none;
  }
  .sidebar footer {
    display: none;
  }
  .topbar {
    min-height: 58px;
    padding: 12px 18px;
  }
  .topbar > strong {
    display: none;
  }
  .toplinks a:first-child {
    display: none;
  }
  .workspace {
    padding: 24px 18px;
  }
  .head {
    display: block;
  }
  .head .row {
    margin-top: 16px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat strong {
    font-size: 27px;
  }
  .stat {
    padding: 16px;
  }
  .two,
  .fields,
  .screen-grid {
    grid-template-columns: 1fr;
  }
  .fields .full {
    grid-column: auto;
  }
  .panel {
    padding: 20px;
  }
  .hero {
    padding: 25px;
    min-height: 240px;
    background-size: auto 135%;
  }
  .hero:before {
    background: linear-gradient(90deg, #e6edf4 0%, #e6edf4ee 55%, #e6edf480);
  }
  .hero h2 {
    font-size: 27px;
    max-width: 280px;
  }
  .hero p {
    max-width: 260px;
  }
  .client {
    padding: 22px 18px;
  }
  .client header {
    align-items: flex-start;
  }
  .client header .brand {
    font-size: 22px;
  }
  .client .hero h1 {
    font-size: 32px;
  }
  .client .grid {
    grid-template-columns: 1fr;
  }
  .list-item {
    flex-wrap: wrap;
  }
  .list-item .grow {
    min-width: 150px;
  }
  .notice {
    font-size: 11px;
  }
  .toolbar input {
    max-width: none;
  }
  .sidecard dl {
    grid-template-columns: 1fr 1fr;
  }
  .tabs {
    margin-top: 18px;
  }
  .screen-tile {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .notice,
  .actions,
  #toast {
    display: none;
  }
  .shell {
    display: block;
  }
  .workspace {
    padding: 0;
  }
  .panel {
    break-inside: avoid;
  }
  .tabs {
    display: none;
  }
}
.panel,
.stat,
.workspace,
.case-layout > * {
  min-width: 0;
}
.stat strong {
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
select {
  appearance: none;
  min-height: 44px;
  line-height: 1.4;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6877' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
}
main:focus {
  outline: none;
}
.client .grid > div > .panel + .panel {
  margin-top: 20px;
}
