/* One complete foreground/background pair for every reading surface. */
body[data-theme] .craft-goal{background:var(--soft);color:var(--ink);border-color:var(--line)}
body[data-theme] .craft-goal small{color:var(--muted)}
body[data-theme] .craft-goal b{color:var(--ink)}
body[data-theme] .academy-invite{background:linear-gradient(135deg,#184d49,#1d354c);color:#f6edda;border:1px solid var(--line)}
body[data-theme=modern] .academy-invite{background:linear-gradient(135deg,#2e3b61,#222c44)}
body[data-theme] .academy-invite b{color:#f6edda}
body[data-theme] .academy-invite small{color:#ccdfdb}
body[data-theme] .academy-invite svg{color:#e7c280}
body[data-theme] .craft-coach,body[data-theme] .power-preview,
body[data-theme] .craft-build,body[data-theme] .journey-node,
body[data-theme] .journey-finished,body[data-theme] .journey-choices>button,
body[data-theme] .social-person,body[data-theme] .social-invite,
body[data-theme] .store-editorial,body[data-theme] .evo-resume{
 background:var(--soft);color:var(--ink);border-color:var(--line);
}
body[data-theme] .craft-coach{padding:18px;gap:12px;border:1px solid var(--line);box-shadow:inset 0 1px 0 #ffffff08}
body[data-theme] .craft-coach>div{min-width:0;flex:1}
body[data-theme] .craft-coach>span{flex:0 0 26px}
body[data-theme] .craft-coach>span svg{color:var(--accent2)}
body[data-theme] .craft-coach b,body[data-theme] .power-preview b,
body[data-theme] .craft-build h3,body[data-theme] .journey-node b,
body[data-theme] .journey-finished b{color:var(--ink);font-size:var(--read);line-height:1.9}
body[data-theme] .craft-coach p,body[data-theme] .craft-coach small,
body[data-theme] .power-preview p,body[data-theme] .power-preview span,
body[data-theme] .craft-build p,body[data-theme] .craft-build small,
body[data-theme] .journey-node small,body[data-theme] .journey-node em,
body[data-theme] .journey-choices p,body[data-theme] .craft-milestone small,
body[data-theme] .social-person small,body[data-theme] .social-invite small,
body[data-theme] .social-empty,body[data-theme] .academy-resource,
body[data-theme] .store-editorial p,body[data-theme] .evo-resume small{
 color:var(--muted);font-size:var(--label);line-height:1.95;opacity:1;
}
body[data-theme] .craft-coach p,body[data-theme] .craft-coach .coach-choice small{font-size:var(--read)}
body[data-theme] .coach-choice{border-color:var(--line);padding:13px 0}
body[data-theme] .coach-choice b{color:var(--accent);font-size:var(--read)}
body[data-theme] .craft-reward{color:var(--accent2);font-size:var(--read);line-height:1.95}
body[data-theme] .craft-build.chosen,body[data-theme] .journey-node.current{background:var(--surface);border-color:var(--accent2)}
body[data-theme] .craft-goal>.goal-seal,body[data-theme] .craft-milestone>span{background:var(--surface);color:var(--accent)}
body[data-theme] .craft-milestone.earned>span{background:#215448;color:#e8ffe3}
body[data-theme] .social-week strong{color:var(--accent)}
body[data-theme] .atelier-light.button{background:var(--soft);color:var(--ink);border:1px solid var(--line)}
body[data-theme] .sheet input:not([type=range]),body[data-theme] .sheet select,
body[data-theme] .page input:not([type=range]),body[data-theme] .page select{
 background:var(--soft);color:var(--ink);border-color:var(--line);font-size:var(--read);
}
body[data-theme] input::placeholder{color:var(--muted);opacity:1}
/* Long mythical names may wrap without covering cards or changing identity. */
.seat .name{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.5;font-size:13px}
.turn-label{font-size:13px!important;line-height:1.8;white-space:normal;text-align:center}
.table-heading{min-width:0}.table-heading small{white-space:normal}
.taaz-review-sheet{padding:20px!important}.taaz-review-sheet>button.round{float:inline-end}
#taaz-replay{clear:both}#taaz-replay h2{font-size:23px;line-height:1.75;margin:14px 0}
.taaz-replay-score{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--soft);padding:12px 15px;border:1px solid var(--line);border-radius:15px;color:var(--ink)}
.taaz-replay-score>span{font-size:14px}.taaz-replay-score b{font-size:27px;color:var(--accent);padding-inline-start:6px}
.taaz-trump{color:var(--accent2);text-align:center}
.taaz-trick-tabs{display:flex;overflow-x:auto;gap:7px;padding:16px 0;scrollbar-width:thin}
.taaz-trick-tabs button{display:grid;place-items:center;gap:3px;flex:0 0 43px;min-height:48px;border:1px solid var(--line);background:var(--soft);color:var(--ink);border-radius:12px;font:700 15px Vazirmatn}
.taaz-trick-tabs .selected{background:var(--accent);color:var(--onaccent);border-color:var(--accent)}
.taaz-trick-tabs i{width:5px;height:5px;border-radius:50%;background:#ffc5bd}.taaz-trick-tabs .ally i{background:#7aeedb}.taaz-trick-tabs .selected i{box-shadow:0 0 0 1px #1c3644}
.taaz-replay-table{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:radial-gradient(ellipse at center,#20584e,#102c37);padding:14px;border:1px solid #907949;border-radius:22px;box-shadow:inset 0 0 35px #0003}
body[data-theme=modern] .taaz-replay-table{background:radial-gradient(ellipse at center,#334570,#1a2344);border-color:#727ac1}
.taaz-replay-seat{display:flex;flex-direction:column;align-items:center;min-width:0;padding:6px 3px;border:1px solid transparent;border-radius:14px;color:#fff2d4;background:#041b242b}
.taaz-replay-seat.leading{border-color:#e9c572;background:#d4ba5620}
.taaz-replay-name{font-size:14px;min-height:28px;line-height:1.8;text-align:center;overflow-wrap:anywhere;font-weight:700;color:#fff2d4}
.taaz-replay-name small{font-size:12px!important;color:#c7d9d4}
.taaz-replay-seat .card{width:60px;height:88px;flex:0 0 88px;margin:5px 0 9px}
.taaz-replay-seat .card.taaz-winning{box-shadow:0 0 0 2px #f2d184,0 5px 17px #0005}
.taaz-card-caption{color:#fff2d4;font-size:13px;line-height:1.8;text-align:center}
.taaz-card-effect{color:#d8eee6!important;font-size:12px!important;line-height:1.8!important;text-align:center;min-height:0}
.taaz-card-effect:empty{display:none}
.taaz-replay-reason{padding:15px;border:1px solid var(--line);border-radius:15px;background:var(--soft);margin-top:14px;min-height:96px;color:var(--ink);font-size:var(--read);line-height:1.9}
.taaz-replay-reason b{display:block;color:var(--accent2);font-size:var(--read)}
.taaz-replay-reason p{margin:7px 0 0;font-size:var(--read)!important;color:var(--muted)}
.taaz-replay-reason small{color:var(--muted)}
.taaz-scrub-label{display:flex;justify-content:space-between;margin:18px 0 4px;font-size:var(--label);color:var(--muted)}
#taaz-step{width:100%;height:36px;accent-color:var(--accent2)}
.taaz-playback,.taaz-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.taaz-playback .button,.taaz-choices .button{padding:10px 5px!important;min-width:0;font-size:13px!important;line-height:1.8;white-space:normal}
.taaz-replay-note{font-size:var(--label)!important;line-height:1.9!important;color:var(--muted)}
.taaz-album{display:grid;gap:10px;margin:18px 0}
.taaz-album>button{width:100%;display:flex;align-items:center;gap:10px;padding:13px;border-radius:16px;background:var(--soft);border:1px solid var(--line);color:var(--ink);text-align:start;min-height:82px}
.taaz-album>button>span:nth-child(2){min-width:0;flex:1}.taaz-album b{display:block;font-size:var(--read);line-height:1.8}.taaz-album small{display:block;font-size:var(--label)!important;color:var(--muted)}
.taaz-album strong{font-size:17px;color:var(--accent);white-space:nowrap}
.taaz-album-emblem{width:29px;flex-shrink:0;color:var(--accent2)}.taaz-album-emblem svg{width:29px;height:29px}
.taaz-empty{text-align:center;padding:25px 10px}.taaz-empty>svg{width:44px;color:var(--accent)}
.taaz-album-link{display:flex;align-items:start;gap:13px}.taaz-album-link>span{flex:0 0 30px;color:var(--accent2)}.taaz-album-link svg{width:30px}.taaz-album-link>div{min-width:0}.taaz-album-link h2{margin-top:0}
body[data-theme] .taaz-choices .button:disabled{opacity:.55}
.taaz-trick-tabs button:focus-visible,.taaz-album button:focus-visible,#taaz-step:focus-visible{outline:3px solid var(--accent2);outline-offset:2px}
@media(max-width:359px){.taaz-review-sheet{padding:14px!important}.taaz-replay-table{padding:9px;gap:8px}.taaz-replay-name{font-size:13px}.taaz-replay-score{padding:10px}.taaz-album>button{flex-wrap:wrap}.taaz-album strong{margin-inline-start:auto}.craft-coach{flex-direction:column}.craft-coach>span{display:none}}
