/* Optional reading is adjacent to its decision, with stable native disclosures. */
.clarity-disclosure { min-width:0; margin:12px 0; border:1px solid #9cab8352; border-radius:11px; background:#122b2b; }
.clarity-disclosure > summary { display:flex; align-items:center; gap:8px 14px; min-height:48px; padding:12px 14px; color:#e7d6ad; font-size:13px; line-height:1.5; list-style:none; cursor:pointer; }
.clarity-disclosure > summary::-webkit-details-marker { display:none; }
.clarity-disclosure > summary::after { content:'⌄'; flex:none; margin-left:auto; color:#c5d0ac; font-size:17px; line-height:1; }
.clarity-disclosure[open] > summary::after { transform:rotate(180deg); }
.clarity-disclosure > summary > span { min-width:0; overflow-wrap:anywhere; }
.clarity-disclosure > summary > small { min-width:0; margin-left:auto; color:#b5c9bc; font-size:11px; line-height:1.5; text-align:right; overflow-wrap:anywhere; }
.clarity-disclosure > summary:has(> small)::after { margin-left:0; }
.clarity-disclosure > summary:focus-visible { outline:2px solid #e7d6a2; outline-offset:3px; border-radius:9px; }
.clarity-disclosure[open] > summary { border-bottom:1px solid #9cab8333; }
.clarity-detail-body { padding:0 14px 14px; min-width:0; }
.clarity-detail-body > p:last-child { margin-bottom:0; }
#journey-tools { margin:20px 0 12px; background:#102728; }
.journey-tools-content { padding:12px; min-width:0; }
#journey-tools .campaign-toolbar { margin:0 0 12px; }
#journey-tools .journey-overview { margin:0; }
#command-help { background:transparent; }
#command-help .command-types-note { margin-bottom:10px; }
#command-forecast-details .forecast-note { margin-bottom:0; }
#battle-history-disclosure .action-history { margin:0; padding:12px 0 0; }
#battle-history-disclosure .flow-outcome { margin-top:12px; }
#campaign-tactics > summary::before { display:none; }
#campaign-tactics .buff-grid { margin-top:12px; }
@media(max-width:560px) {
  .clarity-disclosure > summary { padding:11px 12px; gap:7px 10px; }
  .clarity-disclosure > summary > small { max-width:43%; font-size:11px; }
  .journey-tools-content { padding:9px; }
  .clarity-detail-body { padding-inline:11px; }
}
html[data-text-size="large"] .clarity-disclosure > summary { min-height:56px; font-size:1rem; flex-wrap:wrap; }
html[data-text-size="large"] .clarity-disclosure > summary > small { font-size:.875rem; max-width:none; }
html[data-contrast="high"] .clarity-disclosure { border-color:#d6dda4; background:#10282d; }
html[data-contrast="high"] .clarity-disclosure > summary,
html[data-contrast="high"] .clarity-disclosure > summary > small { color:#f0f2d8; }

/* Optional mastery focus: original journal goals, no motion or new artwork. */
#home-mastery-focus { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:24px; margin:18px 0; padding:24px; border:1px solid #b8a47166; border-radius:14px; background:#102728; color:#edf0db; }
#home-mastery-focus[hidden],#home-mastery-focus [hidden] { display:none !important; }
#home-mastery-focus > div { min-width:0; }
#home-mastery-focus p { margin:8px 0; font-size:.875rem; line-height:1.6; overflow-wrap:anywhere; }
#home-mastery-focus .home-mastery-kicker { margin:0 0 6px; color:#dfc38b; font-size:.75rem; letter-spacing:.08em; }
#home-mastery-focus h2 { margin:0; font-family:var(--font-display,Georgia,serif); font-size:clamp(1.3rem,2.4vw,1.7rem); line-height:1.35; color:#f3e8cb; overflow-wrap:anywhere; }
#home-mastery-focus .home-mastery-controls { display:flex; flex-direction:column; align-items:stretch; justify-content:center; gap:8px; }
#home-mastery-focus label { color:#eedab2; font-size:.875rem; line-height:1.5; }
#home-mastery-focus select { box-sizing:border-box; width:100%; min-width:0; max-width:100%; min-height:48px; padding:10px 12px; font:inherit; font-size:1rem; color:#f3e8cb; background:#193531; border:1px solid #b8a47199; border-radius:8px; }
#home-mastery-focus .home-mastery-progress-label { display:flex; justify-content:space-between; gap:16px; margin-top:16px; font-size:.8125rem; color:#c4d3b9; }
#home-mastery-focus progress { display:block; appearance:none; width:100%; max-width:100%; height:10px; margin:8px 0 12px; border:1px solid #bbbd8355; border-radius:8px; background:#071b1c; accent-color:#d7c189; overflow:hidden; }
#home-mastery-focus progress::-webkit-progress-bar { background:#071b1c; }
#home-mastery-focus progress::-webkit-progress-value { background:#d7c189; }
#home-mastery-focus progress::-moz-progress-bar { background:#d7c189; }
#home-mastery-focus #home-mastery-reward { color:#e3cb92; }
#home-mastery-focus #home-mastery-note { margin:0; color:#baccbb; font-size:.8125rem; }
#home-mastery-focus .home-mastery-actions { display:flex; flex-wrap:wrap; gap:8px; }
#home-mastery-focus button { min-width:0; max-width:100%; min-height:44px; padding:10px 14px; border:1px solid #b8a47199; border-radius:8px; font:inherit; font-size:.875rem; line-height:1.5; text-align:left; white-space:normal; overflow-wrap:anywhere; color:#f3e8cb; background:#264439; cursor:pointer; }
#home-mastery-focus button:hover { background:#345547; }
#home-mastery-focus :is(button,select):focus-visible { outline:3px solid #f0dda5; outline-offset:3px; }
#home-mastery-focus #home-mastery-announcement { margin:0; color:#d6dfbd; font-size:.8125rem; }
#home-mastery-focus #home-mastery-announcement:empty { display:none; }
#home-mastery-focus[data-complete="true"] { border-color:#d7c189; }
#home-mastery-focus[data-complete="true"] #home-mastery-result { color:#e3da9f; font-weight:600; }
@media(max-width:800px) { #home-mastery-focus { grid-template-columns:minmax(0,1fr); gap:18px; padding:20px; } }
@media(max-width:360px) { #home-mastery-focus { padding:16px; } }
html[data-text-size="large"] #home-mastery-focus { grid-template-columns:minmax(0,1fr); }
html[data-text-size="large"] #home-mastery-focus :is(p,label,button) { font-size:1rem; }
html[data-contrast="high"] #home-mastery-focus { border-color:#fff0bc; background:#071b1c; }
html[data-contrast="high"] #home-mastery-focus :is(p,label,h2,strong,span) { color:#fff5dd; }
@media(forced-colors:active) { #home-mastery-focus { border-color:CanvasText; } #home-mastery-focus :is(button,select,progress) { border:1px solid ButtonText; } }

/* One quiet challenge between the battlefield and its decisions. No animation. */
#battle-mastery-focus { margin:0 0 12px; border-color:#b8a47166; }
#battle-mastery-focus[hidden],#battle-mastery-focus [hidden] { display:none !important; }
#battle-mastery-focus > summary { min-height:54px; gap:10px; }
#battle-mastery-focus .battle-mastery-heading { display:flex; flex:1; flex-direction:column; min-width:0; gap:3px; }
#battle-mastery-kicker { color:#bfccb6; font-size:.75rem; line-height:1.4; }
#battle-mastery-title { color:#f0dfb8; font-family:var(--font-display,Georgia,serif); font-size:1rem; line-height:1.4; overflow-wrap:anywhere; }
#battle-mastery-count { flex:none; max-width:40%; color:#e4c88d; font-size:.875rem; font-variant-numeric:tabular-nums; }
#battle-mastery-focus .clarity-detail-body { padding-top:8px; }
#battle-mastery-focus p { margin:8px 0; color:#d3dfca; font-size:.875rem; line-height:1.6; overflow-wrap:anywhere; }
#battle-mastery-focus #battle-mastery-reward { color:#e3cb92; }
#battle-mastery-focus #battle-mastery-note { color:#baccbb; font-size:.8125rem; }
#battle-mastery-focus .battle-mastery-actions { display:flex; flex-wrap:wrap; gap:8px; }
#battle-mastery-focus button { min-height:44px; min-width:0; max-width:100%; padding:10px 14px; border:1px solid #b8a47199; border-radius:8px; background:#264439; color:#f3e8cb; font:inherit; font-size:.875rem; line-height:1.5; white-space:normal; overflow-wrap:anywhere; text-align:left; cursor:pointer; }
#battle-mastery-focus button:hover:not(:disabled) { background:#345547; }
#battle-mastery-focus button:focus-visible { outline:3px solid #f0dda5; outline-offset:2px; }
#battle-mastery-focus[data-complete="true"] { border-color:#d7c189; }
#battle-mastery-focus[data-complete="true"] #battle-mastery-result { color:#e3da9f; font-weight:600; }
html[data-text-size="large"] #battle-mastery-focus :is(p,button,small) { font-size:1rem; }
html[data-contrast="high"] #battle-mastery-focus { border-color:#fff0bc; background:#071b1c; }
html[data-contrast="high"] #battle-mastery-focus :is(p,small,strong,span) { color:#fff5dd; }
@media(forced-colors:active) { #battle-mastery-focus { border-color:CanvasText; } #battle-mastery-focus button { border:1px solid ButtonText; } }

/* Current commands explain two mastery goals; recorded progress stays separate. */
#battle-mastery-plan { margin:14px 0; padding:14px; border:1px solid #b8a47166; border-radius:10px; background:#0d2424; }
#battle-mastery-plan h3 { margin:0; font-size:1rem; line-height:1.45; color:#f0dfb8; }
#battle-mastery-plan-rows { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:12px 0; padding:0; list-style:none; }
#battle-mastery-plan-rows li { display:flex; flex-direction:column; min-width:0; padding:10px; gap:4px; border:1px solid #a7b28e44; border-radius:8px; font-size:.875rem; line-height:1.5; overflow-wrap:anywhere; }
#battle-mastery-plan-rows strong { color:#eee4cb; }
#battle-mastery-plan-rows span { color:#bacfbc; }
#battle-mastery-plan-rows small { color:#e1d3af; font-size:.8125rem; }
#battle-mastery-plan-rows li[data-queued="true"] { border-color:#d5c088; background:#1c3830; }
#battle-mastery-plan #battle-mastery-plan-note { color:#baccbb; font-size:.8125rem; }
@media(max-width:560px) { #battle-mastery-plan-rows { grid-template-columns:minmax(0,1fr); } #battle-mastery-plan { padding:12px; } }
html[data-text-size="large"] #battle-mastery-plan-rows { grid-template-columns:minmax(0,1fr); }
html[data-text-size="large"] #battle-mastery-plan :is(li,small,p) { font-size:1rem; }
html[data-contrast="high"] #battle-mastery-plan,html[data-contrast="high"] #battle-mastery-plan-rows li { border-color:#fff0bc; }
html[data-contrast="high"] #battle-mastery-plan :is(p,span,small,strong,h3) { color:#fff5dd; }
@media(forced-colors:active) { #battle-mastery-plan,#battle-mastery-plan-rows li { border-color:CanvasText; } }
