/* ================= THE ALTERNATE UX — THE UTILITY RAIL =================
   Time, time zones, weather and a month calendar — each a card with a quiet heading. Every
   figure is real: the reader's own zones, saved locations, and tasks. A widget that cannot
   load says so in its own card and takes nothing else down with it. */

.a-rail{ display:flex; flex-direction:column; gap:var(--a-3); min-width:0; }
.a-rail-card{ background:var(--a-panel); border:1px solid var(--a-line-soft);
  border-radius:var(--a-r-lg); padding:12px; display:flex; flex-direction:column; gap:10px; }
.a-rail-h{ display:flex; align-items:center; gap:8px; }
.a-rail-h .a-sec-h{ flex:1 1 auto; min-width:0; }

/* ---------- clock ----------
   HERO TIME. The readout leads: hours and minutes large in the display face with tabular numerals (so
   the width never moves as the numerals change), seconds smaller and dim, the AM/PM mark smaller still.
   The optional dial is a 44px glyph on the right. */
.a-clock{ display:flex; flex-direction:row; align-items:flex-start; gap:12px; }
.a-clock-face{ position:relative; flex:0 0 44px; width:44px; height:44px; aspect-ratio:1; }
.a-clock-face svg{ width:100%; height:100%; display:block; }
.a-clock-now{ display:flex; flex-direction:column; gap:2px; min-width:0; flex:1 1 auto; }
.a-clock-t{
  display:block; white-space:nowrap; font-family:var(--a-display); font-weight:600;
  font-size:var(--a-fs-28); line-height:var(--a-lh-ctl); letter-spacing:-.01em; color:var(--a-text);
  font-variant-numeric:tabular-nums;
}
.a-clock-t .hm{ font-variant-numeric:tabular-nums; }
.a-clock-t .sec{ font-size:var(--a-fs-14); font-weight:400; letter-spacing:0; color:var(--a-dim); }
.a-clock-t .ap{ font-size:var(--a-fs-ctl); font-weight:600; letter-spacing:.02em; color:var(--a-dim); }
.a-clock-date{ font-size:var(--a-fs-ctl-sm); color:var(--a-dim); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.a-clock-zone{
  font-size:var(--a-fs-11); font-weight:600; letter-spacing:.04em; color:var(--a-dim);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

/* ---------- time zones ----------
   One column until a rail is wide enough (about 400px) for two that still leave the place name room: a 12-hour
   time and the offset take about 100px of a row, and a name squeezed to a glyph is a row that says nothing.
   The control itself is defined further down under "a zone is a control". Contents: a day/night mark,
   the place, the time and how far it is from yours, tabular so a row never shifts a pixel. */
.a-zone-t{ min-width:0; flex:1 1 auto; font-size:var(--a-fs-ctl-sm); color:var(--a-dim);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.a-zone > b{ flex:0 0 auto; font-family:var(--a-body); font-size:var(--a-fs-ctl-sm); font-weight:600;
  font-variant-numeric:tabular-nums; color:var(--a-text); }
.a-zone.on > b{ color:var(--a-blue-text); }
.a-zone-dn{ flex:0 0 12px; width:12px; text-align:center; font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ctl); color:var(--a-dim); }
.a-zone-off{ flex:0 0 auto; min-width:22px; text-align:right; font-size:var(--a-fs-11); color:var(--a-faint);
  font-variant-numeric:tabular-nums; }

/* ---------- weather ----------
   A hero for the lead place, one line for each other, an equal-width day strip, and a footer that says
   how old the reading is. Every number carries its unit. */
.a-wx-now{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; }
.a-wx-ic{ flex:0 0 auto; font-size:var(--a-fs-28); line-height:var(--a-lh-ctl); }
.a-wx-temp{ flex:0 0 auto; font-family:var(--a-display); font-weight:600; line-height:var(--a-lh-ctl);
  font-variant-numeric:tabular-nums; color:var(--a-text); }
.a-wx-temp .n{ font-size:var(--a-fs-28); }
.a-wx-temp .u{ font-size:var(--a-fs-14); font-weight:600; margin-left:1px; color:var(--a-dim); vertical-align:top;
  position:relative; top:4px; }
/* Beside the temperature when 96px is left for it; on a 240px rail it drops to its own line instead of clipping. */
.a-wx-meta{ display:flex; flex-direction:column; gap:2px; min-width:0; flex:1 1 96px; }
.a-wx-cond{ font-size:var(--a-fs-ctl); color:var(--a-text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.a-wx-hl{ font-size:var(--a-fs-ctl-sm); color:var(--a-dim); font-variant-numeric:tabular-nums; white-space:nowrap; }
.a-wx-sub{ font-size:var(--a-fs-ctl-sm); color:var(--a-dim); margin-top:2px; }
.a-wx-place{ font-size:var(--a-fs-11); color:var(--a-faint); }
.a-wx-hero .a-wx-place{ margin-bottom:4px; }
/* As many days as the rail actually holds. The count is decided once, in
   weatherForecastDayCount() (JS/services/weather.js), and handed to the grid via `--wx-days` so
   the tracks and the children cannot disagree. The fallback (3) is the old behaviour, not a
   broken one: nothing sets the property until the strip has been measured. Equal-width columns:
   day, icon, then the high over the low. */
.a-wx-days{ display:grid; grid-template-columns:repeat(var(--wx-days, 3), minmax(0, 1fr)); gap:8px;
  text-align:center; margin-top:8px; padding-top:8px; border-top:1px solid var(--a-line); }
.a-wx-days:empty{ display:none; }
.a-wx-day{ display:flex; flex-direction:column; gap:2px; font-size:var(--a-fs-11); min-width:0; }
.a-wx-day b, .a-wx-day .d{ font-size:var(--a-fs-11); font-weight:700; line-height:var(--a-lh-tight); letter-spacing:.08em; text-transform:uppercase; color:var(--a-dim); }
.a-wx-day .i{ font-size:var(--a-fs-16); line-height:var(--a-lh-tight); }
.a-wx-day .hi{ font-variant-numeric:tabular-nums; color:var(--a-text); font-weight:600; white-space:nowrap; }
.a-wx-day .lo{ font-variant-numeric:tabular-nums; color:var(--a-dim); white-space:nowrap; }
/* The other places: one line each, place left, then icon, temperature and the day's range. */
/* Two classes: `.a-wx-cell` (the glance button, below) sets `display:block` and would win a tie. */
.a-wx-cell.a-wx-line{
  display:grid; grid-template-columns:minmax(0,1fr) auto auto auto; align-items:center; gap:8px;
  margin-top:2px; padding:5px 6px; font-size:var(--a-fs-ctl-sm);
}
.a-wx-line .p{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--a-text); }
.a-wx-line .i{ font-size:var(--a-fs-14); }
.a-wx-line .t{ font-family:var(--a-display); font-weight:600; font-size:var(--a-fs-14); font-variant-numeric:tabular-nums; }
.a-wx-line .hl{ font-size:var(--a-fs-11); color:var(--a-dim); font-variant-numeric:tabular-nums; white-space:nowrap; }
.a-wx-foot{ display:flex; align-items:center; gap:8px; font-size:var(--a-fs-11); color:var(--a-faint); margin-top:8px; }
.a-wx-age{ flex:1 1 auto; min-width:0; }
.a-wx-refresh{ flex:0 0 auto; }
/* Loading: three quiet blocks the shape of the hero, never a spinner over empty space. */
.a-wx-skel{ display:flex; flex-direction:column; gap:8px; padding:4px 0; }
.a-wx-skel-b{ display:block; height:12px; border-radius:var(--a-r-sm); background:var(--a-raised); }
.a-wx-skel-b.big{ height:36px; width:60%; }
.a-wx-skel-b.short{ width:40%; }
/* A place that could not be read: its name, why, and a button that asks again for that place only. */
.a-wx-err{ display:flex; flex-direction:column; align-items:flex-start; gap:6px; padding:6px 0; }
.a-wx-err .a-hint{ margin:0; overflow-wrap:anywhere; white-space:normal; }
/* At rest the weather body takes its content (D6: no widget body shows a scrollbar at a 240px rail; a place
   in error adds rows). A stored height still wins: the inline overflow-y the applier writes is not matched. */
#altWxBody:not([style*="overflow-y"]){ max-height:none; overflow:visible; }

/* ---------- month calendar ---------- */
.a-cal-h{ display:flex; align-items:center; gap:6px; }
.a-cal-h b{ flex:1 1 auto; text-align:center; font-size:var(--a-fs-ctl); font-weight:600; }
/* Seven columns that fit the rail: `1fr` alone is `minmax(auto,1fr)`, floored at each track's
   automatic minimum size — when that floor exceeds the rail's share, the grid grows past its
   container (measured: Saturday painted outside the card). `minmax(0,1fr)` removes the floor;
   the real cause was the button's own padding, below. */
.a-cal-grid{ display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:2px 1px; }
/* Two month grids in a column read as one twelve-row grid unless something separates them — the
   rule is on the caption AFTER a grid, since the first month has no caption of its own (its name
   is in the nav row). */
.a-cal-grid + .a-cal-h{ margin-top:8px; padding-top:8px; border-top:1px solid var(--a-line); }
.a-cal-dow{ font-size:var(--a-fs-11); font-weight:700; line-height:var(--a-lh-tight); letter-spacing:.08em; text-transform:uppercase;
  color:var(--a-faint); text-align:center; padding:2px 0; }
/* A day is a <button> with UA padding (Chrome: 1px 6px). A grid track's automatic minimum counts
   padding+border, so that pushed the seventh column out. `padding:0`: the cell sizes itself
   with `aspect-ratio`. */
.a-cal-d{
  aspect-ratio:1; max-height:var(--a-ctl); display:flex; align-items:center; justify-content:center; position:relative;
  border-radius:var(--a-r-sm); background:none; border:1px solid transparent; padding:0;
  cursor:pointer;
  color:var(--a-dim); font:inherit; font-size:var(--a-fs-ctl-sm); font-variant-numeric:tabular-nums;
}
/* A finger needs more than the 32px cell; the body is exempt from the widget ceiling, so a taller one (the lg rung) costs no scroll. */
@media (pointer:coarse){ .a-cal-d{ max-height:var(--a-ctl-lg); } }
.a-cal-d:hover{ background:var(--a-raised); color:var(--a-text); }
.a-cal-d.out{ color:var(--a-faint); }   /* was opacity:.5 — 3.43:1 dark; the faint tier alone is 4.6 and still reads as the quieter month */
.a-cal-d.sel{ background:var(--a-blue-fill); color:#fff; }

/* ---------- the rail's own small pieces ---------- */
.a-zones{ display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:2px 8px; margin-top:10px;
  padding-top:8px; border-top:1px solid var(--a-line); }
.a-cal-d.pad{ visibility:hidden; }
/* ---- Open tasks are bold; today is a filled square ----
   No dot: weight reads at any distance and takes no room (the count reaches assistive tech via
   the cell's aria-label). `.has` is 600 so a day that is today and has tasks still differs
   from `.today` at 700. Today is filled because an outline is lost against the grid hairlines. */
.a-cal-d.has{ font-weight:600; color:var(--a-text); }
.a-cal-d.today{
  border-color:var(--a-blue); background:var(--a-blue-soft);
  color:var(--a-blue-text); font-weight:700;
}
/* The key under the grid. Quiet by construction — it explains the grid, it is not part of it. */
.a-cal-key{
  margin:6px 0 0; padding-top:6px; border-top:1px solid var(--a-line);
  font-size:var(--a-fs-11); line-height:var(--a-lh-tight); color:var(--a-dim);
}
.a-cal-key b{ color:var(--a-text); font-weight:600; }
.a-cal-dow{
  font-size:var(--a-fs-11); color:var(--a-dim); text-align:center; padding-bottom:2px;
  text-transform:uppercase; letter-spacing:.08em;
}

/* ---------- the day popover ----------
   Surface comes from `.cfg-popover` (CSS/components.css) and `.alt-app .cfg-popover`
   (alt-message-center.css). Wider than its 236px because rows carry a task title. Unscoped: the
   classes are unique to this popover and load order settles specificity. */
.a-cal-pop{
  width:min(300px, calc(100vw - 32px));
  padding:12px;
}
.a-cal-pop-head{ margin-bottom:8px; }
.a-cal-pop-title{ margin:0; font-size:var(--a-fs-ctl); font-weight:600; color:var(--a-text); line-height:var(--a-lh-tight); }
.a-cal-pop-sub{ margin:2px 0 0; font-size:var(--a-fs-11); color:var(--a-dim); }
/* A day can hold more than a panel should. The list scrolls rather than the panel, so the head
   naming the day and the two destinations at the foot stay on screen however long it runs. */
.a-cal-pop-list{
  margin:0; padding:0; list-style:none;
  display:flex; flex-direction:column; gap:2px;
  max-height:220px; overflow-y:auto;
}
.a-cal-pop-row{
  display:flex; align-items:flex-start; gap:8px;
  padding:5px 4px; border-radius:var(--a-r-sm);
}
/* Same markers as the OKR panel, from this experience's tokens (no rail host loads `.okr-dot`).
   Neutral by default; late/today vary within a day's list. `is-done` is a third state for the
   completed-today popover (altCompletedPopFill()), which reuses this surface; green. */
.a-cal-pop-dot{
  flex:0 0 auto; width:7px; height:7px; margin-top:5px;
  border-radius:50%; background:var(--a-dim);
}
.a-cal-pop-dot.is-late{ background:var(--a-red); }
.a-cal-pop-dot.is-today{ background:var(--a-blue); }
.a-cal-pop-dot.is-done{ background:var(--a-green); }
.a-cal-pop-text{ display:flex; flex-direction:column; gap:1px; min-width:0; }
/* `min-width:0` above and `overflow-wrap` here are one answer, not two — a flex item's automatic
   minimum is its content, so a long unbroken word pushes this column wider than the panel (the
   same floor that put Saturday outside the card above, via the flex route instead of grid). */
.a-cal-pop-t{ font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-text); overflow-wrap:anywhere; }
.a-cal-pop-m{ font-size:var(--a-fs-11); line-height:var(--a-lh-ui); color:var(--a-dim); overflow-wrap:anywhere; }
/* The muted sentence at the foot of the panel this copies: what the controls below it do, said
   before they are reached. */
.a-cal-pop-foot{
  margin:8px 0 0; padding-top:8px; border-top:1px solid var(--a-line);
  font-size:var(--a-fs-11); line-height:var(--a-lh-ui); color:var(--a-dim);
}
/* Two destinations, equal weight — neither is the safe default, so neither takes `.primary`.
   They wrap rather than shrink: a 300px panel fits both side by side, a clamped one does not. */
.a-cal-pop-acts{ display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.a-cal-pop-act{ flex:1 1 auto; }

/* The lead place and the one-line places beneath it: a hairline between them, none between the lines. */
.a-wx-hero + .a-wx-line{ margin-top:8px; padding-top:8px; border-top:1px solid var(--a-line); border-radius:0; }
.a-wx-day .d{ color:var(--a-dim); }
.a-wx-day .i{ font-size:var(--a-fs-14); }

/* ---------- the widget shell ----------
   The header is the control: a disclosure that folds it, a handle that moves it, an overflow
   that does the rest. A collapsed widget keeps its header and place. */
.a-rail-h{ display:flex; align-items:center; gap:6px; }
/* The handle is visible before it is touched — a hover-only affordance is a capability the
   reader has to be told about (sys_design-system §21c), now that the rail's own handle and
   Alt+arrow ARE the way widget order is set (the old Settings list is gone). Low opacity at
   rest, full on hover or on focus-within, so a keyboard reader sees what they can move. */
.a-w-grab{
  display:inline-flex; width:16px; height:16px; color:var(--a-faint); cursor:grab;
  flex:0 0 auto; opacity:.45; transition:opacity var(--a-quick) var(--a-ease);
}
.a-rail-card:hover .a-w-grab,
.a-rail-card:focus-within .a-w-grab{ opacity:1; }
.a-w-grab svg{ width:14px; height:14px; }
.a-w-fold{
  display:flex; align-items:center; gap:6px; flex:1 1 auto; min-width:0;
  background:none; border:0; padding:0; cursor:pointer; color:inherit; font:inherit; text-align:left;
}
/* A widget title is a section label, styled like `.a-sec-h` (Time/Weather/Quick links). Declared
   here instead of adding that class, because it carries `display:flex` and would fight the
   button's layout. */
.a-w-fold h3{
  margin:0; flex:1 1 auto; min-width:0;
  font-size:var(--a-fs-11); font-weight:700; line-height:var(--a-lh-tight); letter-spacing:.08em; text-transform:uppercase;
  color:var(--a-dim);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.a-w-fold .cv{ display:inline-flex; width:14px; height:14px; color:var(--a-faint); flex:0 0 auto; }
.a-w-fold .cv svg{ width:14px; height:14px; }
.a-w-fold:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); border-radius:var(--a-r-sm); }
.a-w-a{ display:flex; align-items:center; gap:4px; flex:0 0 auto; }
.a-rail-card.collapsed{ padding-bottom:8px; }
.a-collab{ display:flex; align-items:center; gap:8px; padding:3px 0; }
.a-collab b{ flex:0 1 auto; font-size:var(--a-fs-ctl); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.a-collab .a-hint{ margin-left:auto; }

/* ---------- how tall a widget's body is ----------
   The grip is the card's last child, a real focusable separator (arrows and Home work on it) —
   its LOOK is defined once in alt-components.css, only its placement is the rail's business.
   Negative margins put it on the card's own edge rather than floating inside the padding. */
.a-w-grip{ margin:-2px -12px -10px; }
/* A folded widget has nothing to resize, and offering the gesture anyway is a control that
   silently does nothing — the same answer every grip in this experience gives when stacked. */
.a-rail-card.collapsed .a-w-grip,
.a-w-grip[aria-disabled="true"]{ display:none; }
/* A body given a height must be allowed to be that height — it is a flex item in a column card,
   and a flex item's default `min-height:auto` is its content, so a smaller height is ignored. */
.a-rail-b{ min-height:0; }

/* ---------- Default height ceiling for undragged cards ----------
   320px is the tallest at-rest body; rail-widget-sizing.test.js asserts it. A default, not a
   limit: altSplitter() allows up to 640px and a stored height wins. `:not([style*="overflow-y"])`
   is load-bearing: the appliers write or clear the inline pair together, so an explicit height is never clamped. */
.a-rail-b:not([style*="overflow-y"]){ max-height:320px; overflow-y:auto; }
/* THE CALENDAR NEVER SCROLLS. Its body is its content: no ceiling, no scrollbar, no grip (the widget is not
   `resizable`). A six-row month is about 295px at any rail width because the cells are capped, so the
   exemption costs the column nothing. Declared after the ceiling at equal specificity so it wins. */
.a-rail-b.is-fit{ max-height:none; overflow:visible; }
/* The COLUMN may still scroll when every widget together is taller than the window, and that scrollbar is a
   thin hover-only one: invisible at rest, so no widget ever shows a scrollbar of its own. */
.a-right{ scrollbar-width:thin; scrollbar-color:transparent transparent; }
.a-right:hover, .a-right:focus-within{ scrollbar-color:var(--a-line-strong) transparent; }

/* ---------- Scrolling bodies ----------
   `overflow-y:auto` (set by altWidgetApplyHeight() when a height is stored) keeps overflow
   reachable; `scrollbar-gutter:stable` stops an overlay scrollbar covering the last chip.
   80px floor matches altSplitter()'s drag clamp. */
.a-rail-b[style*="overflow-y"]{ min-height:80px; scrollbar-gutter:stable; }

/* A scrolling list of links needs a little air at the bottom, or the last row reads as cut off
   rather than as the end of the list. Only when it scrolls — at rest the card's own padding
   already answers it. */
#altLinksBody[style*="overflow-y"]{ padding-bottom:2px; }

/* ---------- a zone is a control ---------- */
.a-zone{
  display:flex; align-items:center; gap:6px; width:100%; min-width:0; text-align:left;
  background:none; border:1px solid transparent; border-radius:var(--a-r-sm);
  padding:3px 6px; color:inherit; font:inherit; cursor:pointer;
}
.a-zone:hover{ background:var(--a-raised); }
.a-zone.on{ border-color:var(--a-blue); background:var(--a-blue-soft); }
.a-zone.on .a-zone-t{ color:var(--a-blue-text); }
.a-zone:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-inset); }
/* What a folded widget still says. Right-aligned in the header, quiet, and monospaced so the
   digits do not shift the header a pixel every second. */
.a-w-peek{
  margin-left:auto; font:600 var(--a-fs-ctl-sm)/var(--a-lh-ctl) var(--a-body); color:var(--a-dim);
  font-variant-numeric:tabular-nums;
  /* One line always: when even the whole header cannot hold it the end is cut with an ellipsis (the title
     carries the full text), never wrapped onto a second line under the label. */
  flex:0 1 auto; min-width:0; padding:1px 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.a-rail-card:not(.collapsed) .a-w-peek{ display:none; }

/* A FOLDED UTILITIES WIDGET THAT SHOWS A READOUT DROPS ITS LABEL WHEN THE HEADER CANNOT HOLD BOTH (owner,
   2026-11-14: the Time card read "TI..." beside a readout wrapping onto two lines at a 240px rail; "the user can
   clearly see this is the time in this widget"). Asked of the HEADER's own width, never the viewport and never by
   script: the rail is 240px at its narrowest (a 214px header after the card's 26px of chrome) and 300px by default
   (274px), and 260px sits between them, so the default rail keeps its label and the narrow one gives the room to
   the readout. The label is hidden VISUALLY, not removed: the h3 is the card's `aria-labelledby` and the fold
   control's name, so a screen reader still hears "Time". Only a card with a readout in it loses its label (the
   Calendar and Quick links have none; Weather with no place saved has an empty one), and only when folded.
   The fold control keeps its chevron's width and the readout takes the rest. */
.a-rail-card[data-widget] > .a-rail-h{ container:a-rail-h / inline-size; }
@container a-rail-h (max-width:260px){
  .a-rail-card.collapsed:has(.a-w-peek:not(:empty)) .a-w-fold h3{
    position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden;
    clip-path:inset(50%); white-space:nowrap; flex:none;
  }
  .a-rail-card.collapsed:has(.a-w-peek:not(:empty)) .a-w-fold{ flex:1 0 auto; }
}

/* The card that holds the figures can carry a control under them — the way back from whatever
   they narrowed. */
.a-rail-card > .a-btn{ margin-top:8px; align-self:flex-start; }
.a-rail-card{ display:flex; flex-direction:column; }

/* ---------- a city in the rail is a control ---------- */
.a-wx-cell{
  display:block; width:100%; text-align:left; background:none; border:0; padding:4px 6px;
  margin:0 -6px; border-radius:var(--a-r-sm); color:inherit; font:inherit; cursor:pointer;
}
.a-wx-cell:hover{ background:var(--a-raised); }
.a-wx-cell:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-inset); }

/* ---------- the full forecast ----------
   The reading, not the glance — one place in full, the reader's others as a line each, and each
   of those opens (a summary is the same information at a different size, not a different kind). */
.a-wx-modal{ width:min(880px, 94vw); height:min(720px, 88vh); }
.a-wx-body{ display:grid; grid-template-columns:minmax(0,1fr) 240px; gap:var(--a-4); align-items:start; }
.a-wx-main{ display:flex; flex-direction:column; gap:var(--a-3); min-width:0; }
.a-wx-head{ display:flex; align-items:flex-start; gap:var(--a-4); flex-wrap:wrap; }
.a-wx-place-l{ flex:1 1 auto; min-width:0; }
.a-wx-place-l h3{ font:600 var(--a-fs-16)/var(--a-lh-tight) var(--a-display); margin:0; }
.a-wx-now-l{ display:flex; align-items:baseline; gap:10px; flex:0 0 auto; }
.a-wx-now-l .ic{ font-size:var(--a-fs-28); line-height:var(--a-lh-ctl); }
.a-wx-now-l .deg{ font:600 var(--a-fs-28)/var(--a-lh-ctl) var(--a-display); font-variant-numeric:tabular-nums; }
.a-wx-now-l .cond{ font-size:var(--a-fs-ctl); color:var(--a-dim); }
.a-wx-facts{ display:grid; grid-template-columns:repeat(auto-fit, minmax(96px, 1fr)); gap:var(--a-2); }
.a-wx-fact{
  padding:10px 12px; border-radius:var(--a-r); background:var(--a-raised);
  border:1px solid var(--a-line-soft); display:flex; flex-direction:column; gap:3px;
}
.a-wx-fact b{ font:600 var(--a-fs-16)/var(--a-lh-tight) var(--a-display); font-variant-numeric:tabular-nums; }
.a-wx-fact span{ font-size:var(--a-fs-11); color:var(--a-faint); }
/* The hour strip's slot — `min-width:0` because this is a column-flex child holding a horizontal
   scroller; without it the box sizes to its 24 cells and widens the modal. The cells themselves
   are CSS/weather-hourly.css, shared with the phone's identical markup. */
.a-wx-hours{ min-width:0; }
.a-wx-days-l{ display:flex; flex-direction:column; gap:4px; }
.a-wx-day-l{
  display:grid; grid-template-columns:minmax(0,1fr) 28px 44px 44px; align-items:center; gap:8px;
  padding:8px 10px; border-radius:var(--a-r); background:var(--a-raised);
  border:1px solid var(--a-line-soft); font-size:var(--a-fs-ctl);
}
.a-wx-day-l .i{ font-size:var(--a-fs-16); text-align:center; }
.a-wx-day-l .hi{ text-align:right; font-variant-numeric:tabular-nums; font-weight:600; }
.a-wx-day-l .lo{ text-align:right; font-variant-numeric:tabular-nums; color:var(--a-faint); }
.a-wx-others{ display:flex; flex-direction:column; gap:var(--a-2); min-width:0; }
.a-wx-list{ display:flex; flex-direction:column; gap:4px; }
.a-wx-row{
  display:grid; grid-template-columns:minmax(0,1fr) 22px 40px; grid-template-rows:auto auto;
  align-items:center; gap:2px 8px; text-align:left; cursor:pointer;
  padding:8px 10px; border-radius:var(--a-r); background:var(--a-raised);
  border:1px solid var(--a-line-soft); color:inherit; font:inherit;
}
.a-wx-row:hover{ border-color:var(--a-blue); }
.a-wx-row:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-inset); }
.a-wx-row .p{ font-size:var(--a-fs-ctl); font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.a-wx-row .i{ font-size:var(--a-fs-14); text-align:center; }
.a-wx-row .t{ text-align:right; font:600 var(--a-fs-14)/var(--a-lh-ctl) var(--a-display); font-variant-numeric:tabular-nums; }
.a-wx-row .c{ grid-column:1 / 4; font-size:var(--a-fs-11); color:var(--a-faint); }
@media (max-width:820px){
  .a-wx-body{ grid-template-columns:minmax(0,1fr); }
  .a-wx-modal{ width:96vw; height:92vh; }
}

/* ---------- Quick links tiles ----------
   A grid of 108px-minimum columns: one column at a 240px rail, two at 300px and three from 380px (measured: the
   card's usable width is the rail less 26px of card chrome and, when the column scrolls, an 11px scrollbar track). A tile is a 24px monogram,
   the label on one line and the host under it; the last tile is "+ Add". `align-content:start` so a
   card taller than its tiles shows empty space below, like the other widgets. */
#altLinksBody{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(108px, 1fr)); gap:var(--a-2);
  align-items:stretch; align-content:start;
}
#altLinksBody > .a-hint, #altLinksBody > .a-btn:not(.a-link-more){ grid-column:1 / -1; justify-self:start; }
.a-link-tile{
  display:flex; align-items:center; gap:8px; min-width:0; padding:6px 8px; text-align:left;
  background:var(--a-raised); border:1px solid var(--a-line-soft); border-radius:var(--a-r);
  color:inherit; font:inherit; text-decoration:none; cursor:pointer;
}
.a-link-tile:hover{ border-color:var(--a-line-strong); background:var(--a-panel); }
.a-link-tile:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-inset); }
.a-link-mono{
  flex:0 0 24px; width:24px; height:24px; border-radius:var(--a-r-sm);
  display:grid; place-items:center; font:700 var(--a-fs-ctl-sm)/var(--a-lh-ctl) var(--a-display);
  background:var(--a-blue-soft); color:var(--a-blue-text);
}
.a-link-mono[data-l]::before{ content:attr(data-l); }
.a-link-h[data-host]::before{ content:attr(data-host); }
.a-link-mono.t1{ background:var(--a-green-soft); color:var(--a-green); }
.a-link-mono.t2{ background:var(--a-amber-soft); color:var(--a-amber); }
.a-link-mono.t3{ background:var(--a-red-soft); color:var(--a-red); }
.a-link-mono.t4{ background:var(--a-purple-soft); color:var(--a-purple); }
.a-link-t{ display:flex; flex-direction:column; min-width:0; flex:1 1 auto; }
.a-link-l{ font-size:var(--a-fs-ctl-sm); font-weight:600; color:var(--a-text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.a-link-h{ font-size:var(--a-fs-11); color:var(--a-faint); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.a-link-team{ flex:0 0 auto; display:inline-flex; color:var(--a-faint); }
.a-link-team svg{ width:12px; height:12px; }
.a-link-add{ border-style:dashed; background:none; color:var(--a-dim); }
.a-link-add .a-link-mono{ background:none; border:1px dashed var(--a-line-strong); color:var(--a-dim); }
.a-link-add .a-link-mono svg{ width:12px; height:12px; }
.a-link-more{ grid-column:1 / -1; justify-self:start; }
/* Past the tile limit the widget grows in place ("Show all"); it does not turn into a scroller. A stored
   height from the grip is the reader's own and still wins (the inline pair). */
#altLinksBody.is-open:not([style*="overflow-y"]){ max-height:none; overflow:visible; }
.a-link-pop{ width:min(280px, calc(100vw - 32px)); }
.a-link-pop .a-field{ margin-bottom:8px; }

/* No footer action in this card: the card's ⋯ menu (drawn by altWidgetShell()) already opens
   altOpenSettings('rail','links'). */

/* ================= MOTION =================
   One transition: the drag handle strengthening (`--dur-micro`, sys_design-system §2b; `.a-w-grab`
   keeps `--a-quick` because hover makes it appear). No chevron rule (the glyph is swapped) and
   no layout property, so a dragged height never eases under the cursor. Reduced motion is handled at the token. */
.a-cal-d,
.a-zone,
.a-wx-cell,
.a-wx-row{
  transition:background-color var(--dur-micro, 140ms) linear,
             border-color     var(--dur-micro, 140ms) linear,
             color            var(--dur-micro, 140ms) linear,
             opacity          var(--dur-micro, 140ms) linear;
}
