: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; }
[hidden] { display: none !important; }
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-clan-link { color: var(--text); font-family: "Barlow Condensed", sans-serif; font-size: 24px; font-weight: 600; letter-spacing: .02em; line-height: 1; text-decoration: none; }
.brand-clan-link:hover { color: var(--orange); }
.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; text-decoration: none; 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; }
.landing-page { min-height: calc(100vh - 73px); padding: clamp(34px, 5vw, 72px) clamp(20px, 6vw, 86px) 44px; color: #172033; background: radial-gradient(circle at 88% 8%, rgba(255,155,74,.11), transparent 27%), linear-gradient(180deg, #fbfcfe 0%, #f1f4f8 100%); font-family: "DM Sans", sans-serif; }.landing-hero, .landing-stats, .landing-information, .landing-roster, .landing-footer-note { width: min(100%, 1160px); margin-left: auto; margin-right: auto; }.landing-hero { position: relative; display: flex; justify-content: space-between; gap: 40px; min-height: 355px; overflow: hidden; padding: clamp(34px, 5vw, 62px); border-radius: 20px; color: #eef4fc; background: radial-gradient(circle at 92% 8%, rgba(255,155,74,.22), transparent 30%), linear-gradient(128deg, #0c1726 0%, #17283b 62%, #1f2937 100%); box-shadow: 0 24px 55px rgba(20,35,55,.18); }.landing-hero::after { content: ""; position: absolute; right: -90px; bottom: -140px; width: 420px; height: 420px; border: 1px solid rgba(255,180,112,.2); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,180,112,.035), 0 0 0 58px rgba(255,180,112,.025); }.landing-hero-glow { position: absolute; top: -160px; left: 33%; width: 330px; height: 330px; border-radius: 50%; background: rgba(255,155,74,.08); filter: blur(12px); }.landing-hero-copy, .landing-hero-actions { position: relative; z-index: 1; }.landing-hero-copy { max-width: 670px; }.landing-eyebrow { color: #b9c8db; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }.landing-eyebrow span { padding: 0 5px; color: #ff9b4a; }.landing-eyebrow strong { color: #ffb16b; }.landing-hero h1 { max-width: 780px; margin: 17px 0 12px; font-family: "Barlow Condensed", sans-serif; font-size: clamp(58px, 8vw, 104px); font-weight: 600; letter-spacing: -.025em; line-height: .86; }.landing-hero p { max-width: 600px; margin: 0; color: #b8c6d8; font-size: 15px; line-height: 1.65; }.landing-status { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 27px; color: #73e0ad; font-size: 11px; font-weight: 700; }.landing-status-dot, .landing-footer-dot { width: 8px; height: 8px; border-radius: 50%; background: #52d29a; box-shadow: 0 0 0 5px rgba(82,210,154,.1); }.landing-status small { margin-left: 4px; color: #71859f; font-size: 11px; font-weight: 500; }.landing-hero-actions { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; min-width: 185px; }.landing-crest { width: 126px; height: 141px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #20140b; background: linear-gradient(145deg, #ffc071, #d77d3e); clip-path: polygon(50% 0, 92% 17%, 85% 75%, 50% 100%, 15% 75%, 8% 17%); box-shadow: 0 18px 35px rgba(0,0,0,.2); }.landing-crest span { font-family: "Barlow Condensed", sans-serif; font-size: 42px; font-weight: 700; line-height: 1; }.landing-crest small { margin-top: 7px; font-size: 9px; font-weight: 800; letter-spacing: .2em; }.landing-primary-action { display: inline-flex; align-items: center; gap: 19px; padding: 13px 17px 13px 19px; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; color: #24170e; background: #ff9b4a; box-shadow: 0 9px 25px rgba(255,155,74,.16); font-size: 12px; font-weight: 800; text-decoration: none; }.landing-primary-action:hover { background: #ffb36f; transform: translateY(-1px); }.landing-primary-action span { font-size: 18px; line-height: .7; }.landing-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 17px; }.landing-stat { min-height: 128px; padding: 19px 21px; border: 1px solid #dfe5ed; border-radius: 11px; background: rgba(255,255,255,.82); box-shadow: 0 8px 23px rgba(26,43,64,.04); }.landing-stat > span, .landing-detail-row span { display: block; color: #7b8ba0; font-size: 9px; font-weight: 800; letter-spacing: .14em; }.landing-stat strong { display: block; margin-top: 14px; color: #19263a; font-family: "Barlow Condensed", sans-serif; font-size: 32px; font-weight: 600; line-height: 1; }.landing-stat small { display: block; margin-top: 8px; color: #91a0b2; font-size: 11px; }.landing-stat-highlight { border-color: rgba(255,155,74,.3); background: linear-gradient(145deg, #fffaf5, #fff); }.landing-stat-highlight strong { color: #dd7833; font-size: 43px; }.landing-information { display: grid; grid-template-columns: 1.55fr .85fr; gap: 17px; margin-top: 17px; }.landing-info-card { padding: 27px 29px; border: 1px solid #dfe5ed; border-radius: 11px; background: #fff; box-shadow: 0 8px 23px rgba(26,43,64,.04); }.landing-info-card-wide { background: linear-gradient(145deg, #fff, #f7f9fc); }.landing-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }.landing-eyebrow.dark { color: #8a9aaf; }.landing-info-card h2, .landing-roster h2 { margin: 7px 0 10px; color: #1c2a40; font-family: "Barlow Condensed", sans-serif; font-size: 31px; font-weight: 600; line-height: 1; }.landing-info-card p { max-width: 650px; margin: 0; color: #687a91; font-size: 13px; line-height: 1.65; }.landing-card-mark { color: #d88244; font-size: 23px; }.landing-detail-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 27px; padding-top: 19px; border-top: 1px solid #e7ecf2; }.landing-detail-row strong { display: block; margin-top: 7px; color: #233249; font-size: 13px; }.landing-info-card-side { background: #122033; border-color: #122033; }.landing-info-card-side .landing-eyebrow.dark { color: #8ea2bb; }.landing-info-card-side h2 { color: #f0f5fb; }.landing-info-card-side p { color: #aebdd0; }.landing-text-action { display: inline-flex; gap: 8px; align-items: center; margin-top: 24px; color: #ffab62; font-size: 12px; font-weight: 800; text-decoration: none; }.landing-text-action:hover { color: #ffd0a4; }.landing-roster { margin-top: 17px; padding: 28px 29px 22px; border: 1px solid #dfe5ed; border-radius: 11px; background: #fff; box-shadow: 0 8px 23px rgba(26,43,64,.04); }.landing-roster-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }.landing-roster-count { margin-top: 3px; padding: 6px 9px; border-radius: 5px; color: #d87935; background: #fff3e9; font-size: 10px; font-weight: 800; }.landing-roster-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 17px; }.landing-player { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; align-items: center; gap: 9px; min-width: 0; padding: 10px; border: 1px solid #e7ecf2; border-radius: 7px; background: #f9fafc; }.landing-player-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #274361; font-size: 10px; font-weight: 800; }.landing-player-info { min-width: 0; }.landing-player-info strong, .landing-player-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.landing-player-info strong { color: #223049; font-size: 12px; }.landing-player-info small { margin-top: 3px; color: #8c9bad; font-size: 9px; }.landing-player-role, .landing-player-level { color: #718199; font-size: 9px; font-weight: 700; white-space: nowrap; }.landing-player-role { color: #d0783a; }.landing-roster-note { margin: 16px 0 0; color: #91a0b2; font-size: 11px; }.landing-footer-note { display: flex; align-items: center; gap: 9px; margin-top: 23px; color: #91a0b2; font-size: 11px; }.landing-footer-note span:not(.landing-footer-dot) { color: #b7c2d0; }.landing-footer-dot { width: 6px; height: 6px; box-shadow: none; }
.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; }
.clan-home-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(430px, 1fr); gap: 24px; padding: 24px; margin-bottom: 20px; border: 1px solid rgba(255,155,74,.2); border-radius: 10px; background: radial-gradient(circle at 8% 10%, rgba(255,155,74,.13), transparent 32%), linear-gradient(135deg, #1a2738, #111b29 70%); box-shadow: 0 16px 40px rgba(0,0,0,.12); }.clan-identity { display: flex; align-items: center; gap: 20px; min-width: 0; }.clan-crest { width: 104px; height: 116px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #20140b; background: linear-gradient(145deg, #ffc071, #d77d3e); clip-path: polygon(50% 0, 92% 17%, 85% 75%, 50% 100%, 15% 75%, 8% 17%); box-shadow: 0 12px 25px rgba(255,155,74,.14); }.clan-crest strong { font-family: "Barlow Condensed", sans-serif; font-size: 34px; line-height: 1; letter-spacing: .04em; }.clan-crest span { margin-top: 5px; font-size: 9px; font-weight: 800; letter-spacing: .17em; }.clan-home-copy { min-width: 0; }.clan-home-copy h2 { margin: 6px 0 7px; font-family: "Barlow Condensed", sans-serif; font-size: 38px; line-height: 1; font-weight: 600; }.clan-home-copy p { max-width: 530px; margin: 0; color: #b7c5d6; font-size: 13px; line-height: 1.55; }.clan-status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 17px; }.clan-status-note { color: var(--faint); font-size: 11px; }.clan-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; align-content: center; }.clan-fact { min-height: 76px; padding: 12px 13px; border: 1px solid rgba(188,204,228,.1); border-radius: 7px; background: rgba(8,14,23,.25); }.clan-fact span { display: block; color: var(--faint); font-size: 9px; letter-spacing: .12em; font-weight: 700; }.clan-fact strong { display: block; margin-top: 7px; color: var(--text); font-family: "Barlow Condensed", sans-serif; font-size: 20px; line-height: 1; font-weight: 600; }.clan-fact small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.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: 760px) { .landing-page { padding: 24px 15px 34px; }.landing-hero { display: block; min-height: 0; padding: 31px 24px; }.landing-hero h1 { font-size: clamp(55px, 18vw, 82px); }.landing-hero p { font-size: 13px; }.landing-hero-actions { display: flex; flex-direction: row; align-items: center; justify-content: space-between; min-width: 0; gap: 18px; margin-top: 32px; }.landing-crest { width: 86px; height: 96px; }.landing-crest span { font-size: 29px; }.landing-primary-action { padding: 12px 13px; }.landing-stats { grid-template-columns: repeat(2, 1fr); }.landing-stat { min-height: 112px; padding: 16px; }.landing-stat strong { font-size: 28px; }.landing-stat-highlight strong { font-size: 37px; }.landing-information { grid-template-columns: 1fr; }.landing-info-card { padding: 22px 20px; }.landing-detail-row { grid-template-columns: 1fr; gap: 14px; }.landing-roster { padding: 22px 20px 18px; }.landing-roster-list { grid-template-columns: 1fr; }.landing-player { grid-template-columns: 34px minmax(0, 1fr) auto; }.landing-player-level { display: none; }.landing-footer-note { flex-wrap: wrap; } }
@media (max-width: 1100px) { .sidebar { width: 218px; flex-basis: 218px; }.main-content { width: calc(100% - 218px); }.nav-item.is-active::before { left: -17px; }.clan-home-card { grid-template-columns: 1fr; }.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%; }.clan-home-card { display: block; padding: 18px; }.clan-identity { align-items: flex-start; gap: 14px; }.clan-crest { width: 76px; height: 86px; }.clan-crest strong { font-size: 26px; }.clan-crest span { font-size: 8px; }.clan-home-copy h2 { font-size: 31px; }.clan-home-copy p { font-size: 12px; }.clan-facts { margin-top: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }.clan-fact { min-height: 70px; padding: 10px; }.clan-fact strong { font-size: 18px; }.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; } }

.logout-button { border: 1px solid var(--line); border-radius: 6px; padding: 8px 11px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }.logout-button:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.04); }.admin-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin-bottom: 25px; }.admin-heading h2 { margin: 7px 0 5px; font-family: "Barlow Condensed", sans-serif; font-size: clamp(32px, 3vw, 45px); line-height: .98; font-weight: 600; }.admin-heading p { margin: 0; color: var(--muted); font-size: 14px; }.access-badge { padding: 6px 9px; border: 1px solid rgba(82,210,154,.2); border-radius: 5px; color: var(--green); background: var(--green-soft); font-size: 10px; font-weight: 700; letter-spacing: .08em; }.admin-grid { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr); gap: 20px; margin-bottom: 20px; }.access-summary-card, .role-manager-card, .role-list-card { padding: 22px 24px; }.access-lock { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); font-size: 14px; font-weight: 700; }.current-account { display: flex; align-items: center; gap: 11px; margin: 26px 0 18px; padding: 14px; border: 1px solid rgba(188,204,228,.1); border-radius: 7px; background: rgba(8,14,23,.22); }.current-account > div:nth-child(2) { min-width: 0; flex: 1; }.current-account strong, .current-account span { display: block; }.current-account strong { overflow: hidden; color: var(--text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.current-account div span { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.account-avatar { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #2c1c0a; background: #e5b45e; font-size: 10px; font-weight: 800; }.admin-help, .form-hint { color: var(--muted); font-size: 12px; line-height: 1.55; }.admin-help { margin: 0; }.role-form { display: grid; gap: 13px; margin-top: 21px; }.role-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }.role-form input, .role-form select { width: 100%; height: 40px; box-sizing: border-box; padding: 0 11px; color: var(--text); border: 1px solid var(--line-strong); border-radius: 5px; outline: none; background: #182638; font-size: 13px; }.role-form input:focus, .role-form select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,155,74,.1); }.role-form .form-row { align-items: end; }.role-submit { height: 40px; }.form-hint { margin: 14px 0 0; color: var(--faint); font-size: 11px; }.directory-count { color: var(--muted); font-size: 11px; }.role-list { margin-top: 18px; }.role-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 0; border-top: 1px solid rgba(188,204,228,.07); }.role-person { display: flex; align-items: center; gap: 10px; min-width: 0; }.role-person > div:last-child { min-width: 0; }.role-person strong, .role-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.role-person strong { color: var(--text); font-size: 12px; }.role-person small { margin-top: 3px; color: var(--faint); font-size: 10px; }.role-row-meta { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }.role-pill { display: inline-block; padding: 4px 7px; border-radius: 4px; font-size: 10px; font-weight: 700; }.role-admin { color: var(--orange); background: var(--orange-soft); }.role-co-leader { color: var(--green); background: var(--green-soft); }.role-member { color: #b6c4d8; background: rgba(112,128,149,.14); }.role-elder { color: var(--purple); background: rgba(181,162,239,.12); }.owner-label { color: var(--faint); font-size: 10px; }.role-empty { padding: 20px 0 4px; color: var(--muted); font-size: 12px; }.permission-denied { max-width: 610px; margin: 30px auto; padding: 64px 28px; border: 1px solid rgba(242,142,114,.22); border-radius: 10px; background: linear-gradient(145deg, rgba(65,43,33,.52), rgba(17,28,43,.86)); text-align: center; }.permission-icon { width: 48px; height: 48px; margin: 0 auto 19px; display: grid; place-items: center; border-radius: 50%; color: #24140f; background: var(--orange); font-size: 25px; font-weight: 800; }.permission-denied h2 { margin: 7px 0 8px; font-family: "Barlow Condensed", sans-serif; font-size: 34px; }.permission-denied p { max-width: 410px; margin: 0 auto 23px; color: #c1a697; font-size: 13px; line-height: 1.6; }

@media (max-width: 780px) { .admin-heading { display: block; }.admin-heading .access-badge { display: inline-block; margin-top: 18px; }.admin-grid { grid-template-columns: 1fr; gap: 12px; }.access-summary-card, .role-manager-card, .role-list-card { padding: 18px; }.role-form .form-row { grid-template-columns: 1fr 1fr; }.logout-button { padding: 7px 8px; font-size: 10px; } }

@media (max-width: 400px) { .role-form .form-row { grid-template-columns: 1fr; }.role-submit { width: 100%; }.permission-denied { margin: 18px 0; padding: 48px 20px; } }

body.dashboard-blocked .sidebar, body.dashboard-blocked .topbar { display: none; }
body.dashboard-blocked .main-content { width: 100%; }
body.dashboard-blocked .page-wrap { min-height: 100vh; display: grid; place-items: center; box-sizing: border-box; }
body.dashboard-blocked .page-wrap > * { display: none !important; }
body.dashboard-blocked .page-wrap > .permission-denied { display: block !important; width: min(100%, 610px); box-sizing: border-box; margin: 0; }
.admin-grid { display: block; }
.admin-action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 21px; }
.button-danger { border: 1px solid rgba(242, 142, 114, .25); color: #ffc1a4; background: rgba(104, 43, 33, .55); }
.button-danger:hover { background: rgba(130, 54, 39, .7); }
.role-revoke { padding: 6px 9px; font-size: 10px; }

.landing-site-footer { padding: 30px clamp(20px, 6vw, 86px) 34px; color: #aebdd0; background: #122033; font-family: "DM Sans", sans-serif; }
.landing-footer-inner { width: min(100%, 1160px); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.landing-copyright { margin: 0; color: #8ea2bb; font-size: 11px; }
.landing-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.landing-footer-link { color: #ffb16b; font-size: 11px; font-weight: 700; text-decoration: none; }
.landing-footer-link:hover { color: #ffd0a4; }
.landing-footer-link span { margin-left: 4px; font-size: 13px; }

@media (max-width: 760px) {
  .landing-site-footer { padding: 26px 15px 30px; }
  .landing-footer-inner { display: block; }
  .landing-footer-links { justify-content: flex-start; margin-top: 17px; gap: 12px 18px; }
}

.dashboard-minimal .page-heading,
.dashboard-minimal .clan-home-card,
.dashboard-minimal .stat-grid,
.dashboard-minimal .overview-grid,
.dashboard-minimal .lower-grid,
.dashboard-minimal .view-placeholder { display: none !important; }
.dashboard-minimal .topbar .icon-button { display: none; }
.clan-settings-panel { width: min(100%, 760px); margin: 8px auto 0; }
.settings-heading { margin-bottom: 25px; }
.settings-heading h1 { margin: 8px 0 4px; font-family: "Barlow Condensed", sans-serif; font-size: clamp(32px, 3vw, 45px); line-height: .98; font-weight: 600; }
.settings-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.clan-settings-card { padding: 27px 29px 25px; }
.clan-settings-form { display: grid; gap: 17px; max-width: 560px; }
.clan-settings-form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 600; }
.clan-settings-form input { width: 100%; height: 42px; padding: 0 12px; color: var(--text); border: 1px solid var(--line-strong); border-radius: 6px; outline: none; background: #182638; font-size: 13px; }
.clan-settings-form input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,155,74,.1); }
.clan-settings-form .button { justify-self: start; margin-top: 3px; }

@media (max-width: 720px) {
  .clan-settings-panel { width: 100%; margin-top: 0; }
  .clan-settings-card { padding: 21px 18px; }
  .settings-heading { margin-bottom: 20px; }
  .settings-heading p { font-size: 13px; }
  .clan-settings-form .button { width: 100%; }
}

body:not(.dashboard-route) .dashboard-nav-pills { display: none; }
body.dashboard-route { color: #111118; background: #f7f6fb; }
body.dashboard-route .app-shell { min-height: 100vh; background: #f7f6fb; }
body.dashboard-route .sidebar { width: 72px; flex: 0 0 72px; align-items: center; padding: 18px 14px; border-right: 0; background: #f7f6fb; }
body.dashboard-route .brand-lockup { width: 44px; height: 44px; margin: 0 0 33px; padding: 0; display: grid; place-items: center; }
body.dashboard-route .brand-clan-link { width: 36px; height: 36px; display: grid; place-items: center; color: #101114; font-size: 0; text-decoration: none; }
body.dashboard-route .brand-clan-link::before { content: "✣"; font-size: 31px; line-height: 1; }
body.dashboard-route .sidebar-section-label, body.dashboard-route .sidebar-footer { display: none; }
body.dashboard-route .sidebar-spacer { flex: 1; min-height: 0; }
body.dashboard-route .nav-list { width: 44px; display: grid; gap: 11px; }
body.dashboard-route .nav-item { width: 44px; height: 44px; justify-content: center; padding: 0; border-radius: 14px; color: #a6a5b2; font-size: 0; }
body.dashboard-route .nav-item svg { width: 18px; height: 18px; }
body.dashboard-route .nav-item:hover { color: #7169bd; background: #ecebfa; }
body.dashboard-route .nav-item.is-active { color: #746bc8; background: #e4e1fb; box-shadow: 0 7px 16px rgba(117, 107, 200, .12); }
body.dashboard-route .nav-item.is-active::before, body.dashboard-route .nav-count { display: none; }
body.dashboard-route .main-content { width: calc(100% - 72px); min-width: 0; background: #f7f6fb; }
body.dashboard-route .topbar { min-height: 78px; padding: 18px 42px 0; border-bottom: 0; background: transparent; }
body.dashboard-route .breadcrumb { display: none; }
body.dashboard-route .dashboard-nav-pills { display: flex; align-items: center; gap: 7px; }
.dashboard-nav-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; color: #35343e; background: transparent; font-size: 11px; font-weight: 600; text-decoration: none; }
.dashboard-nav-pill:hover { background: #ebeaf4; }
.dashboard-nav-pill.is-active { color: #fff; background: #8880d2; box-shadow: 0 8px 15px rgba(113, 103, 194, .2); }
body.dashboard-route .topbar-actions { margin-left: auto; gap: 13px; }
body.dashboard-route .topbar .icon-button { display: inline-grid; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #686776; background: #fff; box-shadow: 0 5px 15px rgba(67, 66, 89, .06); }
body.dashboard-route .profile-chip { color: #8d8b98; font-size: 10px; }
body.dashboard-route .avatar { width: 32px; height: 32px; }
body.dashboard-route .logout-button { border: 0; color: #85838f; background: #fff; box-shadow: 0 5px 15px rgba(67, 66, 89, .06); }
body.dashboard-route .page-wrap { max-width: 1180px; padding: 10px 42px 54px; }
body.dashboard-route .dashboard-minimal .page-heading,
body.dashboard-route .dashboard-minimal .clan-home-card,
body.dashboard-route .dashboard-minimal .stat-grid,
body.dashboard-route .dashboard-minimal .overview-grid,
body.dashboard-route .dashboard-minimal .lower-grid,
body.dashboard-route .dashboard-minimal .view-placeholder { display: none !important; }
.dashboard-greeting { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 0 0 24px; }
.dashboard-greeting h1 { margin: 5px 0 7px; color: #111118; font-family: "DM Sans", sans-serif; font-size: clamp(30px, 3vw, 38px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.dashboard-greeting h1 span { font-weight: 600; }
.dashboard-greeting p { margin: 0; color: #92909f; font-size: 13px; }
.dashboard-search-button { width: 36px; height: 36px; flex: 0 0 auto; border: 0; border-radius: 50%; color: #5d5b68; background: #fff; box-shadow: 0 5px 15px rgba(67, 66, 89, .06); font-size: 19px; line-height: 1; }
.dashboard-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dashboard-card { min-width: 0; padding: 22px 20px; border: 1px solid rgba(226, 224, 234, .72); border-radius: 18px; color: #121219; background: #fff; box-shadow: 0 8px 24px rgba(71, 68, 100, .055); }
.dashboard-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dashboard-card-kicker { color: #9694a2; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dashboard-card h2 { margin: 7px 0 0; color: #111118; font-family: "DM Sans", sans-serif; font-size: 19px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.dashboard-card-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #61606c; background: #f1f0f6; font-size: 15px; }
.dashboard-tag-summary { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; margin-top: 23px; }
.dashboard-tag-summary small { display: block; color: #a19faa; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.dashboard-tag-summary strong { display: block; margin-top: 7px; color: #111118; font-size: clamp(21px, 2.3vw, 29px); font-weight: 500; letter-spacing: -.04em; white-space: nowrap; }
.dashboard-tag-summary > div:nth-child(2) strong { color: #7b73c8; }
.dashboard-dots { height: 78px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: 5px; margin-top: 20px; padding: 0 2px; }
.dashboard-dots span { position: relative; display: block; min-height: 18px; border-radius: 6px; background: linear-gradient(180deg, #c6f26a, #b9e95c); }
.dashboard-dots span::before { content: ""; position: absolute; top: -5px; left: 50%; width: 7px; height: 7px; transform: translateX(-50%); border: 2px solid #9d91d9; border-radius: 50%; background: #fff; }
.dashboard-dots span:nth-child(1) { height: 40%; }.dashboard-dots span:nth-child(2) { height: 72%; }.dashboard-dots span:nth-child(3) { height: 55%; }.dashboard-dots span:nth-child(4) { height: 86%; }.dashboard-dots span:nth-child(5) { height: 45%; }.dashboard-dots span:nth-child(6) { height: 66%; }.dashboard-dots span:nth-child(7) { height: 78%; }.dashboard-dots span:nth-child(8) { height: 50%; }.dashboard-dots span:nth-child(9) { height: 92%; }.dashboard-dots span:nth-child(10) { height: 61%; }.dashboard-dots span:nth-child(11) { height: 75%; }.dashboard-dots span:nth-child(12) { height: 48%; }
.dashboard-live-card { background: linear-gradient(145deg, #fff, #fcfbff); }
.dashboard-live-metric { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.dashboard-live-metric strong { color: #111118; font-size: 48px; font-weight: 500; letter-spacing: -.06em; line-height: .9; }
.dashboard-live-metric span { color: #9694a2; font-size: 10px; line-height: 1.35; }
.dashboard-live-status { display: flex; align-items: center; gap: 7px; margin-top: 26px; color: #6c6a78; font-size: 10px; }
.dashboard-live-status span { width: 7px; height: 7px; border-radius: 50%; background: #a6df4f; box-shadow: 0 0 0 4px rgba(166, 223, 79, .15); }
.dashboard-access-card { background: linear-gradient(145deg, #fff, #f4f1ff); }
.dashboard-access-card p { max-width: 220px; margin: 28px 0 22px; color: #858391; font-size: 12px; line-height: 1.55; }
.dashboard-card-action { display: inline-flex; align-items: center; gap: 7px; color: #111118; font-size: 11px; font-weight: 700; text-decoration: none; }
.dashboard-card-action:hover { color: #746bc8; }
.dashboard-card-action span { font-size: 15px; }
.dashboard-settings-card { margin-top: 14px; padding-bottom: 22px; }
.dashboard-settings-card .dashboard-card-top { margin-bottom: 20px; }
.clan-settings-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 12px; max-width: none; }
.clan-settings-form label { display: grid; gap: 7px; color: #858391; font-size: 11px; font-weight: 600; }
.clan-settings-form input { width: 100%; height: 40px; padding: 0 12px; color: #1a1921; border: 1px solid #e2e0e9; border-radius: 9px; outline: none; background: #f9f8fc; font-size: 12px; }
.clan-settings-form input:focus { border-color: #8981d5; box-shadow: 0 0 0 3px rgba(137, 129, 213, .12); }
.clan-settings-form .button { height: 40px; white-space: nowrap; }
.dashboard-settings-card .form-hint { margin: 15px 0 0; color: #aaa8b4; font-size: 10px; }
.dashboard-chart-card { position: relative; overflow: hidden; margin-top: 14px; padding-bottom: 18px; }
.dashboard-chart-card h2 { font-size: 21px; }
.dashboard-legend { display: flex; align-items: center; gap: 6px; color: #686674; font-size: 10px; }
.dashboard-legend span { width: 8px; height: 8px; border-radius: 50%; }
.legend-this-year { margin-left: 8px; background: #bdea5e; }.legend-last-year { margin-left: 13px; background: #9690ca; }
.dashboard-chart-copy { display: flex; align-items: baseline; gap: 10px; margin-top: 19px; }
.dashboard-chart-copy strong { font-size: 16px; font-weight: 600; }.dashboard-chart-copy span { color: #9896a2; font-size: 11px; }
.dashboard-chart { position: relative; height: 155px; margin-top: 8px; padding: 0 10px 0 14px; border-bottom: 1px solid #e7e5ed; }
.dashboard-chart::before { content: ""; position: absolute; inset: 18px 10px 30px 14px; background: repeating-linear-gradient(to bottom, transparent 0 36px, #efedf4 37px 38px); pointer-events: none; }
.dashboard-chart-bars { position: absolute; inset: 12px 12px 31px 15px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: 16px; }
.dashboard-chart-bars i { position: relative; z-index: 1; display: block; min-height: 20px; border-radius: 6px 6px 3px 3px; background: #bdea5e; box-shadow: inset 0 0 0 1px rgba(120, 136, 50, .08); }
.dashboard-chart-bars i:nth-child(even) { background: #9690ca; box-shadow: inset 0 0 0 1px rgba(85, 79, 145, .1); }
.dashboard-chart-labels { position: absolute; right: 12px; bottom: 8px; left: 15px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; color: #94929f; font-size: 9px; text-align: center; }

@media (max-width: 900px) {
  body.dashboard-route .topbar { padding-right: 24px; padding-left: 24px; }
  body.dashboard-route .page-wrap { padding-right: 24px; padding-left: 24px; }
  .dashboard-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-chart-card, .dashboard-settings-card { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body.dashboard-route .sidebar { width: 60px; flex-basis: 60px; padding-right: 8px; padding-left: 8px; }
  body.dashboard-route .main-content { width: calc(100% - 60px); }
  body.dashboard-route .topbar { min-height: 70px; padding: 15px 15px 0; }
  body.dashboard-route .dashboard-nav-pills { gap: 2px; }
  .dashboard-nav-pill { min-height: 31px; padding: 0 9px; font-size: 10px; }
  body.dashboard-route .profile-chip { display: none; }
  body.dashboard-route .page-wrap { padding: 12px 15px 35px; }
  .dashboard-greeting { margin-bottom: 19px; }
  .dashboard-greeting h1 { font-size: 28px; }
  .dashboard-greeting p { max-width: 265px; font-size: 12px; }
  .dashboard-card-grid { grid-template-columns: 1fr; }
  .dashboard-chart-card, .dashboard-settings-card { grid-column: auto; }
  .clan-settings-form { grid-template-columns: 1fr; }
  .clan-settings-form .button { width: 100%; }
  .dashboard-legend { display: none; }
  .dashboard-chart-bars, .dashboard-chart-labels { gap: 7px; }
}

/* Admin workspace refresh: a calm, light task-management surface. */
body.dashboard-route .brand-mark, body.dashboard-route .brand-word, body.dashboard-route .workspace-switcher, body.dashboard-route .sidebar-projects, body.dashboard-route .sidebar-progress, body.dashboard-route .sidebar-subsection-label { display: none; }
body.dashboard-route .admin-top-heading, body.dashboard-route .admin-search, body.dashboard-route .topbar .icon-button[aria-label="Help"] { display: none; }
body.admin-route .brand-badge { width: 25px; height: 25px; flex: 0 0 auto; display: block; border-radius: 7px; object-fit: contain; }
body.dashboard-route .brand-clan-link::before { display: none; }
body.dashboard-route .brand-badge { width: 36px; height: 36px; display: block; object-fit: contain; }
body.admin-route { color: #171b1c; background: #f5f7f6; }
body.admin-route .app-shell { min-height: 100vh; background: #f5f7f6; }
body.admin-route .sidebar { width: 183px; flex: 0 0 183px; box-sizing: border-box; padding: 16px 10px 14px; color: #303637; background: #f0f4f2; border-right: 1px solid #e5ebe8; }
body.admin-route .brand-lockup { margin: 0 8px 17px; padding: 0; }
body.admin-route .brand-clan-link { display: flex; align-items: center; gap: 8px; color: #171b1c; font-family: "DM Sans", sans-serif; font-size: 16px; font-weight: 700; letter-spacing: -.03em; line-height: 1; text-decoration: none; }
body.admin-route .brand-mark { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: #d9ff3d; background: #1c3fd3; font-size: 20px; font-weight: 700; line-height: 1; }
body.admin-route .brand-word { display: inline; }
body.admin-route .workspace-switcher { width: 100%; display: flex; align-items: center; gap: 8px; min-height: 34px; margin: 0 0 16px; padding: 5px 7px; border: 1px solid #dce4e0; border-radius: 6px; color: #333a39; background: #e4ebe8; text-align: left; cursor: pointer; }
body.admin-route .workspace-switcher:hover { background: #dfe8e4; }
body.admin-route .workspace-mark { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 4px; color: #2ba868; background: #f7fff9; font-size: 15px; }
body.admin-route .workspace-copy { min-width: 0; flex: 1; }
body.admin-route .workspace-copy strong, body.admin-route .workspace-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.admin-route .workspace-copy strong { font-size: 10px; font-weight: 700; }
body.admin-route .workspace-copy small { margin-top: 1px; color: #84908b; font-size: 8px; }
body.admin-route .workspace-switcher > svg { width: 12px; height: 12px; fill: none; stroke: #74807c; stroke-width: 2; }
body.admin-route .sidebar-section-label, body.admin-route .sidebar-subsection-label { padding: 0 10px 7px; color: #9aa5a0; font-size: 8px; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; }
body.admin-route .sidebar-subsection-label { margin-top: 16px; padding-bottom: 5px; }
body.admin-route .nav-list { width: 100%; display: grid; gap: 2px; }
body.admin-route .nav-item { position: relative; width: 100%; min-height: 31px; box-sizing: border-box; justify-content: flex-start; padding: 0 9px; border: 0; border-radius: 6px; color: #66716e; background: transparent; font: 500 11px/1 "DM Sans", sans-serif; text-decoration: none; cursor: pointer; }
body.admin-route .nav-item svg { width: 14px; height: 14px; margin-right: 9px; fill: none; stroke: currentColor; stroke-width: 1.55; }
body.admin-route .nav-item:hover { color: #29302f; background: #e6ece9; }
body.admin-route .nav-item.is-active { color: #212826; background: #fff; box-shadow: 0 2px 8px rgba(34, 55, 47, .06); }
body.admin-route .nav-item.is-active::before { display: none; }
body.admin-route .nav-count { margin-left: auto; color: #899590; font-size: 9px; }
body.admin-route .sidebar-projects { margin-top: 20px; padding: 0 3px; }
body.admin-route .sidebar-projects-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 7px 7px; color: #9aa5a0; font-size: 8px; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; }
body.admin-route .sidebar-projects-heading button { width: 15px; height: 15px; padding: 0; border: 0; border-radius: 50%; color: #267f5d; background: transparent; font-size: 15px; line-height: 13px; cursor: pointer; }
body.admin-route .sidebar-projects-heading button:hover { background: #dbe8e1; }
body.admin-route .sidebar-project { display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 7px; border-radius: 6px; color: #58645f; font-size: 10px; text-decoration: none; }
body.admin-route .sidebar-project:hover { background: #e6ece9; color: #1c2421; }
body.admin-route .sidebar-project.is-active { color: #27322d; background: #e4ece8; }
body.admin-route .sidebar-project-dot { width: 13px; height: 13px; display: grid; place-items: center; border-radius: 4px; color: #fff; background: #6259e8; font-size: 8px; }
body.admin-route .sidebar-spacer { min-height: 22px; }
body.admin-route .sidebar-progress { margin: 0 5px 13px; padding: 11px 10px 10px; border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(34, 55, 47, .04); }
body.admin-route .sidebar-progress-top { display: flex; flex-direction: column; gap: 3px; }
body.admin-route .sidebar-progress-top strong { color: #394440; font-size: 10px; font-weight: 700; }
body.admin-route .sidebar-progress-top span { color: #99a39f; font-size: 8px; }
body.admin-route .sidebar-progress-track { height: 4px; margin-top: 9px; overflow: hidden; border-radius: 10px; background: #e7ece9; }
body.admin-route .sidebar-progress-track span { display: block; width: 16%; height: 100%; border-radius: inherit; background: #8fd353; }
body.admin-route .sidebar-footer { display: none; }
body.admin-route .main-content { width: calc(100% - 183px); min-width: 0; background: #f5f7f6; }
body.admin-route .topbar { position: relative; min-height: 68px; box-sizing: border-box; padding: 11px 28px 0; border-bottom: 0; background: transparent; }
body.admin-route .admin-top-heading { align-self: flex-start; }
body.admin-route .admin-top-heading h1 { margin: 0; color: #171b1c; font-size: 18px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
body.admin-route .admin-top-heading p { margin: 3px 0 0; color: #77827e; font-size: 10px; line-height: 1.25; }
body.admin-route .breadcrumb, body.admin-route .dashboard-nav-pills { display: none; }
body.admin-route .topbar-actions { margin-left: auto; gap: 10px; }
body.admin-route .admin-search { width: 201px; height: 30px; display: flex; align-items: center; box-sizing: border-box; padding: 0 6px 0 9px; border: 1px solid #e4eae7; border-radius: 7px; color: #87928e; background: #fff; }
body.admin-route .admin-search svg { width: 13px; height: 13px; flex: 0 0 auto; fill: currentColor; }
body.admin-route .admin-search input { min-width: 0; flex: 1; height: 100%; padding: 0 6px; border: 0; outline: 0; color: #26302d; background: transparent; font: 10px "DM Sans", sans-serif; }
body.admin-route .admin-search input::placeholder { color: #a4adaa; }
body.admin-route .admin-search span { padding: 2px 4px; border: 1px solid #e5ebe8; border-radius: 3px; color: #a5afab; font-size: 8px; line-height: 1; white-space: nowrap; }
body.admin-route .topbar .icon-button { width: 29px; height: 29px; display: inline-grid; place-items: center; padding: 0; border: 1px solid #e4eae7; border-radius: 50%; color: #596560; background: #fff; box-shadow: none; font-size: 14px; cursor: pointer; }
body.admin-route .topbar .icon-button:hover { color: #1b2420; border-color: #cbd7d1; background: #fafdfe; }
body.admin-route .topbar .icon-button svg { width: 14px; height: 14px; fill: currentColor; }
body.admin-route .profile-chip { display: flex; align-items: center; gap: 6px; padding: 0; border: 0; color: #626e69; background: transparent; font: 700 9px "DM Sans", sans-serif; letter-spacing: .08em; cursor: pointer; }
body.admin-route .profile-chip .avatar { width: 29px; height: 29px; color: #33423d; background: #dce6e2; border: 1px solid #c9d6d0; }
body.admin-route .profile-chip:hover .avatar { border-color: #9db6aa; }
body.admin-route .profile-chip .chevron { width: 11px; height: 11px; }
body.admin-route .profile-menu { position: absolute; z-index: 10; top: 53px; right: 28px; width: 204px; padding: 11px 0 7px; border: 1px solid #e1e8e4; border-radius: 9px; background: #fff; box-shadow: 0 14px 34px rgba(36, 60, 50, .13); }
body.admin-route .profile-menu[hidden] { display: none; }
body.admin-route .profile-menu-user { display: flex; align-items: center; gap: 9px; padding: 0 12px 10px; }
body.admin-route .profile-menu-user .avatar { width: 30px; height: 30px; }
body.admin-route .profile-menu-user strong, body.admin-route .profile-menu-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.admin-route .profile-menu-user strong { color: #27302d; font-size: 11px; }
body.admin-route .profile-menu-user small { margin-top: 3px; color: #8a9791; font-size: 8px; }
body.admin-route .profile-menu-divider { border-top: 1px solid #edf1ef; }
body.admin-route .profile-menu button { width: 100%; padding: 8px 12px; border: 0; color: #596560; background: transparent; text-align: left; font: 10px "DM Sans", sans-serif; cursor: pointer; }
body.admin-route .profile-menu button:hover { color: #1e2924; background: #f4f7f5; }
body.admin-route .profile-menu button:last-child { color: #b35d3f; }
body.admin-route .page-wrap { max-width: none; padding: 3px 28px 52px; }
body.admin-route .admin-panel { display: block; }
body.admin-route .admin-workspace-meta { display: flex; align-items: center; justify-content: space-between; min-height: 20px; margin-bottom: 10px; color: #8e9994; font-size: 9px; }
body.admin-route .access-badge { padding: 4px 8px; border: 1px solid #d4ebda; border-radius: 999px; color: #36885a; background: #edf9ef; font-size: 8px; letter-spacing: .08em; }
body.admin-route .admin-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; margin-bottom: 12px; border: 1px solid #e5ebe8; border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(44, 69, 58, .035); }
body.admin-route .admin-stat-card { min-height: 68px; box-sizing: border-box; padding: 14px 16px; border-right: 1px dotted #d5dfdb; }
body.admin-route .admin-stat-card:last-child { border-right: 0; }
body.admin-route .admin-stat-card span { display: block; color: #7f8b86; font-size: 9px; }
body.admin-route .admin-stat-card strong { display: block; margin-top: 8px; color: #151a19; font-size: 22px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
body.admin-route .admin-workspace-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(270px, .9fr); grid-template-rows: 222px 222px; gap: 12px; }
body.admin-route .workspace-card { min-width: 0; box-sizing: border-box; overflow: hidden; border: 1px solid #e2e9e5; border-radius: 11px; color: #171b1b; background: #fff; box-shadow: 0 2px 10px rgba(44, 69, 58, .035); }
body.admin-route .workspace-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 0 12px; border-bottom: 1px dotted #d5ded9; }
body.admin-route .workspace-card h2 { margin: 0; color: #161a19; font: 600 13px/1 "DM Sans", sans-serif; letter-spacing: -.02em; }
body.admin-route .workspace-card-tools { display: flex; align-items: center; gap: 6px; }
body.admin-route .workspace-card-tools > span { padding: 4px 5px; border: 1px solid #edf1ef; border-radius: 4px; color: #82908a; font-size: 8px; white-space: nowrap; }
body.admin-route .workspace-more { width: 24px; height: 24px; padding: 0; border: 1px solid #edf1ef; border-radius: 5px; color: #8c9792; background: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
body.admin-route .workspace-more:hover { color: #323d37; background: #f5f8f6; }
body.admin-route .workspace-empty { height: calc(100% - 43px); display: flex; align-items: center; flex-direction: column; justify-content: center; padding: 0 20px; text-align: center; }
body.admin-route .workspace-empty strong { margin-top: 11px; color: #1e2924; font-size: 10px; font-weight: 600; }
body.admin-route .workspace-empty p { max-width: 220px; margin: 5px 0 0; color: #94a09a; font-size: 9px; line-height: 1.4; }
body.admin-route .empty-task-art { position: relative; width: 88px; height: 57px; margin-bottom: 1px; border-radius: 50%; background: #f6faf8; }
body.admin-route .empty-task-art::before { content: ""; position: absolute; top: 19px; left: 14px; width: 60px; height: 31px; border-radius: 4px; background: #fff; box-shadow: 0 5px 10px rgba(67, 89, 79, .08); }
body.admin-route .empty-task-art span { position: absolute; z-index: 1; top: 24px; left: 19px; width: 28px; height: 20px; border-radius: 3px; background: #e8eeeb; }
body.admin-route .empty-task-art i, body.admin-route .empty-task-art b { position: absolute; z-index: 1; left: 54px; height: 4px; border-radius: 5px; background: #dfe7e2; }
body.admin-route .empty-task-art i { top: 26px; width: 25px; }
body.admin-route .empty-task-art b { top: 35px; width: 18px; }
body.admin-route .projects-card, body.admin-route .people-card, body.admin-route .notepad-card { display: block; }
body.admin-route .new-project-button { width: calc(100% - 24px); height: 48px; display: flex; align-items: center; gap: 9px; margin: 9px 12px 8px; padding: 0 12px; border: 1px solid #edf1ef; border-radius: 8px; color: #202725; background: #fff; font: 500 11px "DM Sans", sans-serif; text-align: left; cursor: pointer; }
body.admin-route .new-project-button:hover { border-color: #b8cec3; background: #fbfdfc; }
body.admin-route .new-project-button span { color: #79857f; font-size: 21px; line-height: 1; }
body.admin-route .project-tile { display: flex; align-items: center; gap: 8px; margin: 0 12px; padding: 8px 7px; border: 1px solid #eef2f0; border-radius: 7px; }
body.admin-route .project-tile-mark { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; color: #fff; background: #6259e8; font-size: 12px; }
body.admin-route .project-tile div { min-width: 0; flex: 1; }
body.admin-route .project-tile strong, body.admin-route .project-tile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.admin-route .project-tile strong { color: #26302d; font-size: 9px; }
body.admin-route .project-tile small { margin-top: 2px; color: #9ba6a1; font-size: 8px; }
body.admin-route .project-tile-arrow { color: #abb5b0; font-size: 14px; }
body.admin-route .people-card .workspace-card-tools { gap: 5px; }
body.admin-route .workspace-add { width: 21px; height: 21px; padding: 0; border: 0; border-radius: 5px; color: #fff; background: #2349dc; font-size: 17px; line-height: 1; cursor: pointer; }
body.admin-route .workspace-add:hover { background: #1736b6; }
body.admin-route .empty-people-art { display: flex; gap: 6px; align-items: end; height: 58px; padding: 0 13px; border-radius: 50%; background: #f6faf8; }
body.admin-route .empty-people-art span { width: 31px; height: 39px; display: block; border-radius: 8px 8px 4px 4px; background: #eaf0ed; box-shadow: 0 8px 0 -3px #dce5e0; }
body.admin-route .empty-people-art span + span { height: 33px; }
body.admin-route .notepad-card { background: #f4f8f6; }
body.admin-route .notepad-card .workspace-card-header { border-bottom-color: #cfdcd5; }
body.admin-route .notepad-lock { color: #6f9080; font-size: 13px; }
body.admin-route .notepad-card textarea { width: 100%; height: calc(100% - 82px); box-sizing: border-box; resize: none; padding: 12px; border: 0; outline: 0; color: #37433d; background: transparent; font: 9px "DM Sans", sans-serif; }
body.admin-route .notepad-card textarea::placeholder { color: #87958e; }
body.admin-route .notepad-toolbar { display: flex; align-items: center; gap: 12px; height: 39px; padding: 0 12px; color: #7d8e85; font-size: 11px; }
body.admin-route .notepad-toolbar b, body.admin-route .notepad-toolbar i, body.admin-route .notepad-toolbar u { font-size: 11px; }
body.admin-route .admin-access-section { margin-top: 16px; }
body.admin-route .admin-section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 10px; padding: 0 2px; }
body.admin-route .admin-section-heading h2 { margin: 4px 0 3px; color: #1d2622; font-size: 19px; font-weight: 600; letter-spacing: -.03em; }
body.admin-route .admin-section-heading p { margin: 0; color: #85918b; font-size: 10px; }
body.admin-route .admin-section-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #6259e8; background: #eeecff; font-size: 13px; }
body.admin-route .admin-management-grid { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: 12px; }
body.admin-route .role-manager-card, body.admin-route .role-list-card { padding: 0; }
body.admin-route .role-form { display: grid; gap: 10px; margin: 14px 12px 0; }
body.admin-route .role-form label { display: grid; gap: 5px; color: #728079; font-size: 9px; font-weight: 600; }
body.admin-route .role-form input { width: 100%; height: 33px; box-sizing: border-box; padding: 0 9px; border: 1px solid #dfe7e2; border-radius: 6px; color: #25302b; background: #f8faf9; font-size: 10px; outline: 0; }
body.admin-route .role-form input:focus { border-color: #9ebcaf; box-shadow: 0 0 0 3px rgba(137, 178, 153, .12); }
body.admin-route .admin-action-row { margin-top: 1px; }
body.admin-route .role-submit { min-height: 31px; padding: 0 11px; border-radius: 6px; color: #fff; background: #2349dc; box-shadow: none; font-size: 9px; }
body.admin-route .role-submit:hover { background: #1838bc; }
body.admin-route .role-submit span { font-size: 12px; }
body.admin-route .form-hint { margin: 11px 12px 13px; color: #a0aaa5; font-size: 8px; line-height: 1.45; }
body.admin-route .role-list { margin: 0 12px 10px; }
body.admin-route .role-row { padding: 9px 0; border-top: 1px solid #edf1ef; }
body.admin-route .role-person { gap: 8px; }
body.admin-route .role-person strong { color: #2b3530; font-size: 9px; }
body.admin-route .role-person small { margin-top: 2px; color: #929e98; font-size: 8px; }
body.admin-route .account-avatar { width: 25px; height: 25px; color: #4c3e12; background: #e4eea6; font-size: 8px; }
body.admin-route .role-row-meta { gap: 6px; }
body.admin-route .role-pill { padding: 4px 6px; border-radius: 999px; color: #5e54c7; background: #efedff; font-size: 8px; }
body.admin-route .owner-label { color: #9ca6a1; font-size: 8px; }
body.admin-route .role-revoke { padding: 4px 6px; border: 0; border-radius: 5px; color: #bb674d; background: #fff0eb; font-size: 8px; }
body.admin-route .role-empty { padding: 14px 0; color: #8c9992; font-size: 9px; }
body.admin-route .directory-count { color: #8d9993; font-size: 9px; }
body.admin-route .permission-denied { max-width: 570px; margin: 40px auto; padding: 55px 26px; border: 1px solid #f0d5ca; border-radius: 12px; color: #29322e; background: #fff; box-shadow: 0 2px 10px rgba(44, 69, 58, .035); }
body.admin-route .permission-icon { color: #fff; background: #cf7857; }
body.admin-route .permission-denied h2 { color: #222a27; }
body.admin-route .permission-denied p { color: #86918c; }

@media (max-width: 900px) {
  body.admin-route .sidebar { width: 166px; flex-basis: 166px; }
  body.admin-route .main-content { width: calc(100% - 166px); }
  body.admin-route .topbar, body.admin-route .page-wrap { padding-right: 20px; padding-left: 20px; }
  body.admin-route .admin-search { width: 160px; }
  body.admin-route .admin-workspace-grid { grid-template-columns: 1fr 1fr; }
  body.admin-route .admin-management-grid { grid-template-columns: 1fr; }
}

/* In-admin dashboard pages */
body.admin-route .dashboard-subview { min-height: 530px; }
body.admin-route .subview-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 4px 0 16px; }
body.admin-route .subview-heading h2 { margin: 5px 0 4px; color: #171d1a; font-size: 23px; font-weight: 600; letter-spacing: -.035em; }
body.admin-route .subview-heading p { margin: 0; color: #85918b; font-size: 10px; }
body.admin-route .subview-heading .button { min-height: 31px; padding: 0 12px; color: #fff; background: #2349dc; box-shadow: none; font-size: 9px; }
body.admin-route .subview-count, body.admin-route .subview-period, body.admin-route .subview-filter, body.admin-route .subview-private { padding: 6px 8px; border: 1px solid #e3ebe6; border-radius: 6px; color: #7d8b84; background: #fff; font-size: 9px; }
body.admin-route .subview-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr); gap: 12px; }
body.admin-route .subview-main-card, body.admin-route .subview-side-card, body.admin-route .inbox-list-card, body.admin-route .message-card, body.admin-route .analytics-chart-card, body.admin-route .project-detail-card { min-height: 260px; }
body.admin-route .subview-empty { min-height: 215px; display: flex; align-items: center; flex-direction: column; justify-content: center; padding: 20px; text-align: center; }
body.admin-route .subview-empty-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #6259e8; background: #efedff; font-size: 19px; }
body.admin-route .subview-empty strong { margin-top: 12px; color: #27312c; font-size: 11px; }
body.admin-route .subview-empty p { max-width: 240px; margin: 5px 0 0; color: #94a09a; font-size: 9px; line-height: 1.5; }
body.admin-route .subview-detail-list { padding: 5px 13px; }
body.admin-route .subview-detail-list > div { display: grid; gap: 4px; padding: 15px 0; border-bottom: 1px solid #edf1ef; }
body.admin-route .subview-detail-list > div:last-child { border-bottom: 0; }
body.admin-route .subview-detail-list span { color: #7e8b85; font-size: 9px; }
body.admin-route .subview-detail-list strong { color: #2b3530; font-size: 10px; font-weight: 600; }
body.admin-route .inbox-list-card { padding: 0 13px; }
body.admin-route .inbox-row { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 16px 0; border-bottom: 1px solid #edf1ef; }
body.admin-route .inbox-row:last-child { border-bottom: 0; }
body.admin-route .inbox-dot { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: #d9e2dd; }
body.admin-route .inbox-row.is-unread .inbox-dot { background: #2349dc; box-shadow: 0 0 0 3px #edf0ff; }
body.admin-route .inbox-row strong { color: #2a342f; font-size: 10px; font-weight: 600; }
body.admin-route .inbox-row p { margin: 4px 0 0; color: #8c9992; font-size: 9px; }
body.admin-route .inbox-row small { color: #9ba59f; font-size: 8px; white-space: nowrap; }
body.admin-route .message-card { padding-bottom: 17px; }
body.admin-route .message-label { display: grid; gap: 6px; margin: 14px 14px 0; color: #7b8982; font-size: 9px; font-weight: 600; }
body.admin-route .message-label input, body.admin-route .message-label textarea { width: 100%; box-sizing: border-box; border: 1px solid #dfe7e2; border-radius: 7px; outline: 0; color: #28332d; background: #f9fbfa; font: 10px "DM Sans", sans-serif; }
body.admin-route .message-label input { height: 33px; padding: 0 9px; }
body.admin-route .message-label textarea { min-height: 110px; resize: vertical; padding: 10px 9px; }
body.admin-route .message-label input:focus, body.admin-route .message-label textarea:focus { border-color: #9ebcaf; box-shadow: 0 0 0 3px rgba(137, 178, 153, .12); }
body.admin-route .message-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 13px 14px 0; }
body.admin-route .message-actions .button { min-height: 30px; padding: 0 10px; font-size: 9px; }
body.admin-route .message-actions .button-primary { color: #fff; background: #2349dc; box-shadow: none; }
body.admin-route .analytics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body.admin-route .analytics-number-card { min-height: 115px; padding: 15px; }
body.admin-route .analytics-number-card > span { color: #7e8b85; font-size: 9px; }
body.admin-route .analytics-number-card > strong { display: block; margin-top: 15px; color: #202924; font-size: 24px; font-weight: 600; letter-spacing: -.05em; }
body.admin-route .analytics-number-card > small { display: block; margin-top: 5px; color: #a0aaa5; font-size: 8px; }
body.admin-route .analytics-chart-card { grid-column: 1 / -1; min-height: 240px; }
body.admin-route .subview-positive { color: #38895a; font-size: 9px; }
body.admin-route .analytics-bars { height: 137px; display: grid; grid-template-columns: repeat(8, 1fr); align-items: end; gap: 12px; margin: 17px 16px 0; padding: 0 0 7px; border-bottom: 1px solid #e7eeea; background: repeating-linear-gradient(to bottom, transparent 0 32px, #edf2ef 33px 34px); }
body.admin-route .analytics-bars i { display: block; min-height: 16px; border-radius: 6px 6px 2px 2px; background: #c8e967; }
body.admin-route .analytics-bars i:nth-child(even) { background: #9690ca; }
body.admin-route .analytics-bar-labels { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin: 7px 16px 0; color: #9aa59f; font-size: 8px; text-align: center; }
body.admin-route .project-detail-card { display: flex; align-items: flex-start; gap: 18px; padding: 24px; }
body.admin-route .project-detail-mark { width: 58px; height: 58px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 15px; color: #fff; background: #6259e8; font-size: 25px; }
body.admin-route .project-detail-copy { min-width: 0; }
body.admin-route .project-detail-copy h2 { margin: 7px 0 5px; color: #202a25; font-size: 22px; font-weight: 600; }
body.admin-route .project-detail-copy p { margin: 0; color: #85918b; font-size: 10px; }
body.admin-route .project-detail-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 27px; padding-top: 14px; border-top: 1px solid #edf1ef; color: #85918b; font-size: 9px; }
body.admin-route .project-detail-meta strong { margin-right: 3px; color: #252e29; font-size: 15px; }
@media (max-width: 680px) {
  body.admin-route .subview-heading { display: block; }
  body.admin-route .subview-heading > .button, body.admin-route .subview-heading > .subview-count, body.admin-route .subview-heading > .subview-period { display: inline-flex; margin-top: 13px; }
  body.admin-route .subview-grid, body.admin-route .analytics-grid { grid-template-columns: 1fr; }
  body.admin-route .analytics-chart-card { grid-column: auto; }
  body.admin-route .project-detail-card { padding: 18px; }
}
@media (max-width: 680px) {
  body.admin-route .sidebar { width: 62px; flex-basis: 62px; align-items: center; padding: 14px 8px; }
  body.admin-route .main-content { width: calc(100% - 62px); }
  body.admin-route .brand-lockup { margin: 0 0 19px; }
  body.admin-route .brand-clan-link { justify-content: center; }
  body.admin-route .brand-word, body.admin-route .workspace-switcher, body.admin-route .sidebar-section-label, body.admin-route .sidebar-subsection-label, body.admin-route .sidebar-projects, body.admin-route .sidebar-progress { display: none; }
  body.admin-route .nav-item { justify-content: center; padding: 0; font-size: 0; }
  body.admin-route .nav-item svg { margin-right: 0; }
  body.admin-route .nav-count { display: none; }
  body.admin-route .topbar { min-height: 68px; padding: 12px 14px 0; }
  body.admin-route .admin-top-heading p { display: none; }
  body.admin-route .admin-search { display: none; }
  body.admin-route .profile-chip span, body.admin-route .profile-chip .chevron, body.admin-route .topbar .icon-button:first-of-type { display: none; }
  body.admin-route .profile-menu { right: 14px; }
  body.admin-route .page-wrap { padding: 3px 14px 36px; }
  body.admin-route .admin-workspace-meta { margin-bottom: 8px; }
  body.admin-route .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  body.admin-route .admin-stat-card { border-bottom: 1px dotted #d5dfdb; }
  body.admin-route .admin-stat-card:nth-child(2) { border-right: 0; }
  body.admin-route .admin-stat-card:nth-child(3), body.admin-route .admin-stat-card:nth-child(4) { border-bottom: 0; }
  body.admin-route .admin-workspace-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(4, 214px); }
  body.admin-route .admin-management-grid { grid-template-columns: 1fr; }
}

/* Shared D1 admin directory */
body.admin-route .sidebar-spacer { flex: 1; min-height: 24px; }
body.admin-route .sidebar-logout { width: 100%; min-height: 32px; display: flex; align-items: center; gap: 9px; padding: 0 9px; border: 1px solid transparent; border-radius: 7px; color: #8a6256; background: transparent; font: 500 10px "DM Sans", sans-serif; text-align: left; cursor: pointer; }
body.admin-route .sidebar-logout svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.65; }
body.admin-route .sidebar-logout:hover { color: #a64d32; border-color: #f1ddd6; background: #fff5f1; }
body.admin-route .admin-view[hidden] { display: none; }
body.admin-route .admin-view-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 4px 2px 14px; }
body.admin-route .admin-view-heading h2 { margin: 4px 0 4px; color: #1d2622; font-size: 22px; font-weight: 600; letter-spacing: -.035em; }
body.admin-route .admin-view-heading p { margin: 0; color: #85918b; font-size: 10px; line-height: 1.45; }
body.admin-route .admin-view-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
body.admin-route .admin-view-actions .button { min-height: 32px; padding: 0 11px; border-radius: 6px; font-size: 9px; }
body.admin-route .member-data-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 10px; color: #819089; font-size: 9px; }
body.admin-route .member-data-status span:first-child { color: #38895a; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
body.admin-route .member-data-status .is-error { color: #b35d3f; font-weight: 600; }
body.admin-route .member-list-section { overflow: hidden; margin-bottom: 12px; border: 1px solid #e2e9e5; border-radius: 11px; background: #fff; box-shadow: 0 2px 10px rgba(44, 69, 58, .035); }
body.admin-route .member-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 57px; padding: 0 13px; border-bottom: 1px dotted #d5ded9; }
body.admin-route .member-list-heading h3 { margin: 3px 0 0; color: #1d2622; font-size: 13px; font-weight: 600; }
body.admin-route .member-list-heading p { margin: 4px 0 0; color: #8d9993; font-size: 9px; }
body.admin-route .member-table-wrap { width: 100%; overflow-x: auto; }
body.admin-route .member-management-table { width: 100%; min-width: 960px; border-collapse: collapse; color: #34413b; font-size: 10px; }
body.admin-route .member-management-table th { padding: 10px 13px; border-bottom: 1px solid #edf1ef; color: #94a09a; font-size: 8px; font-weight: 700; letter-spacing: .1em; text-align: left; white-space: nowrap; }
body.admin-route .member-management-table td { padding: 10px 13px; border-bottom: 1px solid #f0f3f1; vertical-align: middle; }
body.admin-route .member-management-table tbody tr:last-child td { border-bottom: 0; }
body.admin-route .member-number-column, body.admin-route .member-index-cell { width: 38px; color: #a2ada7; text-align: right; }
body.admin-route .member-sort-button { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; letter-spacing: inherit; cursor: pointer; }
body.admin-route .member-sort-button:hover, body.admin-route .member-sort-button[aria-pressed="true"] { color: #386c50; }
body.admin-route .member-sort-indicator { color: #8e9d95; font-size: 10px; line-height: 1; }
body.admin-route .managed-member-name strong, body.admin-route .managed-member-name small { display: block; }
body.admin-route .managed-member-name strong { color: #26312b; font-size: 10px; font-weight: 700; }
body.admin-route .managed-member-name small { margin-top: 3px; color: #99a49f; font-size: 8px; }
body.admin-route .managed-member-trigger { display: block; width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
body.admin-route .managed-member-trigger strong, body.admin-route .managed-member-trigger small { display: block; }
body.admin-route .managed-member-trigger strong { color: #26312b; font-size: 10px; font-weight: 700; }
body.admin-route .managed-member-trigger small { margin-top: 3px; color: #99a49f; font-size: 8px; }
body.admin-route .managed-member-trigger:hover strong { color: #386c50; text-decoration: underline; text-underline-offset: 2px; }
body.admin-route .member-contact-cell { display: flex; align-items: center; gap: 5px; min-width: 178px; }
body.admin-route .member-contact-input { width: 130px; height: 28px; box-sizing: border-box; padding: 0 8px; border: 1px solid #dfe7e2; border-radius: 5px; outline: 0; color: #34413b; background: #f9fbfa; font: 9px "DM Sans", sans-serif; }
body.admin-route .member-contact-input::placeholder { color: #abb5b0; }
body.admin-route .member-contact-input:focus { border-color: #9ebcaf; box-shadow: 0 0 0 3px rgba(137, 178, 153, .12); }
body.admin-route .member-save-contact { min-height: 28px; padding: 0 7px; border: 0; border-radius: 5px; color: #42684f; background: #edf7ee; font: 700 8px "DM Sans", sans-serif; cursor: pointer; }
body.admin-route .member-save-contact:hover { background: #dff0e2; }
body.admin-route .member-save-contact:disabled { opacity: .55; cursor: wait; }
body.admin-route .member-note-cell { display: flex; align-items: center; gap: 5px; min-width: 205px; }
body.admin-route .member-note-input { width: 155px; height: 28px; box-sizing: border-box; padding: 0 8px; border: 1px solid #dfe7e2; border-radius: 5px; outline: 0; color: #34413b; background: #f9fbfa; font: 9px "DM Sans", sans-serif; }
body.admin-route .member-note-input::placeholder { color: #abb5b0; }
body.admin-route .member-note-input:focus { border-color: #9ebcaf; box-shadow: 0 0 0 3px rgba(137, 178, 153, .12); }
body.admin-route .member-save-note { min-height: 28px; padding: 0 7px; border: 0; border-radius: 5px; color: #42684f; background: #edf7ee; font: 700 8px "DM Sans", sans-serif; cursor: pointer; }
body.admin-route .member-save-note:hover { background: #dff0e2; }
body.admin-route .member-save-note:disabled { opacity: .55; cursor: wait; }
body.admin-route .member-table-empty td { padding: 28px 13px; color: #98a39e; text-align: center; }
body.admin-route .former-members-section { margin-top: 12px; }
body.admin-route .former-member-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 9px; padding: 12px 13px; border-bottom: 1px solid #edf1ef; background: #fbfcfb; }
body.admin-route .former-member-form[hidden] { display: none; }
body.admin-route .former-member-form label, body.admin-route .admin-settings-form label { display: grid; gap: 5px; color: #728079; font-size: 9px; font-weight: 600; }
body.admin-route .former-member-form input, body.admin-route .admin-settings-form input { width: 100%; height: 33px; box-sizing: border-box; padding: 0 9px; border: 1px solid #dfe7e2; border-radius: 6px; outline: 0; color: #25302b; background: #fff; font: 10px "DM Sans", sans-serif; }
body.admin-route .former-member-form input:focus, body.admin-route .admin-settings-form input:focus { border-color: #9ebcaf; box-shadow: 0 0 0 3px rgba(137, 178, 153, .12); }
body.admin-route .former-member-form-actions { display: flex; gap: 6px; }
body.admin-route .former-member-form-actions .button { min-height: 33px; padding: 0 10px; font-size: 9px; }
body.admin-route .field-optional { color: #a0aaa5; font-size: 8px; font-weight: 400; }
body.admin-route .field-label-row { display: flex; align-items: baseline; gap: 4px; min-height: 11px; }
body.admin-route .clan-tags-card { padding: 17px 15px 14px; }
body.admin-route .admin-settings-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 13px; }
body.admin-route .admin-settings-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-top: 2px; }
body.admin-route .admin-settings-actions .button { min-height: 33px; padding: 0 12px; font-size: 9px; }
body.admin-route #settingsSaveStatus { color: #548064; font-size: 9px; }
body.admin-route .clan-tags-card .form-hint { margin-right: 0; margin-left: 0; }
body.admin-route #memberDetailsModal { padding: 0; place-items: stretch; }
body.admin-route .member-details-modal { display: flex; width: 100%; max-width: none; height: 100%; max-height: none; box-sizing: border-box; flex-direction: column; overflow: hidden; padding: 22px clamp(22px, 4vw, 64px) 26px; color: #34413b; border: 0; border-radius: 0; background: #fff; }
body.admin-route .member-details-modal .modal-header { flex: 0 0 auto; margin-bottom: 15px; padding-bottom: 13px; border-bottom: 1px solid #e8eee9; }
body.admin-route .member-details-modal h2 { color: #1d2622; }
body.admin-route .member-details-modal .modal-close { color: #738079; }
body.admin-route .member-details-body { min-height: 0; overflow: auto; padding: 0 clamp(0px, 1vw, 14px) 26px 0; }
body.admin-route .member-details-source { margin-bottom: 10px; padding: 9px 10px; border-radius: 6px; color: #477055; background: #eef8f0; font-size: 10px; line-height: 1.4; }
body.admin-route .member-details-source.is-fallback { color: #916b38; background: #fff6e8; }
body.admin-route .member-profile-hero { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid #e0e9e3; border-radius: 10px; background: linear-gradient(135deg, #f4faf5, #fff); }
body.admin-route .member-profile-avatar { width: 45px; height: 45px; flex: 0 0 45px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: #32684a; font-size: 14px; font-weight: 700; }
body.admin-route .member-profile-identity { min-width: 0; }
body.admin-route .member-profile-identity h3 { margin: 3px 0 2px; overflow: hidden; color: #1e2b24; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
body.admin-route .member-profile-identity p { margin: 0; overflow: hidden; color: #718078; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
body.admin-route .member-profile-clan { min-width: 170px; margin-left: auto; padding-left: 18px; border-left: 1px solid #dce7df; }
body.admin-route .member-profile-clan span { display: block; color: #84928a; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
body.admin-route .member-profile-clan strong { display: block; margin-top: 4px; overflow: hidden; color: #294633; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
body.admin-route .member-profile-clan small { display: block; margin-top: 2px; overflow: hidden; color: #8b9891; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
body.admin-route .member-profile-stat-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
body.admin-route .profile-stat-card { min-width: 0; padding: 10px; border: 1px solid #e3ebe6; border-radius: 8px; background: #fbfcfb; }
body.admin-route .profile-stat-card-heading { display: flex; align-items: center; gap: 6px; min-width: 0; color: #84928a; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
body.admin-route .profile-stat-card-heading > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.admin-route .profile-stat-icon, body.admin-route .profile-metric-icon { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border-radius: 7px; color: #356b4d; background: #e9f4eb; font-size: 11px; }
body.admin-route .profile-stat-card > strong { display: block; margin-top: 7px; overflow: hidden; color: #26312b; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
body.admin-route .profile-stat-card > small { display: block; margin-top: 3px; overflow: hidden; color: #8a9790; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
body.admin-route .profile-stat-meter, body.admin-route .profile-item-meter { height: 5px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: #edf2ee; }
body.admin-route .profile-stat-meter span, body.admin-route .profile-item-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8bbb96, #316d4b); }
body.admin-route .member-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.admin-route .profile-panel { min-width: 0; overflow: hidden; border: 1px solid #e1e9e4; border-radius: 9px; background: #fff; }
body.admin-route .profile-panel-wide { grid-column: 1 / -1; }
body.admin-route .profile-panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px dotted #d3ded7; background: #fcfdfc; }
body.admin-route .profile-panel-heading h3 { margin: 0; color: #26312b; font-size: 11px; }
body.admin-route .profile-panel-heading > span { flex: 0 0 auto; color: #8a9790; font-size: 8px; }
body.admin-route .profile-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
body.admin-route .profile-metric-card { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px; border: 1px solid #edf2ee; border-radius: 7px; background: #fbfcfb; }
body.admin-route .profile-metric-card > div { min-width: 0; }
body.admin-route .profile-metric-card > div > span { display: block; overflow: hidden; color: #84918b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
body.admin-route .profile-metric-card strong { display: block; margin-top: 3px; overflow: hidden; color: #33423a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
body.admin-route .profile-info-list { padding: 10px; }
body.admin-route .profile-info-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid #edf2ee; }
body.admin-route .profile-info-row:last-child { border-bottom: 0; }
body.admin-route .profile-info-row span { color: #84918b; font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
body.admin-route .profile-info-row strong { max-width: 70%; overflow: hidden; color: #33423a; font-size: 10px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
body.admin-route .profile-heroes-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; padding: 10px; }
body.admin-route .profile-hero-card { min-width: 0; padding: 8px; border: 1px solid #edf2ee; border-radius: 8px; background: #fbfcfb; text-align: center; }
body.admin-route .profile-hero-art { position: relative; display: grid; width: 76px; height: 76px; max-width: 100%; margin: 0 auto 7px; place-items: center; overflow: hidden; border-radius: 14px; color: #fff; background: linear-gradient(145deg, #526e60, #1c3328); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
body.admin-route .profile-hero-art::before { position: absolute; width: 70%; height: 70%; border-radius: 50%; background: rgba(255,255,255,.16); content: ""; filter: blur(1px); }
body.admin-route .profile-hero-art-glow { position: absolute; inset: -20%; background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.48), transparent 32%); }
body.admin-route .profile-hero-art strong { position: relative; z-index: 1; color: #fff; font-size: 31px; font-weight: 700; text-shadow: 0 2px 7px rgba(0,0,0,.25); }
body.admin-route .profile-hero-art i { position: absolute; right: 9px; bottom: 8px; width: 8px; height: 8px; border: 2px solid rgba(255,255,255,.8); border-radius: 50%; }
body.admin-route .hero-art-king { background: linear-gradient(145deg, #c78a3e, #5d331c); }
body.admin-route .hero-art-queen { background: linear-gradient(145deg, #8870c5, #372b67); }
body.admin-route .hero-art-warden { background: linear-gradient(145deg, #658ab0, #243a60); }
body.admin-route .hero-art-machine, body.admin-route .hero-art-copter { background: linear-gradient(145deg, #728783, #2c4741); }
body.admin-route .hero-art-champion { background: linear-gradient(145deg, #9a75c5, #452b70); }
body.admin-route .hero-art-prince { background: linear-gradient(145deg, #ce6e83, #5c253e); }
body.admin-route .hero-art-dragon { background: linear-gradient(145deg, #d36e46, #5a281e); }
body.admin-route .profile-hero-card-name { min-height: 24px; overflow: hidden; color: #35443b; font-size: 9px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; }
body.admin-route .profile-hero-card-village { margin-top: 3px; overflow: hidden; color: #89958f; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
body.admin-route .profile-hero-level, body.admin-route .profile-item-level { display: flex; align-items: baseline; justify-content: center; gap: 2px; margin-top: 5px; }
body.admin-route .profile-hero-level strong, body.admin-route .profile-item-level strong { color: #2e6447; font-size: 13px; }
body.admin-route .profile-hero-level span, body.admin-route .profile-item-level span { color: #8a9790; font-size: 9px; }
body.admin-route .profile-item-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; max-height: 260px; overflow: auto; padding: 10px; }
body.admin-route .profile-item-card { min-width: 0; padding: 8px; border: 1px solid #edf2ee; border-radius: 8px; background: #fbfcfb; }
body.admin-route .profile-item-card-top { display: flex; align-items: center; gap: 7px; min-width: 0; }
body.admin-route .profile-item-art { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border-radius: 8px; color: #32684a; background: #e6f2e8; font-size: 13px; font-weight: 700; }
body.admin-route .profile-item-copy { min-width: 0; }
body.admin-route .profile-item-copy strong, body.admin-route .profile-item-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.admin-route .profile-item-copy strong { color: #35443b; font-size: 8px; }
body.admin-route .profile-item-copy span { margin-top: 3px; color: #89958f; font-size: 7px; }
body.admin-route .profile-item-card .profile-item-meter { margin-top: 8px; }
body.admin-route .profile-achievement-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-height: 240px; overflow: auto; padding: 10px; }
body.admin-route .profile-achievement { min-width: 0; padding: 8px; border: 1px solid #edf2ee; border-radius: 7px; background: #fbfcfb; }
body.admin-route .profile-achievement-heading, body.admin-route .profile-achievement-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
body.admin-route .profile-achievement-heading strong { overflow: hidden; color: #35443b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
body.admin-route .profile-achievement-heading span, body.admin-route .profile-achievement-meta > span:first-child { color: #89958f; font-size: 7px; }
body.admin-route .profile-achievement-track { height: 5px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: #edf2ee; }
body.admin-route .profile-achievement-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e6ae4d, #c6742b); }
body.admin-route .profile-achievement-meta { margin-top: 5px; }
body.admin-route .profile-achievement-stars { color: #e19b2e; font-size: 8px; letter-spacing: .08em; }
body.admin-route .profile-subheading { margin: 11px 12px 6px; color: #84918b; font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
body.admin-route .profile-chip-list { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 12px 2px; }
body.admin-route .profile-chip { display: inline-flex; align-items: center; max-width: 100%; padding: 5px 7px; overflow: hidden; border: 1px solid #dce8df; border-radius: 5px; color: #477055; background: #f1f8f2; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
body.admin-route .profile-muted, body.admin-route .profile-empty { display: block; padding: 13px 12px; color: #97a39c; font-size: 9px; }
body.admin-route .member-api-details { margin-top: 12px; border-top: 1px dotted #d5ded9; padding-top: 12px; }
body.admin-route .member-api-details summary { color: #386c50; font-size: 10px; font-weight: 700; cursor: pointer; }
body.admin-route .member-api-details pre { max-height: 250px; overflow: auto; margin: 10px 0 0; padding: 12px; border-radius: 7px; color: #40524a; background: #f5f8f6; font: 9px/1.5 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
body.admin-route .member-details-loading { margin: 12px 0; color: #829089; font-size: 11px; }
@media (max-width: 720px) {
  body.admin-route .admin-view-heading { display: block; }
  body.admin-route .admin-view-actions { justify-content: flex-start; margin-top: 13px; }
  body.admin-route .former-member-form, body.admin-route .admin-settings-form { grid-template-columns: 1fr; }
  body.admin-route .former-member-form-actions, body.admin-route .admin-settings-actions { grid-column: auto; }
  body.admin-route .member-profile-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.admin-route .member-details-modal { padding: 16px; }
  body.admin-route .member-profile-hero { align-items: flex-start; flex-wrap: wrap; }
  body.admin-route .member-profile-clan { width: 100%; margin-left: 61px; padding-top: 10px; padding-left: 0; border-top: 1px solid #dce7df; border-left: 0; }
  body.admin-route .member-profile-grid { grid-template-columns: 1fr; }
  body.admin-route .profile-panel-wide { grid-column: auto; }
  body.admin-route .profile-heroes-grid, body.admin-route .profile-item-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.admin-route .profile-achievement-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  body.admin-route .sidebar-logout { justify-content: center; padding: 0; font-size: 0; }
  body.admin-route .sidebar-logout svg { margin: 0; }
  body.admin-route .member-data-status { align-items: flex-start; flex-direction: column; gap: 4px; }
}

/* Player profile visual refinement */
body.admin-route #memberDetailsModal { background: rgba(20, 31, 26, .72); backdrop-filter: blur(12px); }
body.admin-route .member-details-modal { padding: clamp(20px, 3vw, 42px) clamp(20px, 5vw, 72px) 34px; background: radial-gradient(circle at 88% 4%, rgba(226, 244, 230, .82), transparent 26%), linear-gradient(180deg, #fbfdfb 0%, #f6faf7 100%); }
body.admin-route .member-details-modal .modal-header { margin-bottom: 18px; padding-bottom: 16px; border-bottom-color: #dce9df; }
body.admin-route .member-details-modal .modal-header h2 { margin-top: 5px; color: #17251d; font-size: clamp(25px, 3vw, 40px); letter-spacing: -.045em; }
body.admin-route .member-details-modal .modal-close { width: 34px; height: 34px; border: 1px solid #dce9df; border-radius: 10px; background: rgba(255, 255, 255, .78); transition: border-color .2s ease, background .2s ease, transform .2s ease; }
body.admin-route .member-details-modal .modal-close:hover { border-color: #9fc4a8; background: #fff; transform: rotate(6deg); }
body.admin-route .member-details-body { scrollbar-color: #a8c7b0 transparent; scrollbar-width: thin; }
body.admin-route .member-details-source { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 13px; border: 1px solid #d6e8da; border-radius: 10px; color: #36704e; background: #edf8ef; box-shadow: 0 5px 18px rgba(57, 105, 71, .05); }
body.admin-route .member-details-source::before { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #43a566; box-shadow: 0 0 0 4px rgba(67, 165, 102, .12); content: ""; }
body.admin-route .member-details-source.is-fallback { border-color: #f1dfbd; color: #8b6735; background: #fff8ed; }
body.admin-route .member-details-source.is-fallback::before { background: #d7983a; box-shadow: 0 0 0 4px rgba(215, 152, 58, .14); }
body.admin-route .member-profile-hero { position: relative; overflow: hidden; min-height: 78px; gap: 15px; padding: 18px 20px; border-color: #cfe2d4; border-radius: 16px; background: linear-gradient(115deg, #eef8f0 0%, #f9fcfa 54%, #fff 100%); box-shadow: 0 12px 28px rgba(40, 79, 53, .07); }
body.admin-route .member-profile-hero::after { position: absolute; top: -55px; right: 13%; width: 180px; height: 180px; border: 1px solid rgba(94, 154, 108, .14); border-radius: 50%; box-shadow: 0 0 0 18px rgba(94, 154, 108, .045), 0 0 0 38px rgba(94, 154, 108, .03); content: ""; pointer-events: none; }
body.admin-route .member-profile-avatar { position: relative; z-index: 1; width: 62px; height: 62px; flex-basis: 62px; border: 4px solid rgba(255, 255, 255, .86); border-radius: 18px; background: linear-gradient(145deg, #43835d, #1e5438); box-shadow: 0 8px 16px rgba(38, 91, 57, .2); font-size: 20px; }
body.admin-route .member-profile-identity { position: relative; z-index: 1; }
body.admin-route .member-profile-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
body.admin-route .member-profile-identity h3 { margin: 4px 0 1px; color: #193022; font-size: 24px; letter-spacing: -.035em; }
body.admin-route .member-profile-identity p { color: #6c8073; font-size: 11px; }
body.admin-route .member-profile-role { display: inline-flex; align-items: center; min-height: 21px; padding: 0 8px; border: 1px solid #cde5d2; border-radius: 99px; color: #33714b; background: #e9f6eb; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
body.admin-route .member-profile-clan { position: relative; z-index: 1; min-width: 190px; padding-left: 22px; border-left-color: #d1e3d5; }
body.admin-route .member-profile-clan span { color: #769280; font-size: 8px; letter-spacing: .16em; }
body.admin-route .member-profile-clan strong { margin-top: 5px; color: #245536; font-size: 12px; }
body.admin-route .member-profile-clan small { color: #789181; font-size: 10px; }
body.admin-route .member-profile-stat-grid { gap: 10px; margin: 12px 0; }
body.admin-route .profile-stat-card { position: relative; min-height: 106px; padding: 12px; overflow: hidden; border-color: #dce9df; border-radius: 12px; background: linear-gradient(145deg, #fff, #f8fbf9); box-shadow: 0 6px 15px rgba(39, 78, 52, .045); }
body.admin-route .profile-stat-card::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: #93c79f; content: ""; }
body.admin-route .profile-stat-card:nth-child(2n)::before { background: #7caec0; }
body.admin-route .profile-stat-card:nth-child(3n)::before { background: #d2a161; }
body.admin-route .profile-stat-card-heading { gap: 7px; color: #748a7c; font-size: 8px; }
body.admin-route .profile-stat-icon { width: 27px; height: 27px; flex-basis: 27px; border-radius: 9px; color: #2d704a; background: #e5f3e8; font-size: 13px; box-shadow: inset 0 0 0 1px rgba(64, 126, 80, .08); }
body.admin-route .profile-stat-card:nth-child(2n) .profile-stat-icon { color: #3b7286; background: #e7f2f6; }
body.admin-route .profile-stat-card:nth-child(3n) .profile-stat-icon { color: #9a692f; background: #fff2dd; }
body.admin-route .profile-stat-card > strong { margin-top: 10px; color: #1e3126; font-size: 23px; letter-spacing: -.035em; }
body.admin-route .profile-stat-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 3px; }
body.admin-route .profile-stat-card > .profile-stat-card-footer > small { margin-top: 0; font-size: 8px; }
body.admin-route .profile-stat-percent { flex: 0 0 auto; color: #4c8060; font-size: 8px; font-weight: 800; }
body.admin-route .profile-stat-meter { height: 6px; margin-top: 10px; background: #eaf1ec; }
body.admin-route .profile-stat-meter span { background: linear-gradient(90deg, #9bcfa5, #2f704c); }
body.admin-route .member-profile-grid { gap: 12px; }
body.admin-route .profile-panel { border-color: #d8e7dc; border-radius: 14px; background: linear-gradient(180deg, #fff, #fbfdfb); box-shadow: 0 7px 18px rgba(39, 78, 52, .045); }
body.admin-route .profile-panel-heading { min-height: 47px; align-items: center; padding: 12px 15px; border-bottom-color: #dce9df; background: rgba(250, 253, 251, .92); }
body.admin-route .profile-panel-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
body.admin-route .profile-panel-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #5eae75; box-shadow: 0 0 0 4px rgba(94, 174, 117, .12); }
body.admin-route .profile-panel-heading h3 { color: #21372a; font-size: 12px; letter-spacing: -.01em; }
body.admin-route .profile-panel-heading > span { padding: 4px 7px; border-radius: 99px; color: #6b8975; background: #edf7ef; font-size: 8px; font-weight: 700; }
body.admin-route .profile-metric-grid { gap: 9px; padding: 12px; }
body.admin-route .profile-metric-card { min-height: 54px; padding: 10px; border-color: #e1ece4; border-radius: 10px; background: #f9fcfa; }
body.admin-route .profile-metric-icon { width: 27px; height: 27px; flex-basis: 27px; border-radius: 9px; }
body.admin-route .profile-metric-card strong { color: #294635; font-size: 11px; }
body.admin-route .profile-heroes-grid { gap: 10px; padding: 14px; }
body.admin-route .profile-hero-card { position: relative; padding: 10px; border-color: #e0ebe3; border-radius: 12px; background: linear-gradient(180deg, #ffffff, #f7fbf8); box-shadow: 0 4px 12px rgba(45, 88, 59, .04); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
body.admin-route .profile-hero-card:hover { border-color: #b9d8c0; box-shadow: 0 10px 20px rgba(45, 88, 59, .1); transform: translateY(-2px); }
body.admin-route .profile-hero-card-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; color: #88a091; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
body.admin-route .profile-hero-card-topline span:last-child { color: #4c8060; letter-spacing: 0; }
body.admin-route .profile-hero-art { width: 88px; height: 88px; margin-bottom: 9px; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26), 0 8px 15px rgba(31, 55, 40, .14); }
body.admin-route .profile-hero-art::before { width: 76%; height: 76%; background: rgba(255, 255, 255, .17); box-shadow: 0 0 0 9px rgba(255, 255, 255, .055); }
body.admin-route .profile-hero-art-ring { position: absolute; width: 54%; height: 54%; border: 1px solid rgba(255, 255, 255, .38); border-radius: 50%; transform: rotate(25deg); }
body.admin-route .profile-hero-art-image { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(1.08) contrast(1.03) drop-shadow(0 5px 5px rgba(0, 0, 0, .18)); }
body.admin-route .profile-hero-art::after { position: absolute; z-index: 2; inset: 0; background: linear-gradient(180deg, rgba(15, 35, 23, .04), rgba(15, 35, 23, .22)); content: ""; pointer-events: none; }
body.admin-route .profile-hero-art-mark { position: relative; z-index: 1; color: #fff; font-size: 36px; font-weight: 800; line-height: 1; text-shadow: 0 3px 8px rgba(0, 0, 0, .28); }
body.admin-route .profile-hero-art-image + .profile-hero-art-glow + .profile-hero-art-ring + .profile-hero-art-mark { z-index: 0; opacity: .08; }
body.admin-route .profile-hero-art-level { position: absolute; z-index: 4; top: 7px; left: 8px; padding: 3px 5px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 5px; color: rgba(255, 255, 255, .92); background: rgba(18, 36, 26, .34); font-size: 7px; font-weight: 800; letter-spacing: .06em; }
body.admin-route .profile-hero-art i { right: 9px; bottom: 8px; width: 9px; height: 9px; background: #b8efc6; box-shadow: 0 0 0 3px rgba(184, 239, 198, .2); }
body.admin-route .profile-hero-card-name { min-height: 27px; color: #294635; font-size: 9px; }
body.admin-route .profile-hero-card-village { margin-top: 4px; color: #809489; font-size: 8px; }
body.admin-route .profile-hero-card .profile-item-meter { height: 6px; margin-top: 9px; }
body.admin-route .profile-hero-level { margin-top: 6px; }
body.admin-route .profile-hero-level strong { font-size: 15px; }
body.admin-route .profile-item-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; max-height: 286px; padding: 14px; }
body.admin-route .profile-item-card { padding: 10px; border-color: #e1ece4; border-radius: 10px; background: #f9fcfa; transition: border-color .2s ease, background .2s ease; }
body.admin-route .profile-item-card:hover { border-color: #b9d8c0; background: #fff; }
body.admin-route .profile-item-art { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; color: #2d704a; background: linear-gradient(145deg, #e6f5e9, #d3ebd9); font-size: 14px; }
body.admin-route .profile-item-copy strong { color: #294635; font-size: 9px; }
body.admin-route .profile-item-copy span { margin-top: 4px; color: #81958a; font-size: 8px; }
body.admin-route .profile-item-card .profile-item-meter { height: 5px; margin-top: 10px; }
body.admin-route .profile-item-level { margin-top: 6px; }
body.admin-route .profile-item-level strong { font-size: 12px; }
body.admin-route .profile-achievement-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; max-height: 270px; padding: 14px; }
body.admin-route .profile-achievement { padding: 10px; border-color: #e1ece4; border-radius: 10px; background: #f9fcfa; }
body.admin-route .profile-achievement-heading strong { color: #294635; font-size: 9px; }
body.admin-route .profile-achievement-track { height: 6px; margin-top: 9px; }
body.admin-route .profile-info-list { padding: 12px 15px; }
body.admin-route .profile-info-row { padding: 11px 0; }
body.admin-route .profile-info-row strong { color: #294635; font-size: 11px; }
body.admin-route .profile-contact-form { padding: 14px 15px 12px; border-bottom: 1px solid #e6efe8; background: linear-gradient(135deg, #f5fbf6, #fff); }
body.admin-route .profile-contact-field { display: grid; gap: 7px; color: #789080; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
body.admin-route .profile-contact-field input { width: 100%; height: 38px; box-sizing: border-box; padding: 0 11px; border: 1px solid #d4e4d8; border-radius: 8px; outline: 0; color: #294635; background: #fff; font: 11px "DM Sans", sans-serif; letter-spacing: 0; text-transform: none; transition: border-color .2s ease, box-shadow .2s ease; }
body.admin-route .profile-contact-field input::placeholder { color: #a6b4aa; }
body.admin-route .profile-contact-field input:focus { border-color: #83b592; box-shadow: 0 0 0 3px rgba(104, 164, 119, .14); }
body.admin-route .profile-contact-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
body.admin-route .profile-contact-status { min-width: 0; overflow: hidden; color: #7d9383; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
body.admin-route .profile-contact-save { min-height: 31px; padding: 0 11px; border: 0; border-radius: 7px; color: #fff; background: #2f704c; font: 700 9px "DM Sans", sans-serif; cursor: pointer; transition: background .2s ease, transform .2s ease; }
body.admin-route .profile-contact-save:hover { background: #245b3d; transform: translateY(-1px); }
body.admin-route .profile-contact-save:disabled { opacity: .6; cursor: wait; transform: none; }
body.admin-route .profile-note-list { padding-top: 4px; }
body.admin-route .member-api-details { margin-top: 15px; padding: 14px 0 0; border-top-color: #d8e7dc; }
body.admin-route .member-api-details summary { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border: 1px solid #d8e7dc; border-radius: 8px; background: #fff; }
body.admin-route .member-api-details pre { margin-top: 10px; border: 1px solid #dce9df; border-radius: 10px; background: #f2f8f4; }

@media (max-width: 1080px) {
  body.admin-route .member-profile-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.admin-route .profile-heroes-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.admin-route .profile-item-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.admin-route .profile-achievement-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body.admin-route .member-details-modal { padding: 16px; }
  body.admin-route .member-details-modal .modal-header h2 { font-size: 28px; }
  body.admin-route .member-profile-hero { padding: 15px; }
  body.admin-route .member-profile-identity h3 { font-size: 21px; }
  body.admin-route .member-profile-clan { min-width: 0; margin-left: 77px; }
  body.admin-route .profile-heroes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.admin-route .profile-item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.admin-route .profile-achievement-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.admin-route .profile-contact-actions { align-items: flex-start; flex-direction: column; }
  body.admin-route .profile-contact-save { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body.admin-route .profile-hero-card, body.admin-route .member-details-modal .modal-close { transition: none; }
}

/* War log */
body.admin-route .war-log-tabs { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0 13px; padding: 4px; border: 1px solid #dce9df; border-radius: 10px; background: #eef6f0; }
body.admin-route .war-log-tab { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 12px; border: 0; border-radius: 7px; color: #6d8575; background: transparent; font: 700 10px "DM Sans", sans-serif; cursor: pointer; }
body.admin-route .war-log-tab span { display: inline-grid; place-items: center; min-width: 20px; height: 19px; padding: 0 4px; border-radius: 99px; color: #789080; background: #fff; font-size: 9px; }
body.admin-route .war-log-tab:hover { color: #2f704c; }
body.admin-route .war-log-tab.is-active { color: #fff; background: #2f704c; box-shadow: 0 4px 10px rgba(47, 112, 76, .16); }
body.admin-route .war-log-tab.is-active span { color: #2f704c; }
body.admin-route .war-log-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 0 2px 12px; }
body.admin-route .war-log-summary-card { padding: 13px 14px; border: 1px solid #e2e9e5; border-radius: 9px; background: #fff; box-shadow: 0 2px 10px rgba(44, 69, 58, .035); }
body.admin-route .war-log-summary-card span { display: block; color: #819089; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
body.admin-route .war-log-summary-card strong { display: block; margin-top: 5px; color: #294635; font: 600 25px/1 "Barlow Condensed", sans-serif; }
body.admin-route .war-log-list { display: grid; gap: 10px; }
body.admin-route .war-log-card { overflow: hidden; border: 1px solid #e2e9e5; border-radius: 11px; background: #fff; box-shadow: 0 2px 10px rgba(44, 69, 58, .035); }
body.admin-route .war-log-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px dotted #d5ded9; background: linear-gradient(135deg, #fbfdfb, #f4faf5); }
body.admin-route .war-log-card-heading > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
body.admin-route .war-log-result { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 6px; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
body.admin-route .war-log-result.is-win { color: #276844; background: #e4f4e7; }
body.admin-route .war-log-result.is-loss { color: #a34e36; background: #fff0eb; }
body.admin-route .war-log-result.is-tie { color: #87672c; background: #fff7df; }
body.admin-route .war-log-date, body.admin-route .war-log-team-size { color: #819089; font-size: 9px; }
body.admin-route .war-log-team-size { white-space: nowrap; }
body.admin-route .war-log-matchup { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 18px 14px; }
body.admin-route .war-log-side { min-width: 0; }
body.admin-route .war-log-side.is-opponent { text-align: right; }
body.admin-route .war-log-side strong, body.admin-route .war-log-side span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.admin-route .war-log-side strong { color: #294635; font-size: 12px; }
body.admin-route .war-log-side span { margin-top: 4px; color: #9aa7a0; font-size: 8px; }
body.admin-route .war-log-score { display: grid; grid-template-columns: 32px 12px 32px; align-items: baseline; justify-items: center; color: #9aa7a0; font-size: 13px; }
body.admin-route .war-log-score strong { color: #294635; font: 600 28px/1 "Barlow Condensed", sans-serif; }
body.admin-route .war-log-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 14px 14px; }
body.admin-route .war-log-metrics span { display: grid; gap: 4px; padding: 9px 10px; border: 1px solid #edf2ee; border-radius: 7px; background: #fbfcfb; }
body.admin-route .war-log-metrics small { color: #89958f; font-size: 7px; font-weight: 800; letter-spacing: .08em; }
body.admin-route .war-log-metrics strong { color: #3d5d49; font-size: 10px; }
body.admin-route .war-log-empty { display: flex; min-height: 160px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; padding: 20px; border: 1px dashed #dbe7df; border-radius: 11px; color: #89978f; background: #fbfdfb; text-align: center; font-size: 10px; }
body.admin-route .war-log-empty strong { color: #3b5947; font-size: 12px; }
body.admin-route .war-log-empty span { max-width: 310px; line-height: 1.5; }
body.admin-route .landing-player-avatar { font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  body.admin-route .war-log-tabs { display: flex; width: 100%; box-sizing: border-box; }
  body.admin-route .war-log-tab { flex: 1; justify-content: center; }
  body.admin-route .war-log-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.admin-route .war-log-matchup { gap: 8px; padding: 15px 11px; }
  body.admin-route .war-log-card-heading, body.admin-route .war-log-metrics { padding-left: 11px; padding-right: 11px; }
  body.admin-route .war-log-metrics { grid-template-columns: 1fr; }
  body.admin-route .war-log-score { grid-template-columns: 25px 8px 25px; }
  body.admin-route .war-log-score strong { font-size: 23px; }
}

/* Compact war history and editable profile notes */
body.admin-route .war-log-card { display: grid; grid-template-columns: minmax(155px, .55fr) minmax(250px, 1.15fr) minmax(255px, .9fr); align-items: center; gap: 16px; min-height: 66px; padding: 10px 14px; }
body.admin-route .war-log-card-heading { min-width: 0; padding: 0; border-bottom: 0; background: transparent; }
body.admin-route .war-log-card-heading > div { gap: 7px; flex-wrap: wrap; }
body.admin-route .war-log-result { min-height: 21px; padding: 0 7px; }
body.admin-route .war-log-matchup { min-width: 0; gap: 9px; padding: 0; }
body.admin-route .war-log-side strong { font-size: 11px; }
body.admin-route .war-log-side span { margin-top: 2px; }
body.admin-route .war-log-score { grid-template-columns: 35px 10px 35px; }
body.admin-route .war-log-score strong { font-size: 24px; }
body.admin-route .war-log-metrics { gap: 9px; padding: 0; }
body.admin-route .war-log-metrics span { gap: 2px; padding: 0; border: 0; background: transparent; }
body.admin-route .war-log-metrics small { font-size: 7px; }
body.admin-route .war-log-metrics strong { font-size: 10px; }
body.admin-route .profile-note-form { padding: 14px 15px 13px; border-top: 1px solid #e6efe8; background: linear-gradient(135deg, #f5fbf6, #fff); }
body.admin-route .profile-note-field { display: grid; gap: 7px; color: #789080; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
body.admin-route .profile-note-field textarea { width: 100%; box-sizing: border-box; min-height: 72px; padding: 10px 11px; resize: vertical; border: 1px solid #d4e4d8; border-radius: 8px; outline: 0; color: #294635; background: #fff; font: 11px/1.45 "DM Sans", sans-serif; letter-spacing: 0; text-transform: none; transition: border-color .2s ease, box-shadow .2s ease; }
body.admin-route .profile-note-field textarea::placeholder { color: #a6b4aa; }
body.admin-route .profile-note-field textarea:focus { border-color: #83b592; box-shadow: 0 0 0 3px rgba(104, 164, 119, .14); }
body.admin-route .profile-note-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }

/* War participants */
body.admin-route .participants-callout { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 13px; padding: 15px 17px; border: 1px solid #d9e9dd; border-radius: 13px; background: linear-gradient(115deg, #eff9f1, #fbfdfb); box-shadow: 0 6px 16px rgba(39, 78, 52, .045); }
body.admin-route .participants-callout strong { display: block; margin-top: 5px; color: #294635; font-size: 14px; }
body.admin-route .participants-callout p { margin: 4px 0 0; color: #789080; font-size: 10px; }
body.admin-route .participants-worthy-count { display: grid; place-items: center; min-width: 68px; min-height: 52px; padding: 0 10px; border: 1px solid #b9d9c0; border-radius: 11px; color: #2f704c; background: #fff; font: 600 23px/1 "Barlow Condensed", sans-serif; box-shadow: 0 5px 12px rgba(45, 95, 61, .08); }
body.admin-route .war-participants-panel { overflow: hidden; border: 1px solid #d8e7dc; border-radius: 14px; background: linear-gradient(180deg, #fff, #fbfdfb); box-shadow: 0 7px 18px rgba(39, 78, 52, .045); }
body.admin-route .war-participants-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 59px; padding: 12px 15px; border-bottom: 1px solid #dce9df; background: rgba(250, 253, 251, .92); }
body.admin-route .war-participants-panel-heading h3 { margin-top: 5px; color: #21372a; font-size: 16px; }
body.admin-route .war-participants-list { display: grid; gap: 5px; padding: 8px; }
body.admin-route .war-participant-row { display: grid; grid-template-columns: 28px 28px minmax(0, 1fr) 92px 56px 56px; align-items: center; gap: 9px; min-height: 54px; padding: 6px 9px 6px 6px; border: 1px solid #e3ece5; border-radius: 10px; background: #fbfdfb; transition: border-color .18s ease, background .18s ease, opacity .18s ease, transform .18s ease, box-shadow .18s ease; }
body.admin-route .war-participant-row:hover { border-color: #bddbc4; background: #fff; }
body.admin-route .war-participant-row.is-unselected { opacity: .62; }
body.admin-route .war-participant-row.is-dragging { opacity: .45; transform: scale(.995); }
body.admin-route .war-participant-row.is-drag-over { border-color: #5eae75; background: #eef9f0; box-shadow: 0 0 0 2px rgba(94, 174, 117, .14); }
body.admin-route .participant-drag-handle { display: grid; place-items: center; width: 28px; height: 34px; padding: 0; border: 0; border-radius: 7px; color: #91a79a; background: transparent; font-size: 19px; line-height: 1; cursor: grab; }
body.admin-route .participant-drag-handle:active { cursor: grabbing; }
body.admin-route .participant-position { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: #557664; background: #e8f3ea; font: 700 11px/1 "Barlow Condensed", sans-serif; }
body.admin-route .participant-identity { min-width: 0; }
body.admin-route .participant-identity strong, body.admin-route .participant-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.admin-route .participant-identity strong { color: #294635; font-size: 12px; }
body.admin-route .participant-identity small { margin-top: 3px; color: #82968a; font-size: 9px; }
body.admin-route .participant-selection-status { color: #87998d; font-size: 9px; font-weight: 700; text-align: center; }
body.admin-route .participant-selection-status.is-worthy { color: #2f704c; }
body.admin-route .participant-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: #577463; font-size: 9px; font-weight: 700; cursor: pointer; }
body.admin-route .participant-toggle input { width: 15px; height: 15px; margin: 0; accent-color: #2f704c; }
body.admin-route .participant-move-actions { display: flex; justify-content: flex-end; gap: 3px; }
body.admin-route .participant-move-button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 1px solid #d7e6da; border-radius: 6px; color: #5d8068; background: #fff; font-size: 13px; cursor: pointer; }
body.admin-route .participant-move-button:hover { border-color: #88b896; color: #245b3d; background: #edf8ef; }
body.admin-route .participants-empty { display: flex; min-height: 150px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; padding: 20px; color: #89978f; text-align: center; font-size: 10px; }
body.admin-route .participants-empty strong { color: #3b5947; font-size: 12px; }

@media (max-width: 900px) {
  body.admin-route .war-log-card { grid-template-columns: 145px minmax(220px, 1fr) 220px; gap: 10px; }
  body.admin-route .war-participant-row { grid-template-columns: 26px 26px minmax(0, 1fr) 78px 52px 52px; gap: 6px; }
}
@media (max-width: 720px) {
  body.admin-route .war-log-card { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 10px 11px; }
  body.admin-route .war-log-card-heading { padding: 0; }
  body.admin-route .war-log-matchup { padding: 0; }
  body.admin-route .war-log-metrics { padding: 0; }
  body.admin-route .participants-callout { align-items: flex-start; }
  body.admin-route .war-participant-row { grid-template-columns: 25px 25px minmax(0, 1fr) 50px; }
  body.admin-route .participant-drag-handle, body.admin-route .participant-position { grid-row: span 2; }
  body.admin-route .participant-identity { grid-column: 3; grid-row: 1; }
  body.admin-route .participant-selection-status { display: none; }
  body.admin-route .participant-move-actions { grid-column: 3; grid-row: 2; justify-content: flex-start; }
  body.admin-route .participant-toggle { grid-column: 4; grid-row: 1; }
}
