/* ==================================================================
   WP4 · SHELL CSS — SIDEBAR + HEADER + PAGE FRAME (stage 2)
   Ported from 01_Dashboard_APPROVED_LOCKED.html + design sweep v2.
   All values from tokens — nothing hardcoded.
   Scoped under [data-new-ui].
   v1.45.2
   ================================================================== */

/* ---- App frame -------------------------------------------------- */
[data-new-ui] .nu-app {
  min-height: 100vh;
  display: flex;
  font-family: var(--nu-t-family);
  color: var(--nu-c-text-primary);
  background: var(--nu-c-surface-page);
  font-size: var(--nu-t-size-lg);
  font-weight: var(--nu-t-weight-semibold);
  line-height: var(--nu-t-lh-normal);
}

/* ---- Sidebar ---------------------------------------------------- */
[data-new-ui] .nu-sidebar {
  width: var(--nu-l-sidebar-width);
  flex: 0 0 var(--nu-l-sidebar-width);
  background: var(--nu-c-navy);
  color: #fff;
  min-height: 100vh;
  padding: 14px 10px 10px;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 10;
}

[data-new-ui] .nu-brand { height: 86px; display: flex; align-items: center; justify-content: center; }
[data-new-ui] .nu-brand-img { width: 170px; height: auto; object-fit: contain; display: block; }   /* file 01/02: width 170px, height auto */
[data-new-ui] .nu-side-line { height: 1px; background: var(--nu-c-sidebar-active); margin: 0 10px 10px; }
[data-new-ui] .nu-nav { flex: 1; overflow-y: auto; overflow-x: hidden; }   /* v1.45.24: no sideways scrollbar on hover (Phil) */
[data-new-ui] .nu-section { margin-bottom: 16px; }
[data-new-ui] .nu-section-title { margin: 0 10px 8px; color: var(--nu-c-yellow); font-weight: var(--nu-t-weight-black); font-size: var(--nu-t-size-base); letter-spacing: var(--nu-t-ls-caps); }

[data-new-ui] .nu-item {
  height: var(--nu-l-sidebar-item-h);
  border-radius: var(--nu-r-md);
  display: flex; align-items: center; gap: 9px;
  padding: 0 9px; text-decoration: none;
  color: #dbe6ef; font-size: var(--nu-t-size-xl);
  font-weight: var(--nu-t-weight-bold);
  margin: 2px 0; background: transparent;
  transition: background .16s, transform .16s; cursor: pointer;
}
[data-new-ui] .nu-item:hover { background: var(--nu-c-sidebar-subtle); transform: translateX(1px); }
[data-new-ui] .nu-item.nu-active { background: var(--nu-c-navy-3); box-shadow: inset 3px 0 0 var(--nu-c-yellow); color: #fff; }

[data-new-ui] .nu-icon { width: 18px; height: 18px; display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

[data-new-ui] .nu-bottom { padding-top: 10px; border-top: 1px solid var(--nu-c-sidebar-hover); }
[data-new-ui] .nu-profile { display: flex; align-items: center; gap: 9px; padding: 3px 7px 8px; }
[data-new-ui] .nu-profile strong { display: block; font-size: var(--nu-t-size-base); font-weight: var(--nu-t-weight-bold); }
[data-new-ui] .nu-profile small { display: block; color: #9db0c5; font-size: var(--nu-t-size-sm); margin-top: 1px; }
[data-new-ui] .nu-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #f39a1b; color: #fff; font-size: var(--nu-t-size-sm); font-weight: var(--nu-t-weight-black); box-shadow: var(--nu-sh-focus); flex: none; }
[data-new-ui] .nu-signout { width: 100%; height: 30px; border-radius: var(--nu-r-md); background: var(--nu-c-sidebar-faint); border: 1px solid var(--nu-c-sidebar-hover); color: #fff; font-size: var(--nu-t-size-base); font-weight: var(--nu-t-weight-bold); cursor: pointer; }
[data-new-ui] .nu-footer-note { margin-top: 12px; color: #8fa6b9; font-size: var(--nu-t-size-sm); display: flex; justify-content: space-between; padding: 0 2px; }

/* ---- Main content area ------------------------------------------ */
[data-new-ui] .nu-main { margin-left: var(--nu-l-sidebar-width); min-width: 0; flex: 1; }

/* ---- Header (from locked HTML: .header) ------------------------- */
[data-new-ui] .nu-header {
  height: 62px;
  background: var(--nu-c-surface-header);
  border-bottom: 1px solid var(--nu-c-border-default);
  display: flex; align-items: center;
  padding: 0 22px; gap: 14px;
  position: sticky; top: 0; z-index: 5;
}

[data-new-ui] .nu-search {
  width: 445px; height: 40px;
  border: 1px solid var(--nu-c-border-strong);
  border-radius: var(--nu-r-base);
  background: #f8fbff;
  display: flex; align-items: center; gap: 9px;
  padding: 0 12px;
  color: #536d89; font-size: var(--nu-t-size-md);
  font-weight: var(--nu-t-weight-semibold);
  cursor: pointer;
}
[data-new-ui] .nu-search .nu-icon { color: #365776; font-weight: var(--nu-t-weight-bold); }

[data-new-ui] .nu-grow { flex: 1; }

[data-new-ui] .nu-notify {
  position: relative; border: 0; background: transparent;
  width: 36px; height: 36px; cursor: pointer;
  display: grid; place-items: center;
  color: #173a5e; padding: 0;
}
[data-new-ui] .nu-notify .nu-icon { width: 21px; height: 21px; }
[data-new-ui] .nu-notify b {
  position: absolute; right: -1px; top: -2px;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--nu-c-red); color: #fff;
  font-size: var(--nu-t-size-2xs); font-weight: var(--nu-t-weight-heavy);
}

[data-new-ui] .nu-headerbox {
  height: 38px;
  border: 1px solid var(--nu-c-border-default);
  border-radius: var(--nu-r-base);
  background: var(--nu-c-surface-card);
  display: flex; align-items: center; gap: 8px;
  padding: 0 11px;
  color: #49627f; font-size: var(--nu-t-size-sm);
  font-weight: var(--nu-t-weight-bold);
  cursor: pointer;
}

/* ------------------------------------------------------------------
   v1.45.9 — Header weather + date widgets (file 01 header pattern)
   ------------------------------------------------------------------ */

/* Weather widget: icon + temperature (bold) + condition (regular).
   Non-clickable — informational — but keeps the .nu-headerbox visual
   frame so it reads as a peer of Dashboard button / Personal To-Do. */
[data-new-ui] .nu-weather { cursor: default; gap: 6px; }
[data-new-ui] .nu-weather .nu-icon { width: 17px; height: 17px; color: #d99008; }
[data-new-ui] .nu-weather b {
  font-size: var(--nu-t-size-md);
  font-weight: var(--nu-t-weight-black);
  color: var(--nu-c-text-primary);
}
[data-new-ui] .nu-weather span {
  font-size: var(--nu-t-size-sm);
  color: #475f7a;  /* 4j: was #58708d */
  font-weight: var(--nu-t-weight-semibold);
}

/* Date display: day on top, date on bottom, compact two-line stack
   inside the standard headerbox frame. */
[data-new-ui] .nu-header-date {
  cursor: default;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 4px 11px;
  line-height: 1.15;
}
[data-new-ui] .nu-header-date strong {
  font-size: var(--nu-t-size-sm);
  font-weight: var(--nu-t-weight-black);
  color: var(--nu-c-text-primary);
}
[data-new-ui] .nu-header-date span {
  font-size: 12px;  /* 4j: was 10px */
  color: #475f7a;  /* 4j: was #58708d */
  font-weight: var(--nu-t-weight-semibold);
  margin-top: 1px;
}


[data-new-ui] .nu-context {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin: 0 2px 12px;
}
[data-new-ui] .nu-page-title {
  font-size: 30px; letter-spacing: -0.028em;
  margin: 0; font-weight: var(--nu-t-weight-black);
}
[data-new-ui] .nu-page-subtitle {
  margin: 6px 0 0; color: #475f7a;  /* 4j: was #58708d */
  font-size: var(--nu-t-size-md); font-weight: var(--nu-t-weight-bold);
}
[data-new-ui] .nu-date { text-align: right; padding-top: 3px; }
[data-new-ui] .nu-date strong { display: block; font-size: var(--nu-t-size-md); font-weight: var(--nu-t-weight-bold); }
[data-new-ui] .nu-date span { display: block; color: #475f7a; font-size: var(--nu-t-size-sm); font-weight: var(--nu-t-weight-semibold); margin-top: 4px; }  /* 4j: was #58708d */

[data-new-ui] .nu-page { padding: 16px 14px 24px; }
[data-new-ui] .nu-content-area { min-height: 300px; }

/* ==================================================================
   v1.45.5 additions — Dashboard button + Modal
   ================================================================== */

/* Header Dashboard button (C4) — sits left of the search bar,
   matches .nu-headerbox height/border so it reads as a peer of
   Personal To-Do. Icon + text only, no dropdown. */
[data-new-ui] .nu-home-btn {
  cursor: pointer;
  font-family: var(--nu-t-family);
  font-weight: var(--nu-t-weight-heavy);
  font-size: var(--nu-t-size-md);
  color: var(--nu-c-text-primary);
  transition: background .12s, border-color .12s;
}
[data-new-ui] .nu-home-btn:hover {
  background: #f4f8fc;
  border-color: var(--nu-c-blue);
}
[data-new-ui] .nu-home-btn .nu-icon { width: 18px; height: 18px; color: #24425e; }

/* Modal backdrop (C2) — placeholder modal component.
   Sits above the shell (z-index > shell's 9999).
   Job Card stays visible dimmed behind so context is preserved. */
[data-new-ui] .nu-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(8, 20, 34, 0.42);
  z-index: 10000;
  display: grid; place-items: center;
  padding: 20px;
  animation: nu-fadein .15s ease-out;
}
[data-new-ui] .nu-modal-backdrop[hidden] { display: none; }

@keyframes nu-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

[data-new-ui] .nu-modal-card {
  background: var(--nu-c-surface-card);
  border-radius: var(--nu-r-base);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  width: 100%; max-width: 480px;
  display: flex; flex-direction: column;
  animation: nu-modal-in .18s ease-out;
}
@keyframes nu-modal-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

[data-new-ui] .nu-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--nu-c-border-default);
}
[data-new-ui] .nu-modal-title {
  margin: 0;
  font-size: var(--nu-t-size-xl);
  font-weight: var(--nu-t-weight-black);
  color: var(--nu-c-text-primary);
}
[data-new-ui] .nu-modal-close {
  border: 0; background: transparent;
  width: 32px; height: 32px;
  border-radius: var(--nu-r-md);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--nu-c-text-muted);
}
[data-new-ui] .nu-modal-close:hover { background: #eef2f6; color: var(--nu-c-text-primary); }
[data-new-ui] .nu-modal-close .nu-icon { width: 16px; height: 16px; }

[data-new-ui] .nu-modal-body {
  padding: 16px;
  overflow-y: auto;
  max-height: calc(100vh - 240px);
}

[data-new-ui] .nu-modal-foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--nu-c-border-default);
  background: #f8fbfd;
  border-radius: 0 0 var(--nu-r-base) var(--nu-r-base);
}
[data-new-ui] .nu-placeholder-card {
  background: var(--nu-c-surface-card);
  border: 1px solid var(--nu-c-border-default);
  border-radius: var(--nu-r-base);
  box-shadow: var(--nu-sh-card);
  padding: 24px; color: var(--nu-c-text-muted);
  font-size: var(--nu-t-size-md);
}

/* ---- Responsive (from locked HTML) ----------------------------- */
@media (max-width: 1199px) {
  [data-new-ui] .nu-search { width: 360px; }
}
@media (max-width: 1199px) {
  /* Room's getting tight — condition text drops, temp stays. */
  [data-new-ui] .nu-weather span { display: none; }
  /* Date's day-of-week only, drop the date line. */
  [data-new-ui] .nu-header-date span { display: none; }
}
@media (max-width: 767px) {
  [data-new-ui] .nu-sidebar { display: none; }
  [data-new-ui] .nu-main { margin-left: 0; }
  [data-new-ui] .nu-header { padding: 0 10px; }
  [data-new-ui] .nu-search { width: auto; flex: 1; }
  /* Phone: weather + date drop entirely. */
  [data-new-ui] .nu-weather,
  [data-new-ui] .nu-header-date,
  [data-new-ui] .nu-todo,
  [data-new-ui] .nu-home-btn span { display: none; }
}

/* v1.45.12 Sidebar: Booking Requests count badge (locked files 01/03) */
[data-new-ui] .nu-item .nu-nav-badge {
  margin-left: auto; min-width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;   /* file 01 */
  background: #f05b34; color: #fff; font-size: 10px; font-weight: 800; flex: none;   /* file 01 — sidebar size kept (4j excludes sidebar) */
}

/* v1.45.38: "Viewing" header box — same frame as the other headerboxes; menu = the Job Card More Actions dropdown */
[data-new-ui] .nu-viewas-wrap { position: relative; }
[data-new-ui] .nu-viewas-wrap[hidden] { display: none; }
[data-new-ui] .nu-viewas .nu-icon { width: 17px; height: 17px; color: #355978; }
[data-new-ui] .nu-viewas .nu-icon:last-child { width: 14px; height: 14px; }
[data-new-ui] .nu-viewas.nu-viewas-on { background: var(--nu-c-green); border-color: var(--nu-c-green); color: #fff; }
[data-new-ui] .nu-viewas.nu-viewas-on .nu-icon { color: #fff; }
[data-new-ui] .nu-viewas-menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 40;
  min-width: 240px; max-height: 70vh; overflow-y: auto;
  background: var(--nu-c-surface-card);
  border: 1px solid var(--nu-c-border-default);
  border-radius: var(--nu-r-base);
  box-shadow: var(--nu-sh-dropdown);
  padding: 6px; display: flex; flex-direction: column; gap: 2px;
}
[data-new-ui] .nu-viewas-menu[hidden] { display: none; }
[data-new-ui] .nu-viewas-menu a {
  display: flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 10px; border-radius: var(--nu-r-md);
  color: #24425e; text-decoration: none;
  font-size: var(--nu-t-size-md); font-weight: var(--nu-t-weight-heavy);
}
[data-new-ui] .nu-viewas-menu a:hover { background: #f6f9fc; }
[data-new-ui] .nu-viewas-menu a.nu-viewas-cur { background: #e8f6f0; color: #075c41; }
[data-new-ui] .nu-viewas-mine { display: inline-flex; width: 28px; justify-content: center; color: #355978; }
[data-new-ui] .nu-viewas-mine .nu-icon { width: 17px; height: 17px; }
[data-new-ui] .nu-viewas-name { flex: 1; }
[data-new-ui] .nu-viewas-role { font-size: var(--nu-t-size-sm); font-weight: var(--nu-t-weight-bold); color: var(--nu-c-text-muted); }
[data-new-ui] .nu-viewas-line { padding: 8px 10px 4px; border-top: 1px solid var(--nu-c-border-default); margin-top: 4px;
  font-size: var(--nu-t-size-sm); font-weight: var(--nu-t-weight-bold); color: var(--nu-c-text-muted); }
@media (max-width: 767px) { [data-new-ui] .nu-viewas span[data-viewas-label] { display: none; } }
[data-new-ui] .nu-viewas span[data-viewas-label] { white-space: nowrap; }

/* v1.45.39: real header search — the box keeps its look; results use the Viewing menu style */
[data-new-ui] .nu-search { position: relative; cursor: text; }
[data-new-ui] .nu-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font: inherit; color: var(--nu-c-text-primary); }
[data-new-ui] .nu-search input::placeholder { color: #536d89; opacity: 1; }
[data-new-ui] .nu-search-menu { left: 0; right: auto; width: 100%; min-width: 320px; }
[data-new-ui] .nu-search-menu a { min-height: 44px; }
[data-new-ui] .nu-search-kind { font-size: var(--nu-t-size-sm); font-weight: var(--nu-t-weight-bold); color: var(--nu-c-text-muted); min-width: 52px; }
[data-new-ui] .nu-search-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-new-ui] .nu-search-sub { display: block; font-size: var(--nu-t-size-sm); font-weight: var(--nu-t-weight-bold); color: var(--nu-c-text-muted); overflow: hidden; text-overflow: ellipsis; }
[data-new-ui] .nu-search-none { padding: 10px; font-size: var(--nu-t-size-md); font-weight: var(--nu-t-weight-bold); color: var(--nu-c-text-muted); }

/* v1.45.41 (Phil): "My dashboard" and "Personal To-Do" text the same colour and weight as the Dashboard button */
[data-new-ui] .nu-headerbox.nu-viewas:not(.nu-viewas-on),
[data-new-ui] .nu-headerbox.nu-todo { color: var(--nu-c-text-primary); font-weight: var(--nu-t-weight-heavy); font-size: var(--nu-t-size-md); }
[data-new-ui] .nu-headerbox.nu-todo .nu-icon { color: #24425e; }
/* v1.45.41: title-row Back added by the shell — sits at the right of the title row */
[data-new-ui] .nu-back-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
[data-new-ui] .nu-back-slot { margin-left: auto; display: flex; align-items: center; }

/* ---- v1.45.42: phones & tablets — slide-out menu (like the current app's drawer at 900 px) ---- */
[data-new-ui] .nu-menu-btn { display: none; width: 38px; justify-content: center; padding: 0; flex: none; }
[data-new-ui] .nu-menu-btn .nu-icon { width: 20px; height: 20px; color: #24425e; }
[data-new-ui] .nu-drawer-bd { display: none; }
@media (max-width: 900px), (max-height: 500px) and (pointer: coarse) {   /* v2.0.18: phones turned sideways keep the slide-out menu */
  [data-new-ui] .nu-menu-btn { display: inline-flex; }
  [data-new-ui] .nu-sidebar {
    display: flex !important; position: fixed; top: 0; left: 0; bottom: 0; z-index: 60;
    transform: translateX(-105%); transition: transform .22s ease; overflow-y: auto;
    padding-top: calc(14px + env(safe-area-inset-top, 0px)); padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  [data-new-ui].nu-drawer-open .nu-sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.35); }
  [data-new-ui].nu-drawer-open .nu-drawer-bd { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(6,19,33,.45); }
  [data-new-ui] .nu-main { margin-left: 0 !important; }
}
/* phones: bell and Personal To-Do stay, icon-only (were hidden / pushed off-screen) */
@media (max-width: 767px) {
  [data-new-ui] .nu-header { gap: 6px; }
  [data-new-ui] .nu-search { min-width: 0; }
  [data-new-ui] .nu-todo { display: inline-flex !important; width: 38px; justify-content: center; padding: 0; flex: none; }
  [data-new-ui] .nu-todo span { display: none; }
  [data-new-ui] .nu-notify { flex: none; }
  [data-new-ui] .nu-home-btn { width: 38px; justify-content: center; padding: 0; flex: none; }
}

/* v2.0: Take photo / Choose from library sheet (phones & tablets) + header quick photo */
.nu-camsheet { position: fixed; inset: 0; z-index: 10005; }
.nu-camsheet-bd { position: absolute; inset: 0; background: rgba(6,19,33,.45); }
.nu-camsheet-box { position: absolute; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; max-width: 480px; margin: 0 auto; }
.nu-camsheet-box button { height: 52px; border: 0; border-radius: 10px; background: #fff; color: #10233a; font: 800 16px var(--nu-t-family, system-ui, sans-serif); }
.nu-camsheet-box .nu-camsheet-cancel { color: #c33e38; }
[data-new-ui] .nu-quickphoto { display: none; width: 38px; justify-content: center; padding: 0; flex: none; }
[data-new-ui] .nu-quickphoto .nu-icon { width: 20px; height: 20px; color: #24425e; }
@media (max-width: 900px), (max-height: 500px) and (pointer: coarse) {   /* v2.0.18: phones turned sideways keep the slide-out menu */ [data-new-ui] .nu-quickphoto { display: inline-flex; } }
/* v2.0 (Phil): phone search box was squeezed to a sliver — on phones it takes its own full-width line under the header icons */
@media (max-width: 767px) {
  [data-new-ui] .nu-header { flex-wrap: wrap; height: auto; row-gap: 8px; padding-bottom: 8px; }
  [data-new-ui] .nu-header .nu-search { order: 10; flex: 1 1 100%; width: 100%; max-width: none; }
}

/* v2.0.2 (Phil): Viewing button — full label on computers, a short one on phones ("Mine" / "Matt") */
[data-new-ui] .nu-viewas span[data-viewas-short] { display: none; white-space: nowrap; }
@media (max-width: 767px) {
  [data-new-ui] .nu-viewas span[data-viewas-short] { display: inline; }
  [data-new-ui] .nu-viewas { padding: 0 8px; gap: 5px; }
}
[data-new-ui] .nu-headerbox .nu-icon circle { stroke-width: 1.6; }

/* v2.0.2: Install app (side menu, phones & tablets) */
[data-new-ui] .nu-install-app { margin: 8px 12px 4px; height: 38px; border: 1px solid rgba(255,255,255,.25); border-radius: var(--nu-r-base); background: transparent; color: #fff; font: 800 14px var(--nu-t-family); cursor: pointer; }
[data-new-ui] .nu-install-app[hidden] { display: none; }
[data-new-ui] .nu-install-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }

/* ---- v2.0.11: iPhone notch / status bar (index.html uses viewport-fit=cover + black-translucent).
   Upright: a navy strip under the status bar so the header isn't covered and the white clock stays readable.
   Sideways: room for the notch on the left / right. Every env() is 0 on devices without a notch. ---- */
[data-new-ui] .nu-header {
  border-top: env(safe-area-inset-top, 0px) solid var(--nu-c-navy);
  height: calc(62px + env(safe-area-inset-top, 0px));
  padding-right: max(22px, env(safe-area-inset-right, 0px));
}
[data-new-ui] .nu-sidebar {
  width: calc(var(--nu-l-sidebar-width) + env(safe-area-inset-left, 0px));
  flex-basis: calc(var(--nu-l-sidebar-width) + env(safe-area-inset-left, 0px));
  padding-left: calc(10px + env(safe-area-inset-left, 0px));
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
[data-new-ui] .nu-main { margin-left: calc(var(--nu-l-sidebar-width) + env(safe-area-inset-left, 0px)); }
[data-new-ui] .nu-content-area { padding-right: env(safe-area-inset-right, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (max-width: 900px), (max-height: 500px) and (pointer: coarse) {   /* v2.0.18: phones turned sideways keep the slide-out menu */
  [data-new-ui] .nu-main { margin-left: 0 !important; }
  [data-new-ui] .nu-header { padding-left: max(10px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); }
  [data-new-ui] .nu-content-area { padding-left: env(safe-area-inset-left, 0px); }
}
@media (max-width: 767px) {
  [data-new-ui] .nu-header { height: auto; min-height: calc(62px + env(safe-area-inset-top, 0px)); }
}
/* v2.0.18: phones turned sideways — compact header like upright (weather / date off, To-Do and Dashboard icon-only) */
@media (min-width: 768px) and (max-height: 500px) and (pointer: coarse) {
  [data-new-ui] .nu-header { gap: 6px; }
  [data-new-ui] .nu-search { width: auto; flex: 1; min-width: 0; }
  [data-new-ui] .nu-weather, [data-new-ui] .nu-header-date { display: none; }
  [data-new-ui] .nu-todo { width: 38px; justify-content: center; padding: 0; flex: none; }
  [data-new-ui] .nu-todo span { display: none; }
  [data-new-ui] .nu-home-btn { width: 38px; justify-content: center; padding: 0; flex: none; }
  [data-new-ui] .nu-home-btn span { display: none; }
}
