/* The public palette continues through the account workspace, on screen only. */
@media screen {
 .app-body{--accent-teal:#176e63;--accent-orange:#a34720;--accent-plum:#72508c;--accent-blue:#365e8b;--accent-gold:#91601d;--tint-teal:#eff8f3;--tint-orange:#fff1e4;--tint-plum:#f5eff9;--tint-blue:#eef4fc;--tint-gold:#fbebcb;--page-background:#fbf9f5;--line:#dfe3df;background:var(--page-background)}
 .workspace,.login-layout,.mini-messages{--section-accent:var(--accent-blue);--section-tint:var(--tint-blue);--section-border:#bed0e5;--section-hover:#294a70}
 .workspace[data-workspace-page="My Profile"],.workspace[data-workspace-page="Messages"],.workspace[data-workspace-page="Site Settings"],.login-layout,.mini-messages{--section-accent:var(--accent-teal);--section-tint:var(--tint-teal);--section-border:#b9d9c9;--section-hover:#11564d}
 .workspace[data-workspace-page="Coach Directory"],.workspace[data-workspace-page="Clubs & Organisations"],.workspace[data-workspace-page="My Organisation"],.workspace[data-workspace-page="Membership"],.workspace[data-workspace-page="Manage Users"]{--section-accent:var(--accent-plum);--section-tint:var(--tint-plum);--section-border:#d7c4e3;--section-hover:#593970}
 .workspace[data-workspace-page="Opportunities"]{--section-accent:var(--accent-gold);--section-tint:#fff7e6;--section-border:#e4c99a;--section-hover:#724913}
 .workspace[data-workspace-page="Playbook"]{--section-accent:var(--accent-orange);--section-tint:var(--tint-orange);--section-border:#e7bd98;--section-hover:#833717}
 .workspace[data-workspace-page="Playbook"]:has(.pbc-chapters){--section-accent:var(--accent-plum);--section-tint:var(--tint-plum);--section-border:#d7c4e3;--section-hover:#593970}
 .workspace{background:var(--page-background)}
 .workspace .sidebar,.workspace .topbar{background:#fffdfa}
 .workspace .topbar{border-bottom-color:var(--section-border)}
 .workspace .topbar .avatar{background:var(--section-tint);color:var(--section-accent)}
 :is(.workspace,.login-layout,.mini-messages) .primary:not(.danger){background:var(--section-accent);color:#fff}
 :is(.workspace,.login-layout,.mini-messages) .primary:not(.danger):hover{background:var(--section-hover)}
 :is(.workspace,.login-layout,.mini-messages) .secondary:not(.danger){color:var(--section-accent);border-color:var(--section-border);background:#fff}
 :is(.workspace,.login-layout,.mini-messages) .secondary:not(.danger):hover{background:var(--section-tint)}
 :is(.workspace,.login-layout,.mini-messages) :is(button,a,input,select,textarea):focus-visible{outline-color:var(--section-accent)}
 :is(.workspace,.login-layout,.mini-messages) input:is([type=checkbox],[type=radio],[type=range]){accent-color:var(--section-accent)}
 .workspace .eyebrow.green,.login-layout .eyebrow.green{color:var(--section-accent)}
 .workspace .page-heading>.outline-pill{color:var(--section-accent);background:var(--section-tint);border-color:var(--section-border)}
 .workspace .nav-item{--icon-ink:var(--accent-blue);--icon-fill:var(--tint-blue)}
 .workspace [data-page="My Profile"],.workspace [data-page="Messages"],.workspace [data-page="Site Settings"]{--icon-ink:var(--accent-teal);--icon-fill:#e0eee7}
 .workspace [data-page="Coach Directory"],.workspace [data-page="Clubs & Organisations"],.workspace [data-page="My Organisation"],.workspace [data-page="Membership"],.workspace [data-page="Manage Users"]{--icon-ink:var(--accent-plum);--icon-fill:#eae0f3}
 .workspace [data-page="Opportunities"],.workspace .nav-item[href="/information"]{--icon-ink:var(--accent-gold);--icon-fill:var(--tint-gold)}
 .workspace [data-page="Playbook"]{--icon-ink:var(--accent-orange);--icon-fill:#fce2d1}
 .workspace .nav-item.active{background:var(--icon-fill);color:var(--icon-ink);box-shadow:inset 3px 0 var(--icon-ink)}
 .workspace .nav-item:hover{background:var(--icon-fill)}
 .workspace .nav-item .count{background:#fff;color:var(--icon-ink)}
 .workspace .settings-submenu a:hover{background:var(--section-tint)}
 .workspace .settings-submenu a[aria-current="page"]{background:var(--section-tint);color:var(--section-accent);box-shadow:inset 3px 0 var(--section-accent)}
 .workspace #playbook-menu a[data-playbook-section="books"][aria-current="page"]{background:var(--tint-plum);color:var(--accent-plum);box-shadow:inset 3px 0 var(--accent-plum)}
 .workspace #playbook-menu a[data-playbook-section="samples"][aria-current="page"]{background:var(--tint-teal);color:var(--accent-teal);box-shadow:inset 3px 0 var(--accent-teal)}
 .workspace .welcome-card{background:linear-gradient(120deg,#344f73,#476b8d)}
 .workspace .welcome-card .pale{background:#263f5d;color:#ffda9f}
 .workspace .welcome-card .cream-button{background:#ffda9f;color:#263b53}
 .workspace .bench-brand-mark{color:#efbf79}
 .workspace .quick-card{border-top:4px solid var(--icon-ink);background:#fff}
 .workspace .quick-card[data-go="Playbook"]{--icon-ink:var(--accent-orange);--icon-fill:#fce2d1;background:var(--tint-orange)}
 .workspace .quick-card[data-go="My Profile"]{--icon-ink:var(--accent-teal);--icon-fill:#e0eee7;background:var(--tint-teal)}
 .workspace .quick-card[data-go="Clubs & Organisations"]{--icon-ink:var(--accent-plum);--icon-fill:#eae0f3;background:var(--tint-plum)}
 .workspace .quick-card[data-go="Opportunities"]{--icon-ink:var(--accent-gold);--icon-fill:var(--tint-gold);background:#fff7e6}
 .workspace .quick-card .quick-title,.workspace .quick-card .small-link{color:var(--icon-ink)}
 .workspace .next-panel{background:var(--tint-teal);border-color:#b9d9c9}
 .workspace .next-panel .eyebrow{color:var(--accent-teal)}
 .workspace .history-record,.workspace .privacy-panel,.workspace .directory-search{background:var(--section-tint);border-color:var(--section-border)}
 .workspace .record-totals>div:not(.record-losses):not(.record-draws){border-top-color:var(--accent-teal)}
 .workspace .coach-card{border-top:3px solid var(--accent-plum)}
 .workspace .connected-badge{background:#e0eee7;color:var(--accent-teal)}
 .workspace .connection-alert{background:var(--tint-teal);border-color:#b9d9c9}
 .app-body .messages-workspace .message-list{background:#f6f8f4}
 .app-body .messages-workspace .message-bubble.outgoing{background:#dfefe8}
 .app-body .messages-workspace .message-bubble.outgoing .message-author{color:var(--accent-teal)}
 .app-body .messages-workspace .thread-item.selected{background:var(--tint-teal);border-color:#b9d9c9}
 .app-body .messages-workspace .thread-item:hover,.app-body .messages-workspace .thread-item.is-unread{background:#e7f2ed}
 .app-body .mini-messages-header{background:var(--accent-teal)}
 .login-layout .story{background:linear-gradient(120deg,#344f73,#476b8d)}
 .login-layout .story .eyebrow{color:#ffda9f}
 .login-layout .login-side,.login-layout .divider span{background:var(--page-background)}
 .login-layout .login-top .pill{background:#e0eee7;color:var(--accent-teal)}
 .app-body .chat-launcher{background:var(--accent-teal);color:#fff}
 .app-body .chat-launcher:hover{background:#11564d}

 /* Plays: warm cards, clear tool states and a neutral, accurate court. */
 .workspace .pb-badge{background:var(--section-tint);border-color:var(--section-border);color:var(--section-accent)}
 .workspace .pb-badge[data-access-kind="free"]{background:var(--tint-teal);border-color:#b9d9c9;color:var(--accent-teal)}
 .workspace .pb-badge[data-access-kind="trial"]{background:var(--tint-gold);border-color:#e4c99a;color:var(--accent-gold)}
 .workspace .pb-access{background:var(--tint-orange);border-color:var(--accent-orange);color:#62412d}
 .workspace .pb-access[data-access-kind="free"]{background:var(--tint-teal);border-color:var(--accent-teal);color:#28574e}
 .workspace .pb-library{border-top:4px solid var(--accent-orange)}
 .workspace .pb-tabs [aria-pressed=true]{background:var(--section-accent);border-color:var(--section-accent);color:#fff}
 .workspace .pb-tabs [data-library="books"][aria-pressed=true]{background:var(--accent-plum);border-color:var(--accent-plum)}
 .workspace .pb-tabs [data-library="samples"][aria-pressed=true]{background:var(--accent-teal);border-color:var(--accent-teal)}
 .workspace .pb-card{border-color:#e2cdb7;background:#fffdfa}
 .workspace .pb-card:hover{border-color:var(--accent-orange);box-shadow:0 7px 20px #a3472017}
 .workspace .pb-card-art{background:#fbf0df;border-bottom:3px solid #d68b4c}
 .workspace .pb-card .pb-card-book{color:var(--accent-orange)}
 .workspace .pb-empty{background:var(--section-tint);border-color:var(--section-border)}
 .workspace :is(#pb-new,#pb-add-stage){background:var(--accent-orange);border-color:var(--accent-orange);color:#fff}
 .workspace :is(#pb-new,#pb-add-stage):hover{background:#833717}
 .workspace :is(#pb-new-book,#pb-pdf){background:var(--accent-plum);border-color:var(--accent-plum);color:#fff}
 .workspace :is(#pb-new-book,#pb-pdf):hover{background:#593970}
 .workspace #pb-example{background:var(--tint-teal);border-color:#b9d9c9;color:var(--accent-teal)}
 .workspace .pb-details summary{background:#fff7ec;color:#81431f}
 .workspace .pb-stage-bar{padding:10px;border:1px solid #e7bd98;border-radius:10px;background:var(--tint-orange)}
 .workspace .pb-board{border-color:#e2cdb7}
 .workspace .pb-court-wrap{background:#f7f2e9}
 .workspace .pb-stage-panel{border-top:4px solid var(--accent-orange)}
 .workspace .pb-tools button{--tool-ink:var(--accent-blue);--tool-tint:var(--tint-blue);background:var(--tool-tint);border-color:var(--tool-ink);color:var(--tool-ink)}
 .workspace .pb-tools [data-tool="setup"],.workspace .pb-tools [data-tool="screen"]{--tool-ink:var(--accent-teal);--tool-tint:var(--tint-teal)}
 .workspace .pb-tools [data-tool="dribble"]{--tool-ink:var(--accent-orange);--tool-tint:var(--tint-orange)}
 .workspace .pb-tools [data-tool="pass"]{--tool-ink:var(--accent-plum);--tool-tint:var(--tint-plum)}
 .workspace .pb-tools [data-tool="shoot"]{--tool-ink:var(--accent-gold);--tool-tint:#fff7e6}
 .workspace .pb-tools button[aria-pressed=true]{background:var(--tool-ink);color:#fff;box-shadow:inset 0 -2px #0002}
 .workspace .pb-tools button:hover:not(:disabled){box-shadow:inset 0 0 0 1px var(--tool-ink)}
 .workspace .pbd-tools button.secondary{--tool-ink:var(--accent-blue);--tool-tint:var(--tint-blue);background:var(--tool-tint);border-color:var(--tool-ink);color:var(--tool-ink)}
 .workspace .pbd-tools button.secondary:is([data-draw-tool="select"],[data-draw-tool="screen"],[data-draw-tool="handoff"]){--tool-ink:var(--accent-teal);--tool-tint:var(--tint-teal)}
 .workspace .pbd-tools button.secondary[data-draw-tool="dribble"]{--tool-ink:var(--accent-orange);--tool-tint:var(--tint-orange)}
 .workspace .pbd-tools button.secondary[data-draw-tool="pass"]{--tool-ink:var(--accent-plum);--tool-tint:var(--tint-plum)}
 .workspace .pbd-tools button.secondary[data-draw-tool="shot"]{--tool-ink:var(--accent-gold);--tool-tint:#fff7e6}
 .workspace .pbd-tools button.secondary[aria-pressed=true]{background:var(--tool-ink);border-color:var(--tool-ink);color:#fff;box-shadow:inset 0 -2px #0002}
 .workspace .pbd-tools button.secondary:hover:not(:disabled){box-shadow:inset 0 0 0 1px var(--tool-ink)}
 .workspace .pb-actions li:not(.pb-no-actions):before{background:var(--tint-orange);color:var(--accent-orange)}
 .workspace #pb-play{background:var(--accent-teal);color:#fff}
 .workspace #pb-play:hover{background:#11564d}
 .workspace .pb-export{background:var(--tint-teal);border-color:#b9d9c9}
 .workspace :is(#pb-status,#pbc-status):not(:empty):not(.error){background:var(--section-tint);color:var(--section-accent)}

 /* Playbooks: plum covers, colour accents for chapter headings and teal sharing. */
 .workspace .pbc-card{border-color:#d7c4e3;background:var(--tint-plum)}
 .workspace .pbc-card:hover{border-color:var(--accent-plum);box-shadow:0 7px 20px #72508c17}
 .workspace .pbc-cover{background:#64437e;border-left-color:#efbf79}
 .workspace .pbc-cover-kicker{color:#ffda9f}
 .workspace .pbc-cover>span:last-child{color:#f1e8f8}
 .workspace .pbc-details{background:var(--tint-plum);border-color:#d7c4e3}
 .workspace .pbc-chapter{--chapter-accent:var(--accent-orange);--chapter-tint:var(--tint-orange);border-top:4px solid var(--chapter-accent)}
 .workspace .pbc-chapter:nth-child(4n+2){--chapter-accent:var(--accent-blue);--chapter-tint:var(--tint-blue)}
 .workspace .pbc-chapter:nth-child(4n+3){--chapter-accent:var(--accent-teal);--chapter-tint:var(--tint-teal)}
 .workspace .pbc-chapter:nth-child(4n+4){--chapter-accent:var(--accent-plum);--chapter-tint:var(--tint-plum)}
 .workspace .pbc-chapter-heading h2,.workspace .pbc-chapter-heading .eyebrow{color:var(--chapter-accent)}
 .workspace .pbc-play-art{background:var(--chapter-tint)}
 .workspace .pbc-chapter [data-add-plays]{background:var(--chapter-tint);color:var(--chapter-accent);border-color:var(--chapter-accent)}
 .workspace .pbc-add-chapter{background:var(--tint-plum);border-color:#d7c4e3}
 .workspace .pbc-picker{background:var(--tint-teal);border-color:#b9d9c9}
 .workspace .pbc-sharing{background:var(--tint-teal);border-color:#b9d9c9}
 .workspace :is(#pbc-sharing,#pbc-grant){background:var(--accent-teal);border-color:var(--accent-teal);color:#fff}
 .workspace :is(#pbc-sharing,#pbc-grant):hover{background:#11564d}
 .workspace .pb-upgrade-dialog{border-color:#e7bd98;border-top:5px solid var(--accent-orange)}
 .workspace .pb-upgrade-price{background:var(--tint-orange);color:var(--accent-orange)}
 .workspace .pb-upgrade-dialog .eyebrow{color:var(--accent-orange)}
 .workspace .pb-upgrade-dialog .primary{background:var(--accent-orange);color:#fff}
 .workspace .pb-upgrade-dialog .primary:hover{background:#833717}
}
