:root{--primary: #b87c85;--background: #f8f5f1;--text: #2f2426;--muted: #7c666b;--surface: #fffdfb;--surface-muted: #f3ebe7;--border: #e3d4d0;--border-strong: #d4aab0;color:var(--text);background:var(--background);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0;min-width:320px;background:var(--background)}button,input,select,textarea{font:inherit}button,.file-button{min-height:34px;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface);color:var(--text);cursor:pointer;padding:7px 10px}button:hover,.file-button:hover{background:var(--surface-muted)}button:disabled{cursor:not-allowed;opacity:.55}input,select,textarea{width:100%;min-height:34px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text);padding:6px 8px}textarea{resize:vertical;line-height:1.45}h1,h2,p{margin:0}h1{font-size:22px;line-height:1.2}h2{font-size:15px;line-height:1.3}label{display:grid;gap:5px;color:#5a484b;font-size:13px}.shell{display:grid;gap:16px;padding:16px}.popup-shell{width:340px}.web-shell{width:min(100%,1120px);margin:0 auto;padding:18px}.side-shell{min-width:380px;max-width:560px;height:100vh;min-height:0;max-height:100vh;grid-template-rows:auto auto minmax(0,1fr) auto auto;overflow:hidden}.stack{display:grid;gap:10px}.app-header{display:flex;justify-content:space-between;gap:12px}.brand-header{display:flex;align-items:center;justify-content:flex-start;gap:12px}.brand-mark{width:84px;height:auto;flex:0 0 auto}.popup-shell .brand-mark{width:72px}.brand-title{color:var(--primary)}.web-brand{align-items:center}.brand-header p{margin-top:4px;color:var(--muted);font-size:13px}.tab-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:40px;gap:6px;border-bottom:1px solid var(--border);padding-bottom:8px}.tab-button{display:inline-grid;min-width:0;width:100%;height:40px;min-height:40px;max-height:40px;place-items:center;padding:7px 4px;font-size:13px;line-height:1;overflow:hidden;text-align:center;white-space:nowrap}.tab-button.active{background:var(--primary);border-color:var(--primary);color:#fff}.tab-panel{display:grid;gap:12px}.side-shell .tab-panel{min-height:0;align-content:start;overflow:auto;padding-right:2px;scrollbar-gutter:stable}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.web-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:14px;align-items:start}.web-panel{min-width:0}.web-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.panel-section{display:grid;gap:10px;border:1px solid var(--border);border-radius:8px;background:var(--surface);padding:12px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.prompt-preview{max-height:260px;overflow:auto;white-space:pre-wrap;border:1px solid var(--border);border-radius:8px;background:#fbf8f5;color:var(--text);font:12px/1.45 ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace;margin:0;padding:10px}.web-prompt-preview{min-height:260px;max-height:none}.web-status{min-height:20px}.eyebrow,.hint,.status,.vocab-entry span{color:var(--muted);font-size:12px}.inline{display:flex;align-items:center;gap:8px}.inline input{width:16px;min-height:16px}.primary{background:var(--primary);border-color:var(--primary);color:#fff}.danger{border-color:#bd6b6b;color:#8d2020}.toolbar,.button-row{display:flex;flex-wrap:wrap;align-items:end;gap:8px}.toolbar label{min-width:140px;flex:1}.vocab-list,.frequency-list,.capture-list{display:grid;gap:8px}.frequency-list{grid-template-columns:repeat(2,minmax(0,1fr))}.frequency-item,.vocab-entry,.capture-entry{display:grid;gap:8px;border:1px solid var(--border);border-radius:8px;background:var(--surface);padding:10px}.frequency-item{background:#fbf8f5}.frequency-item strong,.frequency-item span{overflow-wrap:anywhere}.frequency-item span{color:var(--primary);font-weight:700}.frequency-item small{color:var(--muted)}.entry-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.entry-heading>div{display:grid;gap:2px;min-width:0}.entry-heading strong{overflow-wrap:anywhere}.vocab-entry .vocab-status{font-weight:700}.vocab-entry .vocab-status-new{color:var(--primary)}.vocab-entry p,.capture-entry p{color:#5a484b;font-size:13px;line-height:1.4}.count-pill,.pill{display:inline-grid;min-height:28px;align-items:center;border-radius:999px;background:#f0dedf;color:var(--primary);padding:4px 9px;font-size:12px}.empty-state{min-height:64px;display:grid;place-items:center;border:1px dashed var(--border-strong);border-radius:8px;background:#fbf8f5;color:var(--muted);font-size:13px;line-height:1.4;padding:14px;text-align:center}.file-button{position:relative;overflow:hidden}.file-button input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;background:#2f242647;padding:16px}.modal{display:grid;width:min(100%,360px);gap:12px;border:1px solid var(--border-strong);border-radius:8px;background:var(--surface);box-shadow:0 18px 48px #2f24262e;padding:14px}.validation-error{color:#8d2020}.support-footer{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;border-top:1px solid var(--border);padding-top:10px}.support-footer a{display:inline-flex;align-items:center;min-height:32px;border:1px solid var(--border-strong);border-radius:999px;background:#fbf8f5;color:var(--primary);font-size:12px;font-weight:700;line-height:1.2;padding:6px 11px;text-decoration:none}.support-footer a:hover{background:var(--surface-muted)}.privacy-shell{max-width:880px}.privacy-article{display:grid;gap:18px}.privacy-article .panel-section{gap:14px}.privacy-section{display:grid;gap:8px}.privacy-section h2{color:var(--primary)}.privacy-section p,.privacy-section li{color:#5a484b;font-size:14px;line-height:1.6}.privacy-section ul{display:grid;gap:6px;margin:0;padding-left:20px}.privacy-contact{display:grid;gap:4px}.privacy-contact a{color:var(--primary);font-weight:700}@media (max-width: 760px){.web-shell{padding:12px}.web-brand{align-items:flex-start}.web-brand .brand-mark{width:64px}.web-layout,.web-form-grid,.form-grid,.frequency-list{grid-template-columns:1fr}.toolbar,.button-row{align-items:stretch}.toolbar label,.button-row button,.button-row .file-button{width:100%}}
