/* Layout modes follow available space, not a particular monitor model. */
.leader-button,.leader-button:hover{background:transparent}
.leader-button .leader,.leader-dialog img,.leader-hover-zoom img,.victory-house img{clip-path:inset(.6% round 3.5%);background:transparent}
.table{--hand-card:clamp(100px,9vw,180px);max-width:none}
.play-area{display:contents}
.market>h2{display:none}
.market{container-type:normal;height:auto;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;gap:10px;align-content:start;justify-items:center;overflow:visible}
.market>.card-row,.market>.reserve{display:contents}
.market .card-wrap.mini,.market .reserve-stack{width:100%;max-width:200px;justify-self:center!important;min-width:0}
.market .reserve-stack .card-wrap.mini{width:100%;max-width:none}
.market .card{aspect-ratio:.69;padding:0}
.market .reserve-stack>span{right:0;bottom:0}
/* Five card heights: four market rows plus the hand, with chrome, gaps and shadow clearance. */
@media(min-width:901px){
 .table{--side-width:clamp(220px,23vw,420px);--hand-card:min(200px,calc((var(--side-width) - 16px)/2),calc((100dvh - 200px)*.69/5));height:calc(100dvh - 48px);min-height:600px;grid-template-columns:clamp(150px,14vw,280px) minmax(0,1fr) clamp(220px,23vw,420px);grid-template-rows:minmax(0,1fr) calc(var(--hand-card)/.69 + 64px);gap:12px;padding:12px}
 .table>.players{grid-column:1;grid-row:1/3;padding:0;overflow:auto;gap:12px}
 .player{display:grid;grid-template-columns:minmax(0,1fr) calc(18px + 2ch);gap:6px;padding:8px;font-size:12px}
 .player>.leader-button{grid-column:1;grid-row:2/4;align-self:center}
 .player .leader-button .leader{width:100%;max-height:none}
 .player>.player-resources{grid-column:2;grid-row:2;display:flex;flex-direction:column;gap:5px;padding:0}
 .player>.available-agents{grid-column:2;grid-row:3;margin:0}
 .player .resource{font-size:12px;min-width:0}
 .player .resource i{flex-shrink:0}
 .player>.player-summary{grid-column:1/-1;grid-row:4}
 .board-scroll{grid-column:2;grid-row:1;container-type:size;overflow:hidden;align-items:center}
 .printed-board{width:min(100cqw,100cqh);height:auto;min-width:0;max-width:100%;max-height:100%}
 .market{grid-column:3;grid-row:1;grid-template-columns:repeat(2,var(--hand-card));justify-content:center;overflow:auto;scrollbar-width:thin;padding:2px 3px 8px;container-type:size;gap:10px}
 .market .card-wrap.mini,.market .reserve-stack{width:var(--hand-card);max-width:none}
 .private-zone{grid-column:2;grid-row:2;display:block;overflow:auto;min-height:0}
 .hand{padding:6px 0;overflow:visible}
 .hand .card-row{display:flex;gap:10px;justify-content:safe center;overflow-x:auto;padding:6px 4px 10px}
 .hand .card-wrap{width:var(--hand-card);flex:0 0 var(--hand-card);max-width:none}
 .turn-panel{grid-column:3;grid-row:2;max-height:none;overflow:auto;padding:0;display:flex}
}
/* Wide layouts reserve a middle action lane so the hand never moves on Reveal. */
@media(min-width:1600px) and (min-height:800px) and (min-aspect-ratio:19/10){
 .table{--side-width:clamp(500px,35vw,900px);--hand-card:min(200px,calc((var(--side-width) - 48px)/5),calc((100dvh - 260px)*.69/3));grid-template-columns:clamp(150px,12vw,270px) minmax(0,1fr) var(--side-width);grid-template-rows:calc(var(--hand-card)/.69*2 + 24px) minmax(100px,1fr) calc(var(--hand-card)/.69 + 64px)}
 .table>.players,.board-scroll{grid-row:1/4}
 .market{grid-column:3;grid-row:1;grid-template-columns:repeat(4,var(--hand-card));justify-content:center;container-type:normal;gap:10px;height:auto}
 .private-zone{grid-column:3;grid-row:3;max-height:none}
 .hand .card-row{display:flex;gap:10px;overflow-x:auto}
 .turn-panel{grid-column:3;grid-row:2;max-height:none;align-self:stretch;justify-content:flex-end}
 .turn-panel:has(.effect-actions:empty){display:flex}
}
/* Tablets and phones use one document scroll, with the board next to the hand in reading order. */
@media(max-width:900px){
 .table{display:flex;flex-direction:column;height:auto;min-height:0;padding:10px;gap:14px}
 .table>.players{order:0;display:flex;flex-direction:row;padding:0;gap:10px;overflow-x:auto;overflow-y:visible;min-height:0}
 .player{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:5px;padding:7px;flex:0 0 180px}
 .player.own-player{order:-1;margin-top:0}
 .player>h2{grid-column:1/-1;margin:0}
 .player>.leader-button{grid-column:1;grid-row:2/4}
 .player .leader-button .leader{display:block;width:100%;max-height:none}
 .player>.player-resources{grid-column:2;grid-row:2;display:flex;flex-direction:column;gap:4px;padding:0}
 .player .resource{font-size:12px}
 .player>.available-agents{grid-column:2;grid-row:3;margin:0;min-height:18px}
 .player>.player-summary{grid-column:1/-1;grid-row:4;margin-top:6px}
 .prescience-card{margin-top:0}.prescience-card>button{width:32px}
 .board-scroll{order:1;width:100%;container-type:normal;overflow:visible;display:block}
 .printed-board{width:100%;height:auto;min-width:0;max-width:none;max-height:none;container-type:inline-size}
 .private-zone{order:2;display:block;overflow:visible;width:100%}
 .hand{padding:8px 0 0;overflow:visible}
 .hand .section-heading{flex-wrap:wrap;gap:8px}
 .card-tabs{gap:4px 12px}.card-tabs [role=tab]{min-height:36px;font-size:11px}
 .hand .card-row{display:flex;gap:10px;justify-content:flex-start;overflow-x:auto;padding:5px 3px 10px;scroll-snap-type:x proximity}
 .hand .card-wrap{width:clamp(112px,28vw,170px);flex:0 0 clamp(112px,28vw,170px);scroll-snap-align:start;max-width:none}
 .hand .card{touch-action:pan-x pan-y}
 .turn-panel{order:3;display:flex;padding:0;overflow:visible;max-height:none;width:100%}
 .turn-actions{padding:0}.turn-panel:has(.effect-actions:empty){display:none}
 .turn-footer button,.reveal-hand,.deploy-amount{min-height:36px}
 .market{order:4;width:100%;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;height:auto;max-height:none;padding:10px 0;border-top:1px solid #62543a70}
 .market .card-wrap.mini,.market .reserve-stack{width:100%;max-width:190px}
}
@media(max-width:420px){
 .topbar{padding:8px 10px;column-gap:8px}.topbar .wordmark{font-size:18px;letter-spacing:3px}.wordmark small{display:none}
 .topbar-actions{gap:8px}#game-navigation{gap:8px}.topbar-actions #identity{padding-left:8px}
 .market{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* Board tokens scale with the artwork on touch layouts too. */
.printed-board .troop-stack{font-size:2cqw}
.printed-board .troop-stack .cube{width:1.6cqw;height:1.6cqw}
.printed-board .combat-marker{width:1.8cqw;height:1.8cqw;font-size:1.3cqw}
.printed-board .influence-marker{width:1.6cqw;height:1.6cqw}
.printed-board .board-score.disc{width:1.4cqw;height:1.4cqw}

/* One shared physical card size, including reserve and revealed hand cards. */
.table .hand .card-wrap,.table .market .card-wrap.mini,.table .market .reserve-stack{width:var(--hand-card);flex:0 0 var(--hand-card);max-width:none}
.table .market .reserve-stack .card-wrap.mini{width:100%}
.table .hand .card,.table .market .card{aspect-ratio:.69}
.table .hand .card .card-art,.table .hand .card img{height:100%;aspect-ratio:auto!important}
@media(max-width:900px){
 .table{--hand-card:clamp(120px,calc((100vw - 32px)/2),170px)}
 .market{grid-template-columns:repeat(auto-fit,var(--hand-card));justify-content:center}
}

.printed-board .board-score.disc{transform:translate(-50%,-50%)}

/* Anchor the cube itself to the printed circle; counts sit outside it. */
.printed-board .troop-stack:not(.deployed){width:1.6cqw;height:1.6cqw;gap:0}
.printed-board .troop-stack:not(.deployed) b{position:absolute;left:calc(100% + .4cqw);top:50%;transform:translateY(-50%)}
.printed-board .troop-stack .cube{flex:none}
.board-agents{filter:drop-shadow(0 .25cqw .2cqw #000b)}
.board-agents .agent{filter:none}

.printed-board .board-control{clip-path:polygon(0 0,100% 0,100% 94%,50% 76%,0 94%);position:absolute;width:2.5cqw;height:3.2cqw;transform:translate(-50%,-50%);filter:drop-shadow(0 .15cqw .12cqw #000a);pointer-events:none}
.printed-board .board-conflict-card{left:40.6%;top:69%;width:8.75%}
.board-conflict-deck{position:absolute;left:29.7%;top:69%;width:8.75%;aspect-ratio:525/800;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1cqw;border:.55cqw solid #19100e;border-radius:.3cqw;background:repeating-linear-gradient(45deg,#651c19 0,#651c19 .3cqw,#70211d .3cqw,#70211d .6cqw);color:#e8c687;box-shadow:none;font-family:Cinzel,serif}
.board-conflict-deck span{font-size:1cqw;letter-spacing:.08cqw}.board-conflict-deck strong{font-size:4cqw;font-weight:400}

/* Shared board palette; padding offsets only the numeral, never its token. */
.printed-board .board-bonus-spice{position:absolute;display:grid;place-items:center;width:2.4cqw;height:2.4cqw;padding-top:.16cqw;transform:translate(-50%,-50%);background:center/contain no-repeat url('/game/spice.svg');color:#fff5e6;font-size:2cqw;font-family:Arial,sans-serif;font-weight:700;line-height:1;pointer-events:none;text-shadow:0 .06cqw .08cqw #783019}

.printed-board .board-agents .voice-block{width:1.6cqw;height:1.6cqw;margin:0;align-self:center;justify-self:center;box-shadow:.15cqw -.15cqw 0 #ffffff50,.15cqw .15cqw .3cqw #0009}

#reward-toasts{position:fixed;top:76px;left:50%;transform:translateX(-50%);z-index:1000;display:grid;gap:8px;pointer-events:none;width:max-content;max-width:calc(100vw - 24px)}
.reward-toast{padding:12px 18px;border:1px solid #a48b50;border-radius:6px;background:#20231ff2;color:#f1e5c9;box-shadow:0 4px 18px #0008;font-size:16px;text-align:center}

.trash-grid .trash-card{padding:0;border:2px solid transparent;background:transparent;cursor:pointer}.trash-grid .trash-card:hover,.trash-grid .trash-card:focus-visible{border-color:#e8c687}.trash-grid+.subtle{margin-top:18px}.trash-grid .card-art{display:block;width:100%}

.visual-card-choice{border:0;margin:12px 0;padding:0;min-width:0}.visual-card-choice legend{margin-bottom:12px}.visual-card-choice .trash-card{padding:0;border:2px solid transparent;background:transparent}.visual-card-choice .trash-card[aria-pressed="true"],.visual-card-choice .trash-card:hover{border-color:#e8c687}.discard-card{position:relative;cursor:pointer;border:2px solid transparent}.discard-card:has(input:checked){border-color:#e8c687}.discard-card input{position:absolute;top:8px;right:8px;width:20px;height:20px;z-index:1}.discard-card .card-art{display:block;width:100%}.board-choice{display:flex;gap:8px;align-items:center}.board-choice-value{color:#e8c687}
#victory-dialog{width:min(720px,94vw);max-height:92dvh;overflow:auto;padding:42px 44px 26px;border:1px solid #bca166;border-radius:12px;background:radial-gradient(ellipse at 50% 0,#66502d55,transparent 60%),#171b19;color:#efe6d2;text-align:center;box-shadow:0 20px 90px #000b}
#victory-dialog::backdrop{background:#070b0bd9;backdrop-filter:blur(5px)}
.victory-close{position:absolute;top:8px;right:12px;padding:2px 10px;border:0;background:transparent;color:#bcb29c;font-size:28px}
.victory-eyebrow{font-size:10px;letter-spacing:.28em;color:#c6ac73;margin-bottom:12px}
#victory-dialog h1{font-family:Cinzel,serif;font-size:clamp(26px,4vw,42px);font-weight:400;margin:0 0 26px;color:#f0d699}
.victory-houses{display:flex;justify-content:center;gap:22px;flex-wrap:wrap}.victory-house{flex:1 1 220px;max-width:390px}.victory-house img{width:100%;border-radius:7px;box-shadow:0 8px 25px #0008;outline:1px solid #cbb17866}.victory-house h2{font-family:Cinzel,serif;font-size:19px;margin:20px 0 8px}.victory-house strong{display:block;font:64px Cinzel,serif;color:#e8c571}.victory-house strong small{display:block;font:10px 'Barlow Semi Condensed',sans-serif;letter-spacing:.22em;margin-top:-2px;color:#baae90}
.victory-standings{border-top:1px solid #ac90503d;margin:25px 0 12px;padding-top:12px;text-align:left}.victory-standings>div{display:grid;grid-template-columns:16px 1fr auto;gap:10px;align-items:center;padding:8px 10px;font-size:15px;color:#b6b1a2}.victory-standings .cube{width:10px;height:10px;margin:0}.victory-standings .winner-row{background:#e6be6410;border-radius:4px;color:#ead19a}.victory-standings b{font-weight:400}
.victory-confetti{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;overflow:hidden;background:transparent;pointer-events:none;z-index:9999}.victory-confetti i{position:absolute;left:var(--x);top:-20px;width:7px;height:12px;background:var(--color);animation:confetti-fall var(--duration) var(--delay) ease-in both}
@keyframes confetti-fall{from{transform:translate(0,-20px) rotate(0);opacity:1}to{transform:translate(var(--drift),105vh) rotate(var(--spin));opacity:0}}
.theft-history{display:grid;gap:18px}.theft-history article{display:flex;align-items:center;gap:18px;border-bottom:1px solid #b99a6033;padding-bottom:18px}.theft-card{width:100px;flex:none}.theft-card .card-art{display:block;width:100%}.theft-history small{color:#b99a60}.theft-history p{font-size:17px!important}
@media(max-width:600px){#victory-dialog{padding:38px 18px 18px}.victory-standings>div{font-size:13px}.victory-house{max-width:300px}}
@media(prefers-reduced-motion:reduce){.victory-confetti{display:none}}

.resource.spice i,.player .resource.spice i{background:transparent url('/game/spice.svg') center/contain no-repeat;border:0;border-radius:0;clip-path:none}
.resource.Solari i,.player .resource.Solari i{background:transparent url('/game/solari.svg') center/contain no-repeat;border:0;border-radius:0}
.resource.water i,.player .resource.water i{background-image:url('/game/water.svg?v=board-palette-1')}

.leader-hover-zoom{padding:0;border:0;background:transparent;box-shadow:none;filter:drop-shadow(0 10px 13px #0009)}

.last-reveal>.pile-button{gap:4px}.reveal-count-icon{width:18px;height:22px;flex:none;fill:none;stroke:#a18c62;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.last-reveal .pile-preview h3{margin:10px 0}.last-reveal .pile-preview h3:first-child{margin-top:0}.printed-board .board-agents .agent[data-agent-card]{pointer-events:auto}.agent-card-preview{padding:0}

.printed-board>.board-agents{z-index:5}
.agent-card-preview{animation:none}
.pile-dialog #card-detail>.pile-preview-cards{max-width:none;grid-template-columns:repeat(auto-fit,minmax(150px,200px));margin:10px 0 18px}
.printed-board .board-agents .agent[data-agent-card]{transition:filter .12s ease,scale .12s ease;cursor:help}
.printed-board .board-agents .agent[data-agent-card]:is(:hover,:focus-visible){filter:brightness(1.35) drop-shadow(0 0 .35cqw #ffe6a4);scale:1.12;outline:none}

/* Size public turn history around its cards, with one scroll container for both sections. */
.reveal-history{width:calc(var(--history-columns)*200px + (var(--history-columns) - 1)*8px);max-width:100%}
.reveal-history .pile-preview-cards,.reveal-history .pile-preview-cards:has(.preview-card){display:grid;grid-template-columns:repeat(var(--history-columns),minmax(0,1fr));width:100%;max-height:none;overflow:visible;padding:0;margin:10px 0 18px;gap:8px}
.reveal-history .pile-preview-cards .preview-card{width:100%;max-width:none}
.reveal-history .pile-preview-cards:last-child{margin-bottom:0}
.pile-dialog:has(.reveal-history){width:fit-content;max-width:94vw;max-height:90dvh;overflow:auto}
.last-reveal>.pile-preview{box-sizing:border-box;width:min(calc(var(--history-columns)*208px + 18px),calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}
.last-reveal .reveal-history{max-width:calc(100vw - 50px)}
@media(max-width:600px){.reveal-history{max-width:calc(94vw - 56px)}.last-reveal .reveal-history{max-width:calc(100vw - 50px)}}

@media(max-width:700px){.reveal-history .pile-preview-cards,.reveal-history .pile-preview-cards:has(.preview-card){grid-template-columns:repeat(min(var(--history-columns),2),minmax(0,1fr))}}

.printed-board .high-council-marker.disc{width:2.25cqw;height:2.25cqw;right:auto;bottom:auto;transform:translate(-50%,-50%);pointer-events:none}

.printed-board .board-score.disc{width:2.25cqw;height:2.25cqw}

/* Keep both turn controls reachable when the sidebar becomes narrow. */
.turn-panel{container-type:inline-size;min-width:0}
.turn-footer{flex-wrap:wrap}
@container(max-width:320px){
 .turn-actions:has(.played-card) .played-card{grid-row:1/span 2}
 .turn-actions:has(.played-card) .effect-actions{display:contents}
 .turn-actions:has(.played-card) .effect-actions>*{grid-column:2;min-width:0}
 .turn-actions:has(.played-card) .turn-footer{grid-column:1/-1}
}

/* Replace the printed phase legend without covering nearby conflict or combat tokens. */
.board-activity{position:absolute;left:28.3%;top:83.9%;width:21%;height:15.6%;z-index:4;display:flex;flex-direction:column;gap:.5cqw;padding:.8cqw;background:linear-gradient(110deg,#22160ff7,#20140dfc 75%,#24170ff5);border:0;border-radius:0;font-size:clamp(10px,1.45cqw,19px);line-height:1.3}
.board-activity-preview{flex:1;min-height:0;overflow:auto;scrollbar-width:thin}
.board-activity-preview p{font:inherit;line-height:1.3;color:#c9bc9f;margin:0 0 .6cqw;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.board-activity-preview strong{font-weight:500}
.board-activity .board-all-activity{flex:none;align-self:flex-start;padding:.3cqw 0;border:0;border-radius:0;background:transparent;font:inherit;color:#e3c68e;white-space:nowrap}
.board-activity .board-all-activity:hover{color:#fff0ce;background:transparent;text-decoration:underline}
@media(max-width:600px){.board-activity-preview p{-webkit-line-clamp:2}.board-activity-preview p:nth-child(n+2){display:none}.board-activity{font-size:10px;padding:.5cqw}.board-activity .board-all-activity{min-height:20px}}

.board-activity .board-activity-line{display:flex;align-items:center;gap:.5em;width:100%;min-width:0;padding:.18em 0;border:0;border-radius:0;background:transparent;font:inherit;line-height:1.25;text-align:left;color:#d6c9ac;white-space:nowrap}
.board-activity .board-activity-line:hover{background:transparent;color:#fff0ce}
.activity-dotted{min-width:0;overflow:hidden;text-overflow:ellipsis;text-decoration:underline dotted #b99a60;text-underline-offset:3px}
.board-activity-line>.agent{display:inline-block;flex:none;width:.65em;height:1em;background:var(--player);margin:0}
.activity-reveal-icon{flex:none;width:1.2em;height:1.3em;fill:none;stroke:var(--player);stroke-width:1.5}
.activity-move-preview{position:fixed;z-index:1500;width:min(480px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:auto;padding:16px;background:#191d1bf8;border:1px solid #9d8551;border-radius:8px;color:#dfd3bb;box-shadow:0 10px 35px #000a;font:14px 'Barlow Semi Condensed',sans-serif}
.activity-move-preview header{margin-bottom:12px;color:#e3c68e;font-size:15px}
.activity-move-art{display:flex;align-items:center;gap:12px}.activity-move-cards{display:flex;gap:8px;overflow-x:auto;min-width:0;padding-bottom:5px}.activity-move-cards>div{flex:0 0 130px;width:130px}.activity-move-cards .card-art,.activity-move-cards img{display:block;width:100%}
.agent-move .activity-move-cards{flex:0 0 130px}.activity-move-art figure{margin:0;flex:1;min-width:0}.move-space-art{width:100%;background-image:url('https://steamusercontent-a.akamaihd.net/ugc/2502404390141277250/1365C1EC07538B6797E8162398CB43CD111C1C7C/');background-repeat:no-repeat;border-radius:4px}.activity-move-art figcaption{margin-top:8px;color:#bdb19a}.move-arrow{color:#c5a365;font-size:22px}
.activity-move-details{border-top:1px solid #b99a6033;margin-top:12px;padding-top:10px;max-height:24vh;overflow:auto}.activity-move-details h3{font:12px 'Barlow Semi Condensed',sans-serif;color:#a99c83;margin:0 0 6px;letter-spacing:0}.activity-move-details p,.move-yield{font:inherit;line-height:1.45;margin:3px 0;color:#d6c9ac}
@media(max-width:600px){.board-activity-line:nth-child(n+2){display:none}.activity-move-preview{padding:12px}.agent-move .activity-move-cards{flex-basis:100px}.agent-move .activity-move-cards>div{flex-basis:100px;width:100px}}

.activity-purchases{border-top:1px solid #b99a6033;margin-top:12px;padding-top:10px}.activity-purchases h3{font:inherit;color:#e3c68e;margin:0 0 8px}.activity-purchases p{margin:0;color:#a99c83}.activity-move-art:not(.agent-move) .activity-move-cards,.activity-purchases .activity-move-cards{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}

.board-activity-line .activity-yield{margin-left:auto;font-size:.85em}.board-activity-line>.intrigue-count-icon{flex:none}.activity-move-preview{font-size:16px}.activity-move-preview header{font-size:17px}.activity-move-details h3{font-size:14px}

.player h2 .switch-house{margin-left:0;margin-right:.2rem;flex:0 0 auto;padding:2px}.player h2>.cube{flex:none}.player h2 .house-activity{margin-left:auto;flex:0 0 auto}

.card-yield{display:inline-flex;align-items:center;gap:.35em;white-space:nowrap;vertical-align:middle;line-height:1}.persuasion-symbol{width:1.75em;height:1.75em;flex:none;overflow:visible}.sword-value{display:inline-flex;align-items:center;gap:.12em}.sword-symbol{width:1.25em;height:1.6em;flex:none}.board-activity-line .activity-yield{font-size:1em;flex:none}.move-yield .card-yield{font-size:18px}

.activity-actor{display:inline-flex;align-items:baseline;gap:6px}.activity-actor .agent{width:10px;height:16px;flex:none;align-self:center}.activity-expanded .activity-move-cards{display:flex;overflow-x:auto;gap:10px}.activity-expanded .activity-move-cards>div{flex:0 0 130px}.activity-expanded .activity-move-art{display:flex;gap:18px;align-items:center;min-width:0}.activity-expanded .activity-move-art>div{min-width:0}.activity-expanded figure{max-width:240px;flex:none}.activity-expanded header{margin-bottom:10px}.activity-expanded .activity-purchases{margin-top:12px}
.activity-line .activity-yield{display:inline-flex;margin-left:.8rem;vertical-align:middle}.board-activity-line .activity-yield{margin-left:.45em}

.activity-heading{display:flex;align-items:baseline;gap:1rem;padding-right:38px;margin-bottom:16px}.activity-heading h2{margin:0}.activity-order{margin-left:auto;color:#a6a18f;font:14px "Barlow Semi Condensed",sans-serif;white-space:nowrap}

.activity-round-heading .activity-order{padding:4px 8px;min-height:0;border:0;border-bottom:1px dotted #796c48;border-radius:0;background:transparent}.activity-round-heading .activity-order:hover{color:#e3c68e;background:#e3c68e10}

.activity-toolbar{display:flex;align-items:center;gap:1rem}.activity-toolbar .activity-filters{flex:1;min-width:0;padding-right:0}.activity-round-heading .activity-order{flex:none;padding-right:0}

.activity-round-heading{display:flex;align-items:baseline;justify-content:space-between;gap:1rem}.activity-round-heading .activity-order{margin-left:auto}

.board-activity-preview:has(.board-activity-line){position:relative;padding-left:.7em}.board-activity-preview:has(.board-activity-line)::before{content:"";position:absolute;left:0;top:.5em;width:.4em;height:min(3.6em,calc(100% - 1em));pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 80' preserveAspectRatio='none'%3E%3Cpath d='M4 0V78M1 72L4 78L7 72' fill='none' stroke='%23b99a60' stroke-opacity='.28' stroke-width='1'/%3E%3C/svg%3E") center/100% 100% no-repeat}

.profile-dialog{max-width:460px}.profile-dialog form{display:grid;gap:14px}.profile-dialog label{display:grid;gap:6px}.profile-avatar{width:64px;height:64px;border-radius:50%;object-fit:cover;display:inline-flex;align-items:center;justify-content:center;background:#b99a6022;color:#e3c68e}.profile-photo-preview{text-align:center}.profile-photo-preview .profile-avatar{width:96px;height:96px}.profile-error{color:#e5a693;margin:0}.friend-avatar{object-fit:cover}
