.study-coach-bar { position:fixed; z-index:1000; right:14px; bottom:14px; display:flex; align-items:center; gap:10px; max-width:min(520px,calc(100% - 28px)); padding:9px 12px; border:1px solid #cbc9bd; border-radius:13px; background:#fffdf8; box-shadow:0 8px 28px #1c24302b; color:#1c2430; font:12px/1.4 "Segoe UI",Arial,sans-serif; }
.study-coach-bar[hidden], .study-coach-panel[hidden] { display:none; }
.study-coach-state { display:flex; align-items:center; gap:8px; min-width:0; }
.study-coach-dot { width:9px; height:9px; flex:0 0 9px; border-radius:50%; background:#82916d; }
.study-coach-dot.busy { background:#d49a35; animation:study-pulse 1s ease-in-out infinite alternate; }
.study-coach-dot.offline { background:#b95045; }
.study-coach-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.study-coach-toggle,.study-coach-log-link { border:0; background:none; color:#334224; font:inherit; font-weight:700; cursor:pointer; white-space:nowrap; }
.study-coach-panel { position:fixed; z-index:1001; right:14px; bottom:64px; width:min(430px,calc(100% - 28px)); max-height:min(65vh,540px); overflow:auto; padding:17px; border:1px solid #cbc9bd; border-radius:16px; background:#fffdf8; box-shadow:0 14px 40px #1c243033; color:#1c2430; font:13px/1.55 "Segoe UI",Arial,sans-serif; }
.study-coach-panel h2 { margin:0 0 9px; font-size:17px; }.study-coach-panel h3 { margin:16px 0 4px; font-size:13px; }.study-coach-panel p { margin:5px 0; color:#50565a; }.study-coach-panel ul { margin:5px 0 0; padding-left:19px; }.study-coach-panel li { margin:4px 0; }
.study-session-clock { display:inline-flex; align-items:center; gap:7px; padding:6px 10px; border:1px solid #ded9ce; border-radius:99px; background:#fffdf8; color:#344226; font:700 12px/1.2 "Segoe UI",Arial,sans-serif; }
.study-session-clock[hidden] { display:none; }.study-session-clock strong { font-variant-numeric:tabular-nums; }
.study-ai-wait { margin:10px 0; padding:15px; border:1px solid #e8d9b8; border-radius:13px; background:#fff8e9; color:#493a1d; }.study-ai-wait[hidden] { display:none; }.study-spinner { display:inline-block; width:14px; height:14px; margin-right:8px; vertical-align:-2px; border:2px solid #d9c18f; border-top-color:#8d6723; border-radius:50%; animation:study-spin .8s linear infinite; }
.study-log-page { width:min(1000px,calc(100% - 32px)); margin:24px auto 80px; color:#1c2430; font:14px/1.55 "Segoe UI",Arial,sans-serif; }.study-log-page h1 { letter-spacing:-.04em; }.study-log-page select,.study-log-page button { padding:8px 11px; border:1px solid #c9c8bf; border-radius:8px; background:#fffdf8; font:inherit; }.study-log-table { width:100%; margin-top:14px; border-collapse:collapse; background:#fffdf8; }.study-log-table th,.study-log-table td { padding:8px; border-bottom:1px solid #e4e0d7; text-align:left; vertical-align:top; }.study-log-correct { color:#326b3f; font-weight:700; }.study-log-wrong { color:#a83e35; font-weight:700; }
@keyframes study-spin { to { transform:rotate(360deg); } } @keyframes study-pulse { to { opacity:.4; transform:scale(.78); } }
@media(max-width:520px) { .study-coach-bar { right:8px; bottom:8px; max-width:calc(100% - 16px); padding:8px; gap:5px; }.study-coach-panel { right:8px; bottom:56px; width:calc(100% - 16px); }.study-log-table { font-size:11px; }.study-log-table th,.study-log-table td { padding:5px; } }
