/* 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}}
