:root {
  --ink: #241f3b;
  --muted: #7d7892;
  --canvas: #f6f5fb;
  --surface: #fff;
  --line: #e8e5f0;
  --purple: #19163d;
  --purple-2: #2f2867;
  --mint: #b5f3df;
  --coral: #ff6b5f;
  --yellow: #ffd166;
  --shadow: 0 22px 70px rgba(41, 34, 83, .12);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 14px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.045em; }

.app-loading { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 16px; color: var(--muted); }
.loading-mark { width: 58px; height: 58px; }
.loading-mark img { width: 100%; height: 100%; }

.login-page { min-height: 100vh; background: var(--canvas); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; max-width: 1500px; margin: 0 auto; background: var(--surface); box-shadow: var(--shadow); }
.login-visual { position: relative; overflow: hidden; min-height: 740px; padding: 48px 8vw 60px; background: linear-gradient(150deg, #19163d 0%, #29235b 62%, #52429a 100%); color: #fff; }
.login-visual::after { content: ""; position: absolute; width: 560px; height: 560px; right: -250px; bottom: -250px; border: 1px solid rgba(181,243,223,.25); border-radius: 50%; box-shadow: 0 0 0 75px rgba(181,243,223,.04), 0 0 0 150px rgba(181,243,223,.025); }
.brand-lockup, .sidebar-brand, .mobile-brand { display: flex; align-items: center; gap: 12px; }
.brand-lockup img { width: 46px; height: 46px; }
.brand-lockup strong, .brand-lockup small, .sidebar-brand strong, .sidebar-brand small { display: block; }
.brand-lockup strong { font-size: 15px; }
.brand-lockup small { margin-top: 3px; color: #c6c1e6; font-size: 10px; }
.visual-copy { position: relative; z-index: 1; max-width: 520px; margin-top: 145px; }
.eyebrow { color: var(--coral); font-size: 10px; font-weight: 850; letter-spacing: .16em; line-height: 1; text-transform: uppercase; }
.visual-copy h1 { margin: 20px 0 22px; color: #fffdf9; font-size: clamp(44px, 5vw, 78px); line-height: .94; }
.visual-copy > p:last-child { max-width: 390px; color: #d9d5f1; font-size: 16px; line-height: 1.65; }
.visual-orbit { position: absolute; z-index: 1; left: 8vw; right: 8vw; bottom: 42px; height: 140px; }
.orbit-core { position: absolute; z-index: 2; top: 50%; left: 50%; width: 70px; height: 70px; transform: translate(-50%,-50%); filter: drop-shadow(0 14px 22px rgba(0,0,0,.25)); }
.orbit-core img { width: 100%; height: 100%; }
.orbit-card { position: absolute; display: block; padding: 16px 19px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: rgba(255,255,255,.09); backdrop-filter: blur(10px); }
.orbit-card b, .orbit-card small { display: block; }
.orbit-card b { color: var(--yellow); font-size: 26px; }
.orbit-card small { margin-top: 4px; color: #d9d5f1; font-size: 10px; }
.orbit-card-one { left: 0; top: 0; }
.orbit-card-two { right: 0; bottom: 0; }
.login-panel { display: grid; place-items: center; padding: 60px 8vw; }
.login-content { width: min(390px, 100%); }
.login-panel h2 { margin: 18px 0 15px; font-size: 40px; line-height: 1; }
.login-intro { max-width: 335px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.login-form { display: grid; gap: 9px; margin-top: 35px; }
.login-form label, .field-label { color: #625d7b; font-size: 11px; font-weight: 800; }
.login-form input, .entry-placeholder input { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fcfbfe; color: var(--ink); outline: 0; padding: 13px; }
.login-form input:focus, .entry-placeholder input:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255,107,95,.14); }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 11px; padding: 13px 15px; font-weight: 850; }
.primary-button { background: var(--purple); color: #fff; }
.primary-button:hover { background: var(--purple-2); }
.primary-button span { color: var(--mint); font-size: 17px; }
.secondary-button { background: #f0eefb; color: var(--purple); }
.secondary-button:hover { background: #e5e2f5; }
.form-message { min-height: 18px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.form-message.error { color: #bd473e; }
.login-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 36px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.login-note span { color: var(--yellow); font-size: 17px; }
.dev-access-box { display: grid; gap: 5px; margin-top: 18px; padding: 12px 14px; border: 1px solid #f3d690; border-radius: 13px; background: #fff9e8; color: #6d5b26; font-size: 10px; line-height: 1.45; }
.dev-access-box strong { color: #8f6d14; font-size: 11px; }
.demo-box { display: grid; gap: 8px; margin-top: 22px; padding: 15px; border: 1px dashed #d9d3f1; border-radius: 15px; background: #faf9ff; }
.demo-box strong { color: var(--purple); font-size: 11px; }
.demo-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.demo-button { border: 1px solid #ddd8f2; border-radius: 99px; background: #fff; color: var(--purple); padding: 7px 10px; font-size: 10px; font-weight: 800; }
.demo-button:hover { border-color: var(--coral); color: #bd473e; }

.app-root { min-height: 100vh; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { display: flex; min-height: 100vh; flex-direction: column; padding: 27px 17px 18px; background: var(--purple); color: #fff; }
.sidebar-brand { padding: 0 10px; }
.sidebar-brand img { width: 36px; height: 36px; }
.sidebar-brand strong { font-size: 14px; }
.sidebar-brand small { margin-top: 3px; color: #aaa4d2; font-size: 9px; letter-spacing: .04em; }
.main-nav { display: grid; gap: 5px; margin-top: 54px; }
.nav-item { display: flex; align-items: center; gap: 11px; border: 0; border-radius: 11px; background: transparent; color: #bdb7de; padding: 12px 13px; font-size: 12px; font-weight: 750; text-align: left; }
.nav-item span { width: 20px; color: var(--mint); font-size: 17px; text-align: center; }
.nav-item.active, .nav-item:hover { background: rgba(255,255,255,.1); color: #fff; }
.sidebar-spacer { flex: 1; }
.sidebar-status { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 13px 10px; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-status i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(181,243,223,.13); }
.sidebar-status b, .sidebar-status small { display: block; }
.sidebar-status b { font-size: 10px; }
.sidebar-status small { margin-top: 3px; color: #aaa4d2; font-size: 9px; }
.sidebar-user { display: grid; grid-template-columns: 34px 1fr 24px; align-items: center; gap: 9px; padding: 0 5px; }
.avatar, .top-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #4a4190; color: #f4f2ff; font-size: 10px; font-weight: 850; }
.avatar.has-avatar, .top-avatar.has-avatar, .directory-avatar.has-avatar { overflow: hidden; background: #fff; }
.avatar img, .top-avatar img, .directory-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { font-size: 10px; }
.sidebar-user small { margin-top: 3px; color: #aaa4d2; font-size: 9px; }
.sidebar-user button { border: 0; background: transparent; color: #c0bbdf; font-size: 18px; }
.main-content { min-width: 0; padding: 0 42px 60px; }
.topbar { display: flex; height: 126px; align-items: center; justify-content: space-between; gap: 20px; }
.topbar h1 { margin-top: 10px; font-size: 28px; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.date-pill { border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted); padding: 9px 13px; font-size: 11px; }
.top-avatar { width: 36px; height: 36px; background: #ffe1d7; color: var(--purple); }
.page-content { max-width: 1440px; margin: 0 auto; }
.hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 25px; overflow: hidden; padding: 33px 37px; border-radius: 24px; background: linear-gradient(118deg, #2d2765 0%, #4a3b8b 64%, #7152a8 100%); box-shadow: var(--shadow); color: #fff; }
.hero::after { content: ""; position: absolute; width: 330px; height: 330px; top: -150px; right: -85px; border: 1px solid rgba(181,243,223,.25); border-radius: 50%; box-shadow: 0 0 0 45px rgba(181,243,223,.035), 0 0 0 90px rgba(181,243,223,.02); }
.hero h2 { position: relative; z-index: 1; margin: 16px 0 10px; font-size: 31px; line-height: 1.05; }
.hero p:not(.eyebrow) { position: relative; z-index: 1; max-width: 560px; color: #dedaf1; font-size: 13px; line-height: 1.6; }
.hero-meta { position: relative; z-index: 1; min-width: 220px; }
.hero-meta small, .hero-meta strong { display: block; }
.hero-meta small { color: #c6c1e6; font-size: 10px; }
.hero-meta strong { margin-top: 8px; color: var(--yellow); font-size: 22px; }
.hero-meta span { display: inline-flex; margin-top: 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 99px; color: #fff; padding: 6px 9px; font-size: 9px; font-weight: 850; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 18px; }
.metric-card { min-height: 120px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 8px 20px rgba(41,34,83,.04); }
.metric-card small, .metric-card strong { display: block; }
.metric-card small { color: var(--muted); font-size: 10px; }
.metric-card strong { margin-top: 10px; color: var(--purple); font-size: 30px; line-height: 1; }
.metric-card.accent strong { color: var(--coral); }
.section-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr); gap: 18px; margin-top: 18px; }
.panel { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 8px 20px rgba(41,34,83,.035); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-heading h3 { font-size: 18px; }
.panel-heading p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.entries-table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 11px; }
.entries-table th { background: #faf9fd; color: var(--muted); font-size: 9px; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.entries-table th, .entries-table td { padding: 12px 13px; border-bottom: 1px solid var(--line); }
.entries-table tr:last-child td { border-bottom: 0; }
.entries-table td { color: var(--ink); }
.entries-table td strong { display: block; font-size: 11px; }
.entries-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.status-chip { display: inline-flex; border-radius: 99px; padding: 5px 8px; font-size: 9px; font-weight: 850; text-transform: capitalize; }
.status-chip.valid { background: #dff8ec; color: #18704f; }
.status-chip.pending { background: #fff2cc; color: #92701f; }
.status-chip.invalid { background: #ffe3df; color: #a4473e; }
.empty-state { padding: 32px 18px; color: var(--muted); text-align: center; }
.empty-state strong { display: block; color: var(--purple); font-size: 12px; }
.empty-state p { margin-top: 6px; font-size: 11px; line-height: 1.5; }
.field-list { display: flex; flex-wrap: wrap; gap: 8px; }
.field-pill { display: inline-flex; border: 1px solid #e2ddf5; border-radius: 99px; background: #faf9ff; color: var(--purple-2); padding: 7px 9px; font-size: 10px; font-weight: 750; }
.integration-list { display: grid; gap: 10px; margin-top: 20px; }
.integration-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 12px; background: #faf9fd; }
.integration-row strong { font-size: 11px; }
.integration-row span { color: var(--muted); font-size: 9px; }
.planned-chip { border: 1px solid #e2ddf5; border-radius: 99px; color: var(--purple-2) !important; padding: 5px 8px; font-weight: 800; }
.entry-placeholder { display: grid; gap: 12px; }
.entry-placeholder p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.entry-placeholder .secondary-button { justify-self: start; }
.toast-host { position: fixed; z-index: 10; top: 50%; left: 50%; width: max-content; max-width: calc(100vw - 32px); transform: translate(-50%, -50%); }
.toast { border: 1px solid #e4def4; border-radius: 12px; background: var(--purple); box-shadow: var(--shadow); color: #fff; padding: 12px 15px; font-size: 11px; }
.fatal-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.fatal-card { width: min(460px, 100%); padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.fatal-card h2 { color: var(--purple); font-size: 24px; }
.fatal-card p { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.admin-root .main-nav { gap: 5px; }
.admin-root .nav-item.active { background: #eeeaff; color: var(--purple); }
.admin-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 25px; overflow: hidden; padding: 33px 37px; border-radius: 24px; background: linear-gradient(118deg, #25204f 0%, #59449a 68%, #8e68c8 100%); box-shadow: var(--shadow); color: #fff; }
.admin-hero::after { content: ""; position: absolute; width: 360px; height: 360px; top: -175px; right: -90px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.035), 0 0 0 88px rgba(255,255,255,.02); }
.admin-hero h2 { position: relative; z-index: 1; max-width: 600px; margin: 15px 0 10px; font-size: 30px; line-height: 1.08; }
.admin-hero p:not(.eyebrow) { position: relative; z-index: 1; max-width: 600px; color: #e4def7; font-size: 13px; line-height: 1.6; }
.admin-hero-meta { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 11px; min-width: 230px; }
.admin-hero-meta small, .admin-hero-meta strong, .admin-hero-meta span { display: block; }
.admin-hero-meta small { color: #cfc6ec; font-size: 10px; }
.admin-hero-meta strong { margin-top: 7px; color: var(--yellow); font-size: 17px; }
.admin-hero-meta span:not(.admin-live-dot) { margin-top: 6px; color: #fff; font-size: 10px; }
.admin-live-dot { width: 9px; height: 9px; margin-top: 3px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(181,243,223,.13); }
.admin-metric-grid .metric-card span { display: block; margin-top: 10px; color: var(--muted); font-size: 10px; }
.metric-card.metric-dark { border-color: #2d2765; background: #2d2765; }
.metric-card.metric-dark small, .metric-card.metric-dark span { color: #cfc9e8; }
.metric-card.metric-dark strong { color: #fff; }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 18px; margin-top: 18px; }
.admin-group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.admin-group-card { position: relative; min-width: 0; padding: 16px; border: 1px solid var(--line); border-top: 3px solid var(--group-accent); border-radius: 15px; background: #fff; }
.admin-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.group-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--group-accent) 14%, white); color: var(--group-accent); font-size: 14px; font-weight: 850; }
.admin-group-card h4 { margin-top: 13px; color: var(--ink); font-size: 14px; }
.admin-group-card p { min-height: 31px; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.admin-group-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.admin-group-stats strong, .admin-group-stats small { display: block; }
.admin-group-stats strong { color: var(--purple); font-size: 15px; }
.admin-group-stats small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.text-button { margin-top: 14px; border: 0; background: transparent; color: var(--purple-2); font-size: 10px; font-weight: 850; cursor: pointer; }
.text-button span { margin-left: 4px; }
.admin-access-panel { align-self: stretch; }
.admin-access-list { display: grid; gap: 10px; }
.admin-access-list > div { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: #faf9fd; }
.admin-access-list > div > div { min-width: 0; flex: 1; }
.access-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: #eeeaff; color: var(--purple); font-size: 13px; }
.admin-access-list strong, .admin-access-list small { display: block; }
.admin-access-list strong { color: var(--ink); font-size: 11px; }
.admin-access-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.access-state { border-radius: 99px; background: #dff8ec; color: #18704f; padding: 4px 7px; font-size: 8px; font-weight: 850; }
.access-state.planned { background: #eeeaff; color: var(--purple-2); }
.access-state.pending { background: #fff2cc; color: #92701f; }
.admin-note { display: flex; gap: 9px; margin-top: 17px; padding: 12px; border: 1px solid #e2ddf5; border-radius: 12px; background: #faf9ff; }
.admin-note > span { display: grid; width: 17px; height: 17px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--purple); color: white; font-size: 9px; font-weight: 850; }
.admin-note p { color: var(--muted); font-size: 10px; line-height: 1.45; }
.admin-directory-panel { margin-top: 18px; }
.directory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.directory-card { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: #faf9fd; }
.directory-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #eeeaff; color: var(--purple); font-size: 11px; font-weight: 850; }
.directory-copy { min-width: 0; }
.directory-copy strong, .directory-copy small, .directory-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.directory-copy strong { color: var(--ink); font-size: 11px; }
.directory-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.directory-copy span { width: max-content; max-width: 100%; margin-top: 6px; border-radius: 99px; background: color-mix(in srgb, var(--group-accent) 13%, white); color: var(--group-accent); padding: 4px 7px; font-size: 8px; font-weight: 850; }
.admin-recent-panel { margin-top: 18px; }
.admin-entries-table { min-width: 600px; }
.admin-entries-table td:nth-child(2) { white-space: nowrap; font-weight: 750; }
.admin-date { color: var(--muted); font-size: 10px; }
.group-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--group-accent); }
.status-chip.held { background: #eeeaff; color: var(--purple-2); }

@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { min-height: 520px; }
  .visual-copy { margin-top: 100px; }
  .section-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; padding: 15px; }
  .main-nav, .sidebar-status, .sidebar-spacer { display: none; }
  .sidebar-user { margin-top: 15px; }
  .main-content { padding: 0 16px 40px; }
  .topbar { height: 96px; }
  .topbar h1 { font-size: 22px; }
  .date-pill { display: none; }
  .hero { display: block; padding: 26px; }
  .hero-meta { margin-top: 25px; }
  .admin-hero { display: block; padding: 26px; }
  .admin-hero-meta { margin-top: 25px; }
  .admin-group-grid { grid-template-columns: 1fr; }
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card { min-height: 100px; }
  .metric-card strong { font-size: 25px; }
  .login-panel { padding: 45px 24px; }
  .login-visual { min-height: 470px; padding: 35px 24px; }
  .visual-orbit { left: 24px; right: 24px; }
  .directory-grid { grid-template-columns: 1fr; }
}

/* Profile menu follows the Processing Tracker interaction pattern. */
.profile-menu-wrap { position: relative; }
.profile-menu-toggle { display: block; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.profile-menu-toggle:focus-visible { outline: 3px solid rgba(181,243,223,.45); outline-offset: 3px; }
.profile-menu { position: absolute; z-index: 30; top: 47px; right: 0; width: 228px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 18px 45px rgba(41,34,83,.18); opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none; transition: .18s ease; }
.profile-menu.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.profile-menu-identity { display: flex; align-items: center; gap: 9px; padding: 7px 6px 10px; border-bottom: 1px solid var(--line); }
.profile-avatar { width: 30px; height: 30px; flex: 0 0 auto; overflow: hidden; }
.profile-menu-identity strong, .profile-menu-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-identity strong { font-size: 10px; }
.profile-menu-identity small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.profile-menu-action { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 7px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font-size: 10px; font-weight: 800; text-align: left; }
.profile-menu-action:hover, .profile-menu-action:focus-visible { background: #f0eefb; }
.profile-menu-action span { width: 18px; color: var(--coral); font-size: 14px; }
.profile-menu-logout { color: #b75b52; }

/* Sales view: Flowbite Admin Dashboard structure adapted to Bonus Tracking. */
.sales-root { --sales-ink:#111827; --sales-muted:#6b7280; --sales-line:#e5e7eb; --sales-surface:#fff; --sales-canvas:#f3f4f6; --sales-primary:#2563eb; min-height:100vh; background:var(--sales-canvas); color:var(--sales-ink); font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; }
.sales-shell { display:grid; grid-template-columns:256px minmax(0,1fr); min-height:100vh; }
.sales-sidebar { display:flex; min-height:100vh; flex-direction:column; padding:22px 14px 18px; border-right:1px solid var(--sales-line); background:var(--sales-surface); }
.sales-brand { display:flex; align-items:center; gap:11px; padding:0 11px 25px; border-bottom:1px solid var(--sales-line); }
.sales-brand img { width:34px; height:34px; }
.sales-brand strong, .sales-brand small { display:block; }
.sales-brand strong { color:var(--sales-ink); font-size:14px; letter-spacing:-.02em; }
.sales-brand small { margin-top:3px; color:#9ca3af; font-size:9px; }
.sales-sidebar-caption { margin:25px 12px 9px; color:#9ca3af; font-size:9px; font-weight:850; letter-spacing:.11em; text-transform:uppercase; }
.sales-nav { display:grid; gap:4px; }
.sales-nav-item { display:flex; align-items:center; gap:11px; width:100%; padding:11px 12px; border:0; border-radius:8px; background:transparent; color:#4b5563; font-size:11px; font-weight:750; text-align:left; }
.sales-nav-item span { display:grid; width:20px; place-items:center; color:#9ca3af; font-size:15px; }
.sales-nav-item:hover { background:#f3f4f6; color:var(--sales-ink); }
.sales-nav-item.active { background:#eff6ff; color:#1d4ed8; }
.sales-nav-item.active span { color:#2563eb; }
.sales-sidebar-spacer { flex:1; }
.sales-sidebar-status { display:flex; align-items:center; gap:9px; margin:0 8px; padding:13px 0; border-top:1px solid var(--sales-line); }
.sales-status-dot { width:8px; height:8px; flex:0 0 auto; border-radius:50%; background:#10b981; box-shadow:0 0 0 4px #d1fae5; }
.sales-sidebar-status strong, .sales-sidebar-status small { display:block; }
.sales-sidebar-status strong { color:var(--sales-ink); font-size:10px; }
.sales-sidebar-status small { margin-top:4px; color:#9ca3af; font-size:9px; }
.sales-sidebar-footer { display:grid; gap:3px; padding:14px 8px 0; border-top:1px solid var(--sales-line); color:#9ca3af; font-size:9px; }
.sales-sidebar-footer small { color:#d1d5db; font-size:8px; }
.sales-main { min-width:0; }
.sales-topbar { display:flex; height:76px; align-items:center; justify-content:space-between; gap:20px; padding:0 32px; border-bottom:1px solid var(--sales-line); background:var(--sales-surface); }
.sales-breadcrumb { display:flex; align-items:center; gap:8px; color:#9ca3af; font-size:10px; }
.sales-breadcrumb b { color:#d1d5db; font-weight:500; }
.sales-breadcrumb strong { color:#4b5563; }
.sales-topbar-kicker { margin-top:7px; color:#9ca3af; font-size:9px; }
.sales-topbar-actions { display:flex; align-items:center; gap:15px; }
.sales-date-pill { padding:7px 11px; border:1px solid var(--sales-line); border-radius:7px; background:#f9fafb; color:#6b7280; font-size:9px; }
.sales-content { max-width:1500px; margin:0 auto; padding:28px 32px 54px; }
.sales-page-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; }
.sales-eyebrow { color:#6b7280; font-size:9px; font-weight:850; letter-spacing:.13em; line-height:1.1; text-transform:uppercase; }
.sales-page-heading h1 { margin-top:10px; color:var(--sales-ink); font-size:27px; line-height:1; letter-spacing:-.045em; }
.sales-page-heading p:not(.sales-eyebrow) { margin-top:8px; color:#6b7280; font-size:12px; }
.sales-primary-button, .sales-outline-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:7px; padding:10px 14px; font-size:10px; font-weight:800; }
.sales-primary-button { border:1px solid var(--sales-primary); background:var(--sales-primary); color:#fff; box-shadow:0 5px 12px rgba(37,99,235,.16); }
.sales-primary-button:hover { background:#1d4ed8; }
.sales-primary-button span { font-size:16px; font-weight:400; line-height:1; }
.sales-outline-button { border:1px solid var(--sales-line); background:#fff; color:#4b5563; }
.sales-outline-button:hover { border-color:#93c5fd; background:#eff6ff; color:#1d4ed8; }
.sales-period-banner { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-top:25px; padding:14px 16px; border:1px solid #bfdbfe; border-radius:9px; background:#eff6ff; }
.sales-period-banner > div { display:flex; align-items:center; gap:11px; }
.sales-banner-icon { display:grid; width:30px; height:30px; place-items:center; border-radius:7px; background:#dbeafe; color:#2563eb; font-size:15px; }
.sales-period-banner strong, .sales-period-banner small { display:block; }
.sales-period-banner strong { color:#1e3a8a; font-size:11px; }
.sales-period-banner small { margin-top:4px; color:#4b6b9d; font-size:9px; }
.sales-period-chip { border:1px solid #bfdbfe; border-radius:99px; background:#fff; color:#2563eb; padding:5px 8px; font-size:8px; font-weight:850; }
.sales-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-top:18px; }
.sales-stat-card { display:flex; align-items:flex-start; gap:11px; min-height:105px; padding:16px; border:1px solid var(--sales-line); border-radius:9px; background:var(--sales-surface); box-shadow:0 1px 2px rgba(0,0,0,.03); }
.sales-stat-card > div { min-width:0; }
.sales-stat-card small, .sales-stat-card strong, .sales-stat-card div > span { display:block; }
.sales-stat-card small { color:#6b7280; font-size:9px; }
.sales-stat-card strong { margin-top:7px; color:var(--sales-ink); font-size:24px; line-height:1; letter-spacing:-.04em; }
.sales-stat-card div > span { margin-top:8px; color:#9ca3af; font-size:8px; }
.sales-stat-icon { display:grid; width:29px; height:29px; flex:0 0 auto; place-items:center; border-radius:7px; font-size:13px; font-weight:850; }
.sales-stat-icon.blue { background:#dbeafe; color:#2563eb; }
.sales-stat-icon.amber { background:#fef3c7; color:#d97706; }
.sales-stat-icon.green { background:#d1fae5; color:#059669; }
.sales-stat-icon.purple { background:#ede9fe; color:#7c3aed; }
.sales-main-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr); gap:16px; margin-top:18px; }
.sales-panel { min-width:0; padding:19px; border:1px solid var(--sales-line); border-radius:9px; background:var(--sales-surface); box-shadow:0 1px 2px rgba(0,0,0,.03); }
.sales-panel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:17px; }
.sales-panel-heading h2 { margin-top:6px; color:var(--sales-ink); font-size:16px; letter-spacing:-.035em; }
.sales-panel-heading h3 { margin-top:6px; color:var(--sales-ink); font-size:13px; }
.sales-panel-heading p:not(.sales-eyebrow) { margin-top:5px; color:#9ca3af; font-size:10px; }
.sales-panel-heading.compact { margin-top:16px; margin-bottom:10px; }
.sales-entries-panel .table-wrap { border-color:var(--sales-line); border-radius:7px; }
.sales-entries-panel .entries-table { min-width:620px; }
.sales-entries-panel .entries-table th { background:#f9fafb; color:#6b7280; }
.sales-entries-panel .entries-table th, .sales-entries-panel .entries-table td { padding:11px 12px; border-color:var(--sales-line); }
.sales-entries-panel .empty-state { min-height:190px; display:grid; place-items:center; align-content:center; border:1px dashed #d1d5db; border-radius:7px; }
.sales-profile-panel { align-self:start; }
.sales-online-chip { display:inline-flex; align-items:center; gap:5px; border-radius:99px; background:#d1fae5; color:#047857; padding:5px 8px; font-size:8px; font-weight:850; }
.sales-online-chip i { width:5px; height:5px; border-radius:50%; background:#10b981; }
.sales-profile-card { display:flex; align-items:center; gap:11px; padding:13px; border:1px solid #dbeafe; border-radius:8px; background:#eff6ff; }
.sales-profile-avatar { display:grid; width:45px; height:45px; flex:0 0 auto; place-items:center; overflow:hidden; border-radius:50%; background:#bfdbfe; color:#1e3a8a; font-size:12px; font-weight:850; }
.sales-profile-avatar img { width:100%; height:100%; object-fit:cover; }
.sales-profile-card strong, .sales-profile-card small, .sales-profile-card span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sales-profile-card strong { color:#1e3a8a; font-size:11px; }
.sales-profile-card small { margin-top:4px; color:#4b6b9d; font-size:9px; }
.sales-profile-card span { margin-top:7px; color:#2563eb; font-size:8px; font-weight:800; }
.sales-divider { height:1px; margin:18px 0; background:var(--sales-line); }
.sales-field-list { display:flex; flex-wrap:wrap; gap:6px; }
.sales-field-list span { border:1px solid var(--sales-line); border-radius:5px; background:#f9fafb; color:#4b5563; padding:6px 7px; font-size:8px; }
.sales-bottom-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr); gap:16px; margin-top:16px; }
.sales-step-list, .sales-integration-list { display:grid; gap:10px; }
.sales-step-list > div, .sales-integration-list > div { display:flex; align-items:center; gap:10px; padding:10px 0; border-top:1px solid #f3f4f6; }
.sales-step-list > div:first-child, .sales-integration-list > div:first-child { padding-top:0; border-top:0; }
.sales-step-list b { display:grid; width:24px; height:24px; flex:0 0 auto; place-items:center; border-radius:50%; background:#dbeafe; color:#2563eb; font-size:10px; }
.sales-step-list strong, .sales-step-list small, .sales-integration-list strong, .sales-integration-list small { display:block; }
.sales-step-list strong, .sales-integration-list strong { color:var(--sales-ink); font-size:10px; }
.sales-step-list small, .sales-integration-list small { margin-top:3px; color:#9ca3af; font-size:9px; }
.sales-integration-list > div > span:nth-child(2) { min-width:0; flex:1; }
.sales-integration-mark { display:grid; width:26px; height:26px; place-items:center; border-radius:6px; background:#eff6ff; color:#2563eb; font-size:11px; font-weight:850; }
.sales-integration-list em { color:#9ca3af; font-size:8px; font-style:normal; }
@media (max-width:1050px) {
  .sales-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sales-main-grid, .sales-bottom-grid { grid-template-columns:1fr; }
}
@media (max-width:780px) {
  .sales-shell { grid-template-columns:1fr; }
  .sales-sidebar { min-height:auto; padding:15px; border-right:0; border-bottom:1px solid var(--sales-line); }
  .sales-brand { padding-bottom:15px; }
  .sales-sidebar-caption, .sales-nav, .sales-sidebar-status, .sales-sidebar-footer { display:none; }
  .sales-topbar { height:70px; padding:0 16px; }
  .sales-topbar-kicker { display:none; }
  .sales-date-pill { display:none; }
  .sales-content { padding:22px 16px 40px; }
  .sales-page-heading { display:block; }
  .sales-page-heading .sales-primary-button { margin-top:16px; width:100%; }
  .sales-period-banner { align-items:flex-start; }
  .sales-period-chip { flex:0 0 auto; }
}
@media (max-width:520px) {
  .sales-stat-grid { grid-template-columns:1fr; }
  .sales-panel { padding:15px; }
  .sales-period-banner { display:block; }
  .sales-period-chip { display:inline-flex; margin:10px 0 0 41px; }
  .profile-menu { right:-4px; }
}

/* The Flowbite navbar is fixed; keep Sales content below it at every breakpoint. */
.flowbite-sales > main { padding-top:88px; }
