/* ═══ THE HOME: ONE SCREEN OF WIDGETS (real build plan H1, 20 Oct 2026) ═══════════════════════════════
   The look of the approved prototype (Work/_from-claude/role-home-proto, rh2*.css, his "yes this is good i love
   the direction", 19 Oct), gathered into one sheet: the spacing scale 4 / 8 / 12 / 16 / 24, white cards on the
   ground, centred 17px titles, state tints (late red, soon amber, planned violet, done green), no header bars.
   ⚠ EVERY RULE IS FENCED: under #hmRoot (the Home inside #view-home) or .hm-layer (the folder, the gallery and
   the dragged widget, which hang off <body> so a view's fade-in transform never moves them). Nothing here may
   reach another screen. The prototype's rc-/w-/rh- names are not used: .rc-on lives in rightclick.css.
   Layers: under the app's pop-ups (.ov 1000), over the top bar (300) and the widget dock (up to 210). */

#hmRoot, .hm-layer {
  --hm-wash: #f1f1ef;
  --hm-violet: #6b62d6;
  --hm-t-ok: color-mix(in oklab, var(--good) 15%, var(--surface));
  --hm-t-plan: color-mix(in oklab, var(--hm-violet) 13%, var(--surface));
  --hm-t-late: color-mix(in oklab, var(--accent) 11%, var(--surface));
  --hm-t-wait: color-mix(in oklab, var(--warn) 16%, var(--surface));
  --hm-t-quiet: var(--hm-wash);
  --hm-t-line: color-mix(in oklab, var(--ink) 12%, transparent);
  --hm-dot-event: #6b62d6;
}
:root[data-theme="dark"] #hmRoot, :root[data-theme="dark"] .hm-layer {
  --hm-wash: #2a2825;
  --hm-dot-event: #9a93ee;
}
#hmRoot [hidden], .hm-layer [hidden], #hmRoot[hidden] { display: none !important; }

/* ── the view: the whole content area, no page scroll ── */
#view-home.hm-on { max-width: none !important; padding: 0 !important; margin: 0 !important; }
#view-home.hm-on > :not(#hmRoot) { display: none !important; }
#hmRoot {
  display: flex; flex-direction: column; box-sizing: border-box; min-height: 0; overflow: hidden;
  padding: 12px 20px 16px; background: var(--ground); color: var(--ink); font-family: Inter, system-ui, sans-serif;
}

/* ── the header: greeting, the date under it, Customise on the right ── */
#hmRoot .hm-head { display: flex; align-items: center; gap: 16px; min-height: 49px; margin: 0 0 6px; padding: 0 2px; flex-shrink: 0; }
#hmRoot .hm-hl { display: flex; flex-direction: column; min-width: 0; }
/* ⚠ the clip for the ellipsis must not cut a descender ("g" of "morning", 19 Oct): the box carries .16em more
   below and gives it back with the margin */
#hmRoot .hm-h1 { margin: 0 0 -.16em; padding: 0 0 .16em; font-size: 28px; font-weight: 600; line-height: 1.08; letter-spacing: -.02em; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hmRoot .hm-day { font-size: 15px; line-height: 1.25; color: var(--ink-soft); }
#hmRoot .hm-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
#hmRoot .hm-btn, .hm-layer .hm-btn { height: 32px; padding: 0 14px; border-radius: 999px; font: 500 13px/1 Inter, system-ui, sans-serif; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .12s ease-out; }
/* the restyle family (21 Oct 2026), at Home's own sizes: .dark is the main red, .line the outline, .ok pale green */
#hmRoot .hm-btn.line { background: transparent; color: var(--ink); border: 1.5px solid var(--bt-edge); }
#hmRoot .hm-btn.dark { background: var(--accent); color: var(--on-accent); border: 1.5px solid transparent; font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  #hmRoot .hm-btn.line:hover { background: var(--bt-line-h); border-color: var(--ink); }
  #hmRoot .hm-btn.dark:hover { background: var(--bt-main-h); }
}
#hmRoot .hm-btn.line:active { background: var(--bt-line-p); }
#hmRoot .hm-btn.dark:active { background: var(--bt-main-p); }
#hmRoot .hm-btn:active { transform: scale(.97); }
/* H5: the owner's "whose home" pick: the name and its chevron on one line */
#hmRoot .hm-btn.hm-whosebtn { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 14px; }
#hmRoot .hm-whosebtn .hm-ic { width: 15px; height: 15px; stroke-width: 2.2; }
#hmRoot .hm-txt, .hm-layer .hm-txt { border: 0; background: none; padding: 4px 6px; margin: 0; font: 500 13px/1.2 Inter, system-ui, sans-serif; color: var(--ink-soft); cursor: pointer; border-radius: 6px; }
@media (hover: hover) and (pointer: fine) { #hmRoot .hm-txt:hover, .hm-layer .hm-txt:hover { color: var(--ink); } }
#hmRoot button:focus-visible, .hm-layer button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
#hmRoot button:focus:not(:focus-visible) { outline: none; }

/* ── the grid: cells sized from the window, widgets placed on it ── */
#hmRoot .hm-stage { flex: 1 1 auto; min-height: 0; position: relative; display: flex; flex-direction: column; }
#hmRoot .hm-grid { display: grid; position: relative; flex-shrink: 0; }
#hmRoot .hm-cell { border-radius: 12px; background: var(--rule); opacity: .55; pointer-events: none; z-index: 0; }
#hmRoot .hm-blank { grid-column: 1 / -1; grid-row: 1 / -1; display: flex; align-items: center; justify-content: center; }
#hmRoot .hm-dots { height: 28px; display: flex; align-items: center; justify-content: center; gap: 2px; flex-shrink: 0; }
#hmRoot .hm-dot { width: 22px; height: 22px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
#hmRoot .hm-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-faint); opacity: .55; transition: background-color .15s ease, opacity .15s ease; }
#hmRoot .hm-dot.on::after { background: var(--ink); opacity: 1; }

/* ── a widget ── */
#hmRoot .hm-w, .hm-layer .hm-w { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; box-sizing: border-box;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); padding: 16px; color: var(--ink);
  font-size: 15px; text-align: left; }
#hmRoot .hm-w.bare, .hm-layer .hm-w.bare { background: none; border: 0; box-shadow: none; padding: 1px 0 0; align-items: center; gap: 7px; }
#hmRoot .hm-top, .hm-layer .hm-top { position: relative; height: 24px; margin: 0 0 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 0; }
#hmRoot .hm-name, .hm-layer .hm-name { font-size: 17px; font-weight: 600; line-height: 24px; letter-spacing: -.005em; color: var(--ink); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#hmRoot .hm-right, .hm-layer .hm-right { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; align-items: center; }
#hmRoot .hm-body, .hm-layer .hm-body { flex: 1 1 auto; min-height: 0; overflow: hidden; margin: -4px; padding: 4px; position: relative; }
#hmRoot .hm-ic, .hm-layer .hm-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; flex-shrink: 0; }

/* the shared parts */
#hmRoot .hm-list, .hm-layer .hm-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
#hmRoot .hm-list > *, .hm-layer .hm-list > * { flex-shrink: 0; }
#hmRoot .hm-sec, .hm-layer .hm-sec { font-size: 13px; font-weight: 600; line-height: 16px; padding: 2px 0 4px; margin-bottom: -8px; color: var(--ink-soft); }
#hmRoot .hm-sec ~ .hm-sec, .hm-layer .hm-sec ~ .hm-sec { margin-top: 6px; }
#hmRoot .hm-sec.late, .hm-layer .hm-sec.late { color: var(--accent-ink); }
#hmRoot .hm-more, .hm-layer .hm-more { align-self: flex-start; border: 0; background: none; padding: 0; margin: 0; font: 600 13px/20px Inter, system-ui, sans-serif; color: var(--ink-soft); cursor: pointer; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) { #hmRoot .hm-more:hover { color: var(--ink); } }
#hmRoot .hm-empty, .hm-layer .hm-empty { height: 100%; min-height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 15px; line-height: 1.35; color: var(--ink-soft); padding: 0 8px; }
#hmRoot .hm-item, .hm-layer .hm-item { font-family: inherit; color: var(--ink); transition: filter .15s ease, transform .12s ease-out; }
#hmRoot button.hm-item, .hm-layer button.hm-item { border: 0; margin: 0; cursor: pointer; text-align: left; font-size: 15px; }
@media (hover: hover) and (pointer: fine) {
  #hmRoot button.hm-item:hover, #hmRoot .hm-r:has(.hm-rt:hover) { filter: brightness(.975); }
  :root[data-theme="dark"] #hmRoot button.hm-item:hover, :root[data-theme="dark"] #hmRoot .hm-r:has(.hm-rt:hover) { filter: brightness(1.12); }
}
#hmRoot button.hm-item:active { transform: scale(.985); }
/* the state tints */
#hmRoot .hm-item.late, .hm-layer .hm-item.late { background: var(--hm-t-late); }
#hmRoot .hm-item.soon, .hm-layer .hm-item.soon { background: var(--hm-t-wait); }
#hmRoot .hm-item.plan, .hm-layer .hm-item.plan { background: var(--hm-t-plan); }
#hmRoot .hm-item.ok, .hm-layer .hm-item.ok { background: var(--hm-t-ok); }
#hmRoot .hm-item.quiet, .hm-layer .hm-item.quiet { background: var(--hm-t-quiet); }
#hmRoot .hm-late, .hm-layer .hm-late { color: var(--accent-ink); font-weight: 600; }
#hmRoot .hm-soft, .hm-layer .hm-soft { color: var(--ink-soft); }

/* My tasks: a row with its tick box */
#hmRoot .hm-r, .hm-layer .hm-r { display: flex; align-items: center; gap: 12px; min-height: 43px; box-sizing: border-box; padding: 6px 12px; border-radius: 10px; min-width: 0; }
#hmRoot .hm-ck, .hm-layer .hm-ck { flex-shrink: 0; width: 22px; height: 22px; padding: 0; border-radius: 6px; border: 1px solid var(--ink-faint); background: var(--surface); color: transparent;
  display: grid; place-items: center; cursor: pointer; transition: color .12s ease, background-color .12s ease, border-color .12s ease; }
#hmRoot .hm-ck .hm-ic, .hm-layer .hm-ck .hm-ic { width: 15px; height: 15px; stroke-width: 2.4; }
@media (hover: hover) and (pointer: fine) { #hmRoot .hm-ck:hover { color: var(--ink-faint); border-color: var(--ink-soft); } }
#hmRoot .hm-rm, .hm-layer .hm-rm { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
#hmRoot .hm-rt, .hm-layer .hm-rt { border: 0; background: none; padding: 0; margin: 0; font: 400 15px/1.3 Inter, system-ui, sans-serif; color: var(--ink); text-align: left; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#hmRoot .hm-rs, .hm-layer .hm-rs { font-size: 13px; line-height: 1.4; margin-top: 1px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hmRoot .hm-rr, .hm-layer .hm-rr { flex-shrink: 0; margin-left: auto; font-size: 13px; line-height: 16px; white-space: nowrap; }

/* Projects due: the day, the name, how late */
#hmRoot .hm-pl, .hm-layer .hm-pl { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 51px; box-sizing: border-box; padding: 8px 12px; border-radius: 10px; }
#hmRoot .hm-pl-d, .hm-layer .hm-pl-d { font-size: 13px; font-weight: 600; line-height: 16px; color: var(--ink-soft); white-space: nowrap; }
#hmRoot .hm-pl-n, .hm-layer .hm-pl-n { font-size: 15px; line-height: 1.3; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hmRoot .hm-pl-s, .hm-layer .hm-pl-s { font-size: 13px; font-weight: 600; line-height: 16px; color: var(--accent-ink); white-space: nowrap; }

/* Events: the date block, the kind, the name, when and where */
#hmRoot .hm-hb, .hm-layer .hm-hb { display: flex; align-items: center; gap: 10px; min-width: 0; border-radius: 10px; padding: 9px 10px 9px 12px; }
#hmRoot .hm-hb.tight, .hm-layer .hm-hb.tight { flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 10px; }
#hmRoot .hm-hb-top, .hm-layer .hm-hb-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
#hmRoot .hm-hb-m, .hm-layer .hm-hb-m { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
#hmRoot .hm-hb-t, .hm-layer .hm-hb-t { font-size: 13px; line-height: 1.3; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hmRoot .hm-hb-n, .hm-layer .hm-hb-n { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; }
#hmRoot .hm-hb-s, .hm-layer .hm-hb-s { font-size: 13px; line-height: 1.35; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#hmRoot .hm-date, .hm-layer .hm-date { flex-shrink: 0; width: 44px; height: 46px; box-sizing: border-box; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hm-t-line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
#hmRoot .hm-date b, .hm-layer .hm-date b { font-size: 18px; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums; }
#hmRoot .hm-date span, .hm-layer .hm-date span { font-size: 12px; line-height: 1; color: var(--ink-soft); }
#hmRoot .hm-date.tight, .hm-layer .hm-date.tight { width: auto; height: 24px; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 3px; padding: 5px 6px 0; border-radius: 6px; }
#hmRoot .hm-date.tight b, .hm-layer .hm-date.tight b { font-size: 13px; line-height: 13px; }
#hmRoot .hm-date.tight span, .hm-layer .hm-date.tight span { font-size: 13px; line-height: 13px; }

/* Calendar: the month, a dot per thing, the list of what is ahead */
#hmRoot .hm-nav, .hm-layer .hm-nav { display: flex; align-items: center; gap: 2px; }
#hmRoot .hm-navl, .hm-layer .hm-navl { min-width: 104px; text-align: center; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
#hmRoot .hm-ib, .hm-layer .hm-ib { width: 28px; height: 28px; border: 0; padding: 0; border-radius: 999px; background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
#hmRoot .hm-ib .hm-ic { width: 16px; height: 16px; stroke-width: 2; }
@media (hover: hover) and (pointer: fine) { #hmRoot .hm-ib:hover { background: color-mix(in oklab, var(--ink) 7%, transparent); } }
#hmRoot .hm-cal, .hm-layer .hm-cal { height: 100%; display: flex; flex-direction: column; min-height: 0; }
#hmRoot .hm-cal.wide, .hm-layer .hm-cal.wide { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
#hmRoot .hm-cal-g, .hm-layer .hm-cal-g { display: flex; flex-direction: column; min-height: 0; }
#hmRoot .hm-cal-a, .hm-layer .hm-cal-a { min-height: 0; overflow: hidden; }
#hmRoot .hm-cal-a .hm-list, .hm-layer .hm-cal-a .hm-list { gap: 4px; }
#hmRoot .hm-mh, .hm-layer .hm-mh { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 0 0 8px; flex-shrink: 0; }
#hmRoot .hm-mh span, .hm-layer .hm-mh span { padding-left: 4px; font-size: 13px; font-weight: 600; line-height: 16px; color: var(--ink-soft); }
#hmRoot .hm-mg, .hm-layer .hm-mg { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(var(--wk), minmax(0, 1fr)); gap: 4px; }
#hmRoot .hm-mc, .hm-layer .hm-mc { min-width: 0; min-height: 0; overflow: hidden; border-radius: 7px; padding: 2px 4px; background: var(--hm-wash); display: flex; flex-direction: column; gap: 4px; }
#hmRoot .hm-mc.out, .hm-layer .hm-mc.out { background: transparent; }
#hmRoot .hm-mn, .hm-layer .hm-mn { align-self: flex-start; font-size: 13px; font-weight: 600; line-height: 16px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
#hmRoot .hm-mc.today .hm-mn, .hm-layer .hm-mc.today .hm-mn { background: var(--ink); color: var(--on-ink); border-radius: 999px; padding: 0 7px; }
#hmRoot .hm-dots i, .hm-layer .hm-dots i { display: block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--ink-faint); }
#hmRoot .hm-mc .hm-dots, .hm-layer .hm-mc .hm-dots { display: flex; flex-wrap: wrap; gap: 3px; height: auto; padding-left: 2px; }
#hmRoot .hm-dots i.proj, .hm-layer .hm-dots i.proj { background: var(--warn); }
#hmRoot .hm-dots i.event, .hm-layer .hm-dots i.event { background: var(--hm-dot-event); }
#hmRoot .hm-ag, .hm-layer .hm-ag { display: flex; align-items: center; gap: 8px; min-height: 26px; box-sizing: border-box; padding: 3px 10px 3px 4px; border-radius: 7px; white-space: nowrap; overflow: hidden; }
#hmRoot .hm-ag-d, .hm-layer .hm-ag-d { flex-shrink: 0; min-width: 48px; box-sizing: border-box; text-align: center; padding: 2px 5px; border-radius: 5px; background: var(--surface); font-size: 13px; line-height: 16px; color: var(--ink-soft); }
#hmRoot .hm-ag-d b, .hm-layer .hm-ag-d b { color: var(--ink); font-weight: 600; }
#hmRoot .hm-ag-n, .hm-layer .hm-ag-n { font-size: 15px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
#hmRoot .hm-ag-k, .hm-layer .hm-ag-k { font-size: 13px; line-height: 16px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 0; }
#hmRoot .hm-ag-k::before, .hm-layer .hm-ag-k::before { content: "· "; }
#hmRoot .hm-ag-k, .hm-layer .hm-ag-k { margin-left: -4px; }
#hmRoot .hm-ag.soon .hm-ag-k, .hm-layer .hm-ag.soon .hm-ag-k { color: var(--warn-ink); font-weight: 600; }

/* a short box: the figure, the first thing, then one line each */
#hmRoot .hm-gl, .hm-layer .hm-gl { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#hmRoot .hm-gl-f, .hm-layer .hm-gl-f { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
#hmRoot .hm-gl-n, .hm-layer .hm-gl-n { font-size: 32px; font-weight: 650; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
#hmRoot .hm-gl-n.late, .hm-layer .hm-gl-n.late { color: var(--accent-ink); }
#hmRoot .hm-gl-l, .hm-layer .hm-gl-l { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hmRoot .hm-gl-s, .hm-layer .hm-gl-s { font-size: 15px; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#hmRoot button.hm-gl-li, .hm-layer button.hm-gl-li { display: flex; align-items: baseline; gap: 6px; min-width: 0; padding: 1px 0; background: none; border-radius: 4px; white-space: nowrap; overflow: hidden; }
#hmRoot .hm-gl-li b, .hm-layer .hm-gl-li b { font-size: 14px; font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
#hmRoot .hm-gl-li span, .hm-layer .hm-gl-li span { font-size: 13px; line-height: 1.35; color: var(--ink-soft); flex-shrink: 0; }

/* ── the Apps folder: a frosted tile, its apps small inside it ── */
#hmRoot .hm-ftile, .hm-layer .hm-ftile { width: 74px; height: 74px; box-sizing: border-box; padding: 10.5px; border: 0; border-radius: 24%; cursor: pointer;
  background: rgba(255, 255, 255, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 8px 20px -12px rgba(0, 0, 0, .35); transition: transform .14s ease-out; flex-shrink: 0; }
:root[data-theme="dark"] #hmRoot .hm-ftile, :root[data-theme="dark"] .hm-layer .hm-ftile { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 20px -12px rgba(0, 0, 0, .6); }
@media (hover: hover) and (pointer: fine) { #hmRoot .hm-ftile:hover { transform: translateY(-2px); } }
#hmRoot .hm-fgrid, .hm-layer .hm-fgrid { display: grid; grid-template-columns: repeat(3, 14.5px); grid-auto-rows: 14.5px; gap: 4px; }
#hmRoot .hm-fmini, .hm-layer .hm-fmini { width: 14.5px; height: 14.5px; border-radius: 24%; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); display: grid; place-items: center; overflow: hidden; }
#hmRoot .hm-fmini img, .hm-layer .hm-fmini img { width: 100%; height: 100%; object-fit: contain; display: block; }
#hmRoot .hm-fletter, .hm-layer .hm-fletter { font-size: 8px; font-weight: 600; line-height: 1; color: #62615c; }
#hmRoot .hm-flab, .hm-layer .hm-flab { font-size: 13px; font-weight: 600; line-height: 16px; color: var(--ink); }

/* the open folder: the home blurred behind, the apps in a frosted square (his blur, 20 Oct: kept) */
.hm-layer .hm-of { position: fixed; inset: 0; z-index: 960; }
.hm-layer .hm-ofbg { position: absolute; inset: 0; background: rgba(236, 237, 237, .35); -webkit-backdrop-filter: blur(24px) saturate(1.2); backdrop-filter: blur(24px) saturate(1.2); opacity: 0; transition: opacity .2s ease; }
:root[data-theme="dark"] .hm-layer .hm-ofbg { background: rgba(19, 18, 17, .45); }
.hm-layer .hm-of.in .hm-ofbg { opacity: 1; }
.hm-layer .hm-ofwrap { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: calc(100vw - 48px); }
.hm-layer .hm-oft { font-size: 28px; font-weight: 600; line-height: 34px; letter-spacing: -.02em; color: var(--ink); }
.hm-layer .hm-ofpanel { box-sizing: border-box; width: calc(var(--oc, 4) * 108px + (var(--oc, 4) - 1) * 8px + 52px); max-width: calc(100vw - 48px); max-height: calc(100vh - 170px); overflow: auto;
  padding: 28px 26px 20px; border-radius: 40px; background: rgba(255, 255, 255, .66); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5); }
:root[data-theme="dark"] .hm-layer .hm-ofpanel { background: rgba(34, 33, 30, .74); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .06); }
/* the wall's own tiles, in the folder: its groups, pins and badges as on the old wall */
.hm-layer .hm-ofgrid .home-grid { max-width: none; grid-template-columns: repeat(auto-fill, 108px); gap: 16px 8px; justify-content: start; }
.hm-layer .hm-ofgrid .home-pinned { max-width: none; background: color-mix(in oklab, var(--ink) 5%, transparent); }
.hm-layer .hm-ofgrid .home-group:last-child { margin-bottom: 0; }
.hm-layer .hm-ofgrid .home-sec { margin-left: 8px; }
.hm-layer .hm-ofgrid .home-badge { box-shadow: none; }

/* ── customising ── */
#hmRoot .hm-grid.editing .hm-w { cursor: grab; }
#hmRoot .hm-grid.editing .hm-w > :not(.hm-x):not(.hm-rz) { pointer-events: none; }
#hmRoot .hm-x { position: absolute; top: -8px; left: -8px; z-index: 4; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--ground), 0 2px 6px rgba(0, 0, 0, .25); }
#hmRoot .hm-x .hm-ic { width: 13px; height: 13px; stroke-width: 2.6; }
#hmRoot .hm-w.bare .hm-x { left: 2px; top: -6px; }
#hmRoot .hm-rz { position: absolute; z-index: 3; }
#hmRoot .hm-rz.e { top: 16px; bottom: 16px; right: -7px; width: 14px; cursor: ew-resize; }
#hmRoot .hm-rz.s { left: 16px; right: 16px; bottom: -7px; height: 14px; cursor: ns-resize; }
#hmRoot .hm-rz.se { right: -7px; bottom: -7px; width: 24px; height: 24px; cursor: nwse-resize; }
#hmRoot .hm-rz.e::after { content: ""; position: absolute; left: 5px; top: 50%; width: 4px; height: 28px; margin-top: -14px; border-radius: 2px; background: var(--ink-faint); opacity: .7; }
#hmRoot .hm-rz.s::after { content: ""; position: absolute; top: 5px; left: 50%; height: 4px; width: 28px; margin-left: -14px; border-radius: 2px; background: var(--ink-faint); opacity: .7; }
#hmRoot .hm-rz.se::after { content: ""; position: absolute; right: 7px; bottom: 7px; width: 9px; height: 9px; border-right: 3px solid var(--ink-soft); border-bottom: 3px solid var(--ink-soft); border-bottom-right-radius: 4px; }
#hmRoot .hm-w.hm-ph { background: transparent; border: 2px dashed var(--rule-strong); box-shadow: none; }
#hmRoot .hm-w.hm-ph > * { visibility: hidden; }
#hmRoot .hm-drop { z-index: 0; border-radius: 14px; background: color-mix(in oklab, var(--ink) 6%, transparent); box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--ink) 22%, transparent); pointer-events: none; }
.hm-layer .hm-ghost { position: fixed; z-index: 970; margin: 0; pointer-events: none; box-shadow: 0 24px 60px -22px rgba(0, 0, 0, .5); opacity: .97; }
.hm-layer .hm-ghost .hm-x, .hm-layer .hm-ghost .hm-rz { display: none; }
body.hm-dragging, body.hm-dragging * { cursor: grabbing !important; user-select: none !important; }

/* ── the gallery: every widget this login may have, drawn live ── */
.hm-layer .hm-galw { position: fixed; inset: 0; z-index: 960; }
.hm-layer .hm-galveil { position: absolute; inset: 0; background: rgba(0, 0, 0, .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .18s ease; }
.hm-layer .hm-gal { position: absolute; left: 50%; top: 50%; width: min(1120px, calc(100vw - 80px)); height: min(760px, calc(100vh - 80px)); transform: translate(-50%, -48%) scale(.98); opacity: 0;
  transition: opacity .18s ease, transform .22s cubic-bezier(.23, 1, .32, 1); background: var(--surface); color: var(--ink); border-radius: 20px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5);
  display: grid; grid-template-columns: 250px minmax(0, 1fr); overflow: hidden; font-family: Inter, system-ui, sans-serif; }
.hm-layer .hm-galw.in .hm-galveil { opacity: 1; }
.hm-layer .hm-galw.in .hm-gal { opacity: 1; transform: translate(-50%, -50%); }
.hm-layer .hm-gal-l { background: var(--paper); border-right: 1px solid var(--rule); padding: 16px 10px; display: flex; flex-direction: column; gap: 6px; overflow: auto; }
.hm-layer .hm-gq { display: flex; align-items: center; gap: 8px; height: 38px; box-sizing: border-box; padding: 0 14px; margin-bottom: 8px; border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink-soft); cursor: text; }
.hm-layer .hm-gq:focus-within { border-color: var(--ink); }
.hm-layer .hm-gq input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: none; padding: 0; font: 400 15px/1 Inter, system-ui, sans-serif; color: var(--ink); }
.hm-layer .hm-gq input::placeholder { color: var(--ink-faint); }
.hm-layer .hm-gnav { display: flex; align-items: center; gap: 12px; height: 42px; box-sizing: border-box; padding: 6px 10px; border: 0; border-radius: 10px; background: none; cursor: pointer;
  font: 400 15px/1.2 Inter, system-ui, sans-serif; color: var(--ink); text-align: left; }
.hm-layer .hm-gnav.on { background: var(--surface); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
@media (hover: hover) and (pointer: fine) { .hm-layer .hm-gnav:not(.on):hover { background: color-mix(in oklab, var(--ink) 5%, transparent); } }
.hm-layer .hm-gnav-i { width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hm-t-line); display: grid; place-items: center; overflow: hidden; }
.hm-layer .hm-gnav-i img { width: 24px; height: 24px; object-fit: contain; }
.hm-layer .hm-gnav-ok { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.hm-layer .hm-gnav-ok .hm-ic { width: 15px; height: 15px; stroke-width: 2.4; }
.hm-layer .hm-gal-r { padding: 22px 56px 32px 22px; overflow: auto; }
.hm-layer .hm-gt { margin: 0 0 16px; font-size: 19px; font-weight: 500; line-height: 1.25; color: var(--ink); }
.hm-layer .hm-gcards { display: flex; flex-wrap: wrap; gap: 28px 32px; align-items: flex-start; }
.hm-layer .hm-gc { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.hm-layer .hm-gprev { position: relative; display: block; padding: 0; margin: 0 0 2px; border: 0; background: none; border-radius: 14px; cursor: grab; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .35); }
.hm-layer .hm-gprev.on { cursor: default; }
.hm-layer .hm-gscale { position: absolute; left: 0; top: 0; display: block; transform-origin: 0 0; pointer-events: none; }
.hm-layer .hm-gscale > .hm-w { width: 100%; height: 100%; }
.hm-layer .hm-gok { position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--surface); }
.hm-layer .hm-gok .hm-ic { width: 15px; height: 15px; stroke-width: 2.6; }
.hm-layer .hm-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--field); }
.hm-layer .hm-seg button { height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: none; font: 500 13px/1 Inter, system-ui, sans-serif; color: var(--ink-soft); cursor: pointer; }
.hm-layer .hm-seg button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.hm-layer .hm-gn { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--ink); margin-top: 4px; }
.hm-layer .hm-gd { font-size: 14px; line-height: 1.4; color: var(--ink-soft); max-width: 300px; }
.hm-layer .hm-gx { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ink-soft); display: grid; place-items: center; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .hm-layer .hm-gx:hover { background: color-mix(in oklab, var(--ink) 7%, transparent); color: var(--ink); } }
.hm-layer .hm-gx .hm-ic { width: 20px; height: 20px; }

/* ── IXItask: a shortcut tile the size of the Apps folder, its letter on the app tiles' white square ── */
#hmRoot .hm-itile, .hm-layer .hm-itile { width: 74px; height: 74px; box-sizing: border-box; border-radius: 24%; display: grid; place-items: center; text-decoration: none; flex-shrink: 0;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 8px 20px -12px rgba(0, 0, 0, .35); transition: transform .14s ease-out; }
:root[data-theme="dark"] #hmRoot .hm-itile, :root[data-theme="dark"] .hm-layer .hm-itile { box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .6); }
@media (hover: hover) and (pointer: fine) { #hmRoot .hm-itile:hover { transform: translateY(-2px); } }
#hmRoot .hm-itile:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
#hmRoot .hm-iletter, .hm-layer .hm-iletter { font-size: 30px; font-weight: 600; line-height: 1; letter-spacing: -.02em; color: #62615c; }
.hm-layer .hm-gnav-l { font-size: 14px; font-weight: 600; color: var(--ink-soft); }

/* ── a calendar day in the widget: the whole cell is the button ── */
#hmRoot button.hm-mc { border: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; align-items: stretch; }
@media (hover: hover) and (pointer: fine) { #hmRoot button.hm-mc:hover { filter: brightness(.96); } :root[data-theme="dark"] #hmRoot button.hm-mc:hover { filter: brightness(1.15); } }

/* ── the cards over the Home (ListKit.card hosts them: .cg-rec.card + .hm-layer.hm-card). The prototype's card:
   the name big, one quiet line, label over value, the app button bottom right, a floating X, no header bar ── */
.hm-layer.hm-card { border: 0; border-radius: 16px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5); color: var(--ink); font-family: Inter, system-ui, sans-serif; }
:root[data-theme="dark"] .hm-layer.hm-card { box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.hm-layer .hm-cx { position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: color-mix(in oklab, var(--surface) 72%, transparent); color: var(--ink-soft); display: grid; place-items: center;
  transition: background-color .15s ease, color .15s ease, transform .12s ease-out; }
/* the family's ghost close: quiet words, a grey wash on hover */
@media (hover: hover) and (pointer: fine) { .hm-layer .hm-cx:hover { background: var(--bt-neu); color: var(--ink); } }
.hm-layer .hm-cx:active { background: var(--bt-neu-p); color: var(--ink); transform: scale(.97); }
.hm-layer .hm-cx .hm-ic { width: 18px; height: 18px; stroke-width: 2; }
.hm-layer .hm-cb { padding: 28px 28px 24px; }
.hm-layer .hm-ct { margin: 0; padding: 0 44px 0 0; font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); overflow-wrap: break-word; }
.hm-layer .hm-cm { margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--ink-soft); }
.hm-layer .hm-cl { margin: 18px 0 4px; font-size: 13px; line-height: 1.25; color: var(--ink-soft); }
.hm-layer .hm-cv { font-size: 15px; line-height: 1.5; color: var(--ink); }
.hm-layer .hm-cv b { font-weight: 600; }
.hm-layer .hm-ok { color: var(--good-deep); font-weight: 600; }
.hm-layer .hm-warn { color: var(--warn-ink); font-weight: 600; }
.hm-layer .hm-cv .hm-late, .hm-layer .hm-cv .hm-ok, .hm-layer .hm-cv .hm-warn { font-size: 15px; }
.hm-layer .hm-crow { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: calc(100% + 12px); margin: 0 -6px; padding: 8px 6px; border: 0; border-bottom: 1px solid var(--rule-soft);
  border-radius: 6px; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.hm-layer .hm-crow:last-child { border-bottom: 0; }
.hm-layer .hm-crow b { font-size: 15px; font-weight: 600; line-height: 1.5; }
.hm-layer .hm-crow span { font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .hm-layer .hm-crow:hover { background: var(--hm-wash); } }
.hm-layer .hm-cf { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 24px; flex-wrap: wrap; }
.hm-layer .hm-tickbtn { height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.hm-layer .hm-tickbtn .hm-ic { width: 16px; height: 16px; stroke-width: 2.2; }
/* the app button: the app's picture, its name, a chevron, in a soft pill (his round 8 pick) */
.hm-layer .hm-appbtn { height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px 0 8px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: var(--hm-wash); border: 1px solid color-mix(in oklab, var(--ink) 7%, transparent); color: var(--ink); font: 600 14px/1 Inter, system-ui, sans-serif; }
@media (hover: hover) and (pointer: fine) { .hm-layer .hm-appbtn:hover { background: color-mix(in oklab, var(--ink) 8%, var(--surface)); } }
.hm-layer .hm-appbtn-ic { width: 24px; height: 24px; border-radius: 7px; background: #fff; box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 8%, transparent); display: grid; place-items: center; overflow: hidden; }
.hm-layer .hm-appbtn-ic img { width: 24px; height: 24px; object-fit: contain; }
.hm-layer .hm-appbtn > .hm-ic { width: 16px; height: 16px; stroke-width: 2; color: var(--ink-soft); }
.hm-layer .hm-daylist { margin-top: 16px; gap: 6px; }

/* a widget, big: header on one line (title centred, the app button and X on the right), then everything */
.hm-layer .hm-xw { padding: 0 16px 16px; }
.hm-layer .hm-xh { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 64px; background: var(--surface); }
.hm-layer .hm-xt { margin: 0; font-size: 22px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); text-align: center; white-space: nowrap; }
.hm-layer .hm-xr { justify-self: end; display: flex; align-items: center; gap: 8px; }
.hm-layer .hm-xr .hm-cx { position: static; background: none; }
.hm-layer .hm-xr .hm-nav { margin-right: 8px; }
.hm-layer .hm-biglist .hm-r { min-height: 56px; padding: 8px 12px; }
.hm-layer .hm-biglist .hm-rt { font-size: 15px; }
.hm-layer .hm-wk { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; }
.hm-layer .hm-wkd { min-width: 0; min-height: 160px; display: flex; flex-direction: column; gap: 4px; padding: 8px 6px; border-radius: 10px; background: var(--hm-wash); }
.hm-layer .hm-wkd.today { box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--hm-violet) 55%, transparent); }
.hm-layer .hm-wkl { font-size: 13px; font-weight: 600; line-height: 16px; padding: 0 2px 4px; color: var(--ink-soft); }
.hm-layer .hm-wkd.late .hm-wkl { color: var(--accent-ink); }
.hm-layer .hm-wkd.today .hm-wkl { color: var(--ink); }
.hm-layer button.hm-xp { display: flex; flex-direction: column; gap: 1px; padding: 5px 8px; border-radius: 6px; font-size: 14px; line-height: 1.3; }
.hm-layer .hm-xp b { font-weight: 500; overflow-wrap: break-word; }
.hm-layer .hm-xp.late b { color: var(--accent-ink); font-weight: 600; }
.hm-layer .hm-xp span { font-size: 12px; color: var(--accent-ink); }
.hm-layer .hm-evgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.hm-layer .hm-evgrid .hm-hb { padding: 14px 14px 14px 16px; }
.hm-layer .hm-bigcal { height: calc(100vh - 80px - 80px); min-height: 360px; display: flex; flex-direction: column; }
.hm-layer .hm-bmg { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(var(--wk), minmax(0, 1fr)); gap: 4px; }
.hm-layer .hm-bmc { min-width: 0; min-height: 0; overflow: hidden; border-radius: 8px; padding: 4px 4px 6px; background: var(--hm-wash); display: flex; flex-direction: column; gap: 2px; }
.hm-layer .hm-bmc.out { background: transparent; }
.hm-layer .hm-bmn { align-self: flex-start; border: 0; background: none; padding: 1px 4px; border-radius: 999px; cursor: pointer; font: 600 13px/16px Inter, system-ui, sans-serif; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hm-layer .hm-bmc.today .hm-bmn { background: var(--ink); color: var(--on-ink); padding: 1px 7px; }
.hm-layer button.hm-mev { display: block; width: 100%; padding: 1px 6px; border-radius: 4px; font-size: 13px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-layer button.hm-mev.quiet { background: none; }
.hm-layer .hm-bmore { align-self: flex-start; border: 0; background: none; padding: 0 6px; cursor: pointer; font: 600 12px/18px Inter, system-ui, sans-serif; color: var(--ink-soft); }

/* ═══ THE WORK WIDGETS (real build plan H2, 20 Oct 2026): home-work.js, home-widgets.js, home-cards.js ═══
   The prototype's weeks (rows with a face, today wide, soft blocks with the time and the place), its lists (a tint per
   state, the right-hand word), the stage track of Shipments arriving, and the cards (a tinted band, the face over it,
   label beside value, one action left, the app button right). Same scale: 4 / 8 / 12 / 16 / 24, 13px the smallest. */
#hmRoot .hm-warn, .hm-layer .hm-warn { color: var(--warn-ink); font-weight: 600; }
#hmRoot .hm-ok, .hm-layer .hm-ok { color: var(--good-deep); font-weight: 600; }
#hmRoot .hm-item.site, .hm-layer .hm-item.site { background: color-mix(in oklab, var(--hm-violet) 20%, var(--surface)); }
#hmRoot .hm-item.wait, .hm-layer .hm-item.wait { background: var(--hm-t-wait); }
#hmRoot .hm-item.sug, .hm-layer .hm-item.sug { background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--ink) 22%, transparent); }
/* a face: the initials on a colour of the name, white on it (4.5:1 or better) */
#hmRoot .hm-av, .hm-layer .hm-av { --avs: 24px; flex-shrink: 0; width: var(--avs); height: var(--avs); border-radius: 50%; background: var(--av); color: #fff; display: inline-grid; place-items: center;
  font-size: calc(var(--avs) * .42); font-weight: 600; line-height: 1; letter-spacing: .01em; }

/* ── the weeks: people down the side, days across, today wide ── */
#hmRoot .hm-week, .hm-layer .hm-week { display: flex; flex-direction: column; min-height: 0; height: 100%; }
#hmRoot .hm-wh, .hm-layer .hm-wh, #hmRoot .hm-wr, .hm-layer .hm-wr { display: grid; grid-template-columns: var(--hm-nw) var(--hm-cols); column-gap: 4px; align-items: center; min-width: 0; }
#hmRoot .hm-wh, .hm-layer .hm-wh { flex-shrink: 0; padding: 0 0 6px; border-bottom: 1px solid var(--rule); margin-bottom: 4px; align-items: end; }
#hmRoot .hm-whn, .hm-layer .hm-whn { font-size: 13px; line-height: 16px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hmRoot .hm-whd, .hm-layer .hm-whd { display: flex; flex-direction: column; min-width: 0; padding: 0 4px; }
#hmRoot .hm-whd b, .hm-layer .hm-whd b { font-size: 13px; font-weight: 600; line-height: 16px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hmRoot .hm-whd.today b, .hm-layer .hm-whd.today b { color: var(--ink); }
#hmRoot .hm-whd span, .hm-layer .hm-whd span { font-size: 13px; line-height: 16px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hmRoot .hm-wrows, .hm-layer .hm-wrows { gap: 2px; flex: 1 1 auto; min-height: 0; }
#hmRoot .hm-wr, .hm-layer .hm-wr { min-height: 30px; border-radius: 8px; }
#hmRoot .hm-wr.roomy, .hm-layer .hm-wr.roomy { min-height: 38px; }
#hmRoot .hm-wr.un .hm-wp span, .hm-layer .hm-wr.un .hm-wp span { color: var(--warn-ink); font-weight: 600; }
#hmRoot .hm-wp, .hm-layer .hm-wp { display: flex; align-items: center; gap: 8px; min-width: 0; height: 100%; padding: 0 4px; border: 0; background: none; border-radius: 6px; cursor: pointer;
  font: 400 15px/1.2 Inter, system-ui, sans-serif; color: var(--ink); text-align: left; }
#hmRoot .hm-wp > span:not(.hm-av):not(.hm-wbadge), .hm-layer .hm-wp > span:not(.hm-av):not(.hm-wbadge) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#hmRoot .hm-wbadge, .hm-layer .hm-wbadge { flex-shrink: 0; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--hm-t-wait); color: var(--warn-ink); font-size: 13px; font-weight: 600; line-height: 20px; text-align: center; }
@media (hover: hover) and (pointer: fine) { #hmRoot .hm-wp:hover, .hm-layer .hm-wp:hover { background: var(--hm-wash); } }
#hmRoot .hm-wc, .hm-layer .hm-wc { display: flex; gap: 4px; min-width: 0; padding: 2px 0; align-items: center; }
#hmRoot .hm-we, .hm-layer .hm-we { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 auto; height: 26px; box-sizing: border-box; padding: 0 8px; border-radius: 6px; font-size: 13px; line-height: 16px; white-space: nowrap; overflow: hidden; }
#hmRoot .hm-wr.roomy .hm-we, .hm-layer .hm-wr.roomy .hm-we { height: 32px; font-size: 14px; }
#hmRoot button.hm-we, .hm-layer button.hm-we { border: 0; margin: 0; cursor: pointer; font-family: inherit; color: var(--ink); text-align: left; background: var(--hm-t-quiet); }
#hmRoot .hm-we.plan, .hm-layer .hm-we.plan { background: var(--hm-t-plan); }
#hmRoot .hm-we.site, .hm-layer .hm-we.site { background: color-mix(in oklab, var(--hm-violet) 20%, var(--surface)); }
#hmRoot .hm-we.late, .hm-layer .hm-we.late { background: var(--hm-t-late); }
#hmRoot .hm-we.wait, .hm-layer .hm-we.wait { background: var(--hm-t-wait); }
#hmRoot .hm-we.ok, .hm-layer .hm-we.ok { background: var(--hm-t-ok); }
#hmRoot .hm-we.sug, .hm-layer .hm-we.sug { background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--ink) 24%, transparent); color: var(--ink-soft); }
#hmRoot .hm-we.sug .hm-wt, .hm-layer .hm-we.sug .hm-wt { font-weight: 500; }
@media (hover: hover) and (pointer: fine) { #hmRoot button.hm-we:hover, .hm-layer button.hm-we:hover { filter: brightness(.97); } }
#hmRoot .hm-we.cnt, .hm-layer .hm-we.cnt { flex: 0 1 auto; justify-content: center; font-weight: 500; }
#hmRoot .hm-wt, .hm-layer .hm-wt { flex-shrink: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
#hmRoot .hm-we.late .hm-wt, .hm-layer .hm-we.late .hm-wt { color: var(--accent-ink); }
#hmRoot .hm-wn, .hm-layer .hm-wn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#hmRoot .hm-wplus, .hm-layer .hm-wplus { flex-shrink: 0; height: 26px; padding: 0 6px; border: 0; border-radius: 6px; background: var(--hm-wash); font: 600 13px/1 Inter, system-ui, sans-serif; color: var(--ink-soft); cursor: pointer; }
/* the big week: every day, roomy rows, up to three blocks a day */
.hm-layer .hm-week.big .hm-wr { min-height: 56px; align-items: stretch; border-bottom: 1px solid var(--rule-soft); border-radius: 0; padding: 4px 0; }
.hm-layer .hm-week.big .hm-wc { flex-direction: column; align-items: stretch; justify-content: center; }
.hm-layer .hm-week.big .hm-we { flex: 0 0 auto; height: auto; min-height: 30px; padding: 5px 8px; white-space: normal; flex-direction: column; align-items: flex-start; gap: 1px; }
.hm-layer .hm-week.big .hm-wn { font-weight: 600; overflow-wrap: anywhere; }
.hm-layer .hm-week.big .hm-wh { position: sticky; top: 64px; z-index: 1; background: var(--surface); padding-top: 4px; }
/* a short week: one line per person */
#hmRoot .hm-wl, .hm-layer .hm-wl { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 32px; box-sizing: border-box; padding: 4px 10px 4px 6px; border-radius: 8px; white-space: nowrap; overflow: hidden; }
#hmRoot .hm-wl b, .hm-layer .hm-wl b { flex-shrink: 0; font-size: 14px; font-weight: 600; }
#hmRoot .hm-wl-x, .hm-layer .hm-wl-x { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 14px; color: var(--ink); }
#hmRoot .hm-wl-p, .hm-layer .hm-wl-p { flex-shrink: 0; margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
#hmRoot .hm-wls, .hm-layer .hm-wls { gap: 4px; }
#hmRoot .hm-sec.hm-wgh, .hm-layer .hm-sec.hm-wgh { margin: 0; }
#hmRoot .hm-wgh, .hm-layer .hm-wgh { font-size: 13px; font-weight: 600; line-height: 16px; color: var(--ink-soft); padding: 6px 4px 2px; }
/* a salesperson's own week, on her hours (option 1): days across, 08:00 to 17:00 down, a block per visit */
#hmRoot .hm-hours, .hm-layer .hm-hours { display: flex; flex-direction: column; min-width: 0; }
#hmRoot .hm-hh, .hm-layer .hm-hh, #hmRoot .hm-hlane, .hm-layer .hm-hlane, #hmRoot .hm-hbody, .hm-layer .hm-hbody { display: grid; grid-template-columns: 44px repeat(var(--nd), minmax(0, 1fr)); column-gap: 6px; }
#hmRoot .hm-hh, .hm-layer .hm-hh { height: 26px; align-items: end; padding-bottom: 4px; }
#hmRoot .hm-hh b, .hm-layer .hm-hh b { font-size: 13px; font-weight: 600; line-height: 16px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; }
#hmRoot .hm-hh b.today, .hm-layer .hm-hh b.today { color: var(--ink); }
#hmRoot .hm-hl, .hm-layer .hm-hl { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#hmRoot .hm-hl .hm-we, .hm-layer .hm-hl .hm-we { flex: 0 0 auto; height: 24px; }
#hmRoot .hm-hlab, .hm-layer .hm-hlab { position: relative; }
#hmRoot .hm-hlab span, .hm-layer .hm-hlab span { position: absolute; left: 0; margin-top: -8px; font-size: 12px; line-height: 16px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
#hmRoot .hm-hlab span:first-child, .hm-layer .hm-hlab span:first-child { margin-top: 0; }
#hmRoot .hm-hcol, .hm-layer .hm-hcol { position: relative; min-width: 0; border-radius: 8px; background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hh, 40px) - 1px), var(--rule-soft) calc(var(--hh, 40px) - 1px), var(--rule-soft) var(--hh, 40px)); box-shadow: inset 0 0 0 1px var(--rule-soft); }
#hmRoot .hm-hcol.today, .hm-layer .hm-hcol.today { background-color: color-mix(in oklab, var(--hm-violet) 5%, var(--surface)); }
#hmRoot .hm-hblk, .hm-layer .hm-hblk { position: absolute; left: 3px; right: 3px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 4px 8px; box-sizing: border-box; border-radius: 6px; overflow: hidden; min-width: 0; }
#hmRoot .hm-hblk span, .hm-layer .hm-hblk span { font-size: 12px; line-height: 15px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#hmRoot .hm-hblk b, .hm-layer .hm-hblk b { font-size: 14px; font-weight: 600; line-height: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* a short block (a small screen, a short visit): the time and the place on one line */
#hmRoot .hm-hblk.one, .hm-layer .hm-hblk.one { flex-direction: row; align-items: center; gap: 6px; padding: 0 8px; }
#hmRoot .hm-hblk.one span, .hm-layer .hm-hblk.one span { flex-shrink: 0; max-width: none; }
#hmRoot .hm-hblk.one b, .hm-layer .hm-hblk.one b { flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 16px; }
#hmRoot .hm-now, .hm-layer .hm-now { position: absolute; left: -3px; right: 0; height: 2px; margin-top: -1px; background: var(--ink); z-index: 2; pointer-events: none; }
#hmRoot .hm-now::before, .hm-layer .hm-now::before { content: ""; position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
/* the 9 details of a customer, a dot each: filled = there, hollow = missing */
#hmRoot .hm-dots9, .hm-layer .hm-dots9 { flex-shrink: 0; display: inline-flex; gap: 3px; margin-left: auto; }
#hmRoot .hm-dots9 i, .hm-layer .hm-dots9 i { width: 9px; height: 9px; border-radius: 2px; background: var(--good); }
#hmRoot .hm-dots9 i.no, .hm-layer .hm-dots9 i.no { background: transparent; box-shadow: inset 0 0 0 1.5px var(--warn); }
/* Follow-ups due: the day strip */
#hmRoot .hm-fustrip, .hm-layer .hm-fustrip { display: grid; grid-template-columns: repeat(var(--nd), minmax(0, 1fr)); gap: 4px; margin: 0 0 8px; flex-shrink: 0; }
#hmRoot .hm-fud, .hm-layer .hm-fud { display: flex; flex-direction: column; align-items: center; padding: 4px 0 2px; border-radius: 8px; background: var(--hm-wash); }
#hmRoot .hm-fud span, .hm-layer .hm-fud span { font-size: 12px; line-height: 15px; color: var(--ink-soft); }
#hmRoot .hm-fud b, .hm-layer .hm-fud b { font-size: 15px; font-weight: 600; line-height: 18px; font-variant-numeric: tabular-nums; }
#hmRoot .hm-fud i, .hm-layer .hm-fud i { height: 10px; font-style: normal; font-size: 16px; line-height: 6px; letter-spacing: 1px; color: var(--hm-violet); }
#hmRoot .hm-fud.today, .hm-layer .hm-fud.today { background: var(--hm-t-plan); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--hm-violet) 55%, transparent); }
#hmRoot .hm-fud.late i, .hm-layer .hm-fud.late i { color: var(--accent); }
/* the first thing of a short box, in its tint, its name whole */
#hmRoot button.hm-gl-li.first, .hm-layer button.hm-gl-li.first { flex-direction: column; align-items: flex-start; gap: 0; white-space: normal; padding: 6px 10px; border-radius: 8px; }
#hmRoot button.hm-gl-li.first b, .hm-layer button.hm-gl-li.first b { max-width: 100%; white-space: nowrap; }
#hmRoot button.hm-gl-li.first span, .hm-layer button.hm-gl-li.first span { flex-shrink: 1; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── the lists: the tint says the state, the right-hand word says it in words ── */
#hmRoot .hm-li, .hm-layer .hm-li { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 6px 12px; border-radius: 10px; flex-wrap: wrap; row-gap: 4px; }
#hmRoot .hm-li-lead, .hm-layer .hm-li-lead { flex-shrink: 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
#hmRoot .hm-li-m, .hm-layer .hm-li-m { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
#hmRoot .hm-li-m b, .hm-layer .hm-li-m b { font-size: 15px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hmRoot .hm-li-m span, .hm-layer .hm-li-m span { font-size: 13px; line-height: 1.35; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hmRoot .hm-li-r, .hm-layer .hm-li-r { flex-shrink: 0; margin-left: auto; font-size: 13px; font-weight: 600; line-height: 16px; white-space: nowrap; color: var(--ink-soft); }
#hmRoot .hm-li-r.hm-late, .hm-layer .hm-li-r.hm-late { color: var(--accent-ink); }
/* Flagged machines (19 Nov): the machine, what is wrong on one line; who and when stacked on the right */
#hmRoot .hm-mf, .hm-layer .hm-mf { flex-wrap: nowrap; }
#hmRoot .hm-mf-r, .hm-layer .hm-mf-r { flex: 0 1 auto; max-width: 40%; min-width: 0; margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
#hmRoot .hm-mf-r span, .hm-layer .hm-mf-r span { max-width: 100%; font-size: 13px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); }
#hmRoot .hm-mf-r .hm-mf-by, .hm-layer .hm-mf-r .hm-mf-by { font-weight: 600; color: var(--ink); }
#hmRoot .hm-li-r.hm-warn, .hm-layer .hm-li-r.hm-warn { color: var(--warn-ink); }
#hmRoot .hm-bar, .hm-layer .hm-bar { flex: 1 0 100%; height: 5px; border-radius: 3px; background: color-mix(in oklab, var(--surface) 70%, transparent); overflow: hidden; }
#hmRoot .hm-bar i, .hm-layer .hm-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
#hmRoot .hm-li.wait .hm-bar i, .hm-layer .hm-li.wait .hm-bar i { background: var(--warn); }
#hmRoot .hm-li.plan .hm-bar i, .hm-layer .hm-li.plan .hm-bar i { background: var(--hm-violet); }
#hmRoot button.hm-gl-li.first b, .hm-layer button.hm-gl-li.first b { font-size: 15px; }
.hm-layer .hm-bigitems { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; align-content: start; }
.hm-layer .hm-li.big { min-height: 56px; padding: 10px 14px; }
.hm-layer .hm-biggroups { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.hm-layer .hm-bg { display: flex; flex-direction: column; gap: 6px; }
.hm-layer .hm-bgh { display: flex; align-items: center; gap: 8px; padding: 0 2px 4px; }
.hm-layer .hm-bgh b { font-size: 17px; font-weight: 600; }
.hm-layer .hm-bgh span { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--accent-ink); }

/* ── Shipments arriving: slim rows with the stage track; the first one big in a short box ── */
#hmRoot .hm-trk, .hm-layer .hm-trk { flex-shrink: 0; display: inline-flex; align-items: center; gap: 0; width: 96px; height: 10px; position: relative; }
#hmRoot .hm-trk i, .hm-layer .hm-trk i { position: relative; flex: 1 1 0; height: 10px; display: block; }
#hmRoot .hm-trk i::before, .hm-layer .hm-trk i::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: var(--rule-strong); }
#hmRoot .hm-trk i::after, .hm-layer .hm-trk i::after { content: ""; position: absolute; left: 50%; top: 1px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; box-sizing: border-box; background: var(--surface); border: 1.5px solid var(--rule-strong); }
#hmRoot .hm-trk i.past::before, .hm-layer .hm-trk i.past::before, #hmRoot .hm-trk i.now::before, .hm-layer .hm-trk i.now::before { background: var(--ink); }
#hmRoot .hm-trk i.past::after, .hm-layer .hm-trk i.past::after { background: var(--ink); border-color: var(--ink); }
#hmRoot .hm-trk i.now::after, .hm-layer .hm-trk i.now::after { width: 10px; height: 10px; top: 0; margin-left: -5px; background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ink) 18%, transparent); }
#hmRoot .hm-trk.late i.past::before, .hm-layer .hm-trk.late i.past::before, #hmRoot .hm-trk.late i.now::before, .hm-layer .hm-trk.late i.now::before,
#hmRoot .hm-trk.late i.past::after, .hm-layer .hm-trk.late i.past::after, #hmRoot .hm-trk.late i.now::after, .hm-layer .hm-trk.late i.now::after { background: var(--accent); border-color: var(--accent); }
#hmRoot .hm-trk i:first-child::before, .hm-layer .hm-trk i:first-child::before { left: 50%; }
#hmRoot .hm-trk i:last-child::before, .hm-layer .hm-trk i:last-child::before { right: 50%; }
.hm-layer .hm-trk.big { width: 160px; }
#hmRoot .hm-ship, .hm-layer .hm-ship { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 48px; box-sizing: border-box; padding: 6px 12px; border-radius: 10px; }
#hmRoot .hm-ship-m, .hm-layer .hm-ship-m { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
#hmRoot .hm-ship-m b, .hm-layer .hm-ship-m b { font-size: 15px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hmRoot .hm-ship-s, .hm-layer .hm-ship-s { font-size: 13px; line-height: 1.35; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hmRoot .hm-shipgl, .hm-layer .hm-shipgl { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; border-radius: 10px; min-width: 0; }
#hmRoot .hm-shipgl > b, .hm-layer .hm-shipgl > b { font-size: 20px; font-weight: 650; line-height: 1.15; }
#hmRoot .hm-shipgl-n, .hm-layer .hm-shipgl-n { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
#hmRoot .hm-shipgl-s, .hm-layer .hm-shipgl-s { font-size: 13px; line-height: 16px; color: var(--ink-soft); }

/* ── the cards: a tinted band, the face over it, label beside value ── */
.hm-layer.hm-wcard { overflow: hidden; }
.hm-layer .hm-band { height: 88px; background: var(--hm-t-quiet); }
.hm-layer .hm-band.plan, .hm-layer .hm-band.site { background: var(--hm-t-plan); }
.hm-layer .hm-band.late { background: var(--hm-t-late); }
.hm-layer .hm-band.wait { background: var(--hm-t-wait); }
.hm-layer .hm-band.ok { background: var(--hm-t-ok); }
.hm-layer .hm-band.sug { background: var(--hm-wash); }
.hm-layer .hm-band.tall { height: auto; min-height: 88px; box-sizing: border-box; padding: 24px 72px 18px 28px; display: flex; flex-direction: column; gap: 4px; }
.hm-layer .hm-bh { font-size: 28px; font-weight: 650; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
.hm-layer .hm-band.late .hm-bh { color: var(--accent-ink); }
.hm-layer .hm-band.ok .hm-bh { color: var(--good-deep); }
.hm-layer .hm-bs { font-size: 15px; line-height: 1.35; color: var(--ink); }
.hm-layer .hm-cface { display: flex; align-items: flex-end; gap: 12px; margin: -36px 28px 0; position: relative; }
.hm-layer .hm-cface .hm-av { box-shadow: 0 0 0 4px var(--surface); }
.hm-layer .hm-cface b { font-size: 17px; font-weight: 600; line-height: 1.3; padding-bottom: 6px; }
.hm-layer .hm-cface > span:not(.hm-av) { font-size: 13px; color: var(--ink-soft); padding-bottom: 8px; }
.hm-layer .hm-cb2 { padding-top: 12px; }
.hm-layer .hm-cb2.nb { padding-top: 20px; }
.hm-layer .hm-kv { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); align-items: baseline; }
.hm-layer .hm-cm + .hm-kv { margin-top: 12px; border-top: 1px solid var(--rule-soft); }
.hm-layer .hm-kl { font-size: 13px; line-height: 1.35; color: var(--ink-soft); }
.hm-layer .hm-kvv { font-size: 15px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; display: flex; flex-direction: column; align-items: flex-start; }
.hm-layer .hm-kvv b { font-weight: 600; }
.hm-layer .hm-sub { font-size: 13px; color: var(--ink-soft); }
.hm-layer .hm-sub.in { display: inline; }
.hm-layer .hm-kvv:has(.hm-sub.in) { display: block; }
.hm-layer .hm-dayline { display: block; font-size: 14px; }
.hm-layer .hm-dayline b { font-weight: 600; }
.hm-layer .hm-cf2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 20px; flex-wrap: wrap; }
.hm-layer .hm-cfl, .hm-layer .hm-cfr { display: flex; align-items: center; gap: 8px; }
.hm-layer .hm-cfr { margin-left: auto; }
.hm-layer .hm-btn.hm-cbtn { height: 40px; padding: 0 18px; font-size: 14px; }
.hm-layer .hm-btn.dark { background: var(--accent); color: var(--on-accent); border: 1.5px solid transparent; font-weight: 600; }
.hm-layer .hm-btn.line { background: transparent; color: var(--ink); border: 1.5px solid var(--bt-edge); }
.hm-layer .hm-btn.ok { background: var(--bt-ok); color: var(--bt-ok-ink); border: 1.5px solid transparent; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .hm-layer .hm-btn.dark:hover { background: var(--bt-main-h); } .hm-layer .hm-btn.line:hover { background: var(--bt-line-h); border-color: var(--ink); } .hm-layer .hm-btn.ok:hover { background: var(--bt-ok-h); } }
.hm-layer .hm-btn.dark:active { background: var(--bt-main-p); }
.hm-layer .hm-btn.line:active { background: var(--bt-line-p); }
.hm-layer .hm-btn.ok:active { background: var(--bt-ok-p); }
.hm-layer .hm-btn:active { transform: scale(.97); }
/* can't be pressed: the family's dead grey, never a faded colour */
.hm-layer .hm-btn:disabled { background: var(--bt-off-bg); color: var(--bt-off-ink); border-color: transparent; cursor: not-allowed; transform: none; opacity: 1; }
.hm-layer .hm-linkrow { border: 0; background: none; padding: 0; font: 600 15px/1.45 Inter, system-ui, sans-serif; color: var(--ink); cursor: pointer; text-align: left; }
/* the shipment's track with its words and dates */
.hm-layer .hm-tks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 18px; }
.hm-layer .hm-tk { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.hm-layer .hm-tk i { position: relative; width: 100%; height: 16px; display: block; }
.hm-layer .hm-tk i::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--rule-strong); }
.hm-layer .hm-tk:first-child i::before { left: 50%; }
.hm-layer .hm-tk:last-child i::before { right: 50%; }
.hm-layer .hm-tk i::after { content: ""; position: absolute; left: 50%; top: 3px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; box-sizing: border-box; background: var(--surface); border: 1.5px solid var(--ink-faint); }
.hm-layer .hm-tk.past i::before, .hm-layer .hm-tk.now i::before { background: var(--ink); }
.hm-layer .hm-tk.past i::after { background: var(--ink); border-color: var(--ink); }
.hm-layer .hm-tk.now i::after { width: 16px; height: 16px; top: 0; margin-left: -8px; background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in oklab, var(--ink) 16%, transparent); }
.hm-layer .hm-tks.late .hm-tk.past i::before, .hm-layer .hm-tks.late .hm-tk.now i::before, .hm-layer .hm-tks.late .hm-tk.past i::after, .hm-layer .hm-tks.late .hm-tk.now i::after { background: var(--accent); border-color: var(--accent); }
.hm-layer .hm-tk b { font-size: 13px; font-weight: 500; line-height: 16px; color: var(--ink-soft); }
.hm-layer .hm-tk.now b { color: var(--ink); font-weight: 600; }
.hm-layer .hm-tk span { font-size: 13px; line-height: 16px; color: var(--ink-soft); }
.hm-layer .hm-tks.late .hm-tk.now span { color: var(--accent-ink); font-weight: 600; }
/* a person's week */
.hm-layer .hm-pnote { margin: 8px 0 4px; padding: 12px 14px; border-radius: 10px; background: var(--hm-t-late); display: flex; flex-direction: column; gap: 2px; }
.hm-layer .hm-pnote b { font-size: 15px; color: var(--accent-ink); }
.hm-layer .hm-pnote span { font-size: 13px; color: var(--ink); }
/* each not-reported visit is a press (its report, else its card); exactly one: a Report button beside the count */
.hm-layer .hm-pnh { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.hm-layer .hm-btn.hm-pnbtn { flex: none; }
.hm-layer button.hm-plate { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: 6px; padding: 8px 10px; border: 0; border-radius: 8px;
  background: color-mix(in oklab, var(--surface) 72%, transparent); font: 400 14px/1.35 Inter, system-ui, sans-serif; color: var(--ink); text-align: left; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .hm-layer button.hm-plate:hover { background: var(--surface); } }
.hm-layer .hm-plate span { font-size: 14px; color: var(--ink); min-width: 0; }
.hm-layer .hm-plate b { font-size: 14px; font-weight: 600; color: var(--ink); }
.hm-layer .hm-plate > .hm-ic { flex: none; width: 16px; height: 16px; stroke-width: 2; color: var(--ink-soft); }
.hm-layer .hm-plmore { margin-top: 6px; font-size: 13px; color: var(--ink-soft); }
.hm-layer .hm-pweek { display: flex; flex-direction: column; gap: 6px; }
.hm-layer .hm-pw { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: start; }
.hm-layer .hm-pwd { justify-self: start; margin-top: 6px; padding: 2px 8px; border-radius: 6px; background: var(--hm-wash); font-size: 13px; font-weight: 600; line-height: 18px; color: var(--ink-soft); white-space: nowrap; }
.hm-layer .hm-pwd.today { background: var(--hm-t-plan); color: var(--ink); }
.hm-layer .hm-pwe { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
.hm-layer button.hm-pblk { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 10px; border-radius: 8px; min-width: 0; }
.hm-layer .hm-pblk span { font-size: 13px; line-height: 1.3; color: var(--ink-soft); }
.hm-layer .hm-pblk b { font-size: 15px; font-weight: 600; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-layer .hm-pnone { font-size: 14px; line-height: 34px; }
/* the customer card */
.hm-layer .hm-crows { display: flex; flex-direction: column; }
.hm-layer .hm-crow2 { display: flex; align-items: center; gap: 12px; width: calc(100% + 12px); margin: 0 -6px; padding: 9px 6px; box-sizing: border-box; border: 0; border-bottom: 1px solid var(--rule-soft); border-radius: 6px; background: none; text-align: left; font: inherit; color: var(--ink); }
.hm-layer button.hm-crow2 { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .hm-layer button.hm-crow2:hover { background: var(--hm-wash); } }
.hm-layer .hm-crm { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hm-layer .hm-crm b { font-size: 15px; font-weight: 600; line-height: 1.4; }
.hm-layer .hm-crm span { font-size: 14px; line-height: 1.4; color: var(--ink-soft); overflow-wrap: anywhere; }
.hm-layer .hm-crr { flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.hm-layer .hm-crr.hm-ok { color: var(--good-deep); }
.hm-layer .hm-crr.hm-late { color: var(--accent-ink); }
.hm-layer .hm-cwait { height: 80px; }
.hm-layer .hm-photorow { margin-top: 16px; }
.hm-layer .hm-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.hm-layer .hm-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--hm-wash); display: block; }
/* the big Sales week: Week | Month, and the month with a block per visit */
.hm-layer .hm-seg2 { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--field); margin-right: 8px; }
.hm-layer .hm-seg2 button { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: 500 14px/1 Inter, system-ui, sans-serif; color: var(--ink-soft); cursor: pointer; }
.hm-layer .hm-seg2 button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.hm-layer .hm-xr .hm-appbtn { margin-left: 4px; }
.hm-layer .hm-smc { min-width: 0; min-height: 0; overflow: hidden; border-radius: 8px; padding: 4px 4px 6px; background: var(--hm-wash); display: flex; flex-direction: column; gap: 3px; }
.hm-layer .hm-smc.out { background: transparent; }
.hm-layer .hm-smc.today { box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--hm-violet) 60%, transparent); }
.hm-layer .hm-smc.today .hm-bmn { background: var(--ink); color: var(--on-ink); padding: 1px 7px; }
.hm-layer button.hm-sme { display: flex; align-items: center; gap: 5px; width: 100%; min-width: 0; padding: 2px 6px; border-radius: 5px; font-size: 13px; line-height: 18px; white-space: nowrap; overflow: hidden; }
.hm-layer .hm-sme span:not(.hm-av) { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ── H3: a free cell takes new work (a "+": plan a visit, give a job), quiet until its row is pointed at;
   in the big view it says what it does ── */
#hmRoot .hm-wfree, .hm-layer .hm-wfree { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 26px; height: 26px; margin: 0; padding: 0; box-sizing: border-box;
  border: 1.5px dashed var(--rule-strong); border-radius: 6px; background: transparent; color: var(--ink-soft); cursor: pointer; opacity: 0; transition: opacity .12s ease; }
#hmRoot .hm-wfree .hm-ic, .hm-layer .hm-wfree .hm-ic { width: 14px; height: 14px; stroke-width: 2; flex-shrink: 0; }
#hmRoot .hm-wr:hover .hm-wfree, #hmRoot .hm-wfree:focus-visible, .hm-layer .hm-wr:hover .hm-wfree, .hm-layer .hm-wfree:focus-visible { opacity: 1; }
.hm-layer .hm-wfree.big { width: auto; height: 30px; padding: 0 10px; font: 500 13px/1 Inter, system-ui, sans-serif; opacity: 1; }
@media (hover: hover) and (pointer: fine) { #hmRoot .hm-wfree:hover, .hm-layer .hm-wfree:hover { border-color: var(--ink-soft); color: var(--ink); background: var(--hm-wash); } }
#hmRoot .hm-hcol.plan, .hm-layer .hm-hcol.plan { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { #hmRoot .hm-hcol.plan:hover, .hm-layer .hm-hcol.plan:hover { box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--hm-violet) 45%, transparent); } }
/* "Add follow-up" in the Follow-ups due header, and in its big view */
#hmRoot .hm-btn.hm-wact { height: 28px; padding: 0 12px; }
.hm-layer .hm-xr .hm-btn.hm-wact { height: 40px; padding: 0 16px; font-size: 14px; }

/* ── H3: the forms on the card host (plan a visit, add a follow-up, give a job): label over field, the app's own
   fields (.inp), our own pickers, a foot with what is missing on the left and the one dark button ── */
.hm-layer .hm-fm { padding-bottom: 20px; }
.hm-layer .hm-ff { margin-top: 18px; min-width: 0; }
.hm-layer .hm-ff2 { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 12px; align-items: start; }
.hm-layer .hm-ff2.wide { grid-template-columns: minmax(0, 1fr) 190px; }
.hm-layer .hm-fl { display: block; margin: 0 0 6px; font: 600 13px/1.3 Inter, system-ui, sans-serif; color: var(--ink-soft); }
.hm-layer .hm-fm .inp { width: 100%; box-sizing: border-box; font-family: Inter, system-ui, sans-serif; }
.hm-layer .hm-pick { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; cursor: pointer; color: var(--ink); font-size: 15px; }
.hm-layer .hm-pick.hm-ph { color: var(--ink-soft); }
.hm-layer .hm-pick .hm-dn { width: 16px; height: 16px; stroke-width: 1.8; flex-shrink: 0; color: var(--ink-soft); }
.hm-layer .hm-pick[aria-expanded="true"], .hm-layer .hm-pick.cp-open { border-color: var(--accent); background-color: var(--surface); }
.hm-layer .hm-tbox { display: block; }
.hm-layer .hm-tx { margin-top: 6px; }
.hm-layer .hm-txtbtn { margin-top: 6px; border: 0; background: none; padding: 2px 0; font: 500 13px/1.3 Inter, system-ui, sans-serif; color: var(--ink-soft); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .hm-layer .hm-txtbtn:hover { color: var(--ink); } }
.hm-layer .hm-picked { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; box-sizing: border-box; padding: 8px 6px 8px 14px; border-radius: 10px; background: var(--field); }
.hm-layer .hm-picked b { font-size: 15px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.hm-layer .hm-btn.hm-chg { flex-shrink: 0; height: 32px; }
.hm-layer .hm-fdays { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hm-layer .hm-seg3 { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--field); }
.hm-layer .hm-seg3 button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: 600 13px/1 Inter, system-ui, sans-serif; color: var(--ink-soft); cursor: pointer; }
.hm-layer .hm-seg3 button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }
.hm-layer .hm-dbox { display: inline-flex; }
.hm-layer .hm-btn.hm-dbtn { height: 40px; }
.hm-layer .hm-btn.hm-dbtn.on, .hm-layer .hm-btn.hm-dbtn.cp-open { border-color: var(--ink); }
.hm-layer .hm-fhint { min-height: 17px; margin-top: 8px; font-size: 13px; line-height: 1.3; color: var(--ink-soft); }
.hm-layer .hm-tchips { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-layer .hm-tchip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--surface);
  font: 500 14px/1 Inter, system-ui, sans-serif; color: var(--ink); cursor: pointer; }
.hm-layer .hm-tchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .hm-layer .hm-tchip:hover { border-color: var(--ink-soft); } }
.hm-layer .hm-ffoot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.hm-layer .hm-ferr { margin-right: auto; font-size: 13px; line-height: 1.35; color: var(--accent-ink); }
/* the customer list, the salesperson list and a free day's jobs: the kit's pop-over, roomier rows */
.cg-pop.hm-layer.hm-hits { max-height: 340px; overflow-y: auto; }
.cg-pop.hm-layer.hm-hits .cg-mi { display: flex; align-items: center; gap: 8px; white-space: normal; text-align: left; line-height: 1.35; padding: 8px 10px; font-size: 15px; }
.cg-pop.hm-layer.hm-givelist .cg-mi { flex-direction: column; align-items: flex-start; gap: 1px; }
.cg-pop.hm-layer.hm-givelist .cg-mi b { font-weight: 600; }
.cg-pop.hm-layer.hm-hits .sub { margin: 0 0 0 auto; font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.cg-pop.hm-layer.hm-givelist .sub { margin: 0; }
.cg-pop.hm-layer .hm-hnone, .cg-pop.hm-layer .hm-ghead { padding: 10px 12px 6px; font-size: 13px; color: var(--ink-soft); }
.cg-pop.hm-layer .hm-ghead { font-weight: 600; }
/* H5: whose home the owner is setting, his own or a role's (one line of name, one of who starts there) */
.cg-pop.hm-layer.hm-whose { min-width: 280px; }
.cg-pop.hm-layer.hm-whose .cg-mi { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 8px 12px; white-space: normal; line-height: 1.3; font-size: 15px; }
.cg-pop.hm-layer.hm-whose .cg-mi .sub { margin: 0; font-size: 13px; color: var(--ink-soft); }
.cg-pop.hm-layer.hm-whose .cg-mi[aria-checked="true"] { background: var(--field); font-weight: 600; }
.cg-pop.hm-layer.hm-whose .cg-mi[aria-checked="true"] .sub { font-weight: 400; }

/* ── H4: the weather in the header (the prototype's round 11 pill): our drawn condition, the temperature big, the
   condition and the office, then the rain and the source (BMKG, named as its terms ask) ── */
#hmRoot .hm-wx { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 4px 14px 4px 8px; border-radius: 14px; background: color-mix(in oklab, var(--ink) 4%, transparent); }
:root[data-theme="dark"] #hmRoot .hm-wx { background: color-mix(in oklab, var(--ink) 7%, transparent); }
#hmRoot .hm-wx + .hm-tools { margin-left: 4px; }
#hmRoot .hm-wxi { width: 32px; height: 32px; flex: 0 0 auto; display: block; }
#hmRoot .hm-wxt { font-size: 28px; font-weight: 500; line-height: 1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
#hmRoot .hm-wxl { display: flex; flex-direction: column; gap: 1px; font-size: 13px; line-height: 1.3; white-space: nowrap; }
#hmRoot .hm-wxc { color: var(--ink); font-weight: 500; }
#hmRoot .hm-wxs { display: flex; gap: 6px; color: var(--ink-soft); }
#hmRoot .hm-wxsrc { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ink-soft); }
#hmRoot .hm-wxi .wx-cl { fill: #a3afbf; }
#hmRoot .hm-wxi .wx-sun circle { fill: #f0a20f; }
#hmRoot .hm-wxi .wx-sun line { stroke: #f0a20f; stroke-width: 2; stroke-linecap: round; }
#hmRoot .hm-wxi .wx-dr line { stroke: #2f74d8; stroke-width: 2.2; stroke-linecap: round; }
#hmRoot .hm-wxi .wx-hz line { stroke: #9aa3ae; stroke-width: 2.2; stroke-linecap: round; }
#hmRoot .hm-wxi .wx-moon { fill: #8e9ab0; }
:root[data-theme="dark"] #hmRoot .hm-wxi .wx-cl { fill: #cfd6df; }
:root[data-theme="dark"] #hmRoot .hm-wxi .wx-sun circle { fill: #f6bb3a; }
:root[data-theme="dark"] #hmRoot .hm-wxi .wx-sun line { stroke: #f6bb3a; }
:root[data-theme="dark"] #hmRoot .hm-wxi .wx-dr line { stroke: #6ea8ff; }
:root[data-theme="dark"] #hmRoot .hm-wxi .wx-hz line { stroke: #8d96a1; }
:root[data-theme="dark"] #hmRoot .hm-wxi .wx-moon { fill: #d6dbe6; }

@media (prefers-reduced-motion: reduce) {
  #hmRoot *, .hm-layer * { transition: none !important; }
}

/* ── FROM THE OFFICE, THE NOTICE STRIP (home-notices.js, his pick 10 Nov 2026, design tries/laptop-notice option B):
   one 44px line under the greeting, above the grid, the grid's full width; it folds away when nothing is up. It sits
   inside .kt (the kit's own tokens and parts). Text 14px and up. ── */
#hmRoot .hs-wrap { flex: none; position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr; margin: 0 0 18px;
  transition: grid-template-rows 240ms var(--sp-ease-out), margin-bottom 240ms var(--sp-ease-out), opacity 200ms ease; }
#hmRoot .hs-wrap > * { min-height: 0; min-width: 0; overflow: hidden; }
/* once it stands open, the + hint may hang below it */
#hmRoot .hs-wrap.is-open > * { overflow: visible; }
#hmRoot .hs-wrap.is-gone { grid-template-rows: 0fr; margin-bottom: 0; opacity: 0; }
#hmRoot .hs { --tint: var(--sp-bg); --edge: var(--sp-rule); position: relative; display: flex; align-items: center; gap: 12px; height: 44px; box-sizing: border-box; padding: 0 6px 0 8px;
  background: var(--tint); border: 1px solid var(--edge); border-radius: 12px; transition: background-color 220ms ease, border-color 220ms ease; }
/* urgent: the whole line takes a faint wash of its colour; no edge bar */
#hmRoot .hs.is-red { --tint: color-mix(in srgb, var(--tg-red-b) 55%, var(--sp-bg)); --edge: color-mix(in srgb, var(--tg-red-m) 35%, transparent); }
#hmRoot .hs-go { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 8px 0 0; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
#hmRoot .hs-go:focus-visible { outline: 2px solid var(--sp-red); outline-offset: 1px; }
#hmRoot .hs-go .tg { flex: none; height: 28px; }
#hmRoot .hs-txt { flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hmRoot .hs-t { font-weight: 600; }
#hmRoot .hs-s { margin-left: 10px; color: var(--sp-grey); }
@media (hover: hover) and (pointer: fine) { #hmRoot .hs-go:hover .hs-t { text-decoration: underline 1.5px color-mix(in srgb, var(--sp-ink) 35%, transparent); text-underline-offset: 4px; } }
#hmRoot .hs-meta { flex: none; display: flex; align-items: center; gap: 12px; font-size: 14px; white-space: nowrap; }
#hmRoot .hs-until { color: var(--sp-grey); }
#hmRoot .hs-by { display: flex; align-items: center; gap: 8px; color: var(--sp-ink); }
#hmRoot .hs-fa, .nt-host .nt-fa { flex: none; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 14px; font-weight: 600; display: grid; place-items: center; letter-spacing: -.04em; }
#hmRoot .hs-end { flex: none; display: flex; align-items: center; gap: 2px; }
#hmRoot .hs .k-ic { width: 32px; height: 32px; }
#hmRoot .hs .k-ic svg { width: 18px; height: 18px; }
#hmRoot .hs-x { color: var(--sp-grey); transition: opacity 140ms ease, background-color 140ms ease, color 140ms ease, transform 140ms var(--sp-ease-out); }
#hmRoot .hs-x svg { width: 16px; height: 16px; stroke-width: 2.2; }
/* the take-down X rests hidden by opacity only: nothing moves, and the keyboard still reaches it */
@media (hover: hover) and (pointer: fine) {
  #hmRoot .hs .hs-x { opacity: 0; }
  #hmRoot .hs:hover .hs-x, #hmRoot .hs:focus-within .hs-x { opacity: 1; }
  #hmRoot .hs .k-ic:hover { background: color-mix(in srgb, var(--sp-ink) 8%, transparent); color: var(--sp-ink); }
}
#hmRoot .hs-pg { display: flex; align-items: center; gap: 0; margin-left: 4px; }
/* the take-down X keeps clear of the arrows, so a press meant for back never takes one down */
#hmRoot .hs-x + .hs-pg { margin-left: 14px; }
#hmRoot .hs-n { min-width: 46px; text-align: center; font-size: 14px; color: var(--sp-grey); font-variant-numeric: tabular-nums; white-space: nowrap; }
#hmRoot .hs-add { position: relative; margin-left: 4px; color: var(--sp-ink); }
#hmRoot .hs-add svg { width: 20px; height: 20px; stroke-width: 2; }
/* our own hint, never the browser's title: after a short rest on the +, or on keyboard focus */
#hmRoot .hs-add .nt-hint { position: absolute; right: -4px; top: calc(100% + 6px); z-index: 5; padding: 6px 10px; border-radius: 8px; background: var(--sp-ink); color: var(--sp-bg);
  font-size: 14px; font-weight: 500; line-height: 1.3; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(-2px); transition: opacity 120ms ease, transform 120ms ease-out; }
@media (hover: hover) and (pointer: fine) { #hmRoot .hs-add:hover .nt-hint { opacity: 1; transform: none; transition-delay: 450ms; } }
#hmRoot .hs-add:focus-visible .nt-hint { opacity: 1; transform: none; }

/* the two boxes: the kit's box G over the whole app (the app's pop-ups stand at 1000, its question box 2100) */
.nt-host .pp-ov { z-index: 1000; }
.nt-host .nt-box { width: min(780px, 100%); }
.nt-host .nt-bd { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.nt-host .nt-form { display: grid; gap: 20px; min-width: 0; }
.nt-host .nt-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.nt-host .nt-kind { height: 36px !important; padding: 0 14px !important; border: 0; font: inherit; font-size: 15px !important; cursor: pointer; background: none !important; color: var(--t) !important;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--m) 55%, transparent); border-radius: 999px !important;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 140ms ease-out; }
.nt-host .nt-kind[aria-checked="true"] { background: var(--b) !important; box-shadow: inset 0 0 0 2px var(--m); }
.nt-host .nt-kind:active { transform: scale(.97); }
.nt-host .nt-kind:focus-visible { outline: 2px solid var(--sp-ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .nt-host .nt-kind[aria-checked="false"]:hover { box-shadow: inset 0 0 0 1.5px var(--m); } }
.nt-host .ck-in.is-bad { border-color: var(--sp-red); }
.nt-host .nt-err { margin: 0; font-size: 14px; color: var(--sp-red); }
.nt-host .nt-err[hidden] { display: none; }
.nt-host .nt-pv { position: sticky; top: 0; display: grid; gap: 8px; }
.nt-host .nt-pv-lab { font-size: 14px; font-weight: 500; color: var(--sp-grey); }
/* the preview: the office phone's card in the laptop's size */
.nt-host .nt-card { position: relative; min-width: 0; min-height: 220px; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 6px; padding: 14px 16px 16px;
  border-radius: 16px; background: var(--sp-wash); color: var(--sp-ink); overflow: hidden; }
.nt-host .nt-h { display: flex; align-items: center; gap: 8px; min-height: 32px; min-width: 0; }
.nt-host .nt-h .tg { height: 28px; font-size: 14px; }
.nt-host .nt-until { margin-left: auto; font-size: 14px; color: var(--sp-grey); white-space: nowrap; }
.nt-host .nt-t { margin: 2px 0 0; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.005em; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; }
.nt-host .nt-s { margin: 0; min-height: 0; font-size: 15px; line-height: 1.45; color: var(--sp-grey); white-space: pre-line; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; align-self: start; }
.nt-host .nt-by { grid-row: 4; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sp-ink); min-width: 0; }
.nt-host .nt-byn { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ntPrev .nt-fa { width: 30px; height: 30px; }
#ntPrev .nt-t:empty::before { content: "Title"; color: var(--sp-line); }
#ntPrev .nt-s:empty { display: none; }
/* reading the whole notice */
.nt-host .hs-read { width: min(560px, 100%); }
.nt-host .hs-rmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; color: var(--sp-grey); }
.nt-host .hs-rmeta .tg { height: 28px; }
.nt-host .hs-rbody { margin: 0; font-size: 16px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.nt-host .hs-rbody:empty { display: none; }
.nt-host .hs-rby { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.nt-host .hs-rby .nt-fa { width: 30px; height: 30px; }
@media (max-width: 760px) { .nt-host .nt-bd { grid-template-columns: minmax(0, 1fr); } .nt-host .nt-pv { display: none; } }
/* the kit's message pills (Kit.tell: "Taken down", Undo) on a laptop: the bottom-right corner of the window, above
   the app's pop-ups and its question box, under its own toasts (2200). The phone keeps its rule (phone-app.css). */
@media (min-width: 761px) { .k-tell { position: fixed; left: 0; right: 0; bottom: 0; height: 0; z-index: 2150; } }
@media (prefers-reduced-motion: reduce) { .nt-host .nt-kind, #hmRoot .hs-wrap, #hmRoot .hs, #hmRoot .hs-x, #hmRoot .hs-add .nt-hint { transition-duration: 1ms !important; } }
