/* Personal study tools use the existing mint/forest palette and glass controls. */
.ws-visually-hidden { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.ws-workspace-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin:4px 0 30px; }
.ws-workspace-heading h1 { font-size:calc(clamp(30px,4vw,47px)*var(--ws-font-scale)); font-weight:600; letter-spacing:-.035em; margin:10px 0; }
.ws-workspace-heading p { color:#617469; font-size:calc(14px*var(--ws-font-scale)); margin:0; }
.ws-workspace-heading .eyebrow { color:#718a73; font-size:calc(10px*var(--ws-font-scale)); letter-spacing:.16em; }
.ws-workspace-heading .actions { margin:0; flex-shrink:0; }
.ws-workspace-dialog { width:min(560px,calc(100vw - 26px)); max-height:calc(100dvh - 44px); overflow-y:auto; border:1px solid #ffffffe8; border-radius:28px; padding:24px; background:linear-gradient(145deg,#f4f8f3f5,#edf3eff0); color:#193d2c; box-shadow:inset 0 1px 0 #fff,0 22px 85px #183a3033; -webkit-backdrop-filter:blur(28px); backdrop-filter:blur(28px); }
.ws-workspace-dialog::backdrop { background:#263c382e; -webkit-backdrop-filter:blur(5px); backdrop-filter:blur(5px); }
.ws-modal-head { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:22px; }
.ws-modal-head h2 { font-size:calc(22px*var(--ws-font-scale)); margin:0; line-height:1.4; }
.ws-modal-head button { width:42px; min-width:42px; height:42px; padding:0; font:27px/1 sans-serif; }
.ws-modal-content { display:grid; gap:17px; }
.ws-modal-content>label,.ws-modal-content fieldset>label { display:grid; gap:8px; font-size:calc(13px*var(--ws-font-scale)); }
.ws-modal-content :is(input:not([type=checkbox]),select,textarea) { width:100%; max-width:100%; min-height:44px; padding:10px 13px; font:inherit; background:#ffffffa0; border:1px solid #8ba39155; border-radius:14px; color:inherit; }
.ws-modal-content textarea { resize:vertical; line-height:1.8; }
.ws-modal-content input[type=color] { height:46px; padding:5px; }
.ws-modal-content fieldset { border:1px solid #8ba39155; border-radius:16px; padding:12px; margin:0; }
.ws-modal-content .ws-pos-options { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.ws-pos-options legend { font-size:calc(13px*var(--ws-font-scale)); padding:0 6px; }
.ws-modal-content .ws-pos-options>label { display:flex; align-items:center; gap:8px; font-size:calc(12px*var(--ws-font-scale)); }
.ws-modal-status,[data-workspace-status] { font-size:calc(12px*var(--ws-font-scale)); line-height:1.7; color:#5c7663; overflow-wrap:anywhere; }
.ws-modal-status:empty,[data-workspace-status]:empty { display:none; }
.ws-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:24px; }
.ws-modal-actions button { margin:0; min-height:44px; }
.ws-danger { color:#993e47!important; }
.ws-offline-settings { width:100%; margin:15px 0 0; font-size:calc(13px*var(--ws-font-scale)); }
.ws-pos-badge,.ws-pos-tags>span { display:inline-flex; align-items:center; gap:6px; font:600 calc(11px*var(--ws-font-scale))/1.5 var(--ws-ui-font,sans-serif); color:#45684f; background:#dbe8d785; padding:5px 10px; border-radius:9px; }
.ws-sense-group { margin:0 0 22px; }
.ws-sense-group:last-child { margin-bottom:0; }
.ws-sense-group ol { padding-left:23px; margin:12px 0 0; font-size:calc(16px*var(--ws-font-scale)); line-height:1.9; }
.ws-sense-group li { margin:7px 0; padding-left:3px; overflow-wrap:anywhere; }
.ws-example { display:flex; gap:14px; margin:15px 0; }
.ws-example>span { color:#819286; font-size:12px; margin-top:5px; }
.ws-example p { margin:0!important; }
.ws-synonym-group { margin-bottom:25px; }
.ws-dict-section p.ws-sense-context { font-size:calc(13px*var(--ws-font-scale)); line-height:1.8; color:#697b6d; margin:11px 0; }
.ws-synonym-chips { display:flex; flex-wrap:wrap; gap:9px; }
.ws-synonym-chips button { min-height:38px; padding:7px 13px; font-size:calc(14px*var(--ws-font-scale)); }
.ws-related-phrase { display:grid; gap:7px; justify-items:start; margin:13px 0; }
.ws-book-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:30px; align-items:start; }
.ws-book-layout aside { position:sticky; top:30px; padding:18px; border:1px solid #ffffffbb; border-radius:22px; background:#f5f9f18a; }
.ws-book-layout aside h2 { font-size:calc(13px*var(--ws-font-scale)); margin:0 0 15px; }
.ws-book-folders { display:grid; gap:8px; margin-bottom:15px; }
.ws-book-folders>button,.ws-book-folder-row>button:first-child { width:100%; text-align:left; display:flex; align-items:center; gap:8px; padding:11px 12px; border-radius:14px; font-size:calc(13px*var(--ws-font-scale)); min-height:44px; }
.ws-book-folders button[aria-pressed=true] { outline:1px solid #719b7d80; background:#e0ebdcb3; }
.ws-book-folders small { margin-left:auto; color:#647b69; font-variant-numeric:tabular-nums; }
.ws-book-folder-row { display:flex; align-items:center; gap:4px; }
.ws-book-folder-row>button:first-child { min-width:0; flex:1; }
.ws-book-folder-row>button:first-child>span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ws-book-folder-row i { width:10px; height:10px; min-width:10px; border-radius:50%; background:var(--folder-color); box-shadow:inset 0 0 0 1px #0000000d; }
.ws-book-folder-row>button:last-child { font-size:19px; padding:0; width:30px; min-width:30px; min-height:38px; }
.ws-book-transfer { display:grid; gap:10px; border-top:1px solid #819e8126; padding-top:17px; margin-top:17px; }
.ws-book-transfer button,.ws-book-transfer select { width:100%; font-size:calc(12px*var(--ws-font-scale)); }
.ws-book-filters { display:flex; gap:9px; flex-wrap:wrap; }
.ws-book-filters input { flex:1; min-width:150px; border-radius:18px; min-height:45px; padding:10px 14px; margin:0; }
.ws-book-filters select { width:auto; max-width:45%; }
.ws-notebook select,.ws-practice select { border:1px solid #a8beb36b; border-radius:14px; background:#ffffff75; color:inherit; padding:9px 12px; font:inherit; font-size:calc(12px*var(--ws-font-scale)); min-height:44px; }
.ws-book-list-heading { display:flex; align-items:center; justify-content:space-between; margin:16px 0; font-size:calc(12px*var(--ws-font-scale)); color:#6a8070; }
.ws-book-list-heading button { font-size:calc(11px*var(--ws-font-scale)); min-height:36px; padding:7px 12px; }
.ws-book-batch { display:flex; flex-wrap:wrap; gap:9px; align-items:center; padding:12px; border-radius:18px; background:#edf4e4ad; border:1px solid #ffffffad; margin-bottom:13px; font-size:calc(12px*var(--ws-font-scale)); }
.ws-book-list { display:grid; gap:11px; }
.ws-book-word { display:flex; gap:14px; align-items:flex-start; padding:20px; background:#ffffff6b; border:1px solid #ffffffc7; border-radius:21px; box-shadow:0 5px 15px #254c3910; }
.ws-book-check { padding-top:7px; flex-shrink:0; }
.ws-book-copy { min-width:0; flex:1; }
.ws-book-copy h3 { font:600 calc(21px*var(--ws-font-scale))/1.35 var(--ws-ui-font,sans-serif); letter-spacing:-.02em; margin:0 0 9px; overflow-wrap:anywhere; }
.ws-book-copy p { font-size:calc(14px*var(--ws-font-scale)); white-space:pre-line; line-height:1.8; margin:8px 0; overflow-wrap:anywhere; }
.ws-book-copy small { color:#718274; font-size:calc(12px*var(--ws-font-scale)); white-space:pre-line; }
.ws-pos-tags { display:flex; gap:5px; flex-wrap:wrap; }
.ws-pos-tags>span { padding:3px 7px; font-size:calc(10px*var(--ws-font-scale)); }
.ws-book-word-actions { display:flex; flex-direction:column; gap:7px; }
.ws-book-word-actions button { min-height:35px; padding:6px 12px; font-size:calc(12px*var(--ws-font-scale)); }
.ws-book-tags { display:flex; gap:6px; flex-wrap:wrap; margin-top:10px; }
.ws-book-tags span { border-left:3px solid var(--folder-color); padding:2px 8px; background:#ffffff50; font-size:calc(10px*var(--ws-font-scale)); border-radius:4px; }
.ws-empty-state { padding:45px 22px; text-align:center; border:1px solid #ffffffb3; border-radius:24px; background:#ffffff40; }
.ws-empty-state>.ws-native-emoji { font-size:43px; }
.ws-empty-state h2 { font-size:calc(20px*var(--ws-font-scale)); margin:15px 0 10px; }
.ws-empty-state p { font-size:calc(13px*var(--ws-font-scale)); color:#6a7d70; line-height:1.8; }
.ws-notebook [hidden],.ws-workspace-dialog [hidden],.ws-practice [hidden] { display:none!important; }
@media (max-width:760px) {
 .ws-workspace-heading { align-items:flex-start; flex-direction:column; gap:15px; }
 .ws-workspace-heading .actions { width:100%; }
 .ws-book-layout { grid-template-columns:1fr; gap:20px; }
 .ws-book-layout aside { position:static; padding:14px; }
 .ws-book-folders { display:flex; gap:8px; overflow-x:auto; padding:2px 2px 8px; }
 .ws-book-folders>button,.ws-book-folder-row { flex-shrink:0; width:auto; }
 .ws-book-folder-row>button:first-child { width:auto; }
 .ws-book-transfer { display:flex; align-items:center; flex-wrap:wrap; }
 .ws-book-transfer button,.ws-book-transfer select { width:auto; }
 .ws-book-word { padding:16px 13px; gap:11px; }
 .ws-book-copy h3 { font-size:calc(19px*var(--ws-font-scale)); }
 .ws-book-word-actions button { font-size:calc(11px*var(--ws-font-scale)); padding:6px 9px; }
}
@media (max-width:440px) { .ws-workspace-dialog { padding:20px 16px; } .ws-book-filters select { flex:1; max-width:none; } }
@media (prefers-reduced-transparency:reduce) { .ws-workspace-dialog { background:#f0f5ef; } .ws-book-word,.ws-book-layout aside { background:#f4f8f0; } }
