@font-face { font-family: 'Inter'; src: url('/inter.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Klear design system. Rules and rationale: DESIGN.md.
   1. Tokens  2. Base  3. Components  4. The shell  5. Home and chat  6. A job  7. Tasks and You
   8. Windows  9. Welcome  10. Circles  11. Admin  12. Characters  13. Print
   Written for a phone first; wider layouts are added in min-width queries (600px, 900px). */

/* ============ 1. TOKENS ============ */
:root {
  color-scheme: light dark;

  /* colour: one accent, neutrals do the rest. Amber, green and red only ever say how a job stands. */
  --bg: light-dark(#ffffff, #000000);
  --surface: light-dark(#ffffff, #1c1c1e);        /* cards, windows, the box to write in */
  --fill: light-dark(#f5f5f7, #1c1c1e);           /* grouped lists, the sidebar, quiet buttons */
  --fill-2: light-dark(#e8e8ed, #2c2c2e);         /* hover, pressed, the chosen row */
  --hair: light-dark(#e5e5ea, #2c2c2e);           /* the line between two rows, and under a bar */
  --line: light-dark(#d2d2d7, #38383a);           /* the edge of a card or a field */
  --text: light-dark(#1d1d1f, #f5f5f7);
  --text-2: light-dark(#6e6e73, #a1a1a6);         /* secondary copy, 5:1 on --bg */
  --accent: light-dark(#0071e3, #0a84ff);
  --accent-fill: #0071e3;                         /* behind white text: the dark theme's lighter --accent is for links, white on it is only 3.6:1 */
  --accent-hover: #0077ed;
  --on-accent: #ffffff;
  --danger: light-dark(#d70015, #ff453a);
  --notice: light-dark(#b25000, #ff9f0a);         /* needs you */
  --ok: light-dark(#1f8a4c, #30d158);             /* done */
  --scrim: light-dark(#00000052, #000000a3);

  /* type: Inter, served from here, so Klear looks the same on every device (it has no Hebrew letters: those use the
     device's own font). The sizes the familiar chat apps use: 16 for reading, 14 for lists and controls, 12.5 for labels. */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --t-caption: .78125rem;                          /* 12.5 */
  --t-small: .875rem;                              /* 14 */
  --t-body: 1rem;                                  /* 16 */
  --t-title-3: 1.125rem;                           /* 18 */
  --t-title-2: 1.375rem;                           /* 22 */
  --t-title-1: clamp(1.5rem, 1.3rem + 1vw, 1.75rem);   /* 24 to 28: a page's name, the greeting */

  /* space: 4pt grid */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4rem;
  --gutter: clamp(1rem, 4vw, 2rem);                /* page side padding */
  --measure: 48rem;                                /* reading column (44rem until 2026-11-25: with the list and Details beside it, a chat on a laptop was left about 34rem) */

  /* shape and size */
  --r-s: 10px; --r-m: 14px; --r-l: 22px; --r-pill: 980px;
  --tap: 2.75rem;                                  /* 44px: the least a finger needs */
  --ctl: 2.5rem;                                   /* buttons and fields under a mouse */
  --row: 2.25rem;                                  /* sidebar rows and icon buttons under a mouse */
  --bar: 3.25rem;                                  /* the sidebar's head, a chat's title bar, the tab bar: one height, so they line up */
  --shadow: 0 1px 2px light-dark(#0000000a, #0000), 0 12px 40px light-dark(#0000001a, #000000a0);
  --shadow-s: 0 1px 2px light-dark(#0000000a, #0000), 0 4px 16px light-dark(#0000000d, #0000);
  --ease: cubic-bezier(.25, .1, .25, 1);
}
/* under a finger everything pressable is at least 44px */
@media (pointer: coarse) { :root { --ctl: var(--tap); --row: var(--tap); } }

/* ============ 2. BASE ============ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
html, body, #root { height: 100%; }
@supports (height: 100dvh) { #root { height: 100dvh; } }   /* what is really visible on a phone, bars and all */
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--t-body)/1.47 var(--font); letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overscroll-behavior: none;                       /* the page itself never bounces or pulls to refresh: its lists scroll */
}
/* Signed in, the document itself never moves: only the lists inside it scroll. (Seen on an iPhone home screen
   2026-11-18: the whole app could be dragged up and down like a sheet of paper. A phone's browser rubber-bands whatever
   the page lets it scroll, so the page is pinned and given nothing to scroll.) The sign-up and terms pages are plain
   documents and still scroll as pages do. */
html:has(.app) { overflow: hidden; overscroll-behavior: none; }
html:has(.app) body { position: fixed; inset: 0; width: 100%; overflow: hidden; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: var(--t-title-2); }
h3 { font-size: var(--t-title-3); margin-top: var(--s6); }
h4 { font-size: var(--t-body); margin: var(--s4) 0 var(--s1); }
p { margin: var(--s2) 0; text-wrap: pretty; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
[hidden] { display: none !important; }             /* the hidden attribute always wins, even over a component's own display */
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { animation: none !important; transition: none !important; } }

/* ============ 3. COMPONENTS ============ */
.hint { color: var(--text-2); font-size: var(--t-small); }
.err { color: var(--danger); font-size: var(--t-small); margin: var(--s1) 0; }
.hint:empty, .err:empty { display: none; }
.label { margin: 0; font-size: var(--t-caption); font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; margin-top: var(--s5); }
.grow { flex: 1; min-width: 0; }
.brand { display: flex; align-items: center; gap: var(--s2); margin: 0; font-size: var(--t-title-3); font-weight: 600; letter-spacing: -.02em; }

/* buttons: quiet by default, one filled .primary per view, .link for inline actions */
input, textarea, select, button { font: inherit; color: inherit; letter-spacing: inherit; }
button {
  min-height: var(--ctl); padding: 0 var(--s5); border: 0; border-radius: var(--r-pill);
  background: var(--fill); cursor: pointer; transition: background .15s var(--ease), transform .1s var(--ease);
}
button:hover { background: var(--fill-2); }
button:active { transform: scale(.98); }
button.primary { background: var(--accent-fill); color: var(--on-accent); font-weight: 500; }
button.primary:hover { background: var(--accent-hover); }
button.link { min-height: auto; padding: var(--s1) 0; background: none; color: var(--accent); border-radius: 4px; text-align: start; }
button.link:hover { text-decoration: underline; }
button.link.small { padding: 0; font-size: var(--t-caption); }
button.link.inline { display: inline; padding: 0; font-size: inherit; }
button.danger { color: var(--danger); }
button:disabled { opacity: .4; cursor: default; }

/* icons: actions are icon buttons (the name is the tooltip and what a screen reader says); rows that take you
   somewhere keep an icon plus words */
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn { flex: none; width: var(--row); min-height: var(--row); padding: 0; display: inline-grid; place-items: center; background: none; color: var(--text-2); border-radius: var(--r-s); }
.icon-btn:hover { background: var(--fill-2); color: var(--text); }
.icon-btn.on, .icon-btn[aria-pressed="true"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* fields: a field always looks like a field: its own ground and an edge, on a page, on a card and in a window, in the
   light and in the dark. (Until 2026-11-18 they were filled and borderless, and in the dark a field on a card was the
   card's own colour: a member could not see where to type.) Never under 16px, so an iPhone does not zoom in on them. */
label { display: grid; gap: var(--s2); margin: var(--s4) 0; font-size: var(--t-small); color: var(--text-2); }
input, textarea, select {
  width: 100%; min-height: var(--ctl); padding: var(--s2) var(--s4); font-size: var(--t-body); color: var(--text);
  background: light-dark(#ffffff, #2c2c2e); border: 1px solid light-dark(#c7c7cc, #48484a); border-radius: var(--r-s);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
textarea { resize: vertical; line-height: 1.47; padding-block: var(--s3); }
input::placeholder, textarea::placeholder { color: var(--text-2); opacity: .8; }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none; background: var(--surface); border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.1rem;
}
[dir="rtl"] select { background-position: left 1rem center; }
input[type=checkbox], input[type=radio] { width: 1.25rem; height: 1.25rem; min-height: 0; flex: none; padding: 0; margin: 0; accent-color: var(--accent); }
.check { display: flex; align-items: center; gap: var(--s3); min-height: var(--tap); margin: 0; color: var(--text); font-size: var(--t-body); }
.answerbox { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2); align-items: end; }
.code { font-variant-numeric: tabular-nums; letter-spacing: .12em; font-weight: 600; }   /* invite codes: always spaced tabular digits */

/* a line that opens to show more (the waitlist, "Every step it took", "Add one") */

/* a small menu behind an icon */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu > div { position: absolute; z-index: 3; top: calc(100% + 2px); inset-inline-end: 0; min-width: 13.5rem; display: grid; padding: var(--s1);
  background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.menu > div button { min-height: var(--row); padding: 0 var(--s3); background: none; border-radius: var(--r-s); text-align: start; font-size: var(--t-small); color: var(--text); white-space: nowrap; }
.menu > div button:hover { background: var(--fill); }
.menu > div button.danger { color: var(--danger); }
.menu hr { width: 100%; border: 0; border-top: 1px solid var(--hair); margin: var(--s1) 0; }

/* a grouped list, as in a phone's Settings: one tinted block, a hairline between rows. A row is a title (with an
   optional second line), then a value or a control, then an arrow when it leads somewhere. */
.list { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--fill); border-radius: var(--r-m); overflow: hidden; }
.list:empty { display: none; }
.list > .hint { margin: 0; padding: var(--s3) var(--s4); }
.item { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 3.25rem; padding: var(--s2) var(--s4); background: none; border-radius: 0; text-align: start; font-size: var(--t-body); }
.item + .item { border-top: 1px solid var(--hair); }
button.item:hover, button.item:focus-visible { background: var(--fill-2); }
.item .text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.item strong { font-weight: 400; }                                  /* a title alone may run to a second line: it is never cut */
.item strong:not(:only-child) { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .text .hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .value { flex: none; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: var(--t-small); }
.item > .icon { color: var(--text-2); }
.item > .icon:last-child { width: 1rem; height: 1rem; transform: rotate(-90deg); }     /* the arrow: a chevron turned to point onward */
[dir="rtl"] .item > .icon:last-child { transform: rotate(90deg); }
.item > button { flex: none; min-height: var(--row); padding: 0 var(--s4); background: var(--surface); font-size: var(--t-small); }
.item.danger { color: var(--danger); }
.badge { width: 2.25rem; height: 2.25rem; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--text-2); }

/* small signs: how a job stands, a turning ring while something works, a dot for news, a count, a person */
.status { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: var(--r-pill); font-size: var(--t-caption); font-weight: 600; white-space: nowrap;
  color: var(--text-2); background: color-mix(in srgb, currentColor 12%, transparent); }
.status .icon { width: .8rem; height: .8rem; stroke-width: 2.6; }
.status.needs { color: var(--notice); }
.status.working { color: var(--accent); }
.status.done { color: var(--ok); }
.spin { width: .85rem; height: .85rem; flex: none; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dot { width: .5rem; height: .5rem; flex: none; border-radius: 50%; background: var(--notice); }
.count { min-width: 1.125rem; height: 1.125rem; padding: 0 .3rem; display: inline-grid; place-items: center; border-radius: var(--r-pill); background: var(--accent-fill); color: var(--on-accent); font-size: .6875rem; font-weight: 600; line-height: 1; }
.avatar { width: 1.75rem; height: 1.75rem; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--line); color: var(--text); font-size: var(--t-caption); font-weight: 600; }
progress { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 6px; border: 0; border-radius: 3px; background: var(--fill-2); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--fill-2); }
progress::-webkit-progress-value { background: var(--accent); border-radius: 3px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 3px; }

/* answers to pick from, and files to take away: outlined pills */
.replies, .files { display: flex; flex-wrap: wrap; gap: var(--s2); }
.replies button { position: relative; min-height: 2.25rem; font-size: var(--t-small); }
.replies button::after { content: ''; position: absolute; inset: -.25rem 0; }
.file { min-height: var(--ctl); }
.replies button, .file { display: inline-flex; align-items: center; gap: var(--s2); max-width: 100%; min-width: 0; padding: 0 var(--s4);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-pill); font-size: var(--t-small); color: var(--text); }
.replies button:hover, .file:hover { background: var(--fill); text-decoration: none; }
.replies button.primary { background: var(--accent-fill); border-color: transparent; color: var(--on-accent); }
.replies button.primary:hover { background: var(--accent-hover); }
.file span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* a long file name is cut with dots: it never widens the page */
.file .icon { width: 1rem; height: 1rem; color: var(--text-2); }
/* several facts wanted at once: one small form, sent as one answer */
.fields { display: grid; gap: var(--s4); max-width: 26rem; }
.fields label { margin: 0; gap: var(--s2); color: var(--text); font-weight: 500; }   /* what is asked is read first, then its box */
.fields button { justify-self: start; min-width: 8rem; }
.fields .err { margin: 0; }
/* an answer on its way: the card says so at once, and nothing in it can be pressed twice */
.job .sent { display: flex; align-items: center; gap: var(--s2); margin: 0; color: var(--text-2); }
/* a window with something to type in, while the phone's keyboard is up: it stands on the keyboard, not under it */
.kb dialog[open] { margin-bottom: var(--kb, 0px); max-height: calc(100dvh - var(--kb, 0px) - env(safe-area-inset-top) - 1rem); }

/* a table scrolls sideways inside itself; it never squeezes and never widens the page */
.scroll { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
th { color: var(--text-2); font-weight: 500; white-space: nowrap; }
th, td { text-align: start; padding: var(--s3) var(--s4) var(--s3) 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
td .link { margin-inline-end: var(--s4); white-space: nowrap; }

/* a short notice, where the member is looking: above the tabs and the box to write in */
.toast { position: fixed; inset-inline: 0; bottom: calc(env(safe-area-inset-bottom) + 5.5rem); z-index: 50; width: fit-content; max-width: min(90vw, 28rem); margin-inline: auto; padding: .625rem 1rem;
  border-radius: 1.25rem; background: var(--text); color: var(--bg); font-size: var(--t-small); text-align: center; box-shadow: var(--shadow); animation: toast-in .18s var(--ease); }
@keyframes toast-in { from { transform: translateY(.5rem); opacity: 0; } }

/* ============ 4. THE SHELL ============
   Three places: Chats, Tasks, You. The app element says which screen is showing (data-screen: home | chats | tasks |
   you | chat, and circles | circle while circles are on) and everything is laid out from that. A phone shows one
   screen at a time with tabs at the bottom; from 900px the sidebar holds the chat list and is always there. */
.app { height: 100%; display: flex; flex-direction: column; padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left); }
.main { position: relative; flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; }

/* ---- the sidebar (on a phone: the Chats screen) */
.side { display: none; flex: 1; min-height: 0; flex-direction: column; padding: 0 var(--gutter); }
.app[data-screen="chats"] .side, .app[data-screen="circles"] .side { display: flex; }
.app[data-screen="chats"] .main, .app[data-screen="circles"] .main { display: none; }
.shead { flex: none; display: flex; align-items: center; gap: var(--s1); min-height: var(--bar); }
.shead .brand, .side .top, .side .acct, .side .wide, .reopen { display: none; }
.ptitle { flex: 1; margin: 0; font-size: var(--t-title-1); font-weight: 700; letter-spacing: -.03em; }   /* a page's name: Chats, Tasks, You */
.shead .icon-btn { color: var(--text); }
.chats { flex: 1; min-height: 0; overflow: hidden auto; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--s3); padding-bottom: var(--s4); scrollbar-width: thin; }
.ghead { position: relative; display: flex; align-items: center; }
.gname { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--s1); min-height: var(--row); padding: 0 var(--s3); background: none; border-radius: var(--r-s);
  color: var(--text-2); font-size: var(--t-caption); font-weight: 600; text-align: start; }
.gname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gname .icon { width: .9rem; height: .9rem; transition: transform .15s var(--ease); }
.gname[aria-expanded="false"] .icon { transform: rotate(-90deg); }
.ghead > .icon { width: .9rem; height: .9rem; color: var(--text-2); margin-inline-end: var(--s1); }
/* the group-and-sort menu opens across the list's width, from the heading down (hung from its own small button it ran off the edge) */
.ghead > span > .menu { position: static; }
.ghead > span > .menu > div { inset-inline: 0; top: 100%; min-width: 0; }
.gbody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
.gbody .hint { padding: 0 var(--s3); margin: var(--s1) 0; font-size: var(--t-caption); }
.chat { display: flex; align-items: center; border-radius: var(--r-s); }
.chat.on { background: var(--fill-2); }
.chat.closed { opacity: .55; }
.chat .go { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--s3); min-height: 4rem; padding: var(--s2) var(--s3); background: none; border-radius: var(--r-s); text-align: start; }
.chat .go:hover { background: var(--fill-2); }
.chat .go > span[dir], .names span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat .go > .icon { width: .85rem; height: .85rem; color: var(--text-2); }
.chat .icon-btn.go { flex: none; padding: 0; justify-content: center; }
.chat .menu .icon, .chat .icon-btn .icon { width: 1rem; height: 1rem; }
.chat .flag { flex: none; font-size: var(--t-caption); font-weight: 600; color: var(--notice); white-space: nowrap; }
.names { flex: 1; min-width: 0; display: grid; }
/* a chat's two lines: its name and where it stands, then how it came in and its last line */
.names .r1, .names .r2 { display: flex; align-items: baseline; gap: var(--s2); overflow: visible; }
.names .r1 > strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.names .r1 > span { flex: none; font-size: var(--t-caption); color: var(--text-2); }
.names .r1 > .busy { color: var(--accent); font-weight: 600; }
.names .r1 > .flag { color: var(--notice); font-weight: 600; }
.names .r2 { align-items: center; color: var(--text-2); font-size: var(--t-small); }
.names .r2 > span[role] { flex: none; display: grid; }
.names .r2 .icon { width: .875rem; height: .875rem; flex: none; }
.chat .character { flex: none; }
.chat .swipe { display: none; }
/* a phone: the row slides left to its actions, and the menu button is not shown */
@media (max-width: 899.98px) {
  .app[data-screen="home"] .tabbar { display: none; }   /* a new chat is a page of its own: the way back over it, no tabs under it (asked 2026-11-24) */
  .app[data-screen="home"] .mhead { display: flex; }
  .chat.sw { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .chat.sw::-webkit-scrollbar { display: none; }
  .chat.sw .go { flex: 0 0 100%; scroll-snap-align: start; }
  .chat.sw > .menu { display: none; }
  .chat.sw .swipe { display: flex; flex: none; align-self: stretch; scroll-snap-align: end; }
  .swipe button { width: 4.75rem; display: grid; align-content: center; justify-items: center; gap: 2px; padding: 0; border-radius: 0; background: var(--fill-2); color: var(--text); font-size: var(--t-caption); font-weight: 600; }
  .swipe button .icon { width: 1.25rem; height: 1.25rem; }
  .swipe .del { background: var(--danger); color: #fff; }
}
.chat.needs .r2 { color: var(--text); }
.showall { justify-content: flex-start; min-height: var(--row); padding: 0 var(--s3); background: none; border-radius: var(--r-s); color: var(--text-2); font-size: var(--t-caption); text-align: start; }

/* ---- the bar over a chat: the way back (phones), its name, its options */
.mhead { flex: none; display: none; align-items: center; gap: var(--s1); min-height: var(--bar); padding-inline: var(--s2); }
.mhead h1 { flex: 1; min-width: 0; padding-inline: var(--s2); font-size: var(--t-body); font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mhead .icon-btn { color: var(--text); }
.mmenu { flex: none; display: flex; }
.app[data-screen="chat"] .mhead, .app[data-screen="circle"] .mhead { display: flex; border-bottom: 1px solid var(--hair); }

/* ---- what was said, and under it the box to write in. Both keep the same room for a scroll bar on both sides
   (.dock never scrolls: it only reserves that room), so the box lines up with the answers at every width. */
/* a chat fills from the bottom, as a phone's messages do: the first message sits right above the box to write in */
.app[data-screen="chat"] .log { display: flex; flex-direction: column; }
.app[data-screen="chat"] .log::before { content: ''; flex: 1 0 0; }   /* the room above the first message */
.app[data-screen="chat"] .log > * { flex: none; width: 100%; }        /* each piece keeps the column's width (it shrank to its words, and sat in the middle) */
.app[data-screen="chat"] .log > .msg { margin-block: calc(var(--s5) / 2); }   /* (in a column the gaps of two messages no longer fold into one) */
.log { flex: 1; min-height: 0; overflow-y: auto; padding: var(--s5) var(--gutter) var(--s4); overscroll-behavior: contain; scrollbar-gutter: stable both-edges; }
.log > * { max-width: var(--measure); margin-inline: auto; }
.dock { flex: none; overflow: hidden; scrollbar-gutter: stable both-edges; padding: 5px var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom)); }   /* (5px: room for the focus ring) */
.composer { max-width: var(--measure); margin: 0 auto; padding: var(--s2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-s);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
/* One line, as in every chat: "+" at the start, the box, and one button at the end (the microphone, or Send once
   there is something to send). The buttons stay on the last line as the box grows. */
.tools { display: flex; align-items: flex-end; gap: var(--s1); }
.composer textarea, .composer textarea:focus-visible { display: block; flex: 1; min-width: 0; min-height: var(--row); padding: calc((var(--row) - 1.5em) / 2) var(--s2); background: none; border: 0; box-shadow: none; resize: none; line-height: 1.5; }
.composer textarea::placeholder { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* a long suggestion stays on its one line */
.tools .icon-btn { flex: none; width: var(--row); min-height: var(--row); border-radius: 50%; }
.tools .icon-btn.rec { color: #fff; background: var(--danger); }
.plus .icon { transition: transform .18s var(--ease); }
.plus[aria-expanded="true"] { background: var(--fill-2); color: var(--text); }
.plus[aria-expanded="true"] .icon { transform: rotate(45deg); }   /* open, the plus is the cross that closes it */
/* What "+" opens: a small menu just above it, as in every chat. One thing to a row: its icon, its name, and a tick
   at the end when it is something that is on. It is the browser's own pop-up, placed by the page (app.js): it floats
   over everything, so the box's own edges cannot cut it off. Without that (an older iPhone) it is a list in the box. */
.tray { display: grid; min-width: 15rem; padding: var(--s1); }
.tray[popover] { position: fixed; inset: auto; margin: 0; border: 0; overflow: visible; background: var(--surface); color: var(--text); border-radius: var(--r-m); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.tray[popover]:not(:popover-open) { display: none; }
.tray:popover-open { animation: rise .16s var(--ease); }
.tray button { display: flex; align-items: center; gap: var(--s3); min-height: var(--row); padding: 0 var(--s3); background: none; border-radius: var(--r-s); font-size: var(--t-small); color: var(--text); text-align: start; white-space: nowrap; }
.tray button:hover, .tray button:focus-visible { background: var(--fill); }
.tray button span { flex: 1; }
.tray .icon { flex: none; width: 1.125rem; height: 1.125rem; color: var(--text-2); }
.tray [role="menuitemcheckbox"] .icon:last-child { color: var(--accent); }
.tray [aria-checked="false"] .icon:last-child { visibility: hidden; }
.composer .suggest { display: block; max-width: 100%; min-height: var(--row); padding: 0 var(--s3); background: none; border-radius: 4px; color: var(--text-2); font-size: var(--t-small); text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer .suggest:hover { color: var(--accent); }
/* Send: the one filled button. It takes the microphone's place when there is something to send. */
.send { flex: none; width: var(--row); min-height: var(--row); padding: 0; display: inline-grid; place-items: center; border-radius: 50%; background: var(--accent-fill); color: var(--on-accent); animation: send-in .14s var(--ease); }
.send:hover { background: var(--accent-hover); color: var(--on-accent); }
.send .icon { stroke-width: 2.25; }
@keyframes send-in { from { transform: scale(.6); opacity: 0; } }
.chip { display: flex; align-items: center; gap: var(--s2); width: fit-content; max-width: 100%; margin: var(--s1) var(--s2); padding: var(--s1) var(--s3);
  background: var(--fill); border-radius: var(--r-s); font-size: var(--t-small); overflow-wrap: anywhere; }
.composer .chip { background: var(--fill-2); }   /* (in the dark the box itself is the colour of a chip) */
.chip .icon-btn { width: 1.75rem; min-height: 1.75rem; }
.chip .icon { width: 1rem; height: 1rem; }

/* ---- paying for a task: its estimate and its receipt on the task's card, and the Balance window */
.costline { display: flex; justify-content: space-between; gap: var(--s3); font-weight: 600; font-variant-numeric: tabular-nums; }
.estimate { display: grid; gap: var(--s2); }
.estimate .hint { margin: 0; font-size: var(--t-caption); }
.receipt { display: flex; gap: var(--s3); margin: 0; font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.balance .amount { margin: 0; font-size: var(--t-title-1); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.balance .hint { margin: var(--s1) 0 var(--s3); font-size: var(--t-caption); }
.balance .label { margin: var(--s5) 0 var(--s2); }
.balance .acct button { flex: none; white-space: nowrap; }

/* ---- details: the open chat's tasks and files. A column on the right of a wide screen; elsewhere a window. */
.about { display: none; }
.app[data-screen="circle"] .toabout, .app[data-screen="home"] .toabout { display: none; }
.abhead { display: grid; justify-items: center; gap: var(--s1); text-align: center; margin-bottom: var(--s4); }
.abhead .hint, .about .hint { margin: 0; font-size: var(--t-caption); }
.abtitle { margin: 0; font-size: var(--t-small); font-weight: 600; }
.about section, dialog .abhead ~ section { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); margin-bottom: var(--s4); }
@media (min-width: 1100px) {
  .app[data-screen="chat"]:not(.noabout) .about { display: block; flex: none; width: 18rem; padding: var(--s4) var(--s3); overflow-y: auto; background: var(--fill); border-inline-start: 1px solid var(--hair); }
  .app[data-screen="chat"]:not(.noabout) .toabout { color: var(--accent); }
}

/* ---- tabs (phones): the places, then the round "+" that starts a chat */
.tabbar { flex: none; display: flex; align-items: center; padding: 0 var(--s2) env(safe-area-inset-bottom); border-top: 1px solid var(--hair); background: var(--bg); }
.tab { position: relative; flex: 1; min-height: var(--bar); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; background: none; border-radius: var(--r-s);
  font-size: var(--t-caption); font-weight: 500; color: var(--text-2); }
.tab:hover { background: none; color: var(--text); }
.tab .icon { width: 1.5rem; height: 1.5rem; }
.tab .count { position: absolute; top: .3rem; inset-inline-start: calc(50% + .5rem); }
.app[data-screen="chats"] .t-chats, .app[data-screen="tasks"] .t-tasks, .app[data-screen="files"] .t-files, .app[data-screen="circles"] .t-circles, .app[data-screen="you"] .t-you { color: var(--accent); }
/* the + that starts a chat, beside the list's name: small and round, with room around it for a finger */
.shead .add { position: relative; width: 2.125rem; min-height: 2.125rem; height: 2.125rem; margin-inline-start: var(--s2); border-radius: 50%; background: var(--accent-fill); color: var(--on-accent); }
.shead .add::after { content: ''; position: absolute; inset: -.35rem; }
.shead .add:hover { background: var(--accent-hover); }
.app[data-screen="chat"] .tabbar, .app[data-screen="circle"] .tabbar { display: none; }   /* an open chat has the box to write in there instead */

@media (max-width: 899.98px) {
  .chat .go { font-size: var(--t-body); }
  .gname { font-size: var(--t-small); padding-inline: var(--s3); }
  /* home: the ideas sit over the box, and the box stays at the bottom where a chat's is. With the tabs below it,
     it needs no room of its own for the phone's home bar. */
  .app[data-screen="home"] .dock { order: 1; padding-bottom: var(--s3); }
}
@media (min-width: 900px) {
  .app { flex-direction: row; }
  .tabbar, .shead .ptitle, .shead .ph, .mhead .back { display: none; }
  .side, .app[data-screen] .side { display: flex; flex: none; width: clamp(17rem, 26vw, 23rem); padding: 0 var(--s3) var(--s3); background: var(--fill); border-inline-end: 1px solid var(--hair); }
  .app[data-screen] .main { display: flex; }
  .shead .brand { display: flex; flex: 1; min-width: 0; min-height: var(--row); padding: 0 var(--s2); background: none; border-radius: var(--r-s); white-space: nowrap; }
  .shead .brand:hover { background: var(--fill-2); }
  .side .wide { display: inline-grid; }
  .side .top { display: grid; gap: 1px; margin-bottom: var(--s4); }
  .top button, .side .acct { display: flex; align-items: center; gap: var(--s3); min-height: var(--row); padding: 0 var(--s3); background: none; border-radius: var(--r-s); font-size: var(--t-small); text-align: start; }
  .top button:hover, .side .acct:hover { background: var(--fill-2); }
  .top .icon { color: var(--text-2); }
  .app[data-screen="tasks"] .totasks, .app[data-screen="files"] .tofiles, .app[data-screen="you"] .side .acct { background: var(--fill-2); font-weight: 600; }
  .chats { gap: var(--s4); padding-bottom: var(--s2); }
  .chat .go { min-height: 3.5rem; font-size: var(--t-small); }
  .names .r2 { font-size: var(--t-caption); }
  .side .acct { flex: none; min-height: 3rem; margin-top: var(--s2); padding: 0 var(--s2); }
  .acct .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* a chat's own buttons wait until the row is pointed at or reached by keyboard */
  .chat .menu, .ghead .menu, .ghead .icon-btn { opacity: 0; }
  .chat:hover .menu, .chat:focus-within .menu, .chat .menu[open], .ghead:hover .menu, .ghead:hover .icon-btn, .ghead:focus-within .menu, .ghead:focus-within .icon-btn, .ghead .menu[open] { opacity: 1; }
  /* the sidebar put away: its button and "New chat" stand at the start of the bar over the page, where the sidebar's own were */
  .app.narrow .side { display: none; }
  .app.narrow .mhead { display: flex; }
  .app.narrow .reopen { display: inline-grid; }
  .mhead { padding-inline: var(--s3); }
  .app[data-screen="circle"]:not(.narrow) .mhead { display: none; }   /* a circle has its own heading */
  .app[data-screen="circle"] .mhead { border-bottom: 0; }
  .app[data-screen="circle"] .mhead h1 { visibility: hidden; }
}
@media (hover: none) { .chat .menu, .ghead .menu, .ghead .icon-btn { opacity: 1; } }

/* on the home screen as an app: the bars are not text to select, and nothing is dragged about */
@media (display-mode: standalone) {
  .side, .mhead, .tabbar, .dhead, .ptitle, .label, button { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
}

/* ============ 5. HOME AND CHAT ============ */
/* ---- home: a greeting, the box to ask in, a few ideas. Nothing else. */
.home { display: grid; justify-items: center; gap: var(--s2); text-align: center; }
.home h1 { font-size: var(--t-title-1); font-weight: 600; letter-spacing: -.03em; }
.home .hint { margin: 0; }
.dateline { margin: 0; min-height: 1.4em; color: var(--text-2); font-size: var(--t-small); }
.below { display: none; flex: none; align-content: start; justify-items: center; gap: var(--s4); padding: var(--s3) var(--gutter); }
.below > * { max-width: var(--measure); }
.below > .starters { max-width: none; }
@media (min-width: 900px) { .below > .starters { justify-self: center; width: min(100%, var(--measure)); margin-inline: 0; padding-inline: 0; } }
.app[data-screen="home"] .below { display: grid; }
.app[data-screen="home"] .main { overflow-y: auto; }               /* (a very short window scrolls the whole of it) */
.app[data-screen="home"] .log { flex: 1 0 auto; display: grid; align-content: center; overflow: visible; scrollbar-gutter: auto; }
.app[data-screen="home"] .dock { scrollbar-gutter: auto; }
.starters { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(9.5rem, 1fr); gap: var(--s2); justify-self: stretch; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }                 /* (to the screen's own edges, so a card slides out of sight and not into a wall) */
.starters::-webkit-scrollbar { display: none; }
.starters button { display: grid; align-content: start; gap: 2px; min-height: 4.5rem; padding: var(--s3) var(--s4); background: var(--fill); border-radius: var(--r-m); text-align: start; scroll-snap-align: start; }
.starters button:hover { background: var(--fill-2); }
.starters strong { font-size: var(--t-small); font-weight: 600; }
.starters span { font-size: var(--t-small); color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.starters .more strong { color: var(--accent); }
.nudge { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--ctl); padding: 0 var(--s4); background: color-mix(in srgb, var(--notice) 12%, transparent); color: var(--notice); font-size: var(--t-small); font-weight: 600; }
.nudge:hover { background: color-mix(in srgb, var(--notice) 20%, transparent); }
.nudge .icon { width: 1rem; height: 1rem; transform: rotate(-90deg); }
[dir="rtl"] .nudge .icon { transform: rotate(90deg); }
.upnext { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: var(--s1) var(--s4); min-height: var(--ctl); margin-top: var(--s2); padding: var(--s1) var(--s4); background: var(--fill); border-radius: var(--r-pill); font-size: var(--t-small); color: var(--text-2); font-variant-numeric: tabular-nums; }
.upnext strong { font-weight: 600; color: var(--text); }
.upnext .icon { width: 1rem; height: 1rem; transform: rotate(-90deg); }
[dir="rtl"] .upnext .icon { transform: rotate(90deg); }
.zmanim .value { max-width: none; font-variant-numeric: tabular-nums; }
.zmanim .past { color: var(--text-2); }
.zmanim .next strong, .zmanim .next .value { font-weight: 600; color: var(--accent); }
@media (min-width: 900px) {
  /* a computer has the room: greeting, box and ideas sit together, a little above the middle */
  .app[data-screen="home"] .main { justify-content: center; padding-bottom: 12vh; }
  .app[data-screen="home"] .log { flex: none; padding-bottom: var(--s5); }
  .app[data-screen="home"] .below { padding-top: var(--s4); }
  .app[data-screen="home"].narrow .mhead { position: absolute; top: 0; inset-inline: 0; }   /* (so the bar does not push the middle down) */
}

/* ---- a chat, as in any messaging app: one column; what each side said is in its own bubble, the member's on the
   right in Klear's blue, the answer on the left under the round sign and name of whoever wrote it */
.msg { margin-block: var(--s5); overflow-wrap: anywhere; }
.log > .msg:first-child { margin-top: 0; }
.log > .msg.user, .log > .msg.other { width: fit-content; max-width: min(34rem, 86%); padding: var(--s2) var(--s4); background: var(--fill); border-radius: 1.25rem; white-space: pre-wrap; }
.log > .msg.user { background: var(--accent-fill); color: var(--on-accent); border-bottom-right-radius: .375rem; }
/* ---- the status page (/status): one line a part, a dot for how it is */
.statuspage { max-width: 34rem; margin: 0 auto; padding: var(--s6) var(--s4); }
.statuspage ul { list-style: none; padding: 0; margin: var(--s4) 0; }
.statuspage li { display: grid; grid-template-columns: auto 1fr; column-gap: var(--s3); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--line, color-mix(in srgb, currentColor 12%, transparent)); }
.statuspage li .hint { grid-column: 2; }
.statusall { display: flex; align-items: center; gap: var(--s3); font-weight: 600; }
.dot { width: .75rem; height: .75rem; border-radius: 50%; flex: none; background: color-mix(in srgb, currentColor 30%, transparent); }
.dot.up { background: #1a9d55; }
.dot.down { background: var(--danger, #d33); }
.signin { margin-top: var(--s3); }
.signin summary { cursor: pointer; font-weight: 600; }
.signin .fields { display: grid; gap: var(--s2); margin-top: var(--s2); }
.log > .redo.mine { display: block; width: fit-content; margin: calc(var(--s1) * -1) max(0px, calc((100% - var(--measure)) / 2)) 0 auto; font-size: var(--t-caption); color: var(--text-2); }
.log > .msg.user small { color: color-mix(in srgb, var(--on-accent) 80%, transparent); }
.log > .msg.user ::selection { background: color-mix(in srgb, var(--on-accent) 35%, transparent); }
.log > .msg.other { border-bottom-left-radius: .375rem; }
.log > .msg.assistant { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); column-gap: var(--s2); }
.log > .msg.assistant > * { grid-column: 2; min-width: 0; }
.log > .msg.assistant > .by { display: contents; }
.log > .msg.assistant > .by .character { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
.log > .msg.assistant > .by strong { grid-column: 2; margin-bottom: var(--s1); padding-inline-start: var(--s1); font-size: var(--t-caption); font-weight: 600; color: var(--text-2); }
.bubble { justify-self: start; max-width: 100%; padding: var(--s2) var(--s4); background: var(--fill); border-radius: 1.25rem; border-top-left-radius: .375rem; }
.bubble > :first-child { margin-top: 0; }
.bubble > :last-child { margin-bottom: 0; }
.bubble pre, .bubble :not(pre) > code { background: var(--fill-2); }
.bubble:has(.sheet, .scroll, .chart, pre) { justify-self: stretch; }   /* a form, a table or a chart takes the column's width */
/* Klear is writing: three dots, one after the other */
.typing { display: inline-flex; align-items: center; gap: 5px; min-height: 2.5rem; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); opacity: .4; animation: typing 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .16s; }
.typing i:nth-child(3) { animation-delay: .32s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
/* (left and right on purpose, not start and end: a bubble takes the direction of its own text, and a Hebrew message
   must stay on its writer's side) */
.log > .msg.user { margin-left: auto; margin-right: max(0px, calc((100% - var(--measure)) / 2)); }
.log > .msg.other { margin-left: max(0px, calc((100% - var(--measure)) / 2)); margin-right: auto; }   /* someone else in a shared chat sits opposite, with their name */
.msg.other small, .msg.user small { display: block; color: var(--text-2); font-size: var(--t-caption); margin-bottom: 2px; }
.msg > :first-child { margin-top: 0; }
.msg.wait { color: var(--text-2); }
.msg.note { color: var(--notice); }
.msg pre { max-width: 100%; margin: var(--s3) 0; padding: var(--s4); background: var(--fill); border-radius: var(--r-m); overflow-x: auto; font: var(--t-small)/1.5 var(--mono); letter-spacing: 0; overflow-wrap: normal; }
.msg :not(pre) > code { background: var(--fill); padding: .1em .35em; border-radius: 6px; font: .9em var(--mono); letter-spacing: 0; }
.msg ul, .msg ol, dialog ul, dialog ol:not(.steps) { padding-inline-start: 1.4rem; margin: var(--s2) 0; }
.msg li, dialog li { margin: var(--s1) 0; }
.msg .scroll { margin-block: var(--s3); }
.msg th { color: var(--text); font-weight: 600; border-bottom-color: var(--line); }
.msg td { overflow-wrap: normal; }
.by { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.log > .files, .log > .replies, .log > .fields { margin-block: var(--s3); }
/* the row under an answer: quiet, and on a computer only under the newest answer until an older one is pointed at */
.actions { position: relative; display: flex; align-items: center; margin: var(--s1) 0 0; margin-inline-start: calc((var(--row) - 1.125rem) / -2); }
.actions .menu { position: static; }                               /* its menu opens from the start of the row, so it never runs off the screen */
.actions .icon { width: 1.125rem; height: 1.125rem; }
.actions .hint { order: 9; margin-inline-start: var(--s2); font-size: var(--t-caption); }
.actions .menu > div { top: auto; bottom: calc(100% + 2px); inset-inline: 0 auto; }
@media (hover: hover) {
  .log > .msg:has(~ .msg) .actions { opacity: 0; transition: opacity .15s var(--ease); }
  .log > .msg:hover .actions, .log > .msg .actions:focus-within, .log > .msg .actions:has([open]) { opacity: 1; }
}
/* a recorded call: the recording, with what was said written out below it */
.call { margin-block: var(--s5) var(--s3); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-m); }
.call small { display: block; color: var(--text-2); margin-bottom: var(--s2); }
.call audio { display: block; width: 100%; height: 2.5rem; }

/* ---- rich answers: charts and paper forms */
.chart { margin: var(--s4) 0; background: var(--fill); border-radius: var(--r-m); padding: var(--s2); }
.chart svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.chart .c-mark { fill: var(--accent); }
.chart .c-slice { stroke: var(--fill); stroke-width: 2; }
.chart .c-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart .c-axis { stroke: var(--line); stroke-width: 1; }
.chart .c-title { fill: var(--text); font-size: 17px; font-weight: 600; }
.chart .c-value { fill: var(--text); font-size: 13px; font-weight: 600; }
.chart .c-label { fill: var(--text-2); font-size: 13px; }
/* paper form: always black on white, whatever the theme, because it is a picture of the printed page */
.sheet { margin: var(--s4) 0; padding: clamp(1rem, 5vw, 2.5rem); background: #fff; color: #111; border-radius: 4px; box-shadow: 0 0 0 1px var(--line), var(--shadow-s);
  font-size: .9375rem; line-height: 1.35; letter-spacing: 0; color-scheme: light; }
.sheet header { border-bottom: 2px solid #111; padding-bottom: .5rem; margin-bottom: .9rem; }
.sheet h3 { margin: 0; font-size: 1.5rem; letter-spacing: -.01em; }
.sheet header p { margin: .15rem 0 0; color: #444; }
.sheet .intro, .sheet .foot { color: #333; font-size: .875rem; margin: 0 0 .9rem; }
.sheet .foot { margin: 1.2rem 0 0; padding-top: .6rem; border-top: 1px solid #999; }
.sheet fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.sheet legend { padding: .2rem .5rem; margin-bottom: .6rem; width: 100%; background: #111; color: #fff; font-weight: 600; font-size: .8125rem; }
.sheet .grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .9rem 1.2rem; align-items: end; }
.sheet .f { grid-column: span 6; min-width: 0; }
.sheet label { margin: 0; gap: .1rem; color: #111; font-size: inherit; }
.sheet .cap { display: block; font-size: .8125rem; color: #333; }
.sheet input:not([type=checkbox]), .sheet textarea {
  min-height: 1.9rem; padding: .15rem .1rem; background: none; color: #111; font-size: 1rem;
  border: 0; border-bottom: 1px solid #111; border-radius: 0; box-shadow: none; }
.sheet input::placeholder { color: #bbb; opacity: 1; }
.sheet input:focus-visible, .sheet textarea:focus-visible { background: #f2f6ff; border-color: #111; box-shadow: none; outline: none; }
.sheet textarea { resize: none; line-height: 1.9rem; border: 0; padding: 0;      /* ruled writing lines */
  background: repeating-linear-gradient(#fff 0 calc(1.9rem - 1px), #111 calc(1.9rem - 1px) 1.9rem); }
.sheet .box { display: flex; align-items: center; gap: .45rem; min-height: 1.6rem; }
.sheet .box input { appearance: none; width: 1rem; height: 1rem; padding: 0; border: 1.5px solid #111; border-radius: 2px; background: #fff; }
.sheet .box input:checked { background: #111; box-shadow: inset 0 0 0 2.5px #fff; }
.sheet .boxes { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; margin-top: .25rem; }
.sheet .sign { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; margin-top: 1rem; }
.sheet .sign label { display: flex; flex-direction: column; }
.sheet table { margin-top: .3rem; font-size: .875rem; }
.sheet th, .sheet td { border: 1px solid #111; padding: 0 .35rem; color: #111; }
.sheet th { background: #eee; font-weight: 600; padding-block: .25rem; }
.sheet td input:not([type=checkbox]) { border: 0; }
@media (min-width: 600px) {
  .sheet .f.half { grid-column: span 3; }
  .sheet .f.third { grid-column: span 2; }
}

/* ============ 6. A JOB ============
   The heart of Klear Bot: an errand a bot is doing. The same card in its chat, on Tasks and in a helper's list: who is
   on it and what it is called, how it stands in plain words, what it is going for, its latest step, its question with
   the ways to answer, and the files it made. */
.jobs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
.job { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); font-size: var(--t-small); overflow-wrap: anywhere; }
.log > .job { margin-block: var(--s5); }
.jhead { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 0; padding: 0; background: none; border-radius: var(--r-s); text-align: start; }
.jhead:hover { background: none; }
.jhead .text { flex: 1; min-width: 0; display: grid; gap: var(--s1); }
.jhead strong { font-size: var(--t-body); font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jhead .meta { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.jhead .meta .hint { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-caption); }
.jhead > .icon { width: 1rem; height: 1rem; color: var(--text-2); transform: rotate(-90deg); }
[dir="rtl"] .jhead > .icon { transform: rotate(90deg); }
.job p { margin: 0; }
.job .aim .hint, .jobgoal .hint { font-size: inherit; }
.job .step, .job li { display: flex; align-items: flex-start; gap: var(--s2); color: var(--text-2); }
.job ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.job li { margin: 0; }
.job .step > .icon, .job li > .icon { width: 1rem; height: 1rem; margin-top: .15rem; stroke-width: 2.2; }
.job.done .step > .icon, .job li > .icon { color: var(--ok); }      /* green only for what is finished */
.job .step > .spin, .job li > .spin { margin-top: .22rem; }
.job li > .todo { width: .85rem; height: .85rem; flex: none; margin-top: .22rem; border: 2px solid var(--line); border-radius: 50%; }
.job .question { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--hair); font-size: var(--t-body); }
.job .question > * { margin: 0; }
.job.done, .job.stopped { background: none; }

/* ============ 7. TASKS AND YOU ============ */
/* a page's name with one thing beside it (Today: the two dates, stacked; Files: what to show) */
.phead { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.phead .dates { flex: none; margin: 0; display: grid; text-align: end; color: var(--text-2); font-size: var(--t-small); line-height: 1.35; }
.page > .upnext { margin: calc(-1 * var(--s3)) 0 0; }
.phead select { flex: none; width: auto; }
.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); padding-bottom: var(--s6); }
.page > section { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
.page > section > .label { padding-inline: var(--s4); }
.page > section > .hint { margin: 0; padding-inline: var(--s4); font-size: var(--t-caption); }
.blank { display: grid; justify-items: center; gap: var(--s3); padding: var(--s7) var(--s4); text-align: center; background: var(--fill); border-radius: var(--r-m); }
.blank p { margin: 0; max-width: 28rem; }
.me { display: flex; align-items: center; gap: var(--s3); }
.me .avatar { width: 3.25rem; height: 3.25rem; font-size: var(--t-title-3); }
.me .hint { margin: 0; overflow-wrap: anywhere; }
.legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s1) var(--s4); color: var(--text-2); font-size: var(--t-caption); }
.legal .link { font-size: inherit; padding: 0; min-height: var(--tap); color: var(--text-2); }
@media (min-width: 900px) { .log > .page { padding-top: var(--s5); } }

/* ============ 8. WINDOWS ============
   Every pop-up window is one frame: its name and a close button stay at the top, the body scrolls. A sheet from the
   bottom on phones, a centred card from 600px. */
dialog {
  width: 100%; max-width: none; max-height: 90dvh; margin: auto 0 0; padding: 0; border: 0; overflow: hidden;
  color: var(--text); background: var(--surface); border-radius: var(--r-l) var(--r-l) 0 0; box-shadow: var(--shadow);
  --fill: light-dark(#f5f5f7, #2c2c2e); --fill-2: light-dark(#e8e8ed, #3a3a3c); --hair: light-dark(#e5e5ea, #3a3a3c);   /* in the dark a window is already grey, so what sits in it goes one step lighter */
}
dialog[open] { display: flex; flex-direction: column; animation: rise .35s var(--ease) both; }
dialog::backdrop { background: var(--scrim); backdrop-filter: blur(6px); }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.dhead { flex: none; display: flex; align-items: center; gap: var(--s3); min-height: var(--bar); padding: var(--s2) var(--s3) var(--s2) var(--s5); }
.dhead h2 { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--s3); font-size: var(--t-body); font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dhead .icon-btn { width: 2.25rem; min-height: 2.25rem; border-radius: 50%; background: var(--fill); }
.dbody { flex: 1; min-height: 0; overflow: hidden auto; overscroll-behavior: contain; padding: 0 var(--s5) calc(var(--s5) + env(safe-area-inset-bottom)); }
.dbody pre.note { margin: 0 0 var(--s4); padding: var(--s4); background: var(--fill); border-radius: var(--r-m); font: var(--t-small)/1.55 var(--font); letter-spacing: 0; white-space: pre-wrap; overflow-wrap: anywhere; }   /* a note a helper wrote, read in the app */
.dbody > :first-child { margin-top: 0; }
.dbody > :last-child { margin-bottom: 0; }
.dbody h3 { margin: var(--s5) 0 var(--s2); font-size: var(--t-caption); font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.dbody > .list, .dbody > .jobs { margin-block: var(--s3); }
.dbody > button:not(.link):not(.item), .dbody > div > button:not(.link):not(.item) { margin-top: var(--s2); }
.dbody .msg { margin-block: var(--s3); }
dialog input, dialog textarea, dialog select { background-color: var(--fill); }
dialog .list input, dialog .entry input, dialog .entry textarea, dialog .place input { background-color: var(--surface); }
dialog.search .dhead { display: none; }
dialog.search .dbody { padding-top: var(--s5); }
dialog.search .list { max-height: 50dvh; overflow-y: auto; }
@media (max-width: 599.98px) {
  /* a sheet: a small grip at the top says it can be put away */
  dialog::before { content: ""; flex: none; align-self: center; width: 2.25rem; height: .3rem; margin-top: var(--s2); border-radius: 3px; background: var(--line); }
  .dhead { min-height: 3rem; }
}
@media (min-width: 600px) {
  dialog { width: min(34rem, calc(100% - 2rem)); max-height: min(44rem, 86dvh); margin: auto; border-radius: var(--r-l); }
  dialog.search { margin-top: 12vh; }
  .dhead { border-bottom: 1px solid var(--hair); }
  .dbody { padding-top: var(--s4); }
  .toast { bottom: 1.5rem; }
}

/* ---- what sits inside the windows */
.tabs { gap: var(--s2); margin-bottom: var(--s2); }                 /* Files: which kind to show */
.tabs button { min-height: 2rem; padding: 0 var(--s3); font-size: var(--t-small); }
.tabs button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.codes { list-style: none; margin: var(--s4) 0 0; padding: 0 var(--s4); background: var(--fill); border-radius: var(--r-m); }
.codes li { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 3.75rem; margin: 0; }
.codes li + li { border-top: 1px solid var(--hair); }
.codes .code { font-size: var(--t-title-3); }
.codes .used { color: var(--text-2); } .codes .used .code { text-decoration: line-through; font-weight: 400; }
.codes button { min-height: var(--row); padding: 0 var(--s4); background: var(--surface); color: var(--accent); font-size: var(--t-small); }
.jobgoal { margin: 0 0 var(--s3); padding: var(--s3) var(--s4); background: var(--fill); border-radius: var(--r-m); }
.jobgoal p { margin: 0; }
.jobgoal p + p { margin-top: var(--s1); font-size: var(--t-small); }
.steps { list-style: none; margin: var(--s3) 0; padding: var(--s3) var(--s4); background: var(--fill); border-radius: var(--r-m); color: var(--text-2); font-size: var(--t-small); max-height: 14rem; overflow-y: auto; }
.steps:empty { display: none; }
.steps li { margin: var(--s1) 0; }
.steps .answer, .steps .instruction { color: var(--text); }
.steps .error { color: var(--danger); }
.receipts { margin: var(--s2) 0 var(--s4); padding-inline-start: 1.3rem; font-size: var(--t-small); }
.entries { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); margin: var(--s3) 0; }
.entry { display: grid; gap: var(--s2); padding: var(--s3) var(--s4); background: var(--fill); border-radius: var(--r-m); }
.entry p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.entry .row { flex-wrap: nowrap; align-items: flex-start; }
.entry.found { margin: var(--s3) 0; outline: 1px solid var(--accent); }
.review { display: grid; gap: var(--s3); }
.review article { background: var(--fill); border-radius: var(--r-m); padding: var(--s4); }
.review h4 { font-size: var(--t-small); color: var(--text-2); font-weight: 500; margin: var(--s3) 0 0; }
.review .clip { max-height: 9rem; overflow-y: auto; white-space: pre-wrap; margin: var(--s1) 0; }
.terms { font-size: var(--t-caption); color: var(--text-2); line-height: 1.45; margin: var(--s3) 0 0; }
.terms .link { font-size: inherit; padding: 0; display: inline; }
.conn { padding: var(--s3) 0; border-bottom: 1px solid var(--hair); }
.conn .hint { margin: var(--s1) 0 0; }
.task { display: flex; align-items: center; gap: var(--s3); min-height: var(--tap); margin: 0; padding: var(--s2) var(--s4); background: var(--fill); border-radius: var(--r-m); color: var(--text); font-size: var(--t-body); }
.conn .task, .toolrow .task { min-height: 0; padding: 0; background: none; }
.toolrow { padding: var(--s2) 0; border-bottom: 1px solid var(--hair); }
.toolrow .check { min-height: 0; margin-inline-start: 2rem; font-size: var(--t-caption); color: var(--text-2); }
.brief, .place { margin: var(--s3) 0; padding: var(--s3) var(--s4); background: var(--fill); border-radius: var(--r-m); }
.brief { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.brief input[type=time] { width: auto; min-height: var(--row); background: var(--surface); }
.brief .hint { margin: 0; flex-basis: 100%; }
.place button { min-height: var(--row); padding: 0 var(--s4); background: var(--surface); font-size: var(--t-small); }
.place input { display: block; margin-top: var(--s2); }
.towns { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
/* the page a bot handed over: a picture of it, always on white like the page itself */
.pageshot { display: block; width: 100%; max-width: 412px; margin: var(--s3) auto; background: #fff; border-radius: var(--r-s); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.pagekeys { margin-top: var(--s3); gap: var(--s2); }
.pagekeys button { min-height: var(--row); padding: 0 var(--s3); font-size: var(--t-small); }

/* ============ 9. WELCOME ============
   The page before signing in (design approved 2026-11-29). Home: who Klear is, the way in, one real answer, three
   points, the phone line. Join and sign in: one centred column of fields. A phone reads it top to bottom; from 900px
   the pitch and the answer stand side by side and the three points go in a row. */
.welcome { min-height: 100%; max-width: 24.5rem; margin: 0 auto; box-sizing: border-box;
  padding: calc(var(--s2) + env(safe-area-inset-top)) var(--s5) calc(var(--s4) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: var(--s6); }
.wbar { display: flex; align-items: center; gap: var(--s2); min-height: var(--bar); }
.wbar strong { flex: 1; text-align: start; font-size: 1.1875rem; font-weight: 600; letter-spacing: -.02em; }
.wbar .link { flex: none; min-height: var(--tap); font-weight: 500; }
.wbar .back { display: inline-flex; align-items: center; gap: var(--s1); margin-inline-end: auto; padding-inline-start: 0; }
.mark { display: inline-flex; }
.hello { display: grid; justify-items: center; gap: var(--s3); text-align: center; }
.hello h1 { margin: 0; font-size: clamp(2.5rem, 9vw, 4rem); line-height: 1.05; font-weight: 700; letter-spacing: -.035em; }
.hello > p { margin: 0; color: var(--text-2); max-width: 19rem; text-wrap: balance; font-size: var(--t-title-3); line-height: 1.4; }
.hello.small h1 { font-size: 1.875rem; letter-spacing: -.03em; margin-top: var(--s2); }
.hello.small > p { font-size: var(--t-body); }
.hello .get { justify-self: stretch; margin-top: var(--s4); }
.orcall { display: none; margin: 0; color: var(--text-2); font-size: var(--t-small); }
.orcall a { font-weight: 600; }
.enter { display: grid; gap: var(--s3); }
.enter input { min-height: 3.125rem; background: var(--bg); border-color: var(--line); border-radius: var(--r-m); font-size: 1.0625rem; }
.enter input::placeholder { opacity: 1; }
.enter .primary { min-height: 3.125rem; margin-top: var(--s1); border-radius: var(--r-pill); font-size: 1.0625rem; font-weight: 600; transition: background .2s var(--ease), color .2s var(--ease); }
/* a button wakes up when its form has what it needs: grey until then, the accent colour once it can be pressed */
.enter:invalid .primary, .enter:invalid .primary:hover { background: var(--fill-2); color: var(--text-2); }
.enter > .link { justify-self: center; min-height: var(--tap); font-weight: 500; }
.enter > .hint { margin: 0; }
.enter .under { margin: calc(var(--s1) * -1) var(--s1) 0; font-size: var(--t-caption); }
.enter .terms { margin: 0; text-align: center; }
.placed { display: grid; gap: var(--s2); text-align: start; justify-self: stretch; margin-top: var(--s4); }
.placed p { margin: 0; }
.placed .link-line { overflow-wrap: anywhere; user-select: all; }
.welcome .done { display: flex; gap: var(--s2); align-items: flex-start; margin: var(--s4) 0 0; color: var(--text); font-size: var(--t-body); text-align: start; }
.placed .done { margin: 0; }
.welcome .done .icon { color: var(--accent); margin-top: .15em; flex: none; }
.example { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4); background: var(--fill); border-radius: var(--r-l); }
.say { align-self: flex-start; max-width: 88%; margin: 0; padding: var(--s3) var(--s4); background: light-dark(#ffffff, #2c2c2e); border-radius: 1.125rem; border-bottom-left-radius: .25rem;
  display: flex; flex-direction: column; gap: var(--s2); font-size: .9375rem; line-height: 1.4; }
.say.mine { align-self: flex-end; max-width: 78%; background: var(--accent-fill); color: var(--on-accent); border-radius: 1.125rem; border-bottom-right-radius: .25rem; }
.say { text-wrap: pretty; }   /* (never one word left alone on the last line) */
.say.wide { display: none; }
.say q { color: var(--text-2); }
/* the answer buttons, drawn as the app draws them under a question: a picture here, not working buttons */
.answers { display: flex; gap: var(--s2); margin-top: calc(var(--s1) * -1); }
.answers span { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 var(--s4); border: 1px solid var(--line); border-radius: var(--r-pill);
  background: light-dark(#ffffff, #2c2c2e); font-size: var(--t-small); font-weight: 500; }
.answers .primary { background: var(--accent-fill); border-color: transparent; color: var(--on-accent); }
.points { display: grid; gap: var(--s5); }
.point { display: flex; gap: var(--s3); align-items: flex-start; }
.point > .icon { flex: none; width: 1.75rem; height: 1.75rem; color: var(--accent); stroke-width: 1.8; }
.point h2 { margin: 0 0 var(--s1); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; }
.point p { margin: 0; color: var(--text-2); font-size: .9375rem; line-height: 1.45; }
.callin { display: grid; justify-items: center; gap: var(--s1); padding: var(--s5) var(--s4); border: 1px solid var(--hair); border-radius: var(--r-l); text-align: center; }
.callin p { margin: 0; color: var(--text-2); font-size: .9375rem; }
.callin a { font-size: var(--t-title-2); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.callin .hint { margin: 0; font-size: var(--t-small); }
.welcome .legal { margin-top: auto; }
@media (min-width: 900px) {
  .welcome.front { max-width: 70rem; padding-inline: var(--s6); gap: var(--s8); }
  .welcome.front .wbar { border-bottom: 1px solid var(--hair); margin-inline: calc(var(--s6) * -1); padding-inline: var(--s6); }
  .hero { display: flex; gap: var(--s8); align-items: center; }
  .hero .hello { flex: 1 1 0; justify-items: start; text-align: start; }
  .hero .hello > p { max-width: 28rem; font-size: var(--t-title-2); }
  .hero .get { grid-template-columns: 1fr auto; justify-self: start; width: 100%; max-width: 30rem; }
  .hero .get .primary { margin-top: 0; padding-inline: var(--s5); }
  .hero .get > .link, .hero .get > .hint { grid-column: 1 / -1; justify-self: start; padding-inline-start: 0; }
  .hero .placed { max-width: 30rem; }
  .example { flex: 1 1 0; padding: var(--s6) var(--s5); border-radius: 1.75rem; }
  .say { font-size: var(--t-body); }
  .say.wide { display: flex; }
  .points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
  .point { flex-direction: column; }
  .point > .icon { width: 2rem; height: 2rem; }
  .hero .hello > .orcall { display: block; font-size: var(--t-body); }
  .welcome.front .callin { display: none; }   /* (on a wide screen the number is under the invite already) */
  .welcome:not(.front) { justify-content: center; }
}
.inline { display: flex; gap: var(--s2); flex-wrap: wrap; }
.inline input { flex: 1 1 12rem; }

/* ============ 10. CIRCLES (shown only while circles are switched on) ============ */
.side .join { display: none; }
.sub { display: none; }
.circles { display: grid; gap: var(--s2); margin: var(--s3) 0; }
.circle { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--s3); align-items: center; padding: var(--s3) var(--s4); background: var(--fill); border-radius: var(--r-m); }
.circle .hint { grid-column: 1; margin: 0; }
.circle > button { grid-column: 2; grid-row: 1 / span 2; min-height: var(--row); padding: 0 var(--s4); background: var(--surface); }
.circle.member { grid-template-columns: 1fr auto auto; }
.circle.member > button { grid-row: auto; grid-column: auto; }
.circle.member select { width: auto; min-height: var(--row); padding-block: 0; background-color: var(--surface); }
.circle.pick { grid-template-columns: auto 1fr; width: 100%; min-height: 3.5rem; text-align: start; }
.circle.pick:hover { background: var(--fill-2); }
.circle.pick .character { grid-row: 1 / span 2; }
.circle.pick > span { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.circle.pick .hint { grid-column: 2; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task.done > span { color: var(--text-2); text-decoration: line-through; }
.task.done .hint { display: inline-block; margin-inline-start: var(--s2); text-decoration: none; }
.task .icon-btn .character { pointer-events: none; }
.sendto { display: block; font-size: var(--t-caption); }
.task.done .sendto { display: none; }
.routine { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.routine input:first-child { grid-column: 1 / -1; }
.topics { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: var(--s3) 0; }
.topics button { min-height: 2rem; max-width: 100%; padding: 0 var(--s4); font-size: var(--t-caption); }
.topics button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topics button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.topics button.muted span { text-decoration: line-through; opacity: .6; }
.botrow { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.botrow > .row { min-width: 0; padding: 0; background: none; border-radius: var(--r-s); text-align: start; gap: var(--s3); }
.botrow .grow { display: grid; gap: 2px; }
.botrow .grow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* a circle in the main pane: the conversation, with the goal and to-dos in one line that opens (phones) or beside it (wide) */
.cview { display: grid; grid-template-rows: auto auto 1fr; align-content: start; gap: var(--s4); padding-bottom: var(--s4); }
.log > .cview { min-height: 100%; }
.chead { display: flex; align-items: center; gap: var(--s4); }
.chead h2 { font-size: var(--t-title-3); overflow-wrap: anywhere; }
.chead .hint { margin: 2px 0 0; }
.cside { padding: 0 var(--s4); background: var(--fill); border-radius: var(--r-m); --surface: light-dark(#ffffff, #2c2c2e); }   /* in the dark the panel is already grey, so what sits on it goes one step lighter */
.cside[open] { padding-bottom: var(--s4); }
.cside summary { display: flex; align-items: center; gap: var(--s3); min-height: 3rem; cursor: pointer; list-style: none; font-weight: 600; }
.cside summary::-webkit-details-marker { display: none; }
.cside summary progress { width: 5rem; flex: none; }
.cside summary .icon { width: 1rem; height: 1rem; color: var(--text-2); transition: transform .15s var(--ease); }
.cside[open] summary .icon { transform: rotate(180deg); }
.cside .label { margin: var(--s4) 0 var(--s2); }
.cside .task, .cside input:not([type=checkbox]), .cside textarea { background: var(--surface); }
.cside textarea { margin-bottom: var(--s2); }
.cside .entries, .cside .coming { margin: 0; }
.goalbox { display: grid; gap: var(--s2); }
.goalbox > * { margin: 0; }
.goal { font-weight: 600; }
.cfeed { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.cfeed > .hint, .cfeed .cpost { margin: 0; }
.cpost .by { margin-bottom: var(--s1); }
.cpost .by .hint { flex: 1; font-size: var(--t-caption); }
.cpost .by .icon-btn { opacity: 0; }
.cpost:hover .by .icon-btn, .cpost .by .icon-btn:focus-visible { opacity: 1; }
@media (hover: none) { .cpost .by .icon-btn { opacity: 1; } }
.cwrite { position: sticky; bottom: 0; display: flex; align-items: flex-end; gap: var(--s2); width: 100%; max-width: none; margin: auto 0 0; box-shadow: 0 0 0 14px var(--bg); }
.cwrite:focus-within { box-shadow: 0 0 0 14px var(--bg); }
.cwrite textarea { flex: 1; }
@media (max-width: 899.98px) {
  /* the Circles screen: roomy rows, each with the last thing said */
  .app[data-screen="chats"] .group.pinned, .app[data-screen="circles"] .group:not(.pinned), .app[data-screen="circles"] .group.pinned .ghead { display: none; }
  .app[data-screen="circles"] .side .join { display: block; flex: none; margin-bottom: var(--s3); }
  .app[data-screen="circles"] .chat .go { min-height: 4.25rem; gap: var(--s3); padding-inline: 0; }
  .app[data-screen="circles"] .chat .character { width: 3rem; height: 3rem; flex: none; }
  .app[data-screen="circles"] .names span:first-child { font-weight: 600; }
  .app[data-screen="circles"] .sub { display: block; color: var(--text-2); font-size: var(--t-small); }
}
@media (min-width: 1100px) {
  .log > .cview { max-width: 66rem; }
  .cview { grid-template-columns: minmax(0, 1fr) 19rem; grid-template-rows: auto 1fr; column-gap: var(--s6); }
  .chead { grid-column: 1 / -1; padding-bottom: var(--s4); border-bottom: 1px solid var(--hair); }
  .cfeed { grid-column: 1; grid-row: 2; }
  .cside { grid-column: 2; grid-row: 2; align-self: start; position: sticky; top: 0; padding: 0 0 0 var(--s5); background: none; border-radius: 0; border-inline-start: 1px solid var(--hair); }
  .cside summary { display: none; }
  .cside > .label:first-of-type:nth-child(2), .cside .goalbox .label { margin-top: 0; }   /* (the first heading in the column, right after the hidden summary) */
  .cside .task { background: var(--fill); }
}

/* ============ 11. ADMIN (Klear HQ) ============ */
.adminpage { height: 100%; overflow-y: auto; padding-top: env(safe-area-inset-top); }
.adminpage header { display: flex; justify-content: space-between; align-items: center; min-height: var(--bar); padding: 0 var(--gutter); }
.adminpage header .brand { font-size: var(--t-body); }
/* tabs under the header (they scroll sideways on a phone); the same buttons sit inside a window as a circle's settings */
.hqtabs { position: sticky; top: 0; z-index: 1; display: flex; gap: var(--s1); padding: var(--s2) var(--gutter); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--hair); background: var(--bg); }
.hqtabs button { flex: none; min-height: var(--row); padding: 0 var(--s4); background: none; color: var(--text-2); font-size: var(--t-small); }
.hqtabs button:hover { background: var(--fill); }
.hqtabs button.on { background: var(--fill-2); color: var(--text); font-weight: 600; }
.dtabs { position: static; flex-wrap: wrap; padding: 0 0 var(--s3); margin-bottom: var(--s3); background: none; }
.adminpage main { max-width: 60rem; margin: 0 auto; padding: var(--s5) var(--gutter) var(--s8); }
.adminpage h2 { margin: var(--s7) 0 var(--s2); }
.adminpage main > h2:first-child { margin-top: var(--s3); }
.adminpage .scroll { max-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.adminpage textarea:not(.plain) { font: var(--t-small)/1.5 var(--mono); letter-spacing: 0; }
.adminpage .row input, .adminpage .row select { flex: 1 1 12rem; width: auto; }
.minted { line-height: 2; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: var(--s3); margin: 0; }
.stat { display: grid; gap: var(--s1); min-height: 0; padding: var(--s4); background: var(--fill); border-radius: var(--r-m); text-align: start; }
.stat span { color: var(--text-2); font-size: var(--t-small); }
.stat strong { font-size: var(--t-title-2); font-weight: 600; }
.issues { display: grid; background: var(--fill); border-radius: var(--r-m); overflow: hidden; }
.issue { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 3rem; padding: var(--s3) var(--s4); background: none; border-radius: 0; text-align: start; }
.issue + .issue { border-top: 1px solid var(--hair); }
.issue:hover { background: var(--fill-2); }
.issue .dot { width: .6rem; height: .6rem; background: var(--text-2); }
.issue.bad .dot { background: var(--danger); }
.issue.warn .dot { background: var(--notice); }
.trend { display: flex; align-items: flex-end; gap: var(--s1); height: 9rem; padding: var(--s4) var(--s4) var(--s2); background: var(--fill); border-radius: var(--r-m); }
.trend div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: var(--s1); min-width: 0; }
.trend i { width: 100%; max-width: 2rem; min-height: 2px; background: var(--accent-fill); border-radius: 3px 3px 0 0; }
.trend small { color: var(--text-2); font-size: var(--t-caption); }

/* ============ 12. CHARACTERS: Klear and the bots ============
   The pose follows a bot's status, everyone blinks and breathes, and a click makes any of them jump. */
.character { flex: none; vertical-align: middle; cursor: pointer; overflow: visible; }
.character .arm { transform-box: fill-box; transform-origin: 50% 12%; }
.character .eye, .character .tip, .character .light { transform-box: fill-box; transform-origin: center; }
.character .look { transform: translate(var(--lx, 0), var(--ly, 0)); transition: transform .15s ease-out; }
.character .eye { animation: ch-blink 5.2s infinite; animation-delay: var(--blink, 0s); }
.character:not(.run):not(.jump) { animation: ch-breathe 3.6s ease-in-out infinite; animation-delay: var(--blink, 0s); }
.character:hover .tip { animation: ch-pulse .35s ease-in-out infinite alternate; }
/* working: on the move, antenna and chest light pulse, eyes on the job */
.character.run { animation: ch-bob .45s ease-in-out infinite alternate; }
.character.run .arm.l { animation: ch-swing .45s ease-in-out infinite alternate; }
.character.run .arm.r { animation: ch-swing .45s ease-in-out infinite alternate-reverse; }
.character.run .tip, .character.run .light { animation: ch-pulse .45s ease-in-out infinite alternate; }
.character.run .look { transform: translate(1px, .6px); }
/* needs the member: an arm up, looks up at it, blinks often, chest light flashes amber */
.character.ask .arm.r { transform: translate(4px, -4px) rotate(-160deg) scaleY(1.35); animation: ch-wave .5s ease-in-out infinite alternate; }
.character.ask .look { transform: translate(1px, -1px); }
.character.ask .eye { animation-duration: 1.8s; }
.character.ask .light { fill: #ffb020; fill-opacity: 1; animation: ch-flash .5s steps(2, jump-none) infinite alternate; }
/* finished: arms folded, eyes closed, content, chest light green */
.character.rest .arm { stroke: rgba(0, 0, 0, .28); stroke-width: .7; }
.character.rest .arm.l { transform: translate(3px, -1px) rotate(-72deg); }
.character.rest .arm.r { transform: translate(-3px, .5px) rotate(72deg); }
.character.rest .eye { animation: none; transform: scaleY(.18); }
.character.rest .light { fill: #34c759; fill-opacity: 1; }
/* a click: a jump, wide eyes on the way up */
.character.jump { animation: ch-jump .55s cubic-bezier(.3, 0, .3, 1); }
.character.jump .eye { animation: none; transform: scale(1.25); }
@keyframes ch-bob { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-8%) rotate(3deg); } }
@keyframes ch-swing { from { transform: rotate(-40deg); } to { transform: rotate(40deg); } }
@keyframes ch-wave { from { transform: translate(4px, -4px) rotate(-145deg) scaleY(1.35); } to { transform: translate(4px, -4px) rotate(-175deg) scaleY(1.35); } }
@keyframes ch-jump { 0%, 100% { transform: translateY(0) scale(1); } 20% { transform: translateY(6%) scale(1.08, .9); } 50% { transform: translateY(-38%) scale(.95, 1.08); } 80% { transform: translateY(4%) scale(1.05, .94); } }
@keyframes ch-blink { 0%, 91%, 95%, 100% { transform: scaleY(1); } 93%, 97% { transform: scaleY(.1); } }
@keyframes ch-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03, .98) translateY(1%); } }
@keyframes ch-pulse { from { transform: scale(.8); opacity: .65; } to { transform: scale(1.3); opacity: 1; } }
@keyframes ch-flash { from { opacity: .25; } to { opacity: 1; } }

/* ============ 13. PRINT ============
   "PDF" = the browser's own print dialog showing only the chosen answer */
@media print {
  body.printing .side, body.printing .mhead, body.printing .tabbar, body.printing .dock, body.printing .below,
  body.printing .actions, body.printing .log > :not(.print-me) { display: none; }
  body.printing, body.printing #root, body.printing .app, body.printing .main, body.printing .log { display: block; height: auto; overflow: visible; background: #fff; color: #000; }
  body.printing .log { padding: 0; }
  body.printing .print-me { display: block; max-width: none; margin: 0; }
  body.printing .print-me .by, body.printing .print-me > :not(.bubble) { display: none; }   /* on paper: the answer alone, no sign, no bubble */
  body.printing .print-me .bubble { padding: 0; background: none; }
  body.printing .only-sheet .bubble > :not(.sheet) { display: none; }
  .sheet { box-shadow: none; padding: 0; margin: 0; border-radius: 0; font-size: 11pt; }
  .sheet .f.half { grid-column: span 3; } .sheet .f.third { grid-column: span 2; }
  .sheet fieldset, .sheet .f, .sheet tr { break-inside: avoid; }
  .sheet legend, .sheet th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sheet input::placeholder { color: transparent; }
  @page { margin: .6in; }
}

/* What Klear costs: a kind and its amount on one line, the sources under it when it is opened */
.cost { border-bottom: 1px solid var(--line); }
.cost summary, .cost li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; cursor: pointer; }
.cost ul { list-style: none; margin: 0 0 .5rem; padding: 0 0 0 1rem; color: var(--text-2); }
.cost li { padding: .35rem 0; cursor: default; font-size: .92em; }
.cost b { font-weight: 600; white-space: nowrap; }
.cost .cost { margin-left: 1rem; border-bottom: 0; }
.cost .cost summary { padding: .4rem 0; color: var(--text-2); }

/* Your accounts: a service and its connect button on one line */
.acct { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.acct small { color: var(--text-2); }
label.acct { flex-wrap: wrap; margin: 0; gap: .4rem 1rem; }
.acct select { flex: 1 1 15rem; width: auto; }   /* (on a phone the list takes a line of its own, so no choice is cut short) */
.tag { display: inline-block; padding: 1px .5rem; border-radius: var(--r-pill); background: color-mix(in srgb, var(--notice) 14%, transparent); color: var(--notice) !important; font-size: .75rem; font-weight: 600; white-space: nowrap; }

/* a computer: a new chat's bar (shown only with the sidebar away) carries no name */
@media (min-width: 900px) { .app[data-screen="home"] .mhead h1 { visibility: hidden; } }

/* Today: the box to drop tasks and notes in. One quiet card: the words, then a line with the hint and Add. */
.dump { display: grid; gap: var(--s2); padding: var(--s3) var(--s4); background: var(--fill); border-radius: var(--r-m); }
.dump:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; }
.dump textarea, .dump textarea:focus { min-height: 0; padding: var(--s1) 0; border: 0; border-radius: 0; background: none; outline: none; box-shadow: none; resize: none; field-sizing: content; max-height: 12rem; }
.dump div { display: flex; align-items: center; gap: var(--s3); }
.dump .hint { flex: 1; margin: 0; }
.dump button { flex: none; min-height: 2.25rem; }
.task .link { flex: none; }


/* Your character: the picture on You is a button; its window shows it large, then the ones to choose from. */
.face { flex: none; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: none; display: grid; }
.facehead { display: grid; justify-items: center; gap: var(--s2); }
.facehead .avatar { width: 5.5rem; height: 5.5rem; font-size: var(--t-title-1, 2rem); }
.hint.center { text-align: center; }
dialog form.dump input, dialog form.dump input:focus { min-height: var(--tap); padding: 0; border: 0; background: none; outline: none; box-shadow: none; }
.faces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.faces button { aspect-ratio: 1; min-height: 0; padding: 0; display: grid; place-items: center; border: 2px solid transparent; border-radius: var(--r-m); background: var(--fill); }
.faces button[aria-pressed="true"] { border-color: var(--accent); }
.faces .character { pointer-events: none; }
.row-actions { display: flex; align-items: center; gap: var(--s4); }

/* A bot's window: Rename sits quietly after its name. */
.dhead h2 .rename { margin-inline-start: var(--s3); font-size: var(--t-small); font-weight: 400; }

/* Klear's own answers: no picture beside them, so the bubble has the whole width. A recorded call carries the picture. */
.log > .msg.assistant.plain { grid-template-columns: minmax(0, 1fr); }
.log > .msg.assistant.plain > * { grid-column: 1; }
.call { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s3); align-items: center; }
.call audio { grid-column: 2; }

/* How the messages arrived: a small sign before the day and time. */
.when .came { display: inline-flex; margin-inline-end: var(--s1); vertical-align: -.125rem; }
.when .came svg { width: .875rem; height: .875rem; }

/* The day and time between bubbles. */
.log > .when { margin: var(--s5) 0 var(--s2); text-align: center; font-size: var(--t-caption); color: var(--text-2); }
.log > .when:first-child { margin-top: 0; }

/* The sidebar's foot on a computer: the account, and beside it the button that puts the sidebar away. */
@media (min-width: 900px) {
  .sfoot { flex: none; display: flex; align-items: center; gap: var(--s1); margin-top: var(--s2); }
  .sfoot .acct { flex: 1; min-width: 0; margin-top: 0; }
  .sfoot .icon-btn { color: var(--text-2); }
}

/* Search and a new chat, side by side: the same round, the same size; the new chat is the filled one. */
.shead .icon-btn:not(.add) { width: 2.125rem; min-height: 2.125rem; height: 2.125rem; border-radius: 50%; background: var(--fill-2, var(--line)); }
.shead .icon-btn .icon { width: 1.125rem; height: 1.125rem; }
/* (A filled blue round reads larger than a grey one of the same size, and a plus fills its square where a lens does not:
   so both are the same grey round, the plus drawn a little smaller and in the accent colour.) */
.shead .add, .shead .add:hover { margin-inline-start: 0; background: var(--fill-2, var(--line)); color: var(--accent); }
.shead .add .icon { width: 1rem; height: 1rem; stroke-width: 2.25; }
.shead { gap: var(--s2); }

/* The checks beside a job's status: grey, and blue once the result has been opened. Two overlap, as on a message. */
.ticks { flex: none; display: inline-flex; align-items: center; color: var(--text-2); }
.ticks.read { color: var(--accent); }
.ticks .icon { width: .9rem; height: .9rem; stroke-width: 2.4; }
.ticks .icon + .icon { margin-inline-start: -.5rem; }

/* A phone: a tapped chat is one grey row from edge to edge. (Seen 2026-11-25: a finger that moved a little while
   tapping slid the row a few points, and the pressed button, rounded, stood apart from the action peeking in behind it.) */
@media (max-width: 899.98px) {
  .chat.sw .go { border-radius: 0; }
  .chat.sw .go:hover { background: none; }
  .chat.sw:has(.go:active) { background: var(--fill-2); }
}

/* ---- a computer: the tabs as a slim rail down the left edge. Klear over them, the list's own button and You at the foot.
   The sidebar beside it is the list of chats alone: its name, search and a new chat. */
.railonly { display: none; }
@media (min-width: 900px) {
  .app .tabbar, .app[data-screen] .tabbar { order: -1; display: flex; flex-direction: column; align-items: center; gap: var(--s1); width: 4.5rem; padding: var(--s3) var(--s2); border-top: 0; border-inline-end: 1px solid var(--hair); background: var(--fill-2); }
  .tabbar .tab { flex: none; width: 100%; min-height: 3.25rem; border-radius: var(--r-m); font-size: .6875rem; }
  .tabbar .tab:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
  .tabbar .tab .icon { width: 1.375rem; height: 1.375rem; }
  .app[data-screen="chats"] .t-chats, .app[data-screen="home"] .t-chats, .app[data-screen="chat"] .t-chats, .app[data-screen="circle"] .t-circles,
  .app[data-screen="tasks"] .t-tasks, .app[data-screen="files"] .t-files, .app[data-screen="circles"] .t-circles, .app[data-screen="you"] .t-you { color: var(--accent); font-weight: 600; background: color-mix(in srgb, var(--accent) 12%, transparent); }
  .railonly { display: grid; place-items: center; }
  .tabbar .home { min-height: 0; margin-bottom: var(--s3); padding: var(--s1); background: none; border-radius: var(--r-m); }
  .tabbar .away { margin-top: auto; color: var(--text-2); }
  .shead .brand, .side .top, .side .sfoot, .mhead .reopen:first-child { display: none; }
  .shead .ptitle { display: block; padding-inline-start: var(--s2); font-size: var(--t-title-3); letter-spacing: -.02em; }
}

/* a computer: the list beside the page follows the tab, as on a phone: circles under Circles, chats everywhere else */
@media (min-width: 900px) {
  .app[data-screen="circles"] .group:not(.pinned), .app[data-screen="circle"] .group:not(.pinned),
  .app[data-screen="circles"] .group.pinned .ghead, .app[data-screen="circle"] .group.pinned .ghead,
  .app:not([data-screen="circles"]):not([data-screen="circle"]) .group.pinned { display: none; }
  .app[data-screen="circles"] .side .join, .app[data-screen="circle"] .side .join { display: block; flex: none; margin-top: var(--s2); }
}

/* A circle's people list on a phone: the name keeps its line, and the role and Remove sit under it, so nothing runs off the edge. */
.circle.member { grid-template-columns: minmax(0, 1fr) auto auto; }
.circle.member > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) {
  .circle.member { grid-template-columns: minmax(0, 1fr) auto; }
  .circle.member > span { grid-column: 1 / -1; }
  .circle.member select { width: 100%; }
}

/* A window made of a few separate things to do (join, start, plan): each its own part, a line between them. */
form.part { display: grid; gap: var(--s3); }
form.part + form.part { margin-top: var(--s2); padding-top: var(--s5); border-top: 1px solid var(--hair); }
form.part h3, form.part p, form.part label { margin: 0; }
form.part > button { justify-self: start; }

/* A circle's Invite button, beside its settings. */
.chead .invite { flex: none; display: inline-flex; align-items: center; gap: var(--s2); min-height: 2.25rem; padding: 0 var(--s4); border-radius: var(--r-pill); background: var(--accent-fill); color: var(--on-accent); font-size: var(--t-small); font-weight: 600; }
.chead .invite:hover { background: var(--accent-hover); }
.chead .invite .icon { width: 1rem; height: 1rem; }
@media (max-width: 480px) { .chead .invite { width: 2.25rem; padding: 0; justify-content: center; gap: 0; font-size: 0; } }   /* a phone: the sign alone, so the circle's name keeps its room */

/* Measured 2026-11-25: on a phone four things were smaller than a finger needs (44 points): Search, a circle's Invite,
   a window's Close, and Today's Add. The round ones keep their look and get the room around them; Add grows. */
.shead .icon-btn, .chead .invite, .dhead .icon-btn { position: relative; }
.shead .icon-btn::after, .chead .invite::after, .dhead .icon-btn::after { content: ''; position: absolute; inset: -.35rem; }
.dump button { min-height: var(--ctl); }

/* a computer: a chat row's options keep no room for themselves. They sit over the row's end, shown when it is pointed
   at (or by a right-click), so the name, the time and the last line have the whole width. */
@media (min-width: 900px) {
  .chat { position: relative; }
  .chat > .menu { position: absolute; inset-inline-end: var(--s2); bottom: .3rem; }
  .chat > .menu > summary { width: 1.75rem; height: 1.5rem; min-height: 0; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--fill-2); box-shadow: -.5rem 0 .5rem var(--fill-2); color: var(--text-2); }
  .chat > .menu > summary:hover { color: var(--text); }
}
/* (and its list of options stays within the row: a long name in it is cut short, not pushed out past the edge) */
@media (min-width: 900px) {
  .chat > .menu > div { max-width: 15rem; }
  .chat > .menu > div button { overflow: hidden; text-overflow: ellipsis; }
}

/* One of a few choices, each with a line saying what it means: the mark stands at the first line, the name over its meaning. */
.check.choice { align-items: flex-start; gap: var(--s3); padding-block: var(--s2); }
.check.choice input { margin-top: .125rem; }
.check.choice > span { display: grid; gap: 2px; min-width: 0; text-indent: 0; }
.check.choice strong { font-weight: 600; }
.check.choice .hint { margin: 0; }

/* a computer, under Circles: a circle's row reads as a chat's does (its character at a size to be known by, its name,
   and under it the last thing said), and its "+" keeps no room: it shows over the row's end when pointed at. */
@media (min-width: 900px) {
  .app[data-screen="circles"] .chat .character, .app[data-screen="circle"] .chat .character { width: 2.5rem; height: 2.5rem; flex: none; }
  .app[data-screen="circles"] .names span:first-child, .app[data-screen="circle"] .names span:first-child { font-weight: 600; }
  .app[data-screen="circles"] .sub, .app[data-screen="circle"] .sub { display: block; color: var(--text-2); font-size: var(--t-caption); }
  .chat > .icon-btn.go { position: absolute; inset-inline-end: var(--s2); top: 50%; translate: 0 -50%; width: 1.75rem; min-height: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--fill-2); opacity: 0; }
  .chat:hover > .icon-btn.go, .chat > .icon-btn.go:focus-visible { opacity: 1; }
}

/* a phone: the buttons under an answer show under the newest one, and under an older one only when it is tapped */
@media (max-width: 899.98px) {
  .log > .msg:has(~ .msg) .actions { display: none; }
  .log > .msg.acts .actions { display: flex; }
}

/* ---- the new chat page: what is waiting and the chat to carry on, as short lists under the box, then the day's ideas */
.below > .pickup { justify-self: stretch; width: min(100%, var(--measure)); margin-inline: auto; display: grid; gap: var(--s2); }
.pickup .item .text .hint { font-size: var(--t-small); }
.pickup .item.needs strong { color: var(--notice); }

/* ---- Today: the day at a glance (three numbers, each leading to its block), then a block for each part of the day */
.glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.glance button { display: grid; gap: 2px; min-height: 0; padding: var(--s3) var(--s4); background: var(--fill); border-radius: var(--r-m); text-align: start; }
.glance button:not(:disabled):hover { background: var(--fill-2); }
.glance button:disabled { opacity: .55; cursor: default; }
.glance strong { font-size: var(--t-title-2); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.glance span { font-size: var(--t-caption); color: var(--text-2); }
.glance .needs:not(:disabled) strong { color: var(--notice); }
.glance .working:not(:disabled) strong { color: var(--accent); }
.glance .done:not(:disabled) strong { color: var(--ok); }
.label .n { margin-inline-start: var(--s2); font-weight: 400; font-variant-numeric: tabular-nums; }
.page section { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); scroll-margin-top: var(--s4); }
.page section > .dump { margin-top: 0; }
.page section > .entries, .page section > .jobs { margin: 0; }

/* The next zman, when its name is in Hebrew letters: the capsule itself runs right to left, and its arrow points that way. */
.upnext[dir="rtl"] .icon { transform: rotate(90deg); }
.upnext[dir="rtl"] { gap: var(--s1) var(--s3); }
.upnext > span > strong { margin-inline-end: .4rem; }   /* (air between a zman's name and its time: on the name, so it falls on the right side in Hebrew and in English) */

/* What's new, and Admin > Work */
.news { display: grid; gap: var(--s3); }
.news article { border-top: 1px solid var(--line); padding-top: var(--s3); }
.news article:first-child { border-top: 0; padding-top: 0; }
.news article.same { border-top: 0; padding-top: 0; }
.news h3 { margin: 0 0 var(--s1); }
.news h4 { margin: var(--s1) 0 0; font-size: var(--t-body); }
.news article > p { margin: 0 0 var(--s1); }
.news .tell { display: grid; gap: var(--s2); margin-top: var(--s2); }
.review h3 { margin: var(--s1) 0; font-size: var(--t-body); text-wrap: pretty; }
.wnote { margin: var(--s3) 0; padding-inline-start: var(--s3); border-inline-start: 2px solid var(--line); white-space: pre-wrap; }
.wnote .hint { display: block; }
.wnote .link { margin-inline-start: var(--s2); }
.adminpage details.part { margin: var(--s7) 0 var(--s2); }
.adminpage details.part > summary { margin-bottom: var(--s3); }
h2.inline { display: inline; margin: 0; }
