/* ---- Chino theme: tokens override Bootstrap's, light and dark ---- */
:root {
  --bs-body-font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --g-accent: #1F5FD1;  /* fills: buttons, active chips, selected rows (same in light and dark) */
  --g-ink: #FFFFFF;     /* text on top of --g-accent */
  /* control heights, the only ones: md buttons, chips and value buttons, sm buttons, dense table rows */
  --g-h-md: 2.25rem; --g-h-chip: 2rem; --g-h-sm: 1.75rem; --g-h-row: 1.5rem;
}
[data-bs-theme=light] {
  --bs-tertiary-bg: #F3F6FC;      /* page */
  --bs-body-bg: #FFFFFF;          /* cards, navbar */
  --bs-secondary-bg: #EAF0FA;
  --bs-body-color: #0F1B33;
  --bs-secondary-color: #566683;
  --bs-border-color: #D9E1F0;
  --g-line2: #B5C3DE;
  --g-acct: #1F5FD1;
  --g-ring: #1F5FD1;
  --g-late: #C2253F;
  --g-soon: #B7791F;  /* tomorrow */
  --g-week: #1E8449;  /* rest of this week */
  --g-dash: #B5C3DE;
  --g-shadow: rgba(20, 40, 80, .18);
  --c-p3-bg: #FFE1E7; --c-p3-fg: #A3162F; --c-p3-dot: #E0334F;
  --c-p2-bg: #FFEBC7; --c-p2-fg: #7A4B00; --c-p2-dot: #E39200;
  --c-p1-bg: #D5F1F7; --c-p1-fg: #0B5A6B; --c-p1-dot: #1CA3BC;
}
[data-bs-theme=dark] {
  --bs-tertiary-bg: #0A1120;
  --bs-body-bg: #111A2E;
  --bs-secondary-bg: #182540;
  --bs-body-color: #E9EFFC;
  --bs-secondary-color: #94A3C2;
  --bs-border-color: #22314F;
  --g-line2: #3B4F78;
  --g-acct: #5B9BFF;
  --g-ring: #5B9BFF;
  --g-late: #FF8FA3;
  --g-soon: #F2C94C;
  --g-week: #5FD38D;
  --g-dash: #3A4C72;
  --g-shadow: rgba(0, 0, 0, .5);
  --c-p3-bg: #3A1B27; --c-p3-fg: #FF9DB0; --c-p3-dot: #FF5C7A;
  --c-p2-bg: #3A2C12; --c-p2-fg: #FFC86F; --c-p2-dot: #FFB020;
  --c-p1-bg: #12313B; --c-p1-fg: #74D9EA; --c-p1-dot: #2DC4DD;
}
body { background: var(--bs-tertiary-bg); letter-spacing: -.005em; }
.navbar { background: var(--bs-body-bg); }
.navbar-brand { font-weight: 800; letter-spacing: -.02em; }
.btn-primary { --bs-btn-bg: var(--g-accent); --bs-btn-border-color: var(--g-accent); --bs-btn-color: var(--g-ink);
  --bs-btn-hover-bg: var(--g-accent); --bs-btn-hover-border-color: var(--g-accent); --bs-btn-hover-color: var(--g-ink); }
:focus-visible { outline: 2px solid var(--g-ring); outline-offset: 2px; }

/* ---- buttons: one system. Heights come from --g-h-* (md 36, chip/value 32, sm 28, dense row 24).
   Primary: one per screen. Add: secondary with a "+". Close: .g-icon-btn with an x, top right.
   Delete: danger. Chips and segments (.chip, .seg) only filter or switch views, never act. ---- */
.g-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: var(--g-h-md); padding: 0 1rem;
  border: 1px solid var(--g-line2); border-radius: .6rem; background: var(--bs-body-bg); color: var(--bs-body-color);
  font-size: .875rem; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .12s, border-color .12s; }
.g-btn:hover { background: var(--bs-secondary-bg); color: var(--bs-body-color); }
.g-btn:disabled, .g-btn.disabled { opacity: .55; cursor: default; pointer-events: none; }
.g-btn--sm { min-height: var(--g-h-sm); padding: 0 .75rem; font-size: .8125rem; border-radius: .5rem; gap: .4rem; }
.g-btn--primary { background: var(--g-accent); border-color: var(--g-accent); color: var(--g-ink); }
.g-btn--primary:hover { background: var(--g-accent); color: var(--g-ink); filter: brightness(1.1); }
.g-btn--secondary { }
.g-btn--ghost { background: transparent; border-color: transparent; color: var(--bs-secondary-color); }
.g-btn--ghost:hover { color: var(--bs-body-color); }
.g-btn--danger { background: transparent; border-color: var(--g-late); color: var(--g-late); }
.g-btn--danger:hover { background: color-mix(in srgb, var(--g-late) 12%, transparent); color: var(--g-late); }
.g-btn--danger.g-btn--sm { border-color: transparent; }
.g-btn--done { background: color-mix(in srgb, var(--g-week) 16%, var(--bs-body-bg)); border-color: var(--g-week); color: var(--g-week); }
.g-btn--done:hover { background: color-mix(in srgb, var(--g-week) 24%, var(--bs-body-bg)); color: var(--g-week); }
.g-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: var(--g-h-md); height: var(--g-h-md); flex: none; padding: 0;
  border: 0; border-radius: .6rem; background: transparent; color: var(--bs-secondary-color); cursor: pointer; transition: background .12s, color .12s; }
.g-icon-btn:hover { background: var(--bs-secondary-bg); color: var(--bs-body-color); }
.g-icon-btn--sm { width: var(--g-h-sm); height: var(--g-h-sm); border-radius: .5rem; }
.g-icon-btn.text-danger:hover, .g-icon-btn--danger:hover { color: var(--g-late); }
.alert .g-btn--ghost { color: inherit; text-decoration: underline; font-weight: 800; }
/* the tick circle of a task: a bare icon button (the JS and the animations hook on .check) */
.check { padding: 0; border: 0; background: none; color: var(--bs-secondary-color); cursor: pointer; }
.check:hover { color: var(--g-acct); }

/* ---- filter bar: buttons, not dropdowns ---- */
.filter-bar { margin: .5rem 1rem 0; padding: .75rem 1rem; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color);
  border-radius: .6rem; display: flex; flex-direction: column; gap: .6rem; }
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.filter-label { width: 5.5rem; flex: none; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bs-secondary-color); }
.filter-row .filter-label + .seg, .vsep + .filter-label { width: auto; }
.vsep { width: 1px; height: 1.5rem; background: var(--bs-border-color); margin: 0 .75rem; }
.chip { display: inline-flex; align-items: center; gap: .55rem; min-height: var(--g-h-chip); padding: 0 1rem; border: 1px solid var(--bs-border-color);
  border-radius: 999px; color: var(--bs-body-color); text-decoration: none; font-weight: 600; font-size: .9rem; transition: background .12s; }
.chip:hover { background: var(--bs-secondary-bg); color: var(--bs-body-color); }
.chip .n { font-size: .75rem; font-weight: 700; color: var(--bs-secondary-color); }
.chip.on { background: var(--g-accent); border-color: transparent; color: var(--g-ink); }
.chip.on .n { color: var(--g-ink); opacity: .75; }
.clear-link { color: var(--g-acct); font-weight: 700; font-size: .9rem; text-decoration: none; padding: 0 .5rem; }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); border-radius: .8rem; }
.seg-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: var(--g-h-sm); padding: 0 1rem; border-radius: .6rem; text-decoration: none;
  color: var(--bs-secondary-color); font-weight: 600; font-size: .9rem; }
.seg-btn:hover { color: var(--bs-body-color); }
.seg-btn.on { background: var(--bs-body-bg); color: var(--bs-body-color); box-shadow: 0 0 0 1px var(--bs-border-color); }
.seg-btn.on .bi { color: var(--g-acct); }
.btn-check:checked + .seg-btn { background: var(--bs-body-bg); color: var(--bs-body-color); box-shadow: 0 0 0 1px var(--bs-border-color); }
.btn-check:focus-visible + .seg-btn { outline: 2px solid var(--g-ring); outline-offset: 2px; }
.search { display: flex; align-items: center; gap: .5rem; min-height: var(--g-h-chip); padding: 0 .9rem; min-width: 14rem; border: 1px solid var(--bs-border-color);
  border-radius: .8rem; background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); }
.search:focus-within { border-color: var(--g-ring); }
.search input[type=search] { background: none; border: 0; outline: 0; flex: 1; min-width: 0; color: var(--bs-body-color); }

/* ---- board (columns) ---- */
.board { display: flex; gap: 1rem; padding: 1.5rem 1rem; overflow-x: auto; align-items: flex-start; min-height: calc(100vh - 60px); }
.section-col { flex: 0 0 310px; max-width: 310px; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 1rem; padding: .85rem; }
.section-col.add-section { background: transparent; border-style: dashed; }
.section-col h2 { font-weight: 800; letter-spacing: -.01em; }
.count-pill { font-size: .75rem; font-weight: 700; color: var(--bs-secondary-color); background: var(--bs-secondary-bg); border-radius: 999px; padding: .1rem .55rem; margin-left: .25rem; }
.section-drag, .drag { cursor: grab; }
.task-list { min-height: 2rem; }
.task-card.movable { cursor: grab; }  /* the whole card drags */
.task-card.movable :is(button, a, label, select) { cursor: pointer; }
.task-card.sortable-chosen { cursor: grabbing; }
.task-card { background: var(--bs-secondary-bg); border: 1px solid var(--bs-border-color); border-left-width: 4px; border-radius: .7rem; padding: .65rem .75rem; margin-bottom: .5rem; }
.task-card:hover { border-color: var(--g-line2); }
.task-card.p0 { border-left-color: var(--bs-border-color); }
.task-card.p1 { border-left-color: var(--c-p1-dot); }
.task-card.p2 { border-left-color: var(--c-p2-dot); }
.task-card.p3 { border-left-color: var(--c-p3-dot); }
.task-card.editing { background: var(--bs-body-bg); }
.task-card.done .title, li.done .title { text-decoration: line-through; color: var(--bs-secondary-color); }
.task-card .check { color: var(--bs-secondary-color); line-height: 1; display: flex; align-items: center; justify-content: center; }  /* button (own task) and span (not yours) look the same */
.task-card span.check { border: var(--bs-border-width) solid transparent; }  /* the button has one */
.task-card .check:hover { color: var(--g-acct); }
.task-card.done .check { color: var(--g-acct); }

/* feedback when ticking a task: the circle pops and fills, the row flashes green and fades */
.completing:not(.done) .check, .completing:not(.done) .check:hover { color: var(--g-week); }
.completing .check i { display: inline-block; animation: g-pop .4s ease; }
.completing:not(.done) > .title, .completing:not(.done) .title { text-decoration: line-through; color: var(--bs-secondary-color); }
.task-card.completing:not(.done) { animation: g-complete .6s ease forwards; }
@keyframes g-pop { 0% { transform: scale(1); } 40% { transform: scale(1.55); } 100% { transform: scale(1); } }
@keyframes g-complete {
  0% { background-color: transparent; opacity: 1; }
  30% { background-color: color-mix(in srgb, var(--g-week) 22%, transparent); opacity: 1; }
  100% { background-color: color-mix(in srgb, var(--g-week) 10%, transparent); opacity: .5; }
}
@media (prefers-reduced-motion: reduce) {
  .completing .check i, .task-card.completing:not(.done) { animation: none; }
}
.task-card .actions { opacity: 0; transition: opacity .1s; white-space: nowrap; }
.task-card:hover .actions, .task-card:focus-within .actions, li:hover > .actions { opacity: 1; }
@media (hover: none) { .task-card .actions { opacity: 1; } }
.subtasks { margin: .4rem 0 0 1.4rem; font-size: .9rem; }
.ghost { opacity: .4; }
.min-w-0 { min-width: 0; overflow-wrap: anywhere; }
#toast { position: fixed; bottom: 1rem; right: calc(1rem + var(--panel-push, 0px)); z-index: 1080; }

/* ---- in-place edit: title, priority pill, due button ---- */
.title-btn { background: none; border: 0; padding: .1rem .35rem; margin-left: -.35rem; text-align: left; font-weight: 600; color: inherit; border-radius: .4rem; }
.title-btn:hover { background: var(--bs-tertiary-bg); }
.title-form { margin: 0; }
.pill { display: inline-flex; align-items: center; gap: .45rem; min-height: var(--g-h-chip); padding: 0 .75rem; border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: .78rem; white-space: nowrap; }
.pill:hover { filter: brightness(1.12); }
.prio-pill.p3 { background: var(--c-p3-bg); color: var(--c-p3-fg); }
.prio-pill.p2 { background: var(--c-p2-bg); color: var(--c-p2-fg); }
.prio-pill.p1 { background: var(--c-p1-bg); color: var(--c-p1-fg); }
.prio-pill.p0, .dbtn.due-none { background: transparent; border: 1px dashed var(--g-dash); color: var(--bs-secondary-color); opacity: .45; }  /* quiet but there: click to set */
.task-card:hover .prio-pill.p0, .task-card:hover .dbtn.due-none, .prio-pill.p0:focus-visible, .dbtn.due-none:focus-visible,
.dropdown.show .prio-pill.p0, .dropdown.show .dbtn.due-none { opacity: 1; }
@media (hover: none) { .prio-pill.p0, .dbtn.due-none { opacity: 1; } }
.dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; flex: none; background: var(--bs-secondary-color); }
.dot.p3 { background: var(--c-p3-dot); } .dot.p2 { background: var(--c-p2-dot); } .dot.p1 { background: var(--c-p1-dot); }
.dot.p0 { background: transparent; border: 1.5px dashed var(--g-dash); }
.dbtn { display: inline-flex; align-items: center; gap: .4rem; min-height: var(--g-h-chip); padding: 0 .6rem; background: none; border: 1px solid transparent; border-radius: .5rem;
  font-weight: 600; font-size: .8rem; color: var(--bs-body-color); white-space: nowrap; }
.dbtn:hover { background: var(--bs-tertiary-bg); }
.dbtn.due-late { color: var(--g-late); }
.dbtn.due-today { color: var(--g-acct); }
.dbtn.due-tomorrow { color: var(--g-soon); }
.dbtn.due-week { color: var(--g-week); }
.dbtn.due-later { color: var(--bs-secondary-color); }
.dropdown-menu { --bs-dropdown-border-radius: .8rem; --bs-dropdown-padding-x: .35rem; --bs-dropdown-padding-y: .35rem; box-shadow: 0 18px 40px var(--g-shadow); min-width: 12rem; }
.dropdown-item { border-radius: .5rem; min-height: 2.25rem; font-weight: 600; font-size: .9rem; }
.dropdown-item.active { background: var(--bs-secondary-bg); color: var(--bs-body-color); }

/* ---- toolbar: filters stay hidden until the bar is clicked ---- */
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; padding: .35rem 1rem; background: var(--bs-body-bg); border-bottom: 1px solid var(--bs-border-color); }
.toolbar-toggle { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; padding: .2rem .4rem; border-radius: .4rem;
  font-size: .8rem; font-weight: 600; color: var(--bs-secondary-color); }
.toolbar-toggle:hover { background: var(--bs-secondary-bg); color: var(--bs-body-color); }
.toolbar-chev { font-size: .65rem; transition: transform .15s; }
.toolbar-toggle[aria-expanded=true] .toolbar-chev { transform: rotate(180deg); }
.count-pill.on { background: var(--g-accent); color: var(--g-ink); margin-left: 0; }
.toolbar .clear-link { font-size: .8rem; }
.filter-bar .chip { min-height: var(--g-h-sm); padding: 0 .75rem; font-size: .8rem; }
.filter-bar .seg-btn { padding: 0 .75rem; font-size: .8rem; }
.filter-bar .search { min-height: var(--g-h-sm); font-size: .8rem; }

/* ---- list view: dense table, one thin row per task (Asana style) ---- */
.navbar { min-height: 44px; padding-top: .25rem; padding-bottom: .25rem; }  /* compact top bar */
.list-view, .list-head { --cols: 1rem 1.35rem minmax(0, 50%) minmax(9.5rem, 1fr) minmax(6.5rem, 1fr) minmax(8rem, 2fr) minmax(7rem, 1.5fr) 1.75rem; }
.list-head .sort-link { color: inherit; text-decoration: none; border-radius: .3rem; padding: .1rem .25rem; margin: 0 -.25rem; }
.list-head .sort-link:hover { background: var(--bs-secondary-bg); color: var(--bs-body-color); }
.list-head .sort-link.on { color: var(--bs-body-color); }
.list-head { display: grid; grid-template-columns: var(--cols); column-gap: .5rem; padding: .25rem 1rem; margin-top: .5rem; font-size: .72rem;
  font-weight: 600; color: var(--bs-secondary-color); border-top: 1px solid var(--bs-border-color); border-bottom: 1px solid var(--bs-border-color); background: var(--bs-body-bg); }
.board.list-view { flex-direction: column; align-items: stretch; overflow-x: visible; gap: 0; padding: 0 0 2rem; min-height: 0; }
.list-view .section-col { flex: none; max-width: none; background: transparent; border: 0; border-radius: 0; padding: 0; }
.list-view .section-col > header { margin: 0 !important; padding: .7rem 1rem .25rem; }
.list-view .section-col h2 { font-size: .95rem !important; font-weight: 700; }
.list-view .count-pill { font-size: .68rem; padding: 0 .4rem; background: transparent; }
.list-view .task-list { border: 0; border-top: 1px solid var(--bs-border-color); border-radius: 0; background: var(--bs-body-bg); min-height: 0; }
.list-view .task-list:empty { display: none; }
.list-view .task-card.task-row { background: transparent; border: 0; border-bottom: 1px solid var(--bs-border-color); border-radius: 0; margin: 0; padding: 0 1rem; }
.list-view .task-card.task-row:hover { background: var(--bs-secondary-bg); }
.task-line { display: grid; grid-template-columns: var(--cols); align-items: center; column-gap: .5rem; min-height: var(--g-h-sm); font-size: .85rem; }
.task-line .drag { font-size: .8rem; opacity: 0; }
.task-row:hover .drag, .task-row:focus-within .drag { opacity: 1; }
.task-line .check { font-size: .95rem; }
.task-line .title-btn { font-weight: 500; padding: 0 .3rem; line-height: 1.5; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-line .badge { font-size: .65rem; padding: .1rem .35rem; }
.task-line .pill { min-height: var(--g-h-row); padding: 0 .5rem; font-size: .7rem; gap: .3rem; }
.task-line .dbtn { min-height: var(--g-h-row); padding: 0 .3rem; font-size: .8rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-line .dbtn .bi { display: none; }
.task-line .dbtn.due-none::before { content: ""; }
.task-line .dbtn.due-none, .task-line .prio-pill.p0 { border-style: solid; border-color: transparent; }
.list-view .subtasks { margin: 0 0 .25rem 3.1rem; font-size: .8rem; }
.list-view .task-list + form { margin: 0 !important; padding: 0 1rem; border-bottom: 1px solid var(--bs-border-color); background: var(--bs-body-bg); }
.list-view .task-list + form input { border: 0; background: transparent; box-shadow: none; font-size: .85rem; padding: .2rem 0 .2rem 2.1rem; height: 1.75rem; }
.list-view .task-list + form input::placeholder { color: var(--bs-secondary-color); }
.list-view .add-section { padding: .75rem 1rem; }
.group-chev i { transition: transform .15s; display: inline-block; }
.group-chev.collapsed i { transform: rotate(-90deg); }
@media (max-width: 720px) {
  .filter-label { width: 100%; }
  .list-view, .list-head { --cols: 1rem 1.35rem minmax(5rem, 1fr) fit-content(7.5rem) 1.5rem; }
  .list-head span:nth-child(5), .list-head span:nth-child(6), .list-head span:nth-child(7) { display: none; }
  .task-line .col-prio, .task-line .col-tags, .task-line .col-proj, .task-line .col-sync { display: none; }
}

/* ---- task side panel (offcanvas) ---- */
#task-panel { --bs-offcanvas-width: min(var(--panel-width, 520px), 100vw); --bs-offcanvas-bg: var(--bs-body-bg); box-shadow: -18px 0 40px var(--g-shadow); }
/* wide screens: the open panel is part of the page, the table shrinks to stay visible */
body { transition: padding-right .3s ease-in-out; }
@media (min-width: 1400px) {  /* narrower screens: the panel floats over the list */
  body.panel-open { --panel-push: var(--panel-width, 520px); padding-right: var(--panel-push); }
  #task-panel { box-shadow: none; border-left: 1px solid var(--bs-border-color); }
  /* the table is narrower now: keep every column, just tighter */
  body.panel-open .list-view, body.panel-open .list-head { --cols: 1rem 1.35rem minmax(6rem, 1fr) fit-content(7.5rem) 5.5rem minmax(3rem, 7rem) minmax(3rem, 7rem) 1.75rem; }
  body.panel-open .list-view.with-owner, body.panel-open .list-head.with-owner { --cols: 1rem 1.35rem minmax(6rem, 1fr) fit-content(7.5rem) 5.5rem minmax(3rem, 7rem) 1.6rem 1.75rem; }
  body.panel-open .col-owner .text-truncate { display: none; }
}
/* expanded: a centred modal (80% of the window) over a dimmed page, content fills it */
#task-panel { transition: transform .3s ease-in-out; }
#task-panel.expanded.show { top: 5vh; bottom: 5vh; left: 10vw; right: 10vw; width: auto; height: auto; max-width: none; transform: none;
  border: 1px solid var(--bs-border-color); border-radius: 1rem; box-shadow: 0 24px 80px rgba(0,0,0,.45); overflow: hidden; }
#task-panel.expanded .offcanvas-body { height: 100%; overflow-y: auto; }
#panel-backdrop { position: fixed; inset: 0; z-index: 1044; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .2s; }
body.panel-expanded #panel-backdrop { opacity: 1; pointer-events: auto; }
body.panel-open.panel-expanded { padding-right: 0; --panel-push: 0px; }
@media (prefers-reduced-motion: reduce) { body, #task-panel { transition: none; } }
/* the left edge of the panel is a handle: drag it to make the panel wider, the width is remembered */
#panel-resize { position: absolute; top: 0; bottom: 0; left: -4px; width: 9px; z-index: 5; cursor: col-resize; touch-action: none; }
#panel-resize::after { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; background: var(--g-acct); opacity: 0; transition: opacity .15s; }
#panel-resize:hover::after, #panel-resize:focus-visible::after, body.panel-resizing #panel-resize::after { opacity: .7; }
#panel-resize:focus-visible { outline: none; }
#task-panel.expanded #panel-resize { display: none; }
body.panel-resizing { cursor: col-resize; user-select: none; }
body.panel-resizing, body.panel-resizing #task-panel { transition: none; }
body.panel-resizing #task-panel iframe { pointer-events: none; }  /* the editor must not swallow the drag */
@media (max-width: 575.98px) { #panel-resize { display: none; } }
#task-panel .offcanvas-body { padding: 0 1.5rem 2rem; transition: opacity .12s ease; }
#task-panel .offcanvas-body.is-loading { opacity: .35; pointer-events: none; }
.panel-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: .5rem; margin: 0 -1.5rem 1rem; padding: .85rem 1.5rem;
  background: color-mix(in srgb, var(--bs-body-bg) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--bs-border-color); }
#panel-status { transition: opacity .3s; }
.task-card.selected, .task-card.multi { border-color: var(--g-ring); box-shadow: 0 0 0 1px var(--g-ring) inset; background: color-mix(in srgb, var(--g-ring) 14%, var(--bs-secondary-bg)); }
.list-view .task-card.task-row.selected, .list-view .task-card.task-row.multi { background: color-mix(in srgb, var(--g-ring) 14%, var(--bs-secondary-bg)); }
.panel-title { width: 100%; border: 1px solid transparent; border-radius: .6rem; background: transparent; color: var(--bs-body-color);
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; padding: .25rem .5rem; margin: 0 0 1.25rem -.5rem;
  display: block; resize: none; overflow: hidden; line-height: 1.25; overflow-wrap: anywhere; }
.panel-title:hover { border-color: var(--bs-border-color); }
.panel-title:focus { outline: 0; border-color: var(--g-ring); background: var(--bs-tertiary-bg); }
/* properties: a quiet table, label on the left, the value is a ghost button that looks like the ones of the board */
.panel-props { display: flex; flex-direction: column; gap: .15rem; margin-bottom: 1.5rem; }
.panel-field { display: flex; align-items: center; flex-wrap: wrap; column-gap: .75rem; row-gap: .15rem; min-height: 2.4rem; }
.panel-label { width: 7.5rem; flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-secondary-color); }
.panel-field > div:not(.pick) { flex: 1 1 0; min-width: 0; }
.panel-hint { flex-basis: 100%; margin-left: 8.25rem; font-size: .75rem; color: var(--bs-secondary-color); }
.panel-popover .panel-hint { margin-left: 0; margin-top: .4rem; }
.panel-hint-row { margin: -.5rem 0 .75rem; }
/* the properties of a task, as chips: each says its value, the popover edits it */
.panel-desc { margin-top: 0; padding-top: 0; border-top: 0; }
.panel-desc .panel-section-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }  /* the textarea has its placeholder */
.panel-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 1rem; }
.g-value, .panel-chips .pick-btn { display: inline-flex; align-items: center; gap: .45rem; max-width: 100%; min-height: var(--g-h-chip); padding: 0 .7rem;
  border: 1px solid var(--bs-border-color); border-radius: .5rem; background: var(--bs-body-bg); color: var(--bs-body-color);
  font-size: .85rem; font-weight: 700; cursor: pointer; transition: background .12s, border-color .12s; }
.g-value:hover:not(:disabled), .panel-chips .pick-btn:hover:not(:disabled) { background: var(--bs-secondary-bg); }
.g-value[aria-expanded=true], .panel-chips .pick-btn[aria-expanded=true] { border-color: var(--g-ring); background: var(--bs-secondary-bg); }
.g-value:disabled, .panel-chips .pick-btn:disabled, .g-value.pick-static { cursor: default; opacity: 1; }
.g-value .bi { color: var(--bs-secondary-color); }
.chip-key { font-weight: 600; color: var(--bs-secondary-color); }
.chip-text { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; }
.panel-chips .pick-btn .pick-chev { opacity: .6; }
.panel-popover { width: min(21rem, calc(100vw - 2rem)); padding: .85rem; }
.panel-popover .panel-label { display: block; width: auto; margin-bottom: .35rem; }
.panel-pop-row { display: flex; flex-direction: column; margin-bottom: .6rem; }
.panel-more { margin-bottom: .5rem; }
.panel-more .more-chev { transition: transform .15s; font-size: .7rem; }
.panel-more [aria-expanded=true] .more-chev { transform: rotate(90deg); }
.panel-more .panel-props { margin: .5rem 0 0; }
.panel-keys { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; padding-top: .75rem; border-top: 1px solid var(--bs-border-color); font-size: .75rem; color: var(--bs-secondary-color); }
.panel-keys kbd, .comment-hint kbd { padding: 0 .35rem; margin-right: .15rem; border: 1px solid var(--g-line2); border-radius: .3rem; background: var(--bs-body-bg); color: var(--bs-body-color); font: inherit; font-weight: 700; }
.pick { min-width: 0; }
.pick-btn, .panel-date { display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; min-height: var(--g-h-chip); padding: 0 .6rem; border: 1px solid transparent;
  border-radius: .5rem; background: none; color: var(--bs-body-color); font-size: .88rem; font-weight: 600; transition: background .12s, border-color .12s; }
.pick-btn:hover:not(:disabled), .panel-date:hover:not(:disabled) { background: var(--bs-secondary-bg); }
.pick-btn[aria-expanded=true], .panel-date:focus { background: var(--bs-secondary-bg); border-color: var(--g-ring); outline: 0; }
.pick-btn:disabled, .panel-date:disabled, .pick-static { opacity: 1; color: var(--bs-body-color); padding-left: .6rem; }
.pick-btn:disabled { cursor: default; }
.pick-chev { font-size: .65rem; color: var(--bs-secondary-color); opacity: 0; transition: opacity .12s, transform .15s; }
.pick-btn:hover .pick-chev, .pick-btn[aria-expanded=true] .pick-chev { opacity: 1; }
.pick-btn[aria-expanded=true] .pick-chev { transform: rotate(180deg); }
.pick-label, .pick-opt { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.pick .dropdown-item { display: flex; align-items: center; gap: .5rem; }
.pick .pick-check { visibility: hidden; color: var(--g-acct); }
.pick .dropdown-item.active .pick-check { visibility: visible; }
.pick .dropdown-menu { max-height: 18rem; overflow-y: auto; }
.panel-date { font-family: inherit; color-scheme: light dark; }
.panel-section { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--bs-border-color); }
.panel-section-title { display: block; margin-bottom: .6rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-secondary-color); }
.panel-notes { resize: vertical; min-height: 8rem; border-color: transparent; background: var(--bs-tertiary-bg); transition: border-color .12s, background .12s; }
.panel-notes:hover { border-color: var(--bs-border-color); }
.panel-notes:focus { border-color: var(--g-ring); box-shadow: none; background: var(--bs-body-bg); }
.panel-add, #task-comments textarea { border-color: transparent; background: var(--bs-tertiary-bg); }
.panel-add:focus, #task-comments textarea:focus { border-color: var(--g-ring); box-shadow: none; background: var(--bs-body-bg); }
.chip-sm { min-height: var(--g-h-sm); padding: 0 .65rem; font-size: .8rem; background: transparent; }
.prio-radio .pill { cursor: pointer; opacity: .5; }
.prio-radio .pill:hover { opacity: .85; filter: none; }
.prio-radio .btn-check:checked + .pill { opacity: 1; box-shadow: 0 0 0 2px var(--g-ring); }
.prio-radio .btn-check:focus-visible + .pill { outline: 2px solid var(--g-ring); outline-offset: 2px; }
.prio-radio .prio-pill.p0 { opacity: .5; }
.prio-radio .btn-check:checked + .prio-pill.p0 { opacity: 1; }
.panel-subtasks li.done .title { text-decoration: line-through; color: var(--bs-secondary-color); }

/* ---- tags: colored labels, a column in the list, managed in Settings ---- */
/* outline only (the color is the border), so they stay quiet next to the title */
.tag { display: inline-block; max-width: 7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 .4rem; border-radius: .3rem;
  border: 1px solid var(--bs-border-color); background: transparent; color: var(--bs-secondary-color);
  font-size: .68rem; font-weight: 500; line-height: 1.15rem; }
.tag-dot { width: .7rem; height: .7rem; border-radius: 50%; flex: none; }
.tagbtn { display: flex; align-items: center; gap: .25rem; width: 100%; min-height: var(--g-h-row); padding: 0; background: none; border: 0; overflow: hidden; text-align: left; }
.tagbtn .tag-add { color: var(--bs-secondary-color); opacity: 0; font-size: .8rem; padding: 0 .3rem; }
.task-row:hover .tag-add, .tagbtn:focus-visible .tag-add { opacity: 1; }
.col-tags { min-width: 0; }
.task-card .tag { flex: none; }
.tag-admin li { margin-bottom: .4rem; }
.tag-admin .form-control-color { width: 2.25rem; padding: .15rem; flex: none; }

.task-card { cursor: pointer; }

.bulk-bar { position: fixed; left: calc((100% - var(--panel-push, 0px)) / 2); bottom: 1rem; transform: translateX(-50%); z-index: 1060; display: flex; align-items: center; gap: .5rem;
  flex-wrap: wrap; width: max-content; max-width: calc(100vw - 2rem); padding: .5rem .75rem; background: var(--bs-body-bg);
  border: 1px solid var(--g-ring); border-radius: .8rem; box-shadow: 0 10px 30px var(--g-shadow); }
.bulk-bar.d-none { display: none !important; }

/* project (Asana) / list (Google) the task lives in: quiet text */
.col-proj { min-width: 0; display: flex; gap: .5rem; overflow: hidden; }
.col-sync { display: flex; justify-content: center; }
.place { color: var(--bs-secondary-color); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.task-card:not(.task-row) .place { max-width: 9rem; }

/* ---- projects: sidebar shell, project header, owner chips, comments ---- */
.g-shell { display: flex; align-items: flex-start; }
.g-content { flex: 1; min-width: 0; }
.g-sidebar { flex: 0 0 15rem; width: 15rem; position: sticky; top: 0; align-self: flex-start; max-height: 100vh; overflow-y: auto;
  padding: 1rem .75rem; border-right: 1px solid var(--bs-border-color); background: var(--bs-body-bg); min-height: calc(100vh - 64px); }
.g-sidebar .offcanvas-body { display: flex; gap: .15rem; }
@media (max-width: 767.98px) {
  .g-sidebar { position: fixed; padding: 0; min-height: 0; max-height: none; width: 17rem; border-right: 0; }
}
.side-link { display: flex; align-items: center; gap: .55rem; padding: .45rem .6rem; border-radius: .6rem; text-decoration: none; color: var(--bs-body-color);
  font-weight: 600; font-size: .92rem; }
.side-link:hover { background: var(--bs-secondary-bg); }
.side-link.active { background: var(--g-accent); color: var(--g-ink); }
.side-link .n { font-size: .75rem; font-weight: 700; color: var(--bs-secondary-color); }
.side-link.active .n { color: var(--g-ink); opacity: .75; }
.side-head { display: flex; align-items: center; justify-content: space-between; margin: 1rem .6rem .25rem; font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--bs-secondary-color); }
.project-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.25rem 1rem 0; }
.avatars { display: inline-flex; }
.avatars .owner-chip { margin-left: -.35rem; border: 2px solid var(--bs-tertiary-bg); }
.avatars .owner-chip:first-child { margin-left: 0; }
.owner-chip { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; flex: none; border-radius: 50%;
  background: var(--bs-secondary-bg); color: var(--bs-secondary-color); border: 1px solid var(--bs-border-color); font-size: .7rem; font-weight: 800; }
.owner-chip.unassigned { border-style: dashed; background: transparent; font-size: .8rem; }
.owner-chip.me { background: var(--g-accent); color: var(--g-ink); border-color: transparent; }
.saved-views { min-width: 17rem; }
.comment { padding: .6rem 0; border-bottom: 1px solid var(--bs-border-color); }
.comment-body { margin-top: .25rem; font-size: .9rem; overflow-wrap: anywhere; }
.panel-fold > summary { display: flex; align-items: center; cursor: pointer; list-style: none; margin-bottom: 0; }
.panel-fold > summary::-webkit-details-marker { display: none; }
.panel-fold[open] > summary .fold-caret { transform: rotate(180deg); }
.fold-caret { transition: transform .15s; }
.activity-item { display: flex; gap: .5rem; padding: .3rem 0; }
.activity-icon { color: var(--bs-secondary-color); margin-top: .1rem; }
.activity-body { color: var(--bs-secondary-color); overflow-wrap: anywhere; }

/* ---- kanban cards: small, title on top, owner / due date / priority underneath ---- */
.board:not(.list-view) .section-col { flex-basis: 262px; max-width: 262px; padding: .65rem; }
.board:not(.list-view) .task-card { padding: .5rem .6rem; margin-bottom: .4rem; border-radius: .6rem; font-size: .85rem; }
.board:not(.list-view) .task-card .title-btn { font-size: .88rem; line-height: 1.25; }
.board:not(.list-view) .task-card .drag { opacity: 0; transition: opacity .1s; }
.board:not(.list-view) .task-card:hover .drag { opacity: 1; }
.card-foot { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; margin: .4rem 0 0 1.7rem; }
.card-foot .dbtn, .card-foot .pill { min-height: var(--g-h-row); font-size: .72rem; padding: 0 .5rem; }
.card-foot .dbtn.due-none, .card-foot .prio-pill.p0 { opacity: 1; }  /* always there: click to set */
.board:not(.list-view) .subtasks { margin: .3rem 0 0 1.7rem; font-size: .8rem; }

.list-view.with-owner, .list-head.with-owner { --cols: 1rem 1.35rem minmax(0, 46%) minmax(9.5rem, 1fr) minmax(6.5rem, 1fr) minmax(7rem, 1.5fr) minmax(8rem, 1.5fr) 1.75rem; }
.col-owner { display: flex; align-items: center; gap: .4rem; min-width: 0; font-size: .8rem; }
.owner-chip.avatar { object-fit: cover; padding: 0; }

.synced-icon { color: var(--g-week); }

/* ---- top bar: user menu ---- */
.user-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .15rem .5rem .15rem .25rem; border: 1px solid transparent; border-radius: 2rem;
  background: transparent; color: var(--bs-body-color); font-size: .85rem; }
.user-btn:hover, .user-btn[aria-expanded="true"] { background: var(--bs-secondary-bg); }
.user-avatar { position: relative; display: inline-flex; }
.user-avatar .owner-chip { width: 1.85rem; height: 1.85rem; font-size: .8rem; }
.sync-flag { position: absolute; right: -.35rem; bottom: -.25rem; display: inline-flex; align-items: center; justify-content: center; width: 1rem; height: 1rem;
  border-radius: 50%; background: var(--bs-body-bg); color: var(--bs-danger); font-size: .75rem; }
.sync-flag.setup { color: var(--bs-secondary-color); }
.user-menu { min-width: 15rem; }
.user-menu form { margin: 0; }
.owner-menu { display: inline-flex; }
.owner-btn { display: inline-flex; padding: 0; border: 0; background: none; border-radius: 50%; line-height: 1; cursor: pointer; }
.owner-btn:hover .owner-chip { box-shadow: 0 0 0 2px var(--g-ring); }
.owner-menu .dropdown-menu .owner-chip { width: 1.3rem; height: 1.3rem; }
.shared-mark { font-size: .7rem; opacity: .6; }
.side-ghost { opacity: .4; }
#project-list { display: flex; flex-direction: column; gap: .15rem; }

/* brand wordmark */
.g-wordmark { font-family: 'Manrope', system-ui, sans-serif; font-weight: 800; letter-spacing: -.02em; color: #E86D53; line-height: 1; font-size: 1.6rem; }
.g-wordmark-lg { font-size: 3rem; }
.g-logo { box-sizing: content-box; background: #131A2A; border-radius: 50%; padding: .25rem; }
.g-logo-lg { padding: 1.5rem; }

/* ---- notifications: sidebar badge and the recap page ---- */
.notif-badge.on { min-width: 1.35rem; padding: 0 .4rem; border-radius: 1rem; text-align: center; font-size: .72rem; font-weight: 700; line-height: 1.35rem;
  background: var(--g-late); color: #fff; }
.side-link.active .notif-badge.on { background: var(--g-ink); color: var(--g-accent); opacity: 1; }
.notif-page { max-width: none; padding: 1rem 1rem 3rem; }
.notif-group { margin: 1rem 0 .15rem; padding: 0 .6rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-secondary-color); }
.notif-list { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: .7rem; overflow: hidden; }
.notif-card + .notif-card { border-top: 1px solid var(--bs-border-color); }
.notif-card > .notif { position: relative; }
.notif-card > .notif::before { content: ""; position: absolute; left: 1.05rem; top: 0; bottom: 0; width: 2px; background: var(--bs-border-color); }
.notif-card > .notif:last-child::before { bottom: 50%; }
.notif-head { display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; font-size: .92rem; background: color-mix(in srgb, var(--g-accent) 11%, var(--bs-body-bg)); cursor: pointer; list-style: none; user-select: none; }
.notif-head::-webkit-details-marker { display: none; }
.notif-head:hover { background: color-mix(in srgb, var(--g-accent) 18%, var(--bs-body-bg)); }
.notif-card[open] > .notif-head { border-bottom: 1px solid var(--bs-border-color); }
.notif-chev { flex: none; width: 1rem; font-size: .7rem; color: var(--bs-secondary-color); transition: transform .12s; }
.notif-card[open] .notif-chev { transform: rotate(90deg); }
.notif-head > .bi:not(.notif-chev) { color: var(--bs-secondary-color); }
.notif-title { font-weight: 700; color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
a.notif-title:hover { text-decoration: underline; }
.notif-count { flex: none; font-size: .75rem; color: var(--bs-secondary-color); }
.notif-new { flex: none; padding: 0 .45rem; border-radius: 1rem; font-size: .68rem; font-weight: 700; line-height: 1.2rem; background: var(--g-accent); color: var(--g-ink); }
.notif-head .notif-time { margin-left: auto; }
.notif { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) auto .65rem; align-items: center; gap: .6rem; padding: .22rem .6rem .22rem 1.9rem; font-size: .82rem; }
.notif:hover { background: var(--bs-secondary-bg); }
.notif .avatar, .notif .owner-chip { transform: scale(.8); transform-origin: left center; }
.notif-dot { width: .6rem; height: .6rem; padding: 0; border-radius: 50%; border: 1.5px solid var(--bs-border-color); background: transparent; }
.notif.unread .notif-dot { background: var(--g-accent); border-color: var(--g-accent); }
.notif-main { min-width: 0; display: grid; grid-template-columns: minmax(12rem, 24rem) minmax(0, 1fr); gap: .75rem; align-items: baseline; text-decoration: none; color: inherit; }
.notif-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif:not(.unread) .notif-line { color: var(--bs-secondary-color); }
.notif:not(.unread) .notif-line strong { font-weight: 600; }
.notif-icon { margin-right: .4rem; color: var(--g-acct); }
.notif-icon.success { color: var(--g-week); }
.notif-icon.warning { color: var(--g-soon); }
.notif-desc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bs-secondary-color); }
.notif-time { font-size: .73rem; color: var(--bs-secondary-color); white-space: nowrap; }
@media (max-width: 700px) { .notif-main { grid-template-columns: 1fr; gap: 0; } .notif-desc { font-size: .75rem; } }

/* light theme: columns one step darker than the page, cards and rows white (same palette, no new greys) */
[data-bs-theme="light"] .notif-list { background: var(--bs-secondary-bg); border: 0; border-radius: .7rem; padding: .3rem; }
[data-bs-theme="light"] .notif-card + .notif-card { border-top: 0; margin-top: .45rem; }
[data-bs-theme="light"] .notif-head { background: var(--bs-border-color); border-radius: .5rem; }
[data-bs-theme="light"] .notif-head:hover { background: var(--g-line2); }
[data-bs-theme="light"] .notif-card[open] > .notif-head { border-bottom: 0; margin-bottom: .25rem; }
[data-bs-theme="light"] .notif-card > .notif { background: var(--bs-body-bg); border-radius: .5rem; margin: 0 0 .2rem 1.1rem; box-shadow: 0 0 0 1px var(--bs-border-color); padding-left: .6rem; }
[data-bs-theme="light"] .notif-card > .notif::before { display: none; }
[data-bs-theme="light"] .notif-card > .notif:hover { background: var(--bs-tertiary-bg); }
[data-bs-theme="light"] .board:not(.list-view) .section-col:not(.add-section) { background: var(--bs-secondary-bg); border-color: transparent; }
[data-bs-theme="light"] .board:not(.list-view) .task-card:not(.selected):not(.multi) { background: var(--bs-body-bg); }

/* ---- settings: a page with a side menu, every control saves by itself ---- */
.settings-page { display: flex; align-items: flex-start; gap: 2rem; max-width: 62rem; padding: 1.5rem 1rem 3rem; }
.settings-nav { flex: 0 0 11rem; display: flex; flex-direction: column; gap: .15rem; position: sticky; top: 1rem; }
.settings-nav-title { margin: 0 0 .5rem .6rem; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.settings-content { flex: 1; min-width: 0; }
.settings-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.settings-head h2 { margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.settings-saved { margin-left: auto; font-size: .85rem; font-weight: 700; color: var(--g-week); }
.settings-intro { color: var(--bs-secondary-color); font-size: .9rem; }
.settings-group { margin: 1.75rem 0 .25rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bs-secondary-color); }
.settings-row { display: flex; align-items: center; gap: 1.5rem; padding: 1rem 0; border-top: 1px solid var(--bs-border-color); }
.settings-row-text { flex: 1; min-width: 0; }
.settings-row-title { display: block; margin: 0; font-weight: 700; font-size: .95rem; }
.settings-row-help { max-width: 34rem; font-size: .85rem; color: var(--bs-secondary-color); }
.settings-control { flex: none; min-width: 11rem; }
.settings-row .form-switch { flex: none; font-size: 1.15rem; margin: 0; }
.settings-content .modal-body { padding: 0; }
.tag-hex-box { flex: none; }
.tag-hex-box .tag-hex { width: 6.5rem; margin-top: .25rem; }
@media (max-width: 720px) {
  .settings-page { flex-direction: column; gap: 1rem; }
  .settings-nav { flex-direction: row; flex-wrap: wrap; position: static; flex-basis: auto; width: 100%; }
  .settings-nav-title { width: 100%; }
  .settings-row { flex-wrap: wrap; gap: .75rem; }
}

/* description editor (TinyMCE): looks like the old textarea */
.tox.tox-tinymce.panel-notes-editor { border: 1px solid transparent; border-radius: var(--bs-border-radius); background: var(--bs-tertiary-bg); transition: border-color .12s, background .12s; }
.tox.tox-tinymce.panel-notes-editor:hover { border-color: var(--bs-border-color); }
.tox.tox-tinymce.panel-notes-editor:focus-within { border-color: var(--g-ring); background: var(--bs-body-bg); }
.tox.tox-tinymce.panel-notes-editor .tox-edit-area__iframe { background: transparent; }
.tox.tox-tinymce.panel-notes-editor .tox-toolbar-overlord, .tox.tox-tinymce.panel-notes-editor .tox-toolbar__primary { background: transparent; }
.tox.tox-tinymce.is-disabled .tox-editor-header { display: none; }
.tox.tox-tinymce.panel-notes-editor .tox-statusbar { background: transparent; border-top: 0; }

/* two people changed the same field: the bar above the form asks which one stays */
.panel-conflict { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0 0 .75rem; padding: .55rem .75rem; border: 1px solid var(--c-p2-dot); border-radius: .6rem; background: color-mix(in srgb, var(--c-p2-dot) 12%, transparent); font-size: .85rem; }
.panel-conflict-text { display: flex; gap: .5rem; align-items: center; flex: 1 1 14rem; }
.panel-conflict-actions { display: flex; gap: .4rem; }
.panel-conflict-theirs { flex: 1 0 100%; }
.panel-conflict-theirs summary { cursor: pointer; color: var(--bs-secondary-color); }
.panel-conflict-theirs .conflict-theirs { margin-top: .4rem; padding: .5rem .65rem; border-radius: .5rem; background: var(--bs-body-bg); max-height: 12rem; overflow: auto; white-space: pre-wrap; }

/* who else has the task open, and a note that it changed while typing */
.panel-presence { display: flex; align-items: center; gap: .4rem; margin: 0 0 .6rem; padding: .35rem .65rem; border-radius: .5rem; background: var(--bs-secondary-bg); color: var(--bs-secondary-color); font-size: .8rem; }
.panel-presence[hidden] { display: none; }

/* which installation this is (ENV_LABEL / DEBUG): nothing on production */
.env-badge { padding: .05rem .45rem; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; color: var(--c-p2-dot); border: 1px solid currentColor; line-height: 1.5; }
.env-badge--debug { color: var(--c-p3-dot); }

/* who follows the task, and the button to stop */
.panel-followers { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 .25rem; min-width: 0; }
.panel-followers .panel-section-title { margin: 0; white-space: nowrap; }
.panel-followers .avatars .owner-chip { width: 1.5rem; height: 1.5rem; font-size: .7rem; }
.panel-followers .followers-names { min-width: 0; }

/* comments in the list: a bubble with the number, highlighted while there are new ones from others */
.comment-badge { display: inline-flex; align-items: center; gap: .25rem; margin-left: .45rem; padding: 0 .4rem; border-radius: 999px; font-size: .72rem; font-weight: 600; line-height: 1.5; color: var(--bs-secondary-color); white-space: nowrap; vertical-align: middle; }
.comment-badge.unread { color: var(--g-acct); background: color-mix(in srgb, var(--g-acct) 14%, transparent); font-weight: 800; }
.comment-badge.unread::after { content: ""; width: .4rem; height: .4rem; margin-left: .05rem; border-radius: 50%; background: currentColor; }
