  :root{
    --bg:#FFF8F2;
    --surface:#FFFFFF;
    --surface-2:#FDF3EC;
    --border:#EBDFEF;
    --border-strong:#DCC9E4;
    --ink:#1E1147;
    --ink-2:#5B5480;
    --ink-3:#7F78A3;
    --accent:#FF3E6B;
    --accent-ink:#C21447;
    --accent-soft:#FFE3EB;
    --good:#0E9F6E;
    --good-soft:#DFF5EC;
    --good-ink:#0B7A56;
    --ready:#3D7BE0;
    --ready-soft:#E3EDFD;
    --ready-ink:#1F57B8;
    --warn:#D38A12;
    --warn-soft:#FFF1D6;
    --warn-ink:#8A5800;
    --todo-fill:#DCD5EA;
    --neutral-soft:#EEEAF8;
    --neutral-ink:#544F79;
    --danger:#B3261E;
    --shadow:0 1px 2px rgba(30,17,71,.05), 0 8px 24px rgba(30,17,71,.06);
    --r-sm:10px; --r-md:16px; --r-lg:20px; --r-pill:999px;
    color-scheme:light;
  }
  /* Night mode: light by default on every device; the user turns it on with the button at the bottom (theme.js) */
  :root[data-theme="dark"]{
    --bg:#0A0730; --surface:#140F5E; --surface-2:#180F55; --border:#332D8F; --border-strong:#44409E;
    --ink:#FFE3EA; --ink-2:#C2BCEE; --ink-3:#A39CD6;
    --accent:#FF5C82; --accent-ink:#FF88A2; --accent-soft:rgba(255,62,107,.18);
    --good:#3FE0B5; --good-soft:rgba(63,224,181,.16); --good-ink:#3FE0B5; --ready:#7FB2FF; --ready-soft:rgba(127,178,255,.16); --ready-ink:#9CC3FF;
    --warn:#FFC94A; --warn-soft:rgba(255,201,74,.16); --warn-ink:#FFC94A;
    --todo-fill:#3A3595; --neutral-soft:rgba(143,172,255,.16); --neutral-ink:#B7C4FF;
    --danger:#FF7A70;
    --shadow:0 1px 2px rgba(0,0,0,.2), 0 8px 24px rgba(0,0,0,.35);
    color-scheme:dark;
  }

  *{box-sizing:border-box;}
  body{
    margin:0; background:var(--bg); color:var(--ink);
    font-family:"Heebo","Rubik",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
    font-size:15px; line-height:1.5; -webkit-font-smoothing:antialiased;
  }
  .page{ max-width:980px; margin:0 auto; padding:0 16px calc(64px + env(safe-area-inset-bottom,0px)); direction:rtl; }
  h1,h2,h3,.num{ font-family:"Rubik","Heebo",system-ui,sans-serif; }
  h1,h2,h3{ margin:0; text-wrap:balance; }
  .num{ font-variant-numeric:tabular-nums; }
  a{ color:var(--accent-ink); }
  button{ font:inherit; color:inherit; }
  input,select,textarea{ font:inherit; color:inherit; }
  svg{ display:block; }
  :focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
  [hidden]{ display:none!important; }

  /* top bar */
  .topbar{ position:sticky; top:env(safe-area-inset-top,0px); z-index:6; background:var(--bg); border-bottom:1px solid var(--border); padding:14px 0 12px; }
  .topbar-row{ display:flex; align-items:center; gap:10px; }
  .brand-btn{ flex:1; min-width:0; text-align:right; background:none; border:none; padding:2px 0; cursor:pointer; display:flex; flex-direction:column; align-items:flex-start; gap:1px; }
  .brand-name{ font-size:18px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
  .brand-name.placeholder{ color:var(--ink-3); font-weight:600; }
  .brand-sub{ font-size:12px; color:var(--ink-3); font-weight:500; }
  .icon-btn{ flex:0 0 auto; width:38px; height:38px; border-radius:var(--r-pill); border:1px solid var(--border); background:var(--surface); display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--ink-2); transition:background .15s, border-color .15s; }
  .icon-btn:hover{ background:var(--surface-2); border-color:var(--border-strong); }
  .icon-btn.sm{ width:30px; height:30px; }
  .icon-btn.danger:hover{ color:var(--danger); }
  .icon-btn.confirm{ background:var(--danger); border-color:var(--danger); color:#fff; }
  .icon-btn:disabled{ opacity:.35; cursor:default; }

  /* night mode button at the bottom of the app */
  .app-footer{ display:flex; justify-content:center; margin-top:28px; }
  .theme-btn{ display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border-radius:var(--r-pill); border:1px solid var(--border-strong); background:var(--surface); color:var(--ink-2); font-weight:700; font-size:13px; cursor:pointer; }
  .theme-btn:hover{ color:var(--ink); border-color:var(--accent); }

  /* top menu: labelled items; on narrow screens they fold into a "תפריט" dropdown */
  .topnav{ position:relative; flex:0 1 auto; min-width:0; }
  .nav-menu{ display:flex; align-items:center; gap:4px; }
  .nav-form{ display:contents; }
  .nav-item{ display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border-radius:var(--r-pill); border:1px solid transparent; background:none; color:var(--ink-2); font-weight:700; font-size:13px; cursor:pointer; text-decoration:none; white-space:nowrap; transition:background .15s, color .15s; }
  .nav-item:hover{ background:var(--surface-2); color:var(--ink); }
  .nav-item.current{ background:var(--ink); color:var(--bg); }
  #viewModeBtn.active{ background:var(--ready-soft); color:var(--ready-ink); border-color:var(--ready); }
  .nav-toggle{ display:none; align-items:center; gap:6px; padding:8px 14px; border-radius:var(--r-pill); border:1px solid var(--border-strong); background:var(--surface); color:var(--ink); font-weight:700; font-size:13px; cursor:pointer; }
  .nav-panel-head{ display:none; }
  @media (max-width:820px){
    .nav-toggle{ display:inline-flex; }
    /* full-screen panel that slides in from the left */
    .nav-menu{ position:fixed; inset:0; z-index:50; display:flex; flex-direction:column; align-items:stretch; gap:4px;
      padding:calc(14px + env(safe-area-inset-top,0px)) 18px calc(24px + env(safe-area-inset-bottom,0px));
      background:var(--bg); overflow-y:auto; transform:translateX(-100%); visibility:hidden; transition:transform .25s ease, visibility .25s; }
    .topnav.open .nav-menu{ transform:translateX(0); visibility:visible; }
    .nav-panel-head{ display:flex; align-items:center; justify-content:space-between; padding:4px 4px 14px; margin-bottom:6px; border-bottom:1px solid var(--border); }
    .nav-panel-title{ font-size:20px; font-weight:800; }
    .nav-close{ width:42px; height:42px; border-radius:var(--r-pill); border:1px solid var(--border-strong); background:var(--surface); color:var(--ink); display:flex; align-items:center; justify-content:center; cursor:pointer; }
    .nav-item{ justify-content:flex-start; gap:12px; padding:14px 14px; border-radius:var(--r-md); font-size:17px; }
    .nav-item svg{ width:22px; height:22px; }
    body.nav-open{ overflow:hidden; }
  }
  @media (prefers-reduced-motion: reduce){ .nav-menu{ transition:none; } }

  /* hero */
  .hero{ display:flex; gap:18px; align-items:center; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:18px; margin:16px 0; box-shadow:var(--shadow); }
  .ring-wrap{ position:relative; flex:0 0 auto; }
  .ring-track{ fill:none; stroke:var(--border); }
  .ring-fill{ fill:none; stroke:var(--good); stroke-linecap:round; transition:stroke-dashoffset .4s ease; }
  .ring-label{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
  .ring-pct{ font-weight:800; line-height:1; }
  .ring-cap{ font-size:11px; color:var(--ink-3); font-weight:600; margin-top:3px; }
  .hero-body{ flex:1; min-width:0; }
  .eyebrow{ font-size:12.5px; font-weight:700; color:var(--ink-2); margin:0 0 6px; }
  .hero-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:6px; }
  .hero-top .eyebrow{ margin:0; }
  .hero-views{ display:inline-flex; align-items:center; gap:5px; font-size:12.5px; font-weight:700; color:var(--ready-ink); background:var(--ready-soft); border-radius:var(--r-pill); padding:4px 10px; }
  .count-views{ display:inline-flex; align-items:center; gap:4px; }
  .hero-count{ font-size:14px; color:var(--ink-2); margin:0 0 4px; }
  .hero-sub{ font-size:13px; color:var(--ink-2); margin:0 0 2px; }
  .hero-sub b{ color:var(--ink); }
  .hero-sub:last-of-type{ margin-bottom:10px; }
  .tip{ position:fixed; z-index:40; pointer-events:none; background:var(--ink); color:var(--bg); font-size:12px; font-weight:700; padding:5px 10px; border-radius:var(--r-sm); white-space:nowrap; box-shadow:var(--shadow); direction:rtl; }
  .sbar > span[data-tip]{ cursor:default; }
  .hero-count b{ color:var(--ink); }
  .goal-bar-track{ height:8px; border-radius:var(--r-pill); background:var(--border); overflow:hidden; margin-bottom:6px; }
  .goal-bar-fill{ height:100%; background:var(--accent); border-radius:var(--r-pill); transition:width .4s ease; }
  .goal-text{ font-size:12.5px; color:var(--ink-3); }
  .goal-text b{ color:var(--ink-2); font-weight:700; }
  .goal-done{ color:var(--good-ink); font-weight:700; }

  details.info{ background:var(--surface-2); border:1px solid var(--border); border-radius:var(--r-md); margin-bottom:18px; }
  details.info summary{ list-style:none; cursor:pointer; padding:12px 14px; font-weight:700; font-size:13.5px; color:var(--ink-2); display:flex; align-items:center; gap:8px; }
  details.info summary::-webkit-details-marker{ display:none; }
  details.info summary .chev{ margin-inline-start:auto; transition:transform .15s; color:var(--ink-3); }
  details.info[open] summary .chev{ transform:rotate(180deg); }
  .info.intro{ background:var(--surface-2); border:1px solid var(--border); border-radius:var(--r-md); margin-bottom:18px; }
  .intro-head{ display:flex; align-items:center; gap:8px; padding:10px 10px 4px 14px; font-size:13.5px; color:var(--ink-2); }
  .intro-head .icon-btn{ margin-inline-start:auto; }
  .info-body{ padding:0 14px 14px; font-size:13px; color:var(--ink-2); }
  .info-body ol{ margin:6px 0 0; padding-inline-start:20px; }
  .info-body li{ margin-bottom:4px; }

  /* section header */
  .sec-head{ display:flex; align-items:flex-end; gap:12px; flex-wrap:wrap; margin:6px 0 12px; }
  .sec-head-text{ flex:1 1 220px; min-width:0; }
  .sec-title{ font-size:17px; font-weight:800; }
  .sec-sub{ font-size:12.5px; color:var(--ink-3); margin-top:2px; }
  .pill-btn{ display:inline-flex; align-items:center; gap:6px; padding:8px 14px; border-radius:var(--r-pill); border:1px solid var(--border-strong); background:var(--surface); color:var(--ink-2); font-weight:700; font-size:12.5px; cursor:pointer; white-space:nowrap; }
  .pill-btn:hover{ background:var(--surface-2); }
  .pill-btn.active{ background:var(--ink); color:var(--bg); border-color:var(--ink); }

  .legend{ display:flex; gap:14px; flex-wrap:wrap; font-size:12px; color:var(--ink-2); margin-bottom:12px; }
  .legend span{ display:inline-flex; align-items:center; gap:6px; }
  .legend i{ width:10px; height:10px; border-radius:3px; display:inline-block; }
  .sw-done{ background:var(--good); } .sw-ready{ background:var(--ready); } .sw-prog{ background:var(--warn); } .sw-todo{ background:var(--todo-fill); }

  /* stacked status bar */
  .sbar{ display:flex; gap:2px; height:8px; border-radius:var(--r-pill); overflow:hidden; background:var(--border); }
  .sbar span{ display:block; height:100%; min-width:4px; }
  .sbar .s-done{ background:var(--good); }
  .sbar .s-ready{ background:var(--ready); }
  .sbar .s-prog{ background:var(--warn); }
  .sbar .s-todo{ background:var(--todo-fill); }
  .sbar.thin{ height:5px; }

  /* process grid */
  .grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:12px; }
  .tile{ position:relative; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:16px; box-shadow:var(--shadow); cursor:pointer; display:flex; flex-direction:column; gap:12px; transition:border-color .15s, transform .15s; }
  .tile:hover{ border-color:var(--border-strong); transform:translateY(-1px); }
  .tile.reordering{ cursor:default; transform:none; }
  .tile-head{ display:flex; align-items:center; gap:12px; }
  .prio{ flex:0 0 auto; width:26px; height:26px; border-radius:var(--r-pill); background:var(--accent-soft); color:var(--accent-ink); font-size:12.5px; font-weight:800; display:flex; align-items:center; justify-content:center; }
  .tile-name-wrap{ flex:1; min-width:0; }
  .tile-name{ font-size:16px; font-weight:800; line-height:1.3; }
  .tile-meta{ font-size:12px; color:var(--ink-3); margin-top:2px; }
  .tile-roles{ display:flex; flex-direction:column; gap:8px; border-top:1px dashed var(--border); padding-top:10px; }
  .mini-role{ display:grid; grid-template-columns:1fr auto; gap:3px 10px; align-items:center; }
  .mini-role-name{ font-size:12.5px; color:var(--ink-2); font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .mini-role-pct{ font-size:12px; font-weight:700; color:var(--ink-2); }
  .mini-role .sbar{ grid-column:1 / -1; }
  .tile-more{ font-size:11.5px; color:var(--ink-3); }
  .tile-empty{ font-size:12px; color:var(--ink-3); }
  .tile-cta{ font-size:12px; font-weight:700; color:var(--accent-ink); display:flex; align-items:center; gap:4px; margin-top:auto; }
  .move-btns{ display:flex; gap:4px; flex:0 0 auto; }
  .grip{ flex:0 0 auto; width:26px; height:32px; margin-inline-start:-6px; display:flex; align-items:center; justify-content:center; color:var(--ink-3); cursor:grab; touch-action:none; border-radius:8px; }
  .grip:hover{ background:var(--surface-2); color:var(--ink); }
  .sort-dragging{ position:relative; z-index:3; outline:2px dashed var(--accent); outline-offset:3px; box-shadow:0 16px 36px rgba(30,17,71,.2); }
  .sort-dragging, .sort-dragging *{ cursor:grabbing!important; }
  .drag-all > [data-sort-id]{ cursor:grab; touch-action:none; border-style:dashed; border-color:var(--border-strong); }
  .drag-all > [data-sort-id]:hover{ border-color:var(--accent); }
  .drag-all .grip{ color:var(--accent-ink); }
  body.is-sorting{ user-select:none; -webkit-user-select:none; }
  body.is-sorting .tile:hover{ transform:none; }
  .tile-add{ border:1.5px dashed var(--border-strong); background:transparent; box-shadow:none; align-items:center; justify-content:center; color:var(--ink-2); font-weight:700; font-size:13.5px; min-height:140px; }

  /* process page */
  /* core mechanisms: 5 fixed cards in customer-journey order */
  .mech-section{ margin-top:18px; }
  .mech-flow{ display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:14px; }
  .mech-card{ position:relative; display:flex; flex-direction:column; gap:10px; background:var(--surface); border:1px solid var(--border); border-top:4px solid var(--accent); border-radius:var(--r-lg); padding:14px; box-shadow:var(--shadow); cursor:pointer; transition:transform .15s, border-color .15s; }
  .mech-card:hover{ transform:translateY(-2px); border-color:var(--border-strong); border-top-color:var(--accent); }
  .mech-card:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
  .mech-card:not(:last-child)::after{ content:""; position:absolute; top:50%; inset-inline-end:-12px; width:10px; height:10px; border-top:2px solid var(--border-strong); border-left:2px solid var(--border-strong); transform:translateY(-50%) rotate(-45deg); }
  .mech-top{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 8px; }
  .mech-title{ order:3; flex:1 0 100%; min-width:0; }
  .mech-num{ width:30px; height:30px; border-radius:50%; background:var(--ink); color:var(--bg); font-weight:800; font-size:14px; display:flex; align-items:center; justify-content:center; }
  .mech-name{ font-size:16px; font-weight:800; line-height:1.3; }
  .mech-card .tile-roles{ margin-top:auto; }
  @media (max-width:1100px){ .mech-flow{ grid-template-columns:repeat(3, minmax(0,1fr)); } .mech-card::after{ display:none; } }
  @media (max-width:680px){
    .mech-flow{ grid-template-columns:1fr; gap:10px; }
    .mech-card{ padding:12px 14px; gap:8px; }
    .mech-top{ flex-wrap:nowrap; gap:12px; }
    .mech-title{ order:0; flex:1 1 auto; }
  }
  .hero.mech{ border-top:4px solid var(--accent); }
  .proc-head{ margin-top:28px; padding-top:18px; border-top:1px solid var(--border); }

  /* guide list of a mechanism / process: a summary header that opens the list */
  .glist{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow); padding:14px; margin-bottom:12px; }
  .glist-head{ display:flex; align-items:center; gap:12px; cursor:pointer; margin-bottom:10px; border-radius:var(--r-sm); }
  .glist-head:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
  .glist-title{ flex:1; min-width:0; }
  .glist-title .sec-title{ margin-bottom:2px; }
  .glist-chev{ display:inline-flex; color:var(--ink-2); transition:transform .2s; }
  .glist.open .glist-chev{ transform:rotate(180deg); }
  .glist-body{ margin-top:14px; padding-top:14px; border-top:1px dashed var(--border); }
  .multi.role-filter{ flex:0 1 260px; min-width:180px; border-radius:var(--r-pill); background:var(--surface); }
  .multi.role-filter .multi-toggle{ padding:7px 12px; }
  .role-tag{ display:inline-flex; align-items:center; font-size:11px; font-weight:700; color:var(--neutral-ink); background:var(--neutral-soft); border-radius:var(--r-pill); padding:2px 8px; }

  /* multi-select of roles in the guide drawer */
  .multi{ position:relative; border:1px solid var(--border-strong); border-radius:var(--r-sm); background:var(--bg); }
  /* on a page the list floats over the content; inside the guide drawer it opens in place */
  [data-picker] .multi-list{ position:absolute; top:calc(100% + 4px); inset-inline:0; z-index:15; min-width:220px; background:var(--surface); border:1px solid var(--border-strong); border-radius:var(--r-sm); box-shadow:0 12px 30px rgba(30,17,71,.16); }
  .multi-clear{ align-self:flex-start; background:none; border:none; color:var(--accent-ink); font-weight:700; font-size:12.5px; cursor:pointer; padding:4px 10px; }
  .multi-toggle{ width:100%; display:flex; align-items:center; gap:8px; padding:9px 12px; background:none; border:none; cursor:pointer; color:var(--ink-2); text-align:right; }
  .multi-toggle svg{ flex:0 0 auto; transition:transform .2s; }
  .multi.open .multi-toggle svg{ transform:rotate(180deg); }
  .multi-value{ flex:1; min-width:0; display:flex; gap:5px; flex-wrap:wrap; }
  .multi-ph{ color:var(--ink-3); font-size:13.5px; }
  .multi-list{ border-top:1px solid var(--border); padding:8px; display:flex; flex-direction:column; gap:4px; max-height:260px; overflow-y:auto; }
  .multi-list .check-row{ padding:7px 10px; border-color:transparent; }
  .multi-list .check-row:hover{ background:var(--surface-2); }
  .multi-add{ display:flex; gap:6px; margin-top:4px; padding-top:8px; border-top:1px dashed var(--border); }
  .multi-add input{ flex:1; min-width:0; padding:8px 10px; border-radius:var(--r-sm); border:1px solid var(--border-strong); background:var(--surface); color:var(--ink); }

  /* general processes: a separate, lighter zone */
  .gen-section{ margin-top:22px; background:var(--surface-2); border:1.5px dashed var(--border-strong); border-radius:var(--r-lg); padding:10px 14px; }
  .gen-head{ display:flex; align-items:center; gap:12px; cursor:pointer; border-radius:var(--r-sm); }
  .gen-head:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
  .gen-head-text{ flex:1; min-width:0; }
  .gen-head .sec-title{ font-size:15px; }
  .gen-section.open .glist-chev{ transform:rotate(180deg); }
  .gen-body{ margin-top:10px; padding-top:10px; border-top:1px dashed var(--border-strong); }
  .gen-tools{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
  .gen-list{ display:flex; flex-direction:column; gap:6px; }
  .gen-row{ display:flex; align-items:center; gap:10px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); padding:8px 12px; cursor:pointer; color:var(--ink-3); }
  .gen-row:hover{ border-color:var(--border-strong); }
  .gen-row:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
  .gen-main{ flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
  .gen-name{ font-size:14.5px; font-weight:800; color:var(--ink); }
  .gen-pct{ font-size:13px; font-weight:800; color:var(--ink-2); }
  .gen-quick{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-top:12px; font-size:12.5px; color:var(--ink-3); }

  /* grouped pickers (roles ↔ mechanisms / processes) */
  .chip-group{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; width:100%; }
  .chip-group + .chip-group{ margin-top:6px; }
  .chip-group-label{ font-size:11.5px; font-weight:800; color:var(--ink-3); min-width:120px; }
  .check-group{ font-size:12px; font-weight:800; color:var(--ink-3); margin:10px 0 2px; }
  .check-group:first-child{ margin-top:0; }
  .field-hint{ display:block; font-size:11.5px; color:var(--ink-3); margin-top:6px; }
  .goal-lock{ margin:-6px 0 14px; }
  .period-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:-4px 0 16px; }
  .period-text{ font-size:12.5px; color:var(--ink-2); font-weight:600; }
  .ghost-btn.armed{ border-color:var(--accent); color:var(--accent-ink); background:var(--accent-soft); }
  .field input:disabled{ opacity:.7; cursor:not-allowed; }

  .back-btn{ display:inline-flex; align-items:center; gap:6px; background:none; border:none; color:var(--ink-2); font-weight:700; font-size:13px; cursor:pointer; padding:14px 0 0; }
  .back-btn:hover{ color:var(--ink); }
  .area-hero-title{ font-size:22px; font-weight:800; line-height:1.25; margin-bottom:6px; }
  .hero.area{ position:relative; padding-inline-end:88px; }
  .area-hero-actions{ position:absolute; top:14px; inset-inline-end:14px; display:flex; gap:6px; }
  .count-row{ display:flex; gap:12px; flex-wrap:wrap; font-size:12.5px; color:var(--ink-2); margin-top:8px; }
  .count-row b{ font-weight:800; }

  .toolbar{ display:flex; gap:8px; margin-bottom:14px; flex-wrap:wrap; align-items:center; }
  .search{ flex:1 1 180px; position:relative; }
  .search input{ width:100%; padding:9px 12px 9px 34px; border-radius:var(--r-pill); border:1px solid var(--border); background:var(--surface); color:var(--ink); }
  .search svg{ position:absolute; inset-inline-end:10px; top:50%; transform:translateY(-50%); color:var(--ink-3); pointer-events:none; }
  .chips{ display:flex; gap:6px; flex-wrap:wrap; }
  .chip-filter{ padding:8px 13px; border-radius:var(--r-pill); border:1px solid var(--border); background:var(--surface); color:var(--ink-2); font-weight:600; font-size:12.5px; cursor:pointer; white-space:nowrap; }
  .chip-filter.active{ background:var(--ink); color:var(--bg); border-color:var(--ink); }

  .role-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); margin-bottom:12px; box-shadow:var(--shadow); padding:14px; }
  .role-card-head{ display:flex; align-items:center; gap:10px; margin-bottom:10px; flex-wrap:wrap; }
  .role-card-title{ flex:1 1 140px; min-width:0; }
  .role-name{ font-size:15px; font-weight:800; }
  .role-meta{ font-size:12px; color:var(--ink-3); }
  .role-pct{ font-size:18px; font-weight:800; }
  .role-actions{ display:flex; gap:5px; }
  .role-card .sbar{ margin-bottom:12px; }

  .guide-row{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:start; gap:10px; padding:9px 10px; border-radius:var(--r-md); background:var(--surface-2); margin-bottom:6px; cursor:pointer; transition:background .15s; }
  .guide-row:hover{ background:var(--accent-soft); }
  .status-pill{ flex:0 0 auto; display:flex; align-items:center; gap:5px; padding:5px 10px; border-radius:var(--r-pill); font-size:11.5px; font-weight:700; border:1px solid transparent; cursor:pointer; }
  .status-pill.todo{ background:var(--neutral-soft); color:var(--neutral-ink); }
  .status-pill.progress{ background:var(--warn-soft); color:var(--warn-ink); }
  .status-pill.done{ background:var(--good-soft); color:var(--good-ink); }
  .status-pill.ready{ background:var(--ready-soft); color:var(--ready-ink); }
  .status-pill.static{ cursor:default; }
  .guide-views{ display:inline-flex; align-items:center; gap:3px; font-size:11px; color:var(--ink-3); font-weight:600; }

  .icon-btn[hidden]{ display:none; }
  /* view mode (see the account as a viewer) */
  .banner.view{ background:var(--ready-soft); color:var(--ready-ink); }
  .linkish{ background:none; border:none; color:inherit; font-weight:800; text-decoration:underline; cursor:pointer; padding:0; margin-inline-start:auto; }
  .brand-btn.static{ cursor:default; }
  .multi.readonly{ padding:9px 12px; }

  /* team page */
  .levels{ display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:8px; margin:0 0 16px; }
  .level{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); padding:10px 12px; font-size:12.5px; color:var(--ink-2); display:flex; flex-direction:column; gap:2px; }
  .level b{ color:var(--ink); font-size:13.5px; }
  .members{ display:flex; flex-direction:column; gap:10px; }
  .member{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:14px; box-shadow:var(--shadow); }
  .member-head{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
  .member-who{ flex:1 1 200px; min-width:0; }
  .member-name{ font-weight:800; font-size:14.5px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
  .member-email{ font-size:12px; color:var(--ink-3); text-align:right; }
  .member-meta{ font-size:11.5px; color:var(--ink-3); margin-top:2px; }
  .member-level{ padding:8px 12px; border-radius:var(--r-pill); border:1px solid var(--border-strong); background:var(--surface); color:var(--ink); font-weight:700; }

  /* comments in the guide read view */
  .gview-comments{ margin-top:14px; border-top:1px solid var(--border); padding-top:12px; flex:0 0 auto; max-height:38vh; overflow-y:auto; }
  .gview-comments h4{ font-size:14px; font-weight:800; margin-bottom:8px; }
  .comment{ background:var(--surface-2); border-radius:var(--r-md); padding:9px 12px; margin-bottom:8px; }
  .comment-head{ display:flex; align-items:center; gap:8px; font-size:12px; color:var(--ink-3); }
  .comment-head b{ color:var(--ink); }
  .comment-head .icon-btn{ margin-inline-start:auto; width:26px; height:26px; }
  .comment-body{ white-space:pre-wrap; font-size:13.5px; margin-top:3px; }
  .comment-form{ display:flex; gap:8px; align-items:flex-end; margin-top:6px; }
  .comment-form textarea{ flex:1; min-width:0; padding:9px 12px; border-radius:var(--r-sm); border:1px solid var(--border-strong); background:var(--bg); color:var(--ink); resize:vertical; font:inherit; }

  /* guide library (viewers and editors): a plain list, grouped by where each guide lives */
  .lib-toolbar{ margin-bottom:16px; }
  .lib-group{ margin-bottom:18px; }
  .lib-title{ font-size:14.5px; font-weight:800; color:var(--ink-2); margin:0 0 8px; padding-bottom:6px; border-bottom:1px solid var(--border); }
  .lib-row{ grid-template-columns:auto minmax(0,1fr) auto; align-items:center; background:var(--surface); border:1px solid var(--border); }
  .lib-row:hover{ border-color:var(--border-strong); background:var(--surface); }
  .lib-ic{ display:inline-flex; color:var(--accent-ink); }
  .lib-file{ display:inline-flex; align-items:center; gap:3px; font-size:11.5px; color:var(--ink-3); font-weight:600; }

  /* guide read view (bottom sheet) */
  .gview-meta{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:-6px 0 12px; }
  .gview-where{ font-size:12px; color:var(--ink-3); font-weight:600; }
  .gview-views{ display:inline-flex; align-items:center; gap:4px; font-size:12px; color:var(--ink-2); font-weight:600; margin-inline-start:auto; }
  .gview-notes{ white-space:pre-wrap; font-size:14px; color:var(--ink); background:var(--surface-2); border-radius:var(--r-md); padding:12px 14px; margin-bottom:12px; line-height:1.6; }
  .gview-open{ display:inline-flex; align-items:center; gap:6px; text-decoration:none; }
  .guide-main{ min-width:0; }
  .guide-title{ font-size:13.5px; font-weight:600; overflow-wrap:anywhere; }
  .guide-sub{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:4px; }
  .type-chip{ font-size:11px; font-weight:600; color:var(--ink-3); border:1px solid var(--border-strong); border-radius:var(--r-sm); padding:2px 7px; }
  .guide-link{ font-size:11.5px; display:inline-flex; align-items:center; gap:3px; color:var(--accent-ink); text-decoration:none; font-weight:600; }
  .guide-done-date{ font-size:11px; color:var(--good-ink); font-weight:600; }
  .guide-actions{ display:flex; align-items:center; gap:4px; }
  .guide-actions .icon-btn.sm{ width:28px; height:28px; }

  .add-row{ width:100%; display:flex; align-items:center; justify-content:center; gap:6px; padding:9px; border-radius:var(--r-md); border:1.5px dashed var(--border-strong); background:transparent; color:var(--ink-2); font-weight:700; font-size:12.5px; cursor:pointer; margin-top:4px; }
  .add-row:hover{ background:var(--surface-2); }
  .add-row.big{ padding:14px; font-size:13.5px; }
  .empty-inline{ font-size:12px; color:var(--ink-3); padding:4px 2px 8px; }
  .empty-state{ text-align:center; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:32px 20px; box-shadow:var(--shadow); }
  .empty-state h3{ font-size:16px; margin-bottom:8px; }
  .empty-state p{ color:var(--ink-2); font-size:13.5px; max-width:44ch; margin:0 auto 16px; }
  .primary-btn{ background:var(--accent); color:#fff; border:none; border-radius:var(--r-pill); padding:11px 22px; font-weight:700; font-size:13.5px; cursor:pointer; }
  .primary-btn:hover{ filter:brightness(1.06); }

  /* drawer */
  .drawer-backdrop{ position:fixed; inset:0; background:rgba(20,10,40,.45); z-index:20; opacity:0; transition:opacity .2s; }
  .drawer-backdrop.open{ opacity:1; }
  .drawer{ position:fixed; left:0; right:0; bottom:0; z-index:21; background:var(--surface); border-radius:20px 20px 0 0; box-shadow:0 -8px 30px rgba(0,0,0,.25); max-height:88vh; overflow-y:auto; transform:translateY(100%); transition:transform .22s ease; padding-bottom:env(safe-area-inset-bottom,0px); direction:rtl; }
  .drawer.open{ transform:translateY(0); }
  .drawer-inner{ padding:8px 18px 22px; max-width:760px; margin:0 auto; }
  .drawer-handle{ width:36px; height:4px; border-radius:2px; background:var(--border-strong); margin:10px auto 4px; }
  .drawer-head{ display:flex; align-items:center; gap:10px; margin:6px 0 16px; }
  .drawer-head h3{ font-size:16.5px; flex:1; }
  .field{ margin-bottom:14px; }
  .field label{ display:block; font-size:12.5px; font-weight:700; color:var(--ink-2); margin-bottom:6px; }
  .field input, .field select, .field textarea{ width:100%; padding:10px 12px; border-radius:var(--r-sm); border:1px solid var(--border-strong); background:var(--bg); color:var(--ink); }
  .field textarea{ min-height:72px; resize:vertical; }
  .field-row{ display:flex; gap:10px; flex-wrap:wrap; }
  .field-row .field{ flex:1 1 150px; min-width:0; }
  .drawer-actions{ display:flex; gap:10px; margin-top:6px; align-items:center; }
  .ghost-btn{ background:none; border:1px solid var(--border-strong); border-radius:var(--r-pill); padding:10px 18px; font-weight:700; font-size:13px; cursor:pointer; color:var(--ink-2); }
  .ghost-btn.sm{ display:inline-flex; align-items:center; gap:6px; padding:8px 14px; font-size:12.5px; }
  .ghost-btn:disabled{ opacity:.6; cursor:default; }

  /* Google Drive link in the guide drawer */
  .drive-box:empty{ display:none; }
  .drive-box{ margin:-6px 0 14px; }
  .drive-actions{ display:flex; gap:8px; flex-wrap:wrap; }
  .drive-linked{ display:flex; align-items:center; gap:8px; padding:8px 8px 8px 12px; border:1px solid var(--border-strong); border-radius:var(--r-sm); background:var(--surface-2); }
  .drive-linked .doc-ic{ display:inline-flex; color:var(--accent-ink); }
  .drive-linked a{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--accent-ink); font-weight:600; font-size:13px; text-decoration:none; }
  .drive-linked a:hover{ text-decoration:underline; }

  /* Drive file preview (bottom sheet) */
  .drawer.drawer-preview{ height:92vh; max-height:92vh; display:flex; flex-direction:column; overflow:hidden; }
  .drawer-preview .drawer-inner{ width:100%; max-width:1100px; flex:1; min-height:0; display:flex; flex-direction:column; padding-bottom:12px; }
  .drawer-preview .drawer-head{ margin-bottom:10px; }
  .drawer-preview .drawer-head h3{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .doc-preview{ flex:1; min-height:0; border:1px solid var(--border); border-radius:var(--r-md); overflow:hidden; background:var(--surface-2); }
  .doc-preview iframe{ display:block; width:100%; height:100%; border:0; }
  .doc-preview-hint{ font-size:11.5px; color:var(--ink-3); text-align:center; margin:8px 0 0; }

  .toast{ position:fixed; bottom:calc(18px + env(safe-area-inset-bottom,0px)); left:50%; transform:translateX(-50%); background:var(--ink); color:var(--bg); padding:10px 18px; border-radius:var(--r-pill); font-size:13px; font-weight:600; z-index:30; box-shadow:var(--shadow); max-width:85vw; text-align:center; direction:rtl; }
  footer.hint{ text-align:center; color:var(--ink-3); font-size:11.5px; margin-top:22px; }

  /* settings page */
  .page-title{ font-size:22px; font-weight:800; margin:10px 0 4px; }
  .page-sub{ font-size:13px; color:var(--ink-3); margin:0 0 16px; max-width:62ch; }
  .card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:16px; box-shadow:var(--shadow); margin-bottom:16px; }
  .card-title{ font-size:15px; font-weight:800; margin-bottom:12px; }
  .add-inline{ display:flex; gap:8px; margin-bottom:14px; }
  .add-inline input{ flex:1; min-width:0; padding:10px 12px; border-radius:var(--r-pill); border:1px solid var(--border-strong); background:var(--surface); color:var(--ink); }
  .role-set{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:12px 14px 14px; margin-bottom:10px; box-shadow:var(--shadow); }
  .role-set-head{ display:flex; align-items:center; gap:8px; margin-bottom:10px; }
  .name-input{ flex:1; min-width:0; font:inherit; font-weight:800; font-size:15px; color:var(--ink); border:1px solid transparent; background:transparent; border-radius:8px; padding:5px 8px; }
  .name-input:hover{ border-color:var(--border); }
  .name-input:focus{ border-color:var(--accent); outline:none; background:var(--bg); }
  .role-set-meta{ font-size:12px; color:var(--ink-3); white-space:nowrap; }
  .chips-label{ font-size:12px; font-weight:700; color:var(--ink-3); margin-bottom:6px; }
  .toggle-chips{ display:flex; gap:6px; flex-wrap:wrap; }
  .chip-toggle{ display:inline-flex; align-items:center; gap:5px; padding:6px 12px; border-radius:var(--r-pill); border:1px solid var(--border-strong); background:var(--surface); color:var(--ink-2); font-weight:600; font-size:12.5px; cursor:pointer; }
  .chip-toggle:hover{ border-color:var(--accent); }
  .chip-toggle.on{ background:var(--accent-soft); border-color:var(--accent); color:var(--accent-ink); }
  .chip-toggle svg{ width:14px; height:14px; }
  .check-list{ display:flex; flex-direction:column; gap:6px; margin-bottom:14px; max-height:46vh; overflow-y:auto; }
  .check-row{ display:flex; align-items:center; gap:10px; padding:9px 12px; border:1px solid var(--border); border-radius:var(--r-sm); cursor:pointer; font-weight:600; font-size:13.5px; }
  .check-row input{ width:18px; height:18px; accent-color:var(--accent); }
  .check-row small{ margin-inline-start:auto; color:var(--ink-3); font-weight:500; font-size:12px; }
  .doc-ic{ color:#2F6FE0; flex:0 0 auto; }
  @media (max-width:460px){
    .hero{ flex-direction:column; align-items:stretch; }
    .hero .ring-wrap{ align-self:center; }
    .hero.area{ padding-inline-end:18px; }
  }
  @media (prefers-reduced-motion: reduce){
    *{ transition:none!important; }
  }

/* ---------- web app additions ---------- */
a.icon-btn{ text-decoration:none; }
.topbar-actions{ display:flex; align-items:center; gap:8px; flex:0 0 auto; }
.topbar-actions form{ margin:0; display:flex; }
.avatar{ width:34px; height:34px; border-radius:var(--r-pill); object-fit:cover; border:1px solid var(--border); background:var(--surface-2); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:13px; color:var(--ink-2); flex:0 0 auto; }
.banner{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:var(--warn-soft); color:var(--warn-ink); border:1px solid var(--warn); border-radius:var(--r-md); padding:10px 14px; margin-top:14px; font-size:13px; font-weight:600; }
.banner a{ color:inherit; font-weight:800; margin-inline-start:auto; }
.loading{ text-align:center; color:var(--ink-3); padding:60px 0; font-size:14px; }
.error-box{ text-align:center; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:28px 20px; margin-top:24px; }
.error-box p{ color:var(--ink-2); margin:0 0 14px; }

/* login */
.login-wrap{ min-height:100vh; display:flex; flex-direction:column; gap:14px; align-items:center; justify-content:center; padding:24px 16px; direction:rtl; }
.login-card{ width:100%; max-width:420px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow); padding:32px 28px; text-align:center; }
.login-mark{ width:64px; height:64px; margin:0 auto 14px; }
.login-card h1{ font-size:24px; font-weight:800; margin-bottom:6px; }
.login-card p{ color:var(--ink-2); font-size:14px; margin:0 0 22px; }
.google-btn{ display:inline-flex; align-items:center; justify-content:center; gap:10px; width:100%; padding:12px 18px; border-radius:var(--r-pill); border:1px solid var(--border-strong); background:var(--surface); color:var(--ink); font-weight:700; font-size:14.5px; text-decoration:none; cursor:pointer; }
.google-btn:hover{ border-color:var(--accent); }
.login-msg{ border-radius:var(--r-sm); padding:10px 12px; font-size:13px; margin-bottom:16px; text-align:right; }
.login-msg.err{ background:var(--accent-soft); color:var(--accent-ink); }
.login-msg.ok{ background:var(--good-soft); color:var(--good-ink); }
.dev-login{ margin-top:22px; padding-top:18px; border-top:1px dashed var(--border-strong); text-align:right; }
.dev-login small{ display:block; color:var(--ink-3); margin-bottom:8px; }
.dev-login form{ display:flex; gap:8px; }
.dev-login input{ flex:1; min-width:0; padding:9px 12px; border-radius:var(--r-pill); border:1px solid var(--border-strong); background:var(--bg); color:var(--ink); }

/* public home page */
.home-wrap{ min-height:100vh; display:flex; flex-direction:column; gap:14px; align-items:center; justify-content:center; padding:32px 16px; direction:rtl; }
.home-card{ width:100%; max-width:560px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow); padding:34px 28px; text-align:center; }
.home-logo{ display:block; width:88px; height:88px; margin:0 auto 16px; border-radius:20px; }
.home-card h1{ font-size:28px; font-weight:800; margin-bottom:2px; }
.home-en{ color:var(--ink-3); font-size:14px; font-weight:600; margin:0 0 14px; }
.home-lead{ color:var(--ink-2); font-size:15px; line-height:1.6; margin:0 auto 20px; max-width:46ch; }
.home-features{ list-style:none; padding:0; margin:0 0 24px; text-align:right; display:flex; flex-direction:column; gap:10px; }
.home-features li{ background:var(--surface-2); border-radius:var(--r-md); padding:12px 14px; font-size:14px; line-height:1.55; color:var(--ink-2); }
.home-features strong{ color:var(--ink); }
.home-note{ color:var(--ink-3); font-size:12.5px; margin:12px 0 0; }

/* privacy / terms */
.legal-links{ font-size:12.5px; color:var(--ink-3); text-align:center; }
.legal-links a{ color:var(--ink-2); text-decoration:none; font-weight:600; }
.legal-links a:hover{ text-decoration:underline; }
.legal-wrap{ padding:32px 16px 48px; direction:rtl; }
.legal-card{ max-width:760px; margin:0 auto; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow); padding:28px 26px; line-height:1.7; }
.legal-home{ display:inline-block; font-weight:800; color:var(--accent-ink); text-decoration:none; margin-bottom:12px; }
.legal-card h1{ font-size:26px; font-weight:800; margin-bottom:4px; }
.legal-updated{ color:var(--ink-3); font-size:13px; margin:0 0 18px; }
.legal-card h2{ font-size:17px; font-weight:800; margin:24px 0 8px; }
.legal-card p, .legal-card li{ font-size:14.5px; color:var(--ink); }
.legal-card ul{ padding-inline-start:20px; margin:0 0 10px; }
.legal-card li{ margin-bottom:6px; }
.legal-card a{ color:var(--accent-ink); }
.legal-card .legal-links{ margin-top:28px; padding-top:16px; border-top:1px solid var(--border); }

/* admin */
.admin-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:10px; margin:16px 0; }
.stat{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); padding:12px 14px; }
.stat-num{ font-size:24px; font-weight:800; }
.stat-label{ font-size:12px; color:var(--ink-3); font-weight:600; }
.add-user{ display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:10px; align-items:end; }
.add-user .field{ margin:0; }
.check-inline{ display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:var(--ink-2); padding:10px 0; }
.check-inline input{ width:18px; height:18px; accent-color:var(--accent); }
.table-wrap{ overflow-x:auto; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow); }
.users-table{ width:100%; border-collapse:collapse; font-size:13px; min-width:760px; }
.users-table th{ text-align:right; font-size:11.5px; color:var(--ink-3); font-weight:700; padding:10px 12px; border-bottom:1px solid var(--border); white-space:nowrap; }
.users-table td{ padding:10px 12px; border-bottom:1px solid var(--border); vertical-align:middle; }
.users-table tr:last-child td{ border-bottom:none; }
.users-table tr.is-disabled td{ opacity:.55; }
.u-cell{ display:flex; align-items:center; gap:10px; min-width:0; }
.u-name{ font-weight:700; }
.u-email{ color:var(--ink-3); font-size:12px; direction:ltr; text-align:right; }
.badge{ display:inline-block; padding:3px 9px; border-radius:var(--r-pill); font-size:11.5px; font-weight:700; white-space:nowrap; }
.badge.admin{ background:var(--accent-soft); color:var(--accent-ink); }
.badge.user{ background:var(--neutral-soft); color:var(--neutral-ink); }
.badge.active{ background:var(--good-soft); color:var(--good-ink); }
.badge.disabled{ background:var(--border); color:var(--ink-2); }
.prog-cell{ min-width:130px; }
.prog-cell .num{ font-size:12px; color:var(--ink-2); font-weight:700; }
.row-actions{ display:flex; gap:6px; justify-content:flex-end; flex-wrap:wrap; }
.small-btn{ padding:6px 11px; border-radius:var(--r-pill); border:1px solid var(--border-strong); background:var(--surface); color:var(--ink-2); font-weight:700; font-size:12px; cursor:pointer; white-space:nowrap; text-decoration:none; display:inline-flex; align-items:center; gap:4px; }
.small-btn:hover{ border-color:var(--accent); color:var(--ink); }
.small-btn.danger{ color:var(--danger); }
.small-btn.confirm{ background:var(--danger); border-color:var(--danger); color:#fff; }

/* system admin: businesses */
.biz-list{ display:flex; flex-direction:column; gap:10px; margin-bottom:22px; }
.biz{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow); padding:14px 16px; display:flex; flex-direction:column; gap:12px; }
.biz-head{ display:flex; gap:16px; flex-wrap:wrap; align-items:flex-start; }
.biz-who{ flex:1 1 240px; min-width:0; }
.biz-name{ font-size:16px; font-weight:800; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.biz-meta{ font-size:12.5px; color:var(--ink-2); margin-top:3px; }
.biz-prog{ flex:0 1 280px; min-width:200px; display:flex; flex-direction:column; gap:5px; font-size:12.5px; color:var(--ink-2); }
.biz-prog b{ color:var(--ink); }
.biz .row-actions{ justify-content:flex-start; }
.all-users{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:12px 16px; }
.all-users summary{ cursor:pointer; font-weight:800; font-size:15px; }
.all-users .goal-text{ margin:8px 0 10px; }

/* ---------- questionnaire responses (/leads) ---------- */
.lead-tabs{ margin:0 0 14px; flex-wrap:wrap; }
.lead-toolbar{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin:0 0 12px; }
.lead-toolbar .search{ flex:1 1 220px; }
.lead-toolbar .search input{ padding-left:12px; }
.lead-filter, .lead-status select{ padding:8px 10px; border-radius:var(--r-pill); border:1px solid var(--border); background:var(--surface); color:var(--ink); font:inherit; font-size:12.5px; font-weight:600; max-width:100%; }
.lead-status{ display:flex; flex-direction:column; gap:4px; font-size:11.5px; font-weight:700; color:var(--ink-3); flex:0 0 auto; }
.lead .biz-meta a{ color:var(--ink-2); }
.lead-when{ color:var(--ink-3); font-size:12px; }
.lead-anon{ color:var(--ink-3); font-weight:700; }
.badge.lead-open{ background:var(--warn-soft); color:var(--warn-ink); }
.badge.verdict-fit{ background:var(--good-soft); color:var(--good-ink); }
.badge.verdict-maybe{ background:var(--ready-soft); color:var(--ready-ink); }
.badge.verdict-notyet{ background:var(--neutral-soft); color:var(--neutral-ink); }
.small-btn:disabled{ opacity:.5; cursor:not-allowed; }
.lead-details{ display:flex; flex-direction:column; gap:12px; border-top:1px solid var(--border); padding-top:12px; }
.lead-sec-t{ font-size:13px; font-weight:800; margin-bottom:8px; }
details.lead-sec > summary{ cursor:pointer; }
.lead-info{ display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:6px 16px; }
.lead-kv{ display:flex; flex-direction:column; gap:1px; font-size:13px; min-width:0; }
.lead-kv span{ font-size:11.5px; color:var(--ink-3); font-weight:600; }
.lead-kv b{ font-weight:600; overflow-wrap:anywhere; }
.lead-answers{ margin:0; padding-inline-start:20px; display:flex; flex-direction:column; gap:8px; font-size:13px; }
.lead-answers li span{ display:block; color:var(--ink-2); }
.lead-answers li b{ font-weight:700; }
.lead-notes{ width:100%; padding:10px 12px; border-radius:var(--r-sm); border:1px solid var(--border-strong); background:var(--bg); color:var(--ink); font:inherit; font-size:13px; resize:vertical; }
@media (max-width:600px){
  .lead-toolbar .lead-filter{ flex:1 1 45%; }
  .lead-status{ width:100%; }
}
.lead-note{ display:block; margin-top:3px; font-style:normal; font-size:12.5px; color:var(--warn-ink); background:var(--warn-soft); border-radius:8px; padding:4px 8px; }

/* ---------- full responsibility (ownership) of a mechanism / process ---------- */
.own-line{ margin-top:6px; display:flex; min-width:0; }
.own-chip{ display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:700; border-radius:var(--r-pill); padding:2px 8px 2px 9px; max-width:100%; min-width:0; }
.own-chip span{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.own-chip svg{ flex:none; }
.own-owner{ background:var(--neutral-soft); color:var(--neutral-ink); }
.own-trans{ background:var(--warn-soft); color:var(--warn-ink); }
.own-role{ background:var(--good-soft); color:var(--good-ink); }
.hero-own svg{ display:inline-block; vertical-align:-2px; margin-inline-end:4px; color:var(--ink-3); }
.own-edit{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:12px; font-size:12.5px; }
.own-label{ font-weight:700; color:var(--ink-2); }
.own-segs{ display:inline-flex; flex-wrap:wrap; gap:2px; padding:2px; border:1px solid var(--border); border-radius:var(--r-pill); background:var(--surface); }
.own-seg{ border:0; background:none; color:var(--ink-2); font:inherit; font-size:12px; font-weight:700; padding:5px 11px; border-radius:var(--r-pill); cursor:pointer; }
.own-seg:hover{ color:var(--ink); }
.own-seg.active.own-owner{ background:var(--neutral-soft); color:var(--neutral-ink); }
.own-seg.active.own-trans{ background:var(--warn-soft); color:var(--warn-ink); }
.own-seg.active.own-role{ background:var(--good-soft); color:var(--good-ink); }
.own-role-select{ padding:6px 10px; border-radius:var(--r-pill); border:1px solid var(--border-strong); background:var(--surface); color:var(--ink); font:inherit; font-size:12.5px; font-weight:600; max-width:100%; }
.own-hint{ color:var(--ink-3); }

/* ---------- weekly pace (#weekly) ---------- */
.w-build{ --w:var(--warn); } .w-ready{ --w:var(--ready); } .w-live{ --w:var(--good); }
.w-trans{ --w:var(--warn); } .w-role{ --w:var(--good); }
.wweek-head{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.wperiod{ font-size:12px; color:var(--ink-3); font-weight:600; }
.wstats{ display:grid; grid-template-columns:repeat(auto-fit, minmax(130px, 1fr)); gap:8px; margin-bottom:10px; }
.wstat{ border:1px solid var(--border); border-radius:var(--r-md); padding:10px 12px; border-inline-start:4px solid var(--w); }
.wstat-n{ font-size:24px; font-weight:800; line-height:1.1; }
.wstat-l{ font-size:12px; font-weight:700; color:var(--ink-2); }
.wstat-d{ font-size:11px; color:var(--ink-3); margin-top:2px; }
.wcols{ display:grid; grid-template-columns:repeat(var(--n), minmax(0, 1fr)); gap:4px; align-items:end; height:170px; }
.wcol{ display:flex; flex-direction:column; align-items:stretch; justify-content:flex-end; height:100%; gap:3px; background:none; border:0; padding:4px 1px 2px; border-radius:8px; cursor:pointer; color:var(--ink-2); font:inherit; min-width:0; }
.wcol:hover{ background:var(--neutral-soft); }
.wcol.sel{ background:var(--accent-soft); }
.wcol-n{ font-size:11px; font-weight:800; text-align:center; min-height:14px; }
.wcol-bar{ flex:1; display:flex; flex-direction:column-reverse; justify-content:flex-start; border-bottom:2px solid var(--border-strong); max-width:34px; width:100%; margin:0 auto; }
.wcol-bar span{ display:block; background:var(--w); border-radius:3px 3px 0 0; min-height:4px; }
.wcol-bar span + span{ border-radius:3px 3px 0 0; margin-bottom:1px; }
.wcol-lbl{ font-size:10px; text-align:center; white-space:nowrap; overflow:hidden; }
.wcol.now .wcol-lbl{ font-weight:800; color:var(--ink); }
.wlist{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
.wlist li{ display:flex; align-items:flex-start; gap:10px; padding:9px 0; border-bottom:1px solid var(--border); }
.wlist li:last-child{ border-bottom:0; }
.wdot{ flex:none; width:10px; height:10px; border-radius:50%; background:var(--w); margin-top:5px; }
.wli-main{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.wli-main .linkish{ margin:0; align-self:flex-start; text-align:right; font-weight:700; font-size:13.5px; padding:0; }
.wli-sub{ font-size:12px; color:var(--ink-3); }
.wli-day{ font-size:11.5px; color:var(--ink-3); white-space:nowrap; }
@media (max-width:480px){ .wcols{ height:140px; gap:2px; } .wcol-lbl{ font-size:9px; } }
.wcol.future{ cursor:default; opacity:.45; }
.wcol.future .wcol-bar{ border-bottom-style:dashed; }
.wweek-head{ align-items:flex-start; margin-bottom:12px; }
.wweek-title{ font-size:20px; font-weight:800; line-height:1.2; }
.wweek-dates{ font-size:13px; font-weight:600; color:var(--ink-2); margin-top:2px; }
.wtarget{ border:1px solid var(--border); border-radius:var(--r-md); padding:12px 14px; margin-bottom:12px; background:var(--bg); }
.wtarget.met{ border-color:var(--good); background:var(--good-soft); }
.wtarget-top{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.wtarget-l{ font-size:13px; font-weight:800; color:var(--ink-2); }
.wtarget-v{ font-size:14px; color:var(--ink-2); }
.wtarget-v b{ font-size:22px; font-weight:800; color:var(--ink); }
.wtarget-status{ font-size:13px; margin:8px 0 4px; }
.wtarget .goal-text{ margin:0; }
.wtarget.none .goal-text{ margin-top:4px; }
.wli-range{ font-size:12px; color:var(--ink-3); font-weight:600; }
.biz-goal{ font-size:12.5px; color:var(--ink-2); }
.biz-goal b{ color:var(--ink); }
.goal-none{ color:var(--warn-ink); font-weight:700; }
.goal-form{ display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:10px; align-items:end; border-top:1px solid var(--border); padding-top:12px; }
.goal-form .field{ margin:0; }
.goal-form-actions{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; grid-column:1 / -1; }
.goal-form .goal-text{ grid-column:1 / -1; margin:0; }

/* ---------- weekly report (#report) ---------- */
.rep-weeks{ margin:0 0 12px; }
.rep-sent{ display:flex; gap:8px; align-items:center; margin-bottom:12px; }
.rep-status{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px; }
.rep-st{ display:flex; flex-direction:column; gap:2px; align-items:flex-start; text-align:right; padding:12px; border-radius:var(--r-md); border:1.5px solid var(--border); background:var(--surface); color:var(--ink); font:inherit; cursor:pointer; border-inline-start:6px solid var(--rc); }
.rep-st b{ font-size:15px; }
.rep-st span{ font-size:12px; color:var(--ink-2); }
.rep-st.on{ background:var(--rs); border-color:var(--rc); }
.rep-green{ --rc:var(--good); --rs:var(--good-soft); }
.rep-yellow{ --rc:var(--warn); --rs:var(--warn-soft); }
.rep-red{ --rc:var(--danger); --rs:rgba(179,38,30,.10); }
.rep-auto-tag{ font-size:11px; font-weight:700; color:var(--good-ink); background:var(--good-soft); border-radius:var(--r-pill); padding:2px 8px; margin-inline-start:6px; }
.rep-auto{ display:flex; flex-direction:column; gap:12px; }
.rep-target{ font-size:13px; color:var(--ink-2); background:var(--bg); border:1px solid var(--border); border-radius:var(--r-sm); padding:8px 12px; }
.rep-target b{ color:var(--ink); font-size:16px; }
.rep-sec-t{ display:flex; align-items:center; gap:6px; font-size:13px; font-weight:800; margin-bottom:4px; }
.rep-sec-t svg{ color:var(--ink-3); }
.rep-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
.rep-list li{ display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; padding:5px 0; border-bottom:1px solid var(--border); font-size:13px; }
.rep-list li:last-child{ border-bottom:0; }
.rep-list li span{ font-size:12px; color:var(--ink-3); }
.rep-to{ font-style:normal; font-size:11px; font-weight:700; border-radius:var(--r-pill); padding:1px 7px; background:color-mix(in srgb, var(--w) 16%, transparent); color:var(--ink); }
.rep-count{ font-size:12px; font-weight:700; color:var(--accent-ink); margin-inline-start:6px; }
.rep-picks{ display:flex; flex-direction:column; gap:4px; margin-bottom:12px; }
.rep-search{ margin-bottom:6px; }
.rep-pick-h{ font-size:11.5px; font-weight:800; color:var(--ink-3); margin-top:8px; }
.rep-pick{ display:flex; align-items:flex-start; gap:10px; padding:8px 10px; border:1px solid var(--border); border-radius:var(--r-sm); cursor:pointer; background:var(--surface); }
.rep-pick input{ width:18px; height:18px; margin-top:1px; accent-color:var(--accent); flex:none; }
.rep-pick > span{ display:flex; flex-direction:column; gap:1px; font-size:13px; min-width:0; }
.rep-pick > span span{ font-size:11.5px; color:var(--ink-3); }
.rep-pick.on{ border-color:var(--accent); background:var(--accent-soft); }
.rep-more{ align-self:flex-start; margin:4px 0 0; font-size:12.5px; }
.rep-submit{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:24px; }
.rep-remind{ display:flex; align-items:center; gap:10px; margin:12px 0; border-inline-start:4px solid var(--accent); }
.rep-remind span{ flex:1; }
.primary-btn.sm{ padding:7px 14px; font-size:12.5px; }
.rep-cta{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.rep-view-head{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.rep-view-head .small-btn{ margin-inline-start:auto; }
.rep-pill{ font-size:12px; font-weight:700; border-radius:var(--r-pill); padding:3px 10px; background:var(--rs); color:var(--ink); border:1px solid var(--rc); }
.rep-view .rep-sec-t{ margin-top:10px; }
.rep-txt{ font-size:13px; margin:2px 0 0; white-space:pre-wrap; }
.wcol-rep{ display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--rc); margin-inline-end:3px; vertical-align:1px; }
@media (max-width:480px){ .rep-status{ grid-template-columns:1fr; } }
.rep-weeknav{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin:16px 0 4px; }
.rep-weeknav-t{ font-size:15px; text-align:center; }
.rep-filter{ margin:0 0 12px; }
.rep-flag{ color:var(--danger); }
.rep-body{ display:flex; flex-direction:column; gap:10px; border-top:1px solid var(--border); padding-top:12px; }
.biz .rep-pill{ font-size:11.5px; }
.rep-dates{ font-size:14px; font-weight:700; color:var(--ink-2); margin:0 0 8px; }

/* ---------- content site editor (/admin/content) ---------- */
.cms-tabs{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin:16px 0 14px; }
.cms-tabs-end{ margin-inline-start:auto; }
.cms-toolbar{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:12px; }
.cms-toolbar .search{ flex:1 1 220px; }
.cms-toolbar .search input{ padding-left:12px; }
.cms-list{ display:flex; flex-direction:column; gap:8px; margin-bottom:24px; }
.cms-row{ display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); padding:12px 14px; }
.cms-row-main{ flex:1 1 280px; min-width:0; display:flex; flex-direction:column; gap:4px; }
.cms-title{ background:none; border:0; padding:0; font:inherit; font-size:15.5px; font-weight:800; color:var(--ink); text-align:right; cursor:pointer; }
.cms-title:hover{ color:var(--accent-ink); text-decoration:underline; }
.cms-meta{ display:flex; gap:6px 12px; flex-wrap:wrap; font-size:12px; color:var(--ink-3); align-items:center; }
.cms-st{ font-size:11.5px; font-weight:700; border-radius:var(--r-pill); padding:2px 9px; }
.cms-st.st-live{ background:var(--good-soft); color:var(--good-ink); }
.cms-st.st-draft{ background:var(--neutral-soft); color:var(--neutral-ink); }
.cms-st.st-scheduled{ background:var(--warn-soft); color:var(--warn-ink); }
.cms-feat{ color:var(--accent-ink); font-weight:700; }
.cms-empty{ color:var(--ink-3); font-size:13.5px; padding:18px 4px; }
.cms-add{ display:flex; gap:8px; margin-bottom:12px; }
.cms-add input{ flex:1; padding:10px 12px; border-radius:var(--r-sm); border:1px solid var(--border-strong); background:var(--surface); color:var(--ink); font:inherit; }
.cms-cat{ gap:6px; }
.cms-inline{ border:1px solid transparent; background:transparent; color:var(--ink); font:inherit; font-weight:800; font-size:15px; padding:4px 6px; border-radius:8px; width:100%; }
.cms-inline.sub{ font-weight:500; font-size:13px; color:var(--ink-2); }
.cms-inline:hover,.cms-inline:focus{ border-color:var(--border-strong); background:var(--bg); outline:none; }

.cms-edit{ margin-top:14px; }
.cms-edit-top{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.cms-edit-top .back-btn{ margin:0; }
.cms-dirty{ font-size:12.5px; color:var(--ink-3); }
.cms-edit-actions{ margin-inline-start:auto; display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.cms-edit-grid{ display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:18px; align-items:start; }
.cms-main{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:18px; min-width:0; }
.cms-h1{ width:100%; border:0; background:transparent; color:var(--ink); font-family:"Rubik","Heebo",sans-serif; font-size:26px; font-weight:800; padding:4px 0; }
.cms-lead{ width:100%; border:0; background:transparent; color:var(--ink-2); font:inherit; font-size:15.5px; resize:vertical; padding:4px 0 10px; border-bottom:1px solid var(--border); }
.cms-h1:focus,.cms-lead:focus,.cms-body:focus{ outline:none; }
.cms-modes{ display:flex; gap:6px; align-items:center; margin:12px 0 8px; }
.cms-count{ margin-inline-start:auto; font-size:12px; color:var(--ink-3); }
.cms-tools{ display:flex; flex-wrap:wrap; gap:4px; padding:6px; background:var(--bg); border:1px solid var(--border); border-radius:var(--r-sm) var(--r-sm) 0 0; border-bottom:0; align-items:center; }
.cms-tools button{ background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:5px 9px; font:inherit; font-size:12.5px; font-weight:700; color:var(--ink-2); cursor:pointer; }
.cms-tools button:hover{ border-color:var(--accent); color:var(--ink); }
.cms-uploading{ font-size:12px; color:var(--accent-ink); font-weight:700; padding-inline:6px; }
.cms-body{ width:100%; min-height:480px; resize:vertical; border:1px solid var(--border); border-radius:0 0 var(--r-sm) var(--r-sm); padding:14px 16px; background:var(--surface); color:var(--ink); font:inherit; font-size:16px; line-height:1.8; }
.cms-help{ margin-top:8px; font-size:12.5px; color:var(--ink-2); }
.cms-help summary{ cursor:pointer; font-weight:700; }
.cms-help code{ background:var(--neutral-soft); border-radius:6px; padding:1px 5px; font-size:12px; }
.cms-side{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:16px; display:flex; flex-direction:column; gap:4px; position:sticky; top:12px; }
.cms-side .field{ margin-bottom:10px; }
.cms-cover{ display:flex; flex-direction:column; gap:6px; margin-bottom:6px; }
.cms-cover img{ border-radius:var(--r-sm); width:100%; aspect-ratio:16/9; object-fit:cover; }
.cms-cover .small-btn{ align-self:flex-start; }
.cms-upload{ cursor:pointer; align-self:flex-start; }
.cms-slug{ display:flex; align-items:center; gap:4px; font-size:12px; color:var(--ink-3); }
.cms-slug input{ flex:1; min-width:0; }
.cms-danger{ border-top:1px solid var(--border); padding-top:12px; margin-top:6px; }

/* the preview: the learn site's article typography */
.cms-preview{ border:1px solid var(--border); border-radius:var(--r-sm); padding:20px 22px; min-height:480px; background:#FFF3EE; color:#030047; font-size:17px; line-height:1.85; }
.cms-preview > * + *{ margin-top:18px; }
.cms-preview h2{ font-family:"Rubik","Heebo",sans-serif; font-size:24px; font-weight:700; margin-top:36px; }
.cms-preview h2::before{ content:""; display:block; width:32px; height:4px; border-radius:2px; background:#FF3E6B; margin-bottom:12px; }
.cms-preview h3{ font-family:"Rubik","Heebo",sans-serif; font-size:19px; font-weight:700; margin-top:26px; }
.cms-preview a{ color:#C21447; }
.cms-preview ul,.cms-preview ol{ padding-inline-start:22px; }
.cms-preview ul li::marker{ color:#FF3E6B; }
.cms-preview blockquote{ margin:0; padding-inline-start:36px; position:relative; font-family:"Rubik","Heebo",sans-serif; font-size:20px; font-weight:500; line-height:1.45; }
.cms-preview blockquote::before{ content:"”"; position:absolute; inset-inline-start:0; top:-10px; font-size:56px; line-height:1; color:#FF3E6B; font-weight:800; }
.cms-preview .callout{ background:#030047; color:#FFD8E1; border-radius:20px; padding:18px 22px; }
.cms-preview .callout::before{ content:"נקודה חשובה"; display:inline-block; background:#FFC94A; color:#030047; font-weight:700; font-size:12px; border-radius:999px; padding:1px 9px; margin-bottom:8px; }
.cms-preview figure{ margin:0; }
.cms-preview figure img{ border-radius:12px; width:100%; }
.cms-preview figcaption{ font-size:13px; color:#4A4876; text-align:center; margin-top:6px; }
.cms-preview hr{ border:0; height:1px; background:#F0DCD4; }
.cms-preview .quizbox{ background:#030047; color:#FFD8E1; border-radius:20px; padding:20px 22px; display:flex; gap:14px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.cms-preview .quizbox-text{ display:grid; gap:2px; }
.cms-preview .quizbox .kicker{ color:#8FACFF; font-size:12px; font-weight:700; }
.cms-preview .quizbox span:not(.kicker){ color:#B8B1E6; font-size:14px; }
.cms-preview .quizbox .btn{ background:#FF3E6B; color:#030047; border-radius:999px; padding:8px 16px; font-weight:700; }
@media (max-width:860px){ .cms-edit-grid{ grid-template-columns:1fr; } .cms-side{ position:static; } }
/* the infographic blocks, in the editor's preview (the learn site has the full styles) */
.cms-preview .ig-title{ font-weight:700; font-size:13px; color:#3A4FD1; margin-bottom:8px; }
.cms-preview .ig-n{ display:inline-grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#030047; color:#FFD8E1; font-weight:800; font-size:13px; flex:none; }
.cms-preview .ig-questions,.cms-preview .ig-card,.cms-preview .ig-ladder li{ background:#fff; border:1px solid #F0DCD4; border-radius:14px; }
.cms-preview .ig-questions{ padding:14px 18px; }
.cms-preview .ig-questions ol,.cms-preview .ig-ladder ol,.cms-preview .ig-alert ul{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.cms-preview .ig-questions li,.cms-preview .ig-ladder li,.cms-preview .ig-alert li{ display:flex; gap:10px; align-items:center; }
.cms-preview .ig-ladder li{ padding:8px 12px; }
.cms-preview .ig-ladder li.lv0{ width:52%; } .cms-preview .ig-ladder li.lv1{ width:64%; } .cms-preview .ig-ladder li.lv2{ width:76%; } .cms-preview .ig-ladder li.lv3{ width:88%; }
.cms-preview .ig-ladder li.top{ background:#030047; color:#FFD8E1; }
.cms-preview .ig-hub svg{ width:100%; height:auto; }
.cms-preview .ig-hub-line{ stroke:#A9B7FF; stroke-width:3; } .cms-preview .ig-hub-node{ fill:#fff; stroke:#A9B7FF; stroke-width:2.5; }
.cms-preview .ig-hub-label{ fill:#030047; font-size:19px; font-weight:700; } .cms-preview .ig-hub-center{ fill:#030047; } .cms-preview .ig-hub-center-t{ fill:#FFD8E1; font-size:20px; font-weight:700; }
.cms-preview .ig-alert{ background:#030047; color:#FFD8E1; border-radius:18px; padding:16px 20px; }
.cms-preview .ig-alert .ig-title{ color:#FF3E6B; font-size:18px; }
.cms-preview .ig-bang{ width:22px; height:22px; border-radius:50%; background:#FF3E6B; color:#030047; display:grid; place-items:center; font-weight:800; }
.cms-preview .ig-cards{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.cms-preview .ig-card{ padding:14px; display:flex; flex-direction:column; gap:2px; }
.cms-preview .ig-card .ig-n{ width:auto; height:auto; background:none; color:#FF3E6B; font-size:24px; }
.cms-preview .ig-task{ background:rgba(63,224,181,.16); border-radius:18px; padding:16px 20px; }
.cms-preview .ig-tag{ display:inline-block; background:#030047; color:#3FE0B5; font-weight:700; font-size:12px; border-radius:999px; padding:2px 10px; }
.cms-preview .ig-punch{ background:#FF3E6B; color:#030047; border-radius:16px; padding:16px 20px; text-align:center; font-weight:700; font-size:18px; }
.cms-preview .ig-path svg{ width:100%; height:auto; } .cms-preview .ig-path-line,.cms-preview .ig-path-tail{ stroke:#A9B7FF; stroke-width:4; } .cms-preview .ig-path-tail{ stroke-dasharray:10 10; }
.cms-preview .ig-path-dot{ fill:#030047; } .cms-preview .ig-path-dot.last{ fill:#FF3E6B; } .cms-preview .ig-path-hole{ fill:#fff; } .cms-preview .ig-path-label{ fill:#030047; font-size:19px; font-weight:700; }
.cms-preview .ig-timeline ol,.cms-preview .ig-steps ol,.cms-preview .ig-pyramid ol{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.cms-preview .ig-timeline li,.cms-preview .ig-steps li{ display:flex; gap:10px; align-items:flex-start; }
.cms-preview .ig-tl-n{ flex:none; width:36px; height:36px; border-radius:50%; background:#FF3E6B; color:#fff; display:grid; place-items:center; font-weight:800; }
.cms-preview .ig-tl-card,.cms-preview .ig-steps li{ background:#fff; border:1px solid #F0DCD4; border-radius:14px; padding:10px 14px; display:flex; flex-direction:column; flex:1; }
.cms-preview .ig-steps li{ flex-direction:row; }
.cms-preview .ig-tl-k{ color:#3A4FD1; font-size:12px; font-weight:700; }
.cms-preview .ig-sq{ flex:none; width:32px; height:32px; border-radius:8px; background:#4B44D6; color:#fff; display:grid; place-items:center; font-weight:800; }
.cms-preview .ig-pyramid ol{ justify-items:center; } .cms-preview .ig-pyramid li{ display:flex; justify-content:space-between; gap:12px; border-radius:10px; padding:8px 14px; color:#fff; background:#2E28A8; width:100%; }
.cms-preview .ig-pyramid li.lv0{ width:64%; background:#030047; } .cms-preview .ig-pyramid li.lv1{ width:73%; background:#1E1680; } .cms-preview .ig-pyramid li.lv3{ width:91%; background:#4B44D6; } .cms-preview .ig-pyramid li.base{ background:#FF3E6B; color:#030047; }
.cms-preview .ig-ladder li.lv4{ background:#FF3E6B; } .cms-preview .ig-ladder li.lv3{ background:#A9B7FF; } .cms-preview .ig-ladder li.lv2{ background:#FFD8E1; }
.cms-preview .ig-questions li{ border-inline-start:4px solid #FF3E6B; }

/* subscribers database (/admin/subscribers) */
.sub-add{ display:grid; gap:10px; margin-bottom:14px; }
.sub-add-row{ display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr); gap:10px; }
.sub-add input{ width:100%; padding:10px 14px; border-radius:var(--r-pill); border:1px solid var(--border); background:var(--surface); color:var(--ink); font:inherit; }
.sub-add-hint{ margin:0; font-size:13px; color:var(--ink-2); }
.stat-num.sub-best{ font-size:16px; line-height:1.35; }
@media (max-width:640px){ .sub-add-row{ grid-template-columns:1fr; } }

/* content editor: publish date in the list, share image preview */
.cms-date{ border:0; cursor:pointer; font:inherit; font-size:11.5px; font-weight:700; }
.cms-date:hover{ filter:brightness(.95); text-decoration:underline; }
.cms-datebox{ flex-basis:100%; display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:12px 14px; margin-top:4px; border-radius:var(--r-md); background:var(--surface-2, var(--bg)); border:1px dashed var(--border-strong); }
.cms-datebox label{ font-size:13px; font-weight:700; color:var(--ink-2); }
.cms-datebox input{ padding:8px 12px; border-radius:var(--r-pill); border:1px solid var(--border); background:var(--surface); color:var(--ink); font:inherit; }
.cms-datebox .goal-text{ flex-basis:100%; margin:0; }
.cms-share{ width:100%; aspect-ratio:1200/630; border-radius:10px; border:1px solid var(--border); display:block; margin-bottom:6px; }

/* roles chart (#roles): an org tree from the business owner down; RTL, so the first role in a row is on the right */
.org-card{ padding:20px 12px; }
.org-wrap{ overflow-x:auto; padding-bottom:6px; }
.org, .org ul{ list-style:none; margin:0; padding:0; display:flex; justify-content:center; position:relative; }
.org{ width:max-content; min-width:100%; }
.org ul{ padding-top:26px; }
.org li{ position:relative; padding:26px 6px 0; display:flex; flex-direction:column; align-items:center; }
.org > li{ padding-top:0; }
.org li::before, .org li::after{ content:""; position:absolute; top:0; width:50%; height:26px; border-top:2px solid var(--border-strong); }
.org li::before{ right:50%; }
.org li::after{ left:50%; border-left:2px solid var(--border-strong); }
/* rightmost child (first in RTL): the line comes from the left and turns down; leftmost: from the right */
.org li:first-child::before{ border-right:2px solid var(--border-strong); border-top-right-radius:10px; }
.org li:first-child::after{ border:0; }
.org li:last-child::before{ border:0; }
.org li:last-child::after{ border-top-left-radius:10px; }
.org > li::before, .org > li::after, .org li:only-child::before, .org li:only-child::after{ display:none; }
.org li:only-child{ padding-top:0; }
.org ul::before{ content:""; position:absolute; top:0; left:50%; width:0; height:26px; border-left:2px solid var(--border-strong); }

.org-node{ display:flex; flex-direction:column; align-items:center; gap:2px; width:136px; padding:12px 12px 10px; border-radius:var(--r-md);
  background:var(--surface); border:1.5px solid var(--border-strong); box-shadow:var(--shadow); color:var(--ink); font:inherit; cursor:pointer; text-align:center; transition:border-color .15s, transform .15s; }
.org-node:hover{ border-color:var(--accent); transform:translateY(-1px); }
.org-node.sel{ border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft), var(--shadow); }
.org-node.owner{ background:var(--ink); color:var(--bg); border-color:var(--ink); }
.org-node.owner .org-lbl, .org-node.owner .org-people{ color:inherit; opacity:.75; }
.org-node.empty{ border-style:dashed; box-shadow:none; }
.org-name{ font-weight:800; font-size:14.5px; line-height:1.3; }
.org-people{ font-size:12px; color:var(--ink-2); line-height:1.35; }
.org-people.none{ color:var(--ink-3); font-style:italic; }
.org-num{ font-size:24px; font-weight:800; line-height:1.1; margin-top:4px; }
.org-lbl{ font-size:11.5px; color:var(--ink-3); }
.org-bar{ display:flex; width:100%; height:6px; border-radius:999px; background:var(--neutral-soft); overflow:hidden; margin-top:6px; }
.org-bar i{ display:block; height:100%; }
.org-bar .full, .org-legend .full{ background:var(--good); }
.org-bar .trans, .org-legend .trans{ background:var(--warn); }
.org-split{ font-size:11px; color:var(--ink-2); margin-top:3px; }
.org-node.sz1{ width:160px; } .org-node.sz1 .org-num{ font-size:27px; }
.org-node.sz2{ width:186px; } .org-node.sz2 .org-num{ font-size:30px; }
.org-node.sz3{ width:206px; padding-block:16px 12px; } .org-node.sz3 .org-num{ font-size:34px; } .org-node.sz3 .org-name{ font-size:15.5px; }
.org-node.sz4{ width:228px; padding-block:18px 14px; } .org-node.sz4 .org-num{ font-size:38px; } .org-node.sz4 .org-name{ font-size:16.5px; }
.org-legend{ display:flex; flex-wrap:wrap; gap:6px 18px; justify-content:center; margin-top:16px; font-size:12px; color:var(--ink-2); }
.org-legend span{ display:inline-flex; align-items:center; gap:6px; }
.org-legend i{ width:14px; height:6px; border-radius:999px; display:inline-block; }

.org-detail-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
.org-detail h2{ font-size:18px; font-weight:800; margin:0; }
.org-parent{ max-width:320px; margin-bottom:12px; }
.org-sec + .org-sec{ margin-top:12px; }
.org-items{ list-style:none; margin:6px 0 0; padding:0; display:grid; gap:6px; }
.org-items a{ display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 8px; padding:9px 12px; border-radius:var(--r-sm); background:var(--surface-2); border:1px solid var(--border); color:var(--ink); text-decoration:none; }
.org-items a:hover{ border-color:var(--accent); }
.org-k{ font-size:11px; font-weight:700; color:var(--ink-3); }
.org-in{ font-size:12px; color:var(--ink-3); }

@media (max-width:720px){
  /* phone: the tree becomes an indented list */
  .org, .org ul{ display:block; width:auto; }
  .org ul{ padding:8px 16px 0 0; margin-inline-start:14px; border-inline-start:2px solid var(--border-strong); }
  .org li{ display:block; padding:8px 0 0; }
  .org > li{ padding-top:0; }
  .org li::before, .org li::after, .org ul::before{ display:none; }
  .org-node, .org-node.sz1, .org-node.sz2, .org-node.sz3, .org-node.sz4{ width:100%; display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"name num" "people lbl" "bar bar" "split split"; text-align:right; align-items:center; padding:10px 12px; }
  .org-name{ grid-area:name; } .org-people{ grid-area:people; } .org-num{ grid-area:num; margin:0; font-size:22px!important; } .org-lbl{ grid-area:lbl; text-align:left; }
  .org-bar{ grid-area:bar; } .org-split{ grid-area:split; }
}

/* roles chart: names inside the boxes, and the popup that assigns mechanisms and processes to a role */
.org-tools{ display:flex; justify-content:flex-start; margin:-4px 0 10px; font-size:13px; }
.org-names{ display:flex; flex-direction:column; gap:3px; width:100%; margin-top:8px; padding-top:8px; border-top:1px dashed var(--border); }
.org-names span{ font-size:11.5px; line-height:1.3; background:var(--good-soft); color:var(--good-ink); border-radius:6px; padding:3px 6px; }
.org-names span.trans{ background:var(--warn-soft); color:var(--warn-ink); }
.org-names span.more{ background:none; color:var(--ink-3); }
.org-node.owner .org-names span{ background:rgba(255,255,255,.12); color:inherit; }
.org-detail-head .row-actions{ display:flex; gap:8px; flex-wrap:wrap; }

body.modal-open{ overflow:hidden; }
.modal-backdrop{ position:fixed; inset:0; z-index:60; background:rgba(20,12,60,.45); display:grid; place-items:center; padding:16px; animation:oeFade .15s ease-out; }
@keyframes oeFade{ from{ opacity:0; } to{ opacity:1; } }
.modal{ width:min(720px, 100%); max-height:min(86vh, 900px); display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:0 20px 60px rgba(20,12,60,.3); overflow:hidden; }
.oe-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:18px 20px 6px; }
.oe-head h2{ font-size:18px; font-weight:800; margin:0 0 4px; }
.oe-head .page-sub{ margin:0; }
.oe-search{ flex:none; padding:6px 20px 10px; }
.oe-list{ overflow-y:auto; padding:0 20px 12px; flex:1; }
.oe-group{ margin-top:10px; }
.oe-group ul{ list-style:none; margin:0; padding:0; border:1px solid var(--border); border-radius:var(--r-md); overflow:hidden; }
.oe-ghead{ font-size:12px; font-weight:800; color:var(--ink-3); margin:0 0 6px; }
.oe-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 12px; border-top:1px solid var(--border); }
.oe-row:first-child{ border-top:0; }
.oe-row.mech{ background:var(--surface-2); }
.oe-row:not(.mech) .oe-name{ padding-inline-start:16px; }
.oe-row.changed{ box-shadow:inset 3px 0 0 var(--accent); }
.oe-name{ display:flex; align-items:baseline; flex-wrap:wrap; gap:2px 8px; min-width:0; }
.oe-name b{ font-size:14px; }
.oe-note{ font-size:11.5px; color:var(--ink-3); }
.oe-note.warn{ color:var(--warn-ink); font-weight:700; }
.oe-seg{ flex:none; display:inline-flex; border:1px solid var(--border-strong); border-radius:var(--r-pill); overflow:hidden; }
.oe-opt{ border:0; background:var(--surface); color:var(--ink-2); font:inherit; font-size:12px; font-weight:700; padding:6px 10px; cursor:pointer; }
.oe-opt + .oe-opt{ border-inline-start:1px solid var(--border); }
.oe-opt:hover{ background:var(--surface-2); }
.oe-opt.on.oe-none{ background:var(--neutral-soft); color:var(--neutral-ink); }
.oe-opt.on.oe-transition{ background:var(--warn-soft); color:var(--warn-ink); }
.oe-opt.on.oe-role{ background:var(--good-soft); color:var(--good-ink); }
.oe-foot{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; padding:12px 20px; border-top:1px solid var(--border); background:var(--surface-2); }
.oe-count{ font-size:13px; color:var(--ink-2); }
@media (max-width:600px){
  .modal-backdrop{ padding:0; place-items:end stretch; }
  .modal{ max-height:92vh; border-radius:var(--r-lg) var(--r-lg) 0 0; }
  .oe-row{ flex-direction:column; align-items:stretch; }
  .oe-seg{ display:grid; grid-template-columns:repeat(3,1fr); }
}

/* roles chart: who fills each role, roles the owner fills, warnings, and the people view */
.org-tools{ align-items:center; flex-wrap:wrap; gap:10px 18px; }
.seg-tabs{ display:inline-flex; gap:6px; }
.org-node{ position:relative; }
.org-badge, .org-flag{ font-size:10.5px; font-weight:800; border-radius:999px; padding:2px 8px; margin:-2px 0 4px; }
.org-badge{ background:var(--ink); color:var(--bg); }
.org-flag{ background:var(--warn-soft); color:var(--warn-ink); }
.org-flag.bad{ background:var(--accent-soft); color:var(--accent-ink); }
.org-node.by-owner{ border-color:var(--ink); border-style:solid; background:linear-gradient(180deg, var(--neutral-soft), var(--surface) 55%); }
.org-owner-tag{ font-weight:800; color:var(--ink); }
.org-node.owner .org-owner-tag{ color:inherit; }
.org-who{ margin-bottom:12px; }
.org-who .multi{ max-width:460px; }
.org-add-person{ display:flex; gap:8px; margin-top:8px; max-width:460px; }
.org-add-person input{ flex:1; min-width:0; padding:8px 12px; border-radius:var(--r-pill); border:1px solid var(--border); background:var(--surface); color:var(--ink); font:inherit; font-size:13px; }
.org-note{ font-size:13px; background:var(--neutral-soft); color:var(--neutral-ink); border-radius:var(--r-sm); padding:10px 12px; margin:8px 0 0; }

.op-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:12px; margin-bottom:16px; }
.op-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow); padding:14px 16px; display:flex; flex-direction:column; gap:8px; }
.op-card.owner{ background:var(--ink); color:var(--bg); border-color:var(--ink); }
.op-card.owner .op-sub, .op-card.owner .op-head span{ color:inherit; opacity:.75; }
.op-card.warn{ border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft), var(--shadow); }
.op-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.op-head b{ display:block; font-size:15px; font-weight:800; }
.op-head span{ font-size:12px; color:var(--ink-3); }
.op-num{ font-size:28px; font-weight:800; line-height:1; }
.op-card .org-flag{ align-self:flex-start; margin:0; }
.op-roles{ display:flex; flex-wrap:wrap; gap:6px; }
.op-roles .role-tag{ border:0; cursor:pointer; font:inherit; }
.op-card.owner .role-tag{ background:rgba(255,255,255,.14); color:inherit; }
.op-sub{ font-size:12.5px; color:var(--ink-2); }
.op-actions{ display:flex; gap:8px; align-items:center; margin-top:2px; }
.op-actions select{ flex:1; min-width:0; font:inherit; font-size:12.5px; padding:6px 8px; border-radius:var(--r-sm); border:1px solid var(--border); background:var(--surface); color:var(--ink); }

/* team page: members without an email (name only) */
.tm-kind{ margin-bottom:12px; flex-wrap:wrap; }
.tm-kind-hint{ margin:-4px 0 12px; }
.member-name-input{ font:inherit; font-weight:800; font-size:14.5px; color:var(--ink); background:transparent; border:1px solid transparent; border-radius:var(--r-sm); padding:3px 6px; margin-inline-start:-6px; width:100%; max-width:320px; }
.member-name-input:hover{ border-color:var(--border); }
.member-name-input:focus{ border-color:var(--accent); background:var(--surface); outline:none; }

/* roadmap (#roadmap): a winding S road from stage 1 (bottom) to the flag (top), the chosen stage beside it */
.rm-admin{ margin-bottom:12px; }
.rm-status{ display:flex; flex-wrap:wrap; gap:6px 16px; align-items:baseline; font-size:14px; color:var(--ink-2); margin:4px 0 14px; }
.rm-status b{ color:var(--ink); }
.rm-status .rm-here{ color:var(--accent-ink); }
.rm-layout{ display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:20px; align-items:start; }
.rm-map{ background:var(--surface-2); border:1px solid var(--border); border-radius:var(--r-lg); padding:6px; min-width:0; }
.rm-map svg{ display:block; width:100%; height:auto; }
.rm-road-edge{ fill:none; stroke:var(--border-strong); stroke-width:62; stroke-linecap:round; stroke-linejoin:round; }
.rm-road{ fill:none; stroke:var(--todo-fill); stroke-width:54; stroke-linecap:round; stroke-linejoin:round; }
.rm-road-done{ fill:none; stroke:var(--good); stroke-opacity:.38; stroke-width:54; stroke-linecap:round; stroke-linejoin:round; }
.rm-road-dash{ fill:none; stroke:var(--surface); stroke-width:4; stroke-dasharray:18 16; stroke-linecap:round; }
.rm-stop{ cursor:pointer; }
.rm-stop:focus{ outline:none; }
.rm-ring{ fill:var(--surface); stroke:var(--border-strong); stroke-width:5; }
.rm-n{ font-weight:800; font-size:26px; fill:var(--ink-2); }
.rm-stop.done .rm-ring{ fill:var(--good); stroke:var(--good); }
.rm-stop.done .rm-n{ fill:var(--surface); }
.rm-stop.here .rm-ring{ fill:var(--accent); stroke:var(--accent); }
.rm-stop.here .rm-n{ fill:#fff; }
.rm-halo{ fill:var(--accent-soft); opacity:0; }
.rm-stop.here .rm-halo{ opacity:1; }
.rm-stop.sel .rm-ring{ stroke:var(--ink); stroke-width:6; }
.rm-stop:hover .rm-ring, .rm-stop:focus-visible .rm-ring{ stroke:var(--accent); }
.rm-lbl{ font-weight:700; font-size:19px; fill:var(--ink); }
.rm-stop.here .rm-lbl{ fill:var(--accent-ink); }
.rm-start{ font-weight:700; font-size:17px; fill:var(--ink-3); }
.rm-pole{ stroke:var(--ink); stroke-width:5; stroke-linecap:round; }
.rm-flag{ fill:var(--accent); }
.rm-flag-t{ font-weight:800; font-size:21px; fill:var(--ink); }
.rm-you-bg{ fill:var(--accent); }
.rm-you{ font-weight:800; font-size:14px; fill:#fff; }
.rm-has-note{ fill:var(--ready); stroke:var(--surface); stroke-width:3; }
@media (prefers-reduced-motion:no-preference){ .rm-stop.here .rm-halo{ animation:rmPulse 2.4s ease-in-out infinite; transform-box:fill-box; transform-origin:center; } }
@keyframes rmPulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.12); } }

.rm-panel{ position:sticky; top:14px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow); padding:18px 20px; min-width:0; }
.rm-panel.here{ border-color:var(--accent); }
.rm-ptop{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; }
.rm-when{ font-size:12.5px; font-weight:700; color:var(--ink-3); }
.rm-tag{ font-size:11.5px; font-weight:700; border-radius:999px; padding:2px 10px; }
.rm-tag.here{ background:var(--accent); color:#fff; }
.rm-tag.done{ background:var(--good-soft); color:var(--good-ink); }
.rm-panel h2{ font-size:22px; font-weight:800; margin:4px 0 0; }
.rm-goal{ margin:6px 0 0; color:var(--ink-2); font-size:14.5px; }
.rm-label{ font-size:12px; font-weight:700; color:var(--ink-3); margin:16px 0 6px; }
.rm-ro{ font-weight:500; }
.rm-includes{ margin:0; padding-inline-start:18px; display:grid; gap:5px; font-size:14px; }
.rm-signs{ display:grid; gap:5px; }
.rm-sign{ display:flex; gap:10px; align-items:flex-start; font-size:14px; cursor:pointer; padding:7px 9px; border-radius:var(--r-sm); border:1px solid var(--border); }
.rm-sign:hover{ background:var(--surface-2); }
.rm-sign.ro{ cursor:default; }
.rm-sign.ro:hover{ background:none; }
.rm-sign input{ width:18px; height:18px; margin-top:2px; flex:none; accent-color:var(--good); }
.rm-sign.ok{ background:var(--good-soft); border-color:transparent; }
.rm-sign small{ display:block; font-size:11.5px; color:var(--good-ink); margin-top:2px; }
.rm-milestone{ margin-top:14px; display:flex; flex-wrap:wrap; gap:4px 10px; align-items:center; background:var(--warn-soft); border-radius:var(--r-sm); padding:9px 12px; font-size:13.5px; }
.rm-milestone b{ color:var(--warn-ink); }
.rm-note{ margin-top:16px; border-top:1px dashed var(--border); padding-top:14px; }
.rm-note label{ display:block; font-size:12px; font-weight:700; color:var(--ink-3); margin-bottom:6px; }
.rm-note textarea{ width:100%; min-height:90px; resize:vertical; border:1px solid var(--border); border-radius:var(--r-sm); padding:10px 12px; font:inherit; font-size:14px; background:var(--surface-2); color:var(--ink); }
.rm-note textarea:focus{ outline:none; border-color:var(--accent); }
.rm-note.ro p{ white-space:pre-wrap; font-size:14px; background:var(--ready-soft); border-radius:var(--r-sm); padding:10px 12px; margin:0; }
.rm-note-row{ display:flex; align-items:center; gap:10px; margin-top:8px; flex-wrap:wrap; }
.rm-note-at{ font-size:12px; color:var(--ink-3); }
.rm-note.ro .rm-label{ margin-top:0; }
.rm-pnav{ display:flex; justify-content:space-between; gap:8px; margin-top:16px; }
@media (max-width:860px){ .rm-layout{ grid-template-columns:1fr; } .rm-panel{ position:static; } }


/* top menu: four entries, three of them open a submenu (מעקב, הצוות והתפקידים, החשבון) */
.nav-group{ position:relative; }
.nav-group[hidden]{ display:none; }
.nav-chev{ display:inline-flex; transition:transform .15s; opacity:.7; }
.nav-group.open .nav-chev{ transform:rotate(180deg); }
.nav-group.open > .nav-group-btn:not(.current){ background:var(--surface-2); color:var(--ink); }
.nav-sub{ display:none; position:absolute; top:calc(100% + 6px); inset-inline-start:0; z-index:40; min-width:250px; padding:6px;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); box-shadow:0 12px 32px rgba(30,17,71,.16); }
.nav-sub-end{ inset-inline-start:auto; inset-inline-end:0; }
.nav-group.open > .nav-sub{ display:grid; gap:2px; }
.nav-sub .nav-item{ width:100%; justify-content:flex-start; border-radius:var(--r-sm); padding:9px 10px; text-align:start; }
.nav-sub .nav-item[hidden]{ display:none; }
.nav-sub .nav-item.current{ background:var(--neutral-soft); color:var(--ink); }
.nav-lbl{ display:flex; flex-direction:column; line-height:1.3; }
.nav-lbl b{ font-weight:700; }
.nav-lbl small{ font-size:11.5px; font-weight:500; color:var(--ink-3); }
.nav-sub-who{ padding:8px 10px 10px; margin-bottom:4px; border-bottom:1px solid var(--border); font-weight:800; font-size:13px; display:flex; flex-direction:column; }
.nav-sub-who small{ font-weight:500; font-size:11.5px; color:var(--ink-3); text-align:start; }
.nav-sub .nav-form{ display:block; }
@media (max-width:820px){
  /* in the slide-in panel the groups become sections, always open */
  .nav-group{ display:block; margin-top:10px; padding-top:10px; border-top:1px solid var(--border); }
  .nav-group-btn{ pointer-events:none; font-size:12.5px!important; font-weight:800; color:var(--ink-3)!important; background:none!important; padding:4px 14px!important; }
  .nav-group-btn svg{ display:none; }
  .nav-chev{ display:none; }
  .nav-sub, .nav-group.open > .nav-sub{ display:grid; position:static; box-shadow:none; border:0; padding:0; min-width:0; background:none; }
  .nav-sub .nav-item{ padding:12px 14px; font-size:16px; }
  .nav-sub-who{ padding:6px 14px 10px; }
}


/* the system's logo in every page header (and the sign-in and legal pages) */
.brand-btn{ flex-direction:row; align-items:center; gap:10px; }
.brand-logo{ flex:none; width:36px; height:36px; border-radius:9px; display:block; }
.brand-logo.sm{ width:28px; height:28px; border-radius:7px; }
.brand-text{ display:flex; flex-direction:column; align-items:flex-start; gap:1px; min-width:0; }
.legal-home{ display:inline-flex; align-items:center; gap:8px; }
.login-mark{ border-radius:16px; }
