/* Sprowtz Dock (plans/taskbar.md, Oct 24 2026): a Windows 11-style bar along the bottom of the PC office. PC only (900px+
   and a mouse); phones keep the tab bar. House tokens only, so Dark (the default) and Light both follow the Style. Brand
   blue marks the open page and the active Start button; green stays for accents. Stacking: dock < Debug bar < Task Card
   < dialogs and flyouts. */
.dk { display: none; }
@media (min-width: 900px) and (pointer: fine) {
  body:has(#dk) .content { padding-bottom: 48px; }
  body:has(#dk) dialog#task-card { bottom: 48px; }
  body:has(#dk) .dbp { bottom: 48px; } /* Debug Mode bar sits on top of the dock, not over it */
  body:has(#dk):has(#dbp) .content { padding-bottom: calc(48px + 2.25rem); }
  body:has(#dk) .hc-fab { bottom: calc(var(--hc-lift, 0px) + 68px); }
  body:has(#dk) .hc-panel { bottom: 60px; }
  body:has(#dk[data-move="1"]) .top .pm-dot#pm-dot { visibility: hidden; } /* the alert count moves to the dock bell */
  .dk { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: 48px; padding: 0 6px 0 10px; box-sizing: border-box; background: var(--card); color: var(--ink); border-top: 1px solid var(--line);
    transition: transform .18s ease; }
  .dk.dk-left { grid-template-columns: auto 1fr auto; }
  .dk.dk-left .dk-l { order: 2; justify-self: end; }
  .dk.dk-left .dk-c { order: 1; justify-self: start; }
  .dk.dk-left .dk-r { order: 3; }
  .dk.dk-auto { transform: translateY(44px); }
  .dk.dk-auto:hover, .dk.dk-auto:focus-within, .dk.dk-auto.dk-open { transform: none; }
  .dk-l { justify-self: start; display: flex; align-items: center; min-width: 0; }
  .dk-c { justify-self: center; display: flex; align-items: center; gap: 4px; min-width: 0; }
  .dk-r { justify-self: end; display: flex; align-items: center; gap: 2px; }
  .dk-pins { display: flex; align-items: center; gap: 2px; }
  .dk .dk-ic { position: relative; width: 40px; height: 40px; border-radius: var(--r-sm); background: transparent; border: 0; color: var(--ink); display: grid; place-items: center; }
  .dk .dk-ic:hover, .dk .dk-ic:focus-visible { background: var(--card-2, var(--paper)); }
  .dk .dk-ic .ico { width: 22px; height: 22px; }
  .dk .dk-ic.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; border-radius: var(--r-pill); background: var(--blue); }
  .dk .dk-logo { color: var(--blue); }
  .dk .dk-logo svg { width: 24px; height: 24px; }
  .dk .dk-logo[aria-expanded="true"] { background: var(--card-2, var(--paper)); }
  .dk .dk-sbox { display: flex; align-items: center; gap: 8px; height: 34px; min-width: 200px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line);
    background: var(--paper); color: var(--muted); font: inherit; font-size: var(--fs-small); cursor: text; }
  .dk .dk-sbox .ico { width: 16px; height: 16px; }
  .dk-wx { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: var(--fs-small); }
  .dk-wx:hover { background: var(--card-2, var(--paper)); }
  .dk-wx-i { display: grid; width: 24px; height: 24px; }
  .dk-wx-i svg, .dk-wx-i img { width: 24px; height: 24px; }
  .dk-wm { margin: 0; display: contents; }
  .dk .dk-n { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: var(--r-pill);
    background: var(--red); color: var(--text-on-danger, var(--white)); font-size: var(--fs-xs); font-weight: 700; line-height: 16px; text-align: center; }
  .dk .dk-clock { display: grid; justify-items: end; gap: 0; height: 40px; padding: 2px 8px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink);
    font: inherit; font-size: var(--fs-sm); line-height: 1.25; cursor: pointer; }
  .dk .dk-clock:hover { background: var(--card-2, var(--paper)); }
  .dk .dk-clock b { font-weight: 600; }
  .dk-corner { width: 6px; height: 40px; margin-left: 4px; border-left: 1px solid var(--line); }
  .dk-corner:hover { background: var(--card-2, var(--paper)); }
  /* Start panel and menus open upward, above the dock. */
  .dk-start { position: fixed; bottom: calc(48px + 8px); left: 50%; transform: translateX(-50%); width: min(640px, calc(100vw - 24px)); max-height: min(720px, calc(100vh - 120px));
    display: flex; flex-direction: column; box-sizing: border-box; padding: 18px 20px 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); color: var(--ink);
    box-shadow: 0 18px 48px rgb(0 0 0 / .35); z-index: 70; }
  .dk.dk-left .dk-start { left: 10px; transform: none; }
  .dk-start[hidden], .dk-menu[hidden] { display: none; }
  .dk-q { width: 100%; box-sizing: border-box; border-radius: var(--r-pill); }
  .dk-home, .dk-all, .dk-recent-q { overflow-y: auto; min-height: 0; padding: 4px 0 12px; }
  .dk-h { margin: 14px 0 8px; font-weight: 600; font-size: var(--fs-small); }
  .dk-hrow { display: flex; align-items: center; justify-content: space-between; }
  .dk-hrow .dk-h { margin-bottom: 6px; }
  .dk-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
  .dk-tile { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: var(--fs-sm); text-align: center; }
  .dk-tile:hover, .dk-line:hover, .dk-tile:focus-visible, .dk-line:focus-visible { background: var(--card-2, var(--paper)); }
  .dk-tile .ico { width: 26px; height: 26px; color: var(--blue); }
  .dk-tile span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dk-list { display: grid; gap: 1px; }
  .dk-row { display: flex; align-items: center; gap: 4px; }
  .dk-row[hidden] { display: none; }
  .dk-line { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 10px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; min-width: 0; }
  .dk-line .ico { width: 20px; height: 20px; color: var(--blue); flex: none; }
  .dk-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dk-line small { margin-left: auto; color: var(--muted); flex: none; }
  .dk-grp { margin: 10px 0 2px; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .05em; }
  .dk-pin { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--muted); }
  .dk-pin.on { color: var(--blue); }
  .dk-pin .ico { width: 16px; height: 16px; }
  .dk-more { font-size: var(--fs-small); }
  .dk-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -20px; padding: 10px 20px; border-top: 1px solid var(--line); background: var(--card-2, var(--paper));
    border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .dk-me { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
  .dk-menu { position: fixed; bottom: calc(48px + 8px); display: grid; min-width: 200px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card);
    box-shadow: 0 12px 32px rgb(0 0 0 / .3); z-index: 71; }
  .dk-menu a, .dk-menu button { display: block; width: 100%; text-align: left; padding: var(--btn-pad-sm); border-radius: var(--r-xs); color: var(--ink); text-decoration: none; background: transparent; border: 0; font: inherit; }
  .dk-menu a:hover, .dk-menu button:hover { background: var(--card-2, var(--paper)); }
}
@media print { .dk { display: none !important; } }
