/* No web fonts or CDNs: everything is served by this app, so it loads the same in China. */
:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Noto Sans SC", Roboto, "Helvetica Neue", Arial, sans-serif;
  --board-bg: linear-gradient(140deg, #1f5c87 0%, #24708a 55%, #2d8a85 100%);
  --topbar: rgba(4, 22, 38, 0.32);
  --on-board: #ffffff;
  --list: #f1f2f4;
  --list-ink: #172b4d;
  --card: #ffffff;
  --card-shadow: 0 1px 1px rgba(9, 30, 66, 0.25), 0 0 1px rgba(9, 30, 66, 0.31);
  --ink: #172b4d;
  --muted: #5e6c84;
  --subtle: #8590a2;
  --hover: rgba(9, 30, 66, 0.08);
  --line: rgba(9, 30, 66, 0.14);
  --field: #ffffff;
  --field-line: #8590a2;
  --accent: #0c66e4;
  --accent-ink: #ffffff;
  --accent-soft: #e9f2ff;
  --danger: #c9372c;
  --danger-ink: #ffffff;
  --ok: #1f845a;
  --ok-soft: #dcfff1;
  --warn-soft: #fff7d6;
  --warn-ink: #7f5f01;
  --bad-soft: #ffeceb;
  --bad-ink: #ae2e24;
  --dialog: #ffffff;
  --overlay: rgba(9, 30, 66, 0.54);
  --label-ink: #172b4d;
  --panel: #ffffff;
  --list-tint: 38%;
  --status-good: #1f845a;
  --status-warn: #e2a400;
  --status-bad: #c9372c;
  --status-none: #b3b9c4;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --board-bg: linear-gradient(140deg, #0f2f47 0%, #12404c 55%, #164d49 100%);
    --topbar: rgba(0, 0, 0, 0.35);
    --list: #101204;
    --list-ink: #b6c2cf;
    --card: #22272b;
    --card-shadow: 0 1px 1px rgba(3, 4, 4, 0.5), 0 0 1px rgba(3, 4, 4, 0.5);
    --ink: #b6c2cf;
    --muted: #9fadbc;
    --subtle: #738496;
    --hover: rgba(166, 197, 226, 0.12);
    --line: rgba(166, 197, 226, 0.16);
    --field: #22272b;
    --field-line: #738496;
    --accent: #579dff;
    --accent-ink: #1d2125;
    --accent-soft: #092957;
    --danger: #f87168;
    --danger-ink: #1d2125;
    --ok: #4bce97;
    --ok-soft: #164b35;
    --warn-soft: #533f04;
    --warn-ink: #f5cd47;
    --bad-soft: #5d1f1a;
    --bad-ink: #fd9891;
    --dialog: #323940;
    --overlay: rgba(0, 0, 0, 0.6);
    --label-ink: #1d2125;
    --panel: #22272b;
    --list-tint: 22%;
    --status-good: #2abb7f;
    --status-warn: #cf9f02;
    --status-bad: #e2483d;
    --status-none: #5b6670;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 14px/1.43 var(--font);
  color: var(--ink);
  background: var(--board-bg);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.ico { display: inline-flex; flex: none; }
.ico svg { width: 16px; height: 16px; }
button.label { border: 0; cursor: pointer; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  padding: 10px max(12px, env(safe-area-inset-left)) 10px max(12px, env(safe-area-inset-right));
  background: var(--topbar);
  color: var(--on-board);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  padding: 2px 8px 2px 2px;
  border-radius: 8px;
}
.brand:hover { background: rgba(255, 255, 255, 0.14); }
.brand img { width: 28px; height: 28px; padding: 2px; border-radius: 7px; background: #ffffff; object-fit: contain; }
.board-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 16px;
  font-weight: 700;
  color: inherit;
  max-width: min(46vw, 360px);
}
.board-switch span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-switch:hover { background: rgba(255, 255, 255, 0.26); }
.home-title { margin: 0; font-size: 16px; font-weight: 700; padding: 0 4px; }
body.on-home #views, body.on-home .filter-wrap, body.on-home #rules-btn, body.on-home #menu-btn { display: none; }
@media (max-width: 680px) { .brand span { display: none; } }
.filter-wrap { flex: 1 1 160px; max-width: 280px; }
#filter {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  color: var(--on-board);
  padding: 5px 10px;
}
#filter::placeholder { color: rgba(255, 255, 255, 0.78); }
#filter:focus { background: var(--field); color: var(--ink); }
.conn { font-size: 12px; background: rgba(0, 0, 0, 0.35); padding: 3px 8px; border-radius: 999px; }
.lang-switch {
  margin-left: auto;
  display: inline-flex;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.lang-switch button {
  border: 0;
  background: none;
  color: var(--on-board);
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 600;
}
.lang-switch button[aria-pressed="true"] { background: #ffffff; color: #172b4d; }

/* ---------- Avatars ---------- */
.avatar {
  --size: 28px;
  width: var(--size);
  height: var(--size);
  flex: none;
  border-radius: 50%;
  border: 0;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: var(--avatar, #5e6c84);
  padding: 0;
  overflow: hidden;
}
.avatar.small { --size: 24px; font-size: 11px; }
.me { --size: 32px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6); }

.notice {
  margin: 0;
  padding: 6px 16px;
  font-size: 13px;
  background: var(--warn-soft);
  color: var(--warn-ink);
}

/* ---------- Board and lists ---------- */
.board {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px max(12px, env(safe-area-inset-right)) 16px max(12px, env(safe-area-inset-left));
  overflow-x: auto;
  overflow-y: hidden;
}
.list {
  flex: none;
  width: 272px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--list);
  color: var(--list-ink);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}
.list.dragging { opacity: 0.4; }
.list-placeholder { flex: none; width: 272px; border-radius: 12px; background: rgba(0, 0, 0, 0.18); align-self: stretch; max-height: 240px; }
.list-head { display: flex; align-items: flex-start; gap: 4px; padding: 8px 8px 4px 12px; cursor: grab; }
.list-name {
  flex: 1;
  margin: 0;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.list-name-input {
  flex: 1;
  font-weight: 600;
  border: 2px solid var(--accent);
  border-radius: 6px;
  padding: 3px 6px;
  background: var(--field);
}
.list-count { font-size: 12px; color: var(--subtle); padding: 6px 2px 0; }
.icon-btn {
  border: 0;
  background: none;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  flex: none;
  display: inline-grid;
  place-items: center;
  color: var(--muted);
}
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }

.cards {
  list-style: none;
  margin: 0;
  padding: 2px 8px;
  min-height: 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card {
  background: var(--card);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 8px 10px;
  cursor: pointer;
  display: grid;
  gap: 6px;
  outline-offset: 0;
}
.card:hover { box-shadow: var(--card-shadow), inset 0 0 0 2px var(--accent); }
.card.dragging { opacity: 0.4; }
.card-placeholder { height: 40px; border-radius: 8px; background: var(--hover); flex: none; }
.card-title { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.card-labels { display: flex; flex-wrap: wrap; gap: 4px; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 3px; border-radius: 4px; }
.badge svg { width: 14px; height: 14px; }
.badge.due { padding: 1px 5px; }
.badge.due.over { background: var(--bad-soft); color: var(--bad-ink); }
.badge.due.soon { background: var(--warn-soft); color: var(--warn-ink); }
.badge.due.done, .badge.check.done { background: var(--ok-soft); color: var(--ok); padding: 1px 5px; }
.badge.tr { color: var(--subtle); }
.badge.pending { color: var(--accent); }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.card-members { display: flex; gap: 2px; margin-left: auto; }

.label {
  display: inline-block;
  border-radius: 4px;
  padding: 0 8px;
  min-height: 16px;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  color: var(--label-ink);
  background: var(--label);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.label-green { --label: #4bce97; }
.label-yellow { --label: #f5cd47; }
.label-orange { --label: #fea362; }
.label-red { --label: #f87168; }
.label-purple { --label: #9f8fef; }
.label-blue { --label: #579dff; }
.label-sky { --label: #6cc3e0; }
.label-lime { --label: #94c748; }
.label-pink { --label: #e774bb; }
.label-gray { --label: #8590a2; }

.list-foot { padding: 6px 8px 8px; }
.add-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--muted);
  text-align: left;
}
.add-btn:hover { background: var(--hover); color: var(--ink); }
.add-btn svg { width: 16px; height: 16px; }
.add-list {
  flex: none;
  width: 272px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  color: var(--on-board);
}
.add-list > .add-btn { color: var(--on-board); padding: 10px 12px; font-weight: 600; }
.add-list > .add-btn:hover { background: rgba(255, 255, 255, 0.16); color: var(--on-board); }
.add-list .composer { background: var(--list); border-radius: 12px; padding: 8px; color: var(--list-ink); }

.composer { display: grid; gap: 8px; }
.composer textarea, .composer input[type="text"], .field {
  width: 100%;
  border: 1px solid var(--field-line);
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  padding: 6px 8px;
  resize: vertical;
}
.composer textarea:focus, .composer input:focus, .field:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.composer .card-input { box-shadow: var(--card-shadow); border: 0; min-height: 56px; }
.hint { font-size: 12px; color: var(--muted); margin: 0; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn {
  border: 0;
  border-radius: 6px;
  padding: 6px 12px;
  font-weight: 600;
  background: var(--hover);
  color: var(--ink);
}
.btn:hover { filter: brightness(0.96); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.danger { background: var(--danger); color: var(--danger-ink); }
.btn.subtle { background: none; font-weight: 500; }
.btn.subtle:hover { background: var(--hover); }
.btn:disabled { opacity: 0.5; cursor: default; }

/* ---------- Card window ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--dialog); }
dialog::backdrop { background: var(--overlay); }
.card-dialog {
  width: min(768px, calc(100vw - 24px));
  max-height: calc(100vh - 48px);
  border-radius: 12px;
  overflow-y: auto;
  margin-top: 24px;
}
.cd { padding: 20px 20px 24px; display: grid; gap: 18px; }
.cd-head { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; }
.cd-icon { color: var(--muted); padding-top: 4px; }
.cd-icon svg, .sec-icon svg { width: 20px; height: 20px; }
.cd-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
  border-radius: 6px;
  padding: 2px 6px;
  margin-left: -6px;
  cursor: text;
  white-space: pre-wrap;
}
.cd-title:hover { background: var(--hover); }
.cd-title-input { font-size: 20px; font-weight: 600; width: 100%; }
.cd-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.cd-sub select { border: 1px solid var(--line); border-radius: 6px; background: var(--field); padding: 2px 6px; }
.tr-line { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.tr-line svg { width: 14px; height: 14px; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; font-size: inherit; }
.linkish:hover { text-decoration: underline; }
.status-chip { font-size: 12px; border-radius: 4px; padding: 0 6px; background: var(--accent-soft); color: var(--accent); }
.status-chip.failed { background: var(--bad-soft); color: var(--bad-ink); }

.cd-body { display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 24px; }
@media (max-width: 680px) {
  .cd-body { grid-template-columns: minmax(0, 1fr); }
  .card-dialog { margin-top: 0; max-height: 100vh; height: 100%; width: 100vw; max-width: 100vw; border-radius: 0; }
}
.cd-main { display: grid; gap: 24px; min-width: 0; padding-left: 36px; }
@media (max-width: 680px) { .cd-main { padding-left: 0; } }
.meta { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.meta h3, .side h3 { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.meta-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.meta .label { line-height: 32px; min-width: 40px; padding: 0 12px; font-size: 14px; }
.square-btn { width: 32px; height: 32px; border-radius: 6px; border: 0; background: var(--hover); display: grid; place-items: center; }
.square-btn svg { width: 16px; height: 16px; }
.due-box { display: inline-flex; align-items: center; gap: 8px; background: var(--hover); border-radius: 6px; padding: 5px 10px; }
.due-box .state { font-size: 12px; border-radius: 3px; padding: 0 4px; }
.due-box .state.over { background: var(--danger); color: var(--danger-ink); }
.due-box .state.done { background: var(--ok); color: #ffffff; }

.sec { display: grid; gap: 10px; position: relative; }
.sec-head { display: flex; align-items: center; gap: 12px; margin-left: -36px; }
@media (max-width: 680px) { .sec-head { margin-left: 0; } }
.sec-icon { color: var(--muted); width: 24px; display: grid; place-items: center; }
.sec-head h3 { margin: 0; font-size: 16px; font-weight: 600; flex: 1; }
.desc-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.desc-empty { background: var(--hover); border-radius: 6px; padding: 10px 12px; min-height: 56px; color: var(--muted); border: 0; text-align: left; width: 100%; }
.desc-edit textarea { min-height: 140px; }

.progress { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.bar { flex: 1; height: 8px; background: var(--hover); border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.2s; }
.bar.done span { background: var(--ok); }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 4px 6px; margin-left: -6px; border-radius: 6px; }
.item:hover { background: var(--hover); }
.item input[type="checkbox"] { width: 16px; height: 16px; margin: 3px 0 0 4px; accent-color: var(--accent); }
.item-text { overflow-wrap: anywhere; white-space: pre-wrap; cursor: text; padding-top: 1px; }
.item.done .item-text { text-decoration: line-through; color: var(--muted); }
.item .icon-btn { width: 24px; height: 24px; }
.item .hover-only { opacity: 0; }
.item:hover .hover-only, .item .hover-only:focus-visible { opacity: 1; }
@media (hover: none) { .item .hover-only { opacity: 1; } }
.item-tools { display: flex; align-items: center; gap: 2px; }
.item-tools .avatar { cursor: pointer; }
.item-due {
  display: inline-flex; align-items: center; gap: 3px; border: 0; border-radius: 4px;
  padding: 1px 6px; font-size: 12px; background: var(--hover); color: var(--muted);
}
.item-due svg { width: 13px; height: 13px; }
.item-due.over { background: var(--bad-soft); color: var(--bad-ink); }

.comment-new { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px 12px; margin-left: -44px; }
@media (max-width: 680px) { .comment-new { margin-left: 0; } }
.comment-new .avatar { --size: 32px; }
.comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.comment { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 12px; margin-left: -44px; }
@media (max-width: 680px) { .comment { margin-left: 0; } }
.comment .avatar { --size: 32px; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 12px; color: var(--muted); }
.comment-meta strong { color: var(--ink); font-size: 14px; }
.comment-body {
  background: var(--card);
  box-shadow: var(--card-shadow);
  border-radius: 8px;
  padding: 8px 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 4px;
}
.comment-tools { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); margin-top: 4px; align-items: center; }
.comment-tools .linkish { font-weight: 500; color: var(--muted); text-decoration: underline; }

.side { display: grid; gap: 6px; align-content: start; }
.side h3 { margin-top: 10px; }
.side h3:first-child { margin-top: 0; }
@media (max-width: 680px) {
  .side { order: -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side h3, .side .confirm { grid-column: 1 / -1; }
}
.side-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  background: var(--hover);
  padding: 6px 10px;
  text-align: left;
  font-weight: 500;
}
.side-btn:hover { filter: brightness(0.95); }
.side-btn svg { width: 16px; height: 16px; color: var(--muted); }
.side-btn.danger { color: var(--bad-ink); }
.side-btn.danger svg { color: inherit; }
.confirm { background: var(--bad-soft); color: var(--bad-ink); border-radius: 8px; padding: 10px; display: grid; gap: 8px; font-size: 13px; }

/* ---------- Popovers ---------- */
.popover {
  position: fixed;
  z-index: 50;
  width: 304px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  background: var(--dialog);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 8px 12px rgba(9, 30, 66, 0.15), 0 0 1px rgba(9, 30, 66, 0.31);
  padding: 12px;
  display: grid;
  gap: 10px;
}
.pop-head { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; text-align: center; font-weight: 600; color: var(--muted); }
.pop-head .icon-btn { grid-column: 3; }
.pop-head span { grid-column: 2; }
.pick { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pick li { display: flex; align-items: center; gap: 6px; }
.pick-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  padding: 4px;
  text-align: left;
  min-width: 0;
}
.pick-btn:hover { background: var(--hover); }
.pick-btn .label { flex: 1; line-height: 32px; font-size: 14px; }
.pick-btn .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tick { width: 16px; height: 16px; flex: none; border-radius: 3px; border: 2px solid var(--field-line); display: grid; place-items: center; }
.tick.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tick svg { width: 12px; height: 12px; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.swatch { height: 32px; border-radius: 4px; border: 0; background: var(--label); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--dialog), 0 0 0 4px var(--accent); }
.pop-sep { border: 0; border-top: 1px solid var(--line); margin: 2px 0; width: 100%; }

/* ---------- Small dialogs and toast ---------- */
/* ---------- Sign in, invite links ---------- */
.auth { display: none; }
body.signed-out .topbar, body.signed-out .notice, body.signed-out .board, body.signed-out .view { display: none; }
body.signed-out .auth {
  display: grid;
  place-items: center;
  flex: 1;
  overflow-y: auto;
  padding: 24px max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left));
}
.auth-card {
  width: min(400px, 100%);
  background: var(--dialog);
  color: var(--ink);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(9, 30, 66, 0.25);
  padding: 24px;
  display: grid;
  gap: 14px;
}
.auth-card h1 { margin: 0; font-size: 20px; line-height: 1.3; }
.auth-card > .hint { font-size: 13px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.auth-logo { width: 36px; height: 36px; object-fit: contain; }
.auth-top .lang-switch { margin-left: 0; background: var(--hover); }
.auth-top .lang-switch button { color: var(--ink); }
.auth-top .lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.auth-form { display: grid; gap: 12px; }
.auth-form .btn.primary { padding: 8px 12px; }
.auth-field { display: grid; gap: 4px; }
.auth-field > span:first-child { font-size: 13px; font-weight: 600; }
.auth-field .field { padding: 8px 10px; }
.error { color: var(--bad-ink); font-size: 13px; margin: 0; }
.error { color: var(--bad-ink); font-size: 13px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: #172b4d;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  z-index: 100;
  max-width: calc(100vw - 32px);
}
.loading { color: var(--on-board); padding: 24px; }

/* ---------- Top bar: views and tools ---------- */
.views {
  display: inline-flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 3px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.views button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--on-board);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}
.views button:hover { background: rgba(255, 255, 255, 0.16); }
.views button[aria-pressed="true"] { background: #ffffff; color: #172b4d; }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-tools .lang-switch { margin-left: 0; }
.top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--on-board);
  font-weight: 600;
}
.top-btn:hover { background: rgba(255, 255, 255, 0.26); }
.top-btn svg { width: 16px; height: 16px; }
.top-btn.icon-only { padding: 5px 7px; display: inline-grid; place-items: center; }
.top-btn .count { font-size: 11px; background: rgba(255, 255, 255, 0.3); border-radius: 999px; padding: 0 6px; }
@media (max-width: 900px) {
  .views button > span:not(.ico), .top-btn > span:not(.ico):not(.count) { display: none; }
  .views button { padding: 5px 8px; }
}

/* ---------- Lists: colors and folding ---------- */
.list.tinted { background: var(--list); background: color-mix(in srgb, var(--label) var(--list-tint), var(--list)); }
.list.collapsed { width: 44px; cursor: default; }
.list-unfold {
  border: 0;
  background: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 0 14px;
  width: 100%;
  border-radius: 12px;
}
.list-unfold:hover { background: var(--hover); }
.list-unfold .list-count { padding: 0; }
.list-vname { writing-mode: vertical-rl; font-weight: 600; max-height: 60vh; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Card front: cover and field chips ---------- */
.card.has-cover { padding-top: 0; overflow: hidden; }
.card-cover { margin: 0 -10px; background: var(--hover); display: grid; place-items: center; max-height: 180px; overflow: hidden; }
.card-cover img { display: block; width: 100%; max-height: 180px; object-fit: cover; }
.card-fields { display: flex; flex-wrap: wrap; gap: 4px; }
.field-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  font-size: 12px;
  line-height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--hover);
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.field-chip svg { width: 12px; height: 12px; }
.field-chip.opt { background: var(--label); color: var(--label-ink); }
.card.file-target, .card-dialog.file-target { box-shadow: var(--card-shadow), inset 0 0 0 3px var(--accent); }

/* ---------- Card window: cover, custom fields, attachments, dates ---------- */
.cd-cover { display: grid; place-items: center; background: var(--hover); height: 160px; overflow: hidden; border-radius: 12px 12px 0 0; }
.cd-cover img { max-width: 100%; max-height: 160px; object-fit: contain; display: block; }
.cf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 14px; }
.cf { display: grid; gap: 4px; align-content: start; }
.cf label, .cf-name { font-size: 12px; font-weight: 600; color: var(--muted); overflow-wrap: anywhere; }
.cf-value { overflow-wrap: anywhere; }
.cf .field { min-height: 32px; padding: 4px 8px; }
.cf-type-checkbox input { width: 18px; height: 18px; margin: 6px 0 0; accent-color: var(--accent); }
.cf-text { text-align: left; overflow-wrap: anywhere; cursor: text; }
.cf-text.empty { color: var(--muted); }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.file { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start; }
.file-thumb {
  width: 112px;
  height: 80px;
  border-radius: 6px;
  background: var(--hover);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  text-decoration: none;
}
.file-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-thumb .ext { font-weight: 700; font-size: 15px; }
.file-info { display: grid; gap: 2px; min-width: 0; }
.file-name { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; text-decoration: none; }
a.file-name:hover { text-decoration: underline; }
.file-tools { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; margin-top: 2px; }
.file-tools .linkish { font-weight: 500; color: var(--muted); text-decoration: underline; }
a.linkish { text-decoration: none; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.date-row { display: grid; gap: 4px; }
.date-row .field:disabled { opacity: 0.5; }
.check-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; cursor: pointer; }
.check-label input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.opt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.opt-list li { display: flex; align-items: center; gap: 8px; padding-left: 4px; }
.opt-list li > span:not(.opt-dot) { flex: 1; overflow-wrap: anywhere; }
.opt-list .icon-btn { width: 26px; height: 26px; }
.opt-dot, .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--label, var(--subtle)); flex: none; display: inline-block; }
.swatch.none { background: var(--hover); color: var(--muted); font-size: 12px; font-weight: 600; }
.popover .pick-btn .hint { margin-left: auto; }
.popover select.field { padding: 5px 8px; }

/* ---------- Views other than the board ---------- */
.view {
  flex: 1;
  overflow: auto;
  padding: 12px max(12px, env(safe-area-inset-right)) 24px max(12px, env(safe-area-inset-left));
}
.panel { background: var(--panel); color: var(--ink); border-radius: 12px; box-shadow: var(--card-shadow); padding: 12px; }
.panel > .hint { margin-top: 10px; }
.empty { color: var(--muted); padding: 24px 8px; margin: 0; text-align: center; }
.dot.status-done { --label: var(--status-good); }
.dot.status-soon { --label: var(--status-warn); }
.dot.status-over { --label: var(--status-bad); }
.dot.status-later, .dot.status-none { --label: var(--status-none); }

/* Table */
.table-wrap { overflow-x: auto; }
.cards-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.cards-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  position: sticky;
  top: 0;
  background: var(--panel);
}
.th-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; display: inline-flex; gap: 4px; align-items: center; }
.th-sort:hover { color: var(--ink); }
.sort-mark { font-size: 9px; min-width: 9px; }
.cards-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cards-table tbody tr { cursor: pointer; }
.cards-table tbody tr:hover { background: var(--hover); }
.td-title { font-weight: 600; min-width: 200px; max-width: 360px; overflow-wrap: anywhere; }
.td-date { white-space: nowrap; }
.td-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.list-tag { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cards-table .card-labels { min-width: 80px; }
.cards-table .card-members { margin-left: 0; }

/* Calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.cal-head h2 { margin: 0; font-size: 18px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cal-wd { background: var(--panel); font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 8px; }
.cal-day { background: var(--panel); min-height: 104px; padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day.other { background: var(--panel); background: color-mix(in srgb, var(--panel) 92%, var(--subtle)); }
.cal-day.other .cal-num { color: var(--subtle); font-weight: 500; }
.cal-day.drop-here { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-num { font-size: 12px; font-weight: 600; padding: 2px 4px; align-self: flex-start; border-radius: 999px; min-width: 22px; text-align: center; }
.cal-day.today .cal-num { background: var(--accent); color: var(--accent-ink); }
.cal-card {
  display: flex;
  align-items: center;
  gap: 3px;
  border: 0;
  border-left: 3px solid var(--label, var(--accent));
  border-radius: 4px;
  background: var(--hover);
  color: var(--ink);
  font-size: 12px;
  text-align: left;
  padding: 2px 5px;
  min-width: 0;
}
.cal-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-card svg { width: 12px; height: 12px; color: var(--ok); flex: none; }
.cal-card.over { background: var(--bad-soft); color: var(--bad-ink); }
.cal-card.done span { text-decoration: line-through; color: var(--muted); }
@media (max-width: 680px) {
  .cal-day { min-height: 72px; padding: 2px; }
  .cal-card { font-size: 11px; padding: 1px 3px; }
  .cal-wd { padding: 4px 2px; text-align: center; }
}

/* Timeline. The view has no side padding so the sticky name column covers bars scrolled under it. */
.view-timeline { padding-left: 0; padding-right: 0; }
.tl-panel { width: max-content; min-width: 100%; border-radius: 0; }
.tl-panel > .hint { position: sticky; left: 12px; width: min(100%, calc(100vw - 48px)); }
.tl { --tl-label: 220px; display: grid; grid-auto-rows: minmax(34px, auto); position: relative; }
@media (max-width: 680px) { .tl { --tl-label: 128px; } }
.tl-corner, .tl-month, .tl-day { position: sticky; background: var(--panel); z-index: 2; }
.tl-corner { grid-row: 1 / 3; grid-column: 1; left: 0; top: 0; z-index: 4; border-bottom: 1px solid var(--line); }
.tl-month { grid-row: 1; top: 0; font-size: 12px; font-weight: 600; color: var(--muted); border-left: 1px solid var(--line); padding: 6px 0 0; }
.tl-month span { position: sticky; left: calc(var(--tl-label) + 8px); padding: 0 8px; }
.tl-day { grid-row: 2; top: 28px; font-size: 11px; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); padding-top: 6px; }
.tl-day.weekend { color: var(--subtle); }
.tl-day.today { color: var(--accent); font-weight: 700; }
.tl-shade { background: var(--hover); opacity: 0.6; pointer-events: none; z-index: 0; }
.tl-now { width: 2px; justify-self: center; background: var(--accent); pointer-events: none; z-index: 0; }
.tl-group {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: flex-end;
  padding: 10px 0 2px;
  border-bottom: 1px solid var(--line);
}
.tl-sticky {
  position: sticky;
  left: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: var(--tl-label);
  align-self: stretch;
  padding: 10px 8px 2px;
  margin-top: -10px;
  background: var(--panel);
  border-right: 1px solid var(--line);
}
.tl-sticky .list-count { padding: 0; font-weight: 500; }
.tl-label {
  grid-column: 1;
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--panel);
  border: 0;
  border-right: 1px solid var(--line);
  text-align: left;
  padding: 4px 10px;
  font-size: 13px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tl-label:hover { text-decoration: underline; }
.tl-bar {
  align-self: center;
  height: 24px;
  margin: 0 2px;
  border: 0;
  border-radius: 4px;
  background: var(--label);
  color: var(--label-ink);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  min-width: 0;
  overflow: hidden;
  z-index: 1;
  text-align: left;
}
.tl-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-bar svg { width: 12px; height: 12px; flex: none; }
.tl-bar:hover { filter: brightness(0.95); box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent); }
.tl-bar.done { opacity: 0.55; }
.tl-bar.over { box-shadow: inset 0 -3px 0 var(--status-bad); }

/* Dashboard */
.dash { display: grid; gap: 12px; max-width: 1200px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
@media (max-width: 680px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat-value { font-size: 26px; }
  .tile { padding: 12px; }
}
.tile { background: var(--panel); color: var(--ink); border-radius: 12px; box-shadow: var(--card-shadow); padding: 14px 16px; min-width: 0; }
.tile h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.stat-value { margin: 4px 0 0; font-size: 32px; font-weight: 600; line-height: 1.15; }
.stat.bad .stat-value { color: var(--bad-ink); }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(320px, calc(50% - 6px)), 1fr)); gap: 12px; }
@media (max-width: 680px) { .charts { grid-template-columns: minmax(0, 1fr); } }
.bars { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.bars li { display: grid; grid-template-columns: minmax(80px, 38%) minmax(0, 1fr); gap: 10px; align-items: center; border-radius: 6px; padding: 2px 4px; margin: 0 -4px; }
.bars li:hover, .bars li:focus-visible { background: var(--hover); }
.bar-name { display: flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; }
.bar-name > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bar-fill { height: 16px; min-width: 4px; max-width: calc(100% - 36px); border-radius: 0 4px 4px 0; background: var(--label, var(--accent)); }
.bar-fill.none, .bar-fill.status-later, .bar-fill.status-none { --label: var(--status-none); }
.bar-fill.status-done { --label: var(--status-good); }
.bar-fill.status-soon { --label: var(--status-warn); }
.bar-fill.status-over { --label: var(--status-bad); }
.bar-value { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.avatar.tiny { --size: 18px; font-size: 9px; }

/* ---------- Automation window ---------- */
.rules-dialog { width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 48px); border-radius: 12px; overflow-y: auto; margin-top: 24px; }
@media (max-width: 680px) { .rules-dialog { margin-top: 0; max-height: 100vh; height: 100%; width: 100vw; max-width: 100vw; border-radius: 0; } }
.rules { padding: 20px; display: grid; gap: 12px; }
.rules-head { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; }
.rules-head h2 { margin: 0; font-size: 20px; }
.rules h3 { margin: 8px 0 0; font-size: 15px; }
.rule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rule { background: var(--hover); border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; }
.rule.off .rule-text { opacity: 0.55; }
.rule-text, .rule-preview { margin: 0; line-height: 1.7; overflow-wrap: anywhere; }
.rule-text .label, .rule-preview .label { vertical-align: 1px; }
.rule-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; }
.rule-tools .linkish { color: var(--muted); font-weight: 500; text-decoration: underline; margin-left: auto; }
.rule-builder { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 12px; }
.rb-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: start; }
@media (max-width: 680px) { .rb-row { grid-template-columns: minmax(0, 1fr); } }
.rb-key { font-weight: 600; padding-top: 6px; }
.rb-actions { display: grid; gap: 8px; justify-items: start; }
.rb-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; }
.rb-controls .field { width: auto; min-width: 0; max-width: 100%; flex: 0 1 auto; padding: 5px 8px; }
.rb-days { display: inline-flex; align-items: center; gap: 6px; }
.rb-days .field { width: 72px; }
.add-action { display: inline-flex; align-items: center; gap: 6px; }
.add-action svg { width: 14px; height: 14px; }
.rule-preview { background: var(--accent-soft); border-radius: 6px; padding: 8px 10px; font-size: 13px; }
.rules-dialog .btn.primary { justify-self: start; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Roles and people ---------- */
.cd-title.read-only { cursor: default; }
.cd-title.read-only:hover { background: none; }
.cd-body.read-only { grid-template-columns: minmax(0, 1fr); }
.role-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--hover);
  color: var(--muted);
}
.role-badge.admin { background: var(--accent-soft); color: var(--accent); }
.role-badge.member { background: var(--ok-soft); color: var(--ok); }
.account-line { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.role-help { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.role-help .role-badge { margin-right: 4px; }
.people .rule-builder h3 { margin: 0; }
.invite-note { flex: 1 1 200px !important; }
.person-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.person { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 8px 6px; border-radius: 8px; }
.person:hover { background: var(--hover); }
.person .avatar { --size: 32px; }
.person.removed { opacity: 0.6; }
.person-info { display: grid; gap: 2px; min-width: 0; }
.person-info strong { overflow-wrap: anywhere; }
.person-info .hint { overflow-wrap: anywhere; }
.person-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 12px; font-size: 13px; }
.person-tools select.field { width: auto; padding: 3px 6px; }
.person-tools .linkish { font-weight: 500; }
.danger-link { color: var(--bad-ink) !important; }
@media (max-width: 680px) {
  .person { grid-template-columns: 32px minmax(0, 1fr); }
  .person-tools { grid-column: 2; justify-content: flex-start; }
}
.link-box { display: grid; gap: 6px; margin-top: 6px; }
.link-box .row { flex-wrap: nowrap; }
.link-box .field { flex: 1; min-width: 0; font-size: 13px; padding: 6px 8px; }

/* ---------- Boards: colors, the boards page and the switcher ---------- */
[data-color="teal"] { --board-bg: linear-gradient(140deg, #1f5c87 0%, #24708a 55%, #2d8a85 100%); }
[data-color="blue"] { --board-bg: linear-gradient(140deg, #0b3d78 0%, #1458a6 55%, #2a74c9 100%); }
[data-color="purple"] { --board-bg: linear-gradient(140deg, #3f2569 0%, #5c3a8e 55%, #7a56ab 100%); }
[data-color="green"] { --board-bg: linear-gradient(140deg, #174d33 0%, #236b45 55%, #348658 100%); }
[data-color="orange"] { --board-bg: linear-gradient(140deg, #7a3311 0%, #a04a1a 55%, #bf6a27 100%); }
[data-color="slate"] { --board-bg: linear-gradient(140deg, #262d38 0%, #384252 55%, #4f5a6a 100%); }
@media (prefers-color-scheme: dark) {
  [data-color="teal"] { --board-bg: linear-gradient(140deg, #0f2f47 0%, #12404c 55%, #164d49 100%); }
  body[data-color]:not([data-color="teal"]) { background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), var(--board-bg); background-attachment: fixed; }
}
.view-home { padding-top: 20px; }
.home { max-width: 1100px; margin: 0 auto; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.board-tile {
  min-height: 112px;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #ffffff;
  text-decoration: none;
  background: var(--board-bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  border: 0;
  text-align: left;
}
.board-tile:hover { filter: brightness(1.08); }
.board-tile strong { font-size: 16px; overflow-wrap: anywhere; }
.tile-meta { font-size: 12px; opacity: 0.85; margin-top: auto; }
.tile-over { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-size: 12px; font-weight: 600; background: rgba(0, 0, 0, 0.28); border-radius: 4px; padding: 1px 6px; }
.tile-over svg { width: 12px; height: 12px; }
.board-tile.new { background: rgba(255, 255, 255, 0.18); align-items: center; justify-content: center; flex-direction: row; gap: 8px; font-weight: 600; font-size: 14px; }
.board-tile.new svg { width: 18px; height: 18px; }
.home-empty { color: var(--on-board); font-size: 15px; text-align: center; margin: 40px 0 0; }
.tile-dot { width: 18px; height: 14px; border-radius: 3px; background: var(--board-bg); flex: none; }
.board-swatch { background: var(--board-bg); }
.pick-btn { color: inherit; text-decoration: none; }
.pick-btn.current .name { font-weight: 700; }
a.side-btn { color: inherit; text-decoration: none; }
.person-boards .linkish { font-size: inherit; margin-left: 2px; }
.invite-boards { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
