/* Sofya instant answers (widgets.js). The page's own tokens, buttons and fields; the page's rules hold here too:
   no animation or transitions, no gradients, no red, no 999px radius except true circles. */

/* the slot above the results */
.answer { margin: 0 0 32px; }
.ia {
  background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px 20px;
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
  --ia-key: var(--panel); --ia-key-hover: var(--soft); --ia-op: var(--soft); --ia-op-hover: var(--ctl); --ia-well: var(--deep);
}
:root[data-theme="dark"] .ia { --ia-key: var(--deep); --ia-key-hover: var(--soft); --ia-op: var(--soft); --ia-op-hover: var(--ctl); --ia-well: var(--deep); }
.ia-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-height: 30px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.ia-head > svg { flex-shrink: 0; color: var(--gold); }
.ia-title { flex: 1 1 auto; min-width: 0; }
.ia-big { font-family: var(--mono); font-weight: 500; font-size: 32px; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ia-big .w { font-family: var(--font); font-size: 21px; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.ia-sub { font-size: 15.5px; line-height: 1.5; color: var(--body-2); text-wrap: pretty; }
.ia-foot { font-size: 13.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.ia-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ia .btn { height: 40px; padding: 0 16px; font-size: 14.5px; }
.ia .btn-primary { border: 0; }
.ia .btn svg { flex-shrink: 0; }
.ia .icon-btn { width: 40px; height: 40px; color: var(--muted); }
.ia .icon-btn:hover { color: var(--ink); }
.ia .icon-btn[disabled] { opacity: .4; cursor: not-allowed; background: transparent; }
.ia-link {
  height: 30px; padding: 0 8px; margin: -4px -8px -4px 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer;
  color: var(--link); font-size: 14.5px; font-weight: 600; white-space: nowrap;
}
.ia-link:hover { background: var(--hover); text-decoration: underline; text-underline-offset: 3px; }
.ia-lab { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--body-2); }
.ia-lab-t { font-size: 14.5px; font-weight: 600; color: var(--body-2); }
.ia .finput { height: 44px; }
.ia-num { font-family: var(--mono); font-size: 16px; font-variant-numeric: tabular-nums; }
/* selects: the field look, with the page's caret */
.ia-sel { position: relative; display: inline-flex; min-width: 0; }
.ia-sel select {
  -webkit-appearance: none; appearance: none; width: 100%; min-width: 0; height: 44px; padding: 0 34px 0 12px;
  border: 1.5px solid var(--ctl); border-radius: 8px; background: var(--raised); color: var(--ink);
  font-family: var(--font); font-size: 15px; font-weight: 500; cursor: pointer; text-overflow: ellipsis;
}
:root[data-theme="dark"] .ia-sel select { background: var(--deep); }
.ia-sel select:focus { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-halo); }
.ia-sel > svg { position: absolute; right: 10px; top: 50%; margin-top: -8px; pointer-events: none; color: var(--muted); }
.ia-head .ia-sel select { height: 36px; font-size: 14px; }
.ia .seg button { height: 36px; font-size: 14px; }
.ia-tabs { flex: 0 0 auto; }
.ia-tabs button { padding: 0 14px; }

/* ---------- calculator: design A (11-04 pick) ---------- */
.clca { gap: 12px; }
.clca .ia-link { display: inline-flex; align-items: center; gap: 6px; }
.clca-eq { display: grid; grid-template-columns: minmax(0, 1fr); }
.clca-in {
  min-width: 0; height: 36px; padding: 0 8px; margin: 0 -8px; width: calc(100% + 16px); border: 1.5px solid transparent; border-radius: 8px;
  background: transparent; font-family: var(--mono); font-size: 19px; line-height: 1.5; color: var(--body-2); font-variant-numeric: tabular-nums;
}
.clca-in::placeholder { color: var(--muted); opacity: 1; }
.clca-in:hover { border-color: var(--line); }
.clca-in:focus { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-halo); background: var(--raised); }
.clca-ans { display: flex; align-items: center; gap: 12px; min-width: 0; }
.clca-is { font-family: var(--mono); font-size: 30px; line-height: 1; color: var(--muted); }
.clca-out {
  min-width: 0; font-family: var(--mono); font-size: 48px; line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; color: var(--ink);
  overflow-wrap: anywhere; font-variant-numeric: tabular-nums;
}
.clca-out.stale { color: var(--muted); }
.clca-also { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.clca-also[hidden] { display: none; }
.clca-also li { display: grid; gap: 1px; padding: 9px 14px; border-left: 1px solid var(--line); min-width: 0; line-height: 1.5; }
.clca-also li:first-child { border-left: 0; }
.clca-also span { font-size: 13.5px; color: var(--muted); }
.clca-also b { font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.clca-pad { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.clca-pad[hidden] { display: none; }
.clca-on .clca-foot { display: none; }
.clca-k {
  display: inline-flex; align-items: center; justify-content: center; height: 42px; min-width: 0; padding: 0 2px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--deep); color: var(--ink); font-family: var(--font); font-size: 15px; font-weight: 600; white-space: nowrap;
}
.clca-k.num { font-family: var(--mono); font-size: 17px; font-weight: 500; color: var(--ink); }
.clca-k.op { background: var(--soft); color: var(--link); font-family: var(--mono); font-size: 16px; font-weight: 500; }
.clca-k.op.ac { font-family: var(--font); font-size: 14.5px; font-weight: 600; }
.clca-k.eq { background: var(--primary); color: var(--on-primary); font-family: var(--mono); font-size: 19px; font-weight: 500; }
.clca-k:hover { outline: 1.5px solid var(--ctl); outline-offset: -1.5px; }
.clca-k:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.clca-deg { grid-column: span 3; }
.ia .clca-deg button { height: 42px; font-size: 14px; padding: 0 4px; }
@media (max-width: 560px) {
  .clca-out { font-size: 40px; }
  .clca-also li { padding: 8px 10px; }
  .clca-also span { font-size: 12.5px; }
  .clca-also b { font-size: 16px; }
  .clca-pad { gap: 5px; }
  .clca-k { height: 44px; }
  .ia .clca-deg button { height: 44px; }
}

/* ---------- currency: design B (11-04 pick) ---------- */
.fxb { gap: 14px; }
.fxb .ia-head .ia-link { display: inline-flex; align-items: center; gap: 6px; }
.fxb-say { font-size: 26px; line-height: 1.35; font-weight: 600; color: var(--ink); text-wrap: pretty; }
.fxb-amt {
  width: calc(var(--n, 3) * 1ch + 22px); min-width: 3.4ch; max-width: 100%; height: 44px; padding: 0 9px; border: 1.5px solid var(--ctl); border-radius: 8px;
  background: var(--raised); color: var(--ink); font-family: var(--mono); font-size: 26px; font-weight: 500; vertical-align: baseline; font-variant-numeric: tabular-nums;
}
.fxb-amt:focus { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-halo); }
.fxb-v { font-family: var(--mono); font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.fxb-rate { font-size: 14.5px; line-height: 1.5; color: var(--body-2); margin-top: -4px; text-wrap: pretty; }
.fxb-rate b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.fxb-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fxb-t { width: 100%; border-collapse: collapse; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 15px; line-height: 1.5; }
.fxb-t th { font-size: 13px; font-weight: 500; color: var(--muted); text-align: right; padding: 0 12px 6px; border-bottom: 1px solid var(--line); }
.fxb-t th:first-child, .fxb-t td:first-child { text-align: left; }
.fxb-t td { padding: 6px 12px; text-align: right; color: var(--ink); border-bottom: 1px solid var(--line); white-space: nowrap; }
.fxb-t td:first-child { color: var(--body-2); }
.fxb-t tr:last-child td { border-bottom: 0; }
.fxb-t tr.is-ask td { background: var(--gold-fill); font-weight: 500; }
.fxb-t tr.is-ask td:first-child { border-radius: 6px 0 0 6px; }
.fxb-t tr.is-ask td:last-child { border-radius: 0 6px 6px 0; }
.fxb:not(.fxb-all) .fxb-t tr.far { display: none; }
.fxb:not(.fxb-all) .fxb-t tr.endv td { border-bottom: 0; }
.fxb-more { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: -10px; }
.fxb-more .ia-link { margin: 0 -8px; }
.fxb-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: -4px; }
.fxb-pick[hidden] { display: none; }
.fxb-pl { display: grid; gap: 4px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.fxb-pl .ia-sel { width: 100%; }
@media (max-width: 560px) {
  .ia.fxb { gap: 8px; }
  .fxb-say, .fxb-amt { font-size: 20px; }
  .fxb-say { line-height: 1.3; }
  .fxb-amt { height: 36px; }
  .fxb-rate { font-size: 14px; }
  .fxb-long { display: none; }
  .fxb-tabs { grid-template-columns: minmax(0, 1fr); }
  .fxb-tabs .fxb-t + .fxb-t { display: none; }
  .fxb-t { font-size: 14px; }
  .fxb-t th, .fxb-t td { padding-left: 8px; padding-right: 8px; }
  .fxb-t th { padding-bottom: 4px; }
  .fxb-t td { padding-top: 4px; padding-bottom: 4px; }
  .fxb-rate { margin-top: 0; }
  .fxb-tabs { margin-top: 2px; }
  .fxb-more { margin-top: -6px; }
}

/* ---------- units: design B, the ladder; temperature: design C, the shared scale (11-04 pick) ---------- */
.ucb { gap: 12px; }
.ucb-q { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ucb-a { flex: 0 0 110px; width: 110px; }
.ucb-sa { flex: 0 1 220px; width: 220px; }
.ucb-sa select { width: 100%; }
.ucb-q .ia-swap { margin-left: -2px; }
.ucb-ans { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; color: var(--ink); }
.ucb-eq { font-family: var(--mono); font-size: 28px; color: var(--muted); }
.ucb-v { font-family: var(--mono); font-size: 40px; line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ucb-u { font-size: 22px; font-weight: 600; }
.ucb-lad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; padding-top: 4px; border-top: 1px solid var(--line); }
.ucb-col { display: grid; gap: 10px; align-content: start; min-width: 0; }
.ucb-g h4 { margin: 8px 0 2px; font-size: 13px; line-height: 1.3; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ucb-g ul { margin: 0; padding: 0; list-style: none; }
.ucb-r {
  display: grid; grid-template-columns: max(64px, calc(var(--ucb-nw, 6) * 0.6em + 2px)) minmax(0, 1fr); align-items: baseline; gap: 12px; width: calc(100% + 16px); padding: 5px 8px; margin: 0 -8px;
  border: 0; border-radius: 6px; background: transparent; font-size: 15px; line-height: 1.33; text-align: left; color: inherit;
}
button.ucb-r { cursor: pointer; }
button.ucb-r:hover { background: var(--hover); }
.ucb-r b { font-family: var(--mono); text-align: right; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ucb-r span { color: var(--body-2); min-width: 0; }
.ucb-r em { font-style: normal; font-size: 12.5px; color: var(--muted); margin-left: 8px; white-space: nowrap; }
.ucb li.is-ask .ucb-r { background: var(--gold-fill); box-shadow: inset 0 0 0 1px var(--gold-line); }
.ucb li.is-ask span { color: var(--ink); font-weight: 600; }
.ucb li.is-from b, .ucb li.is-from span { color: var(--muted); }
/* temperature: the answer sits in the question row, the scale below */
.ucc .ucb-q { gap: 8px 12px; }
.ucc .ucb-ans { flex-wrap: nowrap; align-items: center; gap: 12px; }
.ucc .ucb-v { line-height: 1.1; }
.ucc .ucb-u { font-size: 24px; margin-left: -8px; }
.ucc .ucb-q .ia-swap { margin-left: auto; }
.ucc-scale { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); padding: 6px 12px 0 0; }
.ucc-name { grid-column: 1; grid-row: 1; align-self: start; font-size: 13px; font-weight: 600; color: var(--muted); }
.ucc-name.n1 { margin-top: 30px; }
.ucc-name.n2 { margin-top: 76px; }
.ucc-track { grid-column: 2; grid-row: 1; position: relative; display: grid; min-width: 0; }
.ucc-row { position: relative; }
.ucc-call { height: 24px; }
.ucc-call b { position: absolute; z-index: 1; top: 0; transform: translateX(-50%); padding: 0 4px; background: var(--raised); font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.ucc-labs { height: 20px; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.ucc-l { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.ucc-l.e0 { transform: none; }
.ucc-l.e1 { transform: translateX(-100%); }
.ucc-ticks { height: 8px; }
.ucc-t { position: absolute; top: 0; width: 1px; height: 5px; background: var(--ctl); }
.ucc-t.big { height: 8px; background: var(--muted); }
.ucc-ticks.up .ucc-t { top: auto; bottom: 0; }
.ucc-bar { position: relative; height: 12px; margin: 2px 0; border-radius: 6px; background: var(--soft); }
.ia.ucc { --warm: #B07D12; }
:root[data-theme="dark"] .ia.ucc { --warm: #E2BE6A; }
.ucc-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--warm); }
.ucc-mark { position: absolute; z-index: 0; top: 22px; height: 76px; width: 2px; margin-left: -1px; background: var(--ink); }
.ucc-mark::after {
  content: ""; position: absolute; left: 50%; top: 31px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: var(--raised); border: 2.5px solid var(--ink); box-sizing: border-box;
}
.ucc-land { position: relative; height: 30px; margin: 4px 0 0; padding: 0; list-style: none; border-top: 1px dashed var(--line); }
.ucc-land li { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ucc-land li.e0 { transform: none; align-items: flex-start; }
.ucc-land li.e1 { transform: translateX(-100%); align-items: flex-end; }
.ucc-land i { width: 1px; height: 8px; background: var(--muted); }
.ucc-land span { font-size: 12px; line-height: 1.2; color: var(--muted); text-align: center; white-space: nowrap; }
@media (max-width: 560px) {
  .ucb-a { flex-basis: 88px; width: 88px; }
  .ucb-sa { flex: 1 1 0; width: auto; }
  .ucb-v { font-size: 32px; }
  .ucb-u { font-size: 19px; }
  .ucb-lad { gap: 0 14px; }
  .ucb-r { grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 6px; font-size: 14px; padding: 5px 6px; margin: 0 -6px; width: calc(100% + 12px); }
  .ucb-r b { text-align: left; }
  .ucb-r em { display: none; }
  .ucc .ucb-ans { order: 3; flex: 1 1 100%; }
  .ucc .ucb-v { font-size: 32px; }
  .ucc .ucb-u { font-size: 20px; }
  .ucc-scale { grid-template-columns: 26px minmax(0, 1fr); padding-right: 8px; }
  .ucc-call { display: none; }
  .ucc-name.n1 { margin-top: 6px; }
  .ucc-name.n2 { margin-top: 52px; }
  .ucc-mark { top: 0; height: 74px; }
  .ucc-mark::after { top: 29px; }
  .ucc-land li.wide { display: none; }
  .ucc-land span { font-size: 11.5px; }
  .ucc-sayf { display: none; }
}

/* ---------- time: design A (11-04 pick) ---------- */
/* "Big time": the time large, the date and zone beside it (with your own time), then what the difference means.
   Narrow cards (phones) keep the date beside the time and drop your own time (the phone's status bar shows it). */
.ia-time { --rain: #3D68C2; container: wca / inline-size; }
:root[data-theme="dark"] .ia-time { --rain: #86A8EE; }
.wca-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.wca-t { font-family: var(--mono); font-size: 64px; line-height: 1; font-weight: 500; color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wca-col { margin: 0 -0.16em; }
.wca-ap { font-family: var(--font); font-size: 22px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.wca-meta { display: grid; gap: 1px; min-width: 0; }
.wca-d { font-size: 19px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.wca-z { font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.wca-rel { display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--deep); border: 1px solid var(--line); }
.wca-rel p { font-size: 15.5px; line-height: 1.5; color: var(--body-2); text-wrap: pretty; }
.wca-rel b { color: var(--ink); font-weight: 700; }
.wca-ic { flex-shrink: 0; margin-top: 1px; color: var(--gold); }
.wca-ic.is-night { color: var(--rain); }
.wca-ic .ic { stroke-width: 1.6; }
.wca-you { font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.wca-you b { font-family: var(--mono); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
/* a time read in another zone (11-11): "3:00 PM Eastern Time is 12:00 PM Pacific Time." */
.wca-conv { font-size: 18px; line-height: 1.45; color: var(--body-2); text-wrap: pretty; }
.wca-conv b { font-family: var(--mono); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
/* several zones (a country): one row each */
.wca-list { display: flex; flex-direction: column; }
.wca-row { display: grid; grid-template-columns: minmax(0, 190px) auto minmax(0, 1fr); align-items: baseline; gap: 2px 18px; padding: 8px 0; border-top: 1px solid var(--line); }
.wca-row:first-child { border-top: 0; padding-top: 0; }
.wca-ll { font-size: 15px; font-weight: 600; color: var(--ink); min-width: 0; }
.wca-lt { font-family: var(--mono); font-size: 21px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 5ch; }
.wca-lt .wca-ap { font-size: 14px; }
.wca-lm { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: 14px; color: var(--body-2); }
.wca-ln { color: var(--muted); }
@container wca (max-width: 440px) {
  .wca-main { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "t d" "z z"; gap: 4px 14px; }
  .wca-meta { display: contents; }
  .wca-t { grid-area: t; font-size: 50px; }
  .wca-ap { font-size: 18px; }
  .wca-d { grid-area: d; font-size: 16px; line-height: 1.3; }
  .wca-z { grid-area: z; font-size: 14px; }
  .wca-main .wca-you:not(.is-utc) { display: none; }
  .wca-main .wca-you { grid-column: 1 / -1; font-size: 14px; }
  .wca-rel { gap: 10px; padding: 7px 12px; }
  .wca-rel p { font-size: 14.5px; line-height: 1.4; }
  .wca-ic { width: 20px; height: 20px; }
  .wca-row { grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; }
  .wca-lm { grid-column: 1 / -1; }
}

/* ---------- timer: design A (11-04 pick) ---------- */
/* big digits (they are fields: type a length, Enter starts), presets, three buttons; the stopwatch's laps as bars */
.tmr-card { --good: #2F7A55; font-size: 15px; line-height: 1.5; }
:root[data-theme="dark"] .tmr-card { --good: #7CC9A0; }
.tmr-card .ia-head .tmr-tabs button { flex: 0 0 auto; padding: 0 14px; }
.tmr-col { display: inline-block; margin: 0 -0.12em; }
.tmr-chip { height: 36px; padding: 0 12px; border-radius: 8px; border: 1.5px solid var(--ctl); background: var(--raised); color: var(--link); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tmr-chip:hover { background: var(--hover); }
.tmr-chip[aria-pressed="true"] { background: var(--soft); border-color: var(--primary); color: var(--ink); }
.tmra { gap: 10px; }
.tmra .tmr-pane { display: flex; flex-direction: column; gap: 10px; }
.tmra-d { display: flex; align-items: baseline; font-size: 90px; line-height: .9; font-weight: 500; letter-spacing: -0.045em; color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tmra-d.is-h { font-size: 80px; }
.tmra-dsw { font-size: 72px; }
.tmra-f {
  width: 1.16em; height: .84em; padding: 0; margin: 0; border: 0; border-radius: 6px; background: transparent; outline: 0;
  font: inherit; letter-spacing: inherit; line-height: 1; color: inherit; text-align: center; font-variant-numeric: tabular-nums;
}
.tmr-card:not(.is-run) .tmra-f { cursor: text; }
.tmr-card:not(.is-run) .tmra-f:hover { box-shadow: inset 0 -3px 0 var(--ctl); }
.tmra-f:focus { background: var(--focus-halo); box-shadow: inset 0 -3px 0 var(--focus); }
.tmr-card.is-run .tmra-f:focus { background: transparent; box-shadow: none; }
.tmr-card.is-done .tmra-d { color: var(--gold); }
.tmr-card.is-done .tmra-ends { color: var(--gold); font-weight: 700; }
.tmra-sub { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: 15.5px; color: var(--body-2); }
.tmra-dot { color: var(--muted); }
.tmra-pre { display: flex; flex-wrap: wrap; gap: 8px; }
.tmra-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.tmra-acts .btn { min-width: 100px; }
.tmr-laps { margin: 0; padding: 0; list-style: none; display: grid; border-top: 1px solid var(--line); max-height: 122px; overflow-y: auto; }
.tmr-lap { display: grid; grid-template-columns: minmax(64px, auto) minmax(40px, 1fr) auto auto; gap: 14px; align-items: center; min-height: 40px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--body-2); }
.tmr-lap:last-child { border-bottom: 0; }
.tmr-ln { min-width: 0; font-weight: 600; color: var(--ink); }
.tmr-lap.is-cur .tmr-ln { color: var(--muted); font-weight: 500; }
.tmr-fast { display: block; margin: 0; line-height: 1.2; font-size: 12.5px; font-weight: 600; color: var(--good); }
.tmr-lbar { display: block; position: relative; height: 6px; border-radius: 3px; background: var(--soft); }
.tmr-lbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--link); }
.tmr-lap.is-fast .tmr-lbar i { background: var(--good); }
.tmr-lap.is-cur .tmr-lbar i { background: var(--ctl); }
.tmr-ls { font-size: 14px; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.tmr-lt { font-size: 14px; color: var(--muted); text-align: right; min-width: 6ch; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .tmra-d { font-size: 76px; }
  .tmra-d.is-h { font-size: 54px; }
  .tmra-dsw { font-size: 54px; }
  .tmra-acts .btn { min-width: 0; flex: 1 1 0; padding: 0 12px; }
  .tmra-pre { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .tmra-pre .tmr-chip { padding: 0; font-size: 13.5px; height: 38px; }
  .tmr-lap { gap: 10px; grid-template-columns: minmax(56px, auto) minmax(30px, 1fr) auto auto; }
}

/* ---------- chance: design A (11-04 pick) ---------- */
/* coin, dice, random number: the result in large type, B's drawn coin and dice beside it, one button to do it again;
   under a rule the last results as chips, with the settings (or the tally) at the right */
.ia.chna { gap: 12px; }
.chna-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-width: 0; }
.chna-row > .btn { margin-left: auto; }
.chna-art { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.chna-coin { display: block; width: 52px; height: auto; overflow: visible; }
.chna-edge { fill: var(--gold-line); }
.chna-face { fill: var(--gold-fill); stroke: var(--gold); stroke-width: 4; }
.chna-beads { fill: none; stroke: var(--gold); stroke-width: 3.2; stroke-dasharray: 0.01 8.6; stroke-linecap: round; opacity: .8; }
.chna-star { fill: var(--gold); }
.chna-one { font-family: var(--font); font-size: 68px; font-weight: 700; fill: var(--gold); text-anchor: middle; }
.chna-die { display: block; width: 48px; height: 48px; flex: 0 0 auto; overflow: visible; }
.chna-many .chna-die { width: 38px; height: 38px; }
.chna-body { fill: var(--raised); stroke: var(--ink); stroke-width: 1.1; }
.chna-pips circle { fill: var(--ink); }
.chna-big { font-size: 52px; line-height: 1; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; min-width: 1.2ch; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.chna-word { font-family: var(--font); font-weight: 700; font-size: 46px; }
.chna-note { flex: 1 1 auto; min-width: 0; font-size: 15px; color: var(--muted); }
.chna-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.chna-hist { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.chna-hl { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.chna-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chna-chips li {
  min-width: 30px; height: 30px; padding: 0 6px; border-radius: 6px; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 14px; color: var(--body-2); font-variant-numeric: tabular-nums;
}
.chna-chips li.is-new { border-color: var(--primary); color: var(--ink); font-weight: 500; background: var(--soft); }
.chna-tally { margin-left: auto; font-size: 13.5px; color: var(--muted); }
.chna-ctl { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.chna .ia-sel select { height: 40px; padding: 0 32px 0 12px; font-family: var(--mono); font-size: 15px; font-weight: 400; }
.chna .ia-sel > svg { right: 9px; }
.ia .chna-num { width: 88px; height: 40px; font-size: 15px; font-weight: 600; }
/* phones: one step smaller; the settings move above the rule, the chips below it, five at most */
@media (max-width: 520px) {
  .ia.chna { gap: 10px; }
  .chna-row { gap: 8px 12px; }
  .chna-big { font-size: 40px; }
  .chna-word { font-size: 36px; }
  .chna-coin { width: 42px; }
  .chna-die { width: 40px; height: 40px; }
  .chna-many .chna-die { width: 32px; height: 32px; }
  .chna-drawn .chna-note { display: none; }
  .chna-foot { padding-top: 0; border-top: 0; gap: 10px 16px; }
  .chna-ctl { order: -1; margin-left: 0; flex: 1 1 100%; }
  .chna-hist { flex: 1 1 100%; padding-top: 10px; border-top: 1px solid var(--line); }
  .chna-tally { margin: -2px 0 0; }
  .chna-chips li:nth-child(n+6) { display: none; }
  .ia .chna-num { width: 80px; }
}

/* ---------- color: design C (11-04 pick) ---------- */
/* a swatch (a tap opens the system picker), three sliders over stepped tracks, the formats with copy, the contrast
   sentence; OKLCH behind "More formats". Phones: the swatch is a short band, the formats one compact list */
.ia.clc { gap: 14px; }
.clc-reset { display: inline-flex; align-items: center; gap: 6px; margin: -4px -8px -4px auto; font-size: 14px; }
.clc-main { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 20px; align-items: stretch; }
.clc-sw { position: relative; display: flex; align-items: flex-end; min-height: 120px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; }
.clc-sw:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.clc-hex { font-size: 20px; font-weight: 500; }
.clc-pick { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.clc-sls { display: grid; gap: 12px; align-content: center; min-width: 0; }
.clc-r { display: grid; grid-template-columns: 84px minmax(0, 1fr) 44px; align-items: center; gap: 0 12px; }
.clc-lab { font-size: 14px; font-weight: 600; color: var(--body-2); }
.clc-v { grid-column: 3; grid-row: 1; font-size: 14px; color: var(--ink); text-align: right; }
.clc-tw { grid-column: 2; grid-row: 1; position: relative; height: 34px; min-width: 0; }
.clc-tr { position: absolute; left: 0; right: 0; top: 5px; height: 24px; display: flex; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.clc-tr i { flex: 1 1 0; }
.clc-rg { position: absolute; inset: 0; width: 100%; height: 34px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.clc-rg::-webkit-slider-runnable-track { height: 34px; background: transparent; border: 0; }
.clc-rg::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 34px; border-radius: 5px; background: var(--raised); border: 2.5px solid var(--ink); box-shadow: 0 0 0 1.5px var(--raised); }
.clc-rg::-moz-range-track { height: 34px; background: transparent; border: 0; }
.clc-rg::-moz-range-thumb { width: 9px; height: 29px; border-radius: 5px; background: var(--raised); border: 2.5px solid var(--ink); box-shadow: 0 0 0 1.5px var(--raised); }
.clc-rg:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.clc-vals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.clc-val {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 2px; min-width: 0; min-height: 56px;
  padding: 8px 10px 8px 12px; border: 1.5px solid var(--ctl); border-radius: 8px; background: var(--raised);
}
.clc-val:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-halo); }
.clc-ro { grid-column: 1 / -1; }
.clc-k { padding-right: 28px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.clc-x { width: 100%; min-width: 0; height: 21px; padding: 0; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--ink); text-overflow: ellipsis; }
.ia .clc-cp { position: absolute; top: -3px; right: -3px; width: 40px; height: 40px; color: var(--link); background: transparent; }
.ia .clc-cp:hover { color: var(--ink); }
.clc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.clc-note { flex: 1 1 300px; }
.clc-more { margin: -4px -8px -4px auto; font-size: 14px; }
@media (max-width: 520px) {
  .ia.clc { gap: 8px; }
  .clc-main { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .clc-sw { min-height: 0; height: 32px; padding: 0 12px; align-items: center; border-radius: 8px; }
  .clc-hex { font-size: 15px; }
  .clc-sls { gap: 0; }
  .clc-r { grid-template-columns: 76px minmax(0, 1fr) 40px; gap: 0 10px; }
  .clc-lab { font-size: 13.5px; }
  .clc-vals { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1.5px solid var(--ctl); border-radius: 8px; overflow: hidden; }
  .clc-val { grid-template-columns: 52px minmax(0, 1fr) 40px; align-items: center; gap: 0 4px; min-height: 40px; padding: 0 0 0 12px; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
  .clc-val:first-child { border-top: 0; }
  .clc-val:focus-within { border-color: var(--line); box-shadow: inset 0 0 0 2px var(--focus); }
  .clc-k { padding-right: 0; }
  .clc-x { height: 39px; font-size: 14.5px; }
  .ia .clc-cp { position: static; }
  .clc-foot { display: block; font-size: 13px; line-height: 1.4; }
  .clc-more { height: auto; margin: 0; padding: 0 2px; font-size: 13.5px; line-height: inherit; }
}

/* ---------- image: design A (11-04 pick) ---------- */
/* before a file: a compact drop zone and the choices; with a photo: the photo with the divider and both sides' sizes,
   zoom on the photo, one row of choices (Resize opens under it), the result line with the download, the privacy note */
.ia-image { --good: #2F7A55; }
:root[data-theme="dark"] .ia-image { --good: #7CC9A0; }
.ia.ia-image { gap: 12px; }
.img-new { margin: -4px -8px -4px auto; }
.img-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.img-drop { display: flex; align-items: center; gap: 10px 16px; padding: 14px 14px 14px 18px; border: 1.5px dashed var(--ctl); border-radius: 10px; background: var(--ia-well); }
.img-drop.over { border-color: var(--focus); border-style: solid; background: var(--soft); }
.img-drop-txt { flex: 1 1 auto; min-width: 0; }
.img-drop-t { font-size: 15.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.img-drop-f { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.img-choose { flex: 0 0 auto; }
.img-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; min-width: 0; }
.img-fmtrow { display: flex; align-items: center; gap: 12px; }
.img-l { font-size: 14.5px; font-weight: 600; color: var(--body-2); white-space: nowrap; }
.ia .img-fmt button { padding: 0 14px; }
.img-fmt button[disabled] { opacity: .5; cursor: not-allowed; }
.img-qrow { flex: 1 1 220px; display: grid; grid-template-columns: auto minmax(0, 1fr) 30px; align-items: center; gap: 12px; }
.img-q { width: 100%; min-width: 0; margin: 0; accent-color: var(--primary); }
.img-qv { font-size: 14px; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.img-rzb { display: inline-flex; align-items: center; gap: 4px; margin: -4px -8px -4px auto; }
.img-rzb svg { color: var(--muted); }
.img-rz { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; padding: 12px 14px; border-radius: 10px; background: var(--ia-well); border: 1px solid var(--line); }
.img-dims { display: flex; align-items: flex-end; gap: 6px; }
.img-diml { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.ia .img-dim { width: 92px; height: 40px; padding: 0 10px; background: var(--raised); }
.img-dim[aria-invalid="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-fill); }
.ia .img-lock { width: 36px; height: 40px; color: var(--muted); }
.ia .img-lock[aria-pressed="true"] { color: var(--link); }
.img-px { font-size: 14px; color: var(--muted); padding: 0 0 10px 2px; }
.img-pcts { display: flex; gap: 6px; }
.ia .img-pct { height: 36px; padding: 0 12px; font-size: 14px; font-family: var(--mono); font-weight: 500; }
.ia .img-pct[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
/* the before/after view: one canvas, the original left of the divider */
.img-view { min-width: 0; }
.img-cmp { position: relative; width: 100%; height: 250px; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: var(--ia-well);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.img-cmp.zoomed { touch-action: none; cursor: grab; }
.img-cmp.zoomed.drag { cursor: grabbing; }
.img-cv { display: block; width: 100%; height: 100%; }
.img-split { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; }
.img-split::before { content: ''; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--raised); box-shadow: 0 0 0 1px var(--ink); }
.img-hdl {
  position: absolute; top: 50%; left: -20px; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--raised); color: var(--ink);
  border: 1.5px solid var(--ctl); cursor: ew-resize; touch-action: none;
}
.img-hdl svg { margin: 0 -2px; }
.img-hdl:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.img-tag {
  position: absolute; top: 10px; max-width: calc(50% - 16px); padding: 3px 9px; border-radius: 6px; pointer-events: none;
  background: var(--raised); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.45;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums;
}
.img-tag .mono { font-weight: 500; }
.img-tag.l { left: 10px; }
.img-tag.r { right: 10px; }
.img-zoom { position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; padding: 2px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line); cursor: default; }
.ia .img-zb { width: 36px; height: 36px; }
.ia .img-zl { margin: 0; min-width: 3.4em; height: 36px; padding: 0 4px; font-family: var(--mono); font-size: 13px; font-weight: 500; text-align: center; }
/* the result: size and change, the file line, the download */
.img-out { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.img-res { grid-column: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.img-sz { font-size: 24px; font-weight: 500; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.img-sz .u { font-family: var(--font); font-size: .78em; font-weight: 600; }
.img-chg { font-size: 15px; font-weight: 600; color: var(--good); }
.img-chg.up { color: var(--muted); }
.img-meta, .img-jpg { grid-column: 1; overflow-wrap: anywhere; }
.img-dl { grid-column: 2; grid-row: 1 / span 3; }
.img-priv { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.img-priv svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }
/* phones: no "drop" (there is nothing to drag from), quality once there is a photo, a shorter photo, the download
   beside the size */
@media (max-width: 520px) {
  .ia.ia-image { gap: 10px; }
  .img-drop { padding: 12px; gap: 10px; }
  .ia .img-choose { padding: 0 12px; }
  .img-drop-t { display: none; }
  .img-drop-f { font-size: 12.5px; }
  .img-main:not(.loaded) .img-qrow { display: none; }
  .img-opts { gap: 10px 12px; }
  .img-fmtrow { flex: 1 1 100%; justify-content: space-between; }
  .img-qrow { flex-basis: 170px; }
  .img-rz { padding: 12px; }
  .ia .img-dim { width: 84px; }
  .img-tag { top: 8px; padding: 2px 7px; font-size: 12.5px; }
  .img-tag.l { left: 8px; }
  .img-tag.r { right: 8px; }
  .img-out { padding-top: 12px; }
  .img-meta, .img-jpg { grid-column: 1 / -1; }
  .img-dl { grid-row: 1; }
  .img-priv { font-size: 13px; line-height: 1.4; }
}

/* ---------- dates and holidays ---------- */

/* ---------- dates: design A (11-04 pick) ---------- */
/* one big number (or word), the date under it, three facts; "Count to another date" opens a date field */
.dtsa { gap: 14px; font-size: 15px; line-height: 1.5; }
.dtsa .ia-head .dtsa-more { margin: -4px -8px -4px auto; }
.dtsa-hero { display: grid; gap: 4px; }
.dtsa-big { display: flex; align-items: baseline; gap: 14px; font-size: 72px; line-height: 1; font-weight: 500; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.dtsa-big.is-word { font-family: var(--font); font-size: 46px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.dtsa-u { font-family: var(--font); font-size: 26px; font-weight: 600; letter-spacing: 0; color: var(--body-2); }
.dtsa-sub { font-size: 17px; line-height: 1.45; color: var(--body-2); text-wrap: pretty; }
.dtsa-sub b { color: var(--ink); font-weight: 700; }
.dtsa-facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.dtsa-facts div { padding: 8px 14px 9px; border-left: 1px solid var(--line); min-width: 0; }
.dtsa-facts div:first-child { border-left: 0; padding-left: 0; }
.dtsa-facts dt { font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--muted); }
.dtsa-facts dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.dtsa-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.dtsa-edit label { font-size: 14.5px; font-weight: 600; color: var(--body-2); }
.dtsa-edit .finput { width: 190px; font-size: 15px; }
/* what falls on a day (11-11): one row per day, the name and where it is kept */
.dtsa-on { margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.dtsa-on li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.dtsa-on li:first-child { border-top: 0; }
.dtsa-on b { font-size: 16px; font-weight: 600; color: var(--ink); }
.dtsa-on span { font-size: 14px; color: var(--muted); }
.dtsa-on .dtsa-onm { padding: 4px 0; }
.dtsa-on .dtsa-onmore { margin-left: -8px; }
@media (max-width: 520px) {
  .dtsa-on li { gap: 0 10px; padding: 5px 0; }
  .dtsa-on b { font-size: 15px; }
  .dtsa-on span { font-size: 13.5px; }
  .dtsa-big { font-size: 54px; gap: 10px; }
  .dtsa-big.is-word { font-size: 36px; }
  .dtsa-u { font-size: 22px; }
  .dtsa-sub { font-size: 15px; }
  .dtsa-facts { grid-template-columns: minmax(0, 1fr); padding: 3px 0; }
  .dtsa-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 2px 0; border-left: 0; }
  .dtsa-facts dt { font-size: 13.5px; }
  .dtsa-facts dd { margin: 0; text-align: right; font-size: 14.5px; }
  .dtsa-edit .finput { flex: 1 1 160px; width: auto; }
}

/* ---------- holidays: design C (11-04 pick) ---------- */
/* next holiday, the long weekends ahead with leave advice and mini calendars, the whole year by month behind a tap */
.holc { font-size: 15px; line-height: 1.5; }
.holc .ia-head { align-items: center; }
.holc .ia-title { flex: 1 1 220px; color: var(--ink); font-size: 15.5px; font-weight: 700; }
.holc ol { margin: 0; padding: 0; list-style: none; }
.hol-ctl { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hol-yr { display: flex; align-items: center; }
.hol-yr .icon-btn { width: 36px; height: 36px; }
.hol-pane { display: flex; flex-direction: column; gap: 14px; }
.holc-next { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.holc-eb { font-size: 13px; font-weight: 600; color: var(--gold); letter-spacing: .04em; text-transform: uppercase; }
.holc-nn { font-size: 26px; line-height: 1.2; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.holc-nw { font-size: 15.5px; color: var(--body-2); }
.holc-nw b { color: var(--ink); font-weight: 700; }
.holc-lws { display: grid; gap: 10px; }
.holc-h { font-size: 15px; font-weight: 700; color: var(--ink); }
.holc-lws ol { display: grid; gap: 14px; }
.holc-lw { display: grid; gap: 8px; }
.holc-ln { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 15px; color: var(--ink); }
.holc-ln b { font-weight: 700; }
.holc-ln .mono { font-size: 13.5px; color: var(--body-2); }
.holc-len { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.holc-tip { font-size: 14.5px; color: var(--body-2); }
.holc-tip b { color: var(--ink); font-weight: 700; }
.holc-tip.is-plain { color: var(--muted); }
.holc-strip { display: grid; grid-template-columns: repeat(var(--n), minmax(21px, 34px)); gap: 3px; min-width: 0; overflow-x: auto; }
.holc-c { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; height: 40px; border-radius: 6px; min-width: 0; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.holc-c small { font-size: 9.5px; font-weight: 600; line-height: 1.2; color: var(--muted); }
.holc-c b { font-size: 12.5px; font-weight: 500; line-height: 1.2; color: var(--body-2); }
.holc-c.is-we { background: var(--soft); box-shadow: none; }
.holc-c.is-we.is-run { background: var(--ctl); }
.holc-c.is-hol { background: var(--gold); box-shadow: none; }
.holc-c.is-hol small, .holc-c.is-hol b { color: var(--raised); }
.holc-c.is-leave { background: var(--gold-fill); box-shadow: inset 0 0 0 1.5px var(--gold); }
.holc-c.is-leave b, .holc-c.is-leave small { color: var(--ink); }
.holc-c.is-run b { color: var(--ink); font-weight: 600; }
.holc-c.is-hol.is-run b { color: var(--raised); }
.holc-key { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); }
.holc-key span { display: inline-flex; align-items: center; gap: 6px; }
.holc-key i { width: 12px; height: 12px; border-radius: 3px; }
.holc-key .k-h { background: var(--gold); }
.holc-key .k-l { background: var(--gold-fill); box-shadow: inset 0 0 0 1.5px var(--gold); }
.holc-key .k-w { background: var(--ctl); }
.holc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.holc-foot .ia-link { margin: -4px -8px; }
.holc-all { display: flex; flex-direction: column; gap: 12px; }
/* the full list: design A's months */
.hola-list { columns: 2; column-gap: 28px; }
.hola-g { break-inside: avoid; padding-bottom: 12px; }
.hola-m { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-bottom: 2px; }
.hola-r { display: grid; grid-template-columns: 118px minmax(0, 1fr); column-gap: 12px; align-items: baseline; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; font-size: 15px; line-height: 1.4; color: var(--ink); }
.hola-d { font-size: 13px; color: var(--body-2); }
.hola-r.is-past .hola-d, .hola-r.is-past .hola-n { color: var(--muted); }
.hola-r.is-obs .hola-n { color: var(--muted); }
.hola-r.is-next { background: var(--gold-fill); box-shadow: inset 0 0 0 1px var(--gold-line); }
.hola-r.is-next .hola-n { font-weight: 700; }
.hola-tag { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--gold); }
.hola-after { padding: 10px 12px; border-radius: 8px; background: var(--gold-fill); border: 1px solid var(--gold-line); font-size: 15px; color: var(--ink); }
.hola-after b { font-weight: 700; }
@media (max-width: 520px) {
  .holc .hol-ctl { margin-left: 0; flex: 1 1 100%; justify-content: space-between; }
  .holc-tc, .holc-len { display: none; }
  .holc-nn { font-size: 23px; }
  .holc-nw { font-size: 15px; }
  .holc .hol-pane { gap: 12px; }
  .holc-next { padding-bottom: 12px; }
  .holc-lws { gap: 8px; }
  .holc-strip { gap: 2px; }
  .holc-c { height: 36px; border-radius: 4px; }
  .holc-c small { font-size: 8.5px; }
  .holc-c b { font-size: 11px; }
  .hola-list { columns: 1; }
  .hola-r { grid-template-columns: 104px minmax(0, 1fr); font-size: 14.5px; }
}

/* ---------- kpanel: design B (11-04 pick) ---------- */
/* "Facts first": up to three headline facts in large type, the rest in two columns, the summary folded to three lines.
   Above the results (narrower screens) only two of the other facts show; the button opens them with the summary. */
.ia.kpb { gap: 14px; padding: 18px 20px; }
.kpb-top { display: flex; align-items: center; gap: 12px; }
.kpb-mk {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--soft); color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: .02em;
}
.kpb-t { min-width: 0; display: grid; gap: 1px; }
.kpb-h { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.kpb-d { font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.kpb-key { display: grid; grid-template-columns: repeat(var(--k, 3), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 10px; }
.kpb-key li { display: grid; align-content: start; gap: 1px; padding: 10px 10px 10px 12px; border-left: 1px solid var(--line); min-width: 0; }
.kpb-key li:first-child { border-left: 0; }
.kpb-l { font-size: 12.5px; line-height: 1.4; font-weight: 600; color: var(--muted); }
.kpb-v { font-size: 16px; line-height: 1.3; font-weight: 700; color: var(--ink); overflow-wrap: break-word; }
.kpb-n { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.kpb-grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.kpb-f { min-width: 0; display: grid; gap: 1px; align-content: start; }
.kpb-f dt { font-size: 12.5px; line-height: 1.4; font-weight: 600; color: var(--muted); }
.kpb-f dd { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.kpb-f.kpb-web { grid-column: 1 / -1; }
.kpb-f.kpb-web dd { overflow-wrap: break-word; }
.kpb-ab { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.kpb-sum { font-size: 14.5px; line-height: 1.55; color: var(--body); overflow-wrap: anywhere; }
.kpb:not(.open) .kpb-sum { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.kpb-tg { justify-self: start; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin: 0 -8px; font-size: 14px; }
.kpb-tg[hidden] { display: none; }
.kpb-tg[aria-expanded="true"] svg { transform: rotate(180deg); }
.kpb-tg .n { display: none; }
.kpb-src { font-size: 13px; line-height: 1.5; color: var(--muted); }
.kpb-src a { color: var(--link); font-weight: 600; text-decoration: none; }
.kpb-src a:hover { text-decoration: underline; }
.kpb-src .kpb-lic a { color: var(--muted); font-weight: 500; }
/* above the results (narrower screens): two of the other facts, the rest with the summary */
@media (max-width: 1100px) {
  .col > .kpb { margin-bottom: 28px; }
  .col > .kpb:not(.open) .kpb-f.is-more { display: none; }
  .col > .kpb:not(.open) .kpb-f dd { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .col > .kpb:not(.open) .kpb-sum { -webkit-line-clamp: 2; line-clamp: 2; }
  .col > .kpb .kpb-tg .w { display: none; }
  .col > .kpb .kpb-tg .n { display: inline; }
}
@media (max-width: 760px) {
  .ia.kpb { padding: 16px 18px; gap: 12px; }
  .kpb-ab { padding-top: 10px; }
  .kpb-v { font-size: 15.5px; }
}

/* ---------- weather: design A (11-04 pick) ---------- */
/* "Now first": a sentence answers the day, one curve shows the next 24 hours over the rain bars, the week is range bars
   on one shared scale (four days, the rest on request). Narrow cards (phones) put the facts beside the temperature. */
.ia-weather {
  --wx-bg: var(--raised); --wx-well: var(--ia-well); --rain: #3D68C2; --warm: #B07D12; --warm-fill: #F3E6C4;
  gap: 14px; container: wxa / inline-size;
}
:root[data-theme="dark"] .ia-weather { --wx-well: var(--soft); --rain: #86A8EE; --warm: #E2BE6A; --warm-fill: #3A3220; }
.ia-weather .ia-head { flex-wrap: nowrap; align-items: center; gap: 12px; }
.ia-weather .ia-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.wxa-name { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; }
.wxa-reg { font-size: 14.5px; font-weight: 500; color: var(--muted); line-height: 1.35; }
.wxa-u { flex: 0 0 auto; margin-left: auto; }
.ia .wxa-u button { height: 32px; padding: 0 10px; font-size: 14px; min-width: 44px; }
.wx-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wx-ic { flex-shrink: 0; display: block; overflow: visible; }
.wx-ic .ic { stroke-width: 1.6; }
.wx-ic .wx-s { color: var(--gold); stroke: currentColor; }
.wx-ic .wx-c { color: var(--muted); stroke: currentColor; }
.wx-ic .wx-p { color: var(--rain); stroke: currentColor; stroke-width: 1.9; }
.wx-ic .wx-dot { stroke-width: 2.6; }
.wx-ic .wx-fill { fill: var(--wx-bg); }
/* the skeleton: plain blocks, no animation */
.wx-sk { display: flex; flex-direction: column; gap: 14px; }
.wx-sk span { display: block; border-radius: 8px; background: var(--soft); }
.wx-sk .k1 { width: 46%; max-width: 260px; height: 64px; }
.wx-sk .k2 { height: 140px; }
.wx-sk .k3 { height: 150px; }
/* now */
.wxa-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "hl line" "hl facts" "hl obs"; align-items: center; gap: 4px 26px; }
.wxa-hl { grid-area: hl; display: flex; align-items: center; gap: 10px; }
.wxa-t { font-family: var(--mono); font-size: 64px; line-height: 1; font-weight: 500; color: var(--ink); letter-spacing: -0.04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wxa-t span { font-size: 22px; vertical-align: top; position: relative; top: 6px; margin-left: 2px; color: var(--muted); letter-spacing: 0; }
.wxa-line { grid-area: line; font-size: 17px; line-height: 1.4; font-weight: 600; color: var(--ink); text-wrap: pretty; }
.wxa-facts { grid-area: facts; display: flex; flex-wrap: wrap; gap: 0 16px; font-size: 15px; line-height: 1.5; color: var(--body-2); }
.wxa-facts b { font-weight: 600; color: var(--ink); }
.wxa-obs { grid-area: obs; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
/* the next 24 hours */
.wxa-chart { --n: 9; position: relative; padding: 8px 0 0; overflow-x: auto; overscroll-behavior-x: contain; }
.wxa-cols { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(var(--n), minmax(48px, 1fr)); min-width: calc(var(--n) * 48px); margin: 0; padding: 0; list-style: none; }
.wxa-svg { position: absolute; left: 0; top: 8px; height: 62px; width: 100%; min-width: calc(var(--n) * 48px); z-index: 0; overflow: visible; }
.wxa-area { fill: var(--warm-fill); opacity: .7; }
.wxa-pl { fill: none; stroke: var(--warm); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.wxa-c { position: relative; height: 132px; }
.wxa-c.is-now::before { content: ""; position: absolute; left: 3px; right: 3px; bottom: 0; height: 26px; border-radius: 6px; background: var(--soft); }
.wxa-tl { position: absolute; left: 0; right: 0; top: calc(var(--y) * 0.62px - 19px); text-align: center; font-family: var(--mono); font-size: 14.5px; line-height: 1.4; font-weight: 500; color: var(--ink); white-space: nowrap; }
.wxa-dot { position: absolute; left: 50%; top: calc(var(--y) * 0.62px + 4px); width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--raised); border: 2px solid var(--warm); }
.wxa-c.is-now .wxa-dot { background: var(--warm); }
.wxa-bar { position: absolute; left: 50%; bottom: 46px; width: 14px; height: 24px; margin-left: -7px; display: flex; align-items: flex-end; }
.wxa-bar i { display: block; width: 100%; height: calc(var(--r) * 100%); min-height: 2px; border-radius: 3px 3px 1px 1px; background: var(--rain); opacity: .85; }
.wxa-rp { position: absolute; left: 0; right: 0; bottom: 27px; text-align: center; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--rain); }
.wxa-hlab { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-family: var(--mono); font-size: 12.5px; line-height: 1.45; color: var(--muted); white-space: nowrap; }
.wxa-c.is-now .wxa-hlab { color: var(--ink); font-weight: 500; font-family: var(--font); font-size: 13px; }
.wxa-hlab .s { display: none; }
.wxa-key { display: flex; gap: 16px; margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.wxa-key span { display: inline-flex; align-items: center; gap: 6px; }
.wxa-key i { width: 14px; height: 3px; border-radius: 2px; background: var(--warm); }
.wxa-key .k-r { width: 8px; height: 10px; background: var(--rain); }
/* the week */
.wxa-days { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.wxa-d { display: grid; grid-template-columns: 52px 26px 44px 38px minmax(60px, 1fr) 38px; align-items: center; gap: 12px; min-height: 38px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.wxa-d:last-child, .wxa-days:not(.open) .wxa-d:nth-child(4) { border-bottom: 0; }
.wxa-days:not(.open) .wxa-d.is-more { display: none; }
.wxa-d.on { margin: 0 -8px; padding: 0 8px; border-radius: 8px; background: var(--wx-well); --wx-bg: var(--wx-well); }
.wxa-lo, .wxa-hi { white-space: nowrap; }
.wxa-dn { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wxa-dr { font-family: var(--mono); font-size: 13px; color: var(--rain); text-align: right; }
.wxa-dr.is-dim { color: var(--muted); opacity: .7; }
.wxa-lo { font-family: var(--mono); color: var(--muted); text-align: right; }
.wxa-hi { font-family: var(--mono); color: var(--ink); font-weight: 500; }
.wxa-track { position: relative; height: 6px; border-radius: 3px; background: var(--soft); }
.wxa-track i:not(.wxa-now) { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--warm); }
.wxa-now { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--raised); border: 2.5px solid var(--ink); }
.wxa-more { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; margin: -4px 0 -4px -8px; font-size: 14px; }
.wxa-more[aria-expanded="true"] svg { transform: rotate(180deg); }
/* "Not this place?" */
.wx-altw { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: -8px; }
.wx-other { margin: 0 0 0 -8px; height: 28px; font-size: 14px; }
.wx-alts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.wx-alts[hidden] { display: none; }
.wx-alt {
  display: inline-flex; align-items: baseline; gap: 6px; height: 34px; padding: 0 12px; border: 1.5px solid var(--ctl); border-radius: 8px;
  background: var(--raised); color: var(--ink); font-family: var(--font); font-size: 14px; cursor: pointer; white-space: nowrap; line-height: 31px; max-width: 100%;
}
.wx-alt:hover { background: var(--hover); }
.wx-alt-n { font-weight: 600; }
.wx-alt-r { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
/* sources: one line, opens on request */
.wx-src { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-width: 0; }
.wx-cred { flex: 1 1 0; min-width: 0; font-size: 13px; line-height: 1.5; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-src.open .wx-cred { order: 3; flex-basis: 100%; white-space: normal; overflow-wrap: anywhere; }
.wx-more { flex-shrink: 0; height: 26px; margin: -4px -8px -4px auto; font-size: 13.5px; }
.wx-ask { margin-top: -4px; }
.wx-local .ia-foot { margin-top: -4px; }
/* narrow cards (phones): facts beside the temperature, the sentence under them, the hour labels short, one row of hours */
@container wxa (max-width: 440px) {
  .wxa-name, .wxa-reg { line-height: 1.2; }
  .wxa-hero { grid-template-areas: "hl facts" "line line" "obs obs"; gap: 6px 16px; }
  .wxa-hl { gap: 8px; }
  .wxa-hl .wx-ic { width: 52px; height: 52px; }
  .wxa-t { font-size: 52px; }
  .wxa-t span { font-size: 19px; top: 4px; }
  .wxa-facts { flex-direction: column; align-items: flex-start; font-size: 14.5px; line-height: 1.35; }
  .wxa-line { font-size: 16px; }
  .wxa-obs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wx-body { gap: 10px; }
  .wxa-cols { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); min-width: 0; }
  .wxa-svg { min-width: 0; height: 50px; }
  .wxa-c { height: 108px; }
  .wxa-tl { top: calc(var(--y) * 0.5px - 18px); font-size: 13px; }
  .wxa-dot { top: calc(var(--y) * 0.5px + 4px); }
  .wxa-bar { bottom: 42px; height: 16px; }
  .wxa-rp { bottom: 24px; font-size: 11px; }
  .wxa-hlab { bottom: 2px; font-size: 11.5px; }
  .wxa-c.is-now::before { height: 24px; }
  .wxa-hlab .l { display: none; }
  .wxa-hlab .s { display: inline; }
  .wxa-key { margin-top: 4px; }
  .wxa-d { grid-template-columns: 44px 24px 36px 34px minmax(40px, 1fr) 34px; gap: 8px; min-height: 36px; font-size: 14.5px; }
  .wxa-days:not(.open) .wxa-d:nth-child(n+4) { display: none; }
  .wxa-days:not(.open) .wxa-d:nth-child(3) { border-bottom: 0; }
  .wxa-d .wx-ic { width: 24px; height: 24px; }
}

/* ---------- emoji (11-10): one large with its name and Copy, skin tones, the other matches as tiles ---------- */
.emj { gap: 12px; }
.emj-g { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", "EmojiOne Color", var(--font); font-weight: 400; font-variant-emoji: emoji; }
.emj-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.emj-big {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; background: var(--ia-well); color: var(--ink); font-size: 52px; line-height: 1; cursor: pointer;
}
.emj-big:hover { border-color: var(--ctl); }
.emj-info { display: grid; gap: 2px; min-width: 0; flex: 1 1 auto; }
.emj-name { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.emj-meta { margin: 0 0 6px; font-size: 13.5px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.emj-meta .mono { font-family: var(--mono); font-size: 13px; }
.emj .emj-copy { height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; }
.emj-tones { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.emj-tones[hidden] { display: none; }
.emj-tones .ia-lab-t { margin-right: 4px; }
.emj-tone, .emj-t {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; padding: 0; line-height: 1; cursor: pointer;
  border: 1.5px solid transparent; border-radius: 8px; background: var(--ia-key); color: var(--ink);
}
.emj-tone { width: 38px; height: 38px; font-size: 21px; }
.emj-t { width: 44px; height: 44px; font-size: 26px; }
.emj-tone:hover, .emj-t:hover { background: var(--ia-key-hover); }
.emj-tone[aria-pressed="true"], .emj-t[aria-pressed="true"] { border-color: var(--link); background: var(--soft); }
.emj-big:focus-visible, .emj-tone:focus-visible, .emj-t:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.emj-row { display: flex; flex-wrap: wrap; gap: 6px; }
.emj-row[hidden] { display: none; }
@media (max-width: 560px) {
  .emj-main { gap: 12px; }
  .emj-big { width: 72px; height: 72px; font-size: 44px; }
  .emj-name { font-size: 17.5px; }
  .emj-t { width: 42px; height: 42px; font-size: 24px; }
  .emj-tones { gap: 4px; }
  .emj-tone { width: 36px; height: 36px; font-size: 20px; }
}
/* ---------- symbols (11-11): the emoji card's shape, plus how to type it on each system ---------- */
.sym-g { font-family: var(--font); font-variant-emoji: text; font-weight: 400; }
.sym .emj-big { font-size: 48px; }
.sym-ways { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.sym-ways div { padding: 8px 14px 9px; border-left: 1px solid var(--line); min-width: 0; }
.sym-ways div:first-child { border-left: 0; padding-left: 0; }
.sym-ways dt { font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--muted); }
.sym-ways dd { margin: 2px 0 0; display: grid; gap: 1px; font-size: 15px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.sym-ways dd span + span { font-size: 13.5px; color: var(--body-2); }
@media (max-width: 560px) {
  .sym .emj-big { font-size: 40px; }
  .sym-ways { grid-template-columns: minmax(0, 1fr); padding: 3px 0; }
  .sym-ways div { display: flex; gap: 12px; padding: 4px 0; border-left: 0; }
  .sym-ways dt { flex: 0 0 72px; font-size: 13.5px; }
  .sym-ways dd { margin: 0; font-size: 14.5px; }
}

/* ---------- narrower screens ---------- */
@media (max-width: 760px) {
  .answer { margin-bottom: 24px; }
  .ia { padding: 14px 16px 16px; gap: 12px; }
  .ia-big { font-size: 28px; }
  .ia-big .w { font-size: 19px; }
}
@media print { .answer, .kp { display: none !important; } }
