/* Brand styling retained from the supplied site. Functional UI adjustments follow. */
:root {
  --navy: #101b3d;
  --blue: #4567d8;
  --blue2: #eaf0ff;
  --ink: #18213b;
  --muted: #75809a;
  --line: #e7eaf2;
  --bg: #f5f7fb;
  --green: #16845b;
  --greenbg: #e8f7f0;
  --amber: #b56b08;
  --amberbg: #fff4df;
  --red: #bd3e4b;
  --redbg: #fff0f1;
  --purple: #7450b5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
}
.hidden {
  display: none !important;
}
.landing {
  min-height: 100vh;
  background: radial-gradient(
    circle at 80% 15%,
    #303d79 0,
    #182653 30%,
    #101832 70%
  );
  color: #fff;
  padding: 26px 6vw 70px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
}
.logo {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.top nav {
  display: flex;
  gap: 28px;
  color: #cbd4f3;
  font-size: 14px;
}
.top nav a {
  color: inherit;
  text-decoration: none;
}
.btn {
  padding: 12px 18px;
  border-radius: 11px;
  background: var(--blue);
  color: white;
  font-weight: 650;
  box-shadow: 0 5px 14px #4567d833;
}
.btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.btn.light {
  background: #fff;
  color: var(--navy);
  box-shadow: none;
}
.btn.outline {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.small {
  padding: 8px 12px;
  font-size: 13px;
}
.hero {
  max-width: 1240px;
  margin: 90px auto 75px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  color: #aebeff;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 800;
}
.hero h1 {
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.04;
  letter-spacing: -2.5px;
  margin: 20px 0;
}
.hero h1 span {
  color: #9eb4ff;
}
.hero p {
  color: #c7d0e9;
  font-size: 18px;
  line-height: 1.7;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}
.hero-note {
  font-size: 12px;
  color: #aeb8d4;
  margin-top: 18px;
}
.mock {
  background: #fff;
  border: 1px solid #ffffff44;
  border-radius: 24px;
  padding: 17px;
  box-shadow: 0 35px 90px #060d25aa;
  transform: rotate(1deg);
}
.mockbar {
  display: flex;
  gap: 6px;
  padding: 3px 4px 14px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8ddeb;
}
.mockgrid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  min-height: 310px;
}
.mockside {
  background: #111d40;
  border-radius: 12px;
  padding: 14px 9px;
  color: #c8d2f3;
  font-size: 10px;
  line-height: 3;
}
.mockside b {
  display: block;
  color: white;
  font-size: 13px;
  margin-bottom: 8px;
}
.mockmain {
  background: #f5f7fc;
  border-radius: 12px;
  padding: 15px;
  color: #17213d;
}
.mockmain h3 {
  margin: 0 0 14px;
  font-size: 15px;
}
.mockstats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mockstat {
  background: white;
  border: 1px solid #e8ebf4;
  border-radius: 9px;
  padding: 10px;
  font-size: 9px;
  color: #77819a;
}
.mockstat strong {
  display: block;
  font-size: 19px;
  color: #17213d;
  margin-top: 5px;
}
.mockrows {
  background: #fff;
  border: 1px solid #e8ebf4;
  border-radius: 10px;
  margin-top: 12px;
  padding: 10px;
  font-size: 10px;
}
.mockrow {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #eff1f6;
}
.mockrow:last-child {
  border: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  background: #edf1f8;
  color: #5b6680;
}
.pill.green {
  background: var(--greenbg);
  color: var(--green);
}
.pill.amber {
  background: var(--amberbg);
  color: var(--amber);
}
.pill.red {
  background: var(--redbg);
  color: var(--red);
}
.landing-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 25px 0;
}
.landing-section h2 {
  font-size: 34px;
  letter-spacing: -1px;
}
.landing-section > p {
  color: #c4cde4;
  max-width: 700px;
  line-height: 1.6;
}
.featuregrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.feature {
  border: 1px solid #ffffff24;
  background: #ffffff0d;
  padding: 22px;
  border-radius: 16px;
}
.feature .ico {
  font-size: 24px;
}
.feature h3 {
  font-size: 16px;
}
.feature p {
  font-size: 13px;
  color: #bbc6e3;
  line-height: 1.6;
}
.app {
  min-height: 100vh;
  display: flex;
}
.sidebar {
  width: 250px;
  background: #111b3a;
  color: #d5ddf4;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.sidebrand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 24px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}
.sidebrand .logo {
  width: 42px;
  height: 42px;
}
.sidebrand .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.workspace {
  font-size: 10px;
  color: #7886ad;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 10px 12px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: #aeb9d8;
  background: transparent;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 13px;
}
.nav button:hover,
.nav button.active {
  background: #26345d;
  color: #fff;
}
.nav button.active {
  box-shadow: inset 3px 0 #87a2ff;
}
.nav .ni {
  width: 19px;
  text-align: center;
  font-size: 16px;
}
.sidebottom {
  margin-top: auto;
  border-top: 1px solid #2a3558;
  padding: 17px 8px 0;
  font-size: 12px;
  color: #91a0c4;
}
.main {
  margin-left: 250px;
  width: calc(100% - 250px);
}
.topbar {
  height: 70px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 4;
}
.crumb {
  font-size: 13px;
  color: var(--muted);
}
.topright {
  display: flex;
  align-items: center;
  gap: 16px;
}
.iconbtn {
  background: #f4f6fb;
  color: #52607f;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8edff;
  color: #3d56b4;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
}
.user {
  font-size: 12px;
  font-weight: 700;
}
.user small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}
.content {
  padding: 30px 34px 50px;
  max-width: 1500px;
  margin: auto;
}
.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}
.pagehead h1 {
  font-size: 27px;
  margin: 0 0 7px;
  letter-spacing: -0.8px;
}
.sub {
  color: var(--muted);
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.grid {
  display: grid;
  gap: 16px;
}
.stats {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 19px;
  box-shadow: 0 3px 12px #14224a05;
}
.statlabel {
  color: var(--muted);
  font-size: 12px;
}
.statvalue {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 8px 0;
}
.statfoot {
  font-size: 11px;
  color: var(--green);
}
.two {
  grid-template-columns: 1.3fr 0.9fr;
}
.three {
  grid-template-columns: repeat(3, 1fr);
}
.cardhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cardhead h3 {
  margin: 0;
  font-size: 15px;
}
.cardhead span {
  font-size: 11px;
  color: var(--muted);
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th {
  text-align: left;
  color: #8490a8;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 700;
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
}
td {
  font-size: 12px;
  padding: 13px 10px;
  border-bottom: 1px solid #f0f2f7;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafbfe;
}
.link {
  color: #355bd1;
  font-weight: 700;
  cursor: pointer;
}
.muted {
  color: var(--muted);
}
.person {
  display: flex;
  align-items: center;
  gap: 9px;
}
.miniavatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #edf1ff;
  color: #5369c2;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}
.toolbar {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.field {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 12px;
  outline: none;
  min-width: 150px;
}
.field:focus {
  border-color: #8198ed;
  box-shadow: 0 0 0 3px #4567d818;
}
.search {
  min-width: 230px;
}
.empty {
  padding: 35px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.progress {
  height: 7px;
  background: #edf0f6;
  border-radius: 9px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 9px;
}
.event {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eff1f5;
}
.event:last-child {
  border: 0;
}
.datebox {
  width: 44px;
  height: 48px;
  border-radius: 10px;
  background: #eef2ff;
  color: #4660c0;
  display: grid;
  place-content: center;
  text-align: center;
  font-weight: 800;
}
.datebox small {
  font-size: 9px;
  text-transform: uppercase;
}
.event b {
  font-size: 12px;
}
.event p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
}
.quickgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.quick {
  background: #f7f8fc;
  border: 1px solid #edf0f6;
  border-radius: 11px;
  padding: 13px;
  text-align: left;
  color: var(--ink);
  font-size: 12px;
}
.quick:hover {
  border-color: #aab9f3;
  background: #f1f4ff;
}
.quick strong {
  display: block;
  font-size: 19px;
  margin-bottom: 7px;
  color: #4b65c9;
}
.notice {
  padding: 13px 14px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.notice.warn {
  background: var(--amberbg);
  color: #88540d;
}
.notice.ok {
  background: var(--greenbg);
  color: #176b4c;
}
.notice.info {
  background: #eef3ff;
  color: #3854b2;
}
.modalback {
  position: fixed;
  inset: 0;
  background: #101a35a8;
  display: grid;
  place-items: center;
  z-index: 20;
  padding: 18px;
}
.modal {
  width: min(620px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: white;
  border-radius: 18px;
  box-shadow: 0 25px 80px #09122c55;
}
.modalhead {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modalhead h3 {
  margin: 0;
  font-size: 17px;
}
.modalbody {
  padding: 22px;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.formgroup {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.formgroup.full {
  grid-column: 1/-1;
}
.formgroup label {
  font-size: 11px;
  color: #68738c;
  font-weight: 700;
}
.formgroup input,
.formgroup select,
.formgroup textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 11px;
  font-size: 12px;
  outline: none;
}
.formgroup textarea {
  min-height: 75px;
  resize: vertical;
}
.modalfoot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}
.close {
  background: transparent;
  color: #8290a8;
  font-size: 22px;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #142143;
  color: white;
  padding: 13px 17px;
  border-radius: 12px;
  box-shadow: 0 10px 30px #111b3a44;
  z-index: 40;
  font-size: 13px;
  animation: up 0.2s ease;
}
@keyframes up {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.conflictbox {
  background: linear-gradient(135deg, #f4f6ff, #fff);
  border: 1px solid #e4e9ff;
  border-radius: 14px;
  padding: 20px;
}
.conflictform {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.conflictform .wide {
  grid-column: 1/-1;
}
.result {
  margin-top: 16px;
  padding: 17px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.graph {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.node {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #dce3f7;
  background: #f4f6ff;
  font-size: 11px;
  text-align: center;
  min-width: 110px;
}
.node strong {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}
.edge {
  color: #8994ae;
  font-size: 18px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.calday {
  min-height: 88px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
  font-size: 11px;
}
.calday.mutedday {
  background: #fafbfe;
  color: #b2bacb;
}
.calday.today {
  border-color: #8097ed;
  background: #f5f7ff;
}
.calday .calnum {
  font-weight: 800;
}
.calevent {
  display: block;
  background: #eaf0ff;
  color: #405bbd;
  border-radius: 5px;
  padding: 4px;
  margin-top: 6px;
  font-size: 9px;
  white-space: normal;
}
.chart {
  height: 190px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 15px 5px 0;
  border-bottom: 1px solid var(--line);
}
.barcol {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  height: 100%;
  gap: 7px;
}
.bar {
  width: 70%;
  max-width: 38px;
  background: linear-gradient(180deg, #7892f0, #4567d8);
  border-radius: 6px 6px 0 0;
  min-height: 5px;
}
.barlabel {
  font-size: 9px;
  color: var(--muted);
}
.barval {
  font-size: 9px;
  color: #52617f;
}
@media (max-width: 1000px) {
  .sidebar {
    width: 215px;
  }
  .main {
    margin-left: 215px;
    width: calc(100% - 215px);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .two {
    grid-template-columns: 1fr;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    margin-top: 55px;
  }
  .featuregrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  .sidebar {
    width: 62px;
    padding: 15px 7px;
  }
  .sidebrand {
    padding: 0 5px 20px;
  }
  .sidebrand span:not(.logo) {
    display: none;
  }
  .workspace,
  .nav button .nt,
  .sidebottom {
    display: none;
  }
  .nav button {
    justify-content: center;
    padding: 12px 0;
  }
  .nav .ni {
    font-size: 18px;
  }
  .main {
    margin-left: 62px;
    width: calc(100% - 62px);
  }
  .topbar {
    padding: 0 15px;
  }
  .content {
    padding: 22px 14px;
  }
  .user {
    display: none;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .pagehead {
    display: block;
  }
  .actions {
    margin-top: 14px;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .formgroup.full {
    grid-column: auto;
  }
  .conflictform {
    grid-template-columns: 1fr;
  }
  .conflictform .wide {
    grid-column: auto;
  }
  .featuregrid {
    grid-template-columns: 1fr;
  }
  .top nav {
    display: none;
  }
  .hero {
    margin: 45px auto;
  }
  .mockgrid {
    grid-template-columns: 80px 1fr;
  }
  .mockside {
    font-size: 8px;
  }
  .quickgrid {
    grid-template-columns: 1fr 1fr;
  }
  .calday {
    min-height: 60px;
    padding: 5px;
  }
  .calevent {
    font-size: 8px;
  }
}

/* Workspace v2 */
body {font-size:16px} button:disabled {opacity:.55;cursor:wait} button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {outline:3px solid #4567d8;outline-offset:3px}
.skip {position:absolute;left:270px;top:-100px;z-index:100;background:white;padding:12px}.skip:focus {top:10px}.sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.nav button {font-size:14px}.topbar {gap:12px}.topright {gap:10px}#sync {font-size:13px;color:var(--muted)}.demo-banner {padding:10px 32px;background:#fff4df;color:#825014;font-size:13px}.error-banner {margin:16px 32px;padding:14px;background:#fff0f1;border:1px solid #e8b8bd;color:#982d39;border-radius:10px}
.sub,.field,.btn.small,td,.event b,.event p,.formgroup label,.formgroup span {font-size:14px}th {font-size:12px;text-transform:none;letter-spacing:0}.card h2,.cardhead h2 {font-size:18px;margin:0 0 16px}.cardhead h2 {margin:0}.card p {line-height:1.6}.statlabel {font-size:14px}.statvalue {font-size:clamp(20px,2vw,28px);overflow-wrap:anywhere}.stats {grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.row-actions {display:flex;gap:6px;flex-wrap:wrap}.tablewrap td {max-width:300px;white-space:normal;overflow-wrap:anywhere}.tablewrap td:last-child {min-width:185px}.spaced,.template-actions {margin-top:20px;margin-bottom:20px}.archive-filter {display:flex;align-items:center;gap:8px;font-size:14px;margin:12px 0}.archive-filter input {width:18px;height:18px}.details {display:grid;grid-template-columns:150px 1fr;gap:12px}.details dt {color:var(--muted)}.details dd {margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.hash {overflow-wrap:anywhere;font-size:13px}.document-text {white-space:pre-wrap;overflow-wrap:anywhere;font:15px/1.7 system-ui;background:#f7f8fc;border:1px solid var(--line);padding:20px;border-radius:10px}
dialog.modal {border:1px solid var(--line);padding:0;max-width:820px;width:calc(100% - 32px);color:var(--ink)}dialog::backdrop {background:#101a35a8}.modalhead h2 {font-size:20px;margin:0}.modalbody .stats {grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.modalbody .statvalue {font-size:20px}.formgroup input,.formgroup select,.formgroup textarea {font-size:16px;min-height:44px}.formgroup {font-size:14px}.formgroup textarea {min-height:110px}.form-error {color:#a52c3a;white-space:pre-wrap}.modalfoot {flex-wrap:wrap}.file-label {display:inline-flex;align-items:center;gap:12px}.file-label input {max-width:220px}.weekday {font-size:14px;color:var(--muted);padding:6px}.calday {min-width:0;min-height:95px}.calevent {width:100%;font-size:12px;text-align:left;overflow-wrap:anywhere;padding:6px}.event {align-items:center;justify-content:space-between;font-size:14px}#print-area {display:none}
@media(max-width:850px){.topbar {height:auto;min-height:70px;padding:12px 16px;flex-wrap:wrap}.topright {flex-wrap:wrap}.demo-banner {padding:10px 16px}.error-banner {margin:12px 16px}.formgrid {grid-template-columns:1fr}.formgroup.full {grid-column:auto}.cardhead {gap:12px;flex-wrap:wrap}}
@media(max-width:680px){.sidebrand {padding-left:0}.sidebrand .logo {width:40px}.nav button {min-height:43px}.calday {min-height:60px;padding:3px}.calevent {font-size:11px;padding:3px}.calendar {gap:3px}.card {padding:14px}.content {padding:20px 12px}.topright .user {display:none}.details {grid-template-columns:1fr}.details dd {padding-bottom:10px}.stats {grid-template-columns:1fr}.pagehead h1 {font-size:25px}}
@media print {body>* {display:none!important}#print-area {display:block!important;white-space:pre-wrap;font:12pt/1.6 Georgia,serif;color:black}dialog {display:none!important} @page {size:A4;margin:20mm}}

/* Document review, calculations and account screens */
[hidden] {display:none!important}.auth-layout {max-width:1120px;margin:8vh auto;padding:24px;display:grid;grid-template-columns:1.1fr 1fr;gap:64px;align-items:center;min-height:70vh}.auth-intro img {width:95px;height:95px;object-fit:contain}.auth-intro h1 {font-size:clamp(30px,4vw,48px);line-height:1.15;letter-spacing:-1px;margin:24px 0}.auth-intro p {line-height:1.7}.auth-card {padding:32px}.auth-card input {width:100%}.auth-card .formgroup {margin:20px 0}.auth-links {display:flex;gap:8px;flex-wrap:wrap;margin-top:24px}.auth-card form>.btn {width:100%}.notice.warn {background:#fff4df;color:#634418;padding:14px 16px;border-radius:8px;line-height:1.6}.formgroup>span {display:block;margin-bottom:8px}.formgroup>input,.formgroup>textarea,.formgroup>select {width:100%;border:1px solid var(--line);padding:10px 12px;border-radius:8px;font-family:inherit;background:white;color:var(--ink)}.formgrid {gap:18px}.formgroup {display:block;min-width:0}.formgroup.full {grid-column:1/-1}.finding {border-top:1px solid var(--line);padding:20px 0}.finding h4 {font-size:17px;margin:0}.finding blockquote,.source-quote {margin:12px 0;padding:12px;border-left:3px solid #b2bed6;background:#f5f7fb;white-space:pre-wrap;overflow-wrap:anywhere}.calc-row {display:flex;flex-wrap:wrap;gap:14px;align-items:end;padding:18px 0;border-bottom:1px solid var(--line)}.calc-row .formgroup {flex:1 1 140px}.calc-row .formgroup:first-child {flex:2 1 220px}.calculation {margin-top:24px;border-top:2px solid var(--line);padding-top:16px}.recovery-code {overflow-wrap:anywhere;white-space:pre-wrap;padding:16px;background:#f3f5fa;font-size:18px}.demo-banner .btn {margin-left:8px}.sidebar {overflow-y:auto}.source-quote {max-height:170px;overflow:auto}
@media(max-width:850px){.auth-layout {grid-template-columns:1fr;gap:24px;margin:20px auto}.auth-intro h1 {font-size:32px}.auth-card {padding:22px}}
@media(max-width:680px){.calc-row {display:grid;grid-template-columns:1fr}.sidebar {width:64px}.main {margin-left:64px;min-width:0}.demo-banner {font-size:13px}.demo-banner .btn {margin-top:8px;margin-left:0}.auth-layout {padding:16px}}

.calculation table {min-width:360px}.calculation .tablewrap td:last-child {min-width:100px}.calculation .tablewrap td:first-child {min-width:100px}#analysis-results table {min-width:500px}

/* Unslop pass: quiet legal workspace and usable mobile navigation. */
:root {
  --navy: #17233b;
  --blue: #3156b3;
  --blue2: #eef2f8;
  --ink: #1a2436;
  --muted: #667085;
  --line: #dce1e8;
  --bg: #f4f5f3;
}
html {
  background: var(--bg);
}
body {
  min-height: 100dvh;
  line-height: 1.5;
}
h1,
h2,
h3,
h4,
.brand,
.sidebrand,
.statvalue {
  font-weight: 600;
}
.btn {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 9px;
  font-weight: 600;
  box-shadow: 0 1px 2px #10182814;
  transition:
    background-color 150ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 150ms cubic-bezier(0.22, 1, 0.36, 1),
    color 150ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 150ms cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover {
  filter: none;
  transform: none;
  background-color: #294a9b;
}
.btn:active {
  transform: scale(0.98);
}
.btn.outline:hover {
  background: #f4f6f8;
  color: var(--ink);
}
.btn.small {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 14px;
}
.card {
  border-radius: 14px;
  padding: 20px;
  box-shadow: none;
}
.workspace {
  color: #9ba8c7;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}
.nav button {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  transition:
    background-color 150ms cubic-bezier(0.22, 1, 0.36, 1),
    color 150ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav button.active {
  box-shadow: inset 3px 0 #b8c7f3;
}
.nav .ni {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #ffffff08;
  transition:
    background-color 150ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 150ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav button:hover .ni,
.nav button.active .ni {
  border-color: #ffffff14;
  background: #ffffff0d;
}
.nav .ni svg,
.iconbtn svg,
.refresh-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.iconbtn {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  transition:
    background-color 150ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 150ms cubic-bezier(0.22, 1, 0.36, 1);
}
.iconbtn:hover {
  background: #eceff3;
  border-color: var(--line);
}
.mobile-menu,
.nav-backdrop {
  display: none;
}
.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.refresh-btn svg {
  display: none;
}
.demo-banner {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #eed9ae;
}
.demo-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}
.demo-banner .btn {
  margin: 0;
}
.statvalue {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.conflictbox,
.bar {
  background: #f5f7fa;
}
.bar {
  background: var(--blue);
}
.finding blockquote,
.source-quote,
.document-text {
  border-left-color: var(--blue);
  background: #f6f7f8;
}
.modal {
  border-radius: 16px;
  box-shadow: 0 16px 48px #10182824;
}
.modalhead {
  gap: 16px;
}
.close {
  flex: 0 0 40px;
  color: var(--muted);
  font-size: inherit;
}
.auth-layout {
  margin: 0 auto;
  padding-block: 48px;
  gap: 64px;
  min-height: 100dvh;
}
.auth-intro h1 {
  margin: 20px 0 16px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.auth-intro > p:not(.notice) {
  max-width: 560px;
  color: #475467;
  font-size: 17px;
}
.auth-card h2 {
  margin: 0 0 20px;
  font-size: 24px;
}
.auth-card .formgroup {
  margin: 16px 0;
}
.auth-links .btn {
  min-height: 44px;
}
.file-control {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}
.file-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}
.file-name {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-picker:focus-within .file-button {
  outline: 3px solid #3156b3;
  outline-offset: 3px;
}
.file-picker .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 680px) {
  .skip {
    left: 12px;
  }
  body.nav-open {
    overflow: hidden;
  }
  .sidebar {
    width: min(84vw, 320px);
    padding: 16px 12px max(20px, env(safe-area-inset-bottom));
    transform: translateX(-102%);
    box-shadow: 12px 0 32px #10182824;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
    visibility: hidden;
  }
  .nav-open .sidebar {
    transform: translateX(0);
    visibility: visible;
  }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    border: 0;
    background: #10182880;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav-open .nav-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
  .sidebrand {
    padding: 0 8px 20px;
  }
  .sidebrand span:not(.logo),
  .workspace,
  .nav button .nt,
  .sidebottom {
    display: initial;
  }
  .workspace {
    display: block;
    padding: 8px 12px;
  }
  .sidebottom {
    display: block;
  }
  .nav button {
    justify-content: flex-start;
    min-height: 44px;
    padding: 10px 12px;
  }
  .main {
    width: 100%;
    margin-left: 0;
  }
  .topbar {
    min-height: 56px;
    padding: 8px 12px;
    gap: 8px;
  }
  .mobile-menu {
    display: inline-flex;
    flex: 0 0 44px;
  }
  .crumb {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topright {
    width: 100%;
    gap: 8px;
  }
  #sync {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .refresh-btn,
  .topright .iconbtn {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    flex: 0 0 44px;
  }
  .refresh-btn svg {
    display: block;
  }
  .refresh-btn .button-label,
  .topright .user {
    display: none;
  }
  .demo-banner {
    display: grid;
    padding: 12px;
    gap: 12px;
    line-height: 1.45;
  }
  .demo-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .demo-actions .btn {
    width: 100%;
  }
  .content {
    padding: 20px 12px calc(32px + env(safe-area-inset-bottom));
  }
  .pagehead {
    margin-bottom: 20px;
  }
  .pagehead h1 {
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }
  .actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 16px;
  }
  .actions .btn,
  .toolbar .field,
  .toolbar .btn,
  .search {
    width: 100%;
    min-width: 0;
  }
  .file-control {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }
  .card {
    padding: 16px;
    border-radius: 12px;
  }
  .stats,
  .quickgrid {
    grid-template-columns: 1fr;
  }
  .tablewrap {
    margin-inline: -4px;
    padding-inline: 4px;
    overscroll-behavior-inline: contain;
  }
  .calendar {
    min-width: 640px;
  }
  .card:has(.calendar) {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }
  dialog.modal {
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 8px);
    margin: auto 0 0;
    border-width: 1px 0 0;
    border-radius: 16px 16px 0 0;
  }
  .modalhead {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 16px;
    background: white;
  }
  .modalbody {
    padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  }
  .modalfoot {
    display: grid;
    grid-template-columns: 1fr;
  }
  .modalfoot .btn,
  .modalbody > .btn {
    width: 100%;
  }
  .toast {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    text-align: center;
  }
  .auth-layout {
    min-height: 100dvh;
    margin: 0 auto;
    padding: 20px 16px 32px;
    gap: 16px;
    align-content: start;
  }
  .auth-intro img {
    width: 64px;
    height: 64px;
  }
  .auth-intro h1 {
    margin: 12px 0 8px;
    font-size: 30px;
    line-height: 1.1;
  }
  .auth-intro > p:not(.notice) {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.5;
  }
  .auth-intro .notice {
    margin: 0;
    padding: 12px;
    font-size: 14px;
    line-height: 1.45;
  }
  .auth-card {
    padding: 20px;
  }
  .auth-card h2 {
    margin-bottom: 12px;
    font-size: 22px;
  }
  .auth-card .formgroup {
    margin: 12px 0;
  }
  .auth-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 16px;
  }
  .auth-links .btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .auth-layout {
    padding-inline: 12px;
  }
  .auth-intro h1 {
    font-size: 28px;
  }
  .demo-actions,
  .auth-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Landing direction: legal paper, editorial marks, one risk accent.
   Unslop method by Damir Sokolovsky, CC BY 4.0. */
body:has(#auth-root:not([hidden])) {
  background: #f7f4ee;
  color: #1f1b16;
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 440px);
  width: min(100%, 1328px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 32px 24px 48px;
  align-items: start;
  gap: 64px;
}
.auth-story {
  min-width: 0;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  color: #1f1b16;
  font-size: 18px;
  font-weight: 600;
}
.auth-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #1f1b16;
  border-radius: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
}
.auth-copy {
  max-width: 720px;
  padding: 80px 0 48px;
}
.auth-kicker,
.auth-card-kicker {
  margin: 0 0 16px;
  color: #755b41;
  font-size: 13px;
  font-weight: 500;
}
.auth-copy h1 {
  max-width: 760px;
  margin: 0;
  color: #1f1b16;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.auth-copy > p:last-child {
  max-width: 640px;
  margin: 24px 0 0;
  color: #5e554a;
  font-size: 18px;
  line-height: 1.6;
}
.document-preview {
  overflow: hidden;
  max-width: 760px;
  border: 1px solid #d9d2c7;
  border-radius: 16px;
  background: #fdfbf7;
  box-shadow: 0 16px 40px #382b1d12;
}
.document-toolbar {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid #e8e2d9;
  color: #7b7266;
  font-size: 12px;
}
.document-toolbar span:first-child {
  overflow: hidden;
  color: #3c342b;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.document-sheet {
  padding: 32px 40px 40px;
  background:
    linear-gradient(#eee9e1 1px, transparent 1px) 0 0 / 100% 32px,
    #fdfbf7;
}
.document-line {
  max-width: 560px;
  margin: 0 0 20px;
  color: #51483e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.6;
}
.document-line.strong {
  color: #1f1b16;
  font-weight: 600;
}
.document-line.muted-line {
  margin-top: 28px;
  color: #675e54;
}
.document-risk {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  margin: 8px -8px 0;
  padding: 16px 16px 16px 24px;
  border: 1px solid #e2c9c4;
  border-radius: 12px;
  background: #fff8f6;
}
.document-risk > p {
  margin: 0;
  color: #342c25;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.55;
}
.risk-mark {
  position: absolute;
  inset: 12px auto 12px 8px;
  width: 3px;
  border-radius: 2px;
  background: #a23d35;
}
.document-risk aside {
  display: grid;
  align-content: start;
  gap: 4px;
  padding-left: 16px;
  border-left: 1px solid #e2c9c4;
  color: #6d4a45;
  font-size: 12px;
  line-height: 1.45;
}
.document-risk aside strong {
  color: #8f2f28;
  font-weight: 600;
}
.document-note {
  display: flex;
  max-width: 520px;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid #d9d2c7;
  color: #7b5d35;
  font-size: 12px;
}
.auth-assurances {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 760px;
  gap: 24px;
  padding: 24px 0 0;
  color: #7b7266;
  font-size: 12px;
  line-height: 1.5;
}
.auth-assurances b {
  display: block;
  margin-bottom: 4px;
  color: #3c342b;
  font-weight: 500;
}
.auth-card {
  position: sticky;
  top: 32px;
  margin-top: 84px;
  padding: 28px;
  border-color: #d9d2c7;
  border-radius: 16px;
  background: #fdfbf7;
  box-shadow: 0 12px 32px #382b1d0f;
}
.auth-card h2 {
  margin: 0 0 24px;
  color: #1f1b16;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
}
.auth-card-kicker {
  margin-bottom: 8px;
}
.auth-card-copy {
  margin: 0 0 24px;
  color: #5e554a;
  font-size: 15px;
  line-height: 1.6;
}
.auth-card .formgroup {
  margin: 16px 0;
}
.auth-card .formgroup > span {
  color: #3c342b;
  font-size: 14px;
}
.auth-card .formgroup small {
  display: block;
  margin-top: 6px;
  color: #7b7266;
  font-size: 12px;
}
.auth-card input {
  min-height: 44px;
  border-color: #d9d2c7;
  border-radius: 8px;
  background: #fff;
  color: #1f1b16;
}
.auth-card input:focus {
  border-color: #755b41;
  outline: 3px solid #755b4129;
}
.auth-submit {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  border-radius: 8px;
  background: #2d2925;
  color: #fff;
}
.auth-submit:hover {
  background: #1f1b16;
}
.auth-submit:disabled {
  cursor: not-allowed;
  background: #a49b90;
}
.telegram-login {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #c9c2b8;
  border-radius: 8px;
  color: #1f1b16;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 150ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 150ms cubic-bezier(0.22, 1, 0.36, 1);
}
.telegram-login:hover {
  border-color: #9f968b;
  background: #f3eee6;
}
.telegram-login svg {
  width: 18px;
  height: 18px;
  fill: #2aabee;
}
.auth-separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #8a8177;
  font-size: 12px;
}
.auth-separator::before,
.auth-separator::after {
  height: 1px;
  background: #e0dad1;
  content: "";
}
.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}
.text-button {
  padding: 4px 0;
  background: transparent;
  color: #755b41;
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: #c9b9a6;
  text-underline-offset: 4px;
}
.text-button:hover {
  color: #3c342b;
}
.auth-terms,
.auth-legal {
  color: #7b7266;
  font-size: 12px;
  line-height: 1.5;
}
.auth-terms {
  margin: 16px 0;
}
.auth-legal {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid #e8e2d9;
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
    max-width: 680px;
    padding: 24px 20px 40px;
    gap: 32px;
  }
  .auth-copy {
    padding: 48px 0 32px;
    order: 2;
  }
  .auth-copy h1 {
    font-size: clamp(40px, 10vw, 56px);
  }
  .auth-card {
    position: static;
    margin-top: 0;
    order: 3;
  }
  .auth-story {
    display: contents;
  }
  .auth-brand {
    order: 1;
  }
  .document-preview {
    order: 4;
  }
  .auth-assurances {
    order: 5;
  }
}

@media (max-width: 560px) {
  .auth-layout {
    padding: 16px 16px 32px;
    gap: 24px;
  }
  .auth-copy {
    padding: 32px 0 24px;
  }
  .auth-copy h1 {
    font-size: 38px;
    line-height: 1.08;
  }
  .auth-copy > p:last-child {
    margin-top: 16px;
    font-size: 16px;
  }
  .document-preview {
    border-radius: 12px;
  }
  .document-toolbar {
    padding: 0 16px;
  }
  .document-sheet {
    padding: 24px 20px 28px;
  }
  .document-risk {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .document-risk aside {
    padding: 12px 0 0;
    border-top: 1px solid #e2c9c4;
    border-left: 0;
  }
  .document-note {
    display: grid;
    gap: 4px;
  }
  .auth-assurances {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .auth-card {
    padding: 20px;
    border-radius: 12px;
  }
  .auth-card h2 {
    font-size: 24px;
  }
}
