/* ---------- Projects (lists by project) ---------- */
.card.flush{padding:0;overflow:hidden}
.lp-row{display:flex;align-items:center;gap:14px;cursor:pointer;background:var(--surface);
  border:1px solid var(--border-soft);border-radius:var(--radius);box-shadow:var(--shadow);
  padding:12px 16px 12px 12px;margin-bottom:10px;transition:transform .12s}
.lp-row:active{transform:scale(.99)}
.lp-mono{width:46px;height:46px;border-radius:13px;flex:0 0 auto;overflow:hidden;
  display:grid;place-items:center;font-family:var(--font-head);font-weight:700;
  font-size:19px;letter-spacing:-.02em}
.lp-mono img{width:100%;height:100%;object-fit:cover;display:block}
.lp-nm{flex:1;min-width:0;font-family:var(--font-head);font-weight:700;font-size:18px;letter-spacing:-.015em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp-chev{color:var(--faint);font-size:17px;flex:0 0 auto}
/* 2.8.11: creating projects from the home page. The button (like the Library's .ib-edit) sits flush with the cards'
   right edge: .today-head leaves 2px on each side, hence the margin-right:0 */
.lp-front-head{display:flex;align-items:center;gap:8px;margin-right:0}
.lp-front-head .today-hi{flex:1;min-width:0}
.lp-add{border:1px solid var(--border);background:var(--surface);color:var(--muted);border-radius:9px;width:32px;height:32px;
  display:grid;place-items:center;cursor:pointer;flex:0 0 auto;padding:0;transition:color .15s,border-color .15s}
.lp-add .glyph{font-size:16px}
.lp-add:hover,.lp-add.on{color:var(--olive);border-color:var(--olive-soft)}
.lp-new{cursor:default;border-color:var(--olive-soft)}
.lp-new-inp{flex:1;min-width:0;border:0;background:transparent;padding:0;margin:0;height:auto;box-shadow:none;
  font-family:var(--font-head);font-weight:700;font-size:18px;letter-spacing:-.015em;color:var(--text)}
.lp-new-inp:focus-visible{outline:none}
.lp-new-inp::placeholder{color:var(--faint);font-weight:500}
.lp-new-ok{border:0;background:var(--olive-soft);color:#fff;border-radius:9px;width:32px;height:32px;
  display:grid;place-items:center;cursor:pointer;padding:0;flex:0 0 auto}
.lp-new-ok .glyph{font-size:15px;stroke-width:2.6}
.lp-new-ok:active{transform:scale(.92)}
.lp-recent{animation:lpRecien 1.4s ease}
@keyframes lpRecien{0%{border-color:var(--olive-soft);box-shadow:0 0 0 3px var(--olive-bg)}100%{}}
.lp-back{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:13px;font-weight:700;cursor:pointer;padding:0 2px 10px}
.lp-back .glyph{font-size:15px}
.lp-head{display:flex;align-items:center;gap:10px;padding:0 2px 18px}
.lp-head h1{font-family:var(--font-head);font-weight:700;font-size:25px;letter-spacing:-.02em;margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis}
.lp-dot{width:11px;height:11px;border-radius:50%;flex:0 0 auto}
/* collapsible goal */
.lo{border-top:1px solid var(--border-soft)}
.lo:first-child{border-top:0}
.lo-top{display:flex;align-items:center;gap:11px;padding:14px;cursor:pointer}
.lo-chev{color:var(--faint);font-size:16px;flex:0 0 auto;transition:transform .2s ease}
.lo.open .lo-chev{transform:rotate(90deg)}
.lo-mid{flex:1;min-width:0}
.lo-mid .bar{height:5px;margin-top:8px}
.lo-nm{font-weight:700;font-size:15px;letter-spacing:-.005em}
.lo-nm.done{color:var(--muted);text-decoration:line-through}
.lo-why{font-size:12.5px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lo-pct{font-family:var(--font-head);font-weight:700;font-size:13.5px;color:var(--muted);min-width:36px;text-align:right}
.lo-body{display:none;padding:0 14px 13px 38px}
.lo.open .lo-body{display:block}
.lo-sec{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);font-weight:700;padding:9px 0 3px}
.lo-acts{padding-top:11px}
/* the add bar, inside a full-bleed card, sets its own margin */
.card.flush > .addbar{margin:0;padding:11px 12px;border-top:1px solid var(--border-soft)}
/* 2.8.7: at the top of the list. The line comes from the row below (.lo, .idea-row); the empty-state notice has none */
.card.flush > .addbar.above{border-top:0}
.card.flush > .addbar.above + .empty{border-top:1px solid var(--border-soft)}
.card.pad-s > .addbar.above{margin:0 0 4px}
/* 2.8.7: in Goals, Tasks and Ideas, the space the «Ideas» label (now removed) left between the tabs and the box */
#lpane.with-gap{padding-top:28px}
/* ideas */
.idea-row{display:flex;align-items:flex-start;gap:10px;padding:13px 14px;cursor:pointer;border-top:1px solid var(--border-soft)}
.idea-row:first-child{border-top:0}
.idea-row:active{background:var(--olive-bg)}
.idea-g{color:var(--olive);font-size:16px;flex:0 0 auto;margin-top:1px;display:flex}
.idea-t{flex:1;min-width:0;font-size:14.5px}
/* archived: what it turned into, with its destination's glyph */
.idea-mark{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;font-size:12.5px;
  font-weight:600;color:var(--muted);white-space:nowrap}
.idea-mark .glyph{color:var(--olive);font-size:15px}
.idea-row .note-back{flex:0 0 auto;margin:-2px -4px 0 2px}
/* the reason it was archived with: below the text in the list, and at normal size in its sheet */
.idea-grp{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);font-weight:700;padding:10px 2px 5px}
.idea-reason{display:block;font-size:12.5px;color:var(--faint);margin-top:3px;line-height:1.4}
/* the screen of an archived idea: to read and tap, with no frame and no big button */
.idea-txt{font-size:16.5px;font-weight:600;line-height:1.4;padding:0 2px 9px}
.idea-reason.bigger{display:block;font-size:13.5px;color:var(--muted);padding:0 2px 10px;margin-top:-4px}
.idea-line{display:flex;align-items:center;gap:12px;padding:0 2px 4px;flex-wrap:wrap}
.idea-link{border:none;background:none;color:var(--olive);font-family:var(--font-body);font-weight:700;
  font-size:13.5px;cursor:pointer;display:inline-flex;align-items:center;gap:6px;padding:6px 0}
.idea-link .glyph{font-size:15px}
@media(max-width:430px){.seg button{font-size:11.5px;padding:8px 4px}}

/* ---------- addbar ---------- */
.addbar{display:flex;gap:8px;margin-top:13px}
.addbar input{flex:1;min-width:0;border:1px solid var(--border);border-radius:11px;padding:10px 12px;font-size:16px;background:var(--surface);color:var(--text)}
.addbar input:focus{outline:none;border-color:var(--olive-soft)}
/* 2.8.7: the add box of Goals, Tasks, Ideas and the goal's sheet (addBox). 2.8.99: also the Review and
   Settings; it is the add box of the whole app (the separate «+» button, .add-go, no longer exists).
   Empty: cream tone and a + on the left. With text: it lightens, olive border, and the + crosses the box,
   spins and becomes the add arrow (pointing down, to the list) on olive. No JS: :placeholder-shown tells if there's text. */
.add-box{position:relative;flex:1;min-width:0}
.add-box input{width:100%;border-color:transparent;background:var(--surface-2);padding-left:40px;
  transition:padding .2s ease,background-color .18s,border-color .18s}
.add-box input::placeholder{color:var(--faint)}
.add-box input:not(:placeholder-shown){background:var(--surface);border-color:var(--olive-soft);padding-left:12px;padding-right:46px}
/* a single border, as in the mockup: focus is shown by the olive border instead of the accessibility.css ring */
.addbar .add-box input:focus-visible{outline:none;border-color:var(--olive)}
.ca-btn{position:absolute;top:50%;left:6px;width:30px;height:30px;margin-top:-15px;border:none;border-radius:9px;padding:0;
  background:transparent;color:var(--olive);cursor:text;
  transition:left .28s cubic-bezier(.5,0,.2,1),background-color .2s .08s,color .2s .08s}
.add-box input:not(:placeholder-shown) + .ca-btn{left:calc(100% - 36px);background:var(--olive-fill);color:var(--on-olive);text-shadow:var(--on-olive-sombra);cursor:pointer}
:root[data-theme="dark"] .add-box input:not(:placeholder-shown) + .ca-btn{color:#17191A}
.ca-btn .glyph{position:absolute;left:50%;top:50%;width:17px;height:17px;margin:-8.5px 0 0 -8.5px;
  transition:opacity .2s,transform .28s cubic-bezier(.5,0,.2,1)}
.ca-btn .ca-arrow{opacity:0;transform:rotate(-90deg);stroke-width:2.4}
.add-box input:not(:placeholder-shown) + .ca-btn .ca-plus{opacity:0;transform:rotate(90deg)}
.add-box input:not(:placeholder-shown) + .ca-btn .ca-arrow{opacity:1;transform:none}
/* 2.8.99: with the list above the box (Settings), the arrow points up; it spins the same way, a quarter turn */
.add-box.upward .ca-btn .ca-arrow{transform:rotate(90deg)}
.add-box.upward input:not(:placeholder-shown) + .ca-btn .ca-arrow{transform:rotate(180deg)}
/* 2.8.43: in the goal's sheet the + is just a drawing (the tap goes through to the box) and on typing it fades out
   without crossing it */
.add-box.no-arrow .ca-btn{pointer-events:none;transition:opacity .2s}
.add-box.no-arrow input:not(:placeholder-shown){padding-right:12px}
.add-box.no-arrow input:not(:placeholder-shown) + .ca-btn{left:6px;background:transparent;opacity:0}

/* 2.8.75: archived projects. On the home page, collapsed at the end; inside, a notice at the top */
.lp-arch-tog{display:flex;align-items:center;gap:6px;width:100%;margin:14px 0 8px;padding:6px 2px;border:none;background:none;cursor:pointer;
  font-family:var(--font-head);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--faint);text-align:left}
.lp-arch-tog .glyph{font-size:14px;transition:transform .18s}
.lp-arch-tog.open .glyph{transform:rotate(180deg)}
.lp-arch-n{font-weight:600;letter-spacing:0}
.lp-row.lp-arch{background:transparent;box-shadow:none;border-style:dashed}
.lp-row.lp-arch .lp-mono{opacity:.55;filter:grayscale(.6)}
.lp-row.lp-arch .lp-nm{color:var(--muted);font-size:16px}
.lp-nm small{display:block;font-family:var(--font-body);font-size:11.5px;font-weight:500;letter-spacing:0;color:var(--faint);margin-top:1px}
.lp-archived{display:flex;align-items:center;gap:12px;background:var(--surface-2);border-radius:var(--radius-s);padding:11px 12px 11px 14px;margin:-6px 0 16px}
.lp-archived-t{flex:1;min-width:0;font-size:12.5px;line-height:1.45;color:var(--muted)}
.lp-archived-t b{display:block;color:var(--text);font-weight:700}
