@charset "UTF-8";

:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #fff;
  --ink: #233044;
  --muted: #8791a2;
  --muted-strong: #68758a;
  --line: #e9edf2;
  --line-strong: #dbe1e8;
  --orange: #e87836;
  --orange-dark: #bc531d;
  --orange-soft: #fff2e8;
  --green: #2b8a6c;
  --green-soft: #ecf7f1;
  --blue: #557fbb;
  --radius: 13px;
  --shadow: 0 8px 32px rgba(35, 48, 68, .04);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #f3b68d; outline-offset: 3px; }
input::placeholder, textarea::placeholder { color: #a0a9b6; }
svg { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.icon { width: 18px; height: 18px; stroke-width: 1.8; }
.app-shell { min-height: 100vh; }

/* A quiet, permanent home for navigation. */
.sidebar { width: 220px; position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; padding: 27px 18px 20px; background: #fff; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px; }
.brand-mark { width: 37px; height: 37px; border-radius: 11px; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 750; box-shadow: 0 4px 9px #e878361a; }
.brand-mark .icon { width: 22px; height: 22px; }
.brand-name { font-size: 23px; line-height: 1.1; font-weight: 750; letter-spacing: 1px; }
.brand-sub { color: #97a0ad; font-size: 10px; font-weight: 500; letter-spacing: 1.5px; margin-top: 4px; }
.nav-label { padding: 0 14px; margin: 39px 0 11px; color: #a2aab7; font-size: 10px; font-weight: 650; letter-spacing: 1.6px; }
.nav-list { display: flex; flex-direction: column; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; min-height: 45px; color: #758094; border: 0; background: transparent; border-radius: 9px; text-align: left; font-weight: 550; transition: background .15s, color .15s; }
.nav-item .icon { width: 18px; height: 18px; color: #8a95a5; }
.nav-item:hover { background: #f6f7f9; color: var(--ink); }
.nav-item.active { color: var(--orange-dark); background: var(--orange-soft); }
.nav-item.active .icon { color: #de7332; }
.nav-item .nav-count, .nav-item > .pill { margin-left: auto; min-width: 20px; padding: 0 5px; color: #be6027; font-size: 10px; line-height: 20px; border-radius: 5px; background: #ffdfc9; text-align: center; }
.sidebar-footer { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 19px 10px 0; border-top: 1px solid var(--line); }
.user-avatar { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: #edf0f5; color: #67738a; font-size: 12px; font-weight: 700; }
.user-name { font-size: 12px; font-weight: 650; }
.user-role { color: #9aa3b1; font-size: 10px; margin-top: 1px; }
.workspace { margin-left: 220px; min-height: 100vh; }
.topbar { height: 70px; padding: 0 36px; border-bottom: 1px solid var(--line); background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.breadcrumb { font-size: 12px; color: #939baa; display: flex; align-items: center; gap: 10px; }
.breadcrumb strong, .breadcrumb .current { color: #5d687a; font-weight: 550; }
.breadcrumb .icon { width: 14px; height: 14px; color: #b4bbc6; }
.topbar-right { display: flex; gap: 20px; align-items: center; color: var(--muted-strong); }
.demo-badge { background: #f5f6f8; border: 1px solid #e9ecf1; padding: 3px 9px; border-radius: 5px; font-size: 10px; color: #788497; letter-spacing: .3px; }
.current-date { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.current-date .icon { width: 15px; height: 15px; color: #98a2b2; }
.mobile-menu { display: none; }
.main-content { padding: 30px 36px 44px; max-width: 1720px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.eyebrow { color: #9da5b3; font-size: 10px; letter-spacing: 1.7px; font-weight: 650; margin-bottom: 5px; }
.page-title { margin: 0; font-size: 25px; font-weight: 720; line-height: 1.4; letter-spacing: -.7px; }
.page-description { margin: 7px 0 0; color: #8993a3; font-size: 12px; }
.page-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 36px; padding: 8px 14px; font-size: 12px; font-weight: 550; line-height: 1.4; border-radius: 7px; border: 1px solid transparent; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn .icon { width: 16px; height: 16px; }
.btn.primary { background: #c95c23; color: #fff; border-color: #c95c23; box-shadow: 0 3px 6px #cb612015; }
.btn.primary:hover { background: #b74e19; border-color: #b74e19; }
.btn.secondary { color: #637086; border-color: var(--line-strong); background: #fff; }
.btn.secondary:hover { background: #f7f8fa; border-color: #c6ced9; }
.btn.ghost { color: #778296; background: transparent; }
.btn.ghost:hover { background: #f0f3f6; color: #4a5a72; }
.btn.danger { background: #fff1f0; color: #be5656; border-color: #f2d6d5; }
.btn.danger:hover { background: #ffe4e2; }
.btn.small { min-height: 29px; padding: 5px 10px; font-size: 11px; border-radius: 5px; }
.btn.icon-only { width: 34px; min-height: 34px; padding: 6px; }

/* Metric cards are small and deliberately consistent. */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { position: relative; padding: 19px 21px 17px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-height: 136px; box-shadow: 0 2px 4px #23304402; }
.stat-label { font-size: 11px; color: #8993a4; font-weight: 500; }
.stat-value { font-size: 29px; line-height: 1.35; font-weight: 700; letter-spacing: -.7px; margin: 8px 0 9px; font-variant-numeric: tabular-nums; }
.stat-value small { margin-left: 4px; font-size: 13px; color: #8a94a3; font-weight: 500; }
.stat-note { color: #a1a9b6; font-size: 10px; display: flex; align-items: center; gap: 7px; }
.stat-change { color: #489e80; font-size: 10px; font-weight: 600; }
.stat-icon { position: absolute; right: 19px; top: 18px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #f4f6f9; color: #8896ac; }
.stat-card:nth-child(2) .stat-icon { background: #edf5f9; color: #739cae; }
.stat-card:nth-child(3) .stat-icon { background: #fff5ed; color: #e1a170; }
.stat-card:nth-child(4) .stat-icon { background: #eef6f1; color: #79a28b; }
.stat-icon .icon { width: 16px; height: 16px; }
.section-card { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); margin-bottom: 21px; overflow: hidden; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; }
.section-title { font-size: 14px; line-height: 1.5; font-weight: 650; margin: 0; }
.section-title .pill { margin-left: 7px; vertical-align: 1px; }
.section-description { color: #9aa3b0; font-size: 11px; margin: 4px 0 0; }
.section-actions { display: flex; align-items: center; gap: 9px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 22px 19px; }
.segmented { display: inline-flex; gap: 3px; padding: 3px; background: #f4f6f8; border-radius: 7px; flex-shrink: 0; }
.segment { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 5px; padding: 6px 12px; font-size: 11px; color: #8791a1; background: transparent; white-space: nowrap; }
.segment.active { color: #48566c; background: #fff; box-shadow: 0 1px 3px #24364e0b; font-weight: 600; }
.segment span { color: #a1a9b6; font-size: 10px; }
.filter-row { display: flex; align-items: center; justify-content: flex-end; gap: 9px; min-width: 0; }
.search-field { display: flex; gap: 7px; align-items: center; min-width: 160px; max-width: 280px; background: #fff; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 6px; height: 33px; }
.search-field:focus-within { border-color: #e4a57d; box-shadow: 0 0 0 3px #e8783610; }
.search-field .icon { width: 14px; height: 14px; color: #a1aab9; }
.search-input { border: 0; outline: 0; padding: 0; background: transparent; min-width: 0; width: 100%; font-size: 11px; color: var(--ink); }
.search-input:focus-visible { outline: 0; }
.filter-select { max-width: 150px; padding: 6px 27px 6px 10px; height: 33px; border: 1px solid var(--line-strong); border-radius: 6px; color: #788497; background: #fff; font-size: 11px; cursor: pointer; }
.view-tabs { display: flex; gap: 23px; border-bottom: 1px solid var(--line); margin: 0 0 22px; }
.view-tab { border: 0; border-bottom: 2px solid transparent; padding: 0 0 12px; color: #8b94a4; background: transparent; font-size: 12px; font-weight: 550; }
.view-tab.active { color: var(--orange-dark); border-bottom-color: var(--orange); }
.view-tab .pill { margin-left: 5px; }

/* Soft rules and compact labels keep a data-heavy page readable. */
.table-wrap { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #d8dee6 transparent; }
.data-table { border-collapse: collapse; width: 100%; text-align: left; }
.data-table th { color: #98a0ad; font-size: 10px; font-weight: 500; letter-spacing: .2px; background: #fafbfc; padding: 12px 18px; border-top: 1px solid #eef0f4; border-bottom: 1px solid #eef0f4; white-space: nowrap; }
.data-table td { padding: 17px 18px; border-bottom: 1px solid #f0f2f5; vertical-align: middle; font-size: 11px; }
.data-table th:first-child, .data-table td:first-child { padding-left: 22px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 22px; }
.data-table tbody tr { transition: background .12s; }
.data-table tbody tr:hover { background: #fdfdfd; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.cell-primary { color: #536075; font-size: 11px; font-weight: 550; }
.cell-secondary { color: #a1a8b4; font-size: 10px; margin-top: 4px; }
.cell-person { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: #eff3f7; color: #7f91a7; font-size: 10px; font-weight: 600; }
.cell-person .avatar:nth-child(odd) { background: #f0f0f7; color: #9386af; }
.work-title { display: block; font-size: 11px; font-weight: 550; color: #4b596e; line-height: 1.5; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-title:hover { color: var(--orange-dark); }
.platform-badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 3px 7px; font-size: 9px; border-radius: 4px; font-weight: 550; line-height: 1.4; white-space: nowrap; }
.platform-badge.xiaohongshu { background: #fff0f2; color: #d66778; }
.platform-badge.douyin { background: #eef1f5; color: #657286; }
.platform-badge .icon { width: 11px; height: 11px; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 4px; color: #8791a3; background: #f1f3f6; font-size: 10px; font-weight: 500; white-space: nowrap; }
.status-badge::before { content: ""; width: 4px; height: 4px; background: currentColor; border-radius: 50%; flex-shrink: 0; }
.status-badge.pending { color: #c28c42; background: #fff7e9; }
.status-badge.approved, .status-badge.paid { color: #5f9a7f; background: #edf7f1; }
.status-badge.review { color: #768eb7; background: #edf3fb; }
.status-badge.rejected { color: #c27378; background: #fdf0f0; }
.status-badge.confirmed { color: #9978b4; background: #f4eff9; }
.metric-value { font-size: 12px; font-weight: 600; color: #526178; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-note { color: #a5acb8; font-size: 9px; margin-top: 4px; white-space: nowrap; }
.row-actions { display: flex; align-items: center; gap: 11px; white-space: nowrap; }
.link-button { color: #9c785f; background: transparent; padding: 0; border: 0; font-size: 10px; line-height: 1.6; }
.link-button:hover { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 3px; }
.row-actions .link-button { color: #8b97a9; }
.row-actions .link-button:first-child { color: #b97e56; }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; border-top: 1px solid var(--line); color: #a0a7b3; font-size: 10px; gap: 16px; }
.table-footer .pagination { display: flex; align-items: center; gap: 6px; }
.table-footer .pagination button { border: 1px solid var(--line); background: #fff; border-radius: 5px; min-width: 25px; height: 25px; color: #8b95a6; font-size: 10px; }
.table-footer .pagination button.active { background: var(--orange-soft); border-color: #f3dccb; color: #b55d2c; }
.empty-state { text-align: center; padding: 54px 20px; color: #9ba5b4; }
.empty-state h3 { font-size: 14px; margin: 12px 0 5px; color: #6a768c; font-weight: 600; }
.empty-state p { font-size: 12px; margin: 0 0 18px; }
.empty-icon { display: grid; place-items: center; width: 53px; height: 53px; background: #f3f5f8; border-radius: 16px; color: #a3afc1; margin: auto; }
.empty-icon .icon { width: 23px; height: 23px; }

/* Activity and operations cards. */
.campaign-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.campaign-card { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.campaign-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 17px; }
.campaign-card h3 { font-size: 15px; margin: 0 0 4px; font-weight: 650; }
.campaign-card p { color: #929baa; font-size: 11px; margin: 0; }
.campaign-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0; color: #9aa3b2; font-size: 10px; }
.campaign-meta .icon { width: 13px; height: 13px; }
.progress-track { width: 100%; height: 5px; background: #f1f3f6; border-radius: 4px; overflow: hidden; margin: 11px 0 8px; }
.progress-fill { height: 100%; background: #e5a074; border-radius: inherit; }
.rule-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.rule-chip { padding: 4px 7px; font-size: 10px; background: #faf6f2; border-radius: 4px; color: #aa8a74; }
.panel-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 20px; margin-top: 23px; }
.panel-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 21px 22px; }
.panel-card .section-header { padding: 0 0 18px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 25px; }
.detail-label { color: #9aa4b2; font-size: 10px; margin-bottom: 5px; }
.detail-value { color: #647189; font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid #f0f2f5; }
.list-row:last-child { border: 0; padding-bottom: 0; }
.notice { display: flex; align-items: flex-start; gap: 9px; font-size: 11px; padding: 12px 14px; border: 1px solid #e6edf6; border-radius: 7px; background: #f5f8fc; color: #8193ad; line-height: 1.8; }
.notice .icon { width: 15px; height: 15px; margin-top: 2px; }
.notice.warm { background: #fff9f3; border-color: #f4e7d8; color: #b09375; }
.notice.info { background: #f5f8fc; border-color: #e6edf6; color: #8193ad; }
.integration-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 11px; background: #f5f6f8; color: #78899e; }
.integration-status { display: flex; gap: 7px; align-items: center; color: #a2abb8; font-size: 11px; }
.integration-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #d9bd95; }
.endpoint { padding: 8px 10px; color: #8090a5; background: #f8fafc; border: 1px solid #ecf0f5; border-radius: 6px; font: 11px/1.6 Consolas, monospace; overflow-wrap: anywhere; }
.code-block { margin: 12px 0; padding: 16px; font: 11px/1.8 Consolas, monospace; color: #7388a0; background: #f7f9fc; border: 1px solid #e9edf4; border-radius: 8px; overflow: auto; }
.tag, .pill { display: inline-flex; align-items: center; padding: 2px 7px; font-size: 9px; line-height: 1.5; color: #8d99ac; background: #f1f4f8; border-radius: 4px; font-weight: 500; }
.activity-list { display: flex; flex-direction: column; gap: 17px; }
.activity-item { display: flex; align-items: flex-start; gap: 11px; }
.activity-dot { flex-shrink: 0; width: 7px; height: 7px; margin-top: 6px; background: #d2dce9; border: 2px solid #eef3f9; border-radius: 50%; box-sizing: content-box; }
.activity-copy { font-size: 11px; color: #7f8ca0; line-height: 1.7; }
.activity-copy strong { color: #637189; font-weight: 550; }
.activity-time { font-size: 9px; color: #b0b7c2; margin-top: 2px; }
.quick-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 10px; }
.quick-action { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 150px; padding: 12px; background: #fbfcfd; border: 1px solid var(--line); border-radius: 7px; color: #748198; text-align: left; font-size: 11px; }
.quick-action:hover { border-color: #ebc8af; color: #b6784e; background: #fffaf6; }
.quick-action .icon { width: 16px; height: 16px; }
.kpi-trend { font-size: 10px; color: #9aab9f; }
.bar-chart { display: flex; align-items: flex-end; justify-content: space-around; gap: 16px; padding: 16px 8px 0; height: 174px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; }
.bar { width: min(28px, 70%); background: #ead1bd; border-radius: 4px 4px 0 0; min-height: 3px; position: relative; }
.bar-col:nth-child(even) .bar { background: #e5b691; }
.bar-col:last-child .bar { background: #df9b67; }
.bar-label { color: #a5adba; font-size: 9px; margin-top: 9px; white-space: nowrap; }
.bar-count { font-size: 9px; color: #a5a0a0; margin-bottom: 5px; }
.legend { display: flex; align-items: center; gap: 13px; color: #a5adba; font-size: 10px; }
.legend-dot { display: inline-block; height: 5px; width: 5px; border-radius: 50%; background: #e6b28b; margin-right: 5px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.mini-table th { color: #9fa8b6; font-weight: 500; text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.mini-table td { padding: 12px 0; border-bottom: 1px solid #f1f3f6; color: #748197; }
.mini-table tr:last-child td { border-bottom: 0; }

/* Forms, dialogs and the work detail drawer. */
.overlay { display: none; position: fixed; inset: 0; z-index: 80; background: rgba(25, 36, 54, .28); backdrop-filter: blur(2px); align-items: center; justify-content: center; padding: 24px; }
.overlay.visible { display: flex; }
.modal { display: flex; flex-direction: column; width: 510px; max-width: 100%; max-height: calc(100vh - 48px); background: #fff; border-radius: 15px; box-shadow: 0 25px 90px #14223930; animation: modal-in .16s ease-out; }
.modal.wide { width: 660px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 21px 25px; border-bottom: 1px solid var(--line); }
.modal-title { margin: 0; font-size: 17px; color: #43516a; font-weight: 650; }
.modal-header p { color: #9aa3b1; font-size: 11px; margin: 4px 0 0; }
.modal-close { display: grid; place-items: center; width: 29px; height: 29px; border: 0; background: transparent; border-radius: 5px; color: #a1aaba; font-size: 23px; line-height: 1; }
.modal-close:hover { background: #f3f5f8; color: #6e7b90; }
.modal-body { padding: 23px 25px; overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; align-items: center; gap: 9px; padding: 17px 25px; border-top: 1px solid var(--line); background: #fdfdfe; border-radius: 0 0 15px 15px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field-label { display: block; color: #708097; font-size: 11px; font-weight: 550; margin-bottom: 7px; }
.field-label .required { color: #d17d57; margin-left: 3px; }
.field-hint { color: #a8b0bd; font-size: 10px; line-height: 1.6; margin: 6px 0 0; }
.input, .select, .textarea { display: block; width: 100%; border: 1px solid #dce2e9; background: #fff; border-radius: 6px; color: #65748b; padding: 9px 11px; font-size: 12px; line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
.select { min-height: 38px; cursor: pointer; }
.textarea { resize: vertical; min-height: 88px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: #dfa47f; box-shadow: 0 0 0 3px #e8783610; }
.input[readonly], .input:disabled { background: #f7f9fb; color: #a0a9b6; }
.field-error { color: #c7686b; font-size: 10px; margin-top: 6px; }
.field.has-error .input, .field.has-error .select { border-color: #dfa1a1; }
.upload-area { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px dashed #d8dfe8; border-radius: 8px; background: #fafbfc; padding: 21px 14px; color: #95a2b5; font-size: 11px; cursor: pointer; }
.upload-area:hover { border-color: #e5b18d; background: #fffbf7; }
.upload-area .icon { width: 22px; height: 22px; color: #abb6c5; }
.upload-area input { max-width: 100%; font-size: 10px; margin-top: 5px; }
.check-row { display: flex; align-items: flex-start; gap: 8px; color: #7c899c; font-size: 11px; line-height: 1.6; }
.checkbox, input[type="checkbox"] { accent-color: #d07a43; width: 13px; height: 13px; margin: 3px 0 0; cursor: pointer; flex-shrink: 0; }
.drawer-overlay { display: none; position: fixed; inset: 0; z-index: 70; background: #19243633; backdrop-filter: blur(1px); }
.drawer-overlay.visible { display: block; }
.drawer { display: flex; flex-direction: column; position: absolute; inset: 0 0 0 auto; width: 470px; max-width: 100%; background: #fff; box-shadow: -15px 0 50px #15283c17; animation: drawer-in .18s ease-out; }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 23px 25px; border-bottom: 1px solid var(--line); }
.drawer-title { font-size: 17px; font-weight: 650; margin: 0; color: #46536b; }
.drawer-header p { font-size: 11px; color: #9ca6b4; margin: 5px 0 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 25px; }
.drawer-footer { display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); padding: 17px 25px; }
.detail-section { padding-bottom: 25px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.detail-section:last-child { border: 0; margin-bottom: 0; padding-bottom: 0; }
.detail-section-title { font-size: 12px; font-weight: 650; color: #607089; margin: 0 0 17px; display: flex; align-items: center; gap: 8px; }
.detail-section-title .icon { width: 15px; height: 15px; color: #a0aec1; }
.history-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f2f5; font-size: 11px; color: #8c99ac; }
.history-item:last-child { border: 0; }
.history-count { font-size: 14px; color: #5a6b84; font-weight: 600; font-variant-numeric: tabular-nums; }
.snapshot-image { display: block; max-width: 100%; height: auto; max-height: 260px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; margin-top: 10px; background: #fafbfc; }
.proof-link { font-size: 11px; color: #ba815c; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.toast-stack { position: fixed; z-index: 120; right: 28px; top: 23px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; max-width: min(390px, calc(100vw - 36px)); }
.toast { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #dbe5df; box-shadow: 0 8px 30px #223c5817; border-radius: 8px; padding: 12px 16px; color: #688477; font-size: 12px; animation: toast-in .18s ease-out; pointer-events: auto; }
.toast.error { color: #be6e72; border-color: #eddadc; }
.toast.success { color: #5a9279; border-color: #dbe9e1; }
.toast .icon { width: 16px; height: 16px; }

.muted { color: #a0a9b7; }
.mono { font-family: Consolas, "SFMono-Regular", monospace; }
.text-orange { color: #c77745; }
.text-green { color: #559a7f; }
.text-right { text-align: right !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drawer-in { from { transform: translateX(25px); opacity: .75; } to { transform: translateX(0); opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1550px) {
  .main-content { padding-left: 44px; padding-right: 44px; }
  .data-table td { padding-top: 20px; padding-bottom: 20px; }
}
@media (max-width: 1250px) {
  .main-content { padding: 26px 25px 35px; }
  .topbar { padding-left: 25px; padding-right: 25px; }
  .toolbar { flex-wrap: wrap; }
  .filter-row { margin-left: auto; }
  .data-table { min-width: 820px; }
  .campaign-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { padding-left: 17px; padding-right: 17px; }
}
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { min-height: 130px; }
  .panel-grid { grid-template-columns: 1fr; }
  .page-actions { gap: 7px; }
  .page-title { font-size: 23px; }
  .page-description { max-width: 400px; }
  .toolbar { gap: 12px; }
  .filter-row { flex-wrap: wrap; }
  .search-field { width: 190px; }
}
@media (max-width: 760px) {
  .sidebar { display: none; width: 220px; box-shadow: 8px 0 40px #23304420; }
  .sidebar.open { display: flex; z-index: 65; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 60; background: #23304438; }
  .workspace { margin-left: 0; }
  .topbar { height: 58px; padding: 0 18px; gap: 12px; }
  .mobile-menu { display: inline-flex; border: 0; background: transparent; color: #8692a4; align-items: center; padding: 5px; }
  .breadcrumb { font-size: 11px; gap: 7px; flex: 1; }
  .topbar-right { gap: 7px; }
  .current-date { display: none; }
  .demo-badge { font-size: 9px; padding: 2px 6px; }
  .main-content { padding: 23px 17px 30px; }
  .page-heading { display: block; margin-bottom: 20px; }
  .page-title { font-size: 24px; }
  .page-description { max-width: none; line-height: 1.7; font-size: 11px; }
  .page-actions { margin-top: 17px; }
  .btn { font-size: 11px; padding: 8px 12px; }
  .stat-grid { gap: 11px; margin-bottom: 19px; }
  .stat-card { padding: 15px 16px 13px; min-height: 126px; border-radius: 10px; }
  .stat-label { font-size: 10px; }
  .stat-value { font-size: 26px; margin-top: 9px; }
  .stat-icon { width: 26px; height: 26px; top: 13px; right: 12px; border-radius: 7px; }
  .stat-icon .icon { width: 13px; height: 13px; }
  .stat-note { font-size: 9px; gap: 4px; flex-wrap: wrap; }
  .section-card { border-radius: 10px; }
  .section-header { padding: 18px 16px; gap: 10px; }
  .section-title { font-size: 13px; }
  .section-actions { gap: 4px; }
  .toolbar { padding: 0 16px 16px; gap: 12px; }
  .segmented { overflow-x: auto; max-width: 100%; }
  .segment { padding: 6px 9px; font-size: 10px; }
  .filter-row { margin-left: 0; width: 100%; justify-content: flex-start; gap: 7px; }
  .search-field { flex: 1; min-width: 150px; max-width: none; }
  .filter-select { max-width: 125px; font-size: 10px; }
  .data-table { min-width: 830px; }
  .data-table th:first-child, .data-table td:first-child { padding-left: 16px; }
  .table-footer { padding: 12px 16px; font-size: 9px; flex-wrap: wrap; gap: 8px; }
  .campaign-grid { grid-template-columns: 1fr; gap: 14px; }
  .campaign-card { padding: 19px; }
  .panel-grid { gap: 16px; margin-top: 18px; }
  .panel-card { padding: 19px 17px; }
  .detail-grid { gap: 17px; }
  .overlay { padding: 14px; }
  .modal { max-height: calc(100dvh - 28px); border-radius: 12px; }
  .modal-header { padding: 18px 19px; }
  .modal-body { padding: 20px 19px; }
  .modal-footer { padding: 15px 19px; }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }
  .field.full { grid-column: auto; }
  .drawer { width: 100%; max-width: 470px; }
  .drawer-header, .drawer-body { padding: 21px; }
  .drawer-footer { padding: 16px 21px; }
  .toast-stack { right: 17px; top: 14px; }
  .view-tabs { gap: 20px; overflow-x: auto; white-space: nowrap; }
  .quick-action { min-width: 135px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Application-specific components and reading comfort. */
.brand-name, .brand-sub { display: block; }
.brand-sub { letter-spacing: .6px; font-size: 9px; }
.sidebar-bottom-note { margin-top: auto; padding: 18px 11px 20px; color: #9ca6b5; font-size: 10px; line-height: 1.9; }
.sidebar-bottom-note > div { margin-top: 3px; padding-left: 13px; color: #b0b8c5; font-size: 9px; letter-spacing: .5px; }
.online-dot, .mini-dot { display: inline-block; width: 5px; height: 5px; margin-right: 6px; vertical-align: 2px; border-radius: 50%; background: #8eb79f; }
.sidebar-footer { margin-top: 0; padding-top: 17px; }
.tiny-tag { margin-left: 4px; color: #b49a80; background: #fbf4eb; padding: 1px 4px; border-radius: 3px; font-size: 8px; font-weight: 500; }
.nav-dot { width: 5px; height: 5px; background: #d6bba0; border-radius: 50%; margin-left: auto; }
.sidebar-backdrop { display: none; }
.breadcrumb-slash { color: #c4cad3; font-size: 11px; }
.demo-badge .online-dot { width: 4px; height: 4px; vertical-align: 1px; }
.app-footer { padding: 0 36px 24px; text-align: center; color: #b9c0cc; font-size: 9px; letter-spacing: .5px; margin-top: 20px; }
.app-footer > span { margin: 0 8px; }
.main-content { padding-bottom: 12px; }
.main-content:focus { outline: 0; }
.section-card > .toolbar:first-child { padding-top: 20px; }
.section-card > .filter-row { justify-content: flex-start; padding: 0 22px 18px; flex-wrap: wrap; }
.filter-label { color: #a2aab7; margin-right: 1px; font-size: 10.5px; }
.filter-count { margin-left: auto; font-size: 10.5px; color: #a4adbb; white-space: nowrap; }
.filter-select { font-size: 11.5px; max-width: 180px; }
.search-input { font-size: 11.5px; }
.data-table th { font-size: 11px; }
.data-table td { font-size: 12px; color: #65728a; }
.data-table td:has(.work-title), .data-table th:first-child:has(+ th:nth-child(6)) { width: 32%; }
.data-table td:has(.work-title) { min-width: 260px; }
.work-title { font-size: 12px; max-width: 330px; text-align: left; color: #485970; }
.work-title.link-button { font-size: 12px; font-weight: 600; }
.cell-primary { font-size: 12px; }
.cell-secondary { display: flex; align-items: center; gap: 7px; font-size: 10.5px; }
.cell-secondary > span:not(.platform-badge) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 230px; }
.cell-person .cell-secondary { display: block; }
.platform-badge { font-size: 9.5px; }
.platform-symbol { display: inline-flex; align-items: center; font-size: 10px; font-weight: 750; margin-right: 1px; }
.metric-value { font-size: 13px; }
.metric-value small { display: inline; color: #a4adbb; font-size: 10px; font-weight: 400; margin-left: 5px; }
.metric-note { font-size: 10.5px; }
.status-badge { font-size: 10.5px; }
.status-badge > span:empty { display: none; }
.row-actions { justify-content: flex-end; gap: 3px; }
.row-actions .btn.icon-only { color: #a5afbe; width: 26px; min-height: 28px; padding: 5px; }
.row-actions .btn.ghost.small:first-child { color: #a97955; }
.row-actions .btn.ghost.small:first-child:hover { background: #fff3e9; }
.row-actions .icon { width: 14px; height: 14px; }
.table-footer { font-size: 10.5px; }
.table-footer strong { color: #8995a8; font-weight: 600; }
.mini-dot { background: #c3cbd6; width: 4px; height: 4px; vertical-align: 2px; }
.bottom-hint { display: flex; justify-content: center; align-items: center; gap: 6px; color: #a9b1bf; font-size: 10px; margin: 23px 0 0; }
.bottom-hint .icon { width: 13px; height: 13px; }
.payment-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.empty-state > strong { display: block; margin-top: 13px; color: #7c899e; font-size: 13px; font-weight: 600; }
.empty-state > p { margin-top: 5px; }

.section-card > .quick-actions { display: flex; flex-direction: column; padding: 0 22px 20px; gap: 0; }
.quick-action { flex: none; width: 100%; min-width: 0; border: 0; border-bottom: 1px solid #f0f2f6; border-radius: 0; padding: 14px 2px; background: #fff; gap: 12px; }
.quick-action:last-child { border-bottom: 0; }
.quick-action:hover { border-color: #f0f2f6; background: #fffaf7; border-radius: 6px; }
.quick-icon { width: 35px; height: 35px; display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 9px; background: #f8f0e8; color: #cc9b70; }
.quick-action:nth-child(2) .quick-icon { background: #eff6f2; color: #83a991; }
.quick-action:nth-child(3) .quick-icon { background: #f0f3f9; color: #8da1c0; }
.quick-action > span > strong { display: block; color: #66778f; font-size: 12px; font-weight: 600; }
.quick-action > span > small { display: block; color: #a5adba; font-size: 10px; margin-top: 3px; }
.quick-action > b { margin-left: auto; margin-right: 4px; color: #7e8da3; font-size: 21px; line-height: 1.3; font-weight: 600; }
.quick-action > .icon:last-child { color: #b9c2ce; width: 14px; height: 14px; }
.platform-summary { display: grid; grid-template-columns: 1fr 1fr; padding: 9px 22px 24px; }
.platform-summary > div { text-align: center; }
.platform-summary > div + div { border-left: 1px solid var(--line); }
.platform-summary strong { display: block; color: #5f6f88; font-size: 26px; line-height: 1.4; font-weight: 650; margin-top: 13px; font-variant-numeric: tabular-nums; }
.platform-summary > div > span:last-child { display: block; color: #a6aebb; font-size: 10px; margin-top: 4px; }
.section-card > .notice { margin: 0 22px 20px; font-size: 10.5px; }
.section-card > .activity-list { padding: 0 22px 22px; gap: 14px; }
.activity-item { gap: 10px; }
.activity-copy { flex: 1; min-width: 0; }
.activity-copy p { margin: 2px 0 0; font-size: 10px; color: #a1aab9; }
.activity-time { margin-left: auto; white-space: nowrap; font-size: 9px; }
.padded { padding: 0 22px 20px; }

.main-content > .notice + .campaign-grid { margin-top: 20px; }
.campaign-card h2 { color: #52637d; margin: 0 0 7px; font-size: 16px; font-weight: 650; }
.campaign-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #c6966f; background: #fbf4ec; border-radius: 8px; }
.campaign-icon .icon { width: 17px; height: 17px; }
.campaign-meta { display: grid; gap: 6px; }
.campaign-meta > span { display: flex; align-items: center; gap: 5px; }
.campaign-rule-summary { display: flex; justify-content: space-between; padding: 13px 14px; background: #f9fafc; border-radius: 7px; margin: 17px 0; }
.campaign-rule-summary > div > span { display: block; font-size: 9px; color: #a6aebc; margin-bottom: 3px; }
.campaign-rule-summary strong { font-size: 10.5px; color: #8795a9; font-weight: 550; }
.campaign-rule-group { margin-top: 14px; }
.campaign-rule-group .rule-chips { margin-top: 8px; gap: 5px; }
.campaign-rule-group .rule-chip { font-size: 9px; }
.campaign-bottom { display: flex; align-items: center; justify-content: space-between; margin: 18px -2px -3px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 9px; }
.campaign-bottom .btn.small { font-size: 10px; }
.settings-list { padding: 0 22px 10px; }
.settings-list .list-row { padding: 17px 0; }
.list-row strong { font-size: 12px; color: #74849b; font-weight: 600; }
.list-row p { font-size: 11px; color: #a1aab9; line-height: 1.8; margin: 5px 0 0; }
.list-row > .btn, .list-row > .tag { flex-shrink: 0; }
.panel-card > h2 { font-size: 17px; color: #617189; margin: 0 0 8px; font-weight: 650; }
.panel-card > p { font-size: 11px; line-height: 1.9; margin: 0 0 21px; }
.integration-foot { display: flex; align-items: center; gap: 6px; color: #a4adbb; border-top: 1px solid var(--line); margin-top: 21px; padding-top: 15px; font-size: 10px; }
.integration-foot .icon { width: 13px; height: 13px; }
.detail-label, .detail-value { display: block; }
.detail-section > .section-actions { justify-content: space-between; flex-wrap: wrap; margin-bottom: 10px; }
.detail-section > .section-actions .detail-section-title { margin: 0; margin-right: auto; }
.detail-section > p.muted { font-size: 11px; line-height: 1.8; margin: 8px 0 0; }
.drawer-work-title { margin-bottom: 21px; }
.drawer-work-title > .status-badge { margin-left: 8px; }
.drawer-work-title h3 { color: #52637b; font-size: 17px; line-height: 1.6; margin: 14px 0 5px; font-weight: 650; }
.drawer-work-title p { color: #a2acbc; font-size: 11px; margin: 0; }
.drawer-metrics { display: grid; grid-template-columns: 1fr 1fr; padding: 17px 18px; background: #fafbfc; border: 1px solid #edf0f4; border-radius: 9px; margin-bottom: 25px; gap: 18px; }
.drawer-metrics > div > span { display: block; color: #a1abbb; font-size: 10px; }
.drawer-metrics > div > strong { display: block; color: #65758e; font-size: 23px; font-weight: 650; margin: 5px 0; font-variant-numeric: tabular-nums; }
.drawer-metrics > div > strong.text-orange { color: #c28355; }
.drawer-metrics > div > small { display: block; font-size: 9px; color: #a7b0be; }
.drawer-body > .notice { margin-bottom: 22px; }
.detail-link { display: flex; align-items: flex-start; gap: 7px; padding: 10px 12px; background: #f8fafc; border: 1px solid #edf0f5; border-radius: 6px; margin-top: 18px; color: #a2adbd; font-size: 10px; }
.detail-link > span:first-of-type { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.detail-link .icon { width: 12px; height: 12px; margin-top: 2px; }
.detail-link .link-button { white-space: nowrap; }
.history-item { display: block; padding: 14px 0; }
.history-item > div { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.history-count { font-size: 15px; }
.history-count small { font-size: 9px; font-weight: 400; color: #a6b0c0; }
.history-item > p { color: #a5afbd; font-size: 10px; margin: 5px 0 0; }
.history-item > .btn { margin-top: 7px; padding-left: 0; font-size: 10px; }
.history-item > .btn .icon { width: 12px; height: 12px; }

body.dialog-open { overflow: hidden; }
.modal > form { display: flex; flex-direction: column; max-height: inherit; min-height: 0; overflow: hidden; width: 100%; }
.modal-header, .modal-footer { flex-shrink: 0; }
.modal-body { flex: 1; min-height: 0; }
.modal-body > .notice { margin-bottom: 20px; }
.modal-body > .form-grid + .btn { margin-top: 13px; }
.field-label em { font-size: 11px; color: #ce9472; font-style: normal; }
.field-hint { display: block; }
.upload-area { position: relative; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; padding: 18px 15px; gap: 12px; }
.upload-copy { color: #9b8e83; display: block; font-size: 11px; }
.upload-copy small { display: block; font-size: 9px; color: #aeb5c1; margin-top: 4px; }
.upload-area input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-area:focus-within { border-color: #dfa47f; box-shadow: 0 0 0 3px #e8783620; }
.modal-work-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding-bottom: 18px; margin-bottom: 19px; border-bottom: 1px solid var(--line); color: #8593a8; font-size: 12px; }
.modal-work-summary strong { color: #697b93; font-weight: 600; }
.modal-work-summary > span:not(.platform-badge) { font-size: 11px; }
.modal-body > .detail-grid + .notice { margin-top: 22px; margin-bottom: 0; }
.rule-editor-intro { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 25px; padding-top: 22px; color: #8d9aab; font-size: 10px; }
.rule-editor-intro strong { color: #75869e; font-size: 12px; font-weight: 600; }
.rule-editor { padding: 15px 16px 16px; border: 1px solid var(--line); border-radius: 8px; margin-top: 14px; background: #fcfdfe; }
.rule-editor > .section-actions { justify-content: space-between; margin-bottom: 9px; }
.tier-labels, .tier-row { display: grid; grid-template-columns: 1fr 1fr 28px; gap: 10px; }
.tier-labels { font-size: 9px; color: #a7b0be; padding: 3px 0 7px; }
.tier-rows { display: flex; flex-direction: column; gap: 8px; }
.tier-row .input { padding: 7px 9px; background: #fff; }
.tier-row .btn.icon-only { min-height: 34px; width: 28px; color: #bdc5d0; padding: 4px; }
.tier-row .btn.icon-only:hover { color: #c38b81; background: #fff2ef; }
.tier-row .btn .icon { width: 13px; height: 13px; }

@media (min-width: 1550px) {
  .data-table td:has(.work-title) { width: 35%; }
  .work-title { max-width: 410px; }
}
@media (max-width: 1100px) {
  .payment-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-count { margin-left: auto; }
}
@media (max-width: 760px) {
  .sidebar-backdrop.visible { display: block; }
  .app-footer { padding: 0 17px 19px; font-size: 8px; margin-top: 17px; }
  .section-card > .toolbar:first-child { padding-top: 17px; }
  .section-card > .filter-row { padding: 0 16px 16px; }
  .filter-select { max-width: 145px; font-size: 11px; }
  .filter-label { font-size: 10px; }
  .filter-count { font-size: 10px; margin-left: 0; }
  .data-table td { font-size: 12px; }
  .cell-secondary { font-size: 10.5px; }
  .payment-stats { grid-template-columns: 1fr; }
  .payment-stats .stat-card { min-height: 112px; }
  .section-card > .quick-actions, .section-card > .activity-list { padding-left: 16px; padding-right: 16px; }
  .section-card > .notice { margin-left: 16px; margin-right: 16px; }
  .platform-summary { padding-left: 16px; padding-right: 16px; }
  .platform-summary strong { font-size: 24px; }
  .quick-action > span > small { font-size: 9px; }
  .bottom-hint { font-size: 9px; gap: 4px; text-align: center; line-height: 1.8; }
  .bottom-hint .icon { flex-shrink: 0; }
  .settings-list { padding-left: 16px; padding-right: 16px; }
  .list-row { align-items: flex-start; flex-wrap: wrap; gap: 9px; }
  .list-row > div { width: 100%; }
  .drawer-metrics { padding: 15px; gap: 10px; }
  .drawer-metrics > div > strong { font-size: 22px; }
  .drawer-body > .notice { margin-bottom: 20px; }
  .rule-editor { padding-left: 12px; padding-right: 12px; }
  .rule-editor-intro { flex-wrap: wrap; }
  .tier-labels, .tier-row { gap: 7px; }
}

.btn.mobile-menu { display: none; }
.demo-badge { color: #6e7b90; }
.page-description { color: #7b879a; }
.breadcrumb { color: #8a95a7; }
@media (max-width: 760px) {
  .btn.mobile-menu { display: inline-flex; }
}

/* Account access and team administration. */
.auth-page { background: #fff; }
.auth-layout { display: grid; grid-template-columns: minmax(370px, .95fr) minmax(430px, 1.05fr); min-height: 100dvh; }
.auth-story { display: flex; flex-direction: column; padding: 51px 54px 36px; background: #f5f1eb; border-right: 1px solid #eee7df; position: relative; }
.auth-story .brand { padding: 0; }
.auth-story .brand-sub { color: #9d948b; }
.auth-story-copy { margin: auto 0; padding: 68px 0 78px; }
.auth-story-copy .eyebrow { color: #b6a18c; font-size: 10px; }
.auth-story-copy h1 { font-size: clamp(29px, 3vw, 43px); line-height: 1.55; font-weight: 650; letter-spacing: -1px; color: #5d534b; margin: 23px 0 20px; }
.auth-story-copy > p { color: #a3978c; font-size: 13px; line-height: 2; }
.auth-steps { display: flex; flex-wrap: wrap; gap: 20px; border-top: 1px solid #e6ddd3; margin-top: 47px; padding-top: 19px; color: #b4a393; font-size: 10px; }
.auth-copyright { color: #b9ad9f; font-size: 10px; letter-spacing: 1px; }
.auth-form-side { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 50px 55px; background: #fff; }
.auth-card { width: 100%; max-width: 375px; }
.auth-card .eyebrow { color: #bf9d81; margin-bottom: 10px; }
.auth-card h2 { color: #4a5b73; font-size: 26px; margin: 0 0 9px; font-weight: 650; letter-spacing: -.5px; }
.auth-description { color: #8f9bad; font-size: 12px; line-height: 1.9; margin: 0 0 32px; }
.auth-fields { display: flex; flex-direction: column; gap: 20px; }
.auth-fields .field-label { color: #738199; font-size: 12px; margin-bottom: 9px; }
.auth-fields .input { min-height: 44px; border-color: #dce2e9; font-size: 13px; padding: 11px 13px; }
.password-field { position: relative; }
.password-field .input { padding-right: 55px; }
.password-toggle { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: #a2978c; padding: 4px 3px; background: none; border: 0; border-radius: 3px; font-size: 10px; }
.password-toggle:hover { color: var(--orange-dark); }
.auth-submit { width: 100%; min-height: 44px; margin-top: 28px; font-size: 13px; border-radius: 7px; }
.auth-security { color: #aab3bf; text-align: center; font-size: 10px; margin: 20px 0 0; }
.auth-help { text-align: center; color: #a8b0bd; font-size: 10px; line-height: 1.9; margin: 32px 0 0; max-width: 375px; }
.auth-error { padding: 10px 12px; background: #fff4f1; border: 1px solid #f1d9d0; border-radius: 6px; color: #b96f58; line-height: 1.8; margin-top: 20px; }
.auth-back { display: block; margin: 18px auto 0; color: #9b897b; font-size: 11px; }
.read-only-field { color: #8793a6; padding: 9px 11px; background: #f6f8fa; border: 1px solid #e8ecf2; border-radius: 6px; font-size: 12px; min-height: 38px; }
.read-only-field .tag { margin-left: 6px; }
.role-badge { display: inline-flex; padding: 3px 8px; background: #f3f5f8; border-radius: 4px; color: #8a98ac; font-size: 10px; }
.role-badge.admin { background: #fbf0e7; color: #bd8d66; }
.role-badge.finance { background: #edf6f1; color: #7ca38d; }
.role-badge.cs { background: #eff3fa; color: #869ec0; }
.account-section { margin-top: 22px; }
#connection-status { white-space: nowrap; }
@media (max-width: 1000px) {
  .auth-story { padding: 43px 33px 30px; }
  .auth-form-side { padding: 45px 35px; }
  .auth-steps { gap: 12px; }
  .topbar-right { gap: 10px; }
  .topbar-right .current-date { display: none; }
}
@media (max-width: 760px) {
  .auth-layout { display: flex; flex-direction: column; min-height: 100dvh; }
  .auth-story { padding: 25px 25px 23px; border-right: 0; border-bottom: 1px solid #eee7df; }
  .auth-story .brand-name { font-size: 21px; }
  .auth-story-copy, .auth-copyright { display: none; }
  .auth-form-side { flex: 1; padding: 34px 26px 32px; }
  .auth-card h2 { font-size: 25px; }
  .auth-description { margin-bottom: 26px; }
  .auth-help { margin-top: 29px; }
  .topbar { gap: 5px; }
  .topbar-right { gap: 3px; }
  .topbar-right .btn.small { font-size: 10px; padding: 6px 7px; }
  .topbar-right .demo-badge { display: none; }
  .breadcrumb { gap: 5px; }
  .breadcrumb > span:first-of-type, .breadcrumb-slash { display: none; }
}

/* Experience traffic packages and searchable participant records. */
.traffic-package { color: #a57957; }
.traffic-value { font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.traffic-value > small { font-size: 10px; font-weight: 500; color: #b89b83; margin-left: 2px; }
.traffic-package .metric-note { font-size: 10px; font-weight: 400; color: #a69a8d; }
.stat-value.traffic-stat { font-size: 27px; }
.stat-value.traffic-stat > small { font-size: 12px; color: #99a4b3; margin-left: 3px; letter-spacing: 0; }
.package-preview { display: flex; flex-direction: column; gap: 10px; padding: 17px 18px; border: 1px solid #f0dfce; background: #fff7ef; border-radius: 8px; color: #ad927a; font-size: 11px; }
.package-preview > strong { font-size: 18px; line-height: 1.6; color: #b47a4d; font-weight: 650; font-variant-numeric: tabular-nums; }
.modal-body > .package-preview { margin-bottom: 22px; }
.drawer-metrics > div > strong > small { display: inline; font-size: 12px; font-weight: 500; color: #b69c86; }
.drawer-metrics > div > small + small { margin-top: 4px; line-height: 1.7; }
.drawer-footer-note { font-size: 10px; align-self: center; }
.tier-labels, .tier-row { grid-template-columns: 1.1fr .85fr 1fr 28px; }
.tier-labels { font-size: 9.5px; }
.rule-editor-help { color: #a5afbd; font-size: 10px; margin: 8px 0 0; line-height: 1.8; }
.campaign-rule-group .rule-chips { display: grid; grid-template-columns: 1fr; gap: 6px; }
.campaign-rule-group .rule-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 9px 10px; background: #fcf8f4; }
.rule-chip > span { font-size: 9px; color: #b4a08d; }
.rule-chip > strong { font-size: 10.5px; font-weight: 500; color: #a0846b; line-height: 1.7; }
.campaign-progress-list { padding: 0 22px 18px; }
.campaign-progress-list > p { font-size: 11px; }
.campaign-progress-row { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid #f0f2f5; }
.campaign-progress-row:last-child { border-bottom: 0; }
.campaign-progress-row > div { flex: 1; min-width: 0; }
.campaign-progress-row strong { display: block; color: #77879e; font-size: 11px; font-weight: 550; }
.campaign-progress-row small { display: block; margin-top: 4px; color: #a8b1bf; font-size: 9px; }
.campaign-progress-row .tag { flex-shrink: 0; font-size: 8px; }
.campaign-progress-row .quick-icon { width: 31px; height: 31px; }
.participant-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 0 22px 20px; }
.participant-search { flex: 1; max-width: 450px; min-width: 240px; height: 36px; }
.participant-owner-label { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.participant-owner-label .filter-select { height: 36px; max-width: 180px; }
.participant-table th:first-child { min-width: 190px; }
.participant-id { font-size: 9px; max-width: 145px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.2px; }
.participant-footer { min-height: 60px; }
.participant-page-controls { display: flex; align-items: center; gap: 20px; }
.participant-page-controls > label { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.page-size-select { color: #8795a9; background: #fff; border: 1px solid #dfe5ec; border-radius: 5px; height: 29px; padding: 3px 6px; font-size: 10px; cursor: pointer; }
.participant-footer .pagination { gap: 10px; }
.participant-footer .pagination > span { color: #98a4b5; white-space: nowrap; font-variant-numeric: tabular-nums; }
.participant-footer .pagination > button { padding: 3px 9px; min-width: 50px; height: 29px; }
.participant-footer .pagination > button:hover:not(:disabled) { background: #fff6ee; border-color: #edccb2; color: #b98259; }
.participant-footer .pagination > button:disabled { background: #fafbfd; color: #b9c1ce; opacity: .65; }
.search-select-native { display: none !important; }
.search-select { position: relative; display: inline-flex; align-items: center; min-width: 0; vertical-align: middle; color: #718097; }
.search-select--form { display: flex; width: 100%; }
.search-select-input { display: block; width: 100%; min-width: 0; min-height: 38px; padding: 9px 31px 9px 11px; font: inherit; font-size: 12px; line-height: 1.5; color: #65748b; border: 1px solid #dce2e9; border-radius: 6px; background: #fff; box-shadow: none; cursor: text; text-overflow: ellipsis; transition: border-color .15s, box-shadow .15s; }
.search-select-input::placeholder { color: #a1aaba; opacity: 1; }
.search-select-input:hover:not(:disabled) { border-color: #c7d0dd; }
.search-select-input:focus { outline: 0; border-color: #dfa47f; box-shadow: 0 0 0 3px #e8783610; }
.search-select-input:focus-visible { outline: 0; }
.search-select-chevron { position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid #a9b3c1; border-bottom: 1.5px solid #a9b3c1; transform: translateY(-70%) rotate(45deg); pointer-events: none; font-size: 0; transition: transform .15s; }
.search-select.is-open .search-select-chevron { border-color: #c68e65; transform: translateY(-25%) rotate(225deg); }
.search-select--compact { min-width: 110px; width: 155px; max-width: 180px; flex: 0 1 auto; }
.search-select--compact .search-select-input { min-height: 33px; height: 33px; padding: 6px 27px 6px 10px; font-size: 11.5px; }
.search-select--micro { width: 74px; min-width: 74px; }
.search-select--micro .search-select-input { min-height: 29px; height: 29px; padding: 4px 23px 4px 7px; border-radius: 5px; font-size: 10px; color: #8795a9; }
.search-select--micro .search-select-chevron { right: 9px; width: 5px; height: 5px; }
.search-select--disabled { opacity: .65; }
.search-select-input:disabled { cursor: not-allowed; color: #a5afbd; background: #f6f8fa; }
.search-select--invalid .search-select-input { border-color: #d99b8a; }
.search-select--invalid .search-select-input:focus { box-shadow: 0 0 0 3px #c9745312; }
.search-select-menu { position: fixed; z-index: 300; display: block; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 5px; margin: 0; border: 1px solid #e3e7ed; background: #fff; border-radius: 8px; box-shadow: 0 9px 32px #263d5b1c, 0 2px 6px #263d5b08; scrollbar-width: thin; scrollbar-color: #dce2e9 transparent; }
.search-select-option { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 8px 10px; border-radius: 5px; color: #728198; font-size: 11.5px; line-height: 1.6; cursor: pointer; user-select: none; }
.search-select-option-label { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.search-select-option.is-selected { color: #b37c55; }
.search-select-option.is-highlighted { background: #fff3e9; color: #b17143; }
.search-select-option.is-disabled { color: #b9c1cc; background: #fff; cursor: not-allowed; }
.search-select-check { margin-left: auto; color: #c78c61; font-size: 12px; flex-shrink: 0; }
.search-select-empty { padding: 22px 10px; color: #a5afbd; text-align: center; font-size: 11px; line-height: 1.8; }
.search-select-group { padding: 8px 10px 5px; color: #a8b2c0; font-size: 9px; letter-spacing: .5px; }
.participant-owner-label .search-select--compact { min-width: 130px; }
.participant-page-controls .search-select--micro { vertical-align: middle; }
@media (max-width: 760px) {
  .stat-value.traffic-stat { font-size: 25px; }
  .payment-stats .stat-value.traffic-stat { font-size: 27px; }
  .package-preview { padding: 15px; }
  .package-preview > strong { font-size: 16px; }
  .tier-labels, .tier-row { grid-template-columns: 1fr .8fr 1fr 24px; gap: 6px; }
  .tier-labels { font-size: 8px; }
  .tier-row .input { padding: 7px 6px; font-size: 11px; }
  .tier-row .btn.icon-only { width: 24px; }
  .campaign-progress-list { padding-left: 16px; padding-right: 16px; }
  .campaign-progress-row .tag { display: none; }
  .participant-toolbar { padding-left: 16px; padding-right: 16px; gap: 10px; }
  .participant-search { flex-basis: 100%; max-width: none; min-width: 0; }
  .participant-owner-label { margin-left: 0; }
  .participant-page-controls { flex-wrap: wrap; width: 100%; justify-content: space-between; gap: 10px; }
  .participant-footer .pagination { gap: 7px; }
  .participant-footer .pagination > button { min-width: 46px; padding-left: 6px; padding-right: 6px; }
  .search-select--compact { width: 130px; min-width: 100px; max-width: 160px; }
  .search-select--compact .search-select-input { font-size: 11px; }
  .search-select-menu { max-width: calc(100vw - 20px); }
  .search-select-option { font-size: 12px; min-height: 38px; padding-top: 9px; padding-bottom: 9px; }
}
