/* MNKO local candidate; scoped to the widget. */
.mnko-helper {
  --mh-font:"Arial Narrow","Segoe UI",sans-serif; --mh-ink:#173e49;
  --mh-body:#435670; --mh-paper:#f4f9fa; --mh-tint:#eaf4f6; --mh-line:#bfd1d4;
  --mh-right:max(26px,env(safe-area-inset-right)); --mh-bottom:max(clamp(26px,17vh,151px),env(safe-area-inset-bottom));
  position:fixed; z-index:1100; right:var(--mh-right); bottom:var(--mh-bottom);
  max-width:calc(100vw - 24px); width:max-content; color:var(--mh-ink);
  font:400 16px/1.2 var(--mh-font); letter-spacing:normal; text-transform:none;
}
.mnko-helper * {box-sizing:border-box}
.mnko-helper [hidden] {display:none!important}
.mnko-helper button,.mnko-helper input {font:inherit;color:inherit;letter-spacing:normal;text-transform:none}
.mnko-helper button:focus-visible,.mnko-helper a:focus-visible,.mnko-helper input:focus-visible {outline:2px solid #19515c;outline-offset:2px}
.mnko-helper__launch {display:flex;align-items:center;gap:6px;margin-left:auto;height:34px;padding:0 9px;border:1px solid var(--mh-line);border-radius:5px;background:var(--mh-tint);font-size:14px!important;font-weight:700!important;cursor:pointer}
.mnko-helper__panel {position:absolute;right:0;bottom:42px;width:min(292px,calc(100vw - 24px));max-height:min(420px,calc(100dvh - var(--mh-bottom) - 52px));overflow:auto;overscroll-behavior:contain;background:var(--mh-paper);border:1px solid var(--mh-line);border-radius:10px}
.mnko-helper__bar {height:36px;display:flex;align-items:center;justify-content:space-between;padding:0 10px 0 12px;border-bottom:1px solid var(--mh-line);background:var(--mh-tint);font-size:14px;font-weight:700}
.mnko-helper__close {width:26px;height:27px;background:none;border:0;font-size:18px!important;padding:0;cursor:pointer}
.mnko-helper__body {padding:9px 12px 8px}
.mnko-helper__head {display:flex;align-items:center;justify-content:space-between;gap:6px}
.mnko-helper__title {font-size:22px;font-weight:700;line-height:1.02}
.mnko-helper__langs {display:flex;align-items:center;white-space:nowrap;gap:3px;font-size:12px}
.mnko-helper__langs button {background:none;border:0;padding:2px 0;cursor:pointer;white-space:nowrap}
.mnko-helper__langs button[aria-pressed=true] {font-weight:700;text-decoration:underline;text-underline-offset:2px}
.mnko-helper__topics {display:grid;margin:5px 0 6px}
.mnko-helper__topics button {display:flex;align-items:center;justify-content:space-between;text-align:left;gap:5px;padding:2px 0;min-height:26px;color:var(--mh-body);background:none;border:0;border-bottom:1px solid #d7e2e4;cursor:pointer}
.mnko-helper__topics button:hover {text-decoration:underline}
.mnko-helper__form {display:flex;align-items:center;gap:3px;margin:7px 0 0;height:30px;border:1px solid var(--mh-line);border-radius:5px}
.mnko-helper__form input {flex:1;min-width:0;padding:3px 7px;margin:0;border:0;background:none;font-size:14px;color:var(--mh-body)}
.mnko-helper__form input::placeholder {color:var(--mh-body);opacity:1}
.mnko-helper__form button {min-width:28px;height:28px;padding:0 5px;background:none;border:0;cursor:pointer}
.mnko-helper__reply {margin:8px 0 0;max-height:112px;overflow:auto;line-height:1.25;color:var(--mh-body);font-size:14px;white-space:pre-line}
.mnko-helper__reply a {display:block;margin-top:4px;color:var(--mh-ink)}
.mnko-helper__max {display:inline-block;padding-top:7px;color:var(--mh-ink);font-size:14px;text-decoration:underline;text-underline-offset:2px}
@media (max-width:600px) {
  .mnko-helper {--mh-right:max(12px,env(safe-area-inset-right));--mh-bottom:max(12px,env(safe-area-inset-bottom))}
  .mnko-helper__panel {width:min(280px,calc(100vw - 24px));bottom:0;max-height:min(350px,calc(100dvh - var(--mh-bottom) - 12px))}
  .mnko-helper:has(.mnko-helper__launch[aria-expanded=true]) .mnko-helper__launch {visibility:hidden}
  .mnko-helper__form input {font-size:16px}
}
@media (forced-colors:active) {.mnko-helper__topics button {border-bottom:1px solid CanvasText}}

.mnko-helper__reply .mnko-helper__pick {display:block;text-align:left;padding:4px 0;color:var(--mh-ink);text-decoration:underline;background:none;border:0;cursor:pointer}


/* Give the home page assistant its own row above the section cards. */
.home-main > .mnko-helper {
  position: relative;
  z-index: auto;
  inset: auto;
  width: min(100%, 420px);
  max-width: 100%;
  margin: 16px 0 16px auto;
}

.home-main > .mnko-helper .mnko-helper__launch {
  height: 44px;
  margin-inline: auto 0;
}

.home-main > .mnko-helper .mnko-helper__panel {
  position: static;
  width: 100%;
  margin-top: 8px;
}

.home-main > .mnko-helper:has(.mnko-helper__launch[aria-expanded=true]) .mnko-helper__launch {
  visibility: visible;
}
