/* profile + learn fixes 20261129 */
/* 1. 安装卡片：浅色卡片 + 靛蓝按钮（覆盖主题里更高优先级的 secondary 配色） */
html[data-ui-theme][data-theme] .profile-pwa-mini{background:color-mix(in srgb,var(--accent,#4c3fc7) 6%,var(--surface-card,#fff));border:1px solid color-mix(in srgb,var(--accent,#4c3fc7) 28%,var(--border-subtle,#e2e6eb));border-radius:14px;padding:.4rem .5rem .5rem;gap:.3rem}
html[data-ui-theme][data-theme] .profile-pwa-mini strong{color:var(--text-primary);font-size:.8rem}
html[data-ui-theme][data-theme] .profile-pwa-mini p{color:var(--text-secondary,var(--text-muted));-webkit-line-clamp:2}
html[data-ui-theme][data-theme] .profile-pwa-mini-head>svg{color:var(--accent,#4c3fc7)}
html[data-ui-theme][data-theme] .profile-pwa-mini>.button,html[data-ui-theme][data-theme] .profile-pwa-mini>.button.button-secondary{height:1.9rem;min-height:1.9rem;width:100%;padding:0 .6rem;border:0;border-radius:999px;background:var(--accent,#4c3fc7);color:var(--accent-contrast,#fff);font-size:.75rem;font-weight:600;line-height:1;box-shadow:none;cursor:pointer}
html[data-ui-theme][data-theme] .profile-pwa-mini>.button:hover:not(:disabled){background:color-mix(in srgb,var(--accent,#4c3fc7) 88%,#000);color:var(--accent-contrast,#fff)}
html[data-ui-theme][data-theme] .profile-pwa-mini>.button:disabled{opacity:.6;cursor:default}
.profile-basics-with-pwa>.profile-pwa-mini{max-width:11.5rem}
/* 2. 昵称/签名输入框：与「返回管理后台」同圆角、柔和边框、聚焦光圈 */
html[data-ui-theme][data-theme] .profile-form-compact :is(.profile-field-nick input,.profile-field-sig textarea){box-sizing:border-box;width:100%;border:1px solid var(--border-subtle,#e2e6eb);border-radius:14px;background:var(--surface-card,#fff);color:var(--text-primary);font:inherit;font-size:.875rem;line-height:1.4;padding:.6rem .85rem;min-height:44px;outline:0;transition:border-color .15s,box-shadow .15s}
html[data-ui-theme][data-theme] .profile-form-compact .profile-field-sig textarea{min-height:3.25rem;resize:none}
html[data-ui-theme][data-theme] .profile-form-compact :is(.profile-field-nick input,.profile-field-sig textarea):focus{border-color:var(--accent,#4c3fc7);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent,#4c3fc7) 25%,transparent)}
html[data-ui-theme][data-theme] .profile-form-compact :is(.profile-field-nick input,.profile-field-sig textarea)::placeholder{color:var(--text-muted)}
/* 3. 学习页：右侧「显示图片」行 + 开关状态 */
.study-tools .study-tool-state{margin-left:auto;font-size:.7rem;line-height:1;padding:.18rem .45rem;border-radius:999px;border:1px solid currentColor;opacity:.75;white-space:nowrap}
.study-tools .study-tool-toggle.active .study-tool-state,.study-tools .study-tool-state[data-on="1"]{opacity:1;color:var(--accent,#4c3fc7);border-color:currentColor}
.study-tools .study-tool-toggle{width:100%}
/* 4. 逐词提示：去掉音标旁的序号小圆圈 */
.study-token-order{display:none!important}
