:root{font-family:Arial,"Segoe UI",sans-serif;color:#202124;background:#fff;color-scheme:light;--bg:#fff;--fg:#202124;--muted:#68706e;--line:#e0e5e3;--soft:#f2f5f4;--accent:#197c6e;--hover:#e7f2ee;--shadow:0 3px 18px #102f2111}
:root[data-theme=dark]{color-scheme:dark;--bg:#202124;--fg:#edf1ef;--muted:#aeb9b5;--line:#414745;--soft:#2d3230;--accent:#91d9c7;--hover:#304c43;--shadow:none;background:var(--bg);color:var(--fg)}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--bg:#202124;--fg:#edf1ef;--muted:#aeb9b5;--line:#414745;--soft:#2d3230;--accent:#91d9c7;--hover:#304c43;--shadow:none;background:var(--bg);color:var(--fg)}}
*{box-sizing:border-box}body{margin:0;min-height:100svh;display:flex;flex-direction:column;font-size:14px}button,input,select{font:inherit}button{cursor:pointer;color:inherit;border:1px solid transparent;background:transparent;border-radius:8px;min-height:36px;padding:8px 12px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:4px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button svg{display:block}button:disabled{opacity:.5;cursor:default}.top-links{padding:14px 24px;display:flex;align-items:center;justify-content:flex-end;gap:7px;min-height:64px}.top-links button{font-size:13px}.top-links button:last-child{width:40px;padding:9px}main{width:min(680px,calc(100% - 48px));margin:clamp(48px,12vh,130px) auto 60px;text-align:center;flex:1}.brand{display:flex;align-items:center;justify-content:center;gap:13px}.brand img{border-radius:50%;object-fit:cover}.brand h1{font-size:clamp(35px,5vw,48px);letter-spacing:-2px;font-weight:700;margin:0}.tagline{margin:20px 0 32px;color:var(--muted);font-size:15px;letter-spacing:.1px}#search-form{display:flex;align-items:center;border:1px solid var(--line);border-radius:30px;padding:5px 8px 5px 20px;min-height:58px;box-shadow:var(--shadow);background:var(--bg);gap:14px}#search-form:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--hover)}#search-form>svg{color:var(--muted)}#search-input{width:100%;border:0;outline:0;background:transparent;color:var(--fg);font-size:16px;min-width:0;line-height:28px}#search-input::placeholder{color:var(--muted)}#search-form button{border-radius:50%;width:42px;height:42px;min-width:42px;display:grid;place-content:center;color:var(--accent)}.search-modes{display:flex;justify-content:center;gap:6px;margin:18px 0 36px}.search-modes button{font-size:13px;border-radius:18px;padding:6px 19px;min-height:34px;color:var(--muted)}.search-modes button[aria-pressed=true]{color:var(--accent);background:var(--hover);border:1px solid var(--accent)}#shortcuts{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;max-width:620px;margin:auto}.shortcut{position:relative;width:94px;min-height:106px;border-radius:12px}.shortcut a,.shortcut>button.add{display:flex;align-items:center;flex-direction:column;gap:12px;padding:10px 4px;color:var(--fg);text-decoration:none;font-size:12px;min-width:94px;border-radius:12px}.shortcut .tile{width:46px;height:46px;border-radius:50%;background:var(--soft);display:grid;place-content:center;font-size:20px;font-weight:500;color:var(--accent)}.shortcut .label{max-width:86px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shortcut .edit{position:absolute;top:0;inset-inline-end:0;min-height:24px;width:24px;padding:0;background:var(--bg);border-color:var(--line);border-radius:50%;font-size:16px;opacity:0}.shortcut:focus-within .edit{opacity:1}footer{display:flex;align-items:center;justify-content:space-between;padding:14px 22px;gap:12px;color:var(--muted)}footer button{font-size:12px}footer span{opacity:.8}#customize-open{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:22px;background:var(--bg);box-shadow:var(--shadow);padding:9px 16px;color:var(--accent)}#customize-open svg{width:16px;height:16px}#status{min-height:20px;color:var(--accent);font-size:13px;margin:15px 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
dialog{border:1px solid var(--line);border-radius:18px;padding:28px;color:var(--fg);background:var(--bg);width:min(440px,calc(100% - 32px));max-height:calc(100svh - 48px);box-shadow:0 20px 80px #0003}dialog:modal{overscroll-behavior:contain}dialog::backdrop{background:#1117;overflow:hidden;overscroll-behavior:contain}dialog h2{font-size:21px;margin:0 0 22px;letter-spacing:-.3px}dialog label{display:flex;flex-direction:column;gap:10px;margin:20px 0;font-size:13px}dialog input:not([type=checkbox]),dialog select{width:100%;background:var(--soft);color:var(--fg);border:1px solid var(--line);border-radius:8px;min-height:43px;padding:10px 12px}dialog .actions{display:flex;justify-content:flex-end;gap:8px;margin-top:26px}dialog .primary{background:var(--accent);color:var(--bg);padding-inline:22px}dialog .danger{color:#c53535;margin-inline-end:auto}.muted,.hint{color:var(--muted);line-height:1.65}.hint{font-size:12px}.muted{margin-top:-8px}.check{flex-direction:row;align-items:center}input[type=checkbox]{accent-color:var(--accent);width:17px;height:17px}.form-error{color:#bf3030;min-height:18px;font-size:12px}.about-brand{display:flex;gap:12px;align-items:center;margin-bottom:20px}.about-brand h2{margin:0}.about-brand img{border-radius:50%}#about-dialog>p{line-height:1.7}.info-block{margin:24px 0;background:var(--soft);padding:17px;border-radius:12px}.info-block p{font-size:13px;line-height:1.7;margin-bottom:0}.badge{font-size:10px;color:var(--muted);border:1px solid var(--line);padding:4px 7px;border-radius:12px;margin-left:8px}[hidden]{display:none!important}
@media(hover:hover){button:hover{background:var(--soft)}.shortcut:hover{background:var(--soft)}.shortcut:hover .edit{opacity:1}.primary:hover{filter:brightness(.95)}.shortcut .edit:hover{background:var(--hover)}}@media(prefers-reduced-motion:no-preference){button,a{transition:background-color .15s,border-color .15s}}@media(max-width:480px){main{margin-top:50px}.brand img{width:48px;height:48px}.brand{gap:10px}.tagline{font-size:13px}footer{padding:12px}footer span{display:none}.top-links{padding:10px 14px}.shortcut{width:86px}.shortcut a,.shortcut>button.add{min-width:86px}.badge{display:table;margin:10px 0 0}}

.language-settings{border-color:var(--line);text-align:start;width:100%}dialog{text-align:start}.actions{flex-wrap:wrap}:root[dir=rtl] #search-form button svg{transform:scaleX(-1)}.brand{direction:ltr}#shortcut-url{direction:ltr}

#web-links{display:flex;gap:18px;align-items:center}#web-links a{color:var(--muted);font-size:14px;text-decoration:none;min-height:44px;display:flex;align-items:center}#web-links a:hover{text-decoration:underline}
:root[data-host=web] body{font-size:16px}:root[data-host=web] .hint{font-size:13px}:root[data-host=web] .tagline{font-size:16px}:root[data-host=web] dialog label{font-size:14px}:root[data-host=web] footer button{font-size:14px}
@media(hover:none){.shortcut .edit{opacity:1;min-height:28px;min-width:28px}}
@media(max-width:480px){:root[data-host=web] main{width:calc(100% - 32px);margin-top:60px}:root[data-host=web] .brand h1{font-size:36px}:root[data-host=web] footer{flex-wrap:wrap}}
.shortcut .tile.scholarfolk-tile{background:transparent;object-fit:contain}.shortcut .tile.site-tile{display:block;box-sizing:border-box;padding:7px;object-fit:contain}.shortcut .tile.waiting{color:transparent}.shortcut .tile.site-tile.on-light{background:#f2f5f4;color-scheme:light}.shortcut .tile.site-tile.on-dark{background:#2d3230;color-scheme:dark}.shortcut .label{font-size:13px}.shortcut{width:108px}.shortcut a,.shortcut>button.add{min-width:108px}.shortcut .label{max-width:100px}
#shortcuts{max-width:680px}
.update{margin-inline-end:auto;display:flex;align-items:center;gap:2px;min-width:0;border:1px solid var(--line);border-radius:999px;background:var(--hover);padding-inline:2px 3px}.update[hidden]{display:none}.update a{display:flex;align-items:center;gap:8px;min-width:0;min-height:34px;padding:6px 8px 6px 12px;border-radius:999px;color:var(--fg);font-size:13px;text-decoration:none}.update a svg{width:18px;height:18px;color:var(--accent)}.update a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#update-version{color:var(--muted);font-variant-numeric:tabular-nums;flex-shrink:0}#update-version:empty{display:none}#update-dismiss{flex-shrink:0;width:30px;min-height:30px;padding:6px;border-radius:50%;color:var(--muted)}#update-dismiss svg{width:16px;height:16px}@media(hover:hover){.update a:hover span:first-of-type{text-decoration:underline}#update-dismiss:hover{background:var(--bg);color:var(--fg)}}@media(max-width:640px){.top-links{flex-wrap:wrap}.update{flex-basis:100%;justify-content:space-between;margin-inline-end:0}}
