/* klab — minimal, editorial. Paper, ink, steel; butter for what's new; pine only for links.
   No cards, no tab bar, no shadows: type, space and a few hairlines do the work. */

:root {
  --paper: #F5F5F2;
  --ink: #17191A;
  --steel: #6A7377;        /* secondary text: 4.7:1 on paper */
  --line: #DADCD8;
  --wash: #ECEDE9;         /* quiet fills: wells, quotes */
  --butter: #F2D36B;
  --butter-soft: #FBF0C4;
  --butter-ink: #4A3A0C;
  --pine: #005F53;
  --link: var(--pine);
  --danger: #B0281F;

  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Source Serif 4", "Source Serif Pro", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 36rem;
  --mast: 60px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141617;
    --ink: #E8E9E6;
    --steel: #9AA2A5;
    --line: #2C3032;
    --wash: #1D2022;
    --butter: #E5C55E;
    --butter-soft: #3A3218;
    --butter-ink: #F7E7AE;
    --link: #7CC4B6;
    --danger: #F08A80;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0; min-height: 100dvh;
  background: var(--paper); color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--butter); color: #17191A; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- masthead: wordmark + words, nothing else ---------- */
.mast {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  height: calc(var(--mast) + var(--safe-t));
  padding: var(--safe-t) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: transform .25s ease, border-color .2s;
}
.scrolled .mast { border-bottom-color: var(--line); }
.mast-hidden .mast { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; margin-right: auto; gap: 6px; }
.wordmark { height: 30px; width: auto; display: block; }
.back { display: inline-grid; place-items: center; width: 32px; height: 44px; margin-left: -8px; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
.back .ic { width: 22px; height: 22px; }
.mast nav { display: flex; gap: 18px; }
.mast nav a, .mast .write {
  position: relative; padding: 10px 0; color: var(--steel); text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
}
.mast nav a.on, .mast .write.on { color: var(--ink); }
.mast nav a.on::after, .mast .write.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 3px; border-radius: 2px; background: var(--butter); }
.mast .write { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 50%; }
.mast .write .ic { width: 20px; height: 20px; stroke-width: 2; }
.mast .write.on::after { display: none; }
.mast .write.on, .mast .write:active { background: var(--ink); color: var(--paper); }
@media (max-width: 380px) { .mast { gap: 13px; } .mast nav { gap: 13px; } .wordmark { height: 26px; } }

main { max-width: var(--measure); margin: 0 auto; padding: 8px 20px calc(var(--safe-b) + 80px); outline: none; }
.pagetitle { margin: 26px 0 4px; font: 400 34px/1.1 var(--serif); letter-spacing: -0.02em; }
.pagesub { margin: 0 0 8px; color: var(--steel); }

#progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 30; pointer-events: none; opacity: 0; transition: opacity .3s; }
#progress.on { opacity: 1; }
#progress i { display: block; height: 100%; background: var(--butter); transform-origin: left; transform: scaleX(0); transition: transform .25s; }

.status { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 13px; color: var(--steel); }
.status button.link { font-size: 13px; padding: 4px 0; }

/* the klab — a clatter of bars, used as the loading indicator */
.clatter { display: inline-flex; align-items: center; gap: 2.5px; height: 16px; vertical-align: middle; color: var(--butter); }
.clatter i { display: block; width: 3px; height: 12px; border-radius: 2px; background: currentColor; animation: clat .7s ease-in-out infinite alternate; }
.clatter i:nth-child(1) { height: 8px; rotate: -8deg; animation-delay: -.15s; }
.clatter i:nth-child(2) { height: 15px; rotate: 5deg; animation-delay: -.45s; }
.clatter i:nth-child(3) { height: 7px; rotate: -12deg; animation-delay: -.3s; }
.clatter i:nth-child(4) { height: 16px; rotate: 3deg; animation-delay: -.6s; }
.clatter i:nth-child(5) { height: 10px; rotate: 9deg; animation-delay: -.05s; }
@keyframes clat { from { scale: 1 .45; } to { scale: 1 1; } }
.clatter.still i { animation: none; }

/* ---------- day: a big numeral, nothing more ---------- */
.day {
  display: flex; align-items: baseline; gap: 12px;
  margin: 44px 0 6px; font-weight: 400;
}
.day { align-items: flex-start; gap: 14px; }
.day .datecol { display: inline-flex; flex-direction: column; align-items: flex-start; }
.day .num { font: 400 56px/0.8 var(--serif); letter-spacing: -0.04em; font-variant-numeric: lining-nums; }
.day .mname { margin-top: 6px; font-size: 14px; color: var(--steel); }
.day .dname { margin-top: 4px; font-size: 14px; font-weight: 600; }
.day .dname::first-letter { text-transform: uppercase; }
.day.today .num { box-shadow: inset 0 -7px 0 var(--butter); padding: 0 2px 4px; }
.day .rule { display: none; }
.list > .day:first-child, .list > .sentinel:first-child + .day { margin-top: 22px; }

/* ---------- entries: no boxes ---------- */
.entry { position: relative; padding: 26px 0 30px; cursor: pointer; }
.entry + .entry::before, .entry + .day + .entry::before { content: none; }
.entry::after { content: ""; position: absolute; left: 0; bottom: 0; width: 22px; height: 7px; border-radius: 3px; background: var(--butter); opacity: .9; }
.list > .entry:last-of-type::after, .entry.full::after { display: none; }
.entry.full { cursor: auto; padding-top: 18px; }

.byline { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 15px; }
.pic { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; background: var(--wash); }
.byline .pic { width: 46px; height: 46px; }
.byline .pic.none { font-size: 17px; }
.pic.none { display: grid; place-items: center; font: 600 12px var(--sans); color: var(--steel); }
.who { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.3; }
.who > .line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.who .name { font-weight: 650; color: var(--ink); text-decoration: none; }
.who .comm { color: var(--steel); }
.who .comm a { color: var(--ink); text-decoration: none; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--steel); font-size: 13.5px; }
.meta time, .meta a { color: var(--steel); text-decoration: none; }
/* who can see it: icon + word, on a small pill so it's seen at a glance */
.sec { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 6px; border-radius: 999px; background: var(--butter-soft); color: var(--ink); font-size: 12.5px; font-weight: 600; }
.sec .ic { width: 14px; height: 14px; stroke-width: 2; }
.sec-private { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.entry.unread .who .name::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--butter); vertical-align: 2px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--butter-ink) 25%, transparent); }

.subject { margin: 0 0 10px; font: 600 26px/1.22 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.subject a { color: inherit; text-decoration: none; }

.prose { font: 18.5px/1.62 var(--serif); overflow-wrap: anywhere; hyphens: auto; }
.prose p { margin: 0 0 .85em; }
.prose p:empty { display: none; }
.prose .pb { display: block; height: .8em; }
.prose img { max-width: 100%; height: auto; border-radius: 3px; vertical-align: middle; }
.prose blockquote { margin: .9em 0; padding: 0 0 0 1em; border-left: 2px solid var(--ink); color: var(--steel); font-style: italic; }
.prose pre { white-space: pre-wrap; font-size: 15px; }
.prose table { max-width: 100%; display: block; overflow-x: auto; }
.prose .ljuser { font: 600 .82em var(--sans); color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--butter); }
.prose .ljuser::before { content: "@"; color: var(--steel); }
.prose a.img-missing { font: 13px var(--sans); color: var(--steel); }
.prose hr { border: 0; border-top: 1px solid var(--line); }

.more { display: inline-block; margin-top: 6px; padding: 6px 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--butter); text-decoration-thickness: 3px; text-underline-offset: 4px; }

.video-card { position: relative; display: block; margin: .9em 0; aspect-ratio: 16/9; max-width: 34rem; overflow: hidden; border-radius: 3px; background: var(--wash); }
.video-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.video-card .play { position: absolute; left: 16px; bottom: 16px; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); }
.video-card .play::after { content: ""; position: absolute; left: 21px; top: 16px; border: 10px solid transparent; border-left: 15px solid var(--ink); border-right: 0; }

.entry footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 12px; list-style: none; margin: 0; padding: 0; flex: 1 1 auto; }
.tags a { color: var(--steel); font-size: 14px; text-decoration: none; }
.tags a::before { content: "#"; }
.tags a:hover { color: var(--ink); }
/* the comments button carries its count */
.count {
  display: inline-flex; align-items: center; gap: 7px; margin-left: auto;
  min-height: 36px; padding: 0 14px 0 12px; border: 1.5px solid var(--ink); border-radius: 999px;
  color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.count .ic { width: 16px; height: 16px; stroke-width: 1.9; }
.count .n { font-variant-numeric: tabular-nums; }
.count .new { margin-left: 2px; padding: 1px 7px; border-radius: 999px; background: var(--butter); color: #3A2D08; font-size: 12px; }
.count:active { background: var(--ink); color: var(--paper); }

.props { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 18px 0 0; font-size: 14px; }
.props dt { color: var(--steel); }
.props dd { margin: 0; }
.entry.full .tags { margin-top: 18px; }
.entry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 26px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink); font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn .ic { width: 18px; height: 18px; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn:active { opacity: .8; }
.btn.ghost { border-color: transparent; padding: 0 6px; }
.btn.ghost:hover { text-decoration: underline; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.icon-only { padding: 0 10px; border-color: transparent; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: progress; }
.danger-text { color: var(--danger) !important; }
button.link { border: 0; background: none; padding: 8px 0; color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
button.link.muted { color: var(--steel); font-weight: 500; }
.row { display: flex; gap: 12px; align-items: center; }
.row.end { justify-content: flex-end; }

/* ---------- comments: text and a hairline ---------- */
.thread { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.thread > h3 { margin: 0 0 6px; font: 400 24px var(--serif); }
.cmt { position: relative; padding: 14px 0 0; font-size: 16px; }
.kids { margin-left: 13px; padding-left: 16px; border-left: 1px solid var(--line); }
.cmt.d4 > .kids { margin-left: 0; padding-left: 0; border-left: 0; }
.chead { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.chead .pic { width: 22px; height: 22px; }
.chead .pic.none { font-size: 10px; }
.chead > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; }
.chead .name { font-weight: 650; color: var(--ink); text-decoration: none; }
.chead .anon { color: var(--steel); font-style: italic; font-weight: 500; }
.chead .to, .chead time { color: var(--steel); }
.newdot { width: 7px; height: 7px; border-radius: 50%; background: var(--butter); flex: none; order: -1; }
.cmt.mine > .chead .name { box-shadow: inset 0 -3px 0 var(--butter); }
.csubj { margin: 6px 0 0 30px; font-weight: 650; }
.cbody { margin: 3px 0 0 30px; line-height: 1.55; overflow-wrap: anywhere; }
.cbody img { max-width: 100%; height: auto; }
.cbody .ljuser { font-weight: 650; color: var(--ink); text-decoration: none; }
.cbody blockquote { margin: .4em 0; padding-left: .8em; border-left: 2px solid var(--line); color: var(--steel); }
.cactions { display: flex; gap: 18px; margin-left: 30px; }
.cactions button.link { color: var(--steel); font-size: 13.5px; font-weight: 500; padding: 6px 0; text-decoration: none; }
.cactions button.link:hover { color: var(--ink); }
.hidden-note { display: none; margin: 4px 0 0 30px; padding: 4px 0; border: 0; background: none; color: var(--steel); font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cmt.collapsed > .hidden-note { display: inline-block; }
.cmt.collapsed > .kids, .cmt.collapsed > .cbody, .cmt.collapsed > .cactions, .cmt.collapsed > .csubj { display: none; }
.cmt.is-new > .cbody { margin-left: 22px; padding: 4px 8px; border-radius: 4px; background: var(--butter-soft); }
.cmt.deleted .gone { margin: 4px 0; font-size: 14px; font-style: italic; color: var(--steel); }
.flash { animation: flash 1.8s ease-out; }
@keyframes flash { 0%, 35% { background: var(--butter-soft); } 100% { background: transparent; } }

/* inline comment form */
.composer { margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.composer.nested { margin: 10px 0 6px 30px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--wash); }
.composer-title { margin: 0 0 4px; font: 400 19px var(--serif); }
.composer.nested .composer-title { font-size: 16px; }
.composer textarea { width: 100%; min-height: 84px; border: 0; border-bottom: 1.5px solid var(--line); background: transparent; padding: 8px 0; font: 17.5px/1.55 var(--serif); resize: none; }
.composer textarea:focus-visible { outline: none; border-bottom-color: var(--ink); }
.composer .row { margin-top: 12px; gap: 18px; }
.composer .btn { min-height: 40px; }

/* ---------- sheets & dialogs ---------- */
dialog { color: var(--ink); background: var(--paper); border: 0; padding: 0; }
dialog::backdrop { background: rgba(10, 12, 13, .35); }
dialog.sheet {
  width: 100%; max-width: 38rem; margin: auto auto 0; border-radius: 16px 16px 0 0;
  padding: 18px 20px calc(18px + var(--safe-b)); max-height: 90dvh; overflow: auto;
  animation: up .22s cubic-bezier(.2,.8,.2,1);
}
@media (min-width: 700px) { dialog.sheet { margin: auto; border-radius: 16px; } }
@keyframes up { from { transform: translateY(30px); opacity: .5; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.sheet-head h3 { margin: 0; font: 400 22px var(--serif); }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.iconbtn:hover { background: var(--wash); }
.quote { margin: 4px 0 12px; padding-left: 12px; border-left: 2px solid var(--butter); color: var(--steel); font: italic 15px/1.45 var(--serif); }

/* fields are lines */
.reply textarea, .compose textarea, .compose input, .compose select, .login input {
  width: 100%; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; padding: 10px 0; background: transparent; resize: none; line-height: 1.5;
  font-size: 17px; color: var(--ink); /* never under 16px: iOS zooms the whole page into a smaller field */
}
.reply textarea:focus-visible, .compose input:focus-visible, .compose select:focus-visible, .compose textarea:focus-visible, .login input:focus-visible { outline: none; border-bottom-color: var(--ink); }
.reply textarea { min-height: 120px; font: 18px/1.55 var(--serif); }
.reply .row { margin-top: 14px; }
.field-error { margin: 8px 0 0; color: var(--danger); font-size: 14px; }
.field-error:empty { display: none; }

dialog.confirm { max-width: 21rem; border-radius: 14px; padding: 22px; }
dialog.confirm h3 { margin: 0 0 6px; font: 400 22px var(--serif); }
dialog.confirm p { margin: 0 0 18px; color: var(--steel); }

#toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-b) + 24px); z-index: 40;
  display: flex; align-items: center; gap: 16px; max-width: calc(100% - 32px);
  padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: .2s;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
#toast.error { background: var(--danger); color: #fff; }
#toast .link { color: var(--butter); text-decoration: none; padding: 0; }

.update {
  position: fixed; left: 50%; bottom: calc(var(--safe-b) + 24px); z-index: 45; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; padding: 6px 6px 6px 18px; border-radius: 999px;
  background: var(--butter); color: #2E2406; font-size: 14px; font-weight: 650; white-space: nowrap;
}
.update .btn { min-height: 34px; padding: 0 14px; border: 0; background: #2E2406; color: var(--butter); }

/* ---------- compose: a page to write on ---------- */
.compose { display: flex; flex-direction: column; gap: 22px; padding-top: 14px; }
.compose .paper { display: flex; flex-direction: column; }
.compose .subject-input { font: 400 30px/1.2 var(--serif); letter-spacing: -0.015em; border-bottom: 0; padding: 6px 0; }
.compose .body-input { font: 18.5px/1.62 var(--serif); min-height: 30vh; border-bottom: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 13px; color: var(--steel); }
.inline { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--steel); }
.inline select { width: auto; flex: 1; }

.taginput { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 4px 0 8px; border-bottom: 1.5px solid var(--line); cursor: text; }
.taginput:focus-within { border-bottom-color: var(--ink); }
.chips { display: contents; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 0; font-size: 15px; font-weight: 600; }
.chips li span { box-shadow: inset 0 -6px 0 var(--butter-soft); }
.chips li span::before { content: "#"; color: var(--steel); font-weight: 400; }
.chips button { width: 28px; height: 28px; border: 0; background: none; color: var(--steel); font-size: 17px; cursor: pointer; }
.compose .chip-input { flex: 1; min-width: 8rem; border: 0; padding: 6px 0; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 10; margin: 0; padding: 10px 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; background: var(--paper); border-bottom: 1px solid var(--line); max-height: 40vh; overflow: auto; }
.suggest button { display: inline-flex; gap: 5px; align-items: baseline; padding: 4px 0; border: 0; background: none; cursor: pointer; font-size: 15px; color: var(--ink); }
.suggest button::before { content: "#"; color: var(--steel); }
.suggest small { color: var(--steel); font-size: 11px; }
.suggest .newtag { font-weight: 650; box-shadow: inset 0 -6px 0 var(--butter); }
.suggest .newtag::before { content: "+ #"; }

/* visibility reads like a sentence */
.seg { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.seg button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; border: 0; background: none; color: var(--steel); font-size: 16px; font-weight: 500; cursor: pointer; }
.seg button .ic { width: 15px; height: 15px; }
.seg button.on { color: var(--ink); font-weight: 650; box-shadow: inset 0 -3px 0 var(--butter); }
.groups { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.more-box summary { cursor: pointer; font-size: 14px; color: var(--steel); padding: 4px 0; list-style: none; }
.more-box summary::-webkit-details-marker { display: none; }
.more-box summary::before { content: "+ "; }
.more-box[open] summary::before { content: "− "; }
.more-box label { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; font-size: 13px; color: var(--steel); }
.sticky-actions { position: sticky; bottom: 0; z-index: 3; margin: 0 -20px; padding: 14px 20px calc(14px + var(--safe-b)); background: linear-gradient(transparent, var(--paper) 35%); }

/* ---------- install ---------- */
.nudge { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--butter-soft); font-size: 15px; }
.nudge span { flex: 1 1 12rem; }
.nudge .btn { min-height: 38px; padding: 0 16px; }
.install-row .ic { color: var(--ink); }
.steps { list-style: none; margin: 10px 0 18px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; line-height: 1.5; }
.stepn { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--butter); color: #2E2406; font-weight: 700; font-size: 14px; }
.glyph { display: inline-grid; place-items: center; width: 30px; height: 30px; margin: 0 2px; vertical-align: middle; border-radius: 8px; background: var(--wash); color: #0A84FF; }
.glyph .ic { width: 19px; height: 19px; }

/* ---------- me ---------- */
.profile { display: flex; align-items: center; gap: 16px; padding: 26px 0 4px; }
.profile .pic { width: 56px; height: 56px; }
.profile h2 { margin: 0; font: 400 30px/1.1 var(--serif); letter-spacing: -0.015em; }
.profile a { color: var(--steel); text-decoration: none; }
.group { margin-top: 34px; }
.group h3 { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--steel); }
.row-btn, .plist a {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 0;
  border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer;
  color: var(--ink); font-size: 16px; font-weight: 550; text-decoration: none;
}
.row-btn span { display: flex; flex-direction: column; }
.row-btn small { color: var(--steel); font-weight: 400; font-size: 13px; }
.row-btn .ic { color: var(--steel); }
.plist { list-style: none; margin: 0; padding: 0; }
.plist small { color: var(--steel); font-weight: 400; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plist .ic { margin-left: auto; width: 16px; color: var(--steel); }
.version { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 40px 0 0; font-size: 13px; color: var(--steel); }
.version .link { font-size: 13px; }

.errlog { margin-top: 18px; font-size: 13px; color: var(--steel); }
.errlog summary { cursor: pointer; padding: 6px 0; }
.errlog pre { white-space: pre-wrap; max-height: 40vh; overflow: auto; padding: 10px; border-radius: 8px; background: var(--wash); font-size: 11.5px; }

/* ---------- login ---------- */
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login { width: 100%; max-width: 20rem; display: flex; flex-direction: column; gap: 4px; }
.login .brand { margin: 0 0 30px; flex-direction: column; align-items: flex-start; gap: 10px; }
.login .wordmark { height: 76px; }
.login .brand p { margin: 0; color: var(--steel); }
.login .mark { width: 64px; height: 64px; border-radius: 15px; }
.login label { margin-top: 14px; font-size: 13px; color: var(--steel); }
.login .btn { margin-top: 28px; }
.login .hint { margin: 16px 0 0; font-size: 12.5px; color: var(--steel); }

/* ---------- empty / loading ---------- */
.empty { padding: 64px 0; color: var(--steel); }
.empty p { max-width: 26rem; margin: 0 0 20px; font: 20px/1.45 var(--serif); color: var(--ink); }
.empty .clatter { height: 40px; gap: 6px; margin-bottom: 18px; }
.empty .clatter i { width: 6px; }
.empty .clatter i:nth-child(1) { height: 18px; } .empty .clatter i:nth-child(2) { height: 34px; } .empty .clatter i:nth-child(3) { height: 14px; } .empty .clatter i:nth-child(4) { height: 40px; } .empty .clatter i:nth-child(5) { height: 22px; }
.skeleton .sk { padding: 28px 0; }
.skeleton i { display: block; width: 28px; height: 28px; border-radius: 50%; margin-bottom: 16px; }
.skeleton b { display: block; height: 12px; margin: 11px 0; border-radius: 2px; }
.skeleton b.short { width: 55%; }
.skeleton i, .skeleton b { background: var(--wash); animation: breathe 1.2s ease-in-out infinite alternate; }
@keyframes breathe { to { opacity: .45; } }
.boot { min-height: 100dvh; }

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

/* ---------- print (PDF export) ---------- */
.print { max-width: 40rem; margin: 0 auto; padding: 24px 20px 60px; }
.print-bar { position: sticky; top: 0; display: flex; justify-content: space-between; padding: 10px 0; background: var(--paper); }
.print-title { font: 400 44px var(--serif); margin: 24px 0 4px; }
.print-sub { color: var(--steel); margin: 0 0 32px; }
.p-entry { padding: 20px 0; border-top: 1px solid var(--line); break-inside: avoid-page; }
.p-entry h2 { font: 600 21px var(--serif); margin: 4px 0 8px; }
.p-date { font-size: 13px; color: var(--steel); margin: 0; }
.p-tags { font-size: 13px; color: var(--steel); }
.p-comments { margin-top: 12px; font-size: 13.5px; }
.p-c { padding: 6px 0 0 10px; border-left: 1px solid var(--line); margin-top: 6px; }
.p-cm { margin: 0; color: var(--steel); }
@media print {
  :root { --paper: #fff; --ink: #000; --steel: #555; --line: #bbb; }
  .no-print, .mast, #toast, #progress, .update { display: none !important; }
  .print { padding: 0; }
  .prose { font-size: 11.5pt; }
  a { color: inherit; text-decoration: none; }
}
