/* c125: adapt existing surfaces to the approved contact window.
   Geometry and the menu/navigation/scroll controllers remain their owners. */
:root {
  --mq-surface: color-mix(in srgb,color-mix(in srgb,var(--bg1) 35%,var(--bg2)) 82%,transparent);
  --mq-surface-ease: cubic-bezier(.22,.61,.36,1);
}
/* c126: select-only comboboxes; source selects keep values but never open OS menus. */
#brief-win .brief-select__trigger {
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  width:100%; min-height:44px; padding:10px 0; border:0; border-bottom:1px solid var(--line);
  border-radius:0; background:transparent; color:var(--ink); text-align:left;
  font:400 13px/1.65 'MQ Manrope',var(--sans); cursor:pointer;
  transition:border-color 240ms ease,color 240ms ease;
}
#brief-win .brief-select__trigger > span:first-child { min-width:0; overflow-wrap:anywhere; }
#brief-win .brief-select__trigger:is(:focus-visible,[aria-expanded="true"]) { outline:none; border-bottom-color:var(--ink2); }
#brief-win .brief-select__trigger[aria-invalid="true"] { border-bottom-color:var(--err); }
.brief-select__arrow { width:7px; height:7px; margin-right:3px; border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:translateY(-2px) rotate(45deg); color:var(--ink2); flex-shrink:0; transition:transform 380ms var(--mq-surface-ease); }
[aria-expanded="true"] > .brief-select__arrow { transform:translateY(2px) rotate(225deg); }
#ov-brief .brief-select__list {
  position:fixed; z-index:40; padding:6px; margin:0; box-sizing:border-box;
  overflow:auto; overscroll-behavior:contain; scrollbar-width:thin;
  border:1px solid var(--line); border-radius:12px;
  background:var(--mq-surface); -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
  box-shadow:0 14px 36px #0002; color:var(--ink);
  font:400 12px/1.6 'MQ Manrope',var(--sans);
}
.brief-select__option { position:relative; padding:9px 30px 9px 10px; border-radius:6px; cursor:pointer; overflow-wrap:anywhere; transition:background-color 160ms ease; }
.brief-select__option.is-active { background:color-mix(in srgb,var(--ink) 6%,transparent); }
.brief-select__option[aria-selected="true"]::after {
  content:''; position:absolute; right:11px; top:50%; width:14px; height:14px; transform:translateY(-50%);
  background:var(--ink2);
  --brief-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m3 7 2.6 2.6L11 4.5' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask:var(--brief-check) center/contain no-repeat; mask:var(--brief-check) center/contain no-repeat;
}
.brief-select__option[aria-disabled="true"] { color:var(--ink3); cursor:default; }
html[data-motion="reduced"] .brief-select__arrow { transition:none; }
@media (prefers-reduced-motion: reduce) { .brief-select__arrow { transition:none; } }
@media (min-width: 961px) {
  html #top .home-language { display: block; position: relative; }
  html #top .top__right > .lang { display: none; }
  #main > .page:not(#home) {
    --sans: 'MQ Manrope',system-ui,sans-serif;
    --mono: 'MQ Plex Mono',ui-monospace,monospace;
    font-family: var(--sans);
  }
}
html #ov-search :is(.mq-search__bar,.mq-search__panel) {
  background: var(--mq-surface);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  font-family: 'MQ Manrope',var(--sans);
  border-color: var(--line);
}
html #manual .ov__scrim {
  background: transparent;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: opacity 720ms var(--mq-surface-ease);
}
html #manual .sheet {
  background: var(--mq-surface);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-radius: 16px; padding: 24px; gap: 18px;
  font-family: 'MQ Manrope',var(--sans);
  transition: opacity 720ms var(--mq-surface-ease),transform 760ms var(--mq-surface-ease);
}
#manual .h3 { font: 400 16px/1.5 'MQ Manrope',var(--sans); letter-spacing: -.02em; }
#manual .p { font: 400 13px/1.65 'MQ Manrope',var(--sans); color: var(--ink2); }
#manual-ta { width: 100%; min-width: 0; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; font: 11px/1.7 'MQ Plex Mono',var(--mono); }
#manual-ta:focus-visible { outline: none; border-bottom-color: var(--ink2); }
#manual .btn { font: 12px/1.5 'MQ Manrope',var(--sans); }
html #manual.is-off :is(.sheet,.ov__scrim) { transition-duration: 560ms; transition-timing-function: cubic-bezier(.32,0,.25,1); }
#manual.is-off { pointer-events: none; }
html :is(#toast,#notice), #talk-win :is(.talk-popover,.talk-tool-status) {
  background: var(--mq-surface);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-color: var(--line); box-shadow: 0 12px 36px #0002;
  font-family: 'MQ Manrope',var(--sans);
}
html :is(#toast,#notice) { font-size: 12px; line-height: 1.6; border-radius: 12px; }
#talk-win .talk-tool-status { font: 11px/1.6 'MQ Plex Mono',var(--mono); }
[data-surface-closing] { pointer-events: none; }
/* Notification slides along its existing level; the resting anchor is unchanged. */
html #toast {
  translate: calc(-50% + 32px) 0;
  transition: translate 420ms cubic-bezier(.4,0,.6,1), opacity 240ms 100ms ease, visibility 0s 420ms;
}
html #toast.is-on {
  translate: -50% 0;
  transition: translate 620ms cubic-bezier(.16,1,.3,1), opacity 160ms ease, visibility 0s;
}
html[data-motion="reduced"] #toast { transition: none; }
html[data-motion="reduced"] #manual :is(.sheet,.ov__scrim) { transition: none; }
@media (prefers-reduced-motion: reduce) {
  html #manual :is(.sheet,.ov__scrim) { transition: none; }
  html #toast { transition: none; }
}
