:root {
  color-scheme:light;
  --navy:#132349;
  --ink:#162341;
  --muted:#61708b;
  --blue:#3156d3;
  --bg:#f4f6fc;
  --line:#dfe5f1;
  --white:#fff;
  --radius:16px;
  font:15px/1.5 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
h1,h2,h3,p {
  margin:0;
}
[hidden] {
  display:none!important;
}
button,input,select,textarea {
  font:inherit;
}
button {
  cursor:pointer;
}
button:disabled {
  cursor:wait;
  opacity:.65;
}
a {
  color:var(--blue);
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid #7694ff;
  outline-offset:2px;
}
button {
  border:1px solid var(--line);
  background:var(--white);
  color:var(--ink);
  border-radius:10px;
  padding:8px 13px;
  font-weight:600;
  min-height:38px;
}
button:hover {
  background:#eef2ff;
}
.primary {
  border-color:var(--blue);
  background:var(--blue);
  color:white;
}
.primary:hover {
  background:#2344bc;
}
.quiet {
  border-color:transparent;
  background:transparent;
  color:var(--muted);
}
.danger {
  color:#a32242;
}
.icon-button {
  min-width:38px;
  padding:4px 8px;
  font-size:19px;
  line-height:1;
}
.error {
  color:#a32242;
}
.muted {
  color:var(--muted);
}
.eyebrow {
  display:block;
  color:#3e57a3;
  font-size:11px;
  letter-spacing:.13em;
  text-transform:uppercase;
  font-weight:800;
}
.layout {
  display:grid;
  grid-template-columns:208px minmax(0,1fr);
  min-height:100vh;
}
.sidebar {
  background:var(--navy);
  color:white;
  padding:25px 15px 18px;
  display:flex;
  flex-direction:column;
  position:sticky;
  top:0;
  height:100vh;
}
.brand {
  display:flex;
  gap:10px;
  align-items:center;
  font-size:17px;
  font-weight:800;
  letter-spacing:-.035em;
  white-space:nowrap;
}
.brand-mark {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:11px;
  background:#5b7dff;
  color:white;
  font-size:22px;
  font-weight:900;
}
.brand small {
  font-size:10px;
  margin-left:3px;
  color:#c2cfff;
  letter-spacing:.08em;
}
.side-label {
  margin:35px 8px 9px;
  font-size:10px;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:#acb8d6;
  font-weight:700;
}
.sidebar nav {
  display:grid;
  gap:4px;
}
.sidebar nav button {
  display:flex;
  align-items:center;
  gap:12px;
  text-align:left;
  border:0;
  border-radius:10px;
  color:#d9e0f5;
  background:transparent;
  padding:10px 12px;
  font-weight:600;
}
.sidebar nav button span {
  font-size:17px;
  width:18px;
  text-align:center;
}
.sidebar nav button[aria-current],.sidebar nav button:hover {
  background:#293f78;
  color:white;
}
.sidebar-bottom {
  margin:auto 9px 0;
  color:#c1cce7;
  font-size:13px;
  display:flex;
  align-items:center;
  gap:8px;
}
.channel-dot {
  width:8px;
  height:8px;
  border-radius:50%;
  background:#76d6b4;
}
.workspace {
  min-width:0;
}
.topbar {
  height:66px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:0 clamp(15px,2.5vw,35px);
  background:var(--white);
  border-bottom:1px solid var(--line);
}
.top-location {
  font-size:13px;
  color:var(--muted);
}
.top-location span {
  margin:0 7px;
  color:#8998b0;
}
.top-location strong {
  color:var(--ink);
}
.top-user {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:13px;
}
.avatar {
  display:grid;
  place-items:center;
  background:#e9eeff;
  color:#2348b4;
  border-radius:50%;
  width:31px;
  height:31px;
  font-weight:750;
}
.demo-label {
  background:#fff3d7;
  color:#784a05;
  border-radius:999px;
  padding:3px 9px;
  font-size:11px;
  font-weight:750;
}
.main {
  padding:27px clamp(15px,2.5vw,35px) 30px;
}
.heading {
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:end;
  margin-bottom:23px;
}
.heading h1 {
  font-size:clamp(30px,4vw,43px);
  line-height:1.07;
  letter-spacing:-.055em;
  margin:5px 0 8px;
}
.heading p {
  color:var(--muted);
  font-size:14px;
}
.heading-actions {
  display:flex;
  align-items:center;
  gap:8px;
}
.metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:23px;
}
.metric {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px 17px;
  display:grid;
  gap:3px;
  color:var(--muted);
  font-size:13px;
}
.metric strong {
  color:var(--ink);
  font-size:27px;
  line-height:1.13;
  font-weight:780;
  letter-spacing:-.05em;
}
.metric:first-child {
  background:#e9efff;
  border-color:#d4dfff;
}
.toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.toolbar h2 {
  font-size:17px;
  letter-spacing:-.025em;
}
.search {
  width:min(100%,280px);
}
input,select,textarea {
  min-width:0;
  width:100%;
  border:1px solid #ccd6e9;
  border-radius:9px;
  padding:8px 10px;
  background:white;
  color:var(--ink);
}
textarea {
  resize:vertical;
  min-height:74px;
}
label {
  display:grid;
  gap:5px;
  font-size:13px;
  font-weight:650;
  color:#324362;
}
label.checkbox {
  display:flex;
  gap:8px;
  align-items:center;
  font-weight:550;
}
input[type=checkbox] {
  width:auto;
  accent-color:var(--blue);
}
.board {
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(172px,1fr);
  gap:10px;
  overflow:auto;
  padding-bottom:9px;
  align-items:start;
}
.lane {
  min-height:264px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#edf1f9;
  padding:8px;
}
.lane-head {
  display:flex;
  gap:6px;
  align-items:center;
  margin:2px 2px 10px;
}
.lane-head h3 {
  font-size:13px;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.lane-count {
  margin-left:auto;
  font-size:11px;
  padding:0 6px;
  color:#53637d;
  background:#e0e7f4;
  border-radius:8px;
}
.dot {
  width:8px;
  height:8px;
  border-radius:50%;
  flex:0 0 8px;
  background:#7185a9;
}
.dot.blue {
  background:#4d6de5;
}
.dot.violet {
  background:#9364db;
}
.dot.amber {
  background:#db8e25;
}
.dot.teal {
  background:#199996;
}
.dot.green {
  background:#269963;
}
.dot.slate {
  background:#7185a9;
}
.cards {
  display:grid;
  gap:8px;
}
.case-card {
  padding:10px;
  border:1px solid #dce4f2;
  border-radius:11px;
  display:grid;
  gap:6px;
  text-align:left;
  min-width:0;
  font-weight:400;
  box-shadow:0 2px 5px #152b6710;
}
.case-card:hover {
  border-color:#a8b9f4;
  background:#fff;
}
.case-card strong {
  font-size:14px;
  line-height:1.2;
  overflow-wrap:anywhere;
}
.case-meta,.case-foot {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:4px;
  font-size:11px;
  color:var(--muted);
}
.case-foot span:first-child {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.case-card .new-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#3c63e7;
}
.empty {
  border:1px dashed #ccd8ed;
  border-radius:11px;
  padding:13px 10px;
  color:var(--muted);
  font-size:13px;
  text-align:center;
}
.list {
  display:grid;
  gap:9px;
}
.list-row {
  background:white;
  border:1px solid var(--line);
  border-radius:12px;
  padding:13px 15px;
  display:flex;
  justify-content:space-between;
  gap:15px;
  align-items:center;
}
.list-row h3 {
  font-size:15px;
  overflow-wrap:anywhere;
}
.list-row p {
  color:var(--muted);
  font-size:13px;
}
.row-actions {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.overdue {
  color:#9f3f09!important;
}
.badge {
  display:inline-block;
  background:#eaf0ff;
  color:#334eaa;
  border-radius:999px;
  padding:3px 8px;
  font-size:11px;
  font-weight:700;
  white-space:normal;
}
.dialog-header {
  display:flex;
  justify-content:space-between;
  gap:13px;
  align-items:start;
  padding-bottom:13px;
}
.dialog-header h2 {
  font-size:26px;
  line-height:1.1;
  letter-spacing:-.042em;
  margin-top:4px;
}
.dialog-header p {
  font-size:13px;
  color:var(--muted);
  margin-top:5px;
}
.drawer,.editor {
  padding:0;
  color:var(--ink);
  border:0;
  background:var(--white);
  box-shadow:0 18px 55px #12234b50;
  max-height:100dvh;
}
.drawer {
  height:100dvh;
  width:min(100%,565px);
  max-width:100%;
  margin:0 0 0 auto;
}
.editor {
  width:min(calc(100% - 24px),650px);
  border-radius:18px;
  max-height:calc(100dvh - 24px);
}
dialog::backdrop {
  background:#14254873;
}
.drawer-content,.editor-content {
  padding:20px;
}
.drawer-content {
  display:grid;
  gap:16px;
}
.editor-content {
  display:grid;
  gap:12px;
}
.dialog-section {
  border-top:1px solid var(--line);
  padding-top:12px;
  display:grid;
  gap:8px;
}
.dialog-section h3 {
  font-size:15px;
}
.fields {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.fields.three {
  grid-template-columns:1fr 1fr 1fr;
}
.stack {
  display:grid;
  gap:9px;
}
.inline-form {
  display:flex;
  align-items:end;
  gap:7px;
}
.inline-form label {
  flex:1;
}
.inline-form button {
  white-space:nowrap;
}
.timeline {
  display:grid;
  gap:8px;
  max-height:330px;
  overflow:auto;
  padding:1px 3px;
}
.message {
  width:min(95%,440px);
  background:#edf1f9;
  border-radius:11px;
  padding:8px 10px;
  font-size:13px;
  overflow-wrap:anywhere;
}
.message.outgoing {
  justify-self:end;
  background:#e6edff;
}
.message.note {
  background:#fff2d7;
}
.message.event {
  width:100%;
  background:transparent;
  padding:4px 5px;
  color:var(--muted);
  font-size:12px;
}
.message-meta {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:4px 9px;
  font-size:10px;
  color:#4e6182;
  margin-bottom:3px;
}
.message p {
  white-space:pre-wrap;
}
.step {
  background:#f4f6fc;
  border:1px solid var(--line);
  border-radius:11px;
  padding:10px;
  display:grid;
  gap:8px;
}
.step-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-size:13px;
  font-weight:700;
}
.toast {
  position:fixed;
  z-index:10;
  bottom:16px;
  left:50%;
  transform:translateX(-50%);
  max-width:calc(100vw - 30px);
  padding:9px 15px;
  border-radius:10px;
  background:#172b52;
  color:white;
  box-shadow:0 8px 18px #1323493b;
}
.login {
  min-height:100vh;
  display:grid;
  grid-template-columns:1fr 1fr;
}
.login-brand {
  padding:clamp(30px,6vw,90px);
  background:linear-gradient(145deg,#152651,#254899);
  color:white;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:45vh;
}
.login-brand h1 {
  font-size:clamp(35px,5vw,65px);
  letter-spacing:-.06em;
  line-height:1.04;
  max-width:610px;
  margin:35px 0 13px;
}
.login-brand p {
  color:#e0e7ff;
  max-width:390px;
}
.login-main {
  display:grid;
  place-items:center;
  padding:30px;
}
.login-main form {
  max-width:360px;
  width:100%;
  display:grid;
  gap:13px;
}
.login-main h2 {
  font-size:31px;
  line-height:1.05;
  letter-spacing:-.05em;
}
.login-main p {
  font-size:14px;
}
.login-main code {
  padding:2px 4px;
  background:#e6edff;
  border-radius:4px;
}
.login-main button {
  justify-self:start;
  min-width:110px;
}
@media(max-width:900px) {
  .layout {
    grid-template-columns:155px minmax(0,1fr);
  }
  .sidebar {
    padding-inline:10px;
  }
  .brand {
    font-size:14px;
    gap:5px;
  }
  .brand small {
    display:none;
  }
  .side-label {
    font-size:9px;
  }
  .metrics {
    gap:8px;
  }
  .metric {
    padding:11px;
  }
  .board {
    grid-auto-columns:minmax(158px,1fr);
  }
}
@media(max-width:640px) {
  .layout {
    display:block;
  }
  .sidebar {
    position:static;
    height:auto;
    padding:9px 12px;
    gap:6px;
  }
  .sidebar nav {
    display:flex;
    gap:3px;
    overflow:auto;
  }
  .sidebar nav button {
    padding:4px 7px;
    gap:4px;
    font-size:12px;
    white-space:nowrap;
  }
  .sidebar nav button span {
    font-size:14px;
    width:auto;
  }
  .side-label,.sidebar-bottom {
    display:none;
  }
  .topbar {
    height:49px;
  }
  .top-user {
    gap:4px;
  }
  .top-user .avatar {
    display:none;
  }
  .top-user button {
    padding:5px;
  }
  .main {
    padding-top:17px;
  }
  .heading {
    align-items:start;
    flex-direction:column;
    margin-bottom:15px;
  }
  .metrics {
    grid-template-columns:1fr 1fr;
  }
  .toolbar {
    flex-wrap:wrap;
  }
  .login {
    grid-template-columns:1fr;
  }
  .login-brand {
    padding:24px;
    min-height:auto;
  }
  .login-brand h1 {
    margin-top:18px;
  }
  .list-row {
    align-items:start;
    flex-direction:column;
    gap:8px;
  }
  .fields.three {
    grid-template-columns:1fr 1fr;
  }
  .inline-form {
    flex-wrap:wrap;
  }
  .inline-form label {
    min-width:135px;
  }
  .drawer-content,.editor-content {
    padding:14px;
  }
}
