:root {
  --bg: #090e16;
  --sidebar: #0c131f;
  --surface: #111a28;
  --surface-2: #162234;
  --surface-3: #1b2a3e;
  --line: rgba(188, 204, 228, .12);
  --line-strong: rgba(188, 204, 228, .2);
  --text: #edf3fb;
  --muted: #90a1b7;
  --faint: #60738c;
  --orange: #ff9b4a;
  --orange-soft: #2b1d18;
  --green: #52d29a;
  --green-soft: #18362e;
  --yellow: #e8bd63;
  --grey: #708095;
  --purple: #a78bfa;
  --shadow: 0 22px 60px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: "DM Sans", sans-serif; font-size: 15px; line-height: 1.5; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 254px; flex: 0 0 254px; padding: 29px 17px 20px; background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand-lockup { display: flex; align-items: center; gap: 12px; padding: 0 13px; margin-bottom: 48px; }
.brand-mark { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 28px; height: 28px; gap: 3px; transform: skewX(-9deg); }
.brand-mark span { display: block; width: 6px; background: var(--orange); border-radius: 2px 2px 0 0; }
.brand-mark span:nth-child(1) { height: 12px; opacity: .55; }.brand-mark span:nth-child(2) { height: 23px; }.brand-mark span:nth-child(3) { height: 17px; opacity: .78; }
.brand-name { letter-spacing: .16em; font-size: 15px; font-weight: 700; }
.brand-kicker { color: var(--faint); font-size: 10px; letter-spacing: .09em; margin-top: 3px; white-space: nowrap; }
.sidebar-section-label, .eyebrow { color: var(--faint); font-size: 10px; letter-spacing: .17em; font-weight: 700; text-transform: uppercase; }
.sidebar-section-label { padding: 0 15px 10px; }
.nav-list { display: grid; gap: 4px; }
.nav-item { position: relative; border: 0; border-radius: 7px; padding: 11px 13px; display: flex; align-items: center; gap: 12px; color: var(--muted); background: transparent; text-align: left; transition: background .18s, color .18s; }
.nav-item svg { width: 17px; height: 17px; fill: currentColor; opacity: .8; }.nav-item:hover { color: var(--text); background: rgba(255,255,255,.04); }.nav-item.is-active { color: var(--text); background: #172437; }.nav-item.is-active::before { content: ""; position: absolute; left: -17px; height: 22px; width: 3px; border-radius: 0 4px 4px 0; background: var(--orange); }
.nav-count { margin-left: auto; min-width: 23px; padding: 1px 6px; border-radius: 10px; color: var(--orange); background: var(--orange-soft); font-size: 11px; text-align: center; }
.sidebar-spacer { flex: 1; min-height: 70px; }.sidebar-footer { display: flex; align-items: flex-start; gap: 10px; padding: 16px 14px 0; margin-top: 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }.sidebar-footer strong, .sidebar-footer span { display: block; }.sidebar-footer strong { color: #c2cedd; font-size: 12px; font-weight: 600; }.sidebar-footer span { margin-top: 2px; color: var(--faint); }.connection-dot { width: 7px; height: 7px; margin-top: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(82,210,154,.08); }
.main-content { width: calc(100% - 254px); min-width: 0; }.topbar { min-height: 76px; padding: 0 clamp(26px, 4vw, 57px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }.breadcrumb { display: flex; gap: 10px; align-items: center; color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: .15em; }.breadcrumb strong { color: var(--orange); }.breadcrumb-divider { color: #43546b; }.topbar-actions { display: flex; align-items: center; gap: 18px; }.icon-button, .more-button { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 7px; width: 34px; height: 34px; display: inline-grid; place-items: center; }.icon-button:hover, .more-button:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.03); }.icon-button svg { width: 16px; height: 16px; fill: currentColor; }.profile-chip { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; letter-spacing: .08em; font-weight: 700; }.avatar { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; }.avatar-gold { color: #2c1c0a; background: #e5b45e; }.chevron { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.page-wrap { max-width: 1530px; margin: 0 auto; padding: 38px clamp(26px, 4vw, 57px) 64px; }.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 31px; }.page-heading h1 { margin: 8px 0 4px; font-family: "Barlow Condensed", sans-serif; font-size: clamp(32px, 3vw, 45px); line-height: .98; letter-spacing: -.015em; font-weight: 600; }.page-heading p { color: var(--muted); margin: 0; font-size: 14px; }.button { border: 0; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 16px; color: var(--text); font-weight: 700; font-size: 13px; transition: transform .18s, filter .18s, background .18s; }.button:hover { filter: brightness(1.08); transform: translateY(-1px); }.button-primary { background: var(--orange); color: #1f140c; box-shadow: 0 8px 24px rgba(255,155,74,.13); }.button-secondary { background: var(--surface-3); color: var(--text); }.button-dark { background: #182334; color: var(--text); border: 1px solid rgba(255,255,255,.12); }.button-plus { font-size: 20px; line-height: 12px; font-weight: 400; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }.stat-card { min-height: 142px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }.stat-card-primary { background: linear-gradient(145deg, #1e2a3e, #131d2c); border-color: rgba(255,155,74,.18); }.stat-card-alert { border-color: rgba(255,155,74,.18); }.stat-card-top { display: flex; align-items: center; justify-content: space-between; }.stat-label { color: var(--muted); font-size: 10px; letter-spacing: .1em; font-weight: 700; }.stat-icon { color: var(--orange); font-size: 20px; opacity: .9; }.stat-icon-green { color: var(--green); }.stat-icon-purple { color: var(--purple); }.stat-icon-orange { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: var(--orange); background: var(--orange-soft); font-size: 13px; font-weight: 700; }.stat-value { margin-top: 14px; font-family: "Barlow Condensed", sans-serif; font-size: 35px; line-height: 1; font-weight: 600; letter-spacing: .02em; }.stat-detail { margin-top: 8px; color: var(--faint); font-size: 12px; }.trend-up { color: var(--green); font-weight: 700; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .9fr); gap: 20px; margin-bottom: 20px; }.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }.health-panel { padding: 22px 24px 25px; }.panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }.panel h2, .war-card h2 { margin: 4px 0 0; font-family: "Barlow Condensed", sans-serif; font-size: 25px; letter-spacing: .01em; line-height: 1; font-weight: 600; }.text-button { border: 0; color: var(--orange); background: transparent; padding: 3px 0; font-size: 12px; font-weight: 700; }.text-button:hover { color: #ffbb7e; }.text-button span { margin-left: 3px; font-size: 16px; }.health-main { display: flex; align-items: center; gap: 25px; margin: 25px 0 25px; }.health-ring { position: relative; width: 125px; height: 125px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) 0 75%, #283648 75% 100%); }.health-ring::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface); }.health-ring > div { position: relative; z-index: 1; text-align: center; }.health-ring strong { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 30px; line-height: 1; }.health-ring span { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }.health-copy { max-width: 340px; }.health-copy strong { font-size: 14px; }.health-copy p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 6px 0 0; }.health-bars { display: grid; gap: 13px; }.health-row { display: grid; grid-template-columns: 92px minmax(80px, 1fr) 35px; gap: 13px; align-items: center; color: var(--muted); font-size: 12px; }.health-row > div:first-child { display: flex; align-items: center; gap: 7px; }.health-row strong { color: var(--text); text-align: right; font-size: 12px; }.health-dot { width: 7px; height: 7px; border-radius: 50%; }.dot-green { background: var(--green); }.dot-yellow { background: var(--yellow); }.dot-grey { background: var(--grey); }.health-track, .war-progress { height: 6px; border-radius: 10px; background: #273548; overflow: hidden; }.health-fill, .war-progress span { display: block; height: 100%; border-radius: inherit; transition: width .35s ease; }.fill-green { background: var(--green); }.fill-yellow { background: var(--yellow); }.fill-grey { background: var(--grey); }
.war-card { position: relative; min-height: 300px; overflow: hidden; border: 1px solid rgba(255,155,74,.2); border-radius: 8px; background: linear-gradient(145deg, #412b21, #1e1e28 80%); }.war-card-pattern { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(135deg, transparent 0 48%, #ffad67 48% 50%, transparent 50% 100%), linear-gradient(45deg, transparent 0 48%, #ffad67 48% 50%, transparent 50% 100%); background-size: 44px 44px; mask-image: linear-gradient(120deg, #000, transparent 80%); }.war-card-content { position: relative; height: 100%; padding: 23px 24px; display: flex; flex-direction: column; align-items: flex-start; }.war-label { color: var(--orange); font-size: 10px; font-weight: 700; letter-spacing: .16em; }.war-pulse { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,155,74,.1); }.war-card h2 { margin-top: 25px; font-size: 32px; }.war-card p { color: #c1a697; margin: 8px 0 22px; font-size: 13px; }.war-card p span { color: var(--orange); padding: 0 5px; }.war-progress-label { display: flex; justify-content: space-between; width: 100%; color: #b99683; font-size: 11px; margin-bottom: 8px; }.war-progress-label strong { color: #f6c09b; }.war-progress { width: 100%; background: rgba(24, 16, 19, .5); }.war-progress span { width: 60%; background: var(--orange); }.war-card .button { margin-top: auto; }
.lower-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .9fr); gap: 20px; align-items: start; }.roster-panel { overflow: hidden; }.roster-header { padding: 22px 24px 17px; align-items: flex-end; }.roster-actions { display: flex; gap: 8px; align-items: center; }.search-box { position: relative; display: flex; align-items: center; }.search-box svg { position: absolute; left: 10px; width: 15px; height: 15px; fill: var(--faint); }.search-box input, select { height: 34px; color: var(--text); background: #182537; border: 1px solid var(--line); border-radius: 5px; }.search-box input { width: 174px; padding: 0 10px 0 31px; font-size: 12px; }.search-box input::placeholder { color: var(--faint); }.roster-actions select { padding: 0 27px 0 10px; font-size: 12px; appearance: auto; }.table-wrap { overflow-x: auto; }.table-wrap table { width: 100%; border-collapse: collapse; min-width: 680px; }.table-wrap th { padding: 11px 24px; text-align: left; white-space: nowrap; color: var(--faint); font-size: 9px; letter-spacing: .13em; font-weight: 700; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.table-wrap td { padding: 12px 24px; color: #c6d1df; font-size: 12px; border-bottom: 1px solid rgba(188,204,228,.07); white-space: nowrap; }.table-wrap tbody tr { transition: background .15s; }.table-wrap tbody tr:hover { background: rgba(255,255,255,.025); }.member-cell { display: flex; align-items: center; gap: 10px; }.member-avatar { width: 29px; height: 29px; border-radius: 7px; display: grid; place-items: center; color: #17202b; font-size: 10px; font-weight: 700; }.member-name { color: var(--text); font-weight: 600; }.member-tag { margin-top: 1px; color: var(--faint); font-size: 10px; }.role-cell { color: var(--muted); }.donation-cell { color: var(--text); font-weight: 600; }.donation-cell small { display: block; color: var(--faint); font-weight: 400; font-size: 10px; }.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 4px; font-size: 10px; font-weight: 700; }.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; }.status-active { color: var(--green); background: var(--green-soft); }.status-active::before { background: var(--green); }.status-at-risk { color: var(--yellow); background: rgba(232,189,99,.1); }.status-at-risk::before { background: var(--yellow); }.status-absent { color: #a9b5c6; background: rgba(112,128,149,.14); }.status-absent::before { background: var(--grey); }.row-action { border: 0; color: var(--faint); background: transparent; font-size: 16px; letter-spacing: 2px; }.row-action:hover { color: var(--text); }.table-footer { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; color: var(--faint); font-size: 11px; }.empty-state { padding: 35px 24px; color: var(--muted); text-align: center; }
.activity-panel { padding-bottom: 10px; }.activity-panel .panel-header { padding: 22px 24px 14px; }.activity-list { padding: 0 24px; }.activity-item { display: grid; grid-template-columns: 28px 1fr; gap: 11px; position: relative; padding: 13px 0 16px; border-bottom: 1px solid rgba(188,204,228,.07); }.activity-item:last-child { border-bottom: 0; }.activity-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: var(--surface-3); color: var(--orange); font-size: 13px; }.activity-icon.green { color: var(--green); }.activity-icon.purple { color: var(--purple); }.activity-copy { color: var(--muted); font-size: 11px; line-height: 1.45; }.activity-copy strong { color: var(--text); font-weight: 600; }.activity-time { color: var(--faint); font-size: 10px; margin-top: 4px; }
.view-placeholder { padding: 100px 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: center; }.placeholder-icon { width: 50px; height: 50px; margin: 0 auto 20px; display: grid; place-items: center; color: var(--orange); background: var(--orange-soft); border-radius: 50%; font-size: 23px; }.view-placeholder h2 { margin: 8px 0; font-family: "Barlow Condensed", sans-serif; font-size: 30px; }.view-placeholder p { color: var(--muted); margin: 0 auto 24px; max-width: 330px; font-size: 13px; }
.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(2, 5, 10, .72); backdrop-filter: blur(7px); }.modal-backdrop[hidden] { display: none; }.modal { width: min(100%, 440px); padding: 25px; border: 1px solid var(--line-strong); border-radius: 10px; background: #111c2b; box-shadow: var(--shadow); }.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }.modal h2 { margin: 5px 0 0; font-family: "Barlow Condensed", sans-serif; font-size: 29px; }.modal-close { width: 30px; height: 30px; border: 0; color: var(--muted); background: transparent; font-size: 25px; line-height: 1; }.modal form { display: grid; gap: 15px; }.modal label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }.modal input, .modal select { width: 100%; height: 40px; padding: 0 11px; color: var(--text); border: 1px solid var(--line-strong); border-radius: 5px; background: #182638; font-size: 13px; }.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }.toast { position: fixed; z-index: 20; right: 28px; bottom: 26px; padding: 11px 15px; border: 1px solid rgba(82,210,154,.25); border-radius: 6px; color: #c7f6df; background: #14352d; box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s; }.toast.is-visible { opacity: 1; transform: translateY(0); }.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; }

@media (max-width: 1100px) { .sidebar { width: 218px; flex-basis: 218px; }.main-content { width: calc(100% - 218px); }.nav-item.is-active::before { left: -17px; }.stat-grid { grid-template-columns: repeat(2, 1fr); }.overview-grid, .lower-grid { grid-template-columns: 1fr; }.activity-panel { display: none; } }
@media (max-width: 720px) { .app-shell { display: block; }.sidebar { width: 100%; height: auto; padding: 16px 15px 12px; border-right: 0; border-bottom: 1px solid var(--line); }.brand-lockup { margin: 0 0 14px; padding: 0 4px; }.sidebar-section-label, .sidebar-spacer, .sidebar-footer { display: none; }.nav-list { display: flex; overflow-x: auto; gap: 5px; }.nav-item { padding: 8px 11px; white-space: nowrap; }.nav-item.is-active::before { display: none; }.main-content { width: 100%; }.topbar { min-height: 61px; padding: 0 18px; }.profile-chip span, .profile-chip .chevron { display: none; }.page-wrap { padding: 28px 17px 50px; }.page-heading { display: block; margin-bottom: 25px; }.page-heading h1 { font-size: 38px; }.page-heading p { max-width: 320px; font-size: 13px; }.page-heading .button { margin-top: 20px; width: 100%; }.stat-grid { gap: 8px; }.stat-card { min-height: 125px; padding: 14px; }.stat-label { font-size: 9px; }.stat-value { font-size: 31px; }.stat-detail { font-size: 11px; }.overview-grid { gap: 12px; }.health-panel { padding: 18px; }.health-main { gap: 17px; margin: 21px 0; }.health-ring { width: 100px; height: 100px; }.health-ring::after { inset: 8px; }.health-ring strong { font-size: 25px; }.health-copy p { font-size: 12px; }.war-card { min-height: 270px; }.roster-header { display: block; padding: 18px; }.roster-actions { margin-top: 17px; display: grid; grid-template-columns: 1fr 112px; }.search-box input { width: 100%; }.table-wrap th, .table-wrap td { padding-left: 18px; padding-right: 18px; }.table-footer { padding: 13px 18px; }.toast { right: 17px; bottom: 17px; } }
@media (max-width: 400px) { .stat-grid { grid-template-columns: 1fr 1fr; }.stat-label { letter-spacing: .06em; }.health-main { align-items: flex-start; }.health-copy strong { font-size: 13px; }.health-copy p { margin-top: 4px; }.health-bars { gap: 10px; }.health-row { grid-template-columns: 79px minmax(50px, 1fr) 28px; gap: 7px; font-size: 11px; } }
