:root {
  --ink: #233432;
  --muted: #627069;
  --green: #234e42;
  --line: #e2e6de;
  --paper: #f7f8f3;
  --white: #fff;
  --accent: #dce9c6;
  --amber: #9a6827;
  --radius: 12px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #a4bd79;
  outline-offset: 3px;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  letter-spacing: -0.035em;
}
h1 {
  font:
    400 clamp(30px, 3.2vw, 44px)/1.15 Georgia,
    serif;
  margin: 9px 0 13px;
}
h2 {
  font-size: 20px;
  font-weight: 550;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
p {
  margin-bottom: 12px;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.sidebar {
  width: 246px;
  background: #172c2b;
  color: #d4ddd5;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 34px 20px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 550;
  padding: 0 9px;
}
.brand > span:last-child > span {
  display: block;
  font-weight: 350;
  color: #aab9b0;
  font-size: 17px;
  margin-top: 4px;
}
.brand-symbol {
  font-family: Georgia, serif;
  font-size: 37px;
  letter-spacing: -7px;
  border: 1px solid #607668;
  border-radius: 10px;
  width: 44px;
  height: 48px;
  line-height: 43px;
  padding-left: 5px;
  color: #d7e6bd;
}
.brand-symbol span {
  position: relative;
  top: 5px;
}
.workspace-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #8b9f92;
  margin: 49px 13px 19px;
  display: flex;
  justify-content: space-between;
}
.workspace-label span {
  font-size: 10px;
  letter-spacing: 0;
}
nav {
  display: grid;
  gap: 8px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 13px;
  color: #b7c5bd;
}
.nav-link:hover {
  background: #ffffff08;
  color: white;
}
.nav-link.active {
  background: #dce9c6;
  color: #20372b;
}
.nav-count {
  margin-left: auto;
  border: 1px solid #98ad85;
  border-radius: 4px;
  padding: 0 5px;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 30px 14px 31px;
}
.source-mark {
  color: #abc590;
  font-size: 34px;
}
.sidebar-bottom p {
  font-family: Georgia, serif;
  color: #c6d2c4;
  line-height: 1.5;
  font-size: 20px;
  margin: 0 0 14px;
}
.sidebar-bottom small {
  font-size: 10px;
  color: #869b90;
}
.profile {
  display: flex;
  gap: 9px;
  align-items: center;
  border-top: 1px solid #ffffff12;
  padding: 21px 0;
  font-size: 11px;
}
.profile small {
  display: block;
  color: #839b8c;
  font-size: 10px;
}
.avatar {
  border-radius: 50%;
  background: #344a40;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: #dae2cb;
  font-size: 10px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #87a774;
  display: inline-block;
}
.profile .status-dot {
  margin-left: auto;
}
.workspace {
  margin-left: 246px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 77px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 43px;
  background: #fbfcf8;
  font-size: 12px;
}
.breadcrumb {
  color: var(--muted);
  display: flex;
  gap: 18px;
  align-items: center;
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--ink);
}
.breadcrumb span {
  color: #bbc3b8;
}
.preview-chip {
  font-size: 10px;
  display: flex;
  gap: 7px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 20px;
  color: #67715f;
  background: #f3f5ec;
}
main {
  padding: 37px 43px 32px;
  max-width: 1560px;
  width: 100%;
  margin: auto;
  flex: 1;
}
main:focus {
  outline: none;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: #5d7050;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.page-heading p {
  margin: 0;
}
.button {
  border: 1px solid transparent;
  padding: 11px 17px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s;
}
.button.primary {
  background: var(--green);
  color: white;
}
.button.primary:hover {
  background: #163a2f;
}
.button.secondary {
  background: white;
  border-color: #dce1d6;
}
.button.secondary:hover {
  background: #f2f5ea;
}
.button.text {
  padding: 6px 0;
  color: var(--green);
  background: none;
}
.button.small {
  padding: 7px 10px;
  font-size: 11px;
}
.hero {
  background: #eaf0de;
  border: 1px solid #dfe7d1;
  border-radius: var(--radius);
  padding: 25px 28px;
  display: flex;
  align-items: center;
  gap: 35px;
  margin-bottom: 27px;
  position: relative;
  overflow: hidden;
}
.hero-copy {
  max-width: 430px;
  z-index: 1;
}
.hero h2 {
  font:
    400 25px/1.2 Georgia,
    serif;
  margin: 8px 0 10px;
}
.hero p {
  font-size: 12px;
  line-height: 1.7;
  color: #5b6a51;
  margin-bottom: 15px;
}
.hero .eyebrow {
  font-size: 9px;
}
.hero-diagram {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 4px;
}
.diagram-file {
  width: 74px;
  height: 91px;
  background: #fafcf5;
  border: 1px solid #cfdabc;
  border-radius: 6px;
  box-shadow: 0 6px 10px #536b3010;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transform: rotate(-5deg);
}
.diagram-file svg {
  width: 26px;
  height: 26px;
  color: #5e7655;
}
.diagram-file small {
  font-size: 8px;
  color: #5a6b4a;
}
.diagram-line {
  height: 1px;
  width: 25px;
  background: #b7c6a6;
  position: relative;
}
.diagram-line:after {
  content: "";
  position: absolute;
  right: 0;
  top: -2px;
  width: 5px;
  height: 5px;
  border-top: 1px solid #b7c6a6;
  border-right: 1px solid #b7c6a6;
  transform: rotate(45deg);
}
.diagram-center {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #becdab;
  border-radius: 50%;
  background: #e2ebd3;
}
.diagram-results {
  display: grid;
  gap: 7px;
}
.diagram-results span {
  background: #f9fbf4;
  border: 1px solid #d3dec3;
  border-radius: 5px;
  padding: 7px 11px;
  font:
    10px ui-monospace,
    monospace;
  color: #566b47;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 31px;
}
.metric {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.metric .label {
  color: #64715e;
  font-size: 11px;
}
.metric strong {
  display: block;
  font-size: 28px;
  font-weight: 500;
  margin: 7px 0 3px;
  line-height: 1.1;
  letter-spacing: -1px;
}
.metric small {
  font-size: 10px;
  color: #66705e;
}
.metric-icon {
  background: #f3f6ed;
  border-radius: 7px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #728360;
}
.metric-icon svg {
  width: 17px;
  height: 17px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 17px;
}
.section-heading h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.5px;
}
.section-heading p {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.section-heading small {
  font-size: 10px;
  color: var(--muted);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  padding: 0 12px;
  max-width: 400px;
  flex: 1;
  color: #8a9383;
}
.search-box input {
  border: 0;
  padding: 10px;
  background: none;
  outline: none;
  width: 100%;
  font-size: 11px;
  min-width: 80px;
}
.search-box:focus-within {
  outline: 2px solid #94ad74;
}
.search-box svg {
  width: 15px;
  height: 15px;
}
.toolbar select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  font-size: 11px;
  color: #68705f;
}
.table-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 9px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #647154;
  background: #fafbf7;
  font-weight: 550;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 21px 18px;
  border-bottom: 1px solid #edf0e8;
  font-size: 11px;
}
tr:last-child td {
  border-bottom: 0;
}
.doc-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}
.doc-icon {
  height: 36px;
  width: 30px;
  background: #f4f5ed;
  border: 1px solid #e4e8d9;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: #7a886b;
}
.doc-icon svg {
  width: 17px;
  height: 17px;
}
.doc-name {
  font-size: 12px;
  font-weight: 550;
  max-width: 290px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-cell small {
  display: block;
  font-size: 10px;
  color: #65725b;
  margin-top: 3px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 9px;
  background: #f0f3e8;
  color: #5b6d4d;
}
.badge.amber {
  background: #fbf1dc;
  color: #875b21;
}
.badge.neutral {
  background: #edf1f3;
  color: #4c6570;
}
.badge.green {
  background: #e8f2e8;
  color: #467048;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #647154;
}
.inline-link {
  background: none;
  border: 0;
  color: #4f6850;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.inline-link:hover {
  text-decoration: underline;
}
.bottom-note {
  margin-top: 17px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #637052;
  font-size: 10px;
}
.bottom-note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
footer {
  display: flex;
  gap: 22px;
  padding: 18px 43px;
  border-top: 1px solid var(--line);
  color: #627052;
  font-size: 9px;
}
footer span:last-child {
  margin-left: auto;
}
.notice {
  background: #f1f4e9;
  border: 1px solid #dfe6d4;
  border-radius: 8px;
  padding: 15px 18px;
  font-size: 12px;
  color: #647352;
  margin-bottom: 23px;
  line-height: 1.65;
}
.notice.compact {
  font-size: 11px;
  padding: 11px 13px;
  margin: 15px 0;
}
.notice.warning {
  background: #fbf4e5;
  border-color: #eadcc3;
  color: #6b5023;
}
.empty {
  padding: 47px 24px;
  text-align: center;
  color: var(--muted);
}
.empty svg {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: #8d9c79;
}
.empty h3 {
  color: var(--ink);
  margin-bottom: 7px;
}
.empty p {
  font-size: 12px;
  max-width: 380px;
  margin: 0 auto 18px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.step {
  border-top: 2px solid #dce2d2;
  padding-top: 12px;
}
.step.active {
  border-color: #7e9f58;
}
.step span {
  font:
    10px ui-monospace,
    monospace;
  color: #657352;
}
.step h3 {
  font-size: 12px;
  margin: 8px 0 4px;
}
.step p {
  font-size: 11px;
  color: var(--muted);
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 23px;
}
.storage-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 23px;
}
.provider {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 25px;
}
.provider-logo {
  background: #f4f6ef;
  border: 1px solid #e6eadd;
  width: 45px;
  height: 45px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.provider-logo svg {
  width: 27px;
  height: 27px;
}
.provider h2 {
  margin: 0;
  font-size: 17px;
}
.provider p {
  font-size: 11px;
  margin: 3px 0 0;
  color: var(--muted);
}
.provider .badge {
  margin-left: auto;
}
.field {
  display: block;
  font-size: 11px;
  font-weight: 550;
  margin: 16px 0;
  position: relative;
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #dce2d3;
  border-radius: 6px;
  background: white;
  padding: 10px 12px;
  font-weight: 400;
  font-size: 12px;
  color: var(--ink);
}
.field textarea {
  resize: vertical;
  min-height: 80px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.field-grid .field {
  margin: 0;
}
.optional {
  font-size: 10px;
  font-weight: 400;
  color: #626e58;
  margin-left: 4px;
}
.folder-tree {
  font:
    12px/2 ui-monospace,
    monospace;
  background: #f7f8f3;
  border-radius: 8px;
  padding: 19px;
  color: #5d7050;
  margin: 20px 0;
}
.detail-list {
  margin: 0;
  font-size: 12px;
}
.detail-list div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.detail-list div:last-child {
  border-bottom: 0;
}
.detail-list dt {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 3px;
}
.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.review-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.review-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  overflow: hidden;
  min-width: 0;
}
.panel-heading {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}
.panel-heading h3 {
  font-size: 12px;
  margin: 0;
}
.panel-heading span {
  font-size: 10px;
  color: var(--muted);
}
.paper {
  background: #f3f3ed;
  padding: 22px;
  min-height: 370px;
}
.paper-inner {
  background: white;
  padding: 28px 25px;
  box-shadow: 0 3px 12px #26382508;
  min-height: 330px;
  color: #5c6056;
  font:
    13px/1.8 Georgia,
    serif;
}
.paper-inner h3 {
  font-size: 15px;
  letter-spacing: 0.5px;
  text-align: center;
}
.paper-inner .paper-sub {
  text-align: center;
  font: 9px sans-serif;
  letter-spacing: 1.7px;
  color: #637052;
  margin-bottom: 22px;
}
.paper-inner mark {
  background: #fff0cf;
  color: inherit;
}
.paper-bottom {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  text-align: center;
  font-size: 10px;
  margin-top: 32px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
  gap: 21px;
}
.tab {
  padding: 13px 1px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-size: 11px;
  color: #647154;
}
.tab[aria-selected="true"] {
  border-color: #5d7a43;
  color: #39532c;
}
.artifact-body {
  padding: 22px;
  min-height: 326px;
  overflow: auto;
}
.artifact-body pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    11px/1.9 ui-monospace,
    monospace;
  color: #586951;
  margin: 0;
}
.unit {
  border: 1px solid var(--line);
  padding: 13px 15px;
  border-radius: 7px;
  margin-bottom: 11px;
}
.unit strong {
  font-size: 12px;
}
.unit p {
  font-size: 12px;
  color: #5f7052;
  margin: 7px 0;
}
.unit small {
  font-size: 10px;
  color: #647154;
}
.unit.flagged {
  border-color: #e8d8b9;
  background: #fefbf3;
}
.review-bottom {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.check-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.check-row:last-child {
  border: 0;
}
.check-row .badge {
  margin-left: auto;
}
.local-preview {
  display: block;
  width: 100%;
  height: 500px;
  border: 0;
  background: #f0f2eb;
}
.review-select {
  max-width: 320px;
  border: 1px solid var(--line);
  background: white;
  padding: 9px;
  border-radius: 6px;
  font-size: 12px;
  min-width: 0;
}
.error {
  color: #a44935;
  font-size: 12px;
  margin: 10px 0;
  min-height: 0;
}
.error:empty {
  display: none;
}
.hash {
  font:
    10px/1.8 ui-monospace,
    monospace;
  word-break: break-all;
}
.success-text {
  color: #587c43;
  font-size: 11px;
  margin: 12px 0 0;
}
.icon-button {
  border: 0;
  background: #f2f4ec;
  border-radius: 50%;
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #718064;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 27px;
  width: min(540px, calc(100% - 28px));
  max-height: 90vh;
  box-shadow: 0 24px 80px #102b2940;
  color: var(--ink);
}
dialog::backdrop {
  background: #0c232b66;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.dialog-heading h2 {
  font:
    27px Georgia,
    serif;
  margin: 8px 0 12px;
}
.dropzone {
  position: relative;
  border: 1px dashed #b9c9a6;
  background: #f7f9f2;
  border-radius: 9px;
  padding: 21px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  cursor: pointer;
}
.dropzone.dragover {
  background: #e9f1dd;
  border-color: #63834b;
}
.dropzone:focus-within {
  outline: 3px solid #a4bd79;
}
.dropzone strong {
  font-size: 12px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.dropzone > span:not(.upload-glyph) {
  font-size: 10px;
  color: #626e58;
}
.upload-glyph {
  font-size: 24px;
  color: #7c9461;
}
.dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 22px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #203a2d;
  color: white;
  padding: 13px 21px;
  border-radius: 9px;
  box-shadow: 0 6px 24px #0002;
  font-size: 12px;
  z-index: 10;
  max-width: calc(100% - 30px);
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 10px;
  background: white;
  padding: 10px;
  z-index: 20;
}
.skip-link:focus {
  top: 10px;
}
.review-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1500px) {
  main {
    padding-top: 48px;
  }
  .hero {
    padding: 32px;
  }
  .hero-diagram {
    margin-right: 35px;
    gap: 23px;
  }
  .hero-copy {
    max-width: 530px;
  }
  .hero p {
    font-size: 13px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .workspace {
    margin-left: 210px;
  }
  main {
    padding: 30px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .hero-diagram {
    gap: 7px;
  }
  .diagram-line {
    width: 12px;
  }
  .hero {
    gap: 15px;
    padding: 23px;
  }
  .hero-copy {
    max-width: 340px;
  }
  .hero h2 {
    font-size: 23px;
  }
  .doc-name {
    max-width: 210px;
  }
  th,
  td {
    padding-left: 12px;
    padding-right: 12px;
  }
  .storage-grid {
    grid-template-columns: 1.3fr 1fr;
  }
  footer {
    padding: 18px 25px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 180px;
  }
  .workspace {
    margin-left: 180px;
  }
  .brand {
    font-size: 17px;
    padding: 0 3px;
    gap: 9px;
  }
  .brand > span:last-child > span {
    font-size: 15px;
  }
  .brand-symbol {
    font-size: 30px;
    width: 36px;
    height: 41px;
    line-height: 36px;
  }
  .nav-link {
    font-size: 11px;
    padding: 11px 9px;
    gap: 8px;
  }
  .sidebar-bottom p {
    font-size: 18px;
  }
  .workspace-label {
    font-size: 8px;
    margin-left: 8px;
  }
  .profile {
    font-size: 10px;
  }
  .profile small {
    font-size: 9px;
  }
  .hero-diagram {
    display: none;
  }
  .hero-copy {
    max-width: none;
  }
  .metric {
    padding: 14px;
  }
  .metric-icon {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading > .button {
    margin-top: 21px;
  }
  .review-layout,
  .review-bottom,
  .storage-grid {
    grid-template-columns: 1fr;
  }
  .breadcrumb {
    gap: 9px;
  }
  .topbar {
    padding: 0 20px;
  }
  .steps {
    gap: 10px;
  }
  .steps h3 {
    font-size: 11px;
  }
  footer > span:nth-child(2) {
    display: none;
  }
}
@media (max-width: 620px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 16px 17px 0;
  }
  .brand {
    font-size: 17px;
    gap: 10px;
  }
  .brand > span:last-child > span {
    display: inline;
    font-size: 17px;
    margin-left: 5px;
  }
  .brand-symbol {
    height: 33px;
    width: 33px;
    font-size: 26px;
    line-height: 28px;
    border-radius: 7px;
  }
  .workspace-label,
  .sidebar-bottom,
  .profile {
    display: none;
  }
  nav {
    display: flex;
    justify-content: space-between;
    gap: 2px;
    margin: 15px -5px 0;
  }
  .nav-link {
    border-radius: 6px 6px 0 0;
    flex-direction: column;
    padding: 10px 9px 9px;
    gap: 5px;
    font-size: 9px;
  }
  .nav-link svg {
    width: 17px;
    height: 17px;
  }
  .nav-count {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 52px;
    padding: 0 20px;
    font-size: 10px;
  }
  .preview-chip {
    font-size: 8px;
    padding: 4px 7px;
  }
  .breadcrumb {
    gap: 8px;
  }
  .breadcrumb > span {
    display: none;
  }
  .breadcrumb {
    font-size: 0;
  }
  .breadcrumb strong {
    font-size: 11px;
  }
  main {
    padding: 25px 18px;
  }
  .page-heading {
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .page-heading > .button {
    margin-top: 0;
  }
  .page-heading h1 {
    font-size: 34px;
  }
  .hero {
    padding: 20px;
  }
  .hero h2 {
    font-size: 24px;
  }
  .metric-grid {
    gap: 8px;
    margin-bottom: 25px;
  }
  .metric {
    padding: 12px 10px;
  }
  .metric .label {
    font-size: 9px;
  }
  .metric strong {
    font-size: 25px;
  }
  .metric small {
    font-size: 8px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .section-heading small {
    display: none;
  }
  .toolbar {
    gap: 7px;
  }
  .toolbar select {
    max-width: 123px;
    padding: 10px 5px;
    font-size: 10px;
  }
  .search-box {
    padding: 0 7px;
  }
  .search-box input {
    font-size: 10px;
    padding: 10px 5px;
  }
  .table-footer {
    font-size: 9px;
  }
  .table-footer span:last-child {
    display: none;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .review-select {
    max-width: 100%;
    width: 100%;
  }
  .paper {
    padding: 13px;
  }
  .paper-inner {
    padding: 22px 19px;
  }
  .panel {
    padding: 18px;
  }
  .provider {
    gap: 9px;
  }
  .provider .badge {
    font-size: 8px;
  }
  .provider h2 {
    font-size: 15px;
  }
  footer {
    padding: 18px;
    font-size: 8px;
  }
  .field-grid {
    gap: 10px;
  }
  dialog {
    padding: 20px;
  }
  .dialog-actions .button {
    padding: 10px 12px;
  }
  .review-actions .button {
    font-size: 10px;
  }
  .local-preview {
    height: 420px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Keep document actions visible without horizontal scrolling on a phone. */
.doc-cell > div {
  min-width: 0;
}
.doc-cell small {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 310px;
}
@media (max-width: 620px) {
  .table-wrap table,
  .table-wrap tbody {
    display: block;
    width: 100%;
  }
  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .table-wrap tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    border-bottom: 1px solid var(--line);
    padding: 8px;
  }
  .table-wrap tbody tr:last-child {
    border-bottom: 0;
  }
  .table-wrap td {
    border: 0;
    padding: 8px;
    white-space: normal;
    min-width: 0;
  }
  .table-wrap td:first-child {
    grid-column: 1 / -1;
  }
  .table-wrap td:last-child {
    text-align: right;
  }
  #document-rows td:last-child {
    grid-column: 1 / -1;
  }
  .doc-cell small {
    max-width: 240px;
    white-space: nowrap;
  }
}

/* Pilot: authentication, real review data and Drive setup */
body.signed-out .sidebar,
body.signed-out .topbar-actions {
  display: none;
}
body.signed-out .workspace {
  margin-left: 0;
}
.auth-card {
  max-width: 440px;
  margin: 8vh auto;
}
.auth-card h1 {
  margin: 6px 0 8px;
}
.auth-card .button {
  width: 100%;
  justify-content: center;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.error-inline {
  display: block;
  color: #a44935;
  font-size: 11px;
  margin-top: 4px;
  max-width: 320px;
}
.unit-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.unit-toolbar .search-box {
  flex: 1 1 200px;
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.unit-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.unit small .inline-link,
.issue-group .inline-link {
  font-size: inherit;
}
.level-paragraph {
  margin-left: 12px;
}
.level-inciso {
  margin-left: 24px;
}
.level-alinea {
  margin-left: 36px;
}
.issue-heading {
  margin: 18px 0 10px;
  font-size: 12px;
}
.issue-heading:first-child {
  margin-top: 0;
}
.issue-group {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 14px;
  margin-bottom: 8px;
  font-size: 12px;
}
.issue-group summary {
  cursor: pointer;
}
.limitations {
  font-size: 12px;
  color: var(--muted);
  padding-left: 18px;
}
.downloads {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 2;
}
.small-print {
  font-size: 11px;
  margin-top: 12px;
}
.history-title {
  margin: 22px 0 8px;
}
.history {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
}
.history li {
  border-top: 1px solid var(--line);
  padding: 9px 0;
}
.history p {
  margin: 4px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.drive-step {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.drive-step h3 {
  font-size: 13px;
  margin: 0;
}
.drive-step details summary {
  cursor: pointer;
  font-size: 12px;
  margin-bottom: 10px;
}
.unit.historic .unit-text {
  text-decoration: line-through;
  color: #7a817a;
}
.unit-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.level-epigraph strong,
.level-chapter strong,
.level-section strong,
.level-title strong,
.level-book strong,
.level-subsection strong {
  font-size: 13px;
}
.compact-list div {
  padding: 8px 0;
}

footer a {
  color: inherit;
}
.policy {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 16px 64px;
  font-size: 14px;
  line-height: 1.7;
}
.policy h1 {
  margin: 6px 0 4px;
}
.policy h2 {
  font-size: 16px;
  margin: 28px 0 6px;
}
.file-button {
  position: relative;
  cursor: pointer;
}
.file-button:focus-within {
  outline: 2px solid #5d7a43;
  outline-offset: 2px;
}
.picker-option {
  margin-top: 14px;
}
.picker-option summary {
  cursor: pointer;
  font-size: 12px;
}
.identity-form,
.correction-form {
  margin: 8px 0 14px;
}
.correction summary {
  cursor: pointer;
  font-size: 11px;
  margin-top: 6px;
}
.backup-panel {
  margin-top: 23px;
}
.danger {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.danger summary {
  cursor: pointer;
  font-size: 12px;
  color: #a44935;
}
.review-tabs {
  margin-top: 20px;
  padding: 0;
}
.review-tabs .tabs {
  padding: 0 22px;
}
.bottom-body {
  padding: 20px 23px 23px;
}
.bottom-body .detail-list {
  margin-bottom: 14px;
}
.bottom-body details summary {
  cursor: pointer;
  font-size: 12px;
}
.structure-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #626e58;
}
.structure-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}
.reprocess {
  margin-top: 18px;
}
.reprocess .small-print {
  margin-top: 6px;
}
.general-warnings {
  margin-bottom: 12px;
}
.unit-warning {
  margin: 6px 0 0;
  font-size: 12px;
  color: #6b5023;
}
.unit .original {
  margin-top: 6px;
}
.unit-actions {
  margin-top: 6px;
}
.unit-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e3e6dc;
}
.unit-form .field {
  margin: 0;
}
.unit-form textarea[name="text"] {
  min-height: 110px;
}
@media (max-width: 700px) {
  .unit-form .field-grid {
    grid-template-columns: 1fr;
  }
}
