:root {
  --ink: #172421;
  --ink-soft: #4d5a56;
  --forest: #123f38;
  --forest-deep: #0b2b27;
  --teal: #176d62;
  --teal-light: #d9ebe6;
  --paper: #f2efe6;
  --paper-deep: #e6e0d2;
  --panel: #fffdf7;
  --line: #cfc8b8;
  --line-dark: #8d948d;
  --amber: #a15d18;
  --amber-light: #f7e7ce;
  --red: #9b3730;
  --red-light: #f6deda;
  --green: #28734e;
  --green-light: #dcebdd;
  --slate: #586368;
  --slate-light: #e3e7e8;
  --shadow: 0 18px 50px rgba(25, 37, 33, 0.08);
  --radius: 3px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(rgba(23, 36, 33, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 36, 33, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:not(:disabled) {
  cursor: pointer;
}

button:disabled,
fieldset:disabled button {
  cursor: not-allowed;
  opacity: 0.52;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 0.78rem 0.86rem;
  color: var(--ink);
  background: #fffefb;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

textarea {
  min-height: 7.5rem;
  line-height: 1.55;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #89918d;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(23, 109, 98, 0.26);
  outline-offset: 2px;
}

input:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  transform: translateY(-150%);
  padding: 0.65rem 0.9rem;
  color: #fff;
  background: var(--forest-deep);
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  overflow: hidden;
  color: #f8f4e9;
  background: var(--forest-deep);
  border-bottom: 6px solid #c48335;
}

.header-grid {
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(600px) rotate(-4deg) scale(1.1);
}

.header-inner {
  position: relative;
  max-width: 1180px;
  min-height: 390px;
  margin: 0 auto;
  padding: 2rem 2rem 3.75rem;
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(460px, 1.7fr) auto;
  gap: 3rem;
  align-items: start;
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.wordmark-index,
.section-kicker,
.ground-rule-code,
.empty-state-index,
.count-label {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wordmark-index {
  color: #d8a767;
}

.wordmark-name {
  max-width: 11rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.15;
}

.header-copy {
  align-self: center;
  padding-top: 2.4rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: #a9c8bf;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.header-copy h1 {
  max-width: 670px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 6vw, 5.2rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.lede {
  max-width: 620px;
  margin: 1.6rem 0 0;
  color: #cad8d3;
  font-size: 1rem;
  line-height: 1.7;
}

.environment-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.23);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.environment-dot {
  width: 0.48rem;
  height: 0.48rem;
  background: #79c992;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(121, 201, 146, 0.13);
}

.page-shell {
  max-width: 1180px;
  margin: -1.9rem auto 0;
  padding: 0 2rem 5rem;
  position: relative;
}

.ground-rule {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.4rem;
  align-items: center;
  padding: 1.35rem 1.55rem;
  background: #f4dfbd;
  border: 1px solid #c89554;
  box-shadow: var(--shadow);
}

.ground-rule-code {
  align-self: stretch;
  display: flex;
  align-items: center;
  color: #81501c;
  border-right: 1px solid #c89554;
}

.ground-rule h2 {
  margin: 0 0 0.28rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.ground-rule p {
  margin: 0;
  color: #614a2d;
  font-size: 0.9rem;
  line-height: 1.55;
}

.connection-panel {
  margin-top: 1.5rem;
  padding: 1.6rem 1.75rem;
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(25, 37, 33, 0.04);
}

.connection-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.connection-help {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.workflow {
  display: grid;
  gap: 1.35rem;
  margin-top: 1.35rem;
}

.step-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.step-rail {
  padding-top: 2rem;
  color: #f6f1e5;
  background: var(--forest);
  text-align: center;
  border-right: 1px solid var(--forest-deep);
}

.step-rail span {
  display: inline-block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
}

.step-content {
  min-width: 0;
  padding: 2rem 2.2rem 2.4rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  padding-bottom: 1.35rem;
  margin-bottom: 1.55rem;
  border-bottom: 1px solid var(--line);
}

.compact-heading {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
}

.section-kicker {
  margin: 0 0 0.42rem;
  color: var(--teal);
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-note {
  max-width: 310px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: right;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.42rem;
}

.field > span:first-child {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.025em;
}

.field small,
.form-actions p,
.block-heading p,
.document-toolbar p {
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.45;
}

.wide-field {
  max-width: 780px;
}

.input-with-action {
  display: flex;
}

.input-with-action input {
  min-width: 0;
  border-radius: var(--radius) 0 0 var(--radius);
}

.input-action {
  flex: 0 0 auto;
  padding: 0 0.8rem;
  border: 1px solid var(--line-dark);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--paper-deep);
  font-size: 0.72rem;
  font-weight: 750;
}

.form-block {
  margin-top: 2rem;
}

.block-heading,
.document-toolbar,
.project-header {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
}

.block-heading {
  margin-bottom: 0.85rem;
}

.block-heading h3,
.document-toolbar h3 {
  margin: 0 0 0.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.block-heading p,
.document-toolbar p {
  margin: 0;
}

.count-label {
  color: var(--ink-soft);
}

.drop-zone {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  padding: 1.5rem;
  border: 1px dashed var(--line-dark);
  background: #f8f5ed;
  text-align: center;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.drop-zone.is-dragging {
  background: var(--teal-light);
  border-color: var(--teal);
  transform: translateY(-2px);
}

.drop-zone-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1;
}

.drop-zone p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.drop-zone strong {
  color: var(--ink);
}

.file-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.file-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line);
  background: #fffefb;
}

.file-name {
  min-width: 0;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta {
  color: var(--ink-soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
}

.attribute-picker legend {
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 700;
}

.attribute-picker > p {
  margin: 0.35rem 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.45;
}

.attribute-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.attribute-option {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-height: 48px;
  padding: 0.85rem;
  background: #f8f5ed;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.82rem;
  line-height: 1.4;
  cursor: pointer;
}

.attribute-option:hover {
  border-color: var(--teal);
}

.attribute-option:has(input:checked) {
  background: var(--teal-light);
  border-color: var(--teal);
}

.attribute-option input {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  padding: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.remove-button,
.text-button {
  padding: 0;
  border: 0;
  color: var(--teal);
  background: transparent;
  font-size: 0.74rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.remove-button {
  min-height: 43px;
  padding: 0 0.25rem;
  color: var(--red);
}

.remove-button:disabled {
  visibility: hidden;
}

.button {
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  padding: 0.76rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.015em;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.button:not(:disabled):hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 5px 13px rgba(23, 109, 98, 0.18);
}

.button-primary:not(:disabled):hover {
  background: #0f5c52;
}

.button-secondary {
  color: var(--forest);
  background: transparent;
  border-color: var(--forest);
}

.button-secondary:not(:disabled):hover {
  background: var(--teal-light);
}

.button-small {
  min-height: 36px;
  padding: 0.54rem 0.78rem;
  font-size: 0.72rem;
}

.button[aria-busy="true"]::before {
  content: "";
  width: 0.78rem;
  height: 0.78rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.form-actions p {
  margin: 0;
}

.notice {
  margin: 1.25rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid;
  border-left-width: 4px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.notice strong,
.notice p {
  display: block;
}

.notice p {
  margin: 0.18rem 0 0;
}

.notice[data-tone="success"] {
  color: #1d593c;
  background: var(--green-light);
  border-color: #70a581;
}

.notice[data-tone="warning"] {
  color: #744515;
  background: var(--amber-light);
  border-color: #c68b49;
}

.notice[data-tone="danger"] {
  color: #792b26;
  background: var(--red-light);
  border-color: #c8746d;
}

.notice[data-tone="info"] {
  color: #344c53;
  background: var(--slate-light);
  border-color: #86989f;
}

.recover-form {
  max-width: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: end;
}

.empty-state {
  margin-top: 1.5rem;
  padding: 2.6rem 1.5rem;
  color: var(--ink-soft);
  background: #f8f5ed;
  border: 1px dashed var(--line-dark);
  text-align: center;
}

.empty-state-index {
  color: var(--teal);
}

.empty-state h3 {
  margin: 0.7rem 0 0.35rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.empty-state p {
  margin: 0;
  font-size: 0.82rem;
}

.project-header {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  color: #eef6f2;
  background: var(--forest);
}

.project-name {
  margin: 0 0 0.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.project-id {
  display: block;
  color: #b8d2ca;
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}

.project-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.project-actions .text-button {
  color: #d8e8e3;
}

.project-actions .danger-text {
  color: #f2b4ae;
}

.document-toolbar {
  margin: 1.45rem 0 0.8rem;
}

.document-list {
  display: grid;
  gap: 0.8rem;
}

.document-card {
  border: 1px solid var(--line);
  background: #fffefb;
}

.document-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
}

.document-identity {
  min-width: 0;
}

.document-identity h4 {
  margin: 0 0 0.3rem;
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-identity code {
  display: block;
  color: var(--ink-soft);
  font-size: 0.66rem;
  overflow-wrap: anywhere;
}

.document-controls {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.48rem;
  border: 1px solid;
  border-radius: 999px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-consistent,
.status-ready {
  color: #1f6241;
  background: var(--green-light);
  border-color: #78a989;
}

.status-inconsistent,
.status-failed {
  color: #852f29;
  background: var(--red-light);
  border-color: #cf7f78;
}

.status-insufficient-evidence,
.status-partial {
  color: #81501c;
  background: var(--amber-light);
  border-color: #ce9654;
}

.document-error {
  margin: 0;
  padding: 0 1rem 0.9rem;
  color: var(--red);
  font-size: 0.76rem;
  line-height: 1.45;
}

.facts-panel {
  padding: 0.9rem 1rem 1rem;
  background: #f8f5ed;
  border-top: 1px solid var(--line);
}

.facts-placeholder,
.facts-loading,
.facts-empty,
.facts-error {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.facts-error {
  color: var(--red);
}

.fact-result-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.fact-result {
  min-width: 0;
  padding: 0.78rem;
  background: #fffefb;
  border: 1px solid var(--line);
}

.fact-result h5 {
  margin: 0 0 0.6rem;
  color: var(--teal);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.69rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.fact-result dl {
  margin: 0;
}

.fact-result dt {
  margin-top: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 750;
  text-transform: uppercase;
}

.fact-result dt:first-child {
  margin-top: 0;
}

.fact-result dd {
  margin: 0.12rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.fact-result pre {
  margin: 0.2rem 0 0;
  white-space: pre-wrap;
  font-size: 0.7rem;
}

.system-prompt-editor {
  margin-bottom: 1.5rem;
}

.system-prompt-editor .text-button {
  margin-top: 0.75rem;
}

#system-prompt {
  line-height: 1.5;
}

.verification-result {
  margin-top: 1.45rem;
}

.verification-overview {
  padding: 1.25rem 1.35rem;
  background: var(--forest-deep);
  color: #edf5f1;
}

.verification-overview-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.verification-overview h3 {
  margin: 0.8rem 0 0;
  max-width: 800px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 400;
  line-height: 1.3;
}

.verification-count {
  margin: 0;
  color: #aac6bd;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.checks-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.check-card {
  padding: 1rem 1.1rem;
  background: #fffefb;
  border: 1px solid var(--line);
  border-left: 4px solid var(--slate);
}

.check-card[data-status="consistent"] {
  border-left-color: var(--green);
}

.check-card[data-status="inconsistent"] {
  border-left-color: var(--red);
}

.check-card[data-status="insufficient_evidence"] {
  border-left-color: var(--amber);
}

.check-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.check-heading h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 600;
}

.check-explanation {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

.observation-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.observation {
  min-width: 0;
  padding: 0.7rem 0.75rem;
  background: #f5f2e9;
  border: 1px solid #ddd6c8;
}

.observation-source {
  display: block;
  margin-bottom: 0.35rem;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.observation-value {
  display: block;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.warning-list {
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem 0.85rem 2rem;
  color: #714414;
  background: var(--amber-light);
  border: 1px solid #ca914f;
  font-size: 0.78rem;
  line-height: 1.5;
}

.site-footer {
  max-width: 1180px;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto;
  padding: 1.5rem 2rem 2.5rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
}

.site-footer p {
  margin: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 960px) {
  .header-inner {
    min-height: 360px;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 2rem;
  }

  .environment-label {
    position: absolute;
    top: 2rem;
    right: 2rem;
  }

  .connection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .header-inner {
    min-height: auto;
    display: block;
    padding: 1.35rem 1rem 3rem;
  }

  .wordmark-name {
    max-width: none;
  }

  .environment-label {
    display: none;
  }

  .header-copy {
    padding-top: 3.5rem;
  }

  .header-copy h1 {
    font-size: clamp(2.55rem, 14vw, 4.2rem);
  }

  .page-shell {
    margin-top: -1.25rem;
    padding: 0 0.75rem 3rem;
  }

  .ground-rule {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 1.1rem;
  }

  .ground-rule-code {
    min-height: auto;
    padding-bottom: 0.55rem;
    border-right: 0;
    border-bottom: 1px solid #c89554;
  }

  .connection-panel {
    padding: 1.25rem 1rem;
  }

  .connection-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    grid-template-columns: 1fr;
  }

  .step-rail {
    min-height: 35px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    text-align: left;
    border-right: 0;
  }

  .step-rail span {
    writing-mode: horizontal-tb;
  }

  .step-content {
    padding: 1.4rem 1rem 1.7rem;
  }

  .section-heading {
    display: block;
  }

  .section-note {
    max-width: none;
    margin-top: 0.65rem;
    text-align: left;
  }

  .attribute-options {
    grid-template-columns: 1fr;
  }

  .remove-button {
    min-height: auto;
    justify-self: start;
  }

  .file-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .file-meta {
    display: none;
  }

  .recover-form {
    grid-template-columns: 1fr;
  }

  .recover-form .button {
    justify-self: start;
  }

  .project-header,
  .document-toolbar,
  .block-heading {
    align-items: flex-start;
  }

  .project-header,
  .document-toolbar {
    flex-direction: column;
  }

  .project-actions {
    width: 100%;
    justify-content: space-between;
  }

  .document-card-header {
    grid-template-columns: 1fr;
  }

  .document-controls {
    justify-content: space-between;
  }

  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
