/* LeftBlank Office. Tokens follow leftblank.app so the two sites read as one. */
:root {
  color-scheme: light;

  --paper: #f4f4ef;
  --surface: #ecece7;
  --ink: #24282d;
  --muted: #626b63;
  --line: #d6d9d0;
  --sage: #7c9588;
  --accent: #506c5f;
  --danger: #8a3b2e;
  --page-shadow: 0 22px 34px -18px #24282d40;
  --serif: georgia, "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Noto Sans Mono CJK SC", monospace;
  --mark: url("/brand/mark-dark.svg");
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --paper: #202729;
  --surface: #2b3334;
  --ink: #ecece7;
  --muted: #a9b8ae;
  --line: #414c48;
  --accent: #acc7b7;
  --danger: #e3a597;
  --page-shadow: 0 22px 34px -18px #00000080;
  --mark: url("/brand/mark-light.svg");
}

/* Without JavaScript the page still follows the system. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;

    --paper: #202729;
    --surface: #2b3334;
    --ink: #ecece7;
    --muted: #a9b8ae;
    --line: #414c48;
    --accent: #acc7b7;
    --danger: #e3a597;
    --page-shadow: 0 22px 34px -18px #00000080;
    --mark: url("/brand/mark-light.svg");
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.7 var(--sans);
  overflow-wrap: break-word;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: #c9dacb;
  color: #24282d;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}

code,
kbd,
pre {
  font-family: var(--mono);
}

.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 60px;
}

.narrow {
  max-width: 920px;
}

.skip {
  position: absolute;
  top: 12px;
  left: 12px;
  transform: translateY(-200%);
  z-index: 10;
  background: var(--paper);
  padding: 8px 16px;
}

.skip:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header */

.mark {
  display: inline-block;
  flex: none;
  width: 32px;
  height: 32px;
  background: var(--mark) center / contain no-repeat;
}

.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 24px/1 var(--serif);
  white-space: nowrap;
}

.identity small {
  font: 400 12px/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.site-nav {
  margin-left: auto;
  font-size: 13px;
}

.site-nav ul {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul a {
  color: var(--muted);
}

.site-nav ul a:hover,
.site-nav ul a[aria-current="page"] {
  color: var(--ink);
}

.site-nav ul a[aria-current="page"] {
  border-bottom: 1px solid var(--sage);
}

.site-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

#appearance {
  min-width: 36px;
  min-height: 40px;
  font-size: 21px;
  line-height: 1;
}

.header-cta {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  white-space: nowrap;
}

/* Type */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 11px/1.5 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ink-dot {
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

html[lang="zh-Hans"] .eyebrow {
  text-transform: none;
  letter-spacing: 0.1em;
}

h1 {
  font: 400 clamp(52px, 5.6vw, 80px)/1.05 var(--serif);
  letter-spacing: -0.05em;
  margin: 26px 0 28px;
}

h1 em,
h2 em {
  color: var(--accent);
  font-weight: 400;
}

h2 {
  font: 400 clamp(34px, 3.6vw, 50px)/1.14 var(--serif);
  letter-spacing: -0.03em;
}

h3 {
  font: 400 26px/1.3 var(--serif);
  letter-spacing: -0.02em;
}

html[lang="zh-Hans"] h1 {
  font-size: clamp(40px, 4.8vw, 66px);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

html[lang="zh-Hans"] h2 {
  line-height: 1.4;
  letter-spacing: 0.02em;
}

html[lang="zh-Hans"] h3 {
  letter-spacing: 0.01em;
  line-height: 1.5;
}

html[lang="zh-Hans"] h1 em,
html[lang="zh-Hans"] h2 em {
  font-style: normal;
}

.intro {
  max-width: 500px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted);
}

.lede {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 420px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

.text-link:hover {
  border-color: var(--accent);
}

.accent-link {
  color: var(--accent);
  border-color: var(--sage);
}

.prose a,
.inline-link {
  text-decoration: underline;
  text-decoration-color: var(--sage);
  text-underline-offset: 3px;
}

.prose a:hover,
.inline-link:hover {
  color: var(--accent);
}

/* Buttons and forms (shared with app pages) */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  font-size: 13px;
  letter-spacing: 0.025em;
  white-space: nowrap;
  border-radius: 2px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background 0.2s, border-color 0.2s;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-quiet:hover {
  background: var(--surface);
  border-color: var(--sage);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: currentcolor;
}

.btn-danger:hover {
  background: var(--surface);
  border-color: currentcolor;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
}

.field .hint {
  font-size: 12px;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--sage);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 24px;
}

.card > h2,
.card > h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.notice {
  border-left: 2px solid var(--sage);
  background: var(--surface);
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 24px;
}

.notice-error {
  border-left-color: var(--danger);
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 32px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.414;
  object-fit: cover;
  object-position: top;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--page-shadow);
}

.doc-grid h3 {
  font-size: 19px;
  margin-top: 14px;
}

.doc-grid p {
  font-size: 12px;
  color: var(--muted);
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--line);
}

.table th {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.table code {
  font-size: 13px;
}

/* Code */

.command {
  position: relative;
  display: flex;
  align-items: stretch;
  max-width: 100%;
  background: var(--ink);
  color: var(--paper);
  border-radius: 3px;
}

.command pre {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 16px 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13.5px;
  line-height: 1.6;
}

.command pre::before {
  content: "$ ";
  color: var(--sage);
}

.copy {
  flex: none;
  padding: 0 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: inherit;
  opacity: 0.75;
  border-left: 1px solid #ffffff22;
}

:root[data-theme="dark"] .copy {
  border-left-color: #00000022;
}

.copy:hover {
  opacity: 1;
}

.source {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 13px;
  line-height: 1.65;
  tab-size: 2;
}

.prompt {
  margin: 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--sage);
  font: 400 19px/1.75 var(--serif);
}

:not(pre) > code {
  font-size: 0.9em;
  padding: 1px 5px;
  background: var(--surface);
  border-radius: 2px;
}

/* Landing */

/* Grid children may shrink below their longest line (commands, source code). */
.hero > *,
.topic-hero > *,
.section-heading > *,
.connect > *,
.topic-body > *,
.pair > * {
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 30px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 90px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 32px;
}

.availability {
  font-size: 11px;
  letter-spacing: 0.035em;
  color: var(--muted);
  margin-top: 22px;
}

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1.05;
  isolation: isolate;
}

.hero-art img {
  position: absolute;
  background: #fff;
  border: 1px solid #24282d14;
  box-shadow: var(--page-shadow);
}

.art-orbit {
  position: absolute;
  inset: 18% 4% 6% 6%;
  border: 1px solid var(--line);
  border-radius: 50%;
  z-index: -1;
}

.art-paper {
  width: 46%;
  left: 4%;
  top: 6%;
  transform: rotate(-7deg);
}

.art-math {
  width: 44%;
  left: 50%;
  top: 2%;
  transform: rotate(6deg);
}

.art-slide {
  width: 70%;
  left: 15%;
  top: 60%;
  transform: rotate(-2.5deg);
}

.art-label {
  position: absolute;
  bottom: -6px;
  left: 6%;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}

.label-rule {
  height: 1px;
  width: 36px;
  background: var(--sage);
}

.section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-surface {
  background: var(--surface);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 90px;
  align-items: end;
  margin-bottom: 48px;
}

.section-heading h2 {
  margin-top: 18px;
}

.section-heading .lede {
  margin-bottom: 6px;
}

.connect {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.connect-main .command {
  margin: 4px 0 18px;
}

.connect-main p {
  font-size: 14px;
  color: var(--muted);
  max-width: 560px;
}

.clients {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.clients li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.clients h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.clients p {
  font-size: 14px;
  color: var(--muted);
}

.snippet {
  margin: 8px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink);
}

.topics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 56px 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic {
  grid-column: span 2;
  min-width: 0;
}

.topic-wide {
  grid-column: span 3;
}

.topic a {
  display: block;
}

.topic-figure {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 340px;
  padding: 30px 30px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 22px;
}

/* Portrait pages bleed off the bottom edge, as if lying on a desk. */
.topic-figure img {
  display: block;
  width: min(80%, 380px);
  background: #fff;
  box-shadow: var(--page-shadow);
  transition: transform 0.35s ease;
}

.topic-figure.is-landscape {
  align-items: center;
  padding: 30px;
}

.topic-figure.is-landscape img {
  width: 100%;
}

.topic a:hover .topic-figure img {
  transform: translateY(-4px);
}

.topic h3 {
  margin: 12px 0 10px;
}

.topic p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.topic .more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid var(--sage);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font: 400 15px/1 var(--serif);
  color: var(--accent);
  margin-bottom: 18px;
}

.steps h3 {
  margin-bottom: 12px;
}

.steps p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.steps code {
  font-size: 12.5px;
}

.pair {
  display: grid;
  grid-template-columns: 0.55fr 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.pair-symbol {
  position: relative;
  height: 180px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.pair-symbol .mark {
  width: 84px;
  height: 84px;
  transform: rotate(-8deg);
}

.pair-circle {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid var(--sage);
  left: calc(50% - 60px);
  top: 4px;
  z-index: -1;
}

.pair h2 {
  font-size: 32px;
  margin: 16px 0 14px;
}

.pair p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 18px;
}

.closing {
  text-align: center;
}

.closing .eyebrow {
  justify-content: center;
}

.closing h2 {
  max-width: 760px;
  margin: 22px auto 30px;
}

.closing .command {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

/* Topic pages */

.topic-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 80px;
}

.topic-hero h1 {
  font-size: clamp(44px, 4.8vw, 70px);
}

html[lang="zh-Hans"] .topic-hero h1 {
  font-size: clamp(36px, 3.9vw, 54px);
}

.specimen {
  margin: 0;
}

.specimen a {
  display: block;
}

.specimen img {
  display: block;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #24282d14;
  box-shadow: var(--page-shadow);
}

.specimen-portrait img {
  max-height: 640px;
  width: auto;
}

.specimen figcaption {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.topic-body {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px 90px;
  padding-top: 90px;
  padding-bottom: 90px;
}

.topic-body > h2 {
  font-size: 34px;
}

.abilities {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.abilities li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.abilities strong {
  font: 400 19px/1.45 var(--serif);
}

.abilities span {
  color: var(--muted);
  line-height: 1.8;
}

.block-title {
  margin-bottom: 18px;
}

.block {
  margin-bottom: 60px;
  min-width: 0;
}

.block:last-child {
  margin-bottom: 0;
}

.block > p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 14px;
}

.connect-note {
  max-width: none;
  margin: 16px 0 40px;
}

.see-also {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.see-also a {
  border-bottom: 1px solid var(--line);
}

.see-also a:hover {
  border-color: var(--accent);
}

/* Footer */

.site-footer {
  position: relative;
  padding-top: 30px;
  padding-bottom: 34px;
  display: flex;
  justify-content: space-between;
  gap: 24px 40px;
  align-items: flex-start;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 60px;
  right: 60px;
  top: 0;
  height: 1px;
  background: var(--line);
}

.footer-brand {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-brand strong {
  font: 600 21px/1 var(--serif);
}

.footer-brand span {
  font-size: 11px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--ink);
}

/* Narrow screens */

@media (width <= 1100px) {
  .wrap {
    padding-left: 36px;
    padding-right: 36px;
  }

  .site-footer::before {
    left: 36px;
    right: 36px;
  }

  .site-header {
    flex-wrap: wrap;
    padding-top: 22px;
    padding-bottom: 14px;
    gap: 14px 24px;
  }

  .site-nav {
    flex: 1 1 100%;
    order: 3;
    margin-left: 0;
  }

  .site-tools {
    order: 2;
  }

  .section-heading,
  .connect {
    gap: 44px;
  }

  .topics {
    gap: 48px 30px;
  }

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

  .pair-symbol {
    display: none;
  }

  .topic-body {
    gap: 40px 50px;
  }
}

@media (width <= 900px) {
  .hero,
  .topic-hero,
  .connect,
  .topic-body,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 50px;
    padding-bottom: 60px;
  }

  .hero-art {
    width: min(480px, 100%);
    margin: 0 auto;
  }

  .section-heading {
    gap: 20px;
  }

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

  .topic,
  .topic-wide {
    grid-column: span 1;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .topic-hero {
    gap: 40px;
  }
}

@media (width <= 640px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-footer::before {
    left: 16px;
    right: 16px;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    padding-top: 16px;
  }

  .identity {
    font-size: 21px;
    gap: 10px;
  }

  .identity small {
    display: none;
  }

  .mark {
    width: 28px;
    height: 28px;
  }

  .site-tools {
    gap: 12px;
  }

  .site-nav {
    font-size: 13px;
  }

  .site-nav ul {
    flex-wrap: wrap;
    gap: 0 14px;
  }

  .site-nav ul a {
    display: inline-block;
    padding: 6px 0;
  }

  h1 {
    font-size: 46px;
    margin: 20px 0;
  }

  html[lang="zh-Hans"] h1 {
    font-size: 36px;
  }

  .topic-hero h1 {
    font-size: 38px;
  }

  html[lang="zh-Hans"] .topic-hero h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 34px;
  }

  .intro {
    font-size: 16px;
  }

  .section,
  .topic-body {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .topics {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .topic-figure {
    height: 240px;
    padding: 18px 18px 0;
  }

  .pair {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .abilities li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .command pre {
    padding: 14px;
    font-size: 12.5px;
  }

  .copy {
    padding: 0 12px;
  }

  .source {
    padding: 16px;
    font-size: 12px;
  }

  .prompt {
    font-size: 17px;
    padding-left: 16px;
  }

  .specimen-portrait img {
    max-height: none;
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }

  .card {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* App pages: sign-in, library, settings, consent and shared documents. */
.app {
  max-width: 920px;
  padding-top: 24px;
  padding-bottom: 96px;
}

.app h1 {
  font: 400 clamp(34px, 4.4vw, 52px) / 1.15 var(--serif);
  letter-spacing: -0.02em;
  margin: 8px 0 18px;
}

.app h2 {
  font: 400 24px / 1.3 var(--serif);
}

.app > p,
.app .card > p {
  margin: 0 0 16px;
}

.app .card {
  margin-bottom: 24px;
}

.app pre {
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.auth {
  max-width: 440px;
}

.auth .btn {
  width: 100%;
}

.auth [data-status]:empty {
  display: none;
}

.auth [data-status] {
  margin: 14px 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 24px;
}

.actions form {
  margin: 0;
}

.actions .field {
  margin: 0;
  flex: 1 1 240px;
}

.doc-grid .doc {
  display: grid;
  gap: 8px;
  padding: 14px;
  height: 100%;
}

.doc-grid .doc img {
  width: 100%;
  height: auto;
  aspect-ratio: 210 / 297;
  object-fit: cover;
  object-position: top;
  background: #fff;
  border: 1px solid var(--line);
}

.pages {
  display: grid;
  gap: 24px;
  margin: 8px 0 32px;
}

.pages img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line);
}

.files {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  font-size: 14px;
}

.files li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.table td {
  vertical-align: middle;
}

.table form {
  margin: 0;
  text-align: right;
}
