/* Mojobase, the app: the company's frame fills the window; the rest is for the rare moment there's nothing to show. */
:root { color-scheme: light dark; --bg: #f7f3f1; --ink: #1b1240; --muted: #6d6589; --accent: #2e129e; --logo: #2e129e; }
@media (prefers-color-scheme: dark) { :root { --bg: #100c1e; --ink: #f7f3f1; --muted: #9a93b5; --accent: #b0a3ff; --logo: #f7f3f1; } }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body { font: 15px/1.5 system-ui, -apple-system, sans-serif; overflow: hidden; }
/* See-through until the company's page paints its own background, so the skeleton under it shows meanwhile */
#company { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: transparent; }
/* Home's shape meanwhile (Home's style.css): its rail, its rows a skeleton till Home draws them, and rows where
   Overview's first box goes, so the rail is never missing and Home's rows come where these were; a phone's tab bar
   along the bottom */
.waiting { position: fixed; inset: 0; box-sizing: border-box; overflow: hidden;
  padding: calc(186px + env(safe-area-inset-top)) 40px 0 calc(168px + 40px); }
.waiting > .mb-skeleton { max-width: 1160px; margin: 0 auto; }
.waiting::before, .waiting::after { content: ""; position: fixed; pointer-events: none; }
/* the rail with names (Home's style.css): its mark, then rows of an icon and a name */
.waiting::before { inset: 0 auto 0 0; width: 168px; box-sizing: border-box; background: var(--rail) no-repeat 14px 18px / 32px 32px;
  background-image: radial-gradient(circle, var(--mb-skel) 15px, transparent 15.5px); border-right: 1px solid var(--line); }
.waiting::after { top: 94px; left: 0; width: 168px; height: min(532px, calc(100% - 200px));
  height: min(532px, round(down, 100% - 200px, 38px));  /* whole rows only, above the rail's foot */
  background: radial-gradient(circle at 26px 19px, var(--mb-skel) 8px, transparent 8.5px) 0 0 / 168px 38px,
    linear-gradient(transparent 16px, var(--mb-skel) 16px 23px, transparent 23px) 43px 0 / 56px 38px;
  background-repeat: repeat-y; animation: mb-pulse 1.6s ease-in-out 0.3s infinite; }
.fresh::before, .fresh::after, .plain::before, .plain::after { display: none; }
/* What the company's page first painted here last time, in place of the above (first.js, app.js keepShape): its rail
   and side list's planes, its boxes and skeletons as they are, and grey bars and marks where its words and icons go */
.shaped::before, .shaped::after, .shaped > .mb-skeleton { display: none; }
.shape > * { position: fixed; display: block; box-sizing: border-box; margin: 0; }
.shape > .rail { background: var(--rail); border-right: 1px solid var(--line); }
.shape > .rail.across { border-right: 0; border-top: 1px solid var(--line); }  /* a phone's tab bar */
.shape > .side { background: var(--bg); border-right: 1px solid var(--line); }
.shape > .box { background: var(--card); border: 1px solid var(--line); }
.shape > .bar { background: linear-gradient(transparent 25%, var(--mb-skel) 25% 75%, transparent 75%); }
.shape > .dot { background: var(--mb-skel); border-radius: 50%; }
.shape > .mb-skeleton { animation: none; }  /* there at once, as Home's own first paint is */
/* Over the company's frame till its page has painted (app.js, open and shown): the frame keeps drawing beneath */
.waiting.over { z-index: 1; background: var(--bg); }
@media (max-width: 700px) {
  .waiting { padding: calc(120px + env(safe-area-inset-top)) 16px 0; }
  .waiting::before { inset: auto 0 0 0; width: auto; height: calc(47px + max(2px, calc(env(safe-area-inset-bottom) - 14px)));  /* Home's --tabs */ background-image: none;
    border-right: 0; border-top: 1px solid var(--line); }
  .waiting::after { inset: auto 0 max(2px, calc(env(safe-area-inset-bottom) - 14px)) 0; width: auto; height: 46px;
    background: radial-gradient(circle at 50% 16px, var(--mb-skel) 10px, transparent 10.5px) 0 0 / 20% 100%,
      linear-gradient(90deg, transparent calc(50% - 18px), var(--mb-skel) 0 calc(50% + 18px), transparent 0) 0 32px / 20% 7px;
    background-repeat: repeat-x; }
}
#company[hidden] { display: none; }
/* Straight after signing in: sign-in's own "You're in / Getting your mojo going…" page (login.py, _moment), drawn the same and
   in the same place (first.js, fresh) */
.opening { display: none; position: fixed; inset: 0; place-items: center; text-align: center; color: var(--muted);
  font: 16px/1.5 system-ui, -apple-system, sans-serif; }
.fresh .opening { display: grid; }
.fresh .mb-skeleton { display: none; }
.plain .mb-skeleton { display: none; }  /* never opened a company here: on its way to sign-in (first.js) */
.opening p { margin: 0 0 30px; }  /* the room sign-in's page keeps under it for its link */
.opening p b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 600; }  /* "You're in" */
/* The logo's mark, its five dots circling the core and landing back on the logo every turn, the front one a moment
   ahead (owner, 20 Nov 2026: "1 i think but a bit slower maybe"), pulling in half way and shrinking as they turn, back out
   as they land (owner, 22 Nov 2026, "G"). The same as mojobase_shared/mark.py's SVG and STYLE, and the kit's spinner
   (shared mojobase.css, "Loading"), which this page doesn't load */
.opening .mark { display: block; width: 72px; height: 72px; margin: 0 auto 10px; overflow: visible; }
.opening .mark :is(g, circle) { transform-box: view-box; transform-origin: 0 0; }
.opening .mark g { animation: opening-orbit 2.6s cubic-bezier(.45, .05, .35, 1) infinite; }
.opening .mark g circle { animation: opening-pull 2.6s infinite; }
.opening .mark g:nth-child(2), .opening .mark g:nth-child(2) circle { animation-delay: 0.16s; }
.opening .mark g:nth-child(2) circle { --x: 11.35px; --y: -8.87px; }
.opening .mark g:nth-child(3), .opening .mark g:nth-child(3) circle { animation-delay: 0.12s; }
.opening .mark g:nth-child(3) circle { --x: 14.10px; --y: 5.13px; }
.opening .mark g:nth-child(4), .opening .mark g:nth-child(4) circle { animation-delay: 0.08s; }
.opening .mark g:nth-child(4) circle { --x: 3.12px; --y: 14.67px; }
.opening .mark g:nth-child(5), .opening .mark g:nth-child(5) circle { animation-delay: 0.04s; }
.opening .mark g:nth-child(5) circle { --x: -10.79px; --y: 10.42px; }
.opening .mark g:nth-child(6), .opening .mark g:nth-child(6) circle { animation-delay: 0.00s; }
.opening .mark g:nth-child(6) circle { --x: -13.97px; --y: -3.48px; }
.opening .mark > circle { fill: var(--logo); }
@keyframes opening-orbit { 0% { transform: rotate(0); } 70%, 100% { transform: rotate(360deg); } }
@keyframes opening-pull { 0% { transform: none; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  35% { transform: translate(var(--x), var(--y)) scale(.7); animation-timing-function: cubic-bezier(.45, 0, .55, 1); } 70%, 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .opening .mark :is(g, circle) { animation: none; } }
/* Each other company's red number, drawn over the frame where its company switch keeps a spot (app.js, drawBadges) */
.badges { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
.badge { position: absolute; transform: translate(-100%, -50%); min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box;
  border-radius: 10px; background: #e5372b; color: #fff; font: 700 12px/20px Figtree, system-ui, -apple-system, sans-serif; text-align: center;
  font-variant-numeric: tabular-nums; }
.badge.unknown { background: #8a83a3; }
/* the company tile's: another company needs you, ringed in what's behind the tile (app.js, drawBadges) */
.badge.dot { min-width: 0; width: 13px; height: 13px; padding: 0; border: 2px solid transparent; transform: translate(-50%, -50%); }
.ov-chip .badge { position: static; transform: none; }
.say { max-width: 28rem; margin: 18vh auto 0; padding: 0 24px; }
.say h1 { font-size: 24px; margin: 0 0 8px; }
.say p { color: var(--muted); margin: 0 0 12px; }
.say a { color: var(--accent); font-weight: 600; }
#signing-workspaces { display: grid; gap: 8px; max-height: 55vh; overflow: auto; }
#signing-workspaces button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--edge); border-radius: 8px;
  color: var(--ink); background: var(--paper); font: inherit; cursor: pointer; text-align: start; }
/* Signed out on a phone or tablet (app.js, welcome): sign in, or install first. The sign-in page's look (door.py). */
:root { --logo: #2e129e; --paper: #fffdfc; --edge: #e5dfe8; --accent-ink: #f7f3f1; }
@media (prefers-color-scheme: dark) { :root { --logo: #f7f3f1; --paper: #221c38; --edge: #2f2848; --accent-ink: #160b47; } }
.welcome { position: fixed; inset: 0; overflow-y: auto; box-sizing: border-box; text-align: center; font-size: 16px;
  padding: calc(56px + env(safe-area-inset-top)) 24px calc(32px + env(safe-area-inset-bottom)); }
.welcome[hidden] { display: none; }
.welcome > * { max-width: 400px; margin-left: auto; margin-right: auto; }
.welcome-logo { color: var(--logo); margin-bottom: 24px; }
.welcome-logo svg { display: block; width: 190px; height: auto; margin: 0 auto; }
.welcome h1 { font-size: 24px; margin-top: 0; margin-bottom: 4px; }
.welcome-sub { color: var(--muted); margin-top: 4px; margin-bottom: 24px; }
.welcome-go, #welcome-install { display: block; box-sizing: border-box; width: 100%; padding: 12px 14px; border-radius: 10px;
  font: inherit; font-weight: 600; text-decoration: none; }
.welcome-go { background: var(--accent); color: var(--accent-ink); }
.welcome-fine { color: var(--muted); font-size: 14px; margin-top: 10px; }
.welcome-card { text-align: left; background: var(--paper); border: 1px solid var(--edge); border-radius: 14px; padding: 16px;
  margin-top: 28px; }
.welcome-card h2 { font-size: 16px; margin: 0 0 6px; }
.welcome-card p { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.welcome-card ol { margin: 0; padding-left: 20px; font-size: 15px; }
.welcome-card li { margin: 4px 0; }
.welcome-card [hidden], #welcome-install[hidden] { display: none; }  /* over its own display: block */
#welcome-install { background: none; color: var(--accent); border: 1px solid var(--accent); cursor: pointer; }
.welcome-share { width: 14px; height: 17px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }

/* All my companies (app.js): the app's own page, outside every company. Home's colours and type. Fonts by their whole
   address: this file is also served from /app/f<digits>/ (activate.sh, version_hub). */
@font-face { font-family: 'Fraunces Soft'; src: url('/app/fonts/fraunces-soft.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/app/fonts/figtree.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
:root { --blue: #2d7ff9; --orange: #ff9500; --green: #8fbf1f; --pink: #e93cac; --red: #f4431f; }  /* Home's app colours (style.css) */
:root { --rail: #efe9e5; --card: #fffdfc; --line: #e6dfe0; --line-2: #f0eaea; --ink-2: #4f4770; --wash: rgba(46, 18, 158, 0.07);
  --late: #c2361a; --clash: #fdeee9; }
@media (prefers-color-scheme: dark) { :root { --rail: #161129; --card: #1a1430; --line: #2c2545; --line-2: #241d3b; --ink-2: #cfc9e0;
  --wash: rgba(176, 163, 255, 0.12); --late: #ff8a6b; --clash: #3a1f22; } }
.overview { position: fixed; inset: 0; overflow-y: auto; font: 14px/1.45 Figtree, system-ui, -apple-system, sans-serif; }
.ov-head { display: flex; align-items: center; gap: 14px; padding: 10px max(16px, env(safe-area-inset-left)); background: var(--rail);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1; min-height: 56px; }
.ov-back { display: flex; align-items: center; gap: 2px; border: 0; background: none; color: var(--accent); font: inherit;
  font-weight: 600; cursor: pointer; padding: 10px 8px 10px 0; min-height: 44px; max-width: 45vw; }
.ov-back svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round;
  stroke-linejoin: round; }
.ov-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-title { font-size: 15px; border-left: 1px solid var(--line); padding-left: 14px; }
.ov-main { max-width: 860px; margin: 0 auto; padding: 24px 16px 48px; }
.ov-main h1 { font: 600 28px/1.2 'Fraunces Soft', Georgia, serif; margin: 0 0 2px; }
.ov-date { color: var(--muted); margin: 0 0 16px; }
.ov-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.ov-chip { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; min-height: 40px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--card); font-weight: 600; cursor: pointer; }
.ov-chip.off { color: var(--muted); background: transparent; border-style: dashed; }
.ov-chip input { margin: 0; accent-color: var(--accent); width: 16px; height: 16px; }
.overview .co, .ov-preview .co { width: 18px; height: 18px; border-radius: 5px; display: inline-block; font: 700 8.5px/18px Figtree, system-ui, sans-serif;
  color: #fff; text-align: center; font-style: normal; flex: none; }
.co.logo { background: #fff; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }  /* its logo (app.js, square) */
.co.logo img { display: block; width: 100%; height: 100%; }
.ov-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ov-row { display: grid; grid-template-columns: 158px 1fr auto; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line-2); }
.ov-row:first-child { border-top: 0; }
.ov-row.clash { background: var(--clash); }
.ov-when { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.ov-what { min-width: 0; }
.ov-what b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.ov-what small { display: flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--muted); overflow-wrap: anywhere; }
.ov-flag { color: var(--late); font-weight: 700; font-size: 12px; margin-left: 8px; }
.ov-tag { color: var(--muted); font-weight: 600; font-size: 12px; margin-left: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; }
.ov-open { border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
  padding: 10px 4px; min-height: 44px; }
.ov-now { position: relative; height: 0; list-style: none; }
.ov-now::before { content: ''; position: absolute; left: 16px; right: 16px; top: 0; border-top: 2px solid var(--late); }
.ov-now span { position: absolute; left: 16px; top: -9px; background: var(--card); color: var(--late); font-weight: 700; font-size: 12px; padding-right: 6px; }
/* An empty list: the shared empty box (mojobase.css, .mb-empty-list), one quiet line centred in a dashed box */
.ov-empty { color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; padding: 28px 18px; margin: 0;
  text-align: center; font-size: 14px; line-height: 1.5; }
.ov-note { display: flex; gap: 8px; align-items: center; margin: 10px 2px 0; color: var(--ink-2); font-size: 13px; }
.ov-foot { color: var(--muted); margin: 16px 2px 0; font-size: 13px; }
@media (max-width: 640px) {
  .ov-date { display: none; }  /* A phone's list title stands alone (docs/design.md, Decided once). */
  .ov-views button { min-height: 44px; }
  .ov-row { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .ov-when { grid-column: 1 / -1; font-size: 13px; }
  .ov-open { font-size: 13px; }
}
.ov-section { margin: 0 0 24px; }
.ov-section h2 { font: 600 19px/1.3 'Fraunces Soft', Georgia, serif; margin: 0 0 10px; }
.ov-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.ov-section-head h2 { margin: 0; }
.ov-tabs { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.ov-tabs button { border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink-2); padding: 6px 14px; border-radius: 8px;
  cursor: pointer; min-height: 36px; }
.ov-tabs button.on { background: var(--wash); color: var(--accent); }
.ov-day { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: none; margin: 16px 2px 6px; }
.ov-free { color: var(--muted); margin: 0 2px; font-size: 13px; }
.ov-needs { display: grid; gap: 12px; }
.ov-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ov-card-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px 4px; }
.ov-count { margin-left: auto; font-weight: 700; color: var(--accent); }
.ov-card .ov-list { border: 0; border-radius: 0; }
.ov-need { grid-template-columns: auto 1fr auto; }
/* An app's icon in its colour (Home's .icon), with its word beside it where there is one */
.ov-app { display: inline-flex; align-items: center; gap: 7px; }
.ov-app-icon { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none; color: var(--c);
  background: color-mix(in srgb, var(--c) 15%, transparent); }
.ov-app-icon svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ov-card-foot { display: flex; justify-content: flex-end; border-top: 1px solid var(--line-2); padding: 4px 8px; }
/* Your days: what it is, its time, its title, Open */
.ov-day-row { grid-template-columns: 82px 150px 1fr auto; }
.ov-kind { color: var(--muted); font-size: 13px; font-weight: 600; }
@media (max-width: 640px) {  /* "Task  Any time" above, the title and Open below (after the rule above, so it wins) */
  .ov-day-row { grid-template-columns: auto 1fr auto; }
  .ov-day-row .ov-when { grid-column: 2 / -1; }
  .ov-day-row .ov-what { grid-column: 1 / 3; }
  .ov-day-row .ov-kind { min-width: 74px; }
}
.ov-when.late { color: var(--late); }
.ov-tag { margin: 0 8px 0 0; }
.ov-what b .ov-flag, .ov-what b .ov-tag:not(:first-child) { margin: 0 0 0 8px; }
/* Overview and All mail: the page's own tabs, as Home's Overview and Activity (style.css, .home-tabs) */
.ov-views { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin: 0 0 18px; }
.ov-views button { border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-weight: 600; color: var(--muted);
  padding: 8px 2px 10px; min-height: 40px; cursor: pointer; }
.ov-views button:hover { color: var(--accent); }
.ov-views button.on { border-bottom-color: var(--accent); color: var(--accent); }
.ov-views button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ov-lead { color: var(--ink-2); margin: 0 2px 12px; }
/* A conversation: who wrote first, as in Email; unread ones bold with a dot, as there */
.ov-mail .ov-when { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-mail .ov-address { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
.ov-mail .ov-what b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.ov-mail.unread .ov-when, .ov-mail.unread .ov-what b { font-weight: 700; color: var(--ink); }
.ov-mail.unread .ov-when::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  margin: 0 7px 1px 0; vertical-align: middle; }
.ov-n { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 6px; }
.ov-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ov-older { flex-wrap: wrap; gap: 4px 12px; }
.ov-older .ov-open { padding: 0; font-size: 13px; }
/* All mail's buttons: Archive and Mark read or unread, quiet until pointed at, then the row's Open */
.ov-acts { display: flex; align-items: center; gap: 2px; }
.ov-act { border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; height: 36px; padding: 0 10px;
  border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.ov-toggle { min-width: 9.2em; }  /* Mark read or Mark unread: the same room either way, so the row's buttons line up */
.ov-act:hover:not(:disabled) { background: var(--wash); color: var(--accent); }
.ov-act:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ov-act:disabled { opacity: 0.45; cursor: default; }
.ov-act svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ov-go, .ov-go:hover:not(:disabled) { color: var(--accent); }  /* Open: the row's own way on, as Open is elsewhere */
/* How to preview, top right of the tabs; and the preview itself while Space is held, over the list (as Quick Look) */
.ov-hint { margin-left: auto; align-self: center; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.ov-hint kbd { font: inherit; font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--card); border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; margin: 0 2px; }
@media (hover: none) { .ov-hint { display: none; } }
.ov-preview { position: fixed; top: 10vh; left: 50%; transform: translateX(-50%); width: min(720px, calc(100vw - 32px)); max-height: 76vh;
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 60px rgba(20, 12, 40, 0.28); z-index: 55; font: 14px/1.45 Figtree, system-ui, -apple-system, sans-serif; }
.ov-preview[hidden] { display: none; }
.ov-preview-head { padding: 14px 18px 10px; border-bottom: 1px solid var(--line-2); }
.ov-preview-head b { display: block; font: 600 18px/1.3 'Fraunces Soft', Georgia, serif; overflow-wrap: anywhere; }
.ov-preview-head small { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--muted); }
.ov-preview-body { overflow: auto; padding: 0 18px 6px; }
.ov-preview-msg { padding: 12px 0; border-top: 1px solid var(--line-2); }
.ov-preview-msg:first-child, .ov-preview-note + .ov-preview-msg { border-top: 0; }
.ov-preview-from { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.ov-preview-from b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.ov-preview-msg.mine .ov-preview-from b { color: var(--ink-2); }
.ov-preview-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0 0; line-height: 1.5; color: var(--ink); }
.ov-preview-note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.ov-preview-foot { margin: 0; padding: 8px 18px 12px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line-2); }
/* What a button did, as Email's toast */
.ov-toast { font: 14px/1.45 Figtree, system-ui, -apple-system, sans-serif; position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 8px 14px;
  border-radius: 10px; box-shadow: 0 6px 24px rgba(20, 12, 40, 0.18); z-index: 60; max-width: 80vw; }
.ov-toast[hidden] { display: none; }
.ov-toast.bad { background: var(--late); color: #fff; }
.ov-toast button { margin-left: 12px; background: none; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 600;
  text-decoration: underline; cursor: pointer; }
@media (max-width: 640px) {
  .ov-date { display: none; }
  .ov-main h1 { margin-bottom: 16px; }
  .ov-views button, .ov-tabs button { min-height: 44px; }
  .ov-mail .ov-acts { grid-column: 1 / -1; justify-content: flex-end; margin: -6px -4px -8px 0; }  /* a line of their own */
  .ov-mail .ov-what b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; }
  .ov-toast { left: 12px; right: 12px; max-width: none; bottom: calc(16px + env(safe-area-inset-bottom)); transform: none; }
}

/* Notifications on this device (app.js, openNotifications): the app's own sheet, over whatever shows. Dialog rules:
   the main button bottom right, Close just left of it. */
.sheet-shade { position: fixed; inset: 0; z-index: 10; background: rgba(27, 18, 64, 0.32); display: grid; place-items: center;
  padding: 16px; font: 15px/1.45 Figtree, system-ui, -apple-system, sans-serif; }
.sheet-shade[hidden] { display: none; }
.sheet { width: 100%; max-width: 400px; box-sizing: border-box; background: var(--card); color: var(--ink); border-radius: 16px;
  padding: 22px 22px 18px; box-shadow: 0 18px 50px rgba(27, 18, 64, 0.25); }
.sheet h2 { margin: 0 0 8px; font-size: 20px; }
.sheet p { margin: 0 0 10px; color: var(--ink-2); }
.sheet .sheet-quiet, .sheet .sheet-note { color: var(--muted); font-size: 14px; }
.sheet .sheet-bad { color: var(--late); font-size: 14px; }
.sheet-state { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sheet-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.sheet-state.on i { background: var(--green); }
.sheet-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.sheet-button { font: 600 15px Figtree, system-ui, -apple-system, sans-serif; padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer; min-height: 44px; }
.sheet-button.go { background: var(--accent); color: var(--bg); border: 0; }
.sheet-button:disabled { opacity: 0.6; cursor: default; }
.sheet-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Waiting on an answer: the shared kit's skeleton, the shapes Home first paints (rows, page, text, side), copied as
   they are there (apps/shared/mojobase_shared/web/mojobase.css, "Loading") because this page loads nothing of the companies' own */
:root { --mb-skel: rgba(27, 18, 64, 0.09); --mb-skel-line: rgba(27, 18, 64, 0.055); }
@media (prefers-color-scheme: dark) { :root { --mb-skel: rgba(247, 243, 241, 0.085); --mb-skel-line: rgba(247, 243, 241, 0.05); } }
@keyframes mb-in { from { opacity: 0; } }
@keyframes mb-pulse { 50% { opacity: 0.5; } }
.mb-skeleton { --k: var(--mb-skel); --p: 56px; --n: 6; --top: 0px; display: block; box-sizing: border-box; width: 100%;
  margin: 0; padding: 0; border: 0; overflow: hidden; animation: mb-in 0.2s ease 0.12s both; pointer-events: none; }
.mb-skeleton::before { content: ""; display: block; box-sizing: border-box; height: calc(var(--n) * var(--p) + var(--top));
  padding-top: var(--top); background-repeat: repeat-y; animation: mb-pulse 1.6s ease-in-out 0.3s infinite; }
/* rows: a round mark, a line and a shorter line under it, a little at the right, a rule between */
.mb-skeleton:not([data-shape])::before, .mb-skeleton[data-shape="rows"]::before, .mb-skeleton[data-shape="page"]::before {
  background-image:
    radial-gradient(circle at 21px 28px, var(--k) 9px, transparent 9.5px),
    linear-gradient(transparent 19px, var(--k) 19px 29px, transparent 29px),
    linear-gradient(transparent 75px, var(--k) 75px 85px, transparent 85px),
    linear-gradient(transparent 35px, var(--k) 35px 42px, transparent 42px),
    linear-gradient(transparent 91px, var(--k) 91px 98px, transparent 98px),
    linear-gradient(transparent 23px, var(--k) 23px 31px, transparent 31px),
    linear-gradient(transparent 55px, var(--mb-skel-line) 55px);
  background-size: 100% 56px, 44% 112px, 32% 112px, 24% 112px, 30% 112px, 9% 56px, 100% 56px;
  background-position: 0 0, 44px 0, 44px 0, 44px 0, 44px 0, right 12px top 0, 0 0;
  background-repeat: repeat-y; background-origin: content-box; background-clip: content-box; }
/* page: a title and a line under it, then rows */
.mb-skeleton[data-shape="page"] { --top: 84px; }
.mb-skeleton[data-shape="page"]::before {
  background-image:
    linear-gradient(var(--k), var(--k)), linear-gradient(var(--k), var(--k)),
    radial-gradient(circle at 21px 28px, var(--k) 9px, transparent 9.5px),
    linear-gradient(transparent 19px, var(--k) 19px 29px, transparent 29px),
    linear-gradient(transparent 75px, var(--k) 75px 85px, transparent 85px),
    linear-gradient(transparent 35px, var(--k) 35px 42px, transparent 42px),
    linear-gradient(transparent 91px, var(--k) 91px 98px, transparent 98px),
    linear-gradient(transparent 23px, var(--k) 23px 31px, transparent 31px),
    linear-gradient(transparent 55px, var(--mb-skel-line) 55px);
  background-size: min(260px, 40%) 26px, min(380px, 60%) 10px, 100% 56px, 44% 112px, 32% 112px, 24% 112px, 30% 112px, 9% 56px, 100% 56px;
  background-position: 0 4px, 0 46px, 0 0, 44px 0, 44px 0, 44px 0, 44px 0, right 12px top 0, 0 0;
  background-repeat: no-repeat, no-repeat, repeat-y, repeat-y, repeat-y, repeat-y, repeat-y, repeat-y, repeat-y;
  background-origin: padding-box, padding-box, content-box, content-box, content-box, content-box, content-box, content-box, content-box;
  background-clip: padding-box, padding-box, content-box, content-box, content-box, content-box, content-box, content-box, content-box; }
/* text: lines of a paragraph */
.mb-skeleton[data-shape="text"] { --p: 22px; --n: 3; }
.mb-skeleton[data-shape="text"]::before {
  background-image: linear-gradient(transparent 5px, var(--k) 5px 15px, transparent 15px),
    linear-gradient(transparent 27px, var(--k) 27px 37px, transparent 37px), linear-gradient(transparent 49px, var(--k) 49px 59px, transparent 59px);
  background-size: 94% 66px, 86% 66px, 62% 66px; background-position: 0 0; }
/* side: side list rows, an icon and a name */
.mb-skeleton[data-shape="side"] { --p: 31px; --n: 4; }
.mb-skeleton[data-shape="side"]::before {
  background-image: linear-gradient(transparent 9px, var(--k) 9px 23px, transparent 23px),
    linear-gradient(transparent 11px, var(--k) 11px 21px, transparent 21px), linear-gradient(transparent 42px, var(--k) 42px 52px, transparent 52px);
  background-size: 14px 31px, 54% 62px, 40% 62px; background-position: 9px 0, 33px 0, 33px 0; }
.mb-skeleton[data-rows="1"] { --n: 1; } .mb-skeleton[data-rows="2"] { --n: 2; } .mb-skeleton[data-rows="3"] { --n: 3; }
.mb-skeleton[data-rows="4"] { --n: 4; } .mb-skeleton[data-rows="5"] { --n: 5; } .mb-skeleton[data-rows="6"] { --n: 6; }
.mb-skeleton[data-rows="7"] { --n: 7; } .mb-skeleton[data-rows="8"] { --n: 8; } .mb-skeleton[data-rows="9"] { --n: 9; }
.mb-skeleton[data-rows="10"] { --n: 10; } .mb-skeleton[data-rows="11"] { --n: 11; } .mb-skeleton[data-rows="12"] { --n: 12; }
@media (prefers-reduced-motion: reduce) { .mb-skeleton::before, .waiting::after { animation: none; } }
