/* SPDX-License-Identifier: AGPL-3.0-only */
/* kineuro design DNA, as on kineuro.se and Bifrost: one plum, one serif, rules not shadows, a lot of quiet. */
:root {
  --plum: #4f0433;
  --plum-hover: #7a1f5a;
  --plum-tint: #efe3ea;
  --ink: #1c1a1f;
  --ink-soft: #3e3944;
  --muted: #6b6470;
  --rule: #e4e1dc;
  --ground: #f6f5f2;
  --panel: #ece9e4;
  --surface: #ffffff;
  --ok: #1f6e43;
  --warn: #b9621c;
  --bad: #a4232b;
  --ok-bg: #e1f0e7;
  --warn-bg: #fbeedf;
  --bad-bg: #f8e1e2;
  --link: #4f0433;
  --on-plum: #f6f5f2;
  /* entry types: a validated categorical set (light), always shown with a shape and a word */
  --t-decision: #8a2f6e;
  --t-action: #2a78d6;
  --t-result: #1baf7a;
  --t-finding: #eb6834;
  --t-question: #4a3aa7;
  --t-milestone: #eda100;
  --bar: #4f0433;
  --serif: "IBM Plex Serif", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --max: 1440px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #141416;
    --surface: #222226;
    --panel: #2a2a2f;
    --ink: #eceae6;
    --ink-soft: #c9c6c1;
    --muted: #93909a;
    --rule: #333238;
    --plum-tint: #2e1c29;
    --plum-hover: #6b1a4c;
    --link: #b57ca1;
    --ok: #7fcb9a;
    --ok-bg: #1c3327;
    --warn: #e3a46a;
    --warn-bg: #3a2a1a;
    --bad: #e58a90;
    --bad-bg: #3a1f22;
    --t-decision: #c56aa6;
    --t-action: #3987e5;
    --t-result: #199e70;
    --t-finding: #d95926;
    --t-question: #9085e9;
    --t-milestone: #c98500;
    --bar: #b57ca1;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #141416;
  --surface: #222226;
  --panel: #2a2a2f;
  --ink: #eceae6;
  --ink-soft: #c9c6c1;
  --muted: #93909a;
  --rule: #333238;
  --plum-tint: #2e1c29;
  --plum-hover: #6b1a4c;
  --link: #b57ca1;
  --ok: #7fcb9a;
  --ok-bg: #1c3327;
  --warn: #e3a46a;
  --warn-bg: #3a2a1a;
  --bad: #e58a90;
  --bad-bg: #3a1f22;
  --t-decision: #c56aa6;
  --t-action: #3987e5;
  --t-result: #199e70;
  --t-finding: #d95926;
  --t-question: #9085e9;
  --t-milestone: #c98500;
  --bar: #b57ca1;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  color: var(--plum-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
}
h3 {
  font-size: 1.15rem;
}
p {
  margin: 0;
}
code,
pre {
  font-family: var(--mono);
  font-size: 0.86em;
}
code {
  background: var(--panel);
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}
pre {
  background: var(--panel);
  padding: 0.9rem 1rem;
  overflow-x: auto;
  border-top: 2px solid var(--ink);
  margin: 0.8rem 0;
}
pre code {
  background: none;
  padding: 0;
  overflow-wrap: normal;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  width: 100%;
}
.pad {
  padding: 40px 0;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: var(--mono);
  font-size: 0.88em;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* header and footer */
header.top {
  border-bottom: 1px solid var(--rule);
}
header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 26px;
  height: 26px;
  display: block;
}
.brand .name {
  font-family: var(--serif);
  font-size: 22px;
}
.brand .sub {
  font-size: 12px;
  color: var(--muted);
}
nav.top {
  display: flex;
  gap: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  flex-wrap: wrap;
  align-items: center;
}
nav.top a {
  color: var(--ink);
}
nav.top form {
  display: inline;
}
.theme {
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px;
  color: var(--muted);
  display: inline-flex;
  line-height: 0;
}
.theme:hover {
  color: var(--link);
}
.theme svg {
  display: none;
}
.theme .i-sys {
  display: block;
}
:root[data-theme="light"] .theme .i-sys,
:root[data-theme="dark"] .theme .i-sys {
  display: none;
}
:root[data-theme="light"] .theme .i-light {
  display: block;
}
:root[data-theme="dark"] .theme .i-dark {
  display: block;
}
main {
  flex: 1;
  padding-bottom: 48px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
}

/* controls */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--plum);
  color: var(--on-plum);
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--plum);
  cursor: pointer;
}
.button:hover {
  background: var(--plum-hover);
  border-color: var(--plum-hover);
  color: var(--on-plum);
  text-decoration: none;
}
.button.ghost {
  background: none;
  color: var(--ink);
  border-color: var(--rule);
}
.button.ghost:hover {
  color: var(--link);
  border-color: var(--link);
}
.button.small {
  padding: 5px 10px;
  font-size: 13px;
}
.button:disabled {
  opacity: 0.5;
  cursor: default;
}
.linkish {
  background: none;
  border: none;
  padding: 0;
  color: var(--link);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
.linkish:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.linkish.danger {
  color: var(--bad);
}
input[type="text"],
input[type="search"],
input[type="date"],
select,
textarea {
  padding: 8px 10px;
  border: 1px solid var(--rule);
  background: var(--surface);
  width: 100%;
  min-width: 0;
}
textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.5;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 1px;
}
label.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
label.field small {
  font-weight: 400;
  color: var(--muted);
}
.error {
  color: var(--bad);
  font-size: 14px;
}
.tag {
  display: inline-block;
  background: var(--panel);
  color: var(--ink-soft);
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.tag.open {
  background: var(--plum-tint);
  color: var(--link);
}
.tag.stale {
  background: var(--warn-bg);
  color: var(--warn);
}

/* the list of timelines */
.head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  padding: 36px 0 20px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.card {
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
  min-width: 0;
}
.card:hover {
  border-color: var(--link);
  text-decoration: none;
  color: var(--ink);
}
.card .counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 13px;
  color: var(--muted);
}
.new {
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 18px;
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
  max-width: 640px;
}

/* type markers: a colour, a shape and a word */
.mk {
  width: 12px;
  height: 12px;
  display: inline-block;
  flex: none;
  background: var(--c);
}
.mk.decision {
  transform: rotate(45deg) scale(0.86);
}
.mk.action {
  border-radius: 50%;
}
.mk.result {
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--c);
}
.mk.finding {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.mk.question {
  border-radius: 50%;
  background: var(--surface);
  border: 2px dashed var(--c);
}
.decision {
  --c: var(--t-decision);
}
.action {
  --c: var(--t-action);
}
.result {
  --c: var(--t-result);
}
.finding {
  --c: var(--t-finding);
}
.question {
  --c: var(--t-question);
}
.milestone {
  --c: var(--t-milestone);
}
.typename {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}

/* a timeline */
.tl-head {
  padding: 32px 0 18px;
  display: grid;
  gap: 10px;
}
.tl-head .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tl-head .lede {
  color: var(--ink-soft);
  max-width: 50rem;
  font-size: 1.05rem;
}
.picture {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  margin: 8px 0 18px;
}
.picture > section {
  padding: 14px 18px 16px 0;
  min-width: 0;
}
.picture > section + section {
  padding-left: 18px;
  border-left: 1px solid var(--rule);
}
.picture h3 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.picture .md {
  font-size: 14.5px;
}
.picture .md ul {
  padding-left: 1.1em;
}
.picture .qlist {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.picture .qlist li {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.picture .qlist .mk {
  transform: translateY(1px);
}
.picture-wrap {
  margin: 8px 0 18px;
}
.picture-wrap .picture {
  margin: 0;
}
.picture-tools {
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: 13px;
  padding-top: 6px;
}
.picture.collapsed {
  display: block;
  cursor: pointer;
}
.picture.collapsed > section:not(:first-child) {
  display: none;
}
.picture.collapsed > section:first-child {
  padding: 10px 0 10px;
}
.picture.collapsed > section:first-child h3 {
  margin-bottom: 4px;
}
.picture.collapsed .md {
  max-height: calc(2 * 1.6em);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent);
  mask-image: linear-gradient(to bottom, #000 45%, transparent);
}
.picture.collapsed .md > * {
  margin-top: 0;
}
.picture.collapsed:hover h3 {
  color: var(--link);
}
.picture-edit {
  display: grid;
  gap: 10px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 5px 10px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
}
.chip[aria-pressed="false"] {
  opacity: 0.45;
}
.chip .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) repeat(2, minmax(0, 0.9fr)) auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}
.filters label {
  font-size: 12px;
  color: var(--muted);
  display: grid;
  gap: 3px;
}
.shown {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 12px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.shown label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
}

.rail {
  position: relative;
  padding-left: 132px;
}
.rail::before {
  content: "";
  position: absolute;
  left: 111px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--rule);
}
/* a week: its number in the gutter, its days on a rule across the line */
.period {
  position: relative;
  margin: 28px 0 4px;
  padding: 0 0 4px 12px;
  border-bottom: 1px solid var(--rule);
}
.period:first-child {
  margin-top: 8px;
}
.period h2 {
  font-size: 1.2rem;
  position: absolute;
  left: -132px;
  width: 100px;
  text-align: right;
  top: -3px;
}
.period .era {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.entry {
  position: relative;
  border: 1px solid transparent;
  border-bottom-color: var(--rule);
  padding: 10px 12px 12px;
  min-width: 0;
}
.entry {
  cursor: pointer;
}
.entry .detail {
  cursor: auto;
}
.entry:hover {
  background: var(--surface);
}
.entry.open {
  background: var(--surface);
  border-color: var(--rule);
  border-left: 3px solid var(--c);
  margin: 10px 0;
  padding-bottom: 18px;
}
.entry.open.active {
  border-color: var(--link);
  border-left: 3px solid var(--c);
}
.entry.open.active > .mk {
  outline-color: var(--plum-tint);
}
.entry > .mk {
  position: absolute;
  left: -27px;
  top: 16px;
  outline: 3px solid var(--ground);
}
.entry .when {
  position: absolute;
  left: -132px;
  width: 92px;
  text-align: right;
  top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.entry .line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.entry .title {
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-size: 15.5px;
  line-height: 1.35;
}
.entry .title:hover {
  color: var(--link);
}
.entry .summary {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entry.open .summary {
  -webkit-line-clamp: unset;
  display: block;
}
.entry .meta {
  display: flex;
  gap: 6px 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
  align-items: center;
}
.entry .meta .c {
  color: var(--link);
  font-weight: 600;
}
.detail {
  margin-top: 14px;
  display: grid;
  gap: 14px;
  min-width: 0;
}
.facts {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  border-top: 2px solid var(--ink);
}
.facts > dt,
.facts > dd {
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
  min-width: 0;
}
.facts > dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding-right: 12px;
}
.md {
  font-size: 14.5px;
  line-height: 1.6;
  min-width: 0;
  overflow-wrap: break-word;
}
.md > :first-child {
  margin-top: 0;
}
.md p,
.md ul,
.md ol,
.md blockquote {
  margin: 0.55rem 0;
}
.md ul,
.md ol {
  padding-left: 1.3em;
}
.md li {
  margin: 0.2rem 0;
}
.md h3,
.md h4,
.md h5,
.md h6 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  margin: 1rem 0 0.3rem;
}
.md blockquote {
  border-left: 3px solid var(--plum);
  padding: 2px 0 2px 14px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 15px;
}
.md .table {
  overflow-x: auto;
  margin: 0.7rem 0;
}
.md table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13.5px;
  border-top: 2px solid var(--ink);
}
.md th,
.md td {
  text-align: left;
  vertical-align: top;
  padding: 6px 8px;
  border-bottom: 1px solid var(--rule);
}
.md th {
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.md .mention {
  color: var(--link);
  font-weight: 600;
}
details.body > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--link);
}
details.body[open] > summary {
  margin-bottom: 8px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
}
.metric {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}
.metric .v {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.1;
}
.metric .v small {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-left: 3px;
}
.metric .l {
  font-size: 12.5px;
  color: var(--ink-soft);
}
.metric .n {
  font-size: 12px;
  color: var(--muted);
}
.chart {
  min-width: 0;
}
.chart h4 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
}
.chart svg {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  overflow: visible;
}
.chart .b {
  fill: var(--bar);
}
.chart .b:hover,
.chart .b.hl {
  fill: var(--plum-hover);
}
.chart text {
  fill: var(--muted);
  font: 11px var(--sans);
}
.chart text.v {
  fill: var(--ink);
  font-weight: 600;
}
.chart .axis {
  stroke: var(--rule);
}
.chart .tip {
  font-size: 12.5px;
  color: var(--ink-soft);
  min-height: 1.4em;
}
.chart details summary {
  font-size: 12.5px;
  color: var(--link);
  cursor: pointer;
}
.chart table {
  font-size: 12.5px;
  border-collapse: collapse;
}
.chart td {
  padding: 2px 12px 2px 0;
}
.rel {
  display: grid;
  gap: 4px;
  font-size: 14px;
}
.rel a {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
}
.rel .k {
  font-size: 12px;
  color: var(--muted);
  min-width: 80px;
  display: inline-block;
}
.linkrow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 14px;
}
.tools {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
}

/* the timeline and the threads beside it */
.tl-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: 32px;
  align-items: start;
}
.side {
  position: sticky;
  top: 12px;
  min-width: 0;
}
.more {
  padding: 18px 0 0 132px;
  font-size: 13px;
  min-height: 40px;
}
.chat {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  background: var(--surface);
  max-height: calc(100vh - 24px);
  min-width: 0;
}
.side .chat {
  border-top: 2px solid var(--ink);
}
.chat-empty {
  padding: 16px 18px;
  display: grid;
  gap: 6px;
}
.chat-empty h3,
.chat-head .typename {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.chat-empty p {
  font-size: 14px;
}
.chat-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--rule);
}
.chat-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.chat-head a {
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.35;
}
.chat-head .mk {
  transform: translateY(1px);
}
.chat-log {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 16px;
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 120px;
  overscroll-behavior: contain;
}
.chat-none {
  font-size: 14px;
}
.chat-foot {
  border-top: 1px solid var(--rule);
  padding: 10px 16px 12px;
}
.thread {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.thread.resolved {
  opacity: 0.8;
}
.resolved-line {
  font-size: 13px;
}
.bubble {
  justify-self: start;
  max-width: 88%;
  min-width: 0;
  background: var(--panel);
  color: var(--ink);
  padding: 7px 12px 8px;
  border-radius: 14px 14px 14px 4px;
  display: grid;
  gap: 2px;
}
.bubble.mine {
  justify-self: end;
  background: var(--plum-tint);
  border-radius: 14px 14px 4px 14px;
}
.bubble .by {
  font-size: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: baseline;
}
.bubble .by b {
  font-weight: 600;
}
.bubble .by .t {
  color: var(--muted);
}
.bubble .md {
  font-size: 14px;
  line-height: 1.5;
}
.bubble .md p {
  margin: 0.25rem 0;
}
.bubble .gone {
  font-size: 13px;
  font-style: italic;
}
.bubble .acts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.bubble .acts .linkish {
  font-size: 12px;
}
.replies {
  margin-left: 20px;
  padding-left: 10px;
  border-left: 2px solid var(--rule);
  display: grid;
  gap: 6px;
  min-width: 0;
}
.thread > .reply {
  justify-self: start;
  margin-left: 32px;
  font-size: 12.5px;
}
.composer {
  display: grid;
  gap: 6px;
}
.composer textarea {
  min-height: 44px;
  border-radius: 10px;
  padding: 8px 12px;
}
.composer.inline {
  margin-left: 32px;
}
.composer .row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
/* under the entry, on narrow screens */
.thread-slot:empty {
  display: none;
}
.thread-slot .chat {
  border: none;
  border-top: 1px solid var(--rule);
  background: none;
  max-height: none;
}
.thread-slot .chat-head {
  display: none;
}
.thread-slot .chat-log {
  padding: 12px 0;
  overflow: visible;
  min-height: 0;
}
.thread-slot .chat-foot {
  padding: 10px 0 0;
}

/* dialogs */
dialog {
  border: 1px solid var(--rule);
  background: var(--ground);
  color: var(--ink);
  padding: 0;
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
}
dialog::backdrop {
  background: rgba(20, 16, 20, 0.45);
}
dialog form {
  display: grid;
  gap: 12px;
  padding: 20px;
}
dialog .grid2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
dialog .foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}
.grants {
  display: grid;
  gap: 6px;
}
.grant {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 120px auto;
  gap: 8px;
  align-items: center;
}
.signin {
  max-width: 520px;
  padding: 48px 0;
  display: grid;
  gap: 16px;
}
.people {
  display: grid;
  gap: 8px;
}
.people button {
  justify-content: space-between;
  width: 100%;
}

@media (max-width: 1099px) {
  .tl-body {
    display: block;
  }
  .side {
    display: none;
  }
}
@media (max-width: 900px) {
  .picture {
    grid-template-columns: 1fr;
  }
  .picture > section + section {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--rule);
  }
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filters .q {
    grid-column: 1 / -1;
  }
}
@media (max-width: 700px) {
  .brand .sub {
    display: none;
  }
  .rail {
    padding-left: 22px;
  }
  .rail::before {
    left: 5px;
  }
  .entry > .mk {
    left: -23px;
  }
  .entry .when {
    position: static;
    width: auto;
    text-align: left;
    display: inline;
    margin-right: 8px;
  }
  .period h2 {
    position: static;
    width: auto;
    text-align: left;
  }
  .period {
    display: flex;
    gap: 10px;
    align-items: baseline;
    padding-left: 0;
  }
  .more {
    padding-left: 22px;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .facts > dt {
    border-bottom: none;
    padding-bottom: 0;
  }
  dialog .grid2 {
    grid-template-columns: 1fr;
  }
  .grant {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .filters {
    grid-template-columns: 1fr;
  }
  .entry {
    padding-left: 8px;
    padding-right: 8px;
  }
}
