/* UI upgrade, October 2026 (docs/ui-upgrade/IMPLEMENT_PLAN.md). Loaded after every other stylesheet, so the approved
   mockups' look (docs/ui-upgrade/mockup/kit.css) reaches every screen without touching each screen's own rules.
   Section 1 is the foundation (shell and shared primitives); the screen sections follow it.
   Kit classes are prefixed "k-" here so they never collide with the app's older names (.card, .chip, .facts …). */

/* ===== 1. Foundation ===== */

:root { --dock-height: 62px; --dock-gap: 18px; --tabbar-height: calc(var(--dock-height) + var(--dock-gap)); }
html, body { background: var(--page); -webkit-font-smoothing: antialiased; }
body { color: var(--ink); }
.num, .tabular { font-variant-numeric: tabular-nums; }

/* Titles: large and tight, like the kit; section headings 20 px bold. */
h1 { font-weight: 700; letter-spacing: -.4px; }
.screen-title { margin: .4rem 0 1rem; font-size: 30px; font-weight: 700; letter-spacing: -.6px; line-height: 1.12; }
.screen-header { margin: .4rem 0 1rem; gap: .4rem; }
.screen-header .screen-title { font-size: 28px; }
.screen-back { width: 36px; height: 36px; border-radius: 50%; background: var(--fill-2); color: var(--ink); margin-inline-start: 0; }
.screen-back svg { width: 18px; height: 18px; stroke-width: 2.2; }
.section-label { margin: 1.4rem .25rem .6rem; font-size: 20px; font-weight: 700; letter-spacing: -.2px; }
.sheet-title { font-size: 18px; font-weight: 700; letter-spacing: -.2px; }
.hint, .row-meta, .card-meta { color: var(--label-3); }

/* Surfaces: one white card, 22 px corners, a hairline edge instead of a shadow. */
.list-surface, .section-card, .fold, .need-card { border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); }
.list-surface { margin-bottom: 12px; }
.list-row { min-height: 52px; padding: .75rem 1rem; gap: 12px; border-bottom: 0; position: relative; font-size: 16px; }
.list-row + .list-row::before { content: ""; position: absolute; top: 0; inset-inline-start: 16px; inset-inline-end: 0; border-top: .5px solid var(--sep); }
.list-row:active, .list-row.is-pressed { background: var(--fill-2); }
.row-chevron { width: 15px; height: 15px; color: var(--label-3); stroke-width: 2.3; }
.row-count { color: var(--label-3); font-size: 15px; }
.section-card { padding: 14px 16px; margin-bottom: 12px; }

/* Buttons: capsules. Primary is solid copper; secondary a quiet fill; text buttons are plain copper words. */
.button { border-radius: var(--r-round); font-weight: 600; padding: .6rem 1.15rem; }
.button-primary, .button-approve { background: var(--copper); color: #fff; }
:root[data-theme="dark"] .button-primary, :root[data-theme="dark"] .button-approve { color: var(--on-accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .button-primary, :root:not([data-theme="light"]) .button-approve { color: var(--on-accent); } }
.button-secondary { background: var(--fill); border-color: transparent; color: var(--ink); }
.button-danger-quiet, .button-reject { background: var(--red-tint); border-color: transparent; color: var(--bad); }
.button-small { min-height: 34px; padding: .35rem .9rem; font-size: 14px; }
.card-actions .button { min-height: 36px; padding: .35rem 1rem; font-size: 15px; }
.text-button { color: var(--accent); text-decoration: none; font-weight: 500; font-size: 15px; }
.text-link { color: var(--accent); }
.icon-button { border-radius: 50%; }
@media (hover: hover) { .button-secondary:hover { border-color: transparent; color: var(--ink); filter: brightness(.97); } }

/* Chips: capsules on the fill; the chosen one is copper on its tint. */
.chips { gap: 7px; }
.chip { min-height: 34px; padding: 0 14px; border-radius: var(--r-round); background: var(--fill); color: var(--ink); font-size: 14.5px; font-weight: 500; display: inline-flex; align-items: center; }
.chip[aria-pressed="true"] { background: var(--copper-tint); color: var(--accent); font-weight: 600; }

/* Fields: a soft fill with a hairline; copper ring on focus. */
input, textarea, select, .detail-form textarea, .detail-form select { border: 1px solid var(--sep); border-radius: var(--r-control); background: var(--fill); color: var(--ink); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-field { width: 100%; min-height: 40px; margin-bottom: 12px; padding-inline: 14px; border-radius: 12px; background: var(--fill-2); border-color: transparent; }

/* Sheets: rounder, the page colour, a quiet handle; actions on glass. */
.sheet { border-radius: var(--r-sheet) var(--r-sheet) 0 0; background: var(--page); }
.sheet-full { border-radius: 0; }
.sheet-grab { width: 36px; height: 5px; border-radius: 3px; background: var(--fill-2); margin: 7px auto 3px; }
.sheet-full .sheet-header { border-bottom: .5px solid var(--sep); }
.sheet-close { width: 32px; height: 32px; border-radius: 50%; background: var(--fill-2); color: var(--label-2); }
.sheet-close svg { width: 16px; height: 16px; stroke-width: 2.4; }
.sheet-actions { border-top: .5px solid var(--sep); background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); }
dialog { border: 0; border-radius: var(--r-card); }
.dialog-card h2 { font-size: 22px; }
@media (min-width: 1024px) { .sheet { border-radius: 0 var(--r-sheet) var(--r-sheet) 0; } }

/* Banners and the toast. */
.state-banner { background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: .5px solid var(--sep); font-weight: 500; }
.state-banner-need { background: var(--need-soft); }
.toast { border-radius: var(--r-round); padding: .65rem 1.1rem; background: rgba(28, 28, 30, .92); color: #fff; font-weight: 500; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  bottom: calc(var(--dock-height) + var(--dock-gap) + env(safe-area-inset-bottom) + 14px); }
body.chat-open .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
.outcome-notice { border-radius: 16px; }
.skeleton-row { background: var(--fill); }

/* The dock: a glass capsule with the three tabs, and Tali's round button beside it. It floats over the content. */
.tabbar.dock { position: fixed; z-index: var(--z-navigation); inset-inline: 16px; inset-block-end: calc(var(--dock-gap) + env(safe-area-inset-bottom)); top: auto;
  display: flex; align-items: center; gap: 10px; width: auto; max-width: 560px; margin-inline: auto; padding: 0; border: 0; background: transparent; grid-template-columns: none; }
.dock-tabs { flex: 1; height: var(--dock-height); display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; padding: 4px; border-radius: var(--r-round);
  background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); box-shadow: inset 0 0 0 .5px var(--glass-line), var(--glass-shadow); }
.dock .tab { height: 54px; min-height: 54px; border-radius: var(--r-round); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0;
  font-size: 11px; font-weight: 600; color: var(--label); background: transparent; }
.dock .tab svg { width: 23px; height: 23px; stroke-width: 1.85; }
.dock .tab[aria-current="page"] { color: var(--accent); background: var(--fill-2); font-weight: 600; }
.dock .tab:active, .dock .tab.is-pressed { background: var(--fill-2); }
.dock .tab-count { top: 4px; inset-inline-start: auto; inset-inline-end: calc(50% - 25px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; }
.dock .tab-tali { flex: none; width: var(--dock-height); height: var(--dock-height); min-height: 0; border-radius: 50%; display: grid; place-items: center; padding: 0;
  background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); box-shadow: inset 0 0 0 .5px var(--glass-line), var(--glass-shadow); }
.dock .tab-tali img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px rgba(196, 98, 40, .5); }
.dock .tab-tali[aria-current="page"] { background: var(--glass); }
.dock .tab-tali[aria-current="page"] img { box-shadow: 0 0 0 2.5px var(--copper); }
/* Content scrolls under the dock; its last row stays reachable above it. */
.main-content { padding-bottom: calc(var(--dock-height) + var(--dock-gap) + env(safe-area-inset-bottom) + 28px); }
html { scroll-padding-block: 1rem calc(var(--dock-height) + var(--dock-gap) + env(safe-area-inset-bottom) + 1.5rem); }

/* The composer belongs to the chat: hidden on the screens, at the bottom of the chat when it is open (mockup chat.html). */
body:not(.chat-open) #chat-form.composer:not(.is-recording):not(.is-transcribing) { display: none; }
body.chat-open .tabbar.dock { display: none; }
.composer { inset-inline: 0; bottom: 0; max-width: none; margin: 0; min-height: 0; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border: 0; border-top: .5px solid var(--sep); border-radius: 0;
  background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); box-shadow: none; align-items: center; }
.composer:focus-within { border-color: var(--sep); }
.composer > input { min-height: 40px; height: 40px; padding-inline: 16px; border: .5px solid var(--sep); border-radius: var(--r-round); background: var(--surface); font-size: 16px; }
.composer-action { width: 40px; height: 40px; }
.attach-button, .voice-button { background: var(--surface); box-shadow: inset 0 0 0 .5px var(--sep); color: var(--ink); }
.send-button { background: var(--copper); color: #fff; }
.talk-button { background: var(--copper); color: #fff; border: 0; border-radius: 50%; }
.chat-scrim { display: none; }
.chat-sheet { inset: 0; padding-bottom: calc(57px + env(safe-area-inset-bottom)); border-radius: 0; box-shadow: none; background: var(--page); }
.chat-sheet .sheet-grab { display: none; }
.chat-sheet-header { padding: calc(8px + env(safe-area-inset-top)) 16px 10px; gap: 10px; border-bottom: .5px solid var(--sep); background: var(--glass); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.chat-sheet-header .sheet-close { order: 3; margin-inline-start: auto; }
.chat-sheet-avatar { width: 40px; height: 40px; box-shadow: 0 0 0 1px rgba(196, 98, 40, .45); }
.chat-sheet .sheet-title { flex: 0 1 auto; font-size: 18px; }
.chat-body { padding-bottom: 24px; }
@media (min-width: 1024px) {
  .tabbar.dock { inset-inline: calc(var(--gutter) + 0px); }
  .chat-sheet { inset: 0 auto 0 0; width: var(--side-panel); bottom: 0; padding-bottom: calc(57px + env(safe-area-inset-bottom)); border-inline-end: .5px solid var(--sep); }
  body.chat-open .composer { left: 0; right: auto; width: var(--side-panel); bottom: 0; }
  body.chat-open .tabbar.dock { display: flex; inset-inline-end: calc(var(--side-panel) + var(--gutter)); }
  .workspace { padding-inline-start: 0; }
}

/* Tali's face: always the full approved picture, round. */
.tali-avatar { object-fit: cover; }

/* Kit primitives used by the screens (k- prefix). */
.k-card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--edge); }
.k-gap { margin-top: 12px; }
.k-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.k-kicker { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; }
.k-kicker .k-l { display: inline-flex; gap: 6px; align-items: center; }
.k-kicker svg { width: 16px; height: 16px; }
.k-link { color: var(--accent); font-size: 14.5px; font-weight: 500; background: none; border: 0; padding: 0; min-height: 0; font: inherit; cursor: pointer; }
.k-cap { font: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: var(--r-round); min-height: 32px; height: auto; padding: 4px 14px; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.k-cap-tint { background: var(--copper-tint); color: var(--accent); }
.k-cap-fill { background: var(--fill); color: var(--ink); }
.k-cap-solid { background: var(--copper); color: #fff; }
.k-cap-plain { background: none; color: var(--label-3); font-weight: 500; padding: 4px 4px; font-size: 14px; }
.k-cap-red { background: var(--red-tint); color: var(--bad); }
.k-sq { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; }
.k-sq svg { width: 17px; height: 17px; stroke-width: 2.1; }
.k-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; color: #fff; background: var(--d-gray); }
.c-blue { background: var(--d-blue); } .c-red { background: var(--d-red); } .c-green { background: var(--d-green); } .c-purple { background: var(--d-purple); }
.c-orange { background: var(--d-orange); } .c-gray { background: var(--d-gray); } .c-teal { background: var(--d-teal); } .c-pink { background: var(--d-pink); }
.c-indigo { background: var(--d-indigo); } .c-yellow { background: var(--d-yellow); } .c-copper { background: var(--d-copper); }
.k-fx { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 0 0; }
.k-fx > div { padding: 0 10px; border-inline-start: .5px solid var(--sep); min-width: 0; }
.k-fx > div:nth-child(3n+1) { border-inline-start: 0; padding-inline-start: 0; }
.k-fx > div:nth-child(n+4) { margin-top: 12px; }
.k-fx dt { font-size: 12px; color: var(--label-3); font-weight: 500; }
.k-fx dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.k-on-color .k-fx > div { border-color: rgba(255, 255, 255, .22); }
.k-on-color .k-fx dt { color: rgba(255, 255, 255, .74); }
/* A list row of the kit: icon square or avatar, title with time, a line, a meta line, actions. */
.k-li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; position: relative; width: 100%; border: 0; background: transparent; color: inherit; font: inherit; text-align: start; }
.k-li + .k-li::before { content: ""; position: absolute; top: 0; inset-inline-start: 56px; inset-inline-end: 0; border-top: .5px solid var(--sep); }
.k-li > .k-sq, .k-li > .k-av { margin-top: 1px; }
.k-li .k-av { width: 28px; height: 28px; font-size: 13px; }
.k-li-b { flex: 1; min-width: 0; }
.k-li-h { display: flex; gap: 8px; align-items: baseline; }
.k-li-t { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.k-li-time { margin-inline-start: auto; font-size: 13px; color: var(--label-3); white-space: nowrap; }
.k-li-s { font-size: 14.5px; color: var(--label); margin-top: 2px; line-height: 1.4; overflow-wrap: anywhere; }
.k-li-m { font-size: 13px; color: var(--label-3); margin-top: 3px; line-height: 1.35; overflow-wrap: anywhere; }
.k-li-acts { display: flex; gap: 8px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.k-li-head { padding: 14px 16px 4px; }
.k-seg { display: inline-flex; background: var(--fill-2); border-radius: 9px; padding: 2px; font-size: 13px; font-weight: 600; }
.k-seg button { font: inherit; border: 0; background: none; padding: 4px 12px; border-radius: 7px; color: var(--label-2); min-height: 28px; cursor: pointer; }
.k-seg button[aria-pressed="true"], .k-seg button[aria-selected="true"] { background: var(--surface); color: var(--label); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.k-pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; }
.k-p-green { color: var(--green); background: var(--green-tint); } .k-p-copper { color: var(--accent); background: var(--copper-tint); }
.k-p-red { color: var(--bad); background: var(--red-tint); } .k-p-orange { color: var(--orange); background: var(--orange-tint); }
.k-stack-h { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 4px 0; }
.k-stack-h h2, .k-stack-h h3 { margin: 0; font-size: 20px; font-weight: 700; }
.k-stack-h span { font-size: 13px; color: var(--label-3); }
.pet-slot { display: inline-block; width: 56px; height: 34px; flex: none; }

/* ===== 2. Services (replaces "עוד"; mockup services.html) ===== */
.services .svc-top { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; min-height: 30px; }
.svc-kicker { margin: 0; font-size: 14px; font-weight: 600; color: var(--label-3); }
.services .pet-slot { width: 46px; height: 30px; }
.svc-title { margin: 4px 0 0; font-size: 33px; }
.svc-search { margin-top: 12px; height: 40px; border-radius: 12px; background: var(--fill-2); display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--label-3); }
.svc-search svg { width: 18px; height: 18px; flex: none; }
.svc-search input { flex: 1; min-width: 0; min-height: 38px; height: 38px; border: 0; background: transparent; padding: 0; font-size: 16px; color: var(--ink); }
.svc-search input:focus-visible { outline: 0; }
.svc-search:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.svc-profile { margin-top: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.svc-uav { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(160deg, #5E5A8C, #3B3760); color: #fff; display: grid; place-items: center; font-size: 21px; font-weight: 700; flex: none; }
.svc-profile-b { flex: 1; min-width: 0; }
.svc-profile-t { margin: 0; font-size: 17px; font-weight: 700; }
.svc-profile-m { margin: 2px 0 0; font-size: 13px; color: var(--label-3); }
.svc-chips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.svc-chip { font: inherit; font-size: 13px; font-weight: 600; min-height: 32px; padding: 0 11px; border: 0; border-radius: var(--r-round); background: var(--fill); color: var(--ink); display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }
.svc-chip svg { width: 14px; height: 14px; }
.svc-sec { margin: 24px 4px 10px; font-size: 20px; font-weight: 700; }
.svc-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 20px 4px; padding: 20px 8px; }
.svc-contents { display: contents; }
.svc-app { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; padding: 0; border: 0; background: none; color: var(--ink);
  font: inherit; font-size: 12.5px; font-weight: 500; line-height: 1.2; text-align: center; cursor: pointer; }
.svc-app[hidden] { display: none; }
.svc-ic { width: 64px; height: 64px; display: block; border-radius: 15px; box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 8px 16px -10px rgba(0, 0, 0, .4); transition: transform var(--t-press); }
.svc-ic svg { width: 64px; height: 64px; display: block; stroke: none; stroke-width: 1; fill: none; } /* drawn icons: the app-wide svg stroke (styles.css) must not outline them */
.svc-app:active .svc-ic, .svc-app.is-pressed .svc-ic { transform: scale(.92); }
.svc-app:focus-visible { outline: 0; }
.svc-app:focus-visible .svc-ic { outline: 2px solid var(--accent); outline-offset: 3px; }
.svc-name { overflow-wrap: anywhere; }
.svc-sub { font-size: 11px; color: var(--label-3); font-weight: 500; margin-top: -4px; }
.svc-badge { position: absolute; top: -6px; inset-inline-start: calc(50% + 20px); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); z-index: 2; }
.svc-list .list-row { padding: 11px 16px; }
.svc-list .list-row + .list-row::before { inset-inline-start: 56px; }
.svc-list .row-label { display: grid; font-size: 16px; }
.svc-list .row-detail { font-size: 12.5px; color: var(--label-3); margin-top: 1px; }
.c-ink { background: #2F2A33; }
.svc-cnt:not([hidden]) { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--red); color: #fff; font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }
.svc-cnt.is-need::before { display: none; }
#more-count-connections.svc-cnt { background: #D99A00; color: #1A1100; }
.svc-empty { text-align: center; margin: 16px 0; }
.svc-foot { margin: 22px 0 6px; gap: 6px; }
.svc-foot .row-meta { font-size: 13px; }
.svc-logout { color: var(--bad); font-size: 16px; }
:root[data-theme="dark"] .svc-ic { box-shadow: 0 0 0 .5px rgba(255, 255, 255, .08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .svc-ic { box-shadow: 0 0 0 .5px rgba(255, 255, 255, .08); } }
.svc-app.is-filtered, .svc-row.is-filtered { display: none; }

/* ===== 3. Today (mockup today.html, v6 layout) ===== */
.today { position: relative; }
.today > * { position: relative; }
.today-sky { position: absolute !important; z-index: 0; inset-inline: calc(-1 * var(--gutter)); top: calc(-1rem - env(safe-area-inset-top)); height: 360px; pointer-events: none; background: var(--sky); }
@media (min-width: 760px) { .today-sky { inset-inline: calc((100vw - 100%) / -2); } }
.today .hello { display: block; margin: 0; }
.hello-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; }
.today .hello-date { margin: 0; color: var(--label-3); font-size: 14px; font-weight: 600; }
.today .hello-avatar { width: 38px; height: 38px; border-radius: 12px; object-fit: contain; background: var(--surface); box-shadow: 0 0 0 1px rgba(196, 98, 40, .45); }
.today #greeting { margin: 6px 0 0; font-size: 33px; font-weight: 700; letter-spacing: -.6px; line-height: 1.12; }
.hello-facts { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 6px; }
.hello-facts p { margin: 0; font-size: 15px; color: var(--label-2) !important; font-weight: 400 !important; }
.hello-facts .hello-special { color: var(--orange) !important; font-weight: 600 !important; }
.today-brief { margin-top: 12px; min-height: 44px; padding: 10px 14px; gap: 10px; border-radius: 16px; background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 .5px var(--glass-line); color: var(--ink); font-size: 14.5px; }
.today-brief > svg:first-child { width: 18px; height: 18px; color: var(--orange); }
.today-brief #brief-copy { flex: 1; font-weight: 500; }

/* The "לטיפולך" card: dark, glowing, white words. The first item continues it on a glass platter. */
.today-hero { margin: 26px 0 0; padding: 16px; border-radius: var(--r-hero); color: #fff; background: var(--deep-hero); box-shadow: var(--shadow-deep); overflow: hidden; isolation: isolate; }
.today-hero::before { content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; inset-inline-start: -80px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 170, 110, .22), rgba(255, 170, 110, 0) 68%); }
.today-hero.has-platter { border-end-start-radius: 0; border-end-end-radius: 0; padding-bottom: 6px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.today-hero.is-calm { background: linear-gradient(165deg, #3B6B55, #26493A); }
.hero-kicker { color: rgba(255, 255, 255, .88); }
.hero-talk { font: inherit; display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 11px; border: 0; border-radius: var(--r-round); background: rgba(255, 255, 255, .18); color: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.hero-talk svg { width: 15px; height: 15px; }
.hero-count { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.hero-count b { font-size: 52px; font-weight: 700; letter-spacing: -1.5px; line-height: 1; }
.hero-count span { font-size: 20px; font-weight: 600; }
.hero-count .pet-slot { margin-inline-start: auto; height: 40px; }
.today-hero:not(.is-calm) .hero-count:has(b:empty) { display: none; }
.today-hero .today-lead { margin: 0; }
.today-hero:not(.is-calm) .today-lead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.today-hero.is-calm .today-lead { margin-top: 8px; font-size: 22px; font-weight: 700; line-height: 1.3; }
.today-hero.is-calm .hero-count { display: none; }
.hero-kinds { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.hero-kind { min-height: 26px; padding: 0 10px; border-radius: var(--r-round); background: rgba(255, 255, 255, .16); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 3px; }
.hero-kind b { font-weight: 700; }
.hero-foot { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px !important; font-size: 14px !important; color: rgba(255, 255, 255, .92) !important; opacity: 1 !important; white-space: normal !important; }
.hero-foot::before { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }
#need-skeleton .skeleton { padding: 14px 16px; border-radius: var(--r-card); background: var(--surface); margin-top: 12px; }
#need-list { display: block; }
.need-platter { position: relative; padding: 8px 16px 12px; border-end-start-radius: var(--r-hero); border-end-end-radius: var(--r-hero); color: #fff; background: var(--deep-hero);
  box-shadow: 0 18px 34px -22px rgba(30, 20, 20, .7); overflow: hidden; isolation: isolate; }
.need-platter::after { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; inset-inline-end: -120px; bottom: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(214, 104, 40, .45), rgba(214, 104, 40, 0) 70%); }
.need-platter .hero-foot { margin: 12px 0 2px !important; }
.need-card.need-lead { display: block; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .13); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3); color: #fff; }
.need-lead .need-ico { display: none; }
.need-lead .need-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: rgba(255, 255, 255, .2); margin-bottom: 8px; }
.need-lead .need-text { font-size: 16.5px; line-height: 1.45; color: #fff; }
.need-lead .need-title { font-weight: 600; }
.need-lead .card-meta { color: rgba(255, 255, 255, .78); margin: 8px 0 0; padding-top: 8px; border-top: .5px solid rgba(255, 255, 255, .22); font-size: 13px; }
.need-lead .card-actions { margin-top: 14px; gap: 8px; align-items: center; }
.need-lead .card-actions .button { min-height: 38px; padding: 0 18px; border: 0; }
.need-lead .card-actions .button-primary { background: var(--peach); color: var(--on-peach); }
.need-lead .card-actions .button-secondary { background: rgba(255, 255, 255, .2); color: #fff; }
.need-lead .text-button { color: rgba(255, 255, 255, .88); text-decoration: none; min-height: 38px; padding: 0 6px; margin-inline-start: 0; }
.need-lead .text-danger { color: rgba(255, 255, 255, .88); }

/* The rest: rows of one card — the kind's square, the words (title before the colon), capsule actions. */
.need-rest { margin-top: 12px; overflow: hidden; }
.need-rest .need-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 0; background: none; box-shadow: none; position: relative; }
.need-rest .need-card + .need-card::before { content: ""; position: absolute; top: 0; inset-inline-start: 56px; inset-inline-end: 0; border-top: .5px solid var(--sep); }
.need-ico { margin-top: 1px; }
.need-ico:empty { display: none; }
.need-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.need-rest .need-tag, .need-tag:only-child { display: none; }
.need-card:not(.need-lead) .need-tag { display: none; }
.need-rest .need-text { font-size: 15px; line-height: 1.4; }
.need-title { font-weight: 600; font-size: 16px; }
.need-rest .card-meta { margin: 2px 0 0; font-size: 13px; }
.need-rest .card-actions { margin-top: 8px; gap: 8px; align-items: center; }
.need-rest .card-actions .button { min-height: 32px; padding: 0 14px; border: 0; font-size: 15px; }
.need-rest .card-actions .button-primary { background: var(--copper-tint); color: var(--accent); }
.need-rest .card-actions .button-secondary { background: none; color: var(--label-3); font-weight: 500; padding: 0 4px; font-size: 14px; }
.need-rest .text-button { font-size: 14px; color: var(--label-3); min-height: 32px; padding: 0 4px; }
.need-rest .text-danger { color: var(--bad); }
.need-card { box-shadow: var(--edge); }
.today .need-more { display: block; margin: 8px 4px 0; font-size: 15px; }
.takeover-stack { margin-top: 12px; }
.takeover-stack .outcome-notice { background: var(--surface); color: var(--ink); box-shadow: var(--edge); border-radius: var(--r-card); padding: 12px 16px; }
.takeover-stack .outcome-notice::before { content: ""; width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--d-teal); }
.today .outcome-notices { margin: 12px 0 0; }
.today .outcome-notices .outcome-notice { background: var(--green-tint); color: var(--ink); }
.today-banner { margin-top: 12px; background: rgba(233, 165, 0, .13) !important; color: var(--ink) !important; }

/* Small widgets, two by two. */
.today-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.today-grid[hidden] { display: none; }
.today-w { position: relative; min-height: 172px; margin: 0; padding: 14px; border-radius: var(--r-card); border: 0; overflow: hidden; display: flex; flex-direction: column; align-items: stretch; gap: 0;
  background: var(--surface); box-shadow: var(--edge); color: var(--ink); font: inherit; text-align: start; }
.today-w.is-wide { grid-column: 1 / -1; min-height: 0; }
.today-w[hidden] { display: none !important; }
.wx { color: #fff; background: var(--deep-sky); box-shadow: none; cursor: pointer; }
.wx-stars { position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(#fff 1px, transparent 1.3px); background-size: 23px 19px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 45%); mask-image: linear-gradient(180deg, #000, transparent 45%); }
.wx > * { position: relative; }
.wx-head { color: #fff; }
.wx .weather-icon { color: #fff; width: 18px; height: 18px; }
.wx-now { display: block; font-size: 46px; font-weight: 500; line-height: 1; margin-top: 6px; letter-spacing: -1px; }
.wx-cond { font-size: 13.5px; font-weight: 600; margin-top: 2px; color: #fff !important; }
.wx-range { font-size: 12.5px; opacity: .85; }
.wx .weather-range { font-weight: 500; }
.wx .weather-away { margin: 2px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.wx-days { display: flex; justify-content: space-between; margin-top: auto; padding-top: 8px; border-top: .5px solid rgba(255, 255, 255, .25); font-size: 11.5px; text-align: center; }
.wx-day b { display: block; font-size: 13px; }
.money-w { color: #fff; background: var(--deep-money); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 18px 34px -22px rgba(30, 60, 45, .7); padding: 0; }
.money-w > .fold-summary { padding: 14px 14px 0; color: #fff; }
.money-w .fold-value { color: rgba(255, 255, 255, .8); }
.money-w .row-chevron { color: rgba(255, 255, 255, .8); }
.money-w::after { content: "₪"; position: absolute; inset-inline-end: -20px; bottom: -64px; font-size: 170px; font-weight: 700; line-height: 1; color: rgba(255, 255, 255, .06); pointer-events: none; }
.today .money-w .fold-body { border: 0; padding: 0 14px 14px; }
.today .money-w .fin-card { background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; color: #fff !important; }
.today .money-w .fin-today-main { background: none !important; color: #fff !important; padding: 8px 0 0 !important; border: 0 !important; display: grid; text-align: start; }
.today .money-w .fin-meta { color: rgba(255, 255, 255, .8) !important; }
.today .money-w .fin-hero-value { color: #fff !important; font-size: 24px !important; letter-spacing: 1px; }
.today .money-w .fin-today-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.today .money-w .fin-today-chip { background: rgba(255, 255, 255, .14) !important; color: #fff !important; border: 0 !important; border-radius: 12px !important; padding: 6px 9px !important; display: grid; text-align: start; min-height: 0 !important; }
.today .money-w .fin-amount { color: #fff !important; }
.today .money-w .list-row { color: #fff; background: rgba(255, 255, 255, .14); border-radius: 12px; margin-top: 8px; font-size: 14px; }
.steps-w { cursor: pointer; }
.steps-head { color: var(--green); }
.steps-num { margin-top: auto; font-size: 34px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.steps-sub { margin-top: 4px; font-size: 12.5px; color: var(--label-3); }
.orders-w { padding: 0; }
.orders-w > .fold-summary { padding: 14px 14px 0; color: #A2845E; }
.today .orders-w .fold-body { border: 0; padding: 6px 4px 8px; }
.today .orders-w .list-row { min-height: 0; padding: 8px 10px; font-size: 14.5px; font-weight: 600; }

/* Every former fold is an open card; its header is the kit's kicker and opens the area's screen. */
.today .folds { display: block; margin: 0; }
.today .fold { margin-top: 14px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); overflow: hidden; }
.today .fold-summary { width: 100%; min-height: 44px; padding: 14px 16px 4px; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; text-align: start; cursor: pointer; color: var(--label-3); }
.today .fold-summary .k-l { min-width: 0; flex: 1; }
.today .fold-label { font-weight: 600; white-space: nowrap; }
.today .fold-value { flex: 1; min-width: 0; color: var(--label-3); font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today .fold-value::before { content: "· "; }
.today .fold-value:empty::before { content: none; }
.today .fold-summary .row-chevron { width: 14px; height: 14px; }
.today .fold > .fold-body { border-top: 0; display: block !important; }
.today .fold > .fold-body[hidden] { display: none !important; }
.today .fold .list-surface { background: none; box-shadow: none; margin: 0; border-radius: 0; }
.ker-fold > .fold-summary { color: var(--orange); }
.ker-fold .card.ker { background: none; box-shadow: none; border: 0; margin: 0; }
.travel-fold { background: none !important; box-shadow: none !important; overflow: visible !important; }
.travel-fold > .fold-summary { padding: 10px 4px 8px; color: var(--ink); font-size: 20px; font-weight: 700; }
.travel-fold > .fold-summary svg:first-child { display: none; }
.travel-fold .fold-value { font-size: 13px; }
.travel-fold .flight-card { margin: 0; padding: 0; border: 0; background: none; }
.cal-fold > .fold-summary { color: var(--red); }
.loops-fold > .fold-summary { color: var(--accent); }
.news-fold > .fold-summary { color: var(--red); }
#today-travel-rows .list-surface { margin-top: 10px; }

/* The travel card. */
.trip-card { display: block; border-radius: var(--r-card); padding: 16px; color: #fff; background: var(--deep-travel); position: relative; overflow: hidden; isolation: isolate; }
.trip-card::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: .18; background-image: radial-gradient(rgba(255, 255, 255, .9) 1px, transparent 1.4px); background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(120% 80% at 30% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(120% 80% at 30% 40%, #000 0%, transparent 70%); }
.trip-card .k-kicker { color: rgba(255, 255, 255, .9); }
.trip-status { min-height: 24px; padding: 0 9px; border-radius: var(--r-round); background: #fff; color: #12804F; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.trip-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #18A963; }
.trip-status.is-wait { color: #8A5A00; } .trip-status.is-wait::before { background: #E9A500; }
.trip-leg { display: flex; align-items: flex-end; gap: 10px; margin: 12px 0 0 !important; font-size: inherit !important; letter-spacing: 0 !important; }
.trip-code { font-size: 30px; font-weight: 700; letter-spacing: .5px; line-height: 1; }
.trip-tm { font-size: 14.5px; font-weight: 600; margin-top: 4px; }
.trip-ap:last-child { text-align: right; }
.trip-mid { flex: 1; padding-bottom: 16px; }
.trip-arc { display: block; width: 100%; height: 40px; overflow: visible; fill: none; stroke: none; }
.trip-arc path { fill: none; stroke: rgba(255, 255, 255, .65); stroke-width: 1.6; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.trip-arc circle { fill: #fff; }
.trip-card .flight-meta { color: rgba(255, 255, 255, .9); margin: 10px 0 0; }
.trip-card .flight-meta.is-need { color: #FFD08A; font-weight: 600; }
.trip-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 10px; border-top: .5px solid rgba(255, 255, 255, .22); font-size: 13.5px; color: rgba(255, 255, 255, .9); }
.trip-foot .text-button, .trip-foot .flight-meta { color: #fff; margin: 0; min-height: 32px; font-size: 13.5px; }
.travel-fold .flight-card > :not(.trip-card) { margin-top: 10px; }

/* The day as a calendar card. */
.cal-fold #day-section { margin: 0; padding: 4px 16px 4px; }
.cal-head { display: flex; gap: 8px; align-items: baseline; margin-top: 2px; }
.cal-dn { color: var(--red); font-weight: 700; font-size: 14px; }
.cal-dd { font-size: 28px; font-weight: 700; line-height: 1; }
.dayline { position: relative; height: 30px; margin: 12px 0 4px; }
.dayline[hidden] { display: none; }
.dl-track { position: absolute; inset-inline: 0; top: 11px; height: 8px; border-radius: 4px; background: var(--fill); }
.dl-blk { position: absolute; top: 11px; height: 8px; border-radius: 4px; min-width: 6px; }
.dl-now { position: absolute; top: 5px; width: 2px; height: 20px; border-radius: 1px; background: var(--red); }
.dl-now::before { content: ""; position: absolute; top: -4px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.dl-hrs { position: absolute; inset-inline: 0; top: 22px; display: flex; flex-direction: row-reverse; justify-content: space-between; font-size: 10.5px; color: var(--label-3); }
:root[dir="ltr"] .dl-hrs { flex-direction: row; }
.today #day-list .day-row { min-height: 0; padding: 10px 0; gap: 12px; align-items: flex-start; border-bottom: 0; font-size: 15px; }
.today #day-list .day-row + .day-row { border-top: .5px solid var(--sep); }
.cal-rail { width: 3.5px; align-self: stretch; border-radius: 2px; flex: none; }
.today .day-time { flex: 0 0 46px; font-size: 15px; font-weight: 600; color: var(--ink); }
.today .day-time small { display: block; font-size: 12px; color: var(--label-3); font-weight: 500; }
.today .day-copy { display: grid; gap: 2px; min-width: 0; }
.today .day-title { font-size: 15.5px; font-weight: 600; }
.today .day-meta { font-size: 13.5px; color: var(--label-2); }
.today .day-meta.is-need, .today .day-meta.is-late { color: var(--red); font-weight: 600; }
.today .day-prep { display: inline-block; width: fit-content; margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--accent); background: var(--copper-tint); border-radius: 6px; padding: 2px 7px; }
.today .task-check { width: 21px; height: 21px; margin: 0 10px 0 13px; border: 1.8px solid var(--label-3); }
.today .day-open { font-size: 15.5px; font-weight: 600; min-height: 0; padding: 0; flex: 1; }
.today .day-free { color: var(--green); font-size: 13.5px; font-weight: 600; }
.today .day-free::before { content: "◷"; margin-inline-end: 6px; }

/* Follow-ups and news. */
.loops-fold .list-row, .news-fold .list-row { padding: 12px 16px; }
.loops-fold .row-label, .news-fold .row-label { display: grid; font-size: 16px; font-weight: 600; }
.loops-fold .row-detail, .news-fold .row-detail { font-size: 13px; color: var(--label-3); font-weight: 400; margin-top: 2px; }
.news-fold .news-story:first-child .row-label { font-size: 18.5px; font-weight: 700; line-height: 1.3; letter-spacing: -.2px; }
.news-fold .news-story:not(:first-child) .row-label { font-size: 14.5px; }
.news-fold .news-story + .news-story::before { inset-inline-start: 16px; }

/* Tali's work, the background line, small cards, questions, shortcuts. */
.work-card { margin-top: 14px; padding: 0; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); overflow: hidden; }
.work-card .section-label { margin: 0; padding: 14px 16px 4px; font-size: 13.5px; color: var(--purple); display: flex; justify-content: flex-start; gap: 6px; }
.work-card .section-label svg { width: 16px; height: 16px; }
.work-card .list-surface { background: none; box-shadow: none; margin: 0; }
.work-card .row-label { display: grid; font-weight: 600; }
.work-card .row-detail { font-weight: 400; font-size: 13px; color: var(--label-3); }
.today-bg { margin-top: 12px; padding: 10px 14px; border-radius: 16px; background: var(--glass); box-shadow: inset 0 0 0 .5px var(--glass-line); color: var(--label-2); font-size: 14px; }
.today-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.today-extra:empty { display: none; }
.today-mini { margin: 0; padding: 14px 6px 8px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); min-width: 0; }
.today-mini.is-wide { grid-column: 1 / -1; }
.today-mini .section-label { margin: 0 8px 6px; font-size: 13.5px; color: var(--label-3); }
.mini-more .section-label { color: var(--d-teal); }
.today-mini .mini-row { min-height: 0; padding: 7px 8px; font-size: 14px; font-weight: 600; align-items: flex-start; border-radius: 10px; }
.today-mini .mini-row + .mini-row::before { inset-inline-start: 8px; inset-inline-end: 8px; }
.today-mini .row-label { line-height: 1.35; }
.today .me-questions { margin-top: 14px; padding: 16px; display: grid; gap: 10px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); }
.today .me-questions .section-label { margin: 0; font-size: 13.5px; color: var(--label-3); }
.today .me-questions .need-line { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; background: none; padding: 0; }
.today .me-questions input { border-radius: var(--r-round); min-height: 40px; }
.today .me-questions .need-actions { display: flex; gap: 8px; align-items: center; }
.today-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; padding: 12px; }
.today-shortcuts .shortcut { height: auto; min-height: 62px; border-radius: 16px; padding: 10px 12px; color: #fff; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px;
  font-size: 14px; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.today-shortcuts .shortcut svg { width: 20px; height: 20px; }
.sc-blue { background: linear-gradient(160deg, #5A83B5, #3E6593) !important; } .sc-red { background: linear-gradient(160deg, #D9705F, #B4483A) !important; }
.sc-orange { background: linear-gradient(160deg, #E89A55, #C46A26) !important; } .sc-green { background: linear-gradient(160deg, #5E9C79, #3C7D5A) !important; }
/* Today, fixes after the first comparison with the mockup. */
.need-lead .need-tag { justify-self: start; width: fit-content; }
.today-hero.has-platter, .need-platter { background: #29242D; }
.dl-hrs { flex-direction: row; }
.ker-fold .ker-state .ker-title { display: none; }
.today-travel-list { background: none !important; box-shadow: none !important; }
.today-travel-list .list-row { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--edge); margin-top: 10px; }
.today-travel-list .list-row::before { display: none; }
.travel-rows-title { margin: 22px 4px 0; }
.today .day-time { flex-basis: 54px; } .today .day-time small { white-space: nowrap; font-size: 11.5px; }

/* ===== 4. Money (mockup money.html, money2.html). finance.css loads after this file, so every rule is scoped to the
   page ([data-view-panel="money"], one level more specific) — the same structure, the kit's look. ===== */
[data-view-panel="money"] .screen-title { font-size: 33px; }
[data-view-panel="money"] .fin-card { border: 0; border-radius: var(--r-card); box-shadow: var(--edge); }
[data-view-panel="money"] .fin-title { font-size: 20px; font-weight: 700; letter-spacing: -.2px; }
[data-view-panel="money"] .fin-subtitle { color: var(--label-3); font-size: 13px; }
[data-view-panel="money"] .fin-link { color: var(--accent); font-weight: 500; }
[data-view-panel="money"] .fin-meta { color: var(--label-3); }
[data-view-panel="money"] .segmented { padding: 2px; border-radius: 9px; background: var(--fill-2); }
[data-view-panel="money"] .segmented button { border-radius: 7px; font-weight: 600; font-size: 13px; color: var(--label-2); }
[data-view-panel="money"] .segmented button[aria-pressed="true"] { background: var(--surface); color: var(--label); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
/* The update line: one quiet line with a dot, not a banner. */
[data-view-panel="money"] .finance-status { padding: 0 2px; background: none; color: var(--label-3); font-size: 13px; font-weight: 500; }
[data-view-panel="money"] .finance-status.finance-status-need { background: none; color: var(--label-2); }
[data-view-panel="money"] .finance-status .button { min-height: 30px; padding: 0 10px; background: none; color: var(--accent); font-size: 14px; }
/* The summary: the deep green card with white words (money.html), its facts in the kit's grid. */
[data-view-panel="money"] .fin-summary { color: #fff; background: var(--deep-money); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 18px 34px -22px rgba(30, 60, 45, .7); overflow: hidden; isolation: isolate; border-radius: 24px; }
[data-view-panel="money"] .fin-summary::after { content: "₪"; position: absolute; z-index: -1; inset-inline-end: -24px; bottom: -80px; font-size: 220px; font-weight: 700; line-height: 1; color: rgba(255, 255, 255, .05); pointer-events: none; }
[data-view-panel="money"] .fin-summary .fin-hero-label, [data-view-panel="money"] .fin-summary .fin-meta, [data-view-panel="money"] .fin-summary .fin-hero-note,
[data-view-panel="money"] .fin-summary .fin-kpi dt, [data-view-panel="money"] .fin-summary .fin-kpi-note { color: rgba(255, 255, 255, .78); }
[data-view-panel="money"] .fin-summary .fin-hero-value { color: #fff; font-weight: 700; letter-spacing: -1px; }
[data-view-panel="money"] .fin-summary .fin-hero-partial { color: #FFD3A8; }
[data-view-panel="money"] .fin-summary .fin-tag { background: rgba(255, 255, 255, .18); color: #fff; }
[data-view-panel="money"] .fin-summary .fin-forecast { border: 0; background: rgba(255, 255, 255, .14); color: #fff; border-radius: 14px; }
[data-view-panel="money"] .fin-summary .fin-forecast:hover { background: rgba(255, 255, 255, .2); }
[data-view-panel="money"] .fin-summary .fin-forecast strong.is-negative { color: #FFB4A8; }
[data-view-panel="money"] .fin-summary .fin-spark-line { stroke: rgba(255, 255, 255, .9); }
[data-view-panel="money"] .fin-summary .fin-spark-area { fill: rgba(255, 255, 255, .16); opacity: 1; }
[data-view-panel="money"] .fin-summary .fin-spark-dot { fill: #fff; stroke: #2E5745; }
[data-view-panel="money"] .fin-summary .fin-kpis, [data-view-panel="money"] .fin-summary .fin-kpi { border-color: rgba(255, 255, 255, .22) !important; }
[data-view-panel="money"] .fin-summary .fin-kpi-value { color: #fff; }
[data-view-panel="money"] .fin-summary .fin-kpi-value.is-in { color: #A6EBC3; }
[data-view-panel="money"] .fin-summary .fin-kpi-value.is-negative { color: #FFB4A8; }
[data-view-panel="money"] .fin-summary .fin-missing { color: rgba(255, 255, 255, .6); }
[data-view-panel="money"] .fin-summary .fin-delta { background: rgba(255, 255, 255, .16); color: #fff; }
[data-view-panel="money"] .fin-summary .fin-delta.is-need { background: rgba(255, 200, 140, .25); color: #FFE0C0; }
[data-view-panel="money"] .fin-summary .fin-delta.is-good { background: rgba(166, 235, 195, .2); color: #C7F5D9; }
[data-view-panel="money"] .fin-summary button { color: inherit; }
/* Rows: the kit's icon squares (white glyph on the kind's colour), hairlines from the text. */
[data-view-panel="money"] .fin-item { border-top: .5px solid var(--sep); }
[data-view-panel="money"] .fin-item:first-child { border-top: 0; }
[data-view-panel="money"] .fin-item-icon { inline-size: 28px; block-size: 28px; border-radius: 8px; background: var(--d-gray); color: #fff; }
[data-view-panel="money"] .fin-item-icon svg { inline-size: 17px; block-size: 17px; stroke-width: 2.1; }
[data-view-panel="money"] .fin-item.is-need .fin-item-icon { background: var(--d-orange); color: #fff; }
[data-view-panel="money"] .fin-item.is-good .fin-item-icon { background: var(--d-green); color: #fff; }
[data-view-panel="money"] .fin-item.is-bad .fin-item-icon { background: var(--d-red); color: #fff; }
[data-view-panel="money"] .fin-item-text { font-size: 15px; }
[data-view-panel="money"] .fin-item-text strong { font-size: 16px; }
[data-view-panel="money"] .fin-attention { box-shadow: var(--edge); }
[data-view-panel="money"] .fin-attention .fin-title { color: var(--orange); font-size: 13.5px; font-weight: 600; }
[data-view-panel="money"] .fin-tag { background: var(--fill); color: var(--label-2); }
[data-view-panel="money"] .fin-tag.is-need { background: var(--orange-tint); color: var(--orange); }
[data-view-panel="money"] .fin-tag.is-good { background: var(--green-tint); color: var(--green); }
[data-view-panel="money"] .fin-tag.is-bad { background: var(--red-tint); color: var(--bad); }
[data-view-panel="money"] .fin-delta { background: var(--fill); }
[data-view-panel="money"] .fin-delta.is-good { background: var(--green-tint); }
[data-view-panel="money"] .fin-delta.is-need { background: var(--orange-tint); }
[data-view-panel="money"] .fin-empty.is-boxed { background: var(--fill); border-radius: 14px; }
[data-view-panel="money"] .button { border-radius: var(--r-round); }
[data-view-panel="money"] .button-secondary { background: var(--copper-tint); color: var(--accent); border-color: transparent; }
[data-view-panel="money"] .finance-app { --fin-out: #E39A5C; --fin-out-strong: #C9763A; }
[data-view-panel="money"] .fin-summary .fin-kpi dt { color: rgba(255, 255, 255, .78) !important; }

/* ===== 5. Messages (mockup messages.html): one card of rows, the sender's initials with the source's mark,
   the quick replies as capsules; the state filter as a segmented control. ===== */
[data-view-panel="messages"] .screen-title { font-size: 33px; }
#inbox-state-filters { display: grid; grid-template-columns: 1fr 1fr; padding: 2px; border-radius: 9px; background: var(--fill-2); gap: 0; margin-bottom: 12px; }
#inbox-state-filters .chip { justify-content: center; min-height: 32px; border-radius: 7px; background: none; color: var(--label-2); font-size: 14px; font-weight: 600; }
#inbox-state-filters .chip[aria-pressed="true"] { background: var(--surface); color: var(--label); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
[data-view-panel="messages"] .notice-line { border-radius: 14px; background: var(--surface); box-shadow: var(--edge); padding: 8px 12px; }
[data-view-panel="messages"] .message-list { gap: 0; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); overflow: hidden; }
[data-view-panel="messages"] .message-list:empty { display: none; }
[data-view-panel="messages"] .message-row { border-radius: 0; }
[data-view-panel="messages"] .message-row::before { border-radius: 0; }
[data-view-panel="messages"] .message-row + .message-row .message-row-surface::before { content: ""; position: absolute; top: 0; inset-inline-start: 72px; inset-inline-end: 0; border-top: .5px solid var(--sep); }
[data-view-panel="messages"] .message-row-surface { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; padding: 14px 16px; border-radius: 0; box-shadow: none; }
[data-view-panel="messages"] .message-row.urgency-urgent .message-row-surface { box-shadow: none; }
[data-view-panel="messages"] .message-row.urgency-urgent .msg-av::after { content: ""; position: absolute; top: 2px; inset-inline-end: -14px; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }
.msg-av { position: relative; grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; background: #5E5A8C; }
.msg-av[data-tone="1"] { background: #B4531A; } .msg-av[data-tone="2"] { background: #3F8790; } .msg-av[data-tone="3"] { background: #8A5446; }
.msg-av[data-tone="4"] { background: #3C7D5A; } .msg-av[data-tone="5"] { background: #7A5A8C; }
[data-view-panel="messages"] .message-open { gap: 3px; }
[data-view-panel="messages"] .message-top { gap: 6px; }
[data-view-panel="messages"] .inbox-source-icon { order: -1; }
[data-view-panel="messages"] .gmail-list-sender { font-size: 16px; font-weight: 700; }
[data-view-panel="messages"] .gmail-list-time { color: var(--label-3); font-size: 13px; }
[data-view-panel="messages"] .gmail-list-headline { font-size: 15px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
[data-view-panel="messages"] .message-where { color: var(--label-3); font-size: 13px; }
[data-view-panel="messages"] .message-info { display: inline-block; width: fit-content; margin-top: 3px; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 6px; background: var(--fill); color: var(--label-2); }
[data-view-panel="messages"] .message-info.is-need { background: var(--copper-tint); color: var(--accent); }
[data-view-panel="messages"] .inbox-quick-replies { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
[data-view-panel="messages"] .inbox-quick-replies .chip { min-height: 34px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--sep); font-weight: 600; font-size: 14px; }
[data-view-panel="messages"] .info-fold { margin-top: 12px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); overflow: hidden; }
[data-view-panel="messages"] .info-fold > summary { min-height: 48px; padding: 0 16px; display: flex; align-items: center; font-weight: 700; font-size: 16px; cursor: pointer; }
[data-view-panel="messages"] .info-fold .message-list { box-shadow: none; border-radius: 0; }
[data-view-panel="messages"] .quiet-row { margin-top: 12px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); }
[data-view-panel="messages"] .message-row.urgency-urgent .msg-av::after { content: none; }
[data-view-panel="messages"] .message-row.urgency-urgent .msg-av { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--copper); }
/* The message sheet: Tali's summary on a copper wash, the original on a white card, the prepared replies as capsules. */
.message-sheet .sheet-body > section { gap: 0;  margin: 0 0 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--edge); }
.message-sheet .sheet-body > section.brief { background: linear-gradient(170deg, var(--copper-tint), rgba(196, 98, 40, .04)); box-shadow: inset 0 0 0 1px rgba(196, 98, 40, .22); }
.message-sheet .brief-label, .message-sheet .sheet-body > section > h3, .message-sheet .original-title { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--accent); }
.message-sheet .sheet-body > section:not(.brief) .brief-label, .message-sheet .original-title { color: var(--label-3); }
.message-sheet .suggestions .chip, .message-sheet .tali-asks .chip { background: var(--surface); box-shadow: inset 0 0 0 1px var(--sep); font-weight: 600; }
.message-sheet .suggestions { background: none !important; box-shadow: none !important; padding: 0 !important; }
.reply-sheet .reply-editor, .reply-sheet textarea { border-radius: 18px; border: 1.5px solid rgba(196, 98, 40, .45); background: var(--surface); font-size: 17px; line-height: 1.5; padding: 14px; }

/* ===== 6. Chat (mockup chat.html): his words on copper at the line's end, Tali's on white cards with her face at the start. ===== */
.chat-who { display: grid; }
.chat-sub { margin: 0; font-size: 13px; color: var(--green); font-weight: 500; }
.chat-sheet .chat-log { gap: 12px; }
.owner-row { justify-content: flex-end; }
.tali-row { justify-content: flex-start; }
.tali-row .chat-avatar { order: -1; width: 30px; height: 30px; flex-basis: 30px; box-shadow: 0 0 0 1px rgba(196, 98, 40, .35); }
.chat-message { border-radius: 20px; padding: 10px 14px; font-size: 16px; line-height: 1.45; box-shadow: var(--edge); }
.tali-row .chat-message { border-end-start-radius: 6px; max-width: 86%; }
/* 12.10.2026 (his screenshot): a row of flight cards widened the whole chat sideways. The log, the row and the message never
   grow past the screen; the cards scroll sideways inside Tali's message. */
.chat-log { grid-template-columns: minmax(0, 1fr); }
.chat-row, .chat-message, .chat-message .answer-card, .chat-message .answer-flights { min-width: 0; }
.chat-message .answer-flights.is-row { max-width: 100%; }
.chat-message.owner { background: var(--copper); color: #fff; border-end-end-radius: 6px; font-weight: 500; }
:root[data-theme="dark"] .chat-message.owner { color: var(--on-accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chat-message.owner { color: var(--on-accent); } }
.chat-message .action-card, .chat-message .answer-card { border: 0; border-radius: 16px; background: var(--fill); }
.chat-message .action-card .button-primary { background: var(--copper-tint); color: var(--accent); }
.chat-suggestions .chip { background: var(--surface); box-shadow: inset 0 0 0 1px var(--sep); font-weight: 600; }
.chat-status { color: var(--label-3); font-size: 13px; }

/* ===== 7. Travel, News, Calendar + Loops (mockups travel.html, news.html, calendar.html) ===== */
/* The boarding pass (chat, "היום", "נסיעות"): the purple travel card with white words and a dotted arc. */
.flight-pass:not(.stay-pass) { position: relative; border: 0; border-radius: var(--r-card); padding: 16px; color: #fff; background: var(--deep-travel); overflow: hidden; isolation: isolate; box-shadow: 0 18px 34px -24px rgba(40, 20, 50, .7); }
.flight-pass:not(.stay-pass)::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: .18; background-image: radial-gradient(rgba(255, 255, 255, .9) 1px, transparent 1.4px); background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(120% 80% at 30% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(120% 80% at 30% 40%, #000 0%, transparent 70%); }
.flight-pass:not(.stay-pass) .flight-pass-head, .flight-pass:not(.stay-pass) .flight-pass-date, .flight-pass:not(.stay-pass) .flight-pass-terminal,
.flight-pass:not(.stay-pass) .flight-pass-detail dt, .flight-pass:not(.stay-pass) .flight-pass-city, .flight-pass:not(.stay-pass) .flight-pass-mid { color: rgba(255, 255, 255, .78); }
.flight-pass:not(.stay-pass) .flight-pass-airline, .flight-pass:not(.stay-pass) .flight-pass-detail dd, .flight-pass:not(.stay-pass) .flight-pass-time { color: #fff; }
.flight-pass:not(.stay-pass) .flight-pass-code { font-size: 30px; font-weight: 700; letter-spacing: .5px; }
.flight-pass:not(.stay-pass) .flight-pass-arc .arc { stroke: rgba(255, 255, 255, .65); }
.flight-pass:not(.stay-pass) .flight-pass-arc .plane { fill: #fff; }
.flight-pass:not(.stay-pass) .flight-pass-details { border-top: .5px solid rgba(255, 255, 255, .22); }
.flight-pass:not(.stay-pass) .flight-pass-note { color: #FFD08A; }
.stay-pass { border: 0; border-radius: var(--r-card); color: #fff; background: var(--deep-travel-2); }
.stay-pass .flight-pass-head, .stay-pass .flight-pass-date, .stay-pass .flight-pass-detail dt, .stay-pass .flight-pass-city, .stay-pass .flight-pass-mid { color: rgba(255, 255, 255, .78); }
.stay-pass .flight-pass-airline, .stay-pass .flight-pass-detail dd, .stay-pass .flight-pass-time, .stay-pass .flight-pass-code { color: #fff; }
.stay-pass .flight-pass-details { border-top-color: rgba(255, 255, 255, .22); }
/* Screens of this group: the title large, segmented tabs, lists as one card. */
[data-view-panel="travel"] .screen-title, [data-view-panel="news"] .screen-title, [data-view-panel="timeline"] .screen-title, [data-view-panel="loops"] .screen-title { font-size: 30px; }
#travel-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 2px; border-radius: 9px; background: var(--fill-2); gap: 0; margin-bottom: 12px; }
#travel-tabs .chip, #travel-tabs button { justify-content: center; min-height: 32px; border-radius: 7px; background: none; color: var(--label-2); font-size: 14px; font-weight: 600; border: 0; }
#travel-tabs [aria-pressed="true"], #travel-tabs [aria-selected="true"] { background: var(--surface); color: var(--label); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
[data-view-panel="timeline"] .list-row, [data-view-panel="timeline"] .day-row { font-size: 16px; }
[data-view-panel="timeline"] .day-time, [data-view-panel="timeline"] .row-time { font-weight: 600; color: var(--ink); }
[data-view-panel="timeline"] .section-label, [data-view-panel="travel"] .section-label, [data-view-panel="news"] .section-label, [data-view-panel="loops"] .section-label { font-size: 22px; }
[data-view-panel="news"] .news-story .row-label { display: grid; font-weight: 600; }
[data-view-panel="news"] .news-story:first-child .row-label { font-size: 18.5px; font-weight: 700; line-height: 1.3; }
[data-view-panel="news"] .row-detail { font-weight: 400; color: var(--label-3); }
/* The calendar screen's days: a large day name, events with a copper rail and the hour in bold, tasks with a ring. */
#schedule .schedule-day { margin-bottom: 18px; }
#schedule .schedule-day > h2, #schedule .schedule-day > .section-label { margin: 6px 4px 8px; font-size: 22px; font-weight: 700; }
#schedule .list-surface { border-radius: var(--r-card); }
#schedule .day-row { gap: 12px; padding: 12px 16px; font-size: 16px; position: relative; }
#schedule .day-row + .day-row::before { content: ""; position: absolute; top: 0; inset-inline: 16px 0; border-top: .5px solid var(--sep); }
#schedule button.day-row:not(.day-task) { box-shadow: inset -3.5px 0 0 var(--copper); }
#schedule .day-time { flex: 0 0 52px; font-weight: 700; color: var(--ink); }
#schedule .day-title { font-weight: 600; }
#schedule .task-check { width: 22px; height: 22px; border: 1.8px solid var(--label-3); }
[data-view-panel="timeline"] #checklists-list .checklist-card h3 { font-size: 17px; font-weight: 700; }

/* ===== 9. Admin (mockup admin.html): Settings and Security rows carry the kit's colour squares; the stop switch is the red card. ===== */
#settings-my-details, #settings-contact, #settings-google-browser, #settings-vault, #settings-documents, #settings-household, #notifications-open, #day-settings-open, #autonomy-open, #status-open, [data-view-panel="settings"] [data-view-target="connections"], #version-row, #ai-cost-row, #logout-button, [data-security-sheet="password"], #biometric-row, [data-security-sheet="devices"], #phone-permissions-row, [data-security-sheet="permissions"], #r9-open-voice, #r9-open-plugins, [data-security-sheet="audit"] { position: relative; padding-inline-start: 56px !important; }
#settings-my-details::after, #settings-contact::after, #settings-google-browser::after, #settings-vault::after, #settings-documents::after, #settings-household::after, #notifications-open::after, #day-settings-open::after, #autonomy-open::after, #status-open::after, [data-view-panel="settings"] [data-view-target="connections"]::after, #version-row::after, #ai-cost-row::after, #logout-button::after, [data-security-sheet="password"]::after, #biometric-row::after, [data-security-sheet="devices"]::after, #phone-permissions-row::after, [data-security-sheet="permissions"]::after, #r9-open-voice::after, #r9-open-plugins::after, [data-security-sheet="audit"]::after { content: ""; position: absolute; inset-inline-start: 16px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 8px;
  pointer-events: none; }
#settings-my-details::after { background: #3E6FA8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-5 -5 34 34' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.5' r='3.5'/%3E%3Cpath d='M5 20c.8-3.6 3.6-5.5 7-5.5s6.2 1.9 7 5.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
#settings-contact::after { background: #3F8790 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-5 -5 34 34' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
#settings-google-browser::after { background: #8A8A93 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-5 -5 34 34' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M3.5 12h17M12 3.5c2.5 2.6 3.5 5.4 3.5 8.5s-1 5.9-3.5 8.5c-2.5-2.6-3.5-5.4-3.5-8.5s1-5.9 3.5-8.5z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
#settings-vault::after { background: #2F2A33 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-5 -5 34 34' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.5'/%3E%3Cpath d='M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
#settings-documents::after { background: #F27C00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-5 -5 34 34' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h7.5l4 4v12a1.5 1.5 0 0 1-1.5 1.5h-10A1.5 1.5 0 0 1 5 19.5V5a1.5 1.5 0 0 1 1.5-1.5z'/%3E%3Cpath d='M13.5 3.5v4.5h4.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
#settings-household::after { background: #EC3F77 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-5 -5 34 34' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='9' r='3.2'/%3E%3Cpath d='M3.5 19c.6-3 2.8-4.6 5.5-4.6s4.9 1.6 5.5 4.6'/%3E%3Ccircle cx='16.5' cy='8' r='2.6'/%3E%3Cpath d='M15.8 13.6c2.4 0 4.2 1.3 4.7 3.9'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
#notifications-open::after { background: #C8483C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-5 -5 34 34' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16V11a6 6 0 0 1 12 0v5l1.5 2h-15zM10 20.5a2 2 0 0 0 4 0'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
#day-settings-open::after { background: #E9A500 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-5 -5 34 34' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2.5v2M12 19.5v2M2.5 12h2M19.5 12h2M5.3 5.3l1.4 1.4M17.3 17.3l1.4 1.4M5.3 18.7l1.4-1.4M17.3 6.7l1.4-1.4'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
#autonomy-open::after { background: #7A5A8C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-5 -5 34 34' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 13.8 10l6.7 2-6.7 2L12 20.5 10.2 14l-6.7-2 6.7-2z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
#status-open::after { background: #3C7D5A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-5 -5 34 34' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5h16M6 15l4-4 3 3 5-6'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
[data-view-panel="settings"] [data-view-target="connections"]::after { background: #8A8A93 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-5 -5 34 34' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
#version-row::after { background: #8A8A93 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-5 -5 34 34' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
#ai-cost-row::after { background: #3C7D5A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-5 -5 34 34' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M14.5 9.5c-.5-1-1.4-1.5-2.5-1.5-1.5 0-2.5.8-2.5 2s1 1.7 2.5 2 2.5.8 2.5 2-1 2-2.5 2c-1.1 0-2-.5-2.5-1.5M12 6.5V8M12 16v1.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
#logout-button::after { background: #C8483C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-5 -5 34 34' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4.5h4a1.5 1.5 0 0 1 1.5 1.5v12a1.5 1.5 0 0 1-1.5 1.5h-4M10 16l-4-4 4-4M6 12h9'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
[data-security-sheet="password"]::after { background: #8A8A93 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-5 -5 34 34' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='14' r='4'/%3E%3Cpath d='m11 11 8.5-8.5M16 6l2.5 2.5M14 8l2 2'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
#biometric-row::after { background: #B4531A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-5 -5 34 34' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4a7 7 0 0 1 7 7v2M5 11a7 7 0 0 1 3-5.7M8.5 20c1-1.7 1.5-4 1.5-6.5a2 2 0 0 1 4 0c0 3-.6 5.5-1.8 7.5M16 18.5c.4-1.4.6-3 .6-4.8'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
[data-security-sheet="devices"]::after { background: #3E6FA8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-5 -5 34 34' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='12' height='9' rx='1.5'/%3E%3Cpath d='M7 18h5'/%3E%3Crect x='16.5' y='9' width='4.5' height='10' rx='1.2'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
#phone-permissions-row::after { background: #3F8790 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-5 -5 34 34' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
[data-security-sheet="permissions"]::after { background: #F27C00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-5 -5 34 34' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 9.5 17 19 7.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
#r9-open-voice::after { background: #7A5A8C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-5 -5 34 34' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10v4M8 7v10M12 4v16M16 7v10M20 10v4'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
#r9-open-plugins::after { background: #8A8A93 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-5 -5 34 34' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3.5v5M15 3.5v5M6.5 8.5h11V12a5.5 5.5 0 0 1-11 0zM12 17.5v3'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
[data-security-sheet="audit"]::after { background: #5E5A8C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-5 -5 34 34' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12a8 8 0 1 0 2.4-5.7M4 4.5v4h4M12 8v4.5l3 2'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
#kill-button { background: var(--red-tint); border-radius: var(--r-card); color: var(--bad); }
#kill-button .row-label { color: var(--bad); font-weight: 700; }
#kill-button::after { content: ""; position: absolute; inset-inline-start: 16px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 9px;
  background: #E5342B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='7' y='7' width='10' height='10' rx='1.5' fill='white'/%3E%3C/svg%3E") center / 100% no-repeat; }
#kill-button { position: relative; padding-inline-start: 58px !important; }

/* ===== 8. Life, More, Tools (mockups life.html, more.html, tools.html): people with initials, lists as single cards. ===== */
.person-av { grid-row: auto; width: 36px; height: 36px; font-size: 14px; flex: none; }
#people-list .list-row { gap: 12px; }
#people-list .list-row + .list-row::before { inset-inline-start: 64px; }
[data-view-panel="people"] .screen-title, [data-view-panel="orders"] .screen-title, [data-view-panel="health"] .screen-title, [data-view-panel="projects"] .screen-title,
[data-view-panel="benefits"] .screen-title, [data-view-panel="recordings"] .screen-title, [data-view-panel="activity"] .screen-title, [data-view-panel="approvals"] .screen-title,
[data-view-panel="connections"] .screen-title, [data-view-panel="settings"] .screen-title, [data-view-panel="security"] .screen-title, [data-view-panel="advanced"] .screen-title,
[data-view-panel="debts"] .screen-title { font-size: 30px; }
.item-list .list-item { border-bottom: .5px solid var(--sep); }
.list-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--d-copper); color: #fff; }
.status-badge { border-radius: var(--r-round); }
.status-badge.enabled { background: var(--green-tint); color: var(--green); }
/* Login: Tali's full portrait large and round, the fingerprint as the copper capsule. */
.login-card .brand-photo { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--surface), 0 18px 34px -18px rgba(120, 50, 10, .5); margin: 0 auto 12px; }
.login-card h1 { font-size: 30px; text-align: center; }
.login-shell { background: var(--sky), var(--page); }
.login-card .button-primary { min-height: 56px; font-size: 17px; border-radius: 18px; }

/* ===== 3b. Today, matched to today.html v6 (owner review 7.10) ===== */
/* Drawn (filled) pictures never take the app-wide svg stroke of styles.css. */
.today-sky svg, .trip-arc, .flight-pass-arc { stroke: none; }
.today-sky svg { position: absolute; left: 96px; top: calc(46px + env(safe-area-inset-top)); width: 120px; height: 90px; fill: none; }
.hello-facts .hello-wx { display: inline-flex; align-items: center; gap: 5px; }
.hello-wx[hidden] { display: none; }
.hello-wx .weather-icon { width: 16px; height: 16px; color: var(--label-3); }
.hello-wx .weather-range { font-variant-numeric: tabular-nums; }
.today-brief .pet-slot { margin-inline-start: auto; width: 40px; height: 26px; }
.today-brief #brief-copy { flex: 0 1 auto; }
.pet-slot { visibility: hidden; pointer-events: none; }
.today .fold-summary .pet-slot { width: 44px; height: 22px; }
.work-card .section-label .pet-slot { order: 2; margin-inline-start: auto; width: 44px; height: 20px; }

/* The platter's head: who it goes to, the account and the time, the kind's tag; under the words, the context table. */
.need-from { display: flex; gap: 10px; align-items: center; margin-bottom: 2px; }
.need-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; background: var(--peach); color: var(--on-peach); }
.need-from-b { min-width: 0; }
.need-from-n { font-size: 15.5px; font-weight: 600; }
.need-from-s { font-size: 12.5px; color: var(--label-3); }
.need-lead .need-from-s { color: rgba(255, 255, 255, .8); }
.need-from .need-tag { display: inline-flex !important; margin: 0 !important; margin-inline-start: auto !important; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.need-rest .need-from .need-tag { background: var(--fill); color: var(--label-2); }
.need-lead .need-text { margin-top: 10px; }
.need-ctx { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 10px 0 0; padding-top: 10px; border-top: .5px solid var(--sep); font-size: 13px; }
.need-ctx dt { color: var(--label-3); }
.need-ctx dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.need-lead .need-ctx { border-top-color: rgba(255, 255, 255, .22); }
.need-lead .need-ctx dt { color: rgba(255, 255, 255, .72); }
.need-lead .need-ctx dd { color: #fff; }
.need-lead .card-meta { border-top: 0; padding-top: 0; margin-top: 6px; }

/* The approval's outcome: a green strip with a check, the words, and its button (mockup "נשלח … ביטול"). */
.today .outcome-notices .outcome-notice { border-radius: 16px; padding: 10px 14px; gap: 10px; font-size: 14.5px; font-weight: 500; background: var(--green-tint); color: var(--ink); }
.today .outcome-notices .outcome-notice::before { content: ""; width: 18px; height: 18px; flex: none; background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 9.5 17 19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 9.5 17 19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.today .outcome-notices .outcome-notice span { flex: 1; }
.today .outcome-notices .outcome-notice .text-button { color: var(--accent); font-weight: 600; min-height: 32px; }

/* Kerestir in two cards: the meals, then the exceptions. */
.ker-fold { background: none !important; box-shadow: none !important; overflow: visible !important; }
.ker-fold > .fold-summary { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); }
.ker-fold .card.ker, .ker-fold .card.ker-exc { background: var(--surface) !important; box-shadow: var(--edge) !important; border: 0 !important; border-radius: var(--r-card) !important; }
.ker-fold .card.ker { padding: 16px; }
.ker-fold .ker-head { display: flex; justify-content: space-between; align-items: center; }
.ker-fold .ker-title { margin: 0; color: var(--orange); font-size: 13.5px; font-weight: 600; }
.ker-fold .ker-seg { display: inline-flex; background: var(--fill-2); border-radius: 9px; padding: 2px; }
.ker-fold .ker-seg button { font: inherit; font-size: 13px; font-weight: 600; border: 0; background: none; padding: 4px 12px; border-radius: 7px; color: var(--label-2); min-height: 32px; }
.ker-fold .ker-seg button[aria-pressed="true"] { background: var(--surface); color: var(--label); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.ker-fold .ker-meals { display: grid; grid-template-columns: repeat(var(--ker-meal-count, 3), minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ker-fold .ker-meal-tile { display: grid; justify-items: start; text-align: start; gap: 0; border: 0; border-radius: 16px; padding: 9px 10px; background: var(--fill); color: var(--ink); font: inherit; }
.ker-fold .ker-meal-tile.is-next { background: var(--deep-meal); color: #fff; }
.ker-fold .ker-ml { font-size: 13px; font-weight: 600; }
.ker-fold .ker-mv { font-size: 28px; font-weight: 700; line-height: 1; margin-top: 4px; letter-spacing: -.5px; }
.ker-fold .ker-ms { font-size: 12px; margin-top: 4px; color: var(--label-2); line-height: 1.35; }
.ker-fold .ker-meal-tile.is-next .ker-ms { color: rgba(255, 255, 255, .88); }
.ker-fold .ker-rows { margin: 12px 0 0; padding: 10px 0 0; border-top: .5px solid var(--sep); list-style: none; display: grid; gap: 6px; font-size: 13.5px; color: var(--label-2); }
.ker-fold .ker-rows li { display: flex; gap: 8px; align-items: center; }
.ker-fold .ker-k { color: var(--label-3); min-width: 3.5em; }
.ker-fold .ker-t { color: var(--label); font-weight: 500; }
.ker-fold .ker-more { display: flex; align-items: center; gap: 4px; margin-top: 10px; min-height: 32px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 14px; font-weight: 500; }
.ker-fold .ker-fresh { order: 9; margin: 6px 0 0; font-size: 12.5px; color: var(--label-3); }
.ker-fold .card.ker { display: flex; flex-direction: column; }
.ker-fold .card.ker > .ker-fresh { order: 10; }
.ker-exc { margin-top: 12px; padding: 0 0 6px; overflow: hidden; }
.ker-exc-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 4px; }
.ker-exc-title { margin: 0; color: var(--red); font-size: 13.5px; font-weight: 600; }
.ker-exc-head .pet-slot { width: 44px; height: 22px; }
.ker-exc-rows { list-style: none; margin: 0; padding: 0; }
.ker-exc-row { position: relative; }
.ker-exc-row + .ker-exc-row::before { content: ""; position: absolute; top: 0; inset-inline: 38px 0; border-top: .5px solid var(--sep); }
.ker-exc-open { display: flex; gap: 8px; align-items: baseline; width: 100%; min-height: 44px; padding: 10px 16px; border: 0; background: none; color: var(--ink); font: inherit; text-align: start; }
.ker-sev { width: 8px; height: 8px; border-radius: 50%; flex: none; align-self: center; margin-inline-end: 4px; background: #D99A00; }
.ker-exc-row.is-unusual .ker-sev { background: var(--red); }
.ker-exc-k { font-size: 13px; font-weight: 600; color: var(--label-3); flex: none; }
.ker-exc-t { font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }

/* Travel: a row of passes he swipes, with dots. */
.trip-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline-end: calc(-1 * var(--gutter)); padding-inline-end: var(--gutter); }
.trip-track::-webkit-scrollbar { display: none; }
.trip-track > * { flex: 0 0 calc(100% - 30px); scroll-snap-align: start; margin: 0 !important; }
.trip-dots { display: flex; justify-content: center; gap: 6px; margin-top: 9px; }
.trip-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(120, 120, 128, .32); transition: width var(--t-collapse); }
.trip-dots i.is-on { background: var(--label); width: 16px; }
.travel-fold > .fold-summary .pet-slot { width: 60px; }

/* Follow-ups, news, Tali's work, small cards, questions. */
.loop-av { grid-row: auto; width: 28px; height: 28px; font-size: 13px; flex: none; }
.loops-fold .list-row { gap: 12px; align-items: flex-start; }
.news-fold { background: none !important; box-shadow: none !important; overflow: visible !important; }
.news-fold > .fold-summary { padding: 18px 4px 8px; color: var(--ink); font-size: 20px; font-weight: 700; }
.news-fold > .fold-summary svg:first-child { display: none; }
.news-fold .fold-value { font-size: 13px; }
.news-fold > .fold-body { border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); overflow: hidden; padding: 4px 0; }
.work-card .task-status-row { align-items: flex-start; }
.work-card .task-status-row::after { content: ""; order: -1; width: 17px; height: 17px; border-radius: 50%; border: 2.4px solid var(--fill); border-top-color: var(--purple); flex: none; margin: 3px 6px 0 5px; animation: recorder-spin 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .work-card .task-status-row::after { animation: none; } }
.mini-one .mini-row { font-size: 17px; }
.mini-people .section-label { color: #B8506A; }
.mini-bill .section-label { color: #3F8790; }
.mini-tomorrow .section-label { color: var(--accent); }
.mini-act { width: calc(100% - 16px); margin: 8px 8px 4px; }
.today .me-questions .k-kicker { display: flex; justify-content: space-between; }
.today .today-grid .fold { margin: 0; }
.today .fold.money-w { background: var(--deep-money); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 18px 34px -22px rgba(30, 60, 45, .7); }
.today .money-w > .fold-summary { color: #fff; }
.today .money-w .fold-value { color: rgba(255, 255, 255, .8); }
.trip-mid { position: relative; }
.trip-plane { position: absolute; left: 50%; top: 6px; width: 20px; height: 20px; transform: translateX(-50%) rotate(90deg); fill: #fff; stroke: none; }
.mini-one .mini-row { font-size: 15.5px; font-weight: 700; padding-top: 4px; }
.mini-one .mini-row .row-label { line-height: 1.3; }
.ker-fold .ker-meal-tile.is-next, .ker-fold .ker-meal-tile.is-next .ker-ml, .ker-fold .ker-meal-tile.is-next .ker-mv { color: #fff; }
.ker-fold .ker-meal-tile.is-next .ker-ml::before { background: #fff; }
.ker-fold .ker-rows li { border: 0 !important; padding: 2px 0 !important; }
.ker-fold .ker-rows { border-top: .5px solid var(--sep) !important; }
.today-grid .fold-value { display: none; }
.ker-fold .ker-meal-tile.is-done { opacity: .62; }
.ker-kitchen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: .5px solid var(--sep); }
.ker-kitchen-chip { font: inherit; font-size: 12.5px; font-weight: 600; min-height: 32px; padding: 0 10px; border: 0; border-radius: var(--r-round); background: var(--orange-tint); color: var(--orange); }
.ker-kitchen-chip.is-more { background: var(--fill); color: var(--label-2); }
.ker-fold .ker-kitchen + .ker-rows { border-top: 0 !important; margin-top: 8px; }
.steps-ring { position: relative; width: 92px; height: 92px; margin: 6px auto 0; display: block; }
.steps-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-linecap: round; }
.steps-ring .steps-bg { stroke: var(--green-tint); stroke-width: 11; }
.steps-ring .steps-fg { stroke: var(--green); stroke-width: 11; }
.steps-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 11.5px; color: var(--label-3); line-height: 1.2; }
.steps-mid b { display: block; font-size: 18px; color: var(--label); }
.steps-w .steps-sub { margin-top: auto; }
/* Weather widget: one clean sky per condition and hour (owner review 7.10), no dotted wash. */
.wx { background: linear-gradient(180deg, #3A82D8 0%, #6EABEA 100%); }
.wx[data-sky="clear-night"] { background: linear-gradient(180deg, #0F1B3D 0%, #2A3B66 100%); }
.wx[data-sky="cloud-day"] { background: linear-gradient(180deg, #6A87A6 0%, #9DB3C9 100%); }
.wx[data-sky="cloud-night"] { background: linear-gradient(180deg, #232C3B 0%, #435069 100%); }
.wx[data-sky="rain"] { background: linear-gradient(180deg, #46566A 0%, #6E8095 100%); }
.wx .wx-stars { display: none; }
.wx-now { font-weight: 300; font-size: 50px; letter-spacing: -2px; }
.wx-cond { font-size: 14px; }
.wx-days { border-top-color: rgba(255, 255, 255, .3); }
.flight-pass:not(.stay-pass) .flight-pass-route { direction: ltr; }
.flight-pass:not(.stay-pass) .flight-pass-end { text-align: start; }
.flight-pass:not(.stay-pass) .flight-pass-end.is-to { text-align: end; }
.today-brief #brief-copy b { font-weight: 700; }
#finance-app > #money-debts { grid-column: 1 / -1; margin: 0; }

/* ===== 4b. Money, matched to money.html (owner rule 7.10: compare in close-up, every section) ===== */
/* Titles above their cards: the section is a frame, its head the heading, its body the white card. */
[data-view-panel="money"] .fin-card.is-titled { background: none; box-shadow: none; border: 0; padding: 0; overflow: visible; }
[data-view-panel="money"] .fin-card.is-titled > .fin-head { margin: 10px 0 10px; padding: 0 4px; min-height: 0; align-items: center; }
[data-view-panel="money"] .fin-card.is-titled > .fin-head .fin-title { font-size: 20px; font-weight: 700; }
/* P5-QA: the line under a section title is information (the month's finding, the spending total), so it stays, small. */
[data-view-panel="money"] .fin-card.is-titled > .fin-head .fin-subtitle { display: block; margin: 2px 0 0; font-size: 13px; font-weight: 400; color: var(--label-3); }
[data-view-panel="money"] .fin-card.is-titled > .fin-body { padding: 14px 16px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); overflow: hidden; }
[data-view-panel="money"] .fin-card.is-titled.is-flush > .fin-body { padding: 0; }
[data-view-panel="money"] .fin-card.is-titled > .fin-head .fin-link { color: var(--accent); font-size: 15px; }
/* The tabs inside a section: small pills, the chosen one dark (mockup "הכול · קבועים", "החודש · 3 חודשים", "3 · 6 · 12"). */
[data-view-panel="money"] .fin-head .segmented { background: none; padding: 0; gap: 4px; }
[data-view-panel="money"] .fin-head .segmented button { min-height: 30px; padding: 0 12px; border-radius: var(--r-round); background: var(--fill-2); color: var(--label-2); font-size: 13px; font-weight: 600; box-shadow: none; }
[data-view-panel="money"] .fin-head .segmented button[aria-pressed="true"] { background: var(--ink); color: var(--page); }
/* The update line above the tabs; the main tabs full width. */
[data-view-panel="money"] .finance-status { margin: -4px 0 2px; }
[data-view-panel="money"] .fin-budget-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
[data-view-panel="money"] .fin-budget-tabs button { min-height: 32px; font-size: 14px; }
/* The summary: the label inline ("יתרה נזילה · 2 חשבונות"), the number large, the forecast a glass row, compact figures. */
[data-view-panel="money"] .fin-summary { padding: 16px; gap: 12px; }
[data-view-panel="money"] .fin-summary .fin-hero-label { font-size: 13.5px; font-weight: 600; }
[data-view-panel="money"] .fin-summary .fin-hero-label .fin-tag { background: none; padding: 0; font-weight: 600; color: rgba(255, 255, 255, .78); }
[data-view-panel="money"] .fin-summary .fin-hero-label .fin-tag::before { content: "· "; }
[data-view-panel="money"] .fin-summary .fin-hero-value { font-size: 44px; letter-spacing: -1.2px; }
[data-view-panel="money"] .fin-summary .fin-hero-note { font-size: 13.5px; }
[data-view-panel="money"] .fin-summary .fin-forecast { width: 100%; justify-content: space-between; min-height: 42px; padding: 8px 14px; }
[data-view-panel="money"] .fin-summary .fin-forecast .fin-meta { flex-basis: 100%; font-size: 11.5px; }
[data-view-panel="money"] .fin-summary .fin-spark { block-size: 52px; }
[data-view-panel="money"] .fin-summary .fin-kpis { border-top: .5px solid rgba(255, 255, 255, .22); }
[data-view-panel="money"] .fin-summary .fin-kpi { padding: 10px 2px 6px; gap: 1px; }
[data-view-panel="money"] .fin-summary .fin-kpi:nth-child(2n) { padding-inline-start: 12px; }
[data-view-panel="money"] .fin-summary .fin-kpi-value { font-size: 18px; font-weight: 700; }
[data-view-panel="money"] .fin-summary .fin-kpi-note { font-size: 11.5px; line-height: 1.35; }
/* Investments, debts and the total: the last row of the green card, three cells with hairlines (no white box). */
[data-view-panel="money"] .fin-summary .fin-networth, [data-view-panel="money"] .fin-summary .fin-today-networth { border-top: .5px solid rgba(255, 255, 255, .22); padding-top: 10px; }
[data-view-panel="money"] .fin-summary dl > div, [data-view-panel="money"] .fin-summary .fin-networth button { background: none !important; color: #fff !important; border-color: rgba(255, 255, 255, .22) !important; box-shadow: none !important; }
[data-view-panel="money"] .fin-summary dl > div *:not(.fin-kpi-value) { color: inherit; }
/* What needs attention: the kit's kicker and rows — the square, the title bold with its sum at the end, the line, a capsule. */
[data-view-panel="money"] .fin-attention { padding: 14px 16px; }
[data-view-panel="money"] .fin-attention .fin-head { margin-bottom: 4px; }
[data-view-panel="money"] .fin-attention .fin-subtitle { margin: 2px 0 0; font-size: 13px; color: var(--label-3); }
[data-view-panel="money"] .fin-attention .fin-title::before { content: "⚠ "; }
[data-view-panel="money"] .fin-item { grid-template-columns: 28px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 12px 0; }
[data-view-panel="money"] .fin-item-action .button { min-height: 32px; padding: 0 14px; font-size: 15px; background: var(--copper-tint); color: var(--accent); border: 0; }
/* What is coming: one line each — the date, a dot (copper out, green in), the name, the sum. */
[data-view-panel="money"] .fin-up-total { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 10px 12px; margin-bottom: 6px; border-radius: 14px; background: var(--fill); font-size: 13px; }
[data-view-panel="money"] .fin-up-total strong { font-size: 17px; }
[data-view-panel="money"] .fin-upcoming { margin: 0; padding: 0; list-style: none; }
[data-view-panel="money"] .fin-day { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 0 8px; padding: 0; border: 0; }
[data-view-panel="money"] .fin-date { display: flex; gap: 3px; align-items: baseline; padding-top: 9px; font-size: 13.5px; color: var(--label-2); }
[data-view-panel="money"] .fin-date strong { font-size: 13.5px; font-weight: 600; color: var(--label-2); }
[data-view-panel="money"] .fin-date span { font-size: 12px; }
[data-view-panel="money"] .fin-day-items { display: grid; border-inline-start: 1.5px solid var(--fill); padding-inline-start: 14px; position: relative; }
[data-view-panel="money"] .fin-up { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; border: 0; }
[data-view-panel="money"] .fin-up::before { content: ""; position: absolute; inset-inline-start: -19px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }
[data-view-panel="money"] .fin-up:has(.is-in)::before { background: var(--green); }
[data-view-panel="money"] .fin-up-name { font-size: 15px; font-weight: 600; }
[data-view-panel="money"] .fin-up .fin-meta { display: flex; flex-wrap: wrap; gap: 0 6px; font-size: 12px; }
[data-view-panel="money"] .fin-up-amount { font-size: 16px; font-weight: 700; white-space: nowrap; }
/* P2-FIN-CLIP (live 19.10, his phone): a long name ("חיוב ישראכרט •••• 3169") set the text column's min-content, pushed
   the sum past the card's start edge and cut its first digit and the ₪. The text column may shrink and the name wraps
   (the card's digits stay visible); the sum never shrinks. */
[data-view-panel="money"] .fin-up > div:first-child { flex: 1 1 auto; min-width: 0; }
[data-view-panel="money"] .fin-up-name { white-space: normal; overflow-wrap: anywhere; }
[data-view-panel="money"] .fin-up-amount { flex: 0 0 auto; }
[data-view-panel="money"] .fin-up-amount.is-in { color: var(--green); }
[data-view-panel="money"] .fin-subs-link { display: block; margin: 8px auto 0; }
/* Accounts and cards: compact rows, the provider's square, the sum bold at the end (red below zero). */
[data-view-panel="money"] .fin-total-row { padding: 12px 16px; border-bottom: .5px solid var(--sep); }
[data-view-panel="money"] .fin-total-row strong { font-size: 20px; }
[data-view-panel="money"] .fin-row { gap: 12px; padding: 11px 16px; border-top: .5px solid var(--sep); }
[data-view-panel="money"] .fin-rows > .fin-row:first-child { border-top: 0; }
[data-view-panel="money"] .finance-brand { width: 34px; height: 34px; border-radius: 9px; }
[data-view-panel="money"] .fin-row-name { font-size: 16px; font-weight: 600; }
[data-view-panel="money"] .fin-row-digits { color: var(--label-3); font-weight: 500; font-size: 13px; }
[data-view-panel="money"] .fin-row .fin-meta { font-size: 12.5px; }
[data-view-panel="money"] .fin-row-amount { font-size: 16px; font-weight: 700; }
[data-view-panel="money"] .fin-row-amount.is-negative { color: var(--bad); }
[data-view-panel="money"] .fin-card-art { width: 64px; height: 41px; border-radius: 7px; overflow: hidden; box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .5); }
[data-view-panel="money"] .fin-card-art img { width: 100%; height: 100%; object-fit: cover; }
[data-view-panel="money"] .fin-track { height: 6px; border-radius: 3px; background: var(--fill); }
[data-view-panel="money"] .fin-track > span { height: 100%; border-radius: 3px; background: var(--green); display: block; }
[data-view-panel="money"] .fin-limit.is-need .fin-track > span { background: #D99A00; }
/* Debts inside the page: the title above, the list as one card. */
#finance-app > #money-debts > .finance-section-title { margin: 10px 4px 10px; font-size: 20px; font-weight: 700; }
#finance-app > #money-debts > .button { margin-top: 10px; }
/* The questions: copper capsules. */
[data-view-panel="money"] .fin-ask .chip, [data-view-panel="money"] .fin-ask button.chip { background: var(--copper-tint); color: var(--accent); font-weight: 600; }
/* "לאן הלך הכסף": each category its own colour, the square solid with a white glyph and the bar in the same colour (mockup). */
[data-view-panel="money"] .fin-cats > li .fin-cat-icon, [data-view-panel="money"] .fin-cats > .fin-cat .fin-cat-icon { width: 28px; height: 28px; border-radius: 8px; color: #fff; }
[data-view-panel="money"] .fin-cat .fin-cat-icon svg { stroke-width: 2.1; width: 17px; height: 17px; }
[data-view-panel="money"] .fin-cat .fin-track { height: 6px; }
[data-view-panel="money"] .fin-cat.is-other .fin-cat-icon { background: #8A8A93; }
[data-view-panel="money"] .fin-cat.is-other .fin-track > span { background: #8A8A93; }
[data-view-panel="money"] .fin-cat-name { font-weight: 600; font-size: 15px; }
[data-view-panel="money"] .fin-cat-figures strong { font-size: 15px; }
[data-view-panel="money"] .fin-cats > :nth-child(8n+1) .fin-cat:not(.is-other) .fin-cat-icon, [data-view-panel="money"] .fin-cats > :nth-child(8n+1).fin-cat:not(.is-other) .fin-cat-icon { background: #B4531A; }
[data-view-panel="money"] .fin-cats > :nth-child(8n+1) .fin-cat:not(.is-other) .fin-track > span, [data-view-panel="money"] .fin-cats > :nth-child(8n+1).fin-cat:not(.is-other) .fin-track > span { background: #B4531A; }
[data-view-panel="money"] .fin-cats > :nth-child(8n+2) .fin-cat:not(.is-other) .fin-cat-icon, [data-view-panel="money"] .fin-cats > :nth-child(8n+2).fin-cat:not(.is-other) .fin-cat-icon { background: #3C7D5A; }
[data-view-panel="money"] .fin-cats > :nth-child(8n+2) .fin-cat:not(.is-other) .fin-track > span, [data-view-panel="money"] .fin-cats > :nth-child(8n+2).fin-cat:not(.is-other) .fin-track > span { background: #3C7D5A; }
[data-view-panel="money"] .fin-cats > :nth-child(8n+3) .fin-cat:not(.is-other) .fin-cat-icon, [data-view-panel="money"] .fin-cats > :nth-child(8n+3).fin-cat:not(.is-other) .fin-cat-icon { background: #5B4166; }
[data-view-panel="money"] .fin-cats > :nth-child(8n+3) .fin-cat:not(.is-other) .fin-track > span, [data-view-panel="money"] .fin-cats > :nth-child(8n+3).fin-cat:not(.is-other) .fin-track > span { background: #5B4166; }
[data-view-panel="money"] .fin-cats > :nth-child(8n+4) .fin-cat:not(.is-other) .fin-cat-icon, [data-view-panel="money"] .fin-cats > :nth-child(8n+4).fin-cat:not(.is-other) .fin-cat-icon { background: #D99A5C; }
[data-view-panel="money"] .fin-cats > :nth-child(8n+4) .fin-cat:not(.is-other) .fin-track > span, [data-view-panel="money"] .fin-cats > :nth-child(8n+4).fin-cat:not(.is-other) .fin-track > span { background: #D99A5C; }
[data-view-panel="money"] .fin-cats > :nth-child(8n+5) .fin-cat:not(.is-other) .fin-cat-icon, [data-view-panel="money"] .fin-cats > :nth-child(8n+5).fin-cat:not(.is-other) .fin-cat-icon { background: #3E6FA8; }
[data-view-panel="money"] .fin-cats > :nth-child(8n+5) .fin-cat:not(.is-other) .fin-track > span, [data-view-panel="money"] .fin-cats > :nth-child(8n+5).fin-cat:not(.is-other) .fin-track > span { background: #3E6FA8; }
[data-view-panel="money"] .fin-cats > :nth-child(8n+6) .fin-cat:not(.is-other) .fin-cat-icon, [data-view-panel="money"] .fin-cats > :nth-child(8n+6).fin-cat:not(.is-other) .fin-cat-icon { background: #7A5A8C; }
[data-view-panel="money"] .fin-cats > :nth-child(8n+6) .fin-cat:not(.is-other) .fin-track > span, [data-view-panel="money"] .fin-cats > :nth-child(8n+6).fin-cat:not(.is-other) .fin-track > span { background: #7A5A8C; }
[data-view-panel="money"] .fin-cats > :nth-child(8n+7) .fin-cat:not(.is-other) .fin-cat-icon, [data-view-panel="money"] .fin-cats > :nth-child(8n+7).fin-cat:not(.is-other) .fin-cat-icon { background: #3F8790; }
[data-view-panel="money"] .fin-cats > :nth-child(8n+7) .fin-cat:not(.is-other) .fin-track > span, [data-view-panel="money"] .fin-cats > :nth-child(8n+7).fin-cat:not(.is-other) .fin-track > span { background: #3F8790; }
[data-view-panel="money"] .fin-cats > :nth-child(8n+8) .fin-cat:not(.is-other) .fin-cat-icon, [data-view-panel="money"] .fin-cats > :nth-child(8n+8).fin-cat:not(.is-other) .fin-cat-icon { background: #C8483C; }
[data-view-panel="money"] .fin-cats > :nth-child(8n+8) .fin-cat:not(.is-other) .fin-track > span, [data-view-panel="money"] .fin-cats > :nth-child(8n+8).fin-cat:not(.is-other) .fin-track > span { background: #C8483C; }
[data-view-panel="money"] .fin-changes .fin-title { font-size: 13.5px; font-weight: 600; color: var(--label); }
[data-view-panel="money"] .fin-changes .fin-title::before { content: "↗ "; color: var(--label-3); }
#finance-app #debts-list:empty, #finance-app #debt-repayments:empty { display: none; }
#finance-app #debts-empty { padding: 14px 16px; margin: 0; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); }
/* The budget tab (mockup money2.html). */
[data-view-panel="money"] .fin-budget { background: none; box-shadow: none; border: 0; padding: 0; display: grid; gap: 0; }
.fin-budget-sum { padding: 16px; border-radius: 24px; color: #fff; background: var(--deep-money); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 18px 34px -22px rgba(30, 60, 45, .7); }
.fin-budget-sum-k { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.fin-budget-sum-k .fin-title { font-size: 13.5px !important; font-weight: 600; color: #fff; margin: 0; }
.fin-budget-sum-v { margin: 6px 0 0; font-size: 15px; color: rgba(255, 255, 255, .85); }
.fin-budget-sum-v strong { font-size: 40px; font-weight: 700; letter-spacing: -1px; color: #fff; }
.fin-budget-sum-empty { margin: 8px 0 0; font-size: 17px; font-weight: 600; }
.fin-budget-bar { display: block; height: 8px; margin-top: 12px; border-radius: 4px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.fin-budget-bar i { display: block; height: 100%; border-radius: 4px; background: #fff; }
.fin-budget-sum-f { display: flex; justify-content: space-between; gap: 8px; margin: 8px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.fin-budget-sum .fin-budget-sum-n { margin: 6px 0 0; color: rgba(255, 255, 255, .7) !important; font-size: 11.5px; }
.fin-budget-h { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 4px 10px; gap: 10px; flex-wrap: wrap; }
.fin-budget-h > .fin-title { margin: 0; font-size: 20px !important; font-weight: 700; }
.fin-env-add { display: contents; }
.fin-env-add > summary { list-style: none; cursor: pointer; color: var(--accent); font-weight: 500; font-size: 15px; }
.fin-env-add > summary::-webkit-details-marker { display: none; }
.fin-env-add[open] > form { flex-basis: 100%; order: 3; margin-top: 8px; padding: 14px 16px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); }
.fin-envs { border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); overflow: hidden; }
.fin-env { padding: 12px 16px; display: grid; gap: 6px; position: relative; }
.fin-env + .fin-env::before { content: ""; position: absolute; top: 0; inset-inline: 16px 0; border-top: .5px solid var(--sep); }
.fin-env-head { display: flex; align-items: center; gap: 10px; }
.fin-env-head .fin-cat-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--d-copper); color: #fff; }
.fin-env-head .fin-cat-icon svg { width: 17px; height: 17px; }
.fin-env-name { flex: 1; margin: 0; font-size: 16px; font-weight: 600; }
.fin-env-sum strong { font-size: 16px; }
.fin-env progress { appearance: none; -webkit-appearance: none; width: 100%; height: 7px; border: 0; border-radius: 4px; background: var(--fill); overflow: hidden; }
.fin-env progress::-webkit-progress-bar { background: var(--fill); border-radius: 4px; }
.fin-env progress::-webkit-progress-value { background: var(--green); border-radius: 4px; }
.fin-env progress::-moz-progress-bar { background: var(--green); border-radius: 4px; }
.fin-env.is-near progress::-webkit-progress-value { background: #D99A00; } .fin-env.is-near progress::-moz-progress-bar { background: #D99A00; }
.fin-env.is-over progress::-webkit-progress-value { background: var(--red); } .fin-env.is-over progress::-moz-progress-bar { background: var(--red); }
.fin-env-foot { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.fin-env-foot .is-over { color: var(--bad); font-weight: 600; }
.fin-env-edit > summary { list-style: none; cursor: pointer; color: var(--accent); font-size: 13.5px; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.fin-env-edit > summary::-webkit-details-marker { display: none; }
.fin-env-edit[open] { flex-basis: 100%; }
.fin-suggest { margin-top: 12px; padding: 14px 16px; border-radius: var(--r-card); background: var(--copper-tint); }
.fin-suggest-k { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.fin-suggest-t { margin: 4px 0 0; font-size: 15px; line-height: 1.45; }
.fin-suggest .fin-env-edit > summary { margin-top: 6px; padding: 0 14px; border-radius: var(--r-round); background: var(--copper-tint); }
.fin-incomes { border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); overflow: hidden; }
.fin-income { margin: 0; padding: 0; position: relative; }
.fin-income + .fin-income::before { content: ""; position: absolute; top: 0; inset-inline: 16px 0; border-top: .5px solid var(--sep); }
.fin-income-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; list-style: none; cursor: pointer; }
.fin-income-row::-webkit-details-marker { display: none; }
.fin-income-main { flex: 1; min-width: 0; display: grid; }
.fin-income-name { font-size: 16px; font-weight: 600; }
.fin-income-row strong { font-size: 16px; white-space: nowrap; }
.fin-income[open] > :not(summary) { margin: 0 16px 12px; }
.fin-weektip { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-card); background: var(--green-tint); }
.fin-weektip .fin-title { margin: 0; font-size: 12.5px !important; font-weight: 700; color: var(--green); }
.fin-weektip p { margin: 4px 0 0; font-size: 15px; line-height: 1.45; }
[data-view-panel="money"] .fin-budget .fin-env, [data-view-panel="money"] .fin-budget .fin-income { padding-block: 0; border-bottom: 0; gap: 6px; }
[data-view-panel="money"] .fin-budget .fin-env { padding: 12px 16px; }
[data-view-panel="money"] .fin-budget summary { min-height: 0; }
[data-view-panel="money"] .fin-budget .fin-env-foot { flex-wrap: nowrap; }
[data-view-panel="money"] .fin-budget .fin-env-edit[open] { flex: 1 1 100%; }
[data-view-panel="money"] .fin-budget .fin-env-foot:has(.fin-env-edit[open]) { flex-wrap: wrap; }
[data-view-panel="money"] .fin-budget .fin-env-edit > summary { min-height: 32px; }
[data-view-panel="money"] .fin-budget .fin-budget-row:not(.fin-income) { border-bottom: 0; padding-block: 8px 0; }
[data-view-panel="money"] .fin-budget progress { height: 7px; }
/* Subscriptions and portfolio sheets (mockup money2.html): dark pills for the filters and tabs, cards on the page colour. */
.fin-subs-sheet .chips .chip, .fin-subs-sheet .chips button { background: var(--fill-2); color: var(--label-2); font-weight: 600; box-shadow: none; }
.fin-subs-sheet .chips [aria-pressed="true"] { background: var(--ink); color: var(--page); }
.fin-subs-sheet .fin-card, .fin-portfolio-sheet .fin-card, .fin-portfolio-sheet .fin-portfolio-block { border: 0; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); }
.fin-subs-sheet .fin-subs-summary .fin-hero-value, .fin-subs-sheet .fin-subs-summary strong { letter-spacing: -.6px; }
.fin-subs-sheet .fin-sub .fin-cat-icon, .fin-subs-sheet .fin-recurring .fin-cat-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--d-indigo); color: #fff; }
.fin-subs-sheet .fin-sub:nth-child(5n+1) .fin-cat-icon { background: #3C7D5A; } .fin-subs-sheet .fin-sub:nth-child(5n+2) .fin-cat-icon { background: #3E6FA8; }
.fin-subs-sheet .fin-sub:nth-child(5n+3) .fin-cat-icon { background: #C8483C; } .fin-subs-sheet .fin-sub:nth-child(5n+4) .fin-cat-icon { background: #B4531A; }
.fin-subs-sheet .fin-sub:nth-child(5n) .fin-cat-icon { background: #8A5446; }
.fin-subs-sheet .fin-sub .fin-cat-icon svg { stroke: #fff; }
.fin-portfolio-tabs { display: flex; gap: 6px; background: none !important; padding: 0 !important; overflow-x: auto; scrollbar-width: none; }
.fin-portfolio-tabs button { flex: none; min-height: 32px; padding: 0 14px; border-radius: var(--r-round) !important; background: var(--surface) !important; box-shadow: inset 0 0 0 1px var(--sep) !important; color: var(--label) !important; font-weight: 600; }
.fin-portfolio-tabs button[aria-pressed="true"] { background: var(--ink) !important; color: var(--page) !important; box-shadow: none !important; }
.fin-portfolio-sheet .fin-block-title { font-size: 18px; font-weight: 700; }
.fin-portfolio-sheet .fin-kpis { border: 0; }
.fin-portfolio-sheet .fin-kpi-value { font-size: 22px; font-weight: 700; }
/* Owner 7.10: money full width on top of the widgets; orders beside "מחכה לאחרים". */
.today-grid > .is-full { grid-column: 1 / -1; min-height: 0; }
.today-pair .today-slot { display: contents; }
.today-pair .today-mini { margin: 0; }
.today-pair .is-wide { grid-column: 1 / -1; }
.today .money-w.is-full .fin-today-chips { flex-wrap: nowrap; }
.today .money-w.is-full .fin-today-chip { flex: 1; }
/* UI-4 investments (mockup money.html "השקעות"): value with the ring beside it, change pills, legend, holdings with letter squares. */
[data-view-panel="money"] .fin-invest-hero.has-ring { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
[data-view-panel="money"] .fin-invest-hero.has-ring > :not(.fin-ring) { grid-column: 1; }
[data-view-panel="money"] .fin-invest-hero .fin-hero-value { font-size: 28px; font-weight: 700; letter-spacing: -.5px; }
.fin-ring { grid-column: 2; grid-row: 1 / span 2; inline-size: 88px; block-size: 88px; transform: rotate(-90deg); stroke: none; }
.fin-ring circle { fill: none; stroke-width: 7; stroke-linecap: butt; }
.fin-ring .is-equity, .fin-ring-legend .is-equity::before { stroke: #3B6B55; background: #3B6B55; }
.fin-ring .is-other, .fin-ring-legend .is-other::before { stroke: #B4531A; background: #B4531A; }
.fin-ring .is-bond, .fin-ring-legend .is-bond::before { stroke: #5B4166; background: #5B4166; }
.fin-ring .is-cash, .fin-ring-legend .is-cash::before { stroke: #D9A066; background: #D9A066; }
.fin-ring-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--label-2); }
.fin-ring-legend li { display: flex; align-items: center; gap: 6px; }
.fin-ring-legend li::before { content: ""; inline-size: 8px; block-size: 8px; border-radius: 2px; flex: none; }
.fin-ring-legend strong { font-weight: 600; color: var(--label); }
[data-view-panel="money"] .fin-invest-changes { display: flex; flex-wrap: wrap; gap: 6px; }
[data-view-panel="money"] .fin-invest-change { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 9px; border-radius: var(--r-round); background: var(--fill-2); color: var(--label-2); font-size: 12.5px; font-weight: 600; }
[data-view-panel="money"] .fin-invest-change strong { font-size: 12.5px; font-weight: 700; color: inherit; }
[data-view-panel="money"] .fin-invest-change .fin-meta { font-size: 12px; color: inherit; opacity: .85; }
[data-view-panel="money"] .fin-invest-change.is-up, .fin-pf-change.is-up { background: var(--good-soft, rgba(60, 125, 90, .12)); color: var(--good, #2F7A4F); }
[data-view-panel="money"] .fin-invest-change.is-down, .fin-pf-change.is-down { background: var(--bad-soft, rgba(200, 72, 60, .12)); color: var(--bad, #C8483C); }
.fin-invest-row { display: grid !important; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.fin-hold-mark { inline-size: 34px; block-size: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 12.5px; font-weight: 700; background: #3B6B55; }
.fin-hold-mark[data-tone="1"] { background: #B4531A; } .fin-hold-mark[data-tone="2"] { background: #5B4166; }
.fin-hold-mark[data-tone="3"] { background: #3E6FA8; } .fin-hold-mark[data-tone="4"] { background: #8A5446; }
.fin-hold-bar { display: block; block-size: 4px; margin-top: 5px; border-radius: 2px; background: var(--fill-2); overflow: hidden; max-inline-size: 160px; }
.fin-hold-bar i { display: block; block-size: 100%; border-radius: 2px; background: var(--copper); }
.fin-invest-row .fin-row-end { display: grid; justify-items: end; gap: 1px; }
.fin-hold-change { font-size: 12px; font-weight: 600; color: var(--label-3); }
.fin-hold-change.is-up { color: var(--good, #2F7A4F); } .fin-hold-change.is-down { color: var(--bad, #C8483C); }
/* Portfolio sheet (mockup money2.html "תיק השקעות"): the dark card with the value, pills, area chart and periods. */
.fin-pf-hero { padding: 16px; border-radius: 24px; color: #fff; background: linear-gradient(165deg, #2F2A33, #1F1B22); display: grid; gap: 4px; }
.fin-pf-k { margin: 0; font-size: 13px; opacity: .75; }
.fin-pf-value { font-size: 32px; font-weight: 700; letter-spacing: -.6px; }
.fin-pf-changes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.fin-pf-change { padding: 3px 9px; border-radius: var(--r-round); font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); }
.fin-pf-hero .fin-pf-change.is-up { background: rgba(143, 224, 176, .18); color: #8FE0B0; }
.fin-pf-hero .fin-pf-change.is-down { background: rgba(255, 138, 128, .18); color: #FF8A80; }
.fin-pf-chart { margin-top: 8px; min-block-size: 90px; }
.fin-pf-chart .fin-spark-line { stroke: #E89A55; stroke-width: 2.2; fill: none; }
.fin-pf-chart .fin-spark-area { fill: rgba(232, 154, 85, .2); opacity: 1; stroke: none; }
.fin-pf-chart .fin-spark-dot { fill: #E89A55; stroke: #1F1B22; }
.fin-pf-chart .fin-meta { color: rgba(255, 255, 255, .7); }
.fin-pf-periods { display: flex; gap: 6px; }
.fin-pf-periods button { min-block-size: 32px; padding: 0 11px; border: 0; border-radius: var(--r-round); background: none; color: rgba(255, 255, 255, .7); font: inherit; font-size: 12.5px; cursor: pointer; }
.fin-pf-periods button[aria-pressed="true"] { background: rgba(255, 255, 255, .15); color: #fff; font-weight: 600; }
.fin-pf-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 14px 16px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); }
.fin-pf-facts > div + div { border-inline-start: .5px solid var(--sep); padding-inline-start: 10px; }
.fin-pf-facts dt { font-size: 12px; color: var(--label-3); }
.fin-pf-facts dd { margin: 2px 0 0; font-size: 17px; font-weight: 700; }
.fin-pf-top .fin-head { display: flex; align-items: baseline; justify-content: space-between; }
/* Wide screens: the old two-column investments grid held only the title and the body after the title moved above the card. */
.finance-app > .fin-invest.is-titled { grid-template-columns: minmax(0, 1fr); }
.fin-ring-legend { max-inline-size: 360px; }
/* UI-5 messages (mockup messages.html): the count line above the title, the source's mark on the avatar's corner,
   the folds ("לידיעה", "ישנות", what was hidden or handled today) as rows of one card with a grey count and a chevron. */
.screen-kicker { margin: 0; font-size: 13px; font-weight: 600; color: var(--label-3); }
[data-view-panel="messages"] .screen-header { display: grid; align-content: end; gap: 2px; }
[data-view-panel="messages"] .screen-kicker:empty { display: none; }
.msg-av .inbox-source-icon { position: absolute; bottom: -2px; inset-inline-start: -3px; inline-size: 19px; block-size: 19px; flex: none; border-radius: 6px; box-shadow: 0 0 0 2px var(--surface); }
.msg-av .inbox-source-icon svg { inline-size: 12px; block-size: 12px; }
.msg-av-letters { line-height: 1; }
[data-view-panel="messages"] .msg-folds { margin-top: 12px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); overflow: hidden; }
[data-view-panel="messages"] .msg-folds:not(:has(> :not([hidden]))) { display: none; }
[data-view-panel="messages"] .msg-folds > :not([hidden]) ~ :not([hidden]) { border-top: .5px solid var(--sep); }
[data-view-panel="messages"] .msg-folds .info-fold, [data-view-panel="messages"] .msg-folds .quiet-row { margin: 0; border-radius: 0; box-shadow: none; background: none; }
[data-view-panel="messages"] .msg-folds .info-fold > summary { list-style: none; gap: 8px; font-size: 15.5px; font-weight: 700; }
[data-view-panel="messages"] .msg-folds .info-fold > summary::-webkit-details-marker { display: none; }
[data-view-panel="messages"] .msg-folds .info-fold > summary::after { content: ""; margin-inline-start: auto; inline-size: 8px; block-size: 8px; border: solid var(--label-3); border-width: 0 0 1.8px 1.8px; transform: rotate(-45deg) translateY(-2px); transition: transform .2s; }
[data-view-panel="messages"] .msg-folds .info-fold[open] > summary::after { transform: rotate(135deg) translateY(-2px); }
[data-view-panel="messages"] .fold-count { color: var(--label-3); font-weight: 600; }
[data-view-panel="messages"] .msg-folds .quiet-row { min-height: 48px; padding: 0 16px; font-size: 15px; font-weight: 600; }
[data-view-panel="messages"] .msg-folds .info-fold .message-list { border-top: .5px solid var(--sep); }
/* UI-5 message sheet: the sender's avatar with its source in the header, the brief signed by Tali, "ענה" the wide button. */
.message-sheet .sheet-header > .msg-av { flex: none; inline-size: 40px; block-size: 40px; font-size: 14px; }
.message-sheet .sheet-header > .msg-av .inbox-source-icon { margin: 0; box-shadow: 0 0 0 2px var(--page); }
.message-sheet .brief .brief-label::before { content: "✦ "; }
.message-sheet .brief .brief-label::after { content: ", טלי"; }
.message-sheet .sheet-actions .button.is-wide, .message-sheet .sheet-footer .button.is-wide { flex: 1.6 1 0; }
.message-sheet .conversation-list { display: grid; gap: 6px; }
.message-sheet .conversation-line { justify-self: start; max-inline-size: 86%; padding: 9px 12px; border-radius: 16px; background: var(--surface); box-shadow: var(--edge); display: grid; gap: 2px; }
.message-sheet .conversation-line.is-mine { justify-self: end; background: var(--copper-tint); box-shadow: none; }
.message-sheet .conversation-who { order: 2; font-size: 11.5px; color: var(--label-3); }
.message-sheet .conversation-text { font-size: 15px; line-height: 1.4; }
.message-sheet section.conversation { background: none !important; box-shadow: none !important; padding: 0 !important; }
/* UI-5 reply editor: the draft on a copper-edged card, its length and language under it, the green calendar line. */
.reply-draft-card { display: grid; gap: 6px; padding: 12px 14px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1.5px rgba(196, 98, 40, .45); }
.reply-draft-label { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.reply-draft-label::before { content: "✦ "; }
.reply-sheet .reply-draft-card .reply-editor { border: 0; padding: 0; border-radius: 0; background: none; min-block-size: 96px; resize: none; }
.reply-sheet .reply-draft-card .reply-editor:focus-visible { outline: none; }
.reply-draft-card:focus-within { box-shadow: inset 0 0 0 2px var(--copper); }
.reply-draft-meta { margin: 0; font-size: 12px; color: var(--label-3); }
.reply-sheet .calendar-line { margin: 0; padding: 9px 12px; border-radius: 12px; background: var(--good-soft); color: var(--good); font-size: 13.5px; font-weight: 600; }
.reply-safe-line { margin: 0; text-align: center; font-size: 12.5px; color: var(--label-3); }
/* UI-6 chat (mockup chat.html): a money bar chart opens with its latest figure and the change; the card's two actions as
   copper capsules; choices as full-width rows; the WhatsApp draft as a light card with a green band and one row of actions. */
.answer-chart-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.answer-chart-now { font-size: 28px; font-weight: 700; letter-spacing: -.5px; color: var(--label); }
.answer-chart-delta { font-size: 13px; font-weight: 700; color: var(--label-3); }
.answer-chart-delta.is-up { color: var(--accent); } .answer-chart-delta.is-down { color: var(--good); }
.chat-message .answer-card .answer-chart-bar { fill: color-mix(in srgb, var(--copper) 55%, var(--fill)); stroke: none; }
.chat-message .answer-card rect.answer-chart-bar:last-of-type { fill: var(--copper); }
.chat-message .answer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-message .answer-actions .button, .chat-message .answer-actions .text-button { min-height: 34px; padding: 0 14px; border: 0; border-radius: var(--r-round); background: var(--copper-tint); color: var(--accent); font-size: 14px; font-weight: 600; box-shadow: none; text-decoration: none; }
.chat-message .answer-card-foot { display: grid; gap: 10px; }
.chat-message .chat-choices { display: grid; gap: 8px; margin-top: 10px; }
.chat-message .chat-choice { min-height: 46px; justify-content: flex-start; text-align: start; padding: 10px 14px; border: 0; border-radius: 14px; background: var(--fill); color: var(--label); font-size: 15px; font-weight: 600; box-shadow: none; }
.chat-message .chat-choice[aria-pressed="true"] { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--copper); }
.chat-message .chat-choice[aria-pressed="true"]::after { content: "✓"; margin-inline-start: auto; inline-size: 22px; block-size: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--copper); color: #fff; font-size: 13px; }
.chat-message .chat-choice:disabled:not([aria-pressed="true"]) { opacity: .55; }
/* Yitzhak 11.10: approve / cancel side by side in Tali's message, approve in the primary colour. */
.chat-message .chat-approval { grid-template-columns: 1fr 1fr; }
.chat-message .chat-approval .chat-choice { justify-content: center; text-align: center; }
.chat-message .chat-approval .chat-choice-picked { grid-column: 1 / -1; }
.chat-message .chat-choice.is-primary { background: var(--copper); color: #fff; }
:root[data-theme="dark"] .chat-message .chat-choice.is-primary { color: var(--on-accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chat-message .chat-choice.is-primary { color: var(--on-accent); } }
.chat-message .action-card.draft-card { position: relative; padding: 0; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--sep); }
.draft-card > h3, .draft-card > .fact-list, .draft-card > dl { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.draft-band { margin: 0; padding: 8px 14px; background: var(--good-soft); color: var(--good); font-size: 13px; font-weight: 700; }
.draft-card .exact-payload { margin: 0; padding: 12px 14px 4px; border: 0; background: none; font-size: 16px; line-height: 1.45; }
.draft-actions { display: flex; align-items: center; gap: 14px; padding: 6px 14px 4px; }
.draft-actions .button { min-height: 36px; padding: 0 16px; border-radius: var(--r-round); }
.draft-actions .text-button { color: var(--label-2); font-weight: 600; }
.draft-card .form-feedback { margin: 0; padding: 4px 14px 12px; font-size: 12.5px; color: var(--label-3); }
.answer-chart.has-head .answer-chart-value.is-last { display: none; }
.chat-message .answer-actions { align-items: center; }
.chat-message .answer-actions > * { margin: 0; }
.draft-actions .button, .draft-actions .text-button { white-space: nowrap; }
/* UI-6 voice stage (mockup chat.html, third screen): dark in both themes, the time at the top, an empty place for the
   companion (no image until it is approved), the state word large over the wave, both sides' words, two buttons. */
.sheet.voice-stage { color: #fff; background: radial-gradient(120% 70% at 50% 28%, #4A3A30 0%, #241C18 55%, #141110 100%); }
.voice-stage .sheet-header { background: none; border: 0; box-shadow: none; }
.voice-stage .sheet-title { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .75); }
.voice-stage .sheet-close { background: rgba(255, 255, 255, .12); color: #fff; }
.voice-clock { font-size: 14px; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; direction: ltr; }
.voice-stage .sheet-body { display: grid; align-content: start; gap: 12px; }
.voice-stage-place { justify-self: center; inline-size: 220px; block-size: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 154, 85, .16), transparent 68%); }
.voice-stage .r9-voice-state { font-size: 26px; font-weight: 700; color: #fff; }
.voice-stage .r9-voice-state[data-state="error"] { color: #FF8A80; font-size: 18px; }
.voice-stage .r9-orb { inline-size: auto; block-size: 40px; border-radius: 0; background: none; box-shadow: none; color: #E89A55; gap: 4px; }
.voice-stage .r9-orb i { inline-size: 4px; }
.voice-stage .r9-voice-lines { max-height: none; gap: 12px; margin-top: 12px; }
.voice-stage .r9-voice-line { padding: 0; background: none; border-radius: 0; color: #fff; font-size: 16px; line-height: 1.45; }
.voice-stage .r9-voice-line::before { display: block; font-size: 12px; color: rgba(255, 255, 255, .6); margin-bottom: 2px; }
.voice-stage .r9-voice-line.is-tali::before { content: "טלי"; }
.voice-stage .r9-voice-line.is-me::before { content: "אתה"; }
.voice-stage .r9-voice-line.is-me { color: rgba(255, 255, 255, .78); }
.voice-stage .voice-usage { text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.voice-stage .sheet-actions { background: none; border: 0; box-shadow: none; justify-content: center; gap: 12px; }
.voice-stage .sheet-actions .button { flex: 1 1 0; min-height: 52px; border-radius: var(--r-round); font-weight: 700; }
.voice-stage .voice-typing { background: rgba(255, 255, 255, .14) !important; color: #fff !important; box-shadow: none !important; }
.voice-stage .voice-end { background: #E5483C !important; color: #fff !important; border: 0; }
.r9-orb i:nth-child(n+6) { display: none; }
.voice-stage .r9-orb i { display: block; height: 14px; }
.voice-stage .r9-orb i:nth-child(2n) { height: 24px; } .voice-stage .r9-orb i:nth-child(3n) { height: 32px; }
.voice-stage .r9-orb i:nth-child(6) { height: 38px; }
/* UI-6 round 2 (Yitzhak 7.10: "the contacts are not shown right, and other things differ"). */
.chat-day { align-self: center; margin: 4px 0; font-size: 12.5px; font-weight: 600; color: var(--label-3); }
/* Answer cards: the title and body on a grey panel, the source and the capsules under it on the bubble. */
.chat-message .answer-card { padding: 0; border: 0; background: none; box-shadow: none; }
.chat-message .answer-card-main { padding: 12px 14px; border-radius: 16px; background: var(--fill); }
.chat-message .answer-card-title { font-size: 13px; font-weight: 600; color: var(--label-2); }
.chat-message .answer-card-foot { margin-top: 8px; padding-top: 0; border-top: 0; }
.chat-message .answer-source { font-size: 12px; color: var(--label-3); }
.chat-message .answer-chart-readout:not(:empty) { font-size: 12px; }
.chat-message .answer-chart.has-head .answer-chart-readout { min-block-size: 0; }
/* People as rows: avatar, name, how he knows them and the number's last four digits. */
.chat-message .chat-choice.is-person { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 12px; }
.chat-choice-av { inline-size: 36px; block-size: 36px; font-size: 13px; flex: none; grid-row: auto; }
.chat-choice-copy { display: grid; gap: 1px; min-inline-size: 0; }
.chat-choice-name { font-size: 15.5px; font-weight: 700; }
.chat-choice-sub { font-size: 12.5px; font-weight: 500; color: var(--label-3); }
.chat-choice-picked { margin: 2px 0 0; font-size: 12.5px; font-weight: 700; color: var(--good); }
/* BRN2-22: thumbs up / down under an answer of the new brain — quiet, small, the marked one in the primary color. */
.chat-message .chat-feedback { display: flex; gap: 4px; margin-top: 6px; justify-content: flex-start; }
.chat-feedback-button { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.chat-feedback-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-feedback-button:hover { background: var(--sunk); }
.chat-feedback-button[aria-pressed="true"] { color: var(--accent); background: var(--sunk); }
.chat-feedback-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Tali writing: three dots in a small bubble instead of grey rows. */
.chat-message.is-thinking { min-inline-size: 0; padding: 10px 14px; }
.chat-message.is-thinking .skeleton { display: none; }
.chat-message.is-thinking::before { content: "•••"; letter-spacing: 3px; color: var(--label-3); font-size: 18px; line-height: 1; animation: chat-dots 1.2s ease-in-out infinite; }
@keyframes chat-dots { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .chat-message.is-thinking::before { animation: none; } }
.chat-message.is-thinking .chat-status { display: block; margin-top: 6px; }
/* Flight results (mockup): the hours and the price on the first line, "airline · stops · duration · baggage" under them. */
.chat-message .answer-table.is-flights tbody tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0; padding: 10px 2px; box-shadow: none !important; border-block-end: .5px solid var(--sep); }
.chat-message .answer-table.is-flights tbody tr:last-child { border-block-end: 0; }
.chat-message .answer-table.is-flights tbody td:nth-child(2) { order: 1; flex: 1 1 60%; font-size: 16px; font-weight: 700; color: var(--label); }
.chat-message .answer-table.is-flights tbody td:nth-child(5) { order: 2; flex: 0 0 auto; margin-inline-start: auto; font-size: 17px; font-weight: 700; color: var(--label); }
.chat-message .answer-table.is-flights tbody th { order: 3; font-size: 12.5px; font-weight: 500; color: var(--label-3); white-space: normal; }
.chat-message .answer-table.is-flights tbody td:nth-child(3) { order: 4; }
.chat-message .answer-table.is-flights tbody td:nth-child(4) { order: 5; }
.chat-message .answer-table.is-flights tbody td:nth-child(7) { order: 6; }
.chat-message .answer-table.is-flights tbody td:is(:nth-child(3), :nth-child(4), :nth-child(7)) { font-size: 12.5px; color: var(--label-3); text-align: start; }
.chat-message .answer-table.is-flights tbody td:is(:nth-child(3), :nth-child(4), :nth-child(7))::before { content: ", "; white-space: pre; }
.chat-message .answer-table.is-flights .answer-cell-name { display: inline-flex; align-items: center; gap: 4px; }
.chat-message .answer-table.is-flights .answer-row-icon { block-size: 14px; inline-size: auto; }
.chat-message .answer-table.is-flights .answer-tag { order: 7; display: inline-block; margin-inline-start: 6px; padding: 2px 7px; border-radius: 6px; background: var(--good-soft); color: var(--good); font-size: 11.5px; font-weight: 700; }
.chat-log > .chat-day { align-self: stretch; text-align: center; }
.chat-message .answer-chart-readout:not(.is-live) { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.chat-message .answer-table.is-flights tbody td:nth-child(2) { flex: 1 0 calc(100% - 96px); }
.chat-message .answer-table.is-flights tbody td:nth-child(5) { flex: 0 0 96px; text-align: end; }
.chat-message .answer-table.is-flights tbody th, .chat-message .answer-table.is-flights tbody tr.is-highlight th { box-shadow: none !important; border: 0 !important; background: none; }
.chat-message .answer-table.is-flights tbody th, .chat-message .answer-table.is-flights tbody th * { font-weight: 500; }
/* UI-6 flight checkout (mockup chat.html, second screen): a copper-framed approval card, the total large, the steps under it. */
.chat-message .fl-status { display: flex; flex-direction: column; gap: 10px; }
.chat-message .fl-status > .fl-steps { order: 9; display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; border: 0; background: none; }
.chat-message .fl-steps li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--label); }
.chat-message .fl-steps li::before { content: ""; inline-size: 14px; block-size: 14px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px var(--label-3); }
.chat-message .fl-steps li.is-done::before { background: var(--good); box-shadow: none; }
.chat-message .fl-steps li.is-waiting::before { box-shadow: inset 0 0 0 2px var(--copper); }
.chat-message .fl-checkout { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px rgba(196, 98, 40, .45); }
.fl-checkout-k { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.chat-message .fl-checkout .fl-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.chat-message .fl-checkout .fl-facts dt { color: var(--label-3); font-size: 13.5px; }
.chat-message .fl-checkout .fl-facts dd { margin: 0; font-size: 14px; font-weight: 700; }
.chat-message .fl-checkout .fl-facts .is-total { padding-top: 10px; margin-top: 4px; border-top: .5px solid var(--sep); }
.chat-message .fl-checkout .fl-facts dd.is-total { font-size: 24px; letter-spacing: -.4px; }
.chat-message .fl-checkout .fl-actions { display: flex; align-items: center; gap: 14px; }
.chat-message .fl-checkout .fl-actions .button-primary { min-height: 40px; padding: 0 18px; border-radius: var(--r-round); background: var(--copper); color: #fff; }
.chat-message .fl-checkout .fl-actions .text-button { color: var(--label-2); font-weight: 600; }
.chat-message .fl-checkout .fl-facts { grid-template-columns: minmax(56px, 92px) minmax(0, 1fr); }
.chat-message .fl-checkout .fl-facts dd { overflow-wrap: anywhere; }
.chat-message .fl-status { padding: 0; border: 0; background: none; box-shadow: none; }
.chat-message .fl-status > .fl-lead { margin: 0; font-size: 15px; font-weight: 600; }
.chat-message .fl-checkout .fl-facts { grid-template-columns: minmax(48px, 72px) minmax(0, 1fr); column-gap: 10px; }
.chat-message .fl-checkout .fl-facts dt { font-size: 13px; }
.chat-message .fl-checkout .fl-facts dd { font-size: 13.5px; }
.chat-message .answer-actions > * { max-inline-size: 100%; white-space: normal; text-align: center; }
.chat-message .answer-table.is-flights tbody td, .chat-message .answer-table.is-flights tbody th { min-inline-size: 0; overflow-wrap: anywhere; }
.answer-card-foot .answer-actions { min-inline-size: 0; max-inline-size: 100%; }
.answer-card-foot .answer-actions .button, .answer-card-foot .answer-actions .text-button { white-space: normal; max-inline-size: 100%; }
.chat-message .answer-table.is-flights tbody td:nth-child(2) { white-space: normal; }
.chat-message .answer-card-foot { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; }
.chat-message .answer-actions { flex-wrap: wrap; } .chat-message .answer-actions > * { flex-shrink: 0; }
.chat-message .answer-actions .button-small::after { inset: -4px 0; }
/* UI-6 (Yitzhak 7.10): the airline's logo in place of its name in every flight card; the name is read, not shown. */
.airline-mark { display: inline-flex; align-items: center; gap: 6px; min-inline-size: 0; }
.airline-mark-logo { display: block; block-size: 20px; inline-size: auto; max-inline-size: 84px; object-fit: contain; }
.airline-mark.has-logo .airline-mark-name, .answer-table.is-flights .answer-cell-name.has-logo > span:last-child,
.fl-cell-airline.has-logo > span:not(.fl-logo), .fl-head.has-logo .fl-airline {
  position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flight-pass .airline-mark-logo, .trip-card .airline-mark-logo { box-sizing: content-box; padding: 3px 7px; border-radius: 7px; background: #fff; }
.answer-table.is-flights .answer-row-icon { block-size: 16px; max-inline-size: 72px; }
.chat-message .answer-table.is-flights tbody th .answer-cell-name.has-logo { gap: 0; }
.chat-message .answer-table.is-flights tbody td:nth-child(3)::before { content: none; }
.chat-message .answer-table.is-flights tbody td:nth-child(3) { margin-inline-start: 8px; }
/* UI-7 Travel (mockup travel.html): the update line under the title, the next flight large, the trip as rows with coloured
   squares, the trips after it, price trackers with the price large, the preferences as a facts grid at the end. */
.travel-updated { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px 0 10px; font-size: 13px; color: var(--label-3); }
.travel-updated-line::before { content: ""; display: inline-block; inline-size: 7px; block-size: 7px; margin-inline-end: 6px; border-radius: 50%; background: var(--good); vertical-align: 1px; }
.travel-updated-line.is-never::before { background: var(--label-3); } .travel-updated-line.is-running::before { background: var(--copper); }
.travel-updated .text-button { color: var(--accent); font-weight: 600; }
[data-view-panel="travel"] .journeys { display: grid; gap: 18px; }
.travel-hero .flight-pass { flex-basis: 100% !important; padding: 18px; border-radius: 24px; }
.travel-hero .flight-pass-code { font-size: 38px !important; }
.journey-list .journey-head { margin-top: 4px; }
.journey-list .journey-title, [data-view-panel="travel"] .section-label { font-size: 20px; font-weight: 700; color: var(--label); }
.journey-list .journey-dates { padding: 3px 9px; border-radius: var(--r-round); background: var(--fill-2); color: var(--label-2); font-weight: 600; font-size: 12.5px; }
.travel-row { display: flex; align-items: center; gap: 12px; inline-size: 100%; min-height: 60px; padding: 10px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: start; }
.travel-row + .travel-row { border-top: .5px solid var(--sep); }
.travel-row-icon { inline-size: 34px; block-size: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--d-indigo, #5E5A8C); color: #fff; }
.travel-row.is-plane .travel-row-icon { background: #6B4E7A; } .travel-row.is-hotel .travel-row-icon { background: #3F8790; }
.travel-row.is-car .travel-row-icon { background: var(--copper); } .travel-row.is-other .travel-row-icon { background: #8A8A93; }
.travel-row-icon svg { inline-size: 18px; block-size: 18px; stroke: #fff; fill: none; stroke-width: 1.8; }
.travel-row.is-plane .travel-row-icon svg { fill: #fff; stroke: none; }
.travel-row-copy { display: grid; gap: 2px; flex: 1 1 auto; min-inline-size: 0; }
.travel-row-copy .row-label { font-size: 15.5px; font-weight: 700; }
.travel-row-copy .row-meta { font-size: 12.5px; color: var(--label-3); }
.travel-row .row-chevron-text { color: var(--label-3); font-size: 20px; }
.travel-chip { flex: none; padding: 2px 8px; border-radius: 6px; background: var(--copper-tint); color: var(--accent); font-size: 12px; font-weight: 700; }
[data-view-panel="travel"] .section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 8px; }
[data-view-panel="travel"] .section-head .text-button { color: var(--accent); font-weight: 600; }
[data-view-panel="travel"] .travel-watches, [data-view-panel="travel"] .travel-prefs { margin-top: 18px; }
.watch-row { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; padding: 14px 16px; }
.watch-row + .watch-row { border-top: .5px solid var(--sep); }
.watch-row .list-copy { display: grid; gap: 2px; }
.watch-row .list-copy > strong { font-size: 15.5px; }
.watch-price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.watch-price strong { font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.watch-per { font-size: 12.5px; color: var(--label-3); }
.watch-move { font-size: 12.5px; font-weight: 700; color: var(--label-3); } .watch-move.is-down { color: var(--good); } .watch-move.is-up { color: var(--bad); }
.watch-row .price-spark { inline-size: 110px; block-size: 34px; }
.price-spark circle.spark-hit { stroke: none; fill: transparent; }
.price-spark circle.spark-end { stroke: none; fill: var(--label-3); }
.price-spark .spark-line { stroke: var(--label-3); stroke-width: 1.8; }
.watch-row.is-under .price-spark .spark-line { stroke: var(--good); } .watch-row.is-under .price-spark circle.spark-end { fill: var(--good); }
.price-spark .spark-limit { stroke: var(--copper); opacity: .6; }
.watch-row .card-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.watch-row .button.is-tinted { min-height: 34px; border: 0; border-radius: var(--r-round); background: var(--copper-tint); color: var(--accent); box-shadow: none; font-weight: 600; }
.watch-row .card-actions .text-button { color: var(--label-2); font-weight: 600; }
.watch-quota { margin: 8px 2px 0; font-size: 12px; }
.travel-prefs-card { padding: 14px 16px; }
.travel-prefs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; margin: 0; }
.travel-prefs-grid dt { font-size: 12px; color: var(--label-3); }
.travel-prefs-grid dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 700; }
.travel-prefs-card { border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); }
[data-view-panel="travel"] .section-label { margin: 0; }
[data-view-panel="travel"] .travel-later { margin-top: 0; }
.travel-hero-extra { display: grid; gap: 6px; justify-items: start; margin: 8px 0 4px; }
.travel-hero-line { margin: 0; font-size: 17px; font-weight: 700; color: #fff; }
.travel-hero-wx { padding: 3px 10px; border-radius: var(--r-round); background: rgba(255, 255, 255, .16); color: #fff; font-size: 12.5px; font-weight: 600; }
/* UI-7 News (mockup news.html): topics on one line (the chosen dark), the edition line, the lead story large, two side by
   side, the rest as one card under "עוד היום". */
#news-topics { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; margin-bottom: 10px; }
#news-topics::-webkit-scrollbar { display: none; }
#news-topics .chip { flex: none; min-height: 34px; padding: 0 14px; border-radius: var(--r-round); background: var(--surface); box-shadow: inset 0 0 0 1px var(--sep); color: var(--label); font-weight: 600; }
#news-topics .chip[aria-pressed="true"] { background: var(--ink); color: var(--page); box-shadow: none; }
.news-list { display: grid; gap: 12px; }
.news-edition { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-size: 13px; color: var(--label-3); }
.news-edition strong { font-size: 14px; color: var(--label); }
.news-card { display: grid; gap: 6px; inline-size: 100%; padding: 16px; border: 0; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); color: var(--label); font: inherit; text-align: start; cursor: pointer; }
.news-kicker { font-size: 12.5px; font-weight: 700; color: var(--accent); }
.news-ago { font-weight: 500; color: var(--label-3); }
.news-title { font-size: 17px; font-weight: 700; line-height: 1.35; }
.news-card.is-lead .news-title { font-size: 24px; line-height: 1.25; letter-spacing: -.3px; }
.news-excerpt { font-size: 15px; line-height: 1.45; color: var(--label-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.news-src { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: var(--r-round); background: var(--fill-2); font-size: 12.5px; font-weight: 600; }
.news-src::before { content: ""; inline-size: 12px; block-size: 12px; border-radius: 50%; background: #D9534F; }
.news-src[data-tone="1"]::before { background: #3E6FA8; } .news-src[data-tone="2"]::before { background: #2F2A33; }
.news-src[data-tone="3"]::before { background: #3C7D5A; } .news-src[data-tone="4"]::before { background: #B4531A; }
.news-more { font-size: 12.5px; font-weight: 600; color: var(--label-3); }
.news-lead-media { inline-size: 100%; max-block-size: 190px; object-fit: cover; border-radius: 14px; }
.news-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.news-card.is-half { align-content: start; padding: 12px 14px; }
.news-card.is-half .news-title { font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-sub { font-size: 12.5px; color: var(--label-3); }
.news-rest-title { margin: 8px 0 0; }
.news-rest { padding: 0 16px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); }
.news-rest .news-card { padding: 14px 0; border-radius: 0; box-shadow: none; background: none; grid-template-columns: minmax(0, 1fr) auto; }
.news-rest .news-card > :not(img) { grid-column: 1; }
.news-rest .news-card > img { grid-column: 2; grid-row: 1 / span 3; border-radius: 10px; }
.news-rest .news-card + .news-card { border-top: .5px solid var(--sep); }
/* The story sheet: the topic, the headline large, the times; each channel with its dot and "לפתוח בטלגרם"; ask Tali. */
.news-sheet .news-kicker { margin: 0; }
.news-sheet-title { margin: 2px 0 4px; font-size: 22px; font-weight: 700; line-height: 1.3; }
.news-sheet-times { margin: 0 0 10px; }
.news-sheet-from { margin: 14px 0 6px; font-size: 17px; }
.news-sheet-sources .list-row { display: grid; gap: 4px; padding: 12px 16px; }
.news-src-row { display: flex !important; align-items: center; gap: 8px; }
.news-src-row .news-src { background: none; padding: 0; font-size: 14.5px; font-weight: 700; }
.news-open { font-size: 13px; font-weight: 700; color: var(--accent); }
.news-sheet .sheet-actions { display: flex; align-items: center; gap: 16px; }
.news-sheet .news-ask { border-radius: var(--r-round); background: var(--copper-tint); color: var(--accent); box-shadow: none; }
.news-sheet .sheet-actions .text-button { color: var(--label-2); font-weight: 600; }
.news-sheet-sources a, .news-sheet-sources a:visited { color: inherit; text-decoration: none; }
.news-sheet .sheet-title { color: var(--accent); font-size: 14px; font-weight: 700; }
.news-src[data-tone="2"]::before { background: var(--label-2); }

/* Shared opt-in reader and media frame. */
.news-reader-sheet { inset: 0; inline-size: min(100%, 780px); margin-inline: auto; }
.news-reader-sheet .sheet-close { width: 44px; height: 44px; }
.news-reader-sheet .sheet-actions .news-ask { background: var(--fill-2); color: var(--ink); }
.news-reader-sheet .sheet-body { min-inline-size: 0; padding-inline: 20px; }
.news-reader-sheet .news-sheet-title { font-size: 28px; line-height: 1.3; text-wrap: balance; overflow-wrap: anywhere; margin-block: 4px 12px; }
.news-reader-sheet .news-sheet-times { font-size: 12px; line-height: 1.7; color: var(--muted); }
.news-reader-sheet .news-reader-origin { font-size: 12px; color: var(--muted); margin-block: 14px 6px; }
.news-reader-sheet .news-reader-text { font-size: 17px; line-height: 1.8; max-inline-size: 65ch; overflow-wrap: anywhere; }
.news-reader-gallery { display: grid; gap: 16px; min-inline-size: 0; margin-block: 20px; }
.news-reader-gallery:empty { display: none; }
.news-reader-figure { margin: 0; min-inline-size: 0; }
.news-reader-media { display: block; inline-size: 100%; max-inline-size: 100%; block-size: auto; max-block-size: min(58svh, 480px); object-fit: contain; background: var(--fill-2); }
.news-reader-figure figcaption { font-size: 12px; color: var(--muted); line-height: 1.6; margin-block-start: 8px; }
.news-reader-more-media { border-block: 1px solid var(--sep); }
.news-reader-more-media summary { cursor: pointer; min-block-size: 48px; padding-block: 14px; font-size: 14px; font-weight: 600; }
.news-reader-more-media summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.news-reader-more-media .news-reader-figure { margin-block: 8px 20px; }
.news-reader-sheet .news-sheet-sources { background: none; box-shadow: none; }
.news-reader-sheet .news-sheet-sources .list-row { padding-inline: 0; }
.news-reader-sheet .news-src-row { flex-wrap: wrap; overflow-wrap: anywhere; }
.news-reader-sheet .news-src { max-inline-size: 100%; overflow-wrap: anywhere; }
.news-reader-sheet .sheet-actions { flex-wrap: wrap; gap: 8px 16px; }
/* NEWS 8 October directive: the owner-pinned list hierarchy and reading sizes. */
.news-reader-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-inline-size: 860px; margin-inline: auto; }
.news-reader-list > .section-label { margin: 6px 0 0; font-size: 15px; }
/* Owner update: one light pill row; only topics scroll, the view switch stays at its end. */
#news-topics.news-reader-topics { display: flex; overflow: hidden; max-inline-size: 860px; margin-inline: auto; flex-wrap: nowrap; gap: 8px; align-items: center; }
.news-reader-topic-scroll { display: flex; flex: 1 1 auto; min-inline-size: 0; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-block: 3px; }
.news-reader-topic-scroll::-webkit-scrollbar { display: none; }
#news-topics.news-reader-topics .chip { min-block-size: 44px; padding-inline: 16px; font-size: 15px; font-weight: 500; border-radius: 999px; white-space: nowrap; }
#news-topics.news-reader-topics .news-reader-view-toggle { flex: 0 0 auto; position: sticky; inset-inline-end: 0; background: var(--surface); color: var(--ink); }
.news-reader-list > .news-edition { flex-wrap: wrap; row-gap: 3px; font-size: 12px; }
.news-reader-list > .news-edition strong { font-size: 15px; font-weight: 600; }
.news-reader-surface { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--edge); overflow: hidden; }
.news-reader-card { display: flex; align-items: flex-start; gap: 12px; inline-size: 100%; min-inline-size: 0; border: 0; background: var(--surface); color: var(--ink); padding: 12px 14px; font: inherit; text-align: start; cursor: pointer; position: relative; }
.news-reader-card + .news-reader-card, .news-reader-more-updates, .news-reader-article-row + .news-reader-article-row { border-block-start: 1px solid var(--sep); }
.news-reader-card.is-new:not(.is-lead)::before { content: ""; position: absolute; inset-inline-start: 0; top: 16px; bottom: 16px; inline-size: 3px; background: var(--accent); border-radius: 2px; }
.news-reader-card-body { display: grid; gap: 6px; min-inline-size: 0; flex: 1; }
.news-reader-card .news-title, .news-reader-article-row .news-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 17px; line-height: 1.35; font-weight: 600; }
.news-reader-card.is-lead { display: block; padding: 0; overflow: hidden; border-radius: var(--r-card); box-shadow: var(--edge); }
.news-reader-card.is-lead .news-reader-card-body { padding: 12px 16px 14px; }
.news-reader-card.is-lead .news-title { font-size: 22px; line-height: 1.32; }
.news-reader-thumbnail { display: block; flex: none; inline-size: 72px; block-size: 72px; object-fit: cover; background: var(--fill-2); }
.news-reader-card.is-lead .news-reader-thumbnail { inline-size: 100%; block-size: auto; aspect-ratio: 2 / 1; border-radius: 0 !important; }
.news-reader-card.is-compact .news-title { font-size: 15px; }
.news-reader-meta { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.news-reader-single { justify-self: start; font-size: 12px; color: var(--muted); border: 1px solid var(--sep); border-radius: 6px; padding-inline: 5px; }
.news-reader-new { justify-self: start; color: var(--accent); font-size: 12px; font-weight: 600; }
.news-reader-card.is-read .news-title, .news-reader-article-row.is-read .news-title { color: var(--muted); font-weight: 500; }
.news-reader-more-updates > summary { padding: 14px; min-block-size: 48px; color: var(--accent); font-size: 15px; cursor: pointer; }
.news-reader-end { padding: 12px 0 20px; margin: 0; color: var(--muted); font-size: 15px; text-align: center; }
.news-reader-description { margin: 4px 0 8px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.news-reader-article-row { display: grid; gap: 6px; padding: 14px 16px; inline-size: 100%; border: 0; background: none; color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.news-reader-sheet .sheet-title { font-size: 15px; font-weight: 500; }
.news-reader-sheet .sheet-body { min-inline-size: 0; padding: 14px 16px; scrollbar-color: var(--muted) var(--page); }
.news-reader-sheet .news-sheet-title { font-size: 24px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; margin-block: 0 8px; text-wrap: wrap; }
.news-reader-sheet .news-reader-text { font-size: 17px; line-height: 1.75; max-inline-size: 65ch; overflow-wrap: anywhere; }
.news-reader-original { margin-block: 18px; }
.news-reader-media { max-block-size: min(60svh, 320px); }
.news-reader-more-media, .news-reader-sources, .news-reader-classification { border-block-start: 1px solid var(--sep); }
.news-reader-more-media summary, .news-reader-sources summary, .news-reader-classification summary { cursor: pointer; min-block-size: 48px; padding-block: 14px; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.news-reader-source { border-block-start: 1px solid var(--sep); }
.news-reader-source h4 { font-size: 15px; line-height: 1.5; margin-block: 18px 10px; overflow-wrap: anywhere; }
.news-reader-reactions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.news-reader-reaction { display: inline-flex; align-items: center; justify-content: center; min-inline-size: 44px; min-block-size: 44px; border-radius: 50%; color: var(--muted); }
.news-reader-reaction svg { inline-size: 22px; block-size: 22px; }
.news-reader-reaction.is-dislike svg { transform: rotate(180deg); }
.news-reader-reaction[aria-pressed="true"] { color: var(--accent); background: var(--surface); box-shadow: inset 0 0 0 1px currentColor; }
.news-reader-reaction:hover { color: var(--ink); }
.news-reader-reaction:disabled { opacity: .5; cursor: wait; }
.news-reader-source-link { display: inline-block; min-block-size: 44px; padding-block: 10px; color: var(--accent); font-size: 15px; text-underline-offset: 3px; }
.news-reader-sheet .sheet-actions { flex-wrap: wrap; gap: 8px; }
.news-reader-sheet .sheet-actions .news-reader-next { flex: 1 1 100%; min-block-size: 44px; }
.news-reader-sheet .sheet-actions .news-ask { background: var(--fill-2); color: var(--ink); flex: 1; min-block-size: 44px; font-size: 15px; }
.news-reader-sheet .sheet-actions .text-button { min-block-size: 44px; font-size: 15px; }
.news-reader-classification-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-block: 12px; font-size: 15px; }
.news-reader-classification-row select { max-inline-size: 100%; min-block-size: 44px; background: var(--surface); color: var(--ink); border: 1px solid var(--sep); border-radius: 8px; font: inherit; }
.news-reader-classification-row input { inline-size: 24px; block-size: 24px; accent-color: var(--accent); }
.news-reader-save-status, .news-reader-partial { color: var(--muted); font-size: 15px; }
.news-reader-save-status:empty { display: none; }
.news-reader-list :focus-visible, .news-reader-topics :focus-visible, .news-reader-sheet :focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.news-reader-card:hover .news-title, .news-reader-article-row:hover .news-title { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .news-reader-list > .is-lead { grid-column: auto; grid-row: auto; padding: 0; }
  .news-reader-sheet .sheet-body { padding-inline: 28px; }
  .news-reader-sheet .sheet-actions .news-reader-next { flex: 1; }
}
/* UI-7 Calendar (mockup calendar.html): the week strip, the day with its date beside it, an event's length and place. */
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 14px; padding: 10px 8px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); }
.week-day { display: grid; justify-items: center; gap: 4px; padding: 2px 0; border: 0; background: none; color: var(--label); font: inherit; }
.week-letter { font-size: 12px; color: var(--label-3); font-weight: 600; }
.week-num { inline-size: 34px; block-size: 34px; display: grid; place-items: center; border-radius: 50%; font-size: 17px; font-weight: 700; }
.week-day.is-today .week-num { background: #E5483C; color: #fff; }
.week-day.is-past .week-num { color: var(--label-3); }
.week-dots { display: flex; gap: 3px; min-block-size: 5px; }
.week-dots i { inline-size: 5px; block-size: 5px; border-radius: 50%; background: var(--copper); }
.week-dots i.is-task { background: #3C7D5A; }
#schedule .schedule-day-head { display: flex; align-items: baseline; gap: 8px; }
.schedule-day-sub { font-size: 13px; font-weight: 500; color: var(--label-3); }
#schedule .day-time small { display: block; font-size: 11.5px; font-weight: 500; color: var(--label-3); white-space: nowrap; }
#schedule button.day-row:not(.day-task) { align-items: flex-start; text-align: start; }
#schedule .day-copy { display: grid; gap: 2px; min-inline-size: 0; }
#schedule .day-meta { font-size: 13px; color: var(--label-3); }
#schedule .day-meta.is-late { color: var(--bad); font-weight: 700; }
/* UI-7 Loops: the count beside the title, the person's initials, how long it has been open at the end. */
.loops-count { color: var(--label-3); font-weight: 600; }
[data-view-panel="loops"] .loop-row { display: flex; align-items: center; gap: 12px; }
[data-view-panel="loops"] .loop-row .loop-av { inline-size: 36px; block-size: 36px; flex: none; font-size: 14px; grid-row: auto; }
[data-view-panel="loops"] .loop-row .row-label { flex: 1 1 auto; min-inline-size: 0; }
.loop-age { flex: none; font-size: 12.5px; color: var(--label-3); white-space: nowrap; }
#schedule .day-task { flex-wrap: wrap; row-gap: 2px; }
#schedule .day-task > .day-open { flex: 1 1 0; min-inline-size: 0; text-align: start; }
#schedule .day-task > .day-meta { flex: 1 0 100%; padding-inline-start: 34px; }
[data-view-panel="loops"] .loop-row { flex-wrap: nowrap !important; }
[data-view-panel="loops"] .settings-group-title { font-size: 20px; font-weight: 700; color: var(--label); }
/* UI-7 Lists (mockup calendar.html "רשימות"): the title outside, each list a card with its count, a green bar, round checks. */
[data-view-panel="timeline"] section.section-card[aria-labelledby="checklists-title"] { padding: 0; border: 0; background: none; box-shadow: none; }
#checklists-title { margin: 6px 4px 8px; font-size: 22px; font-weight: 700; }
#checklists-list { display: grid; gap: 12px; }
#checklists-list .checklist-card { padding: 14px 16px; border: 0; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); }
.checklist-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.checklist-head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.checklist-head .hint { margin: 0; font-size: 12.5px; color: var(--label-3); white-space: nowrap; }
.checklist-bar { display: block; block-size: 5px; margin: 10px 0 6px; border-radius: 3px; background: var(--fill-2); overflow: hidden; }
.checklist-bar i { display: block; block-size: 100%; border-radius: 3px; background: var(--good); transition: inline-size .3s; }
#checklists-list .checklist-items { display: grid; }
#checklists-list .checklist-item { display: flex; align-items: center; gap: 12px; min-height: 40px; font-size: 15.5px; }
#checklists-list .checklist-item input { appearance: none; -webkit-appearance: none; flex: none; inline-size: 22px; block-size: 22px; margin: 0; border-radius: 50%; border: 1.8px solid var(--label-3); display: grid; place-items: center; cursor: pointer; }
#checklists-list .checklist-item input:checked { border-color: var(--good); background: var(--good); }
#checklists-list .checklist-item input:checked::after { content: ""; inline-size: 6px; block-size: 11px; margin-top: -2px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
#checklists-list .checklist-item:has(input:checked) span { color: var(--label-3); text-decoration: line-through; }
.checklist-more { justify-self: start; margin-top: 4px; color: var(--accent); font-weight: 700; }
#checklists-list .checklist-item input { inline-size: 22px !important; block-size: 22px !important; min-inline-size: 22px; min-block-size: 22px; padding: 0; box-shadow: none; background: none; }
#checklists-list .checklist-item input:checked { background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px 15px no-repeat; }
#checklists-list .checklist-item input:checked::after { content: none; }
[data-view-panel="timeline"] section.section-card[aria-labelledby="checklists-title"] { display: grid; gap: 0; }
#checklists-feedback:empty { display: none; }
/* UI-7 (Yitzhak 7.10): the boarding pass exactly as travel.html — purple gradient with a dotted glow, the kicker with the
   check-in capsule, the destination large, the airports with hours and the dashed arc, a perforation, a grid of three. */
.flight-pass.fp { padding: 0 !important; border: 0; border-radius: 26px; color: #fff; overflow: hidden; position: relative; isolation: isolate;
  background: linear-gradient(165deg, #6B4E86 0%, #3B2A4D 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 20px 36px -22px rgba(60, 30, 90, .8); display: block; }
.flight-pass.fp::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .14; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .9) 1px, transparent 1.4px); background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(120% 70% at 30% 30%, #000, transparent 70%); mask-image: radial-gradient(120% 70% at 30% 30%, #000, transparent 70%); }
.fp-top { padding: 16px 16px 0; }
.fp-kicker { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: rgba(255, 255, 255, .88); font-size: 13px; font-weight: 600; }
.fp-line { display: inline-flex; align-items: center; gap: 6px; min-inline-size: 0; flex-wrap: wrap; }
.fp-plane-icon { inline-size: 15px; block-size: 15px; fill: currentColor; stroke: none; }
.fp .flight-pass-number { color: rgba(255, 255, 255, .88); font-weight: 600; }
.fp-checkin { flex: none; display: inline-flex; align-items: center; gap: 5px; block-size: 24px; padding: 0 9px; border-radius: 999px; background: rgba(255, 255, 255, .18); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.fp-checkin.is-open { background: #fff; color: #2E7A50; }
.fp-checkin.is-open::before { content: ""; inline-size: 6px; block-size: 6px; border-radius: 50%; background: #2FA866; }
.fp-dest { margin-top: 6px; font-size: 30px; font-weight: 700; letter-spacing: -.5px; line-height: 1.15; }
.fp-leg { display: flex; align-items: flex-end; gap: 10px; direction: ltr; margin-top: 14px; }
.fp-code { font-size: 38px; font-weight: 700; letter-spacing: .5px; line-height: 1; }
.fp-time { margin-top: 4px; font-size: 16px; font-weight: 600; white-space: nowrap; }
.fp-city { font-size: 12px; color: rgba(255, 255, 255, .75); white-space: nowrap; }
.fp-ap.is-to { text-align: right; }
.fp-ap.is-to .fp-city { text-align: right; }
.fp-mid { flex: 1; position: relative; padding-bottom: 20px; text-align: center; min-inline-size: 0; }
.fp-mid small { display: block; font-size: 12px; color: rgba(255, 255, 255, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-arc { display: block; inline-size: 100%; block-size: 42px; overflow: visible; }
.fp-arc-path { fill: none; stroke: rgba(255, 255, 255, .65); stroke-width: 1.6; stroke-dasharray: 4 5; }
.fp-arc-from { fill: #fff; stroke: none; } .fp-arc-to { fill: none; stroke: #fff; stroke-width: 1.6; }
.fp-plane { position: absolute; left: 50%; top: 20px; inline-size: 22px; block-size: 22px; transform: translateX(-50%) rotate(90deg); fill: #fff; stroke: none; }
.fp-perf { position: relative; block-size: 0; margin: 16px 0 0; border-top: 2px dashed rgba(255, 255, 255, .28); }
.fp-perf::before, .fp-perf::after { content: ""; position: absolute; top: -12px; inline-size: 22px; block-size: 22px; border-radius: 50%; background: var(--page); }
.fp-perf::before { right: -11px; } .fp-perf::after { left: -11px; }
.answer-card .fp-perf::before, .answer-card .fp-perf::after { background: var(--fill); }
.fp-fx { display: grid !important; grid-template-columns: repeat(3, 1fr); margin: 14px 16px 16px !important; padding: 0 !important; border: 0 !important; }
.fp-fx > div { padding: 0 10px; border-inline-start: .5px solid rgba(255, 255, 255, .22); min-inline-size: 0; }
.fp-fx > div:nth-child(3n+1) { border-inline-start: 0; padding-inline-start: 0; }
.fp-fx > div:nth-child(n+4) { margin-top: 12px; }
.fp-fx dt { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .74) !important; }
.fp-fx dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: #fff !important; overflow-wrap: anywhere; }
.fp .flight-pass-note { margin: 0 16px 14px; color: #FFD08A; }
.fp .airline-mark-logo { block-size: 18px; padding: 2px 6px; border-radius: 6px; background: #fff; }
.answer-flights.is-row .flight-pass.fp { flex: 0 0 min(330px, 88%); }
.fp-dest small.fp-in { margin-inline-start: 6px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: rgba(255, 255, 255, .75); }
.fp-wx { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 12.5px; }
.chat-message .answer-card.is-flights .answer-card-main { padding: 0; background: none; }
.chat-message .answer-card.is-flights .answer-card-title { margin: 0 2px 8px; }
.chat-message .answer-card .fp-perf::before, .chat-message .answer-card .fp-perf::after, .sheet .fp-perf::before, .sheet .fp-perf::after { background: var(--surface); }
.fp-kicker + .fp-leg { margin-top: 18px; }
/* Yitzhak 7.10: a value in Latin letters ("23K", "LY 001") sits at the right of its cell like the Hebrew ones. */
.fp-fx dd, .k-fx dd, .travel-prefs-grid dd, .flight-pass-detail dd { text-align: right; }
/* UI-2 review (Yitzhak 7.10): the grid as tight as the mockup, every count a badge on its icon (Kerestir's orange), the
   management rows a step lower, the learned count in grey. */
.svc-apps { gap: 14px 4px; padding: 16px 8px 18px; }
.svc-app { font-size: 12px; }
.svc-badge.is-warn { background: #E8A13A; color: #1A1100; }
.svc-list .list-row { padding: 9px 16px; min-height: 56px; }
#more-count-learned:not([hidden]) { color: var(--label-3); font-size: 15px; font-weight: 500; }
/* UI-8 People (mockup life.html): groups by circle; the card's face, four actions, "הבא איתו" on copper, labelled facts. */
.people-groups { display: grid; gap: 14px; }
.people-group-title { margin: 0 4px 6px; font-size: 13px; font-weight: 600; color: var(--label-3); }
.people-group:not(:has(.list-row:not([hidden]))) { display: none; }
.person-card-face { display: grid; justify-items: center; gap: 6px; margin: 4px 0 14px; text-align: center; }
.person-card-av { inline-size: 84px; block-size: 84px; font-size: 30px; grid-row: auto; }
.person-card-name { margin: 2px 0 0; font-size: 24px; font-weight: 700; }
.person-card-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.person-chip { padding: 3px 10px; border-radius: 999px; background: var(--fill-2); color: var(--label-2); font-size: 12.5px; font-weight: 600; }
.person-card-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.person-act { display: grid; justify-items: center; gap: 4px; padding: 12px 4px 10px; border: 0; border-radius: 16px; background: var(--surface); box-shadow: var(--edge); color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.person-act svg { inline-size: 20px; block-size: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.person-next { display: grid; gap: 2px; margin-bottom: 16px; padding: 12px 16px; border-radius: 16px; background: var(--copper-tint); }
.person-next-k { font-size: 12.5px; font-weight: 700; color: var(--accent); }
.person-next strong { font-size: 15.5px; }
.person-card .settings-group:not(.person-timeline) .knowledge-row .row-label { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: baseline; column-gap: 10px; font-size: 13px; color: var(--label-3); font-weight: 500; }
.person-card .settings-group:not(.person-timeline) .knowledge-row .row-detail { font-size: 15px; font-weight: 600; color: var(--label); margin: 0; }
.person-card .source-badge { flex: none; padding: 2px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 700; }
.person-card .source-badge.is-stated { background: var(--good-soft); color: var(--good); }
.person-card .source-badge.is-inferred { background: rgba(233, 165, 0, .14); color: #8A5A00; }
.person-card .settings-group-title { font-size: 18px; font-weight: 700; color: var(--label); }
.person-card-sheet .sheet-header-extra .text-button { color: var(--accent); font-weight: 600; }
.person-timeline .knowledge-row .row-label { display: grid; gap: 2px; font-size: 15px; font-weight: 500; color: var(--label); }
.person-timeline .knowledge-row .row-detail { font-size: 12.5px; color: var(--label-3); }
.person-card .knowledge-row { flex-wrap: wrap; column-gap: 8px; }
.person-card .knowledge-row .text-button { font-size: 12.5px; }
#people-report-open { position: relative; padding-inline-start: 62px; min-height: 64px; }
#people-report-open::before { content: ""; position: absolute; inset-inline-start: 16px; top: 50%; inline-size: 34px; block-size: 34px; margin-top: -17px; border-radius: 10px;
  background: #5E7BC4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 32 32' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3 19c.6-3.2 3-5 6-5s5.4 1.8 6 5'/%3E%3Ccircle cx='17' cy='9' r='2.6'/%3E%3Cpath d='M16 14c2.6 0 4.6 1.5 5 4.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
#people-report-open .row-label { font-weight: 700; }
.trusted-row { display: flex; align-items: center; gap: 12px; }
.trusted-row .person-av { inline-size: 40px; block-size: 40px; font-size: 14px; flex: none; grid-row: auto; }
.trusted-row .row-label { flex: 1 1 auto; font-weight: 700; }
.trusted-row .button-small { border: 0; border-radius: 999px; background: var(--copper-tint); color: var(--accent); box-shadow: none; font-weight: 700; }
#trusted-section .subsection-title { font-size: 13px; font-weight: 600; color: var(--label-3); margin: 14px 4px 6px; }
/* UI-8 Orders (mockup life.html): one card of orders, the store's letter on a colour, the state at the end, the items in
   one line, the seven stages as dots on a line, the carrier, the amount behind verification and the pickup capsule. */
#orders-status:not(:empty)::before { content: ""; display: inline-block; inline-size: 7px; block-size: 7px; margin-inline-end: 6px; border-radius: 50%; background: var(--good); vertical-align: 1px; }
#orders-status { font-size: 13px; color: var(--label-3); }
.orders-list { display: grid; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); overflow: hidden; }
.orders-list:empty { display: none; }
.orders-list .order-card { padding: 14px 16px; border: 0; border-radius: 0; background: none; box-shadow: none; display: grid; gap: 8px; }
.orders-list .order-card + .order-card { border-top: .5px solid var(--sep); }
.order-heading { gap: 10px; }
.order-initial { inline-size: 38px; block-size: 38px; flex: none; border-radius: 11px; background: #B4531A; color: #fff; font-size: 15px; font-weight: 700; }
.order-initial[data-tone="1"] { background: #2F5E91; } .order-initial[data-tone="2"] { background: #8A8A93; } .order-initial[data-tone="3"] { background: #3C7D5A; }
.order-initial[data-tone="4"] { background: #6B4E86; } .order-initial[data-tone="5"] { background: #8A5446; }
.order-copy { flex: 1 1 auto; min-inline-size: 0; }
.order-heading h2 { font-size: 16px; font-weight: 700; }
.order-meta { margin: 0; font-size: 12.5px; color: var(--label-3); }
.order-state-box { flex: none; text-align: end; }
.order-state-box .order-state { margin: 0; font-size: 13.5px; font-weight: 700; }
.order-state.is-ready { color: var(--good); } .order-state.is-stuck { color: #C87400; }
.order-arrival { margin: 0; font-size: 12px; }
.order-items { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--label-2); }
.order-items li + li::before { content: ", "; white-space: pre; }
.order-items li.hint { color: var(--label-3); }
.order-items-missing { margin: 0; font-size: 14px; }
.order-parcel { display: grid; gap: 6px; }
.order-parcel h3 { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--label-3); }
.order-timeline { position: relative; display: grid !important; grid-template-columns: repeat(7, 1fr); gap: 0 !important; margin: 4px 0 0 !important; font-size: 10px !important; color: var(--label-3); }
.order-timeline::before { content: ""; position: absolute; top: 5px; inset-inline: 7%; block-size: 2px; background: var(--fill-2); }
.order-timeline::after { content: ""; position: absolute; top: 5px; inset-inline-start: 7%; inline-size: calc(86% * var(--reached, 0)); block-size: 2px; background: var(--good); }
.order-timeline li { position: relative; z-index: 1; padding: 0 !important; border: 0 !important; background: none !important; text-align: center; color: var(--label-3) !important; }
.order-timeline li::before { content: ""; display: block; inline-size: 12px; block-size: 12px; margin: 0 auto 4px; border-radius: 50%; background: var(--fill-2); box-shadow: 0 0 0 2px var(--surface); }
.order-timeline li.reached::before { background: var(--good); }
.order-timeline li[aria-current="step"] { color: var(--label) !important; font-weight: 700; }
.order-timeline li[aria-current="step"]::before { background: var(--surface); box-shadow: 0 0 0 2px var(--good), 0 0 0 5px var(--good-soft); }
.order-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--label-3); }
.order-foot .order-amount { color: var(--label-3); font-weight: 600; font-size: 13px; }
.order-foot .order-pickup { min-height: 44px; border: 0; border-radius: 999px; background: var(--copper-tint); color: var(--accent); box-shadow: none; font-weight: 700; }
.orders-controls { justify-content: center; }
.orders-controls .text-button { color: var(--accent); font-weight: 600; }
.orders-controls label { color: var(--accent); font-weight: 600; font-size: 14px; }
.orders-list .order-parcel { margin: 0; padding: 0; border: 0; }
.orders-list .order-card > * { margin-block: 0; }
.orders-list .order-card { gap: 10px; }
/* UI-8 Health (mockup life.html): the period segmented, four tiles in two columns, activities as rows, the goals card. */
.fitness-period { display: grid !important; grid-template-columns: repeat(3, 1fr); padding: 2px; border-radius: 9px; background: var(--fill-2); margin-bottom: 14px; }
.fitness-period button { min-height: 32px; border: 0; border-radius: 8px; background: none; color: var(--label-2); font: inherit; font-size: 14px; font-weight: 600; }
.fitness-period button[aria-pressed="true"] { background: var(--surface); color: var(--label); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.fitness-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fitness-tile { display: grid; align-content: start; gap: 2px; min-inline-size: 0; padding: 14px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); }
.fitness-tile-k { margin: 0; font-size: 13px; font-weight: 700; }
.fitness-tile.is-steps .fitness-tile-k { color: #D2455A; } .fitness-tile.is-weight .fitness-tile-k { color: #3E6FA8; }
.fitness-tile.is-heart .fitness-tile-k { color: #D2455A; } .fitness-tile.is-sleep .fitness-tile-k { color: #6B4E86; }
.fitness-tile-v { margin: 2px 0 0; font-size: 28px; font-weight: 700; letter-spacing: -.5px; }
.fitness-tile-v small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--label-3); }
.fitness-tile-m { margin: 0; font-size: 12px; color: var(--label-3); }
.fitness-bars, .fitness-line { display: block; inline-size: 100%; block-size: 64px; margin-top: 10px; }
.fitness-bars rect { fill: #EFA3AE; stroke: none; } .fitness-bars rect.is-reached { fill: #D2455A; }
.fitness-line polyline { fill: none; stroke: #3E6FA8; stroke-width: 2; vector-effect: non-scaling-stroke; }
.fitness-line .fitness-target { stroke: var(--label-3); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.fitness-connect { margin: 10px 2px 0; }
.fitness-activities .fitness-activity { display: flex; align-items: center; gap: 12px; }
.fitness-activity-ic { inline-size: 34px; block-size: 34px; flex: none; border-radius: 10px; background: #3C7D5A; }
.fitness-activity.is-run .fitness-activity-ic { background: #D2455A; } .fitness-activity.is-bike .fitness-activity-ic { background: #3E6FA8; } .fitness-activity.is-other .fitness-activity-ic { background: #8A8A93; }
/* UPD11-11: the newer measures as rows — the name with its day under it, the number at the end. */
.fitness-measures { margin-top: 14px; }
.fitness-measure { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fitness-measure .row-label { display: grid; min-inline-size: 0; font-size: 16px; font-weight: 600; }
.fitness-measure .row-detail { font-size: 12.5px; font-weight: 400; color: var(--label-3); margin-top: 1px; }
.fitness-measure-v { flex: none; font-size: 17px; font-weight: 700; white-space: nowrap; color: var(--label); }
.fitness-days { margin-top: 8px; } .fitness-days summary { color: var(--accent); font-weight: 600; cursor: pointer; padding: 6px 2px; }
.fitness-goals { display: grid; gap: 0; padding: 4px 16px 14px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); }
.fitness-goal { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; margin: 0; }
.fitness-goal + .fitness-goal { border-top: .5px solid var(--sep); }
.fitness-goal .field-label { font-size: 15px; font-weight: 500; color: var(--label); }
.fitness-goal input[type="number"] { inline-size: 110px; text-align: end; border: 0; background: none; color: var(--accent); font-size: 16px; font-weight: 700; box-shadow: none; }
.fitness-goal input[role="switch"] { appearance: none; -webkit-appearance: none; inline-size: 51px; block-size: 31px; border-radius: 16px; background: var(--fill-2); position: relative; cursor: pointer; transition: background .2s; }
.fitness-goal input[role="switch"]::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; inline-size: 27px; block-size: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: inset-inline-start .2s; }
.fitness-goal input[role="switch"]:checked { background: var(--good); }
.fitness-goal input[role="switch"]:checked::after { inset-inline-start: 22px; }
.fitness-goals > .button { margin-top: 10px; }
.fitness-switch { padding: 0; cursor: pointer; }
.fitness-switch > span { font-size: 15px; }
.fitness-goal input[role="switch"] { flex: none; margin: 0; border: 0; padding: 0; min-height: 0; }
.fitness-goal input[role="switch"] { inline-size: 51px !important; block-size: 31px !important; min-inline-size: 51px; max-inline-size: 51px; border-radius: 16px !important; }
/* UI-8 Coupons (mockup more.html): each coupon a ticket — the value on a coloured stub, the store and what it is, marks. */
#benefits-list .subsection-title { margin: 16px 4px 8px; font-size: 13px; font-weight: 700; color: var(--accent); }
.benefits-count { color: var(--label-3); font-weight: 600; }
.benefit-tickets { display: grid; gap: 10px; }
.benefit-ticket { display: flex; align-items: stretch; inline-size: 100%; min-height: 86px; padding: 0; border: 0; border-radius: 18px; background: var(--surface); box-shadow: var(--edge); color: var(--label); font: inherit; text-align: start; overflow: hidden; cursor: pointer; }
.benefit-ticket.is-need { box-shadow: inset 0 0 0 1.5px rgba(196, 98, 40, .45); }
.benefit-stub { position: relative; flex: 0 0 86px; display: grid; place-content: center; justify-items: center; gap: 2px; padding: 8px 4px; color: #fff; background: #C8496A; }
.benefit-ticket[data-tone="1"] .benefit-stub { background: #B4531A; } .benefit-ticket[data-tone="2"] .benefit-stub { background: #3C7D5A; }
.benefit-ticket[data-tone="3"] .benefit-stub { background: #5B4166; } .benefit-ticket[data-tone="4"] .benefit-stub { background: #3F8790; }
.benefit-stub strong { font-size: 22px; font-weight: 800; letter-spacing: -.3px; line-height: 1; }
.benefit-stub span { font-size: 11.5px; opacity: .85; text-align: center; }
.benefit-stub::after { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-end: -1px; border-inline-end: 2px dashed rgba(255, 255, 255, .7); }
.benefit-copy { flex: 1 1 auto; min-inline-size: 0; display: grid; align-content: center; gap: 3px; padding: 10px 14px; }
.benefit-name { font-size: 15.5px; } .benefit-name b { font-weight: 700; }
.benefit-meta { font-size: 12.5px; color: var(--label-3); }
.benefit-marks { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.benefit-mark { padding: 1px 7px; border-radius: 6px; background: var(--fill-2); color: var(--label-2); font-size: 11.5px; font-weight: 700; }
.benefit-mark.is-urgent { background: var(--bad-soft); color: var(--bad); }
.benefit-mark.is-found { background: var(--copper-tint); color: var(--accent); }
.benefit-mark.is-used { background: rgba(233, 165, 0, .16); color: #8A5A00; }
.benefit-mark.is-new { background: var(--good-soft); color: var(--good); }

/* ─── UI-8 Meetings and calls (mockup more.html): teal record hero, pipeline dot, rows with icon squares, review card ─── */
[data-view-panel="recordings"] .native-recordings-panel { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; row-gap: 2px; align-items: center; padding: 16px; border: 0; border-radius: 22px; color: #fff; background: linear-gradient(165deg, #4A8E91, #2E6467); box-shadow: none; }
[data-view-panel="recordings"] .native-recordings-panel > .section-heading:first-child { grid-column: 2; grid-row: 1; margin: 0; display: flex; gap: 8px; align-items: baseline; justify-content: flex-start; }
[data-view-panel="recordings"] #native-recordings-title { margin: 0; font-size: 17px; font-weight: 700; color: #fff; }
[data-view-panel="recordings"] .recording-timer { font-size: 15px; font-weight: 700; direction: ltr; color: #fff; }
[data-view-panel="recordings"] #native-recording-status { grid-column: 2; grid-row: 2; margin: 0; font-size: 13px; line-height: 1.4; color: #fff; opacity: .88; }
[data-view-panel="recordings"] .native-recordings-panel > .native-recording-controls { display: contents; }
[data-view-panel="recordings"] #native-recording-start { grid-column: 1; grid-row: 1 / span 2; inline-size: 56px; block-size: 56px; min-height: 56px; padding: 0; border: 0; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: none; }
[data-view-panel="recordings"] #native-recording-start svg { display: none; }
[data-view-panel="recordings"] #native-recording-start span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-view-panel="recordings"] #native-recording-start::before { content: ""; inline-size: 22px; block-size: 22px; border-radius: 50%; background: #D9473A; }
[data-view-panel="recordings"] #native-recording-pause, [data-view-panel="recordings"] #native-recording-process { grid-column: 1 / -1; margin-top: 10px; min-height: 44px; border-radius: 12px; border: 0; color: #fff; background: rgba(255, 255, 255, .18); }
[data-view-panel="recordings"] #native-recording-process { background: #fff; color: #2E6467; font-weight: 700; }
[data-view-panel="recordings"] .native-recordings-heading { grid-column: 1 / -1; margin: 14px 0 4px; padding-top: 12px; border-top: .5px solid rgba(255, 255, 255, .25); }
[data-view-panel="recordings"] .native-recordings-heading h3 { margin: 0; font-size: 13px; color: #fff; opacity: .88; }
[data-view-panel="recordings"] .native-recordings-heading .button { color: #fff; background: rgba(255, 255, 255, .18); border: 0; }
[data-view-panel="recordings"] #native-recordings-list, [data-view-panel="recordings"] #native-recordings-empty { grid-column: 1 / -1; color: #fff; }
[data-view-panel="recordings"] #native-recordings-empty { margin: 0; font-size: 13px; opacity: .85; }
[data-view-panel="recordings"] .native-recording-item { border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; }

[data-view-panel="recordings"] .recordings-pipeline { display: flex; gap: 8px; align-items: center; margin: 10px 4px 0; font-size: 13px; color: var(--label-3); }
[data-view-panel="recordings"] .recordings-pipeline::before { content: ""; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--orange); flex: none; }
[data-view-panel="recordings"] .native-recordings-panel + .recordings-pipeline, [data-view-panel="recordings"] .recordings-pipeline + .native-recordings-panel { margin-top: 12px; }
[data-view-panel="recordings"] .recordings-title { margin: 22px 4px 10px; font-size: 20px; font-weight: 700; color: var(--label); }
#recordings-list .recording-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; min-height: 64px; }
.recording-icon { inline-size: 36px; block-size: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--d-gray); }
.recording-icon.is-meeting { background: #4A8E91; }
.recording-icon::before { content: ""; inline-size: 18px; block-size: 18px; background: #fff; -webkit-mask: var(--rec-ic) center / contain no-repeat; mask: var(--rec-ic) center / contain no-repeat; }
.recording-icon.is-meeting { --rec-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M19 10v1a7 7 0 0 1-14 0v-1M12 18v4'/%3E%3C/svg%3E"); }
.recording-icon.is-call { --rec-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
#recordings-list .recording-row .row-label { display: grid; gap: 2px; min-width: 0; flex: 1; }
#recordings-list .recording-title { font-size: 15.5px; font-weight: 600; color: var(--label); }
#recordings-list .row-detail { font-size: 13px; color: var(--label-3); }
.recording-mark { justify-self: start; margin-top: 5px; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: rgba(233, 165, 0, .14); color: #8A5A00; }

.recordings-review { margin-top: 12px; padding: 16px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); }
.recordings-review-k { margin: 0; font-size: 12.5px; font-weight: 700; color: #4A8E91; }
.recordings-review-text { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--label); white-space: pre-line; }
.recordings-review-h { margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--label-3); }
.recordings-review-list { margin: 0; padding-inline-start: 18px; font-size: 14.5px; line-height: 1.5; color: var(--label); }
.recordings-review-tasks { margin: 0; padding: 0; list-style: none; }
.recordings-review-tasks li { display: flex; gap: 10px; align-items: center; padding: 7px 0; font-size: 14.5px; color: var(--label); }
.recordings-review-tasks small { margin-inline-start: auto; font-size: 12px; color: var(--label-3); white-space: nowrap; }
.recordings-review-check { position: relative; inline-size: 22px; block-size: 22px; flex: none; border-radius: 6px; background: #4A8E91; }
.recordings-review-check::after { content: ""; position: absolute; left: 7px; top: 3px; inline-size: 6px; block-size: 11px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(40deg); }
.recordings-review-open { margin-top: 12px; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-round); font: inherit; font-size: 15px; font-weight: 600; color: var(--accent); background: var(--copper-tint); }

/* Yellow marks keep their contrast in dark mode */
:root[data-theme="dark"] .recording-mark, :root[data-theme="dark"] .benefit-mark.is-used, :root[data-theme="dark"] .person-card .source-badge.is-inferred { color: #F2C14E; background: rgba(233, 165, 0, .2); }
:root[data-theme="dark"] .trip-status.is-wait { color: #F2C14E; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .recording-mark, :root:not([data-theme="light"]) .benefit-mark.is-used, :root:not([data-theme="light"]) .person-card .source-badge.is-inferred { color: #F2C14E; background: rgba(233, 165, 0, .2); }
  :root:not([data-theme="light"]) .trip-status.is-wait { color: #F2C14E; }
}
[data-view-panel="recordings"] #recordings-feedback:empty { display: none; }

/* ─── UI-8 What Tali knows (mockup more.html): status, proposal card, groups of facts with אמרת / הסקתי ─── */
.learned-status { margin: 0 4px 12px; font-size: 13px; color: var(--label-3); }
.learned-prop { margin: 0 0 14px; padding: 14px 16px; border-radius: var(--r-card); background: var(--surface); border: 1.5px solid rgba(196, 98, 40, .3); }
.learned-prop-k { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.learned-prop-q { margin: 6px 0 10px; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--label); }
.learned-prop-why { margin: -4px 0 10px; font-size: 13px; color: var(--label-3); }
.learned-prop-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.learned-prop-actions .reply-editor { flex-basis: 100%; }
.learned-yes, .learned-plain { min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-round); font: inherit; font-size: 14.5px; font-weight: 600; }
.learned-yes { color: var(--accent); background: var(--copper-tint); }
.learned-plain { padding: 0 10px; color: var(--label-2); background: none; }
.learned-sheet .learned-head { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 6px 6px; font-size: 13px; font-weight: 700; color: var(--label-3); }
.learned-sheet .learned-group .settings-group { margin: 0; }
.learned-count { font-size: 13px; font-weight: 600; color: var(--accent); }
.learned-sheet :is(.learned-row, .knowledge-row) { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 10px; padding: 11px 16px; min-height: 0; cursor: pointer; }
.learned-sheet :is(.learned-row, .knowledge-row) .row-label { flex: 1 1 0; min-width: 0; display: grid; gap: 2px; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--label); }
.learned-sheet :is(.learned-row, .knowledge-row) .row-detail { font-size: 12px; color: var(--label-3); }
.learned-sheet .source-badge { align-self: flex-start; flex: none; margin-top: 2px; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.learned-sheet .source-badge.is-stated { background: var(--green-tint); color: var(--green); }
.learned-sheet .source-badge.is-inferred { background: rgba(233, 165, 0, .14); color: #8A5A00; }
.learned-sheet :is(.learned-row, .knowledge-row) .row-actions { display: none; flex-basis: 100%; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.learned-sheet :is(.learned-row, .knowledge-row):is(.is-open, :focus-within) .row-actions, .learned-sheet.is-editing :is(.learned-row, .knowledge-row) .row-actions { display: flex; }
.learned-sheet .row-actions .text-button, .learned-sheet .row-actions .button { min-height: 40px; font-size: 13.5px; }
.learned-sheet .row-actions .reply-editor { flex-basis: 100%; }
.learned-more { display: block; margin: 6px auto 0; min-height: 40px; }
.learned-forget { display: block; margin: 20px auto 4px; min-height: 44px; padding: 0 16px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--red); }
:root[data-theme="dark"] .learned-sheet .source-badge.is-inferred { color: #F2C14E; background: rgba(233, 165, 0, .2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .learned-sheet .source-badge.is-inferred { color: #F2C14E; background: rgba(233, 165, 0, .2); } }

/* ─── UI-8 Projects (mockup tools.html): square, name with "פעיל", tasks bar, "הבא:" ─── */
#projects-list .project-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; min-height: 0; text-align: start; }
.project-sq { inline-size: 28px; block-size: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; margin-top: 1px; }
.project-sq::before { content: ""; inline-size: 14px; block-size: 12px; background: linear-gradient(#fff 0 0) 0 0 / 3px 2px no-repeat, linear-gradient(#fff 0 0) 0 5px / 3px 2px no-repeat, linear-gradient(#fff 0 0) 0 10px / 3px 2px no-repeat, linear-gradient(#fff 0 0) 5px 0 / 9px 2px no-repeat, linear-gradient(#fff 0 0) 5px 5px / 9px 2px no-repeat, linear-gradient(#fff 0 0) 5px 10px / 9px 2px no-repeat; }
#projects-list .project-row .row-label { flex: 1; min-width: 0; display: grid; gap: 4px; }
.project-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.project-name { font-size: 17px; font-weight: 700; color: var(--label); }
.project-pill { flex: none; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; color: var(--accent); background: var(--copper-tint); }
#projects-list .project-row .row-detail { font-size: 13px; color: var(--label-3); }
.project-bar { display: block; block-size: 5px; margin: 6px 0 2px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.project-bar::before { content: ""; display: block; block-size: 100%; inline-size: var(--done, 0%); border-radius: 3px; background: #D9A23A; }
.project-next { font-size: 12.5px; color: var(--label-3); }

/* ─── UI-8 Automations (mockup tools.html): name and switch, "when → what" chips, the runs in one line ─── */
.r9-rules .r9-rule { flex-wrap: nowrap; align-items: flex-start; gap: 12px; padding: 14px 16px; }
.r9-rules .r9-rule .row-label { flex: 1 1 0; display: grid; gap: 6px; justify-items: start; }
.r9-rules .r9-rule.is-paused .row-label { opacity: 1; }
.r9-rule-name { font-size: 16px; font-weight: 700; color: var(--label); }
.r9-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
.r9-when, .r9-what { padding: 4px 9px; border-radius: 8px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.r9-when { color: #A34E1B; background: var(--copper-tint); }
.r9-what { color: var(--green); background: var(--green-tint); }
.r9-arrow { inline-size: 26px; block-size: 26px; border-radius: 8px; background: var(--fill); display: grid; place-items: center; }
.r9-arrow::before { content: ""; inline-size: 12px; block-size: 12px; background: var(--label-2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.r9-rules .r9-runs { font-size: 12.5px; color: var(--label-3); }
.r9-rules .r9-failure { font-size: 12.5px; color: var(--bad); }
.r9-rules .r9-rule .row-label > .text-button { min-height: 32px; padding: 0; font-size: 13px; font-weight: 600; }
.r9-rules .r9-row-actions { flex: none; }
.r9-switch { position: relative; inline-size: 51px; block-size: 31px; flex: none; padding: 0; border: 0; border-radius: 16px; background: var(--fill-2); cursor: pointer; transition: background .2s; }
.r9-switch::after { content: ""; position: absolute; top: 2px; inset-inline-end: 2px; inline-size: 27px; block-size: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: inset-inline-end .2s; }
.r9-switch.is-on { background: #3E7A57; }
.r9-switch.is-on::after { inset-inline-end: 22px; }
.r9-switch::before { content: ""; position: absolute; inset: -7px -2px; }
:root[data-theme="dark"] .r9-when { color: #F0A877; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .r9-when { color: #F0A877; } }

/* ─── UI-8 Research (mockup tools.html): one rounded ask field, the latest research open as a card, "קודמים" ─── */
.r9-ask { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 6px; padding-inline-start: 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--edge); }
.r9-ask .r9-question { flex: 1; min-width: 0; min-height: 0 !important; height: auto; padding: 8px 0 !important; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; font: inherit; font-size: 16px; line-height: 1.4; resize: none; color: var(--label); }
.r9-ask .r9-question:focus { outline: none; }
.r9-ask:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.r9-ask-go { flex: none; align-self: flex-end; min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--r-round); font: inherit; font-size: 15px; font-weight: 600; color: var(--accent); background: var(--copper-tint); }
.r9-head { margin: 24px 4px 10px; font-size: 20px; font-weight: 700; color: var(--label); }
.r9-latest { display: grid; gap: 6px; margin-top: 4px; padding: 16px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); cursor: pointer; }
.r9-latest-k { font-size: 12.5px; font-weight: 700; color: #7A5A9A; }
.r9-latest-q { font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--label); }
.r9-latest-list { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: finding; }
.r9-latest-list li { position: relative; display: grid; gap: 4px; padding: 12px 0; padding-inline-start: 34px; border-top: .5px solid var(--sep); counter-increment: finding; }
.r9-latest-list li::before { content: counter(finding); position: absolute; inset-inline-start: 0; top: 13px; inline-size: 22px; block-size: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--copper-tint); }
.r9-latest-text { font-size: 15px; line-height: 1.45; color: var(--label); }
.r9-latest-src { font-size: 12px; color: var(--label-3); }
.r9-latest-more { justify-self: start; min-height: 36px; padding: 0; font-size: 14px; font-weight: 600; }
:root[data-theme="dark"] .r9-latest-k { color: #B79AD6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .r9-latest-k { color: #B79AD6; } }


/* ─── UI-9 Settings (mockup admin.html): the stop card first, a mark on "חיבורים", security rows without squares ─── */
.stop-card { display: flex; align-items: center; gap: 12px; inline-size: 100%; margin: 0 0 18px; padding: 14px 16px; border: 0; border-radius: var(--r-card); background: rgba(217, 71, 58, .1); color: var(--label); font: inherit; text-align: start; cursor: pointer; }
.stop-card-ic { inline-size: 40px; block-size: 40px; flex: none; border-radius: 11px; background: #D9473A; display: grid; place-items: center; }
.stop-card-ic::before { content: ""; inline-size: 14px; block-size: 14px; border-radius: 3px; background: #fff; }
.stop-card .row-label { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 16.5px; font-weight: 700; color: #C0392B; }
.stop-card .row-detail { font-size: 13px; font-weight: 400; color: var(--label-2); }
.stop-card .row-chevron { inline-size: 18px; block-size: 18px; flex: none; color: var(--label-3); }
:root[data-theme="dark"] .stop-card .row-label { color: #FF7B6E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stop-card .row-label { color: #FF7B6E; } }
.settings-mark { flex: none; display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; font-size: 13px; font-weight: 700; }
.settings-mark::before { content: ""; inline-size: 7px; block-size: 7px; border-radius: 50%; background: currentColor; }
.settings-mark.is-warn { color: #C26A00; }
:root[data-theme="dark"] .settings-mark.is-warn { color: #F2A54A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .settings-mark.is-warn { color: #F2A54A; } }
[data-view-panel="settings"] .settings-security .list-row { padding-inline-start: 16px !important; }
[data-view-panel="settings"] .settings-security .list-row::after { display: none !important; }
#logout-button { justify-content: center; padding-inline-start: 16px !important; color: var(--red); font-weight: 600; }
#logout-button::after { display: none !important; }
[data-view-panel="settings"] .list-surface:has(> #logout-button) { background: transparent; box-shadow: none; }
#update-check { min-height: 36px; padding: 0 4px; border: 0; background: none; color: var(--accent); font-weight: 600; box-shadow: none; }

/* ─── UI-9 Connections: the ring card, "חבר מחדש" as a tinted pill, groups as small headings ─── */
.conn-hero { display: flex; align-items: center; gap: 16px; margin: 0 0 14px; padding: 16px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); }
.conn-ring { inline-size: 60px; block-size: 60px; flex: none; transform: rotate(-90deg); }
.conn-ring circle { fill: none; stroke-width: 6; stroke-linecap: butt; }
.conn-ring-bg { stroke: var(--fill); }
.conn-ring-fg { stroke: #3E7A57; }
.conn-hero-copy p { margin: 0; }
.conn-count { font-size: 19px; font-weight: 700; color: var(--label); }
.conn-need { margin-top: 2px !important; font-size: 13.5px; font-weight: 600; color: #3E7A57; }
.conn-need.is-need { color: #C26A00; }
:root[data-theme="dark"] .conn-need.is-need { color: #F2A54A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .conn-need.is-need { color: #F2A54A; } }
[data-view-panel="connections"] .connection-group .section-label { margin: 18px 6px 6px; font-size: 13px; font-weight: 600; color: var(--label-3); }
[data-view-panel="connections"] .connection-row.is-need { box-shadow: none; }
.connection-reconnect { flex: none; min-height: 36px; padding: 0 14px; border: 0; border-radius: var(--r-round); background: var(--copper-tint); color: var(--accent); font-weight: 700; box-shadow: none; }
[data-view-panel="connections"] .status-line { font-size: 13px; font-weight: 600; }
[data-view-panel="connections"] .status-connected { color: #3E7A57; }
[data-view-panel="connections"] .status-reauth, [data-view-panel="connections"] .status-broken { color: #C26A00; }
[data-view-panel="connections"] .add-service { inline-size: 100%; min-height: 52px; margin-top: 18px; border: 0; border-radius: var(--r-round); background: var(--copper-tint); color: var(--accent); font-weight: 700; }

/* ─── UI-9 Sign-in: higher on the page, a line under the greeting, the field with its name inside ─── */
.login-sub { margin: 4px 0 0; font-size: 15px; color: var(--label-2); text-align: center; }
.login-shell { place-items: start center; padding-top: calc(64px + env(safe-area-inset-top)); }
.login-card form { margin-top: 28px; }
#login-form input#password, #login-form #login-recovery { min-height: 52px; padding: 0 16px; border: 1px solid var(--sep); border-radius: 16px; background: var(--surface); font-size: 16px; box-shadow: none; }
#login-form .code-cells span { block-size: 52px; border-radius: 12px; border-color: var(--sep); background: var(--surface); }
#login-biometric .text-button { color: var(--label-3); font-size: 13.5px; }
#login-error:empty { margin: 0; min-height: 0; }

/* ─── UI-9 Approvals (mockup admin.html): one card per approval — who, the sentence, the table, the actions ─── */
[data-view-panel="approvals"] .approvals-surface { padding: 0; background: transparent; box-shadow: none; border: 0; }
[data-view-panel="approvals"] #approval-list { display: grid; gap: 12px; }
[data-view-panel="approvals"] .approval-card { padding: 16px; border: 0; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); }
[data-view-panel="approvals"] .approval-card .need-ico { display: none; }
[data-view-panel="approvals"] .need-from .need-tag { background: var(--copper-tint); color: var(--accent); }
[data-view-panel="approvals"] .approval-card .need-from { margin-bottom: 10px; }
[data-view-panel="approvals"] .approval-card .need-av { inline-size: 36px; block-size: 36px; }
[data-view-panel="approvals"] .approval-card .need-text, [data-view-panel="approvals"] .approval-card .need-line { padding: 12px 14px; border-radius: 12px; background: var(--fill); font-size: 15px; line-height: 1.45; }
[data-view-panel="approvals"] .need-ctx { margin-top: 12px; padding-top: 12px; row-gap: 6px; font-size: 13.5px; }
[data-view-panel="approvals"] .need-ctx dd { font-weight: 600; }
[data-view-panel="approvals"] .approval-card .card-actions { display: flex; gap: 8px; margin-top: 14px; }
[data-view-panel="approvals"] .approval-card .card-actions .button-primary, [data-view-panel="approvals"] .approval-card .card-actions .button-approve { flex: 1; min-height: 48px; border-radius: 14px; }
[data-view-panel="approvals"] .approval-card .card-actions .button-secondary { min-height: 48px; border-radius: 14px; }

/* ─── UI-9 What Tali did (mockup admin.html): a segmented filter, a square per row (done, waiting, failed) ─── */
#activity-filters { display: flex; gap: 2px; padding: 2px; margin: 0 0 6px; border-radius: 10px; background: var(--fill); flex-wrap: nowrap; }
#activity-filters .chip { flex: 1; min-height: 34px; padding: 0 6px; border: 0; border-radius: 8px; background: transparent; color: var(--label-2); font-size: 14px; font-weight: 600; box-shadow: none; }
#activity-filters .chip[aria-pressed="true"] { background: var(--surface); color: var(--label); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
#activity-feed .section-label { margin: 18px 6px 6px; font-size: 13px; font-weight: 600; color: var(--label-3); }
#activity-feed .activity-row { position: relative; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 16px; padding-inline-start: 56px; }
#activity-feed .activity-row::before { content: ""; position: absolute; inset-inline-start: 16px; top: 50%; inline-size: 28px; block-size: 28px; margin-top: -14px; border-radius: 8px; background: #3E7A57 var(--act-ic) center / 16px no-repeat; }
#activity-feed .activity-row > span:first-child { flex: 1; min-width: 0; font-size: 15px; color: var(--label); }
#activity-feed .activity-row .day-meta { flex: none; font-size: 12.5px; color: var(--label-3); }
#activity-feed .activity-row .text-button { flex: none; min-height: 36px; font-size: 13.5px; font-weight: 600; }
#activity-feed .activity-row { --act-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
#activity-feed .activity-row.is-wait::before { background-color: #E8851A; }
#activity-feed .activity-row.is-wait { --act-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E"); }
#activity-feed .activity-row.is-bad::before { background-color: #D9473A; }
#activity-feed .activity-row.is-bad { --act-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E"); }
[data-view-panel="settings"] .settings-group-title, [data-view-panel="security"] .settings-group-title { margin: 18px 6px 6px; font-size: 13px; font-weight: 500; color: var(--label-3); }
[data-view-panel="connections"] .connection-row.is-need .connection-open { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center; }
[data-view-panel="connections"] .connection-row.is-need .connection-open > :first-child { grid-row: 1 / span 2; }
[data-view-panel="connections"] .connection-row.is-need .status-line { grid-column: 2; justify-self: start; font-size: 12.5px; }
[data-view-panel="connections"] .connection-row.is-need .connection-open > :first-child { grid-row: 1 / span 3; }
[data-view-panel="connections"] .connection-row.is-need .connection-identity { text-align: start; }
[data-view-panel="money"] .fin-ring-legend .fin-ring-value { display: block; font-size: 12px; font-weight: 500; color: var(--label-3); direction: rtl; }
[data-view-panel="money"] .fin-ring-legend li { flex-wrap: wrap; } [data-view-panel="money"] .fin-ring-legend .fin-ring-value { flex-basis: 100%; padding-inline-start: 16px; }

/* ─── P5-QA: text contrast 4.5:1 (QUIET_DESIGN) — accent colours as text get a darker shade in light, a lighter one in dark ─── */
:root:not([data-theme="dark"]) .hello-facts .hello-special { color: #AA5400 !important; }
.ker-fold .ker-title, .ker-fold .fold-label, .ker-kitchen-chip { color: #AA5400; }
.ker-fold .ker-meal-tile.is-done { opacity: .8; }
.order-state.is-stuck { color: #9C5A00; }
[data-view-panel="connections"] .status-reauth, [data-view-panel="connections"] .status-broken, .settings-mark.is-warn, .conn-need.is-need { color: #A35900; }
[data-view-panel="connections"] .status-connected { color: #2F6A4A; }
.recordings-review-k { color: #3D7477; }
.fitness-tile.is-steps .fitness-tile-k, .fitness-tile.is-heart .fitness-tile-k { color: #BD3E51; }
.fitness-tile.is-weight .fitness-tile-k { color: #355F91; }
.svc-badge, .svc-cnt.is-need { background: #C8302A; }
.week-day.is-today .week-num { background: #C8302A; }
.stop-card .row-label { color: #A93226; }
.benefit-stub span { opacity: 1; font-weight: 600; }
.mini-people .section-label { color: #A84560; }
.mini-bill .section-label { color: #3D7477; }
:root[data-theme="dark"] .ker-fold .ker-title, :root[data-theme="dark"] .ker-fold .fold-label, :root[data-theme="dark"] .ker-kitchen-chip { color: var(--orange); }
:root[data-theme="dark"] [data-view-panel="connections"] .status-connected { color: #7FC29B; }
:root[data-theme="dark"] [data-view-panel="connections"] .status-reauth, :root[data-theme="dark"] [data-view-panel="connections"] .status-broken, :root[data-theme="dark"] .settings-mark.is-warn, :root[data-theme="dark"] .conn-need.is-need { color: #F5B566; }
:root[data-theme="dark"] .recordings-review-k { color: #7FC4C7; }
:root[data-theme="dark"] .fitness-tile.is-steps .fitness-tile-k, :root[data-theme="dark"] .fitness-tile.is-heart .fitness-tile-k { color: #E68494; }
:root[data-theme="dark"] .fitness-tile.is-weight .fitness-tile-k { color: #84A6CF; }
:root[data-theme="dark"] .fitness-tile.is-sleep .fitness-tile-k { color: #B3A2C6; }
:root[data-theme="dark"] .mini-people .section-label { color: #E08AA0; }
:root[data-theme="dark"] .mini-bill .section-label { color: #7FC4C7; }
:root[data-theme="dark"] .order-state.is-stuck { color: #F5B566; }
:root[data-theme="dark"] .stop-card .row-label { color: #FF8A7E; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ker-fold .ker-title, :root:not([data-theme="light"]) .ker-fold .fold-label, :root:not([data-theme="light"]) .ker-kitchen-chip { color: var(--orange); }
  :root:not([data-theme="light"]) [data-view-panel="connections"] .status-connected { color: #7FC29B; }
  :root:not([data-theme="light"]) [data-view-panel="connections"] .status-reauth, :root:not([data-theme="light"]) [data-view-panel="connections"] .status-broken, :root:not([data-theme="light"]) .settings-mark.is-warn, :root:not([data-theme="light"]) .conn-need.is-need { color: #F5B566; }
  :root:not([data-theme="light"]) .recordings-review-k { color: #7FC4C7; }
  :root:not([data-theme="light"]) .fitness-tile.is-steps .fitness-tile-k, :root:not([data-theme="light"]) .fitness-tile.is-heart .fitness-tile-k { color: #E68494; }
  :root:not([data-theme="light"]) .fitness-tile.is-weight .fitness-tile-k { color: #84A6CF; }
  :root:not([data-theme="light"]) .fitness-tile.is-sleep .fitness-tile-k { color: #B3A2C6; }
  :root:not([data-theme="light"]) .mini-people .section-label { color: #E08AA0; }
  :root:not([data-theme="light"]) .mini-bill .section-label { color: #7FC4C7; }
  :root:not([data-theme="light"]) .order-state.is-stuck { color: #F5B566; }
  :root:not([data-theme="light"]) .stop-card .row-label { color: #FF8A7E; }
}
:root:not([data-theme="dark"]) .cal-dn, :root:not([data-theme="dark"]) .ker-exc-title, :root:not([data-theme="dark"]) .today-card .fold-label { --red: #C8302A; }
.ker-fold .ker-meal-tile.is-done { opacity: 1; }
.ker-fold .ker-meal-tile.is-done .ker-ml, .ker-fold .ker-meal-tile.is-done .ker-ms { color: var(--label-3); }
:root:not([data-theme="dark"]) [data-view-panel="money"] .button-secondary, :root:not([data-theme="dark"]) [data-view-panel="connections"] .add-service { color: #8F3F10; }
.benefit-stub { background: #B23F5E; }
:root:not([data-theme="dark"]) .benefit-mark.is-new { color: #2F6A4A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cal-dn, :root:not([data-theme="light"]) .ker-exc-title, :root:not([data-theme="light"]) .today-card .fold-label { --red: #FF5A50; } }
:root:not([data-theme="dark"]) .cal-fold { --red: #C8302A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cal-fold { --red: #FF5A50; } }
.benefit-ticket[data-tone="1"] .benefit-stub { background: #9E4815; }
.benefit-ticket[data-tone="4"] .benefit-stub { background: #33707A; }

/* ─── P5-QA: every target at least 24×24 (WCAG 2.5.8); the day's titles and the short text buttons were 17–23 px ─── */
.today .day-open { min-height: 24px; }
.text-button { min-width: 24px; }
.ker-fold > .fold-summary:focus-visible { position: static; width: auto; height: auto; clip: auto; overflow: visible; padding: 8px 4px; }
/* P5-QA: with large text the account row wraps instead of squeezing the name to 22 px. */
[data-view-panel="money"] .finance-connection { flex-wrap: wrap; }
[data-view-panel="money"] .finance-connection .finance-row-open { flex: 1 1 120px; min-width: 0; }

/* Yitzhak 8.10: the Today money card's action ("לאמת ולהציג" / "לחבר חשבון"), on its green card. */
.fin-today .fin-today-action { display: block; inline-size: 100%; min-height: 44px; margin-top: 12px; border: 0; border-radius: var(--r-round); background: rgba(255, 255, 255, .22); color: #fff; font: inherit; font-size: 15px; font-weight: 700; }

/* Yitzhak 8.10: weather and steps as quarter-size widgets (half the old height); the weight sits with the steps.
   The next days stay one tap away (the weather sheet), and in the widget's spoken label. */
.today .today-grid .wx, .today .today-grid .steps-w { min-height: 0; padding: 12px 14px; }
.today .wx .wx-now { font-size: 34px; margin-top: 2px; }
.today .wx .wx-days { display: none; }
.today .wx .wx-cond { margin-top: 2px; font-size: 13px; }
.today .wx .wx-range { font-size: 12.5px; }
.steps-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.today .steps-w .steps-ring { width: 46px; height: 46px; margin: 0; flex: none; }
.steps-copy { display: grid; gap: 1px; min-width: 0; text-align: start; }
.steps-count { font-size: 20px; font-weight: 700; line-height: 1.1; color: var(--label); }
.steps-of { font-size: 12px; color: var(--label-3); }
.today .steps-w .steps-sub { margin-top: 0; font-size: 12px; }
.steps-weight { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-top: 8px; padding-top: 7px; border-top: .5px solid var(--sep); font-size: 12px; color: var(--label-3); }
.steps-weight b { font-size: 14px; font-weight: 700; color: var(--label); }
.steps-weight { flex-wrap: nowrap; white-space: nowrap; }
.steps-weight-change { font-size: 11.5px; }
.today .today-grid .wx { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 10px; align-content: start; }
.today .wx .wx-head { grid-column: 1 / -1; }
.today .wx .wx-now { grid-column: 1; grid-row: 2 / span 2; align-self: center; }
.today .wx .wx-cond { grid-column: 2; grid-row: 2; align-self: end; }
.today .wx .wx-range { grid-column: 2; grid-row: 3; align-self: start; }
.today .wx .weather-away { grid-column: 1 / -1; font-size: 12px; margin-top: 4px; }

/* Yitzhak 8.10 (b): the empty bottom of the weather widget holds the next three days, small — letter, sky, high. */
.today .today-grid .wx { grid-template-rows: auto auto auto auto; }
.today .wx .wx-days { display: flex; grid-column: 1 / -1; align-self: start; gap: 4px; margin-top: 10px; padding-top: 6px; font-size: 11px; line-height: 1.2; }
.today .wx .wx-day { display: grid; justify-items: center; gap: 1px; flex: 1 1 0; color: rgba(255, 255, 255, .88); }
.today .wx .wx-day b { font-size: 12px; font-weight: 600; color: #fff; }
.today .wx .wx-day-icon { width: 14px; height: 14px; color: #fff; }
.today .wx .wx-day-icon svg { width: 100%; height: 100%; }
/* the city, the companion's place, the sky icon at the far end */
.today .wx .wx-head .pet-slot { margin-inline: auto; }

/* Yitzhak 8.10 (b): steps and weight with more colour — a green wash from the top, the count in green, the ring in two
   greens, the weight on its own warm strip with a small scale and the 30-day change as a chip. */
.today .today-grid .steps-w { background: linear-gradient(165deg, rgba(60, 125, 90, .16) 0%, rgba(60, 125, 90, .05) 58%, var(--surface) 100%); }
.today .steps-w .steps-head { display: flex; align-items: center; gap: 6px; color: var(--green); }
.today .steps-w .steps-head .steps-glyph { width: 15px; height: 15px; flex: none; }
.today .steps-w .steps-count { color: var(--green); font-size: 22px; }
.today .steps-w .steps-ring .steps-bg { stroke: rgba(60, 125, 90, .18); }
.today .steps-w .steps-ring .steps-fg { stroke: url(#steps-grad); }
.today .steps-w .steps-weight { margin-top: 8px; padding: 6px 8px; border-top: 0; border-radius: 12px; background: var(--orange-tint); align-items: center; color: var(--label-2, var(--label-3)); }
.today .steps-w .steps-weight .steps-scale { width: 14px; height: 14px; flex: none; color: var(--accent); }
.today .steps-w .steps-weight b { color: var(--label); }
.today .steps-w .steps-weight-change { margin-inline-start: auto; padding: 1px 7px; border-radius: 999px; background: var(--surface); color: var(--label); font-weight: 600; }
:root[data-theme="dark"] .today .today-grid .steps-w { background: linear-gradient(165deg, rgba(50, 213, 131, .18) 0%, rgba(50, 213, 131, .05) 58%, var(--surface) 100%); }
:root[data-theme="dark"] .today .steps-w .steps-ring .steps-bg { stroke: rgba(50, 213, 131, .2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .today .today-grid .steps-w { background: linear-gradient(165deg, rgba(50, 213, 131, .18) 0%, rgba(50, 213, 131, .05) 58%, var(--surface) 100%); }
  :root:not([data-theme="light"]) .today .steps-w .steps-ring .steps-bg { stroke: rgba(50, 213, 131, .2); }
}

/* Yitzhak 8.10: the kitchen notes under the meals in one row that scrolls sideways, however many or long they are. */
.ker-kitchen { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
.ker-kitchen::-webkit-scrollbar { display: none; }
.ker-kitchen-chip { flex: none; white-space: nowrap; }

/* ─── Yitzhak 8.10 (item 6): Kerestir's day and booking sheets in the new style ─── */
.kerestir-sheet .ker-fresh { font-size: 12.5px; color: var(--label-3); margin: 0 4px 12px; }
.ker-glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ker-glance-tile { display: grid; gap: 1px; align-content: start; min-height: 0; padding: 12px; border: 0; border-radius: 16px; background: var(--surface); box-shadow: var(--edge); color: var(--label); font: inherit; text-align: start; cursor: pointer; }
.ker-glance-tile .ker-mv { font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--label); }
.ker-glance-tile .ker-ml { font-size: 12.5px; color: var(--label-3); }
.ker-glance-tile .ker-ms { font-size: 11.5px; color: var(--label-3); }
.kerestir-sheet .ker-h4 { margin: 20px 6px 6px; font-size: 13px; font-weight: 600; color: var(--label-3); }
.ker-sec { padding: 4px 16px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); }
.ker-sec > .ker-flat { padding: 12px 0 8px; font-size: 14.5px; color: var(--label); }
.ker-sec > .ker-meter { margin: 0 0 14px; }
.ker-sec > .ker-week-wrap { margin: 12px 0 8px; }
.ker-sec .ker-g-rows > li { padding: 12px 0; border-top: .5px solid var(--sep); }
.ker-sec .ker-g-rows > li:first-child { border-top: 0; }
.ker-sec .ker-g-top { font-size: 15px; }
.ker-sec .ker-g-top b { font-weight: 600; }
.ker-sec .ker-g-top span { padding: 1px 8px; border-radius: 6px; background: var(--fill); color: var(--label-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ker-sec .ker-g-sub { font-size: 13px; color: var(--label-3); }
.ker-sec .ker-tag { background: var(--copper-tint); color: var(--accent); font-weight: 700; border-radius: 6px; }
.ker-day-meals { margin: 10px 0; gap: 8px; }
.ker-day-meals .ker-meal-tile { padding: 10px 12px; border: 0; border-radius: 14px; background: var(--fill); cursor: default; }
.ker-day-meals .ker-meal-tile:first-child { padding-inline-start: 12px; }
.ker-day-meals .ker-mv { font-size: 26px; font-weight: 700; }
.ker-unusual-rows .ker-g-open { display: flex; align-items: center; gap: 10px; }
.ker-unusual-rows .ker-g-open::before { content: ""; inline-size: 8px; block-size: 8px; flex: none; border-radius: 50%; background: #E8851A; }
.ker-unusual-rows .ker-unusual-text { flex: 1; font-size: 14.5px; }
.ker-unusual-rows .ker-chev { color: var(--label-3); }
.kerestir-sheet .ker-check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.kerestir-sheet .ker-check::before { content: "לבדוק"; flex: none; padding: 2px 7px; border-radius: 6px; background: rgba(233, 165, 0, .14); color: #8A5A00; font-size: 11.5px; font-weight: 700; }
:root[data-theme="dark"] .kerestir-sheet .ker-check::before { color: #F2C14E; background: rgba(233, 165, 0, .2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kerestir-sheet .ker-check::before { color: #F2C14E; background: rgba(233, 165, 0, .2); } }

.kerestir-sheet .ker-b { width: 62%; max-width: 22px; border-radius: 6px 6px 2px 2px; background: var(--copper-tint); }
.kerestir-sheet .ker-week button[aria-pressed="true"] .ker-b { background: var(--accent); }
.kerestir-sheet .ker-tip { font-size: 13px; color: var(--label-2); }
.kerestir-sheet .ker-status { display: inline-block; margin: 0 0 12px; padding: 4px 10px; border-radius: 8px; background: var(--green-tint); color: var(--green); font-size: 13.5px; font-weight: 700; }
.kerestir-sheet .ker-sec .ker-kv { padding: 12px 0; row-gap: 8px; font-size: 14.5px; }
.kerestir-sheet .ker-btns { margin-top: 14px; }
.kerestir-sheet .ker-btns .button { flex: 1; min-height: 46px; border-radius: 14px; }
.kerestir-sheet .ker-calm, .kerestir-sheet .ker-src { margin: 10px 4px 0; font-size: 12.5px; color: var(--label-3); }
.kerestir-sheet .ker-week { height: 140px; } .kerestir-sheet .ker-tip { margin-top: 10px; }

/* ─── Yitzhak 8.10 (item 7): inner sheets that still had the old look ─── */
/* Links inside sheets: the accent, no underline (documents, results). */
dialog.sheet .sheet-body a:not(.button) { color: var(--accent); text-decoration: none; font-weight: 600; }
/* "מה טלי רשאית לעשות": each block a card, its title small and grey, the stop list as rows. */
#permissions-card .whatsapp-limits { display: grid; gap: 4px; margin: 0 0 12px; padding: 14px 16px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); border: 0; }
#permissions-card .whatsapp-limits > strong { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--label-3); }
#permissions-card .whatsapp-limits > strong:first-child { margin-top: 0; }
#permissions-card .whatsapp-limits .connection-meta { font-size: 14px; color: var(--label); line-height: 1.45; }
#permissions-card .stop-list { margin: 2px 0 4px; padding: 0; list-style: none; }
#permissions-card .stop-list li { padding: 7px 0; border-top: .5px solid var(--sep); }
#permissions-card .stop-list li:first-child { border-top: 0; }
#permissions-card .whatsapp-limits .text-button { justify-self: start; min-height: 40px; padding: 0; font-weight: 600; }
#permissions-card > .hint { margin: 0 4px 12px; font-size: 13px; color: var(--label-3); }
/* A connection's sheet: its purpose and "לסנכרן אנשי קשר" in a card, the button as a quiet pill. */
.connection-sheet .sheet-extras { display: grid; gap: 10px; margin-top: 12px; padding: 14px 16px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); }
.connection-sheet .sheet-extras .button-secondary { justify-self: start; min-height: 40px; padding: 0 16px; border-radius: var(--r-round); background: var(--copper-tint); color: var(--accent); font-weight: 700; }
.connection-sheet .can-do .brief-label, dialog.sheet .brief-label { margin: 16px 6px 6px; font-size: 13px; font-weight: 600; color: var(--label-3); }
/* "מה טלי מטפלת בו": the actions under the text, not squeezing it. */
dialog.sheet .sheet-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 16px; }
dialog.sheet .sheet-row > .sheet-row-copy { flex: 1 1 100%; min-width: 0; }
dialog.sheet .sheet-row > .sheet-row-copy p { margin: 0; font-size: 15px; }
dialog.sheet .sheet-row > .button-small { min-height: 36px; border-radius: var(--r-round); }
/* Section titles inside sheets: small and grey, as on the screens. */
dialog.sheet .sheet-section, dialog.sheet .settings-group-title { margin: 18px 6px 6px; font-size: 13px; font-weight: 600; color: var(--label-3); }

/* ─── Yitzhak 8.10 (item 8): credit cards — the card's picture with square corners, and the lines under the name across
   the whole row (also under the amount), instead of a narrow column beside it. ─── */
[data-view-panel="money"] .fin-card-art { border-radius: 0; }
[data-view-panel="money"] .fin-card-art img { border-radius: 0; }
[data-view-panel="money"] .fin-row.is-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "art name end" "meta meta meta"; column-gap: 12px; row-gap: 6px; align-items: center; }
[data-view-panel="money"] .fin-row.is-card > .fin-card-art { grid-area: art; }
[data-view-panel="money"] .fin-row.is-card > .fin-row-main { display: contents; }
[data-view-panel="money"] .fin-row.is-card .fin-row-name { grid-area: name; min-width: 0; }
[data-view-panel="money"] .fin-row.is-card .fin-row-main > .fin-meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
[data-view-panel="money"] .fin-row.is-card > .fin-row-end { grid-area: end; }
[data-view-panel="money"] .fin-row.is-card .fin-limit { flex-basis: 100%; }

/* Yitzhak 8.10 (item 9): in "תנועות" the search field sits a little lower, apart from the title. */
[data-view-panel="money"] .fin-transactions-card .fin-txn-tools > .search-field { margin-top: 14px; margin-bottom: 6px; }

/* Yitzhak 8.10 (item 10): הגדרות / אבטחה / מתקדם a touch smaller, so the three fit one line on a narrow phone. */
.svc-chips { flex-wrap: nowrap; gap: 5px; }
.svc-chip { font-size: 12.5px; padding: 0 9px; gap: 4px; white-space: nowrap; flex: none; }
.svc-chip svg { width: 13px; height: 13px; }
.svc-chips { gap: 4px; }
.svc-chip { padding: 0 8px; }
.svc-chip svg { width: 12px; height: 12px; }
@media (max-width: 352px) { .svc-chip svg { display: none; } }

/* Yitzhak 8.10 (item 11): "לחבר את נתוני הפעילות" stood glued to the tiles above it. */
.fitness-connect-button { display: block; inline-size: 100%; margin-top: 16px; min-height: 46px; border-radius: var(--r-round); }
.fitness-connect { margin: 16px 4px 0; }

/* Yitzhak 8.10 (item 7, the full pass): the portfolio's tables (performance, the monthly report) were squeezed into five
   narrow columns at 360 px. Now a card that scrolls sideways, the first column staying in place, numbers on one line. */
.fin-portfolio-sheet .fin-table { display: block; overflow-x: auto; overscroll-behavior-x: contain; margin: 6px 0; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); }
.fin-portfolio-sheet .fin-table th, .fin-portfolio-sheet .fin-table td { padding: 10px 12px; border-bottom: .5px solid var(--sep); white-space: nowrap; }
.fin-portfolio-sheet .fin-table tbody tr:last-child > * { border-bottom: 0; }
.fin-portfolio-sheet .fin-table thead th { font-size: 12px; font-weight: 600; color: var(--label-3); }
.fin-portfolio-sheet .fin-table tbody th { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--surface); font-weight: 600; text-align: start; }
.fin-portfolio-sheet .fin-table tbody th .fin-meta { display: block; white-space: normal; min-width: 150px; font-weight: 400; font-size: 11.5px; }
.fin-portfolio-sheet .fin-table td { font-variant-numeric: tabular-nums; }
.today .steps-w .steps-head { justify-content: flex-start; }
.today .steps-w .steps-head .pet-slot { margin-inline-start: auto; }
.steps-grad-a { stop-color: #3C7D5A; }
.steps-grad-b { stop-color: #5BAE86; }
:root[data-theme="dark"] .steps-grad-a { stop-color: #32D583; }
:root[data-theme="dark"] .steps-grad-b { stop-color: #7BE8B0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .steps-grad-a { stop-color: #32D583; } :root:not([data-theme="light"]) .steps-grad-b { stop-color: #7BE8B0; } }
/* the weight strip fits the narrow widget: one line when there is room, the 30-day change drops under it when not */
.today .steps-w .steps-weight { flex-wrap: wrap; row-gap: 3px; column-gap: 4px; padding: 5px 7px; font-size: 11.5px; min-width: 0; }
.today .steps-w .steps-weight b { font-size: 13.5px; }
.today .steps-w .steps-weight .steps-scale { width: 13px; height: 13px; }
.today .steps-w .steps-weight-change { padding: 0 6px; font-size: 11px; }
.today .wx .wx-head { flex-wrap: nowrap; }
.today .wx .wx-head .pet-slot { width: 28px; flex: 0 1 28px; }
/* Yitzhak 8.10 (c): the days sit right under today (not at the widget's bottom), each with its low in small type */
.today .wx .wx-day-min { font-size: 10.5px; color: rgba(255, 255, 255, .78); }

/* Yitzhak 8.10 (d): more room at the top of the weather widget (the header row is where the pet stands) — today's line
   a little lower, the days under it a touch more compact. */
.today .wx .wx-now, .today .wx .wx-cond { margin-top: 10px; }
.today .wx .wx-days { margin-top: 8px; padding-top: 5px; gap: 2px; }
.today .wx .wx-day { gap: 0; }
.today .wx .wx-day-icon { width: 13px; height: 13px; }
.today .wx .wx-day b { font-size: 11.5px; }
.today .wx .wx-day-min { font-size: 10px; }

/* Yitzhak 8.10 (d): the weight in two set lines instead of a line that breaks — the scale, "משקל" and the 30-day change
   on top, the weight itself under them. */
.today .steps-w .steps-weight { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon label change" "value value value"; align-items: center; column-gap: 5px; row-gap: 1px; white-space: nowrap; }
.today .steps-w .steps-weight > .steps-scale { grid-area: icon; }
.today .steps-w .steps-weight > span:not(.steps-weight-change) { grid-area: label; }
.today .steps-w .steps-weight > b { grid-area: value; font-size: 15px; line-height: 1.2; }
.today .steps-w .steps-weight > .steps-weight-change { grid-area: change; margin: 0; }

.news-front-controls { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:8px 0; }
.news-front-controls label { display:flex; align-items:center; gap:6px; }
.news-front-update { position:fixed; bottom:calc(90px + env(safe-area-inset-bottom)); inset-inline-end:16px; z-index:30; box-shadow:0 2px 8px #0002; }
.news-front-update[hidden] { display:none; }

.news-reader-brief .section-label { font-size:15px; margin-block:16px 6px; }
.news-reader-brief p { margin-block:6px; font-size:16px; line-height:1.65; overflow-wrap:anywhere; }
.news-reader-brief .text-button { font-size:13px; }

/* 12.10: a developing story — its summary, then its updates newest first, each a closed row that opens in place. */
.news-thread-count { color: var(--accent); font-weight: 500; }
.news-thread-updates { border-block-start: 1px solid var(--sep); margin-block-start: 8px; }
.news-thread-updates > .section-label { font-size: 15px; margin-block: 16px 6px; }
.news-thread-update { border-block-start: 1px solid var(--sep); }
.news-thread-update > summary { cursor: pointer; min-block-size: 48px; padding-block: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; overflow-wrap: anywhere; }
.news-thread-update-title { flex: 1 1 60%; font-size: 16px; font-weight: 500; line-height: 1.5; }
.news-thread-update[open] > summary .news-thread-update-title { font-weight: 600; }
.news-thread-update > .news-reader-brief, .news-thread-update > .news-reader-sources { padding-inline-start: 12px; border-inline-start: 2px solid var(--sep); }

/* PRO-6 (12.10, "טלי שיוזמת"): a finding — the source under the sentence, the gist above the exact draft, the draft folded on Today. */
.proactive-source { margin: 4px 0 0; font-size: 13px; }
.proactive-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.proactive-gist { margin: 8px 14px 4px; font-size: 14px; font-weight: 600; }
.draft-tools { margin: 8px 14px 10px; display: grid; gap: 8px; }
.draft-tools-row { display: flex; flex-wrap: wrap; gap: 6px; }
.draft-tool { font-size: 13px; }
.draft-tools-panel:empty { display: none; }
.draft-edit { display: grid; gap: 6px; }
.draft-edit-text, .draft-edit-subject { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line, var(--fill-2)); background: var(--surface); color: inherit; resize: vertical; }
.draft-variants { display: grid; gap: 8px; }
.draft-variant { padding: 8px; border-radius: 12px; background: var(--fill-2); display: grid; gap: 6px; }
.draft-variant .proactive-gist { margin: 0; }
.draft-tools-busy, .draft-tools-error { margin: 0; font-size: 13px; color: var(--muted); }
.proactive-subject { margin: 0 14px 4px; font-size: 13px; color: var(--muted); }
.proactive-question { margin: 10px 0 0; font-weight: 600; }
.proactive-fold { margin: 8px 0; }
.proactive-fold > summary { cursor: pointer; font-size: 14px; color: var(--muted); }
/* his marks (13.10): what passed its date while open, folded at the end of Today */
.proactive-missed { display: block; padding: 10px 14px; }
.proactive-missed > .proactive-missed-title { cursor: pointer; font-weight: 600; color: var(--muted); }
.proactive-missed[open] > .proactive-missed-title { margin-bottom: 8px; }
.proactive-missed > .need-card { opacity: .85; }

/* Yitzhak 12.10: the thumbs, everywhere they are shown (the brain's answers, a finding in the chat, a finding on Today) —
   one small bubble sitting on the bottom edge of the message or the card, at its end side. */
.has-feedback { position: relative; margin-bottom: 20px; }
.feedback-pill { position: absolute; bottom: 0; inset-inline-end: 14px; transform: translateY(50%); z-index: 1; display: flex; gap: 2px; padding: 2px;
  border-radius: 999px; background: var(--surface); box-shadow: var(--edge), 0 2px 8px rgb(0 0 0 / 0.18); }
.chat-message .feedback-pill { margin-top: 0; }
.feedback-pill .chat-feedback-button { width: 32px; height: 32px; border-radius: 999px; }
.need-card.has-feedback { padding-bottom: 14px; }
.chat-message.has-feedback { padding-bottom: 16px; }

/* CH-3 (Yitzhak 13.10, the chat as the center): the call-style voice button in the chat's top-left corner; the send
   button always there; a box that grows to six lines; the "לא נקראו" line; her unread messages and the open ones
   marked; the message he replies to, above his reply and over the box; the jump down with its count; the tab's count. */
.chat-sheet-header .chat-call { order: 4; width: 40px; height: 40px; border-radius: 999px; background: var(--good-soft); color: var(--good); }
.chat-sheet-header .chat-call svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-sheet-header .chat-call:not([hidden]) ~ .sheet-close, .chat-sheet-header .sheet-close { order: 3; }
.composer .send-button, .send-button { display: grid; }
.composer.has-text .voice-button { display: none; }
.composer > textarea { flex: 1 1 auto; order: 1; min-height: 40px; height: 40px; max-height: 160px; padding: 9px 16px; border: .5px solid var(--sep); border-radius: 20px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; line-height: 22px; resize: none; overflow-y: hidden; }
.composer > textarea.is-tall { border-radius: 16px; }
.composer { align-items: flex-end; }
.chat-body { position: relative; }
.chat-unread-line { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--accent); font-size: 13px; font-weight: 600; }
.chat-unread-line::before, .chat-unread-line::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--accent) 40%, transparent); }
.tali-row.is-unread .chat-message { box-shadow: var(--edge), inset 3px 0 0 var(--accent); }
.chat-open-tag { display: inline-block; margin-inline-end: 8px; padding: 1px 8px; border-radius: 999px; background: var(--sunk); color: var(--accent); font-size: 12px; font-weight: 600; vertical-align: middle; }
.chat-quote { display: grid; gap: 2px; margin-bottom: 6px; padding: 6px 10px; border-inline-start: 3px solid var(--accent); border-radius: 8px; background: color-mix(in srgb, var(--ink) 6%, transparent); font-size: 13px; }
.chat-quote-who { font-weight: 600; color: var(--accent); }
.chat-quote-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); }
.chat-reply { position: absolute; bottom: 100%; inset-inline: 0; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-top: .5px solid var(--sep); background: var(--surface); }
.chat-reply[hidden] { display: none; }
.chat-reply-quote { flex: 1; min-width: 0; }
.chat-reply-quote .chat-quote { margin: 0; }
body:not(.chat-open) .chat-reply { display: none; }
/* CH-6: the pet peeking from the right edge (where a pull opens Today); only its own frames, no box around it */
.chat-peek { position: fixed; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 150px); z-index: 30; width: 44px; height: 58px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chat-peek[hidden] { display: none; }
.chat-peek img { display: block; width: 100%; height: 100%; filter: drop-shadow(-2px 3px 6px rgba(0, 0, 0, .18)); pointer-events: none; user-select: none; }
.chat-jump { position: absolute; inset-inline-start: 14px; bottom: 14px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 999px;
  background: var(--surface); color: var(--ink); box-shadow: var(--edge), 0 2px 8px rgb(0 0 0 / 0.2); }
.chat-jump[hidden] { display: none; }
.chat-jump svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.chat-jump-count:not(:empty) { position: absolute; top: -6px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.chat-older { display: block; margin: 8px auto; }
.tab-unread { position: absolute; top: 2px; inset-inline-end: 18%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.tab-unread[hidden] { display: none; }
#tabbar [data-tab="chat"] { position: relative; }
.chat-message.owner .chat-quote { background: rgb(0 0 0 / 0.14); border-inline-start-color: currentColor; }
.chat-message.owner .chat-quote-who, .chat-message.owner .chat-quote-text { color: inherit; opacity: .9; }
/* Yitzhak 13.10: the phone button at the chat's top replaces the talk button in the box (it opens the same live talk). */
#chat-form .talk-button { display: none !important; }
/* Yitzhak 13.10: pull a message to the right to reply — it follows the finger, a reply arrow shows behind it. */
#chat-log .chat-row { position: relative; transition: transform .18s ease; }
#chat-log .chat-row.is-pulling { transition: none; }
#chat-log .chat-row.is-pulling::before { content: ""; position: absolute; right: calc(100% + 8px); top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 999px;
  background: var(--sunk) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h11a5 5 0 0 1 0 10h-2'/%3E%3C/svg%3E") center / 16px no-repeat; opacity: .5; }
#chat-log .chat-row.is-reply-ready::before { opacity: 1; background-color: var(--accent); }

/* PJ-2 (13.10): a project's page — the head card (how it stands, countdown, when, next step), then sections. */
.project-sheet .sheet-body { display: grid; gap: 14px; padding-bottom: 32px; }
.project-head-card { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); }
.project-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.project-health, .project-count, .project-auto { padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--sunk); }
.project-health.is-good { color: var(--good); background: var(--good-soft); }
.project-health.is-warn { color: var(--warn, #b26a00); }
.project-health.is-bad { color: var(--bad, #c0392b); }
.project-auto { color: var(--muted); font-weight: 500; }
.project-when { margin: 0; color: var(--muted); font-size: 14px; }
.project-next-step { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--sunk); }
.project-sheet-link { display: inline-flex; align-self: flex-start; margin-top: 8px; padding: 6px 12px; border-radius: 999px; background: var(--fill-2); color: var(--accent); font-weight: 600; text-decoration: none; }
.project-prepared { list-style: none; padding-inline-start: 0; }
.project-prepared li { line-height: 1.5; }
.project-prepared-state { display: inline-block; margin-inline-end: 4px; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; }
.project-prepared-state.is-quiet { background: var(--fill-2); color: var(--muted); }
.project-waiting { display: grid; gap: 10px; }
.project-waiting-card { padding: 12px; border-radius: 14px; background: var(--fill-1, var(--fill-2)); border: 1px solid var(--accent); }
.project-waiting-card .chat-choices { margin-top: 8px; }
.project-section { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); }
.project-section-title { margin: 0; font-size: 15px; }
.project-list { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; }
.project-list li.is-done, .project-task.is-done > .project-check { color: var(--muted); text-decoration: line-through; }
.project-people li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin-inline-start: -18px; }
.project-role { min-height: 32px; border-radius: 8px; border: .5px solid var(--sep); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.project-who { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.project-muted { color: var(--muted); font-size: 13px; margin: 0; }
.project-tasks { display: grid; gap: 10px; }
.project-task { display: grid; gap: 4px; padding-bottom: 8px; border-bottom: .5px solid var(--sep); }
.project-check { display: flex; align-items: flex-start; gap: 8px; }
.project-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.project-checklist { margin: 0; padding-inline-start: 28px; list-style: none; display: grid; gap: 4px; font-size: 14px; }
.project-add-step { justify-self: start; font-size: 13px; }
.project-gaps li { color: var(--bad, #c0392b); }
.project-source-kind { padding: 0 6px; border-radius: 6px; background: var(--sunk); font-size: 12px; }
.project-dismiss { justify-self: center; color: var(--muted); }

/* 21 (run 11): an empty required field marked by press.js on submit (aria-invalid) shows at once, on every form. */
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
/* 19.10: an action of a meeting or a call that he already did (the others stay open) */
.chat-choice.is-done { opacity: 1; background: color-mix(in srgb, var(--good) 14%, var(--surface)); color: var(--good); box-shadow: none; }
