#tom-launch{display:inline-flex;gap:5px;align-items:center;padding:0 8px;min-height:44px;background:transparent;border:1px solid #b6c7e433;border-radius:8px;color:#e9eefb;font:500 13px Satoshi,sans-serif;cursor:pointer}
#tom-launch canvas{width:32px;height:32px}
#tom-launch canvas[hidden]{display:none}
#tom-launch.tom-is-hidden span{display:inline}
#tom-panel{position:fixed;z-index:90;right:18px;top:76px;width:365px;max-height:calc(100dvh - 100px);overflow:auto;background:#101622;border:1px solid #b6c7e433;border-radius:14px;box-shadow:0 16px 60px #0007;color:#e9eefb;font:14px/1.6 Satoshi,sans-serif;padding:18px}
#tom-panel[hidden]{display:none}
#tom-panel *{box-sizing:border-box}
#tom-panel .tom-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
#tom-panel .tom-head{position:sticky;top:-18px;background:#101622;z-index:2;padding-block:8px}
#tom-panel .tom-head canvas{width:64px;height:64px;flex:none}
#tom-panel h2{font-size:20px;margin:0;font-weight:600}
#tom-panel p{margin:10px 0}
#tom-panel .tom-sub,#tom-panel small{color:#b6c1d5;font-size:12px}
#tom-panel .tom-close{margin-left:auto;align-self:flex-start}
#tom-panel button,#tom-panel select,#tom-panel input,#tom-panel a.tom-link{font:inherit;min-height:44px;border:1px solid #b6c7e433;border-radius:7px;background:#192232;color:#e9eefb;padding:8px 11px;cursor:pointer}
#tom-panel button:hover,#tom-panel a:hover{background:#243148}
#tom-panel button:disabled{opacity:.5;cursor:default}
#tom-panel input{width:100%;cursor:text}
#tom-panel select{width:100%;margin:5px 0 10px}
#tom-panel label{display:block;color:#c6d0e2;font-size:12px;margin-top:12px}
#tom-panel .tom-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
#tom-panel .tom-actions button{flex:1}
#tom-panel .tom-primary{background:#fde68a;color:#1d211c;border-color:#fde68a;font-weight:700}
#tom-panel .tom-primary:hover{background:#fff0ad}
#tom-panel .tom-row{display:flex;gap:8px;margin-top:8px}
#tom-panel .tom-row input{min-width:0}
#tom-panel .tom-note{border-top:1px solid #b6c7e426;margin-top:14px;padding-top:12px;color:#c6d0e2;overflow-wrap:anywhere}
#tom-panel .tom-link{display:block;text-align:center;text-decoration:none;margin-top:10px}
#tom-panel #tom-feedback{color:#fde68a;white-space:pre-wrap}
#tom-panel #tom-guide{background:#192232;padding:12px;border-radius:8px;margin-top:12px}
#tom-panel [hidden]{display:none!important}
#tom-panel #tom-proposal{background:#192232;padding:14px;border:1px solid #b6c7e44d;border-radius:8px;margin-top:14px;overflow-wrap:anywhere}
#tom-panel #tom-proposal h3{font-size:16px;margin:0}
#tom-panel #tom-plan-model{font-size:12px;color:#c6d0e2}
#tom-panel #tom-plan-copy{font-weight:700;position:sticky;top:70px;z-index:1;background:#192232;padding-block:4px}
#tom-panel #tom-plan-detail{white-space:pre-wrap}
#tom-panel #tom-stop,#tom-panel #tom-fallback{margin-top:12px;width:100%}
#tom-panel #tom-events{font-size:12px;color:#c6d0e2;padding-left:18px}
#tom-panel #tom-local-info small{overflow-wrap:anywhere}
#tom-panel summary{cursor:pointer;min-height:44px;padding:12px 0}
#tom-panel :focus-visible,#tom-launch:focus-visible{outline:2px solid #fde68a;outline-offset:3px}
@media(max-width:650px){#tom-panel{top:auto;bottom:12px;left:10px;right:10px;width:auto;max-height:calc(100dvh - 85px);padding:16px}#tom-launch{padding:0 5px}#tom-launch span{display:none}}
@media(prefers-reduced-motion:reduce){#tom-panel *{scroll-behavior:auto}}
@media(min-width:1101px){body.tom-open #page{right:400px}}
@media(max-width:900px){
  #top:has(#tom-launch){grid-template-columns:auto minmax(0,1fr) auto auto auto}
  #tom-launch{grid-row:1;grid-column:4;min-width:44px}
  #top:has(#tom-launch) #menu-btn{grid-column:5}
  #tom-launch span{display:none}
  #tom-launch.tom-is-hidden span{display:inline}
  #tom-panel{top:auto;bottom:12px;left:10px;right:10px;width:auto;max-height:calc(100dvh - 116px)}
}
.tom-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
#tom-panel #tom-guide-title:focus{outline:none}
#tom-panel #tom-guide-title:focus-visible{outline:2px solid #fde68a;outline-offset:3px}

#tom-panel .tom-suggest{margin:14px 0 4px;padding-top:12px;border-top:1px solid #b6c7e422}
#tom-panel .tom-check{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;font-weight:500}
#tom-panel .tom-check input{width:20px;height:20px;min-height:0;margin:0;accent-color:#ff8a3d}
#tom-hint{position:fixed;z-index:85;left:50%;transform:translateX(-50%);bottom:68px;width:min(380px,calc(100vw - 36px));background:#101622;border:1px solid #b6c7e455;border-radius:12px;box-shadow:0 10px 36px #0006;color:#e9eefb;font:14px/1.5 Satoshi,sans-serif;padding:12px 14px}
#tom-hint[hidden]{display:none}
#tom-hint p{margin:0 0 10px}
#tom-hint .tom-hint-actions{display:flex;flex-wrap:wrap;gap:8px}
#tom-hint button{font:inherit;font-size:13px;min-height:44px;border:1px solid #b6c7e433;border-radius:7px;background:#192232;color:#e9eefb;padding:6px 10px;cursor:pointer}
#tom-hint button:hover{background:#243148}
#tom-hint button:focus-visible{outline:2px solid #ff8a3d;outline-offset:2px}
#tom-hint #tom-hint-act{background:#ff8a3d;color:#111;border-color:#ff8a3d;font-weight:600}
/* Tablets and phones: under the search bar, clear of the right-hand tool rail and bottom sheets. */
@media(max-width:1100px){#tom-hint{transform:none;bottom:auto;top:116px;left:10px;width:min(380px,calc(100vw - 84px))}}
@media(max-width:650px){#tom-hint{width:calc(100vw - 112px)}}
/* F11 hint (shell.js): a non-interactive full-screen icon with "F11" inside, just before Ask Tom */
.f11-hint{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;border:1px solid var(--line);background:var(--glass);color:var(--text-2);cursor:default;user-select:none}
@media(min-width:901px){#top:has(#f11-hint){grid-template-columns:auto auto auto minmax(160px,1fr) auto auto auto auto}}
@media(max-width:900px){
  #top:has(#f11-hint){grid-template-columns:auto minmax(0,1fr) auto auto auto auto}
  #f11-hint{grid-row:1;grid-column:3}
  #top:has(#f11-hint) .ask-btn{grid-column:4}
  #top:has(#f11-hint) #tom-launch{grid-column:5}
  #top:has(#f11-hint) #menu-btn{grid-column:6}
}
