/* Live account content uses the same calm Langufy surfaces and typography. */
.account-app { min-width:0; }
.account-search-wrap { position:relative; flex:1 1 250px; min-width:210px; }
.account-search-wrap .input-search { min-width:0; width:100%; }
.account-search-wrap input { padding-right:30px; }
.account-search-clear { position:absolute; right:8px; top:50%; transform:translateY(-50%); display:grid; place-items:center; width:30px; height:30px; color:var(--muted); border-radius:7px; border:0; background:transparent; font-family:inherit; font-size:22px; line-height:1; cursor:pointer; }
.account-search-clear:hover { background:var(--soft); color:var(--deep); }
.account-library-selects { display:flex; flex-wrap:wrap; align-items:center; gap:9px; }
.account-library-meta { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 25px 17px; min-height:35px; color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; }
.account-filter-reset { padding:4px 0; border:0; background:none; color:var(--deep); font:inherit; cursor:pointer; text-underline-offset:4px; }
.account-filter-reset:hover { text-decoration:underline; }
.account-search-clear[hidden],.account-filter-reset[hidden],.account-word-picker>[hidden],.account-picker-empty[hidden] { display:none!important; }
.account-picker-empty { padding:25px 15px; text-align:center; border:1px dashed var(--line); border-radius:12px; background:var(--bg); }
.account-picker-empty strong { font-size:14px; color:var(--ink); }
.account-picker-empty p,.account-picker-count { margin-top:8px; color:var(--muted); font-size:12px; line-height:1.7; }
.account-picker-count { margin:10px 0; }
.account-app .account-words-table tr { transition:background-color .16s ease; }
.account-app .account-words-table tbody tr:hover { background:var(--soft); }
.account-app .account-words-table .icon-btn:focus-visible,.account-search-clear:focus-visible,.account-filter-reset:focus-visible { outline:2px solid var(--deep); outline-offset:3px; }
.account-app .account-words-table .icon-btn { transition:background-color .16s ease,color .16s ease; }
.account-dialog[open] { animation:account-dialog-enter .2s ease-out both; }
@keyframes account-dialog-enter { from { opacity:0; transform:translateY(7px) scale(.99); } to { opacity:1; transform:none; } }
.account-sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.account-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:48px 25px; min-height:275px; }
.account-empty-icon { display:grid; place-items:center; width:58px; height:58px; margin-bottom:20px; border:1px solid var(--line); border-radius:14px; background:var(--soft); color:var(--deep); }
.account-empty-icon>.icon { width:28px; height:28px; }
.account-empty h2 { color:var(--ink); font-size:21px; font-weight:650; line-height:1.5; letter-spacing:-.4px; }
.account-empty>p { max-width:440px; margin-top:11px; color:var(--muted); font-size:14px; line-height:1.85; }
.account-empty-actions { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:11px; margin-top:24px; }
.account-loading { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; min-height:420px; padding:35px; }
.account-loading-mark { display:grid; place-items:center; width:70px; height:70px; border-radius:17px; background:var(--soft); color:var(--deep); margin-bottom:24px; }
.account-loading-mark>.icon { width:35px; height:35px; }
.account-loading h2 { font-size:23px; line-height:1.5; }
.account-loading p { margin-top:11px; color:var(--muted); font-size:14px; line-height:1.8; }
.account-ring { animation:none!important; }
.account-goal-link { display:inline-flex; align-items:center; gap:4px; margin-top:22px; padding:5px 0; color:var(--deep); font-size:12px; font-weight:550; }
.account-goal-link>.icon { width:13px; height:13px; }
.account-app .hero-word-chip { min-width:0; }
.account-app .hero-word-chip>div:last-child { min-width:0; }
.account-app .hero-word-chip strong { white-space:normal; overflow-wrap:anywhere; }
.account-app .hero-word-chip strong>span { overflow-wrap:anywhere; }
.account-collection-card .collection-body>p { min-height:22px; overflow-wrap:anywhere; }
.account-collection-card h3 { overflow-wrap:anywhere; }
.account-collection-card .collection-bottom { margin-top:23px; font-size:13px; }
.account-app .collection-cover.peach { background:var(--peach); }
.account-app .collection-cover.blue { background:var(--blue); }
.account-app .collection-cover.lavender { background:var(--lavender); }
.account-app .collection-cover.yellow { background:var(--yellow); }
.account-app .collection-cover.pink { background:var(--pink); }
.account-app .collection-detail-banner { background:var(--soft); color:var(--ink); }
.account-app .collection-detail-banner.peach { background:var(--peach); }
.account-app .collection-detail-banner.blue { background:var(--blue); }
.account-app .collection-detail-banner.lavender { background:var(--lavender); }
.account-app .collection-detail-banner.yellow { background:var(--yellow); }
.account-app .collection-detail-banner.pink { background:var(--pink); }
.account-app .collection-detail-banner>div { min-width:0; }
.account-app .collection-detail-banner h1,.account-app .collection-detail-banner p { overflow-wrap:anywhere; }
.account-app .collection-detail-banner>.icon-btn { display:inline-flex; margin-left:auto; flex-shrink:0; }
.account-detail-actions { justify-content:flex-start; flex-wrap:wrap; gap:12px; }
.account-library-toolbar { flex-wrap:wrap; }
.account-library-toolbar .input-search { min-width:220px; flex:1; }
.account-library-toolbar .input-search input { min-width:0; width:100%; }
.account-type-filter { display:block; flex-shrink:0; }
.account-type-filter>select { min-height:42px; max-width:210px; margin:0!important; padding:9px 31px 9px 13px!important; border:1px solid var(--line); border-radius:8px; background-color:var(--surface); color:var(--ink); font-size:13px; }
.account-words-table { min-width:650px; }
.account-words-table th:last-child,.account-words-table td:last-child { width:137px; }
.account-words-table th:nth-child(3),.account-words-table td:nth-child(3) { width:115px; }
.account-words-table td { vertical-align:middle; }
.account-words-table .word-cell strong { overflow-wrap:anywhere; }
.account-word-collections { display:block; color:var(--muted); font-size:12px; line-height:1.8; margin-top:4px; }
.account-row-actions { display:flex; align-items:center; justify-content:flex-end; gap:4px; }
.account-row-actions>.icon-btn { width:34px; height:36px; flex-shrink:0; }
.account-favorite { color:var(--muted); }
.account-favorite.is-saved { color:var(--deep); }
.account-favorite.is-saved>.icon { fill:var(--soft); }
.account-favorite-search { margin-bottom:23px; }
.account-app .favorite-card-top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.account-app .favorite-card>.account-example { margin-top:14px; font-size:13px; line-height:1.8; font-style:italic; color:var(--muted); }
.account-app .favorite-card>p { overflow-wrap:anywhere; }
.account-app .favorite-card footer { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.account-app .favorite-card footer>span { overflow-wrap:anywhere; }
.account-analytics-panel { padding:27px 28px; }
.account-analytics-panel .account-empty { min-height:265px; padding:35px 20px 20px; }
.account-activity-chart { display:flex; align-items:stretch; justify-content:space-around; gap:15px; height:238px; margin-top:30px; padding-top:23px; }
.account-activity-chart>div { display:grid; grid-template-rows:20px minmax(0,1fr) 22px; justify-items:center; align-items:end; gap:8px; min-width:0; flex:1; }
.account-activity-chart strong { color:var(--ink); font-size:12px; font-weight:550; line-height:1.6; }
.account-activity-chart span { width:min(100%,29px); height:var(--activity-height,0%); min-height:2px; border-radius:5px 5px 0 0; background:var(--brand); }
.account-activity-chart small { color:var(--muted); font-size:12px; line-height:1.7; text-align:center; white-space:nowrap; }
.account-mode-stats { margin-top:23px; padding:25px 28px; }
.account-mode-stats>h2 { font-size:17px; margin-bottom:20px; }
.account-mode-stats>div { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:17px; }
.account-mode-stats>div>div { padding:17px; border:1px solid var(--line); border-radius:10px; background:var(--bg); }
.account-mode-stats span { display:block; font-size:13px; color:var(--muted); margin-bottom:10px; }
.account-mode-stats strong { font:650 24px/1.5 var(--heading); }
.account-mode-stats small { margin-left:7px; color:var(--muted); font-size:12px; }
.account-activity-table { margin-top:23px; }
.account-settings-form { max-width:890px; }
.account-settings-form>.settings-card { margin-bottom:23px; }
.account-settings-form .large-avatar { display:grid; place-items:center; }
.account-settings-form .profile-edit>div:last-child { min-width:0; }
.account-settings-form .profile-edit strong,.account-settings-form .profile-edit p { overflow-wrap:anywhere; }
.account-settings-form input[readonly] { background:var(--bg); color:var(--muted); cursor:default; }
.account-goal-field { display:block; max-width:300px; color:var(--ink); font-size:13px; font-weight:550; margin-top:23px; }
.account-goal-field>input { max-width:180px; }
.account-checkbox-setting { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:24px; padding-top:24px; border-top:1px solid var(--line); cursor:pointer; }
.account-checkbox-setting strong { display:block; font-size:14px; font-weight:550; }
.account-checkbox-setting small { display:block; color:var(--muted); font-size:13px; font-weight:400; margin-top:5px; line-height:1.8; }
.account-checkbox-setting>input[type=checkbox] { width:21px; height:21px; flex-shrink:0; margin:0; accent-color:var(--deep); }
.account-settings-form .settings-card>.form-grid { margin-top:25px; }
.account-settings-save { display:flex; justify-content:flex-end; margin:0 0 22px; }
.account-field-help { color:var(--muted); font-size:12px; line-height:1.8; margin:-9px 0 20px; }
.account-form-error { padding:13px 15px; margin:20px 0; border:1px solid #ddc5b8; border-radius:8px; background:#fbf4ef; color:#874d2d; font-size:13px; line-height:1.8; overflow-wrap:anywhere; }
.account-checkbox-list { min-width:0; border:1px solid var(--line); border-radius:9px; padding:8px 15px 13px; margin:20px 0 0; max-height:290px; overflow-y:auto; }
.account-checkbox-list legend { padding:0 6px; color:var(--ink); font-size:13px; font-weight:550; }
.account-checkbox-list>label { display:flex; align-items:flex-start; gap:11px; padding:11px 0; margin:0; cursor:pointer; }
.account-checkbox-list>label+label { border-top:1px solid var(--line); }
.account-checkbox-list input[type=checkbox] { flex-shrink:0; width:18px; height:18px; margin:2px 0 0; padding:0; accent-color:var(--deep); }
.account-checkbox-list>label>span { display:block; min-width:0; color:var(--ink); font-size:14px; font-weight:400; line-height:1.7; overflow-wrap:anywhere; }
.account-checkbox-list small { display:block; color:var(--muted); font-size:12px; font-weight:400; line-height:1.8; margin-top:3px; }
.account-checkbox-list strong { font-weight:600; }
.account-color-options { display:flex; flex-wrap:wrap; gap:9px; padding:13px 0 0; margin:18px 0; border:0; }
.account-color-options legend { color:var(--ink); font-size:13px; font-weight:550; }
.account-color-options>label { display:flex; align-items:center; gap:7px; min-height:40px; padding:9px 10px; margin:0!important; border:1px solid var(--line); border-radius:7px; color:var(--ink); font-size:12px; font-weight:400; cursor:pointer; }
.account-color-options input[type=radio] { width:15px; height:15px; padding:0; margin:0; accent-color:var(--deep); }
.account-dialog { width:min(610px,calc(100% - 32px)); max-height:calc(100dvh - 48px); padding:33px; border:1px solid var(--line); border-radius:15px; background:var(--surface); color:var(--ink); overflow-y:auto; }
.account-dialog::backdrop { background:#172f2760; backdrop-filter:blur(3px); }
.account-dialog-close { position:absolute; top:14px; right:14px; width:35px; height:35px; font-size:26px; font-weight:400; line-height:1; color:var(--muted); }
.account-dialog-content { min-width:0; }
.account-dialog #account-dialog-title { padding-right:23px; margin:0 0 20px; font-size:24px; font-weight:700; letter-spacing:-.5px; line-height:1.45; }
.account-dialog-subtitle { color:var(--muted); font-size:14px; line-height:1.9; margin:0 0 23px; overflow-wrap:anywhere; }
.account-dialog-subtitle strong { color:var(--ink); font-weight:600; }
.account-dialog-form { min-width:0; }
.account-dialog-form>label,.account-dialog-form .form-grid>label,.account-modal-search { display:block; color:var(--ink); font-size:13px; font-weight:550; line-height:1.7; margin:0 0 19px; }
.account-dialog-form input:not([type=checkbox]):not([type=radio]),.account-dialog-form textarea,.account-dialog-form select { display:block; width:100%; min-width:0; padding:12px 13px; margin-top:8px; border:1px solid #bdc9c1; border-radius:8px; background:var(--surface); color:var(--ink); font-size:14px; font-weight:400; line-height:1.6; }
.account-dialog-form textarea { resize:vertical; }
.account-dialog-form .form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px; }
.account-dialog-form .form-grid>label { margin-bottom:17px; }
.account-dialog-form>.form-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:24px; }
.account-dialog-form>.form-actions>.btn { font-size:13px; }
.account-dialog-form .account-empty { padding:10px 0 20px; }
.account-word-picker { margin-top:0; max-height:340px; }
.account-delete-row { padding-top:20px; margin-top:22px; border-top:1px solid var(--line); }
.account-danger-link { display:inline-flex; align-items:center; gap:7px; padding:6px 0; min-height:35px; border:0; background:none; color:#955338; font-size:13px; font-weight:500; }
.account-danger-link>.icon { width:17px; height:17px; }
.account-danger-btn { background:#a45237; color:#fff; border-color:#a45237; }
.account-danger-btn:hover { background:#8c442e; }
.account-confirm-note { color:var(--muted); font-size:12px; line-height:1.8; margin-top:-10px; }
.account-app form[aria-busy=true] { cursor:progress; }
.account-reload-alert { display:flex; align-items:center; justify-content:space-between; gap:15px; border:1px solid #d8cbbb; border-radius:9px; background:var(--peach); padding:15px 18px; margin-bottom:25px; }
.account-reload-alert p { color:var(--ink); font-size:13px; line-height:1.8; }
:root[data-theme=dark] .account-form-error { border-color:#826552; background:#413930; color:#e6b697; }
:root[data-theme=dark] .account-dialog-form input:not([type=checkbox]):not([type=radio]),:root[data-theme=dark] .account-dialog-form textarea,:root[data-theme=dark] .account-dialog-form select { border-color:#65766a; }
:root[data-theme=dark] .account-danger-link { color:#e6b697; }
:root[data-theme=dark] .account-reload-alert { border-color:#826f59; }
@media(max-width:720px) {
  .account-search-wrap { flex-basis:100%; }
  .account-library-selects { width:100%; flex-wrap:nowrap; }
  .account-library-selects .account-type-filter { flex:1; min-width:0; width:auto; }
  .account-library-selects .account-type-filter>select { max-width:none; width:100%; font-size:12px; }
  .account-library-meta { padding-left:18px; padding-right:18px; }
}
@media(max-width:1050px) {
  .account-app .daily-goal { grid-template-columns:1fr 140px; }
  .account-app .daily-goal .account-goal-link { grid-column:1; grid-row:3; justify-self:start; margin-top:13px; }
  .account-app .daily-goal .goal-caption { max-width:none; }
  .account-settings-form { max-width:100%; }
}
@media(max-width:560px) {
  .account-empty { min-height:270px; padding:34px 22px; }
  .account-empty h2 { font-size:20px; }
  .account-empty>p { font-size:13px; }
  .account-empty-actions { width:100%; gap:10px; }
  .account-empty-actions>.btn { width:100%; font-size:13px; }
  .account-loading { min-height:350px; padding:25px; }
  .account-loading h2 { font-size:21px; }
  .account-app .daily-goal { grid-template-columns:1fr 115px; }
  .account-app .daily-goal .goal-caption { max-width:160px; }
  .account-app .daily-goal .account-goal-link { font-size:12px; margin-top:10px; }
  .account-app .collection-detail-banner { flex-wrap:wrap; }
  .account-app .collection-detail-banner>div { flex:1; min-width:150px; }
  .account-app .collection-detail-banner>.icon-btn { display:inline-flex; }
  .account-detail-actions .btn { min-height:43px; font-size:13px; }
  .account-library-toolbar { gap:13px; }
  .account-library-toolbar .input-search { min-width:100%; }
  .account-type-filter { width:100%; }
  .account-type-filter>select { width:100%; max-width:none; }
  .account-words-table { min-width:595px; }
  .account-words-table th,.account-words-table td { padding-left:17px; padding-right:17px; }
  .account-app .favorite-grid { grid-template-columns:minmax(0,1fr); }
  .account-app .favorite-card { padding:23px; }
  .account-app .favorite-card h2 { font-size:28px; }
  .account-analytics-panel { padding:23px 18px; }
  .account-activity-chart { height:218px; gap:9px; }
  .account-activity-chart small { font-size:12px; white-space:normal; line-height:1.4; }
  .account-activity-chart span { max-width:20px; }
  .account-mode-stats { padding:23px 20px; }
  .account-mode-stats>div { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .account-mode-stats>div>div { padding:15px 13px; }
  .account-activity-table table { min-width:545px; }
  .account-settings-form .form-grid { grid-template-columns:minmax(0,1fr); }
  .account-settings-save .btn { width:100%; font-size:13px; }
  .account-field-help { font-size:12px; }
  .account-checkbox-list { padding-left:12px; padding-right:12px; }
  .account-checkbox-list>label>span { font-size:13px; }
  .account-dialog { width:calc(100% - 24px); max-height:calc(100dvh - 30px); padding:28px 22px; }
  .account-dialog-close { top:11px; right:11px; }
  .account-dialog #account-dialog-title { font-size:22px; margin-bottom:21px; }
  .account-dialog-subtitle { font-size:13px; }
  .account-dialog-form .form-grid { grid-template-columns:minmax(0,1fr); gap:0; }
  .account-dialog-form>.form-actions { gap:10px; }
  .account-dialog-form>.form-actions>.btn { flex:1; padding-left:10px; padding-right:10px; }
  .account-reload-alert { align-items:flex-start; flex-direction:column; }
}

/* Keep the word and its actions together on small screens. */
@media(max-width:560px) {
  .account-app .account-words-table { display:block; width:100%; min-width:0; }
  .account-app .account-words-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
  .account-app .account-words-table tbody { display:grid; gap:0; }
  .account-app .account-words-table tr { position:relative; display:grid; padding:20px 18px; border-top:1px solid var(--line); gap:7px; }
  .account-app .account-words-table td { display:block; width:auto; border:0; padding:0; white-space:normal; }
  .account-app .account-words-table td:first-child { padding-right:112px; min-height:36px; }
  .account-app .account-words-table td:nth-child(2) { padding-right:0; color:var(--muted); font-size:13px; line-height:1.7; }
  .account-app .account-words-table td:nth-child(3) { width:auto; margin-top:3px; }
  .account-app .account-words-table td:last-child { position:absolute; top:18px; right:12px; width:auto; }
  .account-app .account-words-table .word-cell strong { font-size:17px; }
  .account-app .account-words-table .account-row-actions { gap:2px; }
  .account-app .account-words-table .account-row-actions>.icon-btn { width:34px; height:36px; }
  .account-library-selects { gap:8px; }
  .account-library-meta { font-size:11px; gap:8px; padding-bottom:15px; }
}
@media(prefers-reduced-motion:reduce) {
  .account-dialog[open],.account-app .account-words-table tr,.account-app .account-words-table .icon-btn { animation:none; transition:none; }
}
:root[data-motion=reduced] .account-dialog[open],:root[data-motion=paused] .account-dialog[open] { animation:none; }

.social-home-strip{display:flex;align-items:center;gap:16px;padding:22px 24px;margin:24px 0}.social-home-strip>div{flex:1}.social-home-strip h2{font-size:17px;margin:0 0 6px}.social-home-strip p{color:var(--muted,#738179);font-size:13px;line-height:1.7;margin:0}.social-home-strip>.btn{white-space:nowrap}
@media(max-width:900px){.social-home-strip{flex-wrap:wrap}.social-home-strip>div{flex-basis:75%}.social-home-strip>.btn{flex:1}.account-row-actions{gap:2px}.account-row-actions .icon-btn{width:30px;height:34px}}

/* A single secondary discovery card; the learner's next practice stays primary. */
.today-challenge{display:flex;align-items:center;gap:28px;padding:28px 32px;margin:22px 0;background:#f1f8f2;border-color:#d6e5d9;overflow:hidden}
.today-challenge-art{position:relative;display:grid;place-items:center;flex:0 0 96px;height:96px;isolation:isolate}
.today-challenge-art:before,.today-challenge-art:after{content:"";position:absolute;width:68px;height:80px;border-radius:16px;z-index:-1;background:#dcebdc;border:1px solid #c5d9c8;transform:rotate(-13deg)}
.today-challenge-art:after{background:#fafff8;transform:rotate(9deg);box-shadow:0 9px 18px #285a3812}
.today-challenge-art>span{color:#497855;transform:rotate(9deg)}
.today-challenge-art .icon{width:32px;height:32px;flex:none}
.today-challenge-art i{position:absolute;right:0;bottom:0;display:grid;place-items:center;width:30px;height:30px;background:#527c58;border:3px solid #f1f8f2;color:#fff;border-radius:50%;font-style:normal;font-weight:700;font-size:12px}
.today-challenge-copy{min-width:0;flex:1}.today-challenge-copy h2{font-size:clamp(20px,2vw,24px);line-height:1.25;margin:9px 0;color:#254c35;letter-spacing:-.5px}
.today-challenge-copy p{margin:0 0 18px;font-size:14px;line-height:1.65;color:#566c5e}
.today-challenge-copy>div,.account-analytics-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.today-achievement-link{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:650;color:#3d6649;min-height:44px}
.today-challenge .today-tag{font-size:10px;letter-spacing:1.1px;color:#567a61}.today-challenge .btn.light{border:1px solid #b9d0bd;background:#fffefb;color:#31583d;box-shadow:none}
@media(max-width:600px){.today-challenge{gap:15px;padding:22px 20px;align-items:flex-start}.today-challenge-art{flex-basis:52px;height:62px;margin-top:9px}.today-challenge-art:before,.today-challenge-art:after{width:43px;height:54px;border-radius:11px}.today-challenge-art .icon{width:23px;height:23px}.today-challenge-art i{width:24px;height:24px;right:-6px;bottom:-4px}.today-challenge-copy h2{font-size:20px}.today-challenge-copy>div{gap:6px}.account-analytics-actions{gap:8px}}
@media(prefers-reduced-motion:no-preference){html:not([data-motion="paused"]):not([data-motion="reduced"]) .today-challenge:hover .today-challenge-art:after{transform:rotate(3deg) translateY(-3px);transition:transform .25s ease}}

/* A vocabulary workspace: compact headings, one clear next step and real data. */
.account-page-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 0 22px; }
.account-page-heading>div:first-child { min-width:0; }
.account-page-heading h1 { margin:0; font:650 clamp(25px,2.8vw,32px)/1.25 var(--heading); letter-spacing:-.8px; overflow-wrap:anywhere; }
.account-page-heading p { margin:8px 0 0; color:var(--muted); font-size:14px; line-height:1.7; }
.account-heading-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; flex-shrink:0; gap:9px; }
.account-heading-actions>.btn { font-size:13px; min-height:44px; }
.account-date { color:var(--muted); font-size:13px; white-space:nowrap; }
.account-personal-tabs { display:flex; gap:5px; padding:0 0 13px; margin:0 0 22px; border-bottom:1px solid var(--line); }
.account-personal-tabs>a { display:flex; align-items:center; min-height:44px; padding:9px 15px; border-radius:8px; font-size:14px; color:var(--muted); text-decoration:none; }
.account-personal-tabs>a[aria-current=page] { color:var(--deep); background:var(--soft); font-weight:650; }
.account-personal-tabs>a:hover { color:var(--deep); background:var(--bg); }
.account-vocabulary-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:0 0 24px; border:1px solid var(--line); border-radius:12px; background:var(--surface); overflow:hidden; }
.account-vocabulary-summary>a { display:flex; flex-direction:column; gap:8px; padding:18px 22px; color:var(--ink); text-decoration:none; min-width:0; }
.account-vocabulary-summary>a+a { border-left:1px solid var(--line); }
.account-vocabulary-summary>a:hover { background:var(--soft); }
.account-vocabulary-summary span { font-size:12px; color:var(--muted); line-height:1.5; }
.account-vocabulary-summary strong { font:650 27px/1.15 var(--heading); font-variant-numeric:tabular-nums; }
.account-workspace-search { padding:20px 22px; margin-bottom:20px; }
.account-workspace-search>label { display:block; font-size:14px; font-weight:600; margin-bottom:10px; color:var(--ink); }
.account-workspace-search>div { display:flex; align-items:center; gap:12px; }
.account-workspace-search>div>.icon { width:20px; height:20px; color:var(--muted); flex:none; }
.account-workspace-search input { display:block; flex:1; width:100%; min-width:0; min-height:46px; margin:0; padding:10px 0; border:0; border-radius:4px; color:var(--ink); background:transparent; font-family:inherit; font-size:15px; font-weight:400; line-height:1.5; }
.account-workspace-search input:focus-visible { outline:2px solid var(--deep); outline-offset:4px; }
.account-workspace-search button { min-height:44px; flex:none; }
.account-workspace-grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(250px,1fr); gap:20px; align-items:start; }
.account-recent { overflow:hidden; }
.account-section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:21px 22px; }
.account-section-heading h2 { font-size:16px; line-height:1.45; margin:0; font-weight:650; }
.account-section-heading>a { display:inline-flex; align-items:center; gap:4px; min-height:30px; color:var(--deep); font-size:12px; text-decoration:none; white-space:nowrap; }
.account-section-heading>a>.icon { width:15px; height:15px; flex:none; }
.account-recent-list { list-style:none; margin:0; padding:0; }
.account-recent-list>li { border-top:1px solid var(--line); }
.account-recent-list>li>button { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 15px; padding:17px 22px; border:0; width:100%; text-align:left; background:transparent; color:var(--ink); cursor:pointer; font-family:inherit; }
.account-recent-list>li>button:hover { background:var(--soft); }
.account-recent-list strong { font-size:16px; font-weight:650; overflow-wrap:anywhere; }
.account-recent-list span { grid-column:1; color:var(--muted); font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.account-recent-list small { grid-column:2; grid-row:1/3; align-self:center; display:flex; align-items:center; gap:3px; color:var(--muted); font-size:11px; }
.account-recent-list small>.icon { width:14px; height:14px; flex:none; }
.account-source-link { display:flex; align-items:center; gap:7px; padding:0 22px 13px; font-size:12px; color:var(--deep); min-height:32px; }
.account-source-link>.icon { width:14px; height:14px; flex:none; }
.account-workspace-empty { padding:24px 24px 32px; text-align:center; }
.account-workspace-empty>.icon { width:31px; height:31px; color:var(--deep); margin:auto auto 12px; }
.account-workspace-empty p { font-size:14px; line-height:1.7; color:var(--muted); }
.account-workspace-empty a { display:inline-flex; align-items:center; gap:6px; min-height:44px; margin-top:12px; font-size:13px; color:var(--deep); }
.account-workspace-empty a>.icon { width:15px; height:15px; flex:none; }
.account-review-card { padding:25px; }
.account-section-label { color:var(--deep); font-size:10px; font-weight:650; letter-spacing:1.1px; }
.account-review-card h2 { font:650 23px/1.35 var(--heading); letter-spacing:-.4px; margin:12px 0; }
.account-review-card>p { color:var(--muted); font-size:14px; line-height:1.75; margin:0 0 20px; }
.account-review-card>.btn { width:100%; justify-content:center; font-size:13px; min-height:46px; }
.account-review-card>.account-next-review { margin:22px 0 0; padding-top:18px; border-top:1px solid var(--line); font-size:12px; }
.account-next-review time { display:block; font-size:15px; color:var(--ink); font-weight:600; margin:3px 0; }
.account-next-review small { color:var(--muted); font-size:11px; }
.account-daily-note { display:flex; align-items:center; gap:8px; padding-top:20px; margin-top:20px; border-top:1px solid var(--line); font-size:12px; color:var(--muted); }
.account-daily-note>strong { margin-left:auto; color:var(--ink); font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; }
.account-daily-note>a { display:grid; place-items:center; min-width:36px; min-height:36px; color:var(--muted); }
.account-daily-note .icon { width:17px; height:17px; flex:none; }
.account-recent-collections { margin-top:25px; }
.account-recent-collections>.account-section-heading { padding:0 0 16px; }
.account-collection-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:15px; }
.account-collection-tile { display:flex; align-items:flex-start; gap:14px; min-height:135px; padding:22px; border:1px solid var(--line); border-radius:12px; background:var(--surface); text-decoration:none; color:var(--ink); }
.account-collection-tile:hover { border-color:var(--deep); background:var(--soft); }
.account-collection-tile>div { min-width:0; flex:1; }
.account-collection-tile h2 { font-size:16px; line-height:1.5; margin:0 0 6px; font-weight:650; overflow-wrap:anywhere; }
.account-collection-tile p { color:var(--muted); font-size:12px; line-height:1.7; margin:0 0 14px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.account-collection-tile>div>span { color:var(--deep); font-size:12px; }
.account-collection-tile>.icon { flex:none; width:16px; height:16px; color:var(--muted); margin-top:7px; }
.account-folder-mark { display:grid; place-items:center; width:40px; height:40px; flex:none; border-radius:10px; background:var(--soft); color:var(--deep); }
.account-folder-mark>.icon { width:20px; height:20px; flex:none; }
.account-extra-links { display:flex; flex-wrap:wrap; gap:8px 24px; margin-top:24px; padding-top:18px; border-top:1px solid var(--line); }
.account-extra-links>a { display:inline-flex; align-items:center; gap:7px; min-height:44px; font-size:12px; color:var(--muted); }
.account-extra-links .icon { width:16px; height:16px; flex:none; }
.account-collection-description { margin:-8px 0 22px; color:var(--muted); font-size:14px; line-height:1.75; overflow-wrap:anywhere; }
.account-collection-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:0 0 22px; }
.account-collection-actions .btn { font-size:13px; min-height:44px; }
.account-collection-manage { position:relative; margin-left:auto; }
.account-collection-manage>summary { display:flex; align-items:center; gap:8px; cursor:pointer; list-style:none; color:var(--muted); min-height:44px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; font-size:13px; background:var(--surface); }
.account-collection-manage>summary::-webkit-details-marker { display:none; }
.account-collection-manage>summary>.icon { width:19px; height:19px; flex:none; }
.account-collection-manage[open]>summary { color:var(--deep); background:var(--soft); }
.account-collection-manage>div { position:absolute; z-index:4; right:0; top:calc(100% + 8px); width:240px; max-width:calc(100vw - 48px); padding:9px; display:grid; gap:4px; border:1px solid var(--line); border-radius:10px; background:var(--surface); box-shadow:0 10px 24px #152d2210; }
.account-collection-manage>div>.btn { justify-content:flex-start; border:0; background:transparent; white-space:normal; text-align:left; }
.account-collection-manage>div>.btn:hover { background:var(--soft); }
.account-app .account-words-table th:last-child,.account-app .account-words-table td:last-child { width:188px; }
.account-app .account-row-actions>.icon-btn { width:42px; height:44px; }
.account-page-heading a:focus-visible,.account-personal-tabs a:focus-visible,.account-vocabulary-summary a:focus-visible,.account-recent-list button:focus-visible,.account-source-link:focus-visible,.account-collection-tile:focus-visible,.account-collection-manage>summary:focus-visible,.account-extra-links a:focus-visible { outline:2px solid var(--deep); outline-offset:3px; }
@media(max-width:1050px) {
  .account-page-heading { flex-wrap:wrap; }
  .account-heading-actions { justify-content:flex-start; flex-shrink:1; }
  .account-workspace-grid { grid-template-columns:minmax(0,1fr); }
  .account-review-card { display:block; }
  .account-review-card>.btn { width:auto; }
}
@media(max-width:640px) {
  .account-page-heading { gap:13px; margin-bottom:18px; }
  .account-page-heading h1 { font-size:26px; }
  .account-page-heading p { font-size:13px; }
  .account-heading-actions { gap:8px; width:100%; }
  .account-heading-actions>.btn { flex:1; justify-content:center; font-size:12px; padding-left:12px; padding-right:12px; }
  .account-heading-actions>.account-date { font-size:12px; }
  .account-personal-tabs { gap:2px; margin-bottom:18px; }
  .account-personal-tabs>a { padding:9px 12px; font-size:13px; }
  .account-vocabulary-summary { grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:20px; }
  .account-vocabulary-summary>a { padding:15px 18px; }
  .account-vocabulary-summary>a:nth-child(3) { border-left:0; }
  .account-vocabulary-summary>a:nth-child(n+3) { border-top:1px solid var(--line); }
  .account-vocabulary-summary strong { font-size:24px; }
  .account-workspace-search { padding:18px; }
  .account-workspace-search>div { gap:8px; flex-wrap:wrap; }
  .account-workspace-search input { flex-basis:calc(100% - 32px); font-size:14px; }
  .account-workspace-search button { width:100%; justify-content:center; }
  .account-section-heading { padding:18px; }
  .account-recent-list>li>button { padding:16px 18px; }
  .account-source-link { padding-left:18px; padding-right:18px; }
  .account-review-card { padding:22px; }
  .account-review-card>.btn { width:100%; }
  .account-collection-actions { align-items:flex-start; }
  .account-collection-actions>.btn { flex:1; min-width:140px; justify-content:center; }
  .account-collection-manage { margin-left:0; }
  .account-extra-links { gap:5px 18px; }
  .account-collection-tile { min-height:118px; padding:19px; }
  .account-app .account-words-table { display:block; width:100%; min-width:0; }
  .account-app .account-words-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
  .account-app .account-words-table tbody { display:grid; gap:0; }
  .account-app .account-words-table tr { display:grid; position:relative; padding:20px 18px 13px; border-top:1px solid var(--line); gap:7px; }
  .account-app .account-words-table td,.account-app .account-words-table td:first-child,.account-app .account-words-table td:nth-child(3),.account-app .account-words-table td:last-child { display:block; position:static; width:auto; padding:0; border:0; white-space:normal; min-height:0; }
  .account-app .account-words-table td:nth-child(2) { color:var(--muted); font-size:13px; line-height:1.7; }
  .account-app .account-words-table td:last-child { padding-top:5px; }
  .account-app .account-words-table .account-row-actions { justify-content:flex-start; gap:5px; }
  .account-app .account-words-table .account-row-actions>.icon-btn { width:44px; height:44px; }
  .account-app .account-words-table .word-cell strong { font-size:17px; }
}

@media(max-width:640px) { .account-collection-manage>div { left:0; right:auto; } }


.account-battle-shortcut { display:flex;align-items:center;gap:12px;min-height:72px;padding:13px 16px;margin:14px 0 20px;border:1px solid var(--line);border-radius:12px;color:var(--deep);background:var(--soft); }
.account-battle-shortcut>span { flex:1;min-width:0; }
.account-battle-shortcut strong { display:block;font-size:15px;line-height:1.5; }
.account-battle-shortcut small { display:block;color:var(--muted);font-size:13px;line-height:1.5;margin-top:2px; }
.account-battle-shortcut>.icon { width:22px;height:22px;flex-shrink:0; }
.account-battle-shortcut>.icon:last-child { width:16px;height:16px; }
.account-battle-shortcut:hover { border-color:var(--deep); }
@media(max-width:640px) { .account-battle-shortcut { gap:10px;padding:11px 12px;margin:12px 0 16px; }.account-battle-shortcut strong { font-size:14px; } }

/* Keep saved vocabulary visible above the fold, including narrow phones. */
.account-vocabulary-summary.is-compact { grid-template-columns:repeat(4,minmax(0,1fr)); margin-bottom:14px; border-radius:10px; }
.account-vocabulary-summary.is-compact>a { gap:4px; min-height:64px; padding:10px 14px; justify-content:center; }
.account-vocabulary-summary.is-compact span { font-size:11px; line-height:1.4; }
.account-vocabulary-summary.is-compact strong { font-size:22px; line-height:1.1; }
.account-vocabulary-summary.is-compact>a:nth-child(n+2) { border-left:1px solid var(--line); }
.account-vocabulary-summary.is-compact>a:nth-child(n+3) { border-top:0; }
.account-app .account-library-toolbar { padding:13px 18px 9px; gap:9px; }
.account-app .account-library-meta { padding:0 18px 10px; min-height:27px; }
@media(max-width:640px) {
  .account-app[data-account-page=dictionary] .account-page-heading { gap:10px; margin-bottom:14px; }
  .account-app[data-account-page=dictionary] .account-page-heading p { margin-top:5px; }
  .account-vocabulary-summary.is-compact>a { padding:9px 8px; min-height:64px; }
  .account-vocabulary-summary.is-compact span { font-size:11px; }
  .account-vocabulary-summary.is-compact strong { font-size:21px; }
  .account-app .account-library-toolbar { padding:9px 14px 8px; gap:5px; }
  .account-app .account-library-toolbar .input-search { min-height:44px; }
  .account-app .account-library-selects { gap:7px; }
  .account-app .account-library-selects .account-type-filter>select { min-height:44px; padding:8px 24px 8px 10px!important; font-size:12px; }
  .account-app .account-library-meta { padding:0 14px 8px; min-height:26px; }
}

/* Compact mobile collection and favorite lists keep the full row easy to use. */
@media(max-width:640px) {
  .account-app .account-collection-grid { grid-template-columns:minmax(0,1fr); gap:9px; }
  .account-app .account-collection-tile { min-height:0; padding:12px 13px; gap:10px; align-items:flex-start; border-radius:10px; }
  .account-app .account-collection-tile .account-folder-mark { width:32px; height:32px; border-radius:8px; margin-top:2px; }
  .account-app .account-collection-tile .account-folder-mark>.icon { width:18px; height:18px; }
  .account-app .account-collection-tile h2 { font-size:15px; line-height:1.4; margin-bottom:3px; }
  .account-app .account-collection-tile p { font-size:13px; line-height:1.45; margin-bottom:4px; -webkit-line-clamp:2; }
  .account-app .account-collection-tile>div>span { font-size:13px; line-height:1.4; }
  .account-app .account-collection-tile>.icon { width:14px; height:14px; margin-top:5px; }
  .account-app .account-collection-tile:focus-visible p { -webkit-line-clamp:unset; }
  .account-app[data-account-page] .account-words-table tr { grid-template-columns:minmax(0,1fr) auto; gap:4px 8px; padding:12px 14px 9px; }
  .account-app[data-account-page] .account-words-table td:first-child { grid-column:1 / -1; grid-row:1; }
  .account-app[data-account-page] .account-words-table td:nth-child(2) { grid-column:1 / -1; grid-row:2; font-size:14px; line-height:1.5; }
  .account-app[data-account-page] .account-words-table td:nth-child(3) { grid-column:1; grid-row:3; align-self:center; min-width:0; }
  .account-app[data-account-page] .account-words-table td:last-child { grid-column:2; grid-row:3; padding-top:0; align-self:center; }
  .account-app[data-account-page] .word-cell>div { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 8px; min-width:0; }
  .account-app[data-account-page] .account-words-table .word-cell strong { font-size:17px; line-height:1.4; overflow-wrap:anywhere; }
  .account-app[data-account-page] .word-cell small { font-size:13px; line-height:1.5; margin:0; }
  .account-app[data-account-page] .account-word-collections { font-size:13px; line-height:1.5; margin-top:2px; overflow-wrap:anywhere; }
  .account-app[data-account-page] a.account-word-collections { flex-basis:100%; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; min-height:44px; padding-block:3px; }
  .account-app[data-account-page] a.account-word-collections:focus-visible { -webkit-line-clamp:unset; }
  .account-app[data-account-page] .word-type { font-size:13px; line-height:1.4; white-space:normal; overflow-wrap:anywhere; }
  .account-app[data-account-page] .account-row-actions { gap:3px; }
  .account-app[data-account-page] .account-row-actions>.icon-btn { width:44px; min-width:44px; height:44px; padding:10px; }
  .account-app[data-account-page] .table-footer { padding:12px 14px; font-size:13px; }
}
