:root {
  --sun: #f7ad15;
  --sun-strong: #f4c431;
  --sun-soft: #fff3d2;
  --sky: #0f766e;
  --night: #19182d;
  --ink: #171725;
  --muted: #7b7f8c;
  --surface: #ffffff;
  --surface-warm: #fffaf0;
  --line: #ece8df;
  --shadow: 0 10px 26px rgba(24, 24, 45, .12);
  --lift-shadow: 0 16px 34px rgba(247, 173, 21, .36);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: #f5f4ef;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.has-bottom-nav {
  padding-bottom: 96px;
}

.app-nav {
  background: rgba(255, 250, 240, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.has-bottom-nav .app-nav {
  display: none;
}

.navbar-brand { color: #8a4b00; letter-spacing: .01em; }
.page-shell { padding: 32px 0 56px; }
.has-bottom-nav .page-shell { padding-top: 0; padding-bottom: 112px; }
.has-bottom-nav .container { max-width: 720px; }
.eyebrow { color: #b45309; font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 24px;
  align-items: stretch;
}

.sun-panel {
  min-height: 520px;
  padding: 48px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .22), transparent 38%),
    radial-gradient(circle at 18% 18%, #fff3b0 0, #ffc247 30%, #f97316 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.sun-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 34px solid rgba(255, 255, 255, .24);
}

.sun-panel h1, .section-heading h1, .dashboard-head h1, .profile-card h1 {
  font-weight: 850;
  line-height: 1.02;
}

.sun-panel p { max-width: 620px; font-size: 1.1rem; color: rgba(34, 21, 0, .82); }
.form-card, .choice-card, .job-card, .profile-card, .video-card, .empty-state, .person-row, .feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.form-card {
  padding: 32px;
  align-self: center;
  background: rgba(255, 255, 255, .94);
}

.form-card.wide { max-width: 1120px; margin: 0 auto; }
.btn-sun {
  --bs-btn-bg: linear-gradient(135deg, var(--sun), var(--sun-strong));
  --bs-btn-border-color: #e68a00;
  --bs-btn-color: #221500;
  --bs-btn-hover-bg: #e68a00;
  --bs-btn-hover-border-color: #d97706;
  font-weight: 800;
  background: linear-gradient(135deg, var(--sun), var(--sun-strong));
  box-shadow: 0 10px 22px rgba(249, 115, 22, .28);
  border-radius: 16px;
}

.btn-geo {
  border: 1px solid #0f766e;
  color: #0f766e;
  background: #ecfdf5;
  font-weight: 800;
}

.btn-geo:hover {
  background: #0f766e;
  color: #fff;
}

.choice-wrap { max-width: 980px; margin: 0 auto; }
.section-heading { margin-bottom: 24px; }
.section-heading.compact { margin-bottom: 16px; }
.choice-grid, .job-grid, .skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.choice-card {
  display: block;
  color: inherit;
  min-height: 260px;
  padding: 28px;
  text-decoration: none;
  background:
    linear-gradient(180deg, #ffffff 0%, #fff8e5 100%);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.choice-card:hover { transform: translateY(-3px); border-color: var(--sun-strong); box-shadow: 0 18px 44px rgba(249, 115, 22, .18); }
.choice-icon { color: #b77900; font-size: 2rem; display: inline-grid; place-items: center; width: 52px; height: 52px; background: var(--sun-soft); border-radius: 50%; margin-bottom: 12px; }
.mini-title { font-size: 1.1rem; font-weight: 850; margin: 10px 0 14px; }

.form-control, .form-select {
  border-color: #dccfb5;
  border-radius: 14px;
  min-height: 46px;
}

.form-control:focus, .form-select:focus {
  border-color: var(--sun-strong);
  box-shadow: 0 0 0 .2rem rgba(249, 115, 22, .16);
}

.form-label {
  color: #334155;
  font-weight: 750;
}

.form-text, .geo-status {
  color: var(--muted);
  font-size: .85rem;
  margin-top: 6px;
}

.geo-status[data-state="success"] { color: #047857; font-weight: 750; }
.geo-status[data-state="warning"] { color: #b45309; font-weight: 750; }
.location-picker {
  background: linear-gradient(180deg, #fff8df 0%, #ffffff 100%);
  border: 1px solid #eadfca;
  border-radius: 8px;
  padding: 10px;
}

.geo-manual-field[data-visible="false"] {
  display: none;
}

.geo-manual-field[data-visible="true"] {
  display: block;
}

.skill-group {
  border: 1px solid #eadfca;
  border-radius: 8px;
  padding: 16px;
  background: var(--surface-warm);
}

.skill-group legend { float: none; width: auto; padding: 0 6px; font-size: .95rem; font-weight: 800; }
.check-pill { display: block; padding: 9px 0; color: var(--ink); }
.check-pill input { accent-color: var(--sun-strong); }
.dashboard-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 20px; }
.job-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.job-card { padding: 20px; background: linear-gradient(180deg, #fff 0%, #fff8e7 100%); }
.job-card h2 { font-size: 1.15rem; font-weight: 850; margin-top: 12px; }
.job-card p { color: var(--muted); }
.job-card-topline { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.match-badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 6px;
  background: #eef0f3;
  color: #5f6673;
  font-size: .72rem;
  font-weight: 900;
}
.match-badge.partial { background: #fff1c2; color: #8a5a00; }
.match-badge.full { background: #dcfce7; color: #166534; }
.job-skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.job-skill-tags span {
  padding: 5px 8px;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  background: #fff;
  color: #667085;
  font-size: .72rem;
  font-weight: 750;
}
.job-skill-tags span.matched { border-color: #86d9a8; background: #edfff4; color: #166534; }
.match-summary { display: block; margin: 0 0 12px; color: var(--muted); }
.job-management-actions, .job-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.job-management-actions form { margin: 0; }
.job-management-actions .btn, .job-form-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.job-management-actions i, .job-form-actions i { width: 17px; height: 17px; }
.person-details .freelancer-match { display: block; margin-top: 4px; color: var(--muted); }
.person-details .freelancer-match b { color: #166534; }
.empty-state { padding: 24px; color: var(--muted); grid-column: 1 / -1; background: #fffbeb; border-style: dashed; }
.freelancer-list { display: grid; gap: 12px; }
.person-row { padding: 14px; display: flex; align-items: center; gap: 12px; }
.person-row img, .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.person-row span { display: block; color: var(--muted); }
.person-details { flex: 1; min-width: 0; }
.person-avatar-placeholder {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: grid !important;
  place-items: center;
  border-radius: 50%;
  background: var(--sun-soft);
  color: #8a5a00 !important;
  font-size: 1.35rem;
  font-weight: 900;
}
.btn-message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid #e9a20d;
  background: #fff7dc;
  color: #6f4700;
  font-weight: 850;
  white-space: nowrap;
}
.btn-message:hover, .btn-message:focus {
  border-color: #d99000;
  background: var(--sun);
  color: #171725;
}
.btn-message i { width: 18px; height: 18px; }
.small-link { color: #9a6700; font-size: .85rem; font-weight: 800; text-decoration: none; }
.profile-card { padding: 24px; display: flex; gap: 18px; align-items: center; }
.profile-edit-section { margin-bottom: 26px; }
.profile-edit-heading { align-items: flex-end; }
.profile-edit-heading .eyebrow { margin-bottom: 2px; }
.profile-completion-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .88rem;
}
.profile-completion-hint i { width: 18px; height: 18px; color: #d68a00; }
.profile-form-divider {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.profile-form-divider > i { width: 24px; height: 24px; color: #d68a00; }
.profile-form-divider strong, .profile-form-divider span { display: block; }
.profile-form-divider span { color: var(--muted); font-size: .88rem; }
.profile-save-bar {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.profile-save-bar .btn { display: inline-flex; align-items: center; gap: 8px; }
.profile-save-bar i { width: 19px; height: 19px; }
.video-card { padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: 20px; align-items: start; }
.video-card h2 { font-size: 1.35rem; font-weight: 850; }
.video-card video, .video-preview { width: 100%; border-radius: 8px; background: #111827; }
.avatar.placeholder { display: grid; place-items: center; background: var(--sun-soft); color: #8a5a00; font-weight: 900; font-size: 1.5rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags span { background: var(--sun-soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-size: .85rem; }

.mobile-hero {
  background: linear-gradient(135deg, #f3a711 0%, #f9c928 100%);
  border-radius: 0 0 34px 34px;
  margin: 0 calc(50% - 50vw) 26px;
  padding: 28px max(24px, calc((100vw - 720px) / 2 + 24px)) 28px;
  box-shadow: 0 18px 36px rgba(247, 173, 21, .28);
}

.hero-topline {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.hero-topline span {
  display: block;
  color: rgba(23, 23, 37, .68);
  font-weight: 650;
}

.hero-topline h1 {
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 900;
  margin: 0;
  line-height: 1.04;
}

.hello-mark, .notification-pill, .feature-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .42);
  color: #171725;
}

.notification-pill {
  position: relative;
  justify-self: end;
  border-radius: 50%;
  color: #2f2a1d;
  text-decoration: none;
}

.hero-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-quick-actions form,
.admin-hero .hero-topline > form {
  margin: 0;
}

.hero-logout-button {
  border: 1px solid rgba(23, 23, 37, .12);
  cursor: pointer;
}

.hero-logout-button:hover,
.hero-logout-button:focus-visible {
  background: #171725;
  color: #fff;
}

.profile-logout-form { margin-top: 10px; }
.profile-logout-form .btn { display: inline-flex; align-items: center; gap: 7px; }
.profile-logout-form i { width: 18px; height: 18px; }

.admin-hero { padding-bottom: 30px; }
.admin-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #19182d;
  color: #fff;
}
.admin-status > i { color: var(--sun); }
.admin-status strong, .admin-status span { display: block; }
.admin-status span { color: rgba(255,255,255,.68); font-size: .9rem; }
.admin-counts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.admin-count-card {
  padding: 18px 10px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.admin-count-card strong, .admin-count-card span { display: block; }
.admin-count-card strong { font-size: 1.65rem; }
.admin-count-card span { color: var(--muted); font-size: .82rem; font-weight: 800; }
.admin-module-link {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid #2b2945;
  border-radius: 8px;
  background: #19182d;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.admin-module-link:hover,
.admin-module-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--sun);
  color: #fff;
  box-shadow: 0 16px 32px rgba(24, 24, 45, .2);
}
.admin-module-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--sun);
  color: #171725;
}
.admin-module-copy { min-width: 0; }
.admin-module-copy strong,
.admin-module-copy small { display: block; overflow-wrap: anywhere; }
.admin-module-copy strong { font-size: 1.05rem; }
.admin-module-copy small { margin-top: 3px; color: rgba(255, 255, 255, .68); }
.admin-module-link > i { color: var(--sun); }
.admin-reset-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 2px solid #fecaca;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.admin-reset-card h2 { font-size: 1.4rem; font-weight: 900; }
.admin-reset-card p { color: var(--muted); }
.admin-reset-card > * { min-width: 0; }
.admin-warning-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fee2e2;
  color: #b91c1c;
}
.admin-reset-form {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  min-width: 0;
  max-width: 520px;
}
.admin-reset-form .form-control,
.admin-reset-form .btn { max-width: 100%; }
.admin-audit-section { margin-top: 28px; }
.admin-audit-list { display: grid; gap: 10px; }
.admin-audit-list article {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-audit-list article > i { color: #b45309; }
.admin-audit-list strong, .admin-audit-list span { display: block; }
.admin-audit-list span, .admin-audit-list time { color: var(--muted); font-size: .8rem; }
.admin-bottom-nav { grid-template-columns: repeat(3, 1fr); }
.bottom-nav-logout { margin: 0; }
.bottom-nav-logout button {
  width: 100%;
  border: 0;
  background: transparent;
}

.monetization-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 30px 0 22px;
}
.monetization-header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  font-weight: 950;
  line-height: 1.05;
}
.monetization-header p:last-child { max-width: 670px; margin: 0; color: var(--muted); }
.admin-back-link {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.admin-back-link:hover,
.admin-back-link:focus-visible { background: var(--sun); color: var(--ink); }
.monetization-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.monetization-summary article {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.monetization-summary article > span {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--sun-soft);
  color: #a16207;
}
.monetization-summary small,
.monetization-summary strong { display: block; }
.monetization-summary small { color: var(--muted); font-weight: 750; }
.monetization-summary strong { font-size: 1.35rem; overflow-wrap: anywhere; }
.commission-settings-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  gap: 28px;
  align-items: start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.commission-settings-copy {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
}
.commission-settings-copy h2 { margin: 0 0 8px; font-size: 1.35rem; font-weight: 900; }
.commission-settings-copy p:last-child { margin: 0; color: var(--muted); }
.commission-settings-form { display: grid; gap: 14px; }
.commission-settings-form .btn,
.commission-record-form .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.commission-settings-form .btn i,
.commission-record-form .btn i { width: 18px; height: 18px; }
.commission-rate-field { position: relative; }
.commission-rate-field .form-control { padding-right: 42px; }
.commission-rate-field > span {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 900;
}
.commission-list-heading { align-items: end; margin-top: 30px; }
.commission-list-heading .eyebrow { margin-bottom: 2px; }
.commission-list-heading > span { max-width: 280px; color: var(--muted); font-size: .84rem; text-align: right; }
.commission-list { display: grid; gap: 14px; }
.commission-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.commission-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.commission-order { color: #a16207; font-size: .78rem; font-weight: 900; }
.commission-card h3 { margin: 4px 0 0; font-size: 1.08rem; font-weight: 900; overflow-wrap: anywhere; }
.commission-card h3 i { width: 16px; height: 16px; color: var(--muted); }
.commission-status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 6px;
  background: #fff4cc;
  color: #8a5a00;
  font-size: .72rem;
  font-weight: 900;
}
.commission-status.status-paid { background: #dcfce7; color: #166534; }
.commission-status.status-waived,
.commission-status.status-not_due { background: #eef0f3; color: #5f6673; }
.commission-values {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 14px;
}
.commission-values > div { min-width: 0; padding: 10px; border-left: 3px solid var(--sun); background: #fffaf0; }
.commission-values small,
.commission-values strong { display: block; overflow-wrap: anywhere; }
.commission-values small { color: var(--muted); font-size: .72rem; }
.commission-values strong { margin-top: 3px; font-size: .88rem; }
.commission-mode { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-size: .84rem; }
.commission-mode i { flex: 0 0 auto; width: 17px; height: 17px; }
.commission-record-form {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(220px, 1.2fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.notification-count, .nav-message-count {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: .7rem;
  font-weight: 900;
}

.notification-count {
  position: absolute;
  top: -3px;
  right: -3px;
  border: 2px solid #f8c62b;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px 12px;
  min-height: 142px;
  text-align: center;
  box-shadow: 0 14px 28px rgba(75, 51, 0, .12);
}

.stat-card span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #fff4cf;
  color: #f4a10b;
}

.stat-card strong {
  display: block;
  font-size: 1.45rem;
  margin-top: 12px;
}

.stat-card small {
  display: block;
  color: #e6a213;
  font-weight: 850;
}

.nearby-cta {
  display: grid;
  grid-template-columns: 42px 1fr 28px;
  align-items: center;
  gap: 14px;
  background: var(--night);
  color: #fff;
  border-radius: 18px;
  padding: 18px 20px;
  text-decoration: none;
  box-shadow: 0 14px 24px rgba(25, 24, 45, .24);
}

.nearby-cta > i:first-child {
  color: var(--sun);
}

.nearby-cta strong, .nearby-cta small {
  display: block;
}

.nearby-cta small {
  color: rgba(255, 255, 255, .68);
  margin-top: 2px;
}

.feature-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 24px;
  margin-bottom: 18px;
}

.feature-card h2 {
  font-size: 1.18rem;
  font-weight: 900;
  margin: 0 0 4px;
}

.feature-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.25;
  margin: 0;
}

.feature-card a {
  display: inline-block;
  color: #f0a414;
  font-weight: 900;
  margin-top: 10px;
  text-decoration: none;
}

.feature-icon {
  width: 58px;
  height: 58px;
  background: #fff2d5;
  color: #f2a20c;
}

.live-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, .12);
}

.dismiss-card > i {
  color: #666b75;
}

.ad-banner {
  min-height: 190px;
  border-radius: 22px;
  margin-bottom: 18px;
  padding: 26px;
  color: #fff;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 67, 60, .96), rgba(0, 104, 92, .78)),
    radial-gradient(circle at 82% 30%, rgba(255, 194, 71, .9), transparent 28%),
    linear-gradient(135deg, #00594f, #003f38);
  box-shadow: var(--shadow);
}

.ad-banner span {
  display: inline-block;
  background: rgba(0, 0, 0, .26);
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 750;
  margin-bottom: 8px;
}

.ad-banner h2 {
  font-size: clamp(1.7rem, 5vw, 2.35rem);
  font-weight: 950;
  max-width: 460px;
}

.ad-banner p {
  max-width: 450px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
}

.section-title {
  font-size: 1.2rem;
  font-weight: 950;
  margin: 24px 0 14px;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.section-row .section-title {
  margin: 18px 0 14px;
}

.section-row a, .section-row span {
  color: #f0a414;
  font-weight: 900;
  text-decoration: none;
}

.new-opportunities-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}

.activate-location-card {
  width: 100%;
  min-height: 214px;
  border: 0;
  background: #fff;
  color: #9aa0aa;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
}

.activate-location-card i {
  width: 58px;
  height: 58px;
  color: #9aa0aa;
}

.activate-location-card strong {
  color: #6f7480;
  font-size: 1.22rem;
  font-weight: 950;
}

.activate-location-card span {
  color: #a2a7b1;
  max-width: 420px;
}

.activate-location-card:disabled {
  opacity: .72;
}

.opportunity-map-preview {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 22px;
}

.opportunity-map-preview > i {
  width: 54px;
  height: 54px;
  color: #f0a414;
  background: #fff2d5;
  border-radius: 18px;
  padding: 13px;
}

.opportunity-map-preview h3 {
  font-size: 1.12rem;
  font-weight: 950;
  margin: 0 0 4px;
}

.opportunity-map-preview p {
  color: var(--muted);
  margin: 0;
}

.compact-hero {
  padding-bottom: 24px;
}

.map-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 10px;
  margin-bottom: 18px;
}

.opportunity-map {
  width: 100%;
  height: min(58vh, 440px);
  min-height: 320px;
  border-radius: 18px;
  overflow: hidden;
}

.map-opportunity-popup { display: grid; gap: 6px; min-width: 190px; }
.map-opportunity-popup strong { font-size: .92rem; }
.map-opportunity-popup span { color: var(--muted); }
.map-opportunity-popup .map-match-score { color: #166534; font-size: .8rem; }
.leaflet-container .map-message-link {
  display: block;
  margin-top: 4px;
  padding: 9px 10px;
  border-radius: 7px;
  background: var(--sun);
  color: #171725;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}
.leaflet-container .map-message-link:hover,
.leaflet-container .map-message-link:focus { color: #171725; background: #ffc83d; }

.opportunity-list {
  display: grid;
  gap: 14px;
}

.opportunity-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.opportunity-row > div { min-width: 0; }
.opportunity-row .btn-message {
  max-width: 100%;
  white-space: normal;
}

.opportunity-row h3 {
  font-size: 1.05rem;
  font-weight: 950;
  margin: 0 0 4px;
}

.opportunity-row p {
  color: var(--muted);
  margin: 0 0 4px;
}

.opportunity-row strong {
  color: #171725;
}

.demo-opportunity-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.messages-card {
  margin: 18px 0 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.messages-heading { margin-top: 0; }
.messages-heading .section-title { margin: 1px 0 10px; }
.messages-heading .eyebrow { margin: 0; }
.message-preview-list { display: grid; }

.message-preview {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.message-preview:last-child { border-bottom: 0; }
.message-preview.unread { box-shadow: inset 4px 0 var(--sun); padding-left: 12px; }
.message-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sun-soft);
  color: #b66d00;
}
.message-avatar i { width: 22px; height: 22px; }
.message-preview-content { min-width: 0; }
.message-preview-content p {
  margin: 5px 0 0;
  color: #3f4652;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.message-preview-content small { display: block; color: #a16207; font-weight: 750; }
.message-meta { display: flex; justify-content: space-between; gap: 10px; }
.message-meta strong { overflow-wrap: anywhere; }
.message-meta time { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.icon-action {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff7dc;
  color: #8a5a00;
}
.icon-action i { width: 19px; height: 19px; }
.empty-message-state {
  min-height: 126px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: var(--muted);
  text-align: center;
}
.empty-message-state i { color: #e7a415; width: 34px; height: 34px; }
.empty-message-state strong { color: var(--ink); }
.empty-message-state.large { min-height: 260px; }
.inbox-card { margin-top: 0; }
.inbox-message { grid-template-columns: 46px minmax(0, 1fr); padding: 20px 0; }
.inbox-message .message-preview-content p { display: block; overflow: visible; }
.inbox-message .btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.inbox-message .btn i { width: 17px; height: 17px; }
.role-label { display: block; color: var(--muted); font-size: .82rem; }
.message-job-context {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  margin-bottom: 18px;
  border-left: 4px solid var(--sun);
  background: #fff8e7;
}
.message-job-context > i { color: #d68a00; }
.message-job-context small, .message-job-context strong, .message-job-context span { display: block; }
.message-job-context span, .message-job-context small { color: var(--muted); }
.message-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.message-form-actions .btn { display: inline-flex; align-items: center; gap: 7px; }
.message-form-actions i { width: 18px; height: 18px; }

.agenda-hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.agenda-nav-cta {
  grid-template-columns: auto 1fr auto;
  padding: 14px 16px;
}

.agenda-calendar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.agenda-weekdays,
.agenda-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.agenda-weekdays strong {
  color: #9aa0aa;
  font-size: .78rem;
  padding: 8px 2px;
}

.agenda-day {
  position: relative;
  min-height: 48px;
  display: grid;
  place-items: center;
  color: #5f6673;
  font-weight: 850;
}

.agenda-day.is-empty {
  color: #d4d8df;
}

.agenda-day.is-today span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sun);
  color: #171725;
  box-shadow: var(--lift-shadow);
}

.agenda-day i {
  position: absolute;
  bottom: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

.agenda-list,
.agenda-events {
  display: grid;
  gap: 14px;
}

.agenda-day-group {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
}

.agenda-date-rail {
  text-align: center;
  color: #9aa0aa;
  padding-top: 10px;
}

.agenda-date-rail strong {
  display: block;
  color: #f0a414;
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 950;
}

.agenda-date-rail span {
  font-weight: 900;
  font-size: .78rem;
}

.agenda-event-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 7px solid var(--sun);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.agenda-event-card h3 {
  font-size: 1.08rem;
  font-weight: 950;
  margin: 0 0 4px;
}

.agenda-event-card p {
  color: var(--muted);
  margin: 0 0 6px;
}

.agenda-event-card small {
  color: #7b7f8c;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 750;
}

.agenda-event-card small i {
  width: 16px;
  height: 16px;
}

.agenda-event-card.type-visita { border-left-color: #22c55e; }
.agenda-event-card.type-instalacao { border-left-color: #f97316; }
.agenda-event-card.type-manutencao { border-left-color: #64748b; }
.agenda-event-card.type-reuniao { border-left-color: #0f766e; }
.agenda-event-card.type-pagamento { border-left-color: #eab308; }

.agenda-empty-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.agenda-fab {
  position: fixed;
  right: max(18px, calc((100vw - 720px) / 2 + 18px));
  bottom: 96px;
  z-index: 999;
  width: 62px;
  height: 62px;
  border: 7px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sun);
  color: #171725;
  box-shadow: var(--lift-shadow);
}

.agenda-fab i {
  width: 28px;
  height: 28px;
}

.link-button {
  border: 0;
  background: transparent;
  color: #f0a414;
  font-weight: 900;
}

.section-row-actions,
.work-order-actions,
.work-order-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.section-row-actions a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.section-row-actions i,
.work-order-actions i,
.work-order-toolbar i {
  width: 17px;
  height: 17px;
}

.kanban-os-hero {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  margin: 22px auto 24px;
  padding: 26px;
  color: #171725;
  background: linear-gradient(125deg, #ffc21c 0%, #ffd961 100%);
  border: 1px solid rgba(153, 94, 0, .14);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(115, 74, 0, .14);
}

.kanban-os-hero h1 {
  max-width: 780px;
  margin: 2px 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 950;
  letter-spacing: 0;
}

.kanban-os-hero p { margin: 0; color: #5f450c; font-weight: 650; }
.kanban-eyebrow { color: #694800; font-size: .78rem; font-weight: 950; text-transform: uppercase; }

.kanban-back-link,
.kanban-export-list {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #171725;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(95, 69, 12, .15);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 5px 0 rgba(98, 62, 0, .15);
}

.kanban-back-link { width: 48px; }
.kanban-export-list { padding: 0 15px; }
.kanban-back-link i, .kanban-export-list i { width: 20px; height: 20px; }

.kanban-live-region {
  min-height: 24px;
  margin-bottom: 8px;
  color: #176342;
  font-size: .9rem;
  font-weight: 800;
}

.kanban-live-region.is-error { color: #b42318; }

.kanban-os-board {
  width: min(1440px, calc(100vw - 32px));
  margin-left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, minmax(280px, 1fr));
  align-items: start;
  gap: 14px;
  padding: 2px 0 28px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-color: #9ea2aa #ececef;
  scrollbar-width: thin;
}

.kanban-os-board.is-saving { pointer-events: none; opacity: .76; }

.kanban-os-column {
  min-width: 280px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid #e2e4e8;
  border-top: 4px solid #e3a00a;
  border-radius: 8px;
  scroll-snap-align: start;
}

.kanban-os-column.status-to_execute { border-top-color: #147d78; }
.kanban-os-column.status-executed { border-top-color: #209c5c; }
.kanban-os-column.status-cancelled { border-top-color: #d14343; }

.kanban-column-head {
  min-height: 62px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 9px;
  padding: 12px;
  background: #fff;
  border-bottom: 1px solid #e2e4e8;
}

.kanban-column-head h2 { margin: 0; font-size: 1rem; font-weight: 950; }
.kanban-column-head strong { min-width: 28px; padding: 4px; text-align: center; background: #f2f2f4; border-radius: 50%; }
.kanban-column-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #8a5a00; background: #fff2c8; border-radius: 7px; }
.kanban-column-icon i { width: 19px; height: 19px; }
.status-to_execute .kanban-column-icon { color: #0b625e; background: #d9f3f0; }
.status-executed .kanban-column-icon { color: #176b40; background: #dff5e8; }
.status-cancelled .kanban-column-icon { color: #a52f2f; background: #fde4e4; }

.kanban-dropzone {
  min-height: 330px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 10px;
  transition: background-color .16s ease;
}

.kanban-dropzone.is-drag-over { background: #fff8df; }

.kanban-order-card {
  padding: 14px;
  background: #fff;
  border: 1px solid #dcdee3;
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(23, 23, 37, .08);
  cursor: grab;
}

.kanban-order-card.is-dragging { opacity: .45; cursor: grabbing; }
.kanban-card-topline { display: flex; justify-content: space-between; align-items: center; color: #8a5a00; font-size: .77rem; font-weight: 950; }
.kanban-order-card h3 { margin: 8px 0; font-size: 1rem; line-height: 1.3; font-weight: 950; overflow-wrap: anywhere; }
.kanban-company { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 12px; color: #596170; font-size: .82rem; }
.kanban-company i { flex: 0 0 auto; width: 16px; height: 16px; }

.kanban-drag-handle { width: 32px; height: 32px; display: grid; place-items: center; border: 0; color: #7b8491; background: transparent; }
.kanban-drag-handle i { width: 18px; height: 18px; }

.kanban-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.kanban-card-meta div:last-child { grid-column: 1 / -1; }
.kanban-card-meta dt { color: #7b8491; font-size: .68rem; text-transform: uppercase; }
.kanban-card-meta dd { margin: 1px 0 0; font-size: .82rem; font-weight: 850; overflow-wrap: anywhere; }

.kanban-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.kanban-card-actions a { min-height: 36px; display: flex; align-items: center; justify-content: center; gap: 5px; color: #252534; border: 1px solid #d4d6dc; border-radius: 6px; text-decoration: none; font-size: .8rem; font-weight: 900; }
.kanban-card-actions a:last-child { color: #6f4700; background: #fff4d6; border-color: #eed392; }
.kanban-card-actions i { width: 16px; height: 16px; }

.kanban-mobile-move { display: none; margin-top: 10px; padding-top: 10px; border-top: 1px solid #ececf0; }
.kanban-mobile-move label { display: block; margin-bottom: 5px; color: #606876; font-size: .74rem; font-weight: 850; }
.kanban-mobile-move > div { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 7px; }
.kanban-mobile-move .btn { display: grid; place-items: center; padding: 0; }
.kanban-mobile-move .btn i { width: 18px; height: 18px; }

.kanban-history { margin-top: 10px; font-size: .76rem; }
.kanban-history summary { color: #697180; cursor: pointer; font-weight: 850; }
.kanban-history ol { margin: 8px 0 0; padding-left: 20px; }
.kanban-history li { margin-bottom: 6px; }
.kanban-history small { display: block; color: #818896; }

.kanban-empty { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 8px; color: #9298a2; text-align: center; font-size: .82rem; font-weight: 800; }
.kanban-empty i { width: 28px; height: 28px; }
.kanban-empty[hidden] { display: none; }

.app-modal {
  border: 0;
  border-radius: 22px;
  overflow: hidden;
}

.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.modal-form-grid label {
  color: #334155;
  font-weight: 800;
}

.modal-form-grid .full {
  grid-column: 1 / -1;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(720px, 100%);
  min-height: 76px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 4px;
  padding: 10px 16px 12px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(236, 232, 223, .9);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 30px rgba(24, 24, 45, .14);
  backdrop-filter: blur(16px);
}

.bottom-nav-item {
  color: #9aa0aa;
  display: grid;
  place-items: center;
  gap: 2px;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
  min-width: 0;
}

.bottom-nav-item i {
  width: 25px;
  height: 25px;
}

.bottom-nav-item.active {
  color: var(--sun);
}

.bottom-nav-item.center-action {
  transform: translateY(-26px);
  color: #171725;
}

.bottom-nav-item.center-action i {
  width: 66px;
  height: 66px;
  padding: 17px;
  border-radius: 50%;
  color: #171725;
  background: var(--sun);
  border: 7px solid #fff;
  box-shadow: var(--lift-shadow);
}

.bottom-nav-item.center-action span {
  margin-top: -4px;
  color: #9aa0aa;
}

.message-nav-item { position: relative; }
.nav-message-count { position: absolute; top: -4px; right: calc(50% - 24px); }

.login-card h2 {
  font-weight: 950;
}

@media (max-width: 900px) {
  .auth-grid, .choice-grid, .skills-grid, .job-grid, .video-card { grid-template-columns: 1fr; }
  .sun-panel { min-height: auto; padding: 32px; }
  .dashboard-head { align-items: flex-start; flex-direction: column; }
  .commission-settings-card { grid-template-columns: 1fr; }
  .commission-values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .commission-record-form { grid-template-columns: 1fr 1fr; }
  .commission-record-form .btn { grid-column: 1 / -1; }
  .kanban-os-board { grid-template-columns: repeat(4, minmax(300px, 82vw)); }
  .kanban-mobile-move { display: block; }
  .kanban-drag-handle { display: none; }
  .kanban-order-card { cursor: default; }
}

@media (max-width: 560px) {
  .page-shell { padding-top: 18px; }
  .has-bottom-nav .page-shell { padding-top: 0; }
  .form-card, .choice-card, .profile-card { padding: 20px; }
  .sun-panel h1, .section-heading h1, .dashboard-head h1 { font-size: 2rem; }
  .mobile-hero {
    padding-top: 22px;
    margin-bottom: 24px;
  }
  .stats-row {
    gap: 10px;
  }
  .stat-card {
    min-height: 128px;
    padding: 14px 8px;
  }
  .feature-card {
    grid-template-columns: 58px 1fr auto;
    padding: 20px;
  }
  .opportunity-map-preview {
    grid-template-columns: 58px 1fr;
  }
  .opportunity-map-preview .btn {
    grid-column: 1 / -1;
  }
  .agenda-hero-actions,
  .modal-form-grid {
    grid-template-columns: 1fr;
  }
  .agenda-event-card {
    grid-template-columns: 1fr;
  }
  .agenda-event-card .btn {
    width: 100%;
  }
  .person-row { align-items: flex-start; flex-wrap: wrap; }
  .person-row .btn-message { width: 100%; }
  .opportunity-row {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }
  .opportunity-row .feature-icon { width: 46px; height: 46px; }
  .opportunity-row .btn-message { width: 100%; justify-content: center; }
  .message-preview { grid-template-columns: 42px minmax(0, 1fr) 38px; gap: 9px; }
  .message-meta { display: grid; gap: 2px; }
  .message-form-actions { display: grid; grid-template-columns: 1fr; }
  .message-form-actions .btn { width: 100%; justify-content: center; }
  .profile-edit-heading { align-items: flex-start; }
  .profile-completion-hint { margin-top: 6px; }
  .profile-save-bar .btn { width: 100%; justify-content: center; }
  .job-form-actions { display: grid; grid-template-columns: 1fr; }
  .job-form-actions .btn { width: 100%; }
  .hero-quick-actions { gap: 5px; }
  .hero-quick-actions .notification-pill { width: 48px; height: 48px; }
  .admin-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-module-link { grid-template-columns: 48px minmax(0, 1fr) 20px; gap: 12px; padding: 15px; }
  .admin-module-icon { width: 48px; height: 48px; }
  .admin-reset-card { grid-template-columns: minmax(0, 1fr); }
  .admin-reset-form { grid-column: 1; }
  .admin-audit-list article { grid-template-columns: 36px minmax(0, 1fr); }
  .admin-audit-list time { grid-column: 2; }
  .monetization-header { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding-top: 22px; }
  .admin-back-link { width: 42px; height: 42px; }
  .monetization-summary { grid-template-columns: 1fr; }
  .commission-settings-card, .commission-card { padding: 18px; }
  .commission-settings-copy { grid-template-columns: 1fr; }
  .commission-settings-form .btn { width: 100%; }
  .commission-list-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .commission-list-heading > span { max-width: none; text-align: left; }
  .commission-card-head { display: grid; }
  .commission-status { width: fit-content; }
  .commission-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commission-record-form { grid-template-columns: 1fr; }
  .commission-record-form .btn { grid-column: 1; width: 100%; }
  .kanban-os-hero { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; margin-top: 12px; padding: 18px; }
  .kanban-os-hero h1 { font-size: 1.55rem; }
  .kanban-export-list { grid-column: 2; justify-self: start; }
  .kanban-back-link { width: 42px; min-height: 42px; }
  .kanban-os-board { width: calc(100vw - 20px); grid-template-columns: repeat(4, minmax(276px, 86vw)); gap: 10px; }
  .work-order-actions .btn, .work-order-toolbar .btn { flex: 1 1 170px; }
}

@media (max-width: 380px) {
  .admin-counts { grid-template-columns: 1fr 1fr; }
  .admin-module-copy small { font-size: .76rem; }
  .monetization-header h1 { font-size: 1.65rem; }
  .commission-values { grid-template-columns: 1fr; }
  .admin-bottom-nav { padding-inline: 8px; }
  .admin-bottom-nav .bottom-nav-item { font-size: .7rem; }
}
