/* Ruang Kolaborasi: navy, gold and ivory; Fraunces for headings (self-hosted, OFL), system sans for text. */
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-latin.woff2) format("woff2"); font-weight: 300 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-latin-ext.woff2) format("woff2"); font-weight: 300 800; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #13233f; --navy-2: #1d3358; --navy-3: #2a4570;
  --gold: #b08d57; --gold-2: #c9a96e; --gold-soft: #efe5d2;
  --bg: #f7f4ee; --surface: #ffffff; --surface-2: #fbf9f5;
  --ink: #1b1f2a; --muted: #687083; --line: #e6dfd2; --line-2: #d8cfbf;
  --org-a: #1f6f5c; --org-a-soft: #dcefe8; --org-b: #9a7742; --org-b-soft: #f3e8d4;
  --ok: #2f7a5b; --ok-soft: #e3f2ea; --err: #a83a3a; --err-soft: #f8e4e2; --late: #b4532a;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 12px; --shadow: 0 1px 2px rgba(19, 35, 63, .05), 0 6px 24px rgba(19, 35, 63, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1524; --surface: #151f33; --surface-2: #1a2640;
    --ink: #ece8df; --muted: #9aa3b6; --line: #26334d; --line-2: #33425f;
    --gold-soft: #3a3322; --org-a: #5fbfa3; --org-a-soft: #173a33; --org-b: #d4b27a; --org-b-soft: #3b3020;
    --ok: #67c39b; --ok-soft: #173528; --err: #ef8b84; --err-soft: #3d1f22; --late: #f0a070;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--sans); color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--navy-3); text-underline-offset: 2px; }
@media (prefers-color-scheme: dark) { a { color: var(--gold-2); } }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -.01em; line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; display: flex; align-items: center; gap: .4em; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small, small { font-size: .85rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
[hidden] { display: none !important; }

/* Header */
.top { background: var(--navy); color: #fff; }
.top-in, .nav-in, .wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand b { display: block; font-family: var(--serif); font-weight: 560; font-size: 1.12rem; letter-spacing: .01em; }
.brand small { display: block; color: var(--gold-2); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.me { display: flex; align-items: center; gap: 6px; }
.me form { margin: 0; }
.me-link { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 4px 8px 4px 4px; border-radius: 99px; }
.me-link:hover { background: rgba(255, 255, 255, .08); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.icon-btn:hover { background: rgba(127, 127, 127, .14); }
.top .icon-btn { color: #c8cfdd; }
.nav { background: var(--navy-2); border-top: 1px solid rgba(255, 255, 255, .06); }
.nav-in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav a { display: flex; align-items: center; gap: 8px; padding: 12px 14px; color: #c8cfdd; text-decoration: none; white-space: nowrap; font-size: .93rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; }
.nav a.on { color: #fff; border-bottom-color: var(--gold-2); }

.wrap { width: 100%; padding-top: 28px; padding-bottom: 40px; flex: 1; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }

/* Avatars */
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: .78rem; font-weight: 650; letter-spacing: .02em; flex: none; }
.avatar.org-a { background: var(--org-a-soft); color: var(--org-a); box-shadow: inset 0 0 0 1.5px var(--org-a); }
.avatar.org-b { background: var(--org-b-soft); color: var(--org-b); box-shadow: inset 0 0 0 1.5px var(--org-b); }
.top .avatar { box-shadow: 0 0 0 2px var(--navy), 0 0 0 3px var(--gold-2); }
.avatar-lg { width: 44px; height: 44px; font-size: .92rem; }
.avatar-xs { width: 12px; height: 12px; vertical-align: -1px; }
.faces { display: flex; flex-wrap: wrap; gap: 6px; }
.legend { margin: 12px 0 0; font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* Cards and grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card.flush { padding: 0; overflow: hidden; }
.card.narrow { max-width: 760px; }
.pad { padding: 20px 22px; margin: 0; }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card-h h2 { display: flex; align-items: center; gap: 8px; }
.card-h a { font-size: .85rem; }
.empty { text-align: center; padding: 48px 22px; }
.grid-home { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
.span-2 { grid-column: span 2; grid-row: span 2; }
.two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 18px; align-items: start; }
.topic-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 960px) {
  .grid-home { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: span 2; grid-row: auto; }
  .two, .topic-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-home { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .me-name { display: none; }
  .top-in, .nav-in, .wrap { padding-left: 16px; padding-right: 16px; }
  .card { padding: 16px; }
}

.hero, .page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-h h1 { display: flex; align-items: center; gap: .3em; }
.page-h h1 .ic { width: 22px; height: 22px; color: var(--muted); }
.eyebrow { color: var(--gold); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: .4em; }
.crumb { margin: 0 0 .4em; font-size: .85rem; color: var(--muted); }
.crumb a { color: var(--muted); }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); margin: 0; }
.meta-line span { display: inline-flex; align-items: center; gap: 6px; }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font: 600 .92rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--navy-3); }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-3); border-color: var(--navy-3); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: #9c7b49; border-color: #9c7b49; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-sm { padding: 6px 11px; font-size: .84rem; }
.btn-block { width: 100%; }
.danger { color: var(--err) !important; }
@media (prefers-color-scheme: dark) {
  .btn-primary { background: var(--gold); border-color: var(--gold); color: #10182a; }
  .btn-primary:hover { background: var(--gold-2); border-color: var(--gold-2); }
}
label { display: block; font-weight: 600; font-size: .88rem; }
label small { font-weight: 400; color: var(--muted); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface-2); color: var(--ink); font: 400 .95rem/1.45 var(--sans); }
input[type=file] { display: block; margin-top: 6px; font: inherit; font-weight: 400; }
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 1px; border-color: var(--gold); }
.stack > * + * { margin-top: 14px; }
.stack.tight > * + * { margin-top: 8px; }
.stack label small { display: block; margin-top: 4px; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.inline-form > input, .inline-form > select { width: auto; flex: 1 1 140px; margin-top: 0; }
.inline-form > input[name=title] { flex: 3 1 220px; }
.inline-form label { flex: 1 1 120px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; accent-color: var(--navy); }
fieldset.radios { border: 0; padding: 0; margin: 0; }
fieldset.radios legend { font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
fieldset.radios .check + .check { margin-top: 6px; }
fieldset.checks { border: 0; padding: 0; margin: 0; max-height: 260px; overflow-y: auto; }
fieldset.checks legend { font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
fieldset.checks .check + .check { margin-top: 6px; }
.themes-of { display: flex; align-items: center; gap: 4px; color: var(--muted); }
.themes-of svg, .small svg { width: 14px; height: 14px; vertical-align: -2px; }
.theme-card.archived { opacity: .7; }

/* Flash */
.flash { border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; border: 1px solid; }
.flash p { margin: 0; }
.flash-ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.flash-error { background: var(--err-soft); border-color: color-mix(in srgb, var(--err) 35%, transparent); color: var(--err); }
.copy { display: flex; gap: 8px; margin-top: 10px; }
.copy input { margin: 0 !important; font-family: ui-monospace, Consolas, monospace !important; font-size: .82rem !important; }

/* Topic list */
.tlist { list-style: none; margin: 0; padding: 0; }
.trow + .trow { border-top: 1px solid var(--line); }
.trow a { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 14px 22px; color: inherit; text-decoration: none; }
.card:not(.flush) .trow a { padding-left: 0; padding-right: 0; }
.trow a:hover { background: var(--surface-2); }
.trow-main { min-width: 0; }
.trow-title { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.trow-title .ic { color: var(--gold); width: 15px; height: 15px; }
.trow.unread .trow-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.trow.closed .trow-title { color: var(--muted); }
.trow-meta { display: block; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.trow-side { text-align: right; color: var(--muted); font-size: .84rem; white-space: nowrap; }
.trow-side b { color: var(--ink); }
.trow-side small { display: block; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: .76rem; color: var(--muted); font-weight: 500; }
.tag-gold { background: var(--gold-soft); border-color: transparent; color: var(--org-b); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chips a { display: inline-flex; align-items: center; gap: 4px; padding: 6px 13px; border-radius: 99px; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-size: .86rem; background: var(--surface); }
.chips a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips .ic { width: 14px; height: 14px; }

/* Mini lists */
.mini { list-style: none; margin: 0; padding: 0; }
.mini li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.mini li + li { border-top: 1px solid var(--line); }
.mini li > span { min-width: 0; }
.mini small { display: block; color: var(--muted); }
.mini .ic { color: var(--muted); margin-top: 2px; }
.mini li.done > span { color: var(--muted); }
.mini li.done .t, .tasks li.done .t { text-decoration: line-through; }
.mini form { margin: 0; }
.grow { flex: 1; min-width: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); margin-top: 7px; flex: none; }
.dot-me { background: var(--navy-3); }
.dot-gold { background: var(--gold); }
.late { color: var(--late); font-weight: 600; }
.date-tile { display: grid; place-items: center; width: 48px; height: 52px; border-radius: 10px; background: var(--gold-soft); color: var(--org-b); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; line-height: 1.1; flex: none; }
.date-tile b { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.meet { display: flex; gap: 12px; align-items: center; padding: 10px 0; color: inherit; text-decoration: none; }
.meet + .meet { border-top: 1px solid var(--line); }
.meet small { display: block; color: var(--muted); }
.meet:hover b { text-decoration: underline; }
.meet.past .date-tile { background: var(--surface-2); color: var(--muted); }

/* Thread */
.post { display: flex; gap: 14px; padding: 18px 0; }
.post + .post { border-top: 1px solid var(--line); }
.thread { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 22px; box-shadow: var(--shadow); }
.thread .reply { box-shadow: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 18px 0; margin: 0; }
.thread > p.card { box-shadow: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 18px 0; margin: 0; }
.post-first .post-body .prose { font-size: 1.02rem; }
.post-new { position: relative; }
.post-new::before { content: ""; position: absolute; left: -22px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--gold); }
.post-body { flex: 1; min-width: 0; }
.post-body header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px; }
.post-body .when { margin-left: auto; text-decoration: none; }
.badge-new { font-size: .7rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.prose { overflow-wrap: anywhere; }
.prose p:last-child, .prose ul:last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 .8em; padding-left: 1.3em; }
.mention { background: var(--gold-soft); color: var(--org-b); border-radius: 5px; padding: 0 4px; font-weight: 600; }
.post-edit { margin-top: 6px; }
.post-edit summary, .add summary { cursor: pointer; list-style: none; }
.post-edit summary::-webkit-details-marker, .add summary::-webkit-details-marker, .menu summary::-webkit-details-marker, .help summary::-webkit-details-marker { display: none; }
.add { margin-top: 12px; }
.add summary { color: var(--navy-3); font-weight: 600; }
.add[open] summary { margin-bottom: 10px; }
.side .card { padding: 16px 18px; }
.help { font-size: .84rem; color: var(--muted); }
.help summary { cursor: pointer; list-style: none; }
.help[open] summary { margin-bottom: 6px; }
.help code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.handles { display: flex; flex-wrap: wrap; gap: 6px; }
.handle { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 3px 10px; cursor: pointer; font: 600 .8rem var(--sans); }
.handle small { font-weight: 400; color: var(--muted); }

/* Menus */
.menu { position: relative; }
.menu summary { list-style: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 260px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 12px 32px rgba(19, 35, 63, .16); padding: 8px; }
.menu-pop form { margin: 0; }
.menu-pop form + form { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.menu-pop button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; font: 500 .9rem var(--sans); color: var(--ink); }
.menu-pop button:hover { background: var(--surface-2); }
.menu-pop input, .menu-pop select { margin-top: 0 !important; padding: 7px 10px !important; font-size: .88rem !important; }

/* Documents */
.dlist { list-style: none; margin: 0; padding: 0; }
.dlist li { display: flex; align-items: center; gap: 8px; padding: 0 14px 0 0; }
.dlist li + li { border-top: 1px solid var(--line); }
.dlist-main { flex: 1; display: flex; gap: 14px; align-items: center; padding: 14px 22px; color: inherit; text-decoration: none; min-width: 0; }
.dlist-main:hover b { text-decoration: underline; }
.dlist small { display: block; color: var(--muted); }
.ftype { display: grid; place-items: center; width: 42px; height: 50px; border-radius: 6px 14px 6px 6px; background: var(--navy); color: var(--gold-2); font: 700 .66rem var(--sans); letter-spacing: .06em; flex: none; }
.versions { list-style: none; margin: 0; padding: 0; }
.versions li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.versions li + li { border-top: 1px solid var(--line); }
.versions small { display: block; color: var(--muted); }
.vno { font-family: var(--serif); font-weight: 600; color: var(--gold); min-width: 30px; }
.vnote { display: block; font-size: .88rem; margin-top: 4px; }

/* Work */
.tasks, .decisions { list-style: none; margin: 0; padding: 0; }
.tasks li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.tasks li + li, .decisions li + li { border-top: 1px solid var(--line); }
.tasks li form { margin: 0; }
.tasks small { display: block; color: var(--muted); }
.tasks li.done .grow { color: var(--muted); }
.tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; padding: 0; margin-top: 1px; color: #fff; }
.tick:hover { border-color: var(--navy-3); }
li.done .tick { background: var(--ok); border-color: var(--ok); }
.tick .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.x { border: 0; background: none; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.x:hover { color: var(--err); background: var(--err-soft); }
.decisions li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; }
.decisions li form { margin: 0; }
.decisions .prose { margin: 4px 0; }
.decisions small { display: block; }

/* People */
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; gap: 14px; align-items: center; padding: 12px 0; }
.people li + li { border-top: 1px solid var(--line); }
.people small { display: block; }
.count { font-family: var(--sans); font-size: .8rem; color: var(--muted); font-weight: 500; margin-left: 4px; }

/* Login */
body.auth { background: var(--bg); }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-art { position: relative; background: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 56px 64px 32px; overflow: hidden; }
.auth-art::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    radial-gradient(120% 80% at 100% 0%, rgba(201, 169, 110, .22), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23c9a96e' stroke-opacity='.18' stroke-width='1'%3E%3Cpath d='M0 60h120M60 0v120'/%3E%3Ccircle cx='60' cy='60' r='42'/%3E%3Ccircle cx='0' cy='0' r='42'/%3E%3Ccircle cx='120' cy='120' r='42'/%3E%3Ccircle cx='120' cy='0' r='42'/%3E%3Ccircle cx='0' cy='120' r='42'/%3E%3C/g%3E%3C/svg%3E"); }
.auth-art::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(201, 169, 110, .35); box-shadow: 0 0 0 40px rgba(201, 169, 110, .04), 0 0 0 80px rgba(201, 169, 110, .03); }
.auth-art-in { position: relative; z-index: 1; max-width: 460px; margin: auto 0; }
.auth-mark { margin-bottom: 28px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(201, 169, 110, .4); }
.auth-art .eyebrow { color: var(--gold-2); }
.auth-art h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 500; margin-bottom: .2em; }
.tagline { font-family: var(--serif); font-size: 1.25rem; color: var(--gold-soft); font-style: italic; margin-bottom: 32px; }
.auth-points { list-style: none; padding: 0; margin: 0; color: #c8cfdd; }
.auth-points li { padding: 10px 0 10px 28px; position: relative; border-top: 1px solid rgba(255, 255, 255, .08); }
.auth-points li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 10px; height: 1.5px; background: var(--gold-2); }
.auth-foot { position: relative; z-index: 1; color: #8e98ad; font-size: .8rem; margin: 32px 0 0; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font-size: 1.75rem; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; margin: 20px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.btn-gold .ic { stroke-width: 2; }
@media (max-width: 860px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-art { padding: 36px 24px 28px; min-height: 0; }
  .auth-art-in { margin: 0; }
  .auth-mark { width: 44px; height: 44px; margin-bottom: 18px; }
  .auth-points, .auth-foot { display: none; }
  .tagline { margin-bottom: 0; }
}

/* Rich text: what the editor writes and how posts, agendas and minutes show it. */
.prose h2, .prose h3, .prose h4 { display: block; margin: 1em 0 .4em; }
.prose h2 { font-size: 1.25rem; } .prose h3 { font-size: 1.08rem; } .prose h4 { font-size: .98rem; font-family: var(--sans); font-weight: 650; }
.prose > :first-child { margin-top: 0; }
.prose ol { margin: 0 0 .8em; padding-left: 1.5em; }
.prose li + li { margin-top: .2em; }
.prose blockquote { margin: 0 0 .8em; padding: .4em 0 .4em 1em; border-left: 3px solid var(--gold); color: var(--muted); background: var(--surface-2); border-radius: 0 8px 8px 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1em; font-size: .93rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line-2); padding: 6px 10px; text-align: left; vertical-align: top; min-width: 80px; }
.prose th { background: var(--gold-soft); font-weight: 650; }
.prose hr { border: 0; border-top: 1px solid var(--line-2); margin: 1.2em 0; }
.prose code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 0 4px; font-size: .9em; }
.prose pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; white-space: pre-wrap; }
.theme-note { color: var(--muted); margin-bottom: .6em; }

.rte-label { margin-bottom: -6px; }
.rte { border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); overflow: hidden; }
.rte.focus { border-color: var(--gold); outline: 2px solid var(--gold-2); outline-offset: 1px; }
.rte.invalid { border-color: var(--err); }
.rte-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 5px 6px; border-bottom: 1px solid var(--line); background: var(--surface-2); position: sticky; top: 0; }
.rte-bar button { display: inline-grid; place-items: center; width: 32px; height: 30px; border: 0; border-radius: 7px; background: none; color: var(--ink); cursor: pointer; }
.rte-bar button:hover { background: var(--gold-soft); }
.rte-bar button.on { background: var(--navy); color: #fff; }
.rte-bar button:disabled { opacity: .3; cursor: default; background: none; }
.rte-sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 4px; }
.rte-area { position: relative; min-height: 150px; max-height: 70vh; overflow-y: auto; padding: 10px 14px; outline: none; cursor: text; }
.rte-small .rte-area { min-height: 70px; }
.rte-area.is-empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; position: absolute; }
.rte-area td, .rte-area th { min-width: 60px; }
@media (prefers-color-scheme: dark) { .rte-bar button.on { background: var(--gold); color: var(--navy); } }
.rte-tbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px 6px; border-bottom: 1px solid var(--line); background: var(--gold-soft); }
.rte-tbar[hidden], .rte-src[hidden], .rte-area[hidden] { display: none; }
.rte-tbar button { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 6px; padding: 3px 9px; font: 500 .8rem/1.4 var(--sans); cursor: pointer; }
.rte-tbar button:hover { border-color: var(--gold); }
.rte-tbar button.del { color: var(--err); }
.rte-src { display: block; width: 100%; min-height: 220px; margin: 0; border: 0; border-radius: 0; padding: 10px 14px; resize: vertical;
  font: .85rem/1.5 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; background: var(--surface-2); color: var(--ink); white-space: pre-wrap; }
.rte-src:focus { outline: none; }

/* Steps of a theme */
.steps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; align-items: flex-start; }
.step { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; line-height: 1.25; cursor: pointer; list-style: none; }
.step::-webkit-details-marker { display: none; }
.step small { display: block; font-weight: 400; font-size: .76rem; color: var(--muted); }
.step:hover { border-color: var(--navy-3); }
.step-no { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); font-size: .85rem; font-weight: 700; color: var(--muted); }
.step-no .ic { width: 15px; height: 15px; }
.step.now .step-no { background: var(--gold); border-color: var(--gold); color: #fff; }
.step.done .step-no, .step-no.done { background: var(--org-a-soft, #e3f3ee); border-color: transparent; color: var(--org-a, #2f8f74); }
.step.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.step.on small { color: var(--gold-soft); }
.step-add { position: relative; }
.step-add > summary { border-style: dashed; color: var(--muted); font-weight: 500; }
.step-add > form { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; width: 280px; margin: 0; }
.step-card h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Theme switch on the account page */
.theme-pick { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.theme-pick a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.theme-pick a:hover { border-color: var(--navy-3); }
.theme-pick a.on { border-color: var(--gold); background: var(--gold-soft); }
