/* Pneuma United Client Portal: black and white, gray page, white rounded cards. */
:root {
  --bg: #efefef;
  --card: #fff;
  --ink: #0b0b0b;
  --quiet: #6e6e6e;
  --faint: #a8a8a8;
  --line: #e6e6e6;
  --soft: #f4f4f4;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .045);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--quiet); font-size: 14px; }
.faint { color: var(--faint); }

/* Page frame */
main { max-width: 1200px; margin: 0 auto; padding: 8px 32px 72px; }
main.narrow { max-width: 460px; margin: 40px auto; padding: 40px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
main.narrow h1 { font-size: 32px; }
header.top { display: flex; justify-content: center; padding: 48px 16px 0; }
.wordmark { font-weight: 800; font-size: 18px; letter-spacing: .04em; color: var(--ink); text-decoration: none; text-transform: uppercase; }
h1 { font-weight: 500; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; }
h2 { font-weight: 500; font-size: 17px; margin: 0; letter-spacing: -.005em; }
.lede { color: var(--quiet); margin: 0 0 28px; font-size: 16px; }
.eyebrow { color: var(--quiet); font-size: 14px; margin: 0 0 6px; }
.card.dark .eyebrow { color: #9b9b9b; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 8px 0 24px; }
.page-head h1 { margin: 0; }
.page-head .lede { margin: 6px 0 0; }
.label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--quiet); margin: 0 0 12px; }

/* Grid and cards */
.grid { display: grid; gap: 20px; margin-bottom: 20px; }
.g-hero { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
.stack { display: grid; gap: 20px; align-content: start; min-width: 0; }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.card.dark { background: var(--ink); color: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, .18); }
.card.dark a { color: #fff; }
.card.dark .muted, .card.dark .faint { color: #9b9b9b; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head a, a.more { display: inline-flex; align-items: center; gap: 2px; color: var(--quiet); font-size: 14px; text-decoration: none; }
.card-head a:hover, a.more:hover { color: var(--ink); }
.card-head .i, a.more .i { width: 16px; height: 16px; }
a.card { display: block; text-decoration: none; color: inherit; transition: transform .15s; }
a.card:hover { transform: translateY(-2px); }

/* Hero */
.hero { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 36px; min-height: 270px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 52px); margin: 0 0 12px; }
.hero .lede { max-width: 540px; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.datecard { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 30px; min-height: 270px; }
.datecard .dow { font-size: 22px; font-weight: 500; }
.datecard .dow span { color: #8a8a8a; }
.bigday { font-size: clamp(84px, 9vw, 128px); font-weight: 700; line-height: .85; letter-spacing: -.05em; }
.dots { display: grid; grid-template-columns: repeat(10, 10px); gap: 7px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }
.dots i.on { background: #fff; }
.dots i.now { background: #fff; box-shadow: 0 0 0 2px #0b0b0b, 0 0 0 3.5px #fff; }

/* Buttons */
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; color: #fff; background: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 11px 22px; cursor: pointer; text-decoration: none; white-space: nowrap; }
button.ghost, .btn.ghost { color: var(--ink); background: transparent; border-color: #cfcfcf; }
button.ghost:hover, .btn.ghost:hover { border-color: var(--ink); }
button.small, .btn.small { padding: 7px 14px; font-size: 13px; }
.btn .i, button .i { width: 16px; height: 16px; }
.card.dark .btn:not(.ghost), .card.dark button:not(.ghost) { color: var(--ink); background: #fff; border-color: #fff; }
.card.dark .btn.ghost, .card.dark button.ghost { color: #fff; border-color: #555; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--soft); color: var(--ink); border: 0; padding: 0; }
.icon-btn:hover { background: var(--ink); color: #fff; }
.icon-btn .i { width: 17px; height: 17px; }

/* Forms */
label { display: block; font-size: 14px; margin: 0 0 16px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=datetime-local], input[type=number], select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--soft); border: 1px solid transparent; border-radius: 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
input[type=file] { display: block; width: 100%; margin-top: 8px; font: inherit; font-size: 14px; color: var(--quiet); }
input[type=file]::file-selector-button { font: inherit; font-size: 13px; margin-right: 12px; padding: 8px 16px; border: 1px solid #cfcfcf; border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; }
input[type=range] { width: 100%; margin-top: 10px; accent-color: var(--ink); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
label.check { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; }
label.check input { width: auto; margin: 0; accent-color: var(--ink); }
.dropzone { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px; border: 1.5px dashed #cfcfcf; border-radius: var(--radius-sm); background: var(--soft); }
.dropzone label { flex: 1 1 240px; margin: 0; }
.dropzone .stat-icon { background: #fff; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form input { margin: 0; width: auto; flex: 1 1 200px; }
form { margin: 0; }

/* Notices and tags */
.notice { background: var(--card); border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 20px; box-shadow: var(--shadow); overflow-wrap: anywhere; border-left: 4px solid var(--ink); }
main.narrow .notice { box-shadow: none; background: var(--soft); }
.code { font-family: Menlo, Consolas, monospace; overflow-wrap: anywhere; letter-spacing: .04em; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--soft); font-size: 12px; font-weight: 500; white-space: nowrap; }
.tag.dark { background: var(--ink); color: #fff; }
.card.dark .tag { background: #fff; color: var(--ink); }

/* Segmented pill tabs */
.seg, .tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; background: var(--card); border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 20px; }
.seg a, .tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--quiet); }
.seg a:hover, .tabs a:hover { color: var(--ink); }
.seg a[aria-current], .tabs a[aria-current] { background: var(--ink); color: #fff; }
.seg .n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 11px; font-weight: 600; }
.seg a[aria-current] .n { background: #fff; }

/* Stat tiles */
.stat { display: flex; align-items: center; gap: 16px; }
.stat-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 16px; background: var(--soft); }
.stat-icon .i { width: 22px; height: 22px; }
.card.dark .stat-icon { background: #222; }
.stat b { display: block; font-size: 30px; font-weight: 500; line-height: 1.05; letter-spacing: -.02em; }
.stat > div > span { display: block; color: var(--quiet); font-size: 13px; margin-top: 2px; }
.card.dark .stat > div > span { color: #9b9b9b; }

/* Lists */
.list > * { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); min-width: 0; }
.list > *:first-child { border-top: 0; padding-top: 2px; }
.list > *:last-child { padding-bottom: 0; }
.grow { flex: 1 1 auto; min-width: 0; }
.grow a { text-decoration: none; }
.grow a:hover { text-decoration: underline; }
.title-line { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub { display: block; color: var(--quiet); font-size: 13px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kind { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--soft); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; }
.avatar.light { background: var(--soft); color: var(--ink); }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 2px; }
.row form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row input { margin: 0; width: 240px; padding: 9px 12px; }
.person { padding-left: 20px; }
.empty { color: var(--quiet); font-size: 14px; padding: 6px 0; margin: 0; }

/* Week strip and timeline */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; background: var(--soft); border-radius: var(--radius-sm); padding: 14px 6px 10px; margin-bottom: 18px; }
.week .d { font-size: 12px; color: var(--quiet); }
.week .num { display: grid; place-items: center; width: 38px; height: 38px; margin: 6px auto 0; border-radius: 50%; font-size: 15px; font-weight: 500; }
.week .today .num { background: var(--ink); color: #fff; }
.week .dot { display: block; width: 5px; height: 5px; margin: 5px auto 0; border-radius: 50%; }
.week .busy .dot { background: var(--ink); }
.timeline { position: relative; display: grid; gap: 10px; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 16px; bottom: 16px; width: 1.5px; background: var(--line); }
.tl { position: relative; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--soft); }
.tl::before { content: ""; position: absolute; left: -25px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 1.5px solid #bdbdbd; }
.tl.next { background: var(--ink); color: #fff; }
.tl.next::before { border-color: var(--ink); background: var(--ink); box-shadow: 0 0 0 3px var(--card), 0 0 0 4.5px var(--ink); }
.tl.next .sub { color: #a5a5a5; }
.tl-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; }
.tl-top time { font-weight: 400; color: var(--quiet); font-size: 13px; white-space: nowrap; }
.tl.next .tl-top time { color: #cfcfcf; }
.tl .sub { display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.tl .sub .i { width: 14px; height: 14px; }
.tl .notes { margin: 6px 0 0; font-size: 13px; color: var(--quiet); white-space: pre-wrap; }
.tl.next .notes { color: #bdbdbd; }
.tl form { margin-top: 10px; }

/* Project cards */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-bottom: 20px; }
.project { display: flex; flex-direction: column; gap: 14px; min-height: 236px; }
.project-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mono { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--soft); font-weight: 700; font-size: 17px; }
.card.dark .mono { background: #fff; color: var(--ink); }
.project h3 { font-size: 17px; font-weight: 500; margin: 0; }
.bullets { list-style: none; margin: 0; padding: 0; color: var(--quiet); font-size: 13px; }
.bullets li { padding-left: 14px; position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.card.dark .bullets { color: #b5b5b5; }
.bullets.full li { white-space: normal; padding: 8px 0 8px 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.bullets.full li:first-child { border-top: 0; }
.bullets.full li::before { top: 17px; width: 6px; height: 6px; }
.meter { margin-top: auto; }
.meter-top { display: flex; justify-content: flex-end; font-size: 12px; color: var(--quiet); margin-bottom: 6px; }
.card.dark .meter-top { color: #b5b5b5; }
progress { display: block; width: 100%; height: 4px; border: 0; border-radius: 999px; background: var(--line); overflow: hidden; -webkit-appearance: none; appearance: none; }
progress::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--ink); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--ink); border-radius: 999px; }
.card.dark progress, .card.dark progress::-webkit-progress-bar { background: #333; }
.card.dark progress::-webkit-progress-value { background: #fff; }
.card.dark progress::-moz-progress-bar { background: #fff; }
progress.thick { height: 8px; }
.project-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--quiet); }
.card.dark .project-foot { color: #b5b5b5; }
.big-progress { font-size: 72px; font-weight: 700; letter-spacing: -.045em; line-height: 1; margin: 8px 0 16px; }
.big-progress small { font-size: 28px; }
.new-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 236px; border: 1.5px dashed #c9c9c9; background: transparent; box-shadow: none; color: var(--quiet); text-align: center; }

/* Messages */
.chat { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.channels { display: grid; gap: 4px; align-content: start; }
.channels a { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 14px; text-decoration: none; color: var(--quiet); }
.channels a:hover { color: var(--ink); background: var(--soft); }
.channels a[aria-current] { background: var(--soft); color: var(--ink); font-weight: 500; }
.channels .hash { font-weight: 600; color: var(--faint); }
.channels form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.conversation { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.conversation .card-head { padding: 20px 24px; margin: 0; border-bottom: 1px solid var(--line); }
.thread { display: flex; flex-direction: column; gap: 14px; height: 56vh; min-height: 320px; overflow-y: auto; padding: 22px 24px; }
.msg { max-width: min(78%, 560px); align-self: flex-start; }
.msg .meta { font-size: 12px; color: var(--quiet); margin: 0 0 4px 4px; }
.msg .meta b { color: var(--ink); font-weight: 500; }
.msg p { margin: 0; padding: 11px 16px; background: var(--soft); border-radius: 18px 18px 18px 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; }
.msg.mine .meta { text-align: right; margin: 0 4px 4px 0; }
.msg.mine p { background: var(--ink); color: #fff; border-radius: 18px 18px 6px 18px; }
.composer { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.composer input { margin: 0; border-radius: 999px; padding: 12px 18px; }
.comment { padding: 14px 0; border-top: 1px solid var(--line); }
.comment:first-child { border-top: 0; padding-top: 0; }
.comment .meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--quiet); flex-wrap: wrap; }
.comment .meta b { color: var(--ink); font-weight: 500; font-size: 14px; }
.comment p { margin: 8px 0 0 48px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment .avatar { width: 38px; height: 38px; font-size: 14px; }
.card.dark .comment { border-color: #262626; }
.card.dark .comment .meta b { color: #fff; }
.card.dark .comment .avatar { background: #fff; color: var(--ink); }

/* Calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cal-head h2 { font-size: 24px; }
.cal-nav { display: flex; gap: 6px; }
.cal { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cal th { font-size: 12px; font-weight: 500; color: var(--quiet); padding: 0 6px 10px; text-align: left; }
.cal td { height: 108px; vertical-align: top; padding: 6px; border-top: 1px solid var(--line); font-size: 13px; overflow: hidden; }
.cal td.out .n { color: #c9c9c9; }
.cal .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 500; }
.cal td.today .n { background: var(--ink); color: #fff; }
.cal .ev { display: block; margin-top: 4px; padding: 3px 8px; border-radius: 8px; background: var(--soft); font-size: 11.5px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .ev b { font-weight: 600; }

/* Side navigation */
.rail { position: fixed; z-index: 10; top: 12px; bottom: 12px; left: 12px; width: 44px; display: flex; flex-direction: column; align-items: center; padding: 8px 0 12px; background: var(--ink); border-radius: 22px; }
.rail .mark { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px; flex: none; border-radius: 50%; background: #fff; color: var(--ink); font-size: 16px; font-weight: 400; text-decoration: none; }
.rail-group { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 4px; }
.rail-end { margin-top: auto; }
.rail-rule { display: block; width: 18px; height: 1px; margin: 4px auto; background: #444; }
.rail a:not(.mark), .rail button { position: relative; display: flex; align-items: center; justify-content: center; height: 40px; margin-left: 6px; padding: 0 6px 0 0; color: #fff; background: none; border: 0; border-radius: 20px 0 0 20px; text-decoration: none; }
.rail form { margin: 0; display: flex; flex-direction: column; }
.rail .i { width: 18px; height: 18px; stroke-width: 1.6; }
.rail a:not(.mark):hover .i, .rail button:hover .i { stroke-width: 2.1; }
.rail a[aria-current] { color: var(--ink); background: var(--bg); }
.rail a[aria-current]::before, .rail a[aria-current]::after { content: ""; position: absolute; right: 0; width: 14px; height: 14px; pointer-events: none; }
.rail a[aria-current]::before { top: -14px; background: radial-gradient(circle at 0 0, transparent 13.5px, var(--bg) 14px); }
.rail a[aria-current]::after { bottom: -14px; background: radial-gradient(circle at 0 100%, transparent 13.5px, var(--bg) 14px); }
.rail :focus-visible { outline-color: #fff; outline-offset: -3px; }
.rail a[aria-current]:focus-visible { outline-color: var(--ink); }
.tip { position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); padding: 5px 12px; white-space: nowrap; font-size: 13px; color: #fff; background: var(--ink); border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .12s; }
.rail a:hover .tip, .rail a:focus-visible .tip, .rail button:hover .tip, .rail button:focus-visible .tip { opacity: 1; }
body.has-rail { padding-left: 72px; }
.who { display: flex; align-items: center; justify-content: flex-end; gap: 14px; max-width: 1200px; margin: 0 auto; padding: 22px 32px 0; }
.who-name { font-size: 15px; font-weight: 500; }
.who .tag { background: var(--card); }
@media (max-height: 560px) and (min-width: 701px) {
  .rail { top: 8px; bottom: 8px; padding: 6px 0 8px; overflow-y: auto; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail .mark { margin-bottom: 8px; }
  .rail-group { gap: 0; }
  .rail-end { padding-top: 6px; }
  .rail-rule { margin: 3px auto; }
  .rail a:not(.mark), .rail button { height: 34px; flex: none; }
}

/* Narrower screens */
@media (max-width: 1100px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-side, .g-hero { grid-template-columns: minmax(0, 1fr); }
  .datecard { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
}
@media (max-width: 820px) {
  .g-2, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .chat { grid-template-columns: minmax(0, 1fr); }
  .channels { display: flex; flex-wrap: wrap; }
  .channels form { width: 100%; }
  .cal td { height: 60px; padding: 3px; }
  .cal th { padding: 0 3px 8px; }
  .cal .n { width: 26px; height: 26px; font-size: 12px; }
  .cal .ev { display: inline-block; width: 6px; height: 6px; padding: 0; margin: 2px 1px 0; border-radius: 50%; background: var(--ink); font-size: 0; }
}

/* Phones: the bar moves to the bottom of the screen */
@media (max-width: 700px) {
  body.has-rail { padding-left: 0; padding-bottom: 96px; }
  main { padding: 4px 16px 56px; }
  main.narrow { margin: 24px 16px; padding: 28px 22px; }
  .who { padding: 16px 16px 0; }
  .who .tag { display: none; }
  .card { padding: 20px; border-radius: 20px; }
  .hero { padding: 26px; min-height: 0; }
  .grid, .projects { gap: 14px; margin-bottom: 14px; }
  .stat { gap: 12px; }
  .stat-icon { width: 42px; height: 42px; border-radius: 13px; }
  .stat b { font-size: 24px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .msg { max-width: 88%; }
  .thread { height: 50vh; }
  .rail { top: auto; right: 10px; bottom: 10px; left: 10px; width: auto; height: 64px; flex-direction: row; padding: 0 6px; border-radius: 32px; overflow-x: auto; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail .mark, .tip { display: none; }
  .rail-group { flex-direction: row; width: auto; gap: 0; }
  .rail-end { margin: 0 0 0 auto; padding-left: 2px; }
  .rail form { flex-direction: row; }
  .rail-rule { width: 1px; height: 26px; margin: auto 3px; }
  .rail a:not(.mark), .rail button { width: 40px; height: 40px; margin: 0; padding: 0; flex: none; border-radius: 50%; }
  .rail .i { width: 20px; height: 20px; }
  .rail a[aria-current] { background: #fff; }
  .rail a[aria-current]::before, .rail a[aria-current]::after { display: none; }
}
@media (max-width: 420px) {
  .g-4 .stat { flex-direction: column; align-items: flex-start; gap: 10px; }
  .week .num { width: 32px; height: 32px; font-size: 14px; }
}

/* Spacing helpers and small extras */
main > .card, main > form.card { margin-bottom: 20px; }
.spaced { margin-top: 22px; }
.card.soft { background: var(--soft); box-shadow: none; }
.card.soft .mono { background: #fff; }
.project-top .i { color: var(--quiet); }
.card.dark .list > * { border-color: #262626; }
.card.dark .kind { background: #fff; color: var(--ink); width: 60px; height: 60px; border-radius: 18px; font-size: 13px; }
.right { text-align: right; white-space: nowrap; }
.list .stat-icon { width: 44px; height: 44px; border-radius: 13px; }
.list .stat-icon .i { width: 19px; height: 19px; }
.list .mono { width: 44px; height: 44px; }
main.narrow .stat-icon { margin-bottom: 8px; }
@media (max-width: 700px) {
  .list > * { flex-wrap: wrap; }
  .list .grow { flex-basis: calc(100% - 60px); }
}
.who-line { min-width: 0; }
.who-line b { display: block; }
.who-line .sub a { color: inherit; }
.comment .who-line + * { margin-left: 0; }
@media (min-width: 1101px) { .projects.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .projects.three .project { min-height: 0; } }
.nowrap { white-space: nowrap; }
@media (min-width: 1101px) { .projects.three .project { padding: 20px; gap: 12px; } }
