:root {
    --cs-page-max-width: 900px;
    --cs-page-bg: #f4f4f4;
    --cs-panel-bg: #ffffff;
    --cs-text: #111827;
    --cs-muted-text: #4b5563;
    --cs-border: #1f2937;
    --cs-soft-border: #d1d5db;
    --cs-primary: #4B9CD3;
    --cs-primary-hover: #0056b3;
    --cs-action-yellow: #ffea3d;
    --cs-topbar-height: 42px;
    --cs-card-width: 110px;
    --cs-card-height: 150px;
    --cs-card-label-bg: rgba(255, 255, 255, 0.92);
    --cs-card-label-border: #d1d5db;
    --cs-card-radius: 12px;
    --cs-card-grid-gap-x: 8px;
    --cs-card-grid-gap-y: 12px;
    --cs-panel-radius: 16px;
    --cs-card-panel-bg: rgba(255, 255, 255, 0.78);
    --cs-card-panel-border: rgba(31, 41, 55, 0.16);
    --cs-card-panel-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    --cs-topbar-icon-bg: rgba(255, 255, 255, 0.82);
    --cs-topbar-icon-bg-hover: #ffffff;
    --cs-topbar-bg: var(--cs-page-bg);
    --cs-topbar-border: transparent;
    --cs-topbar-shadow: none;
    --cs-page-gutter: 14px;
    --cs-section-gap: 12px;
    --cs-section-padding: 12px;
    --cs-section-border: rgba(31, 41, 55, 0.18);
    --cs-section-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    --cs-section-header-bg: rgba(255, 255, 255, 0.7);
    --cs-table-border: rgba(31, 41, 55, 0.14);
    --cs-table-header-bg: rgba(217, 226, 243, 0.7);
    --cs-table-row-bg: rgba(255, 255, 255, 0.72);
    --cs-table-row-alt-bg: rgba(249, 250, 251, 0.92);
    --cs-table-current-bg: rgba(255, 234, 61, 0.28);
    --cs-table-current-border: rgba(31, 41, 55, 0.32);
}
html,
body {
    background: var(--cs-page-bg);
    color: var(--cs-text);
    font-family: system-ui, sans-serif;
    margin: 0;
    min-height: 100%;
    padding: 0;
}
* {
    box-sizing: border-box;
}
body {
    -webkit-text-size-adjust: 100%;
}
div {
	margin: 8px;
}
img {
    border-radius: 10px;
    display: block;
}
img.no-radius {
    border-radius: 0;
}
button,
input,
select,
textarea {
    font-family: inherit;
    min-height: 42px;
}
input[type="text"],
input[type="number"],
select,
textarea {
    border: 1px solid var(--cs-soft-border);
    border-radius: 10px;
    font-size: 1rem;
    padding: 8px 10px;
    width: 100%;
}
.content {
    margin: 0;
    min-height: 100dvh;
    padding: var(--cs-topbar-height) 0 16px;
}
.content > :not(script):first-of-type {
	margin-top: 0;
}
.ok-sub-text {
	display: block;
	margin: 0;
	padding-left: 0;
	padding-right: 0;
	padding-top: 8px;
	padding-bottom: 8px;
}
.top-bar {
    background: var(--cs-topbar-bg);
    height: var(--cs-topbar-height);
    left: 0;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.containerLR {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: space-between;
	margin: 0 auto;
	padding: 0;
	max-width: var(--cs-page-max-width);
	width: calc(100% - (var(--cs-page-gutter) * 2));
}
.LeftNormalTopBar {
	margin: 0;
	font-weight: bold;
	min-width: 0;
	overflow: hidden;
	padding: 0;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ShareRefreshClose {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}
.ShareRefreshClose img {
    height: 24px;
    width: 24px;
}
.TopBarPlusLink {
	align-items: center;
	align-self: stretch;
	color: var(--cs-muted-text);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 0.78rem;
	font-weight: 700;
	justify-content: center;
	line-height: 1;
	margin: 0;
	min-width: 38px;
	padding: 0 2px;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	white-space: nowrap;
}
.TopBarPlusLink.is-plus {
	color: #8a6500;
}
.TopBarPlusLink:focus-visible {
	border-radius: 4px;
	outline: 2px solid var(--cs-text);
	outline-offset: 1px;
}
.copied-msg {
    color: green;
    display: none;
    font-size: 0.85rem;
    font-weight: bold;
    margin: 0;
}
.section {
    background: var(--cs-panel-bg);
    border: 1px solid var(--cs-section-border);
    border-radius: var(--cs-panel-radius);
    box-shadow: var(--cs-section-shadow);
    margin: var(--cs-section-gap) auto;
    max-width: var(--cs-page-max-width);
    padding: var(--cs-section-padding);
    width: calc(100% - (var(--cs-page-gutter) * 2));
}
.cs-section-title {
	font-weight: bold;
	margin: 8px;
	padding: 0;
	color: var(--cs-text);
}
.cs-workday-action-panel {
    border-color: #1f2937;
}
.nopad {
    margin: 0;
    padding: 0;
}
.nolrpad {
	padding-left: 0;
	padding-right: 0;
	margin-left: 0;
	margin-right: 0;
}
.notbpad {
	padding-top: 0;
	padding-bottom: 0;
	margin-top: 0;
	margin-bottom: 0;
}
.hidden {
    display: none !important;
}
.B {
    font-weight: bold;
}
.R {
    color: #b00020;
}
.G {
    color: green;
}
.grid-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, var(--cs-card-width));
    justify-content: center;
    column-gap: var(--cs-card-grid-gap-x);
    row-gap: var(--cs-card-grid-gap-y);
    margin: 0;
    padding: 0;
}
.cs-card-grid {
    align-items: start;
}
.cs-card-grid .grid-item-image {
    transition: opacity 160ms ease, transform 160ms ease;
}
.cs-card-grid .image-container {
    transition: filter 160ms ease, opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.cs-card-grid .image-choice {
    cursor: pointer;
}
.cs-card-grid .image-choice:hover {
    transform: none;
}
.grid-item-image {
    margin: 0;
    padding: 0;
    width: var(--cs-card-width);
}
.image-container {
    height: var(--cs-card-height);
    margin: 0;
    padding: 0;
    position: relative;
    width: var(--cs-card-width);
}
.image-container img {
    border-radius: var(--cs-card-radius);
    height: var(--cs-card-height);
    width: var(--cs-card-width);
}
.image-below-banner {
    background: var(--cs-card-label-bg);
    border: 1px solid var(--cs-card-label-border);
    border-radius: 999px;
    color: var(--cs-text);
    font-size: 0.78rem;
    font-weight: bold;
    line-height: 1.15;
    margin: 4px 0 0;
    overflow: hidden;
    padding: 3px 5px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.image-bottom-banner {
    background: var(--cs-page-bg);
    border: 1px solid var(--cs-soft-border);
    border-radius: 6px;
    bottom: 12px;
    font-size: 0.8rem;
    left: 50%;
    margin: 0;
    padding: 1px 5px;
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 3;
}
.image-choice {
    cursor: pointer;
}
.CurrentRoleImg {
    box-shadow: 0 0 0 4px #f59e0b, 0 4px 12px rgba(0, 0, 0, 0.22);
}
.arrow {
	display: inline-block;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	padding-right: 18px;
	text-align: center;
	width: 1em;
}
#AgendaSection .ShowWaitingTime {
	margin: 4px 0 16px;
	padding: 10px 12px;
	border: 1px solid #f0a000;
	border-left: 6px solid #f0a000;
	border-radius: 10px;
	background: #fff8e6;
	color: #2b2200;
	font-weight: 700;
	line-height: 1.35;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
#AgendaSection .ShowWaitingTime::before {
	content: "⏳ ";
}
.collapsible-content {
    margin: 0;
    padding: 0;
}
.collapsible-content.collapsed {
    display: none;
}
#CurrentCardStateSection .collapsible-content {
	padding-top: 10px;
}
#FindPastGames .collapsible-content {
	padding-top: 10px;
}
#RolesExplained .collapsible-content {
	padding-top: 10px;
}
#scoreboard .collapsible-content {
	padding-top: 10px;
}
#top_result .collapsible-content {
	padding-top: 10px;
}
#vote_summary .collapsible-content {
	padding-top: 10px;
}
#WorkdayDetails .collapsible-content {
	padding-top: 10px;
}
.grid-2 {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
}
.grid-3 {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
}
.cs-game-details {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}
.cs-game-details-group {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)),
        rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(31, 41, 55, 0.1);
    border-radius: 14px;
    margin: 0;
    padding: 8px;
}
.cs-game-details-row {
    align-items: start;
    border-top: 1px solid rgba(31, 41, 55, 0.08);
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 8px;
    margin: 0;
    padding: 6px 0;
}
.cs-game-details-row:first-child {
    border-top: 0;
    padding-top: 0;
}
.cs-game-details-row:last-child {
    padding-bottom: 0;
}
.cs-game-details-heading+.cs-game-details-row {
    border-top: 0;
    padding-top: 0;
}
.cs-game-details-label,
.role-detail-label,
.role-filter-label,
.cs-game-details-heading {
    color: var(--cs-muted-text);
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.cs-game-details-label {
    line-height: 1.35;
}
.cs-game-details-value {
    font-weight: normal;
    line-height: 1.25;
    min-width: 0;
}
.cs-game-details-code {
    font-size: 1.04rem;
    font-weight: normal;
    letter-spacing: 0.04em;
}
.cs-game-details-name-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    padding: 0;
}
.cs-game-details-name,
.cs-game-details-empty {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(31, 41, 55, 0.12);
    border-radius: 999px;
    color: var(--cs-text);
    display: inline-block;
    font-size: 0.84rem;
    font-weight: normal;
    line-height: 1.1;
    margin: 0;
    padding: 4px 7px;
}
.cs-game-details-empty {
    color: var(--cs-muted-text);
    font-style: italic;
    font-weight: normal;
}
/* Helper popups */
.helper-popup {
    align-items: center;
    background: rgba(17, 24, 39, 0.52);
    display: flex;
    inset: 0;
    justify-content: center;
    margin: 0;
    padding: 16px;
    position: fixed;
    z-index: 5000;
}
.helper-popup.hidden {
    display: none !important;
}
.helper-popup-content {
    background: var(--cs-panel-bg);
    border: 1px solid rgba(31, 41, 55, 0.18);
    border-radius: var(--cs-panel-radius);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
    line-height: 1.35;
    margin: 0;
    max-height: calc(100dvh - 48px);
    max-width: 520px;
    overflow: auto;
    padding: 16px;
    position: relative;
    width: min(100%, 520px);
}
.helper-popup-content>div {
    margin: 0;
}
.helper-popup-content>div+div {
    margin-top: 10px;
}
.helper-popup-content>.B {
    font-size: 1.15rem;
    font-weight: bold;
    padding-right: 40px;
}
.helper-popup-close.role-info-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(31, 41, 55, 0.18);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    color: var(--cs-text);
    display: flex;
    font-size: 1.35rem;
    font-weight: bold;
    height: 34px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    min-height: 0;
    padding: 0 0 2px;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 34px;
}
.helper-popup-close.role-info-close:hover {
    background: #ffffff;
}
.cs-player-popup-delete {
	background: #b00020;
}

.cs-section-body {
    line-height: 1.35;
    margin: 0;
    padding: 0;
}
.cs-section-body+.cs-section-note,
.cs-section-note+.cs-claim-player-grid,
.cs-section-body+.cs-name-pill-list,
.cs-section-body+.cs-info-callout {
    margin-top: 8px;
}
.cs-section-note {
	color: var(--cs-muted-text);
	font-size: 0.9rem;
	line-height: 1.3;
}
.cs-info-callout {
    background: rgba(75, 156, 211, 0.1);
    border: 1px solid rgba(75, 156, 211, 0.24);
    border-radius: 12px;
    line-height: 1.35;
    margin: 0;
    padding: 9px 10px;
}
.cs-waiting-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.62)),
        var(--cs-panel-bg);
}
.cs-claim-player-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0)),
        var(--cs-action-yellow);
    border-color: #1f2937;
}
.cs-claim-player-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    margin: 0;
    padding: 0;
}
.claim-player-box {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(31, 41, 55, 0.22);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: var(--cs-text);
    cursor: pointer;
    display: flex;
    font-weight: bold;
    justify-content: center;
    line-height: 1.1;
    min-height: 42px;
    padding: 8px 10px;
    text-align: center;
    transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.claim-player-box:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    transform: translateY(-1px);
}
.claim-player-box.disabled {
    background: rgba(255, 255, 255, 0.48);
    box-shadow: none;
    color: var(--cs-muted-text);
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
}
.cs-invite-players-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.64)),
        var(--cs-panel-bg);
}


.cs-game-code-pill {
    background: rgba(17, 24, 39, 0.9);
    border-radius: 999px;
    color: #ffffff;
    display: inline-block;
    font-weight: bold;
    letter-spacing: 0.04em;
    line-height: 1;
    margin: 0 2px;
    padding: 4px 8px;
}
.cs-name-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
}
.cs-name-pill {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(31, 41, 55, 0.14);
    border-radius: 999px;
    display: inline-block;
    font-size: 0.9rem;
    line-height: 1.1;
    padding: 5px 8px;
}
/* Roles explained */
.role-filter-controls {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.58)),
		rgba(255, 255, 255, 0.62);
	border: none;
	border-radius: 14px;
	margin: 0;
	margin-bottom: 8px;
	padding: 0;
}


.role-filter-label:not(:first-child) {
    margin-top: 10px;
}
.role-filter-buttons,
.role-sort-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
}
.ar-filter-btn,
.ar-sort-btn {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(31, 41, 55, 0.16);
    border-radius: 999px;
    color: var(--cs-text);
    font-size: 0.86rem;
    font-weight: bold;
    min-height: 34px;
    padding: 6px 10px;
    width: auto;
}
.ar-filter-btn:hover,
.ar-sort-btn:hover {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.ar-filter-btn.active,
.ar-sort-btn.active {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}
#RolesPublic {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}
.role-row {
	break-inside: avoid;
	display: grid;
	grid-template-columns: 110px 1fr;
	column-gap: 12px;
	align-items: start;
	padding-top: 0;
	padding-bottom: 0;
	padding-left: 0;
	padding-right: 0;
	margin-top: 20px;
	margin-bottom: 20px;
	margin-left: 0;
	margin-right: 0;
}
.role-desc-col {
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}
.role-card-image {
    margin: 0;
    padding: 0;
}
.role-desc-col {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    min-width: 0;
    padding: 0;
	justify-content: flex-start;
}
.role-title-row {
    margin: 0;
    padding: 0 0 6px;
}
.role-name {
    font-size: 1.08rem;
    font-weight: bold;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
    padding: 0;
}
.role-meta {
    color: var(--cs-muted-text);
    font-size: 0.82rem;
    font-weight: bold;
    line-height: 1.2;
    margin-top: 2px;
    padding: 0;
}
.role-detail {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 8px;
    line-height: 1.28;
    margin: 0;
    padding: 0;
}


.image-top-banner {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(31, 41, 55, 0.22);
    border-radius: 999px;
    bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
    color: var(--cs-text);
    font-size: 0.96rem;
    font-weight: bold;
    left: 50%;
    line-height: 1;
    margin: 0;
    min-width: 28px;
    padding: 5px 8px;
    position: absolute;
    text-align: center;
    transform: translateX(-50%);
    z-index: 4;
}
.assign-role-corner-btn {
    background: rgba(17, 24, 39, 0.9);
    border: 2px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.24);
    color: #ffffff;
    font-size: 0.9rem;
    height: 30px;
    line-height: 1;
    margin: 0;
    min-height: 0;
    padding: 0;
    position: absolute;
    right: -7px;
    top: -7px;
    width: 30px;
    z-index: 5;
}
.assign-role-corner-btn:hover {
    background: #000000;
}
.cs-workday-action-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0)),
        var(--cs-action-yellow);
    border: 2px solid #1f2937;
    border-radius: 16px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
    position: relative;
}
.cs-workday-action-panel>div+div {
    margin-top: 8px;
}
button, input[type="button"] {
	-webkit-appearance: none;
	appearance: none;
	background: #111827;
	border: 0;
	border-radius: 20px;
	box-shadow: 0 3px 0 rgba(0, 0, 0, 0.22);
	color: #ffffff;
	cursor: pointer;
	font-size: 1.05rem;
	font-weight: bold;
	margin: 0;
	min-height: 46px;
	padding: 8px 10px;
	white-space: nowrap;
	width: 100%;
}
button:disabled, input[type="button"]:disabled {
	background: #6b7280;
	box-shadow: none;
	color: #f3f4f6;
	cursor: not-allowed;
}
.cs-workday-action-submitting {
    position: relative;
}
.cs-workday-action-submitting::after {
    content: none;
}
.cs-workday-card-selected {
    transform: none;
}
.cs-workday-card-selected.cs-workday-card-submitting {
    box-shadow:
        0 0 0 4px #ffffff,
        0 0 0 7px #111827,
        0 8px 22px rgba(0, 0, 0, 0.35);
    border-radius: var(--cs-card-radius);
    z-index: 22;
}
.cs-workday-card-submitting::after {
    content: none;
}
.cs-workday-card-grid {
    position: relative;
}
.cs-workday-card-grid:has(.cs-workday-card-submitting)::before {
    background: rgba(17, 24, 39, 0.42);
    border-radius: 12px;
    content: "";
    inset: -6px;
    margin: 0;
    position: absolute;
    z-index: 20;
}
.cs-workday-card-grid:has(.cs-workday-card-submitting)::after {
    animation: cs-submitting-dots 900ms ease-in-out infinite;
    background:
        radial-gradient(circle, #ffffff 0 35%, transparent 38%) 0 50% / 18px 18px no-repeat,
        radial-gradient(circle, #ffffff 0 35%, transparent 38%) 50% 50% / 18px 18px no-repeat,
        radial-gradient(circle, #ffffff 0 35%, transparent 38%) 100% 50% / 18px 18px no-repeat,
        rgba(17, 24, 39, 0.82);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    content: "";
    height: 46px;
    left: 50%;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 96px;
    z-index: 40;
}
.cs-workday-card-grid:has(.cs-workday-card-submitting) .grid-item-image {
    pointer-events: none;
}
.cs-workday-card-muted {
    filter: none;
    opacity: 0.72;
}
.cs-workday-card-muted img {
    filter: none;
}
.cs-workday-action-button-submitting {
    opacity: 0.85;
}
.cs-card-flip {
    height: var(--cs-card-height);
    margin: 0;
    padding: 0;
    perspective: 900px;
    position: relative;
    width: var(--cs-card-width);
}
.cs-card-flip-inner {
    height: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    transform-style: preserve-3d;
    width: 100%;
}
.cs-card-flip-pending-reveal .cs-card-flip-inner {
    transform: rotateY(0deg);
}
.cs-card-flip-revealed .cs-card-flip-inner {
    animation: cs-card-reveal-flip 520ms ease-out both;
}
.cs-card-flip-already-revealed .cs-card-flip-inner {
    transform: rotateY(180deg);
}
.cs-card-flip-face {
    backface-visibility: hidden;
    display: block;
    height: var(--cs-card-height);
    left: 0;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    width: var(--cs-card-width);
}
.cs-card-flip-front {
    transform: rotateY(0deg);
}
.cs-card-flip-back {
    transform: rotateY(180deg);
}
@keyframes cs-card-reveal-flip {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(180deg);
    }
}
@keyframes cs-submitting-dots {
    0% {
        background-position: 0 50%, 50% 50%, 100% 50%, 0 0;
        opacity: 0.72;
    }
    33% {
        background-position: 0 30%, 50% 50%, 100% 50%, 0 0;
        opacity: 1;
    }
    66% {
        background-position: 0 50%, 50% 30%, 100% 50%, 0 0;
        opacity: 1;
    }
    100% {
        background-position: 0 50%, 50% 50%, 100% 30%, 0 0;
        opacity: 0.72;
    }
}
.cs-game-details-heading {
    font-size: 1.0rem;
    padding-bottom: 8px;
}
.cs-assign-roles-action {
    margin-bottom: 8px;
}
.cs-assign-roles-section {
    padding-bottom: 10px;
}
.cs-assign-roles-summary {
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(31, 41, 55, 0.18);
    border-radius: 14px;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 8px 10px;
}
.cs-assign-roles-summary .cs-game-details-label {
	color: rgba(17, 24, 39, 0.74);
	margin: 0;
	padding: 0;
}
.cs-assign-roles-count {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.2;
    margin: 2px 0 0;
    padding: 0;
}
.cs-assign-roles-count-complete {
    color: green;
}
.cs-assign-roles-count-incomplete {
    color: red;
}


.cs-assign-role-grid {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52)),
        rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(31, 41, 55, 0.1);
    border-radius: 14px;
    margin: 0 0 10px;
    padding: 10px 6px;
}
.grid-item-assign-roles {
    cursor: pointer;
    margin: 0;
    padding: 0;
    position: relative;
    transition: opacity 140ms ease, transform 140ms ease;
    width: var(--cs-card-width);
}
.grid-item-assign-roles .image-container {
    border-radius: var(--cs-card-radius);
}
.grid-item-assign-roles .image-container img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}
.grid-item-assign-roles.NewAssignRolesSelected .image-container {
    box-shadow:
        0 0 0 3px #ffffff,
        0 0 0 6px #111827,
        0 7px 18px rgba(0, 0, 0, 0.26);
}
.grid-item-assign-roles.NewAssignRolesSelected .image-below-banner {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}
.grid-item-assign-roles.AssignRoleLocked {
    opacity: 0.58;
}
.grid-item-assign-roles.AssignRoleLocked:hover {
    transform: none;
}
.grid-item-assign-roles .assign-role-corner-btn {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border: 2px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.24);
    color: var(--cs-text);
    display: flex;
    font-size: 1rem;
    font-weight: bold;
    height: 30px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    min-height: 0;
    padding: 0;
    position: absolute;
    right: -7px;
    top: -7px;
    width: 30px;
    z-index: 5;
}
.grid-item-assign-roles.NewAssignRolesSelected .assign-role-corner-btn {
    background: #111827;
    color: #ffffff;
}
.grid-item-assign-roles.AssignRoleLocked .assign-role-corner-btn {
    background: rgba(17, 24, 39, 0.92);
    color: #ffffff;
}
.cs-assign-roles-actions {
	bottom: 0;
	position: sticky;
	z-index: 50;
	padding: 8px;
	margin: 0;
	margin-top: 8px;
	background: var(--cs-panel-bg);
	border: none;
	border-radius: var(--cs-panel-radius);
}
.cs-assign-roles-actions button:disabled,
.cs-assign-roles-actions input[type="button"]:disabled {
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
	will-change: transform;
}
.cs-assign-roles-secondary-actions {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 8px;
	padding-top: 8px;
	margin: 0;
}
.cs-assign-roles-secondary-actions input[type="button"] {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(31, 41, 55, 0.16);
    color: var(--cs-text);
}
.cs-assign-roles-secondary-actions input[type="button"]:hover {
    background: #ffffff;
}
.role-info-content {
    max-width: 560px;
    text-align: left;
}
.role-info-title {
    font-size: 1.18rem;
    font-weight: bold;
    line-height: 1.15;
    margin: 0 42px 10px 0;
    padding: 0;
}
.role-info-img {
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    height: auto;
    margin: 0 auto 12px;
    max-width: 220px;
    width: min(100%, 220px);
}
.role-info-desc {
    border-top: 1px solid rgba(31, 41, 55, 0.08);
    display: grid;
    gap: 8px;
    grid-template-columns: 108px minmax(0, 1fr);
    line-height: 1.3;
    margin: 0;
    padding: 7px 0;
}
.role-info-desc:first-of-type {
    border-top: 0;
}
.role-info-toggle-btn {
    background: #111827;
    border-radius: 999px;
    color: #ffffff;
    margin-top: 10px;
}
.role-info-toggle-btn.selected {
    background: #b00020;
}
.plus-info-link {
    display: block;
    text-align: center;
}
.plus-info-link a {
    color: var(--cs-primary);
    font-weight: bold;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}
#gameContainer {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.48)),
        rgba(255, 255, 255, 0.62);
    border: none;
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    height: 200px;
    margin: 0 auto;
    max-width: 425px;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.cup {
    cursor: pointer;
    height: 120px;
    position: absolute;
    transition: left 1s ease, top 0.4s ease;
    width: 90px;
    z-index: 3;
}
.cup img {
    height: 120px;
    width: 90px;
}
.ball {
    height: 60px;
    pointer-events: none;
    position: absolute;
    top: 110px;
    width: 60px;
    z-index: 1;
}
#overlayText {
    color: var(--cs-text);
    font-size: 1.35rem;
    font-weight: bold;
    left: 0;
    pointer-events: none;
    position: absolute;
    text-align: center;
    top: 6px;
    width: 100%;
    z-index: 10;
}
/* Create game page */
.cs-workday-tabs {
	display: grid;
	gap: 4px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 8px 0 0;
	padding: 0;
	position: relative;
	z-index: 2;
}
.cs-workday-tab {
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(31, 41, 55, 0.18);
	border-bottom: 1px solid rgba(31, 41, 55, 0.18);
	border-radius: 10px 10px 0 0;
	box-shadow: none;
	color: var(--cs-text);
	font-size: 0.82rem;
	line-height: 1.1;
	margin: 0;
	min-height: 40px;
	padding: 7px 4px;
	white-space: normal;
}
.cs-workday-tab-active {
	background: #111827;
	border-color: #111827;
	border-bottom-color: #111827;
	color: #ffffff;
}
.cs-workday-tab-content {
	background: rgba(255, 255, 255, 0.58);
	border: 1px solid rgba(31, 41, 55, 0.18);
	border-radius: 0 0 12px 12px;
	margin: -1px 0 0;
	min-height: 132px;
	padding: 10px;
}
.cs-workday-tab-panel {
	margin: 0;
	padding: 0;
}
.cs-workday-edit-empty,
.cs-workday-options-placeholder {
	align-items: center;
	color: var(--cs-muted-text);
	display: flex;
	font-size: 0.9rem;
	font-weight: bold;
	justify-content: center;
	line-height: 1.3;
	margin: 0;
	min-height: 120px;
	padding: 16px;
	text-align: center;
}
.cs-workday-edit-controls {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 8px 0 0;
}
.cs-workday-edit-name-row {
	align-items: center;
	display: grid;
	gap: 8px;
	grid-template-columns: minmax(0, 1fr) auto auto;
	margin: 0;
	padding: 0;
}
.cs-workday-edit-name {
	font-size: 1rem;
	font-weight: bold;
	margin: 0;
	min-width: 0;
	overflow: hidden;
	padding: 0 4px;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.cs-workday-edit-status-buttons,
.cs-workday-edit-action-buttons {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
	padding: 0;
}
.cs-workday-edit-status-buttons button,
.cs-workday-edit-action-buttons button {
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(31, 41, 55, 0.18);
	box-shadow: none;
	color: var(--cs-text);
	font-size: 0.82rem;
	line-height: 1.05;
	min-height: 34px;
	padding: 5px 4px;
	white-space: normal;
}
.cs-workday-edit-delete {
	border-radius: 999px;
	font-size: 0.75rem;
	min-height: 30px;
	padding: 4px 10px;
	width: auto;
}
.cs-workday-edit-status-buttons button.cs-workday-edit-active {
	background: #111827;
	border-color: #111827;
	color: #ffffff;
}
.cs-create-title-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.66)),
        var(--cs-panel-bg);
}
.cs-create-title {
    font-size: 1.35rem;
    font-weight: bold;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 4px;
    padding: 0;
}
.game-options-header {
	color: var(--cs-muted-text);
	font-size: 0.85rem;
	font-weight: bold;
	letter-spacing: 0.04em;
	margin-left: 8px;
	margin-right: 0;
	margin-top: 16px;
	margin-bottom: 4px;
	padding-left: 0;
	padding-right: 0;
	padding-top: 0;
	padding-bottom: 0;
	text-transform: uppercase;
}
.cs-create-grid-note {
    grid-column: 1 / -1;
    margin-top: -2px;
}
.add-new-player-row {
	align-items: center;
	display: grid;
	row-gap: 0;
	column-gap: 8px;
	grid-template-columns: minmax(0, 1fr) 132px;
	margin: 8px;
	padding: 0;
}
.add-new-player-name {
	margin-left: 0;
	margin-right: 4px;
	margin-top: 0;
	margin-bottom: 8px;
	padding: 0;
}
.add-new-player-btn-div {
	margin-left: 4px;
	margin-right: 0;
	margin-top: 0;
	margin-bottom: 8px;
	padding: 0;
}
.ww-player-list {
	display: none;
}
.ww-player-row-no-data {
	align-items: center;
	display: grid;
	row-gap: 0;
	column-gap: 8px;
	grid-template-columns: minmax(0, 1fr) 132px;
	margin: 0;
	padding: 0;
}
.ww-player-name-no-data {
    min-width: 0;
}
.InputNameTextField {
    font-weight: normal;
}
.join-game-grid {
	display: grid;
	gap: 8px;
	grid-template-columns: auto auto;
	margin: 0;
	padding: 0;
}
.ww-player-row {
    align-items: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.6)),
        rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(31, 41, 55, 0.12);
    border-radius: 14px;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(74px, 1fr) minmax(0, 330px) 62px;
    margin: 0;
    padding: 8px;
}
.ww-player-mobile-status,
.ww-player-mobile-gm {
	display: none;
}
.ww-player-name {
	margin: 0;
	padding: 0;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--cs-text);
	font-weight: normal;
	text-decoration: none;
	cursor: default;
}
.ww-player-name:hover {
    color: var(--cs-text);
}
.ww-role-buttons {
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 0;
}
.ww-order-buttons {
	margin: 0;
	padding: 0;
	display: grid;
	gap: 5px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ww-role-buttons button,
.ww-order-buttons button {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(31, 41, 55, 0.16);
    border-radius: 999px;
    color: var(--cs-text);
    font-size: 0.78rem;
    font-weight: bold;
    line-height: 1.05;
    min-height: 32px;
    padding: 5px 6px;
    width: 100%;
}
.ww-role-buttons button:hover,
.ww-order-buttons button:hover {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.ww-role-buttons button:disabled,
.ww-order-buttons button:disabled {
    background: rgba(255, 255, 255, 0.42);
    color: var(--cs-muted-text);
}
.ww-role-buttons button.ww-active,
.ww-role-buttons button.ww-gm-active {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}
.new-workday-submit-div {
	padding-right: 0;
	margin-right: 0;
}
.option-label {
	align-items: center;
	align-self: center;
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(31, 41, 55, 0.12);
	border-radius: 999px;
	cursor: pointer;
	display: flex;
	gap: 6px;
	line-height: 1.1;
	min-height: 36px;
	padding: 7px 10px;
}
.option-label input[type="radio"] {
    margin: 0;
    width: auto;
}
.TimeLimitField {
    min-height: 38px;
}
#SubmitButtonJS {
    border-radius: 999px;
    font-size: 1.05rem;
    min-height: 46px;
}
.cs-create-result-row {
    grid-column: 1 / -1;
}
#create-game-result {
    background: rgba(75, 156, 211, 0.1);
    border: 1px solid rgba(75, 156, 211, 0.24);
    border-radius: 12px;
    line-height: 1.35;
    margin: 0;
    padding: 9px 10px;
}
#ww-playerLimitNote {
    grid-column: 1 / -1;
}
.ww-circle {
    background:
        radial-gradient(circle at center, rgba(75, 156, 211, 0.12), transparent 62%),
        rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(31, 41, 55, 0.1);
    border-radius: 999px;
    height: 250px;
    margin: 10px auto 0;
    position: relative;
    width: 250px;
}
.ww-circle-player {
	position: absolute;
	transform: translate(-50%, -50%);
	margin: 0;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(31, 41, 55, 0.18);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.76rem;
    font-weight: bold;
    line-height: 1;
    max-width: 86px;
    overflow: hidden;
    padding: 5px 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ww-circle-player-gm {
	border-width: 2px;
	border-color: #b7791f;
	box-shadow:
		0 0 0 2px rgba(255, 255, 255, 0.9),
		0 0 0 4px rgba(183, 121, 31, 0.55),
		0 2px 8px rgba(0, 0, 0, 0.1);
}
.cs-circle-player-selected {
	box-shadow:
		0 0 0 2px rgba(255, 255, 255, 0.95),
		0 0 0 5px #111827,
		0 3px 10px rgba(0, 0, 0, 0.2);
	z-index: 4;
}
.ww-circle-player-gm.cs-circle-player-selected {
	box-shadow:
		0 0 0 2px rgba(255, 255, 255, 0.95),
		0 0 0 5px #111827,
		0 0 0 8px rgba(183, 121, 31, 0.65),
		0 3px 10px rgba(0, 0, 0, 0.2);
}
.cs-circle-instructions {
	color: var(--cs-muted-text);
	font-size: 0.82rem;
	font-weight: bold;
	left: 50%;
	line-height: 1.25;
	margin: 0;
	max-width: 120px;
	padding: 0;
	position: absolute;
	text-align: center;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
}
.ww-circle-player {
	cursor: pointer;
	z-index: 2;
}
.cs-circle-player-watch {
	background: #eaf4fb;
	border-color: var(--cs-primary);
	color: #17496b;
}
.cs-circle-player-out {
	background: #e5e7eb;
	color: var(--cs-muted-text);
	opacity: 0.72;
	text-decoration: line-through;
}
.faux-link, .copy-link {
    color: var(--cs-primary);
    font-weight: bold;
    text-decoration: none;
}
a {
    color: var(--cs-primary);
    font-weight: bold;
    text-decoration: none;
}
.HelpLink {
	cursor: help;
	color: var(--cs-primary);
	text-decoration: none;
	position: relative;
}
.HelpLink::after {
	content: "\00a0ⓘ";
	font-weight: 550;
}
.faux-link:hover, .copy-link:hover, .HelpLink:hover {
    color: var(--cs-primary-hover);
}
.ScheduleEntryOoO{
    text-decoration: line-through;  
}
.cs-card-state-overlay {
    border-radius: var(--cs-card-radius);
    height: var(--cs-card-height);
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: var(--cs-card-width);
    z-index: 6;
}
/* Developer error banner */
.cs-developer-error-banner {
    background: #b00020;
    border-bottom: 4px solid #7f0017;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
    color: #ffffff;
    left: 0;
    min-height: 100px;
    padding: 16px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10000;
}
.cs-developer-error-banner-title {
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.2;
    margin: 0 0 8px;
    padding: 0;
}
.cs-developer-error-banner-body {
    font-size: 0.95rem;
    font-weight: normal;
    line-height: 1.3;
    margin: 0;
    padding: 0;
}
.dg-if {
    color: silver;
    font-style: italic;
}


.cs-assign-roles-waiting {
    color: var(--cs-muted-text);
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.3;
    min-height: 1.2em;
    text-align: center;
}
.cs-assign-roles-processing,
.cs-assign-roles-processing-panel {
    text-align: center;
}
.cs-assign-roles-processing::after,
.cs-assign-roles-processing-panel::after {
    content: "...";
    display: inline-block;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 0.12em;
    margin-top: 4px;
}
.IDidThis {
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(2, 132, 199, 0.34);
    border-radius: 8px;
    display: inline-block;
    padding: 2px 5px;
}
.cs-performance-review-votes {
    display: grid;
    gap: 6px;
    margin: 8px 0;
}
.cs-performance-review-vote-row {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    padding: 6px 8px;
}
.cs-performance-review-voter {
    font-weight: bold;
}
.cs-performance-review-target {
    font-weight: bold;
}
.NotYetVoted {
    font-weight: bold;
    color: red;
}
/* Finished page / synchronized reveal */
.cs-finished-page {
    margin: 0;
    padding: 0;
}
.cs-finished-page-content-hidden {
    display: none;
}
.TadaCountdownOverlay {
	align-items: center;
	background: radial-gradient(circle at 50% 35%, rgb(30, 64, 175), rgb(15, 23, 42) 46%, rgb(2, 6, 23) 100%);
	bottom: 0;
	display: flex;
	justify-content: center;
	left: 0;
	overflow: hidden;
	padding: 20px;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 9999;
	margin: 0;
	padding: 0;
}
.TadaCountdownGlow {
    animation: cs-tada-glow-pulse 1.35s ease-in-out infinite;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(37, 99, 235, 0.18) 34%, transparent 66%);
    border-radius: 999px;
    height: min(78vw, 520px);
    position: absolute;
    width: min(78vw, 520px);
}
.TadaCountdownCard {
    align-items: center;
    background: rgba(15, 23, 42, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    max-width: 360px;
    padding: 30px 24px;
    position: relative;
    text-align: center;
    width: min(360px, calc(100vw - 40px));
}
.TadaCountdownLabel {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    margin-bottom: 18px;
    text-transform: uppercase;
}
.TadaCountdownNumberWrap {
    align-items: center;
    display: flex;
    height: 168px;
    justify-content: center;
    position: relative;
    width: 168px;
}
.TadaCountdownRing {
    animation: cs-tada-ring-spin 1.1s linear infinite;
    border: 8px solid rgba(255, 255, 255, 0.16);
    border-left-color: rgba(96, 165, 250, 0.92);
    border-radius: 999px;
    border-top-color: rgba(255, 255, 255, 0.92);
    height: 154px;
    position: absolute;
    width: 154px;
}
.TadaCountdownNumber {
    animation: cs-tada-number-pop 1s ease-in-out infinite;
    font-size: 6.8rem;
    font-weight: 1000;
    letter-spacing: -0.08em;
    line-height: 1;
    padding-right: 0.08em;
    position: relative;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.38);
}
.TadaCountdownSubtext {
    font-size: 0.95rem;
    font-weight: bold;
    letter-spacing: 0.04em;
    margin-top: 18px;
    opacity: 0.86;
}
@keyframes cs-tada-ring-spin {
    to {
        transform: rotate(360deg);
    }
}
@keyframes cs-tada-glow-pulse {
    0%, 100% {
        opacity: 0.72;
        transform: scale(0.96);
    }
    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}
@keyframes cs-tada-number-pop {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.07);
    }
}
/* Finished page result sections */
.cs-personal-result-banner {
	border-radius: 12px;
	margin: 8px;
	margin-top: 0;
	padding: 8px;
}
.cs-personal-result-win {
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(22, 163, 74, 0.3);
}
.cs-personal-result-loss {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.28);
}
.cs-personal-result-title {
	font-size: 1.12rem;
	font-weight: bold;
}
.cs-personal-result-reason {
    font-size: 0.9rem;
    font-weight: normal;
    margin-top: 3px;
}
.cs-result-fired-list {
    margin: 0 0 10px;
}
.cs-result-lines {
    display: grid;
    gap: 6px;
}
.cs-result-line {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.cs-result-status {
    font-weight: bold;
}
.cs-result-label {
    font-weight: bold;
}
.cs-result-names {
    color: var(--cs-muted-text);
}
.cs-vote-target-fired td {
    font-weight: bold;
}
.cs-vote-target-fired td:first-child::after {
    content: "🔥";
    display: inline-block;
    margin-right: 4px;
    font-size: 0.9em;
    line-height: 1;
    vertical-align: -1px;
}
.cs-tally-log {
    margin-top: 12px;
}
.cs-tally-log ul {
    margin: 6px 0 0;
    padding-left: 22px;
}
.cs-tally-log li + li {
    margin-top: 4px;
}
.cs-final-card-grid {
    align-items: start;
}
.cs-final-card-item {
    width: var(--cs-card-width);
}
.cs-final-card-image {
    border-radius: var(--cs-card-radius);
}
.cs-final-card-image.cs-final-card-win {
    box-shadow:
        0 0 0 4px rgba(22, 163, 74, 0.95),
        0 10px 20px rgba(22, 163, 74, 0.22);
}
.cs-final-card-image.cs-final-card-loss {
    box-shadow:
        0 0 0 4px rgba(220, 38, 38, 0.95),
        0 10px 20px rgba(220, 38, 38, 0.22);
}
.cs-card-full-overlay {
    border-radius: var(--cs-card-radius);
    height: var(--cs-card-height);
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: var(--cs-card-width);
}
.cs-card-lawyer-overlay {
    z-index: 7;
}
.cs-card-fired-overlay {
    z-index: 8;
}
.cs-final-card-caption {
    background: var(--cs-card-label-bg);
    border: 1px solid var(--cs-card-label-border);
    border-radius: 6px;
    color: var(--cs-text);
    font-size: 0.78rem;
    line-height: 1.1;
    margin: 4px 0 0;
    padding: 3px 5px;
    text-align: center;
}
.cs-final-card-name {
    font-weight: bold;
    line-height: 1.15;
}
.cs-final-card-name.cs-final-card-win {
    color: #16803d;
}
.cs-final-card-name.cs-final-card-loss {
    color: #b91c1c;
}
.cs-final-card-votes {
    color: var(--cs-text);
    font-size: 0.75rem;
    font-weight: normal;
    margin-top: 1px;
}


.cs-role-history-block + .cs-role-history-block {
    margin-top: 12px;
}
.cs-report-subtitle {
    font-size: 0.98rem;
    font-weight: 800;
    margin: 0 0 5px;
}
/* Performance Review / Finished reveal transition */
.cs-vote-complete-pending-section {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: min(52vh, 420px);
    padding: 28px 16px;
    text-align: center;
}
.cs-vote-complete-pending-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    max-width: 360px;
    padding: 26px 22px;
    width: 100%;
}
.cs-vote-complete-pending-icon {
    animation: cs-vote-complete-spin 1.2s linear infinite;
    border: 4px solid rgba(37, 99, 235, 0.16);
    border-top-color: rgba(37, 99, 235, 0.84);
    border-radius: 999px;
    height: 42px;
    margin: 0 auto 14px;
    width: 42px;
}
.cs-vote-complete-pending-title {
    color: var(--cs-text);
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 8px;
}
.cs-vote-complete-pending-text {
    color: var(--cs-muted-text);
    font-size: 0.95rem;
    font-weight: bold;
    line-height: 1.3;
}
@keyframes cs-vote-complete-spin {
    to {
        transform: rotate(360deg);
    }
}
.top-result-container {
	display: grid;
	grid-template-columns: 110px 1fr;
	width: 100%;
	column-gap: 8px;
	row-gap: 8px;
	margin: 0;
	padding: 0;
	padding-left: 8px;
	padding-right: 8px;
}
.grid-role-description-public {
	display: grid;
	grid-template-columns: auto auto;
	width: 100%;
	column-gap: 4px;
	row-gap: 8px;
	margin: 0;
	padding: 0;
	padding-left: 8px;
	padding-right: 8px;
	align-items: center;
}
.grid-item-no-border {
	border: none;
	margin: 0;
	padding: 0;
}
.cover-page {
	display: block;
	width: 100%;
	max-width: var(--mymax);
	margin: 0;
	padding: 0;
	text-align: center;
}
.cover-img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	border-radius: 0;
}
.avoid-page-break {
	margin: 0;
	padding: 0;
	break-inside: avoid;
}
.keeptogether {
	break-inside: avoid;
	page-break-inside: avoid;
	clear: both;
}
.page-break {
	break-before: page;
	page-break-before: always;
}
.debug-card h2 {
	font-size: 18px;
	margin: 0 0 10px;
}
.debug-card h3 {
	border-top: 1px solid #e5e7eb;
	font-size: 15px;
	margin: 16px 0 8px;
	padding-top: 12px;
}
.debug-good {
	background: #dcfce7;
	border: 1px solid #86efac;
	border-radius: 8px;
	color: #166534;
	font-weight: bold;
	margin-bottom: 10px;
	padding: 8px;
}
.debug-bad {
	background: #fee2e2;
	border: 1px solid #fca5a5;
	border-radius: 8px;
	color: #991b1b;
	font-weight: bold;
	margin-bottom: 10px;
	padding: 8px 10px;
}
.debug-table {
	border-collapse: collapse;
	font-size: 13px;
	margin-bottom: 8px;
	width: 100%;
}
.debug-table th, .debug-table td {
	border: 1px solid #d1d5db;
	padding: 6px 8px;
	text-align: left;
	vertical-align: top;
}
.debug-table th {
	background: #f3f4f6;
	font-weight: bold;
	width: 180px;
}
.debug-table td {
	white-space: pre-wrap;
}
.debug-raw-json {
	background: #111827;
	border-radius: 8px;
	color: #f9fafb;
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
	overflow-x: auto;
	padding: 10px;
	white-space: pre-wrap;
}
.confirm-wrap {
	display: none;
}
.select-wrap {
	margin: 0;
	padding: 8px;
}
.choice-card.is-confirming .select-wrap {
	display: none;
}
.choice-card.is-confirming .confirm-wrap {
	display: block;
}
.no-button {
	background: #fee4e2;
	color: #b42318;
}
.yes-button {
	background: #dcfce7;
	color: #15803d;
}
#grandpa {
	position: relative;
}
#grandpa.cs-processing-active {
	overflow: hidden;
}
.cs-processing-overlay {
	align-items: center;
	background: rgba(255, 255, 255, 0.76);
	backdrop-filter: blur(2px);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 20px;
	position: fixed;
	z-index: 9999;
	margin: 0;
}
.cs-processing-card {
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(17, 24, 39, 0.10);
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(17, 24, 39, 0.16);
	max-width: 280px;
	min-width: 210px;
	padding: 18px 16px;
	text-align: center;
}
.cs-processing-dots {
	align-items: center;
	display: flex;
	gap: 8px;
	height: 38px;
	justify-content: center;
}
.cs-processing-dots span {
	animation: cs-processing-dots-bounce 0.8s ease-in-out infinite;
	background: #111827;
	border-radius: 50%;
	height: 10px;
	width: 10px;
}
.cs-processing-dots span:nth-child(2) {
	animation-delay: 0.12s;
}
.cs-processing-dots span:nth-child(3) {
	animation-delay: 0.24s;
}
.cs-processing-message {
	color: #111827;
	font-size: 15px;
	font-weight: 700;
	margin-top: 12px;
}
@keyframes cs-processing-dots-bounce {
	0%, 80%, 100% {
		opacity: 0.45;
		transform: translateY(0);
	}
	40% {
		opacity: 1;
		transform: translateY(-8px);
	}
}
#YetToVote {
	margin-top: 8px;
	background: #fffbeb;
	border: 2px solid #f59e0b;
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}
.cs-votes-panel {
	display: grid;
	margin: 0;
	padding: 0;
}
.cs-votes-missing-line {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.cs-votes-missing-label {
	color: #111827;
	white-space: nowrap;
}
.cs-votes-missing-list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
}
.cs-votes-missing-name {
	background: #fff7ed;
	border-color: #f59e0b;
	color: #92400e;
	font-weight: 900;
}
.cs-vote-watch-list {
	border-top: 1px solid rgba(146, 64, 14, 0.22);
	column-gap: 8px;
	display: grid;
	grid-template-columns: max-content max-content max-content;
	justify-content: start;
	padding-top: 6px;
	row-gap: 3px;
}
.cs-vote-watch-row {
	display: contents;
	font-size: 0.86rem;
	line-height: 1.25;
}
.cs-vote-watch-voter {
	color: #111827;
	font-weight: 800;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.cs-vote-watch-arrow {
	color: #6b7280;
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
}
.cs-vote-watch-target {
	color: #92400e;
	font-weight: 900;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.cs-votes-deadline {
	margin-top: 0;
	padding-top: 0;
}
.cs-votes-deadline.is-expired {
	color: #92400e;
}
.cs-agenda-section {
	/* Uses your normal .section styling */
}
.cs-agenda-list {
	display: block;
	margin: 0;
	padding: 0;
}
.cs-agenda-item {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	margin: 0;
	padding: 8px 0;
}
.cs-agenda-item + .cs-agenda-item {
	border-top: 1px solid rgba(17, 24, 39, 0.10);
}
.cs-agenda-item-current {
	background: #fffbeb;
	border-radius: 12px;
	box-shadow: 0 0 0 3px #f59e0b, 0 0 0 6px rgba(245, 158, 11, 0.18);
	margin: 8px 0;
	padding: 8px 0;
}
.cs-agenda-item + .cs-agenda-item-current {
	border-top: none;
}
.cs-agenda-item-current  + .cs-agenda-item {
	border-top: none;
}
.cs-agenda-item-current .cs-agenda-body {
	border-left-color: #f59e0b;
}
.cs-agenda-item-current .cs-agenda-time {
	color: #111827;
}
.cs-agenda-item-current-block {
	background: #fffbeb;
	border-left: 3px solid #f59e0b;
	border-right: 3px solid #f59e0b;
	margin-left: 0;
	margin-right: 0;
}
.cs-agenda-item-current-block .cs-agenda-body {
	border-left-color: #f59e0b;
}
.cs-agenda-item-current-block .cs-agenda-time {
	color: #111827;
}
/* First row of a current block */
.cs-agenda-list > .cs-agenda-item-current-block:first-child,
.cs-agenda-item:not(.cs-agenda-item-current-block) + .cs-agenda-item-current-block {
	border-top: 3px solid #f59e0b;
	border-top-left-radius: 12px;
	border-top-right-radius: 12px;
	margin-top: 8px;
}
/* Normal divider lines inside the current block */
.cs-agenda-item-current-block + .cs-agenda-item-current-block {
	border-top: 1px solid rgba(17, 24, 39, 0.10);
}
/* Last row of a current block */
.cs-agenda-item-current-block:not(:has(+ .cs-agenda-item-current-block)):not(:has(+ .cs-agenda-separator-no-movement + .cs-agenda-item-current-block)) {
	border-bottom: 3px solid #f59e0b;
	border-bottom-left-radius: 12px;
	border-bottom-right-radius: 12px;
	margin-bottom: 8px;
}
/* Separator inside a current block */
.cs-agenda-item-current-block + .cs-agenda-separator-no-movement:has(+ .cs-agenda-item-current-block) {
	background: #fffbeb;
	border-left: 3px solid #f59e0b;
	border-right: 3px solid #f59e0b;
	margin: 0;
	padding: 0;
}
.cs-agenda-item-current-block + .cs-agenda-separator-no-movement:has(+ .cs-agenda-item-current-block)::before,
.cs-agenda-item-current-block + .cs-agenda-separator-no-movement:has(+ .cs-agenda-item-current-block)::after {
	background: rgba(146, 64, 14, 0.35);
}
/* Row after an inside-block separator */
.cs-agenda-separator-no-movement + .cs-agenda-item-current-block {
	border-top: none;
}
/* Do not add an extra divider immediately after the whole block */
.cs-agenda-item-current-block + .cs-agenda-item:not(.cs-agenda-item-current-block) {
	border-top: none;
}
.cs-agenda-time {
	color: #374151;
	font-size: 0.82rem;
	line-height: 1.2;
	padding: 2px 8px 0 0;
	text-align: right;
	white-space: nowrap;
}
.cs-agenda-body {
	border-left: 2px solid rgba(17, 24, 39, 0.18);
	min-width: 0;
	padding: 0 0 0 10px;
}
.cs-agenda-roles {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 4px;
	padding: 0;
}
.cs-agenda-role-pill {
	border: 1px solid rgba(17, 24, 39, 0.14);
	border-radius: 999px;
	display: inline-block;
	font-size: 0.75rem;
	line-height: 1.1;
	max-width: 100%;
	overflow: hidden;
	padding: 3px 7px;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.cs-agenda-role-pill-good {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #065f46;
}
.cs-agenda-role-pill-bad {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}
.cs-agenda-role-pill-other {
	background: #f5f3ff;
	border-color: #ddd6fe;
	color: #5b21b6;
}
.cs-agenda-role-pill-copycat {
	background: #fff7ed;
	border-color: #fed7aa;
	color: #9a3412;
}
.cs-agenda-role-pill-ooo {
	text-decoration: line-through;
}
.cs-agenda-item-ooo,
.cs-agenda-item-ooo * {
	text-decoration: line-through;
}
.cs-agenda-who {
	align-items: center;
	color: #4b5563;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.78rem;
	font-weight: 700;
	gap: 4px;
	line-height: 1.2;
	margin: 0 0 5px;
	padding: 0;
}
.cs-agenda-who:empty {
	display: none;
}
.cs-agenda-who-item {
	display: inline-block;
}
.cs-agenda-who-item + .cs-agenda-who-item::before {
	color: #9ca3af;
	content: "•";
	display: inline-block;
	font-weight: 700;
	margin: 0 4px 0 0;
}
.cs-agenda-who-item-player {
	color: #374151;
}
.cs-agenda-details {
	display: grid;
	gap: 3px;
	margin: 0;
	padding: 0;
}
.cs-agenda-detail {
	color: #111827;
	font-size: 0.86rem;
	line-height: 1.28;
	margin: 0;
	padding: 0;
}
.cs-agenda-details .cs-agenda-detail + .cs-agenda-detail {
	border-top: 1px solid rgba(17, 24, 39, 0.18);
}
.cs-agenda-detail-ooo {
	text-decoration: line-through;
}
.cs-agenda-detail-muted {
	color: #6b7280;
}
.cs-agenda-item-done {
	opacity: 0.92;
}
.cs-agenda-item-muted {
	opacity: 0.72;
}
.cs-agenda-separator {
	align-items: center;
	color: #6b7280;
	display: grid;
	font-size: 0.75rem;
	font-weight: 800;
	gap: 8px;
	grid-template-columns: 1fr auto 1fr;
	letter-spacing: 0.02em;
	text-align: center;
	text-transform: uppercase;
}
.cs-agenda-separator::before,
.cs-agenda-separator::after {
	background: rgba(17, 24, 39, 0.20);
	content: "";
	height: 1px;
	min-width: 20px;
}
.cs-agenda-separator-no-movement {
	color: #92400e;
}
.cs-agenda-separator-no-movement::before,
.cs-agenda-separator-no-movement::after {
	background: rgba(146, 64, 14, 0.35);
}
.cs-agenda-item-conditional .cs-agenda-time {
	color: #6b21a8;
}
.cs-agenda-role-pill-conditional {
	background: #f3e8ff;
	border-color: #9333ea;
	border-style: dashed;
	color: #6b21a8;
}
.cs-agenda-who-item-conditional {
	background: #f3e8ff;
	border: 1px dashed #9333ea;
	border-radius: 999px;
	color: #6b21a8;
	font-style: italic;
	padding: 2px 6px;
}
.cs-agenda-detail-conditional {
	color: #581c87;
	font-style: italic;
}
.cs-agenda-conditional-note {
	margin-top: 8px;
	margin-bottom: 0;
	margin-left: 8px;
	margin-right: 8px;
}
.cs-agenda-item-conditional .cs-agenda-time::after {
	content: " *";
	color: #6b21a8;
	font-weight: 900;
}
.cs-agenda-role-pill-conditional::after {
	content: " *";
	font-weight: 900;
}
.cs-agenda-who-item-conditional::after {
	content: " *";
	font-style: normal;
	font-weight: 900;
}
.cs-agenda-detail-conditional:not(.cs-agenda-conditional-note)::after {
	content: " *";
	font-style: normal;
	font-weight: 900;
}
.cs-agenda-detail.cs-agenda-detail-you,
.cs-agenda-detail.cs-agenda-detail-you * {
	font-weight: 900;
}
.cs-agenda-role-pill.cs-agenda-role-pill-you,
.cs-agenda-role-pill.cs-agenda-role-pill-you * {
	font-weight: 900;
}
.image-below-banner.cs-current-card-win {
	background: rgba(34, 197, 94, 0.14);
	border-color: rgba(22, 163, 74, 0.45);
	color: #166534;
}
.image-below-banner.cs-current-card-loss {
	background: rgba(239, 68, 68, 0.12);
	border-color: rgba(220, 38, 38, 0.42);
	color: #991b1b;
}
.cs-workday-jump {
	display: grid;
	grid-template-columns: auto auto;
	gap: 10px;
	align-items: center;
}
.cs-workday-jump-select {
	width: 100%;
	min-width: 0;
}
.cs-workday-jump-button {
	white-space: nowrap;
}
#TopBarGameCodePill {
	cursor: pointer;
}
#TopBarGameCodePill.cs-action-waiting-pill {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0)),
		var(--cs-action-yellow);
	border: 2px solid #1f2937;
	border-radius: 16px;
	box-shadow: none;
	color: var(--cs-text);
}
#TopBarGameCodePill:active {
	transform: translateY(1px);
}
.RIGHT {
	text-align: right !important;
}
.LEFT {
	text-align: left;
}
.CENTER {
    text-align: center;
}
.COL {
	background-color: #e0e0e0;
	font-weight: bold;
}
/* Standard table wrapper: rounded corners only */
.cs-table-wrap {
	border: 1px solid var(--cs-table-border);
	border-radius: 10px;
	margin: 0;
	overflow: hidden;
	padding: 0;
}
/* Standard site tables */
table {
	border-collapse: separate;
	border-spacing: 0;
	font-size: 0.94rem;
	line-height: 1.25;
	margin: 0;
	padding: 0;
	width: 100%;
}
th,
td {
	border-right: 1px solid var(--cs-table-border);
	border-bottom: 1px solid var(--cs-table-border);
	margin: 0;
	padding: 8px 10px;
	vertical-align: top;
}
th {
	background: var(--cs-table-header-bg);
	font-weight: bold;
	text-align: left;
	vertical-align: bottom;
}
td {
	background: var(--cs-table-row-bg);
}
tr:nth-child(even) td {
	background: var(--cs-table-row-alt-bg);
}
/* Remove extra grid lines on the outside edges */
th:last-child,
td:last-child {
	border-right: 0;
}
tr:last-child th,
tr:last-child td {
	border-bottom: 0;
}
/* Add this class only to tables that may be wider than the section */
.cs-table-scroll-x {
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}
/* Only wide-scroll tables are allowed to become wider than the wrapper */
.cs-table-scroll-x table {
	width: max-content;
	min-width: 100%;
}
/* Keep first column visible only on horizontally scrolling tables */
.cs-table-scroll-x th:first-child,
.cs-table-scroll-x td:first-child {
	position: sticky;
	left: 0;
	z-index: 2;
	background: var(--cs-table-row-bg);
	white-space: nowrap;
}
.cs-table-scroll-x th:first-child {
	z-index: 3;
	background: var(--cs-table-header-bg);
}
.cs-table-scroll-x tr:nth-child(even) td:first-child {
	background: var(--cs-table-row-alt-bg);
}
.cs-table-scroll-x tr:last-child th:first-child,
.cs-table-scroll-x tr:last-child td:first-child {
	background: var(--cs-table-header-bg);
}
th.vertical-text {
	height: 128px;
	width: 34px;
	min-width: 34px;
	max-width: 34px;
	padding: 8px 4px;
	text-align: center;
	vertical-align: bottom;
}
th.vertical-text > span {
	display: inline-block;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	white-space: nowrap;
	line-height: 1;
}
/* Role Tracker - Performance Review only */
.cs-role-tracker-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}
.cs-role-tracker-count {
	padding: 4px 7px;
	border: 1px solid rgba(31, 41, 55, 0.25);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	font-size: 0.78rem;
	font-weight: 800;
	color: #374151;
	white-space: nowrap;
}
.cs-role-tracker-rows {
	display: grid;
	gap: 0;
}
.cs-role-tracker-row {
	display: grid;
	grid-template-columns: minmax(72px, 1fr) 135px 88px;
	align-items: center;
	gap: 3px;
	min-height: 28px;
	padding-left: 8px;
	padding-right: 8px;
	padding-top: 3px;
	padding-bottom: 3px; 
	margin-left: 0;
	margin-right: 0;
	margin-top: 2px;
	margin-bottom: 2px;
	border: 1px solid rgba(31, 41, 55, 0.16);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.58);
	transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.cs-role-tracker-row.cs-role-tracker-row-selected {
	border-color: rgba(31, 41, 55, 0.45);
	background: rgba(255, 255, 255, 0.92);
	box-shadow: inset 4px 0 0 rgba(31, 41, 55, 0.72);
}
.cs-role-tracker-player {
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cs-role-tracker-select {
	width: 100%;
	height: 34px;
	padding-left: 4px;
	padding-right: 4px;
	padding-top: 0;
	padding-bottom: 0;
	border: 1px solid rgba(31, 41, 55, 0.32);
	border-radius: 8px;
	background: #ffffff;
	color: #111827;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cs-role-tracker-select option:disabled {
	color: #9ca3af;
}
.cs-role-tracker-team {
	width: 80px;
	min-width: 80px;
	padding: 3px 5px;
	border-radius: 999px;
	font-size: 0.80rem;
	font-weight: 900;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	white-space: nowrap;
	color: #ffffff;
}
.cs-role-tracker-team-good {
	background: #50607A;
}
.cs-role-tracker-team-bad {
	background: #550C1F;
}
.cs-role-tracker-team-self {
	background: #D57C44;
}
.cs-role-tracker-team-unknown {
	color: #000000;
	background: #ffffff;
	border: 1px solid var(--cs-soft-border);
	font-weight: normal;
}
.cs-role-tracker-message {
	padding: 8px;
	border: 1px solid rgba(31, 41, 55, 0.2);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.7);
	color: #374151;
	font-size: 0.86rem;
	font-weight: 700;
}
.public-role-plus-image-link {
	cursor: pointer;
}
.public-role-plus-image-link img {
	cursor: pointer;
}
/* ==========================================================
   Splash Screen
   ========================================================== */
.cs-splash {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	/* Override any global div margins */
	margin: 0;
	align-items: center;
	justify-content: center;
	background:
		linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%);
	overflow: hidden;
	isolation: isolate;
}
.cs-splash::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at center, rgba(207, 118, 62, 0.18), transparent 42%);
	opacity: 1;
	transform: translateZ(0);
}
html.cs-splash-pending .cs-splash {
	display: flex;
}
html.cs-splash-pending body {
	overflow: hidden;
}
/* Override global div { margin: 8px; } */
.cs-splash div {
	margin: 0;
}
.cs-splash-inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	animation: csSplashLogoIn 650ms ease-out both;
}
.cs-splash-logo {
	display: block;
	width: min(68vw, 375px);
	max-height: 55vh;
	height: auto;
	border-radius: 14px;
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}
.cs-splash.cs-splash-leaving {
	animation: csSplashOut 320ms ease-in forwards;
}
@keyframes csSplashLogoIn {
	from {
		opacity: 0;
		transform: scale(.94);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}
@keyframes csSplashOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
		visibility: hidden;
	}
}
@media (prefers-reduced-motion: reduce) {
	.cs-splash-inner,
	.cs-splash.cs-splash-leaving {
		animation: none;
	}
}
@media (max-width: 700px) {
	:root {
		--cs-page-gutter: 14px;
		--cs-section-gap: 12px;
		--cs-section-padding: 12px;
	}
}
@media (max-width: 600px) {
	.cs-game-details-row {
		grid-template-columns: 112px minmax(0, 1fr);
	}
    .role-filter-buttons,
    .role-sort-buttons {
        gap: 5px;
    }
    .ar-filter-btn,
    .ar-sort-btn {
        font-size: 0.8rem;
        min-height: 32px;
        padding: 5px 8px;
    }
    .role-card-image {
        float: left;
        margin: 0 10px 6px 0;
    }
    .role-desc-col {
        display: block;
    }
    .role-title-row {
        border-bottom: 0;
        margin: 0 0 5px;
        padding: 0;
    }
    .role-name {
        font-size: 1rem;
    }
    .role-meta {
        font-size: 0.78rem;
    }
    .role-detail {
        display: block;
        font-size: 0.92rem;
        line-height: 1.28;
        margin: 7px 0 0;
    }
    .role-detail-label {
        display: block;
        margin: 0 0 2px;
    }
    .role-detail-value {
        display: block;
    }
    .option-label {
        font-size: 0.92rem;
        padding-left: 8px;
        padding-right: 8px;
    }
	.ww-player-row {
		align-items: center;
		column-gap: 6px;
		display: grid;
		grid-template-columns: minmax(0, 1fr) 52px 32px 62px;
		padding: 8px;
	}
	.ww-player-name {
		font-size: 0.98rem;
		min-height: 32px;
		display: flex;
		align-items: center;
		color: var(--cs-primary);
		font-weight: bold;
		text-decoration: none;
		cursor: pointer;
	}
	.ww-player-name:hover {
		color: var(--cs-primary-hover);
	}
	.ww-player-name::before {
		content: "\25B6"; /* ▶ */
		display: inline-block;
		font-size: 0.78rem;
		margin-right: 5px;
		transition: transform 0.15s ease;
	}
	.ww-player-row.ww-player-row-expanded .ww-player-name::before {
		content: "\25BC"; /* ▼ */
	}
	.ww-player-mobile-status,
	.ww-player-mobile-gm {
		display: block;
		font-size: 0.78rem;
		font-weight: bold;
		line-height: 1;
		margin: 0;
		padding: 0;
		text-align: center;
		white-space: nowrap;
	}
	.ww-player-row[data-role="play"] .ww-player-mobile-status::before {
		content: "Play";
	}
	.ww-player-row[data-role="watch"] .ww-player-mobile-status::before {
		content: "Watch";
	}
	.ww-player-row[data-role="out"] .ww-player-mobile-status::before {
		content: "Out";
	}
	.ww-player-row[data-gm="true"] .ww-player-mobile-gm::before {
		content: "GM";
	}
	.ww-player-row .ww-role-buttons {
		display: none;
	}
	.ww-player-row .ww-order-buttons {
		display: grid;
		grid-column: 4;
		grid-row: 1;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 4px;
	}
	.ww-order-buttons button {
		font-size: 0.72rem;
		min-height: 32px;
		padding: 4px 3px;
	}
	.ww-player-row.ww-player-row-expanded {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 7px;
	}
	.ww-player-row.ww-player-row-expanded .ww-player-name {
		grid-column: 1;
		grid-row: 1;
	}
	.ww-player-row.ww-player-row-expanded .ww-player-mobile-status,
	.ww-player-row.ww-player-row-expanded .ww-player-mobile-gm {
		display: none;
	}
	.ww-player-row.ww-player-row-expanded .ww-role-buttons {
		display: grid;
		grid-column: 1;
		grid-row: 2;
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.ww-player-row.ww-player-row-expanded .ww-order-buttons {
		grid-column: 1;
		grid-row: 3;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 430px) {
	.cs-game-details {
		gap: 8px;
	}
	.cs-game-details-group {
		padding: 7px;
	}
	.cs-game-details-row {
		grid-template-columns: 94px minmax(0, 1fr);
		gap: 6px;
		padding: 5px 0;
	}
	.cs-game-details-label, .role-detail-label {
		font-size: 0.72rem;
	}
	.cs-game-details-value {
		font-size: 0.92rem;
	}
	.cs-game-details-name, .cs-game-details-empty {
		font-size: 0.78rem;
		padding: 3px 6px;
	}
	.cs-claim-player-grid {
		gap: 7px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.claim-player-box {
		min-height: 40px;
		padding: 7px 8px;
	}
	.cs-section-note, .cs-name-pill {
		font-size: 0.82rem;
	}
    :root {
        --cs-card-width: 108px;
        --cs-card-height: 147px;
        --cs-card-grid-gap-x: 7px;
    }
    .cs-assign-roles-summary {
        gap: 6px;
        padding: 7px 8px;
    }
    .cs-assign-roles-count {
        font-size: 0.94rem;
    }
    .cs-assign-role-grid {
        padding: 8px 4px;
    }
    .role-info-desc {
        display: block;
    }
    .role-info-desc .role-detail-label {
        display: block;
        margin-bottom: 2px;
    }
    #gameContainer {
        height: 190px;
    }
    #overlayText {
        font-size: 1.2rem;
    }
	.ww-player-row-no-data {
		grid-template-columns: minmax(0, 1fr);
	}
	.add-new-player-row {
		margin: 0;
		grid-template-columns: minmax(0, 1fr);
	}
	.add-new-player-name {
		margin-left: 8px;
		margin-right: 8px;
		margin-top: 0;
		margin-bottom: 4px;
		padding: 0;
	}
	.add-new-player-btn-div {
		margin-left: 8px;
		margin-right: 8px;
		margin-top: 4px;
		margin-bottom: 0;
		padding: 0;
	}
    .ww-circle {
        height: 230px;
        width: 230px;
    }
}
@media (max-width: 414px) {
    :root {
        --cs-page-gutter: 12px;
        --cs-section-padding: 10px;
        --cs-card-width: 104px;
        --cs-card-height: 142px;
        --cs-card-grid-gap-x: 6px;
    }
}
@media (max-width: 390px) {
    :root {
        --cs-page-gutter: 10px;
        --cs-section-gap: 10px;
        --cs-section-padding: 8px;
        --cs-card-width: 102px;
        --cs-card-height: 139px;
        --cs-card-grid-gap-x: 5px;
    }
}
@media (max-width: 370px) {
    :root {
        --cs-page-gutter: 8px;
        --cs-card-width: 98px;
        --cs-card-height: 134px;
        --cs-card-grid-gap-x: 5px;
    }
    .role-row .image-container,
    .role-row .image-container img {
        height: 120px;
        width: 88px;
    }
    .role-card-image {
        margin-right: 9px;
    }
}
@media print {
	.cover-page,
	.cover-page * {
		margin: 0 !important;
		padding: 0 !important;
	}
	.cover-page {
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		height: 100vh;
		max-height: 100vh;
		overflow: hidden;
		break-after: page;
		page-break-after: always;
		break-inside: avoid;
		page-break-inside: avoid;
	}
	.cover-img {
		display: block;
		height: 100vh;
		max-height: 100vh;
		width: auto;
		max-width: 100%;
		object-fit: contain;
		border-radius: 0 !important;
	}
	.role-row {
		break-inside: avoid;
		grid-template-columns: 147px 1fr;
		column-gap: 12px;
	}
	.role-row .image-container {
		width: 147px;
		height: 200px;
	}
	.role-row .image-container img {
		width: 147px;
		height: 200px;
		max-width: none;
	}
}
@media screen and (max-width: 900px) {
	.role-row {
		display: block;
		clear: both;
	}
	.role-row .image-container {
		float: left;
		margin: 0 12px 8px 0;
	}
	.role-row .role-desc-col {
		display: block;
		margin: 0;
		padding: 0;
	}
	.role-row::after {
		content: "";
		display: block;
		clear: both;
	}
}
.cs-agenda-separator {
	margin: 0;
	padding: 0;
}
/* Allows collapsible headers to be real buttons without inheriting site-wide button styling. */
button.collapsible-header {
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	border: 0;
	box-shadow: none;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
	min-height: 0;
	padding: 0;
	text-align: left;
	white-space: normal;
}
button.collapsible-header:hover,
button.collapsible-header:active,
button.collapsible-header:focus {
	background: transparent;
	box-shadow: none;
	color: inherit;
}
button.collapsible-header:focus-visible {
	outline: 2px solid var(--cs-primary);
	outline-offset: 4px;
}
.collapsible-header {
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	-webkit-user-select: none;
	user-select: none;
}
.collapsible-header .arrow {
	pointer-events: none;
}
.cs-splash {
	pointer-events: none;
}
button:disabled, input[type="button"]:disabled {
	background: #6b7280;
	box-shadow: none;
	color: #f3f4f6;
	cursor: not-allowed;
}
/* Corporate Sabotage homepage hero */
.cs-home-hero {
	background:
		radial-gradient(circle at top left, rgba(75, 156, 211, 0.18), transparent 42%),
		linear-gradient(145deg, #ffffff 0%, #f7f9fc 100%);
	border-color: rgba(31, 41, 55, 0.24);
	overflow: hidden;
	padding: clamp(14px, 3vw, 24px);
}
.cs-home-hero div {
	margin: 0;
}
.cs-home-title {
	margin: 0 auto 14px;
	max-width: 650px;
	padding: 0;
}
.cs-home-title img {
	border-radius: 0;
	height: auto;
	width: 100%;
}
.cs-home-hero-main {
	align-items: center;
	display: grid;
	gap: clamp(14px, 3vw, 24px);
	grid-template-columns: 110px minmax(0, 1fr);
	margin: 0;
}
.cs-home-logo-wrap {
	margin: 0;
}
.cs-home-logo {
	border-radius: 12px;
	box-shadow: 0 7px 18px rgba(17, 24, 39, 0.18);
	height: auto;
	width: 110px;
}
.cs-home-hero-copy {
	margin: 0;
	min-width: 0;
}
.cs-home-tagline {
	color: var(--cs-text);
	font-size: clamp(1.2rem, 3vw, 1.55rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.12;
}
.cs-home-description {
	color: var(--cs-muted-text);
	font-size: 1rem;
	line-height: 1.45;
	margin: 8px 0 12px;
}
.cs-home-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 14px;
}
.cs-home-facts span {
	background: rgba(75, 156, 211, 0.12);
	border: 1px solid rgba(75, 156, 211, 0.32);
	border-radius: 999px;
	color: var(--cs-text);
	font-size: 0.78rem;
	font-weight: bold;
	line-height: 1.1;
	padding: 5px 9px;
	white-space: nowrap;
}
/* Homepage start-or-join section */
.cs-home-play-section {
	padding: clamp(14px, 3vw, 20px);
}
.cs-home-play-section > .cs-home-tabs,
.cs-home-play-section > .cs-home-tab-content,
.cs-home-tab-panel,
.cs-home-play-option,
.cs-home-play-title,
.cs-home-play-description,
.cs-home-play-controls {
	margin: 0;
}
.cs-home-play-section .cs-home-play-heading {
	font-size: 1.25rem;
	font-weight: 800;
	margin: 0 0 12px;
	text-align: center;
}
.cs-home-tabs {
	display: grid;
	gap: 4px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	position: relative;
	z-index: 2;
}
.cs-home-tabs .cs-home-tab {
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(31, 41, 55, 0.18);
	border-bottom: 1px solid rgba(31, 41, 55, 0.18);
	border-radius: 10px 10px 0 0;
	box-shadow: none;
	color: var(--cs-text);
	font-size: 0.82rem;
	line-height: 1.1;
	margin: 0;
	min-height: 40px;
	padding: 7px 4px;
	white-space: normal;
	width: 100%;
}
.cs-home-tabs .cs-home-tab-active {
	background: #111827;
	border-color: #111827;
	border-bottom-color: #111827;
	color: #ffffff;
}
.cs-home-tab-content {
	background: rgba(255, 255, 255, 0.58);
	border: 1px solid rgba(31, 41, 55, 0.18);
	border-radius: 0 0 12px 12px;
	margin: -1px 0 0;
	min-height: 132px;
	padding: 10px;
}
.cs-home-tab-panel {
	margin: 0;
	padding: 0;
}
.cs-home-tab-content > .cs-home-play-option {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 4px;
}
.cs-home-play-option {
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 251, 0.96));
	border: 1px solid rgba(31, 41, 55, 0.18);
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 14px;
}
.cs-home-play-title {
	color: var(--cs-text);
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.2;
}
.cs-home-play-description {
	color: var(--cs-muted-text);
	font-size: 0.9rem;
	line-height: 1.35;
	padding: 5px 0 12px;
}
.cs-home-play-controls {
	display: grid;
	gap: 8px;
	margin-top: auto !important;
}
.cs-home-play-button {
	align-items: center;
	background: #111827;
	border: 0;
	border-radius: 999px;
	box-shadow: 0 3px 0 rgba(0, 0, 0, 0.22);
	color: #ffffff;
	cursor: pointer;
	display: flex;
	font-family: inherit;
	font-size: 1rem;
	font-weight: bold;
	justify-content: center;
	line-height: 1.2;
	min-height: 46px;
	padding: 8px 12px;
	text-align: center;
	width: 100%;
}
.cs-home-play-button:hover,
.cs-home-play-button:focus {
	background: #26364e;
	color: #ffffff;
}
.cs-home-play-controls input {
	margin: 0;
}
.cs-home-play-controls button {
	margin: 0;
	width: 100%;
}
@media (max-width: 500px) {
	.cs-home-title {
		margin-bottom: 10px;
	}
	/*
		The logo floats like a newspaper image. Text begins beside it,
		then uses the full width after it passes the bottom of the logo.
	*/
	.cs-home-hero-main {
		display: block;
		margin: 0;
	}
	.cs-home-hero-main::after {
		clear: both;
		content: "";
		display: block;
	}
	.cs-home-logo-wrap {
		float: left;
		margin: 0 12px 7px 0 !important;
	}
	.cs-home-logo {
		width: 88px;
	}
	.cs-home-hero-copy {
		display: block;
	}
	.cs-home-tagline {
		font-size: 1.12rem;
	}
	.cs-home-description {
		font-size: 0.92rem;
		line-height: 1.38;
		margin: 6px 0 10px;
	}
	/*
		Using a normal block with inline-block pills allows the pills
		to wrap beside and then beneath the floated logo.
	*/
	.cs-home-facts {
		display: block;
		margin: 0;
	}
	.cs-home-facts span {
		display: inline-block;
		font-size: 0.7rem;
		margin: 0 2px 5px 0;
		padding: 4px 7px;
	}
	.cs-home-play-section .cs-home-play-heading {
		font-size: 1.15rem;
		margin-bottom: 10px;
	}
	.cs-home-play-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.cs-home-play-option {
		padding: 12px;
	}
	.cs-home-play-description {
		padding-bottom: 10px;
	}
}
/*
	Remove the original section container styling only when the shared
	Roles Explained and How to Play sections are inside the homepage tabs.
*/
#CSHomeRolesPanel > #RolesExplained,
#CSHomeHowPanel > #HowToPlay {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin: 0;
	max-width: none;
	padding: 0;
	width: 100%;
}
/* Remove padding that originally created space below the collapsible headers. */
#CSHomeRolesPanel > #RolesExplained > .collapsible-content,
#CSHomeHowPanel > #HowToPlay > .collapsible-content {
	margin: 0;
	padding: 0;
}
/*
	Previous Games remains a collapsible subsection inside Join,
	but it should use the complete available width.
*/
#CSHomeTabContent .cs-home-previous-games {
	margin: 12px 0 0;
	max-width: none;
	width: 100%;
}
.cs-site-footer {
	color: var(--cs-muted-text);
	font-size: 0.75rem;
	line-height: 1.3;
	margin: 18px auto 6px;
	max-width: var(--cs-page-max-width);
	padding: 0 var(--cs-page-gutter);
	text-align: center;
	width: 100%;
}
