/* Manifold's page, drawn as Manifold is: a wash, a sidebar, a grid of tiles
   with bars. The measures are the app's (Design.swift): radii 1.5/4/6/10,
   the bar 30, the gap 8; type 22/15/13/12/11.5/11. */

:root {
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --gap: 8px;
  --bar: 30px;
  --r-control: 6px;
  --r-surface: 10px;
  --fast: 120ms;
  --base: 160ms;
  --spatial: 240ms;

  --accent: #3373f2;
  --accent-text: #2a62d4;        /* the tint as text, 4.5:1 on a panel */
  --accent-fill: #2a62d4;        /* behind white */
  --text: #1d1d1f;
  --text-2: #666669;
  --text-3: #737376;
  --panel: #fdfdfd;
  --bar-bg: #f3f3f5;
  --sidebar: rgba(250, 250, 250, 0.78);
  --hairline: rgba(0, 0, 0, 0.12);
  --subtle: rgba(0, 0, 0, 0.08);
  --control-edge: rgba(0, 0, 0, 0.3);
  --hover: rgba(0, 0, 0, 0.055);
  --band: rgba(51, 115, 242, 0.14);
  --pill: rgba(0, 0, 0, 0.07);
  --code-page: #f6f6f6;
  --code-text: #1d1d1f;
  --sheet-1: #ececee;
  --sheet-2: #e3e3e6;
  --term: #1e1e21;
  --term-bar: #2a2a2e;
  --term-text: #e4e4e7;
  --term-dim: #8e8e93;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.10);
  --float: 0 3px 12px rgba(0, 0, 0, 0.16);
  --wash-a: #e3dcf6;
  --wash-b: #f7dde6;
  --wash-c: #fde9d2;
  --wash-d: #d9ecf7;
  --wash-ground: #f1eef0;
  color-scheme: light;
}

/* Dark: by the system, unless light was chosen; or chosen. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #3d82f6;
    --accent-text: #6ea2ff;
    --accent-fill: #2e6ad8;
    --text: #f2f2f7;
    --text-2: #adadb2;
    --text-3: #9d9da2;
    --panel: #2b2b2b;
    --bar-bg: #333336;
    --sidebar: rgba(40, 40, 42, 0.78);
    --hairline: rgba(255, 255, 255, 0.14);
    --subtle: rgba(255, 255, 255, 0.10);
    --control-edge: rgba(255, 255, 255, 0.3);
    --hover: rgba(255, 255, 255, 0.07);
    --band: rgba(61, 130, 246, 0.30);
    --pill: rgba(255, 255, 255, 0.10);
    --code-page: #2d2d2d;
    --code-text: #e8e8e8;
    --sheet-1: #3a3a3d;
    --sheet-2: #444448;
    --term: #161618;
    --term-bar: #232326;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    --float: 0 3px 14px rgba(0, 0, 0, 0.45);
    --wash-a: #2b2045;
    --wash-b: #3d1f32;
    --wash-c: #3b2a17;
    --wash-d: #15304a;
    --wash-ground: #18171b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent: #3d82f6;
  --accent-text: #6ea2ff;
  --accent-fill: #2e6ad8;
  --text: #f2f2f7;
  --text-2: #adadb2;
  --text-3: #9d9da2;
  --panel: #2b2b2b;
  --bar-bg: #333336;
  --sidebar: rgba(40, 40, 42, 0.78);
  --hairline: rgba(255, 255, 255, 0.14);
  --subtle: rgba(255, 255, 255, 0.10);
  --control-edge: rgba(255, 255, 255, 0.3);
  --hover: rgba(255, 255, 255, 0.07);
  --band: rgba(61, 130, 246, 0.30);
  --pill: rgba(255, 255, 255, 0.10);
  --code-page: #2d2d2d;
  --code-text: #e8e8e8;
  --sheet-1: #3a3a3d;
  --sheet-2: #444448;
  --term: #161618;
  --term-bar: #232326;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  --float: 0 3px 14px rgba(0, 0, 0, 0.45);
  --wash-a: #2b2045;
  --wash-b: #3d1f32;
  --wash-c: #3b2a17;
  --wash-d: #15304a;
  --wash-ground: #18171b;
  color-scheme: dark;
}

/* The figure in the matching appearance. */
.only-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block; }
  :root:not([data-theme="light"]) .only-light { display: none; }
}
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 13px/1.45 var(--ui);
  color: var(--text);
  background: var(--wash-ground);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The wash: a few pools of colour, placed afresh each day (site.js). */
.wash {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(42% 52% at var(--p1x, 12%) var(--p1y, 18%), var(--wash-a), transparent 70%),
    radial-gradient(40% 48% at var(--p2x, 82%) var(--p2y, 12%), var(--wash-b), transparent 70%),
    radial-gradient(46% 50% at var(--p3x, 70%) var(--p3y, 88%), var(--wash-c), transparent 70%),
    radial-gradient(38% 44% at var(--p4x, 20%) var(--p4y, 85%), var(--wash-d), transparent 70%),
    var(--wash-ground);
}

/* ---- The window ------------------------------------------------------ */

.window {
  display: flex;
  height: 100vh;
  height: 100dvh;
  padding: var(--gap);
  gap: var(--gap);
}

.sidebar {
  flex: 0 0 228px;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-surface);
  background: var(--sidebar);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 0.5px solid var(--hairline);
  box-shadow: var(--float);
  min-height: 0;
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 6px 14px; }
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; display: block; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }

.icon-button {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border: 0; padding: 0;
  border-radius: var(--r-control);
  background: transparent; color: var(--text-2); cursor: pointer;
}
.icon-button:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.icon-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.icon-button svg .fill { fill: currentColor; stroke: none; }

.host-row { display: flex; align-items: center; gap: 7px; padding: 8px 14px 4px; font-weight: 600; font-size: 13px; }
.host-row svg { width: 15px; height: 15px; fill: none; stroke: var(--text-2); stroke-width: 1.3; }

.tree { flex: 1; overflow: auto; padding: 2px 6px 8px; min-height: 0; }
.row {
  position: relative;
  display: flex; align-items: center; gap: 7px;
  width: 100%; height: 26px; padding: 0 8px 0 10px;
  border: 0; border-radius: var(--r-control);
  background: transparent; text-align: left; cursor: pointer;
  font-size: 13px; color: var(--text);
}
.row:hover { background: var(--hover); }
.row.chosen { background: var(--band); }
.row .sym { width: 14px; height: 14px; flex: none; color: var(--text-2); }
.row .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.space { font-weight: 600; }
.row.space::before { /* the current space, barred at its left */
  content: ""; position: absolute; left: 1px; top: 6px; bottom: 6px; width: 2.5px; border-radius: 1.5px; background: var(--accent);
}
.row.leaf { padding-left: 24px; }
.row.behind .label { color: var(--text-2); }
.stack-group { margin: 2px 0 2px 16px; border: 1px dashed var(--control-edge); border-radius: var(--r-control); padding: 1px 0; }
.stack-group .row.leaf { padding-left: 8px; }

.sidebar-foot { padding: 6px; border-top: 0.5px solid var(--subtle); }
.foot-row {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 28px; padding: 0 8px;
  border: 0; border-radius: var(--r-control); background: transparent; color: var(--text-2); cursor: pointer; font-weight: 500;
}
.foot-row:hover { background: var(--hover); color: var(--text); }
.foot-row svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.foot-row span:first-of-type { flex: 1; text-align: left; }
.pill {
  display: inline-block; min-width: 18px; height: 16px; padding: 0 5px; border-radius: 8px;
  background: var(--pill); color: var(--text-2);
  font: 500 10.5px/16px var(--ui); font-variant-numeric: tabular-nums; text-align: center;
}
.foot-buttons { display: flex; align-items: center; gap: 4px; padding: 4px 4px 2px; }
.theme-name { flex: 1; font-size: 11px; color: var(--text-3); }

.mobile-head { display: none; }

/* ---- The grid ----------------------------------------------------------- */

.grid {
  position: relative;
  flex: 1;
  display: flex;
  min-width: 0;
  min-height: 0;
}
.column {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.col-gap, .row-gap { flex: none; position: relative; z-index: 2; }
.col-gap { width: var(--gap); cursor: col-resize; }
.row-gap { height: var(--gap); cursor: row-resize; }
.col-gap:hover::after, .row-gap:hover::after, .dragging::after {
  content: ""; position: absolute; background: var(--accent); opacity: 0.35; border-radius: 1px;
}
.col-gap:hover::after, .col-gap.dragging::after { left: 3px; width: 2px; top: 20%; bottom: 20%; }
.row-gap:hover::after, .row-gap.dragging::after { top: 3px; height: 2px; left: 20%; right: 20%; }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: var(--bar);
  border-radius: var(--r-surface);
  background: var(--panel);
  box-shadow: var(--shadow), 0 0 0 0.5px var(--hairline);
  transition: box-shadow var(--base);
}
.tile.focused { box-shadow: var(--shadow), 0 0 0 1.5px var(--accent); }
.tile.flash { animation: flash 700ms ease-out; }
@keyframes flash { 0% { box-shadow: var(--shadow), 0 0 0 4px var(--band); } 100% { box-shadow: var(--shadow), 0 0 0 1.5px var(--accent); } }
.tile.arriving { animation: arrive var(--spatial) cubic-bezier(0.2, 0.9, 0.3, 1.15); }
@keyframes arrive { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }

/* Stacked behind: sheets peeking out above the bar, each clickable. */
.sheets { position: absolute; left: 0; right: 0; bottom: 100%; height: 10px; }
.sheet {
  position: absolute; height: 14px; bottom: -6px; border-radius: 6px 6px 0 0;
  border: 0.5px solid var(--control-edge); border-bottom: 0; cursor: pointer;
}
.sheet:nth-child(1) { left: 10px; right: 10px; background: var(--sheet-1); bottom: -4px; }
.sheet:nth-child(2) { left: 20px; right: 20px; background: var(--sheet-2); bottom: -1px; }
.sheet:hover { border-color: var(--accent); }
.tile.stacked { margin-top: 8px; }

/* The bar. */
.bar {
  flex: none;
  display: flex; align-items: center; gap: 6px;
  height: var(--bar); padding: 0 6px 0 8px;
  border-radius: var(--r-surface) var(--r-surface) 0 0;
  background: var(--bar-bg);
  cursor: default; user-select: none; -webkit-user-select: none;
}
.tile.collapsed .bar { border-radius: var(--r-surface); }
.bar .sym-button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; padding: 0; border-radius: 5px; background: transparent; color: var(--text-2); cursor: pointer; }
.bar .sym-button:hover { background: var(--hover); }
.bar .sym { width: 14px; height: 14px; }
.bar .title { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.bar .place { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 0; min-width: 0; }
.bar .note { color: var(--text-3); font-size: 11px; }
.bar .tools { display: flex; gap: 2px; flex: none; }
.bar .tools .icon-button { width: 22px; height: 22px; }
.bar .tools .icon-button svg { width: 12px; height: 12px; stroke-width: 1.6; }

/* A block's link: one capsule, on the bar and in a note. */
.capsule {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  height: 20px; padding: 0 8px; border-radius: 10px;
  border: 0.5px solid var(--hairline); background: var(--panel);
  font: 500 11px var(--ui); color: var(--text); cursor: pointer; white-space: nowrap;
}
.capsule:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); text-decoration: none; }
.capsule .arrow { color: var(--text-2); font-size: 10px; }
.capsule .sym { width: 11px; height: 11px; color: var(--text-2); }

/* A link, as the bar shows it: the other block's face, a chevron in it
   on the side it points; rested on, its summary card beneath. */
.face {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 1px; flex: none;
  width: 22px; height: 22px; border-radius: var(--r-control);
  border: 0.5px solid var(--hairline); background: var(--panel); color: var(--text-2); cursor: pointer;
}
.face:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); text-decoration: none; }
.face .sym { width: 12px; height: 12px; }
.face .dir { display: grid; place-items: center; width: 5px; height: 9px; }
.face .dir svg { width: 5px; height: 9px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.link-card {
  position: absolute; z-index: 6; display: flex; gap: 8px; padding: 9px 12px 10px;
  border-radius: var(--r-surface); background: var(--panel);
  box-shadow: var(--float), 0 0 0 0.5px var(--hairline); pointer-events: none;
  animation: card-in var(--fast) ease-out;
}
@keyframes card-in { from { opacity: 0; transform: translateY(-3px); } }
.link-card .sym { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--text-2); }
.link-card .t { font-weight: 600; font-size: 13px; }
.link-card .t .where { font-weight: 400; color: var(--text-3); margin-left: 6px; font-size: 12px; }
.link-card .l { font-size: 12px; color: var(--text-2); }

.body { position: relative; flex: 1; min-height: 0; overflow: auto; border-radius: 0 0 var(--r-surface) var(--r-surface); }
.tile.collapsed .body, .tile.summarized .body > .content { display: none; }

/* The summary card, for a tile with only a few lines' room. */
.summary { display: none; padding: 8px 12px; }
.tile.summarized .summary { display: block; }
.summary div { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 16px; }
.summary div:first-child { color: var(--text); }
.summary.code div { font-family: var(--mono); font-size: 11.5px; }

.tile.maximized { position: absolute; inset: 0; z-index: 5; }

/* ---- Documents: notes and previews, as go.dev sets a page -------------- */

.doc { padding: 22px 28px 32px; max-width: 760px; font-size: 14.5px; line-height: 1.58; }
.doc h1 { font-size: 26px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.doc h2 { font-size: 18px; margin: 28px 0 8px; }
.doc h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin: 22px 0 6px; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 20px; }
.doc li { margin: 4px 0; }
.doc .eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-text); font-weight: 600; margin-bottom: 6px; }
.doc .lead { font-size: 18px; line-height: 1.45; color: var(--text-2); margin-bottom: 16px; }
.doc code { font-family: var(--mono); font-size: 0.88em; background: var(--code-page); padding: 1px 4px; border-radius: 4px; }
.doc pre { background: var(--code-page); color: var(--code-text); border-radius: var(--r-control); padding: 12px 14px; overflow: auto; font-size: 12.5px; line-height: 1.5; margin: 0 0 14px; }
.doc pre code { background: none; padding: 0; font-size: inherit; }
kbd {
  display: inline-block; min-width: 1.4em; padding: 0 5px; border-radius: 4px;
  border: 0.5px solid var(--control-edge); border-bottom-width: 1.5px;
  font: 500 0.82em/1.55 var(--ui); text-align: center; background: var(--panel); color: var(--text);
}
.doc .aside { margin-top: 22px; padding: 12px 14px; border-radius: var(--r-control); background: var(--band); font-size: 13.5px; }
.doc ul.toc { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 14px; }
.doc ul.links { padding-left: 18px; }
.doc table.rule { border-collapse: collapse; margin: 6px 0 16px; font-size: 14px; }
.doc table.rule td { padding: 7px 10px; border-top: 0.5px solid var(--subtle); vertical-align: top; }
.doc table.rule td:first-child { white-space: nowrap; color: var(--text-2); }

.teardown { margin: 18px 0 8px; }
.teardown img { width: 100%; height: auto; max-width: 720px; }
.teardown figcaption { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 18px; margin-top: 4px; font-size: 13px; color: var(--text-2); }
.teardown figcaption b { display: block; color: var(--text); }

.keys .key-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 26px; }
.keys dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; margin: 0; font-size: 13px; }
.keys dt { font-family: var(--ui); color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }
.keys dd { margin: 0; }

/* A terminal's body. */
.tile.lens-terminal .body { background: var(--term); }
.tile.lens-terminal .summary div { color: var(--term-dim); }
.tile.lens-terminal .summary div:first-child { color: var(--term-text); }
.term { padding: 10px 14px; font: 12.5px/1.55 var(--mono); color: var(--term-text); white-space: pre; }
.term .t-prompt { color: #7aa2f7; }
.term .t-out { color: var(--term-dim); }
.term .t-caret { display: inline-block; width: 7px; height: 14px; vertical-align: -2px; background: var(--term-text); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term .t-line::before {  /* a command's dot, as the app draws beside its prompt */
  content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #48484d; margin: 0 7px 2px -12px;
}

/* ---- With nothing open --------------------------------------------------- */

.empty { margin: auto; text-align: center; max-width: 340px; }
.empty h2 { font-size: 15px; margin: 0 0 6px; }
.empty p { color: var(--text-2); margin: 0 0 16px; }
.button {
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px; margin: 0 3px;
  border-radius: var(--r-control); border: 1px solid var(--hairline); background: var(--hover); cursor: pointer;
}
.button:hover { background: var(--subtle); }
.button.primary { background: var(--accent-fill); border-color: transparent; color: #fff; }

/* ---- Open Quickly ---------------------------------------------------------- */

.quick { position: fixed; inset: 0; z-index: 20; display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; background: rgba(0, 0, 0, 0.06); }
.quick[hidden] { display: none; }
.quick-panel {
  width: min(640px, calc(100vw - 32px));
  border-radius: 12px; background: var(--panel);
  box-shadow: var(--float), 0 0 0 0.5px var(--hairline); overflow: hidden;
}
.quick-field { width: 100%; height: 52px; padding: 0 18px; border: 0; outline: none; background: transparent; color: var(--text); font: 22px var(--ui); }
.quick-list { list-style: none; margin: 0; padding: 4px 6px; max-height: 52vh; overflow: auto; border-top: 0.5px solid var(--subtle); }
.quick-list li { display: flex; gap: 10px; padding: 8px 10px; border-radius: var(--r-control); cursor: pointer; }
.quick-list li:hover { background: var(--hover); }
.quick-list li.chosen { background: var(--band); }
.quick-list .sym { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--text-2); }
.quick-list .card { flex: 1; min-width: 0; }
.quick-list .t { font-weight: 600; font-size: 13px; }
.quick-list .t .where { font-weight: 400; color: var(--text-3); margin-left: 6px; font-size: 12px; }
.quick-list .l { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-list mark { background: none; color: var(--accent-text); font-weight: 700; }
.quick-list .tag { flex: none; align-self: center; font-size: 11px; color: var(--text-3); }
.quick-hint { padding: 7px 16px 9px; font-size: 11px; color: var(--text-3); border-top: 0.5px solid var(--subtle); }

/* A tile's menu. */
.menu {
  position: fixed; z-index: 30; min-width: 180px; padding: 5px;
  border-radius: var(--r-surface); background: var(--panel);
  box-shadow: var(--float), 0 0 0 0.5px var(--hairline);
}
.menu button { display: block; width: 100%; height: 26px; padding: 0 10px; border: 0; border-radius: var(--r-control); background: transparent; text-align: left; cursor: pointer; }
.menu button:hover { background: var(--accent-fill); color: #fff; }
.menu hr { border: 0; border-top: 0.5px solid var(--subtle); margin: 4px 6px; }
.quick-list li.none { color: var(--text-3); cursor: default; }

.noscript { position: fixed; inset: 40px; background: var(--panel); border-radius: var(--r-surface); overflow: auto; }

/* ---- A phone, or a narrow window: one column, the page scrolls ------------ */

@media (max-width: 860px) {
  body { overflow: auto; }
  .window { display: block; height: auto; padding: 0 12px 16px; }
  .sidebar { display: none; }
  .mobile-head {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; gap: 4px; height: 48px; margin: 0 -12px 8px; padding: 0 12px;
    background: var(--sidebar); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 0.5px solid var(--hairline);
  }
  .mobile-title { flex: 1; font-weight: 650; font-size: 15px; }
  .grid { display: block; }
  .column { display: block; width: auto !important; }
  .col-gap, .row-gap { display: none; }
  .tile { margin-bottom: 12px; flex: none !important; scroll-margin-top: 60px; }
  .tile.stacked { margin-top: 18px; }
  .body { overflow: visible; }
  .tile.summarized .body > .content { display: block; }
  .tile.summarized .summary { display: none; }
  .bar .tools .maximize { display: none; }
  .doc { padding: 18px 18px 24px; font-size: 15px; }
  .doc h1 { font-size: 24px; }
  .term { white-space: pre-wrap; word-break: break-word; font-size: 12px; }
  .quick { padding-top: 64px; }
}

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