/* KB_STUDENT: study & research tools – light, friendly, phone first */
.st [hidden]{display:none!important}
.st{--st-a:#4f46e5;--st-soft:#eef2ff;--st-line:#e5e7eb}
.st textarea,.st input[type=url],.st input[type=search],.st input[type=number],.st input:not([type]),.st select{width:100%;min-height:46px;font-size:16px;border:1px solid #d1d5db;border-radius:12px;padding:10px 12px;background:#fff;box-sizing:border-box}
.st textarea{line-height:1.5;resize:vertical}
.st textarea:focus,.st input:focus,.st select:focus{outline:3px solid #c7d2fe;border-color:var(--st-a)}
.st-seg{display:flex;gap:4px;background:#f1f5f9;border-radius:14px;padding:4px;margin:0 0 12px}
.st-seg button{flex:1 1 0;min-width:0;border:0;background:transparent;border-radius:10px;min-height:42px;padding:6px 6px;font:inherit;font-size:15px;line-height:1.2;font-weight:600;color:#475569;cursor:pointer;white-space:normal;overflow-wrap:anywhere}
@media(max-width:420px){.st-seg button{font-size:14px;padding:6px 4px}}
.st-seg button.on{background:#fff;color:#111827;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.st-opts{display:flex;flex-wrap:wrap;gap:10px 12px;align-items:flex-end;margin:12px 0 0}
.st-field{display:flex;flex-direction:column;gap:4px;margin:0;flex:1 1 150px;min-width:0}
.st-field>span{font-size:.85rem;font-weight:600;color:#374151}
.st-field.st-num{flex:0 1 120px}.st-full{flex-basis:100%}
.st-chk{display:inline-flex;gap:8px;align-items:center;min-height:44px;font-size:.95rem;flex:1 1 220px}
.st-chk input{width:20px;height:20px;margin:0;flex:none}
.st-go{flex:1 1 100%;min-height:52px;font-size:1.05rem}
@media(min-width:720px){.st-go{flex:0 0 auto;min-width:200px}}
.st-searchrow{display:flex;gap:8px;align-items:stretch;max-width:100%}.st .st-searchrow input{flex:1 1 auto;min-width:0;width:auto}.st .st-searchrow .btn{flex:0 0 auto;width:auto;min-height:46px;margin:0;white-space:nowrap}
.st-try{margin:8px 0 0;display:flex;flex-wrap:wrap;gap:6px;align-items:center;color:#64748b}
.st-chip{border:1px solid #c7d2fe;background:var(--st-soft);color:#3730a3;border-radius:999px;padding:6px 12px;font:inherit;font-size:.88rem;cursor:pointer;text-decoration:none;display:inline-block;line-height:1.3;text-align:start}
.st-chip:hover{background:#e0e7ff}
.st-drop{display:flex;flex-direction:column;align-items:center;gap:4px;border:2px dashed #c7d2fe;border-radius:14px;padding:22px 12px;text-align:center;background:#f8faff;cursor:pointer}
.st-drop input{max-width:100%}.st-fname{font-weight:600;color:#047857;overflow-wrap:anywhere}
.st-filters{margin:10px 0 0}.st-filters summary{cursor:pointer;font-weight:600;color:#4338ca;min-height:40px;display:flex;align-items:center}
.st-status{min-height:1.3em;margin:10px 0 0}.st-status.err{color:var(--err,#dc2626)}
.st-out{margin-top:8px}
.st-out h2{font-size:1.3rem;margin:12px 0 4px;overflow-wrap:anywhere}
.st-head{margin-bottom:8px}.st-src{text-decoration:none}
.st-card{border:1px solid var(--st-line);border-radius:14px;padding:12px 14px;margin:12px 0;background:#fff}
.st-card h3{font-size:1.02rem;margin:0 0 8px;color:#1e1b4b}
.st-card p{margin:.35em 0;line-height:1.6;overflow-wrap:anywhere}
.st-tldr{background:linear-gradient(135deg,#eef2ff,#f0fdfa);border-radius:14px;padding:12px 14px;line-height:1.6;margin:10px 0}
.st-list{margin:0;padding-inline-start:1.3em}.st-list li{margin:.35em 0;line-height:1.55}
.st-grid{display:grid;grid-template-columns:1fr;gap:10px}
@media(min-width:720px){.st-grid{grid-template-columns:1fr 1fr}}
.st-cell{background:#f8fafc;border-radius:12px;padding:10px 12px}.st-cell b{color:#4338ca;font-size:.9rem}
.st-dl dt{font-weight:700;margin-top:6px}.st-dl dd{margin:2px 0 0;color:#374151}
.st-chips{display:flex;flex-wrap:wrap;gap:6px}
.st-tag{background:#f1f5f9;border-radius:999px;padding:4px 10px;font-size:.88rem}
.st-row{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin:8px 0 0}
.st-actions{margin:14px 0}
.btn-sm{min-height:40px;padding:6px 12px;font-size:.92rem}
.st-cite{background:#fafaf9;border:1px solid #e7e5e4;border-radius:14px;padding:12px 14px;margin:12px 0}
.st-cite-h{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap}
.st-style{width:auto!important;min-height:38px!important;padding:4px 8px!important;font-size:.9rem!important}
.st-ref{font-family:Georgia,'Times New Roman',serif;padding-inline-start:1.5em;text-indent:-1.5em;line-height:1.55;overflow-wrap:anywhere;margin:8px 0}
.st-srclist,.st-papers{list-style:none;margin:8px 0 0;padding:0}
.st-srcitem,.st-paper{display:flex;gap:10px;padding:12px 0;border-top:1px solid var(--st-line);transition:background .4s}
.st-srcitem>div,.st-paper>div{min-width:0;flex:1}
.st-srcitem.flash{background:#fef9c3}
.st-srcitem a,.st-ptitle{font-weight:600;overflow-wrap:anywhere}
.st-n{flex:none;width:26px;height:26px;border-radius:50%;background:var(--st-soft);color:#3730a3;font-weight:700;font-size:.85rem;display:flex;align-items:center;justify-content:center}
.st-badge{display:inline-block;font-size:.75rem;font-weight:700;border-radius:6px;padding:1px 6px;background:#e0e7ff;color:#3730a3}
.st-badge.web{background:#e0f2fe;color:#075985}.st-badge.oa{background:#dcfce7;color:#166534}.st-badge.muted{background:#f1f5f9;color:#475569;font-weight:500}
.st-snip{color:#4b5563}
.st-ref-n{display:inline-flex;align-items:center;justify-content:center;min-width:1.4em;height:1.4em;border-radius:6px;background:var(--st-soft);color:#3730a3;font-size:.78em;font-weight:700;text-decoration:none;margin:0 0 0 3px;vertical-align:.1em}
.st-cb{flex:none;padding-top:2px}.st-cb input{width:22px;height:22px}
.st-abs summary{cursor:pointer;color:#4338ca;min-height:32px;display:flex;align-items:center}
.st-selbar{position:sticky;top:0;z-index:5;display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;background:#fff;border:1px solid var(--st-line);border-radius:14px;padding:8px 10px;box-shadow:0 2px 8px rgba(15,23,42,.06)}
.st-pick{display:grid;gap:8px}.st-opt{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;background:#f8fafc;border-radius:12px;padding:10px 12px}
.st-opt p{margin:0;flex:1;line-height:1.5}
.st-outline{margin:0;padding-inline-start:1.4em}.st-outline>li{margin:0 0 12px}
.st-sec{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.st-wc{font-size:.82rem;color:#64748b;white-space:nowrap}
.st-bar{height:6px;background:#f1f5f9;border-radius:6px;margin:4px 0 4px;overflow:hidden}.st-bar i{display:block;height:100%;background:linear-gradient(90deg,#818cf8,#2dd4bf);border-radius:6px}
.st-abs-edit{font-family:Georgia,'Times New Roman',serif;font-size:16px!important}
.st-priv{margin:16px 0 0;line-height:1.5}
.st .note{border-radius:12px;padding:10px 12px;margin:10px 0;background:#f8fafc;border:1px solid var(--st-line);line-height:1.5}
.st .note.warn{background:#fffbeb;border-color:#fde68a}

.st-abs-edit{min-height:220px}
