/* Ported ONCE from design-gallery/tries/laptop/sidenav2.css, hover.css, clip.css on 2026-11-10 by tools/laptop/port-css.cjs; edit HERE from now on.
   Every rule sits under :where(body.lt-on) inside @media (min-width:761px): a phone never reads it. */
@media (min-width:761px) {
  /* ---- from sidenav2.css (host #appside.lt-side) ---- */
  :where(body.lt-on) :where(#appside.lt-side) .ln2-body { display: grid; gap: 20px; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-sec { display: grid; gap: 6px; min-width: 0; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-h { margin: 0; padding: 0 10px; font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--sp-grey); }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-cal { padding: 0 2px; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-cal .dp-mt { height: 36px; padding-left: 8px; font-size: 15px; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-cal .dp-navs { top: 0; right: 0; align-items: center; gap: 0; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-cal .dp-nav { width: 30px; height: 34px; border-radius: 8px; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-today { min-height: 30px !important; margin-right: 2px; padding: 0 7px !important; border-radius: 8px; font-size: 14px !important; color: var(--sp-red) !important; font-weight: 600; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-cal .dp-wk { margin: 2px 0 2px; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-cal .dp-wk span { font-size: 14px; line-height: 24px; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-cal .dp-g { row-gap: 2px; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-cal .dp-c { height: 32px; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-cal .dp-d { width: 31px; height: 31px; font-size: 14px; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-cal .dp-c.is-in.is-a,
  :where(body.lt-on) :where(#appside.lt-side) .ln2-cal .dp-c.is-in.row-a,
  :where(body.lt-on) :where(#appside.lt-side) .ln2-cal .dp-c.is-in.m-a { border-top-left-radius: 17px; border-bottom-left-radius: 17px; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-cal .dp-c.is-in.is-z,
  :where(body.lt-on) :where(#appside.lt-side) .ln2-cal .dp-c.is-in.row-z,
  :where(body.lt-on) :where(#appside.lt-side) .ln2-cal .dp-c.is-in.m-z { border-top-right-radius: 17px; border-bottom-right-radius: 17px; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-cal .dp-d.lis-out { color: var(--sp-grey); }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-view { width: 100%; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-view .tb-list { width: 100%; box-sizing: border-box; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-view .tb-tab { height: 34px; padding: 0 6px; font-size: 14px; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-view.lis-off { visibility: hidden; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-ticks .st-row { min-height: 36px; padding: 4px 10px; gap: 10px; border-radius: 8px; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-ticks .st-kids { padding-left: 0; gap: 0; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-ticks .st-name { font-size: 15px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-ticks .st-all .st-name { font-weight: 600; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-ticks .st-count { font-size: 14px; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-face { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-pages { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-pages button { display: block; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--sp-ink); font: inherit; font-size: 15px; text-align: left; cursor: pointer; transition: background-color 140ms ease, transform 140ms var(--sp-ease-out); }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-pages button:active { transform: scale(.98); }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-pages button[aria-current="page"] { background: var(--sh-on); color: var(--sh-on-ink); font-weight: 600; cursor: default; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-pages button:focus-visible { outline: 2px solid var(--sp-red); outline-offset: -2px; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-nil[hidden] { display: none; }
  @media (prefers-reduced-motion: reduce) {
    :where(body.lt-on) :where(#appside.lt-side) .ln2-pages button { transition: none; }
  }
    :where(body.lt-on) :where(#appside.lt-side) .ln2-customers .lnw-views,
    :where(body.lt-on) :where(#appside.lt-side) .ln2-customers .ln2-gone { display: none !important; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-customers .ln2-off { display: none !important; }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-settings .lsg-sg { margin: 20px 10px 6px; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--sp-grey); }
  :where(body.lt-on) :where(#appside.lt-side) .ln2-customers .ln2-body { padding-top: 6px; }
  /* ---- from hover.css (host .lt-pop) ---- */
  :where(body.lt-on) :where(.lt-pop) .lhv { position: fixed; z-index: 1000; left: 0; top: 0; width: 320px; max-width: calc(100vw - 24px); box-sizing: border-box; padding: 16px 16px 12px; background: var(--sp-bg); color: var(--sp-ink); border: 1px solid var(--sp-line); border-radius: 16px; box-shadow: 0 16px 34px var(--sp-shadow); font-family: var(--sp-font); font-size: 14px; line-height: 1.4; text-align: left; }
  :where(body.lt-on) :where(.lt-pop) .lhv[hidden] { display: none; }
  :where(body.lt-on) :where(.lt-pop) .lhv.is-in { animation: lhv-in 170ms var(--sp-ease-out); }
  :where(body.lt-on) :where(.lt-pop) .lhv.lis-out { opacity: 0; transform: scale(.98); transition: opacity 120ms ease, transform 120ms ease; pointer-events: none; }
  @keyframes lhv-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
  :where(body.lt-on) :where(.lt-pop) .lhv p,
  :where(body.lt-on) :where(.lt-pop) .lhv dl,
  :where(body.lt-on) :where(.lt-pop) .lhv dd { margin: 0; }
  :where(body.lt-on) :where(.lt-pop) .lhv-hd { display: flex; align-items: center; gap: 12px; }
  :where(body.lt-on) :where(.lt-pop) .lhv-face { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .01em; }
  :where(body.lt-on) :where(.lt-pop) .lhv-hw { min-width: 0; }
  :where(body.lt-on) :where(.lt-pop) .lhv-t { font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
  :where(body.lt-on) :where(.lt-pop) .lhv-m { margin-top: 2px; color: var(--sp-grey); font-size: 14px; }
  :where(body.lt-on) :where(.lt-pop) .lhv-who { margin-top: 14px; }
  :where(body.lt-on) :where(.lt-pop) .lhv-who span { color: var(--sp-grey); }
  :where(body.lt-on) :where(.lt-pop) .lhv-tel { font-variant-numeric: tabular-nums; color: var(--sp-ink); }
  :where(body.lt-on) :where(.lt-pop) .lhv-who p + .lhv-tel { margin-top: 2px; color: var(--sp-grey); }
  :where(body.lt-on) :where(.lt-pop) .lhv .lhv-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; }
  :where(body.lt-on) :where(.lt-pop) .lhv-facts dt { color: var(--sp-grey); font-size: 14px; }
  :where(body.lt-on) :where(.lt-pop) .lhv-facts dd { font-size: 14px; font-weight: 600; }
  :where(body.lt-on) :where(.lt-pop) .lhv-open { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--sp-rule); }
  :where(body.lt-on) :where(.lt-pop) .lhv-or { display: grid; gap: 3px; justify-items: start; }
  :where(body.lt-on) :where(.lt-pop) .lhv .tg { display: inline-flex; align-items: center; height: auto; padding: 0; gap: 6px; background: none; color: var(--sp-grey); font-size: 14px; font-weight: 500; }
  :where(body.lt-on) :where(.lt-pop) .lhv .tg .tg-mark { display: block; width: 16px; height: 16px; color: var(--m); }
  :where(body.lt-on) :where(.lt-pop) .lhv-today { display: grid; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--sp-rule); }
  :where(body.lt-on) :where(.lt-pop) .lhv-th { color: var(--sp-grey); }
  :where(body.lt-on) :where(.lt-pop) .lhv-tr.lis-none { color: var(--sp-grey); }
  :where(body.lt-on) :where(.lt-pop) .lhv-ft { display: flex; gap: 6px; margin-top: 14px; }
  :where(body.lt-on) :where(.lt-pop) .lhv-ft:empty { display: none; }
  :where(body.lt-on) :where(.lt-pop) .lhv-ft .k-btn { min-height: 36px; }
  /* names that open a card sit on the screens, not in the pop host (hand-edited after the port: no host, our own attribute) */
  :where(body.lt-on) [data-lhv-tab="t"]:focus { outline: none; }
  :where(body.lt-on) [data-lhv-tab="t"]:focus-visible { outline: 2px solid var(--accent, #d9252e); outline-offset: 2px; border-radius: 4px; }
  @media (prefers-reduced-motion: reduce) {
    :where(body.lt-on) :where(.lt-pop) .lhv.is-in { animation: none; }
    :where(body.lt-on) :where(.lt-pop) .lhv.lis-out { transition: none; }
  }
  :where(body.lt-on) :where(.lt-pop) .lhv-field { color: var(--sp-ink); }
  /* ---- from clip.css ---- */
  :where(body.lt-on) .lclip-il { display: inline-block; max-width: 100%; vertical-align: bottom; }
  :where(body.lt-on) .lclip-cut { --clip-f: 28px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - var(--clip-r, 14px) - var(--clip-f)), rgba(0, 0, 0, .14) calc(100% - var(--clip-r, 14px) - 1px), #000 calc(100% - var(--clip-r, 14px))); mask-image: linear-gradient(90deg, #000 calc(100% - var(--clip-r, 14px) - var(--clip-f)), rgba(0, 0, 0, .14) calc(100% - var(--clip-r, 14px) - 1px), #000 calc(100% - var(--clip-r, 14px))); }
  :where(body.lt-on) .lclip-tip { position: fixed; z-index: 1200; left: 0; top: 0; box-sizing: border-box; max-width: min(640px, calc(100vw - 24px)); padding: 6px 10px; border: 1px solid var(--sp-line); border-radius: 10px; background: var(--sp-bg); color: var(--sp-ink); box-shadow: 0 10px 26px var(--sp-shadow); font-family: var(--sp-font); font-size: 14px; line-height: 1.4; text-align: left; white-space: normal; overflow-wrap: break-word; pointer-events: none; }
  :where(body.lt-on) .lclip-tip[hidden] { display: none; }
  :where(body.lt-on) .lclip-tip.is-in { animation: lclip-in 140ms var(--sp-ease-out, ease-out); }
  @keyframes lclip-in { from { opacity: 0; clip-path: inset(0 30% 0 0 round 10px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 10px); } }
  @media (prefers-reduced-motion: reduce) {
    :where(body.lt-on) .lclip-tip.is-in { animation: none; }
  }

  /* ════ hand-written (build plan P1-1 / P1-2): today's side panel wears the approved wide side column on the five
     laptop-look apps (topbar.js LT_APPS puts .lt-side on #appside). Its own width, --lt-w, so Projects keeps --as-w.
     The CRM's panel rules carry !important (apppanel.css), so the row rules here answer with !important at a heavier
     selector; nothing here reaches a panel without .lt-side. ════ */
  :where(body.lt-on) #appside.lt-side { width: var(--lt-w, 272px); --sh-on: #f6e3e4; --sh-on-ink: #111114; font-family: "Schibsted Grotesk", system-ui, sans-serif; }
  :where(html[data-theme="dark"] body.lt-on) #appside.lt-side { --sh-on: #3a1d20; --sh-on-ink: #f3f3f5; }
  :where(body.lt-on) #appside.lt-side.as-shut { margin-left: calc(-1 * var(--lt-w, 272px)); }
  /* the head: the app's name as the try's heading */
  :where(body.lt-on) #appside.lt-side .as-head { padding: 18px 12px 12px 18px; }
  :where(body.lt-on) #appside.lt-side .as-here { font-family: inherit; font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
  :where(body.lt-on) #appside.lt-side .as-body { padding: 2px 8px 24px; }
  /* the app's pages: plain rows, 36 high, 15px, the lit one in the shell's own red tint; the try shows no counts */
  :where(body.lt-on) #appside.lt-side .as-tabs .dtab,
  :where(body.lt-on) #appside.lt-side .as-tabs .tab { height: 36px !important; padding: 0 10px !important; border-radius: 8px !important; font-family: inherit; font-size: 15px; font-weight: 400; color: var(--ink); transition: background-color 140ms ease, transform 140ms cubic-bezier(.23, 1, .32, 1); }
  :where(body.lt-on) #appside.lt-side .as-tabs .dtab:active,
  :where(body.lt-on) #appside.lt-side .as-tabs .tab:active { transform: scale(.98); }
  :where(body.lt-on) #appside.lt-side .as-tabs .dtab.on,
  :where(body.lt-on) #appside.lt-side .as-tabs .tab.on { background: var(--sh-on) !important; color: var(--sh-on-ink); font-weight: 600; }
  :where(body.lt-on) #appside.lt-side .as-tabs .dtab > span { display: none !important; }
  /* Customers' side body (P1-4): hidden in the page on a phone, shown in the column */
  :where(body.lt-on) #appside.lt-side #cuPanel[hidden] { display: block; }
  /* ---- folds (lt-core.js ltFold / ltFoldMany, 12 Nov 2026): shut content leaves the page after its slide; an "all"
     button changes every fold in one step, with no slide ---- */
  :where(body.lt-on) .lmt-fold.lis-gone > * { display: none; }
  :where(body.lt-on) .lis-snap :is(.lmt-fold, .lmt-cust, .l-chev, .lmt-mf svg, .lct-fold svg, .lmt-fold > div) { transition: none !important; }
  /* the laptop twin of the UP-DOWN COLUMNS list in app.css (20 Nov 2026): these lt-* boxes scroll up-down, so they keep
     the no-bounce "none"; a sideways-only or clipping box never goes here (it would stop the wheel dead in Chrome) */
  :where(body.lt-on) :is(.lct-pop, .lin-tsc, .lpl-left, .lpl-gwrap, .lpr-sugg, .lvs-sug, .lvc-ahead) { overscroll-behavior-y: none !important; }
  @media (prefers-reduced-motion: reduce) {
    :where(body.lt-on) #appside.lt-side .as-tabs .dtab,
    :where(body.lt-on) #appside.lt-side .as-tabs .tab { transition: none; }
  }
}
