/* ============================================================
   DragonOwl Hub shell — the left nav (LHSNB) and the module screen.
   Uses only the --hub-* tokens defined in index.html :root (docs/hub.md).
   Off until a person is signed in (html.hub-on, set by shell.js).
   ============================================================ */

#hubNav{
  position:fixed;z-index:60;top:0;left:0;bottom:0;width:var(--hub-nav-w);
  display:flex;flex-direction:column;
  padding:calc(var(--safe-top) + 10px) 8px calc(var(--safe-bottom) + 8px) calc(var(--safe-left) + 8px);
  background:var(--hub-sidebar);border-right:1px solid var(--hub-border);
  font:500 var(--hub-font-size)/1.35 var(--hub-font);color:var(--hub-text);
  -webkit-user-select:none;user-select:none;
}
#hubNav[hidden], #hubView[hidden]{display:none !important;}
/* Under a tab or board colour the nav takes a darker shade of it (index.html applyPersonalBg →
   navPalette sets the --nav-* values on <html>); every nav role below follows inside #hubNav. */
html[data-nav-bg] #hubNav{
  --hub-sidebar:var(--nav-bg);--hub-surface:var(--nav-surface);
  --hub-text:var(--nav-text);--hub-text-muted:var(--nav-text-muted);--hub-text-faint:var(--nav-text-faint);
  --hub-border:var(--nav-border);--hub-border-strong:var(--nav-border-strong);
  --hub-hover:var(--nav-hover);--hub-active:var(--nav-active);
  --hub-accent:var(--nav-accent);--hub-on-accent:var(--nav-on-accent);--hub-focus:0 0 0 2px var(--nav-accent);
}

/* wide screens: the nav is a column, the page moves over */
html.hub-on body{padding-left:var(--hub-nav-w);}
html.hub-on.hub-rail body{padding-left:var(--hub-nav-rail);}
html.hub-on.hub-rail #hubNav{width:var(--hub-nav-rail);padding-left:calc(var(--safe-left) + 6px);padding-right:6px;}
html.notes-only #hubNav{display:none !important;}

/* a module is open: its screen replaces Tasking's. A Tasking screen opened
   on top of a module (the Vault from Notes) covers the pane, not the nav. */
html.hub-module #app{display:none !important;}
html.hub-module .modal-overlay.fullbleed.under-head{top:calc(var(--safe-top) + 48px);left:var(--hub-nav-w);}
html.hub-module.hub-rail .modal-overlay.fullbleed.under-head{left:var(--hub-nav-rail);}
@media (max-width: 860px){ html.hub-module .modal-overlay.fullbleed.under-head, html.hub-module.hub-rail .modal-overlay.fullbleed.under-head{left:0;} }
#hubView{
  min-height:100vh;box-sizing:border-box;
  padding:var(--safe-top) var(--safe-right) var(--safe-bottom) 0;
  background:var(--hub-bg);color:var(--hub-text);font:400 var(--hub-font-size)/1.45 var(--hub-font);
}
.hub-view-head{
  position:sticky;top:var(--safe-top);z-index:5;display:flex;align-items:center;gap:8px;
  height:48px;padding:0 16px;background:var(--hub-bg);border-bottom:1px solid var(--hub-border);
}
.hub-view-title{font-weight:600;font-size:15px;display:flex;align-items:center;gap:8px;min-width:0;}
.hub-view-title .hub-ico{width:18px;height:18px;}
.hub-view-title > span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.hub-view-gap{flex:1 1 auto;min-width:0;}
.hub-view-title[data-hub-drag-app]{cursor:grab;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:pan-y;}
.hub-drag-ghost{position:fixed;z-index:1000;pointer-events:none;display:flex;align-items:center;gap:8px;padding:6px 12px;border-radius:8px;
  background:var(--hub-surface);color:var(--hub-text);box-shadow:var(--hub-shadow-lg);font-weight:600;font-size:14px;opacity:.6;}
.hub-drag-ghost.over{opacity:.95;}
.hub-drag-ghost .hub-ico{width:18px;height:18px;}
.hub-view-body{padding:16px;}

/* ---- nav: header ---- */
.hub-nav-head{display:flex;align-items:center;gap:8px;padding:2px 6px 10px;min-height:32px;}
.hub-brand{display:flex;align-items:center;gap:8px;font-weight:700;font-size:14px;letter-spacing:-.01em;flex:1;min-width:0;white-space:nowrap;overflow:hidden;}
.hub-brand-mark{width:24px;height:24px;border-radius:var(--hub-radius-md);background:var(--hub-accent);color:var(--hub-on-accent);display:grid;place-items:center;font-size:13px;font-weight:800;flex:0 0 auto;}
.hub-icon-btn{
  appearance:none;border:0;background:transparent;color:var(--hub-text-muted);
  width:28px;height:28px;border-radius:var(--hub-radius-sm);display:grid;place-items:center;cursor:pointer;flex:0 0 auto;padding:0;
}
.hub-icon-btn:hover{background:var(--hub-hover);color:var(--hub-text);}
.hub-icon-btn:focus-visible{outline:none;box-shadow:var(--hub-focus);}
.hub-icon-btn svg{width:16px;height:16px;}
html.hub-rail .hub-brand-text, html.hub-rail .hub-sec-head, html.hub-rail .hub-item-label,
html.hub-rail .hub-item-pin, html.hub-rail .hub-foot-label, html.hub-rail .hub-foot-ver, html.hub-rail .hub-empty{display:none;}
html.hub-rail .hub-nav-head{flex-direction:column;padding:2px 0 10px;}

/* ---- nav: sections ---- */
.hub-nav-scroll{flex:1;overflow-y:auto;overflow-x:hidden;margin:0 -4px;padding:0 4px;scrollbar-width:thin;}
.hub-sec{margin-bottom:10px;}
.hub-sec-head{
  display:flex;align-items:center;gap:4px;width:100%;appearance:none;border:0;background:none;cursor:pointer;
  padding:4px 6px;border-radius:var(--hub-radius-sm);
  font:600 11px/1.2 var(--hub-font);letter-spacing:.04em;text-transform:uppercase;color:var(--hub-text-faint);text-align:left;
}
.hub-sec-head:hover{color:var(--hub-text-muted);background:var(--hub-hover);}
.hub-sec-head .hub-caret{width:12px;height:12px;transition:transform .12s ease;}
.hub-sec.collapsed .hub-caret{transform:rotate(-90deg);}
.hub-sec.collapsed .hub-sec-list{display:none;}
html.hub-rail .hub-sec.collapsed .hub-sec-list{display:block;}
.hub-sec-list{list-style:none;margin:2px 0 0;padding:0;min-height:4px;}
.hub-empty{padding:6px 8px;font-size:12px;color:var(--hub-text-faint);border:1px dashed var(--hub-border-strong);border-radius:var(--hub-radius-md);margin:2px 0;}
.hub-sec-list.drop-target .hub-empty{border-color:var(--hub-accent);color:var(--hub-accent);}

/* ---- nav: items ---- */
.hub-item{
  position:relative;display:flex;align-items:center;gap:9px;height:32px;padding:0 8px;margin:1px 0;
  border-radius:var(--hub-radius-md);color:var(--hub-text);cursor:pointer;
  touch-action:pan-y;-webkit-touch-callout:none;
}
.hub-item:hover{background:var(--hub-hover);}
.hub-item:focus-visible{outline:none;box-shadow:var(--hub-focus);}
.hub-item.active{background:var(--hub-active);font-weight:600;}
.hub-item.active::before{content:"";position:absolute;left:-4px;top:8px;bottom:8px;width:3px;border-radius:2px;background:var(--hub-accent);}
.hub-ico{width:18px;height:18px;flex:0 0 auto;display:grid;place-items:center;color:var(--hub-text-muted);font-size:15px;line-height:1;}
.hub-ico svg{width:18px;height:18px;}
.hub-item.active .hub-ico{color:var(--hub-accent);}
.hub-item-label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.hub-item-caret{display:flex;width:12px;height:12px;flex:0 0 auto;color:var(--hub-text-faint);transition:transform .12s ease;}
.hub-item-caret svg{width:12px;height:12px;}
.hub-item-caret.folded{transform:rotate(-90deg);}
html.hub-rail .hub-item-caret{display:none;}
html.hub-rail .hub-item-fold{display:none;}
.hub-badge{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--hub-accent);color:var(--hub-on-accent);font-size:11px;font-weight:700;display:grid;place-items:center;}
html.hub-rail .hub-badge{position:absolute;top:2px;right:2px;min-width:14px;height:14px;font-size:9px;padding:0 3px;}
.hub-alert{min-width:18px;height:18px;border-radius:9px;background:var(--hub-warn);color:#1a1a1a;font-size:12px;font-weight:800;line-height:1;display:grid;place-items:center;flex:0 0 auto;}
.hub-alert.urgent{background:var(--hub-danger);color:#fff;}
html.hub-rail .hub-alert{position:absolute;top:2px;left:2px;min-width:14px;height:14px;font-size:10px;}
html.hub-rail .hub-item{justify-content:center;padding:0;}
.hub-item-pin{opacity:0;width:22px;height:22px;}
.hub-item:hover .hub-item-pin, .hub-item-pin:focus-visible{opacity:1;}
@media (hover:none){ .hub-item-pin{opacity:.45;} }
.hub-item.dragging{background:var(--hub-surface);box-shadow:var(--hub-shadow-lg);z-index:3;opacity:.95;cursor:grabbing;}
#hubNav.reordering .hub-item:not(.dragging){transition:transform .1s ease;}
#hubNav.reordering{cursor:grabbing;}

/* ---- nav: Apps as his own folders, folders inside folders (FOLDER_USERS in shell.js) ----
   A folder's contents (its folders, then its apps) hang off a guide line under its
   icon; the open app's accent bar sits on that line. */
.hub-folder-row{position:relative;display:flex;align-items:center;}
.hub-folder-head{
  position:relative;display:flex;align-items:center;gap:9px;width:100%;min-width:0;height:32px;padding:0 30px 0 8px;margin:1px 0;
  appearance:none;border:0;background:none;border-radius:var(--hub-radius-md);cursor:pointer;
  color:var(--hub-text);font:600 var(--hub-font-size)/1.35 var(--hub-font);text-align:left;
}
.hub-folder-head .hub-item-label{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.hub-folder-head:hover{background:var(--hub-hover);}
.hub-folder-head:focus-visible{outline:none;box-shadow:var(--hub-focus);}
.hub-folder-head.editing{cursor:default;padding-right:8px;background:var(--hub-hover);}
.hub-folder-input{flex:1 1 auto;min-width:0;height:24px;padding:0 6px;border:1px solid var(--hub-accent);border-radius:var(--hub-radius-sm);background:var(--hub-surface);color:var(--hub-text);font:inherit;outline:none;}
.hub-folder-more{position:absolute;right:2px;top:50%;transform:translateY(-50%);width:26px;height:26px;opacity:0;}
.hub-folder-row:hover .hub-folder-more, .hub-folder-more:focus-visible{opacity:1;}
@media (hover:none){ .hub-folder-more{opacity:.7;} }
.hub-folder.holds-active > .hub-folder-row .hub-ico{color:var(--hub-accent);}
.hub-folder:has(> .hub-folder-body > .hub-sec-list.drop-target) > .hub-folder-row .hub-folder-head{background:var(--hub-hover);}
.hub-folder > .hub-folder-body{position:relative;padding-left:22px;}
.hub-folder > .hub-folder-body::before{content:"";position:absolute;left:16px;top:2px;bottom:2px;width:1px;background:var(--hub-border-strong);}
.hub-folder-body > .hub-sec-list > .hub-item.active::before{left:-6px;}
/* three levels down and deeper: a tighter step, so eight levels still leave room for names */
.hub-folder .hub-folder .hub-folder > .hub-folder-body{padding-left:11px;}
.hub-folder .hub-folder .hub-folder > .hub-folder-body::before{left:5px;}
.hub-folder .hub-folder .hub-folder > .hub-folder-body > .hub-sec-list > .hub-item.active::before{left:-8px;}
.hub-folder .hub-folder .hub-folder .hub-folder-head{gap:6px;padding-left:4px;}
.hub-folder-body, .hub-folder-row{min-width:0;}
.hub-folder .hub-folder .hub-folder .hub-item-pin{position:absolute;right:4px;}   /* takes no room from the name down there */
.hub-folder .hub-folder .hub-folder .hub-item{gap:7px;}
.hub-folder.collapsed > .hub-folder-body, .hub-sec.collapsed > .hub-folders{display:none;}
.hub-loose-hint{display:none;}
#hubNav.reordering .hub-loose-hint{display:block;}
.hub-new-folder{
  display:flex;align-items:center;gap:9px;width:100%;height:30px;padding:0 8px;margin:2px 0;appearance:none;border:0;background:none;
  border-radius:var(--hub-radius-md);cursor:pointer;color:var(--hub-text-faint);font:500 12.5px var(--hub-font);text-align:left;
}
.hub-new-folder:hover{background:var(--hub-hover);color:var(--hub-text);}
.hub-new-folder .hub-ico{opacity:.7;}
html.hub-rail .hub-sec.collapsed > .hub-folders{display:block;}
html.hub-rail .hub-folder-row, html.hub-rail .hub-new-folder{display:none;}
html.hub-rail .hub-folder.collapsed > .hub-folder-body{display:block;}
html.hub-rail .hub-folder > .hub-folder-body{padding-left:0;}
html.hub-rail .hub-folder > .hub-folder-body::before{display:none;}
html.hub-rail .hub-folders > .hub-folder + .hub-folder{border-top:1px solid var(--hub-border);margin-top:4px;padding-top:4px;}

/* ---- nav: nested sub-items of the open module (spec.subs / ctx.setSubs) ---- */
.hub-subs{list-style:none;margin:0 0 4px;padding:0;}
.hub-subs > ul{list-style:none;margin:0;padding:0 0 0 14px;position:relative;}
.hub-subs > ul::before{content:"";position:absolute;left:16px;top:2px;bottom:2px;width:1px;background:var(--hub-border-strong);}
.hub-subitem{
  position:relative;display:flex;align-items:center;gap:8px;height:28px;padding:0 8px 0 12px;margin:1px 0 1px 6px;
  border-radius:var(--hub-radius-md);color:var(--hub-text-muted);cursor:pointer;font-weight:500;font-size:13px;
}
.hub-subitem:hover{background:var(--hub-hover);color:var(--hub-text);}
.hub-subitem:focus-visible{outline:none;box-shadow:var(--hub-focus);}
.hub-subitem.active{background:var(--hub-active);color:var(--hub-text);font-weight:600;}
.hub-subitem .hub-ico{width:15px;height:15px;font-size:12px;}
.hub-subitem .hub-ico svg{width:15px;height:15px;}
.hub-subitem.active .hub-ico{color:var(--hub-accent);}
.hub-subitem .hub-badge{min-width:16px;height:16px;font-size:10px;}
.hub-dot{width:7px;height:7px;border-radius:50%;background:var(--hub-danger);flex:0 0 auto;}
/* a nested item's own children (Tasking's board directory: life areas under Personal),
   and theirs (Recip-ez under Nourishment) */
.hub-subitem.hub-sub-l2, .hub-subitem.hub-sub-l3, .hub-subitem.hub-sub-l4, .hub-subitem.hub-sub-l5, .hub-subitem.hub-sub-l6{margin-left:22px;height:27px;font-size:12.5px;}
.hub-subitem.hub-sub-l3{margin-left:40px;}
.hub-subitem.hub-sub-l4{margin-left:56px;}
.hub-subitem.hub-sub-l5{margin-left:70px;}
.hub-subitem.hub-sub-l6{margin-left:82px;}
.hub-subitem.hub-sub-l2 .hub-ico, .hub-subitem.hub-sub-l2 .hub-ico svg,
.hub-subitem.hub-sub-l3 .hub-ico, .hub-subitem.hub-sub-l3 .hub-ico svg,
.hub-subitem.hub-sub-l4 .hub-ico, .hub-subitem.hub-sub-l4 .hub-ico svg,
.hub-subitem.hub-sub-l5 .hub-ico, .hub-subitem.hub-sub-l5 .hub-ico svg,
.hub-subitem.hub-sub-l6 .hub-ico, .hub-subitem.hub-sub-l6 .hub-ico svg{width:14px;height:14px;}
/* dragging a sub (Tasking: her boards) — a line above / below where it lands, or the row it goes inside */
.hub-subitem[data-sub-drag]{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;}
.hub-subitem.dragging{opacity:.45;}
#hubNav.reordering-sub{cursor:grabbing;}
#hubNav.reordering-sub .hub-subitem:hover:not(.sub-drop-in){background:none;}
.hub-subitem.sub-drop-in{background:var(--hub-active);box-shadow:inset 0 0 0 2px var(--hub-accent);color:var(--hub-text);}
.hub-subitem.sub-drop-before::before, .hub-subitem.sub-drop-after::after{
  content:"";position:absolute;left:8px;right:6px;height:2px;border-radius:2px;background:var(--hub-accent);pointer-events:none;
}
.hub-subitem.sub-drop-before::before{top:-2px;}
.hub-subitem.sub-drop-after::after{bottom:-2px;}
/* Arrange (footer button): rows spread out, a line above each at its indent, "Inside …" under it */
.hub-subs.arranging .hub-subitem{margin-top:4px;margin-bottom:4px;height:32px;}
.hub-arrange-tip{list-style:none;margin:2px 0 6px 6px;padding:6px 8px;border-radius:var(--hub-radius-md);background:var(--hub-active);color:var(--hub-text-muted);font-size:12px;line-height:1.35;}
.hub-arrange-tip button{appearance:none;border:0;background:var(--hub-accent);color:#fff;font:600 12px var(--hub-font);padding:3px 10px;border-radius:999px;margin-left:4px;cursor:pointer;}
.hub-sub-slot{list-style:none;position:relative;margin:0 6px 0 6px;pointer-events:none;transition:background .1s ease, opacity .1s ease;}
.hub-slot-line{height:8px;}
.hub-slot-line::before{content:"";position:absolute;left:8px;right:0;top:3px;height:2px;border-radius:2px;background:var(--hub-border-strong);opacity:.6;}
.hub-slot-in{height:22px;margin-top:-2px;border:1px dashed var(--hub-border-strong);border-radius:var(--hub-radius-md);display:flex;align-items:center;padding-left:10px;color:var(--hub-text-faint);font-size:11.5px;}
.hub-slot-in span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.hub-slot-l1{margin-left:6px;} .hub-slot-l2{margin-left:22px;} .hub-slot-l3{margin-left:40px;}
.hub-slot-l4{margin-left:56px;} .hub-slot-l5{margin-left:70px;} .hub-slot-l6{margin-left:82px;}
#hubNav.reordering-sub .hub-sub-slot.off{opacity:.2;}
.hub-sub-slot.on.hub-slot-line::before{background:var(--hub-accent);opacity:1;height:4px;top:2px;}
.hub-sub-slot.on.hub-slot-in{border:2px solid var(--hub-accent);background:var(--hub-active);color:var(--hub-text);font-weight:600;}
.hub-sub-grip{margin-left:auto;width:26px;height:26px;margin-right:-6px;display:grid;place-items:center;color:var(--hub-text-faint);cursor:grab;touch-action:none;flex:0 0 auto;}
.hub-sub-grip svg{width:14px;height:14px;}
.hub-sub-caret + .hub-sub-grip{margin-left:4px;}
.hub-arrange-btn.on{background:var(--hub-active);color:var(--hub-accent);}
.hub-sub-caret{
  appearance:none;border:0;background:none;color:var(--hub-text-faint);width:22px;height:22px;flex:0 0 auto;margin-right:-6px;
  display:grid;place-items:center;border-radius:6px;cursor:pointer;
}
.hub-sub-caret svg{width:12px;height:12px;transition:transform .12s ease;}
.hub-sub-caret.folded svg{transform:rotate(-90deg);}
.hub-sub-caret:hover{background:var(--hub-hover);color:var(--hub-text);}
html.hub-rail .hub-subs{display:none;}

/* ---- nav: footer ---- */
.hub-nav-foot{display:flex;align-items:center;gap:4px;padding-top:8px;border-top:1px solid var(--hub-border);margin-top:6px;}
html.hub-rail .hub-nav-foot{flex-direction:column;}
.hub-profile{display:flex;align-items:center;gap:8px;flex:1;min-width:0;appearance:none;border:0;background:none;cursor:pointer;padding:4px 6px;border-radius:var(--hub-radius-md);color:var(--hub-text);font:500 13px var(--hub-font);text-align:left;}
.hub-profile:hover{background:var(--hub-hover);}
.hub-avatar{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:11px;font-weight:700;flex:0 0 auto;}
.hub-foot-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.hub-foot-ver{flex:0 0 auto;margin-left:-2px;color:var(--hub-text-faint);font-size:11px;font-weight:500;font-variant-numeric:tabular-nums;}
.hub-menu{
  position:fixed;z-index:80;min-width:180px;padding:4px;background:var(--hub-surface);color:var(--hub-text);
  border:1px solid var(--hub-border-strong);border-radius:var(--hub-radius-lg);box-shadow:var(--hub-shadow-lg);font:500 13px var(--hub-font);
}
.hub-menu button{display:block;width:100%;appearance:none;border:0;background:none;color:inherit;font:inherit;text-align:left;padding:7px 10px;border-radius:var(--hub-radius-sm);cursor:pointer;}
.hub-menu button:hover{background:var(--hub-hover);}
.hub-menu .hub-menu-note{padding:6px 10px;color:var(--hub-text-faint);font-size:12px;}

/* ---- toasts ---- */
.hub-toasts{position:fixed;z-index:9500;left:50%;bottom:calc(var(--safe-bottom) + 16px);transform:translateX(-50%);display:flex;flex-direction:column;gap:6px;align-items:center;pointer-events:none;}
.hub-toast{pointer-events:auto;padding:8px 14px;border-radius:var(--hub-radius-md);background:var(--hub-gray-900);color:#fff;font:500 13px var(--hub-font);box-shadow:var(--hub-shadow-lg);max-width:min(92vw,420px);}
.hub-toast.error{background:var(--hub-danger);}
.hub-toast.ok{background:var(--hub-ok);color:var(--hub-on-accent);}

/* ---- placeholder ("coming soon") screen ---- */
.hub-card{background:var(--hub-surface);border:1px solid var(--hub-border);border-radius:var(--hub-radius-card);box-shadow:var(--hub-shadow-sm);padding:16px;}
.hub-soon{max-width:560px;margin:40px auto;text-align:center;}
.hub-soon h2{font:600 18px var(--hub-font);margin:10px 0 6px;}
.hub-soon p{color:var(--hub-text-muted);margin:0 0 6px;}
.hub-soon .hub-ico{width:36px;height:36px;margin:0 auto;}
.hub-soon .hub-ico svg{width:36px;height:36px;}
.hub-muted{color:var(--hub-text-faint);font-size:12px;}

/* ---- phone: the nav is a drawer ---- */
.hub-scrim{position:fixed;inset:0;z-index:59;background:rgba(0,0,0,.32);}
.hub-fab{
  position:fixed;z-index:58;left:calc(var(--safe-left) + 12px);bottom:calc(var(--safe-bottom) + 12px);
  width:44px;height:44px;border-radius:var(--hub-radius-lg);border:1px solid var(--hub-border-strong);
  background:var(--hub-surface);color:var(--hub-text);box-shadow:var(--hub-shadow-md);display:none;place-items:center;cursor:pointer;padding:0;
}
.hub-fab svg{width:20px;height:20px;}
.hub-menu-btn{display:none;}
.hub-nav-close{display:none;}
@media (max-width: 860px){
  html.hub-on body, html.hub-on.hub-rail body{padding-left:0;}
  #hubNav, html.hub-rail #hubNav{
    width:min(84vw, 300px);transform:translateX(-102%);transition:transform .18s ease;box-shadow:none;
    padding-left:calc(var(--safe-left) + 8px);padding-right:8px;
  }
  html.hub-rail .hub-brand-text, html.hub-rail .hub-sec-head, html.hub-rail .hub-item-label,
  html.hub-rail .hub-item-pin, html.hub-rail .hub-foot-label, html.hub-rail .hub-foot-ver, html.hub-rail .hub-empty{display:revert;}
  html.hub-rail .hub-item-caret{display:flex;}
  html.hub-rail .hub-item-fold{display:grid;}
  .hub-item-fold{width:30px;height:30px;}
  html.hub-rail .hub-item{justify-content:flex-start;padding:0 8px;}
  html.hub-rail .hub-nav-head, html.hub-rail .hub-nav-foot{flex-direction:row;}
  html.hub-drawer #hubNav{transform:none;box-shadow:var(--hub-shadow-lg);}
  html.hub-rail .hub-folder-row, html.hub-rail .hub-new-folder{display:flex;}
  html.hub-rail .hub-sec.collapsed .hub-sec-list, html.hub-rail .hub-sec.collapsed > .hub-folders,
  html.hub-rail .hub-folder.collapsed > .hub-folder-body{display:none;}
  html.hub-rail .hub-folder > .hub-folder-body{padding-left:22px;}
  html.hub-rail .hub-folder .hub-folder .hub-folder > .hub-folder-body{padding-left:11px;}
  html.hub-rail .hub-folder > .hub-folder-body::before{display:block;}
  html.hub-rail .hub-folders > .hub-folder + .hub-folder{border-top:0;margin-top:0;padding-top:0;}
  .hub-item, .hub-folder-head{height:40px;}
  .hub-new-folder{height:38px;}
  .hub-folder-more{width:34px;height:34px;}
  .hub-folder-head{padding-right:40px;}
  .hub-subitem{height:36px;font-size:14px;}
  html.hub-rail .hub-subs{display:revert;}
  .hub-rail-btn{display:none;}
  html.hub-on:not(.hub-module) .hub-fab{display:grid;}
  .hub-menu-btn{display:grid;}
  /* Samantha (data-nav-top, set by index.html): her ☰ is at the top of every page, so no floating one;
     the open drawer has one beside its D, in the same corner, to close it. */
  html.hub-on[data-nav-top]:not(.hub-module) .hub-fab{display:none;}
  html[data-nav-top] .hub-nav-close{display:grid;width:34px;height:34px;margin-left:-4px;}
  @media (prefers-reduced-motion: reduce){ #hubNav{transition:none;} }
}

