/* The look of TeX Tools and BibTeX Tools (Ostpopcorn), with an orange accent */

:root {
  color-scheme: light;
  --bg: #f5f4f3;
  --surface: #ffffff;
  --surface-2: #f8f7f6;
  --surface-3: #eeece9;
  --border: #e5e1dd;
  --border-strong: #d2cbc5;
  --text: #221c18;
  --muted: #74685f;
  --faint: #a89d95;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-soft: #fdeee6;
  --accent-text: #ffffff;
  --desk: #e7e3df;
  --rm-text: #b4232a;
  --rm-bar: #e5484d;
  --warn: #b7791f;
  --shadow: 0 1px 2px rgba(30, 20, 10, .05), 0 1px 3px rgba(30, 20, 10, .07);
  --shadow-lg: 0 12px 32px rgba(30, 20, 10, .16);
  --paper-shadow: 0 1px 2px rgba(30, 20, 10, .14), 0 2px 8px rgba(30, 20, 10, .08);
  --radius: 10px;
  --ui-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --code-font: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  /* On the paper, which is white in both themes */
  --band-bg: rgba(234, 88, 12, .13);
  --band-line: rgba(194, 65, 12, .75);
  --margin-line: rgba(120, 110, 100, .35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #110f0e;
    --surface: #1a1716;
    --surface-2: #201c1a;
    --surface-3: #292422;
    --border: #2e2826;
    --border-strong: #3f3834;
    --text: #ece6e1;
    --muted: #a5998f;
    --faint: #6d625a;
    --accent: #fb923c;
    --accent-hover: #fdab6c;
    --accent-soft: rgba(251, 146, 60, .15);
    --accent-text: #1a0f08;
    --desk: #0b0a09;
    --rm-text: #ff8b84;
    --rm-bar: #f85149;
    --warn: #d29922;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, .55);
    --paper-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #110f0e;
  --surface: #1a1716;
  --surface-2: #201c1a;
  --surface-3: #292422;
  --border: #2e2826;
  --border-strong: #3f3834;
  --text: #ece6e1;
  --muted: #a5998f;
  --faint: #6d625a;
  --accent: #fb923c;
  --accent-hover: #fdab6c;
  --accent-soft: rgba(251, 146, 60, .15);
  --accent-text: #1a0f08;
  --desk: #0b0a09;
  --rm-text: #ff8b84;
  --rm-bar: #f85149;
  --warn: #d29922;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, .55);
  --paper-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

@font-face {
  font-family: "Parisienne";
  src: url("fonts/parisienne.woff2") format("woff2");
  font-display: swap;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 var(--ui-font);
  -webkit-font-smoothing: antialiased;
}

svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

h1, h2, h3 { margin: 0; }

/* Buttons and inputs */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: 500 13px var(--ui-font);
  white-space: nowrap;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.btn:hover:not(:disabled) { background: var(--surface-2); border-color: var(--faint); }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, input:focus-visible, .scroller:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover:not(:disabled) { background: var(--surface-3); border-color: transparent; }
.btn.large { height: 40px; padding: 0 18px; font-size: 14px; }
.btn.icon-btn { padding: 0; width: 32px; justify-content: center; font-size: 18px; line-height: 1; }

/* Top bar */

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.brand .tagline {
  margin-left: 3px;
  font: 400 21px "Parisienne", "Segoe Script", cursive;
  letter-spacing: 0;
  color: var(--accent);
}
.sources { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.files { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.files::-webkit-scrollbar { display: none; }
.actions { display: flex; align-items: center; gap: 6px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 4px 0 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 0;
}
.files .chip { flex: none; }
.chip .name { min-width: 0; max-width: 20ch; overflow: hidden; text-overflow: ellipsis; }
.chip[draggable="true"] { cursor: grab; }
.chip.dragging { opacity: .45; }
.chip.reading .count { animation: pulse 1.2s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .35; } }
.chip svg { width: 14px; height: 14px; }
.chip .count { color: var(--muted); font-weight: 400; }
.chip .chip-close {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
}
.chip .chip-close:hover { background: var(--surface-3); color: var(--text); }
.sources .btn { flex: none; height: 28px; padding: 0 9px; font-size: 12.5px; }
.sources .btn svg { width: 14px; height: 14px; }
body:not(.has-files) .sources .btn, body:not(.several-files) #close-all { display: none; }
/* Several files have a row of their own */
body.several-files .topbar { flex-wrap: wrap; row-gap: 8px; }
body.several-files .sources { order: 3; flex: 1 1 100%; }

/* The views: the original, both side by side, or the split pages */
.views { align-self: center; }
body:not(.has-files) .views { display: none; }
.segmented.views span { display: inline-flex; align-items: center; gap: 6px; }
.views svg { width: 14px; height: 14px; }

/* Settings */

.options { padding: 12px 16px; }

.card {
  display: grid;
  grid-template-columns: minmax(240px, auto) repeat(3, minmax(170px, 1fr));
  gap: 12px 28px;
  min-width: 0;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-head h3 { font-size: 13.5px; font-weight: 650; }
.field-head p { margin: 1px 0 0; font-size: 12px; color: var(--muted); }

.segmented {
  display: flex;
  flex-wrap: wrap;
  align-self: flex-start;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-2);
}
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: block;
  padding: 4px 11px;
  border-radius: 6px;
  color: var(--muted);
  font: 500 12.5px var(--ui-font);
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.segmented label:hover span { color: var(--text); }
.segmented input:checked + span { background: var(--accent); color: var(--accent-text); font-weight: 600; }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

.range { display: flex; align-items: center; gap: 10px; min-height: 30px; }
.range input[type="range"] { flex: 1; min-width: 80px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.number {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 8px 0 2px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
}
.number:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.number input {
  width: 42px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 600 13px var(--ui-font);
  text-align: right;
  -moz-appearance: textfield;
}
.number input:focus-visible { outline: 0; }
.number input::-webkit-inner-spin-button { margin-left: 2px; }

/* Workspace */

.workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  padding: 0 16px 10px;
}
body.view-original .workspace, body.view-split .workspace { grid-template-columns: minmax(0, 1fr); }
body.view-original #pane-result, body.view-split #pane-original,
body.view-original .gutter, body.view-split .gutter { display: none; }

/* Between the panes: the toggle for linked scrolling */
.gutter { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gutter::before, .gutter::after { content: ""; flex: 1; width: 1px; background: var(--border); }
.gutter.linked::before, .gutter.linked::after { background: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.gutter-toggle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all .12s;
}
.gutter-toggle:hover { color: var(--text); border-color: var(--accent); }
.gutter-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gutter-toggle[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
#link-scroll[aria-pressed="true"] .icon-unlinked,
#link-scroll[aria-pressed="false"] .icon-linked { display: none; }

.pane {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pane-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.pane-head h2 { font-size: 13px; font-weight: 650; }
.pane-head .meta { flex: 1; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 4px; }
.sw.overlap { background: var(--band-bg); border: 1px solid var(--band-line); }

.scroller {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overflow-anchor: none;
  padding: 18px 16px 28px;
  background: var(--desk);
}

/* The pages of the original, with the slices on the left */

/* Both at the same size, so that the writing is as large in both panes */
.orig { max-width: 454px; margin: 0 auto 22px; }
.page-label, .sheet-label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 6px 34px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.page-label span, .sheet-label span { font-weight: 400; color: var(--muted); }
.orig-row { display: flex; }
/* The name of each of several files, above its first page */
.file-label {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 454px;
  margin: 8px auto 10px;
  padding: 0 0 6px 34px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 650;
  color: var(--accent);
}
.file-label:first-child { margin-top: 0; }
.file-label svg { flex: none; width: 14px; height: 14px; }
.file-label span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.view-original .file-label { flex: 0 0 100%; max-width: none; margin: 8px 0 -8px; padding-left: 0; }
.brackets { position: relative; flex: none; width: 34px; }
.bracket {
  position: absolute;
  width: 9px;
  border: 2px solid var(--faint);
  border-right: 0;
  border-radius: 4px 0 0 4px;
  cursor: pointer;
  transition: border-color .12s;
}
/* Brackets of pages after each other side by side, so that they overlap */
.bracket.even { left: 19px; }
.bracket.odd { left: 6px; }
/* The number of the page of paper, on the line of its bracket */
.bracket b {
  position: absolute;
  top: 50%;
  left: -8px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--muted);
  font: 600 10.5px/1 var(--ui-font);
}
body:not(.view-both) .bracket { cursor: default; }
.bracket.hl, body.view-both .bracket:hover { border-color: var(--accent); }
.bracket.hl b, body.view-both .bracket:hover b { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

.paper {
  position: relative;
  flex: 1;
  min-width: 0;
  background: #fff;
  box-shadow: var(--paper-shadow);
}
.paper img { display: block; width: 100%; height: 100%; }
.paper.loading::after {
  content: "Rendering…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #9a8f86;
  font-size: 12px;
}
.paper.failed::after { content: "Could not show this page"; color: #b4232a; }
.band {
  position: absolute;
  left: 0;
  right: 0;
  background: var(--band-bg);
  border-block: 1.5px dashed var(--band-line);
  pointer-events: none;
}
.band.top { border-top: 0; }
.band.bottom { border-bottom: 0; }
.band-label {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(194, 65, 12, .9);
  color: #fff;
  font: 600 10px/16px var(--ui-font);
  white-space: nowrap;
}
.slice-hl {
  position: absolute;
  left: -3px;
  right: -3px;
  border: 2px solid var(--accent);
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s;
}
.slice-hl.show { opacity: 1; }

/* The pages of paper of the result */

.sheet-wrap { max-width: 454px; margin: 0 auto 22px; padding-left: 34px; }
.sheet-wrap .sheet-label { margin-left: 0; }
.sheet { position: relative; background: #fff; box-shadow: var(--paper-shadow); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .12s; }
body.view-both .sheet { cursor: pointer; }
body.view-both .sheet:hover, .sheet-wrap.hl .sheet { outline-color: var(--accent); }

/* A view of one pane shows the pages side by side */
body.view-original .scroller, body.view-split .scroller {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  justify-content: center;
  gap: 24px 36px;
}
body.view-original .orig, body.view-split .sheet-wrap { flex: 0 1 454px; margin: 0; }

/* The split PDF that is printed, which must be shown to be printed */
.print-frame { position: fixed; left: -10000px; top: 0; width: 600px; height: 800px; border: 0; }
.sheet-content { position: absolute; overflow: hidden; }
.sheet.has-margin .sheet-content { outline: 1px dashed var(--margin-line); }
.sheet-content img { position: absolute; top: 0; left: 0; display: block; width: 100%; max-width: none; }
.sheet .band { z-index: 1; }

.flash { animation: flash 1s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 6px var(--accent-soft), var(--paper-shadow); } }

.overlay {
  position: absolute;
  inset: 41px 0 0 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(1px);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 20px;
  z-index: 2;
}
.overlay.show { display: flex; }
.overlay.error { color: var(--rm-text); }
.overlay.error .spinner { display: none; }
.overlay p { margin: 0; max-width: 460px; white-space: pre-wrap; }
.spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state */

.empty { display: none; grid-column: 1 / -1; place-items: center; padding: 10px; overflow: auto; }
body:not(.has-files) .empty { display: grid; }
body:not(.has-files) .pane, body:not(.has-files) .gutter { display: none; }
.drop-card {
  max-width: 560px;
  width: 100%;
  padding: 44px 36px;
  text-align: center;
  background: var(--surface);
  border: 2px dashed var(--border-strong);
  border-radius: 16px;
  transition: border-color .15s, background .15s;
}
body.dragging .drop-card { border-color: var(--accent); background: var(--accent-soft); }
.drop-icon { width: 44px; height: 44px; color: var(--accent); stroke-width: 1.6; margin-bottom: 12px; }
.drop-card h1 { font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.drop-card > p { margin: 8px auto 0; color: var(--muted); max-width: 420px; }
.drop-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.drop-card > p.formats { margin-top: 16px; font-size: 12.5px; }
.privacy { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px !important; font-size: 12px; }
.privacy svg { width: 14px; height: 14px; }

body.has-files.dragging .workspace { outline: 2px dashed var(--accent); outline-offset: -6px; border-radius: 14px; }

/* Status bar */

.status {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 34px;
  padding: 6px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--muted);
}
.status-left { white-space: nowrap; }
.status-left strong { color: var(--text); font-weight: 600; }
.status-messages { flex: 1; min-width: 0; display: flex; gap: 14px; overflow: hidden; }
.msg { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg.warning { color: var(--warn); }
.msg.error { color: var(--rm-text); }
.msg svg { width: 14px; height: 14px; }
.credits { display: flex; align-items: center; gap: 6px; flex: none; white-space: nowrap; font-size: 12px; }
.about-small a, .credit-link span {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 2px;
}
.about-small a { color: inherit; }
.about-small a:hover, .credit-link:hover { color: var(--accent); }
.credit-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.credit-link svg { width: 13px; height: 13px; }
svg.icon-fill { fill: currentColor; stroke: none; }
.status-right { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.dot.ready { background: #2da44e; }
.dot.error { background: var(--rm-bar); }

/* Dialogs */

.dialog {
  width: min(580px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.dialog[open] { display: flex; flex-direction: column; }
.dialog::backdrop { background: rgba(14, 10, 8, .45); }
.dialog-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 6px 20px; }
.dialog-head h2 { font-size: 16px; font-weight: 650; }
.about-body { display: flex; flex-direction: column; gap: 14px; padding: 6px 20px 22px; overflow: auto; }
.about-body p { margin: 0; }
.about-links { display: grid; gap: 8px; }
.about-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .12s, background .12s;
}
.about-link:hover { border-color: var(--accent); background: var(--accent-soft); }
.about-link svg { width: 20px; height: 20px; margin-top: 1px; color: var(--accent); }
.about-link strong { display: block; font: 600 13px var(--code-font); }
.about-link small { display: block; font-size: 12.5px; color: var(--muted); }
.about-small { font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.spacer { flex: 1; }

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 52px;
  transform: translate(-50%, 12px);
  max-width: min(520px, calc(100vw - 32px));
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 10;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Smaller screens */

@media (max-width: 1100px) {
  .legend { display: none; }
  .card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Small windows scroll the page instead of squeezing the panes */
@media (max-width: 1100px), (max-height: 700px) {
  body { height: auto; min-height: 100%; }
  .workspace { flex: none; }
  .pane { height: max(420px, calc(100vh - 110px)); }
  .empty { padding-bottom: 24px; }
}
@media (max-width: 900px) {
  .status { flex-wrap: wrap; row-gap: 2px; }
  .credits { order: 3; flex-basis: 100%; }
  .topbar { flex-wrap: wrap; }
  .sources { order: 3; flex: 1 1 auto; }
  .views { order: 4; }
  .actions { margin-left: auto; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .gutter { flex-direction: row; }
  .gutter::before, .gutter::after { width: auto; height: 1px; }
  .pane { height: max(360px, 75vh); }
}
@media (max-width: 700px) {
  .card { grid-template-columns: minmax(0, 1fr); }
  .pane-head { flex-wrap: wrap; row-gap: 4px; }
  .drop-card { padding: 32px 20px; }
  .drop-actions { flex-direction: column; }
  .drop-actions .btn { justify-content: center; }
}
@media (max-width: 560px) {
  .segmented.views span { gap: 0; font-size: 0; padding: 5px 10px; }
  #print { padding: 0 8px; font-size: 0; gap: 0; }
}
@media (max-width: 480px) {
  .brand .tagline { display: none; }
  .options, .workspace, .topbar, .status { padding-left: 12px; padding-right: 12px; }
  .scroller { padding-inline: 8px; }
}
