:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #25322f;
  background: #fafbfb;
  font-synthesis: none;
  --ink: #25322f;
  --muted: #65736d;
  --accent: #236b57;
  --line: #dce4df;
  --pale: #edf4ef;
  --amber: #875116;
  --red: #a13b39;
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
summary,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
select:focus-visible {
  outline: 3px solid #6ba792;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 620;
}
h2 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 620;
}
h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}
p {
  line-height: 1.65;
}
svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
button {
  border: 0;
  background: transparent;
  color: inherit;
}
[hidden] {
  display: none !important;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}
.muted {
  color: var(--muted);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  background: #fff;
  padding: 12px;
  z-index: 20;
}
.skip-link:focus {
  top: 10px;
}
.review-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100% - 1160px) / 2));
  border-bottom: 1px solid var(--line);
  background: #fff;
  gap: 16px;
}
.review-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-size: 17px;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #a8beb0;
  border-radius: 5px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}
.review-header nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
}
.review-header nav a {
  text-decoration: none;
  color: var(--muted);
}
.review-header nav a:hover {
  color: var(--accent);
}
.review-main {
  max-width: 1160px;
  margin: auto;
  padding: 0 24px;
  min-height: calc(100vh - 190px);
}
.message:empty {
  display: none;
}
.message {
  margin: 18px 0;
  padding: 12px 16px;
  background: var(--pale);
  border-left: 3px solid var(--accent);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.message.error {
  background: #fbefed;
  border-color: var(--red);
  color: var(--red);
}
#intake {
  max-width: 660px;
  margin: 56px auto 48px;
}
.intake-heading {
  margin-bottom: 28px;
}
.intake-heading > p:last-child {
  margin-top: 16px;
  color: var(--muted);
  max-width: 530px;
  font-size: 16px;
}
.upload-tool {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.drop-zone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 170px;
  gap: 10px;
  border: 1px dashed #b9cdc0;
  border-radius: 5px;
  margin-bottom: 20px;
  padding: 22px;
  text-align: center;
  background: #fafdfb;
}
.drop-zone.dragging {
  background: #e1f0e8;
  border-color: var(--accent);
}
.drop-zone > svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 2px;
}
.drop-zone label {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}
.drop-zone p {
  font-size: 12px;
  color: var(--muted);
}
.drop-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.drop-zone:focus-within {
  outline: 3px solid #6ba792;
  outline-offset: 3px;
}
#file-status {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.upload-tool details {
  margin: 0 0 20px;
  font-size: 13px;
}
.upload-tool details[open] summary {
  margin-bottom: 14px;
}
summary {
  cursor: pointer;
}
textarea,
input[type="number"],
select {
  border: 1px solid #b7c6bd;
  border-radius: 4px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
label {
  display: block;
  font-size: 13px;
  margin-bottom: 7px;
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.button {
  min-height: 42px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.primary {
  background: var(--accent);
  color: #fff;
}
.primary:hover {
  background: #195542;
}
.secondary {
  background: #fff;
  border-color: var(--line);
}
.secondary:hover {
  background: var(--pale);
}
.upload-tool > .button {
  width: 100%;
  margin-top: 2px;
}
.privacy-note {
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--muted);
}
.privacy-note svg {
  width: 13px;
  height: 13px;
}
.ai-option {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.ai-option label {
  display: flex;
  align-items: center;
  gap: 9px;
}
.ai-option p {
  font-size: 12px;
  color: var(--muted);
}
.sample-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 0;
  font-size: 13px;
  color: var(--muted);
}
.text-button {
  padding: 4px 0;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 550;
  font-size: 13px;
  text-align: left;
}
.text-button:hover {
  text-decoration: underline;
}
.intake-footnote {
  font-size: 12px;
  text-align: center;
  color: var(--muted);
  max-width: 550px;
  margin: auto;
}
.workspace-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 40px 0 14px;
}
.workspace-heading h1 {
  font-size: 28px;
}
.workspace-heading .eyebrow {
  margin-bottom: 8px;
}
.workspace-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 20px;
}
.document-description {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.mode-description {
  font-size: 12px;
  color: var(--muted);
  max-width: 800px;
  margin-bottom: 26px;
}
#review-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
  margin-bottom: 30px;
}
#review-tabs button {
  white-space: nowrap;
  font-size: 13px;
  padding: 0 0 14px;
  border-bottom: 2px solid transparent;
  font-weight: 550;
}
#review-tabs button[aria-selected="true"] {
  border-color: var(--accent);
  color: var(--accent);
}
[role="tabpanel"] {
  animation: reveal 0.2s ease-out;
}
.metrics {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 30px;
  padding: 2px 0 26px;
  border-bottom: 1px solid var(--line);
}
.metric span {
  font-size: 12px;
  color: var(--muted);
}
.metric strong {
  display: block;
  font-size: 25px;
  font-weight: 600;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.metric p {
  font-size: 12px;
  color: var(--muted);
  max-width: 380px;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 64px;
  padding: 32px 0;
}
.overview-grid h2 {
  font-size: 19px;
  margin-bottom: 18px;
}
.reading-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.reading-list li {
  padding: 0 0 17px;
  font-size: 14px;
  line-height: 1.7;
}
.alert-row {
  border-left: 3px solid #b78447;
  background: #faf5ed;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.alert-row h3 {
  font-size: 14px;
}
.alert-row p {
  font-size: 13px;
  color: #6c573e;
  margin-top: 6px;
}
.start-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.start-list li {
  border-bottom: 1px solid var(--line);
}
.start-list button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  padding: 14px 0;
  font-size: 14px;
}
.start-list span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.section-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}
.section-intro p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}
.clause-list {
  border-top: 1px solid var(--line);
}
.clause {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.clause > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
}
.clause > summary::-webkit-details-marker {
  display: none;
}
.clause > summary h3 {
  flex: 1;
}
.chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.clause[open] .chevron {
  transform: rotate(180deg);
}
.status {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.status:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #83958a;
}
.status.clarify:before,
.status.review:before {
  background: #b78447;
}
.status.not_found {
  color: #79716a;
}
.clause-body {
  padding: 0 32px 26px 0;
  max-width: 850px;
}
.clause-body > p {
  font-size: 14px;
  color: #4e5d55;
  margin-bottom: 15px;
}
.clause-body h4 {
  font-size: 12px;
  font-weight: 600;
  margin: 18px 0 7px;
}
.source-action {
  margin: 4px 0 8px;
}
.inline-source {
  border-left: 2px solid var(--line);
  padding: 4px 0 4px 16px;
  margin-bottom: 16px;
  font-size: 15px;
}
.amount-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.amount-list li {
  font-size: 14px;
}
.amount-list small {
  font-size: 11px;
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.topic-note {
  margin-top: 18px;
  font-size: 12px;
}
.topic-note summary {
  color: var(--muted);
}
.topic-note label {
  margin-top: 12px;
}
.topic-note textarea {
  font-size: 13px;
}
.interpretation {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.interpretation p {
  font-size: 14px;
  line-height: 1.65;
}
.review-limit {
  font-size: 11px;
  color: var(--muted);
  padding: 26px 0 32px;
  max-width: 860px;
}
.question-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
}
.question-row label {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
}
.question-row strong {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
.question-row input {
  margin-top: 4px;
}
.questions-actions {
  display: flex;
  gap: 18px;
}
.calculator {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 22px;
  max-width: 780px;
}
.calculator summary {
  font-size: 14px;
  font-weight: 600;
}
.calculator p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}
.calculator-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.calculator output {
  font-size: 23px;
  display: block;
  margin-top: 14px;
}
.calculator label {
  font-size: 12px;
}
.review-footer {
  border-top: 1px solid var(--line);
  padding: 25px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1160px;
  margin: auto;
  color: var(--muted);
}
.review-footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.review-footer a {
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
}
.review-footer small {
  font-size: 10px;
  white-space: nowrap;
}
dialog {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  max-width: min(800px, calc(100vw - 32px));
  max-height: 85vh;
  width: 800px;
  background: #fff;
  box-shadow: 0 18px 60px #19332830;
}
dialog::backdrop {
  background: #15251f80;
  backdrop-filter: blur(2px);
}
dialog[open] {
  animation: reveal 0.2s ease-out;
}
dialog header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
dialog header h2 {
  font-size: 22px;
}
.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.source-passage {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.source-passage:first-child {
  padding-top: 0;
}
.source-passage h3 {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 10px;
}
blockquote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
#source-content pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
  margin-top: 18px;
}
.full-source {
  margin-top: 24px;
  font-size: 13px;
}
.full-source label {
  margin-top: 20px;
}
#reset-dialog {
  width: 480px;
}
#reset-dialog p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 800px) {
  .workspace-heading {
    flex-direction: column;
    gap: 10px;
  }
  .workspace-actions {
    padding-top: 0;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .metric:first-child {
    grid-column: 1/-1;
  }
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .clause > summary {
    flex-wrap: wrap;
    gap: 10px;
  }
  .clause > summary h3 {
    min-width: 55%;
  }
  .clause > summary .status {
    order: 3;
    flex-basis: 100%;
  }
  .clause-body {
    padding-right: 0;
  }
  #review-tabs {
    gap: 20px;
  }
  .review-footer {
    flex-direction: column;
    align-items: center;
  }
  .review-footer nav {
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .review-header {
    height: 66px;
    padding: 0 18px;
  }
  .review-header nav {
    gap: 15px;
  }
  .review-header nav a {
    font-size: 12px;
  }
  .review-header nav a:first-child {
    display: none;
  }
  .review-main {
    padding: 0 18px;
  }
  #intake {
    margin-top: 35px;
  }
  h1 {
    font-size: 28px;
  }
  .upload-tool {
    padding: 18px;
  }
  .drop-zone {
    padding: 20px 14px;
  }
  .intake-heading > p:last-child {
    font-size: 15px;
  }
  .privacy-note {
    align-items: flex-start;
    text-align: center;
    font-size: 11px;
  }
  .privacy-note svg {
    margin-top: 3px;
  }
  .workspace-heading h1 {
    font-size: 25px;
  }
  .workspace-actions {
    width: 100%;
  }
  .workspace-actions .button {
    flex: 1;
    padding: 10px 8px;
  }
  .metric strong {
    font-size: 22px;
  }
  .section-intro {
    flex-direction: column;
    align-items: flex-start;
  }
  .calculator-fields {
    grid-template-columns: 1fr;
  }
  .question-row label {
    font-size: 13px;
  }
  .dialog-actions {
    flex-direction: column;
  }
  .review-footer nav {
    gap: 13px;
  }
  dialog {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
