/* SÍNOP Tasks — "Real notebook" design (0.3.0)
   An open spiral notebook on a desk: ruled paper with a red margin, handwritten
   task titles, sticky notes, and finished tasks highlighted with a marker in the
   owner's colour. Includes the week / month calendar.
   Fonts (self-hosted, SIL Open Font License): Caveat (headings), Patrick Hand
   (handwriting), Nunito (small print). */
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url("/fonts/caveat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Patrick Hand"; font-weight: 400; font-display: swap; src: url("/fonts/patrick-hand-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("/fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("/fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("/fonts/nunito-latin-800-normal.woff2") format("woff2"); }

:root {
  --acc: #ffd43b;          /* each person's own colour (set by the app) */
  --on-acc: #1d1a2c;
  --desk: #d9cfbf;
  --paper: #fffdf6;
  --paper-2: #fbf7ec;
  --rule: #cfe0f1;
  --margin: #f3a3b0;
  --ink: #2f3b5c;          /* blue-black pen */
  --ink-2: #5d6782;
  --pencil: #8b8a86;
  --line: #e8e0cf;
  /* traffic-light priorities */
  --urgent: #b42318; --high: #e5484d; --normal: #f5c518; --low: #2fb35a;
  --red-pen: #d23b3b;
  --green-pen: #1f8a4c;
  --hand: "Patrick Hand", "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  --display: "Caveat", "Patrick Hand", cursive;
  --font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --line-h: 34px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  color: var(--ink); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased;
  background-color: var(--desk);
  background-image:
    radial-gradient(120% 80% at 20% 0%, #e7dfd1 0, transparent 60%),
    repeating-linear-gradient(97deg, #0000 0 18px, #00000006 18px 19px, #0000 19px 41px);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #8ec5ff; outline-offset: 2px; }
svg.i { width: 18px; height: 18px; flex: none; display: block; }
i[data-icon] { display: inline-flex; vertical-align: -3px; margin-right: 6px; }
i[data-icon] svg.i { width: 16px; height: 16px; }
.badge { display: none; }
.ava { display: block; flex: none; }

/* ---------- buttons & fields ---------- */
.btn { border: 2px solid var(--ink); background: #fff; border-radius: 10px 12px 9px 13px; padding: 7px 15px; font: 400 17px/1.2 var(--hand); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: transform .1s; }
.btn:hover { transform: rotate(-1deg) translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.block { width: 100%; }
.btn.small { padding: 4px 11px; font-size: 15px; }
.btn.danger { color: var(--red-pen); border-color: var(--red-pen); }
.btn.primary.danger { background: var(--red-pen); color: #fff; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.linkbtn { border: 0; background: none; padding: 4px 6px; color: var(--ink-2); font: 400 17px var(--hand); border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; }
.linkbtn:hover { color: var(--ink); background: #ffe9734d; }
.iconbtn { border: 0; background: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--ink); }
.iconbtn:hover { background: #2f3b5c12; }
.field { display: grid; gap: 4px; margin-bottom: 14px; min-width: 0; }
.field label { font: 700 22px/1 var(--display); color: var(--ink-2); }
.field input, .field textarea, .field select, select, .search, .props select, .props input {
  width: 100%; border: 0; border-bottom: 2px solid #2f3b5c33; border-radius: 0; padding: 6px 2px; background: transparent; color: var(--ink); outline: none; font: 400 18px var(--hand);
}
select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 22px; }
.field input:focus, .field textarea:focus, .field select:focus, .props select:focus, .props input:focus { border-bottom-color: var(--ink); }
.field textarea { resize: vertical; min-height: 84px; line-height: var(--line-h); background: repeating-linear-gradient(transparent 0 33px, var(--rule) 33px 34px); padding-top: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.hint { color: var(--ink-2); font-size: 13px; margin: 0 0 14px; }
.formerror { color: var(--red-pen); background: #ffe3e3; border-left: 4px solid var(--red-pen); padding: 8px 12px; font: 400 17px var(--hand); margin-bottom: 12px; }
.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; }
.brandmark { width: 36px; height: 36px; border-radius: 4px; background: var(--acc); color: var(--on-acc); display: grid; place-items: center; font: 700 26px/1 var(--display); transform: rotate(-5deg); box-shadow: 1px 2px 3px #0002; }
.brandname { font: 700 30px/1 var(--display); }
.brandname span { color: var(--red-pen); }

/* ---------- auth ---------- */
.loading { padding: 80px 20px; text-align: center; font: 700 30px var(--display); }
.authwrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.authcard {
  position: relative; width: min(460px, 100%); padding: 30px 28px 26px 52px; border-radius: 6px;
  background: var(--paper) repeating-linear-gradient(transparent 0 33px, var(--rule) 33px 34px);
  box-shadow: 0 1px 1px #0001, 0 14px 40px #0003;
}
.authcard::before { content: ""; position: absolute; top: 0; bottom: 0; left: 36px; width: 2px; background: var(--margin); }
.authart { display: flex; justify-content: center; margin: 10px 0 0; }
.authart .illus { width: 210px; }
.authcard .tagline { text-align: center; margin: 4px 0 16px; font: 700 26px var(--display); }
.tabs { display: flex; gap: 4px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { flex: 1; border: 0; border-bottom: 3px solid transparent; background: transparent; padding: 6px; color: var(--ink-2); font: 400 17px var(--hand); white-space: nowrap; }
.tabs button.active { color: var(--ink); background: linear-gradient(transparent 55%, #ffe14d99 55% 90%, transparent 90%); }

/* ---------- the open notebook ---------- */
.app { display: grid; grid-template-columns: 290px minmax(0, 1fr); max-width: 1380px; margin: 18px auto; min-height: calc(100vh - 36px); filter: drop-shadow(0 18px 30px #0000003a); }
/* left page: contents */
.sidebar {
  background: var(--paper-2); border-radius: 10px 0 0 10px; padding: 24px 22px 16px 20px;
  display: flex; flex-direction: column; gap: 10px; position: sticky; top: 18px; height: calc(100vh - 36px); overflow-y: auto;
  background-image: linear-gradient(to left, #0000001c, transparent 26px);
}
.sidebar .brand { padding: 0 4px 4px; }
.newtask { margin: 4px 0 6px; font-size: 19px; padding: 8px 16px; transform: rotate(-1deg); }
.nav { display: grid; gap: 0; }
.nav button {
  border: 0; color: var(--ink); padding: 3px 4px; text-align: left; display: flex; gap: 8px; align-items: center; font: 400 19px/1.3 var(--hand); width: 100%;
  background: radial-gradient(circle, #b9ae98 1px, transparent 1.4px) 0 calc(100% - 9px) / 7px 7px repeat-x;
}
.nav .ico, .nav .lbl, .nav .count, .nav .projdot { background: var(--paper-2); position: relative; z-index: 1; }
.nav .ico { width: 24px; height: 24px; display: grid; place-items: center; color: var(--ink-2); flex: none; }
.nav .ico svg.i { width: 17px; height: 17px; }
.nav .lbl { flex: none; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 6px; }
.nav .count { margin-left: auto; padding-left: 6px; font: 700 20px/1 var(--display); color: var(--ink-2); min-width: 10px; text-align: right; }
.nav .count:empty { padding: 0; }
.nav .count.accent:not(:empty) { color: var(--red-pen); }
.nav button:hover .lbl { color: #000; }
.nav button.active .lbl { background: linear-gradient(100deg, transparent 2%, var(--acc) 3% 96%, transparent 97%) 0 62% / 100% 62% no-repeat, var(--paper-2); }
.navlabel { font: 700 24px/1 var(--display); color: var(--red-pen); padding: 14px 4px 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navlabel-row { display: flex; justify-content: space-between; align-items: center; }
.navlabel-row .linkbtn { font-size: 22px; padding: 0 6px; }
.projdot { width: 24px; height: 24px; display: grid; place-items: center; flex: none; }
.projdot::before { content: "#"; font: 700 20px var(--display); color: var(--pencil); }
.sidefoot { margin-top: auto; display: grid; gap: 2px; border-top: 2px solid var(--line); padding-top: 10px; }
.sidefoot > .linkbtn { justify-content: flex-start; }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 2px 0; }
.avatar { width: 36px; height: 36px; flex: none; display: grid; place-items: center; }
.meinfo { flex: 1; min-width: 0; line-height: 1.1; }
.meinfo b { display: block; font: 400 19px var(--hand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meinfo small { color: var(--pencil); font-size: 12px; }
.scrim { display: none; }

/* right page: ruled paper with a red margin, spiral binding on its left edge */
.main {
  position: relative; min-width: 0; border-radius: 0 10px 10px 0; padding: 26px clamp(18px, 4vw, 52px) 70px 104px;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, #00000022, transparent 30px),
    linear-gradient(to right, transparent 82px, var(--margin) 82px 84px, transparent 84px);
}
.main::before {
  content: ""; position: absolute; left: -15px; top: 14px; bottom: 14px; width: 30px; z-index: 3; pointer-events: none;
  background:
    radial-gradient(circle at 5px 13px, #3d362c 0 3.6px, transparent 4.2px) 0 0 / 30px 26px repeat-y,
    radial-gradient(circle at 25px 13px, #3d362c 0 3.6px, transparent 4.2px) 0 0 / 30px 26px repeat-y,
    linear-gradient(to bottom, transparent 9px, #8f877a 9px, #e8e2d6 12px, #a39a8b 15px, transparent 16px) 0 0 / 30px 26px repeat-y;
}
.topbar { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.menubtn { display: none; }
.titles { flex: 1; min-width: 230px; }
.eyebrow { font: 400 16px var(--hand); color: var(--pencil); }
.titles h1 { font: 700 52px/1 var(--display); margin: 0; display: flex; align-items: center; gap: 10px; }
.titles h1 > span:last-child { background: linear-gradient(100deg, transparent 1%, var(--acc) 2% 97%, transparent 98%) 0 78% / 100% 34% no-repeat; padding: 0 6px; }
.titles .sub { margin: 4px 0 0; color: var(--ink-2); font: 400 17px var(--hand); }
.tools { display: flex; gap: 10px; flex-wrap: wrap; }
.tools .search, .tools select { width: auto; font-size: 17px; padding: 4px 2px; }
.tools .search { width: 160px; padding-left: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6782' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 20 20'/%3E%3C/svg%3E") 2px 50% / 17px no-repeat; }

/* sticky-note stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 14px 0 26px; }
.stat { position: relative; border: 0; padding: 16px 12px 10px; text-align: left; font: 400 17px/1.15 var(--hand); color: #4b3f1e; box-shadow: 0 2px 2px #0001, 0 8px 14px -6px #0003; display: block; }
/* scotch tape: matte, slightly darker and see-through, with faint edges */
.stat::before { content: ""; position: absolute; top: -10px; left: 50%; width: 56px; height: 20px; margin-left: -28px;
  background: linear-gradient(180deg, #d8ccb0b3, #cbbd9cb3); box-shadow: 0 0 0 1px #8a7a5a26, 0 1px 2px #0000001a; transform: rotate(-4deg); }
.stat b { display: block; font: 700 40px/1 var(--display); }
.stat:nth-child(1) { background: #ffb8c6; transform: rotate(-2deg); }
.stat:nth-child(2) { background: #ffe873; transform: rotate(1.5deg); }
.stat:nth-child(3) { background: #a8d8ff; transform: rotate(-1deg); }
.stat:nth-child(4) { background: #b5ecc2; transform: rotate(2deg); }
button.stat:hover { transform: rotate(0) translateY(-3px); }

/* ---------- quick add (writing on the next line) ---------- */
.page { display: block; }
.quickadd { position: relative; display: flex; align-items: center; gap: 10px; height: calc(var(--line-h) * 1.5); margin-left: -76px; padding-left: 20px; }
.qa-plus { width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink); flex: none; margin-right: 30px; }
.qa-plus svg.i { width: 22px; height: 22px; stroke-width: 2.4; }
.quickadd input { flex: 1; border: 0; outline: none; padding: 2px 0; font: 400 22px var(--hand); background: transparent; color: var(--ink); min-width: 0; }
.quickadd input::placeholder { color: #a9a8b7; }
.qa-where { white-space: nowrap; border: 1.5px dashed #2f3b5c55; background: #fff; border-radius: 999px; padding: 2px 10px; display: inline-flex; align-items: center; gap: 5px; font: 400 15px var(--hand); color: var(--ink-2); }
.qa-where svg.i { width: 15px; height: 15px; }
.qa-where:hover { border-style: solid; color: var(--ink); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 6px; font: 400 15px var(--hand); color: var(--ink-2); }
.legend .lg { display: inline-flex; align-items: center; gap: 5px; }
.legend .lg::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.legend .p-urgent::before { display: none; }
.legend .p-high::before { background: var(--high); }
.legend .p-normal::before { background: var(--normal); }
.legend .p-low::before { background: var(--low); }

/* ---------- task lines ---------- */
.group { margin-top: 6px; }
.grouphead { display: flex; align-items: baseline; gap: 8px; font: 700 30px/1.2 var(--display); color: var(--ink); padding: 8px 0 0; }
.grouphead small { font: 400 16px var(--hand); color: var(--pencil); }
.grouphead.overdue { color: var(--red-pen); }
.task { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: calc(var(--line-h) * 2); padding: 7px 0 6px; margin-left: -84px; }
.margin { width: 72px; flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 3px 12px 0 0; }
.check {
  position: relative; width: 22px; height: 22px; padding: 0; flex: none; background: #fff;
  border: 2px solid var(--ink); border-radius: 3px 6px 4px 5px; color: var(--ink);
}
.check .tick { position: absolute; width: 26px; height: 26px; left: -1px; top: -9px; opacity: 0; }
.check:hover .tick { opacity: .25; }
.check.done .tick { opacity: 1; }
.task.fresh .check.done .tick, .ev.fresh .evcheck.done .tick { animation: draw .35s ease-out; }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.pdot { width: 11px; height: 11px; border-radius: 50%; flex: none; background: var(--normal); font-size: 13px; line-height: 11px; text-align: center; }
.task.p-urgent .pdot { background: none; width: 16px; }
.task.p-high .pdot { background: var(--high); }
.task.p-low .pdot { background: var(--low); }
.taskbody { flex: 1; min-width: 0; cursor: pointer; padding-top: 1px; }
.tasktitle { font: 400 21px/1.25 var(--hand); color: var(--ink); overflow-wrap: anywhere; }
/* the marker highlight on finished tasks (owner's colour) */
.task.is-done .txt, .ev.is-done .txt, .mev.is-done .txt {
  background-image: linear-gradient(100deg, transparent 0.5%, var(--hl, #ffe14d) 1.5% 98%, transparent 99.5%);
  background-repeat: no-repeat; background-size: 100% 78%; background-position: 0 62%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 5px; margin: 0 -5px; border-radius: 4px 9px 5px 10px;
}
.task.fresh.is-done .txt, .ev.fresh.is-done .txt { animation: marker .55s ease-out both; }
@keyframes marker { from { background-size: 0% 78%; } to { background-size: 100% 78%; } }
.task.is-cancelled .txt { text-decoration: line-through; color: var(--pencil); }
.meta { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--pencil); }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.meta svg.i { width: 13px; height: 13px; stroke-width: 2.2; }
.meta .overdue { color: var(--red-pen); font-weight: 800; }
.meta .today { color: var(--green-pen); font-weight: 800; }
.meta .review { color: #7b5ea7; font-weight: 800; }
.meta .personal { color: var(--ink-2); }
.status { font: 400 14px var(--hand); border: 1.5px solid currentColor; border-radius: 8px 10px 7px 11px; padding: 0 7px; color: var(--ink-2); }
.status.in_progress { color: #2b6cb0; } .status.waiting { color: #b7791f; } .status.ready_for_review { color: #7b5ea7; }
.side { flex: none; display: flex; align-items: center; gap: 8px; padding-top: 2px; }
.owner { display: grid; padding: 2px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px #0003; transform: rotate(-6deg); }
.claim { border: 0; background: #ffe873; color: #4b3f1e; padding: 6px 12px 7px; font: 400 17px var(--hand); transform: rotate(3deg); box-shadow: 0 2px 2px #0001, 0 6px 10px -4px #0003; }
.claim:hover { transform: rotate(0) translateY(-1px); }
.empty { padding: 26px 12px 20px; text-align: center; color: var(--ink-2); font: 400 18px var(--hand); }
.empty .illus { width: 200px; display: block; margin: 0 auto 10px; }
.empty b { display: block; color: var(--ink); font: 700 32px/1.1 var(--display); }
.completed { margin-top: 10px; }
.completedtoggle { border: 0; background: none; color: var(--ink); font: 700 26px var(--display); padding: 4px 0; display: inline-flex; align-items: center; gap: 8px; }
.completedtoggle .chev { transition: transform .15s; display: inline-block; font-family: var(--font); font-size: 18px; color: var(--pencil); }
.completedtoggle.open .chev { transform: rotate(90deg); }
.syncnote { color: var(--pencil); font: 400 15px var(--hand); text-align: center; margin-top: 30px; }
.fab { display: none; }

/* ---------- calendar ---------- */
.calbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.calnav { display: flex; align-items: center; gap: 8px; }
.calnav b { font: 700 28px/1 var(--display); min-width: 170px; text-align: center; }
.calmode { display: flex; gap: 4px; }
.calmode button { border: 0; background: none; padding: 4px 10px; font: 400 19px var(--hand); color: var(--ink-2); }
.calmode button.on { color: var(--ink); background: linear-gradient(100deg, transparent 2%, var(--acc) 3% 96%, transparent 97%) 0 65% / 100% 60% no-repeat; }
.people { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.person { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--pc, #eee); border-radius: 999px; padding: 3px 12px 3px 3px; font: 400 17px var(--hand); color: var(--ink); box-shadow: 0 1px 2px #0002; }
.person small { font: 800 12px var(--font); background: #ffffffb3; border-radius: 999px; padding: 1px 7px; }
.person.off { opacity: .4; filter: grayscale(1); box-shadow: none; }
.person .nobody { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px dashed var(--pencil); font: 800 13px var(--font); color: var(--pencil); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 2px solid var(--ink); margin-left: -20px; }
.day { min-height: 300px; border-right: 1.5px dashed #2f3b5c33; padding: 6px 5px 10px; background: #fffdf6cc; }
.day:last-child { border-right: 0; }
.day.past { background: #f6f1e4cc; }
.day header { display: flex; align-items: baseline; gap: 5px; padding: 0 2px 6px; position: relative; }
.day .dow { font: 400 16px var(--hand); color: var(--ink-2); }
.day .dnum { font: 700 30px/1 var(--display); position: relative; }
.day.today .dnum::after { content: ""; position: absolute; inset: -4px -8px -4px -8px; border: 2.5px solid var(--red-pen); border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%; transform: rotate(-6deg); }
.day header small { font-size: 11px; font-weight: 800; color: var(--pencil); }
.dayadd { margin-left: auto; border: 0; background: none; width: 26px; height: 26px; border-radius: 50%; color: var(--ink-2); font-size: 16px; line-height: 1; opacity: .35; }
.day:hover .dayadd, .dayadd:focus-visible { opacity: 1; background: #2f3b5c12; }
.evs { display: grid; gap: 6px; }
.ev { position: relative; display: flex; gap: 6px; align-items: flex-start; background: var(--pc, #eee); border-radius: 3px 8px 6px 4px; padding: 6px 6px 6px 5px; border-left: 4px solid var(--normal); box-shadow: 0 1px 1px #0001; }
.ev.p-urgent { border-left-color: var(--urgent); } .ev.p-high { border-left-color: var(--high); } .ev.p-low { border-left-color: var(--low); }
.ev.unclaimed { background: #fff; outline: 1.5px dashed #2f3b5c40; outline-offset: -1.5px; }
.ev.is-done { background: #fff; }
.evcheck { position: relative; flex: none; width: 16px; height: 16px; margin-top: 2px; padding: 0; background: #fff; border: 1.5px solid var(--ink); border-radius: 2px 4px 3px 4px; color: var(--ink); }
.evcheck .tick { position: absolute; width: 20px; height: 20px; left: -2px; top: -7px; opacity: 0; }
.evcheck.done .tick { opacity: 1; }
.evbody { flex: 1; min-width: 0; border: 0; background: none; padding: 0; text-align: left; display: grid; gap: 3px; }
.evbody .txt { font: 400 16px/1.2 var(--hand); color: var(--ink); overflow-wrap: anywhere; }
.evmeta { display: flex; align-items: center; gap: 4px; color: var(--ink-2); }
.evmeta svg.i { width: 12px; height: 12px; }
.evmeta em { font: 400 13px var(--hand); color: var(--pencil); }
.free { font: 400 15px var(--hand); color: #b6b2a6; text-align: center; padding: 10px 0; }
.month { margin-left: -20px; }
.mhead, .mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mhead span { font: 400 16px var(--hand); color: var(--ink-2); padding: 0 6px 4px; border-bottom: 2px solid var(--ink); }
.mday { min-height: 104px; border-right: 1.5px dashed #2f3b5c26; border-bottom: 1.5px dashed #2f3b5c26; padding: 4px; display: grid; align-content: start; gap: 3px; background: #fffdf6cc; }
.mday:nth-child(7n) { border-right: 0; }
.mday.other { background: #f3eee2b3; }
.mday.other .mnum { color: #b6b2a6; }
.mnum { justify-self: start; border: 0; background: none; padding: 0 4px; font: 700 24px/1 var(--display); color: var(--ink); position: relative; }
.mday.today .mnum::after { content: ""; position: absolute; inset: -3px -5px; border: 2.5px solid var(--red-pen); border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%; }
.mev { border: 0; background: var(--pc, #eee); border-left: 3px solid var(--normal); border-radius: 2px 5px 4px 2px; padding: 1px 5px; text-align: left; font: 400 14px/1.25 var(--hand); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mev.p-urgent { border-left-color: var(--urgent); } .mev.p-high { border-left-color: var(--high); } .mev.p-low { border-left-color: var(--low); }
.mev.is-done { background: #fff; }
.more { justify-self: start; border: 0; background: none; padding: 0 4px; font: 400 14px var(--hand); color: var(--ink-2); text-decoration: underline; }
.calnote { margin: 14px 0 0; font: 400 16px var(--hand); color: var(--ink-2); }

/* ---------- modals: an index card ---------- */
.modalback, .drawerback { position: fixed; inset: 0; background: #3b33264d; display: none; z-index: 30; }
.modalback.show { display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal {
  position: relative; width: min(560px, 100%); padding: 26px 26px 22px; border-radius: 4px; max-height: calc(100vh - 32px); overflow: auto;
  background: #fff linear-gradient(to bottom, transparent 54px, #f3a3b0 54px 56px, transparent 56px);
  box-shadow: 0 2px 2px #0001, 0 20px 50px #0004;
}
.modal.small { width: min(420px, 100%); }
#askBack { z-index: 45; }
.modal h2 { margin: -4px 0 18px; font: 700 34px/1 var(--display); }
.segmented { display: flex; gap: 10px; margin-bottom: 14px; }
.segmented label { flex: 1; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: flex; align-items: center; justify-content: center; padding: 6px; font: 400 18px var(--hand); color: var(--ink-2); cursor: pointer; border-bottom: 2px solid var(--line); }
.segmented input:checked + span { color: var(--ink); border-bottom-color: transparent; background: linear-gradient(100deg, transparent 2%, var(--acc) 3% 96%, transparent 97%) 0 65% / 100% 60% no-repeat; }
.segmented input:focus-visible + span { outline: 3px solid #8ec5ff; }
.codebox { font: 800 20px/1.3 ui-monospace, Menlo, monospace; letter-spacing: 1px; background: #fff8c4; color: var(--ink); padding: 14px; text-align: center; margin: 8px 0 12px; user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; transform: rotate(-1deg); box-shadow: 0 6px 12px -6px #0004; }
h3.section { font: 700 26px/1 var(--display); margin: 22px 0 8px; }
.invlist { display: grid; gap: 8px; }
.invrow { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-bottom: 1.5px dashed var(--line); padding: 6px 2px; font-size: 13px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }
.swatch { width: 48px; height: 48px; border-radius: 50%; border: 3px solid transparent; background: none; padding: 3px; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; }
.swatch.on { border-color: var(--ink); }

/* ---------- drawer: a yellow legal pad ---------- */
.drawerback.show { display: block; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(540px, 100%); overflow-y: auto; padding: 22px 26px 36px 62px; animation: slidein .22s ease-out; color: var(--ink);
  background-color: #fff6c2;
  background-image: linear-gradient(to right, transparent 44px, #e8909c 44px 45.5px, transparent 45.5px 48px, #e8909c 48px 49.5px, transparent 49.5px), repeating-linear-gradient(transparent 0 33px, #c3d6e6 33px 34px);
  box-shadow: -10px 0 40px #0004;
}
@keyframes slidein { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawerhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drawerhead .where { display: inline-flex; align-items: center; gap: 6px; font: 400 16px var(--hand); color: var(--ink-2); }
.drawerhead .where svg.i { width: 15px; height: 15px; }
.titlerow { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 2px -40px; }
.titlerow .check { margin-top: 10px; }
.titleinput { flex: 1; min-height: 40px; border: 0; outline: none; font: 700 36px/1.05 var(--display); padding: 2px 0; resize: none; min-width: 0; background: transparent; color: var(--ink); }
.titleinput:focus { background: #ffffff80; }
.descinput { width: 100%; border: 0; outline: none; resize: vertical; min-height: 68px; color: var(--ink); padding: 0; font: 400 19px/34px var(--hand); background: transparent; }
.props { display: grid; grid-template-columns: 120px 1fr; gap: 4px 12px; align-items: center; margin: 12px 0 6px; }
.props > label, .props > .k { font: 700 22px var(--display); color: var(--ink-2); }
.props select, .props input { font-size: 18px; padding: 3px 22px 3px 2px; }
.props .v { font: 400 18px var(--hand); }
.ownerrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ownerrow select { flex: 1; min-width: 130px; width: auto; }
.drawer .actions { justify-content: flex-start; margin: 16px 0 8px; }
.reviewbanner { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 400 17px var(--hand); background: #ffffff8c; padding: 6px 10px; margin: 6px 0; border-left: 4px solid #7b5ea7; }
.feed { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.feed li { font: 400 16px var(--hand); color: var(--ink-2); }
.feed li::before { content: "– "; }
.feed li b { color: var(--ink); font-weight: 400; }
.feed time { margin-left: 6px; color: var(--pencil); font: 600 11px var(--font); }
.comment { display: flex; gap: 10px; align-items: flex-start; }
.comment > div { flex: 1; background: #fff; padding: 6px 10px; min-width: 0; transform: rotate(-.4deg); box-shadow: 0 2px 4px #0002; }
.comment b { font: 400 17px var(--hand); }
.comment time { color: var(--pencil); font: 600 11px var(--font); margin-left: 6px; }
.comment p { margin: 0; font: 400 18px/1.3 var(--hand); white-space: pre-wrap; overflow-wrap: anywhere; }
.commentform { display: flex; gap: 8px; margin-top: 10px; }
.commentform input { flex: 1; border: 0; border-bottom: 2px solid #2f3b5c40; padding: 6px 2px; min-width: 0; outline: none; background: transparent; font: 400 18px var(--hand); color: var(--ink); }

/* ---------- toast: a sticky note ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) rotate(-2deg); background: #ffe873; color: #4b3f1e; box-shadow: 0 2px 2px #0001, 0 12px 20px -6px #0005; padding: 12px 12px 12px 16px; font: 400 21px/1.1 var(--hand); z-index: 50; max-width: calc(100vw - 32px); display: flex; align-items: center; gap: 12px; animation: drop .25s ease-out; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -10px) rotate(-6deg); } }
.toast.error { background: #ffb8c6; color: #6b1d2a; }
.toast .linkbtn { color: inherit; text-decoration: underline; font-size: 18px; }

/* ---------- phones & small tablets ---------- */
@media (max-width: 900px) {
  input, select, textarea { font-size: 16px; }
  .app { display: block; margin: 0; min-height: 100vh; filter: none; }
  .sidebar { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; height: auto; width: 290px; border-radius: 0 10px 10px 0; transform: translateX(-110%); transition: transform .22s; padding-top: calc(20px + env(safe-area-inset-top)); box-shadow: 10px 0 30px #0004; }
  .app.menu-open .sidebar { transform: none; }
  .app.menu-open .scrim { display: block; position: fixed; inset: 0; background: #3b33264d; z-index: 35; }
  .menubtn { display: grid; margin-left: -6px; }
  .main {
    border-radius: 0; min-height: 100vh; padding: calc(62px + env(safe-area-inset-top)) 14px 120px 58px;
    background-image:
      linear-gradient(to right, transparent 44px, var(--margin) 44px 46px, transparent 46px);
  }
  .main::before {
    left: 10px; right: 10px; top: calc(4px + env(safe-area-inset-top)); bottom: auto; width: auto; height: 26px;
    background:
      radial-gradient(circle at 13px 21px, #3d362c 0 3.4px, transparent 4px) 0 0 / 26px 26px repeat-x,
      linear-gradient(to right, transparent 9px, #8f877a 9px, #e8e2d6 12px, #a39a8b 15px, transparent 16px) 0 0 / 26px 19px repeat-x;
  }
  .topbar { align-items: flex-start; gap: 10px; }
  .menubtn { position: absolute; left: 4px; top: calc(58px + env(safe-area-inset-top)); }
  .tools { margin-left: -44px; width: calc(100% + 44px) !important; }
  .titles h1 { font-size: 42px; }
  .tools { width: 100%; }
  .tools .search { flex: 1 1 100%; width: auto; }
  .tools select { flex: 1; }
  .stats { grid-template-columns: 1fr 1fr; gap: 14px; margin-left: -40px; }
  .quickadd { margin-left: -56px; padding-left: 8px; }
  .qa-plus { margin-right: 14px; }
  .task { margin-left: -58px; }
  .margin { width: 50px; padding-right: 8px; gap: 5px; flex-direction: column-reverse; align-items: flex-end; }
  .legend, .grouphead, .completed, .empty, .calnote { margin-left: -40px; }
  .calbar, .people { margin-left: -44px; }
  .week { grid-template-columns: 1fr; margin-left: -58px; margin-right: -14px; }
  .day { min-height: 0; border-right: 0; border-bottom: 1.5px dashed #2f3b5c33; display: grid; grid-template-columns: 58px 1fr; gap: 8px; padding: 8px 14px 8px 4px; }
  .day header { flex-direction: column; align-items: center; gap: 0; padding: 0; }
  .day header small { display: none; }
  .dayadd { margin: 4px 0 0; opacity: .7; }
  .free { text-align: left; padding: 6px 0; }
  .month { margin-left: -58px; margin-right: -14px; }
  .mday { min-height: 64px; padding: 2px; }
  .mev { font-size: 0; height: 8px; padding: 0; border-left-width: 0; border-radius: 4px; }
  .mev .txt { display: none; }
  .mnum { font-size: 20px; }
  .fab { display: grid; place-items: center; position: fixed; right: 18px; bottom: calc(22px + env(safe-area-inset-bottom)); width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; box-shadow: 0 8px 18px #0005; z-index: 20; }
  .fab svg.i { width: 28px; height: 28px; stroke-width: 2.6; }
  .row3 { grid-template-columns: 1fr 1fr; }
  .drawer { width: 100%; padding: calc(16px + env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom)) 58px; background-image: linear-gradient(to right, transparent 40px, #e8909c 40px 41.5px, transparent 41.5px 44px, #e8909c 44px 45.5px, transparent 45.5px), repeating-linear-gradient(transparent 0 33px, #c3d6e6 33px 34px); }
  .titlerow { margin-left: -36px; }
  .props { grid-template-columns: 100px 1fr; }
  .qa-where span { display: none; }
}
@media (max-width: 480px) {
  .row2, .row3 { grid-template-columns: 1fr; }
  .modal { padding: 22px 18px 18px; }
  .meta .status { display: none; }
  .tasktitle { font-size: 20px; }
  .calnav b { min-width: 0; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* style picker */
.stylecards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stylecard { border: 0; background: #fff; padding: 10px; text-align: left; display: grid; gap: 4px; color: var(--ink); box-shadow: 0 1px 2px #0002, 0 6px 12px -6px #0003; transform: rotate(-1deg); }
.stylecard:nth-child(2) { transform: rotate(1deg); }
.stylecard.on { outline: 3px solid var(--ink); outline-offset: 2px; }
.stylecard b { font: 700 24px/1 var(--display); }
.stylecard small { color: var(--ink-2); font: 400 14px/1.25 var(--hand); }
.sc-prev { display: grid; gap: 4px; padding: 8px; height: 64px; align-content: center; }
.sc-prev i { display: block; height: 10px; border-radius: 3px; }
.sc-notebook { background: #fffdf6 repeating-linear-gradient(transparent 0 13px, #cfe0f1 13px 14px); border-left: 3px solid #f3a3b0; }
.sc-notebook i { background: #2f3b5c33; width: 70%; height: 6px; }
.sc-notebook i:first-child { background: #ffe14d; }
.sc-tickets { background: #262338; border-radius: 4px; }
.sc-tickets i:nth-child(1) { background: #ffd3cc; } .sc-tickets i:nth-child(2) { background: #fff0b8; } .sc-tickets i:nth-child(3) { background: #d6f2dc; }
.tornpiece { display: none; }


/* ===================== Writing on the lines =====================
   The list area is ruled paper. Every line of writing is exactly one ruled
   line tall (--line-h) and each font is nudged so its baseline sits on the
   rule, the way handwriting sits on a real notebook line. Measured baselines
   (34px line box): Patrick Hand 20-22px ≈ 24-25px, Caveat 26-30px ≈ 25-27px,
   Nunito 12.5px ≈ 21px. The rule is drawn at 26px. */
:root { --line-h: 34px; --rule-y: 26px; }
.page {
  position: relative;
  background-image: repeating-linear-gradient(to bottom,
    transparent 0 var(--rule-y), var(--rule) var(--rule-y) calc(var(--rule-y) + 1px), transparent calc(var(--rule-y) + 1px) var(--line-h));
  margin-left: -104px; margin-right: calc(-1 * clamp(18px, 4vw, 52px)); padding: 0 clamp(18px, 4vw, 52px) var(--line-h) 104px;
}
.page.nolines { background-image: none; }
.stats { margin-bottom: var(--line-h); }

.quickadd { height: var(--line-h); margin: 0 0 0 -76px; }
.quickadd input { height: var(--line-h); line-height: var(--line-h); font-size: 22px; padding: 0; }
.qa-plus { height: var(--line-h); }
.qa-where { position: relative; top: -2px; }
.legend { height: var(--line-h); line-height: var(--line-h); margin: 0; align-items: center; overflow: hidden; }
.legend .lg { line-height: var(--line-h); position: relative; top: 1px; }

.group { margin: 0; padding-top: var(--line-h); }          /* one blank line above each heading */
.group:first-child { padding-top: 0; }
.grouphead { height: var(--line-h); line-height: var(--line-h); padding: 0; font-size: 30px; position: relative; top: -1px; }

.task { min-height: var(--line-h); padding: 0; margin-top: 0; margin-bottom: 0; align-items: flex-start; }
.taskbody { padding: 0; }
.tasktitle { font-size: 21px; line-height: var(--line-h); }
.task.is-done .txt, .task.fresh.is-done .txt { background-position: 0 70%; background-size: 100% 62%; }
.task.fresh.is-done .txt { animation-name: marker-lines; }
@keyframes marker-lines { from { background-size: 0% 62%; } to { background-size: 100% 62%; } }
.meta { height: var(--line-h); line-height: var(--line-h); margin: 0; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; position: relative; top: 3px; }
.meta .status { line-height: 1.2; }
.margin { height: var(--line-h); padding: 0 12px 0 0; align-items: center; }
.margin .check { position: relative; top: 1px; }
.side { height: var(--line-h); padding: 0; align-items: center; }
.owner, .claim { position: relative; top: 1px; }
.claim { padding: 2px 12px 3px; }
.side .ava { width: 30px; height: 30px; }

.completed { margin: 0; padding-top: var(--line-h); }
.completedtoggle { height: var(--line-h); line-height: var(--line-h); padding: 0; font-size: 26px; }
.empty { padding: 0 12px; line-height: var(--line-h); }
.empty .illus { height: calc(var(--line-h) * 5); width: auto; margin: 0 auto; }
.empty b { line-height: calc(var(--line-h) * 2); }
.syncnote { line-height: var(--line-h); margin: var(--line-h) 0 0; }

@media (max-width: 900px) {
  .page { margin-left: -58px; margin-right: -14px; padding: 0 14px var(--line-h) 58px; }
  .quickadd { margin-left: -56px; }
  .margin { flex-direction: row; align-items: center; width: 50px; padding-right: 6px; gap: 4px; }
  .margin .pdot { width: 9px; height: 9px; }
  .task.p-urgent .margin .pdot { width: 14px; }
  .legend, .grouphead, .completed, .empty, .calnote { margin-left: 0; }
}

/* picture picker */
.avpick { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.avnow .ava { width: 64px; height: 64px; }
.photobtn { cursor: pointer; }
.avchoices { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.avopt { border: 0; background: none; padding: 2px; border-radius: 50%; display: grid; place-items: center; }
.avopt.on { outline: 3px solid var(--ink); outline-offset: 1px; }
.avopt:hover { transform: scale(1.08); }

/* face builder */
.pickhint { margin: 10px 0 6px; }
.facebuilder { margin: 10px 0 4px; }
.facebuilder summary { cursor: pointer; font-weight: 800; padding: 6px 0; }
.facehair { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.fchoice { display: grid; justify-items: center; gap: 2px; }
.fchoice small { font-size: 11px; color: var(--ink-2); }
.dots { display: flex; flex-wrap: wrap; gap: 8px; }
.dot { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; background: var(--pc, #ccc); box-shadow: 0 0 0 1.5px #0002; padding: 0; }
.dot.on { box-shadow: 0 0 0 3px var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chipbtn { border: 1.5px solid #0002; background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; color: var(--ink); }
.chipbtn.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- 🔔 updates corner & new-version note ---------- */
.corner { position: fixed; top: 16px; right: 18px; z-index: 26; display: flex; align-items: center; gap: 8px; }
.bell { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; padding: 0; cursor: pointer; }
.bell b { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #e5484d; color: #fff; font: 800 11px/20px var(--font); text-align: center; border: 2px solid #fff; }
.newver { border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 13px; cursor: pointer; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.updpanel { position: absolute; top: 52px; right: 0; width: min(380px, calc(100vw - 24px)); max-height: min(70vh, 560px); overflow: auto; border-radius: 14px; padding: 6px 6px 10px; box-shadow: 0 18px 50px #0005; }
.updhead { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 4px 10px; }
.updhead b { font-size: 16px; }
.updlist { display: grid; gap: 2px; }
.upd { display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 10px; width: 100%; color: inherit; font-size: 14px; line-height: 1.35; cursor: pointer; position: relative; }
.upd > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.upd small { display: block; font-size: 12px; opacity: .65; margin-top: 2px; }
.upd q { font-style: italic; opacity: .85; }
.upd.new::after { content: ""; position: absolute; right: 10px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; }
.upd.forme small { opacity: 1; font-weight: 800; }
@media (max-width: 900px) { .corner { top: calc(10px + env(safe-area-inset-top)); right: 12px; } }

.bell { background: #fff; border: 2px solid var(--ink); box-shadow: 0 2px 4px #0002; }
.newver { background: #ffe873; color: #4b3f1e; font-family: var(--hand); font-size: 16px; transform: rotate(-1deg); box-shadow: 0 6px 12px -6px #0004; }
.updpanel { background: #fffdf6 repeating-linear-gradient(transparent 0 33px, #cfe0f1 33px 34px); color: var(--ink); border-radius: 6px; }
.updhead b { font: 700 26px var(--display); }
.upd { font-family: var(--hand); font-size: 17px; }
.upd:hover { background: #ffe9734d; }
.upd.forme { background: #fff6c4; }
.titles { padding-right: 60px; }

/* app icon: notepad with a push pin (replaces the old yellow "S") */
img.brandmark { width: 42px; height: 42px; background: none; border-radius: 0; box-shadow: none; transform: none; display: block; flex: none; }

/* start-up problem message */
.startfail { max-width: 420px; margin: 0 auto; display: grid; gap: 10px; justify-items: center; font-family: var(--font); font-size: 15px; }
.startfail b { font-size: 18px; }
.startfail p { margin: 0; }

/* empty state: sticky note sits between ruled lines; text on its own lines below */
.empty .illus { height: calc(var(--line-h) * 5); width: auto; margin: 0 auto var(--line-h); display: block; }

/* password reset & change */
.forgot { text-align: center; margin: 10px 0 0; }
.pwchange { margin: 18px 0 4px; }
.pwchange summary { cursor: pointer; font-weight: 800; padding: 6px 0; }
.pwchange form { margin-top: 8px; }

/* invitation sharing */
.invshare { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }

/* ===== 0.3.9: clearer header, search in the corner, filter chips, quick add ===== */
.topbar { display: block; margin-bottom: 14px; }
.titlerow-main { display: flex; align-items: center; gap: 10px; }
.titlerow-main .menubtn { display: none; }
.titlerow-main h1 { font: 700 50px/1.05 var(--display); margin: 0; display: flex; align-items: center; color: var(--ink); }
.titlerow-main h1 > span:last-child { position: relative; z-index: 0; background: none; padding: 0 6px; }
.titlerow-main h1 > span:last-child::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: .12em; height: .32em; background: var(--acc); opacity: .5; border-radius: 3px 8px 4px 9px; transform: rotate(-1deg); }
.titles { min-width: 0; padding-right: 0; }
.eyebrow { margin-top: 2px; font-size: 15px; }
.titles .sub { margin-top: 0; font-size: 16px; color: var(--pencil); }
.searchbtn { font-size: 17px; }
.searchbtn b { position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: #e5484d; border: 2px solid #fff; }
.searchbar { display: flex; gap: 10px; align-items: center; margin: 0 0 14px; padding: 6px 10px; background: #fff; border-radius: 10px; box-shadow: 0 2px 6px #0000001a; }
.searchbar .search { flex: 1; width: auto; min-width: 0; font-size: 18px; }
.searchbar select { width: auto; max-width: 45%; font-size: 17px; }
/* quick add: easy to see */
.qa-plus { font-size: 20px; color: var(--ink); }
.quickadd input { color: var(--ink); }
.quickadd input::placeholder { color: #4f5a78; opacity: 1; }
.quickadd { border-bottom: 2px dashed #2f3b5c40; }
/* priority key = filter chips */
.legend .lg { border: 0; background: none; padding: 0 4px; font: 400 15px var(--hand); color: var(--ink-2); cursor: pointer; border-radius: 6px; }
@media (hover: hover) { .legend .lg:hover { background: #2f3b5c0d; } }
.legend .lg.on { color: var(--ink); background: linear-gradient(100deg, transparent 2%, var(--acc) 3% 96%, transparent 97%) 0 70% / 100% 55% no-repeat; }
.legend .lg.dim { opacity: .45; }
/* empty state: softer */
.empty { color: var(--pencil); font-size: 16px; }
.empty b { color: var(--ink-2); font-size: 26px; opacity: .85; }
.empty .illus { opacity: .92; }
@media (max-width: 900px) {
  .titlerow-main { margin-left: -46px; }
  .titlerow-main .menubtn { display: grid; position: static; margin: 0; }
  .titlerow-main h1 { font-size: 44px; }
  .menubtn { position: static !important; }
  .tools { display: none; }
  .searchbar { margin-left: -44px; }
}

/* ===================== 0.4.0: compact header, small sticky notes, notepad feel ===================== */
/* faint leaf sprigs (a nod to the SÍNOP leaf) in two corners of the page */
.main { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 90'%3E%3Cg fill='none' stroke='%237da35f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M30 88C28 60 31 34 46 6'/%3E%3C/g%3E%3Cg fill='%2399bf7a'%3E%3Cpath d='M33 60c-9-2-15-9-15-17 8 1 14 8 15 17z'/%3E%3Cpath d='M36 44c8-3 15-1 19 5-7 3-14 1-19-5z'/%3E%3Cpath d='M37 33c-8-3-12-10-11-17 7 2 11 9 11 17z'/%3E%3Cpath d='M42 20c6-4 13-4 17 0-6 4-12 4-17 0z'/%3E%3Cpath d='M31 74c-8 0-14-5-16-12 8 0 14 5 16 12z'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 90'%3E%3Cg fill='none' stroke='%237da35f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M30 88C28 60 31 34 46 6'/%3E%3C/g%3E%3Cg fill='%2399bf7a'%3E%3Cpath d='M33 60c-9-2-15-9-15-17 8 1 14 8 15 17z'/%3E%3Cpath d='M36 44c8-3 15-1 19 5-7 3-14 1-19-5z'/%3E%3Cpath d='M37 33c-8-3-12-10-11-17 7 2 11 9 11 17z'/%3E%3Cpath d='M42 20c6-4 13-4 17 0-6 4-12 4-17 0z'/%3E%3Cpath d='M31 74c-8 0-14-5-16-12 8 0 14 5 16 12z'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(to right, #00000022, transparent 30px), linear-gradient(to right, transparent 82px, var(--margin) 82px 84px, transparent 84px);
  background-repeat: no-repeat; background-size: 46px 70px, 40px 60px, auto, auto; background-position: right 12px bottom 150px, left 8px bottom 70px, 0 0, 0 0; }
.main > * { position: relative; }
/* compact header */
.topbar { margin-bottom: 8px; }
.titlerow-main h1 { font-size: 42px; }
.eyebrow { font-size: 15px; margin-top: 0; color: var(--ink); }
.titles .sub { font-size: 15px; line-height: 1.3; }
/* ink-drawn corner buttons */
.bell { width: 40px; height: 40px; background: #fffdf6; border: 2px solid var(--ink); color: var(--ink); box-shadow: 0 2px 4px #0000001a; }
.bell .ci, .bell .ci svg.i { width: 21px; height: 21px; }
.bell .ci svg.i { stroke-width: 2; }
/* small sticky notes */
.stats { gap: 12px; margin: 6px 0 calc(var(--line-h) * .5); }
.stat { display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 10px 12px 8px; }
.stat::before { top: -8px; width: 44px; height: 15px; margin-left: -22px; }
.stat > span { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.stat b { display: inline; font-size: 32px; line-height: 1; }
.stat em { font-style: normal; font-size: 16px; line-height: 1.1; padding: 0 6px; border-radius: 6px; background: #ffffff8c; }
.stat .sicon { flex: none; color: #4b3f1e; opacity: .75; display: grid; }
.stat .sicon svg.i { width: 22px; height: 22px; stroke-width: 1.8; }
/* the "Jot something down" box gets more emphasis */
.quickadd { height: 52px; margin: 8px 0 8px -60px; padding: 0 6px 0 12px; border: 2px dashed #2f3b5c55; border-radius: 14px; background: #fff; box-shadow: 0 2px 6px #0000000f; gap: 8px; }
.quickadd:focus-within { border-style: solid; border-color: var(--ink); }
.qa-plus { width: 26px; margin: 0; font-size: 20px; }
.quickadd input { height: 48px; line-height: 48px; font-size: 21px; }
.quickadd input::placeholder { color: #4f5a78; }
.qa-where { border: 0; border-left: 1.5px solid #2f3b5c33; border-radius: 0; background: none; padding: 4px 8px; }
.qa-go { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; padding: 0; }
.qa-go svg.i { width: 20px; height: 20px; stroke-width: 2.6; }
/* priority key as a soft pill bar */
.legend { height: 30px; margin: 2px 0 2px; display: inline-flex; align-items: center; gap: 0; padding: 0 6px; background: #f6efe1; border-radius: 999px; }
.legend .lg { position: relative; top: 0; line-height: 30px; padding: 0 9px; }
.legend .lg + .lg { border-left: 1.5px solid #2f3b5c26; border-radius: 0; }
.legend .lg.on { border-radius: 6px; }
/* footer note */
.syncnote { display: flex; align-items: center; justify-content: center; gap: 6px; border-top: 2px dashed #2f3b5c26; padding-top: 10px; }
.syncnote .ci svg.i { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .main { padding-top: calc(52px + env(safe-area-inset-top)); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 90'%3E%3Cg fill='none' stroke='%237da35f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M30 88C28 60 31 34 46 6'/%3E%3C/g%3E%3Cg fill='%2399bf7a'%3E%3Cpath d='M33 60c-9-2-15-9-15-17 8 1 14 8 15 17z'/%3E%3Cpath d='M36 44c8-3 15-1 19 5-7 3-14 1-19-5z'/%3E%3Cpath d='M37 33c-8-3-12-10-11-17 7 2 11 9 11 17z'/%3E%3Cpath d='M42 20c6-4 13-4 17 0-6 4-12 4-17 0z'/%3E%3Cpath d='M31 74c-8 0-14-5-16-12 8 0 14 5 16 12z'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 90'%3E%3Cg fill='none' stroke='%237da35f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M30 88C28 60 31 34 46 6'/%3E%3C/g%3E%3Cg fill='%2399bf7a'%3E%3Cpath d='M33 60c-9-2-15-9-15-17 8 1 14 8 15 17z'/%3E%3Cpath d='M36 44c8-3 15-1 19 5-7 3-14 1-19-5z'/%3E%3Cpath d='M37 33c-8-3-12-10-11-17 7 2 11 9 11 17z'/%3E%3Cpath d='M42 20c6-4 13-4 17 0-6 4-12 4-17 0z'/%3E%3Cpath d='M31 74c-8 0-14-5-16-12 8 0 14 5 16 12z'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(to right, transparent 44px, var(--margin) 44px 46px, transparent 46px); background-size: 40px 60px, 34px 52px, auto; background-position: right 4px bottom 200px, left 2px bottom 90px, 0 0; }
  .titlerow-main h1 { font-size: 38px; }
  .stats { gap: 10px; margin-left: -40px; }
  .stat { min-height: 52px; padding: 9px 10px 7px; }
  .stat b { font-size: 28px; }
  .stat em { font-size: 15px; }
  .quickadd { margin-left: -44px; }
  .corner { top: calc(6px + env(safe-area-inset-top)); }
}
.stat .badge { display: none !important; }
.stat em { white-space: nowrap; }
.stat > span { flex-wrap: nowrap; align-items: center; }
.stats { margin-top: 16px; }
@media (max-width: 900px) {
  .main { padding-top: calc(42px + env(safe-area-inset-top)); }
}

/* ===================== 0.4.1: real-looking spiral, torn bottom edge, hand-drawn sticky notes ===================== */
/* spiral binding: metal coils through punched holes */
.main::before { left: -23px; top: 14px; bottom: 14px; width: 46px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='26' viewBox='0 0 46 26'%3E%0A%3Cdefs%3E%3ClinearGradient id='m' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%236f6a63'/%3E%3Cstop offset='.35' stop-color='%23f4f1ea'/%3E%3Cstop offset='.55' stop-color='%23bdb6aa'/%3E%3Cstop offset='1' stop-color='%235d5850'/%3E%3C/linearGradient%3E%3C/defs%3E%0A%3Cellipse cx='9' cy='13' rx='3.4' ry='4' fill='%23241f19'/%3E%3Cellipse cx='37' cy='13' rx='3.4' ry='4' fill='%23241f19'/%3E%0A%3Cpath d='M9 10.4 C 18 9.2 28 9.2 37 10.4 C 39.6 11 39.6 15 37 15.6 C 28 16.8 18 16.8 9 15.6' fill='none' stroke='%2300000033' stroke-width='3.4' stroke-linecap='round' transform='translate%28.8 1.2%29'/%3E%0A%3Cpath d='M9 10.4 C 18 9.2 28 9.2 37 10.4 C 39.6 11 39.6 15 37 15.6 C 28 16.8 18 16.8 9 15.6' fill='none' stroke='url%28%23m%29' stroke-width='3' stroke-linecap='round'/%3E%0A%3Cpath d='M14 11.2 C 21 10.4 27 10.4 32 10.9' fill='none' stroke='%23ffffffb0' stroke-width='.8' stroke-linecap='round'/%3E%0A%3C/svg%3E") 0 0 / 46px 26px repeat-y; }
/* torn bottom edge of the page */
.app { margin-bottom: 36px; }
.main { position: relative; border-bottom-right-radius: 0; }
.main::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 16px; background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='16' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%0A%3Cpath d='M0 0H120V7L116 10L111 7.5L107 11L101 8L96 12L92 8.5L86 11.5L81 7.8L76 10.6L70 7.4L66 11.8L60 8.2L55 10.4L49 7.6L44 12L39 8.4L33 11L28 7.8L23 10.8L17 8.2L12 11.6L7 8L3 10.6L0 8Z' fill='black'/%3E%3C/svg%3E") 0 0 / 120px 16px repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='16' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%0A%3Cpath d='M0 0H120V7L116 10L111 7.5L107 11L101 8L96 12L92 8.5L86 11.5L81 7.8L76 10.6L70 7.4L66 11.8L60 8.2L55 10.4L49 7.6L44 12L39 8.4L33 11L28 7.8L23 10.8L17 8.2L12 11.6L7 8L3 10.6L0 8Z' fill='black'/%3E%3C/svg%3E") 0 0 / 120px 16px repeat-x; filter: drop-shadow(0 3px 2px #0000001f); pointer-events: none; }
/* hand-drawn sticky notes: hand-cut wobbly edges, faint pencil outline, folded corner; a little narrower */
.stats { grid-template-columns: repeat(4, minmax(0, 190px)); gap: 16px; }
.stat { border-radius: 3px 14px 4px 18px / 16px 4px 14px 3px; box-shadow: 0 0 0 1.4px #2f3b5c2e, 1px 3px 0 -1px #2f3b5c1a, 0 8px 12px -8px #0004; overflow: visible; }
.stat:nth-child(2) { border-radius: 14px 3px 16px 5px / 4px 15px 3px 14px; }
.stat:nth-child(3) { border-radius: 5px 16px 3px 14px / 14px 3px 16px 4px; }
.stat:nth-child(4) { border-radius: 16px 4px 14px 3px / 3px 14px 4px 16px; }
.stat::after { content: ""; position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; background: linear-gradient(135deg, transparent 50%, #00000014 50%, #ffffff8c 60%, #ffffffcc); border-top-left-radius: 4px; }
.stat b { font-family: var(--display); }
@media (max-width: 900px) {
  .app { margin-bottom: 30px; }
  .main::before { left: 6px; right: 6px; top: calc(-6px + env(safe-area-inset-top)); bottom: auto; width: auto; height: 46px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='46' viewBox='0 0 26 46'%3E%0A%3Cdefs%3E%3ClinearGradient id='m' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%236f6a63'/%3E%3Cstop offset='.35' stop-color='%23f4f1ea'/%3E%3Cstop offset='.55' stop-color='%23bdb6aa'/%3E%3Cstop offset='1' stop-color='%235d5850'/%3E%3C/linearGradient%3E%0A%3CradialGradient id='h' cx='.5' cy='.4' r='.6'%3E%3Cstop offset='0' stop-color='%231d1a16'/%3E%3Cstop offset='1' stop-color='%233b352c'/%3E%3C/radialGradient%3E%3C/defs%3E%0A%3Cellipse cx='13' cy='37' rx='4.2' ry='3.4' fill='url%28%23h%29'/%3E%3Cellipse cx='13' cy='38.2' rx='4.2' ry='1.6' fill='%23ffffff55'/%3E%0A%3Cpath d='M10.4 38 C 9.6 26%2C 9.4 12%2C 11.2 4.2 C 11.8 1.6 14.2 1.6 14.8 4.2 C 16.6 12%2C 16.4 26%2C 15.6 38' fill='none' stroke='%2300000033' stroke-width='3.6' stroke-linecap='round' transform='translate%281.2 1%29'/%3E%0A%3Cpath d='M10.4 38 C 9.6 26%2C 9.4 12%2C 11.2 4.2 C 11.8 1.6 14.2 1.6 14.8 4.2 C 16.6 12%2C 16.4 26%2C 15.6 38' fill='none' stroke='url%28%23m%29' stroke-width='3.2' stroke-linecap='round'/%3E%0A%3Cpath d='M11.6 30 C 11.2 22 11.2 13 12.2 6.5' fill='none' stroke='%23ffffffb0' stroke-width='.8' stroke-linecap='round'/%3E%0A%3C/svg%3E") 0 0 / 26px 46px repeat-x; }
  .main { padding-top: calc(48px + env(safe-area-inset-top)); }
  /* search + bell sit just below the spiral, not on it */
  .corner { top: calc(46px + env(safe-area-inset-top)); right: 12px; }
  .bell { width: 38px; height: 38px; }
  .titlerow-main { padding-right: 92px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 14px; margin-right: 14px; }
}
@media (max-width: 900px) {
  .app { position: relative; }
  .corner { position: absolute; }
}

/* hand-drawn round buttons for search & bell */
.corner .bell { border: 0; background: #fffdf6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M9 9.6C13 4.6 20.4 2.6 27 4.8c7.4 2.6 11.2 10.2 9.4 17.8-1.8 7.6-9.4 13-17.4 12.2C10.6 34 4.2 27.2 3.6 19.4 3.2 13.6 6.4 7.8 12.4 5.2c4-1.6 8.2-1.4 11.6.2' fill='none' stroke='%232f3b5c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M30.6 7.2c4.4 3.6 6.4 9.6 4.8 15.4M6.8 27.6c3 5 8.6 8 14.6 7.4' fill='none' stroke='%232f3b5c' stroke-width='1.1' stroke-linecap='round' opacity='.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat; box-shadow: none; }
.corner .bell:nth-child(3) { transform: rotate(8deg); }
.corner .bell .ci svg.i { stroke-width: 1.7; }
.corner .bell:hover { background-color: #fff6c4; }

/* ===== spiral like Ara's reference: twin bronze wire, 3D shading + hand-drawn ink outline ===== */
.main::before { left: -20px; width: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='22' viewBox='0 0 40 22'%3E%3Cdefs%3E%3ClinearGradient id='w' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%238a7a62'/%3E%3Cstop offset='.35' stop-color='%23efe4cf'/%3E%3Cstop offset='.6' stop-color='%23bfae90'/%3E%3Cstop offset='1' stop-color='%2375654f'/%3E%3C/linearGradient%3E%0A%3CradialGradient id='h' cx='.5' cy='.35' r='.65'%3E%3Cstop offset='0' stop-color='%234a3c2b'/%3E%3Cstop offset='.75' stop-color='%238a7860'/%3E%3Cstop offset='1' stop-color='%23c9b99c'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg transform='translate%2840 0%29 rotate%2890%29'%3E%3Cellipse cx='11.2' cy='31.6' rx='4.6' ry='4' fill='url%28%23h%29' stroke='%232f3b5c' stroke-width='.9'/%3E%3Cellipse cx='11.2' cy='32.6' rx='2.9' ry='2.2' fill='%2333281c'/%3E%3Cg opacity='.22' transform='translate%281 1%29'%3E%3Cpath d='M8 31 C 7 22%2C 6.4 12%2C 7.5 5.1 C 8.1 1.4 11.5 1.5 12.1 5.3 C 13.1 12%2C 12.7 22.2%2C 11.7 31.2' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' /%3E%3Cpath d='M10.7 31 C 9.7 22%2C 9.100000000000001 12%2C 10.2 5.1 C 10.8 1.4 14.2 1.5 14.8 5.3 C 15.8 12%2C 15.399999999999999 22.2%2C 14.399999999999999 31.2' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' /%3E%3C/g%3E%3Cpath d='M8 31 C 7 22%2C 6.4 12%2C 7.5 5.1 C 8.1 1.4 11.5 1.5 12.1 5.3 C 13.1 12%2C 12.7 22.2%2C 11.7 31.2' fill='none' stroke='%232f3b5c' stroke-width='3.1' stroke-linecap='round' /%3E%3Cpath d='M8 31 C 7 22%2C 6.4 12%2C 7.5 5.1 C 8.1 1.4 11.5 1.5 12.1 5.3 C 13.1 12%2C 12.7 22.2%2C 11.7 31.2' fill='none' stroke='url%28%23w%29' stroke-width='1.9' stroke-linecap='round' /%3E%3Cpath d='M10.7 31 C 9.7 22%2C 9.100000000000001 12%2C 10.2 5.1 C 10.8 1.4 14.2 1.5 14.8 5.3 C 15.8 12%2C 15.399999999999999 22.2%2C 14.399999999999999 31.2' fill='none' stroke='%232f3b5c' stroke-width='3.1' stroke-linecap='round' /%3E%3Cpath d='M10.7 31 C 9.7 22%2C 9.100000000000001 12%2C 10.2 5.1 C 10.8 1.4 14.2 1.5 14.8 5.3 C 15.8 12%2C 15.399999999999999 22.2%2C 14.399999999999999 31.2' fill='none' stroke='url%28%23w%29' stroke-width='1.9' stroke-linecap='round' /%3E%3Cpath d='M7.6 26 C 7.2 18 7.2 11 8.2 6.4' fill='none' stroke='%23fffaf0' stroke-width='.7' stroke-linecap='round' opacity='.9'/%3E%3Cpath d='M10.3 27 C 9.9 19 9.9 12 10.9 6.8' fill='none' stroke='%23fffaf0' stroke-width='.6' stroke-linecap='round' opacity='.8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 40px 22px repeat-y; }
@media (max-width: 900px) {
  body { background-color: var(--desk); }
  .main { margin-top: calc(14px + env(safe-area-inset-top)); border-radius: 12px 12px 0 0; padding-top: 40px !important; box-shadow: 0 -1px 0 #0000000d; }
  .main::before { left: 8px; right: 8px; width: auto; top: -16px; height: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='40' viewBox='-5 0 32 40'%3E%3Cdefs%3E%3ClinearGradient id='w' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%238a7a62'/%3E%3Cstop offset='.35' stop-color='%23efe4cf'/%3E%3Cstop offset='.6' stop-color='%23bfae90'/%3E%3Cstop offset='1' stop-color='%2375654f'/%3E%3C/linearGradient%3E%0A%3CradialGradient id='h' cx='.5' cy='.35' r='.65'%3E%3Cstop offset='0' stop-color='%234a3c2b'/%3E%3Cstop offset='.75' stop-color='%238a7860'/%3E%3Cstop offset='1' stop-color='%23c9b99c'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cellipse cx='11.2' cy='31.6' rx='4.6' ry='4' fill='url%28%23h%29' stroke='%232f3b5c' stroke-width='.9'/%3E%3Cellipse cx='11.2' cy='32.6' rx='2.9' ry='2.2' fill='%2333281c'/%3E%3Cg opacity='.22' transform='translate%281 1%29'%3E%3Cpath d='M8 31 C 7 22%2C 6.4 12%2C 7.5 5.1 C 8.1 1.4 11.5 1.5 12.1 5.3 C 13.1 12%2C 12.7 22.2%2C 11.7 31.2' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' /%3E%3Cpath d='M10.7 31 C 9.7 22%2C 9.100000000000001 12%2C 10.2 5.1 C 10.8 1.4 14.2 1.5 14.8 5.3 C 15.8 12%2C 15.399999999999999 22.2%2C 14.399999999999999 31.2' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' /%3E%3C/g%3E%3Cpath d='M8 31 C 7 22%2C 6.4 12%2C 7.5 5.1 C 8.1 1.4 11.5 1.5 12.1 5.3 C 13.1 12%2C 12.7 22.2%2C 11.7 31.2' fill='none' stroke='%232f3b5c' stroke-width='3.1' stroke-linecap='round' /%3E%3Cpath d='M8 31 C 7 22%2C 6.4 12%2C 7.5 5.1 C 8.1 1.4 11.5 1.5 12.1 5.3 C 13.1 12%2C 12.7 22.2%2C 11.7 31.2' fill='none' stroke='url%28%23w%29' stroke-width='1.9' stroke-linecap='round' /%3E%3Cpath d='M10.7 31 C 9.7 22%2C 9.100000000000001 12%2C 10.2 5.1 C 10.8 1.4 14.2 1.5 14.8 5.3 C 15.8 12%2C 15.399999999999999 22.2%2C 14.399999999999999 31.2' fill='none' stroke='%232f3b5c' stroke-width='3.1' stroke-linecap='round' /%3E%3Cpath d='M10.7 31 C 9.7 22%2C 9.100000000000001 12%2C 10.2 5.1 C 10.8 1.4 14.2 1.5 14.8 5.3 C 15.8 12%2C 15.399999999999999 22.2%2C 14.399999999999999 31.2' fill='none' stroke='url%28%23w%29' stroke-width='1.9' stroke-linecap='round' /%3E%3Cpath d='M7.6 26 C 7.2 18 7.2 11 8.2 6.4' fill='none' stroke='%23fffaf0' stroke-width='.7' stroke-linecap='round' opacity='.9'/%3E%3Cpath d='M10.3 27 C 9.9 19 9.9 12 10.9 6.8' fill='none' stroke='%23fffaf0' stroke-width='.6' stroke-linecap='round' opacity='.8'/%3E%3C/svg%3E") 0 0 / 32px 40px repeat-x; }
  .corner { top: calc(54px + env(safe-area-inset-top)) !important; }
  .titlerow-main { margin-top: 4px; }
}
/* sticky notes: thin hand-drawn ink border */
.stat { box-shadow: 0 0 0 1.3px #2f3b5cb3, 1.5px 2px 0 -.5px #2f3b5c40, 0 8px 12px -8px #0004 !important; }

/* ===================== 0.4.5: copy of Ara's reference mockup ===================== */
/* spiral: thin twin bronze loops */
.main::before { left: -16px; width: 32px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='22' viewBox='0 0 32 22'%3E%3Cdefs%3E%3ClinearGradient id='w' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%236e5f49'/%3E%3Cstop offset='.45' stop-color='%23cdbd9f'/%3E%3Cstop offset='1' stop-color='%236b5c46'/%3E%3C/linearGradient%3E%3CradialGradient id='h' cx='.5' cy='.3' r='.7'%3E%3Cstop offset='0' stop-color='%233a2e20'/%3E%3Cstop offset='.7' stop-color='%237d6b52'/%3E%3Cstop offset='1' stop-color='%23cdbd9f'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg transform='translate%2832 0%29 rotate%2890%29'%3E%3Cellipse cx='10' cy='27.2' rx='3.5' ry='3' fill='url%28%23h%29'/%3E%3Cg opacity='.22' transform='translate%28.8 .8%29'%3E%3Cpath d='M7 27 C 6.2 19%2C 5.8 10%2C 6.8 4.4 C 7.3 1.4 10.1 1.4 10.6 4.4 C 11.5 10%2C 11.2 19%2C 10.4 27' fill='none' stroke='%23000' stroke-width='1.35' stroke-linecap='round'/%3E%3Cpath d='M9.2 27 C 8.4 19%2C 8.0 10%2C 9.0 4.4 C 9.5 1.4 12.3 1.4 12.8 4.4 C 13.7 10%2C 13.399999999999999 19%2C 12.600000000000001 27' fill='none' stroke='%23000' stroke-width='1.35' stroke-linecap='round'/%3E%3C/g%3E%3Cpath d='M7 27 C 6.2 19%2C 5.8 10%2C 6.8 4.4 C 7.3 1.4 10.1 1.4 10.6 4.4 C 11.5 10%2C 11.2 19%2C 10.4 27' fill='none' stroke='url%28%23w%29' stroke-width='1.35' stroke-linecap='round'/%3E%3Cpath d='M9.2 27 C 8.4 19%2C 8.0 10%2C 9.0 4.4 C 9.5 1.4 12.3 1.4 12.8 4.4 C 13.7 10%2C 13.399999999999999 19%2C 12.600000000000001 27' fill='none' stroke='url%28%23w%29' stroke-width='1.35' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 32px 22px repeat-y; }
/* sticky notes: soft paper, no ink border, big hand numbers with little spark marks, plain labels */
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat, .stat:nth-child(n) { border-radius: 4px 6px 5px 7px !important; box-shadow: 0 1px 1px #0000000d, 0 6px 10px -6px #00000040 !important; min-height: 58px; padding: 10px 14px 8px; }
.stat:nth-child(1) { background: #f8b6c3; } .stat:nth-child(2) { background: #f8df7c; }
.stat:nth-child(3) { background: #b3d8f6; } .stat:nth-child(4) { background: #bfe7c3; }
.stat::after { display: none; }
.stat::before { width: 48px; height: 15px; margin-left: -24px; top: -8px; background: #d9caa5cc; box-shadow: none; }
.stat > span { gap: 12px; }
.stat b { font: 700 38px/1 var(--display); color: #2f3b5c; position: relative; padding-right: 10px; }
.stat b::after { content: ""; position: absolute; right: -6px; top: -6px; width: 15px; height: 15px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='%23d2555c' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 9L1.5 3.5'/%3E%3Cpath d='M7.5 7.5L11 3'/%3E%3Cpath d='M9 12.5L15 10.5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.stat:nth-child(2) b::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='%23c9a227' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 9L1.5 3.5'/%3E%3Cpath d='M7.5 7.5L11 3'/%3E%3Cpath d='M9 12.5L15 10.5'/%3E%3C/g%3E%3C/svg%3E"); }
.stat:nth-child(3) b::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='%23d2555c' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 9L1.5 3.5'/%3E%3Cpath d='M7.5 7.5L11 3'/%3E%3Cpath d='M9 12.5L15 10.5'/%3E%3C/g%3E%3C/svg%3E"); }
.stat:nth-child(4) b::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='%235d9b5f' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 9L1.5 3.5'/%3E%3Cpath d='M7.5 7.5L11 3'/%3E%3Cpath d='M9 12.5L15 10.5'/%3E%3C/g%3E%3C/svg%3E"); }
.stat em { background: none; padding: 0; font: 400 19px var(--hand); color: #2f3b5c; }
.stat .sicon { color: #2f3b5c; opacity: .9; }
.stat .sicon svg.i { width: 26px; height: 26px; stroke-width: 1.7; }
/* title: brush highlight + spark marks */
.titlerow-main h1 > span:last-child::before { background: #f5d64e; opacity: .75; height: .38em; bottom: .1em; }
.titlerow-main h1 > span:last-child::after { content: ""; position: absolute; right: -22px; top: -4px; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='%23c9a227' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 9L1.5 3.5'/%3E%3Cpath d='M7.5 7.5L11 3'/%3E%3Cpath d='M9 12.5L15 10.5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.eyebrow { font-size: 16px; color: #2f3b5c; }
/* bell: golden, with a small red dot when there is news */
#bell .ci svg.i { fill: #f2c64a; stroke: #6b5520; }
#bellCount { min-width: 12px; width: 12px; height: 12px; padding: 0; font-size: 0; top: 2px; right: 2px; }
/* "Jot something down" box */
.quickadd { background: #fffefa; border: 1.6px dashed #2f3b5c66; border-radius: 16px; box-shadow: 0 3px 8px #00000012; height: 54px; }
.quickadd input { font-size: 21px; color: #2f3b5c; }
.quickadd input::placeholder { color: #5b6684; }
.qa-where { border-left: 1.6px solid #2f3b5c55; padding: 4px 10px; }
.qa-where svg.i { width: 22px; height: 22px; }
.qa-where span:not(.emo) { display: none; }
.qa-go { width: 40px; height: 40px; background: #2f3b5c; }
/* priority pill bar, centred, soft peach */
.legend { display: flex; width: fit-content; margin: 8px auto 4px; background: #fbe6dc; height: 32px; padding: 0 10px; }
.legend .lg { font-size: 17px; color: #2f3b5c; padding: 0 12px; }
.legend .lg + .lg { border-left: 1.5px solid #2f3b5c33; }
/* group headings with a soft green brush highlight */
.grouphead { display: inline-flex; align-items: baseline; gap: 8px; width: fit-content; padding: 0 12px 0 6px; margin-left: -8px;
  background: linear-gradient(100deg, transparent 1%, #cfe8bfcc 2% 97%, transparent 98%) 0 72% / 100% 62% no-repeat; }
.grouphead small { font: 400 20px var(--hand); color: #5b6684; }
.grouphead.overdue { background-image: linear-gradient(100deg, transparent 1%, #f8c9cfcc 2% 97%, transparent 98%); }
/* task rows: meta sits just under the title */
.meta { top: -2px; }
/* doodles: heart + leaf sprigs */
.main { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 28'%3E%3Cpath d='M15 25C6 18 2.5 13 3.5 8.2 4.4 4 9.6 2.4 13 6.4 14 7.6 14.6 9 15 10.4c.8-2.6 2.6-6 6.6-6.6 4.4-.6 7 3.4 5.6 7.6-1.4 4.6-6.4 9.6-12.2 13.6' fill='none' stroke='%23d2555c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 90'%3E%3Cpath d='M30 88C28 60 31 34 46 6' fill='none' stroke='%238fae6c' stroke-width='2' stroke-linecap='round'/%3E%3Cg fill='%23a9c58b'%3E%3Cpath d='M33 60c-9-2-15-9-15-17 8 1 14 8 15 17z'/%3E%3Cpath d='M36 44c8-3 15-1 19 5-7 3-14 1-19-5z'/%3E%3Cpath d='M37 33c-8-3-12-10-11-17 7 2 11 9 11 17z'/%3E%3Cpath d='M42 20c6-4 13-4 17 0-6 4-12 4-17 0z'/%3E%3Cpath d='M31 74c-8 0-14-5-16-12 8 0 14 5 16 12z'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 90'%3E%3Cpath d='M30 88C28 60 31 34 46 6' fill='none' stroke='%238fae6c' stroke-width='2' stroke-linecap='round'/%3E%3Cg fill='%23a9c58b'%3E%3Cpath d='M33 60c-9-2-15-9-15-17 8 1 14 8 15 17z'/%3E%3Cpath d='M36 44c8-3 15-1 19 5-7 3-14 1-19-5z'/%3E%3Cpath d='M37 33c-8-3-12-10-11-17 7 2 11 9 11 17z'/%3E%3Cpath d='M42 20c6-4 13-4 17 0-6 4-12 4-17 0z'/%3E%3Cpath d='M31 74c-8 0-14-5-16-12 8 0 14 5 16 12z'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(to right, #00000022, transparent 30px), linear-gradient(to right, transparent 82px, var(--margin) 82px 84px, transparent 84px);
  background-repeat: no-repeat; background-size: 26px 24px, 54px 80px, 48px 72px, auto, auto; background-position: right 66px top 150px, right 6px top 96px, left 2px bottom 60px, 0 0, 0 0; }
@media (max-width: 900px) {
  .main { margin: calc(16px + env(safe-area-inset-top)) 10px 0; border-radius: 14px 14px 0 0; box-shadow: 0 2px 10px #0000001f;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 28'%3E%3Cpath d='M15 25C6 18 2.5 13 3.5 8.2 4.4 4 9.6 2.4 13 6.4 14 7.6 14.6 9 15 10.4c.8-2.6 2.6-6 6.6-6.6 4.4-.6 7 3.4 5.6 7.6-1.4 4.6-6.4 9.6-12.2 13.6' fill='none' stroke='%23d2555c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 90'%3E%3Cpath d='M30 88C28 60 31 34 46 6' fill='none' stroke='%238fae6c' stroke-width='2' stroke-linecap='round'/%3E%3Cg fill='%23a9c58b'%3E%3Cpath d='M33 60c-9-2-15-9-15-17 8 1 14 8 15 17z'/%3E%3Cpath d='M36 44c8-3 15-1 19 5-7 3-14 1-19-5z'/%3E%3Cpath d='M37 33c-8-3-12-10-11-17 7 2 11 9 11 17z'/%3E%3Cpath d='M42 20c6-4 13-4 17 0-6 4-12 4-17 0z'/%3E%3Cpath d='M31 74c-8 0-14-5-16-12 8 0 14 5 16 12z'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 90'%3E%3Cpath d='M30 88C28 60 31 34 46 6' fill='none' stroke='%238fae6c' stroke-width='2' stroke-linecap='round'/%3E%3Cg fill='%23a9c58b'%3E%3Cpath d='M33 60c-9-2-15-9-15-17 8 1 14 8 15 17z'/%3E%3Cpath d='M36 44c8-3 15-1 19 5-7 3-14 1-19-5z'/%3E%3Cpath d='M37 33c-8-3-12-10-11-17 7 2 11 9 11 17z'/%3E%3Cpath d='M42 20c6-4 13-4 17 0-6 4-12 4-17 0z'/%3E%3Cpath d='M31 74c-8 0-14-5-16-12 8 0 14 5 16 12z'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(to right, transparent 34px, var(--margin) 34px 36px, transparent 36px);
    background-size: 22px 20px, 44px 66px, 40px 62px, auto; background-position: right 22px top 168px, right -2px top 104px, left -4px bottom 120px, 0 0;
    padding: 36px 12px 110px 46px !important; }
  .main::before { left: 10px; right: 10px; width: auto; top: -14px; height: 32px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='27' height='32' viewBox='-3.5 0 27 32'%3E%3Cdefs%3E%3ClinearGradient id='w' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%236e5f49'/%3E%3Cstop offset='.45' stop-color='%23cdbd9f'/%3E%3Cstop offset='1' stop-color='%236b5c46'/%3E%3C/linearGradient%3E%3CradialGradient id='h' cx='.5' cy='.3' r='.7'%3E%3Cstop offset='0' stop-color='%233a2e20'/%3E%3Cstop offset='.7' stop-color='%237d6b52'/%3E%3Cstop offset='1' stop-color='%23cdbd9f'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cellipse cx='10' cy='27.2' rx='3.5' ry='3' fill='url%28%23h%29'/%3E%3Cg opacity='.22' transform='translate%28.8 .8%29'%3E%3Cpath d='M7 27 C 6.2 19%2C 5.8 10%2C 6.8 4.4 C 7.3 1.4 10.1 1.4 10.6 4.4 C 11.5 10%2C 11.2 19%2C 10.4 27' fill='none' stroke='%23000' stroke-width='1.35' stroke-linecap='round'/%3E%3Cpath d='M9.2 27 C 8.4 19%2C 8.0 10%2C 9.0 4.4 C 9.5 1.4 12.3 1.4 12.8 4.4 C 13.7 10%2C 13.399999999999999 19%2C 12.600000000000001 27' fill='none' stroke='%23000' stroke-width='1.35' stroke-linecap='round'/%3E%3C/g%3E%3Cpath d='M7 27 C 6.2 19%2C 5.8 10%2C 6.8 4.4 C 7.3 1.4 10.1 1.4 10.6 4.4 C 11.5 10%2C 11.2 19%2C 10.4 27' fill='none' stroke='url%28%23w%29' stroke-width='1.35' stroke-linecap='round'/%3E%3Cpath d='M9.2 27 C 8.4 19%2C 8.0 10%2C 9.0 4.4 C 9.5 1.4 12.3 1.4 12.8 4.4 C 13.7 10%2C 13.399999999999999 19%2C 12.600000000000001 27' fill='none' stroke='url%28%23w%29' stroke-width='1.35' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 27px 32px repeat-x; }
  .corner { top: calc(44px + env(safe-area-inset-top)) !important; right: 22px; }
  .bell { width: 42px; height: 42px; }
  .titlerow-main { margin-left: -40px; }
  .titlerow-main h1 { font-size: 44px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px 14px; margin: 14px 0 12px -34px; }
  .stat { min-height: 56px; }
  .stat b { font-size: 36px; }
  .stat em { font-size: 17px; }
  .quickadd { margin-left: -36px; }
  .legend { margin-left: auto; transform: translateX(-17px); }
  .legend .lg { font-size: 16px; padding: 0 9px; }
  .task { margin-left: -46px; }
  .margin { width: 44px; }
  .app { margin-bottom: 30px; }
}
/* compact task rows like the reference: details right under the title, a ruled line between tasks */
.page { background-image: none !important; }
.task { min-height: 0; padding: 8px 0 8px; border-bottom: 1.5px solid var(--rule); }
.tasktitle { line-height: 1.3; }
.meta { height: auto; line-height: 1.4; top: 0; margin-top: 3px; }
.margin, .side { height: 30px; }
.group { padding-top: 14px; }
.group:first-child { padding-top: 6px; }
.grouphead { height: auto; line-height: 1.25; top: 0; margin-bottom: 2px; }
.completed { padding-top: 14px; }
.stat b::after { right: -14px; top: -4px; }
@media (max-width: 900px) {
  .main { background-position: right 30px top 150px, right -2px top 92px, left -4px bottom 120px, 0 0 !important; }
}
/* priority bar: keep clear of the red margin line and the box above */
.legend { margin-top: 12px !important; margin-bottom: 6px !important; }
@media (max-width: 900px) { .legend { transform: none !important; margin-left: auto !important; margin-right: auto !important; } .legend .lg { padding: 0 8px; } }
/* more room at the top for phones with a notch / Dynamic Island */
@media (max-width: 900px) {
  .main { margin-top: calc(30px + env(safe-area-inset-top)) !important; }
  .corner { top: calc(44px + env(safe-area-inset-top)) !important; }
  .titlerow-main { padding-right: 96px; }
  .corner .bell { width: 38px; height: 38px; }
  .sidebar { padding-top: calc(30px + env(safe-area-inset-top)); }
}

/* a task being saved */
.task.pending { opacity: .6; pointer-events: none; }
.task.pending .chip { font-style: italic; }

/* project ⋯ menu */
.projmore { margin-left: 4px; padding: 0 8px; border-radius: 8px; font-size: 18px; line-height: 1; opacity: .55; cursor: pointer; position: relative; z-index: 2; }
.projmore:hover, .projmore:focus-visible { opacity: 1; background: #2f3b5c14; }
.menulist { display: grid; gap: 6px; margin-bottom: 6px; }
.menuitem { text-align: left; border: 1.5px solid #2f3b5c26; background: #fff; border-radius: 12px; padding: 10px 14px; font-size: 16px; font-weight: 700; color: inherit; display: grid; gap: 2px; cursor: pointer; }
.menuitem small { font-weight: 400; font-size: 13px; opacity: .7; }
.menuitem.danger { color: #b42318; }
.menuitem:hover { background: #fff8d6; }
.archivedprojects { margin: 6px 4px 0; font-size: 14px; }
.archivedprojects summary { cursor: pointer; opacity: .7; }
.archrow { display: flex; justify-content: space-between; align-items: center; padding: 2px 0 2px 10px; }
/* pop-up panels always sit above the side menu */
.modalback, .drawerback { z-index: 46; }
#askBack { z-index: 48; }
.toast { z-index: 60; }

/* project title ⋯ (rename / archive / delete) */
.titlemore { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 0 6px; }
/* long titles wrap instead of running under the corner buttons */
.titlerow-main { padding-right: 100px; }
.titlerow-main h1 { min-width: 0; }
.titlerow-main h1 > span:last-child { overflow-wrap: anywhere; }
.titlemore { border: 1.8px solid var(--ink); background: #fffdf6; color: var(--ink); }
.titlerow-main h1 { line-height: 1.05; }
.titlerow-main { align-items: flex-start; }
.titlerow-main h1 { flex: 1 1 auto; }
.titlemore { margin-top: 6px; }
@media (max-width: 900px) {
  .titlerow-main h1 { font-size: 34px; line-height: 1.1; }
  .titlerow-main .menubtn { margin-top: 4px; }
}

/* swipe left on a task to reveal actions */
.swipewrap { position: relative; }
.swipewrap > .task { position: relative; z-index: 1; transition: transform .22s ease; touch-action: pan-y; }
.swipewrap.dragging > .task { transition: none; }
.swipeacts { position: absolute; top: 0; bottom: 0; right: 0; display: flex; align-items: stretch; z-index: 0; }
.sa { width: 74px; border: 0; display: grid; place-content: center; justify-items: center; gap: 2px; font-size: 12px; font-weight: 800; color: #fff; cursor: pointer; padding: 0; }
.sa span { font-size: 20px; }
.sa-edit { background: #3b6fd8; } .sa-archive { background: #c98a1c; } .sa-delete { background: #d23b3b; } .sa-restore { background: #2f9e5f; }
.swipewrap:not(.open):not(.dragging) .swipeacts { visibility: hidden; }
.swipewrap > .task { background: var(--paper); }
.sa { border-radius: 0; }
.swipeacts .sa:last-child { border-radius: 0 10px 10px 0; }

/* themed line icons in swipe actions, menus and buttons */
.sa svg.i { width: 24px; height: 24px; stroke-width: 1.9; }
.menuitem b { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.menuitem svg.i, #dArchive svg.i, #dRemove svg.i { width: 18px; height: 18px; stroke-width: 2; }
#dArchive, #dRemove { gap: 6px; }
/* notebook: sticky-note colours, ink icons, handwriting labels */
.sa { color: var(--ink); font: 400 15px var(--hand); gap: 3px; border-left: 1.5px dashed #2f3b5c33; }
.sa-edit { background: #b3d8f6; } .sa-archive { background: #f8df7c; } .sa-delete { background: #f8b6c3; color: #8e1f2a; } .sa-restore { background: #bfe7c3; }
.sa svg.i { stroke-width: 1.8; }
