/* gree — an evening paper. Serif for reading, the system face for the UI,
   hairlines instead of boxes, one ink colour per source. */

:root {
  --paper: #FDFCFA;
  --ink: #16130F;
  --body: #2B2722;
  --soft: #6B645B;
  --rule: #E4DED4;
  --rule-soft: #EFEBE4;
  --sel: #F3EEE5;
  --field: #FFFFFF;
  --desk: #F1EDE6;
  --photo: #3A352F;
  --mark: #C8401E;
  --bad: #B3261E;

  --i0: #B5401E; --t0: #F6E3DC;
  --i1: #2B5BA8; --t1: #E1E9F6;
  --i2: #4F7A2E; --t2: #E6EEDD;
  --i3: #7A3E73; --t3: #F0E3EE;
  --i4: #8A5F0E; --t4: #F3E9D5;
  --i5: #1F6F78; --t5: #DDEEF0;

  --serif: Newsreader, "Iowan Old Style", Charter, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141210;
    --ink: #EDE7DC;
    --body: #D9D2C6;
    --soft: #A39A8D;
    --rule: #2E2A25;
    --rule-soft: #24211D;
    --sel: #221E1A;
    --field: #1A1815;
    --desk: #1C1916;
    --photo: #4A443C;
    --mark: #F07A52;
    --bad: #F28B82;

    --i0: #F0906E; --t0: #3A2219;
    --i1: #8FB0EA; --t1: #1E2A3D;
    --i2: #A3C77F; --t2: #232E1A;
    --i3: #D79BCF; --t3: #33212F;
    --i4: #E0B862; --t4: #33281A;
    --i5: #72C2CB; --t5: #18302F;
  }
}

.ink-0 { --c: var(--i0); --t: var(--t0); }
.ink-1 { --c: var(--i1); --t: var(--t1); }
.ink-2 { --c: var(--i2); --t: var(--t2); }
.ink-3 { --c: var(--i3); --t: var(--t3); }
.ink-4 { --c: var(--i4); --t: var(--t4); }
.ink-5 { --c: var(--i5); --t: var(--t5); }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
kbd { font: 12px var(--sans); padding: 0 5px; border: 1px solid var(--rule); border-radius: 3px; }
.i { width: 16px; height: 16px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; border-radius: 3px; }

.brand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ---- avatars ---- */

.av {
  --size: 32px;
  flex: none;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--t, var(--sel));
  color: var(--c, var(--soft));
  font-size: calc(var(--size) * 0.34);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.av img { width: 100%; height: 100%; object-fit: cover; }
.src { color: var(--c, var(--soft)); font-weight: 600; }

/* ---- layout ---- */

.app {
  display: grid;
  grid-template-columns: 232px minmax(320px, 420px) minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
}
.app-sources { grid-template-columns: 232px minmax(0, 1fr); }
.side, .list, .reader, .sources { overflow-y: auto; overscroll-behavior: contain; }
.list, .side { border-right: 1px solid var(--rule); }

/* ---- sidebar ---- */

.side { display: flex; flex-direction: column; padding: 30px 20px 22px 24px; }
.today { margin: 8px 0 0; font-size: 12.5px; color: var(--soft); }
.views { margin-top: 26px; display: flex; flex-direction: column; gap: 1px; }
.views a, .source, .group-name, .side-foot a, .side-foot button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 4px 8px;
  margin: 0 -8px;
  border-radius: 6px;
  color: var(--soft);
}
.views a:hover, .source:hover, .side-foot a:hover, .side-foot button:hover { background: var(--rule-soft); color: var(--ink); }
.views a[aria-current], .source[aria-current], .side-foot a[aria-current] { background: var(--sel); color: var(--ink); font-weight: 600; }
.views a span, .source > span:not(.av), .group-name span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side b { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--mark); }
.side b:empty { display: none; }
.group { margin-top: 22px; }
.group-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 2px;
}
.group-name[aria-current] { text-decoration: underline; text-decoration-color: var(--mark); text-underline-offset: 4px; }
.group-name b { font-family: var(--sans); font-style: normal; }
.source { font-size: 13.5px; color: var(--body); gap: 9px; }
.source .av { --size: 22px; }
.source.has-error span::after { content: " · eroare"; color: var(--bad); font-size: 12px; }
.side-foot { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; gap: 1px; font-size: 13px; }
.side-foot form { margin: 0; display: contents; }
.side-foot button { border: 0; background: none; text-align: left; width: calc(100% + 16px); }

/* ---- list ---- */

.masthead { display: none; }
.list-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 26px 16px 14px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.list-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.count { font-size: 12.5px; color: var(--soft); white-space: nowrap; }
.list-head .count { transform: translateY(2px); }
.icons { margin-left: auto; display: flex; gap: 2px; }
.icons form { margin: 0; }
.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--soft);
}
.icon-btn:hover { background: var(--rule-soft); color: var(--ink); }
.icon-btn .i { width: 18px; height: 18px; }
.icon-btn[data-busy] .i { animation: spin 1s linear infinite; color: var(--mark); }
@keyframes spin { to { transform: rotate(360deg); } }

.day {
  margin: 0;
  padding: 20px 24px 4px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: var(--soft);
}
.row {
  display: flex;
  gap: 12px;
  padding: 14px 18px 15px 24px;
  border-bottom: 1px solid var(--rule-soft);
}
.row:hover { background: color-mix(in srgb, var(--sel) 55%, transparent); }
.row.selected { background: var(--sel); }
.row-av { position: relative; flex: none; height: 32px; }
.dot {
  position: absolute;
  left: -14px;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.unread .dot { background: var(--mark); }
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-meta { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 12.5px; color: var(--soft); }
.row-meta .src { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.when { flex: none; }
.saved-mark { display: inline-flex; color: var(--mark); }
.saved-mark .i { width: 12px; height: 12px; }
.row-title {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.28;
  color: var(--soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.unread .row-title { color: var(--ink); font-weight: 500; }
.thumb {
  position: relative;
  flex: none;
  align-self: center;
  width: 84px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--photo);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
}
.play .i { width: 22px; height: 22px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.more { display: block; padding: 18px; text-align: center; font-weight: 600; color: var(--mark); }

.empty, .reader-empty { padding: 72px 32px; text-align: center; color: var(--soft); }
.empty-title { margin: 0 0 6px; font-family: var(--serif); font-size: 24px; color: var(--ink); }
.empty p, .reader-empty p { margin: 0 0 6px; }

/* ---- reader ---- */

.reader-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 16px 32px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
}
.back { display: none; align-items: center; gap: 4px; min-height: 44px; font-size: 15px; }
.back .i { width: 20px; height: 20px; }
.reader-actions { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.reader-actions form { margin: 0; }
.tool {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  font-size: 13px;
  color: var(--soft);
}
.tool:hover { background: var(--rule-soft); color: var(--ink); }
.tool.on { color: var(--mark); }
.tool.solid { background: var(--ink); color: var(--paper); font-weight: 600; padding: 0 12px; }
.tool.solid .i { width: 14px; height: 14px; }

.story { padding: 0 32px 72px; }
.story-inner { max-width: 640px; margin: 28px auto 0; }
.byline { display: flex; align-items: center; gap: 12px; }
.byline .av { --size: 44px; }
.by-text { display: flex; flex-direction: column; min-width: 0; }
.by-name { font-weight: 600; }
.by-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--soft); }
.by-meta .i { width: 13px; height: 13px; }
.headline {
  margin: 26px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.rule { width: 48px; margin: 26px 0; border: 0; border-top: 2px solid var(--ink); }

.prose {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.62;
  color: var(--body);
  overflow-wrap: break-word;
  hyphens: auto;
}
.prose p { margin: 0 0 1em; }
.prose > :last-child { margin-bottom: 0; }
.prose > :last-child::after {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.35em;
  background: var(--mark);
}
.prose a { color: inherit; text-decoration: underline; text-decoration-color: var(--mark); text-underline-offset: 3px; }
.prose img, .prose video { display: block; max-width: 100%; height: auto; margin: 1.2em 0; border-radius: 4px; }
.prose blockquote { margin: 1.2em 0; padding-left: 1em; font-style: italic; color: var(--soft); box-shadow: inset 2px 0 0 var(--rule); }
.prose h1, .prose h2, .prose h3 { font-weight: 500; line-height: 1.2; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2em; }
.kind-web .prose > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.1em 0 0;
  font-size: 3.3em;
  line-height: 0.8;
  font-weight: 500;
  color: var(--ink);
}

.player { max-width: 960px; margin: 8px auto 0; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.kind-youtube .prose { font-size: 17.5px; }

.desk { margin: 26px -32px 0; padding: 28px 16px; background: var(--desk); border-top: 1px solid var(--rule); }
.mail { display: block; width: 100%; max-width: 680px; min-height: 480px; margin: 0 auto; border: 0; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }

.next {
  max-width: 640px;
  margin: 56px auto 0;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--rule);
}
.next > .i { width: 22px; height: 22px; color: var(--soft); }
.next-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.next-label { font-size: 12.5px; color: var(--soft); }
.next-title { font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.next .src { font-size: 12.5px; }
.next:hover .next-title { text-decoration: underline; text-decoration-color: var(--mark); text-underline-offset: 3px; }

/* ---- sources page ---- */

.sources { padding: 26px 48px 64px; }
.sources-inner { max-width: 720px; margin: 0 auto; }
.sources-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.sources-head h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 34px; letter-spacing: -0.015em; }
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  color: var(--soft);
  cursor: pointer;
}
.link-btn:hover { color: var(--ink); }
.link-btn .i { width: 15px; height: 15px; }
.link-btn.danger { color: var(--bad); }
.note { margin: 18px 0 0; padding: 10px 14px; border-radius: 8px; font-size: 13.5px; }
.note.ok { background: var(--sel); }
.note.bad { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }

.follow-row { display: flex; gap: 8px; margin-top: 10px; }
.hint { margin: 8px 0 0; font-size: 12.5px; color: var(--soft); }
.hint a { text-decoration: underline; text-underline-offset: 2px; }

.btn {
  height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.btn.solid { background: var(--ink); color: var(--paper); }
.btn:disabled { opacity: .6; cursor: progress; }

input:not([type=file]) {
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--field);
  font-size: 14px;
}
input:focus { outline: none; border-color: var(--ink); }

.group-block { margin-top: 38px; }
.group-block h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 4px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 21px;
}
.group-block h2 .count { font-family: var(--sans); font-style: normal; }
.src-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
.src-row .av { --size: 36px; }
a.src-name:hover { text-decoration: underline; text-decoration-color: var(--mark); text-underline-offset: 3px; }
.lead-hint { margin-top: 18px; font-size: 13.5px; }
.lead-hint code, .manual code { font: 0.9em ui-monospace, Menlo, monospace; padding: 1px 5px; border-radius: 4px; background: var(--sel); }
.src-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.src-name { font-size: 14.5px; font-weight: 600; }
.src-status { font-size: 12.5px; color: var(--soft); }
.src-status.bad { color: var(--bad); }
.src-count { font-size: 12.5px; color: var(--soft); white-space: nowrap; }
.mailbox { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; font-size: 12.5px; }
.mailbox code { font: 13px ui-monospace, Menlo, monospace; color: var(--ink); }

/* ---- opportunities ---- */

.head-action { margin: 0 0 0 auto; }
.link-btn:disabled { opacity: .6; cursor: progress; }
.digest { margin-top: 20px; padding: 16px 18px; border-radius: 10px; background: var(--sel); }
.digest-head { display: flex; align-items: center; gap: 10px; }
.digest-icon { color: var(--i4); display: inline-flex; }
.digest-icon .i { width: 20px; height: 20px; }
.digest-title { flex: 1; font-family: var(--serif); font-size: 19px; }
.digest-text { margin: 10px 0 12px; white-space: pre-line; font-size: 14px; line-height: 1.6; color: var(--body); }
.digest form { margin: 0; }
.opp-profiles { display: flex; gap: 22px; margin-top: 26px; font-family: var(--serif); font-size: 22px; }
.opp-profiles a { color: var(--soft); }
.opp-profiles a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mark); text-underline-offset: 6px; }
.profile-goal { margin-top: 6px; max-width: 60ch; }
.opp-views { display: flex; gap: 20px; margin-top: 14px; border-bottom: 1px solid var(--rule); }
.opp-views a { padding-bottom: 9px; color: var(--soft); font-size: 14px; }
.opp-views a[aria-current] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); }
.opp { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule-soft); }
.score {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  background: var(--sel);
  color: var(--soft);
}
.score.hi { background: var(--mark); color: var(--paper); }
.score.mid { background: var(--t0); color: var(--i0); }
.opp-body { flex: 1; min-width: 0; }
.opp-meta { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; font-size: 12.5px; color: var(--soft); }
.opp-title { margin: 4px 0 0; font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.3; }
.opp-title a:hover { text-decoration: underline; text-decoration-color: var(--mark); text-underline-offset: 3px; }
.opp-summary { margin: 6px 0 0; font-family: var(--serif); font-size: 16.5px; line-height: 1.5; color: var(--body); }
.opp-reason { margin: 4px 0 0; font-size: 13px; color: var(--soft); }
.draft { margin-top: 10px; }
.draft summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink); }
.draft-text { margin: 8px 0; padding: 12px 14px; border-radius: 8px; background: var(--sel); font-family: var(--serif); font-size: 16px; line-height: 1.55; white-space: pre-line; color: var(--body); }
.opp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.opp-actions form { margin: 0; }
.opp-actions .count { margin-left: auto; }
.btn.small { height: 34px; padding: 0 12px; font-size: 13px; }
.opp-sources { margin-top: 34px; font-size: 13px; }
.opp-sources summary { cursor: pointer; color: var(--soft); }
.opp-sources ul { margin: 10px 0 0; padding-left: 1.1em; }
.opp-sources li { margin-bottom: 4px; }

/* ---- manual ---- */

.manual { max-width: 680px; margin: 0 auto; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 8px; font-size: 13px; color: var(--soft); }
.toc a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mark); text-underline-offset: 3px; }
.manual section { margin-top: 34px; scroll-margin-top: 16px; }
.manual h2 { margin: 0 0 8px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 24px; }
.manual p, .manual li, .manual dd { font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--body); }
.manual p { margin: 0 0 12px; }
.manual ul, .manual ol { margin: 0 0 12px; padding-left: 1.2em; }
.manual li { margin-bottom: 6px; }
.manual b, .manual dt { color: var(--ink); font-weight: 600; }
.manual a { text-decoration: underline; text-decoration-color: var(--mark); text-underline-offset: 3px; }
.manual pre { margin: 8px 0 0; padding: 10px 12px; overflow-x: auto; border-radius: 6px; background: var(--sel); font: 12.5px/1.5 ui-monospace, Menlo, monospace; color: var(--ink); white-space: pre-wrap; word-break: break-all; }
.manual dt { margin-top: 14px; font-family: var(--sans); font-size: 15px; }
.manual dd { margin: 4px 0 0; }
.keys { border-collapse: collapse; }
.keys td { padding: 5px 16px 5px 0; font-size: 15px; color: var(--body); }

.panel-row { display: flex; gap: 16px; align-items: flex-start; margin-top: 12px; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 10px; }
.panel-row form { margin: 0; }
.panel-row .follow-row { margin-top: 12px; }
.panel-row .follow-row input { flex: 1; min-width: 0; max-width: 260px; height: 40px; letter-spacing: 0.08em; }
.panel-row .btn { height: 40px; padding: 0 16px; font-size: 13px; }
.panel-row .link-btn { margin-top: 10px; }
.nl-icon.on { color: var(--i2); }
.qr { flex: none; width: 180px; height: 180px; border-radius: 8px; background: #fff; padding: 8px; image-rendering: pixelated; }
.secret { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.secret code { font: 15px ui-monospace, Menlo, monospace; letter-spacing: 0.04em; padding: 6px 10px; border-radius: 6px; background: var(--sel); }
.secret .link-btn { margin: 0; }
.nl-icon { color: var(--mark); }
.nl-icon .i { width: 28px; height: 28px; stroke-width: 1.5; }
.nl-body { flex: 1; min-width: 0; }
.nl-lead { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.35; }

/* ---- login ---- */

.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login form { width: min(340px, 100%); display: flex; flex-direction: column; gap: 12px; }
.brand.big { margin: 0; font-size: 56px; }
.login-sub { margin: 0 0 12px; font-family: var(--serif); font-size: 18px; line-height: 1.35; color: var(--soft); }
.login input { height: 46px; font-size: 15px; }
.mobile-only { display: none; }

/* ---- tablet: list + reader, the masthead replaces the sidebar ---- */

@media (max-width: 1099px) {
  .app { grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); }
  .app-sources { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .masthead { display: block; padding: 18px 18px 0; }
  .masthead-top { display: flex; align-items: center; }
  .masthead .icon-btn { width: 44px; height: 44px; }
  .hello { margin: 6px 0 0; font-size: 13px; color: var(--soft); }
  .people {
    display: flex;
    gap: 12px;
    margin: 16px -18px 0;
    padding: 2px 18px 14px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--rule);
  }
  .people::-webkit-scrollbar { display: none; }
  .person { flex: none; width: 60px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .ring { position: relative; border-radius: 50%; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--rule); }
  .person.fresh .ring { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--mark); }
  .person[aria-current] .ring { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
  .ring .av { --size: 52px; }
  .badge {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: var(--paper);
    box-shadow: 0 0 0 2px var(--paper);
  }
  .badge .i { width: 9px; height: 9px; }
  .person-name { width: 100%; font-size: 11.5px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--body); }
  .tabs { display: flex; gap: 22px; padding-top: 12px; overflow-x: auto; scrollbar-width: none; }
  .tabs a { padding-bottom: 9px; color: var(--soft); white-space: nowrap; }
  .tabs a[aria-current] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); }
  .list-head { position: static; padding: 16px 12px 10px 18px; border-top: 1px solid var(--rule); border-bottom-color: var(--rule); }
  .list-head h1 { font-size: 22px; }
  .desk-only { display: none; }
  .row { padding-left: 22px; }
  .day { padding-left: 22px; }
  .sources { padding: 18px 20px 56px; }
  .mobile-only { display: inline-flex; }
  .sources-inner > .back { margin: -6px 0 6px -4px; }
}

/* ---- phone: one pane at a time ---- */

@media (max-width: 759px) {
  .app { display: block; height: auto; }
  .list, .reader, .sources { overflow: visible; border: 0; }
  .has-article .list { display: none; }
  .app:not(.has-article) .reader { display: none; }
  .reader-bar { padding: 6px 6px 6px 8px; border-bottom: 1px solid var(--rule-soft); }
  .back { display: inline-flex; padding: 0 8px; }
  .tool span { display: none; }
  .tool { width: 44px; height: 44px; justify-content: center; padding: 0; }
  .tool .i { width: 20px; height: 20px; }
  .tool.solid { background: none; color: var(--soft); width: 44px; padding: 0; }
  .tool.solid .i { width: 20px; height: 20px; }
  .story { padding: 0 20px 56px; }
  .story-inner { margin-top: 18px; }
  .player { margin: 0 -20px; border-radius: 0; }
  .headline { font-size: 28px; margin-top: 18px; }
  .prose { font-size: 18px; line-height: 1.6; }
  .desk { margin: 22px -20px 0; padding: 0; }
  .mail { box-shadow: none; }
  .row { padding: 14px 16px 15px 22px; }
  .row-title { font-size: 17.5px; }
  .thumb { width: 72px; height: 42px; }
  .follow-row { flex-direction: column; }
  .btn { width: 100%; }
  .panel-row { flex-direction: column; }
  .opp-actions .btn { width: auto; }
  .opp-profiles { font-size: 19px; gap: 16px; }
  .panel-row .follow-row input { max-width: none; }
}
