/* The chart's style switch (views/chart-style-chip.js): a quiet chip under the chart, at its end side, a 48 px
   target around a small pill; its sheet a grid of the styles, each with its preview. Colours from style.css tokens. */
.chs-row{display:flex;justify-content:flex-end;margin-top:2px}
.chs-chip{display:inline-flex;align-items:center;gap:6px;min-height:48px;padding:0 4px;border:0;background:none;color:var(--mut);font:700 .76rem/1 var(--sans);cursor:pointer}
.chs-chip>*{pointer-events:none}
.chs-chip .i{width:14px;height:14px}
.chs-chip span:first-of-type{padding:6px 2px}
.chs-chip:hover,.chs-chip:focus-visible{color:var(--ink)}
.chs-chev{font-size:1rem;line-height:1;opacity:.7}
/* until the chooser was opened: a small accent badge, and one gentle pulse of a ring on the chip's first draw */
.chs-new{padding:3px 7px;border-radius:999px;background:color-mix(in srgb,var(--a) 16%,transparent);color:var(--a);font-size:.68rem;font-weight:800;white-space:nowrap}
.chs-chip.is-new{color:var(--ink);border-radius:999px}
@media (prefers-reduced-motion:no-preference){
  .chs-chip.pulse{animation:chs-pulse 1.6s ease-out .6s 2}
  @keyframes chs-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--a) 45%,transparent)}100%{box-shadow:0 0 0 10px transparent}}
}
html[dir=rtl] .chs-chev{transform:scaleX(-1)}
.chs-note{margin:0 0 12px}
.chs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.chs-opt{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:48px;padding:10px;border:1px solid var(--line);border-radius:var(--rm);background:var(--surface);color:var(--ink);font:700 .86rem/1.2 var(--sans);text-align:start;cursor:pointer}
.chs-opt[aria-pressed=true]{border-color:var(--a);box-shadow:0 0 0 2px color-mix(in srgb,var(--a) 35%,transparent)}
.chs-opt small{font-weight:600;font-size:.72rem}
.chs-prev{display:block;width:100%}
.chs-prev svg{display:block;width:100%;height:auto;max-height:64px}
/* A tap's card over the chart (views/chart-taps.js): the meal's or the entry's name, its time and rise, and the way to
   its page; at the top of the box near the tap, over the labels and the reading. */
.ins-card{position:absolute;top:8px;z-index:2;display:flex;flex-direction:column;gap:3px;padding:10px 12px 4px;border:1px solid var(--line);border-radius:var(--rm);background:var(--surface);color:var(--ink);box-shadow:var(--shadow);font-family:var(--sans);cursor:default;text-align:start}
.ins-card-t{display:flex;align-items:flex-start;gap:6px;font-size:.9rem;font-weight:800;line-height:1.25}
.ins-card-t span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}
.ins-card-t .i{width:16px;height:16px;flex:none;color:var(--b)}
.ins-card-s{font-size:.78rem;font-weight:600;color:var(--mut)}
.ins-card-go{align-self:flex-end;min-height:48px;padding:0 4px;font-weight:800}
html[dir=rtl] .ins-card-go span{display:inline-block;transform:scaleX(-1)}
/* the chart full screen: the page's background, the chart filling it, a small close button at the top end */
.ins-fs{position:fixed;inset:0;z-index:calc(var(--z-sheet) - 1);display:flex;flex-direction:column;justify-content:center;padding:56px 8px 16px;background:var(--bg)}
.ins-fs .ins-box{width:100%}
.ins-fs-x{position:absolute;top:6px;inset-inline-end:6px;display:grid;place-items:center;width:48px;height:48px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--ink);cursor:pointer}
.ins-fs-x .i{width:18px;height:18px}
/* the full screen's row of styles, under the chart: five equal segments, each a small preview over its name; the one
   drawn outlined in the accent; it scrolls sideways on a screen too narrow for five */
.chs-strip{display:flex;gap:6px;margin-top:8px;overflow-x:auto;scrollbar-width:none}
.chs-seg{flex:1 0 64px;display:flex;flex-direction:column;align-items:center;gap:3px;min-height:48px;padding:4px 2px 5px;border:1px solid var(--line);border-radius:var(--rm);background:var(--surface);color:var(--mut);font:700 .68rem/1.1 var(--sans);cursor:pointer}
.chs-seg>*{pointer-events:none}
.chs-seg .chs-prev{width:40px}
.chs-seg .chs-prev svg{max-height:23px}
.chs-seg-n{white-space:nowrap}
.chs-seg[aria-pressed=true]{border-color:var(--a);color:var(--ink);box-shadow:0 0 0 2px color-mix(in srgb,var(--a) 35%,transparent)}
.chs-seg:disabled{opacity:.45;cursor:default}
