/* msslmemo — text-first, notebook-quiet */
@font-face {
  font-family: 'OpenDyslexic';
  src: url('https://cdn.jsdelivr.net/npm/open-dyslexic@1.0.3/woff/OpenDyslexic-Regular.woff') format('woff'),
       url('https://cdn.jsdelivr.net/npm/open-dyslexic@1.0.3/otf/OpenDyslexic-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'OpenDyslexic';
  src: url('https://cdn.jsdelivr.net/npm/open-dyslexic@1.0.3/woff/OpenDyslexic-Bold.woff') format('woff'),
       url('https://cdn.jsdelivr.net/npm/open-dyslexic@1.0.3/otf/OpenDyslexic-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1c1c1c;
  --paper: #fbfaf7;
  --line: #e3e0d8;
  --dim: #8a867c;
  --accent: #b3492c;
  --done: #9a968c;
  --card: #ffffff;
  --code: #f1efe8;
  --soft: #f5f2ea;
  --ok-bg: #eaf3de;
  --ok-border: #c0dd97;
  --ok-text: #27500a;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* themes ... selectable per user in /profile */
body.theme-gold {
  --paper: #131313; --ink: #f2ead8; --line: #3a3a3a; --dim: #9a9484;
  --accent: #f0c437; --done: #6f6a5e; --card: #1d1d1d; --code: #262626;
  --soft: #1e1c12; --ok-bg: #1e2a16; --ok-border: #3f5a2a; --ok-text: #b7d98f;
}
body.theme-night {
  --paper: #16181b; --ink: #e4e4e0; --line: #2f3235; --dim: #8f938f;
  --accent: #e0704f; --done: #6e726e; --card: #1e2124; --code: #282b2e;
  --soft: #1b1e21; --ok-bg: #182417; --ok-border: #33512e; --ok-text: #a8d29a;
}
body.theme-contrast {
  --paper: #ffffff; --ink: #000000; --line: #000000; --dim: #2e2e2e;
  --accent: #a80000; --done: #4a4a4a; --card: #ffffff; --code: #eeeeee;
  --soft: #f2f2f2; --ok-bg: #e6f4e6; --ok-border: #0a6b0a; --ok-text: #0a4d0a;
}

input, textarea, select { background: var(--card); color: var(--ink); }
* { box-sizing: border-box; }
html, body { overflow-x: clip; max-width: 100%; }
img, svg { max-width: 100%; height: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--mono);
}
/* lowercase is the default voice; users can keep their caps in /profile */
body.lc { text-transform: lowercase; }
body.lc input, body.lc textarea, body.lc select, body.lc button { text-transform: lowercase; }
input[type=password], input[type=email] { text-transform: none !important; }
body.dysfont, body.dysfont input, body.dysfont button, body.dysfont code {
  font-family: 'OpenDyslexic', var(--mono);
}
body.dysfont { font-size: 15px; line-height: 1.7; }
main { max-width: 720px; margin: 0 auto; padding: 1rem 1.25rem 4rem; }
a { color: var(--ink); text-decoration-color: var(--line); }
a:hover { text-decoration-color: var(--accent); }
.dim { color: var(--dim); }
code { background: var(--code); padding: 0 .3em; border-radius: 3px; }

/* header / footer */
.top {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: baseline;
  max-width: 720px; margin: 0 auto; padding: 1rem 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.brand span { color: var(--accent); }
.top nav { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .9rem; }
.foot { max-width: 720px; margin: 0 auto; padding: 1rem 1.25rem; font-size: .78rem; }

/* page head */
.page-head { display: flex; align-items: baseline; gap: 1rem; margin: 1.25rem 0 .75rem; }
.page-head h1 { font-size: 1.15rem; margin: 0; flex: 1; text-align: center; }
.nav-arrow { text-decoration: none; font-size: 1.1rem; padding: 0 .4rem; }

h2 { font-size: .85rem; text-transform: lowercase; letter-spacing: .08em; color: var(--dim); margin: 1.5rem 0 .5rem; }

/* quick add */
.quick-add { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 1rem; }
.quick-add input[type=text], .quick-add input[type=search] { min-width: 0; }
.quick-add input[type=text] {
  flex: 1; font: inherit; padding: .5rem .65rem;
  border: 1px solid var(--line); border-radius: 4px; background: var(--card);
}
.quick-add input[type=date] { font: inherit; border: 1px solid var(--line); border-radius: 4px; padding: .4rem; }
.quick-add button, .auth-box button {
  font: inherit; padding: .5rem .9rem; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); border-radius: 4px; cursor: pointer;
}

/* entry list */
.entries { list-style: none; margin: 0; padding: 0; }
.entry {
  display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .5rem;
  padding: .45rem .25rem; min-height: 2.1rem; border-bottom: 1px dotted var(--line);
}
.entry .actions { margin-left: auto; }
.entry .bullet { width: 1.1em; text-align: center; flex-shrink: 0; }
.entry .sig { color: var(--accent); font-weight: 700; min-width: .5em; flex-shrink: 0; }
.entry .content { flex: 1; overflow-wrap: anywhere; }
.entry.done .content, .entry.cancelled .content, .entry.migrated .content, .entry.scheduled .content { color: var(--done); }
.entry.cancelled .content { text-decoration: line-through; }
.entry.event .bullet { color: var(--accent); }
.entry .actions { display: flex; gap: .25rem; align-items: center; opacity: .25; }
.entry:hover .actions { opacity: 1; }
@media (hover: none) { .entry .actions { opacity: 1; } }
.entry .actions form { display: inline; margin: 0; }
.entry .actions button {
  font: inherit; font-size: .85rem; background: none; border: 1px solid var(--line);
  border-radius: 3px; cursor: pointer; padding: 0 .4rem; color: var(--ink);
}
.entry .actions button:hover { border-color: var(--accent); color: var(--accent); }
.entry .actions button.ok { border-color: #7a9a6d; color: #55763f; }
.entry .actions button.ok:hover { background: #55763f; border-color: #55763f; color: #fff; }
.entry .actions button.danger { border: none; color: var(--dim); font-size: .72rem; text-transform: lowercase; letter-spacing: .05em; }
.entry .actions button.danger:hover { color: #fff; background: #a03020; }
.migrate summary { cursor: pointer; border: 1px solid var(--line); border-radius: 3px; padding: 0 .4rem; font-size: .85rem; list-style: none; }
.migrate[open] { position: relative; }
.migrate[open] form {
  position: absolute; right: 0; top: 1.6rem; z-index: 10;
  background: var(--card); border: 1px solid var(--line); border-radius: 4px;
  padding: .5rem; display: flex; gap: .4rem;
}
.empty { padding: .75rem .25rem; }

/* entry notes */
.entry { position: relative; }
.entry-notes { flex-shrink: 0; }
.entry-notes summary {
  cursor: pointer; list-style: none; font-size: .75rem; color: var(--dim);
  border: 1px solid var(--line); border-radius: 3px; padding: .1rem .4rem;
  white-space: nowrap; min-width: 4.6em; text-align: center; display: inline-block;
}
.entry-notes summary::-webkit-details-marker { display: none; }
.entry-notes.empty summary { opacity: .25; }
.entry:hover .entry-notes.empty summary { opacity: 1; }
@media (hover: none) { .entry-notes.empty summary { opacity: 1; } }
.entry-notes[open] summary { color: var(--accent); border-color: var(--accent); }
.notes-panel {
  position: absolute; left: 1.6em; right: 0; top: 100%; z-index: 25;
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: .6rem .8rem; display: flex; flex-direction: column; gap: .4rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.note-line { display: flex; gap: .5rem; align-items: baseline; font-size: .85rem; }
.note-time { font-size: .72rem; white-space: nowrap; }
.note-text { flex: 1; overflow-wrap: anywhere; }
.note-line form { margin: 0; }
.note-del { background: none; border: none; cursor: pointer; font-size: .85rem; padding: 0 .2rem; }
.note-del:hover { color: #a03020; }
.note-add { display: flex; gap: .4rem; margin-top: .2rem; }
.note-add input { flex: 1; font: inherit; font-size: .85rem; padding: .3rem .5rem; border: 1px solid var(--line); border-radius: 4px; min-width: 0; }
.note-add button { font: inherit; font-size: .8rem; border: 1px solid var(--line); background: none; border-radius: 3px; cursor: pointer; padding: 0 .6rem; }
.note-add button:hover { border-color: var(--accent); color: var(--accent); }
.note-hit { font-size: .85rem; }
.entry-date { font-size: .78rem; margin-left: .5rem; white-space: nowrap; color: var(--dim); }
.entry-col { font-size: .72rem; margin-left: .5rem; white-space: nowrap; color: var(--dim); border: 1px solid var(--line); border-radius: 3px; padding: 0 .35rem; text-decoration: none; }
.entry-col:hover { border-color: var(--accent); color: var(--accent); }
.entry .content { cursor: text; }
.inline-edit { display: flex; flex: 1; gap: .4rem; }
.inline-edit input[type=text] { flex: 1; font: inherit; padding: .15rem .4rem; border: 1px solid var(--accent); border-radius: 3px; }
.inline-edit button { font: inherit; font-size: .85rem; border: 1px solid var(--line); background: none; border-radius: 3px; cursor: pointer; padding: 0 .5rem; }
.review-link { margin: -.25rem 0 1rem; text-align: center; font-size: .85rem; }

/* small screens: let entry rows wrap instead of pushing the page wide */
@media (max-width: 640px) {
  main { padding: 1rem .9rem 4rem; }
  .top { padding: 1rem .9rem 0; }
  .admin-table { display: block; overflow-x: auto; }
  /* ios safari zooms the page when a focused field is under 16px ... keep every
     field at 16px on small screens so focus never triggers the zoom */
  input, textarea, select { font-size: 16px !important; }
  .entry-notes[open] { flex-basis: 100%; order: 20; }
  .entry-notes[open] .notes-panel {
    position: static; box-shadow: none; margin-top: .35rem;
  }
}

/* carryover section */
.carry { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: .25rem .75rem .5rem; margin-bottom: 1rem; }
.carry h2 { margin-top: .6rem; }
.carry-hint { font-size: .78rem; margin: -.25rem 0 .5rem; }
.carry .entry .actions { opacity: 1; }
.carry .entry .actions button { white-space: nowrap; }

/* monthly */
.monthly { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 640px) { .monthly { grid-template-columns: 1fr; } }
.cal-days { list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.cal-days li { display: flex; gap: .6rem; padding: .12rem 0; border-bottom: 1px dotted var(--line); }
.cal-date { text-decoration: none; white-space: nowrap; }
.cal-date.weekend { color: var(--accent); }
.cal-events { display: flex; flex-direction: column; }
.cal-event { overflow-wrap: anywhere; }

/* index */
.index-list { list-style: none; padding: 0; }
.index-list li { padding: .3rem 0; border-bottom: 1px dotted var(--line); display: flex; justify-content: space-between; gap: 1rem; }

/* landing */
.landing section { margin: 2.5rem 0; }
.landing-hero { text-align: center; margin-top: 3rem; }
.landing-tagline { font-size: 2rem; line-height: 1.25; color: var(--accent); margin: 0 0 1rem; }
.landing-sub { font-size: 1.05rem; max-width: 34rem; margin: 0 auto .75rem; }
.landing-hero .dim { max-width: 30rem; margin: 0 auto 1.5rem; }
.landing h2 { font-size: 1rem; text-align: center; margin-bottom: 1rem; }
.landing-cta {
  display: inline-block; font-weight: 700; text-decoration: none;
  background: var(--accent); color: #fff; border-radius: 6px; padding: .65rem 1.3rem;
}
.landing-cta:hover { opacity: .9; }
.landing-alt { margin-left: 1rem; color: var(--dim); }
.landing-demo .guide-demo { max-width: 34rem; margin: .75rem auto; }
.landing-demo .dim, .landing-fine { text-align: center; }
.landing-pricing { text-align: center; }
.price-card {
  max-width: 24rem; margin: 0 auto 1rem; background: var(--card);
  border: 2px solid var(--accent); border-radius: 8px; padding: 1.25rem 1.5rem;
}
.price-badge {
  display: inline-block; font-size: .72rem; letter-spacing: .1em; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 3px; padding: .1rem .5rem; margin: 0 0 .5rem;
}
.price-big { font-size: 2.4rem; font-weight: 700; margin: 0 0 .75rem; }
.price-list { list-style: none; margin: 0 0 1rem; padding: 0; text-align: left; }
.price-list li { padding: .3rem 0; border-bottom: 1px dotted var(--line); font-size: .9rem; }
.landing-waitlist { display: flex; flex-direction: column; gap: .5rem; }
.landing-waitlist input {
  font: inherit; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 4px;
}
.landing-waitlist button {
  font: inherit; font-weight: 700; padding: .6rem; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; border-radius: 6px; cursor: pointer;
}

/* tagline */
.tagline { color: var(--accent); font-weight: 700; letter-spacing: .01em; }
.auth-box .tagline { font-size: .9rem; margin-top: -.5rem; }

/* auth */
.auth-box { max-width: 360px; margin: 3rem auto; }
.auth-box label { display: block; margin: .75rem 0; }
.auth-box input { display: block; width: 100%; font: inherit; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 4px; margin-top: .25rem; }
.auth-box .error { color: var(--accent); }
.auth-box .notice { background: var(--ok-bg); border: 1px solid var(--ok-border); border-radius: 4px; padding: .5rem .75rem; color: var(--ok-text); }

/* future */
.future-month h2 a { text-decoration: none; color: inherit; }

/* guide tl;dr */
.tldr { background: var(--card); border: 2px solid var(--accent); border-radius: 6px; padding: .25rem 1rem 1rem; margin: 1.25rem 0 2rem; }
.tldr h2 { color: var(--accent); margin: .75rem 0 .75rem; }
.tldr h3 { font-size: .85rem; margin: 0 0 .35rem; }
.tldr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 640px) { .tldr-grid { grid-template-columns: 1fr; } }
.tldr-grid p { margin: 0; font-size: .82rem; line-height: 1.9; }
.tldr > .dim { margin: .9rem 0 0; font-size: .8rem; }

/* guide */
.guide { margin-bottom: 2.25rem; }
.guide h3 { font-size: .95rem; margin: 0 0 .3rem; }
.guide-demo {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: .4rem 1.25rem; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: .9rem 1rem; margin: .75rem 0;
}
.guide-typed, .guide-becomes { font-size: .75rem; text-transform: lowercase; letter-spacing: .08em; color: var(--dim); }
.guide-demo > code { justify-self: start; }
.guide-render { border: none; }
.guide-render .entry { border-bottom: none; padding: 0; }
.guide-states { display: grid; gap: .3rem; margin: .75rem 0; }
.guide-state .bullet { display: inline-block; width: 1.3em; text-align: center; color: var(--accent); }
.guide-svg { width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; margin: .75rem 0; }
.guide-views { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .guide-views { grid-template-columns: 1fr; } }
.guide-view { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: .75rem 1rem; }
.guide-view p { margin: .25rem 0 0; font-size: .9rem; }
.guide-rhythm li { margin: .4rem 0; }
.guide-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .guide-plans { grid-template-columns: 1fr; } }
.guide-plan { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: .75rem 1rem; }
.guide-plan-pro { border: 2px solid var(--accent); }
.guide-plan ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.guide-plan li { margin: .25rem 0; font-size: .9rem; }

/* search */
.quick-add input[type=search] {
  flex: 1; font: inherit; padding: .5rem .65rem;
  border: 1px solid var(--line); border-radius: 4px; background: var(--card);
}
.search-loc { font-size: .8rem; white-space: nowrap; }
.search-loc a { color: var(--dim); }

/* brain dump */
.dump-composer { display: flex; flex-direction: column; gap: .5rem; margin: .75rem 0 1rem; }
.dump-composer textarea {
  font: inherit; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 4px;
  background: var(--card); resize: vertical; line-height: 1.6;
}
.dump-composer button {
  align-self: flex-end; font: inherit; padding: .5rem .9rem; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); border-radius: 4px; cursor: pointer;
}
.dump-sort { font-size: .85rem; margin: 1.25rem 0 .75rem; }
.dump-sort a.sort-active { color: var(--accent); text-decoration: none; font-weight: 700; }
.dump-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 640px) { .dump-cards { grid-template-columns: 1fr; } }
.dump-card {
  display: flex; flex-direction: column; gap: .6rem; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: .75rem .9rem; text-decoration: none;
}
.dump-card:hover { border-color: var(--accent); }
.dump-preview { font-size: .9rem; overflow-wrap: anywhere; }
.dump-meta { font-size: .75rem; }
.dump-meta-line { margin-top: -.25rem; font-size: .85rem; }
.dump-delete { margin-top: 1.5rem; }
.dump-delete button.danger {
  font: inherit; font-size: .8rem; border: 1px solid var(--line); background: none;
  border-radius: 3px; cursor: pointer; padding: .2rem .6rem; color: var(--dim);
}
.dump-delete button.danger:hover { background: #a03020; border-color: #a03020; color: #fff; }

/* profile */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 640px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-grid > section {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: .25rem 1.1rem 1.1rem; margin: 0; min-width: 0;
}
.profile-grid > section.span { grid-column: 1 / -1; }
.profile-grid h2 { margin-top: .9rem; }
.profile-form { display: flex; flex-direction: column; gap: .6rem; }
.profile-form label { display: block; }
.profile-form label.radio { display: block; }
.profile-form label.radio input { margin-right: .4rem; }
.profile-form input[type=password],
.profile-form textarea {
  display: block; width: 100%; font: inherit; padding: .5rem .65rem;
  border: 1px solid var(--line); border-radius: 4px; margin-top: .25rem;
}
.profile-form textarea { resize: vertical; line-height: 1.6; }
.profile-form .setting-label { margin: .5rem 0 0; font-size: .8rem; text-transform: lowercase; letter-spacing: .08em; }
.profile-form.send-now { flex-direction: row; align-items: baseline; gap: .75rem; margin-top: .75rem; }
.profile-form.send-now button { background: none; color: var(--ink); border: 1px solid var(--line); }
.profile-form.send-now button:hover { border-color: var(--accent); color: var(--accent); }
.profile-form button {
  align-self: flex-start; font: inherit; padding: .4rem .8rem; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); border-radius: 4px; cursor: pointer;
}
.notice-ok { background: var(--ok-bg); border: 1px solid var(--ok-border); border-radius: 4px; padding: .5rem .75rem; color: var(--ok-text); }
.error { color: var(--accent); }

/* quick login link */
.login-link { width: 100%; font: inherit; font-size: .8rem; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 4px; background: var(--card); color: var(--ink); }
.link-actions { display: flex; gap: .5rem; }
.link-actions form { margin: 0; }
.link-actions button { font: inherit; font-size: .85rem; padding: .35rem .7rem; border: 1px solid var(--line); background: none; border-radius: 4px; cursor: pointer; }
.link-actions button:hover { border-color: var(--accent); color: var(--accent); }
.link-actions button.danger:hover { background: #a03020; border-color: #a03020; color: #fff; }

/* experimental layout */
.xhead { flex-wrap: nowrap; align-items: baseline; gap: 1.1rem; padding-bottom: .6rem; }
.xhead .xnav { display: flex; gap: .9rem; flex: 1; font-size: .9rem; align-items: baseline; }
.xhead .xscope { width: auto; font-size: .8rem; gap: .45rem; }
.nav-more { position: relative; }
.nav-more summary { cursor: pointer; list-style: none; color: var(--dim); }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more[open] summary { color: var(--accent); }
.nav-more-panel {
  position: absolute; left: 0; top: 1.7rem; z-index: 30; min-width: 11rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: .6rem .9rem; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem;
}
.xfoot { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.xfoot .cheat summary { cursor: pointer; list-style: none; }
.xfoot .cheat summary::-webkit-details-marker { display: none; }
.xfoot .cheat[open] summary { color: var(--accent); }
@media (max-width: 640px) {
  .xhead { flex-wrap: wrap; }
  .xhead .xnav { flex-wrap: wrap; gap: .7rem; }
  .nav-more-panel { left: auto; right: 0; }
}

/* work/life realms */
.scope-switch { display: flex; gap: .6rem; font-size: .8rem; align-items: baseline; width: 100%; }
.scope-switch a { text-decoration: none; }
.scope-switch a.scope-on { color: var(--accent); font-weight: 700; border-bottom: 2px solid var(--accent); }
.realm-badge {
  font-size: .68rem; font-weight: 700; color: var(--accent); border: 1px solid var(--accent);
  border-radius: 3px; padding: 0 .3rem; margin-left: .45rem; vertical-align: middle;
}
.dump-realm { display: flex; gap: 1rem; align-items: center; justify-content: flex-end; }
.dump-realm .radio { font-size: .85rem; }

/* collection manage */
.collection-manage { margin: -.25rem 0 1rem; font-size: .85rem; }
.collection-manage summary { cursor: pointer; }
.collection-manage form { margin-top: .6rem; }
.collection-delete { font: inherit; font-size: .85rem; border: 1px solid var(--line); background: none; border-radius: 4px; cursor: pointer; padding: .3rem .7rem; color: var(--dim); }
.collection-delete:hover { background: #a03020; border-color: #a03020; color: #fff; }

/* the matrix */
.matrix-hint { font-size: .85rem; }
.matrix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 640px) { .matrix-grid { grid-template-columns: 1fr; } }
.matrix-q { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: .25rem .9rem .6rem; min-width: 0; }
.matrix-q.matrix-accent { border-color: var(--accent); }
.matrix-q.matrix-accent h2 { color: var(--accent); }
.matrix-q h2 { margin-top: .7rem; }
.matrix-q4-hint { font-size: .78rem; margin: .5rem 0 .25rem; }
.guide-matrix { font-size: .85rem; margin: 1rem 0; }
.guide-matrix .entry { border-bottom: none; padding: .15rem 0; }
.guide-matrix h2 { font-size: .78rem; }

/* requests (bugs & ideas) */
.request-form { display: flex; flex-direction: column; gap: .6rem; margin: 1rem 0 1.5rem; }
.request-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.request-row input[type=text] { flex: 1; min-width: 0; }
.request-form input[type=text], .request-form select, .request-form textarea {
  font: inherit; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 4px;
}
.request-form textarea { resize: vertical; line-height: 1.6; }
.request-form button {
  font: inherit; padding: .5rem .9rem; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); border-radius: 4px; cursor: pointer;
}
.request-list { list-style: none; margin: 0; padding: 0; }
.request-item { border: 1px solid var(--line); border-radius: 6px; background: var(--card); padding: .7rem .9rem; margin-bottom: .75rem; }
.request-head { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.request-type { font-size: .72rem; border: 1px solid var(--line); border-radius: 3px; padding: 0 .4rem; color: var(--dim); }
.request-title { font-weight: 700; flex: 1; }
.request-status { font-size: .75rem; border-radius: 3px; padding: 0 .45rem; }
.st-new { background: var(--code); }
.st-approved { background: var(--ok-bg); color: var(--ok-text); border: 1px solid var(--ok-border); }
.st-built { background: var(--ok-bg); color: var(--ok-text); border: 1px solid var(--ok-border); }
.st-shipped { color: var(--accent); border: 1px solid var(--accent); }
.st-declined { color: var(--dim); text-decoration: line-through; }
.request-details { margin: .4rem 0; font-size: .88rem; }
.request-note { font-size: .85rem; color: var(--accent); margin: .3rem 0; }
.request-meta { font-size: .78rem; margin: .3rem 0 0; }
.request-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.request-actions input[type=text] { flex: 1; min-width: 180px; font: inherit; font-size: .85rem; padding: .3rem .5rem; border: 1px solid var(--line); border-radius: 4px; }
.request-actions button { font: inherit; font-size: .85rem; padding: .3rem .7rem; border: 1px solid var(--line); background: none; border-radius: 4px; cursor: pointer; }
.request-actions button:hover { border-color: var(--accent); color: var(--accent); }

/* links */
.link-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.link-item {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .45rem .25rem; border-bottom: 1px dotted var(--line);
}
.link-name { font-weight: 700; text-decoration-color: var(--accent); }
.link-url { font-size: .78rem; overflow-wrap: anywhere; flex: 1; }
.link-item form { margin: 0 0 0 auto; }
.link-del {
  font: inherit; font-size: .72rem; background: none; border: none; cursor: pointer;
  color: var(--dim); text-transform: lowercase; letter-spacing: .05em; padding: 0 .3rem;
}
.link-del:hover { color: #fff; background: #a03020; border-radius: 3px; }

/* changelog */
.changelog-version { color: var(--accent); font-size: 1rem; margin: 1.75rem 0 .4rem; }
.changelog-list { margin: 0; padding-left: 1.3rem; }
.changelog-list li { margin: .25rem 0; font-size: .92rem; }
.changelog-list li.cont { list-style: none; margin-top: -.25rem; }

/* admin */
.admin-table { border-collapse: collapse; width: 100%; font-size: .85rem; }
.admin-table th { text-align: left; color: var(--dim); font-weight: 400; border-bottom: 1px solid var(--line); padding: .3rem .5rem .3rem 0; }
.admin-table td { border-bottom: 1px dotted var(--line); padding: .35rem .5rem .35rem 0; }
.admin-actions { display: flex; gap: .35rem; }
.admin-actions form { margin: 0; }
.admin-actions button, section > form button {
  font: inherit; font-size: .8rem; background: none; border: 1px solid var(--line);
  border-radius: 3px; cursor: pointer; padding: .1rem .5rem; color: var(--ink);
}
.admin-actions button:hover, section > form button:hover { border-color: var(--accent); color: var(--accent); }
.linklike { font: inherit; font-size: .9rem; background: none; border: none; cursor: pointer; color: var(--dim); text-decoration: underline; padding: 0; }
.admin-pw { display: flex; flex-direction: column; gap: .6rem; max-width: 420px; }
.admin-pw input { display: block; width: 100%; font: inherit; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 4px; margin-top: .25rem; }
.invite-row td { padding: 0 0 .6rem; border-bottom: 1px dotted var(--line); }
.invite-row .login-link { font-size: .72rem; padding: .3rem .5rem; }
