.side .native-view {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 9px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}
.top-options .top-theme[data-controls][hidden] {
  display:inline-flex !important;
  visibility:hidden;
}
.top-options .top-lang[data-controls][hidden] {
  display:block !important;
  visibility:hidden;
}
.side .native-view:hover,
.side .native-view[aria-current="page"] {
  color: var(--accent-ink);
  background: var(--tint);
}
/* A completed render removes aria-current from each inactive app button. */
.side:has(button[data-view]:not([aria-current])) .native-view,
.side:not(:has(button[data-view]:not([aria-current]))) button[data-view] {
  display: none;
}
.panel:has(:is(#screen-query, #screen-replace):not([hidden])) {
  width: min(100%, 680px);
  min-width: 0;
  min-height: 0;
  justify-self: start;
  padding: clamp(16px, 2vw, 26px);
}
.workspace:has(:is(#screen-query, #screen-replace):not([hidden])) {
  min-height: 0;
}
.panel:has(:is(#screen-query, #screen-replace):not([hidden])) .brand-grid {
  display: block;
}
.panel:has(:is(#screen-query, #screen-replace):not([hidden])) .guide {
  display: none;
}
.guide .compact-guide-link:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}
.exchange-card {border:1px solid var(--line);border-radius:10px;padding:12px 15px;}
.exchange-head {display:flex;align-items:center;justify-content:space-between;gap:8px;}
.exchange-card dl {margin:12px 0 0;}
.exchange-card dl>div {display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:6px 0;}
.exchange-card dt,.exchange-card dd {margin:0;overflow-wrap:anywhere;}
.exchange-card dt {color:var(--quiet);}
.exchange-warning {padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--ribbon);}
.exchange-consent {display:flex;align-items:center;gap:9px;margin:12px 0;}
.exchange-consent input[type=checkbox] {width:17px;height:17px;min-height:0;padding:0;flex:0 0 auto;}
#vx-form:has(#vx-confirmation:not([hidden])) > .field-label,
#vx-form:has(#vx-confirmation:not([hidden])) > .control {display:none;}
.guide .compact-guide-link span[lang] {display:none;}
html[lang="zh-CN"] .guide .compact-guide-link span[lang="zh-CN"],
html[lang="zh-TW"] .guide .compact-guide-link span[lang="zh-TW"],
html[lang="en"] .guide .compact-guide-link span[lang="en"],
html[lang="ru"] .guide .compact-guide-link span[lang="ru"] {display:inline;}
@media(max-width:700px) {
  .side .native-view {
    justify-content: center;
    min-height: 42px;
    padding: 8px 3px;
    gap: 3px;
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .panel:has(:is(#screen-query, #screen-replace):not([hidden])) {width:100%;}
}
