:root {
  --bg: #f1eee7;
  --bg-glow-1: rgba(255, 107, 44, 0.2);
  --bg-glow-2: rgba(91, 115, 214, 0.14);
  --surface: rgba(255, 255, 255, 0.55);
  --surface-strong: rgba(255, 255, 255, 0.78);
  --text: #17150f;
  --muted: #7a766c;
  --line: rgba(23, 21, 15, 0.1);
  --black: #17150f;
  --orange: #ff6b2c;
  --gold: #f0b84b;
  --green: #2f9d63;
  --yellow: #c99720;
  --nav-h: 84px;
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-bottom, 0px));
  --safe-top: max(env(safe-area-inset-top, 0px), var(--tg-safe-top, 0px));
  --safe-left: max(env(safe-area-inset-left, 0px), var(--tg-safe-left, 0px));
  --safe-right: max(env(safe-area-inset-right, 0px), var(--tg-safe-right, 0px));
  --tg-safe-top: 0px;
  --tg-safe-bottom: 0px;
  --tg-safe-left: 0px;
  --tg-safe-right: 0px;
  --font: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --display: "Source Serif 4", Georgia, serif;
  --blur: blur(24px) saturate(180%);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

html[data-theme="dark"] {
  --bg: #0e0d0b;
  --bg-glow-1: rgba(255, 107, 44, 0.18);
  --bg-glow-2: rgba(91, 115, 214, 0.12);
  --surface: rgba(38, 35, 30, 0.52);
  --surface-strong: rgba(48, 44, 38, 0.78);
  --text: #f5f1e8;
  --muted: #a39e93;
  --line: rgba(255, 255, 255, 0.12);
  --black: #f5f1e8;
}

/* Soft azure palette — warm-soft blues, not icy */
html[data-skin="azure"] {
  --bg: #121925;
  --bg-glow-1: rgba(96, 140, 196, 0.28);
  --bg-glow-2: rgba(168, 196, 224, 0.16);
  --surface: rgba(36, 48, 68, 0.55);
  --surface-strong: rgba(48, 64, 88, 0.82);
  --text: #e8eef6;
  --muted: #9aafc4;
  --line: rgba(186, 208, 230, 0.14);
  --black: #e8eef6;
  --orange: #6f9fd0;
  --gold: #a8c6e4;
  --green: #5fad8a;
  --yellow: #c4a86a;
  --accent: #6f9fd0;
  --accent-soft: rgba(111, 159, 208, 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(circle at 10% -5%, var(--bg-glow-1), transparent 34%),
    radial-gradient(circle at 95% 8%, var(--bg-glow-2), transparent 30%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.glass {
  background: var(--surface);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(255,255,255,.35) inset,
    0 18px 50px rgba(0,0,0,.12);
}
html[data-theme="dark"] .glass {
  box-shadow:
    0 1px 0 rgba(255,255,255,.08) inset,
    0 18px 50px rgba(0,0,0,.45);
}
.glass-bar {
  background: var(--surface-strong);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-color: var(--line);
}

.welcome {
  min-height: 100%; display: grid; place-items: center;
  padding: calc(20px + var(--safe-top)) 20px calc(20px + var(--safe-bottom));
}
.welcome-card { width: min(440px, 100%); border-radius: 30px; padding: 28px 20px 22px; text-align: center; }
.brand-mark {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 18px;
  background: linear-gradient(145deg, #1c1a16, #3a342c); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 24px;
  box-shadow: 0 12px 30px rgba(255, 107, 44, 0.28);
}
.welcome-card h1 { margin: 0; font-family: var(--display); font-size: 34px; letter-spacing: -0.04em; }
.welcome-card > p { color: var(--muted); margin: 8px 0 18px; font-size: 13px; }
.role-cards { display: grid; gap: 10px; text-align: left; }
.role-cards button {
  width: 100%; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface-strong); padding: 14px;
  backdrop-filter: blur(14px);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.role-cards button:hover, .role-cards button:active {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 44, 0.5);
  box-shadow: 0 12px 28px rgba(255, 107, 44, 0.16);
}
.role-cards b { display: block; font-size: 14px; margin-bottom: 3px; }
.role-cards span { font-size: 11px; color: var(--muted); }
.boot-error { margin: 0 0 12px; font-size: 12px; line-height: 1.45; color: var(--muted); }

.app { max-width: 480px; margin: 0 auto; min-height: 100%; position: relative; width: 100%; }
.content {
  padding:
    calc(12px + var(--safe-top)) 14px
    calc(var(--nav-h) + var(--safe-bottom) + 14px);
}
.content.page-in { animation: pageIn .34s var(--ease); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Liquid glass bottom nav */
.glass-nav {
  position: fixed; left: 50%; transform: translateX(-50%);
  width: min(480px, 100%);
  bottom: 0; height: calc(var(--nav-h) + var(--safe-bottom));
  padding: 8px 10px calc(12px + var(--safe-bottom));
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  z-index: 20;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.28) 0%,
    rgba(255,255,255,.55) 40%,
    rgba(255,255,255,.72) 100%
  );
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-top: 1px solid rgba(255,255,255,.45);
  box-shadow:
    0 -10px 40px rgba(0,0,0,.08),
    0 1px 0 rgba(255,255,255,.5) inset;
}
html[data-theme="dark"] .glass-nav {
  background: linear-gradient(
    180deg,
    rgba(40,36,30,.35) 0%,
    rgba(28,26,22,.72) 45%,
    rgba(20,18,15,.86) 100%
  );
  border-top: 1px solid rgba(255,255,255,.1);
  box-shadow:
    0 -12px 40px rgba(0,0,0,.4),
    0 1px 0 rgba(255,255,255,.08) inset;
}
.glass-nav.staff { grid-template-columns: repeat(4, 1fr); }

.nav-btn {
  border: 0; background: transparent; color: var(--muted);
  border-radius: 18px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 3px; font-size: 9px; font-weight: 800;
  transition: color .2s, transform .2s var(--ease), background .25s;
  position: relative;
}
.nav-btn .nav-ico {
  width: 42px; height: 32px; border-radius: 14px;
  display: grid; place-items: center;
  transition: transform .28s var(--ease), background .25s, box-shadow .25s;
}
.nav-btn .nav-ico svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.25));
}
.nav-btn.active { color: var(--text); }
.nav-btn.active .nav-ico {
  background: linear-gradient(145deg, rgba(255,107,44,.28), rgba(240,184,75,.18));
  box-shadow:
    0 1px 0 rgba(255,255,255,.45) inset,
    0 8px 18px rgba(255,107,44,.22);
  transform: translateY(-2px) scale(1.06);
}
html[data-theme="dark"] .nav-btn.active .nav-ico {
  background: linear-gradient(145deg, rgba(255,107,44,.35), rgba(240,184,75,.2));
  box-shadow:
    0 1px 0 rgba(255,255,255,.12) inset,
    0 8px 20px rgba(255,107,44,.3);
}
.nav-btn:active .nav-ico { transform: scale(.94); }

.content {
  overflow-y: auto;
  scrollbar-width: none;
}
.content::-webkit-scrollbar,
.sheet-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.profile-tabs {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  margin: 4px 0 12px;
  padding: 0;
  scrollbar-width: none;
}
.profile-tabs::-webkit-scrollbar { display: none; }

.feed-card-compact,
.compact-card {
  padding: 10px 12px !important;
  margin-bottom: 8px !important;
}
.feed-card-compact h3,
.compact-card h3 {
  font-size: 15px !important;
  margin: 4px 0 !important;
}
.feed-meta {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 2px;
}
.feed-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.compact-actions {
  gap: 6px !important;
  margin-top: 8px !important;
}
.compact-actions .action {
  min-height: 36px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
}
.active-task-chip.compact {
  padding: 8px 10px !important;
  min-height: auto !important;
}
.active-task-chip.compact b { font-size: 13px; }
.active-task-chip.compact span { font-size: 11px; }
.deadline-badge { font-variant-numeric: tabular-nums; }

.confirm-actions { display: grid; gap: 8px; margin-top: 16px; }
.ticket-list { display: grid; gap: 8px; }
.ticket-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; padding: 12px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface-strong); color: inherit;
}
.ticket-row b { display: block; font-size: 13px; }
.ticket-row span:not(.chev) { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.ticket-thread { display: grid; gap: 8px; max-height: 42vh; overflow: auto; margin-top: 8px; }
.ticket-msg {
  padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface-strong);
}
.ticket-msg.mine { background: rgba(232, 149, 74, .12); border-color: rgba(232, 149, 74, .35); }
.ticket-msg-meta { font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.ticket-msg-text { font-size: 13px; line-height: 1.45; white-space: pre-wrap; }
.money-card .money-fact { margin-top: 8px; font-size: 13px; font-weight: 700; }

.money-slim {
  padding: 12px !important;
  margin-bottom: 10px !important;
}
.money-slim-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.money-slim-head b {
  display: block;
  font-size: 15px;
  text-transform: capitalize;
  margin-top: 2px;
}
.money-pill {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(47, 157, 99, 0.14);
  color: #1f7a4d;
}
.money-month-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: end;
  min-height: 96px;
  margin-top: 4px;
}
.money-month-col { text-align: center; }
.money-month-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 76px;
}
.money-month-bars .bar {
  width: 10px;
  border-radius: 6px 6px 2px 2px;
  display: block;
}
.money-month-bars .bar.plan { background: rgba(120, 130, 150, 0.35); }
.money-month-bars .bar.fact { background: var(--accent, #ff6b2c); }
.money-month-bars .bar.fact.empty {
  width: 10px;
  height: 4px !important;
  background: transparent;
}
.money-month-amt { font-size: 10px; font-weight: 700; margin-top: 4px; }
.money-month-lbl { font-size: 10px; color: var(--muted); text-transform: capitalize; }
.money-chart-legend {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}
.money-chart-legend .lg {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 4px;
}
.money-chart-legend .lg.plan { background: rgba(120, 130, 150, 0.45); }
.money-chart-legend .lg.fact { background: var(--accent, #ff6b2c); }
.money-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.field.tight { margin: 0; }
.field.tight label { font-size: 11px; margin-bottom: 4px; }
.field.tight input { min-height: 40px; font-size: 14px; }
.money-edit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.money-edit-actions .primary-btn,
.money-edit-actions .secondary-btn {
  min-height: 40px;
  margin: 0;
  font-size: 13px;
}
.money-hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}
.money-archived-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
}
.money-archive { padding: 10px 12px !important; }
.money-archive-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line, rgba(0,0,0,.06));
  font-size: 12px;
}
.money-archive-row:last-child { border-bottom: 0; }
.money-archive-row span { color: var(--muted); }
.money-goals-mini { padding: 10px 12px !important; }
.money-goal-mini {
  display: grid;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line, rgba(0,0,0,.06));
}
.money-goal-mini:last-of-type { border-bottom: 0; }
.money-goal-mini div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.money-goal-mini span { color: var(--muted); }
.money-goal-mini .action { min-height: 32px; padding: 6px 10px; font-size: 12px; width: max-content; }
.ticket-closed-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.04);
  color: var(--muted);
  font-size: 13px;
}
.rating-pill { opacity: .92; }
.rating-progress-row {
  margin-top: 10px; padding: 8px 10px; border-radius: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
}
.rating-progress-row > div:first-child {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; color: #d2cec4; margin-bottom: 6px;
}
.rating-progress-row b { color: #fff; font-size: 13px; }

.goal-card.compact-goal {
  padding: 10px 12px !important;
  margin-bottom: 8px !important;
}
.goal-card.compact-goal .goal-title {
  font-size: 14px !important;
  margin-bottom: 4px !important;
}
.goal-card.compact-goal .goal-money {
  font-size: 11px !important;
  margin-bottom: 4px !important;
}
.goal-card.compact-goal .goal-bar {
  height: 5px !important;
  margin-bottom: 6px !important;
}
.compact-onboard .onboard-item {
  padding: 8px 10px !important;
}
.person-task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.person-task-row:last-child { border-bottom: 0; }
.person-task-row b { display: block; font-size: 13px; }
.person-task-row span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.avatar.sm { width: 34px; height: 34px; font-size: 11px; }
.avatar-click { cursor: pointer; }
.fb-card.clickable { cursor: pointer; }
.profile-edit-link {
  display: inline-block;
  margin-right: 12px;
  margin-top: 6px;
  font-size: 12px;
}
.support-btn { display: none; }

.card {
  background: var(--surface);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  margin-bottom: 11px;
  box-shadow: 0 10px 28px rgba(0,0,0,.05);
}
.card.clickable { cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.card.clickable:hover { transform: translateY(-2px); border-color: rgba(255,107,44,.4); }
.card h3 { font-size: 17px; letter-spacing: -.03em; margin: 0 0 6px; }
.card p { font-size: 12px; line-height: 1.45; color: var(--muted); margin: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.row.start { align-items: flex-start; }
.badge {
  display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 800;
  background: rgba(127,127,127,.12); color: var(--muted); white-space: nowrap;
}
.badge.black { background: var(--black); color: var(--bg); }
.badge.orange { background: rgba(255,107,44,.16); color: #c14d18; }
html[data-theme="dark"] .badge.orange { color: #ffb08a; }
.badge.green { background: rgba(47,157,99,.16); color: #1f7a4b; }
html[data-theme="dark"] .badge.green { color: #7ddeb0; }
.badge.yellow { background: rgba(201,151,32,.18); color: #8a6810; }
html[data-theme="dark"] .badge.yellow { color: #f0cb6e; }
.badge.blue { background: rgba(91,115,214,.16); color: #4358ad; }

.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,107,44,.22), rgba(240,184,75,.16));
  display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; font-size: 12px;
  overflow: hidden; background-size: cover; background-position: center; background-repeat: no-repeat;
}
.avatar.lg { width: 88px; height: 88px; border-radius: 50%; font-size: 28px; flex-shrink: 0; }
.avatar.has-photo { color: transparent; background-color: #2a2620; }
.progress { height: 7px; border-radius: 999px; background: rgba(127,127,127,.15); overflow: hidden; margin-top: 9px; }
.progress span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
}
.tabs { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 9px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--line); background: var(--surface-strong); border-radius: 999px;
  padding: 8px 10px; color: var(--muted); font-size: 10px; font-weight: 800; white-space: nowrap;
  transition: .2s var(--ease);
}
.chip.active {
  background: linear-gradient(135deg, #ff6b2c, #f0b84b); color: #1a120c; border-color: transparent;
}
.action {
  border: 1px solid var(--line); background: var(--surface-strong); border-radius: 16px;
  padding: 14px 16px; font-size: 14px; font-weight: 800; color: var(--muted);
  min-height: 52px; flex: 1; display: inline-flex; align-items: center; justify-content: center;
}
.action.accent {
  background: linear-gradient(135deg, #ff6b2c, #ff8a4c); color: #fff; border-color: transparent;
}
.action.primary { background: var(--black); color: var(--bg); border-color: transparent; }
.mini-actions { display: flex; flex-wrap: nowrap; gap: 10px; margin-top: 14px; }
.feed-card-event { display: grid; gap: 6px; }
.feed-card-event .event-who { font-size: 15px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.feed-card-event .event-did { font-size: 13px; color: var(--text); margin: 0; line-height: 1.35; }
.feed-card-event .event-did b { font-weight: 800; }
.feed-card-event .event-desc { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.45; }
.active-tasks-strip { display: grid; gap: 8px; margin-bottom: 12px; }
.active-task-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--line); background: var(--surface-strong); border-radius: 16px;
  padding: 12px 14px; text-align: left; width: 100%;
}
.active-task-chip b { display: block; font-size: 13px; }
.active-task-chip span { font-size: 11px; color: var(--muted); }

.feed-event { padding: 12px 13px; }
.feed-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.feed-sentence { font-size: 14px; line-height: 1.38; color: var(--text); }
.feed-sentence strong { font-weight: 750; }
.feed-time { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.feed-source { margin: 7px 0 0 46px; font-size: 10px; color: var(--muted); }
.feed-excerpt {
  margin: 5px 0 0 46px;
  font-size: 13px;
  line-height: 1.45;
  color: #4e4a44;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html[data-theme="dark"] .feed-excerpt { color: #c8c2b6; }
.feed-footer {
  margin: 9px 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.feed-stats { font-size: 11px; color: var(--muted); }
.feed-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.feed-btn {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}
.feed-btn.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.feed-btn.text {
  border: 0;
  padding-left: 4px;
  padding-right: 4px;
  color: var(--muted);
  background: transparent;
}
.featured {
  border-color: #ffc7aa;
  background: linear-gradient(180deg, #fffaf7 0%, var(--surface-strong) 100%);
}
html[data-theme="dark"] .featured {
  border-color: rgba(255, 107, 44, .35);
  background: linear-gradient(180deg, rgba(255,107,44,.12) 0%, var(--surface-strong) 100%);
}
.featured-top {
  margin: 0 0 10px 46px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a9451a;
  font-size: 11px;
  font-weight: 700;
}
.featured-mark {
  width: 22px; height: 22px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--accent-soft, #fff0e7);
  color: var(--orange);
}

.upload-box {
  border: 1px dashed #d6cfc4;
  background: var(--surface-strong);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.upload-box b { display: block; font-size: 14px; }
.upload-box span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; word-break: break-word; }
.upload-pick {
  margin-top: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 650;
  font-size: 12px;
}

.section-tab {
  border: 0;
  background: transparent;
  padding: 10px 0 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.section-tab.active { color: var(--text); border-bottom-color: var(--orange); }
.settings-list { padding: 4px 14px; }
.setting-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}
.setting-row:last-child { border-bottom: 0; }
.setting-row b { display: block; font-size: 14px; font-weight: 650; }
.setting-row span:not(.chev) { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.setting-row .chev { font-size: 18px; color: var(--muted); flex: 0 0 auto; }

.mission-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 0 -14px 12px;
  padding: 0 14px 4px;
  scrollbar-width: none;
}
.mission-rail::-webkit-scrollbar { display: none; }
.mission-slide {
  flex: 0 0 min(96%, 400px);
  scroll-snap-align: start;
  margin-bottom: 0 !important;
  text-align: left;
  border: 0;
  cursor: pointer;
}
.mission {
  background: linear-gradient(145deg, #1d1b17 0%, #2c261f 55%, #3d2a1c 100%);
  color: #fff; border-radius: 20px; padding: 16px 16px 14px; margin-bottom: 11px;
  position: relative; overflow: hidden;
  box-shadow: 0 14px 32px rgba(255, 107, 44, 0.16);
}
.mission:after {
  content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%;
  right: -48px; top: -52px; background: linear-gradient(135deg, var(--orange), var(--gold));
  opacity: .65;
}
.mission > * { position: relative; z-index: 1; }
.mission h3 {
  font-size: 18px; letter-spacing: -.03em; margin: 0; font-family: var(--display);
  line-height: 1.25; font-weight: 700; color: #fff;
}
.mission p { font-size: 11px; color: #d2cdc2; line-height: 1.4; margin: 0; }
.mission-progress, .mission-foot { display: none; }
.mission-cozy-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.mission-cozy-text { flex: 1; min-width: 0; }
.mission-meta {
  display: block; margin-top: 6px; font-size: 11px; color: #cbc7bd;
}
.mission-cozy .badge.orange {
  flex: 0 0 auto;
  background: rgba(255,107,44,.3);
  color: #ffd7c0;
  font-size: 10px;
  padding: 7px 10px;
}

.group-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px;
}
.group-stat {
  background: var(--surface-strong); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 8px; text-align: center;
}
.group-stat b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.group-stat span { display: block; margin-top: 2px; font-size: 10px; color: var(--muted); font-weight: 700; }
.group-member-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto;
}

.profile-hero {
  padding: 14px; border-radius: 20px;
  background: linear-gradient(145deg, #1d1b17, #33261c);
  color: #fff; margin-bottom: 11px; position: relative; overflow: hidden;
}
.profile-hero:after {
  content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%;
  right: -50px; top: -55px; background: linear-gradient(135deg, var(--orange), var(--gold));
  opacity: 0.55;
}
.profile-hero > * { position: relative; z-index: 1; }
.profile-hero-top { display: flex; align-items: flex-start; gap: 12px; }
.profile-hero .avatar {
  background: rgba(255,255,255,.12); color: #fff;
  border: 2px solid rgba(255,255,255,.22);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.profile-hero .avatar.has-photo {
  background-color: #1a1612;
  background-size: cover;
  background-position: center;
}
.profile-hero h3 { font-size: 20px; margin: 4px 0 2px; font-family: var(--display); line-height: 1.15; }
.profile-hero p { color: #cbc8bd; margin: 0; font-size: 12px; }
.profile-edit-link {
  display: inline-flex; align-items: center; margin-top: 8px;
  border: 0; background: transparent; color: #ffb08a; font-size: 12px; font-weight: 800;
  padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.profile-hero-actions {
  display: none;
}
.profile-hero-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.profile-edit-btn,
.points-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  margin-top: 0;
  box-sizing: border-box;
}
.profile-edit-btn {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: #ffe4d2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.profile-edit-btn:active {
  transform: scale(.98);
}
.points-pill {
  border: 1px solid rgba(255,107,44,.25);
  background: rgba(255,107,44,.2);
  color: #ffd2b8;
}
.profile-avatar-btn {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 18px;
  flex: 0 0 auto;
}
.profile-avatar-cam {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,107,44,.95);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
  border: 2px solid #2a2218;
}
.profile-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: #ffe4d2;
  display: grid;
  place-items: center;
}
.profile-photo-actions { display: none; }
.profile-hero .kpis { margin-top: 12px; }
.profile-hero .kpi {
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.1);
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.profile-hero .kpi:active { transform: scale(.98); }
.profile-hero .kpi span { color: #b8b2a6; }
.person-hero { margin-bottom: 10px; }
.admin-focus-row {
  display: grid; gap: 8px; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.admin-focus-row:last-child { border-bottom: 0; }
.admin-focus-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-focus-meta .muted { font-size: 11px; color: var(--muted); }
.group-block { padding: 10px 0; border-bottom: 1px solid var(--line); }
.group-block:last-child { border-bottom: 0; }
.member-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface-strong);
  border-radius: 999px; padding: 6px 10px; margin: 0;
  font-size: 11px; font-weight: 700; color: var(--text);
}
.member-chip:active { transform: scale(.98); }
.member-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.segment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.segment-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: left;
  min-width: 0;
}
.segment-chip b {
  font-size: 12px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.segment-chip span {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}
.segment-chip.active {
  background: linear-gradient(135deg, #ff6b2c, #f0b84b);
  border-color: transparent;
  color: #1a120c;
}
.segment-chip.active span { color: rgba(26,18,12,.7); }
.person-row,
.card-row {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.person-row b,
.card-row b { display: block; font-size: 13px; }
.person-row span,
.card-row span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.person-row .chev,
.card-row .chev { color: var(--muted); font-size: 18px; }
.person-row:active,
.card-row:active { transform: scale(.99); opacity: .92; }
.compact-btn {
  flex: 0 0 auto !important;
  min-width: auto !important;
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  width: auto !important;
}
.staff-toolbar h3 { margin: 2px 0 0; font-size: 18px; }
.required-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); background: var(--surface-strong);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 10px;
}
.required-toggle b { display: block; font-size: 13px; }
.required-toggle span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.required-toggle input { width: 20px; height: 20px; accent-color: var(--orange); }
.rate-box {
  margin-top: 12px; padding: 12px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface-strong);
}
.support-btn {
  width: 100%; border: 0; border-radius: 16px; padding: 16px; font-weight: 800; font-size: 15px;
  background: linear-gradient(135deg, #ff6b2c, #ff8a4c); color: #fff;
  box-shadow: 0 10px 24px rgba(255,107,44,.28); margin-top: 4px;
}
.points-pill {
  /* sized together with .profile-edit-btn above */
}
.onboard-list { display: grid; gap: 8px; margin-top: 12px; }
.onboard-item {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center;
  padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-strong);
}
.onboard-item b { display: block; font-size: 13px; }
.onboard-item span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.onboard-check {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line);
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--muted);
}
.onboard-item.done .onboard-check {
  background: rgba(47,157,99,.18); border-color: rgba(47,157,99,.45); color: #1f7a4b;
}
.goal-card {
  margin-top: 10px; padding: 12px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface-strong);
}
.goal-card.status-done { opacity: .85; }
.goal-card.status-archived { opacity: .6; }
.goal-cat {
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.goal-title { display: block; font-size: 15px; letter-spacing: -.02em; margin-bottom: 6px; }
.goal-money { font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.goal-note { font-size: 12px; color: var(--muted); margin: 0; }
.goal-bar {
  height: 7px; border-radius: 999px; background: rgba(127,127,127,.15); overflow: hidden;
}
.goal-bar span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
}
.material-list { display: grid; gap: 8px; margin-bottom: 4px; }
.material-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center;
  border: 1px solid var(--line); background: var(--surface-strong); border-radius: 14px;
  padding: 10px 12px; text-decoration: none; color: inherit;
}
a.material-row:active { transform: scale(.99); }
.material-row b { display: block; font-size: 13px; }
.material-row span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.material-ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(127,127,127,.12); display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: var(--muted);
}
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 13px; }
.kpi { padding: 8px; border-radius: 12px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.11); }
.kpi b { display: block; font-size: 14px; }
.kpi span { font-size: 8px; color: #d2cec4; }

.group-member {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 9px;
  align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line);
  width: 100%; border-left: 0; border-right: 0; border-top: 0;
  background: transparent; text-align: left; cursor: pointer;
  font: inherit; color: inherit;
}
.group-member:last-child { border-bottom: 0; }
.group-member:active { opacity: 0.85; }
.group-member b { font-size: 12px; display: block; }
.group-member span { font-size: 10px; color: var(--muted); }

.feedback-preview {
  margin-top: 9px; padding: 9px; border-radius: 12px;
  background: rgba(255,107,44,.08); border-left: 3px solid var(--orange);
  font-size: 11px; line-height: 1.42;
}
.snippet {
  max-height: 88px; overflow: hidden; position: relative;
  font-size: 12px; line-height: 1.45; white-space: pre-wrap;
}
.snippet:after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36px;
  background: linear-gradient(transparent, var(--surface));
}

.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.stat {
  background: var(--surface); backdrop-filter: var(--blur); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px;
}
.stat b { display: block; font-size: 22px; font-family: var(--display); }
.stat span { font-size: 10px; color: var(--muted); }
.table { width: 100%; border-collapse: collapse; font-size: 11px; }
.table th, .table td { padding: 10px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }

.theme-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px;
}
.theme-switch button {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px;
  background: var(--surface-strong); font-weight: 800; font-size: 12px;
  transition: .2s var(--ease);
}
.theme-switch button.active {
  background: linear-gradient(135deg, #ff6b2c, #f0b84b); color: #1a120c; border-color: transparent;
}

.access-list { display: grid; gap: 8px; margin-top: 8px; }
.access-list button {
  text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 12px;
  background: var(--surface-strong);
}
.access-list button b { display: block; font-size: 13px; }
.access-list button span { font-size: 11px; color: var(--muted); }
.access-list button.current {
  border-color: rgba(255,107,44,.45);
  box-shadow: 0 0 0 2px rgba(255,107,44,.12);
}

.modal-wrap {
  position: fixed; inset: 0; background: rgba(12, 10, 8, 0);
  display: none; align-items: stretch; z-index: 40;
  max-width: 480px; margin: 0 auto; left: 0; right: 0;
  backdrop-filter: blur(0);
  transition: background .3s ease, backdrop-filter .3s ease;
}
.modal-wrap.open { display: flex; }
.modal-wrap.show {
  background: rgba(12, 10, 8, .55);
  backdrop-filter: blur(10px);
}
.sheet {
  width: 100%; height: 100%; max-height: 100%;
  border-radius: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(110%);
  transition: transform .38s var(--ease);
}
.modal-wrap.show .sheet { transform: translateY(0); }
.sheet-top {
  position: sticky; top: 0; z-index: 6;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: calc(10px + var(--safe-top)) 14px 8px;
  background: var(--surface-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.sheet-top-spacer {
  flex: 1 1 auto;
}
.sheet-top .handle { display: none; margin: 0; flex: 1; }
.sheet-body {
  overflow: auto; -webkit-overflow-scrolling: touch;
  padding: 8px 14px calc(27px + var(--safe-bottom));
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: none;
}
.handle { width: 40px; height: 5px; border-radius: 999px; background: rgba(127,127,127,.35); margin: 0 auto 13px; }
.sheet h2 { font-size: 24px; letter-spacing: -.04em; margin: 0 0 7px; font-family: var(--display); }
.sheet-close {
  width: 44px; height: 44px; border-radius: 14px; font-size: 24px; line-height: 1;
  flex: 0 0 auto;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  margin-left: auto;
}
.fb-card-actions { display: flex; gap: 8px; margin-top: 8px; }
.fb-card-actions .action { flex: 0 0 auto; min-width: 110px; padding: 10px 12px; font-size: 12px; min-height: 40px; }
.section-title { font-size: 11px; font-weight: 800; margin: 16px 0 8px; }
.field { margin-bottom: 10px; }
.field label { font-size: 10px; font-weight: 800; display: block; margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); background: var(--surface-strong);
  border-radius: 12px; padding: 10px; outline: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.primary-btn, .secondary-btn { width: 100%; border-radius: 14px; padding: 12px; font-weight: 800; }
.primary-btn {
  border: 0; background: linear-gradient(135deg, #ff6b2c, #ff8a4c); color: #fff;
  box-shadow: 0 10px 24px rgba(255,107,44,.28);
}
.secondary-btn { border: 1px solid var(--line); background: var(--surface-strong); margin-top: 7px; }
.icon-btn {
  width: 36px; height: 36px; border: 1px solid var(--line);
  background: var(--surface-strong); border-radius: 12px; display: grid; place-items: center; font-weight: 800;
}

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 12px);
  transform: translateX(-50%) translateY(14px);
  padding: 9px 12px; border-radius: 11px; background: #17150f; color: #fff;
  font-size: 11px; font-weight: 800; opacity: 0; pointer-events: none; transition: .2s; z-index: 50;
  max-width: 90%;
}
html[data-theme="dark"] .toast { background: #f4f0e8; color: #17150f; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.os-celebrate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.os-celebrate.show { opacity: 1; }
.os-celebrate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 8, .28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.os-celebrate-inner {
  position: relative;
  display: grid;
  place-items: center;
  width: 220px;
  height: 220px;
}
.os-celebrate-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(74, 222, 128, .5);
  animation: osRingBurst .75s ease-out forwards;
  opacity: 0;
}
.os-particle {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--color);
  opacity: 0;
  animation: osParticle .95s var(--delay) cubic-bezier(.2, .8, .2, 1) forwards;
  box-shadow: 0 0 8px color-mix(in srgb, var(--color) 60%, transparent);
}
.os-celebrate-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(255, 107, 44, .15);
  border-radius: 24px;
  padding: 26px 28px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(255, 107, 44, .22), 0 8px 24px rgba(0, 0, 0, .08);
  transform: scale(.55);
  opacity: 0;
  animation: osCardPop .6s .05s cubic-bezier(.34, 1.45, .64, 1) forwards;
  min-width: 200px;
}
.os-celebrate-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, #4ade80, #16a34a);
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(34, 197, 94, .35);
  animation: osIconPop .5s .25s cubic-bezier(.34, 1.5, .64, 1) both;
}
.os-celebrate-title {
  font-size: 17px;
  font-weight: 800;
  color: #17150f;
  margin-bottom: 4px;
}
.os-celebrate-sub {
  font-size: 11px;
  color: #7a7468;
  line-height: 1.4;
}
html[data-theme="dark"] .os-celebrate-card {
  background: rgba(28, 26, 22, .97);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
}
html[data-theme="dark"] .os-celebrate-title { color: #f4f0e8; }
html[data-theme="dark"] .os-celebrate-sub { color: #a8a095; }
@keyframes osParticle {
  0% { transform: translate(0, 0) scale(0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) scale(1); opacity: 0; }
}
@keyframes osCardPop {
  to { transform: scale(1); opacity: 1; }
}
@keyframes osIconPop {
  from { transform: scale(0) rotate(-20deg); }
  to { transform: scale(1) rotate(0); }
}
@keyframes osRingBurst {
  0% { transform: scale(.4); opacity: .9; }
  100% { transform: scale(2.2); opacity: 0; }
}

@media (min-width: 900px) {
  body {
    display: grid;
    place-items: center;
    padding: calc(24px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));
    min-height: 100%;
  }
  .app {
    width: min(420px, 100%);
    min-height: min(740px, 90vh);
    max-height: 90vh;
    overflow: hidden;
    border-radius: 28px;
    border: 8px solid #1a1814;
    margin: 0 auto;
  }
  .content {
    overflow-y: auto;
    max-height: calc(90vh - 120px);
    padding-top: 16px;
  }
  .glass-nav { position: absolute; left: 0; right: 0; transform: none; width: 100%; }
  .modal-wrap { position: absolute; max-width: none; border-radius: 20px; overflow: hidden; }
  .sheet-top { padding-top: 10px; }
}

/* —— Azure skin: force blue accents over hardcoded orange/brown —— */
html[data-skin="azure"] .mission {
  background: linear-gradient(145deg, #152033 0%, #1c2c44 55%, #243a58 100%);
  box-shadow: 0 14px 32px rgba(96, 140, 196, 0.18);
}
html[data-skin="azure"] .chip.active,
html[data-skin="azure"] .action.accent,
html[data-skin="azure"] .feed-btn.primary,
html[data-skin="azure"] .primary-btn,
html[data-skin="azure"] .support-btn {
  background: linear-gradient(135deg, #5a8fc4, #7eafdb);
  color: #0f1724;
  box-shadow: 0 10px 24px rgba(90, 143, 196, 0.28);
}
html[data-skin="azure"] .badge.orange,
html[data-theme="dark"][data-skin="azure"] .badge.orange {
  background: rgba(111, 159, 208, 0.28) !important;
  color: #d4e6f7 !important;
}
html[data-skin="azure"] .nav-btn.active {
  color: #c5daf0;
}
html[data-skin="azure"] .nav-btn.active .nav-ico,
html[data-theme="dark"][data-skin="azure"] .nav-btn.active .nav-ico {
  background: #3d6ea8 !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 0 0 1px rgba(140, 180, 220, 0.35),
    0 8px 20px rgba(40, 90, 150, 0.45) !important;
}
html[data-skin="azure"] .nav-btn.active .nav-ico svg {
  filter: none;
  stroke: #eef5fc;
}
html[data-skin="azure"] .avatar {
  background: linear-gradient(145deg, rgba(90, 143, 196, 0.35), rgba(168, 198, 228, 0.18)) !important;
  color: #e8eef6;
  border-color: rgba(186, 208, 230, 0.28);
}
html[data-skin="azure"] .profile-hero .avatar {
  background: linear-gradient(145deg, rgba(90, 143, 196, 0.4), rgba(40, 70, 110, 0.55)) !important;
  border-color: rgba(186, 208, 230, 0.35) !important;
  box-shadow: 0 8px 20px rgba(20, 50, 90, 0.35);
  color: #eef5fc;
}
html[data-skin="azure"] .profile-hero {
  background: linear-gradient(145deg, #121c2c, #1a2d48 55%, #243a5c);
  color: #eef4fb;
}
html[data-skin="azure"] .profile-hero:after {
  background: linear-gradient(135deg, #5a8fc4, #a8c6e4);
  opacity: 0.45;
}
html[data-skin="azure"] .profile-hero p,
html[data-skin="azure"] .profile-hero .kpi span {
  color: #9eb6d0;
}
html[data-skin="azure"] .profile-hero .kpi {
  background: rgba(8, 16, 28, 0.35);
  border-color: rgba(186, 208, 230, 0.14);
}
html[data-skin="azure"] .points-pill {
  border-color: rgba(111, 159, 208, 0.4);
  background: rgba(90, 143, 196, 0.28);
  color: #d7e8f8;
}
html[data-skin="azure"] .profile-edit-btn,
html[data-skin="azure"] .profile-icon-btn {
  border-color: rgba(186, 208, 230, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #d7e8f8;
}
html[data-skin="azure"] .profile-edit-link {
  color: #9ec4e8;
}
html[data-skin="azure"] .profile-avatar-cam {
  background: #5a8fc4;
  border-color: #1a2d48;
  color: #fff;
}
html[data-skin="azure"] .profile-hero .avatar.has-photo {
  background-color: #152033;
}
html[data-skin="azure"] .section-tab.active {
  border-bottom-color: #6f9fd0;
  color: #e8eef6;
}
html[data-skin="azure"] .goal-bar span,
html[data-skin="azure"] .money-month-bars .bar.fact,
html[data-skin="azure"] .money-chart-legend .lg.fact {
  background: linear-gradient(90deg, #5a8fc4, #8eb4dc);
}
html[data-skin="azure"] .money-month-bars .bar.fact {
  background: #6f9fd0;
}
html[data-skin="azure"] .money-pill {
  background: rgba(90, 143, 196, 0.22);
  color: #c5daf0;
}
html[data-skin="azure"] .exemplary-banner,
html[data-skin="azure"] .feed-highlight {
  background: rgba(111, 159, 208, 0.12);
  border-left-color: #6f9fd0;
}
