/* GENERATED by scripts/build-home-dash.cjs from server/portal.js. Do not edit. */
  /* ── home dashboard (בית) — demo-grade presentation layer ── */
  .hd-tiles { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:14px; }
  .hd-tiles.hd-5 { grid-template-columns:repeat(5,1fr); }
  .hd-tiles > [data-hdgo] { min-width:0; display:flex; }
  .hd-tiles > [data-hdgo] > .hd-tile { flex:1; }
  .hd-tile { background:#fff; border:1px solid #eef2f6; border-radius:16px; padding:14px 16px 12px; box-shadow:0 1px 2px rgba(15,23,42,.04), 0 10px 30px -14px rgba(15,23,42,.12); position:relative; overflow:hidden; min-width:0; transition:transform .18s ease, box-shadow .18s ease; }
  .hd-tile:hover { transform:translateY(-2px); box-shadow:0 12px 30px rgba(0,0,0,.09); }
  .hd-tile::before { content:''; position:absolute; inset-inline:0; top:0; height:3px; background:linear-gradient(to left, var(--tile-accent,var(--gold)), transparent 88%); }
  .hd-tile::after { content:''; position:absolute; top:-34px; inset-inline-end:-34px; width:96px; height:96px; border-radius:50%; background:var(--tile-accent,var(--gold)); opacity:.07; pointer-events:none; }
  .hd-tile .t-head { display:flex; align-items:center; gap:11px; min-width:0; }
  .hd-tile .t-disc { flex:0 0 auto; width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:20px; background:var(--cream); background:color-mix(in srgb, var(--tile-accent, var(--gold)) 13%, #fff); box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--tile-accent, var(--gold)) 22%, transparent); }
  .hd-tile .t-label { font-size:11.5px; color:var(--muted); font-weight:700; letter-spacing:.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .hd-tile .t-value { font-size:26px; font-weight:800; color:var(--tile-num,var(--ink)); line-height:1.25; margin-top:2px; }
  .hd-tile .t-spark { display:block; margin-top:8px; opacity:.9; }
  .hd-tile .t-sub { font-size:11.5px; color:var(--muted); margin-top:3px; }
  .hd-tile .t-sub.up { color:var(--ok); font-weight:700; }
  .hd-tile .t-sub.down { color:#c0392b; font-weight:700; }
  /* Home tab = two views (owner 2026-11-18): live board, and the full data/report dashboard. */
  .home-views { display:inline-flex; gap:4px; padding:4px; margin:4px 0 14px; background:#f1f5f9; border:1px solid #e2e8f0; border-radius:12px; max-width:100%; }
  .home-views button { display:inline-flex; align-items:center; gap:7px; border:0; background:transparent; color:#475569; font:inherit; font-size:14px; font-weight:700; padding:8px 16px; border-radius:9px; cursor:pointer; white-space:nowrap; }
  .home-views button svg { width:16px; height:16px; }
  .home-views button.on { background:#fff; color:#2f45d6; box-shadow:0 1px 2px rgba(15,23,42,.06), 0 4px 12px -6px rgba(15,23,42,.18); }
  .home-views button:not(.on):hover { color:#7457db; }
  @media (pointer:coarse){ .home-views button { min-height:44px; } }
  .hd-grid { display:grid; grid-template-columns:1.45fr 1fr; gap:14px; margin-top:14px; align-items:stretch; }
  .hd-dragwrap { min-width:0; position:relative; }
  /* A module hosting an existing page card (e.g. the source breakdown). */
  .hd-dragwrap > [data-hdslot] > .card { margin:0 !important; height:100%; }
  .hd-dragwrap.hd-collapsed > [data-hdslot] > .card > *:not(:first-child) { display:none !important; }
  .hd-dragwrap.hd-collapsed > [data-hdslot] > .card { padding:10px 14px !important; }
  /* Card chrome sits on the side OPPOSITE the title (RTL: the left edge) so
     it never covers the heading. */
  .hd-ctl { position:absolute; top:11px; inset-inline-end:12px; inset-inline-start:auto; display:flex; gap:3px; align-items:center;
            background:rgba(255,255,255,.92); border:1px solid var(--line,#e2e8f0); border-radius:999px; padding:2px 5px;
            opacity:0; transition:opacity .15s; z-index:3; box-shadow:0 1px 4px rgba(0,0,0,.05); }
  .hd-dragwrap:hover .hd-ctl { opacity:1; }
  .hd-cbtn { border:0; background:transparent; color:#64748b; border-radius:50%; width:20px; height:20px; line-height:1; cursor:pointer; font-size:11px; padding:0; }
  .hd-cbtn:hover { background:#e2e8f0; color:#7457db; }
  .hd-grip { cursor:grab; color:#94a3b8; font-size:12px; user-select:none; padding:0 1px; }
  .hd-card h3 { padding-inline-end:76px; }
  /* Collapsed = only the heading remains; the card must actually SHRINK
     (it used to keep its full height with an empty body). */
  .hd-dragwrap.hd-collapsed > .hd-card > *:not(h3) { display:none !important; }
  .hd-dragwrap.hd-collapsed > .hd-card { padding:10px 16px !important; min-height:0 !important; height:auto !important; }
  .hd-dragwrap.hd-collapsed > .hd-card > h3 { margin:0 !important; padding-bottom:0 !important; border-bottom:0 !important; }
  .hd-dragwrap.hd-collapsed { align-self:start; }
  .hd-grid { align-items:start; }
  .hd-dragwrap:active { cursor:grabbing; }
  .hd-dragwrap > .hd-card { height:100%; margin-top:0 !important; }
  .hd-card { background:#fff; border:1px solid #eef2f6; border-radius:16px; padding:16px 18px; box-shadow:0 1px 2px rgba(15,23,42,.04), 0 10px 30px -14px rgba(15,23,42,.12); min-width:0; }
  .hd-card h3 { margin:0 0 10px; font-size:14.5px; font-weight:800; display:flex; align-items:center; justify-content:space-between; gap:8px; }
  .hd-card h3 .h-sub { font-size:11px; color:var(--muted); font-weight:600; }
  .hd-insight { margin-top:12px; padding:9px 12px; background:var(--cream); border-inline-start:3px solid var(--gold); border-radius:8px; font-size:12px; color:#2f45d6; line-height:1.5; }
  .hd-feed { max-height:330px; overflow-y:auto; }
  .hd-feed-row { display:flex; gap:10px; padding:8px 0; border-bottom:1px solid var(--line); font-size:12.5px; line-height:1.45; align-items:flex-start; }
  .hd-feed-row:last-child { border-bottom:none; }
  .hd-feed-row .f-ic { flex:0 0 auto; width:28px; height:28px; border-radius:9px; background:var(--cream); display:flex; align-items:center; justify-content:center; font-size:14px; }
  .hd-feed-row .f-t { font-size:11px; color:#94a3b8; margin-top:1px; }
  .hd-avatar { width:30px; height:30px; border-radius:50%; background:linear-gradient(135deg,var(--gold),var(--gold-d)); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:11px; flex:0 0 auto; }
  .hd-avatar.hd-av1 { background:linear-gradient(135deg,#3f5efb,#2f45d6); }
  .hd-avatar.hd-av2 { background:linear-gradient(135deg,#a9b8ff,#3f5efb); }
  .hd-avatar.hd-av3 { background:linear-gradient(135deg,#3f5efb,#7457db); }
  .hd-pill { display:inline-block; padding:2px 9px; border-radius:999px; font-size:11px; font-weight:800; white-space:nowrap; }
  .hd-lead-row { display:flex; align-items:center; gap:10px; padding:8px 6px; margin:0 -6px; border-radius:10px; border-bottom:1px solid var(--line); font-size:13px; min-width:0; transition:background .15s ease; }
  .hd-lead-row:hover { background:var(--cream); }
  .hd-lead-row:last-child { border-bottom:none; }
  .hd-funnel-row { display:grid; grid-template-columns:92px 1fr 44px; align-items:center; gap:10px; margin-bottom:8px; }
  .hd-funnel-row .fr-label { font-size:12px; font-weight:600; color:#334155; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .hd-funnel-row .fr-track { background:var(--cream); border-radius:999px; height:23px; overflow:hidden; position:relative; }
  .hd-funnel-row .fr-fill { height:100%; border-radius:999px; min-width:40px; transition:width .7s cubic-bezier(.22,.61,.36,1); }
  .hd-funnel-row .fr-in { position:absolute; inset-inline-start:4px; top:50%; transform:translateY(-50%); background:rgba(255,255,255,.9); border-radius:999px; padding:1px 8px; font-size:10.5px; font-weight:800; color:#7457db; box-shadow:0 1px 2px rgba(0,0,0,.1); }
  .hd-funnel-row .fr-n { font-size:12px; color:var(--muted); font-weight:700; text-align:left; }
  .hg-name { background:linear-gradient(90deg,var(--gold-d,#2f45d6),var(--gold,#3f5efb)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
  .hd-in { animation:hdIn .45s ease both; }
  @keyframes hdIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
  @media (prefers-reduced-motion: reduce) { .hd-in { animation:none; } .hd-funnel-row .fr-fill { transition:none; } .hd-tile { transition:none; } }
  @media (max-width:860px) {
    .hd-tiles, .hd-tiles.hd-5 { grid-template-columns:repeat(2,1fr); }
    .hd-tiles.hd-5 > :last-child { grid-column:1 / -1; }
    .hd-grid { grid-template-columns:1fr; }
    .hd-tile .t-value { font-size:22px; }
    /* Touch has no hover: the card controls must always be visible, and the
       drag grip goes away (HTML5 DnD doesn't work on touch anyway). */
    .hd-ctl { opacity:1 !important; }
    .hd-grip { display:none; }
    .hd-dragwrap[draggable] { }
    /* 24 hour-bars are unreadable at phone width — let that strip scroll. */
    .hd-card .hd-hours { overflow-x:auto; }
    .hd-card .hd-hours > div { min-width:520px; }
  }
  @media (max-width:520px) {
    .hd-gauges > div { min-width:130px !important; }
    .hd-gauges > div > div:first-child { width:126px !important; height:66px !important; }
    .hd-gauges > div > div:first-child > div:first-child { width:126px !important; height:126px !important; }
    .hd-gauges > div > div:first-child > div:nth-child(2) { inset:22px 22px auto 22px !important; height:104px !important; }
    .hd-tiles, .hd-tiles.hd-5 { grid-template-columns:1fr 1fr; gap:8px; }
    .hd-tile { padding:11px 12px 10px; }
    .hd-card { padding:14px 13px; }
    .hd-card h3 { font-size:14px; }
  }
