/* Role dashboards, the morning, the ledger, the fullscreen map and chart dialogs —
   Material 3 Expressive on the design tokens. The tokens (colour roles, status pairs,
   type, shape, spacing, elevation, motion) live in css/tokens.css and are in scope
   everywhere (<body class="tip-theme">); this sheet only USES them. Rules: a colour is
   a role, never a hex; radii are the M3 scale (sm 8 · md 12 · lg 16 · xl 20 · 2xl 28);
   type is `font: var(--m3-type-…) var(--m3-font)`. docs/DESIGN_SYSTEM.md, ADR-0013;
   geometry in docs/SHAPE_MAP.md. */

/* The page: greeting header → system notices → the widget zone. */
.tip-dash-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--m3-on-surface);
}

/* The widget zone — the only part the grid engine owns. */
.tip-dash {
    background: var(--m3-surface);
    border-radius: var(--m3-radius-2xl);
    padding: 16px;
    color: var(--m3-on-surface);
    font-family: var(--m3-font); /* numerics-friendly body face */
}

/* ---- page header --------------------------------------------------------- */
.tip-dash-head {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 4px 8px 0;
}
.tip-dash-greeting {
    margin: 0;
    font: 400 28px/36px var(--m3-font-brand); /* M3 headline-medium */
    letter-spacing: 0;
    color: var(--m3-on-surface);
}
.tip-dash-subtitle {
    font: 400 14px/20px var(--m3-font);           /* M3 body-medium */
    color: var(--m3-on-surface-variant);
}
.tip-dash-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 2px;
}
/* M3 outlined icon buttons: 40dp round targets in a row. */
.tip-dash-actions .mud-icon-button { width: 40px; height: 40px; padding: 8px; }
.tip-dash-actions .tip-dash-menu { display: inline-flex; }
/* Dashboard spaces — the ‹ name › switcher left of the action buttons. The chevrons are
   smaller than the 40dp action targets on purpose: they belong to the name, not the row. */
.tip-dash-spaces { display: inline-flex; align-items: center; gap: 0; margin-right: 4px; }
.tip-dash-spaces .mud-icon-button { width: 30px; height: 30px; padding: 4px; }
.tip-dash-space-name {
    max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    text-transform: none; font: 500 14px/20px var(--m3-font);
}
/* The widget picker pops out of the page tree (popover provider), so it reads the
   MudBlazor palette rather than the dashboard's M3 tokens. */
.tip-dash-menu-title {
    font: 500 11px/16px var(--m3-font);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
    padding: 8px 16px 4px;
}
.tip-dash-menu-item { display: flex; flex-direction: column; max-width: 320px; }
.tip-dash-menu-item-title { font: 500 14px/20px var(--m3-font); }
.tip-dash-menu-item-desc {
    font: 400 12px/16px var(--m3-font);
    color: var(--mud-palette-text-secondary);
    white-space: normal;
}
.tip-spin .mud-icon-root { animation: tip-spin 1s linear infinite; }
@keyframes tip-spin { to { transform: rotate(360deg); } }

/* ---- system notice: the setup journey ------------------------------------ */
/* A step rail (done → ticked, next → highlighted, later → muted) with a segmented
   progress strip in the head and one call to action for the next step. Horizontal on
   wide screens, a vertical list under 720px. */
.tip-setup {
    background: var(--m3-surface-container-lowest);
    border-radius: var(--m3-radius-xl);
    padding: 18px 22px 20px;
    font-family: var(--m3-font);
}
.tip-setup-head {
    display: flex;
    align-items: center;
    gap: 16px 24px;
    flex-wrap: wrap;
}
.tip-setup-title {
    font: 500 18px/24px var(--m3-font);           /* M3 title-large-ish */
    color: var(--m3-on-surface);
}
.tip-setup-subtitle {
    font: 400 14px/20px var(--m3-font);
    color: var(--m3-on-surface-variant);
}
.tip-setup-progress {
    margin-left: auto;
    display: flex;
    gap: 4px;
    min-width: 160px;
}
.tip-setup-progress > span {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--m3-surface-container-high);
}
.tip-setup-progress > span.is-done { background: var(--m3-primary); }

/* the rail */
.tip-setup-steps {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
}
.tip-setup-step {
    position: relative;
    flex: 1;
    min-width: 0;
}
/* connector to the previous step: from the previous dot's edge to this dot's edge */
.tip-setup-step:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 16px;
    left: calc(-50% + 22px);
    right: calc(50% + 22px);
    height: 2px;
    background: var(--m3-outline-variant);
}
.tip-setup-step.is-after-done::before { background: var(--m3-primary); }
.tip-setup-step-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
    text-decoration: none;
    color: inherit;
    border-radius: var(--m3-radius-md);
}
.tip-setup-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font: 500 14px/1 var(--m3-font);
    border: 2px solid var(--m3-outline-variant);
    color: var(--m3-on-surface-variant);
    background: var(--m3-surface-container-lowest);
    transition: transform .15s, box-shadow .15s;
}
.tip-setup-dot .mud-icon-root { font-size: 20px; }
.tip-setup-step-label {
    font: 500 13px/18px var(--m3-font);
    color: var(--m3-on-surface-variant);
    text-align: center;
}
.tip-setup-step.is-done .tip-setup-dot {
    background: var(--m3-primary);
    border-color: var(--m3-primary);
    color: var(--m3-on-primary);
}
.tip-setup-step.is-current .tip-setup-dot {
    border-color: var(--m3-primary);
    color: var(--m3-primary);
    box-shadow: 0 0 0 4px var(--m3-primary-container);
}
.tip-setup-step.is-current .tip-setup-step-label {
    color: var(--m3-primary);
    font-weight: 600;
}
.tip-setup-step-link:hover .tip-setup-dot { transform: scale(1.06); }
.tip-setup-step-link:focus-visible { outline: 2px solid var(--m3-primary); outline-offset: 2px; }

/* next up */
.tip-setup-next {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 16px 24px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-radius: var(--m3-radius-lg);
    background: var(--m3-surface-container-low);
}
.tip-setup-next-text { flex: 1; min-width: 240px; }
.tip-setup-next-kicker {
    font: 500 11px/16px var(--m3-font);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--m3-primary);
}
.tip-setup-next-title {
    font: 500 16px/24px var(--m3-font);
    color: var(--m3-on-surface);
}
.tip-setup-next-detail {
    font: 400 14px/20px var(--m3-font);
    color: var(--m3-on-surface-variant);
}
.tip-setup-next-action { flex-shrink: 0; }

@media (max-width: 720px) {
    .tip-setup-steps { flex-direction: column; gap: 4px; }
    .tip-setup-step:not(:first-child)::before {
        top: -6px;
        left: 20px;
        right: auto;
        width: 2px;
        height: 12px;
    }
    .tip-setup-step-link { flex-direction: row; gap: 12px; padding: 2px 4px; }
    .tip-setup-step-label { text-align: left; }
}

/* ---- header chip ("saved 14:02") ------------------------------------------ */
.tip-dash-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    font: 500 14px/20px var(--m3-font);           /* M3 label-large */
    background: var(--m3-surface-container-low);
    color: var(--m3-on-surface-variant);
    border: 1px solid var(--m3-outline-variant);
}

/* ---- widget frame -------------------------------------------------------
   The card always has its outline and a soft level-2 shadow — the structure of the
   dashboard reads at a glance (Ivan, 15.09.26). Edit mode does not add borders; it lifts
   the arrangement above the content: a translucent scrim over every widget body (the
   head with its drag handle stays crisp), the content inert, the outline in the primary
   tint — the widgets become tiles to move, then snap back into focus on Done. */
.tip-dash .grid-stack-item-content {
    background: var(--m3-surface-container-lowest);
    border-radius: var(--m3-radius-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow .18s ease, outline-color .18s ease;
    outline: 1px solid var(--m3-outline-variant);
    box-shadow: 0 1px 2px rgba(24, 29, 24, .06), 0 4px 12px rgba(24, 29, 24, .06); /* M3 level 2 */
}
.tip-dash.is-editing .grid-stack-item-content {
    outline-color: color-mix(in srgb, var(--m3-primary) 45%, var(--m3-outline-variant));
}
.tip-dash.is-editing .tip-widget-body { position: relative; overflow: hidden; }   /* no scrolling under the scrim */
.tip-dash.is-editing .tip-widget-body > * { pointer-events: none; user-select: none; }
.tip-dash.is-editing .tip-widget-body::after {
    content: "";
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--m3-surface) 55%, transparent);   /* the surface tone, translucent — both schemes */
    backdrop-filter: blur(1.2px) saturate(.8);
    -webkit-backdrop-filter: blur(1.2px) saturate(.8);
    pointer-events: none;
    transition: opacity .18s ease;
}
.tip-dash.is-editing .grid-stack-item.ui-draggable-dragging .tip-widget-body::after,
.tip-dash.is-editing .grid-stack-item.ui-resizable-resizing .tip-widget-body::after { background: color-mix(in srgb, var(--m3-surface) 35%, transparent); }
.tip-dash .grid-stack-item.ui-draggable-dragging .grid-stack-item-content,
.tip-dash .grid-stack-item.ui-resizable-resizing .grid-stack-item-content {
    box-shadow: 0 2px 6px rgba(24, 29, 24, .10), 0 8px 24px rgba(24, 29, 24, .12); /* level 4 */
}
.tip-dash .grid-stack-placeholder > .placeholder-content {
    background: var(--m3-primary-container);
    opacity: .45;
    border-radius: var(--m3-radius-xl);
    border: none;
}

.tip-widget-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px 6px 18px;
    min-height: 44px;
}
.tip-widget-drag {
    display: none;
    cursor: grab;
    color: var(--m3-on-surface-variant);
    margin-left: -6px;
}
.tip-dash.is-editing .tip-widget-drag { display: inline-flex; }
.tip-widget-drag:active { cursor: grabbing; }
.tip-widget-title {
    font: 500 16px/24px var(--m3-font);           /* M3 title-medium */
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tip-widget-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 4px 18px 16px;
    font: 400 14px/20px var(--m3-font);
    display: flex;
    flex-direction: column;
    /* Widgets lay themselves out by their own box, not the viewport's: the same widget
       is 4 columns on one dashboard and 12 on another, 4 rows here and 6 there. Size
       containment on both axes lets them query width AND height (cqw/cqh units). */
    container-type: size;
    container-name: widget;
}
.tip-widget-body .m3-display {
    font: 400 44px/52px var(--m3-font);           /* M3 display-small */
    letter-spacing: -0.25px;
    color: var(--m3-primary);
}
.tip-widget-body .m3-label {
    font: 500 12px/16px var(--m3-font);           /* M3 label-medium */
    color: var(--m3-on-surface-variant);
    text-transform: none;
}
.tip-widget-body .m3-tonal {
    background: var(--m3-surface-container-low);
    border-radius: var(--m3-radius-lg);
    padding: 12px 14px;
}

/* GridStack resize handles. The edge handles (e, s) stay invisible but active; the
   corner becomes a classic 45° grip — three hatch lines in the bottom-right corner,
   always visible in edit mode — instead of the engine's double-headed arrow icon. */
.tip-dash .ui-resizable-handle { opacity: 0; transition: opacity .15s; }
.tip-dash .grid-stack-item > .ui-resizable-se {
    width: 22px;
    height: 22px;
    /* The handle belongs to the grid CELL; the card sits inset by the engine's item
       margin. Offset by that margin so the grip lands inside the card's corner. */
    right: calc(var(--gs-item-margin-right, 10px) + 6px);
    bottom: calc(var(--gs-item-margin-bottom, 10px) + 6px);
    transform: none;                 /* the engine rotates its arrow icon; we don't need it */
    background-image: none;
    background: repeating-linear-gradient(
        135deg,
        transparent 0 3px,
        var(--m3-outline-variant) 3px 4.5px);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);   /* only the lower-right triangle */
    border-bottom-right-radius: 14px;
    cursor: nwse-resize;
}
.tip-dash.is-editing .grid-stack-item > .ui-resizable-se { opacity: 1; }
.tip-dash.is-editing .grid-stack-item:hover > .ui-resizable-se,
.tip-dash.is-editing .grid-stack-item.ui-resizable-resizing > .ui-resizable-se {
    background: repeating-linear-gradient(
        135deg,
        transparent 0 3px,
        var(--m3-primary) 3px 4.5px);
}

/* ---- Course health widget --------------------------------------------------
   Sizing model — content-driven minimums, flex-grow distribution:
   · every part declares its real minimum (no min-height:0 tricks), so the grid rows can
     never be smaller than their content — at worst the widget body scrolls, it never
     overlaps;
   · the parts that can use extra height grow to fill it (the trend plot, the space
     between zone rows, the coverage strip), so a taller widget is fuller, not emptier;
   · the catalog bounds the size (MinH 4 rows, MaxH 6) so both ends stay in the range
     the content was designed for.
   Width modes on the WIDGET's width (container queries): wide ≥ 800 — three columns;
   medium 500–799 — score | zones with coverage as a compact band underneath; narrow —
   one column, zones as chips, a smaller ring, no kickers. */
.tip-health {
    flex: 1 0 auto;                 /* fill the body; never shrink below content */
    display: grid;
    grid-template-columns: minmax(250px, 320px) minmax(220px, 1fr) minmax(210px, 290px);
    grid-template-rows: 1fr;        /* 1fr = minmax(auto, 1fr): never under the content */
    align-items: stretch;
}
.tip-health section {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-top: 2px;
}
.tip-health-zones, .tip-health-coverage {
    border-left: 1px solid var(--m3-surface-container-high);
    margin-left: 20px;
    padding-left: 20px;
}
.tip-health-kicker {
    font: 500 11px/16px var(--m3-font);               /* M3 label-medium, tracked */
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--m3-on-surface-variant);
    margin-bottom: 8px;
    flex-shrink: 0;
}

/* score */
.tip-health-score-row { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.tip-health-ring { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.tip-health-ring svg { display: block; width: 100%; height: 100%; }
.tip-health-ring-value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.tip-health-number { font: 400 32px/34px var(--m3-font); letter-spacing: -.5px; }
.tip-health-denominator { font: 500 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-health-verdict { min-width: 0; }
.tip-health-label { font: 600 16px/22px var(--m3-font); }
.tip-health-delta {
    margin-top: 6px;
    display: inline-block;
    font: 500 12px/16px var(--m3-font);
    padding: 1px 8px;
    border-radius: 8px;
    background: var(--m3-surface-container-low);
    color: var(--m3-on-surface-variant);
}
.tip-health-delta.is-up { color: var(--m3-primary); }
.tip-health-delta.is-down { color: var(--tip-bad-text); }
/* the trend takes whatever height is left: a sparkline at the minimum, a chart when tall */
.tip-health-trend {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}
.tip-health-trend-plot {
    position: relative;
    flex: 1 1 auto;
    min-height: 36px;
    max-height: 180px;
}
.tip-health-spark { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tip-health-spark-line { stroke: var(--m3-primary); stroke-width: 1.8px; stroke-linejoin: round; stroke-linecap: round; }
.tip-health-spark-line.is-dot { stroke-width: 4px; }
.tip-health-spark-area { fill: var(--m3-primary); opacity: .10; }
.tip-health-spark-guide { stroke: var(--m3-outline-variant); stroke-width: 1px; stroke-dasharray: 3 3; }
.tip-health-trend-end {
    position: absolute;
    right: calc(3 / 160 * 100%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: translate(50%, -50%);
    box-shadow: 0 0 0 2px var(--m3-surface-container-lowest);
}
.tip-health-trend-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font: 400 10px/14px var(--m3-font);
    color: var(--m3-on-surface-variant);
    flex-shrink: 0;
}

/* zones: rows spread over the available height, from tight to airy */
.tip-health-zones-full {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: clamp(2px, 2cqh, 14px);
}
.tip-health-zone { padding: 4px 8px; margin: 0 -8px; border-radius: var(--m3-radius-md); }
.tip-health-zone.is-active { cursor: pointer; }
.tip-health-zone.is-active:hover { background: var(--m3-surface-container-low); }
.tip-health-zone-line { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.tip-health-zone-holes { color: var(--m3-on-surface-variant); }
.tip-health-zone-caption { margin-left: 16px; }
.tip-health-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.tip-health-zones-compact { display: none; flex-wrap: wrap; gap: 6px; }
.tip-health-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    font: 500 13px/18px var(--m3-font);
    background: var(--m3-surface-container-low);
    color: var(--m3-on-surface-variant);
    border: 1px solid transparent;
}
.tip-health-chip.is-active { cursor: pointer; border-color: var(--m3-outline-variant); color: var(--m3-on-surface); }
.tip-health-chip.is-active:hover { border-color: var(--zone); }
/* the spotlit bucket: a ring in the zone's own colour, so the row reads as "lit" rather than "selected" */
.tip-health-zone.is-spotlit {
    background: var(--m3-surface-container-low);
    box-shadow: inset 0 0 0 1.5px var(--zone);
}
.tip-health-chip.is-spotlit {
    border-color: var(--zone);
    background: color-mix(in srgb, var(--zone) 14%, var(--m3-surface-container-lowest));
    color: var(--m3-on-surface);
}

/* ---- the spotlight chip: "● 2 warning ×" wherever the spotlight applies ------------ */
.tip-spot-chip {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 6px 0 10px;
    border-radius: 14px;
    border: 1px solid var(--spot);
    background: color-mix(in srgb, var(--spot) 12%, var(--m3-surface-container-lowest));
    color: var(--m3-on-surface);
    font: 500 12px/16px var(--m3-font);
    white-space: nowrap;
    cursor: pointer;
    transition: background .12s;
}
.tip-spot-chip:hover { background: color-mix(in srgb, var(--spot) 22%, var(--m3-surface-container-lowest)); }
.tip-spot-chip:focus-visible { outline: 2px solid var(--m3-primary); outline-offset: 1px; }
.tip-spot-chip .mud-icon-root { font-size: 16px; color: var(--m3-on-surface-variant); }
.tip-spot-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--spot); flex-shrink: 0; }
.tip-widget-head .tip-spot-chip { height: 26px; }
@supports not (background: color-mix(in srgb, red 10%, white)) {
    .tip-spot-chip, .tip-health-chip.is-spotlit { background: var(--m3-surface-container-low); }
}

/* coverage: numbers, the strip (taller when there is room), notes, the action */
.tip-health-coverage-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tip-health-coverage-number { font: 500 22px/26px var(--m3-font); white-space: nowrap; }
.tip-health-coverage-number small { font: 400 13px/16px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-health-strip { display: flex; gap: 3px; margin-top: 8px; }
.tip-health-strip > span { flex: 1; height: clamp(10px, 6cqh, 22px); border-radius: 3px; min-width: 4px; }
.tip-health-coverage-legend { margin-top: 6px; }
.tip-health-courses { display: flex; flex-direction: column; gap: clamp(4px, 2cqh, 12px); margin-top: 8px; }
.tip-health-course { display: grid; grid-template-columns: minmax(60px, 1fr) minmax(80px, 2fr) auto; align-items: center; gap: 8px; }
.tip-health-course-name { font: 500 13px/18px var(--m3-font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-health-course-bar { display: flex; height: clamp(8px, 4cqh, 14px); border-radius: 3px; overflow: hidden; gap: 1px; }
.tip-health-course-count { font: 500 12px/16px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-health-advice { margin-top: 6px; }
.tip-health-coverage-foot { margin-top: 12px; display: flex; justify-content: center; }
/* tall: the coverage column spreads its three groups instead of piling up at the top */
@container widget (min-height: 300px) {
    .tip-health-coverage { justify-content: space-between; }
    .tip-health-coverage-legend { flex: 1 1 auto; display: flex; align-items: center; }
}

/* medium: score | zones, coverage as one compact band underneath */
@container widget (max-width: 799px) {
    .tip-health {
        grid-template-columns: minmax(240px, 1fr) minmax(200px, 1fr);
        grid-template-rows: 1fr auto;
    }
    .tip-health-trend { margin-top: 8px; }
    .tip-health-trend-plot { min-height: 30px; }
    .tip-health-trend-axis { display: none; }   /* the plot's tooltip says "last 14 days" */
    .tip-health-coverage {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        justify-content: flex-start;
        border-left: 0;
        margin: 10px 0 0;
        padding: 10px 0 0;
        border-top: 1px solid var(--m3-surface-container-high);
    }
    .tip-health-coverage .tip-health-kicker,
    .tip-health-coverage-legend,
    .tip-health-advice { display: none; }
    .tip-health-coverage-head { flex: 0 0 auto; flex-wrap: nowrap; }
    .tip-health-coverage-number { font-size: 18px; line-height: 22px; }
    .tip-health-strip { flex: 1 1 auto; margin-top: 0; }
    .tip-health-strip > span { height: 12px; }
    .tip-health-courses { flex: 1 1 auto; flex-direction: row; flex-wrap: wrap; gap: 6px 16px; margin-top: 0; }
    .tip-health-course { grid-template-columns: auto minmax(60px, 120px) auto; gap: 6px; }
    .tip-health-coverage-foot { margin: 0 0 0 auto; }
}
/* narrow: one column, zones as chips, a smaller ring, no kickers */
@container widget (max-width: 499px) {
    .tip-health { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; }
    .tip-health-kicker { display: none; }
    .tip-health-zones {
        border-left: 0;
        margin: 10px 0 0;
        padding: 10px 0 0;
        border-top: 1px solid var(--m3-surface-container-high);
    }
    .tip-health-zones-full { display: none; }
    .tip-health-zones-compact { display: flex; }
    .tip-health-ring { width: 72px; height: 72px; }
    .tip-health-number { font-size: 24px; line-height: 26px; }
    .tip-health-label { font-size: 14px; line-height: 20px; }
    .tip-health-trend { margin-top: 6px; }
    .tip-health-trend-plot { min-height: 28px; max-height: 120px; }
    .tip-health-trend-axis { display: none; }
    .tip-health-coverage { margin-top: 10px; padding-top: 10px; flex-wrap: wrap; row-gap: 8px; }
    .tip-health-coverage-foot .mud-button-root { padding-left: 8px; padding-right: 8px; }
}

/* ---- Hole widgets (Holes, Holes Pro) ---------------------------------------
   Shared vocabulary: a hole row/card = number badge in the hole's colour · title + meta ·
   figures (lowest PAW, water status). The light widget folds rows into a card grid when
   wide; Pro keeps rows in a list and adds the passport (master–detail or accordion). */
.tip-holes-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    color: var(--m3-on-surface-variant);
    padding: 16px;
}
.tip-holes-empty .mud-icon-root { font-size: 36px; opacity: .6; }

/* course filter chips (M3 filter chips) */
.tip-holes-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; flex-shrink: 0; }
.tip-holes-chip {
    appearance: none;
    -webkit-appearance: none;
    height: 28px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--m3-outline-variant);
    background: transparent;
    color: var(--m3-on-surface-variant);
    font: 500 13px/26px var(--m3-font);
    cursor: pointer;
}
.tip-holes-chip:hover { background: var(--m3-surface-container-low); }
.tip-holes-chip.is-on { background: var(--m3-primary-container); border-color: transparent; color: var(--m3-on-primary-container); }

/* the hole item (row or card share one DOM) */
.tip-hole, .tip-hpro-row {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border: 1px solid var(--m3-outline-variant);      /* M3 outlined card: white on white needs an edge */
    border-left: 4px solid var(--hole);
    border-radius: var(--m3-radius-md);
    background: var(--m3-surface-container-lowest);
    color: var(--m3-on-surface);
    font: inherit;
    cursor: pointer;
    transition: background .12s, box-shadow .12s, border-color .12s;
}
.tip-hole:hover, .tip-hpro-row:hover { background: var(--m3-surface-container-low); border-color: var(--m3-on-surface-variant); border-left-color: var(--hole); }
.tip-hole:focus-visible, .tip-hpro-row:focus-visible { outline: 2px solid var(--m3-primary); outline-offset: 1px; }
/* outside the spotlight: faded, never hidden — hover or focus brings a row back to full */
.tip-hole.is-dim, .tip-hpro-row.is-dim { opacity: .42; transition: opacity .15s; }
.tip-hole.is-dim:hover, .tip-hpro-row.is-dim:hover, .tip-hole.is-dim:focus-visible, .tip-hpro-row.is-dim:focus-visible,
.tip-hpro-row.is-dim.is-selected { opacity: 1; }
.tip-hole-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--hole);
    color: var(--m3-on-primary);   /* white on the hole's own status colour */
    font: 700 14px/1 var(--m3-font);
    flex-shrink: 0;
}
.tip-hole-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tip-hole-title { font: 600 14px/18px var(--m3-font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-hole-meta, .tip-hole-extras { font: 400 12px/16px var(--m3-font); color: var(--m3-on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tip-hole-figures { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; white-space: nowrap; }
.tip-hole-paw { display: inline-flex; align-items: baseline; gap: 4px; font: 400 18px/20px var(--m3-font); }
.tip-hole-paw small { font: 500 10px/12px var(--m3-font); letter-spacing: .04em; color: var(--m3-on-surface-variant); }
.tip-hole-status { font: 500 12px/16px var(--m3-font); }

/* Holes (light): rows when narrow, a card grid when there is room */
.tip-holes { flex: 1 0 auto; display: flex; flex-direction: column; }
.tip-holes-grid { display: flex; flex-direction: column; gap: 6px; }
@container widget (min-width: 460px) {
    .tip-holes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
    .tip-hole {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        row-gap: 6px;
        padding: 12px 12px 12px;
        border-left: 1px solid var(--m3-outline-variant);
        box-shadow: inset 0 3px 0 var(--hole);
    }
    .tip-hole:hover { border-left-color: var(--m3-on-surface-variant); }
    /* scoped to the light widget's cards — Holes Pro rows share the inner classes but stay rows */
    .tip-hole .tip-hole-figures { grid-column: 1 / -1; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 8px; }
    .tip-hole .tip-hole-paw { font-size: 22px; line-height: 24px; }
    .tip-hole .tip-hole-extras { white-space: normal; }
}

/* Holes Pro */
.tip-hpro { flex: 1 0 auto; display: flex; flex-direction: column; min-height: 0; }
.tip-hpro-filter { margin-bottom: 8px; }
/* wide: the two panes scroll on their own inside the widget's height (flex 1 1 → the
   container takes exactly the body's height); stacked: natural height, the body scrolls */
.tip-hpro.is-wide { flex: 1 1 auto; display: grid; grid-template-columns: minmax(280px, 340px) 1fr; grid-template-rows: auto minmax(0, 1fr); column-gap: 16px; }
.tip-hpro.is-wide .tip-hpro-filter { grid-row: 1; grid-column: 1 / -1; }
.tip-hpro.is-wide .tip-hpro-master { grid-row: 2; grid-column: 1; }
.tip-hpro.is-wide .tip-hpro-detail { grid-row: 2; grid-column: 2; }
.tip-hpro-master { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 0; padding: 3px 6px 3px 3px; }   /* room for the selection ring */
.tip-hpro-detail {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 16px 16px;
    border-radius: var(--m3-radius-lg);
    border: 1px solid var(--m3-outline-variant);
    background: var(--m3-surface-container-lowest);
}
.tip-hpro-list { display: flex; flex-direction: column; gap: 6px; padding: 3px; }
.tip-hpro-row { grid-template-columns: auto 1fr auto auto; }
.tip-hpro.is-wide .tip-hpro-row { grid-template-columns: auto 1fr auto; }
.tip-hpro-row.is-selected,
.tip-hpro-row.is-selected:hover {
    background: color-mix(in srgb, var(--m3-primary-container) 40%, var(--m3-surface-container-lowest));
    border-color: var(--m3-primary);
    border-left-color: var(--hole);
    box-shadow: 0 0 0 2px var(--m3-primary);
}
.tip-hpro-chevron { color: var(--m3-on-surface-variant); font-size: 20px; }
.tip-hpro-inline {
    margin: 2px 0 8px;
    padding: 12px 14px 14px;
    border-radius: var(--m3-radius-lg);
    border: 1px solid var(--m3-outline-variant);
    background: var(--m3-surface-container-lowest);
}

/* the passport */
.tip-hpro-passport { display: flex; flex-direction: column; gap: 8px; }
.tip-hpro-passport-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tip-hpro-sketch {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--m3-outline-variant);
    background: var(--m3-inverse-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tip-hpro-passport-title { flex: 1; min-width: 160px; }
.tip-hpro-passport-name { font: 500 18px/24px var(--m3-font); }
.tip-hpro-newtask { flex-shrink: 0; margin-left: auto; align-self: center; }

/* the segmented group — M3 connected buttons for one choice among a few (Sheet | History);
   the same shape the fullscreen map's mode switcher has */
.tip-segmented { display: inline-flex; border: 1px solid var(--m3-outline-variant); border-radius: 20px; overflow: hidden; background: var(--m3-surface-container-lowest); }
.tip-segment {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-left: 1px solid var(--m3-outline-variant);
    background: transparent;
    color: var(--m3-on-surface);
    font: 500 13px/18px var(--m3-font);
    cursor: pointer;
    transition: background .12s, color .12s;
}
.tip-segment:first-child { border-left: 0; }
.tip-segment .mud-icon-root { font-size: 18px; color: var(--m3-on-surface-variant); }
.tip-segment:hover { background: var(--m3-surface-container-low); }
.tip-segment:focus-visible { outline: 2px solid var(--m3-primary); outline-offset: -2px; }
.tip-segment.is-on { background: var(--m3-primary-container); color: var(--m3-on-primary-container); font-weight: 600; }
.tip-segment.is-on .mud-icon-root { color: var(--m3-on-primary-container); }

/* the GC ledger's toolbar, packed right: the period row reads as a FILTER (the
   resolved dates, then icon + label + one segmented group), the view switcher is
   ONE uniform connected control beneath it */
.tip-ledger-filter { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.tip-ledger-filter .tip-segment { height: 30px; padding: 0 12px; font-size: 12px; }
.tip-ledger-switch { display: flex; justify-content: flex-end; overflow-x: auto; padding-bottom: 2px; }
.tip-ledger-switch .tip-segmented { flex-wrap: nowrap; }
.tip-ledger-switch .tip-segment { white-space: nowrap; }

/* the Budget page (Phase B): the TJ-katsaus table — section bands, group whispers,
   computed rollup rows with a rule above, variance speaking in color */
.tip-budget-table tr.tip-budget-section td { background: var(--m3-surface-container); padding-top: 10px; }
.tip-budget-table tr.tip-budget-group td { padding-top: 6px; padding-bottom: 0; border-bottom: none; }
.tip-budget-table tr.tip-budget-rollup td { border-top: 2px solid var(--m3-outline-variant); background: var(--m3-surface-container-low); }
.tip-budget-good { color: var(--m3-primary); font-weight: 600; }
.tip-budget-bad { color: var(--m3-error, var(--m3-error)); font-weight: 600; }

/* the action pill — the one rounded outlined action every widget uses ("Inspect greens",
   "New task here"): primary text on the surface, primary-container on hover */
.tip-action-pill {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 12px 0 8px;
    border: 1px solid var(--m3-outline-variant);
    border-radius: 999px;
    background: var(--m3-surface-container-lowest);
    color: var(--m3-primary);
    font: 500 12px/16px var(--m3-font);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .12s, border-color .12s, color .12s;
}
.tip-action-pill:hover { background: var(--m3-primary-container); border-color: transparent; color: var(--m3-on-primary-container); }
.tip-action-pill:focus-visible { outline: 2px solid var(--m3-primary); outline-offset: 1px; }
.tip-action-pill .mud-icon-root { font-size: 18px; }
.tip-hpro-kpis { display: flex; flex-wrap: wrap; gap: 8px; }
.tip-hpro-kpi {
    flex: 1 1 96px;
    min-width: 96px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--m3-surface-container-low);
}
.tip-hpro-kpi-value { font: 500 18px/22px var(--m3-font); letter-spacing: -.2px; white-space: nowrap; }
.tip-hpro-kpi-value small { font: 500 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); margin-left: 3px; }
.tip-hpro-kpi-label { font: 400 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* M3 secondary tabs on the sheet: transparent, sentence case, a hairline under the bar */
.tip-hpro-tabs, .tip-hpro-tabs .mud-tabs-toolbar, .tip-hpro-tabs .mud-tabs-panels, .tip-hpro-tabs .mud-tabs-toolbar-inner { background: transparent !important; }
.tip-hpro-tabs .mud-tabs-toolbar { min-height: 40px; border-bottom: 1px solid var(--m3-outline-variant); }
.tip-hpro-tabs .mud-tab { min-height: 40px; padding: 6px 12px; font: 500 13px/18px var(--m3-font); text-transform: none; letter-spacing: 0; color: var(--m3-on-surface-variant); }
.tip-hpro-tabs .mud-tab.mud-tab-active { color: var(--m3-primary); }
.tip-hpro-tabs .mud-tab .mud-icon-root { font-size: 18px; }
.tip-hpro-tab { padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.tip-hpro-chart { background: var(--m3-surface-container-lowest); border: 1px solid var(--m3-outline-variant); border-radius: var(--m3-radius-md); padding: 4px 4px 0; }
.tip-hpro-tab-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tip-hpro-metrics { display: flex; gap: 4px; flex-wrap: wrap; }

/* sensors */
.tip-hpro-sensor {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--m3-radius-md);
    background: var(--m3-surface-container-low);
}
.tip-hpro-sensor-info { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tip-hpro-sensor-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 400 14px/20px var(--m3-font); }
.tip-hpro-sensor-chip { font: 500 12px/16px var(--m3-font); }
.tip-hpro-sensor-note { font: 400 12px/16px var(--m3-font); }
.tip-hpro-sensor-values { margin: 0; display: grid; grid-template-columns: auto auto; column-gap: 12px; row-gap: 2px; align-content: start; min-width: 150px; }
.tip-hpro-sensor-values dt { font: 400 12px/16px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-hpro-sensor-values dd { margin: 0; font: 400 12px/16px var(--m3-font); text-align: right; }
@container widget (max-width: 420px) {
    .tip-hpro-sensor { grid-template-columns: 1fr; }
    .tip-hpro-sensor-values dd { text-align: left; }
}

/* tasks */
.tip-hpro-task {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 6px 10px;
    border-left: 4px solid var(--task);
    border-radius: var(--m3-radius-md);
    background: var(--m3-surface-container-low);
    color: inherit;
    text-decoration: none;
}
.tip-hpro-task:hover { background: var(--m3-surface-container); }
.tip-hpro-task-title { font: 500 14px/18px var(--m3-font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* history */
.tip-hpro-chart { width: 100%; min-height: 170px; }

/* clippings */
.tip-hpro-bars { display: flex; align-items: flex-end; gap: 6px; padding: 4px 2px 0; overflow-x: auto; }
.tip-hpro-bar { flex: 0 0 32px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tip-hpro-bar-value { font: 400 10px/12px var(--m3-font); }
.tip-hpro-bar-fill { width: 26px; background: var(--tip-ok-fill); border-radius: 3px 3px 0 0; }
.tip-hpro-bar-date { font: 400 9px/12px var(--m3-font); color: var(--m3-on-surface-variant); }

/* advice */
.tip-hpro-advice { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--m3-surface-container-low); font: 400 14px/20px var(--m3-font); }
.tip-hpro-advice-note { margin-top: 4px; }

/* Hole passport widget: the sheet alone, a compact picker in the frame's action slot */
.tip-passport-widget { flex: 1 0 auto; display: flex; flex-direction: column; }
.tip-passport-widget .tip-hpro-passport { flex: 1 0 auto; }
.tip-passport-picker {
    appearance: none;
    -webkit-appearance: none;
    height: 30px;
    padding: 0 28px 0 12px;
    border-radius: 8px;
    border: 1px solid var(--m3-outline-variant);
    background: var(--m3-surface-container-lowest)
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%2344483d' stroke-width='1.6' stroke-linecap='round'/></svg>")
        no-repeat right 10px center;
    color: var(--m3-on-surface);
    font: 500 13px/28px var(--m3-font);
    max-width: 200px;
    cursor: pointer;
}
.tip-passport-picker:focus-visible { outline: 2px solid var(--m3-primary); outline-offset: 1px; }

/* ---- Course map widget -----------------------------------------------------
   The Leaflet map fills whatever box the widget has; the course chips sit above, the
   legend below, the tools float over the map's top-right corner. The expand tool is a
   normal-mode affordance and hides while the layout is being edited. */
.tip-map { width: 100%; height: 100%; border-radius: var(--m3-radius-md); overflow: hidden; background: var(--m3-surface-container-high); }
.tip-mapw { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.tip-mapw-filter { margin-bottom: 0; }
.tip-mapw-canvas { position: relative; flex: 1 1 auto; min-height: 160px; }
/* head: the same mode switcher as fullscreen, icon-only (M3 connected segmented buttons) */
.tip-mapw-modes { display: inline-flex; border: 1px solid var(--m3-outline-variant); border-radius: 16px; overflow: hidden; margin-right: 4px; }
.tip-mapw-mode {
    appearance: none;
    -webkit-appearance: none;
    width: 34px;
    height: 30px;
    border: 0;
    border-left: 1px solid var(--m3-outline-variant);
    background: transparent;
    color: var(--m3-on-surface-variant);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.tip-mapw-mode:first-child { border-left: 0; }
.tip-mapw-mode .mud-icon-root { font-size: 18px; }
.tip-mapw-mode:hover { background: var(--m3-surface-container-low); }
.tip-mapw-mode.is-on { background: var(--m3-primary-container); color: var(--m3-on-primary-container); }
.tip-widget-head .tip-mapw-tool { width: 30px; height: 30px; border-radius: 8px; box-shadow: none; margin-left: 4px; text-decoration: none; }
.tip-mapw-strip { color: var(--m3-on-surface); }
.tip-mapw-tool {
    appearance: none;
    -webkit-appearance: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--m3-outline-variant);
    background: var(--m3-surface-container-lowest);
    color: var(--m3-on-surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(24, 29, 24, .12);
}
.tip-mapw-tool .mud-icon-root { font-size: 20px; }
.tip-mapw-tool:hover { background: var(--m3-surface-container-low); }
.tip-dash.is-editing .tip-mapw-expand { display: none; }
.tip-mapw-spot { position: absolute; top: 10px; left: 52px; z-index: 1100; }   /* right of Leaflet's zoom control; the layer switcher owns the top-right */
.tip-mapw-spot .tip-spot-chip { box-shadow: 0 1px 3px rgba(24, 29, 24, .2); }
.tip-mapw-note {
    position: absolute;
    left: 10px;
    bottom: 10px;
    right: 10px;
    z-index: 1100;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    color: var(--m3-on-surface-variant);
    font: 400 12px/16px var(--m3-font);
}
.tip-mapw-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    align-items: center;
    font: 400 12px/16px var(--m3-font);
    color: var(--m3-on-surface-variant);
    flex-shrink: 0;
}
.tip-mapw-legend span { display: inline-flex; align-items: center; gap: 5px; }
.tip-mapw-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.tip-mapw-credit { margin-left: auto; font-size: 11px; }
@container widget (max-width: 420px) { .tip-mapw-credit { display: none; } }

/* ---- Tasks widgets (My work, Work board) ------------------------------------
   Shared vocabulary with the hole widgets: outlined rows on the white card, the track's
   colour as the left edge, a title and one meta line. My work adds the section headers
   and the two field actions; Work board adds the tappable counters and the share bar. */
.tip-work { flex: 1 0 auto; display: flex; flex-direction: column; gap: 6px; }
.tip-work-section {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 6px 0 0;
    font: 500 12px/16px var(--m3-font);           /* M3 label-medium */
    color: var(--m3-on-surface-variant);
    text-transform: uppercase;
    letter-spacing: .4px;
}
.tip-work-section:first-child { margin-top: 0; }
.tip-work-section.is-now { color: var(--tip-info-text); }
.tip-work-section.is-overdue { color: var(--m3-error); }
.tip-work-count {
    font: 500 11px/16px var(--m3-font);
    min-width: 18px;
    padding: 0 5px;
    border-radius: 9px;
    text-align: center;
    background: var(--m3-surface-container);
    color: var(--m3-on-surface-variant);
    letter-spacing: 0;
}
.tip-work-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--m3-outline-variant);
    border-left: 4px solid var(--track);
    border-radius: var(--m3-radius-md);
    background: var(--m3-surface-container-lowest);
    transition: background .12s, border-color .12s, opacity .15s;
}
.tip-work-row:hover { background: var(--m3-surface-container-low); border-color: var(--m3-on-surface-variant); border-left-color: var(--track); }
.tip-work-row.is-overdue { background: color-mix(in srgb, var(--m3-error) 5%, var(--m3-surface-container-lowest)); }
.tip-work-row.is-dim { opacity: .42; }
.tip-work-row.is-dim:hover, .tip-work-row.is-dim:focus-within { opacity: 1; }
.tip-work-main {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 8px 4px 8px 10px;
    border: 0;
    background: transparent;
    color: var(--m3-on-surface);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.tip-work-main:focus-visible { outline: 2px solid var(--m3-primary); outline-offset: -2px; border-radius: var(--m3-radius-md); }
.tip-work-title {
    font: 500 14px/20px var(--m3-font);           /* M3 title-small */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.tip-work-meta {
    font: 400 12px/16px var(--m3-font);
    color: var(--m3-on-surface-variant);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.tip-work-meta em { font-style: normal; font-weight: 500; }
.tip-work-progress {
    display: block;
    width: 100%;
    height: 4px;
    margin-top: 4px;
    border-radius: 2px;
    background: var(--m3-surface-container-high);
    overflow: hidden;
}
.tip-work-progress i { display: block; height: 100%; background: var(--tip-info-fill); border-radius: 2px; }
.tip-work-actions { display: inline-flex; gap: 4px; padding-right: 6px; }
.tip-work-act {
    appearance: none;
    -webkit-appearance: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--m3-outline-variant);
    background: var(--m3-surface-container-lowest);
    color: var(--m3-on-surface-variant);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .12s, color .12s;
}
.tip-work-act .mud-icon-root { font-size: 20px; }
.tip-work-act:hover { background: var(--m3-surface-container-low); color: var(--m3-on-surface); }
.tip-work-act.is-done:hover { background: var(--m3-primary-container); color: var(--m3-on-primary-container); border-color: transparent; }
.tip-work-act:disabled { opacity: .5; cursor: default; }
.tip-work-act:focus-visible { outline: 2px solid var(--m3-primary); outline-offset: 1px; }
/* execute mode: the field's targets — 44px, the M3 minimum touch size */
.tip-work.is-execute .tip-work-act { width: 44px; height: 44px; }
.tip-work.is-execute .tip-work-act .mud-icon-root { font-size: 24px; }
.tip-work.is-execute .tip-work-main { padding-top: 10px; padding-bottom: 10px; }
.tip-work-nudge {
    display: block;
    margin-top: 10px;
    font: 500 12px/16px var(--m3-font);
    color: var(--m3-primary);
    text-decoration: none;
}
/* the same nudge as a button (opens a dialog in place instead of navigating) */
button.tip-work-nudge { appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 0; cursor: pointer; text-align: left; }
.tip-work-nudge:hover { text-decoration: underline; }
.tip-work-empty .tip-work-nudge { margin-top: 6px; }

/* Work board */
.tip-board { flex: 1 0 auto; display: flex; flex-direction: column; gap: 10px; }
.tip-board-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 6px;
    flex-shrink: 0;
}
.tip-board-tile {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: var(--m3-radius-md);
    background: var(--m3-surface-container-low);
    color: var(--m3-on-surface);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .12s, border-color .12s;
}
.tip-board-tile b {
    font: 400 24px/28px var(--m3-font);           /* M3 headline-small, tabular */
    font-variant-numeric: tabular-nums;
    color: var(--tile);
}
.tip-board-tile.is-zero b { color: var(--m3-on-surface-variant); }
.tip-board-tile span { font: 500 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); white-space: nowrap; }
.tip-board-tile:hover { background: var(--m3-surface-container); }
.tip-board-tile.is-on { background: var(--m3-surface-container-lowest); border-color: var(--tile); box-shadow: inset 0 0 0 1px var(--tile); }
.tip-board-tile:focus-visible { outline: 2px solid var(--m3-primary); outline-offset: 1px; }
.tip-board-share { flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; }
.tip-board-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; gap: 2px; background: var(--m3-surface-container-high); }
.tip-board-bar i { display: block; min-width: 3px; }
.tip-board-legend { display: flex; flex-wrap: wrap; gap: 2px 12px; font: 400 11px/16px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-board-legend span { display: inline-flex; align-items: center; gap: 4px; }
.tip-board-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.tip-board-legend b { font-weight: 500; color: var(--m3-on-surface); }
.tip-board-list { display: flex; flex-direction: column; gap: 6px; }
.tip-board-row {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 6px 8px 10px;
    border: 1px solid var(--m3-outline-variant);
    border-left: 4px solid var(--track);
    border-radius: var(--m3-radius-md);
    background: var(--m3-surface-container-lowest);
    color: var(--m3-on-surface);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .12s, border-color .12s, opacity .15s;
}
.tip-board-row:hover { background: var(--m3-surface-container-low); border-color: var(--m3-on-surface-variant); border-left-color: var(--track); }
.tip-board-row:focus-visible { outline: 2px solid var(--m3-primary); outline-offset: 1px; }
.tip-board-row.is-dim { opacity: .42; }
.tip-board-row.is-dim:hover, .tip-board-row.is-dim:focus-visible { opacity: 1; }
.tip-board-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tip-board-pct { font: 500 12px/16px var(--m3-font); color: var(--tip-info-text); font-variant-numeric: tabular-nums; }
.tip-board-chevron { font-size: 20px; color: var(--m3-on-surface-variant); }

/* narrow: the legend folds away, the bar stays; the tiles keep two columns at least */
@container widget (max-width: 420px) {
    .tip-board-legend { display: none; }
    .tip-board-tiles { grid-template-columns: repeat(3, 1fr); }
    .tip-board-tile { padding: 6px 8px; }
    .tip-board-tile b { font-size: 20px; line-height: 24px; }
}
@container widget (max-width: 300px) {
    .tip-board-tiles { grid-template-columns: repeat(2, 1fr); }
    .tip-work-meta { white-space: normal; }
}

/* Track rhythm — one bar per track: the interval used up since it was last done */
.tip-rhythm { flex: 1 0 auto; display: flex; flex-direction: column; gap: 6px; }
.tip-rhythm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    border-radius: 13px;
    border: 1px solid var(--m3-error);
    background: color-mix(in srgb, var(--m3-error) 10%, var(--m3-surface-container-lowest));
    color: var(--m3-on-surface);
    font: 500 12px/16px var(--m3-font);
    white-space: nowrap;
}
.tip-rhythm-row {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    padding: 8px 10px 8px 10px;
    border: 1px solid var(--m3-outline-variant);
    border-left: 4px solid var(--track);
    border-radius: var(--m3-radius-md);
    background: var(--m3-surface-container-lowest);
    color: var(--m3-on-surface);
    font: inherit;
    text-align: left;
    cursor: default;
    transition: background .12s, border-color .12s;
}
.tip-rhythm.is-manage .tip-rhythm-row { cursor: pointer; }
.tip-rhythm.is-manage .tip-rhythm-row:hover { background: var(--m3-surface-container-low); border-color: var(--m3-on-surface-variant); border-left-color: var(--track); }
.tip-rhythm-row:focus-visible { outline: 2px solid var(--m3-primary); outline-offset: 1px; }
.tip-rhythm-row.is-overdue { background: color-mix(in srgb, var(--m3-error) 5%, var(--m3-surface-container-lowest)); }
.tip-rhythm-head, .tip-rhythm-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.tip-rhythm-name { font: 500 14px/20px var(--m3-font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-rhythm-cadence { font: 400 12px/16px var(--m3-font); color: var(--m3-on-surface-variant); white-space: nowrap; }
.tip-rhythm-bar {
    display: block;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--m3-surface-container-high);
    overflow: hidden;
}
.tip-rhythm-bar i { display: block; height: 100%; border-radius: 3px; background: var(--rhythm); min-width: 0; transition: width .3s; }
.tip-rhythm-row.is-none .tip-rhythm-bar { background: repeating-linear-gradient(90deg, var(--m3-surface-container-high) 0 6px, transparent 6px 10px); }
.tip-rhythm-status { font: 500 12px/16px var(--m3-font); color: var(--rhythm); white-space: nowrap; }
.tip-rhythm-last { font: 400 12px/16px var(--m3-font); color: var(--m3-on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@container widget (max-width: 300px) {
    .tip-rhythm-last { display: none; }
}
@supports not (background: color-mix(in srgb, red 10%, white)) {
    .tip-rhythm-badge, .tip-rhythm-row.is-overdue, .tip-work-row.is-overdue { background: var(--m3-surface-container-low); }
}

/* ---- The morning (docs/MORNING.md) ---------------------------------------------
   The sheet: the weather line, the Soil Scout line with its deltas, the indicator-greens
   table (metrics × greens, every cell a tap target), greens today / done, the signature.
   Shared by the widget (compact) and the page. The capture dialog and the settings editor
   reuse the chip vocabulary (.tip-holes-chip) and add the reading chips and inputs. */
.tip-morn { display: flex; flex-direction: column; gap: 10px; flex: 1 0 auto; }
.tip-morn-page .tip-dash-page { gap: 12px; }
.tip-morn-card {
    background: var(--m3-surface-container-lowest);
    border-radius: var(--m3-radius-xl);
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tip-morn-daybar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tip-morn-day { display: flex; flex-direction: column; min-width: 120px; }
.tip-morn-day b { font: 500 18px/24px var(--m3-font); }
.tip-morn-day span { font: 400 12px/16px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-morn-primary {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px 0 10px;
    border-radius: 18px;
    border: 0;
    background: var(--m3-primary);
    color: var(--m3-on-primary);
    font: 500 14px/20px var(--m3-font);
    text-decoration: none;
    cursor: pointer;
}
.tip-morn-primary:hover { filter: brightness(1.08); }
.tip-morn-primary .mud-icon-root { font-size: 20px; }

/* status pill in the widget head */
.tip-morn-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 26px;
    padding: 0 10px 0 6px;
    border-radius: 13px;
    border: 1px solid var(--m3-outline-variant);
    font: 500 12px/16px var(--m3-font);
    color: var(--m3-on-surface-variant);
    white-space: nowrap;
}
.tip-morn-status .mud-icon-root { font-size: 16px; }
.tip-morn-status.is-filed { border-color: transparent; background: var(--m3-primary-container); color: var(--m3-on-primary-container); }

/* the band: the paper's two header lines — weather and the buried sensors — as two tiles
   in equal halves (they stack in a narrow widget), each with a small titled head and its
   numbers big and labelled, the change against the previous morning under each. The
   explicit align-items matters: the weather tile is a button, and the UA sheet centers
   a flex button's children — without it the content clumps mid-tile. */
.tip-morn-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tip-morn-tile {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px 12px;
    border: 1px solid transparent;
    border-radius: var(--m3-radius-lg);
    background: var(--m3-surface-container-low);
    color: var(--m3-on-surface);
    font: inherit;
    text-align: left;
    transition: background .12s, border-color .12s;
}
.tip-morn-tile.is-weather { cursor: pointer; }
.tip-morn-tile.is-weather:disabled { cursor: default; }
.tip-morn-tile.is-weather:not(:disabled):hover { background: var(--m3-surface-container); border-color: var(--m3-outline-variant); }
.tip-morn-tile.is-weather:focus-visible { outline: 2px solid var(--m3-primary); outline-offset: 1px; }
.tip-morn-tile.is-empty { border-style: dashed; border-color: var(--m3-outline-variant); background: transparent; }
.tip-morn-tile-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tip-morn-tile-head .mud-icon-root { font-size: 18px; color: var(--m3-primary); flex-shrink: 0; }
.tip-morn-tile-head span { font: 500 13px/18px var(--m3-font); white-space: nowrap; }
.tip-morn-tile-head small { margin-left: auto; font: 400 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tip-morn-tile-empty { font: 400 13px/18px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-morn-tile-vals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
/* air · rain · sky — numbers first, the word last on the widest column */
.tip-morn-tile.is-weather .tip-morn-tile-vals { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); }
/* the page's one-line weather row: the noted record (air · rain · sky), a hairline,
   then the air right now (humidity · pressure · lightning) from the live report */
.tip-morn:not(.is-compact) .tip-morn-tile.is-weather .tip-morn-tile-vals.is-wide {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
}
.tip-morn-tile-vals.is-wide .tip-morn-val:nth-child(4) { border-left: 1px solid var(--m3-outline-variant); padding-left: 18px; }
.tip-morn-val { display: flex; flex-direction: column; min-width: 0; }
.tip-morn-val small { font: 500 10px/12px var(--m3-font); color: var(--m3-on-surface-variant); text-transform: uppercase; letter-spacing: .4px; }
.tip-morn-val b { font: 400 22px/28px var(--m3-font); letter-spacing: -.2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* wordy values — sky, the lightning outlook — speak smaller than the numbers */
.tip-morn-val.is-word b { font-size: 17px; line-height: 28px; font-weight: 500; }
.tip-morn-val b.is-storm { color: var(--tip-warn-text); }
.tip-morn-val .tip-morn-prev-value { margin-top: 1px; }
.tip-morn.is-compact .tip-morn-val .tip-morn-prev-value { display: none; }
.tip-morn-val em, .tip-morn-cell em, .tip-morn-avg em {
    font: 500 11px/14px var(--m3-font);
    font-style: normal;
    color: var(--m3-on-surface-variant);
    font-variant-numeric: tabular-nums;
}
.tip-morn-val em.is-good, .tip-morn-cell em.is-good, .tip-morn-avg em.is-good { color: var(--tip-ok-text); }
.tip-morn-val em.is-bad, .tip-morn-cell em.is-bad, .tip-morn-avg em.is-bad { color: var(--m3-error); }
.tip-morn.is-compact .tip-morn-tile { padding: 8px 10px 10px; gap: 6px; }
.tip-morn.is-compact .tip-morn-val b { font-size: 19px; line-height: 24px; }
.tip-morn.is-compact .tip-morn-val.is-word b { font-size: 15px; line-height: 24px; }
/* the full page has the room the widget hasn't — let the band breathe there, and give
   weather the 70/30 share: its one-line row carries six values to the soil tile's three */
.tip-morn:not(.is-compact) .tip-morn-band { gap: 12px; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }
.tip-morn:not(.is-compact) .tip-morn-tile { padding: 14px 18px 16px; gap: 10px; }
.tip-morn:not(.is-compact) .tip-morn-tile-vals { gap: 10px 20px; }
.tip-morn:not(.is-compact) .tip-morn-val b { font-size: 26px; line-height: 32px; }
.tip-morn:not(.is-compact) .tip-morn-val.is-word b { font-size: 20px; line-height: 32px; }
@container widget (max-width: 560px) {
    .tip-morn-band { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    /* a narrow page: the tiles stack and the one-line row folds back to two trios */
    .tip-morn:not(.is-compact) .tip-morn-band { grid-template-columns: 1fr; }
    .tip-morn:not(.is-compact) .tip-morn-tile.is-weather .tip-morn-tile-vals.is-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tip-morn-tile-vals.is-wide .tip-morn-val:nth-child(4) { border-left: 0; padding-left: 0; }
}

/* the indicator-greens table */
.tip-morn-notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: var(--m3-radius-md);
    background: var(--m3-surface-container-low);
    font: 400 13px/18px var(--m3-font);
}
.tip-morn-notice .mud-icon-root { font-size: 22px; color: var(--m3-primary); flex-shrink: 0; }
.tip-morn-notice b { display: block; }
.tip-morn-notice .tip-work-nudge { margin-top: 4px; }
.tip-morn-notice-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.tip-morn-notice-actions .tip-morn-file { margin-left: 0; }
.tip-morn-plan-note { display: inline-flex; align-items: center; gap: 5px; font: 500 11px/14px var(--m3-font); color: var(--m3-tertiary); text-transform: none; }
.tip-morn-plan-note i, .tip-meas-planned-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--m3-tertiary); }
.tip-morn-green.is-planned { box-shadow: 0 0 0 2px var(--m3-surface-container-lowest), 0 0 0 4px var(--m3-tertiary-container); }
.tip-morn-cell.is-planned { border: 1px dashed var(--m3-tertiary); }
.tip-morn-cell.is-planned b { color: var(--m3-tertiary); font: 500 12px/16px var(--m3-font); text-transform: uppercase; letter-spacing: .3px; }
.tip-morn-cell:disabled { cursor: default; }
.tip-morn-cell:disabled:hover { background: transparent; border-color: transparent; }
.tip-morn-cell.is-empty:disabled:hover b { color: var(--m3-outline-variant); }
.tip-morn-table-wrap { overflow: auto; }
.tip-morn-table { width: 100%; border-collapse: separate; border-spacing: 0; font: 400 13px/18px var(--m3-font); }
.tip-morn-table th, .tip-morn-table td { padding: 4px 4px; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--m3-outline-variant); }
.tip-morn-table thead th { font: 500 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); padding-bottom: 6px; }
.tip-morn-table thead th small { display: block; font: 400 10px/12px var(--m3-font); }
.tip-morn-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--m3-primary-container);
    color: var(--m3-on-primary-container);
    font: 500 13px/18px var(--m3-font);
}
.tip-morn-th-metric { text-align: left !important; width: 30%; }
.tip-morn-th-metric span { display: block; font: 500 13px/18px var(--m3-font); color: var(--m3-on-surface); }
.tip-morn-th-metric small { display: block; font: 400 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-morn-th-avg, .tip-morn-avg { background: var(--m3-surface-container-low); }
.tip-morn-avg b { display: block; font: 500 14px/18px var(--m3-font); font-variant-numeric: tabular-nums; }
.tip-morn-avg em { display: block; }
.tip-morn-cell {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    width: 100%;
    min-height: 40px;
    padding: 4px 2px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--m3-on-surface);
    font: inherit;
    cursor: pointer;
    transition: background .12s, border-color .12s;
}
.tip-morn-cell:hover { background: var(--m3-surface-container-low); border-color: var(--m3-outline-variant); }
.tip-morn-cell:focus-visible { outline: 2px solid var(--m3-primary); outline-offset: 1px; }
.tip-morn-cell b { font: 500 15px/20px var(--m3-font); font-variant-numeric: tabular-nums; }
.tip-morn-cell.is-empty b { color: var(--m3-outline-variant); font-weight: 400; }
.tip-morn-cell.is-empty:hover b { color: var(--m3-primary); }
.tip-morn-cell.is-other-unit b { color: var(--m3-tertiary); }
.tip-morn-hl { font: 400 10px/12px var(--m3-font); color: var(--m3-on-surface-variant); font-variant-numeric: tabular-nums; }
.tip-morn.is-compact .tip-morn-table th, .tip-morn.is-compact .tip-morn-table td { padding: 2px 2px; }
.tip-morn.is-compact .tip-morn-cell { min-height: 34px; }
.tip-morn.is-compact .tip-morn-cell b { font-size: 14px; }
.tip-morn.is-compact .tip-morn-th-metric small { display: none; }

/* the cell's provenance ("GS3 · Janne · 06:20" / "manual · Ivan · 07:10") and a typed cell */
.tip-morn-src-line { font: 400 10px/12px var(--m3-font); color: var(--m3-on-surface-variant); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tip-morn-src-line.is-manual { color: var(--m3-tertiary); }
.tip-morn-cell.is-manual b { text-decoration: underline dotted var(--m3-tertiary); text-underline-offset: 3px; }

/* a cell being typed into (today's unfiled sheet, a board runner) */
.tip-morn-cell.is-editing { cursor: default; border-color: var(--m3-primary); background: var(--m3-surface-container-low); gap: 4px; }
.tip-morn-cell.is-editing:hover { background: var(--m3-surface-container-low); }
.tip-morn-cell-input {
    width: 100%;
    max-width: 96px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--m3-outline-variant);
    border-radius: 6px;
    background: var(--m3-surface);
    color: var(--m3-on-surface);
    font: 500 15px/20px var(--m3-font);
    font-variant-numeric: tabular-nums;
    text-align: center;
}
.tip-morn-cell-input:focus { outline: 2px solid var(--m3-primary); outline-offset: -1px; border-color: transparent; }
.tip-morn-cell-error { font: 400 10px/12px var(--m3-font); color: var(--m3-error); }
.tip-morn-cell-actions { display: inline-flex; gap: 2px; }
.tip-morn-cell-actions button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--m3-on-surface-variant);
    cursor: pointer;
}
.tip-morn-cell-actions button:hover { background: var(--m3-surface-container-high); color: var(--m3-primary); }
.tip-morn-cell-actions button:first-child { color: var(--m3-primary); }
.tip-morn-cell-actions button:disabled { opacity: .5; cursor: default; }
.tip-morn-cell-actions .mud-icon-root { font-size: 18px; }

/* "Inspect greens" in the table's corner */
.tip-morn-inspect {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding: 4px 10px 4px 8px;
    border: 1px solid var(--m3-outline-variant);
    border-radius: 999px;
    background: var(--m3-surface);
    color: var(--m3-primary);
    font: 500 12px/16px var(--m3-font);
    cursor: pointer;
    white-space: nowrap;
}
.tip-morn-inspect:hover { background: var(--m3-primary-container); border-color: transparent; color: var(--m3-on-primary-container); }
.tip-morn-inspect .mud-icon-root { font-size: 16px; }
.tip-morn.is-compact .tip-morn-inspect { padding: 2px 8px 2px 6px; font-size: 11px; }

/* the previous morning, for comparison */
.tip-morn-prev { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 0 10px; font: 400 12px/16px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-morn-prev small { font: 500 11px/14px var(--m3-font); text-transform: uppercase; letter-spacing: .4px; }
.tip-morn-prev-value { font: 400 10px/12px var(--m3-font); color: var(--m3-on-surface-variant); font-variant-numeric: tabular-nums; }

/* the day's tasks as chips */
.tip-morn-tasks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 2px; }
.tip-morn-tasks-label { display: inline-flex; align-items: center; gap: 4px; font: 500 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); text-transform: uppercase; letter-spacing: .4px; margin-right: 4px; }
.tip-morn-tasks-label .mud-icon-root { font-size: 16px; }
.tip-morn-task {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 10px 0 8px;
    border-radius: 15px;
    border: 1px solid var(--m3-outline-variant);
    background: var(--m3-surface-container-lowest);
    color: var(--m3-on-surface);
    font: 500 13px/18px var(--m3-font);
    text-decoration: none;
    cursor: pointer;
    transition: background .12s, border-color .12s;
}
.tip-morn-task:hover { background: var(--m3-surface-container-low); border-color: var(--m3-on-surface-variant); }
.tip-morn-task:focus-visible { outline: 2px solid var(--m3-primary); outline-offset: 1px; }
.tip-morn-task i { width: 8px; height: 8px; border-radius: 50%; background: var(--tip-warn-fill); flex-shrink: 0; }
.tip-morn-task.is-progress i { background: var(--tip-info-fill); }
.tip-morn-task.is-done { color: var(--m3-on-surface-variant); text-decoration: line-through; text-decoration-color: var(--m3-outline-variant); }
.tip-morn-task.is-done i { background: var(--tip-ok-fill); }
.tip-morn-task small { font: 500 11px/14px var(--m3-font); padding: 0 5px; border-radius: 7px; background: var(--m3-primary-container); color: var(--m3-on-primary-container); }
.tip-morn-task.is-add { border-style: dashed; color: var(--m3-primary); }
.tip-morn-execs { margin-top: 2px; }
.tip-morn-exec i { background: var(--m3-tertiary); }
.tip-morn-exec.is-operation i { background: var(--tip-ok-fill); }
.tip-morn-exec .is-time { background: transparent; color: var(--m3-on-surface-variant); padding: 0; font-weight: 400; }
.tip-morn-exec .mud-icon-root { font-size: 14px; color: var(--m3-primary); }
.tip-morn-exec:disabled { cursor: default; }
.tip-morn-exec:disabled:hover { background: var(--m3-surface-container-lowest); border-color: var(--m3-outline-variant); }
.tip-morn-task.is-add .mud-icon-root { font-size: 16px; }
.tip-mapw-tool.is-danger:hover, .tip-morn-link.is-danger:hover { color: var(--m3-error); border-color: var(--m3-error); }
.tip-morn-link.is-danger { color: var(--m3-on-surface-variant); }
.tip-morn-link .mud-icon-root { font-size: 18px; vertical-align: middle; }

/* ---- the day's work: rows instead of chips — who · where · when · how far ---------------
   A head with the summary and the plan pill; the crew strip (initials, load, the unassigned
   warning); one row per task (track dot, title + track · holes · window, executors as
   initials, the state with a progress bar); the Recorded rows (time, what, detail, who, tasks
   closed); the recent days; the notes. */
.tip-morn-work { display: flex; flex-direction: column; gap: 8px; }
.tip-morn-work-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 32px; padding: 0 2px; }
.tip-morn-work-head.is-sub { margin-top: 4px; min-height: 24px; }
.tip-morn-work-summary { font: 400 12px/16px var(--m3-font); color: var(--m3-on-surface-variant); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-morn-plan { margin-left: auto; height: 28px; padding: 0 10px 0 6px; }
.tip-morn-work-empty { padding: 10px 12px; border-radius: var(--m3-radius-md); background: var(--m3-surface-container-low); font: 400 13px/18px var(--m3-font); color: var(--m3-on-surface-variant); }

.tip-morn-crew { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px; }
.tip-morn-crew-chip {
    display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 3px; border-radius: 14px;
    background: var(--m3-surface-container-low); font: 500 12px/16px var(--m3-font); color: var(--m3-on-surface);
}
.tip-morn-crew-chip i {
    display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%;
    background: var(--m3-primary-container); color: var(--m3-on-primary-container); font: 500 10px/12px var(--m3-font); font-style: normal; letter-spacing: .2px;
}
.tip-morn-crew-chip small { font: 400 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-morn-crew-chip.is-warn { background: color-mix(in srgb, var(--tip-warn-fill) 14%, var(--m3-surface-container-lowest)); color: var(--tip-warn-text); }
.tip-morn-crew-chip.is-warn i { background: var(--tip-warn-fill); color: var(--m3-on-primary); }

.tip-morn-rows { display: flex; flex-direction: column; gap: 4px; }
.tip-morn-row {
    appearance: none; -webkit-appearance: none;
    display: grid; grid-template-columns: 14px minmax(0, 1fr) auto minmax(96px, auto); align-items: center; gap: 10px;
    width: 100%; padding: 6px 10px; border: 1px solid transparent; border-radius: var(--m3-radius-md);
    background: var(--m3-surface-container-lowest); color: var(--m3-on-surface); font: inherit; text-align: left; cursor: pointer;
    transition: background .12s, border-color .12s;
}
.tip-morn-row:hover { background: var(--m3-surface-container-low); border-color: var(--m3-outline-variant); }
.tip-morn-row:focus-visible { outline: 2px solid var(--m3-primary); outline-offset: 1px; }
.tip-morn-row:disabled { cursor: default; }
.tip-morn-row:disabled:hover { background: var(--m3-surface-container-lowest); border-color: transparent; }
.tip-morn-row-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--track, var(--tip-warn-fill)); box-shadow: 0 0 0 2px var(--m3-surface-container-lowest), 0 0 0 3px var(--tip-warn-fill); }
.tip-morn-row.is-progress .tip-morn-row-dot { box-shadow: 0 0 0 2px var(--m3-surface-container-lowest), 0 0 0 3px var(--tip-info-fill); }
.tip-morn-row.is-done .tip-morn-row-dot { box-shadow: 0 0 0 2px var(--m3-surface-container-lowest), 0 0 0 3px var(--tip-ok-fill); }
.tip-morn-row-main { display: flex; flex-direction: column; min-width: 0; }
.tip-morn-row-main b { font: 500 13px/18px var(--m3-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tip-morn-row-main small { font: 400 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tip-morn-row.is-done .tip-morn-row-main b { color: var(--m3-on-surface-variant); text-decoration: line-through; text-decoration-color: var(--m3-outline-variant); }
.tip-morn-row-who { display: inline-flex; align-items: center; gap: 2px; font: 500 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-morn-row-who i {
    display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: -4px; border-radius: 50%;
    background: var(--m3-primary-container); color: var(--m3-on-primary-container); border: 2px solid var(--m3-surface-container-lowest);
    font: 500 9.5px/12px var(--m3-font); font-style: normal; letter-spacing: .2px;
}
.tip-morn-row-who i:first-child { margin-left: 0; }
.tip-morn-row-who.is-warn { color: var(--tip-warn-text); }
.tip-morn-row-state { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; font: 500 12px/16px var(--m3-font); color: var(--m3-on-surface-variant); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tip-morn-row.is-progress .tip-morn-row-state { color: var(--tip-info-text); }
.tip-morn-row.is-done .tip-morn-row-state { color: var(--m3-primary); }
.tip-morn-row-state .mud-icon-root { font-size: 16px; }
.tip-morn-row-state .is-quiet { color: var(--m3-outline-variant); font-weight: 400; }
.tip-morn-row-bar { display: inline-block; width: 44px; height: 4px; border-radius: 2px; background: var(--m3-surface-container-high); overflow: hidden; }
.tip-morn-row-bar i { display: block; height: 100%; background: var(--tip-info-fill); border-radius: 2px; }
.tip-morn-row.is-measurement .tip-morn-row-state .mud-icon-root { color: var(--m3-tertiary); }
.tip-morn-rows.is-recorded .tip-morn-row { grid-template-columns: 40px minmax(0, 1fr) auto minmax(96px, auto); }
.tip-morn-row-time { font: 500 12px/16px var(--m3-font); color: var(--m3-on-surface-variant); font-variant-numeric: tabular-nums; }
.tip-morn-more { display: block; padding: 2px 10px; font: 500 12px/16px var(--m3-font); color: var(--m3-primary); text-decoration: none; }
.tip-morn-more:hover { text-decoration: underline; }

/* the recent days / notes / signature */
.tip-morn-recent { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 2px 10px 0; font: 400 12px/16px var(--m3-font); color: var(--m3-on-surface); }
.tip-morn-recent small, .tip-morn-notes small { font: 500 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); text-transform: uppercase; letter-spacing: .4px; margin-right: 2px; }
.tip-morn-recent-day b { font-weight: 500; margin-right: 4px; }
.tip-morn-notes { font: 400 13px/18px var(--m3-font); padding: 0 10px; color: var(--m3-on-surface-variant); font-style: italic; }
.tip-morn-notes small { font-style: normal; }
.tip-morn.is-compact .tip-morn-row { padding: 4px 8px; gap: 8px; }
.tip-morn.is-compact .tip-morn-row-main b { font-size: 12.5px; }
@container widget (max-width: 520px) {
    .tip-morn-row { grid-template-columns: 14px minmax(0, 1fr) auto; }
    .tip-morn-row-state { grid-column: 2 / -1; justify-content: flex-start; }
    .tip-morn-rows.is-recorded .tip-morn-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
    .tip-morn-work-summary { flex-basis: 100%; order: 3; }
}
.tip-morn-sign { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.tip-morn-filed { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/18px var(--m3-font); color: var(--m3-primary); }
.tip-morn-filed .mud-icon-root { font-size: 18px; }
.tip-morn-file {
    appearance: none;
    -webkit-appearance: none;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px 0 10px;
    border-radius: 17px;
    border: 1px solid var(--m3-primary);
    background: transparent;
    color: var(--m3-primary);
    font: 500 13px/18px var(--m3-font);
    cursor: pointer;
}
.tip-morn-file:hover { background: var(--m3-primary-container); border-color: transparent; color: var(--m3-on-primary-container); }
.tip-morn-file .mud-icon-root { font-size: 18px; }
.tip-morn-link { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--m3-primary); font: 500 13px/18px var(--m3-font); cursor: pointer; padding: 0; }
.tip-morn-link:hover { text-decoration: underline; }
.tip-morn-history th, .tip-morn-history td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tip-morn-history .tip-morn-text { white-space: normal; text-align: left; min-width: 140px; }
.tip-morn-history tr.is-filed td:first-child { border-left: 3px solid var(--m3-primary); }

/* ---- the capture dialog & the settings editor ---- */
.tip-meas { display: flex; flex-direction: column; gap: 10px; }
.tip-meas-label { font: 500 12px/16px var(--m3-font); color: var(--m3-on-surface-variant); text-transform: uppercase; letter-spacing: .4px; margin-top: 4px; }
.tip-meas-unit { text-transform: none; letter-spacing: 0; font-weight: 400; }
.tip-meas .tip-holes-filter { margin-bottom: 0; align-items: center; }
.tip-meas-green { min-width: 44px; height: 40px; font-size: 15px; justify-content: center; display: inline-flex; align-items: center; position: relative; }
.tip-meas-green.is-planned::after { content: ""; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--m3-tertiary); }
.tip-meas-green.is-on.is-planned::after { background: var(--m3-on-primary-container); }
.tip-meas-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 480px) { .tip-meas-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tip-meas-grid .tip-meas-green { min-width: 0; padding: 0; }
.tip-meas-select {
    height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid var(--m3-outline-variant);
    background: var(--m3-surface-container-lowest);
    color: var(--m3-on-surface);
    font: 400 14px/20px var(--m3-font);
}
.tip-meas-card { border: 1px solid var(--m3-outline-variant); border-radius: var(--m3-radius-md); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.tip-meas-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tip-meas-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--m3-primary-container); color: var(--m3-on-primary-container); font: 500 14px/18px var(--m3-font); }
.tip-meas-card-title { font: 500 14px/20px var(--m3-font); }
.tip-meas-stats { margin-left: auto; font: 400 12px/16px var(--m3-font); color: var(--m3-on-surface-variant); font-variant-numeric: tabular-nums; }
.tip-meas-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tip-meas-chips:empty { display: none; }
.tip-meas-reading {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 6px 0 12px;
    border-radius: 16px;
    border: 1px solid var(--m3-outline-variant);
    background: var(--m3-surface-container-low);
    color: var(--m3-on-surface);
    font: 500 14px/20px var(--m3-font);
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}
.tip-meas-reading .mud-icon-root { font-size: 16px; color: var(--m3-on-surface-variant); }
.tip-meas-reading:hover { border-color: var(--m3-error); }
.tip-meas-reading:hover .mud-icon-root { color: var(--m3-error); }
.tip-meas-entry { display: flex; gap: 8px; }
.tip-meas-input {
    flex: 1;
    min-width: 0;
    height: 44px;                                        /* the phone's target */
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--m3-outline-variant);
    background: var(--m3-surface-container-lowest);
    color: var(--m3-on-surface);
    font: 400 18px/24px var(--m3-font);
    font-variant-numeric: tabular-nums;
}
.tip-meas-input:focus { outline: 2px solid var(--m3-primary); outline-offset: -1px; border-color: transparent; }
.tip-meas-add {
    appearance: none;
    -webkit-appearance: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 0;
    background: var(--m3-primary);
    color: var(--m3-on-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.tip-meas-add .mud-icon-root { font-size: 24px; }
.tip-meas-error { font: 400 12px/16px var(--m3-font); color: var(--m3-error); }
.tip-meas-hint { padding: 4px 2px; }
.tip-meas-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tip-meas-foot .tip-meas-select { flex: 0 0 auto; max-width: 50%; }
.tip-meas-notes { height: 36px; font-size: 14px; }
.tip-morn-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tip-morn-field { display: flex; flex-direction: column; gap: 4px; font: 500 12px/16px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-morn-field .tip-meas-input { height: 40px; font-size: 15px; }
.tip-morn-textarea { height: auto; padding: 8px 12px; font-size: 14px; line-height: 20px; resize: vertical; }
.tip-meas-settings .tip-meas-course { display: flex; flex-direction: column; gap: 4px; }
.tip-meas-settings .tip-meas-course small { font: 500 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-meas-devices { display: flex; flex-direction: column; gap: 8px; }
.tip-meas-device { display: grid; grid-template-columns: 150px 1fr; gap: 4px 12px; align-items: center; }
.tip-meas-device-name { font: 500 13px/18px var(--m3-font); }
.tip-meas-device .tip-meas-unit { grid-column: 2; font: 400 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); }
@media (max-width: 480px) {
    .tip-meas-device { grid-template-columns: 1fr; }
    .tip-meas-device .tip-meas-unit { grid-column: 1; }
    .tip-morn-form { grid-template-columns: 1fr; }
}

/* ---- Weather / Weather Pro (docs/WEATHER.md) --------------------------------------- */
.tip-wx { display: flex; flex-direction: column; gap: 10px; }
.tip-wx-preview {
    display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 999px;
    border: 1px dashed var(--m3-outline-variant); font: 500 11px/14px var(--m3-font); color: var(--m3-on-surface-variant);
    letter-spacing: .2px; white-space: nowrap;
}
.tip-wx-source { display: inline-flex; align-items: center; gap: 3px; font: 500 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); margin-left: 6px; }
.tip-wx-source .mud-icon-root { font-size: 15px; }
.tip-wx-now { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tip-wx-icon.mud-icon-root { font-size: 44px; color: var(--m3-primary); }
.tip-wx-temp { display: flex; flex-direction: column; min-width: 96px; }
.tip-wx-temp b { font: 400 32px/36px var(--m3-font); letter-spacing: -.5px; color: var(--m3-on-surface); }
.tip-wx-temp small { font: 400 12px/16px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-wx-facts { display: flex; flex-direction: column; gap: 2px; margin-left: auto; font: 500 13px/18px var(--m3-font); }
.tip-wx-facts span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tip-wx-facts small { font-weight: 400; color: var(--m3-on-surface-variant); }
.tip-wx-facts .mud-icon-root { font-size: 16px; color: var(--m3-on-surface-variant); }
.tip-wx-balance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tip-wx-kv { display: flex; flex-direction: column; padding: 6px 8px; border-radius: var(--m3-radius-md); background: var(--m3-surface-container-low); }
.tip-wx-kv small { font: 500 10px/12px var(--m3-font); color: var(--m3-on-surface-variant); text-transform: uppercase; letter-spacing: .3px; }
.tip-wx-kv b { font: 500 15px/20px var(--m3-font); font-variant-numeric: tabular-nums; }
.tip-wx-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 6px 0; border-top: 1px solid var(--m3-surface-container-high); border-bottom: 1px solid var(--m3-surface-container-high); }
.tip-wx-hour { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; font-variant-numeric: tabular-nums; }
.tip-wx-hour small { font: 400 10px/12px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-wx-hour .mud-icon-root { font-size: 18px; color: var(--m3-on-surface-variant); }
.tip-wx-hour.is-rain .mud-icon-root { color: var(--m3-tertiary); }
.tip-wx-hour b { font: 500 13px/16px var(--m3-font); }
.tip-wx-hour em { font: 500 10px/12px var(--m3-font); font-style: normal; color: var(--m3-tertiary); min-height: 12px; }
.tip-wx-days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.tip-wx-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: var(--m3-radius-md); background: var(--m3-surface-container-low); min-width: 0; }
.tip-wx-day small { font: 500 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-wx-day .mud-icon-root { font-size: 22px; color: var(--m3-primary); }
.tip-wx-day b { font: 500 14px/18px var(--m3-font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tip-wx-day b span { font-weight: 400; color: var(--m3-on-surface-variant); }
.tip-wx-day em { font: 400 10px/12px var(--m3-font); font-style: normal; color: var(--m3-on-surface-variant); white-space: nowrap; }
.tip-wx-src { font: 400 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); margin-top: auto; }
.tip-wx-stale { color: var(--tip-warn-text); margin-left: 4px; }
/* Club settings → Weather: the source cards and the Test connection table. */
.tip-wxs-card { transition: border-color .15s ease, background .15s ease; }
.tip-wxs-card:hover { background: var(--mud-palette-background-gray); }
.tip-wxs-probe { border-collapse: collapse; font: 400 12px/16px var(--m3-font); }
.tip-wxs-probe th { text-align: left; font-weight: 500; padding: 2px 12px 2px 0; white-space: nowrap; vertical-align: top; color: var(--mud-palette-text-secondary); }
.tip-wxs-probe td { padding: 2px 0; }
@container widget (max-width: 360px) {
    .tip-wx-facts { margin-left: 0; flex-basis: 100%; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
    .tip-wx-balance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tip-wx-hour:nth-child(n+9) { display: none; }
}

/* Pro: six blocks in a responsive grid */
.tip-wxp { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; align-content: start; }
.tip-wxp-block { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: var(--m3-radius-lg); background: var(--m3-surface-container-low); min-width: 0; }
.tip-wxp-block > header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tip-wxp-block > header span { font: 500 13px/18px var(--m3-font); }
.tip-wxp-block > header small { font: 400 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); }
/* now: the headline on the left, the station's tiles flowing beside it, full width */
.tip-wxp-now { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 16px; flex-wrap: wrap; }
.tip-wxp-now > header { flex: 0 0 auto; align-items: center; gap: 10px; flex-wrap: nowrap; min-width: 200px; }
.tip-wxp-now > header .mud-icon-root { font-size: 40px; color: var(--m3-primary); }
.tip-wxp-headline { display: flex; flex-direction: column; }
.tip-wxp-headline b { font: 400 30px/34px var(--m3-font); letter-spacing: -.5px; }
.tip-wxp-headline span { font: 400 13px/18px var(--m3-font); color: var(--m3-on-surface); }
.tip-wxp-headline small { font: 400 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-wxp-now .tip-wxp-grid { flex: 1 1 420px; }
.tip-wxp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.tip-wxp-kv { display: flex; flex-direction: column; padding: 4px 6px; border-radius: 6px; background: var(--m3-surface-container-lowest); min-width: 0; }
.tip-wxp-kv small { font: 500 10px/12px var(--m3-font); color: var(--m3-on-surface-variant); text-transform: uppercase; letter-spacing: .3px; }
.tip-wxp-kv b { font: 500 14px/18px var(--m3-font); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tip-wxp-kv span { font: 400 10px/12px var(--m3-font); color: var(--m3-on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the 24 h chart: a labelled axis column, then one column per hour — the temperature
   numbers sit on their own line (an SVG polyline behind them), the rain bars carry their
   mm, the chance row reads "41%", the hour row closes it */
.tip-wxp-hours { grid-column: 1 / -1; }
.tip-wxp-chart { display: grid; grid-template-columns: 52px 1fr; gap: 6px; }
.tip-wxp-axis { display: grid; grid-template-rows: 40px 1fr 14px 12px; height: 118px; align-items: end; }
.tip-wxp-axis span { font: 500 10px/12px var(--m3-font); color: var(--m3-on-surface-variant); text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.tip-wxp-axis span:first-child { align-self: center; }
.tip-wxp-bars { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; height: 118px; align-items: end; }
.tip-wxp-line { position: absolute; left: 0; right: 0; top: 0; height: 40px; width: 100%; pointer-events: none; }
.tip-wxp-line polyline { fill: none; stroke: var(--m3-primary); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .55; }
.tip-wxp-bar { position: relative; display: grid; grid-template-rows: 40px 1fr 14px 12px; height: 100%; align-items: end; justify-items: center; min-width: 0; font-variant-numeric: tabular-nums; }
.tip-wxp-bar b { align-self: center; font: 500 11px/14px var(--m3-font); padding: 0 2px; border-radius: 4px; background: var(--m3-surface-container-low); }
.tip-wxp-rain { display: flex; flex-direction: column; align-items: center; justify-content: end; width: 100%; height: 100%; gap: 1px; }
.tip-wxp-rain var { font: 500 9px/11px var(--m3-font); font-style: normal; color: var(--m3-tertiary); }
.tip-wxp-rain i { display: block; width: 70%; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--m3-outline-variant); }
.tip-wxp-bar.is-rain .tip-wxp-rain i { background: var(--m3-tertiary); }
.tip-wxp-bar em { font: 500 9px/12px var(--m3-font); font-style: normal; color: var(--m3-tertiary); }
.tip-wxp-bar small { font: 400 9px/12px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-wxp-indices { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.tip-wxp-index { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 6px; background: var(--m3-surface-container-lowest); cursor: help; }
.tip-wxp-index small { font: 500 10px/12px var(--m3-font); color: var(--m3-on-surface-variant); text-transform: uppercase; letter-spacing: .3px; }
.tip-wxp-index b { font: 500 13px/18px var(--m3-font); }
.tip-wxp-windows { display: flex; flex-direction: column; gap: 4px; }
.tip-wxp-window { display: grid; grid-template-columns: 8px auto 1fr; gap: 2px 8px; align-items: center; padding: 4px 6px; border-radius: 6px; background: var(--m3-surface-container-lowest); }
.tip-wxp-window i { width: 8px; height: 8px; border-radius: 50%; grid-row: 1 / span 2; }
.tip-wxp-window b { font: 500 13px/18px var(--m3-font); }
.tip-wxp-window span { font: 500 12px/16px var(--m3-font); font-variant-numeric: tabular-nums; }
.tip-wxp-window small { grid-column: 2 / -1; font: 400 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-wxp-compare { width: 100%; border-collapse: collapse; font: 400 12px/16px var(--m3-font); font-variant-numeric: tabular-nums; }
.tip-wxp-compare th { font: 500 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); text-align: left; padding: 2px 4px; }
.tip-wxp-compare thead th:not(:first-child), .tip-wxp-compare td { text-align: right; padding: 2px 4px; }
.tip-wxp-compare tbody tr:nth-child(odd) { background: var(--m3-surface-container-lowest); }
.tip-wxp-week { grid-column: 1 / -1; }
.tip-wxp .tip-wx-src { grid-column: 1 / -1; }
@container widget (max-width: 520px) {
    .tip-wxp-bar:nth-of-type(n+13) { display: none; }   /* twelve hours; the line would misalign — off */
    .tip-wxp-line { display: none; }
    .tip-wxp .tip-wx-day:nth-child(n+5) { display: none; }
}

/* ---- the greens inspection dialog: greens × check metrics ------------------------ */
.tip-insp-date { font-weight: 400; color: var(--m3-on-surface-variant); }
.tip-insp-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.tip-insp-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.tip-insp-table th, .tip-insp-table td { padding: 6px 4px; vertical-align: top; text-align: center; }
.tip-insp-table thead th { position: sticky; top: 0; background: var(--m3-surface); z-index: 1; border-bottom: 1px solid var(--m3-outline-variant); }
.tip-insp-table thead th span { display: block; font: 500 13px/18px var(--m3-font); color: var(--m3-on-surface); }
.tip-insp-table thead th small { display: block; font: 400 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-insp-unit { font-variant-numeric: tabular-nums; }
.tip-insp-th-green { text-align: left !important; width: 72px; white-space: nowrap; }
.tip-insp-th-green small { display: block; font: 400 10px/12px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-insp-table tbody th { vertical-align: middle; }
.tip-insp-table tbody tr:not(:last-child) td, .tip-insp-table tbody tr:not(:last-child) th { border-bottom: 1px solid var(--m3-surface-container-high); }
.tip-insp-table td.is-changed { background: var(--m3-primary-container); background: color-mix(in srgb, var(--m3-primary-container) 35%, transparent); border-radius: 8px; }
.tip-insp-device {
    display: block;
    margin: 2px auto 0;
    max-width: 100%;
    height: 24px;
    padding: 0 4px;
    border: 1px solid var(--m3-outline-variant);
    border-radius: 6px;
    background: var(--m3-surface);
    color: var(--m3-on-surface-variant);
    font: 400 11px/14px var(--m3-font);
}
.tip-insp-input {
    width: 100%;
    min-width: 96px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--m3-outline-variant);
    border-radius: 8px;
    background: var(--m3-surface);
    color: var(--m3-on-surface);
    font: 500 15px/20px var(--m3-font);
    font-variant-numeric: tabular-nums;
    text-align: center;
}
.tip-insp-input:focus { outline: 2px solid var(--m3-primary); outline-offset: -1px; border-color: transparent; }
.tip-insp-input.is-error { border-color: var(--m3-error); }
.tip-insp-under { display: flex; flex-direction: column; align-items: center; gap: 1px; margin-top: 3px; min-height: 12px; }
.tip-insp-under .tip-meas-error { font-size: 10px; line-height: 12px; }
.tip-insp-mean { font: 400 10px/12px var(--m3-font); color: var(--m3-on-surface-variant); font-variant-numeric: tabular-nums; }
.tip-insp-under em { font: 500 11px/14px var(--m3-font); font-style: normal; font-variant-numeric: tabular-nums; color: var(--m3-on-surface-variant); }
.tip-insp-under em.is-good { color: var(--tip-ok-text); }
.tip-insp-under em.is-bad { color: var(--m3-error); }
.tip-insp-drop {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 4px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--m3-on-surface-variant);
    cursor: pointer;
    vertical-align: middle;
}
.tip-insp-drop:hover { background: var(--m3-surface-container-high); color: var(--m3-error); }
.tip-insp-drop .mud-icon-root { font-size: 14px; }

/* narrow widgets: the metric label column tightens, high/low go */
@container widget (max-width: 440px) {
    .tip-morn-th-metric { width: 34%; }
    .tip-morn-hl { display: none; }
}

/* ---- the fullscreen map --------------------------------------------------- */
/* An inline MudDialog with the FullScreen option: the dialog is the viewport, our root
   fills it, the map is the background, the top bar and the side panel float over it. */
.tip-mapfull.mud-dialog { display: flex; flex-direction: column; }
.tip-mapfull .mud-dialog-content { flex: 1 1 auto; padding: 0 !important; position: relative; overflow: hidden; }

/* the fullscreen CHARTS view (intelligence page) — the map fullscreen's anatomy reused:
   the glass top bar and side panel float over an absolute root; the chart stack scrolls
   UNDER them, offset so nothing hides. The side panel hosts the sensor list. */
.tip-chartfull-root { position: absolute; inset: 0; background: var(--m3-surface-container-lowest); }
.tip-chartfull-charts {
    position: absolute;
    top: 76px;
    left: 12px;
    right: 388px;              /* the panel (360) + its margins */
    bottom: 0;
    overflow-y: auto;
    padding: 4px 4px 12px 0;
}
.tip-mapfull-panel.tip-chartfull-panel { width: min(360px, calc(100% - 24px)); }   /* two classes: wins over the base width whatever the file order */
.tip-chartfull-panel-body { flex: 1 1 auto; min-height: 0; overflow: hidden; padding: 8px; }
.tip-chartfull-panel-body > .mud-paper { border: 0; background: transparent; }     /* only the list's OWN card melts into the glass — sensor rows keep theirs */
@media (max-width: 900px) {
    .tip-chartfull-charts { right: 12px; }           /* narrow: the panel floats over, map-style */
}
.tip-mapfull-root { position: absolute; inset: 0; background: var(--m3-surface-container-high); }
.tip-mapfull-map { position: absolute; inset: 0; }
.tip-mapfull-map .tip-map, .tip-mapfull-canvas { border-radius: 0; height: 100%; }
/* Leaflet's own controls step out from under the top bar and the side panel */
.tip-mapfull-map .leaflet-top { top: 72px; }
.tip-mapfull-map .leaflet-top.leaflet-right, .tip-mapfull-map .leaflet-bottom.leaflet-right { right: 444px; }
.tip-mapfull-top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 10px 8px 14px;
    border-radius: 24px;                                   /* M3 extra-large */
    background: color-mix(in srgb, var(--m3-surface) 82%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    backdrop-filter: blur(18px) saturate(1.25);
    border: 1px solid rgba(255, 255, 255, .55);            /* the sheet's own edge on imagery */
    box-shadow: 0 6px 20px rgba(24, 29, 24, .18), 0 1px 3px rgba(24, 29, 24, .10); /* M3 level 3 */
    font-family: var(--m3-font);
}
@supports not (backdrop-filter: blur(1px)) {
    .tip-mapfull-top, .tip-mapfull-panel, .tip-mapfull-legend { background: color-mix(in srgb, var(--m3-surface) 96%, transparent); }
}
.tip-mapfull-title { display: flex; align-items: center; gap: 8px; font: 500 16px/24px var(--m3-font); color: var(--m3-on-surface); }
.tip-mapfull-title .mud-icon-root { color: var(--m3-primary); }
.tip-mapfull-courses { margin: 0; }
/* the mode switcher: M3 connected segmented buttons */
.tip-mapfull-modes { margin-left: auto; display: inline-flex; border: 1px solid var(--m3-outline-variant); border-radius: 20px; overflow: hidden; }
.tip-mapfull-mode {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-left: 1px solid var(--m3-outline-variant);
    background: transparent;
    color: var(--m3-on-surface);
    font: 500 13px/18px var(--m3-font);
    cursor: pointer;
}
.tip-mapfull-mode:first-child { border-left: 0; }
.tip-mapfull-mode .mud-icon-root { font-size: 18px; }
.tip-mapfull-mode:hover { background: var(--m3-surface-container-low); }
.tip-mapfull-mode.is-on { background: var(--m3-primary-container); color: var(--m3-on-primary-container); }
.tip-mapfull-close {
    appearance: none;
    -webkit-appearance: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--m3-outline-variant);
    background: transparent;
    color: var(--m3-on-surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.tip-mapfull-close:hover { background: var(--m3-surface-container-low); }
.tip-mapfull-legend {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 1100;
    padding: 6px 12px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--m3-surface) 82%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, .5);
    max-width: calc(100% - 440px);
}
.tip-mapfull-legend .tip-mapw-credit { margin-left: 8px; }
/* the floating side panel */
.tip-mapfull-panel {
    position: absolute;
    top: 76px;
    right: 12px;
    bottom: 12px;
    width: min(420px, calc(100% - 24px));
    z-index: 1100;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    background: color-mix(in srgb, var(--m3-surface) 86%, transparent);
    -webkit-backdrop-filter: blur(20px) saturate(1.25);
    backdrop-filter: blur(20px) saturate(1.25);
    border: 1px solid rgba(255, 255, 255, .55);
    box-shadow: 0 8px 28px rgba(24, 29, 24, .20), 0 1px 3px rgba(24, 29, 24, .10);
    font-family: var(--m3-font);
    color: var(--m3-on-surface);
}
/* on the translucent sheet the tonal blocks go a step more solid so text stays crisp */
.tip-mapfull-panel .tip-hpro-kpi, .tip-mapfull-panel .tip-hpro-sensor, .tip-mapfull-panel .tip-hpro-task,
.tip-mapfull-panel .tip-hpro-advice, .tip-mapfull-panel .tip-mapfull-op { background: color-mix(in srgb, var(--m3-surface-container-lowest) 70%, transparent); }
.tip-mapfull-panel .tip-hpro-row { background: color-mix(in srgb, var(--m3-surface-container-lowest) 78%, transparent); }
.tip-mapfull-panel .tip-hpro-chart { background: var(--m3-surface-container-lowest); }
.tip-mapfull-panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid rgba(24, 29, 24, .08); }
.tip-mapfull-panel-title { font: 500 15px/20px var(--m3-font); flex: 1; }
.tip-mapfull-hole {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 8px 0 4px;
    border-radius: 16px;
    border: 1px solid var(--m3-outline-variant);
    background: var(--m3-surface-container-lowest);
    color: var(--m3-on-surface);
    font: 500 13px/18px var(--m3-font);
    cursor: pointer;
}
.tip-mapfull-hole .tip-hole-num { width: 24px; height: 24px; font-size: 12px; }
.tip-mapfull-hole .mud-icon-root { font-size: 16px; color: var(--m3-on-surface-variant); }
.tip-mapfull-panel-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 16px 16px; }
.tip-mapfull-list, .tip-mapfull-section { display: flex; flex-direction: column; gap: 8px; }
.tip-mapfull-op { padding: 8px 12px; border-radius: 10px; background: var(--m3-surface-container-low); display: flex; flex-direction: column; gap: 2px; }
.tip-mapfull-op-line { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.tip-mapfull-headline { font: 500 15px/22px var(--m3-font); }
.tip-mapfull-subhead { font: 500 11px/16px var(--m3-font); letter-spacing: .06em; text-transform: uppercase; color: var(--m3-on-surface-variant); margin-top: 6px; }
.tip-mapfull-finding, .tip-mapfull-event { display: flex; align-items: flex-start; gap: 8px; font: 400 14px/20px var(--m3-font); }
.tip-mapfull-finding .tip-health-dot, .tip-mapfull-event .tip-health-dot { margin-top: 5px; }
@media (max-width: 720px) {
    .tip-mapfull-panel { top: auto; left: 12px; right: 12px; width: auto; height: 46%; }
    .tip-mapfull-legend { display: none; }
    .tip-mapfull-modes { margin-left: 0; }
    .tip-mapfull-map .leaflet-top { top: 120px; }
    .tip-mapfull-map .leaflet-top.leaflet-right, .tip-mapfull-map .leaflet-bottom.leaflet-right { right: 0; }
    .tip-mapfull-map .leaflet-bottom { bottom: 46%; }
}

/* ---- map popups: a card, not a tooltip --------------------------------------
   The Leaflet chrome is flattened (no padding, large radius, soft shadow) and our HTML
   card fills it: name + status, the figures with PAW leading, the agronomic wording, the
   device line. Task pins get the same card with their type colour as a bar. */
.tip-map .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 16px;
    background: color-mix(in srgb, var(--m3-surface-container-lowest) 94%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(24, 29, 24, .22);
    color: var(--m3-on-surface, var(--m3-on-surface));
    font-family: var(--m3-font);
}
.tip-map .leaflet-popup-content { margin: 0; min-width: 240px; max-width: 280px; line-height: 1.3; }
.tip-map .leaflet-popup-tip { background: color-mix(in srgb, var(--m3-surface-container-lowest) 94%, transparent); box-shadow: 0 3px 10px rgba(24, 29, 24, .18); }
.tip-map .leaflet-popup-close-button { top: 6px; right: 8px; font-size: 18px; color: var(--m3-on-surface-variant); }
.tip-popup { padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.tip-popup-head { display: flex; align-items: center; gap: 8px; padding-right: 18px; font: 500 14px/18px var(--m3-font); }
.tip-popup-head b { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-popup-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px var(--m3-surface-container-lowest); }
.tip-popup-bar { width: 4px; height: 18px; border-radius: 2px; background: var(--task, var(--tip-mute-fill)); flex-shrink: 0; }
.tip-popup-chip { font: 500 11px/16px var(--m3-font); white-space: nowrap; }
.tip-popup-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 6px; }
.tip-popup-kpi { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-radius: 10px; background: var(--m3-surface-container-low); }
.tip-popup-kpi .v { font: 500 15px/18px var(--m3-font); white-space: nowrap; }
.tip-popup-kpi .l { font: 400 10px/12px var(--m3-font); color: var(--m3-on-surface-variant); letter-spacing: .02em; }
.tip-popup-kpi.is-main { grid-column: span 2; background: var(--m3-surface-container); }
.tip-popup-kpi.is-main .v { font-size: 20px; line-height: 24px; }
.tip-popup-note { font: 400 12px/16px var(--m3-font); }
.tip-popup-line { display: flex; align-items: center; gap: 10px; font: 400 12px/16px var(--m3-font); }
.tip-popup-progress { height: 5px; border-radius: 3px; background: var(--m3-surface-container-high); overflow: hidden; }
.tip-popup-progress span { display: block; height: 100%; background: var(--task, var(--tip-mute-fill)); border-radius: 3px; }
.tip-popup-foot { font: 400 11px/15px var(--m3-font); color: var(--tip-mute-text); }

/* ---- Storage (docs/STORAGE.md; geometry per docs/SHAPE_MAP.md Part A) --------------- */
.tip-store-page .tip-dash-head { align-items: center; }
.tip-store-cta { background: var(--m3-primary-container); border-color: transparent; color: var(--m3-on-primary-container); }
/* the dashboard's two columns: the working 75% and the value panel 25% */
.tip-store-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 25%); gap: 16px; align-items: start; }
.tip-store-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tip-store-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tip-store-panel { background: var(--m3-surface-container-low); border-radius: var(--m3-radius-lg); padding: 10px 14px; }
.tip-store-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.tip-store-panel-top .tip-store-panel-head { margin-bottom: 0; }
.tip-store-panel-top .tip-segment { height: 24px; padding: 0 10px; font-size: 11px; }
.tip-store-panel-head { display: block; font: 500 10px/12px var(--m3-font); color: var(--m3-on-surface-variant); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 6px; }
.tip-store-groupvals { display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow: auto; }
.tip-store-groupval { display: flex; align-items: center; gap: 4px; font: 400 12px/18px var(--m3-font); padding-left: calc(var(--depth, 0) * 12px); }
.tip-store-groupval-toggle { border: 0; background: transparent; padding: 0; width: 18px; height: 18px; display: inline-grid; place-items: center; cursor: pointer; color: var(--m3-on-surface-variant); border-radius: 4px; flex: 0 0 auto; }
.tip-store-groupval-toggle:hover { color: var(--m3-primary); background: var(--m3-surface-container-high); }
.tip-store-groupval-toggle:focus-visible { outline: 2px solid var(--m3-primary); outline-offset: 1px; }
.tip-store-groupval-toggle .mud-icon-root { font-size: 16px; transition: transform .12s; }
.tip-store-groupval-toggle .mud-icon-root.is-open { transform: rotate(90deg); }
.tip-store-groupval span.tip-store-groupval-spacer { width: 18px; flex: 0 0 auto; }
.tip-store-groupval span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-store-groupval b { font: 500 12px/18px var(--m3-font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tip-store-groupval.is-loose span { color: var(--m3-on-surface-variant); }
/* the dashboard's numbers: value, limits, expiry, debt */
.tip-store-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.tip-store-kpi { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: var(--m3-radius-lg); background: var(--m3-surface-container-low); min-width: 0; }
.tip-store-kpi small { font: 500 10px/12px var(--m3-font); color: var(--m3-on-surface-variant); text-transform: uppercase; letter-spacing: .3px; }
.tip-store-kpi b { font: 400 24px/32px var(--m3-font); font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.tip-store-kpi span { font: 400 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-store-kpi.is-warn b { color: var(--tip-warn-text); }
.tip-store-kpi.is-bad b { color: var(--m3-error); }
.tip-store-cats { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.tip-store-cat { display: grid; grid-template-columns: minmax(90px, 40%) 1fr auto; align-items: center; gap: 8px; font: 400 12px/16px var(--m3-font); }
.tip-store-cat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--m3-on-surface-variant); }
.tip-store-cat i { display: block; height: 6px; border-radius: 3px; background: var(--m3-surface-container-high); position: relative; overflow: hidden; }
.tip-store-cat i::after { content: ""; position: absolute; inset: 0; width: calc(var(--w, 0) * 100%); background: var(--m3-primary); border-radius: 3px; opacity: .75; }
.tip-store-cat b { font: 500 12px/16px var(--m3-font); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* the low-stock strip shares the expiry strip's bones, cooler coat */
.tip-store-expiry.is-low { background: var(--m3-surface-container-low); }
.tip-store-expiry.is-low .tip-store-expiry-head { color: var(--m3-on-surface-variant); }
/* the storage cards — one per warehouse, the selected one drives the shelf below */
.tip-store-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.tip-store-card { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 12px 16px; border: 1px solid var(--m3-outline-variant); border-radius: var(--m3-radius-lg); background: var(--m3-surface-container-lowest); cursor: pointer; transition: background .12s, border-color .12s, box-shadow .12s; }
.tip-store-card:hover { background: var(--m3-surface-container-low); }
.tip-store-card:focus-visible { outline: 2px solid var(--m3-primary); outline-offset: 1px; }
.tip-store-card.is-on { border-color: var(--m3-primary); background: var(--m3-surface-container-low); box-shadow: inset 0 0 0 1px var(--m3-primary); }
.tip-store-card.is-archived { opacity: .55; }
.tip-store-card-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tip-store-card-head b { font: 500 14px/20px var(--m3-font); }
.tip-store-card-head em { font: 500 10px/14px var(--m3-font); font-style: normal; letter-spacing: .4px; color: var(--m3-on-surface-variant); border: 1px solid var(--m3-outline-variant); border-radius: 999px; padding: 1px 8px; }
.tip-store-card-head .mud-icon-root { font-size: 16px; color: var(--m3-primary); }
.tip-store-card-value { font: 400 22px/28px var(--m3-font); font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.tip-store-card-meta { font: 400 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-store-card-flags { display: flex; gap: 4px; flex-wrap: wrap; min-height: 20px; }
.tip-store-card-flags .tip-store-flag, .tip-store-card-flags i { font-style: normal; }
.tip-store-card.is-add { border-style: dashed; align-items: center; justify-content: center; flex-direction: row; gap: 8px; color: var(--m3-on-surface-variant); font: 500 13px/18px var(--m3-font); min-height: 96px; }
.tip-store-card.is-add:hover { color: var(--m3-primary); }
/* the selected storage's header above its stock table */
.tip-store-shelfhead { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.tip-store-shelfhead b { font: 500 16px/24px var(--m3-font); display: block; }
.tip-store-shelfhead small { font: 400 11px/14px var(--m3-font); }
/* the expiry watch strip */
.tip-store-expiry { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; padding: 8px 12px; border-radius: var(--m3-radius-lg); background: color-mix(in srgb, var(--tip-warn-fill) 10%, transparent); }
.tip-store-expiry-head { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/14px var(--m3-font); color: var(--tip-warn-text); text-transform: uppercase; letter-spacing: .3px; }
.tip-store-expiry-head .mud-icon-root { font-size: 18px; }
.tip-store-expiry-item { font: 400 12px/16px var(--m3-font); border-radius: 999px; padding: 2px 10px; background: var(--m3-surface-container-lowest); color: var(--m3-on-surface); }
.tip-store-expiry-item b { font-weight: 500; letter-spacing: .3px; }
.tip-store-expiry-item.is-bad { color: var(--m3-error); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m3-error) 40%, transparent); }
.tip-store-expiry-item.is-warn { color: var(--tip-warn-text); }
.tip-store-bar { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.tip-store-bar .tip-holes-filter { margin-bottom: 0; flex: 1 1 auto; }
.tip-store-bar .tip-holes-chip small { font: 500 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); margin-left: 4px; }
.tip-store-bar .tip-holes-chip.is-on small { color: inherit; }
.tip-store-search { max-width: 260px; min-width: 180px; }
.tip-store-tablewrap { overflow-x: auto; border: 1px solid var(--m3-outline-variant); border-radius: var(--m3-radius-lg); background: var(--m3-surface-container-lowest); }
.tip-store-table { width: 100%; border-collapse: collapse; font: 400 13px/18px var(--m3-font); }
.tip-store-table thead th { position: sticky; top: 0; background: var(--m3-surface-container-lowest); text-align: left; padding: 8px 12px; font: 500 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); text-transform: uppercase; letter-spacing: .3px; border-bottom: 1px solid var(--m3-outline-variant); }
.tip-store-table td { padding: 4px 12px; border-bottom: 1px solid var(--m3-surface-container-high); height: 40px; }
.tip-store-table tbody tr { transition: background .12s; }
.tip-store-table tbody tr:hover { background: var(--m3-surface-container-low); }
.tip-store-table tbody tr:last-child td { border-bottom: 0; }
.tip-store-table tr.is-archived { opacity: .5; }
.tip-store-table .is-num, .tip-store-table th.is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tip-store-table .is-num.is-out { color: var(--m3-error); }
.tip-store-table .is-num.is-in { color: var(--tip-ok-text); }
.tip-store-sku { white-space: nowrap; }
.tip-store-skubtn { font: 500 12px/16px var(--m3-font); letter-spacing: .4px; color: var(--m3-on-surface-variant); background: transparent; border: 0; padding: 2px 4px; margin: -2px -4px; border-radius: 6px; cursor: pointer; }
.tip-store-skubtn:hover { color: var(--m3-primary); background: var(--m3-surface-container-high); }
.tip-store-skubtn:focus-visible { outline: 2px solid var(--m3-primary); outline-offset: 1px; }
.tip-store-page .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tip-store-name { min-width: 200px; }
.tip-store-name .mud-icon-root { font-size: 18px; color: var(--m3-on-surface-variant); vertical-align: -4px; margin-right: 8px; }
.tip-store-name small { font: 500 10px/12px var(--m3-font); color: var(--m3-tertiary); border: 1px solid var(--m3-outline-variant); border-radius: 999px; padding: 1px 6px; margin-left: 8px; vertical-align: 2px; }
.tip-store-table .is-status { width: 1%; white-space: nowrap; }
.tip-store-flag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font: 500 11px/14px var(--m3-font); }
.tip-store-flag.is-warn { background: color-mix(in srgb, var(--tip-warn-fill) 18%, transparent); color: var(--tip-warn-text); }
.tip-store-flag.is-bad { background: color-mix(in srgb, var(--m3-error) 14%, transparent); color: var(--m3-error); }
.tip-store-flag.is-muted { border: 1px solid var(--m3-outline-variant); color: var(--m3-on-surface-variant); }
.tip-store-flag.is-good { background: color-mix(in srgb, var(--tip-ok-fill) 20%, transparent); color: var(--tip-ok-text); }

/* Hours — the season calendar's editable plan cells (Phase H). */
.tip-hours-plan {
    width: 56px; text-align: right; border: 1px solid var(--m3-outline-variant); border-radius: 6px;
    padding: 2px 6px; font: 500 13px/18px var(--m3-font); background: transparent; color: var(--m3-on-surface);
}
.tip-hours-plan:focus { outline: 2px solid var(--mud-palette-primary); border-color: transparent; }
.tip-hours-plan::placeholder { color: var(--m3-on-surface-variant); }
.tip-store-table .is-actions { width: 1%; white-space: nowrap; text-align: right; }
.tip-store-act { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--m3-on-surface-variant); display: inline-grid; place-items: center; cursor: pointer; transition: background .12s, color .12s; }
.tip-store-act:hover { background: var(--m3-surface-container-high); color: var(--m3-primary); }
.tip-store-act:focus-visible { outline: 2px solid var(--m3-primary); outline-offset: 1px; }
.tip-store-act .mud-icon-root { font-size: 18px; }
.tip-store-table tbody tr .tip-store-act { opacity: 0; }
.tip-store-table tbody tr:hover .tip-store-act, .tip-store-table tbody tr:focus-within .tip-store-act { opacity: 1; }
.tip-store-empty { padding: 32px 16px; }
/* the move / ledger dialogs */
.tip-store-modes { margin-bottom: 4px; }
.tip-store-onhand { display: flex; align-items: baseline; gap: 8px; padding: 8px 12px; border-radius: var(--m3-radius-md); background: var(--m3-surface-container-low); flex-wrap: wrap; }
.tip-store-onhand span { font: 500 10px/12px var(--m3-font); color: var(--m3-on-surface-variant); text-transform: uppercase; letter-spacing: .3px; }
.tip-store-onhand b { font: 500 15px/20px var(--m3-font); font-variant-numeric: tabular-nums; }
.tip-store-onhand b.is-neg { color: var(--m3-error); }
.tip-store-onhand small { font: 400 12px/16px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-store-delta { display: inline-flex; align-items: baseline; gap: 8px; font: 500 15px/20px var(--m3-font); font-variant-numeric: tabular-nums; }
.tip-store-delta.is-pos { color: var(--tip-ok-text); }
.tip-store-delta.is-neg { color: var(--m3-error); }
.tip-store-delta small { font: 400 12px/16px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-store-ledger-wrap { overflow-x: auto; max-height: 60vh; overflow-y: auto; }
.tip-store-ledger { width: 100%; border-collapse: collapse; font: 400 12px/16px var(--m3-font); }
.tip-store-ledger thead th { position: sticky; top: 0; background: var(--m3-surface-container-lowest); text-align: left; padding: 4px 8px; font: 500 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); border-bottom: 1px solid var(--m3-outline-variant); }
.tip-store-ledger td { padding: 4px 8px; border-bottom: 1px solid var(--m3-surface-container-high); white-space: nowrap; }
.tip-store-ledger .is-num, .tip-store-ledger th.is-num { text-align: right; font-variant-numeric: tabular-nums; }
.tip-store-ledger .is-in { color: var(--tip-ok-text); }
.tip-store-ledger .is-out { color: var(--m3-error); }
.tip-store-kind { font: 500 11px/14px var(--m3-font); }
.tip-store-kind.is-receipt { color: var(--tip-ok-text); }
.tip-store-kind.is-consumption { color: var(--tip-above-text); }
.tip-store-kind.is-adjustment { color: var(--tip-warn-text); }
.tip-store-kind.is-writeoff { color: var(--m3-error); }
.tip-store-kind.is-return { color: var(--tip-above-text); }
.tip-store-kind.is-transferout { color: var(--m3-tertiary); }
.tip-store-kind.is-transferin { color: var(--tip-ok-text); }
.tip-store-detail { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--m3-on-surface-variant); }
/* the SKU catalog tree — unlimited depth, 20 px per level, 40 px rows */
.tip-store-tree { border: 1px solid var(--m3-outline-variant); border-radius: var(--m3-radius-lg); background: var(--m3-surface-container-lowest); padding: 4px 0; overflow-x: auto; }
.tip-store-treegroup { display: flex; align-items: center; min-height: 40px; padding: 0 12px 0 calc(8px + var(--depth, 0) * 20px); }
.tip-store-treegroup:hover { background: var(--m3-surface-container-low); }
.tip-store-treetoggle { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 4px 8px; margin-left: -8px; border-radius: var(--m3-radius-md); font: 500 13px/18px var(--m3-font); color: var(--m3-on-surface); cursor: pointer; }
.tip-store-treetoggle:hover { color: var(--m3-primary); }
.tip-store-treetoggle:focus-visible { outline: 2px solid var(--m3-primary); outline-offset: 1px; }
.tip-store-treetoggle .mud-icon-root { font-size: 20px; color: var(--m3-on-surface-variant); }
.tip-store-treetoggle small { font: 500 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); font-variant-numeric: tabular-nums; }
.tip-store-treetoggle.is-static { cursor: default; }
.tip-store-treetoggle.is-static:hover { color: var(--m3-on-surface); }
.tip-store-treeacts { margin-left: auto; white-space: nowrap; }
.tip-store-treegroup .tip-store-act { opacity: 0; }
.tip-store-treegroup:hover .tip-store-act, .tip-store-treegroup:focus-within .tip-store-act { opacity: 1; }
.tip-store-treeitem { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px 0 calc(16px + var(--depth, 0) * 20px); border-top: 1px solid var(--m3-surface-container-high); font: 400 13px/18px var(--m3-font); }
.tip-store-treeitem:hover { background: var(--m3-surface-container-low); }
.tip-store-treeitem.is-archived { opacity: .5; }
.tip-store-treeitem .tip-store-act { opacity: 0; }
.tip-store-treeitem:hover .tip-store-act, .tip-store-treeitem:focus-within .tip-store-act { opacity: 1; }
.tip-store-treeitem-main { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.tip-store-treeitem-main .mud-icon-root { font-size: 18px; color: var(--m3-on-surface-variant); flex: 0 0 auto; }
.tip-store-sku-inline { font: 500 12px/16px var(--m3-font); letter-spacing: .4px; color: var(--m3-on-surface-variant); white-space: nowrap; }
.tip-store-treeitem-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-store-clubonly { font: 500 10px/12px var(--m3-font); color: var(--m3-tertiary); border: 1px solid var(--m3-outline-variant); border-radius: 999px; padding: 1px 6px; flex: 0 0 auto; }
.tip-store-treeitem-nums { display: flex; align-items: baseline; gap: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tip-store-treeitem-nums span.is-out { color: var(--m3-error); }
.tip-store-treeitem-nums b { font-weight: 500; min-width: 72px; text-align: right; }
.tip-store-treeitem-flags { display: flex; gap: 4px; min-width: 0; }
/* the settings hint under the cards */
.tip-store-manage { margin-top: -8px; }
.tip-store-manage a { color: var(--m3-primary); text-decoration: none; font-weight: 500; }
.tip-store-manage a:hover { text-decoration: underline; }
/* stocktaking — the documents and the count sheet */
.tip-store-status { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font: 500 11px/14px var(--m3-font); }
.tip-store-status.is-draft { background: color-mix(in srgb, var(--tip-warn-fill) 18%, transparent); color: var(--tip-warn-text); }
.tip-store-status.is-posted { background: color-mix(in srgb, var(--tip-ok-text) 14%, transparent); color: var(--tip-ok-text); }
.tip-store-table tr.is-selected td { background: var(--m3-surface-container-low); }
.tip-store-countsheet td { height: auto; padding-top: 2px; padding-bottom: 2px; }
.tip-store-countcell { width: 140px; }
.tip-store-countcell .mud-input-control, .tip-store-notecell .mud-input-control { margin: 0; }
.tip-store-countcell input { text-align: right; font-variant-numeric: tabular-nums; }
.tip-store-notecell { min-width: 180px; }
.tip-action-pill .mud-progress-circular { width: 18px !important; height: 18px !important; }
/* ---- the storage widgets on the club dashboard (docs/STORAGE.md §8) ---------------- */
.tip-storw { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.tip-storw-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tip-storw-total b { font: 400 26px/32px var(--m3-font); font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.tip-storw-total span { font: 400 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); }
.tip-storw-switch { align-self: flex-start; }   /* the pill hugs its buttons — never 100% width */
.tip-storw-switch .tip-segment { height: 24px; padding: 0 10px; font-size: 11px; }
.tip-storw-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.tip-storw-list { display: flex; flex-direction: column; gap: 2px; overflow: auto; min-height: 0; }
.tip-storw-row { display: flex; align-items: center; gap: 8px; font: 400 12px/18px var(--m3-font); padding: 2px 4px; border-radius: 6px; text-decoration: none; color: inherit; min-width: 0; }
.tip-storw-row .mud-icon-root { font-size: 16px; color: var(--m3-on-surface-variant); flex: 0 0 auto; }
.tip-storw-row.is-bad .mud-icon-root { color: var(--m3-error); }
.tip-storw-row.is-warn .mud-icon-root { color: var(--tip-warn-text); }
.tip-storw-row.is-link:hover { background: var(--m3-surface-container-low); }
.tip-storw-row-main { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-storw-row-main b { font: 500 11px/14px var(--m3-font); letter-spacing: .4px; color: var(--m3-on-surface-variant); margin-right: 6px; }
.tip-storw-row-detail { font: 400 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); white-space: nowrap; }
.tip-storw-row.is-bad .tip-storw-row-detail { color: var(--m3-error); }
.tip-storw-row.is-warn .tip-storw-row-detail { color: var(--tip-warn-text); }
/* storage value — the storages as small cards (a club rarely has many) */
.tip-storw-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.tip-storw-card { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid var(--m3-outline-variant); border-radius: var(--m3-radius-lg); background: var(--m3-surface-container-lowest); text-decoration: none; color: inherit; min-width: 0; transition: background .12s, border-color .12s; }
.tip-storw-card:hover { background: var(--m3-surface-container-low); border-color: var(--m3-primary); }
.tip-storw-card.is-archived { opacity: .55; }
.tip-storw-card-name { display: flex; align-items: center; gap: 4px; font: 500 12px/16px var(--m3-font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-storw-card-name .mud-icon-root { font-size: 14px; color: var(--m3-primary); flex: 0 0 auto; }
.tip-storw-card b { font: 400 18px/24px var(--m3-font); font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.tip-storw-card small { font: 500 10px/12px var(--m3-font); color: var(--m3-on-surface-variant); letter-spacing: .3px; }
/* storage operations — the rhythm rows: kind, recency bar over 30 days, the last line */
.tip-storw-kinds { gap: 6px; overflow: auto; }
.tip-storw-kind { display: flex; flex-direction: column; gap: 3px; padding: 4px 6px; border-radius: 8px; text-decoration: none; color: inherit; min-width: 0; }
.tip-storw-kind:hover { background: var(--m3-surface-container-low); }
.tip-storw-kind-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tip-storw-kind-count { font: 400 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); font-variant-numeric: tabular-nums; }
.tip-storw-kind-bar { display: block; height: 5px; border-radius: 3px; background: var(--m3-surface-container-high); overflow: hidden; }
.tip-storw-kind-bar i { display: block; height: 100%; border-radius: 3px; background: var(--m3-primary); opacity: .55; }
.tip-storw-kind-bar.is-quiet i { background: var(--tip-warn-text); opacity: .7; }
.tip-storw-kind-bar.is-none i { background: transparent; }
.tip-storw-kind-foot { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.tip-storw-kind-status { font: 500 11px/14px var(--m3-font); white-space: nowrap; }
.tip-storw-kind-status.is-muted { color: var(--m3-on-surface-variant); font-weight: 400; }
.tip-storw-kind-detail { font: 400 11px/14px var(--m3-font); color: var(--m3-on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* storage analytics — the valuation timeline, oldest left, newest right */
.tip-storw-total span.is-in { color: var(--tip-ok-text); }
.tip-storw-total span.is-out { color: var(--m3-error); }
.tip-storw-chart { display: flex; align-items: stretch; gap: 4px; flex: 1 1 auto; min-height: 130px; }
.tip-storw-col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.tip-storw-col-value { font: 500 10px/12px var(--m3-font); font-variant-numeric: tabular-nums; color: var(--m3-on-surface-variant); white-space: nowrap; }
.tip-storw-col-barzone { flex: 1 1 auto; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.tip-storw-col-barzone i { display: block; width: min(30px, 82%); border-radius: 4px 4px 0 0; background: var(--m3-primary); opacity: .7; }
.tip-storw-col-label { font: 500 10px/12px var(--m3-font); color: var(--m3-on-surface-variant); white-space: nowrap; }
.tip-storw-col-delta { font: 500 10px/12px var(--m3-font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tip-storw-col-delta.is-in { color: var(--tip-ok-text); }
.tip-storw-col-delta.is-out { color: var(--m3-error); }
.tip-storw-col-delta.is-flat { color: var(--m3-on-surface-variant); font-weight: 400; }
.tip-action-pill.is-danger { color: var(--m3-error); }
.tip-action-pill.is-danger:hover { background: color-mix(in srgb, var(--m3-error) 10%, transparent); }
@media (max-width: 720px) {
    .tip-store-search { max-width: 100%; flex: 1 1 100%; }
    .tip-store-table .tip-store-act, .tip-store-treeitem .tip-store-act, .tip-store-treegroup .tip-store-act { opacity: 1; }   /* no hover on touch */
    .tip-store-cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .tip-store-treeitem-nums b { min-width: 0; }
}
@media (max-width: 1100px) {
    /* small screens: one column — the value panel stacks under the working area */
    .tip-store-body { grid-template-columns: 1fr; }
    .tip-store-side { flex-direction: row; flex-wrap: wrap; }
    .tip-store-side .tip-store-panel { flex: 1 1 260px; }
}
