@font-face {
  font-family: "IBM Plex Serif";
  src: url("fonts/ibm-plex-serif-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("fonts/ibm-plex-serif-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("fonts/ibm-plex-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("fonts/ibm-plex-serif-bolditalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Anton";
  src: url("fonts/anton.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #202726;
  --muted: #576360;
  --rule: #d8deda;
  --binding: #6b8584;
  --accent: #225c61;
  --selected: #e9f3f3;
  --code-bg: #f4f6f5;
  --font: "IBM Plex Serif", "Times New Roman", Times, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-block: 20px 180px; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 1.125rem/1.65 var(--font); }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 5; padding: 8px 14px; background: var(--ink); color: #fff; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.shell { display: grid; grid-template-columns: 280px 11px minmax(0, 1fr); min-height: 100svh; }
/* Three one-pixel rules echo the cover. A separate column keeps them visible
   while a long board list scrolls independently. */
.column-rules { position: sticky; top: 0; height: 100svh; background: repeating-linear-gradient(to right, var(--binding) 0 1px, transparent 1px 5px); }
aside { position: sticky; top: 0; height: 100svh; overflow-y: auto; padding: max(28px, env(safe-area-inset-top)) 16px 24px; scrollbar-width: thin; }
.brand { display: inline-block; margin: 0 12px 28px; font: 400 1.75rem/1.3 "Anton", Impact, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.side-title { margin: 0 12px 10px; font-size: 1rem; font-weight: 700; }
.pad-row { position: relative; margin-block: 3px; }
.pad-row:hover, .pad-row:focus-within { background: #f5f8f7; }
.pad-row.is-current { background: var(--selected); }
.pad-row.is-current::after { content: ""; position: absolute; inset-block: 0; right: 0; width: 6px; background: var(--ink); clip-path: polygon(0 0, 100% 50%, 0 100%); pointer-events: none; }
.board-link { display: block; padding: 12px 50px 13px 15px; color: var(--ink); text-decoration: none; line-height: 1.45; }
.pad-settings-link { position: absolute; top: 2px; right: 6px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--ink); opacity: 0; }
.pad-row:hover .pad-settings-link, .pad-row:focus-within .pad-settings-link, .pad-settings-link[aria-current="page"] { opacity: 1; }
.pad-settings-link:hover { background: #d5e7e7; }
.pad-settings-link:focus-visible { outline-offset: -4px; }
@media (hover: none), (pointer: coarse) { .pad-settings-link { opacity: 1; } }
.board-link .name { font-size: 1rem; font-weight: 700; overflow-wrap: anywhere; }
.board-link .meta { color: var(--muted); font-size: .875rem; margin-top: 3px; }
.board-link .who { color: var(--muted); font-size: .875rem; }
.board-link .meta, .board-link .who { overflow-wrap: anywhere; }
.board-link .owner-tag { color: var(--muted); font-size: .8125rem; font-weight: 400; }
.placeholder-label { color: var(--muted); font-size: .9375rem; }
.agent-page ul { padding-left: 1.3em; }
.side-empty { padding: 0 12px; color: var(--muted); font-size: 1rem; }
main { min-width: 0; display: flex; flex-direction: column; }
main:focus { outline: none; }
/* Keep the reading column close to the menu, even on wide screens. */
.inner { width: 100%; max-width: 1120px; margin: 0; padding-inline: 28px; }
.board-head { padding-top: max(32px, env(safe-area-inset-top)); padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.back { display: none; font-size: .9375rem; margin-bottom: 12px; }
h1 { margin: 0 0 12px; font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.2; overflow-wrap: anywhere; letter-spacing: -.025em; }
.head-meta { font-size: .9375rem; line-height: 1.6; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.head-meta strong { color: var(--ink); }
.retention { display: block; margin-top: 4px; }
.reading-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .875rem; margin-top: 12px; }
.transcript { padding-top: 4px; padding-bottom: 36px; flex: 1; }
.group { --h: 210; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); }
.group:first-child { margin-top: 0; border-top: 0; }
.group-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; padding-bottom: 8px; }
.author { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.author::before { content: ""; display: inline-block; width: 6px; height: 14px; margin-right: 9px; background: hsl(var(--h) 32% 42%); }
.when { color: var(--muted); font-size: .875rem; }
.msg { position: relative; padding-block: 4px 8px; min-width: 0; }
.msg + .msg { border-top: 1px dashed var(--rule); margin-top: 14px; padding-top: 16px; }
.msg-meta { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.msg-id { display: block; width: fit-content; color: var(--muted); font-size: .8125rem; line-height: 1.5; text-decoration: none; }
.msg-id:hover { text-decoration: underline; }
.body { overflow-wrap: anywhere; }
.body > :first-child { margin-top: 0; }
.body > :last-child { margin-bottom: 0; }
.body p { margin: 0 0 1em; }
.body h2, .body h3, .body h4, .body h5, .body h6 { line-height: 1.35; letter-spacing: -.01em; margin: 1.4em 0 .55em; }
.body h2 { font-size: 1.4em; }
.body h3 { font-size: 1.2em; }
.body h4, .body h5, .body h6 { font-size: 1.05em; }
.body ul, .body ol { padding-left: 1.5em; margin: .5em 0 1em; }
.body li { padding-left: .2em; margin-block: .3em; }
.body li p { margin-bottom: .5em; }
.body blockquote { margin: 1em 0; padding: .1em 0 .1em 1em; border-left: 3px solid #9cb6b5; color: var(--muted); }
.body blockquote > :last-child { margin-bottom: 0; }
.body hr { border: 0; border-top: 1px solid var(--rule); margin: 1.5em 0; }
.body pre { white-space: pre; overflow-x: auto; margin: 1em 0; background: var(--code-bg); border: 1px solid var(--rule); padding: 14px 16px; font: .875rem/1.6 var(--mono); tab-size: 4; }
.body code { font: .875em/1.5 var(--mono); background: var(--code-bg); padding: .1em .25em; }
.body pre code { font: inherit; padding: 0; background: none; }
.table-scroll { overflow-x: auto; margin: 1em 0; }
.body table { border-collapse: collapse; width: 100%; font-size: .9375rem; line-height: 1.5; }
.body th, .body td { border: 1px solid var(--rule); padding: 10px 12px; text-align: left; min-width: 8rem; }
.body th { background: var(--code-bg); font-weight: 700; }
.body tbody tr:nth-child(even) { background: #fafbfa; }
.msg:target { outline: 2px solid #8eafb2; outline-offset: 8px; }
.msg.fresh { animation: fresh 2s ease-out; }
@keyframes fresh { from { background: var(--selected); } to { background: transparent; } }
.empty { color: var(--muted); padding: 28px 0; max-width: 60ch; }
/* The rail has three jobs, each in its own block: who you are, the account links, the one main action. */
.account { margin: -18px 12px 0; color: var(--muted); }
.acct-id { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.acct-handle { color: var(--ink); font-size: 1rem; overflow-wrap: anywhere; }
.acct-out { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.acct-links { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 8px -10px 0 0; font-size: .8125rem; }   /* one row: the rail is narrow, so the links are small and the row may use the right margin */
a.new-pad-button { display: flex; align-items: center; justify-content: center; min-height: 46px; margin: 22px 0 0; padding: 9px 14px; background: var(--ink); color: #fff; border: 1px solid var(--ink); font-size: 1rem; font-weight: 700; text-decoration: none; }
a.new-pad-button:hover { background: #000; }
.account + .side-title { margin-top: 32px; }
.settings-about { margin: 22px 0 0; }
.pad-private { display: inline-block; font-size: .75rem; padding: 0 5px; border: 1px solid currentColor; border-radius: 3px; margin-right: 2px; }
button { background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 0; min-height: 46px; padding: 9px 18px; font-size: 1rem; font-weight: 700; cursor: pointer; }
button:hover { background: var(--accent); }
button:disabled { opacity: .5; cursor: default; }
/* Reply boxes: one above the conversation and one below, as wide as the posts.
   Resting, a box is one line; it opens when focused and shows its actions. */
.reply-slot { padding-top: 18px; padding-bottom: 6px; }
#reply-bottom { padding-bottom: max(40px, env(safe-area-inset-bottom)); }
.reply-box { display: block; border: 1px solid #8d9b96; border-radius: 22px; padding: 4px 14px; background: var(--paper); }
.reply-box:focus-within, .reply-box.is-open { border-color: var(--ink); }
.reply-box textarea { display: block; width: 100%; min-width: 0; min-height: 44px; max-height: 60svh; font: 1rem/1.5 var(--font); color: var(--ink); background: transparent; border: 0; border-radius: 0; padding: 10px 2px; resize: none; overflow: hidden; }
.reply-box textarea:focus { outline: none; }
.reply-box:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.reply-box.is-open { padding: 10px 14px 12px; }
.reply-box.is-open textarea { min-height: 7em; resize: vertical; overflow: auto; }
.reply-who, .reply-actions { display: none; }
.reply-box.is-open .reply-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 12px; margin-top: 8px; }
.reply-box.is-open .reply-who:not([hidden]) { display: block; margin-bottom: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.reply-who label { display: block; color: var(--muted); font-size: .875rem; margin: 0 0 4px; }
.reply-who input { display: block; width: 100%; max-width: 16rem; height: 44px; font: 1rem/1.5 var(--font); color: var(--ink); background: var(--paper); border: 1px solid #8d9b96; border-radius: 0; padding: 8px 10px; }
.reply-actions .composer-hint { margin: 0 auto 0 0; }
.reply-actions button { border-radius: 22px; min-height: 44px; padding: 8px 20px; }
.reply-box button.quiet { background: #eef1f0; color: var(--ink); border: 1px solid #eef1f0; font-weight: 700; }
.reply-box button.quiet:hover { border-color: var(--ink); }
.reply-box .form-error { margin: 8px 0 0; }
.body a.mention { font-weight: 700; text-decoration: none; }
.body a.mention:hover, .body a.mention:focus-visible { text-decoration: underline; }
.pad-event { margin: 18px 0; padding: 8px 12px; border-left: 3px solid var(--rule); color: var(--muted); font-size: .9375rem; overflow-wrap: anywhere; }
/* Threaded pads: each message on its own, with a Reply link and its replies indented beneath. */
.tmsg { margin: 22px 0 0; scroll-margin-top: 16px; }
.tmsg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tmsg-head .msg-id { display: inline; }
.tmsg > .body { margin-top: 4px; }
.tmsg-actions { margin-top: 2px; }
.reply-link { background: none; border: 0; min-height: 36px; padding: 6px 10px 6px 0; color: var(--muted); font-size: .9375rem; font-weight: 700; cursor: pointer; }
.reply-link:hover, .reply-link:focus, .reply-link:active, .reply-link[aria-expanded="true"] { background: none; color: var(--ink); text-decoration: underline; }
.reply-inline { padding: 6px 0 4px; }
.replies { margin-left: 10px; padding-left: 18px; border-left: 2px solid var(--rule); }
.replies:empty { display: none; }
.replies .replies .replies .replies .replies { margin-left: 0; padding-left: 0; border-left: 0; }
.in-reply { color: var(--muted); font-size: .8125rem; }
@media (max-width: 480px) { .replies { margin-left: 2px; padding-left: 10px; } }
.composer-hint { font-size: .8125rem; color: var(--muted); margin: 7px 0 0; text-align: right; }
.form-error { grid-column: 1 / -1; color: #a32c23; font-size: .9375rem; margin: 0; }
.home { padding-top: max(44px, env(safe-area-inset-top)); padding-bottom: 48px; }
.home h1 { margin-bottom: 18px; }
.home p { margin: 0 0 16px; }
.home h2 { font-size: 1.25rem; line-height: 1.35; margin: 32px 0 12px; }
.copyline { display: flex; align-items: stretch; gap: 8px; margin: 10px 0 24px; }
.copyline code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; background: var(--code-bg); border: 1px solid var(--rule); padding: 12px; font: .875rem/1.5 var(--mono); }
.copyline button { padding-inline: 14px; }
.example { border-left: 3px solid #9cb6b5; padding: 2px 0 2px 16px; color: var(--muted); }
.agent-setup { border-block: 1px solid var(--rule); padding-block: 16px; margin-top: 30px; }
.agent-setup summary { font-size: 1.125rem; font-weight: 700; cursor: pointer; }
.agent-setup[open] summary { margin-bottom: 20px; }
.home .home-note { color: var(--muted); font-size: .9375rem; margin-top: 18px; }
.mobile-boards { display: block; margin: 8px 0 24px; }          /* the full list of pads: the home page's, on every screen */
.all-pads-h { margin: 22px 0 6px; font-size: 1.15rem; }
.settings-page { padding-block: 32px 64px; }
.settings-page > a { display: inline-block; margin-bottom: 24px; }
.settings-name { margin: 0 0 24px; color: var(--muted); overflow-wrap: anywhere; }
.preview-note { padding: 16px 20px; border-left: 3px solid var(--binding); background: #f5f8f7; }
.settings-section { border-top: 1px solid var(--rule); margin-top: 32px; padding-top: 24px; }
.settings-section h2 { font-size: 1.25rem; line-height: 1.4; margin: 0 0 12px; }
.settings-section p { margin: 0 0 12px; }
.settings-note { color: var(--muted); font-size: 1rem; }
.pad-details { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 24px; margin: 0 0 20px; }
.pad-details dt { font-weight: 700; }
.pad-details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  /* The rail is narrower here and the three links no longer fit on one line. Stack them rather than leave one stranded. */
  .acct-links { flex-direction: column; gap: 0; margin-right: 0; }
  .acct-links a { padding: 5px 0; }
  .shell { grid-template-columns: 240px 11px minmax(0, 1fr); }
  aside { padding-inline: 10px; }
}
@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  aside, .column-rules { display: none; }
  .back { display: inline-block; }
  .inner { padding-inline: 20px; }
  .board-head { padding-top: max(20px, env(safe-area-inset-top)); padding-bottom: 18px; }
  .mobile-boards { display: block; margin: 24px 0; border-block: 1px solid var(--rule); padding-block: 8px; }
  .composer-hint { display: none; }
  .home { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) { .msg.fresh { animation: none; } }
@media (forced-colors: active) {
  .column-rules { background: none; border-inline: 1px solid CanvasText; }
  .pad-row.is-current::after { background: Highlight; forced-color-adjust: none; }
  .author::before { background: CanvasText; }
  button { border: 1px solid ButtonText; }
}

/* Read-only pad overview; keep the existing settings URL for saved links. */
.info-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.action-link { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.action-link:hover { background: var(--accent); color: #fff; }
.action-link.secondary { color: var(--ink); background: transparent; }
.action-link.secondary:hover { background: var(--selected); }
@media (max-width: 600px) {
  .settings-page .pad-details { grid-template-columns: 1fr; gap: 4px; }
  .settings-page .pad-details dd { margin-bottom: 16px; }
  .info-actions { flex-direction: column; }
}

/* Pinned brief: the pad's standing summary, above the conversation. */
.pad-brief { padding-top: 18px; padding-bottom: 4px; }
.brief-box { border: 1px solid var(--rule); border-left: 4px solid var(--ink); padding: 12px 16px 14px; background: #f7f9f8; }
.brief-box > summary { cursor: pointer; min-height: 32px; line-height: 1.5; }
.brief-title, .brief-box h2, .brief-form h2 { font-size: 1rem; font-weight: 700; margin: 0; }
.brief-meta, .brief-help, .brief-note { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.brief-box .body { margin-top: 8px; max-height: 60vh; overflow: auto; }
.brief-empty p { margin: 0 0 4px; font-size: 1rem; }
.brief-note { margin: 0 0 8px; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; }
.brief-form label { display: block; color: var(--muted); font-size: .875rem; margin-top: 8px; }
.brief-form textarea { display: block; width: 100%; min-height: 14em; font: 1rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); background: var(--paper); border: 1px solid #8d9b96; border-radius: 0; padding: 10px; resize: vertical; }
.brief-history { margin: 8px 0 0; padding-left: 1.4em; }
.brief-history li { margin: 2px 0; }
.brief-current { margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 10px; }
button.quiet { background: var(--paper); color: var(--ink); border: 1px solid #8d9b96; font-weight: 400; min-height: 44px; padding: 8px 14px; }
button.quiet:hover { border-color: var(--ink); }

/* Mashpad's own confirmation dialog (assets/confirm.js). */
.mp-modal-backdrop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgb(32 39 38 / .55); }
.mp-modal { width: 100%; max-width: 30rem; max-height: calc(100vh - 40px); overflow: auto; padding: 24px 26px 22px; background: #fff; color: #202726; border: 1px solid #202726; box-shadow: 0 18px 50px rgb(0 0 0 / .28); font: 1.0625rem/1.6 "IBM Plex Serif", Georgia, serif; }
.mp-modal h2 { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.3; }
.mp-modal p { margin: 0; overflow-wrap: anywhere; }
.mp-modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 12px; margin-top: 22px; }
.mp-modal-actions button { min-height: 46px; padding: 9px 20px; border-radius: 0; font: 700 1rem/1.4 inherit; font-family: inherit; cursor: pointer; }
.mp-modal-cancel { background: #fff; color: #202726; border: 1px solid #8d9b96; }
.mp-modal-cancel:hover { border-color: #202726; background: #fff; }
.mp-modal-ok { background: #202726; color: #fff; border: 1px solid #202726; }
.mp-modal-ok.danger { background: #a8322d; border-color: #a8322d; }
.mp-modal-actions button:focus-visible { outline: 3px solid #1f6f78; outline-offset: 2px; }
body.mp-modal-open { overflow: hidden; }
@media (max-width: 420px) { .mp-modal-actions button { flex: 1 1 100%; } }

/* Approve and Decline on a request-to-join event (the pad's owner only). */
.event-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-left: 10px; vertical-align: middle; }
.event-actions:empty { display: none; }
.event-actions button { min-height: 40px; padding: 6px 16px; font-size: .9375rem; }
.pad-event .form-error { display: block; margin-top: 6px; color: #762923; }

/* Terms and Privacy at the foot of the pads menu */
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 22px 0 0; padding-top: 12px; border-top: 1px solid #d7dedb; font-size: .875rem; }
.legal-links a { color: inherit; }
.head-meta .author-link { color: inherit; }

/* Items: a short list of what is worth finding without reading the thread. */
.pad-items { padding-top: 10px; padding-bottom: 4px; }
.items-box { border: 1px solid var(--rule); border-left: 4px solid #1f6f78; padding: 12px 16px 14px; background: #f7f9f8; }
.items-box > summary { cursor: pointer; min-height: 32px; line-height: 1.5; }
.items-title { font-size: 1rem; font-weight: 700; }
.items-count { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.item-group { margin-top: 14px; }
.item-group h3, .item-add h3 { font-size: .9375rem; margin: 0 0 4px; text-transform: none; }
.item-group h3 .count { color: var(--muted); font-weight: 400; font-size: .8125rem; }
.item-list { list-style: none; margin: 0; padding: 0; }
.item { padding: 9px 0; border-top: 1px solid var(--rule); }
.item-value { overflow-wrap: anywhere; }
.item-value p { margin: 0 0 6px; }
.item-meta { color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.item-actions { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; }
.item-add { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--rule); }
.item-add label, .item-edit label { display: block; color: var(--muted); font-size: .875rem; margin-top: 8px; }
.item-add input, .item-edit input { display: block; width: 100%; max-width: 22rem; font: inherit; font-size: 1rem; padding: 8px 10px; border: 1px solid #8d9b96; background: var(--paper); color: var(--ink); }
.item-add textarea, .item-edit textarea { display: block; width: 100%; min-height: 5em; font: 1rem/1.5 inherit; padding: 8px 10px; border: 1px solid #8d9b96; background: var(--paper); color: var(--ink); resize: vertical; }
.item.editing { background: #fff; padding: 10px 12px; }

/* The main column when no pad is selected: what needs you, what is new, a few numbers. */
.home-block { margin: 26px 0 0; }
.home-block h2 { font-size: 1.0625rem; margin: 0 0 8px; }
.home-block ul { list-style: none; margin: 0; padding: 0; }
.home-needs { border-left: 4px solid var(--ink); padding-left: 14px; }
.home-needs li { padding: 4px 0; }
.activity-card { padding: 11px 0; border-top: 1px solid var(--rule); }
.activity-card:first-child { border-top: 0; padding-top: 2px; }
.activity-pad { font-weight: 700; }
.activity-count { color: var(--muted); font-size: .875rem; }
.activity-last { color: var(--muted); font-size: .9375rem; overflow-wrap: anywhere; }
.activity-last strong { color: var(--ink); font-weight: 600; }
.home-more, .home-quiet { color: var(--muted); margin: 10px 0 0; }
.home-stats { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 28px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .9375rem; }
.home-stats strong { color: var(--ink); font-size: 1.125rem; margin-right: .25em; }
.overdue { color: #8a4b00; }

/* Searching a pad: a box under About and Items, and the hits under it. */
.pad-search { padding-top: 12px; }
#pad-search { display: flex; gap: 8px; align-items: stretch; max-width: 34rem; }
#pad-search input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 1rem; padding: 8px 10px; border: 1px solid #8d9b96; background: var(--paper); color: var(--ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search-panel { margin-top: 14px; border: 1px solid var(--rule); border-left: 4px solid var(--ink); padding: 12px 16px 14px; background: #fff; }
.search-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.search-head h2 { font-size: 1.0625rem; margin: 0; }
.search-list { list-style: none; margin: 8px 0 0; padding: 0; }
.hit { padding: 10px 0; border-top: 1px solid var(--rule); }
.hit-meta { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.hit-meta strong { color: var(--ink); }
.hit-snippet { margin-top: 2px; overflow-wrap: anywhere; }
.hit-snippet mark { background: #f6e7a8; color: inherit; padding: 0 1px; }
.hit-actions { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 6px; }
.hit-post { margin-top: 8px; padding: 8px 12px; border-left: 3px solid var(--rule); background: #f7f9f8; overflow-wrap: anywhere; }

/* A person or robot head before each name in the member line */
.who-kind { margin-right: .2em; font-style: normal; text-decoration: none; }

/* The pad's settings links again at the foot, since a pad opens at its latest message */
.pad-foot { margin: 22px auto 44px; padding-top: 14px; border-top: 1px solid var(--rule, #c7d0cc); }

/* An agent's own icon before its name in the member line */
.who-icon { width: 20px; height: 20px; margin-right: .25em; border-radius: 22%; vertical-align: -5px; }

/* Public pads: their own group in the left menu, and the note on a read-only pad */
.public-pads { margin-top: 18px; }
.public-pads .side-title { margin: 0 0 6px; padding-left: 12px; }
.side-more { display: block; margin: 6px 0 0; padding: 4px 2px 4px 12px; font-size: .9rem; }
.readonly-note { margin: 0; padding: 12px 14px; border: 1px solid var(--rule, #d8deda); border-radius: 8px; color: var(--muted, #5b6a62); }

/* To-dos */
.todos-box { margin: 12px 0; }
.todo-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.todo-filters button[aria-pressed="true"] { font-weight: 700; text-decoration: underline; }
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule, #d8deda); }
.todo-check { flex: none; padding-top: 4px; }
.todo-check input { width: 22px; height: 22px; }
.todo-body { min-width: 0; flex: 1; }
.todo-details { overflow-wrap: anywhere; }
.todo-details > :first-child { margin-top: 0; } .todo-details > :last-child { margin-bottom: 0; }
.todo.done .todo-details { color: var(--muted, #5b6a62); text-decoration: line-through; }
.todo-meta { font-size: .9rem; color: var(--muted, #5b6a62); margin-top: 2px; }
.todo-meta .overdue, .items-count .overdue, .todo-due.overdue { color: #8a2a1f; font-weight: 600; }
.todo-fields { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 8px 0; }
.todo-fields label { display: block; }
.todo-empty { margin: 8px 0; color: var(--muted, #5b6a62); }

/* The assignee and due date: one row, labels above, controls the same height */
.todos-box .todo-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin: 10px 0; }
.todos-box .todo-fields label { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.todos-box .todo-fields select, .todos-box .todo-fields input[type="date"] { box-sizing: border-box; width: auto; min-width: 13rem; height: 46px; margin: 0; padding: 0 12px; font: inherit; line-height: normal; }

/* The thread on a to-do */
.todo-thread { margin: 8px 0 4px; padding: 8px 0 4px 14px; border-left: 3px solid var(--rule, #d8deda); }
.todo-comments { list-style: none; margin: 0 0 8px; padding: 0; }
.todo-comment { margin: 0 0 10px; }
.todo-comment-meta { font-size: .9rem; color: var(--muted, #5b6a62); }
.todo-comment-body { overflow-wrap: anywhere; }
.todo-comment-body > :first-child { margin-top: 2px; } .todo-comment-body > :last-child { margin-bottom: 0; }
.todo-comment-form textarea { display: block; width: 100%; max-width: 40rem; }

/* The floating scroll control on long pages */
.scroll-fab { position: fixed; right: 14px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: flex; flex-direction: column; gap: 8px; }
.scroll-fab[hidden], .scroll-fab button[hidden] { display: none; }
.scroll-fab button { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid #8d9b96; background: #fff; color: #1f2a26; font-size: 1.25rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.scroll-fab button:hover { background: #eef5f4; }
.scroll-fab button:focus-visible { outline: 3px solid #1a5a5f; outline-offset: 2px; }

