@font-face { font-family: Vazirmatn; src: url(fonts/Vazirmatn-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(fonts/Vazirmatn-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(fonts/Vazirmatn-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #f5f5f2; --card: #ffffff; --ink: #18181b; --ink-2: #3f3f46; --muted: #71717a; --faint: #a1a1aa;
  --line: #e7e5e0; --line-2: #f0efeb; --soft: #f4f3ef; --hover: #f7f6f3;
  --accent: #2f5bd3; --accent-ink: #ffffff; --accent-soft: #edf1fc; --accent-line: #c9d5f5;
  --done: #2f7d4f; --done-soft: #eaf5ee; --warn: #a15c07; --warn-soft: #fdf3e2; --danger: #c2341b; --danger-soft: #fdecea;
  --shadow: 0 1px 2px rgba(24, 24, 27, .04), 0 4px 16px rgba(24, 24, 27, .04);
  --shadow-up: 0 8px 30px rgba(24, 24, 27, .12);
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121214; --card: #1b1b1f; --ink: #ececee; --ink-2: #c8c8cd; --muted: #9a9aa3; --faint: #6e6e78;
    --line: #2b2b31; --line-2: #24242a; --soft: #232328; --hover: #222227;
    --accent: #7c9cf5; --accent-ink: #0e1222; --accent-soft: #1f2741; --accent-line: #34406a;
    --done: #6cc28f; --done-soft: #17291f; --warn: #e3a64d; --warn-soft: #2e2416; --danger: #f07a63; --danger-soft: #331b17;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-up: 0 8px 30px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.75 Vazirmatn, Tahoma, sans-serif; -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
svg { display: block; }
::selection { background: var(--accent-soft); }

/* ------------------------------------------------------------ chrome */
.top {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.top-in { max-width: 1160px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.mark {
  width: 24px; height: 24px; border-radius: 7px; background: var(--ink); position: relative; flex: none;
}
.mark::after {
  content: ""; position: absolute; left: 7px; top: 5px; width: 6px; height: 10px;
  border: solid var(--paper); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg);
}
.today { color: var(--muted); font-size: 13.5px; }
.spacer { flex: 1; }
.link-btn { background: none; border: 0; padding: 4px 6px; color: var(--muted); cursor: pointer; font-size: 13.5px; border-radius: 8px; }
.link-btn:hover { color: var(--ink); background: var(--soft); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 26px 20px 80px; }
.wrap.narrow { max-width: 760px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 500;
  font-size: 14px; white-space: nowrap; transition: background .12s, border-color .12s, transform .06s; color: var(--ink);
}
.btn:hover { background: var(--hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--ink-2); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--soft); color: var(--ink); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn svg { width: 16px; height: 16px; }
.icon-btn {
  width: 32px; height: 32px; display: inline-grid; place-items: center; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted); cursor: pointer; flex: none;
}
.icon-btn:hover { background: var(--soft); color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

input.field, textarea.field {
  width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 8px 12px; outline: none;
  transition: border-color .12s, box-shadow .12s;
}
input.field:focus, textarea.field:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.field { resize: vertical; min-height: 70px; line-height: 1.8; }

/* ------------------------------------------------------------ home */
.page-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.2px; }
.page-head .count { color: var(--muted); font-size: 14px; margin-inline-start: 4px; }
.page-head .search { width: 220px; height: 38px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.bcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 14px;
  box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column; gap: 12px; min-height: 150px;
  transition: border-color .12s, transform .12s, box-shadow .12s; text-align: start; color: inherit;
}
.bcard:hover { border-color: var(--accent-line); box-shadow: var(--shadow-up); text-decoration: none; }
.bcard-top { display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  font-weight: 700; font-size: 16px; background: var(--accent-soft); color: var(--accent);
}
.avatar.lg { width: 52px; height: 52px; border-radius: 15px; font-size: 20px; }
.avatar.c1 { background: #eaf5ee; color: #2f7d4f; } .avatar.c2 { background: #fdf3e2; color: #a15c07; }
.avatar.c3 { background: #f6ecfb; color: #8a3fb0; } .avatar.c4 { background: #e9f6f8; color: #18788a; }
.avatar.c5 { background: #fcebee; color: #b23452; }
@media (prefers-color-scheme: dark) {
  .avatar.c1 { background: #17291f; color: #6cc28f; } .avatar.c2 { background: #2e2416; color: #e3a64d; }
  .avatar.c3 { background: #2a1d33; color: #c99ae4; } .avatar.c4 { background: #14282c; color: #6cc6d6; }
  .avatar.c5 { background: #331a20; color: #ee8aa2; }
}
.bcard-name { font-weight: 700; font-size: 16px; line-height: 1.5; }
.bcard-sub { color: var(--muted); font-size: 13px; line-height: 1.5; }
.bcard-stats { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.bar { height: 5px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--done); border-radius: 99px; width: 0; transition: width .3s; }
.bcard-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 99px; font-size: 12px; font-weight: 500; }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.ok { background: var(--done-soft); color: var(--done); }
.pill.muted { background: var(--soft); color: var(--muted); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.seen { display: inline-flex; align-items: center; gap: 5px; }
.seen::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.seen.yes::before { background: var(--done); }

.bcard.new {
  border-style: dashed; box-shadow: none; background: transparent; align-items: center; justify-content: center;
  color: var(--muted); font-weight: 500; gap: 8px;
}
.bcard.new:hover { color: var(--accent); background: var(--card); }
.bcard.new svg { width: 22px; height: 22px; }

.empty-home { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-home h2 { color: var(--ink); font-size: 20px; margin: 14px 0 6px; }
.empty-home p { margin: 0 0 20px; }

/* ------------------------------------------------------------ board head */
.crumb { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.crumb svg { width: 15px; height: 15px; }
.crumb:hover { color: var(--ink); text-decoration: none; }
.bhead {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px;
}
.bhead-id { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 320px; }
.bhead h1 { margin: 0; font-size: 24px; line-height: 1.45; font-weight: 700; }
.bhead .sub { color: var(--muted); font-size: 14px; }
.bhead .seen-line { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.bhead-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share {
  display: flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--line);
  border-radius: 11px; padding: 3px 3px 3px 4px; box-shadow: var(--shadow);
}
.share code {
  direction: ltr; font: 500 12.5px/1 ui-monospace, Consolas, monospace; color: var(--muted); padding: 0 8px;
  max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ------------------------------------------------------------ weeks */
.focus { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
@media (min-width: 980px) { .focus { grid-template-columns: 1fr 1fr; } }
.section-title {
  display: flex; align-items: center; gap: 10px; margin: 38px 0 12px; font-size: 13.5px; font-weight: 700; color: var(--muted);
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-title .n { font-weight: 400; }

.week {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  overflow: visible;
}
.week.current { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.week-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; flex-wrap: wrap; }
.week-head .tag {
  font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--soft); color: var(--ink-2);
}
.week.current .tag { background: var(--accent); color: var(--accent-ink); }
.week-head .range { font-weight: 700; font-size: 15px; }
.week-head .prog { margin-inline-start: auto; color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 8px; }
.week-head .prog .bar { width: 64px; }
.week-acts { display: flex; gap: 4px; align-items: center; }

.note { margin: 0 16px 8px; }
.note-view {
  white-space: pre-wrap; background: var(--soft); border-radius: 10px; padding: 9px 12px; color: var(--ink-2);
  font-size: 14px; cursor: text; border: 1px solid transparent; overflow-wrap: anywhere;
}
.note-view:hover { border-color: var(--line); }
body[data-mode="public"] .note-view { cursor: default; }
body[data-mode="public"] .note-view:hover { border-color: transparent; }
.note-label { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 4px; }

.tasks { list-style: none; margin: 0; padding: 2px 8px 4px; min-height: 8px; }
.task {
  position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 7px 8px; border-radius: 10px;
  transition: background .1s;
}
.task:hover { background: var(--hover); }
.task.dragging { opacity: .35; }
.task.drop-before::before, .tasks.drop-end::after {
  content: ""; position: absolute; inset-inline: 8px; top: -2px; height: 2px; border-radius: 2px; background: var(--accent);
}
.tasks.drop-end { position: relative; }
.tasks.drop-end::after { top: auto; bottom: 0; }
.check {
  flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%; border: 1.8px solid var(--faint);
  background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; transition: all .12s;
}
.check:hover { border-color: var(--done); background: var(--done-soft); }
.check svg { width: 12px; height: 12px; opacity: 0; color: #fff; }
.check:hover svg { opacity: .6; color: var(--done); }
.task.done .check { background: var(--done); border-color: var(--done); }
.task.done .check svg { opacity: 1; color: #fff; }
.t-body { flex: 1; min-width: 0; }
.t-body.can-edit { cursor: text; }
.t-title { overflow-wrap: anywhere; line-height: 1.75; }
.t-detail { color: var(--muted); font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 1px; line-height: 1.75; }
.task.done .t-title { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--faint); }
.task.done .t-detail { color: var(--faint); }
.t-acts { display: flex; gap: 2px; opacity: 0; transition: opacity .1s; margin-top: 0; }
.task:hover .t-acts, .task:focus-within .t-acts, .task.menu-open .t-acts { opacity: 1; }
.t-acts .icon-btn { width: 28px; height: 28px; }
.t-acts .icon-btn svg { width: 15px; height: 15px; }
@media (hover: none) { .t-acts { opacity: 1; } }

.t-edit { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.t-edit input { font-weight: 500; }
.t-edit textarea { min-height: 60px; font-size: 14px; }
.t-edit .row { display: flex; gap: 6px; align-items: center; }
.t-edit .hint { color: var(--faint); font-size: 12px; margin-inline-start: auto; }

.menu {
  position: absolute; inset-inline-end: 6px; top: 36px; z-index: 30; min-width: 190px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-up); padding: 5px;
}
.menu button {
  display: flex; width: 100%; align-items: center; gap: 9px; border: 0; background: none; padding: 7px 10px;
  border-radius: 8px; cursor: pointer; text-align: start; font-size: 13.5px;
}
.menu button:hover { background: var(--soft); }
.menu button svg { width: 15px; height: 15px; color: var(--muted); }
.menu button.danger { color: var(--danger); }
.menu button.danger svg { color: var(--danger); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
.menu-anchor { position: relative; }

.composer { display: flex; align-items: center; gap: 10px; padding: 4px 16px 14px; }
.composer .plus { width: 20px; height: 20px; flex: none; color: var(--faint); display: grid; place-items: center; }
.composer .plus svg { width: 18px; height: 18px; }
.composer input {
  flex: 1; border: 0; background: transparent; outline: none; padding: 6px 0; border-bottom: 1px solid transparent;
}
.composer input::placeholder { color: var(--faint); }
.composer:focus-within .plus { color: var(--accent); }
.composer:focus-within input { border-bottom-color: var(--accent-line); }
.week-empty { color: var(--faint); font-size: 13.5px; padding: 4px 16px 16px; }
.tasks:empty + .week-empty { padding-top: 0; }

/* past / archived weeks */
.week.compact .week-head { cursor: pointer; padding-bottom: 14px; }
.week.compact.open .week-head { padding-bottom: 10px; }
.week.compact .chev { width: 18px; height: 18px; color: var(--faint); transition: transform .15s; flex: none; }
.week.compact.open .chev { transform: rotate(-90deg); }
.week.compact .range { font-weight: 500; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.week.archived { background: transparent; box-shadow: none; }

/* ------------------------------------------------------------ public */
.pub-head {
  display: flex; align-items: center; gap: 14px; margin: 6px 0 24px;
}
.pub-head h1 { margin: 0; font-size: 22px; line-height: 1.45; }
.pub-head .sub { color: var(--muted); font-size: 14px; }
.pub-head .upd { color: var(--muted); font-size: 12.5px; }
.owner-bar {
  display: flex; align-items: center; gap: 10px; background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line); border-radius: 12px; padding: 8px 14px; margin-bottom: 18px; font-size: 13.5px;
}
.owner-bar a { margin-inline-start: auto; font-weight: 700; }
.foot { text-align: center; color: var(--faint); font-size: 12px; margin-top: 50px; }

/* ------------------------------------------------------------ modal, toast, login */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(24, 24, 27, .32); display: grid; place-items: center; padding: 20px;
  animation: fade .12s ease-out;
}
.modal {
  width: 100%; max-width: 420px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow-up);
  padding: 22px; display: flex; flex-direction: column; gap: 14px; animation: pop .14s ease-out;
}
.modal h2 { margin: 0; font-size: 18px; }
.modal p { margin: 0; color: var(--muted); font-size: 14px; }
.modal label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 500; }
.modal .acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }

#toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 60; opacity: 0;
  pointer-events: none; transition: all .18s; background: var(--ink); color: var(--paper); border-radius: 12px;
  padding: 9px 10px 9px 16px; display: flex; align-items: center; gap: 12px; font-size: 14px; box-shadow: var(--shadow-up);
  max-width: calc(100vw - 32px);
}
#toast:empty { padding: 0; }
#toast.show { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
#toast button { background: none; border: 0; color: var(--accent-line); font-weight: 700; cursor: pointer; padding: 2px 6px; }
@media (prefers-color-scheme: dark) { #toast button { color: var(--accent-ink); } }
#toast span:only-child { padding-inline-end: 6px; }

.login-body { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.login {
  width: 100%; max-width: 360px; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
}
.login h1 { margin: 6px 0 0; font-size: 20px; }
.login label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 500; }
.login input {
  border: 1px solid var(--line); background: var(--card); border-radius: 10px; height: 42px; padding: 0 12px; outline: none; font-size: 15px;
}
.login input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.login .btn { height: 42px; margin-top: 4px; }
.err { margin: 0; background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }

.loading { color: var(--faint); text-align: center; padding: 80px 0; }
.missing { text-align: center; padding: 100px 20px; color: var(--muted); }
.missing h1 { color: var(--ink); font-size: 22px; }

@media (max-width: 640px) {
  .wrap { padding: 18px 16px 70px; }
  .top-in { padding: 10px 16px; }
  .today { display: none; }
  .page-head h1 { font-size: 22px; }
  .page-head .search { width: 100%; order: 3; }
  .bhead h1 { font-size: 20px; }
  .share code { max-width: 140px; }
  .week-head { padding: 12px 12px 8px; }
  .tasks { padding: 2px 4px 4px; }
  .composer { padding: 4px 12px 12px; }
  .note { margin: 0 12px 8px; }
  .week-head .prog .bar { display: none; }
}
@media print {
  .top, .composer, .t-acts, .bhead-acts, .owner-bar, .crumb, .week-acts { display: none !important; }
  body { background: #fff; }
  .week { box-shadow: none; break-inside: avoid; }
}

/* ------------------------------------------------------------ small helpers */
.min0 { min-width: 0; }
.ic { display: inline-grid; place-items: center; flex: none; }
.ic svg { width: 16px; height: 16px; }
.menu .ic svg { width: 15px; height: 15px; }
.offscreen { position: fixed; top: -1000px; opacity: 0; }
.empty-home .avatar { margin: 0 auto; }
.empty-home .avatar svg { width: 24px; height: 24px; }
.late {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 16px 8px; padding: 7px 12px; border-radius: 10px;
  background: var(--warn-soft); color: var(--warn); font-size: 13px;
}
.link-btn.strong { color: var(--warn); font-weight: 700; padding: 2px 6px; }
.link-btn.strong:hover { background: transparent; text-decoration: underline; }
.task.editing { background: var(--hover); }
.task.editing .check { opacity: .4; }
.section-title .link-btn { font-weight: 700; padding: 2px 4px; }
.wrap.pub { max-width: 1060px; }
@media (max-width: 640px) { .late { margin: 0 12px 8px; } }
@media (max-width: 640px) {
  .bhead-acts { width: 100%; flex-wrap: nowrap; }
  .share { padding: 0; border: 0; box-shadow: none; background: none; }
  .share code { display: none; }
  .bhead-acts .menu-anchor { margin-inline-start: auto; }
  .grid .bcard.new { display: none; }
}

/* ------------------------------------------------------------ v2: status, filters, the person's own tasks */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 18px; }
.chip {
  height: 34px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--card);
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  transition: background .12s, border-color .12s, color .12s;
}
.chip:hover { border-color: var(--faint); color: var(--ink); }
.chip .n { font-size: 12px; color: var(--muted); background: var(--soft); border-radius: 99px; padding: 0 7px; line-height: 1.6; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.on .n { background: color-mix(in srgb, var(--paper) 22%, transparent); color: inherit; }
.chip.f-waiting.on { background: var(--warn); border-color: var(--warn); color: #fff; }
.chip.f-done.on { background: var(--done); border-color: var(--done); color: #fff; }
@media (prefers-color-scheme: dark) { .chip.f-waiting.on, .chip.f-done.on { color: #111; } }

.task.waiting .check { border-color: var(--warn); background: var(--warn-soft); }
.task.waiting .check svg { opacity: 1; color: var(--warn); width: 14px; height: 14px; }
.task.waiting .check:hover { border-color: var(--done); background: var(--done-soft); }
.task.waiting .check:hover svg { color: var(--done); }
.task.fresh { background: color-mix(in srgb, var(--accent-soft) 70%, transparent); }
.t-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px; font-size: 12px; }
.t-meta .pill { padding: 0 8px; line-height: 1.8; }
.pill .ic svg { width: 12px; height: 12px; }
.pill .wf { font-weight: 400; }
.pill.accent-line { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); }
.since { color: var(--muted); }
.task.done .t-meta { opacity: .6; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill.click { cursor: pointer; }
.pill.click:hover { text-decoration: underline; }
.seen-line { display: flex; gap: 14px; flex-wrap: wrap; }
.prog .pill { line-height: 1.7; }
@media (max-width: 640px) {
  .filters { gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { height: 32px; padding: 0 10px; font-size: 13px; gap: 5px; flex: none; }
  .chip .n { padding: 0 6px; }
}
