:root {
  color-scheme: light;
  --navy-950: #0d2140;
  --navy-900: #10284d;
  --navy-800: #173b70;
  --blue-700: #1c5caf;
  --blue-100: #eaf1fb;
  --red-700: #bf283b;
  --red-600: #d33345;
  --red-100: #fbecef;
  --paper: #f3f6fb;
  --surface: #ffffff;
  --ink: #172b48;
  --muted: #53657d;
  --subtle: #687991;
  --line: #d9e2ee;
  --success: #226747;
  --success-bg: #e7f4ec;
  --warning: #805006;
  --warning-bg: #fff3dc;
  --danger: #a92235;
  --focus: #1769c2;
  --radius-sm: 8px;
  --radius-md: 14px;
  --shadow-dialog: 0 24px 70px rgb(8 24 49 / 25%);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); scrollbar-color: #9cabc0 var(--paper); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
::selection { color: #fff; background: var(--blue-700); }
:focus-visible { outline: 3px solid #82b7f0; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 40; left: 12px; top: 12px; padding: 10px 14px; transform: translateY(-160%); color: #fff; background: var(--navy-950); border-radius: var(--radius-sm); }
.skip-link:focus { transform: translateY(0); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: relative; min-height: 100vh; padding: 27px 18px 20px; display: flex; flex-direction: column; color: #f7f9fd; background: var(--navy-950); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; flex: none; overflow: hidden; border: 1px solid #d9e2ee; border-radius: 6px; background: #fff; }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand-name { font-size: 9px; line-height: 1.55; letter-spacing: .105em; font-weight: 780; }
.brand-name small { display: block; margin-top: 2px; color: #b9c9df; font-size: 9px; letter-spacing: .15em; }
.sidebar-rule { height: 1px; margin: 25px 2px 23px; background: #2d4569; }
.nav-label { margin: 0 0 11px 12px; color: #9fb3cf; font-size: 10px; letter-spacing: .13em; font-weight: 750; }
.primary-nav { display: grid; gap: 5px; }
.nav-label-secondary { margin-top: 27px; }
.nav-link { position: relative; min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 13px; border: 0; border-radius: 9px; color: #cbd6e5; background: transparent; text-align: left; font-size: 13px; font-weight: 620; transition: background-color 160ms ease, color 160ms ease; }
.nav-link svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.nav-link:hover { color: #fff; background: #172e50; }
.nav-link.is-active { color: #fff; background: #19375f; }
.nav-link.is-active::before { position: absolute; top: 9px; bottom: 9px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--red-600); content: ""; }
.nav-link.is-active svg { opacity: 1; }
.sidebar-bottom { margin-top: auto; padding: 22px 9px 2px; color: #d8e1ed; font-size: 11px; }
.sidebar-bottom p { max-width: 190px; margin: 9px 0 0; color: #aebdd1; line-height: 1.55; }
.demo-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.demo-status span { width: 7px; height: 7px; border-radius: 50%; background: #e45662; box-shadow: 0 0 0 3px rgb(211 51 69 / 18%); }

.main-area { min-width: 0; padding: 0 38px; }
.topbar { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.breadcrumb > span:first-child { color: var(--subtle); }
.breadcrumb strong { color: var(--ink); font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.environment-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 650; }
.environment-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red-600); }
.user-chip { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 12px; font-weight: 650; }
.user-avatar { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #d1dced; border-radius: 50%; color: var(--navy-900); background: #eaf1fb; font-size: 12px; font-weight: 750; }
.demo-notice { max-width: 1240px; margin: 16px 0 0; padding: 9px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid #f0cbd1; border-radius: 9px; color: #70313a; background: #fff8f8; font-size: 11px; line-height: 1.45; }
.demo-notice p { margin: 0; }
.demo-notice strong { color: #842637; }
.notice-mark { width: 18px; height: 18px; display: grid; place-items: center; flex: none; border-radius: 50%; color: #fff; background: var(--red-600); font-size: 11px; font-weight: 800; }

.page-view { max-width: 1240px; padding-top: 30px; }
.page-heading { min-height: 63px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-heading h1 { margin: 0; color: var(--navy-950); font-size: 27px; line-height: 1.2; letter-spacing: -.025em; font-weight: 750; }
.page-heading p { margin: 7px 0 0; max-width: 62ch; color: var(--muted); font-size: 13px; line-height: 1.5; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; font-size: 12px; line-height: 1.2; font-weight: 720; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { color: #fff; background: var(--red-600); }
.button-primary:hover { background: var(--red-700); box-shadow: 0 5px 12px rgb(191 40 59 / 17%); }
.button-outline, .button-secondary { color: var(--navy-900); background: #fff; border-color: #c8d5e6; }
.button-outline:hover, .button-secondary:hover { background: var(--blue-100); border-color: #9fb7d6; }
.button-quiet { color: var(--muted); background: transparent; border-color: transparent; }
.button-quiet:hover { color: var(--navy-900); background: var(--paper); }
.button-plus { font-size: 19px; line-height: 1; font-weight: 450; }
.list-meta { min-height: 37px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.meta-separator { width: 4px; height: 4px; border-radius: 50%; background: #9aabc0; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 11px 0 14px; }
.search-field { position: relative; min-width: min(360px, 100%); flex: 1 1 320px; }
.search-field input, .select-field select { width: 100%; min-height: 42px; border: 1px solid #cbd7e6; border-radius: 9px; color: var(--ink); background: var(--surface); font-size: 12px; }
.search-field input { padding: 0 13px 0 40px; }
.search-field input::placeholder { color: #65768e; opacity: 1; }
.search-mark { position: absolute; left: 15px; top: 13px; width: 13px; height: 13px; border: 1.6px solid #5d708b; border-radius: 50%; }
.search-mark::after { position: absolute; width: 6px; height: 1.5px; top: 10px; left: 9px; background: #5d708b; transform: rotate(45deg); transform-origin: left center; content: ""; }
.select-field { width: 184px; }
.select-field select { padding: 0 32px 0 12px; }
.search-field input:focus, .select-field select:focus, .form-field input:focus, .form-field select:focus { outline: 3px solid #c8def7; outline-offset: 1px; border-color: var(--focus); }
.table-frame { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { height: 43px; padding: 0 15px; color: #4f627c; background: #f1f5fa; font-size: 9px; letter-spacing: .075em; font-weight: 780; }
.data-table td { height: 58px; padding: 9px 15px; border-top: 1px solid #e9eef5; color: #354965; font-size: 12px; vertical-align: middle; }
.data-table tbody tr:hover { background: #f8faff; }
.club-name-button, .player-name-button { padding: 0; border: 0; color: var(--navy-900); background: transparent; text-align: left; font-size: 12px; font-weight: 720; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.club-name-button:hover, .player-name-button:hover { color: var(--blue-700); text-decoration-color: currentColor; }
.row-action { min-height: 34px; padding: 0 11px; border: 1px solid #c8d6e7; border-radius: 7px; color: var(--navy-900); background: #fff; font-size: 11px; font-weight: 680; white-space: nowrap; transition: background-color 150ms ease, border-color 150ms ease; }
.row-action:hover { border-color: #9db5d4; background: var(--blue-100); }
.status-tag { display: inline-flex; align-items: center; gap: 7px; color: var(--success); font-size: 11px; font-weight: 680; white-space: nowrap; }
.status-tag::before { width: 7px; height: 7px; border-radius: 50%; background: #37875f; content: ""; }
.status-tag.is-incomplete { color: var(--warning); }
.status-tag.is-incomplete::before { background: #a56b0a; }
.empty-state { min-height: 270px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px 18px; text-align: center; }
.empty-state h2 { margin: 0; color: var(--navy-950); font-size: 17px; line-height: 1.35; font-weight: 730; }
.empty-state p { max-width: 390px; margin: 9px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.court-mark { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 16px; border: 1px solid #b8c9e0; border-radius: 50%; color: var(--blue-700); }
.court-mark span { width: 17px; height: 17px; display: block; border: 1px solid currentColor; border-radius: 50%; }
.compact-empty { min-height: 180px; }
.compact-empty h2 { font-size: 14px; }
.compact-empty p { margin-bottom: 0; }

.dashboard-view { padding-top: 28px; }
.dashboard-heading { margin-bottom: 21px; }
.dashboard-heading .button { flex: none; }
.summary-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.summary-item { min-height: 82px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 13px 22px; }
.summary-item + .summary-item { border-left: 1px solid var(--line); }
.summary-item span { color: var(--muted); font-size: 11px; font-weight: 620; }
.summary-item strong { color: var(--navy-950); font-size: 23px; line-height: 1; font-weight: 760; font-variant-numeric: tabular-nums; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .85fr); gap: 16px; align-items: stretch; }
.setup-panel, .activity-panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.setup-panel { padding: 23px 24px 20px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.panel-heading h2 { margin: 0; color: var(--navy-950); font-size: 16px; line-height: 1.35; font-weight: 740; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.panel-ball { width: 47px; height: 47px; display: grid; place-items: center; flex: none; border-radius: 50%; color: #fff; background: var(--blue-700); }
.panel-ball svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }
.setup-steps { display: grid; margin: 18px 0 17px; }
.setup-step { min-height: 56px; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 11px; border-top: 1px solid #ebeff5; }
.step-state { width: 17px; height: 17px; position: relative; display: block; border: 1.5px solid #b7c4d5; border-radius: 50%; }
.setup-step.is-current .step-state { border-color: var(--red-600); box-shadow: 0 0 0 3px var(--red-100); }
.setup-step.is-complete .step-state { border-color: var(--success); background: var(--success); }
.setup-step.is-complete .step-state::after { position: absolute; width: 7px; height: 4px; left: 4px; top: 4px; border: solid #fff; border-width: 0 0 1.7px 1.7px; transform: rotate(-45deg); content: ""; }
.setup-step > div { display: grid; gap: 3px; }
.setup-step strong { color: var(--ink); font-size: 11px; font-weight: 710; }
.setup-step > div > span { color: var(--muted); font-size: 10px; }
.step-status { color: var(--subtle); font-size: 10px; font-weight: 660; white-space: nowrap; }
.setup-step.is-current .step-status { color: var(--red-700); }
.setup-step.is-complete .step-status { color: var(--success); }
.panel-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.panel-actions .button { min-height: 39px; }
.activity-panel { display: flex; flex-direction: column; padding: 23px 21px 0; }
.activity-panel .panel-heading { min-height: 46px; }
.activity-line { width: 29px; height: 4px; margin-top: 7px; border-radius: 4px; background: var(--red-600); }
.activity-list { flex: 1; min-height: 190px; }
.activity-empty { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; text-align: center; }
.activity-empty p { max-width: 210px; margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.activity-empty-mark { width: 34px; height: 26px; position: relative; display: block; border: 1px solid #c9d7e8; border-radius: 4px; }
.activity-empty-mark::before, .activity-empty-mark::after { position: absolute; height: 1px; left: 7px; right: 7px; background: #afc0d5; content: ""; }
.activity-empty-mark::before { top: 8px; }
.activity-empty-mark::after { top: 15px; right: 13px; }
.activity-entry { min-height: 57px; display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 11px; border-top: 1px solid #ebeff5; }
.activity-entry-mark { width: 7px; height: 7px; border-radius: 50%; background: var(--red-600); }
.activity-entry-mark.is-player { background: var(--blue-700); }
.activity-entry > div { min-width: 0; display: grid; gap: 4px; }
.activity-entry strong { overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.activity-entry > div > span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.activity-entry time { color: var(--subtle); font-size: 9px; white-space: nowrap; }
.activity-footer { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.session-chip { padding: 4px 8px; border-radius: 20px; color: var(--navy-800); background: var(--blue-100); font-size: 9px; font-weight: 720; }
.dashboard-shortcuts { margin-top: 18px; padding: 18px 21px 5px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.shortcuts-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 5px; }
.shortcuts-heading h2 { margin: 0; color: var(--navy-950); font-size: 14px; font-weight: 740; }
.shortcuts-heading > span { color: var(--subtle); font-size: 9px; letter-spacing: .09em; font-weight: 730; }
.shortcut-link { width: 100%; min-height: 62px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 2px; border: 0; border-top: 1px solid #ebeff5; color: var(--ink); background: transparent; text-align: left; }
.shortcut-link:hover strong { color: var(--blue-700); }
.shortcut-symbol { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--blue-700); background: var(--blue-100); }
.shortcut-symbol svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.players-symbol { color: var(--red-700); background: var(--red-100); }
.shortcut-link > span:nth-child(2) { display: grid; gap: 3px; }
.shortcut-link strong { color: var(--navy-900); font-size: 11px; font-weight: 720; transition: color 140ms ease; }
.shortcut-link small { color: var(--muted); font-size: 10px; }
.shortcut-arrow { color: var(--blue-700); font-size: 17px; transition: transform 140ms ease; }
.shortcut-link:hover .shortcut-arrow { transform: translateX(3px); }

.roster-heading { align-items: flex-end; }
.roster-details { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: -6px 0 13px; color: var(--muted); font-size: 11px; }
.roster-details strong { color: var(--ink); font-weight: 700; }
.club-connection { margin: 0 0 12px; padding: 17px 19px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.club-connection-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.club-connection-heading h2 { margin: 0; color: var(--navy-950); font-size: 15px; line-height: 1.35; font-weight: 740; }
.club-connection-heading #roster-details { display: block; margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.connection-state { display: inline-flex; flex: none; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 999px; color: var(--warning); background: var(--warning-bg); font-size: 10px; font-weight: 720; white-space: nowrap; }
.connection-state::before { width: 7px; height: 7px; border-radius: 50%; background: #a56b0a; content: ""; }
.club-connection-copy { margin: 13px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.club-connection-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 11px; border-top: 1px solid #e9eef5; color: var(--muted); font-size: 10px; }
.club-connection-meta strong { margin-left: 4px; color: var(--navy-900); font-weight: 720; }
.back-link { display: inline-block; margin-bottom: 8px; padding: 0; border: 0; color: var(--blue-700); background: transparent; font-size: 11px; font-weight: 680; }
.back-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.review-tag { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; color: var(--warning); background: var(--warning-bg); font-size: 10px; line-height: 1.2; font-weight: 700; white-space: nowrap; }
.review-tag.is-pending { color: var(--blue-700); background: var(--blue-100); }
.filing-cell { min-width: 145px; display: grid; justify-items: start; gap: 5px; }
.filing-cell small { color: var(--danger); font-size: 10px; line-height: 1.3; }
.filing-cell .row-action { min-height: 29px; padding: 0 8px; font-size: 10px; }
.portal-view { padding-bottom: 8px; }
.portal-hero { min-height: 154px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 25px 29px; border-radius: var(--radius-md); color: #fff; background: var(--navy-900); }
.portal-hero h2 { margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
.portal-hero p { max-width: 62ch; margin: 8px 0 0; color: #d9e6f5; font-size: 12px; line-height: 1.55; }
.categories-hero { background: var(--blue-700); }
.portal-live-tag { flex: none; padding: 8px 10px; border: 1px solid #ffffff55; border-radius: 999px; color: #fff; font-size: 9px; letter-spacing: .08em; font-weight: 750; }
.portal-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.portal-panel, .news-feed { border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.portal-panel { min-height: 245px; padding: 20px; }
.category-notice { min-height: 290px; }
.portal-panel-heading, .news-feed-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.portal-panel-heading h2, .news-feed-heading h2 { margin: 0; color: var(--navy-950); font-size: 15px; }
.portal-panel-heading span, .news-feed-heading span { color: var(--muted); font-size: 9px; letter-spacing: .08em; font-weight: 730; }
.portal-empty { min-height: 165px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.portal-empty strong { color: var(--navy-900); font-size: 13px; }
.portal-empty p { max-width: 43ch; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.news-masthead { min-height: 190px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 26px 32px; border-radius: var(--radius-md); color: #fff; background: var(--navy-950); }
.news-masthead span { color: #e1eaf5; font-size: 9px; letter-spacing: .11em; font-weight: 760; }
.news-masthead h2 { margin: 9px 0 5px; font-size: 28px; line-height: 1.2; letter-spacing: -.025em; }
.news-masthead p { margin: 0; color: #d9e6f5; font-size: 12px; }
.news-masthead img { width: 78px; height: 78px; border-radius: 8px; background: #fff; object-fit: contain; }
.news-feed { padding: 19px 22px; }
.news-empty { min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.news-empty h3 { margin: 12px 0 0; color: var(--navy-900); font-size: 15px; }
.news-empty p { max-width: 48ch; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.news-empty-mark { width: 38px; height: 30px; border: 1px solid #a9bfdc; border-radius: 4px; background: linear-gradient(#fff 0 8px,#d9e2ee 8px 9px,#fff 9px 18px,#d9e2ee 18px 19px,#fff 19px); }
.page-footer { max-width: 1240px; display: flex; justify-content: space-between; gap: 15px; margin: 28px 0 20px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.page-footer span:last-child { color: var(--subtle); }

.dialog { width: min(600px, calc(100vw - 28px)); max-height: min(88vh, 820px); padding: 0; overflow: auto; border: 1px solid #cbd7e6; border-radius: 14px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-dialog); }
.dialog::backdrop { background: rgb(8 24 49 / 55%); }
.wide-dialog { width: min(720px, calc(100vw - 28px)); }
.profile-dialog { width: min(590px, calc(100vw - 28px)); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 21px 24px 17px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; color: var(--navy-950); font-size: 19px; line-height: 1.3; }
.dialog-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.close-button { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border: 1px solid #d2dce9; border-radius: 50%; color: var(--navy-800); background: transparent; font-size: 21px; line-height: 1; }
.close-button:hover { background: var(--blue-100); }
.dialog-body { padding: 20px 24px 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 14px; }
.form-field { min-width: 0; display: grid; gap: 7px; color: #354a67; font-size: 11px; font-weight: 670; }
.form-field b { color: var(--red-700); }
.form-field input, .form-field select { width: 100%; min-height: 41px; padding: 0 11px; border: 1px solid #cbd7e6; border-radius: 8px; color: var(--ink); background: #fff; font-size: 12px; font-weight: 400; }
.form-field input::placeholder { color: #687991; opacity: 1; }
.form-hint { margin: 14px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.form-error { margin: 12px 0 0; color: var(--danger); font-size: 11px; font-weight: 680; }
.dialog-footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 12px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.form-section-title { margin: 0 0 15px; color: var(--navy-900); font-size: 11px; font-weight: 760; }
.minor-fields { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.documents-notice { margin-top: 14px; padding: 12px 14px; border: 1px solid #f0cbd1; border-radius: 9px; color: #70313a; background: #fff8f8; font-size: 11px; line-height: 1.55; }
.documents-notice strong { color: #842637; }
.documents-notice p { margin: 4px 0 0; }
.form-grid-hint { grid-column: 1 / -1; margin-top: -5px; }
.health-notice { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 18px; padding: 13px 14px; border: 1px solid #f0cbd1; border-radius: 9px; background: #fff8f8; }
.health-notice strong { color: #842637; font-size: 11px; }
.health-notice p { margin: 4px 0 0; max-width: 430px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.locked-label { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid #e9c0c7; border-radius: 20px; color: #842637; background: #fff; font-size: 9px; font-weight: 740; white-space: nowrap; }
.profile-tabs { display: flex; gap: 4px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.profile-tab { min-height: 43px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 11px; font-weight: 670; }
.profile-tab:hover { color: var(--navy-900); }
.profile-tab.is-active { border-bottom-color: var(--red-600); color: var(--navy-900); }
.profile-content { min-height: 205px; padding: 21px 24px 25px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 22px; }
.profile-field { display: grid; gap: 5px; }
.profile-field dt { color: var(--muted); font-size: 9px; letter-spacing: .035em; }
.profile-field dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 620; overflow-wrap: anywhere; }
.profile-health { padding: 16px; border: 1px solid #f0cbd1; border-radius: 10px; background: #fff8f8; }
.profile-health strong { color: #842637; }
.profile-health p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; max-width: min(400px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid var(--navy-800); border-radius: 10px; color: #fff; background: var(--navy-950); box-shadow: 0 8px 22px rgb(13 33 64 / 22%); font-size: 12px; }

@media (max-width: 1000px) {
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .main-area { padding: 0 27px; }
  .dashboard-columns { grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { min-height: 0; padding: 17px 20px 0; }
  .brand { min-height: 43px; }
  .sidebar-rule, .nav-label, .sidebar-bottom { display: none; }
  .primary-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 13px; }
  .nav-link { min-height: 43px; justify-content: center; gap: 8px; padding: 0 6px; font-size: 11px; }
  .nav-link.is-active::before { top: auto; right: 13px; bottom: 0; left: 13px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
  .main-area { padding: 0 22px; }
  .topbar { min-height: 57px; }
  .demo-notice { margin-top: 13px; }
  .page-view { padding-top: 25px; }
  .dashboard-view { padding-top: 23px; }
  .dashboard-columns { grid-template-columns: 1fr; }
  .activity-list, .activity-empty { min-height: 135px; }
  .dashboard-shortcuts { margin-top: 14px; }
  .page-footer { margin-top: 23px; }
}
@media (max-width: 540px) {
  .sidebar { padding: 14px 15px 0; }
  .brand { gap: 9px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark svg { width: 34px; height: 34px; }
  .brand-name, .brand-name small { font-size: 8px; }
  .primary-nav { margin-top: 10px; }
  .nav-link { min-height: 41px; gap: 6px; font-size: 10px; }
  .nav-link svg { width: 17px; height: 17px; }
  .main-area { padding: 0 15px; }
  .topbar { min-height: 52px; }
  .topbar-actions { gap: 10px; }
  .environment-label { display: none; }
  .user-chip { font-size: 10px; }
  .user-avatar { width: 28px; height: 28px; }
  .breadcrumb { gap: 7px; font-size: 11px; }
  .demo-notice { align-items: flex-start; padding: 9px 10px; font-size: 10px; }
  .notice-mark { margin-top: 1px; }
  .dashboard-view { padding-top: 20px; }
  .page-view { padding-top: 22px; }
  .page-heading { min-height: 0; align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 16px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading p { font-size: 12px; }
  .page-heading > .button { width: 100%; }
  .summary-strip { grid-template-columns: 1fr; margin-bottom: 13px; }
  .summary-item { min-height: 64px; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 11px 16px; }
  .summary-item + .summary-item { border-top: 1px solid var(--line); border-left: 0; }
  .summary-item span { font-size: 10px; }
  .summary-item strong { font-size: 20px; }
  .setup-panel { padding: 19px 16px 16px; }
  .panel-heading h2 { font-size: 15px; }
  .panel-ball { width: 39px; height: 39px; }
  .panel-ball svg { width: 28px; height: 28px; }
  .setup-steps { margin-top: 15px; }
  .setup-step { grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; }
  .setup-step > div > span { font-size: 9px; }
  .step-status { font-size: 9px; }
  .panel-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .panel-actions .button { padding: 0 8px; font-size: 10px; }
  .activity-panel { padding: 18px 16px 0; }
  .dashboard-shortcuts { padding: 16px 15px 3px; }
  .shortcuts-heading > span { font-size: 8px; }
  .shortcut-link { min-height: 59px; }
  .list-meta { min-height: 34px; flex-wrap: wrap; gap: 7px; font-size: 10px; }
  .club-connection { padding: 15px 14px 12px; }
  .club-connection-heading { flex-direction: column; gap: 10px; }
  .club-connection-meta { gap: 7px 18px; }
  .portal-hero, .news-masthead { align-items: flex-start; flex-direction: column; padding: 22px 18px; }
  .portal-hero h2, .news-masthead h2 { font-size: 22px; }
  .news-masthead img { width: 58px; height: 58px; }
  .portal-columns { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; }
  .search-field { min-width: 100%; flex-basis: 100%; }
  .select-field { width: 100%; }
  .table-frame { overflow-x: auto; }
  .data-table { min-width: 930px; }
  .empty-state { min-height: 230px; }
  .page-footer { flex-direction: column; gap: 5px; line-height: 1.4; }
  .dialog-header { padding: 18px 17px 14px; }
  .dialog-header h2 { font-size: 18px; }
  .dialog-body { padding: 17px; }
  .dialog-footer { padding: 11px 17px; }
  .form-grid, .profile-grid { grid-template-columns: 1fr; }
  .profile-tabs { padding: 0 12px; }
  .profile-tab { padding: 0 10px; }
  .profile-content { padding: 18px 17px 22px; }
  .health-notice { align-items: flex-start; flex-direction: column; }
  .toast { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

