.webster-dock{--dictionary-font:17px;display:flex;flex-direction:column;min-width:0;min-height:180px;height:clamp(190px,26dvh,280px);max-height:44%;flex:0 0 auto;border-top:1px solid var(--line);background:var(--paper);color:var(--ink);overflow:hidden;isolation:isolate}
.webster-dock[hidden]{display:none!important}
.webster-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 14px;background:linear-gradient(115deg,var(--surface),var(--paper));border-bottom:1px solid var(--line);flex-shrink:0}
.webster-head>div:first-child{display:flex;align-items:center;gap:10px;min-width:0}.webster-seal{font:24px Georgia,serif;color:var(--gold);border:1px solid var(--line);border-radius:9px;padding:2px 7px;background:var(--gold-soft)}
.webster-head h2{font:18px Georgia,serif;margin:0;white-space:nowrap}.webster-head h2 span{color:var(--gold);font-size:14px}.webster-head small{display:block;color:var(--muted);font-size:9px;margin-top:3px}
.webster-tools{display:flex;align-items:center;gap:5px}.webster-tools>button{padding:4px 7px;min-width:29px;min-height:29px;font-size:17px}.webster-follow{display:flex;align-items:center;gap:5px;margin:0;color:var(--muted);font-size:10px;white-space:nowrap}.webster-follow input{accent-color:var(--accent);margin:0;padding:0;min-width:14px;width:14px;height:14px}
.webster-dock .webster-search{display:flex;align-items:center;gap:5px;padding:8px 12px;margin:0;border:0;background:var(--surface);flex-shrink:0}.webster-search button{padding:4px 7px;min-width:28px;min-height:30px;font-size:16px;line-height:1.1}.webster-search input{flex:1;min-width:0;width:0;font-size:13px;background:var(--paper);padding:6px 9px;margin:0;border-radius:8px}.webster-search input::-webkit-search-cancel-button{display:none}
.webster-content{flex:1;min-height:0;overflow:auto;padding:12px 18px;overscroll-behavior:contain;scrollbar-gutter:stable}.webster-definition{font:var(--dictionary-font)/1.7 Georgia,'Times New Roman',serif;overflow-wrap:anywhere;user-select:text}.webster-definition+article{border-top:1px solid var(--line);margin-top:20px;padding-top:12px}.webster-definition p{margin:0 0 12px}.webster-definition strong{font-weight:700}.webster-definition p:first-child{color:var(--accent)}.webster-definition em{font-style:italic}
.webster-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 14px;font-size:9px;color:var(--muted);border-top:1px solid var(--line);background:var(--surface);flex-shrink:0}.webster-footer a{color:var(--gold);text-decoration:none;white-space:nowrap}
.webster-suggestions{display:flex;flex-wrap:wrap;gap:5px;padding:6px 12px;background:var(--surface);max-height:94px;overflow:auto;flex-shrink:0}.webster-suggestions[hidden]{display:none}.webster-suggestions button{font-size:11px;padding:5px 8px;background:var(--accent-soft);color:var(--accent)}
.webster-welcome{padding:3px 0;color:var(--muted)}.webster-welcome>span{float:left;font:44px Georgia,serif;color:var(--gold);margin:0 15px 6px 0;opacity:.6}.webster-welcome h3{font:20px Georgia,serif;margin:0 0 6px}.webster-welcome p,.webster-welcome small{font-size:11px;line-height:1.7;margin:4px 0}.webster-empty h3{font:21px Georgia,serif;margin:2px 0 8px;overflow-wrap:anywhere}.webster-empty p,.webster-loading{font-size:12px;line-height:1.7;color:var(--muted)}.webster-source{font:10px/1.7 'Segoe UI',sans-serif;color:var(--muted);border-top:1px solid var(--line);padding-top:9px;margin-top:20px}.webster-source summary{cursor:pointer}.webster-source a{color:var(--muted)}
.webster-dock.webster-expanded{height:min(48dvh,470px);max-height:58%}.webster-dock.webster-floating{position:fixed;right:24px;bottom:24px;width:min(520px,calc(100vw - 24px));height:440px;max-height:65dvh;border:1px solid var(--line);border-radius:16px;box-shadow:0 20px 70px #0005;z-index:25}.webster-floating.webster-expanded{height:70dvh;max-height:70dvh}
#webster-open[aria-expanded=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.webster-selection-action{color:var(--gold);background:var(--gold-soft)}
.read-layout #reader.webster-visible{height:calc(100dvh - 240px);min-height:560px}.read-layout #reader.webster-visible>.panel-zoom-content{overflow:hidden}.read-layout #reader.webster-visible .scripture{min-height:140px!important;flex:1;overflow:auto}.webster-visible .reader-extras{flex-shrink:0}.webster-visible .reader-controls{flex-shrink:0}#panel-fullscreen #reader.webster-visible{height:100%;min-height:0}
@media(max-width:1200px){.webster-follow span{font-size:0}.webster-follow span:after{content:'Auto';font-size:10px}.webster-head small{display:none}}
@media(max-width:720px){.webster-head{padding:7px 10px}.webster-head h2{font-size:17px}.webster-seal{font-size:20px}.webster-head>div:first-child{gap:7px}.webster-tools>button{min-width:32px;min-height:32px}.webster-follow{min-height:32px}.webster-search{padding:6px 8px!important;gap:4px!important}.webster-search button{min-width:30px;min-height:36px;padding:4px}.webster-search input{font-size:16px!important;padding:7px}.webster-content{padding:12px 14px}.webster-dock{--dictionary-font:17px;height:230px;max-height:46%}.webster-dock.webster-expanded{height:38dvh;max-height:56%}.webster-dock.webster-floating{right:8px;bottom:max(8px,env(safe-area-inset-bottom));width:calc(100vw - 16px);height:48dvh;max-height:65dvh;border-radius:14px}.webster-floating.webster-expanded{height:65dvh;max-height:65dvh}.webster-suggestions button{min-height:36px}.read-layout #reader.webster-visible{height:calc(100dvh - 150px);min-height:590px}.webster-footer{font-size:9px;padding:6px 10px}}
@media(prefers-reduced-motion:no-preference){.webster-dock{animation:detail-reveal .22s ease-out}}
