/* OS03 single Lan shell candidate; not enqueued until owner-approved flag ON. */
.mk-lan-os03{position:fixed;right:16px;bottom:16px;z-index:99989;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#24332e;font-size:14px}
.mk-lan-os03 *{box-sizing:border-box}
.mk-lan-os03-open{border:0;border-radius:50px;background:#246f56;color:#fff;padding:14px 23px;box-shadow:0 8px 24px #172e2030;font-weight:700;cursor:pointer}
.mk-lan-os03-open:focus-visible,.mk-lan-os03 button:focus-visible,.mk-lan-os03 a:focus-visible{outline:3px solid #e8a64d;outline-offset:2px}
.mk-lan-os03-dialog{display:flex;flex-direction:column;gap:12px;position:absolute;right:0;bottom:62px;width:min(370px,calc(100vw - 24px));max-height:min(76vh,670px);overflow:auto;border:1px solid #d4dfd8;border-radius:18px;background:#fff;padding:15px;box-shadow:0 14px 45px #19362c36}
.mk-lan-os03 [hidden]{display:none!important}
.mk-lan-os03-top{display:flex;align-items:center;justify-content:space-between;color:#205b47;border-bottom:1px solid #edf0ed;padding-bottom:8px}
.mk-lan-os03-top strong{font-size:16px}
.mk-lan-os03-top button{border:0;background:#f2f5f2;font-size:25px;color:#394c43;border-radius:50%;width:38px;height:38px;cursor:pointer}
.mk-lan-os03-status{background:#edf5ef;border-radius:9px;padding:9px;color:#3a5142;margin:0;line-height:1.5}
.mk-lan-os03-results{display:flex;flex-direction:column;gap:9px;overflow:auto;max-height:310px}
.mk-lan-os03-card{border:1px solid #e5ebe7;border-radius:11px;padding:11px;background:#fcfdfb}
.mk-lan-os03-card strong{display:block;font-size:14px;margin-bottom:6px}
.mk-lan-os03-card p{margin:0 0 9px;line-height:1.5}
.mk-lan-os03-buttons{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}
.mk-lan-os03-buttons button,.mk-lan-os03-form button,.mk-lan-os03-actions button,.mk-lan-os03-confirm button{font:inherit;border:1px solid #246f56;border-radius:8px;padding:8px 10px;cursor:pointer;background:#246f56;color:#fff}
.mk-lan-os03 button:disabled{opacity:.42;cursor:not-allowed}
.mk-lan-os03-form{display:flex;flex-direction:column;gap:7px}
.mk-lan-os03-form label{font-weight:600}
.mk-lan-os03-form input,.mk-lan-os03-card input{border:1px solid #becfc3;border-radius:8px;padding:10px;width:100%;font:inherit}
.mk-lan-os03-actions{display:flex;gap:12px;align-items:center;justify-content:space-between}
.mk-lan-os03-actions a,.mk-lan-os03-card a{color:#246f56;text-decoration:underline;font-weight:600}
.mk-lan-os03-small{font-size:12px;color:#687a70;line-height:1.55;margin:0}
.mk-lan-os03-confirm{border:2px solid #d6b276;border-radius:11px;background:#fff8ea;padding:12px}
.mk-lan-os03-confirm p{line-height:1.5}
.mk-lan-os03-confirm button:last-child{background:#fff;color:#246f56}
@media(max-width:480px){
  .mk-lan-os03{
    right:max(16px,env(safe-area-inset-right,0px));
    bottom:calc(76px + env(safe-area-inset-bottom,0px));
  }
  .mk-lan-os03-dialog{
    right:0;
    bottom:62px;
    width:min(358px,calc(100dvw - 32px));
    max-width:calc(100dvw - 32px);
    max-height:min(68dvh,calc(100dvh - 155px));
  }
}
@media(prefers-reduced-motion:reduce){.mk-lan-os03 *{transition:none!important}}

/* R7: real navigation destinations and bounded visible shopping context. */
.mk-lan-os03-lanes{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.mk-lan-os03-lanes a,.mk-lan-os03-lanes button{display:flex;align-items:center;justify-content:center;min-height:40px;padding:8px;border:1px solid #d4dfd8;border-radius:8px;background:#f6f8f6;color:#205b47;text-align:center;text-decoration:none;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.mk-lan-os03-context{margin:0;padding:8px 10px;border-left:3px solid #246f56;background:#f5f8f5;line-height:1.5;font-size:13px}
.mk-lan-os03-reset{align-self:flex-start;border:0;background:transparent;color:#246f56;font:inherit;font-size:12px;text-decoration:underline;cursor:pointer;padding:0}
.mk-lan-os03-buttons a{display:inline-flex;align-items:center;padding:8px 0}
.mk-lan-os03-results{flex:1 1 auto;min-height:64px}
.mk-lan-os03-form{flex:0 0 auto}

/* R8: keep the answer readable after navigation and need labels are shown. */
.mk-lan-os03-context-row{display:flex;align-items:center;gap:8px}
.mk-lan-os03-context-row .mk-lan-os03-context{flex:1 1 auto;min-width:0}
.mk-lan-os03-context-row .mk-lan-os03-reset{flex:0 0 64px;align-self:center;min-height:40px}
.mk-lan-os03-answer{white-space:pre-line;overflow-wrap:anywhere}
.mk-lan-os03-card{flex:0 0 auto}
@media(max-width:480px){
  .mk-lan-os03-open[aria-expanded="true"]{visibility:hidden}
  .mk-lan-os03-dialog{
    position:fixed;
    top:calc(8px + env(safe-area-inset-top,0px));
    right:8px;
    bottom:calc(8px + env(safe-area-inset-bottom,0px));
    left:8px;
    width:auto;
    max-width:none;
    height:auto;
    max-height:none;
    padding:12px;
    gap:8px;
    overflow:hidden;
  }
  .admin-bar .mk-lan-os03-dialog{top:54px}
  .mk-lan-os03-dialog > :not(.mk-lan-os03-results){flex-shrink:0}
  .mk-lan-os03-dialog #mk-lan-os03-status{margin:0;font-size:13px;line-height:1.35}
  .mk-lan-os03-dialog #mk-lan-os03-status[data-passive="1"]{display:none}
  .mk-lan-os03-context{font-size:12px;line-height:1.35;padding:6px 8px}
  .mk-lan-os03-results{flex:1 1 160px;min-height:96px;max-height:none;overscroll-behavior:contain}
  .mk-lan-os03-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:end}
  .mk-lan-os03-form label{grid-column:1 / -1;font-size:13px;line-height:1.35}
  .mk-lan-os03-form input{min-width:0;min-height:44px;font-size:16px}
  .mk-lan-os03-form button{min-height:44px;white-space:nowrap}
  .mk-lan-os03-small{font-size:11px;line-height:1.35}
}
@media(max-width:480px) and (max-height:620px){
  .mk-lan-os03-dialog{gap:6px;padding:10px}
  .mk-lan-os03-lanes{display:flex;overflow-x:auto;overscroll-behavior:contain}
  .mk-lan-os03-lanes a,.mk-lan-os03-lanes button{flex:0 0 auto;min-height:40px;white-space:nowrap}
  .mk-lan-os03-top{padding-bottom:4px}
  .mk-lan-os03-context-row .mk-lan-os03-reset{min-height:36px}
  .mk-lan-os03-results{min-height:64px}
}
