:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #656765;
  --line: #e6e4dc;
  --paper: #f4f3ee;
  --black: #090909;
  --green: #1d6a45;
  --green-dark: #102820;
  --mint: #e7f1e9;
  --gold: #f2dc24;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
.hidden { display: none !important; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); }
.topbar { height: 70px; padding: 0 max(24px, calc((100vw - 1120px) / 2)); display: flex; align-items: center; justify-content: space-between; background: var(--black); border-bottom: 3px solid var(--gold); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; }
.brand-logo { display: block; width: 42px; height: 42px; object-fit: cover; border: 2px solid var(--gold); border-radius: 50%; }
.brand-name { font-size: 15px; font-weight: 850; letter-spacing: .12em; white-space: nowrap; }
.brand-light { color: var(--gold); font-weight: 750; }
.environment { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; color: var(--gold); background: #1d1d1a; border: 1px solid #494527; border-radius: 999px; font-size: 12px; font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px #f2dc2429; }
.page-shell { max-width: 960px; margin: 0 auto; padding: 58px 24px 44px; }
.intro { display: flex; align-items: center; justify-content: space-between; min-height: 214px; margin-bottom: 31px; }
.eyebrow { margin: 0 0 9px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
h1 { margin: 0; color: var(--black); font-size: clamp(37px, 6vw, 58px); line-height: .99; letter-spacing: -.06em; }
h1 span { color: var(--green); }
.intro-copy { max-width: 475px; margin: 17px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.shield { display: grid; width: 142px; height: 142px; place-items: center; margin-right: 32px; padding: 5px; background: var(--black); border: 2px solid var(--gold); border-radius: 50%; transform: rotate(4deg); box-shadow: 0 18px 40px #17171720; }
.shield img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; transform: rotate(-4deg); }
.workspace-card { min-width: 0; overflow: hidden; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 16px 40px #142a1b0b; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.workspace-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.deployment-version { padding: 6px 9px; color: var(--muted); background: #f3f6f3; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; font-weight: 650; white-space: nowrap; }
.workspace-nav { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; padding: 15px 0 4px; border-bottom: 1px solid var(--line); }
.workspace-nav-primary,.workspace-nav-more-list { display: flex; flex-wrap: wrap; gap: 8px; }
.workspace-nav-primary { flex: 1 1 100%; }
.workspace-nav-more { flex: 1 1 100%; }
.workspace-nav-more > summary { display: inline-flex; align-items: center; cursor: pointer; list-style: none; }
.workspace-nav-more > summary::-webkit-details-marker { display: none; }
.workspace-nav-more > summary::after { content: "⌄"; margin-left: 8px; }
.workspace-nav-more[open] > summary::after { content: "⌃"; }
.workspace-nav-more-list { padding: 9px 0 3px; }
.page-load-error { margin: 12px 0; padding: 10px 12px; background: #fff0ef; border: 1px solid #e8b6b2; border-radius: 9px; }
.table-flag input:disabled { cursor: not-allowed; opacity: .55; }
.non-operational-note { margin: 12px 0; padding: 12px 14px; color: #713318; background: #fff5e5; border: 1px solid #efcf97; border-radius: 10px; }
.workspace-nav .active { color: var(--black); background: var(--gold); box-shadow: inset 0 0 0 1px #d1bd1d; }
.shared-score-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; margin: 10px 0 18px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf8; }
.shared-score-filters > strong,.shared-score-filters > h3 { align-self: center; margin: 0; color: var(--green-dark); font-size: 15px; }
.shared-score-filters label { margin: 0; color: var(--muted); font-size: 11px; }
.shared-score-filters select,.shared-score-filters input { display: block; width: 145px; height: 36px; margin-top: 4px; font-size: 12px; }
.shared-score-filters .field-hint { flex-basis: 100%; margin: 0; }
.clan-management-page { padding-top: 22px; }
.cwl-cycle-form { max-width: 420px; padding: 18px 0; }
.cwl-cycle-controls { padding-top: 20px; }
.cwl-cycle-controls > label { max-width: 260px; }
.cwl-cycle-controls > select { max-width: 260px; }
.cwl-assignment-list { margin: 16px 0 12px; }
.cwl-bulk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 12px; background: #f8faf8; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; color: var(--muted); font-size: 12px; }
.cwl-bulk-row label,.cwl-reminder-card .check-setting { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.cwl-bulk-row input[type="checkbox"],.cwl-reminder-card input[type="checkbox"] { width: 16px; height: 16px; flex: 0 0 16px; accent-color: var(--green); }
.cwl-bulk-row select { width: auto; min-width: 230px; height: 36px; }
.cwl-bulk-row .secondary-button { white-space: nowrap; }
.cwl-reminder-list { display: grid; gap: 12px; padding-top: 12px; }
.cwl-reminder-list h3 { margin: 14px 0 0; }
.cwl-reminder-card { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.cwl-reminder-card h4 { margin: 0; }
.cwl-war-status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px; margin: 5px 0 0; padding: 4px 8px; border-radius: 999px; font-size: .78rem; font-weight: 650; line-height: 1.35; vertical-align: middle; }
.cwl-war-status.is-in-war { color: #155d3c; background: #e6f4eb; }
.cwl-war-status.is-preparation { color: #805c12; background: #fff3d4; }
.cwl-war-status.is-idle { color: #53615a; background: #eef1ee; }
.cwl-war-status.is-unknown { color: #854239; background: #f9e9e6; }
.cwl-war-status time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cwl-monitoring-war-panel { margin: 18px 0 24px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #f8faf8; }
.cwl-monitoring-war-panel h3 { margin: 0; }
.cwl-war-panel-heading, .cwl-war-panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cwl-war-panel-heading { justify-content: space-between; margin-bottom: 6px; }
.cwl-war-panel-actions { justify-content: flex-end; }
.cwl-war-panel-updated { color: #53615a; font-size: .85rem; }
.cwl-war-panel-updated.is-stale { color: #a52e24; font-weight: 750; }
.cwl-missing-attacks { display: inline-flex; margin-top: 5px; padding: 4px 8px; border-radius: 999px; font-size: .8rem; font-weight: 750; }
.cwl-missing-attacks.is-urgent { color: #854239; background: #f9e9e6; }
.cwl-missing-attacks.is-complete { color: #155d3c; background: #e6f4eb; }
.cwl-rotation-warning { display: inline-flex; margin-top: 5px; padding: 4px 8px; border-radius: 999px; color: #854239; background: #f9e9e6; font-size: .8rem; font-weight: 750; }
.cwl-monitoring-war-panel > .field-hint { margin: 0 0 12px; }
.cwl-monitoring-war-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 9px; }
.cwl-monitoring-war-card { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.cwl-monitoring-war-card .cwl-war-status { max-width: 100%; }
.cwl-reminder-card label:not(.check-setting) { display: grid; gap: 6px; margin: 0; }
.cwl-reminder-card input[type="number"] { max-width: 220px; }
.cwl-reminder-card textarea { width: 100%; padding: 10px; color: var(--ink); background: #fbfcfb; border: 1px solid #d4ddd6; border-radius: 10px; font: inherit; }
.cwl-manager-checks { display: grid; gap: 7px; }
.cwl-manager-checks .check-setting { font-size: 12px; }
.clan-management-page > .workspace-heading { gap: 12px; }
.clan-catalog-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.clan-catalog-list { display: grid; gap: 12px; padding-top: 18px; }
.catalog-card { padding: 17px 18px; border: 1px solid var(--line); border-radius: 14px; }
.catalog-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.catalog-card h3 { margin: 0; font-size: 15px; }
.catalog-source { color: var(--muted); font-size: 11px; white-space: nowrap; }
.source-fields { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 12px; color: var(--muted); font-size: 12px; }
.catalog-api-fields { display: grid; gap: 9px; margin-top: 13px; padding: 12px 13px; background: #f8faf8; border-radius: 10px; font-size: 12px; }
.catalog-api-fields > strong { color: var(--green-dark); }
.api-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px 14px; color: var(--muted); }
.api-stat-grid span { display: grid; gap: 3px; }
.api-stat-grid b { color: var(--ink); font-size: 13px; }
.error-text { color: #b33932; }
.catalog-settings { margin-top: 14px; border-top: 1px solid var(--line); }
.catalog-settings summary { padding-top: 13px; color: var(--green); cursor: pointer; font-size: 13px; font-weight: 720; }
.catalog-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 10px 16px; padding-top: 14px; }
.catalog-controls label { margin: 0; }
.catalog-controls select,.manager-form select { width: 100%; height: 40px; margin-top: 6px; }
.searchable-select { position: relative; display: block; width: 100%; min-width: 0; }
.searchable-select-input { width: 100%; height: 40px; padding: 0 10px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; font: inherit; }
.searchable-select-input:disabled { opacity: .65; cursor: wait; }
.searchable-select-options { position: absolute; z-index: 50; top: calc(100% + 4px); left: 0; width: max(100%, 220px); max-height: 240px; overflow: auto; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 26px #10251a24; }
.searchable-select-options[hidden] { display: none; }
.searchable-select-options button { display: block; width: 100%; padding: 8px 10px; color: var(--ink); background: transparent; border: 0; border-radius: 7px; text-align: left; font: inherit; font-size: 12px; }
.searchable-select-options button:hover,.searchable-select-options button:focus-visible { background: #edf5ef; }
.searchable-select-options .field-hint { display: block; padding: 8px; }
.notification-queue-actions { justify-content: center; padding-top: 12px; }
.notification-queue-message { min-width: 180px; margin-top: 5px; }
.notification-queue-message summary { color: var(--green); cursor: pointer; font-size: 11px; font-weight: 650; }
.notification-queue-message > div { max-width: 420px; padding: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.notification-queue-deliveries { min-width: 180px; margin: 0; padding-left: 18px; }
.notification-queue-deliveries li { padding: 3px 0; }
.notification-queue-deliveries small { display: block; max-width: 260px; color: var(--muted); overflow-wrap: anywhere; }
.searchable-select-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.catalog-controls .check-setting { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 550; }
.catalog-controls .check-setting input { flex: 0 0 17px; width: 17px; height: 17px; margin: 0; accent-color: var(--green); }
.manager-section { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.manager-section h4 { margin: 0 0 8px; font-size: 13px; }
.manager-list { display: grid; gap: 6px; padding: 0; list-style: none; }
.manager-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; background: #f8faf8; border-radius: 9px; font-size: 12px; }
.manager-form { display: grid; grid-template-columns: 1.6fr 1fr .8fr auto; gap: 8px; margin-top: 12px; }
.manager-form input,.manager-form select { width: 100%; height: 40px; padding: 0 9px; font-size: 12px; }
.manager-form select { margin: 0; }
.manager-form .searchable-select-input { font-size: 12px; }
.manager-player-picker { position: relative; min-width: 0; }
.manager-player-results { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; width: max(100%, 250px); max-height: 220px; overflow: auto; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 26px #10251a24; }
.manager-player-results[hidden] { display: none; }
.manager-player-results button { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 10px; color: var(--ink); background: transparent; border: 0; border-radius: 7px; text-align: left; font-size: 12px; }
.manager-player-results button:hover,.manager-player-results button:focus-visible { background: #edf5ef; }
.manager-player-results button span { color: var(--muted); white-space: nowrap; }
.manager-player-results .field-hint { display: block; padding: 8px; }
.manager-form .secondary-button { white-space: nowrap; }
.roster-override-field { display: flex; align-items: center; gap: 6px; min-width: 190px; }
.roster-override-field .searchable-select { flex: 1 1 auto; }
.roster-override-reset { flex: 0 0 auto; padding: 7px 8px; color: var(--green-dark); background: #edf5ef; border: 0; border-radius: 8px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.roster-override-reset:hover { background: #dcebe0; }
.workspace-heading .eyebrow { margin-bottom: 5px; }
.roster-api-refresh-controls,.player-api-refresh-controls { margin: 12px 0; padding: 12px; background: #f8faf8; border: 1px solid var(--line); border-radius: 12px; }
.roster-api-refresh-controls p,.player-api-refresh-controls p { margin: 8px 0 0; }
.page-title-line { display: flex; align-items: center; gap: 9px; }
.page-title-line h2,.page-title-line h3 { margin: 0; }
.help-trigger { display: inline-grid; flex: 0 0 38px; width: 38px; min-width: 38px; height: 38px; place-items: center; padding: 0; color: var(--green); background: #edf4ee; border: 1px solid #d5e4d8; border-radius: 50%; font-size: 16px; font-weight: 800; line-height: 1; cursor: pointer; vertical-align: middle; }
.help-trigger:hover,.help-trigger:focus-visible { color: #fff; background: var(--green); outline: 2px solid #a8c9b2; outline-offset: 2px; }
.check-setting .help-trigger { flex: 0 0 30px; width: 30px; min-width: 30px; height: 30px; margin-left: 2px; font-size: 13px; }
.catalog-settings summary .help-trigger,.catalog-table-managers summary .help-trigger { display: inline-grid; margin-left: 5px; }
.context-help-dialog { width: min(460px, calc(100vw - 28px)); max-width: none; max-height: min(80vh, 640px); overflow: auto; padding: 20px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 70px #10251a35; }
.context-help-dialog::backdrop { background: #10282075; }
.context-help-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.context-help-head h2 { margin: 4px 0; font-size: 20px; }
.context-help-dialog > p { margin: 15px 0; color: var(--muted); font-size: 15px; line-height: 1.55; white-space: pre-line; }
.context-help-dialog > button { min-height: 42px; }
.pwa-instructions-content { display: grid; gap: 18px; margin-top: 20px; }
.instruction-group { display: grid; gap: 8px; }
.instruction-group h3 { margin: 0; color: var(--green-dark); font-size: 16px; }
.instruction-card { border: 1px solid var(--line); border-radius: 12px; background: #fbfcfb; }
.instruction-card summary { display: grid; gap: 4px; padding: 13px 15px; color: var(--green-dark); cursor: pointer; list-style-position: inside; }
.instruction-card summary strong { font-size: 14px; }
.instruction-card summary span { padding-left: 21px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.instruction-card > p { margin: 0; padding: 0 15px 13px 36px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.instruction-card > .instruction-note { color: var(--ink); }
.instruction-card > .scoring-explanation { white-space: pre-line; }
.scoring-example-table-wrap { max-width: 100%; margin: 0 15px 10px 36px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.scoring-example-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 12px; }
.scoring-example-table th,.scoring-example-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.scoring-example-table th { color: var(--green-dark); background: #f5f8f5; white-space: nowrap; }
.scoring-example-table td:last-child,.scoring-example-table th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.instruction-card > .scoring-example-status { padding-bottom: 11px; font-size: 11px; }
h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.workspace-badge { padding: 7px 10px; color: #926c28; background: #fbf3e1; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.add-clan-form { padding: 22px 0 18px; }
label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.input-row { display: flex; gap: 10px; }
.identity-add-hint { margin: 0 0 8px; }
.identity-add-row { display: grid; grid-template-columns: minmax(190px, 220px) minmax(300px, 1fr) auto; align-items: stretch; gap: 10px; }
.identity-add-row select { width: 100%; max-width: none; background-color: #fff; cursor: pointer; }
.identity-add-row input { width: 100%; min-width: 0; height: 52px; background-color: #fff; }
.identity-add-row button { white-space: nowrap; }
input, select { flex: 1; min-width: 0; height: 48px; padding: 0 14px; color: var(--ink); background: #fbfcfb; border: 1px solid #d4ddd6; border-radius: 10px; outline: none; font: inherit; }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px #1d6a451a; }
button { cursor: pointer; border: 0; font: inherit; }
.input-row button,.refresh-button,.view-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; color: #fff; background: var(--green); border-radius: 10px; font-size: 13px; font-weight: 720; }
.secondary-button { padding: 8px 12px; color: var(--green); background: #edf4ee; border-radius: 9px; font-size: 12px; font-weight: 700; }
.secondary-button.sheet-import-disabled { opacity: .58; cursor: not-allowed; }
.sheet-import-disabled-message { color: #9c3d32; font-weight: 650; }
.lus-details { padding: 8px 4px; }
.lus-details summary { color: var(--green); cursor: pointer; font-weight: 700; }
.lus-details dl { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr; gap: 5px 14px; margin: 14px 0 4px; font-size: 12px; }
.lus-details dt { color: var(--muted); }
.lus-details dd { margin: 0; overflow-wrap: anywhere; }
.login-panel { max-width: 650px; margin: 0 auto; }
.login-panel h2 { margin-bottom: 10px; }
.login-panel form { margin-top: 18px; }
.login-panel input:not([type="radio"]) { display: block; width: 100%; }
.login-panel form > button[type="submit"],#otp-request-button,#auth-set-password-form button { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; margin-top: 14px; padding: 10px 16px; color: #fff; background: var(--green); border-radius: 10px; font-size: 15px; font-weight: 750; }
.login-panel form > button[type="submit"]:hover,#otp-request-button:hover,#auth-set-password-form button:hover { background: #155638; }
.login-panel form button:disabled,#otp-request-button:disabled { opacity: .65; cursor: wait; }
.auth-link-row { margin: 13px 0 0; font-size: 13px; }
.text-link { padding: 0; color: var(--green); background: transparent; font: inherit; font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.auth-back-button { margin-bottom: 16px; }
.auth-approval-note { margin-top: 18px; padding: 12px; background: #f5f8f5; border-radius: 10px; line-height: 1.5; }
.auth-otp-steps { display: flex; gap: 7px; margin: 17px 0; }
.auth-otp-steps span { height: 5px; flex: 1; background: #e1e9e3; border-radius: 9px; }
.auth-otp-steps span.active { background: var(--green); }
.login-channel-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.login-channel-control { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.login-channel-option { position: relative; display: block; min-width: 0; margin: 0; cursor: pointer; }
.login-channel-option input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.login-channel-option span { box-sizing: border-box; display: grid; min-height: 48px; padding: 8px 10px; place-items: center; color: var(--green); background: #edf4ee; border: 1px solid #d5e4d8; border-radius: 10px; font-size: 13px; font-weight: 720; text-align: center; -webkit-tap-highlight-color: transparent; }
.login-channel-option input:checked + span { color: #fff; background: var(--green); border-color: var(--green); }
.login-channel-option input:focus-visible + span { outline: 2px solid #a8c9b2; outline-offset: 2px; }
.invite-form { padding: 19px 0; border-top: 1px solid var(--line); }
.input-row button:hover,.refresh-button:hover,.view-button:hover { background: #155638; }
.input-row button span { font-size: 20px; line-height: 0; font-weight: 400; }
.field-hint { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.status { min-height: 21px; color: var(--muted); font-size: 13px; }
.status.error { color: #b33932; }
.status.success { color: var(--green); }
.clan-list { display: grid; gap: 12px; }
.empty { padding: 23px 18px; color: var(--muted); background: #f8faf8; border: 1px dashed #d7e1d9; border-radius: 12px; text-align: center; font-size: 13px; }
.clan-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.clan-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 18px; }
.clan-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.clan-emblem { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; color: var(--green); background: var(--mint); border-radius: 12px; font-size: 17px; }
.clan-name { overflow: hidden; margin: 0; font-size: 15px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.clan-meta { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.clan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.member-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.refresh-button,.view-button { min-height: 38px; padding: 0 12px; font-size: 12px; }
.member-table-wrap { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; max-height: 70vh; overflow: auto; overscroll-behavior: contain; position: relative; border-top: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: #9aa9a0 #edf1ed; }
.member-table-wrap::-webkit-scrollbar { width: 11px; height: 11px; }
.member-table-wrap::-webkit-scrollbar-track { background: #edf1ed; }
.member-table-wrap::-webkit-scrollbar-thumb { background: #9aa9a0; border: 2px solid #edf1ed; border-radius: 10px; }
.member-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.member-table th,.member-table td { padding: 9px 10px; text-align: left; border-bottom: 1px solid #eef1ee; }
.member-table [hidden] { display: none !important; }
.member-table th { color: var(--muted); background: #fbfcfb; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.member-table thead tr:first-child th { position: sticky; top: 0; z-index: 4; height: 40px; box-sizing: border-box; background: #fbfcfb; }
.member-table thead tr.filter-row th { position: sticky; top: 40px; z-index: 4; background: #fff; }
.generic-filter-row th { min-width: 90px; padding-top: 4px; }
.generic-filter-row .column-filter { box-sizing: border-box; width: 100%; min-width: 72px; height: 32px; padding: 0 6px; font-size: 11px; }
.generic-sort-button { padding: 0; color: inherit; background: transparent; font: inherit; letter-spacing: inherit; text-align: left; text-transform: inherit; white-space: nowrap; }
.generic-sort-button:hover { color: var(--green); }
.table-filter-toolbar { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; color: var(--muted); background: #f8faf8; border-bottom: 1px solid var(--line); font-size: 11px; }
.table-filter-toolbar label { display: inline-flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; }
.table-filter-toolbar select { min-height: 32px; padding: 3px 8px; font-size: 11px; }
.table-filter-toolbar button { flex: 0 0 auto; min-height: 30px; padding: 4px 9px; font-size: 11px; }
.member-table thead th:first-child { left: 0; z-index: 6; }
.member-table thead tr:first-child th:first-child,.member-table thead tr.filter-row th:first-child { z-index: 7; }
.member-table tbody td:first-child { position: sticky; left: 0; z-index: 2; background: #fff; box-shadow: 1px 0 0 #eef1ee; }
.member-table td.low-reliability-cell { position: relative; background: #fff1d5 !important; box-shadow: inset 0 0 0 1px #d9a33b; cursor: pointer; }
.member-table td.low-reliability-cell:focus-visible { outline: 2px solid #9a6700; outline-offset: -2px; }
.reliability-info-dialog { width: min(440px, 92vw); max-width: none; padding: 20px; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 70px #10251a35; }
.reliability-info-dialog::backdrop { background: #10251a70; }
.reliability-info-dialog .war-history-dialog-head { margin-bottom: 12px; }
.reliability-info-dialog p:last-child { margin-bottom: 0; line-height: 1.5; }
.managed-roster-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 10px; }
.managed-roster-table th { min-width: 96px; vertical-align: top; }
.managed-roster-table th:first-child,.managed-roster-table td:first-child { min-width: 145px; }
.managed-roster-table th[data-roster-column="recommended_league"],
.managed-roster-table td[data-roster-column="recommended_league"] { box-sizing: border-box; width: 82px !important; min-width: 82px !important; max-width: 82px !important; padding-right: 3px !important; padding-left: 3px !important; }
.managed-roster-table .roster-override-field { box-sizing: border-box; display: flex; width: 100%; min-width: 0 !important; max-width: 100%; gap: 2px; flex-wrap: nowrap; }
.managed-roster-table .roster-override-field .roster-edit-select { box-sizing: border-box; flex: 1 1 0; width: 1px; min-width: 0 !important; max-width: 100%; padding: 0 2px; font-size: 10px; }
.managed-roster-table .roster-override-field .roster-override-reset { flex: 0 0 auto; min-width: 22px; padding: 2px 3px; font-size: 9px; }
.managed-roster-table th[data-roster-column="cwl_registration"],
.managed-roster-table td[data-roster-column="cwl_registration"] { box-sizing: border-box; width: 52px !important; min-width: 52px !important; max-width: 52px !important; padding-right: 3px !important; padding-left: 3px !important; }
.managed-roster-table th[data-roster-column="cwl_registration"] .column-filter { min-width: 0; padding-right: 2px; padding-left: 2px; }
.managed-roster-table .sort-button { padding: 0; color: inherit; background: transparent; font-size: inherit; font-weight: 750; letter-spacing: inherit; text-align: left; text-transform: inherit; white-space: nowrap; }
.managed-roster-table .sort-button:hover { color: var(--green); }
.managed-roster-table .filter-row th { padding-top: 4px; background: #fff; }
.managed-roster-table .column-filter { box-sizing: border-box; width: 100%; min-width: 76px; height: 32px; padding: 0 6px; font-size: 11px; }
.roster-cycle-control { display: block; max-width: 320px; margin-top: 8px; }
.roster-edit-cell { min-width: 190px; }
.roster-edit-select { width: 100%; min-width: 175px; height: 36px; padding: 0 9px; font-size: 11px; }
.member-table tr:last-child td { border-bottom: 0; }
.cwl-registrations-table { min-width: max-content; }
.cwl-registrations-table th { min-width: 96px; vertical-align: top; }
.cwl-registrations-table th:first-child,.cwl-registrations-table td:first-child { position: sticky; left: 0; z-index: 2; min-width: 150px; background: #fff; box-shadow: 1px 0 0 #eef1ee; }
.cwl-registrations-table thead tr:first-child th:first-child,.cwl-registrations-table thead tr.filter-row th:first-child { z-index: 7; background: #fbfcfb; }
.cwl-registrations-table .sort-button { padding: 0; color: inherit; background: transparent; font-size: inherit; font-weight: 750; letter-spacing: inherit; text-align: left; text-transform: inherit; white-space: nowrap; }
.cwl-registrations-table .column-filter { box-sizing: border-box; width: 100%; min-width: 76px; height: 32px; padding: 0 6px; font-size: 11px; }
.perennial-registration-row td { background: #f2f8f3; }
.perennial-registration-row td:first-child { background: #f2f8f3; }
.clan-catalog-table,.cwl-assignment-table { min-width: max-content; }
.clan-catalog-table-wrap { max-height: 70vh; overflow: auto; position: relative; }
.clan-catalog-table { border-collapse: separate; border-spacing: 0; }
.clan-catalog-table th,.cwl-assignment-table th { min-width: 96px; vertical-align: top; }
.clan-catalog-table th:first-child { min-width: 145px; }
.cwl-assignment-table th:first-child,.cwl-assignment-table td:first-child { box-sizing: border-box; width: 36px; min-width: 36px; max-width: 36px; padding-left: 5px; padding-right: 5px; }
.clan-catalog-table thead tr:first-child th:first-child,.clan-catalog-table tbody td:first-child { min-width: 145px; }
.clan-catalog-table .sort-button,.cwl-assignment-table .sort-button { padding: 0; color: inherit; background: transparent; font-size: inherit; font-weight: 750; letter-spacing: inherit; text-align: left; text-transform: inherit; white-space: nowrap; }
.clan-catalog-table .sort-button:hover,.cwl-assignment-table .sort-button:hover { color: var(--green); }
.clan-catalog-table .filter-row th,.cwl-assignment-table .filter-row th { padding-top: 4px; background: #fff; }
.clan-catalog-table .column-filter,.cwl-assignment-table .column-filter { box-sizing: border-box; width: 100%; min-width: 76px; height: 32px; padding: 0 6px; font-size: 11px; }
.bulk-flag-button { margin-top: 5px; padding: 5px 8px; color: var(--green); background: var(--mint); font-size: 10px; font-weight: 700; white-space: nowrap; }
.clan-catalog-table select { min-width: 145px; }
.table-flag { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.table-flag input { accent-color: var(--green); }
.catalog-table-managers { min-width: 210px; }
.catalog-table-managers summary { cursor: pointer; color: var(--green); font-weight: 700; }
.catalog-table-managers .manager-form { min-width: 510px; }
.catalog-table-managers .manager-list { min-width: 280px; }
.clan-catalog-table tbody tr[hidden],.cwl-assignment-table tbody tr[hidden] { display: none; }
.tag { color: #637168; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.notice { display: flex; align-items: flex-start; gap: 11px; margin-top: 18px; padding: 14px 16px; color: #53645a; background: #edf4ee; border-radius: 12px; }
.notice-icon { display: grid; flex: 0 0 19px; width: 19px; height: 19px; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: 12px; font-weight: 800; }
.notice p { margin: 0; font-size: 12px; line-height: 1.55; }
.footer-note { margin: 18px 0 0; color: #87928a; font-size: 11px; text-align: center; }
.loading { opacity: .65; pointer-events: none; }
@media (max-width: 600px) {
  .topbar { height: 60px; padding: 0 12px; }
  .top-actions { gap: 6px; }
  .brand { gap: 8px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-name { font-size: 12px; letter-spacing: .08em; }
  .environment { gap: 6px; padding: 6px 7px; font-size: 10px; }
  .page-shell { padding: 36px 15px; }
  .intro { min-height: 180px; }
  .shield { width: 76px; height: 76px; margin-right: 2px; padding: 3px; }
  .intro-copy { max-width: 310px; font-size: 14px; }
  .workspace-card { padding: 20px 16px; border-radius: 16px; }
  .help-trigger { flex-basis: 42px; width: 42px; min-width: 42px; height: 42px; }
  .check-setting .help-trigger { flex-basis: 36px; width: 36px; min-width: 36px; height: 36px; }
  .page-title-line { align-items: center; }
  .context-help-dialog { padding: 16px; border-radius: 14px; }
  .input-row { flex-direction: column; }
  .input-row button { width: 100%; }
  .identity-add-row { grid-template-columns: minmax(0, 1fr); }
  .identity-add-row select,.identity-add-row input { width: 100%; min-width: 0; }
  .clan-top { align-items: flex-start; flex-direction: column; }
  .clan-actions { width: 100%; justify-content: space-between; }
  .member-table th,.member-table td { padding: 10px; }
  .table-filter-toolbar { align-items:flex-start; flex-direction:column; }
  .workspace-nav-primary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-nav-primary > button { min-height: 48px; }
  .workspace-nav-more > summary { min-height: 44px; }
  .workspace-nav-more-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-nav-more-list > button { min-height: 46px; }
  .clan-management-page > .workspace-heading { align-items: flex-start; flex-direction: column; }
  .clan-catalog-actions { justify-content: flex-start; }
  .catalog-controls { grid-template-columns: 1fr; }
  .manager-form { grid-template-columns: 1fr; }
  .manager-list li { align-items: flex-start; }
}
.cwl-snapshots { margin: 1.5rem 0; }
.cwl-import-row { margin: 1rem 0; }
.cwl-import-row .field-hint { margin-top: 0.4rem; }
.cwl-snapshot-list { display: grid; gap: 0.75rem; }
.cwl-snapshot-card { border: 1px solid var(--line, #dce5df); border-radius: 12px; padding: 1rem; }
.cwl-snapshot-card h4, .cwl-snapshot-card p { margin: 0 0 0.5rem; }
.cwl-snapshot-card .field-hint { margin-bottom: 0; }
.cwl-registration-admin { display:flex; align-items:center; gap:12px; margin:12px 0; padding:12px; border:1px solid var(--line); border-radius:10px; background:#fbfcfb; }
.cwl-registration-status { display:inline-flex; min-width:32px; justify-content:center; padding:3px 8px; border-radius:999px; background:#edf5ef; color:var(--green-dark); font-weight:800; }
.cwl-assignment-error { background:#fff0ef !important; box-shadow:inset 0 0 0 1px #c9362b; }
.cwl-assignment-error select { border-color:#c9362b; background:#fff7f6; }
.cwl-assignment-warning { background:#fff5e5 !important; box-shadow:inset 0 0 0 1px #cc7b12; }
.cwl-assignment-warning select { border-color:#cc7b12; background:#fffaf1; }
.cwl-position-ok { background:#e9f5ee !important; color:#176640; font-weight:700; }
.cwl-position-move { background:#fff0ef !important; color:#b52f26; font-weight:700; }
.cwl-position-unknown { background:#fff5e5 !important; color:#8d5d12; }
.cwl-list-clan-ready { border-color:#24734f !important; background:#f0f8f3; box-shadow:inset 0 0 0 1px #24734f; }
.cwl-list-clan-ready .workspace-heading { border-bottom-color:#b8d9c5; }
.cwl-list-clan-ready .workspace-heading h3 { color:#176640; }
.cwl-list-clan-not-ready { border-color:#c9362b !important; background:#fff8f7; box-shadow:inset 0 0 0 1px #c9362b; }
.cwl-list-clan-not-ready .workspace-heading { border-bottom-color:#efc5c1; }
.cwl-list-clan-not-ready .workspace-heading h3 { color:#b52f26; }
.cwl-clan-responsible-line,.cwl-clan-position-summary { margin:.3rem 0 0; color:#66736c; font-size:.92rem; }
.cwl-api-updated-at { display:block; margin:.25rem 0 0; color:#66736c; font-size:.78rem; font-weight:500; }
.cwl-list-clan-ready .cwl-clan-position-summary { color:#176640; font-weight:700; }
.cwl-clan-player-count { display:grid; gap:1px; max-width:13rem; white-space:normal; text-align:center; align-self:flex-start; padding:.45rem .7rem; border-radius:999px; background:#edf4ef; }
.cwl-clan-player-count small { color:var(--muted); font-size:.78em; font-weight:600; }
.cwl-player-moved td { background:#edf8f0 !important; }
.cwl-player-moved td:first-child { box-shadow:inset 3px 0 #258553; }
.cwl-player-to-move td { background:#fff0ef !important; }
.cwl-player-to-move td:first-child { box-shadow:inset 3px 0 #c9362b; }
.cwl-player-position-unknown td { background:#fff7e8 !important; }
.cwl-position-ok { background:#e9f5ee !important; color:#176640; font-weight:700; }
.cwl-position-move { background:#fff0ef !important; color:#b52f26; font-weight:700; }
.cwl-position-unknown { background:#fff5e5 !important; color:#8d5d12; }
.cwl-assignment-legend { display:flex; flex-wrap:wrap; gap:6px 18px; }
.legend-error { color:#a52822; font-weight:700; }
.legend-warning { color:#925500; font-weight:700; }
.anagrafica-link-form { align-items:end; margin:16px 0; }
.anagrafica-link-form label { display:grid; gap:5px; margin:0; }
.anagrafica-link-form .inline-confirm { display:flex; align-items:center; gap:8px; white-space:nowrap; }
.anagrafica-link-form .inline-confirm input { flex:0 0 auto; width:18px; height:18px; }
#player-profile-admin-form { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); align-items:end; gap:12px; margin-top:14px; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--mint); }
#player-profile-admin-form label { display:grid; gap:5px; margin:0; }
#player-profile-admin-form .wide-field { grid-column:1 / -1; }
#player-profile-admin-form .profile-editor-actions { grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; }
#player-profile-admin-form .profile-editor-actions button { width:auto; }
.account-contact { display:flex; align-items:center; gap:8px; margin:3px 0; }
.account-contact small { color:var(--muted); }
.account-secondary-label { display:block; margin-top:3px; color:var(--muted); }
.anagrafica-table { min-width:1200px; }
.anagrafica-table th { position:sticky; top:0; z-index:3; background:#fbfcfb; }
.linked-account { display:inline-block; margin:2px 6px 2px 0; }
.player-data-content,.player-cwl-registration-list { display:grid; gap:14px; margin-top:16px; }
.player-data-card,.player-cwl-form { padding:16px; border:1px solid var(--line); border-radius:12px; background:#fbfcfb; }
.player-data-card.notification-unread { border-inline-start:4px solid var(--green); background:#f2f8f4; }
.notification-body { white-space:pre-line; }
.player-data-card h3,.player-cwl-form h3 { margin:0 0 6px; }
.player-identity-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; margin:14px 0; }
.player-identity-fields label { display:grid; gap:6px; margin:0; font-weight:700; }
.player-identity-fields input { width:100%; min-width:0; min-height:46px; padding:9px 12px; }
.player-identity-actions { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.player-identity-actions button { min-height:40px; }
.player-reminder-channels { display:grid; gap:8px; margin:18px 0 0; padding:14px; border:1px solid var(--line); border-radius:10px; }
.player-reminder-channels legend { padding:0 6px; font-weight:750; }
.player-reminder-channels p { margin:0; }
#player-reminder-channel-options { display:flex; flex-wrap:wrap; gap:8px 18px; }
.player-reminder-channels .check-setting { display:inline-flex; align-items:center; gap:7px; margin:0; }
.player-push-controls { display:grid; gap:8px; margin:12px 0; }
.player-push-controls .input-row { display:flex; flex-wrap:wrap; gap:8px; }
.player-accounts-table { min-width:max-content; }
.player-accounts-table th:first-child,.player-accounts-table td:first-child { min-width:135px; max-width:200px; }
.player-accounts-table td { vertical-align:top; }
.player-accounts-table td:nth-child(3) { min-width:150px; max-width:220px; white-space:normal; overflow-wrap:anywhere; }
.player-accounts-table th:nth-child(4),.player-accounts-table td:nth-child(4),.player-accounts-table th:nth-child(5),.player-accounts-table td:nth-child(5),.player-accounts-table th:nth-child(7),.player-accounts-table td:nth-child(7) { min-width:58px; text-align:center; }
.player-accounts-table td:nth-child(5) { white-space:normal; }
.player-accounts-table td:nth-child(6) { min-width:150px; max-width:260px; white-space:normal; overflow-wrap:anywhere; }
.member-table.player-accounts-table th:nth-child(4),
.member-table.player-accounts-table td:nth-child(4) {
  box-sizing: border-box;
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  padding-right: 5px;
  padding-left: 5px;
  text-align: center;
}
.member-table.player-accounts-table th:nth-child(5),
.member-table.player-accounts-table td:nth-child(5) {
  box-sizing: border-box;
  width: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
  padding-right: 5px;
  padding-left: 5px;
  text-align: center;
  white-space: nowrap;
}
.player-cwl-form { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); align-items:end; gap:12px; }
.player-cwl-form label { display:grid; gap:5px; margin:0; }
.player-cwl-form textarea { min-height:96px; resize:vertical; }
.player-cwl-form .wide-field { grid-column:1 / -1; }
.player-cwl-form button { align-self:end; }
.player-cwl-form button { min-height:40px; }
.player-cwl-friend { margin:18px 0; padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:#fbfcfb; }
.player-cwl-friend summary { color:var(--green-dark); font-weight:800; cursor:pointer; }
.player-cwl-friend > .field-hint { margin:10px 0 14px; }
.cwl-lists-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0; }
.cwl-lists-summary > div { display: grid; gap: 3px; padding: 12px 14px; background: #edf5ef; border-radius: 10px; }
.cwl-monitoring-toolbar { display: grid; grid-template-columns: auto minmax(180px, 1fr) auto; align-items: end; gap: 10px; margin: 12px 0; }
.cwl-monitoring-toolbar label { margin: 0; }
.cwl-monitoring-clan-tables { display: grid; min-width: 0; gap: 14px; }
.cwl-monitoring-clan > .workspace-heading { align-items: center; margin-bottom: 10px; }
.cwl-monitoring-clan h3 { margin: 0; font-size: 17px; }
.cwl-monitoring-active-war { display: block; }
.cwl-monitoring-clan .member-table-wrap { max-height: 55vh; }
.cwl-monitoring-table { min-width: max-content; }
.cwl-monitoring-table th { min-width: 100px; }
.cwl-monitoring-table th:first-child,.cwl-monitoring-table td:first-child { position: sticky; left: 0; z-index: 2; min-width: 5.2rem; background: #fff; box-shadow: 1px 0 0 #eef1ee; }
.member-table.cwl-monitoring-table td:first-child strong,.member-table.cwl-monitoring-table td:first-child .tag { overflow-wrap: anywhere; }
.member-table.cwl-monitoring-table th:nth-child(2),.member-table.cwl-monitoring-table td:nth-child(2) { min-width: 4.55rem !important; max-width: 5.85rem; white-space: normal; overflow-wrap: anywhere; }
.cwl-monitoring-table thead th:first-child { z-index: 7; background: #fbfcfb; }
.cwl-monitoring-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.cwl-monitoring-cell { min-width: 100px; vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.cwl-monitoring-cell > strong,.cwl-monitoring-cell > small { display: block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.cwl-monitoring-team { background: #e9f5ee !important; color: #176640; }
.cwl-monitoring-bench { background: #fff5e5 !important; color: #8d5d12; }
.cwl-monitoring-unknown { background: #f0f2f0 !important; color: #59645d; }
.cwl-monitoring-toolbar .secondary-button { justify-self: start; }
@media (max-width: 700px) {
  .cwl-monitoring-toolbar { grid-template-columns: auto minmax(0, 1fr); }
  .cwl-monitoring-toolbar .secondary-button { grid-column: 1 / -1; max-width: 100%; white-space: normal; text-align: left; }
}
.cwl-lists-summary strong { color: var(--green-dark); font-size: 20px; }
.cwl-lists-summary span { color: var(--muted); font-size: 12px; }
.cwl-monitoring-summary-line { margin: 8px 0 16px; padding: 10px 14px; border-radius: 10px; background: #edf5ef; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.cwl-monitoring-summary-line strong { color: var(--green-dark); }
.cwl-lists-content { display: grid; min-width: 0; gap: 14px; }
.cwl-list-clan { box-sizing: border-box; min-width: 0; max-width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.cwl-list-clan > .workspace-heading { align-items: center; margin-bottom: 10px; }
.cwl-list-clan h3 { margin: 0; font-size: 17px; }
.cwl-list-clan [data-cwl-war-status] { display: block; }
.cwl-list-clan .member-table-wrap { max-height: 55vh; }
.cwl-report-content { display: grid; min-width: 0; gap: 14px; }
.cwl-report-clan > .workspace-heading { align-items: center; gap: 12px; }
.cwl-report-progress { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }
.cwl-report-state { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; font-size: .78rem; font-weight: 750; }
.cwl-report-state.is-final { color: #155d3c; background: #e6f4eb; }
.cwl-report-state.is-provisional { color: #805c12; background: #fff3d4; }
.cwl-report-intro { margin: 0 0 10px; }
.cwl-report-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; margin: 8px 0 14px; }
.cwl-report-highlights section { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8faf8; }
.cwl-report-highlights h4 { margin: 0 0 6px; color: var(--green-dark); font-size: .95rem; }
.cwl-report-highlights ul { margin: 0; padding-left: 20px; color: var(--muted); }
.cwl-report-highlights li + li { margin-top: 4px; }
.cwl-report-table { min-width: 620px; }
.cwl-report-cycle-note { margin: 0 0 14px; }
.cwl-list-table th { min-width: 92px; }
.cwl-list-table th:first-child,.cwl-list-table td:first-child { box-sizing: border-box; width: 6.3rem; min-width: 6.3rem; max-width: 8.4rem; padding-right: 7px; padding-left: 7px; }
.cwl-list-table td:first-child { text-align: left; }
.cwl-list-table td:first-child .player-detail-link { max-width: 100%; overflow-wrap: anywhere; }
.cwl-list-table th:nth-child(2),.cwl-list-table td:nth-child(2) { min-width: 7rem; max-width: 9rem; white-space: normal; }
.cwl-list-table .sort-button { padding: 0; color: inherit; background: transparent; font-size: inherit; font-weight: 750; letter-spacing: inherit; text-align: left; text-transform: inherit; white-space: nowrap; }
.cwl-list-table .sort-button:hover { color: var(--green); }
.cwl-list-table .filter-row th { padding-top: 4px; background: #fff; }
.cwl-list-table .column-filter { box-sizing: border-box; width: 100%; min-width: 76px; height: 32px; padding: 0 6px; font-size: 11px; }
.cwl-list-table .filter-row th:first-child .column-filter { min-width: 0; padding-right: 3px; padding-left: 3px; }
.member-table.cwl-list-table { min-width: 0; table-layout: auto; }
.cwl-list-table th:first-child,.cwl-list-table td:first-child { position: sticky; left: 0; z-index: 2; width: 6.3rem; min-width: 6.3rem; max-width: 8.4rem; background: #fff; box-shadow: 1px 0 0 #eef1ee; }
.cwl-list-table thead tr:first-child th:first-child,.cwl-list-table thead tr.filter-row th:first-child { z-index: 7; background: #fbfcfb; }
.cwl-assignment-table th:nth-child(2),.cwl-assignment-table td:nth-child(2) { position: sticky; left: 36px; z-index: 2; min-width: 150px; max-width: 180px; background: #fff; box-shadow: 1px 0 0 #eef1ee; }
.cwl-assignment-table thead tr:first-child th:nth-child(2),.cwl-assignment-table thead tr.filter-row th:nth-child(2) { z-index: 7; background: #fbfcfb; }
.table-preference-toolbar { display: flex; align-items: center; min-width: 0; width: 100%; border-bottom: 1px solid var(--line); background: #f8faf8; }
.table-column-picker { box-sizing: border-box; flex: 1 1 auto; width: auto; min-width: 0; max-width: 100%; position: relative; z-index: 8; padding: 9px 12px; border-bottom: 0; background: transparent; }
.table-column-picker summary { cursor: pointer; color: var(--green); font-size: 11px; font-weight: 750; }
.table-score-help { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; padding: 3px 8px; color: var(--muted); background: transparent; }
.table-score-help .help-trigger { flex-basis: 30px; width: 30px; min-width: 30px; height: 30px; font-size: 13px; }
.table-column-options { display: flex; flex-wrap: wrap; min-width: 0; max-width: 100%; gap: 7px 14px; padding-top: 9px; }
.table-column-options label { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; margin: 0; color: var(--ink); font-size: 11px; overflow-wrap: anywhere; }
.table-column-options input { accent-color: var(--green); }
.table-scroll-controls { box-sizing: border-box; width: 100%; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 7px 10px; color: var(--muted); background: #f8faf8; border-bottom: 1px solid var(--line); font-size: 11px; }
.table-scroll-controls[hidden] { display: none !important; }
.table-scroll-controls button { min-width: 34px; min-height: 30px; padding: 0 8px; font-size: 15px; }
.anagrafica-account-table { min-width: max-content; }
.anagrafica-account-table th:first-child,.anagrafica-account-table td:first-child { box-sizing:border-box; width:210px; min-width:150px; max-width:210px; white-space:normal; }
.anagrafica-account-table td:first-child { overflow-wrap:anywhere; }
.anagrafica-account-table-container { min-width:0; max-width:100%; }
.owner-support-banner { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:12px 0; padding:13px 15px; color:#5f2d13; background:#fff1d2; border:2px solid #d88a24; border-radius:12px; }
.owner-support-banner > div:first-child { display:grid; gap:3px; min-width:0; }
.owner-support-banner strong { font-size:14px; }
.owner-support-banner span,.owner-support-banner small { overflow-wrap:anywhere; }
.owner-support-banner small { font-size:11px; }
.owner-support-actions,.workspace-member-actions { display:flex; flex-wrap:wrap; gap:6px; }
.owner-support-history { margin-top:14px; padding-top:12px; border-top:1px solid var(--line); }
.owner-support-history h4 { margin:0 0 5px; }
.owner-support-history td { font-size:11px; }
.owner-support-history td small { display:block; }
@media (max-width:640px) { .owner-support-banner { align-items:flex-start; flex-direction:column; } .owner-support-actions { width:100%; } }
.account-contact { display:flex; flex-wrap:wrap; align-items:center; gap:5px 8px; padding:2px 0; }
.account-contact small { color:var(--muted); font-size:10px; }
.account-contact .secondary-button { min-height:26px; padding:3px 7px; font-size:10px; }
.account-player-tag { display:block; margin:3px 0; white-space:normal; overflow-wrap:anywhere; }
.anagrafica-table th:first-child,.anagrafica-table td:first-child { min-width:140px; }
.war-history-controls { margin: 1.5rem 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfb; }
.war-scoring-settings { margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfb; }
.war-scoring-settings fieldset { margin: 14px 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.war-scoring-settings legend { padding: 0 6px; color: var(--green-dark); font-size: 13px; font-weight: 750; }
.war-scoring-pivot-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 14px; }
.war-scoring-parameter { display: grid; gap: 5px; margin: 0; font-size: 12px; }
.war-scoring-parameter small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }
.war-scoring-parameter input:not([type="checkbox"]) { width: 100%; min-width: 0; height: 38px; }
.war-scoring-parameter input[type="checkbox"] { width: 18px; height: 18px; }
.war-scoring-league-table { min-width: 520px; }
.war-scoring-league-table input { width: 110px; min-width: 110px; height: 34px; }
.war-scoring-settings form > button { margin-top: 6px; }
.war-history-controls h3 { margin: 0 0 6px; font-size: 16px; }
.war-history-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 12px; }
.war-history-actions .check-setting { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.war-history-actions input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--green); }
.player-detail-link { padding: 0; color: var(--green); background: transparent; font: inherit; font-weight: 700; text-align: left; }
.player-detail-link:hover { text-decoration: underline; }
.cwl-list-table .player-family-marker { display: block; color: var(--muted); font-size: .78em; font-weight: 600; }
.war-history-dialog { width: min(1240px, 96vw); max-width: none; max-height: 90vh; padding: 22px; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 70px #10251a35; }
.war-history-dialog::backdrop { background: #10251a70; }
.war-history-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.war-history-dialog-head h2 { margin: 0 0 5px; }
.war-history-dialog-head .eyebrow { margin-bottom: 5px; }
.war-history-dialog-head .tag { margin: 5px 0 0; }
.war-history-filters { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)) auto; align-items: end; gap: 12px; margin-bottom: 8px; }
.war-history-filters label { margin: 0; }
.war-history-filters select,.war-history-filters input { display: block; width: 100%; height: 40px; margin-top: 5px; font-size: 12px; }
.war-history-table-wrap { max-height: 55vh; margin-top: 12px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.war-history-table { min-width: 1000px; }
.war-history-table thead th { position: sticky; top: 0; z-index: 4; background: #fbfcfb; white-space: nowrap; }
.war-history-table tbody td { white-space: nowrap; }
.war-history-table tbody tr:hover td { background: #f5f9f5; }
@media (max-width: 700px) {
  .war-history-dialog { width: 96vw; padding: 16px; }
  .war-history-filters { grid-template-columns: repeat(2, minmax(110px, 1fr)); }
  .war-history-filters button { min-height: 40px; }
  .shared-score-filters select,.shared-score-filters input { width: 100%; }
  .shared-score-filters label { flex: 1 1 42%; }
}

@media (max-width: 600px) {
.cwl-assignment-table th:first-child,.cwl-assignment-table td:first-child { width:36px !important; min-width:36px !important; max-width:36px !important; padding-left:5px; padding-right:5px; }
.cwl-assignment-table th:nth-child(2),.cwl-assignment-table td:nth-child(2) { left:36px; min-width:8rem !important; max-width:10rem; padding-left:7px; padding-right:7px; white-space:normal; overflow-wrap:anywhere; }
}
.notification-archive-dialog {
  width: min(94vw, 760px);
  max-width: 760px;
  max-height: 85dvh;
  overflow: auto;
  border: 1px solid var(--line, #dce5df);
  border-radius: 18px;
  padding: clamp(16px, 4vw, 28px);
  color: inherit;
  background: #fff;
}

/* Let each table column follow its own content; keep only deliberate control widths. */
.member-table {
  width: max-content;
  min-width: max-content;
  table-layout: auto;
}
.member-table.player-accounts-table {
  width: 800px;
  min-width: 800px;
  table-layout: fixed;
}
.player-accounts-table col.player-accounts-player-column { width: 100px; }
.player-accounts-table col.player-accounts-tag-column { width: 82px; }
.player-accounts-table col.player-accounts-clan-column { width: 108px; }
.player-accounts-table col.player-accounts-th-column { width: 46px; }
.player-accounts-table col.player-accounts-trophies-column { width: 60px; }
.player-accounts-table col.player-accounts-cwl-column { width: 110px; }
.player-accounts-table col.player-accounts-attacks-column { width: 60px; }
.player-accounts-table col.player-accounts-score-column { width: 70px; }
.player-accounts-table col.player-accounts-average-column { width: 94px; }
.member-table th,
.member-table td {
  min-width: 0 !important;
  max-width: none;
}
.member-table thead tr:first-child th {
  height: auto !important;
  min-height: 40px;
  vertical-align: top;
}
.member-table .sort-button,
.member-table .generic-sort-button {
  max-width: 12ch;
  white-space: normal !important;
  overflow-wrap: anywhere;
  line-height: 1.2;
}
.member-table .column-filter {
  box-sizing: border-box;
  width: 6ch !important;
  min-width: 0 !important;
  max-width: 100%;
  padding-right: 4px;
  padding-left: 4px;
}
.member-table th.fit-content-column {
  width: 1%;
  white-space: normal;
}
.member-table td.fit-content-column {
  width: 1%;
  white-space: nowrap;
  padding-right: 7px;
  padding-left: 7px;
}
.member-table th.wrap-content-column,
.member-table td.wrap-content-column {
  width: 1%;
  max-width: 13rem;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

/* Intentional minimums: compact selectors and sticky columns that need room to work. */
.member-table .roster-edit-cell { min-width: 7rem !important; }
.member-table .roster-edit-select { min-width: 7rem; }
.member-table.clan-catalog-table select { min-width: 7rem; max-width: 100%; }
.member-table .catalog-table-managers { min-width: 9rem; }
.member-table .catalog-table-managers .manager-form { min-width: 20rem; }
.member-table .catalog-table-managers .manager-list { min-width: 12rem; }
.member-table.cwl-list-table th:first-child,
.member-table.cwl-list-table td:first-child { width: 6.3rem !important; min-width: 6.3rem !important; max-width: 8.4rem !important; }
.member-table.cwl-list-table th:nth-child(2),
.member-table.cwl-list-table td:nth-child(2) { min-width: 7rem !important; max-width: 9rem; }
.member-table.cwl-assignment-table th:first-child,
.member-table.cwl-assignment-table td:first-child { width: 3rem !important; min-width: 3rem !important; max-width: 3rem !important; }
.member-table.cwl-assignment-table th:nth-child(2),
.member-table.cwl-assignment-table td:nth-child(2) { min-width: 6rem !important; max-width: 9rem; }
.member-table.cwl-assignment-table th[data-cwl-column="select"],
.member-table.cwl-assignment-table td:first-child { box-sizing: border-box; width: 36px !important; min-width: 36px !important; max-width: 36px !important; padding-right: 5px !important; padding-left: 5px !important; }
.member-table.cwl-assignment-table th[data-cwl-column="select"],
.member-table.cwl-assignment-table td:first-child { white-space: nowrap; }
.member-table.cwl-assignment-table th[data-cwl-column="name"],
.member-table.cwl-assignment-table td[data-cwl-value="name"] { min-width: 9rem !important; max-width: 12rem; }
.member-table.cwl-assignment-table th[data-cwl-column="tag"],
.member-table.cwl-assignment-table td[data-cwl-value="tag"] { min-width: 7.5rem !important; }
.member-table.cwl-assignment-table th[data-cwl-column="league"],
.member-table.cwl-assignment-table td[data-cwl-value="league"] { width: 6rem; min-width: 6rem !important; max-width: 6rem; }
.member-table.cwl-assignment-table .roster-override-field { box-sizing: border-box; width: 6rem; min-width: 0; max-width: 6rem; gap: 2px; flex-wrap: wrap; }
.member-table.cwl-assignment-table .roster-override-field .roster-edit-select { box-sizing: border-box; width: 100%; min-width: 0 !important; max-width: 100%; }
.member-table.cwl-assignment-table .roster-override-field .roster-override-reset { min-height: 24px; padding: 2px 5px; font-size: 9px; }
.member-table.cwl-assignment-table th[data-cwl-column="registration"],
.member-table.cwl-assignment-table td[data-cwl-value="registration"] { min-width: 6.5rem !important; }
.member-table.cwl-assignment-table th[data-cwl-column="clan"],
.member-table.cwl-assignment-table td[data-cwl-value="clan"] { width: 20rem; min-width: 20rem !important; }
.member-table.cwl-assignment-table th[data-cwl-column="cwl_position"],
.member-table.cwl-assignment-table td[data-cwl-value="cwl_position"] { min-width: 7rem !important; }
.member-table.cwl-assignment-table th[data-cwl-column^="historical_"],
.member-table.cwl-assignment-table td[data-cwl-value^="historical_"] { min-width: 5.5rem !important; }
.member-table.cwl-assignment-table .column-filter { width: 100% !important; min-width: 54px !important; }
.member-table.cwl-assignment-table th[data-cwl-column="league"],
.member-table.cwl-assignment-table td[data-cwl-value="league"] { box-sizing: border-box; width: 4rem !important; min-width: 4rem !important; max-width: 4rem !important; padding-right: 3px !important; padding-left: 3px !important; }
.member-table.cwl-assignment-table .roster-override-field { box-sizing: border-box; width: 4rem; min-width: 0; max-width: 4rem; gap: 0; flex-wrap: nowrap; }
.member-table.cwl-assignment-table .roster-override-field .roster-edit-select { width: 100%; padding-right: 2px; padding-left: 2px; font-size: 10px; }
.member-table.cwl-assignment-table th[data-cwl-column="cwl_position"],
.member-table.cwl-assignment-table td[data-cwl-value="cwl_position"] { box-sizing: border-box; width: 14rem; min-width: 14rem !important; max-width: 14rem; }
.member-table.cwl-assignment-table th[data-cwl-column="historical_attack_count"],
.member-table.cwl-assignment-table td[data-cwl-value="historical_attack_count"] { box-sizing: border-box; width: 2.75rem; min-width: 2.75rem !important; max-width: 2.75rem; padding-right: 3px !important; padding-left: 3px !important; }
.member-table.cwl-assignment-table th[data-cwl-column="historical_attack_count"] .column-filter { min-width: 0 !important; padding-right: 1px; padding-left: 1px; }
.member-table.cwl-assignment-table td[data-cwl-value="clan"] select { box-sizing: border-box; width: 100%; min-width: 0 !important; max-width: 100%; }
.cwl-responsibles-planning { margin: 18px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfb; }
.cwl-responsibles-planning h3 { margin-top: 0; }
.cwl-responsibles-planning-list { display: grid; min-width: 0; gap: 8px; }
.cwl-responsible-clan { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cwl-responsible-clan > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; cursor: pointer; color: var(--ink); }
.cwl-responsible-clan > summary::marker { color: var(--green); }
.cwl-responsible-count { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 600; }
.cwl-responsible-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 4px 12px; padding-top: 8px; }
.cwl-responsible-option { display: flex; min-width: 0; align-items: flex-start; gap: 8px; padding: 6px 4px; }
.cwl-responsible-option input { flex: 0 0 auto; margin-top: 3px; accent-color: var(--green); }
.cwl-responsible-option span { display: grid; min-width: 0; gap: 2px; }
.cwl-responsible-option .tag { overflow-wrap: anywhere; }
.member-table.cwl-monitoring-table th:first-child,
.member-table.cwl-monitoring-table td:first-child { min-width: 5.2rem !important; max-width: 7.2rem; }
.member-table.cwl-monitoring-table .cwl-monitoring-cell { min-width: 4.5rem !important; max-width: 7rem; }
.member-table.anagrafica-account-table td:first-child { min-width: 6.5rem !important; max-width: 12rem; }
.member-table.player-accounts-table td:nth-child(3) { min-width: 5rem !important; max-width: 11rem; }
.member-table.player-accounts-table td:nth-child(6) { min-width: 5.5rem !important; max-width: 13rem; }
.member-table.war-history-table td.wrap-content-column { max-width: 8rem; }
.member-table select { max-width: 100%; }
.member-table td input:not([type="checkbox"]),
.member-table td textarea { min-width: 0; max-width: 100%; }
.war-scoring-league-table { min-width: max-content; }
.war-scoring-league-table input { width: 6rem; min-width: 6rem; }
.scoring-example-table { width: max-content; min-width: 0; table-layout: auto; }
.scoring-example-table th,
.scoring-example-table td { min-width: 0; padding: 7px; }
.scoring-example-table th:nth-child(3),
.scoring-example-table td:nth-child(3) { max-width: 14rem; overflow-wrap: anywhere; }
.scoring-example-table th:last-child,
.scoring-example-table td:last-child { white-space: nowrap; }
.notification-archive-dialog::backdrop { background: rgb(15 35 26 / 55%); }
.notification-archive-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: -1px; background: #fff; padding-bottom: 12px; z-index: 1; }
.cwl-clan-contact-card { margin-block: 10px; }
.cwl-clan-contact-card ul { margin-block: 8px; padding-left: 20px; }
.assignment-message-preview { margin: 10px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; font: inherit; font-size: 13px; }
.player-accounts-table td small { display: block; color: var(--muted, #68756e); margin-top: 4px; }
