/* NYXO Agency · interface 2026. Compact, high-contrast workspace. */
:root {
  --sidebar: 248px;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f5f8fc;
  --line: #dde5ef;
  --text: #1a2a40;
  --muted: #61748a;
  --blue: #2464d5;
  --cyan: #147f91;
  --purple: #7257b8;
  --green: #168466;
  --shadow: 0 4px 16px rgba(17, 38, 67, .045);
  color-scheme: light;
}
html { color-scheme: light; }
body.app-body, body.auth-body {
  color: var(--text);
  background: var(--bg);
  font-family: "Segoe UI Variable", "Segoe UI", Inter, Arial, sans-serif;
  line-height: 1.46;
}
body.app-body::before { display: none; }

/* Navigation stays dark to give the content a clear frame. */
.app-sidebar {
  width: var(--sidebar);
  padding: 17px 12px;
  background: #10243d;
  border-right: 1px solid #223c5b;
  box-shadow: none;
}
.sidebar-head { height: 51px; padding: 0 9px 12px; border-bottom: 1px solid #2d4967; }
.app-brand img { width: 116px; }
.app-user { margin: 15px 0 10px; padding: 10px; background: #19344f; border: 1px solid #345574; border-radius: 10px; box-shadow: none; }
.user-avatar { width: 33px; height: 33px; border-radius: 8px; background: #316aa0; color: #fff; font-size: .7rem; }
.user-avatar img, .topbar-avatar img, .profile-photo-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.app-user strong { color: #f5f9ff; font-size: .79rem; }
.app-user small { color: #b4c9db; font-size: .69rem; }
.app-sidebar nav { gap: 1px; }
.app-nav .nav-group { margin: 12px 0 3px; padding: 5px 10px 3px; color: #8eabc5; font-size: .58rem; letter-spacing: .13em; }
.app-sidebar nav a, .sidebar-foot a { min-height: 34px; padding: 7px 10px; gap: 9px; border: 1px solid transparent; border-radius: 8px; color: #c3d1e0; font-size: .74rem; font-weight: 580; }
.app-sidebar nav a .nav-icon, .sidebar-foot a .nav-icon { width: 15px; height: 15px; color: #91aec8; }
.app-sidebar nav a:hover, .sidebar-foot a:hover { background: #20405e; color: #fff; }
.app-sidebar nav a.is-active { background: #27557f; border-color: #3776aa; box-shadow: inset 3px 0 #9fd2ff; color: #fff; }
.app-sidebar nav a.is-active .nav-icon { color: #e0f1ff; }
.sidebar-foot { padding-top: 11px; border-top-color: #2d4967; }
.sidebar-foot .logout { color: #ffc0c0; }

/* Shared page shell and content rhythm. */
.app-main { width: auto; max-width: none; margin-right: 0; padding: 23px clamp(22px, 2.8vw, 52px) 34px; }
.app-main > * { min-width: 0; }
.app-topbar { min-height: 61px; margin-bottom: 19px; padding-bottom: 16px; align-items: center; border-bottom: 1px solid #dce5ef; }
.app-topbar .eyebrow, .eyebrow { color: #366ba7; font-size: .63rem; font-weight: 760; letter-spacing: .12em; }
.app-topbar h1 { margin: 2px 0 0; color: #172b45; font-size: clamp(1.55rem, 1.75vw, 2rem); font-weight: 730; letter-spacing: -.035em; line-height: 1.16; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.notification-trigger, .page-help-trigger {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 7px 11px; border: 1px solid #d1dce8; border-radius: 9px;
  background: #fff; color: #284363; font: inherit; font-size: .73rem; font-weight: 690;
  text-decoration: none; cursor: pointer; box-shadow: 0 1px 3px rgba(13, 34, 59, .04);
}
.notification-trigger { width: 38px; padding: 0; }
.notification-trigger:hover, .page-help-trigger:hover { background: #eef5fc; border-color: #9bb9d7; color: #163f6a; transform: none; }
.notification-trigger .nav-icon, .page-help-trigger .nav-icon { width: 17px; height: 17px; color: #376c9b; }
.notification-count { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: 99px; background: #dc5b41; color: #fff; font-size: .58rem; line-height: 1; }
.topbar-user { min-height: 36px; padding: 7px 10px; background: #eaf2f9; border-color: #d2e1ee; color: #37516c; font-size: .73rem; }
.topbar-user { text-decoration: none; gap: 7px; }
.topbar-avatar { display: grid; place-items: center; width: 25px; height: 25px; flex: none; overflow: hidden; border-radius: 50%; background: #315f8b; color: #fff; font-size: .6rem; font-weight: 800; }
.topbar-user:hover { border-color: #92b5d4; background: #dfeef9; }
.status-dot { background: #21a679; }

.app-main > .panel, .app-main > .grid-2, .app-main > .grid-3, .app-main > .stats-grid, .app-main > .trend-grid { margin-bottom: 16px; }
.panel, .stat-card, .trend-card { background: #fff; border: 1px solid #dfe6ef; border-radius: 12px; box-shadow: var(--shadow); }
.panel { padding: 19px 21px; }
.panel h2, .trend-card h2 { color: #1b314b; font-size: clamp(1rem, 1.1vw, 1.2rem); font-weight: 720; letter-spacing: -.022em; }
.panel h3 { color: #233b57; }
.panel-head { gap: 12px; margin-bottom: 12px; padding: 0; }
.muted, .panel-head .muted { color: #65788d; }
.page-intro { min-height: 0; margin-bottom: 16px; padding: 17px 20px; gap: 5px 16px; background: #fff; border: 1px solid #dce6f0; border-left: 4px solid #3a82ce; border-radius: 11px; box-shadow: var(--shadow); }
.page-intro::after, .dashboard-welcome::after { display: none; }
.page-intro h2 { color: #1b314b; font-size: 1.3rem; letter-spacing: -.025em; }
.page-intro .muted { color: #63778d; font-size: .84rem; }
.compact-intro { display: block; }
.compact-intro h2 { margin: 2px 0 4px; }
.compact-intro p { margin: 0; }
.dashboard-welcome { min-height: 0; padding: 19px 22px; background: #163554; border: 1px solid #315b80; border-radius: 12px; box-shadow: none; }
.dashboard-welcome h2, .dashboard-welcome h3 { color: #fff; }
.dashboard-welcome .eyebrow { color: #a5d8ff; }
.dashboard-welcome .muted { color: #cbdbe9; }
.dashboard-welcome .btn-ghost { color: #e9f6ff; border-color: #658aaa; background: #244765; }
.dashboard-welcome .btn-ghost:hover { background: #30597a; }

/* Data is compact and scan-friendly. */
.stats-grid { gap: 11px; }
.stat-card { min-height: 94px; padding: 16px 18px; box-shadow: var(--shadow); }
.stat-card::before { width: 3px; background: #3979c8; }
.stat-card.tone-cyan::before { background: #25a3ad; }
.stat-card.tone-purple::before { background: #8a6bc3; }
.stat-card.tone-green::before { background: #27a276; }
.stat-card.tone-amber::before { background: #e8a435; }
.stat-label { color: #667b90; font-size: .68rem; }
.stat-card strong { margin-top: 6px; color: #173554; font-size: clamp(1.45rem, 1.55vw, 1.85rem); font-weight: 735; line-height: 1.1; }
.stat-card small { color: #72859a; }
.trend-card { padding: 13px; }
.trend-unit { background: #eef3f8; border-color: #d9e5ee; color: #60758b; }
.trend-gridline { stroke: #d4dfe9; }
.trend-month { fill: #657b91; }
.trend-legend, .trend-details summary { color: #526b85; }
.trend-point { fill: #fff; }
.trend-details { border-color: #e0e8ef; }
.founder-tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.founder-tool-grid a, .reward-tier-card, .match-request-card { min-height: 0; padding: 14px; background: #f8fafc; border: 1px solid #dfe7ef; border-radius: 10px; box-shadow: none; }
.founder-tool-grid a { gap: 4px; padding-right: 30px; }
.founder-tool-grid a::after { top: 11px; right: 13px; color: #4a83ba; }
.founder-tool-grid a:hover { background: #eff6fd; border-color: #9cbcdf; transform: none; }
.founder-tool-grid a strong, .reward-tier-card h3 { color: #234466; font-size: .82rem; }
.founder-tool-grid a span, .reward-tier-card p { color: #6c8094; font-size: .72rem; }
.reward-tier-card > strong { color: #285b95; }

/* Founder overview puts actions first and hides empty charts. */
.founder-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 165px; margin-bottom: 14px; padding: 22px 28px; border-radius: 13px; background: linear-gradient(115deg, #163a5c, #214d73); color: #fff; }
.founder-hero-copy { min-width: 0; }
.founder-hero .eyebrow { color: #b8dcf7; }
.founder-hero h2 { margin: 5px 0 7px; color: #fff; font-size: clamp(1.4rem, 1.65vw, 1.85rem); letter-spacing: -.034em; }
.founder-hero p { margin: 0; color: #d3e2ee; font-size: .83rem; }
.founder-hero .actions { margin-top: 16px; gap: 8px; }
.founder-hero .btn-primary { background: #fff; border-color: #fff; color: #17456e; }
.founder-hero .btn-ghost, .founder-month-picker .btn-ghost { background: #315e83; border-color: #638aab; color: #fff; }
.founder-month-picker { display: flex; align-items: end; gap: 8px; flex: 0 0 auto; }
.founder-month-picker label { color: #e7f2fc; font-size: .72rem; }
.founder-month-picker input { width: 170px; }
.founder-metrics { margin-bottom: 15px; }
.founder-metrics .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.founder-dashboard-main { display: grid; grid-template-columns: minmax(320px, .88fr) minmax(0, 1.12fr); gap: 15px; margin-bottom: 15px; }
.founder-dashboard-main .panel { min-width: 0; margin: 0; }
.priority-row { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid #e8edf3; text-decoration: none; }
.priority-row:hover strong { color: #1d62ab; }
.priority-icon { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; background: #e7f1fa; color: #2f6ea8; font-size: 1.1rem; }
.priority-row > span:nth-child(2) { min-width: 0; flex: 1; }
.priority-row strong, .priority-row small { display: block; }
.priority-row strong { color: #23405f; font-size: .8rem; }
.priority-row small { margin-top: 2px; color: #75879b; font-size: .68rem; }
.priority-row em { flex: none; font-style: normal; }
.text-link { color: #2269af; font-size: .75rem; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.insights-disclosure { padding: 12px 0 0; border-top: 1px solid #e8edf3; }
.insights-disclosure summary { cursor: pointer; color: #246baa; font-size: .79rem; font-weight: 700; }
.insights-disclosure .trend-grid { margin-top: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.insights-empty { padding: 20px 2px; border-top: 1px solid #e8edf3; }
.insights-empty strong { color: #2c4763; font-size: .82rem; }
.insights-empty p { margin: 5px 0 10px; color: #72859a; font-size: .76rem; }

/* Forms, tables, messages. */
.app-main label { color: #334b65; font-size: .74rem; font-weight: 675; }
.app-main label small { color: #71849a; font-size: .68rem; }
.app-main input:not([type=checkbox]):not([type=radio]), .app-main select, .app-main textarea { min-height: 40px; padding: 9px 11px; background: #fff; border: 1px solid #cbd8e6; border-radius: 8px; color: #1d3049; font-size: .82rem; }
.app-main input::placeholder, .app-main textarea::placeholder { color: #91a0af; }
.app-main input:focus, .app-main select:focus, .app-main textarea:focus { border-color: #438aca; box-shadow: 0 0 0 3px rgba(58, 133, 207, .13); }
.app-main input[type=file] { padding: 7px; }
.app-main textarea { min-height: 82px; }
.app-main input[type=checkbox], .app-main input[type=radio] { accent-color: #2871b7; }
.btn { min-height: 37px; padding: 8px 12px; border-radius: 8px; font-size: .76rem; font-weight: 710; box-shadow: none; }
.btn:hover { transform: none; }
.btn-primary { background: #2466ac; border-color: #2466ac; color: #fff; }
.btn-primary:hover { background: #18588f; border-color: #18588f; color: #fff; }
.btn-ghost { background: #fff; border-color: #cfdae6; color: #315476; }
.btn-ghost:hover { background: #eef5fb; border-color: #9ebcd7; color: #244766; }
.btn-danger { background: #fff4f2; border-color: #e8b8ad; color: #9d3b2c; }
.filter-bar { gap: 10px; }
.filter-bar label { flex: 1 1 170px; }
.table-wrap { background: #fff; border: 1px solid #e0e7ef; border-radius: 9px; }
.table-wrap th, .table-wrap td { padding: 10px 12px; border-bottom: 1px solid #e8edf3; }
.table-wrap th { background: #f1f5f9; color: #5b6f84; font-size: .65rem; letter-spacing: .045em; }
.table-wrap td { color: #263d57; font-size: .74rem; }
.table-wrap tbody tr:nth-child(even) { background: #fafbfd; }
.table-wrap tbody tr:hover { background: #edf5fc; }
.team-table th:first-child { background: #f1f5f9; }
.team-table td:first-child { background: #fff; box-shadow: 1px 0 #e0e7ef; }
.table-wrap a:not(.btn) { color: #256aab; }
.badge, .status-badge { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid #d5e2ee; border-radius: 99px; background: #eaf2f9; color: #345b7f; font-size: .66rem; font-weight: 740; white-space: nowrap; }
.badge.good, .status-approved, .status-completed, .join-status-closed { background: #e4f4ec; border-color: #acd9bd; color: #176a48; }
.badge.warn, .status-pending, .join-status-new { background: #fff1dc; border-color: #f0c783; color: #9b5700; }
.badge.bad, .status-refused, .status-cancelled { background: #fdeceb; border-color: #edc1ba; color: #a44239; }
.join-status-reviewed, .status-scheduled { background: #e9f1fb; border-color: #bed3ec; color: #2b5f9a; }
.kpi-pill { background: #eef4f9; border-color: #d7e2ed; color: #3f5f7d; }
.progress { background: #e4edf5; }
.progress > i { background: #3279c1; }
.flash { padding: 11px 13px; border-color: #bcd5ec; background: #eaf4fd; color: #28547e; }
.flash.success { border-color: #b3dfc5; background: #e7f6ed; color: #236846; }
.flash.error { border-color: #efc3bd; background: #fff0ed; color: #a13f32; }
.empty { padding: 27px 16px; background: #f8fafc; border: 1px dashed #c8d8e7; border-radius: 9px; }
.empty-mark { color: #6b9dc8; }
.empty strong { color: #31516f; }
.empty p { color: #6b7f94; }
.activity-entry, .followup-entry { border-bottom-color: #e5ecf2; }
.followup-entry p, .charter-content { color: #425a73; }
.pagination, .app-footer { color: #71859a; }
.app-footer { margin-top: 22px; border-top-color: #dfe7ef; }
.charter-panel { max-width: none; }
.staff-workspace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; align-items: start; }
.staff-workspace .panel { min-width: 0; height: 100%; }
.staff-workspace .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.staff-workspace .grid > .btn, .staff-workspace .grid label.full { grid-column: 1 / -1; }

/* Official match request editor. */
.match-request-list { gap: 12px; }
.match-request-card { position: relative; padding: 17px; background: #fff; }
.match-request-card.status-pending { border-left: 4px solid #e3a13b; }
.match-request-heading h3 { margin: 7px 0 2px; color: #1e3854; font-size: .95rem; }
.match-request-heading small { color: #76889b; }
.match-request-heading > strong { color: #3b6389; font-size: .78rem; }
.match-request-details { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 12px 0; }
.match-request-details div { padding: 9px; background: #f4f7fa; border-radius: 7px; }
.match-request-details dt { color: #6b7f93; font-size: .66rem; }
.match-request-details dd { color: #2c4662; font-size: .75rem; }
.match-poster-preview { float: right; display: block; width: 68px; height: 68px; margin: 8px 0 8px 12px; border-radius: 7px; overflow: hidden; background: #edf2f8; }
.match-poster-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.match-editor { margin-top: 10px; border-top: 1px solid #e5ebf1; }
.match-editor summary { padding: 11px 0; cursor: pointer; color: #2269a7; font-size: .76rem; font-weight: 740; }
.match-edit-form { padding: 5px 0 14px; }
.match-edit-form .btn { justify-self: start; }
.match-review-form { display: grid; grid-template-columns: minmax(155px, .28fr) minmax(0, 1fr) auto; gap: 9px; align-items: end; padding-top: 12px; border-top: 1px solid #e5ebf1; }
.match-review-form .btn { align-self: end; }
.match-review-form textarea { min-height: 40px; height: 40px; resize: vertical; }
.match-poster-link { color: #2569a6; font-weight: 700; }

/* Applications and in-site notifications. */
.join-request-list { display: grid; gap: 12px; }
.join-request-card { margin: 0; }
.join-request-card .panel-head h2 { margin: 4px 0 0; }
.join-request-details { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 10px 0; }
.join-request-details div { min-width: 125px; }
.join-request-details dt { color: #71849a; font-size: .66rem; }
.join-request-details dd { margin: 2px 0 0; color: #2c4967; font-size: .78rem; }
.join-request-details a { color: #2468a8; }
.join-request-message { padding: 12px; border-radius: 8px; background: #f5f8fb; color: #344f6a; font-size: .79rem; line-height: 1.6; }
.join-request-actions { display: flex; align-items: end; gap: 10px; margin-top: 12px; }
.join-request-actions label { width: min(220px, 100%); }
.notification-list { display: grid; }
.notification-item { margin: 0; border-top: 1px solid #e7edf3; }
.notification-item button { width: 100%; display: flex; align-items: center; gap: 13px; padding: 13px 5px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.notification-item button:hover { background: #f3f8fc; }
.notification-item-mark { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #bccbd9; }
.notification-item.is-unread .notification-item-mark { background: #2776bf; }
.notification-item button > span:nth-child(2) { flex: 1; }
.notification-item button > span:nth-child(2) strong, .notification-item button > span:nth-child(2) span { display: block; }
.notification-item strong { color: #213d59; font-size: .8rem; }
.notification-item button span span { margin-top: 3px; color: #687e93; font-size: .73rem; }
.notification-item time { margin-left: auto; color: #8796a7; font-size: .67rem; white-space: nowrap; }

/* Compact notification menu, available from every signed-in page. */
.notification-menu { position: relative; flex: none; }
.notification-menu > summary { list-style: none; }
.notification-menu > summary::-webkit-details-marker { display: none; }
.notification-menu[open] > summary { border-color: #8cb9df; background: #eef6fd; }
.notification-popover { position: absolute; z-index: 110; top: calc(100% + 10px); right: 0; width: min(390px, calc(100vw - 24px)); max-height: min(500px, calc(100dvh - 100px)); overflow: auto; border: 1px solid #cfdde9; border-radius: 12px; background: #fff; color: #243d58; box-shadow: 0 18px 45px rgba(14, 38, 65, .2); }
.notification-popover-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 17px; border-bottom: 1px solid #e7edf3; }
.notification-popover-head strong { font-size: .88rem; }
.notification-popover-head span { color: #70859b; font-size: .7rem; }
.notification-popover-list { padding: 0 11px; }
.notification-popover .notification-item button { gap: 10px; padding: 11px 5px; }
.notification-popover .notification-item button > span:nth-child(2) { min-width: 0; }
.notification-popover .notification-item strong { font-size: .77rem; }
.notification-popover .notification-item button span span { line-height: 1.35; }
.notification-popover .notification-item time { font-size: .61rem; }
.notification-popover-empty { margin: 0; padding: 24px 17px; color: #71849a; font-size: .78rem; }
.notification-popover-all { display: block; width: 100%; padding: 12px 17px; border: 0; border-top: 1px solid #e7edf3; background: transparent; color: #276eaa; font: inherit; font-size: .76rem; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
.notification-popover-all:hover { background: #f2f7fb; }

/* Match requests: all editable information remains visible. */
.match-management { padding: 17px; }
.match-management > .panel-head { margin-bottom: 12px; }
.match-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; padding: 12px; background: #f4f7fa; border: 1px solid #e0e8f0; border-radius: 9px; }
.match-filters label:first-child { flex: 1 1 270px; }
.match-filters label:nth-child(2) { flex: 0 1 185px; }
.match-filters .btn { flex: none; }
.match-inline-card { margin: 0; padding: 0; background: #fff; overflow: hidden; }
.match-inline-card + .match-inline-card { margin-top: 11px; }
.match-inline-card .match-request-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 53px; padding: 9px 12px; border-bottom: 1px solid #e4ebf2; }
.match-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 18px; }
.match-person { display: flex; align-items: center; gap: 5px; font-size: .76rem; }
.match-person small, .match-request-meta { color: #75889b; font-size: .68rem; }
.match-person strong { color: #233f5c; font-weight: 690; }
.match-inline-form { padding: 11px 12px 12px; }
.match-primary-fields { display: grid; grid-template-columns: 1.1fr .8fr .65fr 1.2fr 1.2fr .55fr; gap: 8px; align-items: end; }
.match-primary-fields label, .match-secondary-fields label, .match-image-field { display: grid; gap: 4px; min-width: 0; }
.match-primary-fields input, .match-primary-fields select, .match-secondary-fields input, .match-secondary-fields select { width: 100%; }
.match-boost > span { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 10px; border: 1px solid #cbd8e6; border-radius: 8px; background: #fff; color: #31506c; }
.match-creator-message { margin: 10px 0 0; padding: 8px 10px; border-left: 2px solid #9fc2e2; background: #f5f8fb; color: #4a627a; font-size: .73rem; }
.match-creator-message strong { margin-right: 7px; color: #2f5272; }
.match-secondary-fields { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(250px, 1.25fr) minmax(140px, .5fr) auto; gap: 10px; align-items: end; margin-top: 10px; }
.match-image-field > span { color: #334b65; font-size: .74rem; font-weight: 675; }
.match-image-field > div { display: flex; align-items: center; gap: 7px; min-width: 0; }
.match-image-field input[type=file] { width: min(210px, 100%); min-width: 0; min-height: 40px; }
.match-image-field small { color: #71849a; font-size: .64rem; }
.match-poster-mini { display: inline-flex; align-items: center; gap: 5px; flex: none; color: #236ba9; font-size: .69rem; text-decoration: none; }
.match-poster-mini img { width: 28px; height: 28px; object-fit: cover; border-radius: 5px; }
.match-remove-image { display: inline-flex !important; align-items: center; gap: 3px !important; flex: none; font-size: .66rem !important; }
.match-secondary-fields > .btn { margin-bottom: 1px; }

/* Theme preference is stored per account and used on all member pages. */
.theme-choice-form { display: flex; align-items: stretch; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.theme-option { display: flex !important; align-items: center; gap: 10px; min-width: 205px; padding: 13px; border: 1px solid #d5e0ea; border-radius: 9px; background: #f7fafd; cursor: pointer; }
.theme-option:has(input:checked) { border-color: #3e83c3; box-shadow: 0 0 0 2px rgba(62,131,195,.12); }
.theme-option span, .theme-option strong, .theme-option small { display: block; }
.theme-option strong { color: #203a55; font-size: .8rem; }
.theme-option small { color: #71849a; font-weight: 400; }
.theme-choice-form .btn { align-self: center; }
.profile-photo-settings-row { display: flex; align-items: flex-start; gap: 17px; }
.profile-photo-preview { display: grid; place-items: center; width: 70px; height: 70px; flex: none; overflow: hidden; border-radius: 50%; background: #315f8b; color: #fff; font-size: 1.15rem; font-weight: 800; }
.profile-photo-settings-row > div { flex: 1; min-width: 0; }
.profile-photo-settings-row p { margin: 0 0 10px; }
.profile-photo-form { display: flex; align-items: end; flex-wrap: wrap; gap: 9px; }
.profile-photo-form label { flex: 1 1 230px; }
.profile-photo-form input { width: 100%; }
.profile-photo-remove-form { margin-top: 8px; }

/* Accessible contextual guide. */
.page-help-dialog { width: min(500px, calc(100vw - 28px)); max-height: calc(100dvh - 30px); padding: 24px; border: 1px solid #cbdbe9; border-radius: 13px; background: #fff; color: #263d57; box-shadow: 0 30px 80px rgba(11, 33, 58, .28); }
.page-help-dialog::backdrop { background: rgba(13, 32, 53, .55); backdrop-filter: blur(2px); }
.page-help-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.page-help-close { width: 31px; height: 31px; border: 1px solid #d4e0ea; border-radius: 7px; background: #f3f7fa; color: #35536f; font-size: 1.3rem; cursor: pointer; }
.page-help-dialog h2 { margin: 7px 0 9px; color: #183a5d; font-size: 1.5rem; }
.page-help-dialog h3 { margin: 18px 0 7px; font-size: .86rem; }
.page-help-dialog p, .page-help-dialog li { color: #536b83; font-size: .81rem; line-height: 1.6; }
.page-help-dialog ol { margin-bottom: 19px; padding-left: 21px; }

/* Authentication uses a dark identity panel and a calm white form. */
body.auth-body { background: #eef3f8; color: #243b56; }
.auth-layout { width: min(1420px, 100%); max-width: 1420px; grid-template-columns: minmax(0, 1fr) minmax(380px, 470px); gap: 16px; padding: clamp(16px, 2.4vw, 34px); }
.auth-story { min-height: calc(100dvh - 68px); padding: clamp(28px, 4vw, 58px); border: 0; border-radius: 16px; background: linear-gradient(140deg, #102d4c, #17446a 55%, #1d5c86); box-shadow: none; }
.auth-story::before { top: -190px; right: -90px; width: 490px; height: 490px; background: radial-gradient(circle, rgba(133, 203, 251, .15), transparent 70%); }
.auth-story::after { display: block; bottom: -270px; left: -130px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(73, 150, 210, .14), transparent 70%); }
.auth-brand img { width: 125px; }
.auth-story-copy { max-width: 590px; margin: 50px 0 20px; padding: 0; }
.auth-story .auth-kicker { color: #b5ddfb; }
.auth-story h1 { max-width: 560px; color: #fff; font-size: clamp(2.3rem, 3.7vw, 3.9rem); font-weight: 735; line-height: 1.06; letter-spacing: -.05em; }
.auth-story p { color: #d4e5f1; font-size: .99rem; line-height: 1.6; }
.auth-story-foot { color: #bfd6e6; }
.auth-panel { max-width: 470px; padding: clamp(24px, 3vw, 42px); border: 1px solid #dce6ef; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(19, 48, 78, .07); }
.auth-panel .auth-kicker { color: #3879b9; }
.auth-panel h2 { color: #1a3654; font-size: 1.8rem; }
.auth-panel .auth-intro { color: #657b91; font-size: .82rem; }
.auth-form { gap: 13px; }
.auth-form label { color: #39546f; font-size: .75rem; }
.auth-form input:not([type=checkbox]) { min-height: 45px; background: #fff; border: 1px solid #cbd9e6; color: #203b57; }
.auth-form input:focus-visible { border-color: #438aca; box-shadow: 0 0 0 3px rgba(58, 133, 207, .13); }
.auth-password-toggle { min-height: 45px; background: #edf3f8; border-color: #cbd9e6; color: #385c7d; }
.auth-password-toggle:hover { background: #e1eef8; color: #1d4d76; }
.auth-form .auth-submit { min-height: 45px; margin-top: 3px; }
.auth-actions { border-top: 1px solid #e3eaf0; }
.auth-actions a, .auth-back { color: #286fae; }
.auth-note { color: #8291a2; }
.auth-error { background: #fff0ed; border-color: #efc3bd; color: #9d3e34; }
.auth-panel details { background: #f7fafc; border-color: #dce6ef; }
.auth-panel details summary { color: #285c88; }
.auth-panel details p { color: #5c7186; }

@media (max-width: 1250px) {
  .founder-tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .staff-workspace { grid-template-columns: 1fr; }
}
@media (max-width: 1050px) {
  .match-request-details { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .founder-dashboard-main { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .app-sidebar { width: min(330px, 88vw); }
  .app-main { padding: 20px clamp(17px, 3vw, 31px) calc(104px + env(safe-area-inset-bottom)); }
  .app-bottom-nav { background: rgba(255, 255, 255, .97); border-color: #d9e4ee; box-shadow: 0 -10px 25px rgba(29, 55, 82, .12); }
  .bottom-nav-item { color: #6a8197; }
  .bottom-nav-item.is-active:not(.bottom-nav-home) { color: #245f98; background: #e8f2fa; }
  .bottom-nav-home .bottom-nav-icon { background: #2466a8; border-color: #3678b6; box-shadow: 0 6px 15px rgba(23, 78, 126, .22); }
  .auth-layout { max-width: 720px; grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .app-main { padding-inline: 13px; padding-top: 16px; }
  .app-topbar { min-height: 53px; margin-bottom: 15px; padding-bottom: 13px; }
  .app-topbar h1 { font-size: clamp(1.35rem, 4.6vw, 1.7rem); }
  .topbar-user { width: 36px; height: 36px; min-height: 36px; padding: 4px; justify-content: center; }
  .topbar-user > span:last-child { display: none; }
  .page-help-trigger { width: 36px; padding: 0; }
  .page-help-trigger span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .panel { padding: 16px; }
  .founder-hero { flex-direction: column; align-items: stretch; min-height: 0; padding: 20px; }
  .founder-month-picker { align-self: flex-start; }
  .founder-metrics .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder-tool-grid, .insights-disclosure .trend-grid { grid-template-columns: 1fr; }
  .match-request-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-review-form { grid-template-columns: 1fr; }
  .match-review-form .btn { justify-self: start; }
  .staff-workspace .grid { grid-template-columns: 1fr; }
  .staff-workspace .grid > .btn, .staff-workspace .grid label.full { grid-column: auto; }
  .auth-layout { padding: 10px; }
  .auth-story { min-height: 0; }
  .auth-story-copy { margin: 15px 0 0; }
  .auth-story h1 { font-size: clamp(1.8rem, 6.5vw, 2.5rem); }
}
@media (max-width: 480px) {
  .founder-metrics .stats-grid { grid-template-columns: 1fr 1fr; }
  .founder-month-picker { flex-wrap: wrap; }
  .match-request-details { grid-template-columns: 1fr 1fr; }
  .notification-item time { display: none; }
  .join-request-actions { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .notification-trigger, .page-help-trigger { transition: none; }
}

@media (max-width: 1280px) {
  .match-primary-fields { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .match-secondary-fields { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .match-secondary-fields > .btn { justify-self: start; }
}
@media (max-width: 760px) {
  .match-management { padding: 12px; }
  .match-inline-card .match-request-heading { align-items: flex-start; flex-direction: column; }
  .match-primary-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .match-secondary-fields { grid-template-columns: 1fr; }
  .match-image-field > div { flex-wrap: wrap; }
  .match-filters label:nth-child(2) { flex: 1 1 150px; }
  .notification-popover { right: -45px; }
}
@media (max-width: 470px) {
  .match-primary-fields { grid-template-columns: 1fr; }
  .match-identity { gap: 7px 10px; }
  .notification-popover { right: -50px; }
}

body.app-body[data-theme="dark"] {
  --bg: #0c1523; --surface: #132237; --surface-2: #172a40; --line: #2a425b;
  --text: #e8f1fb; --muted: #a4b8cc; --shadow: 0 8px 25px rgba(0,0,0,.16);
  color-scheme: dark; background: var(--bg); color: var(--text);
}
body.app-body[data-theme="dark"] .app-sidebar { background: #091320; border-color: #22374d; }
body.app-body[data-theme="dark"] .app-topbar, body.app-body[data-theme="dark"] .app-footer { border-color: #2a4056; }
body.app-body[data-theme="dark"] .app-topbar h1, body.app-body[data-theme="dark"] .panel h2,
body.app-body[data-theme="dark"] .panel h3, body.app-body[data-theme="dark"] .trend-card h2,
body.app-body[data-theme="dark"] .page-intro h2 { color: #f4f8fd; }
body.app-body[data-theme="dark"] .eyebrow, body.app-body[data-theme="dark"] .app-topbar .eyebrow { color: #8fc7f9; }
body.app-body[data-theme="dark"] .panel, body.app-body[data-theme="dark"] .stat-card,
body.app-body[data-theme="dark"] .trend-card, body.app-body[data-theme="dark"] .page-intro,
body.app-body[data-theme="dark"] .table-wrap, body.app-body[data-theme="dark"] .match-inline-card,
body.app-body[data-theme="dark"] .founder-tool-grid a, body.app-body[data-theme="dark"] .reward-tier-card,
body.app-body[data-theme="dark"] .match-request-card { background: #132237; border-color: #2b435b; color: #e4edf7; box-shadow: none; }
body.app-body[data-theme="dark"] .dashboard-welcome { background: #193b5a; }
body.app-body[data-theme="dark"] .muted, body.app-body[data-theme="dark"] .panel-head .muted,
body.app-body[data-theme="dark"] .app-footer, body.app-body[data-theme="dark"] .pagination,
body.app-body[data-theme="dark"] .stat-label, body.app-body[data-theme="dark"] .stat-card small,
body.app-body[data-theme="dark"] .match-request-meta, body.app-body[data-theme="dark"] .match-person small { color: #a7bad0; }
body.app-body[data-theme="dark"] .stat-card strong, body.app-body[data-theme="dark"] .match-person strong,
body.app-body[data-theme="dark"] .priority-row strong, body.app-body[data-theme="dark"] .founder-tool-grid a strong,
body.app-body[data-theme="dark"] .reward-tier-card h3, body.app-body[data-theme="dark"] .empty strong,
body.app-body[data-theme="dark"] .notification-item strong { color: #edf6ff; }
body.app-body[data-theme="dark"] .app-main label, body.app-body[data-theme="dark"] .match-image-field > span { color: #cfdfef; }
body.app-body[data-theme="dark"] .app-main label small, body.app-body[data-theme="dark"] .match-image-field small { color: #99afc5; }
body.app-body[data-theme="dark"] .app-main input:not([type=checkbox]):not([type=radio]),
body.app-body[data-theme="dark"] .app-main select, body.app-body[data-theme="dark"] .app-main textarea,
body.app-body[data-theme="dark"] .match-boost > span { background: #0e1a2a; border-color: #38536e; color: #f1f6fc; }
body.app-body[data-theme="dark"] .app-main input::placeholder, body.app-body[data-theme="dark"] .app-main textarea::placeholder { color: #7f97af; }
body.app-body[data-theme="dark"] .notification-trigger, body.app-body[data-theme="dark"] .page-help-trigger,
body.app-body[data-theme="dark"] .btn-ghost { background: #1c334b; border-color: #3b5874; color: #e3f0fc; }
body.app-body[data-theme="dark"] .notification-trigger:hover, body.app-body[data-theme="dark"] .page-help-trigger:hover,
body.app-body[data-theme="dark"] .btn-ghost:hover { background: #274663; }
body.app-body[data-theme="dark"] .topbar-user, body.app-body[data-theme="dark"] .trend-unit,
body.app-body[data-theme="dark"] .kpi-pill { background: #1c344e; border-color: #38546f; color: #cfe2f3; }
body.app-body[data-theme="dark"] .topbar-user:hover { background: #274663; }
body.app-body[data-theme="dark"] .match-filters, body.app-body[data-theme="dark"] .match-creator-message,
body.app-body[data-theme="dark"] .join-request-message, body.app-body[data-theme="dark"] .empty,
body.app-body[data-theme="dark"] .theme-option { background: #192c42; border-color: #35516c; color: #d9e8f6; }
body.app-body[data-theme="dark"] .match-inline-card .match-request-heading, body.app-body[data-theme="dark"] .notification-item,
body.app-body[data-theme="dark"] .priority-row, body.app-body[data-theme="dark"] .insights-disclosure,
body.app-body[data-theme="dark"] .notification-popover-head, body.app-body[data-theme="dark"] .notification-popover-all { border-color: #2e475f; }
body.app-body[data-theme="dark"] .table-wrap th, body.app-body[data-theme="dark"] .team-table th:first-child,
body.app-body[data-theme="dark"] .team-table td:first-child { background: #1b3047; color: #d8e8f7; border-color: #2d465e; }
body.app-body[data-theme="dark"] .table-wrap td { color: #d8e8f7; border-color: #2d465e; }
body.app-body[data-theme="dark"] .table-wrap tbody tr:nth-child(even) { background: #16283d; }
body.app-body[data-theme="dark"] .table-wrap tbody tr:hover, body.app-body[data-theme="dark"] .notification-item button:hover { background: #203951; }
body.app-body[data-theme="dark"] .badge:not(.status-badge):not(.good):not(.warn):not(.bad),
body.app-body[data-theme="dark"] .status-scheduled { background: #213d58; border-color: #42617e; color: #dcefff; }
body.app-body[data-theme="dark"] .status-pending, body.app-body[data-theme="dark"] .badge.warn { background: #52371b; border-color: #9b6d2f; color: #ffd397; }
body.app-body[data-theme="dark"] .status-approved, body.app-body[data-theme="dark"] .badge.good { background: #153d35; border-color: #357e65; color: #9fe7c4; }
body.app-body[data-theme="dark"] .status-refused, body.app-body[data-theme="dark"] .badge.bad { background: #4c2a30; border-color: #93525a; color: #ffc1c8; }
body.app-body[data-theme="dark"] .notification-popover, body.app-body[data-theme="dark"] .page-help-dialog { background: #16273a; border-color: #38536d; color: #e8f2fc; }
body.app-body[data-theme="dark"] .notification-popover-head span, body.app-body[data-theme="dark"] .notification-popover-empty,
body.app-body[data-theme="dark"] .notification-item button span span, body.app-body[data-theme="dark"] .notification-item time,
body.app-body[data-theme="dark"] .page-help-dialog p, body.app-body[data-theme="dark"] .page-help-dialog li { color: #a9bfd3; }
body.app-body[data-theme="dark"] .notification-popover-all, body.app-body[data-theme="dark"] .text-link { color: #9bd0ff; }
body.app-body[data-theme="dark"] .page-help-dialog h2 { color: #f3f8ff; }
body.app-body[data-theme="dark"] .page-help-close { background: #213b53; border-color: #47617b; color: #fff; }
body.app-body[data-theme="dark"] .theme-option strong { color: #ecf6ff; }
@media (max-width: 1024px) {
  body.app-body[data-theme="dark"] .app-bottom-nav { background: rgba(15,27,43,.97); border-color: #2b435b; }
  body.app-body[data-theme="dark"] .bottom-nav-item { color: #abc0d4; }
  body.app-body[data-theme="dark"] .bottom-nav-item.is-active:not(.bottom-nav-home) { color: #d2eaff; background: #1c3b58; }
}

/* Founder report and complete account profile. */
.report-summary-grid, .user-profile-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; margin-bottom: 16px; }
.report-overview-grid, .user-profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; margin-bottom: 16px; }
.report-overview-grid > .panel, .user-profile-grid > .panel { min-width: 0; margin: 0; }
.server-check-list { display: grid; gap: 0; margin-top: 10px; }
.server-check { display: grid; grid-template-columns: 88px minmax(100px,.7fr) minmax(0,1fr); align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #e4ebf2; font-size: .76rem; }
.server-check .badge { justify-self: start; }
.server-check strong { color: #28435f; }
.server-check > span:last-child { min-width: 0; overflow-wrap: anywhere; color: #668099; }
.report-server-meta, .report-note { margin: 13px 0 0; color: #6c8195; font-size: .71rem; }
.report-queue { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.report-queue a { display: flex; flex-direction: column; gap: 2px; padding: 13px; border: 1px solid #dce6ef; border-radius: 9px; background: #f7fafd; text-decoration: none; }
.report-queue a:hover { border-color: #97bcde; background: #eef6fc; }
.report-queue strong { color: #1c527d; font-size: 1.25rem; line-height: 1; }
.report-queue span { color: #5f7790; font-size: .72rem; }
.report-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 9px; margin: 12px 0 15px; }
.report-filters label { flex: 1 1 140px; }
.report-filters label:first-child { flex: 2 1 230px; }
.report-filters .btn { flex: none; }
.report-log-details { max-width: 300px; overflow-wrap: anywhere; font-size: .69rem !important; }
.profile-link { color: #246aab; font-weight: 750; text-decoration: none; }
.profile-link:hover { text-decoration: underline; }
.user-profile-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.user-profile-identity { display: flex; align-items: center; gap: 15px; min-width: 0; }
.user-profile-photo { width: 60px; height: 60px; flex: none; border-radius: 50%; object-fit: cover; }
.user-profile-hero h2 { margin: 3px 0 5px; font-size: clamp(1.35rem,2vw,1.8rem); }
.user-profile-hero p { margin: 0; }
.user-profile-hero-actions { display: flex; align-items: center; gap: 10px; }
.user-profile-metrics .stat-card strong { font-size: clamp(.95rem,1.25vw,1.35rem); overflow-wrap: anywhere; }
.profile-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; margin: 10px 0 18px; }
.profile-facts div { padding: 10px 0; border-top: 1px solid #e6edf3; }
.profile-facts dt { color: #72869a; font-size: .67rem; }
.profile-facts dd { margin: 3px 0 0; color: #264360; font-size: .79rem; font-weight: 700; overflow-wrap: anywhere; }
.profile-team-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.profile-team-list a { padding: 6px 9px; border: 1px solid #c8dce9; border-radius: 7px; color: #286ca5; font-size: .72rem; text-decoration: none; }
.profile-record-list { display: grid; gap: 8px; }
.profile-record-list > div { padding: 11px; border: 1px solid #e1e9f0; border-radius: 8px; background: #f8fafc; }
.profile-record-list strong, .profile-record-list span { display: block; }
.profile-record-list strong { color: #254763; font-size: .76rem; }
.profile-record-list span, .profile-record-list p { margin: 3px 0 0; color: #657b90; font-size: .71rem; }
body.app-body[data-theme="dark"] .server-check, body.app-body[data-theme="dark"] .profile-facts div { border-color: #2d465e; }
body.app-body[data-theme="dark"] .server-check strong, body.app-body[data-theme="dark"] .profile-facts dd,
body.app-body[data-theme="dark"] .profile-record-list strong { color: #e4f1ff; }
body.app-body[data-theme="dark"] .server-check > span:last-child, body.app-body[data-theme="dark"] .profile-facts dt,
body.app-body[data-theme="dark"] .report-server-meta, body.app-body[data-theme="dark"] .report-note,
body.app-body[data-theme="dark"] .profile-record-list span, body.app-body[data-theme="dark"] .profile-record-list p { color: #a5bbcf; }
body.app-body[data-theme="dark"] .report-queue a, body.app-body[data-theme="dark"] .profile-record-list > div { background: #192c42; border-color: #34516d; }
body.app-body[data-theme="dark"] .report-queue span { color: #afc6d9; }
body.app-body[data-theme="dark"] .report-queue strong, body.app-body[data-theme="dark"] .profile-link,
body.app-body[data-theme="dark"] .profile-team-list a { color: #9bd0ff; }
body.app-body[data-theme="dark"] .profile-team-list a { border-color: #3a5a76; }
@media (max-width: 1100px) { .report-summary-grid, .user-profile-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 740px) { .report-overview-grid, .user-profile-grid { grid-template-columns: 1fr; } .user-profile-hero { align-items: flex-start; flex-direction: column; } }
@media (max-width: 480px) { .report-summary-grid, .user-profile-metrics { grid-template-columns: 1fr 1fr; } .server-check { grid-template-columns: 70px 1fr; } .server-check > span:last-child { grid-column: 2; } .profile-facts { grid-template-columns: 1fr; } }
