/* Shared controls and layout. Page styles compose these components. */
.skip-link {
  position: fixed; z-index: 70; top: var(--s2); left: var(--s4);
  padding: var(--s2) var(--s3); border: 1px solid var(--field-border);
  border-radius: var(--r-md); background: var(--sheet); color: var(--link);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; }
/* Titles and heads are set in the chart's serif; a head shrunk to a label goes back to the UI face in its page. */
h1, h2 { font-family: var(--font-display); font-weight: 500; font-optical-sizing: auto; }
/* At 18–24 px the Cyrillic of Piazzolla needs air between words; titles break into even lines. */
h1, h2, .register__title, .result-title, .source-title { word-spacing: 0.06em; text-wrap: balance; }
h1 { margin: 0; font-size: var(--fs-xl); line-height: 1.25; }
h2 { margin: var(--s6) 0 var(--s3); font-size: var(--fs-lg); line-height: 1.3; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.meta, .muted { color: var(--ink-3); }
.meta { font-size: var(--fs-xs); line-height: 1.4; overflow-wrap: anywhere; }
.message { font-size: var(--fs-sm); overflow-wrap: anywhere; }
.message:empty { display: none; }
.message[role="alert"], .field-error { color: var(--bad); }
.source-link { color: var(--link); }
.id, .kbd { font: 400 var(--fs-xs)/1.4 var(--font-id); }
.id { color: var(--ink-2); overflow-wrap: anywhere; }
.kbd { padding: 0 5px; border: 1px solid var(--field-border); border-radius: var(--r-sm); background: var(--sheet-2); }
.icon { display: inline-flex; flex: none; width: 20px; height: 20px; align-items: center; justify-content: center; }
.icon svg { width: 100%; height: 100%; }
.icon--external { width: 12px; height: 12px; }

/* The bar has its final height before /me arrives; overlays never move the page. */
.app-bar {
  position: relative; z-index: 20; display: flex; align-items: center; gap: var(--s4);
  width: 100%; height: 48px; padding: 0 var(--s5); background: var(--binding); color: var(--binding-ink);
}
.app-bar__brand {
  display: inline-flex; align-items: center; min-height: 44px;
  flex: none; font: 500 1.125rem/1.45 var(--font-display); letter-spacing: 0.14em;
  color: var(--binding-ink); text-decoration: none;
}
.app-bar__section { display: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); }
.app-bar__section::before { content: "· "; }
.app-bar__panel { display: flex; flex: 1; align-self: stretch; align-items: center; gap: var(--s4); min-width: 0; }
.app-nav { display: flex; align-self: stretch; align-items: stretch; gap: var(--s4); }
.app-nav__item {
  display: inline-flex; align-items: center; flex: none; gap: var(--s2); min-height: 48px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--binding-ink-muted); text-decoration: none;
  /* The track line: a coral rule run under the words, from their start, on hover and at the current place. */
  background: linear-gradient(var(--action), var(--action)) 0 calc(50% + 14px) / 0 2px no-repeat;
  transition: background-size 200ms cubic-bezier(0.16, 1, 0.3, 1), color 150ms ease-out;
}
.app-nav__item:hover, .app-nav__item[aria-current="page"] { color: var(--binding-ink); background-size: 100% 2px; text-decoration: none; }
.app-bar__end { display: flex; align-items: center; gap: var(--s2); margin-left: auto; flex: none; }
.app-bar__button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 40px;
  padding: 0 var(--s2); border: 1px solid transparent; border-radius: var(--r-md);
  color: var(--binding-ink); font-size: var(--fs-sm); cursor: pointer;
}
.app-bar__button:hover { border-color: var(--binding-ink-muted); }
.app-bar__email { display: block; max-width: 24ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu > .app-bar__button { min-width: 0; max-width: 100%; min-height: 36px; height: 36px; border-color: var(--binding-ink-muted); background: transparent; }
.app-bar__email { min-width: 0; }
.app-bar__menu { display: none; }
.account-menu { position: relative; margin-left: auto; min-width: 0; }
.account-menu > .menu { position: absolute; top: calc(100% + 4px); right: 0; }
.app-bar :focus-visible { outline-color: var(--focus-on-binding); }
.app-bar .menu :focus-visible, .app-bar .theme-options :focus-visible { outline-color: var(--focus); }
.app-bar__error { position: absolute; top: 100%; left: var(--s4); right: var(--s4); margin: var(--s2) 0 0; }

.page { width: 100%; max-width: 1200px; margin: 0 auto; padding: var(--s5) var(--s5) var(--s8); }
.page--narrow { max-width: 880px; }
.page--wide { max-width: none; padding-right: var(--s4); padding-left: var(--s4); }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); }
.page-header > * { min-width: 0; }
.page-header p { margin: var(--s2) 0 0; color: var(--ink-2); font-size: var(--fs-sm); }
.page-header p.meta { color: var(--ink-3); font-size: var(--fs-xs); }
.library-header > p { grid-area: 2 / 1 / 3 / -1; }
.sheet { min-width: 0; padding: var(--s5); border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--sheet); }
.sheet__section + .sheet__section { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--rule); }
.library-sheet:has(#conversation-history[open]) .results-summary:has(#results-heading:not([hidden])) {
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
}
.button-group { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none; gap: var(--s2);
  min-width: var(--btn-width, max-content); min-height: 40px; padding: 0 var(--s4);
  border: 1px solid transparent; border-radius: var(--r-md);
  font: 500 var(--fs-md)/1.45 var(--font-ui); text-align: center; text-decoration: none; cursor: pointer;
  transition: color 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out;
}
.btn:hover { text-decoration: none; }
.btn:active:not(:disabled) { box-shadow: var(--shadow-active); }
/* The coral plate is the one filled control of a page; its edge is the track colour, which holds 3:1 on paper. */
.btn-primary { background: var(--action); border-color: var(--track); color: var(--on-action); font-weight: 600; }
.btn-primary:hover { background: var(--action-hover); }
.btn-secondary { background: var(--sheet); border-color: var(--field-border); color: var(--ink); padding: 0 14px; }
.btn-secondary:hover { background: var(--sheet-2); }
.btn-quiet { min-height: 32px; padding: 0 6px; border: 0; background: transparent; color: var(--link); }
.btn-quiet:hover { text-decoration: underline; }
.btn-quiet:disabled { background: transparent !important; border-color: transparent !important; font-weight: 400; text-decoration: none; }
/* The key of a disabled button is a hollow hairline box, so the pair reads as off at a glance. */
.btn:disabled .kbd { border-color: var(--rule); background: transparent; color: inherit; }
.btn-danger { background: var(--sheet); border-color: var(--bad); color: var(--bad); padding: 0 14px; }
.btn-danger:hover { background: var(--bad-bg); }
.btn-danger-solid { background: var(--bad); color: var(--button-ink); }
.btn-danger-solid:hover { border-color: var(--bad); }
.btn-sm { min-height: 32px; font-size: var(--fs-sm); }
.btn-icon { min-width: 36px; width: 36px; min-height: 36px; padding: 0; }
.btn[aria-busy="true"] { cursor: progress; }
/* A page may set --btn-width in its CSS to the idle label's width for busy text. */
.button-group > .btn-danger, .button-group > .btn-danger-solid { margin-left: var(--s4); }

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]), select, textarea, .input {
  min-width: 0; max-width: 100%; width: 100%; min-height: 40px; padding: 0 var(--s3);
  border: 1px solid var(--field-border); border-radius: var(--r-md); background: var(--sheet); color: var(--ink);
  font: 400 var(--fs-md)/1.45 var(--font-ui);
}
textarea { min-height: 112px; padding: 10px 12px; resize: vertical; }
select { appearance: auto; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--focus); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad); }
.field { display: grid; gap: var(--s2); min-width: 0; }
.field + .field { margin-top: var(--s4); }
.field > label, .field__label, label.field { color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; }
.field__hint { color: var(--ink-3); font-size: var(--fs-sm); font-weight: 400; }
.field-error { font-size: var(--fs-sm); }
.problem-report { min-width: 0; margin-block: var(--s2); }
.problem-report summary { width: fit-content; color: var(--link); cursor: pointer; }
.problem-report form:not([hidden]), .problem-report fieldset { display: grid; gap: var(--s2); }
.problem-report fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.problem-report-choice { display: flex; align-items: center; gap: var(--s2); }
.problem-report textarea, .problem-report-decision textarea { width: 100%; min-height: 56px; }
.problem-report .message:empty { margin: 0; }
.problem-report-row { overflow-wrap: anywhere; }
.problem-report-row p { white-space: pre-wrap; }
.rating-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.rating-scale { display: flex; flex-wrap: wrap; }
.rating-microscope {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-2); cursor: pointer;
}
.rating-scope { font-size: 26px; line-height: 1; filter: grayscale(1); opacity: .35; transition: opacity .12s, filter .12s; }
.rating-microscope.is-filled .rating-scope { filter: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .rating-scope { transition: none; } }
.rating-microscope:focus-visible, .rating-reason:focus-within { outline: 2px solid var(--focus); outline-offset: -2px; }
.rating-microscope[aria-disabled="true"] { cursor: wait; }
.rating-label, .rating-status { margin: var(--s1) 0; }
.rating-label:empty, .rating-status:empty { margin: 0; }
.rating-comment-panel { margin-top: var(--s2); }
.rating-comment-panel .rating-actions { margin-top: var(--s2); }
.rating-reasons { min-width: 0; margin: 0 0 var(--s3); padding: 0; border: 0; }
.rating-reason-chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.rating-reason {
  display: flex; align-items: center; gap: var(--s2); min-height: 44px;
  padding: var(--s1) var(--s2); border: 1px solid var(--field-border);
  border-radius: var(--r-md); background: var(--sheet); color: var(--ink); cursor: pointer;
}
.rating-reason:has(input:checked) { border-color: var(--link); background: var(--sheet-2); }
@media (max-width: 600px) {
  .rating-microscope { width: 44px; height: 44px; }
}
.file-pick { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.file-name { min-width: 0; overflow-wrap: anywhere; font-size: var(--fs-sm); color: var(--ink-2); }
.file-pick:focus-within label.btn { outline: 2px solid var(--focus); outline-offset: 2px; }

.disclosure { border-top: 1px solid var(--rule); }
.disclosure > summary { min-height: 40px; padding: 10px 0; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.disclosure__hint { margin-left: var(--s2); font-weight: 400; color: var(--ink-3); overflow-wrap: anywhere; }
.disclosure[open] > summary { margin-bottom: var(--s3); }
.menu {
  z-index: 30; display: flex; flex-direction: column; min-width: min(220px, calc(100vw - 16px)); max-width: calc(100vw - 16px);
  padding: var(--s1); border: 1px solid var(--field-border); border-radius: var(--r-lg);
  background: var(--sheet); color: var(--ink); box-shadow: var(--shadow-overlay);
  animation: menu-in 180ms ease-out;
}
.menu__item {
  display: flex; align-items: center; gap: var(--s2); width: 100%; min-height: 40px; padding: var(--s2) var(--s3);
  border-radius: var(--r-sm); color: var(--ink); font: 400 var(--fs-sm)/1.45 var(--font-ui);
  text-align: left; text-decoration: none; overflow-wrap: anywhere; cursor: pointer;
}
.menu__item:hover, .menu__item:focus-visible { background: var(--sheet-2); text-decoration: none; }
.menu__item--danger { color: var(--bad); }
.menu__label { margin: 0; padding: var(--s2) var(--s3); color: var(--ink-3); font-size: var(--fs-xs); overflow-wrap: anywhere; }
.menu__sep { width: 100%; margin: var(--s1) 0; border: 0; border-top: 1px solid var(--rule); }
@keyframes menu-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.register { list-style: none; padding: 0; margin: 0; }
.register__row { position: relative; min-width: 0; padding: var(--s4) 0; border-top: 1px solid var(--rule); }
.register__row:has(> .register__no) { padding-left: calc(3ch + var(--s3)); }
.register__no { position: absolute; top: var(--s4); left: 0; width: 3ch; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.register__title { margin: 0; font: 600 1.125rem/1.35 var(--font-display); overflow-wrap: anywhere; }
.register__meta { margin: var(--s1) 0 var(--s2); color: var(--ink-2); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.register__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--s2); margin-top: var(--s2); }
.plate { min-width: 0; margin: var(--s3) 0; padding: var(--s3) var(--s4); border: 0; border-radius: var(--r-md); background: var(--plate); color: var(--ink); }
.plate__line { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s3); color: var(--ink-3); font: 400 var(--fs-xs)/1.4 var(--font-ui); overflow-wrap: anywhere; }
.plate__no { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.plate__open { margin-left: auto; color: var(--link); font-weight: 600; }
.plate__text { margin: 6px 0 0; max-width: 72ch; font: 400 var(--fs-read)/1.6 var(--font-source); color: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.plate--chosen { outline: 2px solid var(--track); outline-offset: 0; }
.plate--muted { color: var(--ink-2); }
mark.hit { color: var(--pencil-ink); background: var(--pencil); border-radius: var(--r-sm); }

.chip { display: inline-flex; align-items: center; gap: var(--s2); min-height: 24px; padding: 0 var(--s2); border-radius: var(--r-sm); font-size: var(--fs-xs); font-weight: 600; }
.chip-ok { color: var(--ok); background: var(--ok-bg); }
.chip-warn { color: var(--warn); background: var(--warn-bg); }
.chip-bad { color: var(--bad); background: var(--bad-bg); }
.chip-info { color: var(--info); background: var(--info-bg); }
.chip-off { color: var(--ink-3); background: var(--sheet-2); }
.mark-ok, .mark-warn, .mark-info, .mark-bad, .mark-off { display: inline-block; position: relative; flex: none; width: 10px; height: 10px; vertical-align: baseline; }
.mark-ok { border-radius: 50%; background: var(--ok); }
.mark-warn { border: 1.5px solid var(--warn); border-radius: 50%; overflow: hidden; }
.mark-warn::before { content: ""; position: absolute; inset: 0 50% 0 0; background: var(--warn); }
.mark-info { border: 1.5px solid var(--info); border-radius: 50%; }
.mark-bad { width: 8px; height: 8px; margin: 1px; background: var(--bad); transform: rotate(45deg); }
.mark-off::before { content: ""; position: absolute; top: 4px; left: 0; width: 10px; height: 2px; background: var(--ink-3); }
.badge { display: inline-flex; flex: none; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 var(--s1); border-radius: 999px; background: var(--warn); color: var(--sheet); font-size: var(--fs-xs); line-height: 1; font-variant-numeric: tabular-nums; }
.badge--plain { background: var(--sheet-2); color: var(--ink-2); }
.beta-badge { vertical-align: middle; border-radius: var(--r-sm); font-weight: normal; }
/* In the bar Beta is a squared hairline mark, not a lit pill. */
.app-bar .beta-badge { border: 1px solid currentColor; background: transparent; color: inherit; }
.notice { display: flex; align-items: baseline; gap: var(--s2); min-width: 0; padding: var(--s3) var(--s4); border: 1px solid; border-radius: var(--r-md); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.notice > :not([class^="mark-"]) { min-width: 0; }
.notice > p { margin: 0; }
.notice-warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn); }
.notice-bad { color: var(--bad); background: var(--bad-bg); border-color: var(--bad); }
.notice-ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok); }
.notice-info { color: var(--info); background: var(--info-bg); border-color: var(--info); }

.tabs { display: flex; min-width: 0; max-width: 100%; overflow-x: auto; scroll-snap-type: x proximity; border-bottom: 1px solid var(--rule); }
.tabs > [role="tab"] { display: inline-flex; align-items: center; justify-content: center; flex: none; gap: var(--s2); min-height: 44px; padding: 0 var(--s3); border-bottom: 2px solid transparent; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; scroll-snap-align: start; }
.tabs > [aria-selected="true"] { color: var(--ink); border-bottom-color: var(--track); }
.segmented { display: inline-flex; flex-wrap: wrap; max-width: 100%; border: 1px solid var(--field-border); border-radius: var(--r-md); }
.segmented > button { min-height: 40px; padding: 0 var(--s3); border-radius: var(--r-sm); color: var(--ink-2); font-size: var(--fs-sm); cursor: pointer; }
.segmented > [aria-pressed="true"] { background: var(--sheet-2); color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--track); }
.table { width: 100%; border-collapse: collapse; overflow-wrap: normal; }
.table th { background: var(--sheet-2); color: var(--ink-2); font-size: var(--fs-xs); font-weight: 600; text-align: left; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.table td { font-size: var(--fs-sm); }
.table .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.empty { padding: var(--s5) 0; color: var(--ink-2); }
.empty p { margin: 0 0 var(--s3); }
.skeleton { min-height: 1em; border-radius: var(--r-sm); background: var(--sheet-2); }
.skeleton + .skeleton { margin-top: var(--s3); }
.progress { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s3); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.progress progress { min-width: 0; max-width: 100%; flex: 1; }

.toast-region { position: fixed; z-index: 60; left: var(--s4); bottom: calc(var(--toast-bottom, 0px) + var(--s4)); display: grid; gap: var(--s2); width: max-content; max-width: min(480px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border: 1px solid var(--field-border); border-radius: var(--r-lg); background: var(--ink); color: var(--sheet); box-shadow: var(--shadow-overlay); overflow-wrap: anywhere; font-size: var(--fs-sm); }
.toast > span { min-width: 0; flex: 1; }
.toast__close { display: inline-flex; flex: none; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; color: inherit; cursor: pointer; }
.toast__close:focus-visible { outline-color: var(--sheet); }
.dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: var(--s5); border: 1px solid var(--field-border); border-radius: var(--r-lg); background: var(--sheet); color: var(--ink); box-shadow: var(--shadow-overlay); }
.dialog::backdrop { background: var(--shadow-color); }
.dialog h2 { margin-top: 0; }
.dialog p { overflow-wrap: anywhere; }
.dialog__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.confirm-strip, .ms-confirm { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--rule); }
.confirm-strip__text, .ms-confirm-text { font-size: var(--fs-sm); color: var(--ink-2); }
button.ms-danger { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--bad); border-radius: var(--r-md); color: var(--bad); background: var(--sheet); cursor: pointer; }

@media (max-width: 900px) {
  .app-bar__section { display: block; }
  .app-bar__menu { display: inline-flex; }
  .app-bar__panel { display: none; position: fixed; top: 48px; left: 0; right: 0; max-height: calc(100dvh - 48px); overflow-y: auto; padding: var(--s1) var(--s4); border: 1px solid var(--field-border); border-radius: 0 0 var(--r-lg) var(--r-lg); background: var(--sheet); color: var(--ink); box-shadow: var(--shadow-overlay); }
  .app-bar--menu-open .app-bar__panel { display: flex; flex-direction: column; align-items: stretch; gap: 0; animation: menu-in 180ms ease-out; }
  .app-bar--menu-open .app-bar__panel :focus-visible { outline-color: var(--focus); }
  .app-nav { flex-direction: column; gap: 0; }
  .app-nav__item { min-height: 44px; padding: var(--s2) var(--s3); color: var(--ink-2); }
  .app-nav__item:hover, .app-nav__item[aria-current="page"] { color: var(--ink); background: var(--sheet-2); }
  .app-nav__item[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--track); text-decoration-thickness: 2px; }
  .app-bar__panel .account-menu { margin-left: 0; border-top: 1px solid var(--rule); }
  .app-bar__panel .account-menu > .app-bar__button { display: none; }
  .app-bar__panel .account-menu > .menu { position: static; min-width: 0; max-width: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .app-bar__panel .account-menu > .menu { padding-left: 0; padding-right: 0; }
  .app-bar__email { max-width: 18ch; }
}
@media (max-width: 600px) {
  .page { padding: var(--s4) var(--s4) var(--s8); }
  .sheet { margin-left: calc(-1 * var(--s4)); margin-right: calc(-1 * var(--s4)); padding: var(--s4); border-left: 0; border-right: 0; border-radius: 0; }
  .app-bar { padding: 0 var(--s2); gap: var(--s1); }
  .app-bar__section { flex: 1; }
  .app-bar__end { gap: var(--s1); }
  .app-bar__email { display: none; }
  .app-bar__button { min-height: 44px; padding: 0 var(--s1); }
  .page-header { flex-direction: column; }
  .library-header > p + .library-stats { grid-row: 3; }
  .page-header > .btn, .page-header > .button-group { width: 100%; }
  .button-group, .dialog__actions { flex-direction: column; align-items: stretch; }
  .button-group > .btn { width: 100%; min-width: 0; }
  .button-group > .btn-danger, .button-group > .btn-danger-solid { margin-left: 0; margin-top: var(--s4); }
  .btn, .segmented > button, button.ms-danger { min-height: 44px; }
  .btn-quiet { min-height: 44px; }
  .btn-icon, .app-bar__hints { width: 44px; min-width: 44px; min-height: 44px; }
  .problem-report > summary, .problem-report-choice, .problem-report .btn { min-height: 44px; }
  /* The same :not() list as the base rule, so this later rule wins (coral-ewm); a shorter list lost to it. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]), select, textarea, .input { min-height: 44px; }
  .menu__item, .disclosure > summary { min-height: 44px; }
  .disclosure__hint { display: block; margin-left: 1.1rem; }
  .register__actions { justify-content: flex-start; }
  .table thead { display: none; }
  .table tbody, .table tr { display: block; width: 100%; }
  .table tr { padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
  .table td { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--s3); padding: var(--s1) var(--s2); border: 0; }
  .table td::before { content: attr(data-label); color: var(--ink-2); font-weight: 600; text-align: left; }
  .table .numeric { text-align: left; }
  .toast-region { width: calc(100vw - 32px); bottom: calc(var(--toast-bottom, 25dvh) + var(--s4)); }
  .toast__close { min-width: 44px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
}

/* Hints: one shared tooltip, shown for [data-tip] on hover and focus; the (i) button is the visible handle. */
.app-bar__hints { min-width: 36px; min-height: 36px; }
.app-bar__hints[aria-pressed="true"] { border-color: var(--binding-ink-muted); }
.app-bar__hints[aria-pressed="false"] { color: var(--binding-ink-muted); }
.tooltip { position: absolute; z-index: 50; max-width: min(22rem, calc(100vw - 16px)); padding: var(--s2) var(--s3); border: 1px solid var(--field-border); border-radius: var(--r-lg); background: var(--sheet); color: var(--ink); box-shadow: var(--shadow-overlay); font-size: var(--fs-sm); font-weight: 400; line-height: 1.4; }
.tooltip::before { content: ""; position: absolute; inset-inline: 0; bottom: 100%; height: 9px; }
.tooltip[data-placement="above"]::before { bottom: auto; top: 100%; }
.tooltip[hidden] { display: none; }
.info-tip { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink-2); cursor: help; }
.info-tip::after { content: ""; position: absolute; inset: -.6rem; }
.info-tip:hover { color: var(--track); }
.info-tip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 600px) { .info-tip { width: 44px; height: 44px; min-height: 44px; } .info-tip::after { content: none; } }
