/* Phone (up to 700px wide): the six views are a bar along the bottom, under the thumb, each with
   an icon; and one button above it opens the field log form for the open block (quicklog.js).
   On wider screens the tabs sit in the top bar as text, and neither the icons nor the button show. */
.seg.views svg, .quicklog { display: none; }
.seg.views svg, .quicklog svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 700px) {
  html:not(.print-layout) .seg.views { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: flex; margin: 0; padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line); border-radius: 0; }
  html:not(.print-layout) .seg.views label { flex: 1; min-width: 0; }
  html:not(.print-layout) .seg.views span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 5px; font-size: 10.5px; white-space: nowrap; color: var(--muted); }
  html:not(.print-layout) .seg.views input:checked + span { background: none; box-shadow: none; color: var(--accent); font-weight: 650; }
  html:not(.print-layout) .seg.views svg { display: block; width: 21px; height: 21px; }
  /* room for the bar under everything that scrolls */
  html:not(.print-layout) main { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  html:not(.print-layout) .settings-body { padding-bottom: 24px; }
  #toasts { bottom: calc(76px + env(safe-area-inset-bottom)); }

  /* Log entry: shown where one block is being read (not over the map, not on the all-blocks list) */
  html:not(.print-layout):not(.read-only):not(.no-blocks):not(.settings-open):is([data-view="overview"], [data-view="water"], [data-view="weather"]):not(:has(#ranch:not([hidden]))) .quicklog {
    display: inline-flex; align-items: center; gap: 6px; position: fixed; right: 12px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 1039;
    height: 44px; padding: 0 16px 0 12px; border-radius: 22px; font-size: 14px; font-weight: 650; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
  .quicklog svg { width: 16px; height: 16px; stroke-width: 2; }
  html:not(.print-layout):is([data-view="overview"], [data-view="water"], [data-view="weather"]) main { padding-bottom: calc(124px + env(safe-area-inset-bottom)); }
}
