@font-face {
  font-family: Manrope;
  src: url('/fonts/manrope.ttf') format('truetype');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Playfair;
  src: url('/fonts/playfair.ttf') format('truetype');
  font-weight: 400 800;
  font-display: swap;
}
:root {
  --yellow: #ffbd00;
  --yellow-hover: #efb100;
  --ink: #20201e;
  --muted: #777972;
  --line: #e9e8e2;
  --paper: #f7f7f3;
  --white: #fff;
  --serif: Playfair, Georgia, serif;
  --sans: Manrope, sans-serif;
  --green: #217a50;
  --radius: 12px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  background: var(--paper);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.045em;
}
h3 {
  font-weight: 700;
  line-height: 1.4;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #b78200;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  border-radius: 7px;
  padding: 11px 20px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    background 0.18s,
    box-shadow 0.18s;
}
.btn:hover {
  box-shadow: 0 3px 10px #00000008;
}
.btn-primary {
  background: var(--yellow);
  color: #181a16;
}
.btn-primary:hover {
  background: var(--yellow-hover);
}
.btn-secondary {
  background: white;
  border-color: #dedfd7;
}
.btn-secondary:hover {
  background: #f9f9f5;
}
.btn-quiet {
  background: transparent;
  border: 0;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-quiet:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.icon-btn {
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover {
  background: #eeeee7;
}
.wordmark {
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1.6px;
  white-space: nowrap;
}
.wordmark span {
  color: #e5a500;
}
.wordmark .brand-dot {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0;
  margin-left: 5px;
  vertical-align: top;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.eyebrow:before {
  content: '';
  height: 2px;
  width: 24px;
  background: var(--yellow);
}
.muted {
  color: var(--muted);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 15px;
  z-index: 50;
  background: var(--yellow);
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* The public face: paper, expressive ink, and a quiet reading column. */
.site {
  background: #fbfbf8;
}
.site-nav {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1350px;
  margin: auto;
  padding: 0 48px;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.brand-sub {
  font-size: 9px;
  letter-spacing: 0.9px;
  color: var(--muted);
  margin-top: 9px;
}
.site-links {
  display: flex;
  gap: 30px;
  font-size: 12px;
  font-weight: 600;
}
.site-links a:hover {
  color: #977000;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-actions .btn {
  font-size: 12px;
  padding: 10px 17px;
}
.site-hero {
  max-width: 1440px;
  margin: auto;
  min-height: 650px;
  position: relative;
  overflow: hidden;
  padding: 88px 94px 68px;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: 53%;
  max-width: 660px;
}
.hero-copy h1 {
  font-size: clamp(46px, 4.6vw, 66px);
  margin: 24px 0 24px;
}
.hero-copy h1 em {
  color: #d69b00;
  font-style: normal;
}
.hero-copy > p {
  font-size: 16px;
  line-height: 1.8;
  max-width: 420px;
  color: #666961;
}
.hero-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}
.hero-checks {
  display: flex;
  gap: 22px;
  font-size: 10px;
  margin-top: 28px;
  color: #686d63;
}
.hero-checks span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-checks .icon {
  width: 15px;
  height: 15px;
  color: #4b5d46;
}
.hero-art {
  position: absolute;
  width: 74%;
  height: 100%;
  right: -15%;
  top: 0;
  background: url('/aida-art.png') center/cover no-repeat;
  mask-image: linear-gradient(90deg, transparent, black 19%);
  opacity: 0.94;
}
.hero-doc {
  position: absolute;
  z-index: 1;
  right: 9%;
  top: 32%;
  width: 225px;
  padding: 24px;
  background: #ffffffed;
  box-shadow: 0 15px 60px #1c1c1c21;
  transform: rotate(7deg);
  border: 1px solid white;
  border-radius: 3px;
}
.hero-doc .doc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #82867f;
}
.hero-doc h3 {
  font-size: 19px;
  margin: 25px 0 3px;
}
.hero-doc small {
  font-size: 10px;
  color: #82867f;
}
.doc-lines {
  display: grid;
  gap: 8px;
  margin: 25px 0 20px;
}
.doc-lines i {
  display: block;
  height: 4px;
  background: #e4e5df;
}
.doc-lines i:nth-child(2) {
  width: 70%;
}
.doc-lines i:nth-child(3) {
  width: 86%;
}
.doc-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: 10px;
}
.doc-total b {
  font-size: 17px;
}
.doc-ready {
  position: absolute;
  right: -21px;
  bottom: -23px;
  transform: rotate(-7deg);
  font-size: 10px;
  background: #1e2921;
  color: white;
  padding: 12px 18px;
  border-radius: 7px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.doc-ready .icon {
  color: var(--yellow);
  width: 16px;
  height: 16px;
}
.hero-side-note {
  position: absolute;
  right: 35px;
  bottom: 46px;
  font-size: 9px;
  letter-spacing: 1.2px;
  writing-mode: vertical-rl;
  color: #55594f;
}
.workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1252px;
  margin: auto;
  padding: 35px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  gap: 25px;
}
.flow-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.flow-num {
  font-family: var(--serif);
  font-size: 26px;
  color: #c9cbc2;
  line-height: 1;
}
.flow-item > .icon {
  width: 28px;
  height: 28px;
  margin-top: 4px;
}
.flow-item h3 {
  font-size: 12px;
}
.flow-item p {
  font-size: 10px;
  color: var(--muted);
  max-width: 170px;
  margin-top: 5px;
}
.site-section {
  padding: 90px 48px;
  max-width: 1350px;
  margin: auto;
}
.section-intro {
  max-width: 610px;
  margin-bottom: 35px;
}
.section-intro h2 {
  font-size: 39px;
  margin: 15px 0;
}
.section-intro p {
  color: #70756c;
  font-size: 14px;
}
.perspectives {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.perspective {
  position: relative;
  padding: 30px 32px 0;
  background: #f0f1ea;
  border: 1px solid #e4e6dc;
  border-radius: 14px;
  overflow: hidden;
}
.perspective.dark {
  background: #242622;
  color: white;
  border-color: #242622;
}
.perspective-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}
.perspective h3 {
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: -0.7px;
}
.perspective p {
  max-width: 330px;
  font-size: 12px;
  color: #7b7e74;
  margin-top: 10px;
}
.perspective.dark p {
  color: #b3b6ac;
}
.mini-app {
  background: #fff;
  border-radius: 9px 9px 0 0;
  padding: 20px;
  color: var(--ink);
  box-shadow: 0 5px 30px #00000012;
}
.mini-app-head {
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  margin-bottom: 17px;
  font-size: 13px;
}
.mini-app-head .badge {
  font-size: 9px;
}
.mini-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 22px;
  font-size: 10px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.mini-row .badge {
  font-size: 8px;
}
.connection-section {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.connection-copy h2 {
  font-size: 39px;
  margin: 16px 0 20px;
}
.connection-copy p {
  color: var(--muted);
  max-width: 450px;
  font-size: 13px;
}
.connection-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.connection-node {
  width: 150px;
  height: 145px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.connection-node small {
  font-size: 10px;
  color: var(--muted);
}
.connection-node img {
  width: 80px;
  height: auto;
}
.integration-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 20px;
  text-align: center;
}
.site-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 32px 48px;
  max-width: 1350px;
  margin: auto;
  color: var(--muted);
  font-size: 10px;
}
.site-bottom .wordmark {
  font-size: 23px;
}
.site-bottom-links {
  display: flex;
  gap: 25px;
}
/* The app: one company for the client, a full queue for the accountant. */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 235px;
  display: flex;
  flex-direction: column;
  background: #fcfcf8;
  border-right: 1px solid #e4e5dd;
  padding: 33px 18px 23px;
  z-index: 10;
}
.sidebar-brand {
  padding: 0 15px 35px;
}
.sidebar .wordmark {
  font-size: 32px;
}
.sidebar-caption {
  font-size: 9px;
  letter-spacing: 0.4px;
  color: #94978d;
  margin-top: 12px;
}
.side-nav {
  display: grid;
  gap: 6px;
}
.side-nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 12px 15px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  min-height: 44px;
}
.side-nav button:hover {
  background: #efefe7;
}
.side-nav button.active {
  background: #ffbd0022;
  box-shadow: none;
}
.side-nav .nav-count {
  margin-left: auto;
  background: #f5c52f;
  border-radius: 50px;
  padding: 1px 6px;
  font-size: 9px;
  color: #34351e;
}
.side-separator {
  margin: 19px 15px 15px;
  border-top: 1px solid #e1e3d8;
}
.sidebar-bottom {
  margin-top: auto;
}
.side-help {
  display: flex;
  gap: 13px;
  padding: 13px 15px;
  font-size: 11px;
  color: #7a8071;
}
.side-help:hover {
  color: var(--ink);
}
.sidebar-quote {
  margin: 27px 15px 20px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -0.4px;
}
.sidebar-quote:before {
  display: block;
  content: '';
  width: 27px;
  height: 3px;
  background: var(--yellow);
  margin-bottom: 18px;
}
.sidebar-foot {
  font-size: 9px;
  color: #969b8e;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-foot img {
  width: 44px;
  opacity: 0.6;
}
.app-shell.accountant .sidebar {
  background: #fcfcf8;
  color: var(--ink);
  border-right: 1px solid #e4e5dd;
}
.accountant .wordmark span {
  color: var(--yellow);
}
.accountant .side-nav button:hover {
  background: #efefe7;
}
.accountant .side-nav button.active {
  background: var(--yellow);
  color: #181c12;
  box-shadow: none;
}
.accountant .side-nav .nav-count {
  background: #eceee4;
  color: #667258;
}
.accountant .side-nav button.active .nav-count {
  background: #1f260f16;
  color: #191e12;
}
.workspace {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 83px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e8e9e0;
  background: #fbfbf7;
}
.company-switch {
  display: flex;
  align-items: center;
  gap: 11px;
}
.company-icon {
  background: #ecede5;
  border-radius: 8px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
}
.company-switch select {
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  max-width: 240px;
  padding: 5px 25px 5px 0;
  cursor: pointer;
}
.company-meta {
  font-size: 9px;
  color: #989d90;
  line-height: 1.4;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.role-toggle {
  border: 1px solid #e2e4d8;
  background: #eeefe7;
  border-radius: 6px;
  display: flex;
  padding: 3px;
}
.role-toggle a {
  padding: 5px 12px;
  font-size: 10px;
  color: #818874;
}
.role-toggle a.selected {
  background: white;
  border-radius: 4px;
  color: #262e1d;
  box-shadow: 0 1px 4px #23281f0a;
}
.notification-btn {
  position: relative;
}
.notification-btn:after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #e7ac00;
  border: 2px solid #fbfbf7;
  box-sizing: content-box;
  border-radius: 50%;
  top: 7px;
  right: 7px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dde1d3;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 11px;
}
.profile small {
  font-size: 8px;
  color: #929986;
  display: block;
}
.profile > button {
  padding: 0;
}
.demo-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 36px;
  border-bottom: 1px solid #e8e5d5;
  background: #f6f1de;
  font-size: 9px;
  color: #91805d;
  gap: 15px;
}
.demo-banner span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.demo-banner .icon {
  width: 12px;
  height: 12px;
}
.demo-banner button {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 9px;
  color: #8b7954;
  text-decoration: underline;
}
.content {
  padding: 32px 36px 24px;
  max-width: 1640px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 25px;
  position: relative;
  min-height: 101px;
}
.page-heading h1 {
  font-size: 37px;
  margin: 12px 0 11px;
  position: relative;
  z-index: 1;
}
.page-heading p {
  font-size: 12px;
  color: #808778;
  position: relative;
  z-index: 1;
}
.page-heading .eyebrow {
  font-size: 8px;
  letter-spacing: 1.8px;
}
.heading-art {
  position: absolute;
  right: 110px;
  top: -32px;
  width: 310px;
  height: 160px;
  background: url('/aida-art.png') center/cover;
  mask-image: linear-gradient(90deg, transparent, black 25%, black 75%, transparent);
  opacity: 0.5;
  pointer-events: none;
}
.page-heading > .btn {
  position: relative;
  z-index: 1;
  font-size: 11px;
}
.month-label {
  font-size: 10px;
  color: #8d9484;
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 10px;
}
.month-label .icon {
  width: 13px;
  height: 13px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 23px;
}
.stats.four {
  grid-template-columns: repeat(4, 1fr);
}
.stat-card {
  background: #fff;
  border: 1px solid #e8eae1;
  border-radius: 9px;
  padding: 19px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: border-color 0.2s;
  text-align: left;
}
.stat-card:hover {
  border-color: #cfcebb;
}
.stat-icon {
  width: 44px;
  height: 44px;
  background: #f6f2e4;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #756a47;
}
.stat-card.ready .stat-icon {
  background: #eef5ed;
  color: #4d7453;
}
.stat-card.waiting .stat-icon {
  background: #fff5da;
  color: #a98e28;
}
.stat-label {
  font-size: 10px;
  color: #797f70;
}
.stat-number {
  font-size: 30px;
  line-height: 1.5;
  letter-spacing: -1px;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 13px;
}
.stat-number small {
  font-size: 8px;
  color: #8f9785;
  letter-spacing: 0;
  font-weight: 500;
}
.stat-card .stat-desc {
  font-size: 8px;
  color: #a2a796;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 21px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid #e7e9df;
  border-radius: 10px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 21px 23px 15px;
}
.panel-head h2 {
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: -0.3px;
}
.panel-head .btn-quiet {
  font-size: 9px;
  color: #868d7b;
}
.panel-head .btn-quiet .icon {
  width: 13px;
  height: 13px;
}
.table-controls {
  padding: 0 23px 17px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.table-tabs {
  display: flex;
  gap: 17px;
  overflow: auto;
  white-space: nowrap;
}
.table-tabs button {
  background: none;
  border: 0;
  padding: 9px 0;
  font-size: 9px;
  color: #8d9485;
  position: relative;
}
.table-tabs button.active {
  color: #343d25;
  font-weight: 700;
}
.table-tabs button.active:after {
  content: '';
  height: 2px;
  background: var(--yellow);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.table-tabs button span {
  font-size: 8px;
  margin-left: 4px;
  color: #9eab8c;
}
.table-search {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #e6e8df;
  border-radius: 5px;
  padding: 7px 10px;
  min-width: 175px;
  max-width: 200px;
}
.table-search .icon {
  width: 13px;
  height: 13px;
  color: #939c86;
}
.table-search input {
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 9px;
  background: transparent;
}
.table-wrap {
  overflow: auto;
  padding: 0 23px;
}
.document-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
.document-table th {
  font-size: 8px;
  font-weight: 500;
  color: #939b87;
  background: #f6f7f2;
  padding: 11px 9px;
  border-top: 1px solid #edefe6;
  border-bottom: 1px solid #edefe6;
}
.document-table td {
  padding: 14px 9px;
  border-bottom: 1px solid #eef0e8;
  font-size: 10px;
  color: #687459;
}
.document-table tbody tr {
  cursor: pointer;
  transition: background 0.15s;
}
.document-table tbody tr:hover {
  background: #fcfcf6;
}
.document-table tr:last-child td {
  border-bottom: 0;
}
.doc-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #313d26;
  font-weight: 600;
}
.doc-cell small {
  display: block;
  font-size: 8px;
  font-weight: 400;
  color: #a0a992;
  margin-top: 3px;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-thumb {
  width: 27px;
  height: 34px;
  border: 1px solid #e0e6d7;
  border-radius: 3px;
  position: relative;
  background: #fafcf6;
  display: grid;
  place-items: center;
}
.doc-thumb .icon {
  width: 14px;
  height: 14px;
  color: #8e9c7e;
}
.amount {
  font-variant-numeric: tabular-nums;
  color: #3c482f !important;
  font-weight: 600;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.2;
  border-radius: 4px;
  padding: 5px 7px;
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
}
.badge:before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge-ready,
.badge-handed_over {
  background: #eaf5ed;
  color: #4b8759;
}
.badge-review {
  background: #fff4db;
  color: #ab8f41;
}
.badge-needs_input {
  background: #fff0de;
  color: #c68833;
}
.badge-received {
  background: #eaf1f7;
  color: #7694ae;
}
.row-arrow .icon {
  width: 13px;
  height: 13px;
  color: #adb5a2;
}
.table-footer {
  padding: 17px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9da58f;
  font-size: 8px;
  border-top: 1px solid #eef0e8;
}
.table-footer .btn-quiet {
  font-size: 9px;
}
.pagination {
  display: flex;
  gap: 5px;
  align-items: center;
}
.pagination button {
  border: 0;
  background: #f5f6ef;
  border-radius: 4px;
  font-size: 8px;
  padding: 5px 9px;
}
.pagination button.active {
  background: var(--yellow);
  color: #2d321f;
}
.upload-strip {
  border: 1px dashed #dbe1cf;
  border-radius: 6px;
  margin: 0 23px 22px;
  padding: 17px 19px;
  display: flex;
  align-items: center;
  gap: 17px;
  background: #fdfefb;
}
.upload-strip > .icon {
  width: 30px;
  height: 30px;
  color: #7e8e6a;
}
.upload-strip h3 {
  font-size: 11px;
  color: #5c6b4b;
}
.upload-strip p {
  font-size: 9px;
  color: #97a386;
  margin-top: 3px;
}
.upload-strip .btn {
  font-size: 9px;
  margin-left: auto;
  min-height: 33px;
  padding: 7px 12px;
  background: white;
  color: #63784d;
  border-color: #dfe5d7;
}
.side-panels {
  display: grid;
  gap: 19px;
}
.request-panel {
  background: #fff9e7;
  border-color: #eee6cb;
}
.request-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  border-bottom: 1px solid #eee6ca;
}
.request-top span {
  font-size: 9px;
  font-weight: 700;
  display: flex;
  gap: 8px;
  align-items: center;
}
.request-top .icon {
  width: 16px;
  height: 16px;
  color: #a28a32;
}
.request-top small {
  font-size: 8px;
  color: #a19269;
}
.request-body {
  padding: 19px 20px 17px;
}
.request-body h3 {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.6px;
  line-height: 1.35;
}
.request-body > p {
  font-size: 9px;
  color: #a19776;
  margin: 8px 0 19px;
  line-height: 1.8;
}
.request-doc {
  display: flex;
  gap: 10px;
  padding: 12px 10px;
  background: #ffffff95;
  border: 1px solid #efe9d7;
  border-radius: 5px;
  margin-bottom: 17px;
  font-size: 10px;
}
.request-doc small {
  display: block;
  font-size: 8px;
  color: #a6a08b;
  margin-top: 3px;
}
.answer-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.answer-buttons button {
  background: white;
  border: 1px solid #e3d8b7;
  border-radius: 5px;
  font-size: 10px;
  padding: 9px 5px;
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
}
.answer-buttons button:first-child {
  background: var(--yellow);
  border-color: var(--yellow);
}
.answer-buttons .icon {
  width: 14px;
  height: 14px;
}
.request-body .btn-quiet {
  font-size: 8px;
  color: #a59a73;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 13px;
}
.request-clear {
  padding: 26px 21px;
  text-align: center;
  background: #f7fbf3;
}
.request-clear > .icon {
  color: #6a9252;
  width: 35px;
  height: 35px;
}
.request-clear h3 {
  font-size: 12px;
  margin-top: 10px;
}
.request-clear p {
  font-size: 9px;
  color: #93a183;
  margin-top: 6px;
}
.activity-head {
  font-size: 12px !important;
}
.activity-list {
  list-style: none;
  padding: 2px 21px 20px;
  margin: 0;
}
.activity-list li {
  position: relative;
  padding: 0 0 19px 20px;
  font-size: 9px;
  color: #7c896e;
}
.activity-list li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 5px;
  background: var(--yellow);
  border-radius: 50%;
  z-index: 1;
}
.activity-list li:not(:last-child):after {
  content: '';
  position: absolute;
  left: 2px;
  top: 15px;
  height: calc(100% - 14px);
  width: 1px;
  background: #e4e8dc;
}
.activity-list li:last-child {
  padding-bottom: 0;
}
.activity-list small {
  display: block;
  font-size: 8px;
  color: #b0b9a2;
  margin-bottom: 3px;
}
.aida-tip {
  border-radius: 8px;
  background: #eaeee0;
  padding: 17px 19px;
  color: #7b8866;
  display: flex;
  gap: 13px;
  font-size: 9px;
}
.aida-tip > .icon {
  color: #a19752;
  width: 22px;
  height: 22px;
}
.aida-tip b {
  display: block;
  font-size: 10px;
  color: #66754f;
  margin-bottom: 4px;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 8px;
  color: #a5af96;
  margin-top: 26px;
  padding: 0 2px;
}
.workspace-footer span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.workspace-footer img {
  width: 34px;
  opacity: 0.45;
}
.mobile-menu {
  display: none;
}
.full-width {
  grid-column: 1/-1;
}
.empty-state {
  padding: 65px 25px;
  text-align: center;
  color: #97a488;
}
.empty-state .icon {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
}
.empty-state h3 {
  color: #586b45;
  font-size: 15px;
}
.empty-state p {
  margin-top: 8px;
  font-size: 11px;
}
.empty-state .btn {
  margin-top: 25px;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.client-card {
  padding: 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.client-card h3 {
  font-family: var(--serif);
  font-size: 23px;
  margin: 15px 0 4px;
  letter-spacing: -0.7px;
}
.client-card p {
  color: var(--muted);
  font-size: 10px;
}
.client-card-stats {
  display: flex;
  gap: 30px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 15px;
  font-size: 9px;
  color: var(--muted);
}
.client-card-stats b {
  font-size: 23px;
  display: block;
  color: var(--ink);
}
.settings-panel {
  max-width: 850px;
  padding: 30px;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.settings-row:last-child {
  border-bottom: 0;
}
.settings-row h3 {
  font-size: 13px;
}
.settings-row p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.settings-row .badge {
  font-size: 10px;
}
/* Dialogs and document review. */
dialog {
  border: 1px solid #e7e8de;
  border-radius: 13px;
  padding: 0;
  max-width: calc(100vw - 30px);
  width: 540px;
  max-height: 90dvh;
  color: var(--ink);
  box-shadow: 0 30px 100px #22251d38;
  background: white;
}
dialog::backdrop {
  background: #20251ec0;
  backdrop-filter: blur(3px);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.modal-header h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
}
.modal-header .icon-btn {
  padding: 3px;
}
.modal-content {
  padding: 25px 28px 28px;
}
.modal-content > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.field {
  display: grid;
  gap: 6px;
  font-size: 11px;
  margin-bottom: 17px;
  color: #78846a;
}
.field input,
.field select,
.field textarea {
  border: 1px solid #e1e5d9;
  border-radius: 5px;
  padding: 10px 12px;
  width: 100%;
  background: #fdfefb;
  color: #3d4d2e;
  min-height: 40px;
}
.field textarea {
  min-height: 80px;
  resize: vertical;
}
.field small {
  font-size: 9px;
  color: #9da890;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.modal-actions .btn {
  font-size: 11px;
}
.dropzone {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 45px 20px;
  background: #fbfcf7;
  border: 1px dashed #c6d0b7;
  border-radius: 8px;
  cursor: pointer;
}
.dropzone:hover,
.dropzone.dragover {
  background: #f9f6e6;
  border-color: #c3a439;
}
.dropzone .icon {
  width: 40px;
  height: 40px;
  color: #b3aa6a;
  margin-bottom: 16px;
}
.dropzone b {
  font-size: 13px;
}
.dropzone p {
  font-size: 10px;
  color: #97a184;
  margin-top: 8px;
}
.dropzone span {
  color: #a99337;
  text-decoration: underline;
}
.upload-files {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 8px;
}
.upload-files li {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #f5f7ef;
  border-radius: 5px;
  padding: 12px;
  font-size: 10px;
  color: #859275;
}
.upload-files li span {
  margin-left: auto;
  font-size: 9px;
}
.form-error {
  background: #fff0e9;
  color: #a96542;
  font-size: 11px;
  padding: 12px;
  border-radius: 6px;
  margin: 15px 0;
}
.login-mark {
  margin: 8px 0 25px;
}
.modal-login h3 {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.9px;
  margin-bottom: 12px;
}
.modal-login .btn {
  width: 100%;
}
.login-demo {
  display: flex;
  gap: 15px;
  margin-top: 18px;
  font-size: 10px;
  color: #9aa48b;
}
.login-demo a {
  text-decoration: underline;
}
.document-modal {
  width: 930px;
}
.review-layout {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  min-height: 470px;
}
.document-preview {
  background: #f1f3ea;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-right: 1px solid var(--line);
}
.preview-paper {
  width: 100%;
  background: white;
  box-shadow: 0 4px 18px #3643290c;
  padding: 25px;
  font-size: 9px;
  color: #818e70;
  border: 1px solid #e8ecde;
  min-height: 300px;
}
.preview-paper h3 {
  font-size: 20px;
  color: #303f23;
  margin: 18px 0 6px;
}
.preview-paper .preview-type {
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #acb49f;
}
.preview-paper .preview-divider {
  height: 1px;
  background: #edf0e7;
  margin: 22px 0;
}
.preview-paper dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 0;
}
.preview-paper dt {
  font-size: 8px;
}
.preview-paper dd {
  margin: 0;
  color: #576947;
}
.preview-paper .preview-total {
  font-size: 23px;
  color: #3e512b;
  margin: 24px 0 6px;
}
.preview-paper .preview-note {
  font-size: 8px;
  color: #aab498;
}
.preview-disclaimer {
  font-size: 9px;
  text-align: center;
  color: #a0ac91;
  max-width: 250px;
}
.document-preview .btn {
  font-size: 10px;
  width: 100%;
}
.review-form {
  padding: 25px 28px;
  min-width: 0;
}
.review-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.review-status .badge {
  font-size: 9px;
}
.review-status small {
  font-size: 8px;
  color: #a3af95;
}
.review-form .field {
  margin-bottom: 13px;
}
.review-form .field label {
  color: #657951;
}
.extraction-note {
  padding: 11px 13px;
  background: #f9f6e6;
  color: #9c8e55;
  font-size: 9px;
  border-radius: 5px;
  margin-bottom: 18px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.extraction-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
}
.source-quote {
  font-size: 9px;
  color: #9eac8d;
  margin-top: -8px;
  margin-bottom: 15px;
  padding-left: 9px;
  background: #f6f6f6;
}
.source-quote q {
  display: block;
  color: #7d9169;
}
.review-form .modal-actions {
  flex-wrap: wrap;
}
.review-form .btn {
  font-size: 10px;
  padding: 8px 12px;
  min-height: 37px;
}
.request-compose {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
}
.request-compose h3 {
  font-size: 12px;
  margin-bottom: 13px;
}
.detail-readonly dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 11px;
}
.detail-readonly dt {
  color: #929f82;
}
.detail-readonly dd {
  margin: 0;
  color: #4d633c;
  text-align: right;
}
.detail-readonly h3 {
  margin: 20px 0 12px;
  font-size: 12px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #2a3521;
  color: #f5f8f1;
  border: 1px solid #465639;
  border-radius: 9px;
  padding: 14px 22px;
  font-size: 12px;
  z-index: 100;
  box-shadow: 0 10px 30px #0002;
  max-width: calc(100vw - 30px);
}
.processing {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 9px;
  color: #a09255;
}
.processing .icon {
  width: 13px;
  height: 13px;
  animation: spin 2s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.load-state {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 25px;
}
.load-state p {
  color: var(--muted);
  font-size: 12px;
}
.site-hero .hero-copy,
.page-heading {
  animation: enter 0.55s ease both;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1550px) {
  .content {
    padding: 40px 50px;
  }
  .topbar {
    padding: 0 50px;
  }
  .demo-banner {
    padding: 8px 50px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .page-heading h1 {
    font-size: 43px;
  }
  .document-table td {
    padding: 16px 11px;
  }
  .stat-card {
    padding: 24px;
  }
  .stat-label {
    font-size: 12px;
  }
  .document-table td {
    font-size: 12px;
  }
  .badge {
    font-size: 9px;
  }
  .page-heading p {
    font-size: 14px;
  }
  .sidebar {
    width: 250px;
  }
  .app-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }
}
@media (max-width: 1200px) {
  .site-links {
    gap: 18px;
  }
  .site-nav {
    padding: 0 32px;
  }
  .site-hero {
    padding: 70px 55px;
    min-height: 580px;
  }
  .hero-copy h1 {
    font-size: 50px;
  }
  .hero-copy > p {
    font-size: 14px;
  }
  .workflow-strip {
    padding: 30px;
    gap: 18px;
  }
  .flow-item {
    gap: 10px;
  }
  .flow-num {
    display: none;
  }
  .hero-doc {
    right: 7%;
    width: 190px;
  }
  .content {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 255px;
    gap: 15px;
  }
  .app-shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    width: 205px;
    padding: 30px 12px 23px;
  }
  .sidebar-brand {
    padding: 0 15px 30px;
  }
  .sidebar .wordmark {
    font-size: 29px;
  }
  .page-heading h1 {
    font-size: 32px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .heading-art {
    right: 80px;
    width: 260px;
  }
  .stats {
    gap: 11px;
  }
  .stat-card {
    padding: 16px 13px;
    gap: 12px;
  }
  .stat-icon {
    width: 38px;
    height: 38px;
  }
  .stat-number {
    font-size: 27px;
  }
  .stat-number small {
    display: none;
  }
  .table-controls {
    align-items: flex-start;
    flex-direction: column;
  }
  .table-search {
    max-width: none;
    width: 100%;
  }
  .document-table th,
  .document-table td {
    padding-left: 6px;
    padding-right: 6px;
  }
  .client-column {
    display: none;
  }
  .doc-cell small {
    max-width: 120px;
  }
  .request-body h3 {
    font-size: 20px;
  }
  .upload-strip {
    padding: 15px;
  }
  .upload-strip > .icon {
    width: 24px;
    height: 24px;
  }
  .upload-strip p {
    max-width: 180px;
  }
  .profile-name {
    display: none;
  }
  .connection-section {
    gap: 35px;
  }
  .connection-node {
    width: 130px;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 190px;
  }
  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar-quote {
    font-size: 19px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .side-panels {
    grid-template-columns: 1fr 1fr;
  }
  .aida-tip {
    display: none;
  }
  .stats.four {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-copy {
    width: 60%;
  }
  .hero-copy h1 {
    font-size: 46px;
  }
  .site-links {
    display: none;
  }
  .hero-doc {
    width: 170px;
    right: 6%;
    top: 34%;
    padding: 20px;
  }
  .workflow-strip {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .hero-checks {
    flex-wrap: wrap;
    gap: 12px;
  }
  .perspective {
    padding: 22px 22px 0;
  }
  .perspective-header {
    display: block;
  }
  .perspective-header .btn-quiet {
    margin-top: 10px;
  }
  .connection-section {
    grid-template-columns: 1fr;
  }
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .table-controls {
    flex-direction: row;
    align-items: center;
  }
  .table-search {
    max-width: 180px;
  }
  .request-panel {
    min-height: 290px;
  }
  .profile {
    gap: 4px;
  }
  .topbar-actions {
    gap: 10px;
  }
}
@media (max-width: 700px) {
  .site-nav {
    height: 76px;
    padding: 0 22px;
    gap: 10px;
  }
  .site-nav .wordmark {
    font-size: 27px;
  }
  .brand-sub {
    font-size: 7px;
    letter-spacing: 0.2px;
  }
  .nav-actions {
    gap: 10px;
  }
  .nav-actions > .btn-quiet {
    display: none;
  }
  .nav-actions .btn {
    font-size: 10px;
    padding: 8px 11px;
  }
  .site-hero {
    padding: 45px 25px 380px;
    min-height: 930px;
  }
  .hero-copy {
    width: 100%;
    max-width: 500px;
  }
  .hero-copy h1 {
    font-size: 45px;
    line-height: 1.1;
    letter-spacing: -2px;
  }
  .hero-copy > p {
    font-size: 13px;
    max-width: 330px;
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-actions .btn {
    font-size: 11px;
    padding: 11px 15px;
  }
  .hero-checks {
    font-size: 9px;
    gap: 14px;
  }
  .hero-art {
    top: auto;
    bottom: 0;
    height: 340px;
    width: 135%;
    right: -25%;
    mask-image: linear-gradient(180deg, transparent, black 20%);
  }
  .hero-doc {
    top: auto;
    bottom: 85px;
    right: 20%;
    width: 175px;
  }
  .hero-side-note {
    display: none;
  }
  .workflow-strip {
    padding: 27px 25px;
    gap: 25px;
  }
  .flow-item > .icon {
    width: 22px;
    height: 22px;
  }
  .flow-item p {
    font-size: 9px;
  }
  .site-section {
    padding: 55px 25px;
  }
  .section-intro h2,
  .connection-copy h2 {
    font-size: 32px;
  }
  .perspectives {
    grid-template-columns: 1fr;
  }
  .perspective-header {
    display: flex;
  }
  .mini-row {
    gap: 10px;
  }
  .site-bottom {
    padding: 25px;
    gap: 20px;
    flex-wrap: wrap;
  }
  .site-bottom > p {
    display: none;
  }
  .connection-node {
    height: 120px;
    width: 130px;
  }
  .connection-line {
    gap: 9px;
  }
  .connection-node .wordmark {
    font-size: 24px;
  }
  .connection-line > .icon {
    width: 18px;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 235px;
    transition: transform 0.2s;
    box-shadow: 10px 0 35px #0002;
  }
  .app-shell.menu-open .sidebar {
    transform: translateX(0);
  }
  .workspace {
    display: block;
  }
  .topbar {
    height: 70px;
    padding: 0 17px;
    gap: 10px;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .company-switch {
    gap: 7px;
    flex: 1;
    min-width: 0;
  }
  .company-icon {
    display: none;
  }
  .company-switch select {
    font-size: 10px;
    max-width: 160px;
  }
  .topbar-actions {
    gap: 8px;
  }
  .role-toggle a {
    padding: 5px 7px;
    font-size: 8px;
  }
  .profile {
    display: none;
  }
  .notification-btn {
    display: none;
  }
  .demo-banner {
    padding: 7px 20px;
    font-size: 8px;
  }
  .demo-banner span {
    max-width: 270px;
  }
  .demo-banner button {
    font-size: 8px;
    white-space: nowrap;
  }
  .content {
    padding: 24px 18px;
  }
  .page-heading {
    display: block;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 30px;
    margin-top: 12px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 330px;
    line-height: 1.8;
  }
  .page-heading > .btn {
    margin-top: 20px;
    width: 100%;
    font-size: 12px;
  }
  .heading-art {
    display: none;
  }
  .stats {
    gap: 8px;
  }
  .stat-card {
    display: block;
    padding: 13px 10px;
    border-radius: 8px;
  }
  .stat-icon {
    display: none;
  }
  .stat-label {
    font-size: 8px;
    min-height: 24px;
  }
  .stat-number {
    font-size: 27px;
    line-height: 1.45;
  }
  .stat-desc {
    font-size: 7px !important;
  }
  .dashboard-grid {
    gap: 18px;
  }
  .side-panels {
    grid-template-columns: 1fr;
  }
  .request-panel {
    min-height: 0;
  }
  .panel-head {
    padding: 19px 17px 14px;
  }
  .panel-head h2 {
    font-size: 13px;
  }
  .table-controls {
    padding: 0 17px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .table-search {
    width: 100%;
    max-width: none;
    min-height: 34px;
  }
  .table-tabs {
    gap: 20px;
  }
  .table-tabs button {
    font-size: 9px;
  }
  .table-wrap {
    padding: 0 13px;
  }
  .document-table th {
    font-size: 8px;
  }
  .document-table td {
    font-size: 9px;
    padding: 13px 5px;
  }
  .doc-cell {
    gap: 7px;
    white-space: normal;
    min-width: 115px;
  }
  .doc-cell small {
    font-size: 7px;
  }
  .doc-thumb {
    width: 21px;
    height: 28px;
    flex-shrink: 0;
  }
  .date-column,
  .row-arrow {
    display: none;
  }
  .badge {
    font-size: 7px;
    padding: 5px;
  }
  .table-footer {
    padding: 14px 16px;
    font-size: 8px;
  }
  .upload-strip {
    margin: 0 15px 18px;
    padding: 15px 13px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .upload-strip .btn {
    width: 100%;
    margin: 5px 0 0;
  }
  .upload-strip p {
    max-width: none;
  }
  .workspace-footer {
    font-size: 7px;
    flex-wrap: wrap;
  }
  .workspace-footer > span {
    display: none;
  }
  .activity-list li {
    font-size: 10px;
  }
  .activity-list small {
    font-size: 9px;
  }
  .aida-tip {
    display: flex;
  }
  .clients-grid {
    grid-template-columns: 1fr;
  }
  .settings-panel {
    padding: 20px;
  }
  .settings-row {
    align-items: flex-start;
  }
  .settings-row p {
    font-size: 10px;
  }
  .settings-row .badge {
    font-size: 8px;
  }
  .modal-header {
    padding: 21px;
  }
  .modal-header h2 {
    font-size: 23px;
  }
  .modal-content {
    padding: 22px;
  }
  .review-layout {
    grid-template-columns: 1fr;
  }
  .document-preview {
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .preview-paper {
    min-height: 0;
    max-width: 300px;
  }
  .preview-paper .preview-divider {
    margin: 14px 0;
  }
  .review-form {
    padding: 24px 22px;
  }
  .document-modal {
    width: 540px;
  }
  .form-grid {
    gap: 0 12px;
  }
  .modal-actions {
    flex-wrap: wrap;
  }
  .modal-actions .btn {
    flex: 1;
  }
  .review-form .modal-actions {
    flex-direction: column;
  }
  .request-body h3 {
    font-size: 25px;
  }
  .answer-buttons button {
    padding: 13px;
  }
  .request-doc {
    font-size: 11px;
  }
  .request-top span {
    font-size: 11px;
  }
  .request-body > p {
    font-size: 11px;
  }
  .sidebar-quote {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
.sidebar-foot img,
.workspace-footer img {
  height: auto;
}
.stat-label {
  font-size: 11px;
}
.stat-card .stat-desc {
  font-size: 10px;
}
.document-table td {
  font-size: 11px;
  padding-top: 10px;
  padding-bottom: 10px;
  color: #6b7163;
}
.doc-cell {
  padding: 3px 0;
  font-size: 12px;
  color: #2e3429;
}
.doc-cell small {
  font-size: 9px;
}
.document-table th {
  font-size: 10px;
}
.badge {
  font-size: 9px;
}
.table-tabs button {
  font-size: 10px;
}
.table-search input {
  font-size: 10px;
}
.request-doc {
  width: 100%;
  text-align: left;
}
.request-top span {
  font-size: 10px;
}
.request-body > p {
  font-size: 10px;
}
.request-body .btn-quiet {
  font-size: 9px;
}
.request-doc small {
  font-size: 9px;
}
.activity-list li {
  font-size: 10px;
}
.activity-list small {
  font-size: 9px;
}
.table-footer span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.table-footer .icon {
  width: 12px;
  height: 12px;
}
.sidebar-foot img {
  width: 44px;
}
.workspace-footer img {
  width: 34px;
}
.settings-row .badge {
  font-size: 10px;
}
.field {
  font-size: 12px;
}
.review-status small {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .document-table td {
    font-size: 10px;
  }
  .doc-cell {
    font-size: 10px;
  }
  .document-table th {
    font-size: 9px;
  }
  .doc-cell small {
    font-size: 8px;
  }
  .badge {
    font-size: 8px;
  }
  .stat-label {
    font-size: 9px;
  }
  .stat-card .stat-desc {
    font-size: 8px;
  }
  .table-tabs button {
    font-size: 10px;
  }
}
.extra-fields {
  margin: 12px 0 20px;
  border: 1px solid #e7ebdf;
  border-radius: 6px;
}
.extra-fields > summary {
  padding: 11px 14px;
  font-size: 11px;
  cursor: pointer;
  color: #657655;
}
.extra-fields[open] {
  padding: 0 14px 5px;
}
.extra-fields[open] > summary {
  margin: 0 -14px 16px;
  border-bottom: 1px solid #e7ebdf;
}
.extra-fields .source-quote {
  grid-column: 1/-1;
}
.camera-button {
  display: none;
  margin-top: 14px;
  width: 100%;
}
@media (max-width: 700px) {
  .camera-button {
    display: flex;
  }
}
.original-viewer {
  width: 100%;
  min-height: 480px;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #fff;
  border: 1px solid #e8ecde;
  border-radius: 3px;
  overflow: hidden;
}
.original-viewer iframe {
  width: 100%;
  height: 100%;
  min-height: 540px;
  border: 0;
  background: #fff;
}
.original-viewer img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.document-preview:has(.original-viewer) {
  padding: 18px 15px;
}
.original-viewer iframe:focus-visible {
  outline: 2px solid var(--yellow);
}
@media (max-width: 700px) {
  .original-viewer {
    min-height: 300px;
    max-height: 430px;
  }
  .original-viewer iframe {
    min-height: 400px;
    height: 400px;
  }
  .original-viewer img {
    max-height: 430px;
    object-fit: contain;
  }
}
.pdf-preview {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
}
.pdf-preview canvas {
  display: block;
  width: 100%;
  height: auto;
}
.pdf-controls {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8faf3;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: #859374;
}
.pdf-controls button {
  background: white;
  border: 1px solid #e5eadd;
  border-radius: 4px;
  padding: 3px 10px;
  color: #5f7649;
}
.original-viewer {
  max-height: 680px;
  overflow: auto;
}
.original-viewer:has(.pdf-preview) {
  min-height: 0;
  align-self: stretch;
  flex: none;
}
.document-preview:has(.structured-paper) {
  min-width: 0;
}
.structured-paper {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
}
#structured-preview {
  margin-top: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 60dvh;
  overflow: auto;
  font-size: 11px;
  line-height: 1.6;
}
.handover-panel {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #e3e6eb;
  border-radius: 8px;
  background: #fff;
}
.handover-panel h3 {
  font:
    650 15px/1.4 'Inter',
    sans-serif;
}
.handover-panel p {
  margin: 10px 0 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.handover-history {
  list-style: none;
  padding: 0;
}
.handover-history li {
  padding: 14px 0;
  border-bottom: 1px solid #edf0f3;
}
.handover-history li > div {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.handover-history b,
.handover-history small {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.handover-history b {
  font-size: 12px;
}
.handover-history small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.handover-history .btn {
  margin-top: 10px;
}
.handover-panel > .btn,
.handover-panel > .btn-quiet {
  margin-top: 10px;
}
.handover-panel > .btn {
  max-width: 100%;
  white-space: normal;
}
.hero-copy > .development-note {
  font-size: 10px;
  line-height: 1.7;
  margin-top: 18px;
  max-width: 390px;
  color: #828579;
}
