/* Pepper web app (Laravel): one responsive layout.
   Wide screens: sidebar. Phones: bottom tab bar with Pepper in the middle (installable as an app). */
html.big-text { font-size: 19px; }
html.big-text body { font-size: 19px; }
body.app { min-height: 100vh; }
.app .shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.app .main { padding: 24px 32px 120px; min-width: 0; max-width: 1100px; }
.app .nav .nav-group { margin: 16px 12px 4px; font-size: .78rem; font-weight: 600; color: #9FB0AB; }
.app .tabbar { display: none; }
.app .page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.app .page-head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.app .page-head p { color: var(--muted); margin-top: 4px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 18px; }
.card + .card, .section + .section { margin-top: 18px; }
.section h2 { font-size: 1.15rem; margin: 22px 0 10px; display: flex; justify-content: space-between; align-items: baseline; }
.section h2 a { font: 600 .9rem var(--font-body); text-decoration: none; }
.flash { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--herb-soft); color: var(--herb-dark); font-weight: 600; }
.flash.bad { background: var(--chili-soft); color: #8E2C23; }

/* task rows */
.app .task { grid-template-columns: auto 1fr auto; }
.app .tick { width: 34px; height: 34px; border-radius: 10px; position: relative; }
.app .tick::after { content: ""; position: absolute; inset: -8px; }
.app .tick svg { width: 19px; height: 19px; }
.app .task.done .tick, .app .task.just-done .tick { background: var(--herb); border-color: var(--herb); }
.app .task.just-done .tick svg { opacity: 1; }
.app .task.just-done .task-title { text-decoration: line-through; color: var(--muted); }
.app .row-actions button { width: 40px; height: 40px; }
.task-meta form { display: inline; }

/* setup code dialog on admin */
.code-box { margin: 18px 0 6px; padding: 18px; text-align: center; border-radius: var(--r-md); background: var(--salt); border: 1px dashed var(--herb);
  font: 700 2.4rem/1 var(--font-display); letter-spacing: .14em; }
.inline-form { display: inline; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* chat panel position on the web */
.app .pepper { position: fixed; right: 20px; bottom: 20px; z-index: 50; }
.app .pepper.no-launch .pepper-launch { display: none; }

/* phones */
@media (max-width: 860px) {
  .app .shell { display: block; }
  .app .sidebar { display: none; }
  .app .main { padding: 14px 16px 120px; }
  .app .tabbar { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .app .tabbar a, .app .tabbar .tab-pepper { text-decoration: none; }
  .app .pepper.is-open { left: 0; right: 0; bottom: 0; top: 0; display: flex; align-items: flex-end; background: rgba(30,43,47,.35); }
  .app .pepper-panel { width: 100%; height: 84vh; border-radius: 18px 18px 0 0; animation: pSheet .55s cubic-bezier(.16,1.22,.4,1); }
  .app .pepper:not(.is-open) .pepper-launch { display: none; }
  .app .snack { position: fixed; bottom: 100px; }
  .app .admin-tools input.filter { min-width: 0; flex: 1; }
}
@media (min-width: 861px) {
  .app .snack { position: fixed; left: auto; right: 24px; bottom: 24px; width: 360px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.seg a { text-align: center; text-decoration: none; padding: 8px 6px; border-radius: 8px; font: 600 .88rem var(--font-body); color: var(--muted); }
.seg a[aria-pressed="true"] { background: var(--paper); color: var(--pepper); box-shadow: 0 1px 2px rgba(30,43,47,.12); }
.chip-row a { flex: none; border: 1px solid var(--line); background: var(--paper); border-radius: 18px; padding: 7px 13px; font: 600 .86rem var(--font-body); color: var(--pepper); text-decoration: none; }
.chip-row a[aria-pressed="true"] { background: var(--pepper); border-color: var(--pepper); color: #fff; }
.app .chip-row { margin-left: 0; margin-right: 0; padding-left: 0; }
.app .sum-row { margin-top: 14px; }
.app .msg-card { margin-bottom: 14px; }
.app .next-up { margin-bottom: 0; }
.person-row { text-decoration: none; color: inherit; }

/* task details */
button.task-title { all: unset; cursor: pointer; display: block; font: inherit; font-weight: 600; color: var(--pepper); }
button.task-title:hover { text-decoration: underline; }
button.task-title:focus-visible { outline: 2px solid var(--herb); outline-offset: 2px; border-radius: 4px; }
.info-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin-top: 14px; }
.info-list dt { color: var(--muted); font-size: .88rem; }
.info-list dd { margin: 0; font-weight: 600; }
.info-list dt.empty, .info-list dd.empty { display: none; }
.app .tick:disabled { opacity: .35; cursor: not-allowed; }
/* someone else's open task: no box, only that person can tick it */
.app .task:not(.done) .tick:disabled { visibility: hidden; }
.list-row svg { display: inline-block; width: 20px; height: 20px; vertical-align: -4px; margin-right: 6px; }
.pm.bot { position: relative; }
.pm-say { border: 0; background: none; cursor: pointer; font-size: .9rem; margin-left: 6px; padding: 2px 4px; border-radius: 6px; opacity: .7; }
.pm-say:hover, .pm-say:focus-visible { opacity: 1; background: var(--salt); }
/* phones: edit and delete stay on the right of the task, not on a line of their own */
@media (max-width: 860px) {
  .app .task { grid-template-columns: auto 1fr auto; gap: 10px; }
  .app .task .row-actions { grid-column: auto; display: flex; flex-direction: column; gap: 2px; }
  .app .row-actions button { width: 34px; height: 34px; }
}

/* top bar with the bell; on phones it is an app bar with Pepper's name */
.app .topbar { display: flex; justify-content: flex-end; align-items: center; margin: -6px 0 6px; }
.app .topbar-brand { display: none; text-decoration: none; color: var(--pepper); }
.bell .badge { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--chili); color: #fff;
  font: 700 .72rem/20px var(--font-body); text-align: center; border: 2px solid var(--paper); }
@media (prefers-reduced-motion: no-preference) { .bell .badge { animation: bellPop .5s cubic-bezier(.2,1.6,.4,1); } }
@keyframes bellPop { from { transform: scale(0); } to { transform: scale(1); } }
.alerts-dlg { width: min(440px, calc(100% - 24px)); max-height: 80vh; padding: 0; }
.alerts-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 8px; }
.alerts-head h2 { font-size: 1.2rem; }
.alert-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.alert-row:hover, .alert-row:focus-visible { background: var(--salt); }
.alert-row.is-new { background: var(--herb-soft); }
.alert-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--salt); }
.alert-ic svg { width: 18px; height: 18px; }
.alert-row.late .alert-ic { background: var(--chili-soft); color: #8E2C23; }
.alert-row.soon .alert-ic { background: #FBEFD9; color: #9A6413; }
.alert-txt { font-weight: 600; font-size: .94rem; }
.alert-txt small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.new-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--chili); }
.alerts-dlg .empty { padding: 18px; }
@media (max-width: 860px) {
  .app .topbar { position: sticky; top: 0; z-index: 30; justify-content: space-between; margin: -14px -16px 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
    background: rgba(244, 245, 242, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .app .topbar-brand { display: flex; align-items: center; gap: 8px; }
  .app .topbar .bell { width: 40px; height: 40px; }
  .alerts-dlg { margin: auto auto 0; width: 100%; max-width: none; border-radius: 18px 18px 0 0; }
}

/* ===== compact, app-like layout (2026-11-05) ===== */
/* laptop: one calm centre column instead of the full width; the bell sits beside the page title */
@media (min-width: 861px) {
  .app .main { width: 100%; max-width: 1100px; justify-self: center; padding: 26px 32px 120px; position: relative; }
  .app .topbar { position: absolute; top: 26px; right: 32px; margin: 0; z-index: 5; }
  .app .page-head { padding-right: 58px; }
  .app .bell { width: 42px; height: 42px; }
}
/* phones: smaller type and spacing so more fits on one screen, like a native app */
@media (max-width: 860px) {
  html:not(.big-text) { font-size: 15px; }
  .app .main { padding: 12px 16px 110px; }
  .app .topbar { margin: -12px -14px 10px; padding: calc(8px + env(safe-area-inset-top)) 14px 8px; }
  .app .topbar-brand .brand-name { font-size: 1.1rem; }
  .app .topbar .brand-mark { width: 30px; height: 30px; }
  .app .topbar .bell { width: 38px; height: 38px; border-radius: 12px; }
  .app .page-head { margin-bottom: 10px; gap: 8px; }
  .app .page-head h1 { font-size: 1.55rem; }
  .app .page-head p.muted { font-size: .88rem; margin: 0; }
  .app .page-head .btn { min-height: 40px; padding: 0 14px; font-size: .92rem; border-radius: 12px; }
  .app .page-head .btn svg { width: 18px; height: 18px; }
  .msg-card { padding: 10px 12px; gap: 10px; border-radius: 12px; margin-bottom: 10px; }
  .msg-card p { font-size: .95rem; }
  .msg-card .avatar { width: 32px; height: 32px; font-size: .72rem; }
  .next-up { padding: 13px 15px; border-radius: 14px; }
  .next-up .when { font-size: .82rem; }
  .next-up h3 { font-size: 1.05rem; margin-top: 3px; }
  .app .sum-row { margin-top: 10px; gap: 8px; }
  .sum-card { padding: 10px 12px; border-radius: 14px; }
  .sum-card b { font-size: 1.4rem; }
  .section h2, .m-section h2 { font-size: 1rem; margin: 16px 0 8px; }
  .card { padding: 2px 12px; border-radius: 14px; }
  .app .task { padding: 10px 0; gap: 10px; }
  .app .tick { width: 28px; height: 28px; border-radius: 8px; }
  .task-title, button.task-title { font-size: .98rem; }
  .task-meta { gap: 6px; margin-top: 4px; }
  .task-dates { font-size: .8rem; }
  .app .row-actions button { width: 30px; height: 30px; }
  .app .row-actions svg { width: 16px; height: 16px; }
  .meeting { padding: 10px 0; }
  .app .tabbar { padding-top: 6px; }
}
/* phones: a little air above Pepper's top bar, and more under the phone's own status bar when installed */
@media (max-width: 860px) {
  .app .topbar { padding: calc(16px + env(safe-area-inset-top)) 16px 12px; border-bottom-color: rgba(30, 43, 47, .07); }
  .app .topbar-brand { gap: 10px; }
}

/* welcome tips: a sheet from the bottom on phones, a card in the middle on laptops */
.app .intro { position: fixed; z-index: 80; }
.intro-hello { color: var(--herb-dark) !important; font-weight: 700; margin: 0 0 4px !important; }
.intro-card p { line-height: 1.5; }
@media (min-width: 861px) {
  .app .intro { align-items: center; justify-content: center; }
  .app .intro-card { width: min(460px, calc(100% - 40px)); border-radius: 24px; }
}

/* people without Pepper: four tabs, no Pepper in the middle */
@media (max-width: 860px) { .app .tabbar.no-pepper { grid-template-columns: repeat(4, 1fr); } }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check-row input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--herb); }

/* ---------- Pepper composer like WhatsApp: 📎, text, mic or send; recording bar ---------- */
.pepper-form { align-items: center; gap: 6px; }
.pepper-form .pepper-clip { flex: none; background: none; color: var(--pepper); width: 40px; }
.pepper-form .pepper-clip svg { width: 23px; height: 23px; }
.pepper-form .pepper-clip[aria-expanded="true"] { background: var(--salt); }
.pepper-form .pepper-send { display: none; flex: none; }
.pepper-form.typing .pepper-send, .pepper-form.recording .pepper-send { display: grid; }
.pepper-form.typing .pepper-mic, .pepper-form.recording .pepper-mic, .pepper-form.recording .pepper-clip { display: none; }
.pepper-form.recording .pepper-rec { background: var(--paper); border: 1px solid var(--line); padding: 0 4px; gap: 8px; }
.pepper-rec .rec-del, .pepper-rec .rec-pause { flex: none; width: 40px; height: 40px; background: none; color: var(--muted); }
.pepper-rec .rec-del:hover { color: var(--chili); }
.pepper-rec .rec-pause { color: var(--chili); border: 2px solid var(--chili); width: 36px; height: 36px; }
.pepper-rec .rec-pause svg { width: 16px; height: 16px; }
.rec-wave { flex: 1 1 0; width: 0; min-width: 0; height: 32px; color: var(--pepper); opacity: .75; }
.pepper-form.rec-paused .rec-dot { animation: none; opacity: .35; }
.pepper-form.rec-paused .rec-wave { opacity: .35; }
.pepper-panel { position: relative; }
.pepper-attach { position: absolute; left: 12px; bottom: 68px; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 28px rgba(30,43,47,.18); animation: pop .2s; }
.pepper-attach[hidden] { display: none; }
.pepper-attach label { display: grid; justify-items: center; gap: 6px; min-width: 64px; padding: 6px 2px; border-radius: 12px; cursor: pointer; font: 600 .78rem var(--font-body); color: var(--pepper); }
.pepper-attach label:hover, .pepper-attach label:focus-within { background: var(--salt); }
.pepper-attach label > span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.pepper-attach label > span svg { width: 22px; height: 22px; }
.pa-doc > span { background: #6D5BD0; } .pa-photo > span { background: #2E7FD0; } .pa-cam > span { background: #C2453A; } .pa-audio > span { background: #D2802B; }
.pepper-file { display: flex; align-items: center; gap: 8px; margin: 0 12px; padding: 8px 10px; border-radius: 12px; background: var(--salt); font-size: .88rem; }
.pepper-file[hidden] { display: none; }
.pf-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pf-x { border: 0; background: none; width: 32px; height: 32px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.pf-x svg { width: 16px; height: 16px; }

/* files and voice notes inside chat bubbles */
.pm-file img { display: block; max-width: 100%; max-height: 220px; border-radius: 10px; margin-bottom: 6px; }
.pm-file audio { display: block; width: 230px; max-width: 100%; height: 38px; margin-bottom: 4px; }
.pm-file small { display: block; opacity: .8; font-size: .78rem; }
.pm-doc { display: inline-block; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.18); color: inherit; font-weight: 600; text-decoration: none; margin-bottom: 6px; word-break: break-word; }
.pm.bot .pm-doc { background: var(--salt); color: var(--pepper); }
.pm-links { display: grid; gap: 6px; margin-top: 8px; }
.pm > span { display: block; white-space: pre-wrap; }
.pm time { display: block; font-size: .7rem; opacity: .6; margin-top: 4px; text-align: right; }
.pm[data-chat] { cursor: pointer; }
.pm-hide { display: block; margin-top: 6px; border: 0; border-radius: 8px; padding: 5px 9px; background: var(--paper); color: var(--chili); font: 600 .78rem var(--font-body); cursor: pointer; border: 1px solid var(--line); }
.pm-older { align-self: center; border: 1px solid var(--line); background: var(--paper); border-radius: 16px; padding: 6px 12px; font: 600 .8rem var(--font-body); color: var(--herb-dark); cursor: pointer; }
.pepper-readonly { display: flex; flex-direction: column; gap: 8px; max-height: none; background: var(--salt); }

/* ---------- task progress: ticks, stage, line, OK / Redo / Undo ---------- */
.task .tk { width: 18px; height: 11px; color: #8E9C98; flex: none; vertical-align: -1px; margin-right: 3px; }
.task .tk.done { color: var(--herb); } .task .tk.read { color: #2F8FE0; }
.task .stage { display: inline-flex; align-items: center; font: 600 .78rem var(--font-body); color: var(--muted); }
.task .due-l { font: 600 .8rem var(--font-body); color: var(--pepper); }
.task .due-l.late { color: var(--chili); }
.task.is-late { box-shadow: none; }
.t-line { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 6px; }
.t-line i { display: block; height: 100%; border-radius: 2px; background: #8E9C98; }
.t-line i.done { background: var(--herb); } .t-line i.read { background: #2F8FE0; }
.redo-note { margin: 6px 0 0; background: var(--chili-soft); color: #8E2C23; border-radius: 8px; padding: 5px 8px; font-size: .84rem; }
.redo-note:empty { display: none; }
.unseen { display: inline-block; margin-top: 6px; font: 700 .74rem var(--font-body); color: #7A5410; background: var(--saffron-soft); border-radius: 6px; padding: 1px 6px; }
.unseen.late { color: #8E2C23; background: var(--chili-soft); }
.ok-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.ok-row button { border-radius: 10px; padding: 7px; font: 700 .86rem var(--font-body); border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.ok-row .ok { background: #2F8FE0; border-color: #2F8FE0; color: #fff; }
.ok-row .redo { color: var(--chili); }
.undo-l { display: inline-block; margin-top: 6px; border: 0; background: none; color: var(--chili); font: 600 .8rem var(--font-body); padding: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.t-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.t-steps li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; font-size: .9rem; color: var(--muted); }
.t-steps li > span { width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; border: 2px solid var(--line); }
.t-steps li.on { color: var(--pepper); } .t-steps li.on > span { background: var(--herb); border-color: var(--herb); }
.t-steps li.on.b > span { background: #2F8FE0; border-color: #2F8FE0; }
.t-steps small { display: block; font-size: .78rem; color: var(--muted); }
.note-i { background: var(--herb-soft); color: var(--herb-dark); border-radius: 9px; padding: 7px 9px; font-size: .88rem; margin-top: 10px; }
.note-i:empty, p.note-i[hidden] { display: none; }
.coming { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.coming small { display: block; color: var(--muted); }
.late-head { color: var(--chili) !important; }
/* calendar on Tasks */
.cal-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 2px 8px; font-family: var(--font-display); }
.cal-head a { text-decoration: none; color: var(--pepper); font-size: 1.3rem; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal .wd { font: 600 .72rem var(--font-body); color: var(--muted); padding: 2px 0; }
.cal a { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px; text-decoration: none; color: var(--pepper); font: 600 .9rem var(--font-body); background: var(--salt); }
.cal a.today { box-shadow: inset 0 0 0 2px var(--herb); }
.cal a[aria-current="date"] { background: var(--herb); color: #fff; }
.cal .dots { position: absolute; bottom: 4px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; }
.cal .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--herb); }
.cal .dots i.m { background: var(--saffron); }
.cal a[aria-current="date"] .dots i { background: #fff; }
.cal-key { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); margin-top: 8px; }
.cal-key span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--herb); margin-right: 5px; }
.cal-key span.m::before { background: var(--saffron); }
.login-logo { display: block; width: 190px; max-width: 65%; height: auto; margin: 0 auto 18px; }
@media (min-width: 981px) { .login-logo { display: none; } }
.task.done.waiting .task-title { text-decoration: none; color: var(--pepper); }
.act-edit { display: grid; gap: 8px; padding: 10px 12px; }
.act-edit label { display: grid; gap: 3px; font: 600 .78rem var(--font-body); color: var(--muted); }
.act-edit input, .act-edit select { border: 1px solid var(--line); border-radius: 9px; padding: 7px 8px; font: 500 .9rem var(--font-body); color: var(--pepper); background: var(--paper); }

/* ---------- Messages (chat like WhatsApp) ---------- */
.app .tabbar { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 860px) { .app .tabbar.no-pepper { grid-template-columns: repeat(5, 1fr); } }
.tabbar a { position: relative; }
.tabbar .tab-msg .badge { position: absolute; top: 0; right: calc(50% - 20px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--chili); color: #fff; font: 700 10px/17px var(--font-body); }
img.avatar.has-photo { object-fit: cover; padding: 0; }
.chat-list { padding: 2px 10px; }
.chat-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.chat-row:last-child { border-bottom: 0; }
.chat-row .avatar { width: 40px; height: 40px; }
.chat-row b { display: block; font-weight: 600; }
.chat-row small { display: flex; align-items: center; gap: 4px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat-row .tk { width: 17px; height: 11px; color: #8E9C98; flex: none; } .chat-row .tk.read { color: #2F8FE0; }
.chat-side { display: grid; justify-items: end; gap: 3px; font-size: .74rem; color: var(--muted); }
.cnt { min-width: 19px; height: 19px; border-radius: 10px; background: var(--herb); color: #fff; font: 700 11px/19px var(--font-body); text-align: center; padding: 0 5px; }
.chat { display: flex; flex-direction: column; height: calc(100dvh - 150px); min-height: 380px; background: #ECE5DD; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
.chat-head small { display: block; color: var(--muted); font-size: .8rem; }
.back-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; text-decoration: none; color: var(--pepper); font-size: 1.3rem; }
.thread { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; background-image: radial-gradient(rgba(30,43,47,.05) 1px, transparent 1px); background-size: 14px 14px; }
.thread > * { flex-shrink: 0; }
.thread .lock { align-self: center; background: #FFF3C4; color: #6B5A1E; font-size: .76rem; border-radius: 8px; padding: 4px 10px; text-align: center; }
.thread .daysep { align-self: center; background: #E1F2FB; color: var(--muted); font-size: .74rem; border-radius: 8px; padding: 2px 10px; }
.bub { max-width: 80%; padding: 6px 9px 4px; border-radius: 10px; background: var(--paper); align-self: flex-start; box-shadow: 0 1px .5px rgba(0,0,0,.12); font-size: .95rem; }
.bub.me { background: #DDF2E9; align-self: flex-end; }
.bub img, .bub video { display: block; max-width: 100%; max-height: 260px; border-radius: 8px; margin-bottom: 4px; }
.bub audio { display: block; width: 230px; max-width: 100%; height: 36px; }
.bub .txt { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.bub .via { display: block; font-size: .72rem; color: var(--herb-dark); font-weight: 700; }
.bub .m { display: flex; justify-content: flex-end; align-items: center; gap: 3px; font-size: .7rem; color: var(--muted); margin-top: 2px; }
.bub .tk { width: 17px; height: 11px; color: #8E9C98; } .bub .tk.read { color: #2F8FE0; }
.bub .pm-doc { display: inline-block; padding: 8px 10px; border-radius: 9px; background: rgba(30,43,47,.06); color: var(--pepper); font-weight: 600; text-decoration: none; margin-bottom: 4px; }
.chat-file { display: flex; justify-content: space-between; gap: 8px; padding: 6px 12px; background: var(--salt); font-size: .86rem; font-weight: 600; }
.chat-file button { border: 0; background: none; cursor: pointer; }
.chat-bar { position: relative; background: var(--paper); }
.chat-attach { left: 10px; bottom: 64px; grid-template-columns: repeat(5, 1fr); }
.pa-video > span { background: #2E7A66; }
@media (max-width: 860px) { .chat { height: calc(100dvh - 190px); margin: 0 -4px; } }
.profile-edit { display: grid; justify-items: center; gap: 6px; padding: 6px 0 10px; }
.photo-pick { position: relative; cursor: pointer; }
.avatar.big { width: 88px; height: 88px; font-size: 1.8rem; }
.photo-pick .cam { position: absolute; right: -2px; bottom: 2px; width: 32px; height: 32px; border-radius: 50%; background: var(--herb); display: grid; place-items: center; font-size: .9rem; border: 3px solid var(--paper); }
.push-nudge { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--saffron-soft); border: 1px solid #EFD9AE; border-radius: 14px; padding: 10px 12px; margin: 0 0 12px; font-size: .9rem; }
.push-nudge[hidden], [data-push-on][hidden] { display: none; }

/* ---------- sign in (2026-11-06): logo in the middle, one clean card; dark brand panel on wide screens ---------- */
.gate { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr; background: var(--salt); }
.gate-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 16px 24px; }
.gate-logo { display: block; width: 210px; max-width: 62vw; height: auto; margin: 0 auto 22px; }
.gate-card {
  width: 100%; max-width: 420px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px 24px 22px; box-shadow: 0 1px 0 rgba(30,43,47,.04), 0 24px 48px -28px rgba(30,43,47,.35);
}
.gate-card h1 { font-size: 1.6rem; text-align: center; letter-spacing: -.01em; }
.gate-card .sub { text-align: center; color: var(--muted); margin-top: 6px; }
.gate-card .otp { justify-content: center; gap: 8px; margin-top: 22px; }
.gate-card .otp input { max-width: 50px; height: 58px; border-radius: 12px; background: #FAFBFA; transition: border-color .15s, box-shadow .15s; }
.gate-card .otp input:focus { background: var(--paper); }
.gate-btn { margin-top: 20px; min-height: 52px; border-radius: 12px; font-size: 1.02rem; }
.gate-card .flash { margin: 0 0 16px; text-align: center; }
.gate-notes { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.gate-notes li { position: relative; padding-left: 18px; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.gate-notes li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--herb); }
.gate-foot { margin-top: 22px; color: var(--muted); font-size: .82rem; text-align: center; }
.gate-side { display: none; }
@media (max-width: 360px) { .gate-card .otp { gap: 6px; } .gate-card .otp input { height: 52px; } }
@media (min-width: 981px) {
  .gate { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .gate-side { display: flex; background: var(--pepper); color: #fff; position: relative; overflow: hidden; }
  .gate-side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 56px solid rgba(255,255,255,.04); }
  .gate-side-in { margin: auto; max-width: 440px; padding: 48px; position: relative; z-index: 1; }
  .gate-mark { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 30px; background: #fff; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); margin-bottom: 30px; }
  .gate-mark img { width: 84px; height: 84px; object-fit: contain; }
  .gate-side h2 { color: #fff; font-size: 2.2rem; line-height: 1.12; max-width: 14ch; }
  .gate-side p { color: #C3CFCB; margin-top: 14px; font-size: 1.05rem; line-height: 1.55; max-width: 38ch; }
  .gate-logo { width: 230px; }
}

/* ---------- Meetings page (2026-11-06): add, change, cancel, done per person ---------- */
.mcard { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; scroll-margin-top: 80px; }
.mcard:target { border-color: var(--herb); box-shadow: 0 0 0 3px var(--herb-soft); }
.mc-top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.mc-time { background: var(--herb-soft); color: var(--herb-dark); border-radius: 12px; padding: 8px 10px; font: 700 .95rem var(--font-display); white-space: nowrap; }
.mc-main b { display: block; font-size: 1rem; }
.mc-main small { display: block; color: var(--muted); font-size: .84rem; margin-top: 3px; }
.mc-note { margin: 10px 0 0; background: var(--salt); border-radius: 10px; padding: 8px 10px; font-size: .88rem; color: var(--muted); }
.mc-people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mc-p { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: #EEF2EF; color: var(--muted); }
.mc-p.ok { background: var(--herb-soft); color: var(--herb-dark); font-weight: 600; }
.mc-p svg { width: 12px; height: 12px; }
.mc-ask { margin: 10px 0 0; background: var(--saffron-soft); color: #6E4810; border-radius: 10px; padding: 8px 10px; font-size: .86rem; font-weight: 600; }
.mc-foot { margin-top: 12px; }
.mc-foot .meet-done { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; font-size: .88rem; }
.mc-foot .meet-done svg { width: 14px; height: 14px; }
.mcard.is-cancelled { opacity: .6; }
.mcard.is-cancelled .mc-main b { text-decoration: line-through; }
.mcard .icon-btn svg { width: 17px; height: 17px; }
.meet-dlg .flabel { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pick-chip { position: relative; cursor: pointer; }
.pick-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick-chip span { display: inline-block; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 13px; font: 500 .88rem var(--font-body); color: var(--pepper); }
.pick-chip input:checked + span, .pick-chip.as-btn[aria-pressed="true"] span { background: var(--pepper); border-color: var(--pepper); color: #fff; }
.pick-chip input:focus-visible + span, .pick-chip.as-btn:focus-visible span { outline: 2px solid var(--herb); outline-offset: 2px; }
.pick-chip.as-btn { border: 0; background: none; padding: 0; font: inherit; }
.meet-dlg .hint { font-size: .84rem; color: var(--muted); margin: 14px 0 0; line-height: 1.45; }
.page-head .btn svg { width: 16px; height: 16px; }

/* dialogs with a third, "danger" button (Stop this task, Cancel meeting): on phones it gets its own full-width row */
@media (max-width: 560px) {
  dialog .dialog-actions { flex-wrap: wrap; }
  dialog .dialog-actions > .btn { flex: 1 1 0; white-space: nowrap; }
  dialog .dialog-actions > .btn:first-child:nth-last-child(3) { flex-basis: 100%; order: 3; }
}

/* phone: an open chat fills the whole screen, like WhatsApp (no app header, no bottom bar) */
@media (max-width: 860px) {
  body:has(#chat) .topbar, body:has(#chat) .tabbar, body:has(#chat) .pepper-launch, body:has(#chat) .flash { display: none !important; }
  body:has(#chat) .chat { position: fixed; inset: 0 0 auto; top: var(--vv-top, 0px); z-index: 40; height: var(--vv-h, 100dvh); min-height: 0; margin: 0; border: 0; border-radius: 0; }
  body:has(#chat) { overflow: hidden; overscroll-behavior: none; }
  body:has(#chat) .chat-bar { flex: none; }
  body:has(#chat) .chat-head { padding: calc(8px + env(safe-area-inset-top)) 10px 8px; }
  body:has(#chat) .chat-bar { padding-top: 10px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
.photo-ways { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.photo-ways .btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.photo-ways .btn svg { width: 16px; height: 16px; }

/* ---------- 2026-11-09: meetings diary cards ---------- */
.meet-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 6px; }
.meet-bar .seg { flex: none; min-width: 210px; }
.meet-bar .search { flex: 1; min-width: 180px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; background: var(--paper); font: inherit; }
.day-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 22px 2px 8px; }
.day-head b { font: 700 1.35rem var(--font-display); }
.day-head span { color: var(--muted); font-weight: 600; font-size: .95rem; }
.m-list { display: grid; gap: 10px; }
.m-list .mcard { margin: 0; }
.m-day { font-weight: 700; color: var(--muted); font-size: .85rem; margin: 6px 2px -4px; }
.mcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.mtime { font: 700 1.05rem/1 var(--font-display); background: var(--herb-soft); color: var(--herb-dark); border-radius: 12px; padding: 10px 8px 8px; text-align: center; min-width: 62px; }
.mtime small { display: block; font: 600 .7rem var(--font-body); margin-top: 3px; }
.mc h3 { margin: 0; font: 600 1.05rem/1.35 var(--font-body); }
.mc h3 > span:first-child { color: var(--muted); font-weight: 500; }
.mc h3 .out-name { color: var(--pepper); }
.mc h3 .team-name { color: var(--herb-dark); font-weight: 700; }
.mc .about { margin: 3px 0 0; font-size: .95rem; }
.tmeta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 6px; font-size: .84rem; color: var(--muted); }
.mtag { display: inline-flex; align-items: center; gap: 4px; background: var(--salt); border-radius: 999px; padding: 3px 10px; color: var(--pepper); }
.mtag svg { width: 13px; height: 13px; }
.tmeta .moved { color: #8A5A12; font-weight: 600; }
.mc .note { margin-top: 8px; background: var(--salt); border-radius: 10px; padding: 7px 10px; font-size: .88rem; color: var(--muted); }
.mc .ask { margin-top: 8px; background: var(--saffron-soft); color: #6E4810; border-radius: 10px; padding: 7px 10px; font-size: .86rem; font-weight: 600; }
.mc .outc { margin-top: 8px; border-left: 3px solid var(--herb); padding: 3px 10px; font-size: .92rem; }
.mc .outc b { display: block; font-size: .76rem; color: var(--herb-dark); }
.macts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.mcard.is-cancelled { opacity: .65; }
.mcard.is-cancelled .mc h3 { text-decoration: line-through; }
.nh-opt { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; cursor: pointer; }
.nh-opt small { display: block; color: var(--muted); }
.nh-opt input { margin-top: 4px; }
.form-err { background: var(--chili-soft); color: #8E2C23; border-radius: 10px; padding: 8px 10px; font-size: .88rem; }
.h-date { color: var(--muted); font: 600 .9rem var(--font-body); margin-left: 4px; }
.flabel { display: block; font-weight: 600; margin-bottom: 6px; }
.linkish { border: 0; background: none; padding: 4px 0; color: var(--herb-dark); font: 600 .88rem var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .mcard { gap: 10px; padding: 12px; } .mtime { min-width: 54px; padding: 9px 6px 7px; } }

/* bigger headings on Today */
.section > h2 { font-size: 1.22rem; }
.task-title { font-size: 1.02rem; }
.sum-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* task dialog: date + optional time, reminder chip */
#dueFields { margin-top: 10px; }
#dueFields label.sub { display: grid; gap: 4px; font-size: .86rem; color: var(--muted); font-weight: 600; }
.rem-chip, .due-l { display: inline-flex; align-items: center; gap: 4px; }
.rem-chip { background: var(--herb-soft); color: var(--herb-dark); border-radius: 999px; padding: 1px 8px; font-weight: 600; }
.rem-chip svg, .due-l svg { width: 13px; height: 13px; }
.check-row.small { font-size: .86rem; margin-top: 6px; }
.redo-b { color: var(--chili); }

/* bell */
.alerts-head { display: flex; align-items: center; gap: 10px; }
.alerts-head h2 { flex: 1; }
.alert-row.is-new .alert-txt { font-weight: 700; }
.new-dot { background: var(--herb); }

/* ---------- Messages: WhatsApp-style actions ---------- */
.bub, .bub .txt, .rx, .emo button, .emoji-pad button, #chatText { font-family: var(--font-body), "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
.thread { gap: 4px; }
.mrow { display: flex; position: relative; scroll-margin: 80px; }
.mrow.me { justify-content: flex-end; }
.mrow .bub { max-width: 80%; position: relative; align-self: auto; padding-right: 22px; }
.mrow.me .bub { background: #D9FDD3; }
.mrow.hasrx { margin-bottom: 14px; }
.mrow.flash .bub { box-shadow: 0 0 0 3px var(--herb-soft), 0 0 0 5px var(--herb); }
.bub.del .txt { font-style: italic; color: var(--muted); }
.bub .fwd { font-size: .74rem; color: var(--muted); font-style: italic; }
.bub .q { display: block; width: 100%; text-align: left; border: 0; border-left: 4px solid var(--herb); background: rgba(30,43,47,.06); border-radius: 7px; padding: 5px 8px; margin: 2px 0 4px; font: inherit; font-size: .85rem; cursor: pointer; color: var(--pepper); }
.bub .q b { display: block; color: var(--herb-dark); font-size: .78rem; }
.bub .q span { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bub .fcard { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; background: rgba(30,43,47,.06); color: var(--pepper); text-decoration: none; margin-bottom: 4px; }
.bub .fcard svg { width: 26px; height: 26px; color: #C2453A; flex: none; }
.bub .fcard b { display: block; font-size: .9rem; overflow-wrap: anywhere; }
.bub .fcard small { color: var(--muted); font-size: .75rem; }
.bub .m i { font-style: normal; margin-right: 2px; }
.bub .m .st { color: #C99A2E; }
.bub .tk { display: inline-flex; color: #8696A0; }
.bub .tk svg { width: 16px; height: 11px; }
.bub .tk.read { color: #53BDEB; }
.bub .chev { position: absolute; top: 2px; right: 2px; width: 22px; height: 20px; border: 0; border-radius: 0 9px 0 10px; cursor: pointer; color: var(--muted); opacity: 0; display: grid; place-items: center; background: inherit; padding: 0; }
.bub .chev svg { width: 15px; height: 15px; }
.mrow:hover .chev, .mrow:focus-within .chev, .mrow.open .chev { opacity: 1; }
@media (hover: none) { .bub .chev { opacity: .55; } }
.rx { position: absolute; bottom: -14px; right: 10px; background: #fff; border: 1px solid #E9EDEF; border-radius: 999px; padding: 2px 6px; font-size: .9rem; line-height: 1.2; box-shadow: 0 1px 2px rgba(11,20,26,.18); cursor: pointer; }
.mrow:not(.me) .rx { right: auto; left: 12px; }
.bub.edbox { display: grid; gap: 6px; min-width: 240px; padding-right: 9px; }
.bub.edbox textarea { width: 100%; min-height: 60px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; resize: vertical; }
.bub.edbox .r { display: flex; gap: 6px; justify-content: flex-end; }
.msg-pop { position: fixed; z-index: 80; background: #fff; border-radius: 14px; box-shadow: 0 8px 28px -6px rgba(11,20,26,.28), 0 0 0 1px rgba(11,20,26,.05); padding: 6px; min-width: 220px; max-width: calc(100vw - 16px); }
.msg-pop .emo { display: flex; align-items: center; gap: 2px; padding: 4px 6px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.msg-pop .emo.more { flex-wrap: wrap; max-width: 300px; border: 0; margin: 0; }
.msg-pop .emo button { font-size: 1.5rem; line-height: 1; width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: transform .12s; padding: 0; }
.msg-pop .emo button:hover { transform: scale(1.22) translateY(-2px); }
.msg-pop .emo button.on { background: #E9EDEF; }
.msg-pop .emo .plus { font: 600 1.2rem var(--font-body); color: #54656F; background: #F0F2F5; }
.msg-pop .mi { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; padding: 10px 12px; border-radius: 9px; font: 500 .95rem var(--font-body); color: var(--pepper); cursor: pointer; text-align: left; }
.msg-pop .mi:hover, .msg-pop .mi:focus-visible { background: var(--salt); }
.msg-pop .mi svg { width: 19px; height: 19px; color: #54656F; }
.msg-pop .mi.red, .msg-pop .mi.red svg { color: var(--chili); }
@media (prefers-reduced-motion: reduce) { .msg-pop .emo button { transition: none; } }
.pinb { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: #FAFBFA; padding: 7px 12px; font: inherit; font-size: .86rem; cursor: pointer; text-align: left; }
.pinb b { color: var(--herb-dark); font-size: .78rem; }
.pinb span[data-pin-text] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; color: var(--muted); }
.pinb .pin-ic svg { width: 15px; height: 15px; color: var(--muted); }
.ctx { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #F0F2F5; border-top: 1px solid var(--line); }
.ctx > div { flex: 1; min-width: 0; border-left: 4px solid var(--herb); background: #fff; border-radius: 7px; padding: 4px 8px; font-size: .85rem; }
.ctx b { display: block; color: var(--herb-dark); font-size: .78rem; }
.ctx span { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pepper-form .emoji-btn { flex: none; background: none; color: #54656F; width: 38px; }
.pepper-form .emoji-btn svg { width: 23px; height: 23px; }
.pepper-form.recording .emoji-btn { display: none; }
.emoji-pad { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 2px; max-height: 190px; overflow-y: auto; padding: 8px 10px; background: #fff; border-top: 1px solid var(--line); }
.emoji-pad button { border: 0; background: none; font-size: 1.5rem; height: 40px; border-radius: 8px; cursor: pointer; }
.emoji-pad button:hover { background: var(--salt); }
.fwd-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; max-height: 50vh; overflow-y: auto; }
.dialog-actions.stack { flex-direction: column; align-items: stretch; }
.msg-info { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 10px 0 0; font-size: .92rem; }
.msg-info dt { font-weight: 600; } .msg-info dd { margin: 0; color: var(--muted); }
.info-quote { background: #D9FDD3; border-radius: 10px; padding: 8px 10px; margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Pepper: whose Pepper, open in chat, remembers, profile */
.pepper-whose { margin: 8px 12px 0; }
.pepper-whose button { font-size: .82rem; }
.pepper-shared-note { margin: 6px 12px 0; font-size: .78rem; color: var(--muted); }
.pm-chatlink { display: inline-block; font-size: .82rem; font-weight: 600; margin: 2px 0 6px 4px; }
.nav-pepper { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 10px 12px; border-radius: 10px; font: 600 .95rem var(--font-body); color: inherit; cursor: pointer; text-align: left; }
.nav-pepper img { width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.nav-pepper:hover { background: rgba(255,255,255,.08); }
.mem-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.mem-ic svg { width: 22px; height: 22px; color: var(--herb-dark); }
.mem-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.list-row.as-btn { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.btn-lg { min-height: 52px; font-size: 1.02rem; }
.btn-danger svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .mem-row { grid-template-columns: auto minmax(0, 1fr); } .mem-acts { grid-column: 2; justify-content: flex-start; } }

/* ---------- chat files like WhatsApp: document card and full-screen viewer ---------- */
.bub .pimg { display: block; border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: 8px; }
.bub .pimg img { margin-bottom: 4px; }
.wdoc { display: flex; align-items: center; gap: 10px; width: 260px; max-width: 100%; background: rgba(11,20,26,.06); border-radius: 8px; padding: 9px 10px; margin: 2px 0 4px; }
.wdoc-open { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; border: 0; background: none; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.wdoc-open:focus-visible, .wdoc .dlc:focus-visible { outline: 3px solid var(--herb); outline-offset: 2px; border-radius: 6px; }
.ftype { width: 28px; height: 34px; flex: none; border-radius: 3px; color: #fff; font: 700 .5rem/1 var(--font-body); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; clip-path: polygon(0 0, 70% 0, 100% 24%, 100% 100%, 0 100%); }
.ftype.pdf { background: #E5252A; } .ftype.xls { background: #1D6F42; } .ftype.doc { background: #2B579A; } .ftype.ppt { background: #D24726; } .ftype.file { background: #7A8691; }
.ftype.big { width: 56px; height: 68px; font-size: .8rem; padding-bottom: 8px; }
.wdoc .nm { flex: 1; min-width: 0; }
.wdoc .nm b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-weight: 500; font-size: .9rem; line-height: 1.3; }
.wdoc .nm small { display: block; color: var(--muted); font-size: .74rem; margin-top: 2px; }
.wdoc .dlc { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1.5px solid #8696A0; color: #8696A0; display: grid; place-items: center; }
.wdoc .dlc svg { width: 15px; height: 15px; }
.fview { position: fixed; inset: 0; z-index: 120; background: #0B141A; color: #E9EDEF; display: flex; flex-direction: column; }
.fview .ft { display: flex; align-items: center; gap: 8px; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: #202C33; }
.fview .ft .ti { flex: 1; min-width: 0; }
.fview .ft .ti b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem; }
.fview .ft .ti small { color: #8696A0; font-size: .76rem; }
.fview .ft button, .fview .ft a { border: 0; background: none; color: #E9EDEF; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font-size: 1.5rem; text-decoration: none; }
.fview .ft button:hover, .fview .ft a:hover { background: rgba(255,255,255,.08); }
.fview .ft svg { width: 20px; height: 20px; }
.fview .fb { flex: 1; min-height: 0; overflow: auto; display: grid; place-items: center; padding: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.fview .fb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fview .fb.pdf { padding: 0; place-items: stretch; }
.fview .fb.pdf iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.fview .other { max-width: 420px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.fview .other b { overflow-wrap: anywhere; }
.fview .other p { color: #8696A0; margin: 0; }
.sum-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .sum-row.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* "Who gave this task?" */
.give-opts { display: grid; gap: 6px; }
.give-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 9px 11px; cursor: pointer; }
.give-opt small { display: block; color: var(--muted); font-size: .8rem; }
.give-opt:has(input:checked) { border-color: var(--herb); background: var(--herb-soft); }
.field .give-opt { display: flex; margin: 0; font-weight: 400; }
.field .give-opt input { width: 20px; min-width: 20px; height: 20px; min-height: 0; padding: 0; margin: 3px 0 0; flex: none; box-shadow: none; accent-color: var(--herb); }
.give-opt b { display: block; }

/* AM / PM time picker */
.tpick-native { position: absolute !important; opacity: 0; pointer-events: none; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden; }
.tpick { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 8px 12px; font: 600 1rem var(--font-body); color: var(--pepper); cursor: pointer; font-variant-numeric: tabular-nums; text-align: left; }
.tpick::after { content: "▾"; color: var(--muted); }
.tpick.empty { color: var(--muted); font-weight: 500; }
.tpick:disabled { opacity: .5; cursor: default; }
.tsheet { width: min(380px, calc(100vw - 24px)); border: 0; border-radius: 20px; padding: 16px; display: grid; gap: 8px; }
.tsheet:not([open]) { display: none; }
.tsheet .ts-out { font: 700 1.9rem var(--font-display); text-align: center; font-variant-numeric: tabular-nums; }
.tsheet .lbl { font-size: .78rem; font-weight: 700; color: var(--muted); }
.tsheet .ts-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tsheet .ts-hours { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.tsheet .chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 10px; font: 600 .92rem var(--font-body); cursor: pointer; color: var(--pepper); min-height: 40px; }
.tsheet .ts-hours .chip { padding: 8px 0; }
.tsheet .chip[aria-pressed="true"] { background: var(--herb); border-color: var(--herb); color: #fff; }
.tsheet .ts-min { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; font: 600 .92rem var(--font-body); background: var(--paper); }
.tsheet .ts-ap { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 4px; }
.tsheet .ts-ap button { border: 0; background: var(--paper); padding: 12px; font: 700 1.05rem var(--font-body); cursor: pointer; color: var(--pepper); }
.tsheet .ts-ap button[aria-pressed="true"] { background: var(--pepper); color: #fff; }

/* several files before sending, and dropping files in */
.chat-file { display: flex; align-items: center; gap: 8px; }
.cf-list { display: flex; gap: 6px; overflow-x: auto; flex: 1; min-width: 0; padding: 2px 0; }
.cf-chip { display: inline-flex; align-items: center; gap: 6px; flex: none; max-width: 210px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 4px 6px; }
.cf-chip .ftype { width: 20px; height: 24px; font-size: .42rem; padding-bottom: 3px; }
.cf-chip .cf-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.cf-chip .cf-x { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 2px; }
.chat { position: relative; }
.drop-ov { position: absolute; inset: 8px; z-index: 40; border: 3px dashed var(--herb); border-radius: 16px; background: rgba(227,240,236,.94); display: grid; place-content: center; text-align: center; gap: 4px; font: 700 1.1rem var(--font-display); color: var(--pepper); pointer-events: none; }
.drop-ov small { font: 500 .85rem var(--font-body); color: var(--muted); }
/* phones: the message menu arrow is always visible */
@media (hover: none) { .bub .chev { opacity: 1; background: rgba(255,255,255,.7); } }

/* Progress by person (owners and admin, top of Today) */
.pstrip-sec h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg.mini { margin-left: auto; font-size: .8rem; }
.seg.mini .seg-link { padding: 4px 10px; }
.pstrip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.pcard { flex: none; width: 128px; scroll-snap-align: start; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px; display: grid; gap: 4px; justify-items: center; text-align: center; color: var(--pepper); text-decoration: none; }
.pcard:hover { border-color: var(--herb); }
.pcard small { color: var(--muted); font-size: .74rem; line-height: 1.3; }
.pcard .pname { font-size: .95rem; }
.plate { color: var(--chili); font-weight: 700; }
.pring { --c: var(--herb); width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0); display: grid; place-items: center; }
.pring.mid { --c: var(--saffron, #E9A23B); } .pring.low { --c: var(--chili); } .pring.none { --c: var(--line); }
.pring b { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font: 700 .85rem var(--font-display); font-variant-numeric: tabular-nums; }

/* Profile: notifications check */
.ncheck{padding:10px 14px 14px;border-top:1px solid var(--line)}
.ncheck summary{cursor:pointer;font-weight:600;color:var(--pepper);padding:4px 0}
.ncheck ol{margin:6px 0 10px;padding-left:20px;line-height:1.55}
.ncheck p{margin:10px 0 2px}
.field .check-row { display: flex; margin-bottom: 0; }
.field .check-row input[type=checkbox] { width: 20px; min-width: 20px; height: 20px; min-height: 0; padding: 0; margin: 2px 0 0; flex: none; box-shadow: none; }
/* the message box must shrink so the mic / send button never gets pushed off a narrow phone */
.pepper-form input { min-width: 0; }
.pepper-form .pepper-mic, .pepper-form .pepper-send { flex: none; }

/* ---------- 2026-11-12 (b): WhatsApp-style Profile, settings rows, bottom sheets, chat list ---------- */
.pf-top { display: grid; justify-items: center; gap: 2px; margin: 6px 0 18px; }
.pf-photo { position: relative; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; text-decoration: none; }
.pf-av { width: 128px; height: 128px; font-size: 2.6rem; border-radius: 50%; object-fit: cover; }
.pf-cam { position: absolute; right: 2px; bottom: 4px; width: 42px; height: 42px; border-radius: 50%; background: var(--herb); color: #fff; display: grid; place-items: center; border: 3px solid var(--salt); }
.pf-cam .si { width: 20px; height: 20px; }
.pf-name { font: 600 1.25rem var(--font-display); margin-top: 10px; }
.pf-about { color: #667781; font-size: .92rem; }
.pf-link { border: 0; background: none; color: var(--herb); font: 600 .95rem var(--font-body); margin-top: 10px; cursor: pointer; }
.slist { display: grid; margin: 0 -16px 10px; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.srow { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 13px 16px; border: 0; background: none; text-align: left; font: inherit; color: var(--pepper); cursor: pointer; width: 100%; text-decoration: none; margin: 0; }
.srow + .srow { border-top: 1px solid #EEF2F0; }
a.srow:hover, button.srow:hover, label.srow:hover { background: #F7F9F8; }
div.srow { cursor: default; }
.srow .si { width: 22px; height: 22px; color: #54656F; }
.srow > .si:last-child, .srow .s-pen .si { width: 20px; height: 20px; color: #8696A0; }
.srow .st { min-width: 0; }
.srow .st b { display: block; font-weight: 500; font-size: 1rem; }
.srow .st small { display: block; color: #667781; font-size: .86rem; line-height: 1.35; margin-top: 2px; }
.srow .st select { max-width: 100%; }
.srow.s-red, .srow.s-red .si { color: var(--chili); }
.s-pen .si { color: var(--herb) !important; }
.s-cap { margin: 16px 0 6px; font: 600 .85rem var(--font-body); color: var(--herb-dark); }
.s-note { color: #667781; font-size: .84rem; margin: 4px 0 12px; }
.sub-head { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; }
.sub-head h1 { margin: 0; font-size: 1.4rem; }
.sub-back { padding: 6px; margin-left: -6px; color: var(--pepper); display: grid; }
.sub-back .si { width: 24px; height: 24px; }
.sheet-dlg { margin: auto auto 0; width: min(520px, 100vw); max-width: 100vw; border-radius: 18px 18px 0 0; padding: 8px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
.sheet-dlg h2 { font-size: 1.1rem; margin: 6px 0 12px; }
.sheet-dlg form { padding: 0; }
.sh-grab { width: 40px; height: 4px; border-radius: 2px; background: #D5DCD9; margin: 4px auto 6px; }
.sh-acts { display: flex; gap: 22px; padding: 4px 0 8px; }
.sh-act { display: grid; justify-items: center; gap: 6px; font: 500 .85rem var(--font-body); cursor: pointer; border: 0; background: none; color: var(--pepper); padding: 0; }
.sh-rm { margin-top: 8px; }
.sh-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.sh-ic .si { width: 24px; height: 24px; color: #fff; }
.sh-form { display: grid; gap: 14px; }
.sh-form input { border: 0; border-bottom: 2px solid var(--herb); padding: 8px 2px; font: 1.05rem var(--font-body); outline: none; background: none; }
.sh-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.sh-list { display: grid; }
.sh-opt { text-align: left; border: 0; background: none; padding: 13px 4px; font: 1rem var(--font-body); cursor: pointer; display: flex; align-items: center; gap: 12px; color: var(--pepper); }
button.sh-opt::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #8696A0; box-sizing: border-box; }
button.sh-opt.on::before { border: 6px solid var(--herb); }
.sh-opt input { width: 20px; height: 20px; accent-color: var(--herb); margin: 0; }
.sh-p { margin: 6px 0; }
.sh-steps { margin: 4px 0 10px; padding-left: 20px; line-height: 1.55; font-size: .92rem; }
/* Today: own photo next to the greeting */
.hello { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hello-av { flex: none; border-radius: 50%; text-decoration: none; }
.hello-av .avatar { width: 50px; height: 50px; font-size: 1.05rem; }
/* Messages list like WhatsApp: search, All / Unread / Starred, rows to the screen edge */
.wa-search { display: flex; align-items: center; gap: 10px; background: #F0F2F1; border-radius: 22px; padding: 0 14px; margin: 4px 0 10px; }
.wa-search svg { width: 20px; height: 20px; color: #667781; flex: none; }
.wa-search input { border: 0; background: none; padding: 11px 0; font: 1rem var(--font-body); flex: 1; min-width: 0; outline: none; }
.wa-chips { display: flex; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.wa-chips a, .wa-chips button { border: 1px solid var(--line); background: var(--paper); border-radius: 18px; padding: 6px 14px; font: 500 .9rem var(--font-body); cursor: pointer; color: #54656F; text-decoration: none; }
.wa-chips [aria-pressed="true"] { background: #D8F2E6; border-color: #D8F2E6; color: var(--herb-dark); }
.chat-list.wa { background: none; border: 0; box-shadow: none; margin: 0 -16px; padding: 0; border-radius: 0; }
.chat-list.wa .chat-row { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; padding: 10px 16px; border: 0; }
.chat-list.wa .chat-row .avatar { width: 52px; height: 52px; }
.chat-list.wa .chat-row b { font-size: 1.02rem; }
.chat-list.wa .chat-row:hover { background: #F5F6F6; }

/* 2026-11-14: Progress = one person at a time (never the team mixed together) */
.pstrip { scrollbar-width: none; }
.pstrip::-webkit-scrollbar { display: none; }
.pcard.on { border-color: var(--herb); box-shadow: inset 0 0 0 1.5px var(--herb); background: #F1F8F5; }
.perf-head .perf-who { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.perf-head .perf-who .avatar { color: #fff; font-size: .78rem; }
.perf-head b { display: block; }
@media (min-width: 861px) and (hover: hover) { .pstrip { flex-wrap: wrap; overflow: visible; } }

/* computer: Today in two columns (meetings and OKs left, tasks right) */
.today-cols > div:not(:has(*)) { display: none; }
@media (min-width: 861px) {
  .today-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 0 28px; align-items: start; }
  .today-cols > div > .section:first-child { margin-top: 22px; }
  /* bottom sheets become small centred boxes; the bell list opens under the bell */
  .sheet-dlg { margin: auto; width: min(480px, calc(100vw - 48px)); border-radius: 16px; padding: 18px 22px 20px; }
  .sheet-dlg .sh-grab { display: none; }
  .alerts-dlg { margin: 74px 28px auto auto; box-shadow: 0 18px 40px -18px rgba(30,43,47,.45); }
}

/* profile photo crop (like WhatsApp): drag to move, pinch / slider to zoom, the circle is what people see */
.crop-dlg { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #0B1418; color: #fff; }
.crop-dlg::backdrop { background: #0B1418; }
.crop-wrap { display: flex; flex-direction: column; height: 100%; }
.crop-top { display: flex; align-items: center; gap: 14px; padding: calc(14px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-left, 0px)) 14px; font: 600 1.05rem var(--font-body); }
.crop-top button { border: 0; background: none; color: #fff; cursor: pointer; padding: 6px; display: grid; place-items: center; }
.crop-stage { position: relative; flex: 1; overflow: hidden; touch-action: none; cursor: grab; user-select: none; }
.crop-stage:active { cursor: grabbing; }
.crop-stage img { position: absolute; left: 50%; top: 50%; max-width: none; pointer-events: none; -webkit-user-drag: none; }
.crop-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 200vmax rgba(11, 20, 24, .62); outline: 1.5px solid rgba(255, 255, 255, .85); pointer-events: none; }
.crop-hint { text-align: center; font-size: .85rem; color: rgba(255, 255, 255, .7); padding: 10px 16px 0; margin: 0; }
.crop-zoom { display: flex; align-items: center; gap: 12px; padding: 12px max(24px, env(safe-area-inset-left, 0px)) 4px; }
.crop-zoom input { flex: 1; accent-color: #25D366; }
.crop-zoom span { font-size: 1.2rem; opacity: .8; }
.crop-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px max(20px, env(safe-area-inset-left, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)); }
.crop-bar .cb-cancel { border: 0; background: none; color: #fff; font: 600 1rem var(--font-body); cursor: pointer; padding: 10px 6px; }
.crop-bar .cb-done { width: 56px; height: 56px; border-radius: 50%; border: 0; background: #2E7A66; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.35); }

/* phone or computer: notification settings speak about the device in use (computer = mouse, no touch) */
.on-pc { display: none !important; }
@media (hover: hover) and (pointer: fine) {
  span.on-pc { display: inline !important; }
  .srow.on-pc { display: grid !important; }
  .pad-tab.on-pc { display: flex !important; }
  .on-phone { display: none !important; }
}

/* People: setup code message, Pepper on */
.code-msg { white-space: pre-wrap; font: 500 .86rem/1.45 var(--font-body); background: #E7F5EE; border: 1px solid #CBE7D9; border-radius: 10px; padding: 10px 12px; margin: 0; max-height: 220px; overflow: auto; color: var(--pepper); }
.ppl-pep { color: var(--herb-dark); font-weight: 600; }

/* admin: clear the testing data once */
.rs-warn { border-left: 4px solid var(--chili); }
.rs-n { width: 28px; text-align: center; font-weight: 700; color: var(--muted); }
.rs-keep { color: var(--herb-dark); font-weight: 500; }
.rs-list { margin: 10px 0 0; padding-left: 20px; }
.rs-code { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; }
.rs-code small { font-size: 1rem; font-weight: 700; color: var(--pepper); letter-spacing: .04em; }
@media (max-width: 520px) { .rs-code .row-btns { grid-column: 2 / -1; } }
.rs-go[aria-disabled="true"] { opacity: .45; }
.rs-hint { text-align: right; margin: 8px 0 0; }
.rs-shake { animation: rsShake .35s; border-color: var(--chili) !important; }
@keyframes rsShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* Pepper suggestion chips: swipe on a phone, no grey scroll bar; on a computer they wrap */
.pepper-chips { scrollbar-width: none; }
.pepper-chips::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) { .pepper-chips { flex-wrap: wrap; overflow: visible; } }

/* web: the name at the bottom of the side menu opens Profile */
.sidebar a.me { color: #DCE5E2; text-decoration: none; border-radius: 10px; cursor: pointer; }
.sidebar a.me:hover { background: var(--pepper-2); }
.sidebar a.me[aria-current="page"] { background: var(--herb); color: #fff; }
.sidebar a.me .avatar { width: 34px; height: 34px; flex: none; object-fit: cover; }
.meet-quick { margin: 2px 0 10px; }

/* task status chip: Pending / In progress / Completed, with the number of notes */
.st-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--paper); color: var(--pepper); border-radius: 14px; padding: 2px 9px 2px 7px; font: 600 .76rem var(--font-body); cursor: pointer; min-height: 26px; }
.st-chip i { width: 8px; height: 8px; border-radius: 50%; background: #A9B4B0; }
.st-chip.st-pending { border-color: #E9D3A8; background: #FFF8EA; color: #7A5716; } .st-chip.st-pending i { background: var(--saffron); }
.st-chip.st-doing { border-color: #BCD5F0; background: #EEF5FD; color: #24548A; } .st-chip.st-doing i { background: #2F7BD0; box-shadow: 0 0 0 3px rgba(47,123,208,.18); }
.st-chip.st-completed { border-color: #BFE0D3; background: var(--herb-soft); color: var(--herb-dark); } .st-chip.st-completed i { background: var(--herb); }
.st-chip .st-n { display: inline-flex; align-items: center; gap: 2px; margin-left: 2px; padding-left: 6px; border-left: 1px solid currentColor; opacity: .85; }
.st-chip .st-n svg { width: 12px; height: 12px; }
.st-chip:hover { filter: brightness(.97); }

/* the status sheet: three choices and a notebook page of notes */
.st-dlg { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.st-head { display: flex; align-items: flex-start; gap: 10px; }
.st-head > div { flex: 1; min-width: 0; }
.st-head h2 { margin: 6px 0 2px; overflow-wrap: anywhere; }
.st-head small { color: var(--muted); font-size: .82rem; }
.st-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 6px; }
.st-seg button { display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; min-height: 44px; font: 600 .86rem var(--font-body); color: var(--pepper); cursor: pointer; padding: 0 6px; }
.st-seg button i { width: 9px; height: 9px; border-radius: 50%; background: #A9B4B0; flex: none; }
.st-seg [data-set="pending"] i { background: var(--saffron); } .st-seg [data-set="doing"] i { background: #2F7BD0; } .st-seg [data-set="completed"] i { background: var(--herb); }
.st-seg [data-set="pending"][aria-checked="true"] { background: #FFF3DA; border-color: var(--saffron); }
.st-seg [data-set="doing"][aria-checked="true"] { background: #E6F0FC; border-color: #2F7BD0; }
.st-seg [data-set="completed"][aria-checked="true"] { background: var(--herb-soft); border-color: var(--herb); }
.st-seg button:disabled { opacity: .45; cursor: default; }
.st-seg button.ro { cursor: default; }
.st-hint { font-size: .8rem; color: var(--muted); margin: 4px 2px 10px; min-height: 1em; }
.st-paper { max-height: min(42vh, 340px); overflow-y: auto; border-radius: 10px; border: 1px solid #EADFC4; padding: 0 12px 0 40px; position: relative;
  background: linear-gradient(90deg, transparent 30px, #F2B8B0 30px, #F2B8B0 31px, transparent 31px), repeating-linear-gradient(#FFFCF2 0 27px, #E9E2CF 27px 28px); background-attachment: local; }
.st-empty { color: #8C8366; font-size: .88rem; line-height: 28px; margin: 0; }
.st-note { padding: 0; }
.st-meta { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; font-size: .76rem; color: #7D7558; line-height: 28px; }
.st-meta b { color: var(--pepper); font-size: .82rem; }
.st-meta em { font-style: normal; background: #F4EBD2; border-radius: 6px; padding: 0 6px; color: #6B5A24; line-height: 20px; }
.st-note p { margin: 0; font-size: .95rem; line-height: 28px; color: #2A2F2C; white-space: pre-wrap; overflow-wrap: anywhere; }
.st-note.me b { color: var(--herb-dark); }
.st-write { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.st-write textarea { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font: 400 .95rem var(--font-body); resize: none; max-height: 140px; }
.st-write textarea:focus { outline: none; border-color: var(--herb); }
.st-write .btn { flex: none; }

/* my notepad: a tab on the right edge of the computer screen (like Grammarly), full screen on the phone */
.top-r { display: inline-flex; align-items: center; gap: 6px; }
.pad-tab { position: fixed; right: 0; top: 42%; z-index: 35; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 7px 12px; border: 1px solid var(--line); border-right: 0;
  border-radius: 12px 0 0 12px; background: var(--paper); color: var(--herb-dark); box-shadow: -2px 4px 14px -6px rgba(30,43,47,.35); cursor: pointer; font: 600 .74rem var(--font-body); }
.pad-tab svg { width: 20px; height: 20px; }
.pad-tab span { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .02em; }
.pad-tab:hover { background: var(--herb-soft); }
body.pad-open .pad-tab { right: 380px; }
.pad { position: fixed; z-index: 45; top: 0; right: 0; bottom: 0; width: 380px; max-width: 100vw; display: flex; flex-direction: column; background: #FFFDF6; border-left: 1px solid #E8DEC3;
  box-shadow: -10px 0 30px -18px rgba(30,43,47,.45); }
.pad-head { display: flex; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 10px 16px; border-bottom: 1px solid #EDE3C9; background: #FFF9E8; }
.pad-head > div { flex: 1; min-width: 0; }
.pad-head h2 { font-size: 1.05rem; margin: 0; }
.pad-head small { color: #85794F; font-size: .76rem; }
.pad-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #F6E9BE; color: #7A5A12; flex: none; }
.pad-ic svg { width: 19px; height: 19px; }
.pad-text { flex: 1; width: 100%; border: 0; resize: none; padding: 6px 16px calc(16px + env(safe-area-inset-bottom, 0px)) 46px; font: 400 1rem/28px var(--font-body); color: #252A27; outline: none;
  background: linear-gradient(90deg, transparent 34px, #F2B8B0 34px, #F2B8B0 35px, transparent 35px), repeating-linear-gradient(#FFFDF6 0 27px, #EAE3CF 27px 28px); background-attachment: local; }
@media (max-width: 860px) {
  .pad { width: 100vw; border-left: 0; }
  .app .topbar .pad-btn { width: 40px; height: 40px; color: #7A5A12; }
}
@media print { .pad, .pad-tab { display: none !important; } }
.info-status { display: flex; align-items: center; gap: 8px; justify-content: flex-start; margin: 10px 0 4px; }
.info-status svg { width: 18px; height: 18px; }
.info-status b { margin-left: auto; font-weight: 600; color: var(--muted); font-size: .85rem; }
/* Pepper card ✎ Edit: the full form */
.act-edit textarea { border: 1px solid var(--line); border-radius: 9px; padding: 7px 8px; font: 500 .9rem var(--font-body); color: var(--pepper); background: var(--paper); resize: vertical; }
.act-cap { display: block; font: 600 .78rem var(--font-body); color: var(--muted); margin-bottom: 4px; }
.act-pick, .act-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.act-pick { max-height: 148px; overflow-y: auto; padding: 2px; }
.act-edit .pick-chip { font-size: .8rem; }
.act-edit .act-chips { margin-top: -4px; }
.act-edit .act-check { display: flex; align-items: center; gap: 8px; font: 500 .88rem var(--font-body); color: var(--pepper); margin-top: -2px; }
.act-edit .act-check input { width: 18px; height: 18px; }
.act-edit .act-yes { min-height: 40px; border: 0; border-radius: 10px; background: var(--herb); color: #fff; font: 600 .92rem var(--font-body); cursor: pointer; margin-top: 4px; }
.act-edit .act-yes:disabled { opacity: .6; }
.act-edit input:disabled { opacity: .5; }

/* admin: Pepper AI test */
.pt-safe { border-left: 4px solid var(--herb); }
.pt-safe ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; color: var(--muted); font-size: .9rem; }
.pt-form textarea { width: 100%; font: 400 .95rem/1.5 var(--font-body); }
.pt-res { display: grid; gap: 8px; }
.pt-said { font-weight: 600; } .pt-said small { color: var(--muted); font-weight: 500; margin-left: 6px; }
.pt-card { border-left: 3px solid var(--herb); padding-left: 10px; }
.pt-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 6px 0 0; font-size: .9rem; }
.pt-card dt { color: var(--muted); } .pt-card dd { margin: 0; overflow-wrap: anywhere; }
.pt-ans { margin: 0; } .pt-err { margin: 0; color: var(--chili); }
.pt-error { border-left: 4px solid var(--chili); }
.pt-res details pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .78rem; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px; max-height: 220px; overflow: auto; }
.st-now { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); font-size: .95rem; }
.st-now i { width: 10px; height: 10px; border-radius: 50%; background: #A9B4B0; }
.st-now.st-pending { background: #FFF3DA; border-color: var(--saffron); } .st-now.st-pending i { background: var(--saffron); }
.st-now.st-doing { background: #E6F0FC; border-color: #2F7BD0; } .st-now.st-doing i { background: #2F7BD0; }
.st-now.st-completed { background: var(--herb-soft); border-color: var(--herb); } .st-now.st-completed i { background: var(--herb); }

/* ---------- 2026-11-20: status with a note, tidy meetings, notepad like Grammarly, every person in Progress ---------- */

.st-upd { position: relative; margin: 10px 0 6px; padding: 10px; border: 1px solid var(--upd-c, var(--line)); background: var(--upd-bg, var(--paper)); border-radius: 12px; }
.st-upd::before { content: ""; position: absolute; top: -7px; left: calc((100% - 12px) * var(--col, 0) / 3 + (100% - 12px) / 6 - 1px); width: 12px; height: 12px; background: inherit; border-left: 1px solid var(--upd-c, var(--line)); border-top: 1px solid var(--upd-c, var(--line)); transform: rotate(45deg); }
.st-upd.u-pending { --upd-c: var(--saffron); --upd-bg: #FFF8EA; --col: 0; }
.st-upd.u-doing { --upd-c: #2F7BD0; --upd-bg: #EEF5FD; --col: 1; }
.st-upd.u-completed { --upd-c: var(--herb); --upd-bg: var(--herb-soft); --col: 2; }
.st-upd-l { display: block; font: 600 .82rem var(--font-body); color: var(--pepper); margin: 0 2px 6px; }
.st-upd textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; font: 400 .95rem var(--font-body); resize: none; max-height: 140px; }
.st-upd textarea:focus { outline: none; border-color: var(--upd-c, var(--herb)); }
.st-upd-b { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.st-upd-b .btn { min-height: 38px; }

/* meetings: topic first, then who, then one quiet line of details */
.mcard { align-items: start; }
.mc { display: flex; flex-direction: column; min-width: 0; }
.mc .about { order: -1; margin: 1px 0 0; font: 600 1rem/1.35 var(--font-body); color: var(--pepper); overflow-wrap: anywhere; }
.mc h3 { margin: 2px 0 0; font: 400 .88rem/1.4 var(--font-body); color: var(--muted); }
.mc h3 > span:first-child { color: var(--muted); font-weight: 400; }
.mc h3 .team-name, .mc h3 .out-name { color: var(--pepper); font-weight: 500; }
.mcard .tmeta { gap: 2px 0; margin-top: 6px; font-size: .8rem; color: var(--muted); }
.mcard .tmeta > * + *::before { content: "·"; margin: 0 7px; color: #B3BDB9; }
.mcard .tmeta .mtag { background: none; padding: 0; border-radius: 0; color: var(--muted); }
.mcard .tmeta .mtag b { font-weight: 500; color: var(--muted); }
.mcard .tmeta .pill::before { content: none; }
.mcard > .icon-btn { border: 0; background: transparent; box-shadow: none; width: 34px; height: 34px; color: #8A9792; margin: -4px -6px 0 0; }
.mcard > .icon-btn:hover { background: var(--salt); color: var(--pepper); }
.mtime { min-width: 58px; padding: 9px 6px 7px; }
.mcard .tmeta > .rem-line { flex-basis: 100%; margin-top: 2px; }
.mcard .tmeta > .rem-line::before { content: none; }
.thread .lock { background: #FDF4D6; color: #6B5A1E; font-size: .74rem; border-radius: 8px; padding: 5px 12px; max-width: 86%; }

/* Progress: every person's card is visible at once (no hidden sideways scroll), and the chips wrap */
.pstrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); overflow: visible; gap: 8px; }
.pcard { width: auto; min-width: 0; }
.pstrip-sec + .card, .perf-card { scroll-margin-top: 70px; }
main .chip-row { flex-wrap: wrap; overflow: visible; }
/* Pepper: the card that was just changed blinks once */
.act-card dd.chg { background: #FFF3C4; border-radius: 6px; padding: 0 5px; font-weight: 600; color: #5C4310; }
.act-updated .act-card { animation: actUpd 1.4s ease; }
@keyframes actUpd { 0%, 40% { box-shadow: 0 0 0 3px var(--herb); } 100% { box-shadow: 0 0 0 0 transparent; } }
/* status notes: edit your own line */
.st-ed { margin-left: auto; border: 0; background: none; color: var(--herb-dark); font: 600 .74rem var(--font-body); cursor: pointer; padding: 0 4px; line-height: 28px; }
.st-ed:hover { text-decoration: underline; }
.st-edited { font-style: italic; color: #9A9070; }
.st-ef { display: grid; gap: 6px; margin: 4px 0 8px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.st-ef select, .st-ef textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: 400 .92rem var(--font-body); background: #fff; }
.st-ef textarea { resize: none; }
.st-ef-b { display: flex; justify-content: flex-end; gap: 6px; }
.st-ef-b .btn { min-height: 34px; padding: 0 12px; }
/* notepad: slides like Grammarly's panel; width can be dragged */
.pad { width: var(--padw, 380px); }
body.pad-open .pad-tab { right: var(--padw, 380px); }
.pad:not([hidden]) { animation: padIn .24s ease; }
.pad.closing { transform: translateX(100%); transition: transform .2s ease; }
@keyframes padIn { from { transform: translateX(100%); } to { transform: none; } }
.pad-tab { touch-action: none; cursor: grab; transition: right .24s ease, background .15s; }
.pad-tab.dragging { cursor: grabbing; transition: none; box-shadow: 0 8px 22px -8px rgba(0,0,0,.35); }
.pad-grip { position: absolute; left: -5px; top: 0; bottom: 0; width: 10px; cursor: ew-resize; z-index: 2; }
.pad-grip::after { content: ""; position: absolute; left: 3px; top: 50%; width: 4px; height: 44px; margin-top: -22px; border-radius: 2px; background: #E2D5AE; opacity: 0; transition: opacity .15s; }
.pad:hover .pad-grip::after, .pad-grip.dragging::after { opacity: 1; }

/* ---------- typing bar like WhatsApp: one rounded white box (emoji · text · 📎 · 📷) and a round green mic / send ---------- */
.pepper-form { gap: 0; align-items: center; background: #F0F2F0; padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px)); }
.pepper-form .emoji-btn { order: 1; }
.pepper-form input { order: 2; }
.pepper-form .pepper-clip { order: 3; }
.pepper-form .cam-q { order: 4; }
.pepper-form .pepper-rec { order: 2; }
.pepper-form .pepper-mic, .pepper-form .pepper-send { order: 5; margin-left: 8px; width: 48px; height: 48px; background: #1F9E5E; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.pepper-form .emoji-btn, .pepper-form input, .pepper-form .pepper-clip, .pepper-form .cam-q { height: 48px; min-height: 48px; background: #fff; border: 0; border-radius: 0; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.pepper-form input { padding: 0 6px; font-size: 1rem; }
.pepper-form input:focus { outline: none; }
.pepper-form .emoji-btn { width: 44px; border-radius: 24px 0 0 24px; color: #54656F; padding-left: 6px; }
.pepper-panel .pepper-form input, .pepper-form:not(:has(.emoji-btn)) input { border-radius: 24px 0 0 24px; padding-left: 18px; }
.pepper-form .pepper-clip { width: 42px; color: #54656F; transform: none; background: #fff !important; }
.pepper-form .pepper-clip svg { transform: rotate(-35deg); }
.pepper-form .pepper-clip[aria-expanded="true"] { color: #1F9E5E; }
.pepper-form .cam-q { width: 46px; border-radius: 0 24px 24px 0; color: #54656F; display: grid; place-items: center; cursor: pointer; padding-right: 6px; }
.pepper-form .cam-q svg { width: 23px; height: 23px; }
.pepper-form.typing .cam-q { display: none; }
.pepper-form.typing .pepper-clip { border-radius: 0 24px 24px 0; padding-right: 6px; }
.pepper-form.recording .cam-q, .pepper-form.recording .emoji-btn { display: none; }
.pepper-form.recording .pepper-rec { background: #fff; border: 0; border-radius: 24px; height: 48px; padding: 0 8px; }
/* the 📎 sheet: comes up from the bottom, outlined capsules with coloured icons, label under each */
.pepper-attach { left: 8px; right: 8px; bottom: calc(100% + 6px); grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; padding: 26px 14px 18px; border: 0; border-radius: 22px; background: #fff; box-shadow: 0 12px 34px -10px rgba(0,0,0,.35); }
.pepper-panel .pepper-attach { bottom: 76px; }
.pepper-attach::before { content: ""; position: absolute; top: 9px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: #D5DBD8; }
.pepper-attach label { gap: 8px; padding: 0; min-width: 0; font: 500 .8rem var(--font-body); color: #3B4A54; background: none !important; }
.pepper-attach label > span { width: 100%; max-width: 76px; height: 46px; border-radius: 23px; background: #fff !important; border: 1px solid #E1E6E3; transition: background .15s; }
.pepper-attach label:hover > span, .pepper-attach label:focus-within > span { background: #F3F5F4 !important; }
.pepper-attach label > span svg { width: 25px; height: 25px; }
.pepper-attach .pa-doc > span { color: #7F66FF; } .pepper-attach .pa-photo > span { color: #007BFC; } .pepper-attach .pa-cam > span { color: #FF2E74; } .pepper-attach .pa-audio > span { color: #FF7F22; } .pepper-attach .pa-video > span { color: #00A884; }
/* Pepper: copy under every line, ✎ edit under your own (like Claude) */
.pm .pm-tools { display: flex; gap: 2px; margin: 4px -4px -4px; justify-content: flex-start; opacity: .55; transition: opacity .15s; }
.pm.me .pm-tools { justify-content: flex-end; }
.pm:hover .pm-tools, .pm:focus-within .pm-tools { opacity: 1; }
@media (hover: none) { .pm .pm-tools { opacity: .8; } }
.pm-tool { width: 30px; height: 28px; border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; }
.pm-tool svg { width: 16px; height: 16px; }
.pm-tool:hover { background: rgba(0,0,0,.08); }
.pm.me .pm-tool:hover { background: rgba(255,255,255,.18); }
.pm-editbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 10px; padding: 7px 12px; border-radius: 12px 12px 0 0; background: #E7F3EE; color: #235F50; font: 600 .82rem var(--font-body); }
.pm-editbar span { display: inline-flex; align-items: center; gap: 6px; }
.pm-editbar svg { width: 15px; height: 15px; }
.pm-editbar button { border: 0; background: none; cursor: pointer; color: inherit; font-size: .95rem; padding: 2px 6px; border-radius: 6px; }
.pm-editbar button:hover { background: rgba(0,0,0,.06); }

.pepper-log .pm { position: relative; }
.pepper-log .pm:has(> .pm-tools) { margin-bottom: 26px; }
.pm .pm-tools { position: absolute; top: 100%; left: 0; margin: 2px 0 0; padding: 0; opacity: .7; }
.pm.me .pm-tools { left: auto; right: 0; }
.pm .pm-tools .pm-tool, .pm.me .pm-tools .pm-tool { width: 28px; height: 24px; color: var(--muted, #6b7a7d); }
.pm .pm-tools .pm-tool:hover, .pm.me .pm-tools .pm-tool:hover { background: rgba(0,0,0,.07); }
.pm time { margin-top: 2px; }
