:root {
  --bg: #080808;
  --sidebar: #0d0d0d;
  --panel: #121212;
  --panel-2: #191919;
  --line: #2b2b2b;
  --text: #f4f5f8;
  --muted: #8991a4;
  --gold: #f4c85a;
  --gold-2: #ffde83;
  --danger: #ff6477;
  --green: #64d8a1;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex="-1"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.app { height: 100vh; display: grid; grid-template-columns: 350px 1fr; }
aside { background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 24px 18px 18px; min-width: 0; min-height: 0; }
.brand { display: flex; gap: 12px; align-items: center; margin: 0 8px 26px; }
.brand > span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #584b2d; background: #211d14; color: var(--gold); border-radius: 12px; font-size: 24px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 19px; letter-spacing: .2px; }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: 1.8px; margin-top: 2px; }
.primary { border: 0; color: #17130a; background: linear-gradient(135deg, var(--gold-2), var(--gold)); font-weight: 750; border-radius: 9px; padding: 11px 17px; box-shadow: 0 7px 26px #f4c85a16; }
.import-button { border: 1px solid #3c4250; color: #c7cedd; background: #151a24; font-weight: 700; border-radius: 9px; padding: 10px 14px; margin-top: 8px; }
.import-button:hover { border-color: #88713a; color: var(--gold-2); }
.full { width: 100%; }
.search { height: 42px; margin: 14px 0 20px; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #090c12; color: var(--muted); }
.search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent; }
.filter-toggle { width: 100%; height: 39px; margin: -7px 0 13px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; color: #c4cad8; border: 1px solid var(--line); background: #121620; border-radius: 8px; font-size: 12px; font-weight: 700; }
.filter-toggle:hover { border-color: #4b422e; color: var(--text); }
.filter-toggle b { min-width: 21px; height: 21px; display: grid; place-items: center; border-radius: 7px; background: #242a36; color: var(--muted); font-size: 10px; }
.filter-toggle b.active { background: var(--gold); color: #17130a; }
.filter-panel { position: absolute; z-index: 8; left: 18px; top: 174px; width: 430px; max-height: calc(100vh - 210px); display: flex; flex-direction: column; background: #11151e; border: 1px solid #3a3f4c; border-radius: 12px; padding: 15px; box-shadow: 0 24px 80px #000c; }
.filter-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }
.filter-panel-head strong, .filter-panel-head small { display: block; }
.filter-panel-head strong { font-size: 13px; }
.filter-panel-head small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.filter-panel-head button { border: 0; background: transparent; color: var(--gold); font-size: 10px; }
.filter-search { height: 36px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; gap: 7px; padding: 0 10px; background: #090c12; color: var(--muted); margin-bottom: 10px; }
.filter-search input { margin: 0; padding: 0; border: 0; background: transparent; min-width: 0; }
.answer-filters { overflow-y: auto; padding-right: 4px; }
.answer-filter { border-bottom: 1px solid #222734; padding: 9px 5px; }
.answer-filter.enabled { background: #181711; border-radius: 7px; border-bottom-color: #463c24; margin-bottom: 3px; padding: 9px; }
.filter-check { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; }
.filter-check input { appearance: none; flex: 0 0 auto; width: 16px; height: 16px; margin: 1px 0 0; padding: 0; border-radius: 4px; }
.filter-check input:checked { background: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 3px #17130a; }
.filter-check span { color: #c5cad6; font-size: 11px; line-height: 1.35; font-weight: 650; }
.filter-check b { color: var(--gold); margin-right: 7px; font-size: 9px; }
.filter-value { margin: 8px 0 0 25px; height: 32px; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.filter-value input { margin: 0; height: 32px; padding: 6px 9px; font-size: 11px; }
.list-heading { padding: 0 7px 9px; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: 1.4px; }
.creator-list { overflow-y: scroll; flex: 1; min-height: 0; scrollbar-gutter: stable; }
.creator-card { width: 100%; position: relative; border: 1px solid transparent; background: transparent; color: var(--text); border-radius: 10px; padding: 11px 9px; display: grid; grid-template-columns: 38px 1fr; gap: 10px; text-align: left; margin-bottom: 4px; }
.creator-card:hover { background: #131722; }
.creator-card.active { background: #1b1a18; border-color: #493e25; }
.creator-card .avatar { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #252b38; color: var(--gold-2); font-weight: 800; font-size: 12px; }
.creator-card strong, .creator-card small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 64px; }
.creator-card strong { font-size: 13px; margin: 2px 0 5px; }
.creator-card.creator-quit strong,
#creator-grid tr.creator-quit .creator-cell,
.pipeline-card.creator-quit .pipeline-creator-open,
.creator-quit-name { color: var(--danger) !important; }
.creator-card small { color: var(--muted); font-size: 11px; }
.status { position: absolute; right: 8px; top: 11px; font-size: 9px; font-style: normal; text-transform: uppercase; letter-spacing: .7px; border: 1px solid #394052; color: #aab2c5; border-radius: 9px; padding: 3px 6px; }
.status-accepted { color: var(--green); border-color: #27583f; }
.status-active { color: var(--green); border-color: #27583f; }
.status-needs-review, .status-onboarding { color: var(--gold-2); border-color: #786332; }
.status-paused { color: #d0a7ff; border-color: #674a82; }
.status-quit { color: var(--danger); border-color: #62313b; }
.sidebar-footer { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 5px; }
.ghost { color: var(--muted); background: transparent; border: 0; font-size: 12px; padding: 8px; }
.ghost:hover { color: var(--text); }
main { overflow: hidden; min-width: 0; min-height: 0; background: radial-gradient(circle at 75% -10%, #242016 0, transparent 33%), var(--bg); }
#dossier-form { height: 100%; overflow-y: scroll; scrollbar-gutter: stable; }
header { position: sticky; top: 0; z-index: 3; background: #090b10e8; backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); padding: 27px 40px 23px; display: flex; justify-content: space-between; align-items: end; }
.eyebrow { color: var(--gold); font-weight: 800; letter-spacing: 1.6px; font-size: 10px; margin: 0 0 9px; }
header h1 { font-size: 29px; margin: 0 0 5px; letter-spacing: -.5px; }
header p:last-child { color: var(--muted); margin: 0; font-size: 12px; }
#save-state.dirty { color: var(--gold-2); font-weight: 750; }
.header-actions { display: flex; gap: 10px; }
.danger { background: transparent; color: var(--danger); border: 1px solid #512b34; padding: 10px 15px; border-radius: 9px; }
.content { padding: 28px 40px 70px; max-width: 1250px; margin: auto; }
.panel { border: 1px solid var(--line); background: linear-gradient(145deg, #121620, #0e121a); border-radius: 14px; margin-bottom: 18px; padding: 26px; box-shadow: 0 18px 60px #0003; }
.section-title { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 19px; margin-bottom: 23px; }
.section-title > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #4b4028; color: var(--gold); background: #1f1b12; border-radius: 9px; font-weight: 800; font-size: 11px; }
.section-title h2 { margin: 0 0 3px; font-size: 17px; }
.section-title p { margin: 0; color: var(--muted); font-size: 11px; }
.grid { display: grid; gap: 17px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.span-two { grid-column: span 2; }
label { display: block; color: #b5bbca; font-size: 11px; font-weight: 700; letter-spacing: .2px; }
input, select, textarea { width: 100%; color: var(--text); background: #0a0d14; border: 1px solid #2b3140; outline: 0; border-radius: 8px; padding: 10px 11px; margin-top: 7px; transition: border .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: #a9893f; box-shadow: 0 0 0 3px #f4c85a12; }
textarea { resize: vertical; line-height: 1.5; }
.questions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
.question > span { display: flex; line-height: 1.4; min-height: 31px; }
.question b { color: var(--gold); min-width: 27px; font-size: 10px; padding-top: 2px; }
.database-view { height: 100%; display: flex; flex-direction: column; min-width: 0; }
.database-heading { flex: 0 0 auto; padding: 27px 35px 21px; border-bottom: 1px solid var(--line); display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.database-heading h1 { margin: 0 0 5px; font-size: 27px; }
.database-heading span { color: var(--muted); font-size: 12px; }
.crm-stats { display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)); gap: 10px; padding: 14px 35px 10px; }
.stat-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #11151e; }
.stat-card b, .stat-card span { display: block; }
.stat-card b { color: var(--gold-2); font-size: 21px; }
.stat-card span { color: var(--muted); font-size: 10px; margin-top: 3px; text-transform: uppercase; letter-spacing: .6px; }
.quick-views { display: flex; align-items: center; gap: 7px; padding: 3px 35px 14px; border-bottom: 1px solid var(--line); }
.quick-views > span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 1px; margin-right: 3px; }
.view-chip { border: 1px solid var(--line); border-radius: 15px; background: #11151d; color: #aab1c0; padding: 6px 10px; font-size: 10px; }
.view-chip:hover, .view-chip.active { border-color: #786332; background: #211c11; color: var(--gold-2); }
.view-actions { display: flex; align-items: center; gap: 7px; }
.text-size-control { height: 39px; display: flex; align-items: center; gap: 7px; padding: 0 8px 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #0b0e14; white-space: nowrap; }
.text-size-control span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.text-size-control select { width: auto; min-width: 72px; height: 29px; margin: 0; padding: 5px 26px 5px 8px; border-radius: 6px; color: #d5d9e3; font-size: 10px; }
.sync-center-button { height: 39px; display: flex; align-items: center; gap: 8px; border: 1px solid #345d5b; border-radius: 9px; padding: 0 12px; background: #101f20; color: #8be0d7; font-size: 11px; font-weight: 800; }
.sync-center-button:hover { border-color: #65c8be; background: #142829; }
.sync-center-button b { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 10px; background: #31504f; color: #c8fffa; font-size: 9px; }
.sync-center-button.has-review { border-color: #786332; color: var(--gold-2); }
.sync-center-button.has-review b { background: var(--gold); color: #17130a; }
.reminder-button { height: 39px; display: flex; align-items: center; gap: 8px; border: 1px solid #705b2e; border-radius: 9px; padding: 0 12px; background: #201b11; color: var(--gold-2); font-size: 11px; font-weight: 800; }
.reminder-button:hover { border-color: var(--gold); background: #292214; }
.reminder-button b { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 10px; background: var(--gold); color: #17130a; font-size: 9px; }
.mode-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #0b0e14; }
.mode-button { border: 0; border-radius: 6px; padding: 7px 10px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 750; }
.mode-button.active { background: #292315; color: var(--gold-2); }
.workspace-mode { flex: 1 1 0; min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.column-visibility-bar { position: relative; z-index: 12; flex: 0 0 43px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 35px; background: #0b0e14; border-bottom: 1px solid var(--line); }
.column-visibility-bar > span { margin-right: auto; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.column-visibility-control { position: relative; }
#column-visibility-toggle { height: 31px; display: flex; align-items: center; gap: 7px; padding: 0 10px; color: var(--gold-2); border-color: #574a2d; }
#column-visibility-toggle b { color: var(--muted); font-size: 9px; }
.column-visibility-menu { position: absolute; z-index: 30; right: 0; top: 37px; width: 360px; max-height: min(520px, calc(100vh - 260px)); display: flex; flex-direction: column; padding: 13px; background: #11151e; border: 1px solid #4b422e; border-radius: 11px; box-shadow: 0 24px 80px #000d; }
.column-visibility-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 2px 2px 11px; border-bottom: 1px solid var(--line); }
.column-visibility-head strong, .column-visibility-head small { display: block; }
.column-visibility-head strong { color: var(--text); font-size: 12px; }
.column-visibility-head small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.column-visibility-head button { border: 0; background: transparent; color: var(--gold); font-size: 10px; font-weight: 800; }
.column-visibility-options { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; overflow-y: auto; padding: 9px 2px 2px; }
.column-visibility-option { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 6px; cursor: pointer; }
.column-visibility-option:hover { background: #1b202b; }
.column-visibility-option input { appearance: none; flex: 0 0 auto; width: 15px; height: 15px; margin: 0; padding: 0; border-radius: 4px; }
.column-visibility-option input:checked { background: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 3px #17130a; }
.column-visibility-option span { overflow: hidden; color: #c5cad6; font-size: 10px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.top-grid-scroll { flex: 0 0 17px; height: 17px; overflow-x: scroll; overflow-y: hidden; background: #0b0e14; border-bottom: 1px solid var(--line); scrollbar-gutter: stable; }
.top-grid-scroll > div { height: 1px; }
.sheet-wrap { flex: 1 1 0; min-height: 0; min-width: 0; overflow: scroll; padding: 0 0 30px; scrollbar-gutter: stable both-edges; overscroll-behavior: contain; }
#creator-grid { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: max-content; min-width: 100%; font-size: 11px; }
#creator-grid th, #creator-grid td { min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
#creator-grid th { position: sticky; z-index: 4; background: #151a24; }
#creator-grid .column-labels th { top: 0; height: 47px; padding: 10px 11px; color: #e0e3eb; font-size: 10px; line-height: 1.25; text-transform: uppercase; letter-spacing: .55px; white-space: normal; }
#creator-grid .column-labels th { cursor: default; }
#creator-grid .column-labels th { position: sticky; }
.grid-sort-button { width: 100%; min-height: 27px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; letter-spacing: inherit; text-align: left; text-transform: inherit; }
.grid-sort-button:hover { color: var(--gold-2); }
.grid-sort-button:focus-visible { border-radius: 4px; }
.column-resizer { position: absolute; z-index: 12; right: -4px; top: 0; width: 9px; height: 100%; cursor: col-resize; }
.column-resizer:hover { background: #f4c85a55; }
#creator-grid .column-labels th:hover { background: #1c2230; color: var(--gold-2); }
.sort-mark { float: right; color: var(--gold); font-style: normal; }
.sort-asc .sort-mark::after { content: "↑"; }
.sort-desc .sort-mark::after { content: "↓"; }
#creator-grid .column-searches th { top: 47px; padding: 6px; background: #10141d; }
#creator-grid .column-searches input { height: 29px; margin: 0; padding: 5px 8px; font-size: 10px; border-radius: 6px; }
#creator-grid td { height: 48px; padding: 9px 11px; color: #b9bfcc; background: #0d1118; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inline-grid-select { height: 30px; margin: 0; padding: 4px 24px 4px 8px; border-radius: 6px; color: #d9dde7; font-size: 10px; font-weight: 750; cursor: pointer; }
.inline-grid-select.trained-yes { border-color: #4f795b; background: #122219; color: var(--green); }
.inline-grid-select.milestone-yes { border-color: #90712f; background: #251f11; color: var(--gold-2); }
.rating-select { color: var(--gold-2); }
#creator-grid td[data-col-key="internal_rating"] { padding: 6px 4px; }
#creator-grid select.rating-select { appearance: none; padding: 4px 16px 4px 6px; color: #ffe19a; font-size: 12px; font-weight: 700; text-align: left; background-image: linear-gradient(45deg,transparent 50%,#e9c568 50%),linear-gradient(135deg,#e9c568 50%,transparent 50%); background-position: calc(100% - 9px) 12px,calc(100% - 5px) 12px; background-size: 4px 4px; background-repeat: no-repeat; }
#creator-grid select.rating-select option { color: #ffe19a; background: #171717; }
#creator-grid tbody tr { cursor: pointer; }
#creator-grid tbody tr:hover td { background: #171b24; color: var(--text); }
#creator-grid .sticky-col { position: sticky; left: 0; z-index: 5; width: 170px; min-width: 170px; max-width: 170px; box-shadow: 3px 0 8px #0005; }
#creator-grid thead .sticky-col { z-index: 7; }
#creator-grid .creator-cell { color: var(--gold-2); font-weight: 800; background: #11151c; }
.grid-creator-open, .pipeline-creator-open { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font-weight: inherit; text-align: left; }
#creator-grid .favorite-cell { width: 46px; min-width: 46px; max-width: 46px; text-align: center; color: var(--gold); font-size: 16px; }
#creator-grid tr.filtered-out { display: none; }
#creator-grid .no-results { width: auto; max-width: none; padding: 35px; color: var(--muted); text-align: center; }
.ghost-button { color: #c2c8d5; background: #171b25; border: 1px solid var(--line); padding: 10px 15px; border-radius: 9px; }
*::-webkit-scrollbar { width: 14px; height: 14px; }
*::-webkit-scrollbar-track { background: #090c12; border: 1px solid #1f2430; }
*::-webkit-scrollbar-thumb { background: #555e70; border: 3px solid #090c12; border-radius: 10px; }
*::-webkit-scrollbar-thumb:hover { background: var(--gold); }
*::-webkit-scrollbar-corner { background: #090c12; }
.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 25px; background: #030509cc; backdrop-filter: blur(8px); }
.import-modal { width: min(940px, calc(100vw - 50px)); max-height: calc(100vh - 60px); display: flex; flex-direction: column; background: #11151e; border: 1px solid #3b4250; border-radius: 15px; padding: 25px; box-shadow: 0 30px 100px #000d; }
.import-modal h2 { margin: 0 0 4px; }
.modal-copy { color: var(--muted); font-size: 11px; }
.import-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 8px; margin: 10px 0 14px; }
.import-summary div { padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #0b0e15; }
.import-summary div.conflicts { border-color: #62313b; background: #1b1015; }
.import-summary div.preserved { border-color: #395a4a; background: #0f1915; }
.import-summary b, .import-summary span { display: block; }
.import-summary b { color: var(--gold); font-size: 18px; }
.import-summary span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.import-records { overflow-y: auto; border: 1px solid var(--line); border-radius: 9px; }
.import-record { border-bottom: 1px solid var(--line); background: #0c1017; }
.import-record:last-child { border-bottom: 0; }
.import-record.import-record-skipped { background: #111218; }
.import-record.import-record-skipped .import-change-list { opacity: .48; }
.import-record > summary { min-height: 52px; display: grid; grid-template-columns: minmax(160px, 1fr) auto auto; align-items: center; gap: 14px; padding: 9px 12px; cursor: pointer; list-style: none; }
.import-record > summary::-webkit-details-marker { display: none; }
.import-record > summary:hover, .import-record[open] > summary { background: #151a24; }
.import-record strong, .import-record small { display: block; }
.import-record small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.import-record-action { font-style: normal; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.import-record-action.new, .import-record-action.insert { color: var(--green); }
.import-record-action.update, .import-record-action.merge { color: var(--gold); }
.import-record-warning { color: var(--muted); font-size: 10px; text-align: right; }
.import-record-warning.has-warning { color: var(--danger); }
.import-record-choice { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 10px 12px; border-top: 1px solid var(--line); background: #10151e; }
.import-record-choice label, .import-policy-control { display: grid; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.import-record-choice select, .import-policy-control select { min-width: 150px; height: 32px; padding: 5px 28px 5px 8px; color: var(--text); background: #0b0e15; border: 1px solid #394151; border-radius: 7px; font-size: 10px; text-transform: none; }
.import-record-choice > small { max-width: 390px; margin: 0 0 3px; text-align: right; }
.import-change-list { border-top: 1px solid var(--line); }
.import-change { display: grid; grid-template-columns: minmax(115px, .8fr) minmax(140px, 1fr) 22px minmax(140px, 1fr) auto; gap: 9px; align-items: start; padding: 10px 12px; border-bottom: 1px solid #202633; }
.import-change:last-child { border-bottom: 0; }
.import-change-field { color: #d4d8e2; font-size: 10px; font-weight: 750; overflow-wrap: anywhere; }
.import-value { min-width: 0; padding: 7px 8px; border: 1px solid #282f3d; border-radius: 6px; background: #090c12; }
.import-value span, .import-value code { display: block; }
.import-value span { margin-bottom: 4px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.import-value code { max-height: 72px; overflow: auto; color: #c7cdda; font-family: Consolas, monospace; font-size: 9px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.import-change-arrow { padding-top: 12px; color: var(--muted); text-align: center; }
.import-policy-control { align-self: center; }
.import-policy-control select { min-width: 100px; }
.import-policy-control small { margin: 0; color: var(--gold-2); font-size: 7px; letter-spacing: .05em; }
.import-policy { align-self: center; padding: 4px 7px; border: 1px solid #3e4657; border-radius: 10px; color: #b9c0cf; font-size: 8px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.import-policy.preserve, .import-policy.preserved, .import-policy.keep { border-color: #395a4a; color: var(--green); }
.import-policy.conflict, .import-policy.review { border-color: #62313b; color: var(--danger); }
.import-policy.replace, .import-policy.update, .import-policy.merge, .import-policy.apply { border-color: #786332; color: var(--gold-2); }
.import-empty-changes { margin: 0; padding: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.import-warning-list { margin: 0; padding: 0 12px 11px 30px; color: var(--danger); font-size: 9px; }
.import-warning-panel { border-color: rgba(255, 190, 92, .5); background: rgba(92, 57, 10, .16); }
.creator-import-warning-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.creator-import-warning-list li { display: flex; justify-content: space-between; gap: 18px; padding: 10px 12px; border: 1px solid rgba(255, 190, 92, .24); border-radius: 10px; background: rgba(8, 10, 16, .42); }
.creator-import-warning-list time { color: var(--muted); white-space: nowrap; font-size: 11px; }
.import-conflict-list { margin: 0; padding: 11px 13px; border-top: 1px solid #62313b; background: #1b1015; color: #ff9cab; font-size: 9px; }
.import-conflict-list strong { color: var(--danger); }
.import-conflict-list ul { margin: 7px 0 0; padding-left: 17px; }
.import-preserved-list { border-top: 1px solid #304c3e; background: #0f1915; }
.import-preserved-list > summary { padding: 9px 13px; color: var(--green); cursor: pointer; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.import-preserved-list ul { display: grid; gap: 6px; margin: 0; padding: 0 13px 11px; list-style: none; }
.import-preserved-list li { display: grid; grid-template-columns: minmax(110px, .5fr) 1fr; gap: 10px; color: #aab8b0; font-size: 9px; }
.import-preserved-list li strong { color: #c9e8d7; }
.import-preserved-list li span { min-width: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 14px; }
.decision-modal { width: min(480px, calc(100vw - 40px)); background: #11151e; border: 1px solid #3b4250; border-radius: 15px; padding: 25px; box-shadow: 0 30px 100px #000d; }
.decision-modal h2 { margin: 0 0 7px; }
.decision-modal .modal-copy { margin-bottom: 18px; line-height: 1.55; }
.decision-actions { flex-wrap: wrap; }
.database-restore-modal { width: min(620px, calc(100vw - 40px)); }
.database-restore-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.database-restore-summary div { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #0b0e15; }
.database-restore-summary dt { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.database-restore-summary dd { margin: 4px 0 0; color: var(--text); font-family: Consolas, monospace; font-size: 10px; overflow-wrap: anywhere; }
.database-restore-warning { margin: 0 0 13px; padding: 10px 12px; border: 1px solid #743442; border-radius: 8px; background: #211117; color: #efc7ce; font-size: 10px; line-height: 1.45; }
.database-restore-confirmation { color: #efc7ce; }
.database-restore-confirmation strong { color: #fff; font-family: Consolas, monospace; }
.database-restore-confirmation input { margin-top: 6px; border-color: #743442; font-family: Consolas, monospace; letter-spacing: .03em; }
.deleted-modal { width: min(680px, calc(100vw - 50px)); max-height: calc(100vh - 60px); display: flex; flex-direction: column; background: #10141c; border: 1px solid #3b4250; border-radius: 15px; padding: 25px; box-shadow: 0 30px 100px #000d; }
.deleted-list { min-height: 120px; margin-top: 16px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.deleted-entry { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 15px; padding: 13px; border-bottom: 1px solid var(--line); background: #0c1017; }
.deleted-entry:last-child { border-bottom: 0; }
.deleted-entry strong, .deleted-entry small { display: block; }
.deleted-entry strong { color: var(--text); font-size: 12px; }
.deleted-entry small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.deleted-entry button { white-space: nowrap; }
.change-pin-form { display: grid; gap: 11px; }
.change-pin-form input { margin-top: 6px; }
.change-pin-form .error { margin: 0; }
.reminders-modal { width: min(900px, calc(100vw - 55px)); max-height: calc(100vh - 55px); display: flex; flex-direction: column; background: #10141c; border: 1px solid #3b4250; border-radius: 15px; padding: 25px; box-shadow: 0 30px 100px #000d; }
.reminders-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.reminders-head h2 { margin: 0 0 5px; font-size: 24px; }
.reminders-head p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.reminder-form { display: grid; grid-template-columns: minmax(170px, 2fr) 125px 140px 120px 70px auto; gap: 10px; align-items: end; padding: 18px 0 10px; }
.reminder-form input, .reminder-form select { height: 39px; }
.reminder-form .reminder-notes { grid-column: 1 / 6; }
.reminder-form .primary { height: 39px; }
.category-manager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 17px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.reminder-category-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.reminder-category-chip { border: 1px solid #3b4353; border-radius: 14px; padding: 6px 10px; background: #171c26; color: #c6ccda; font-size: 9px; font-weight: 750; }
.reminder-category-chip:hover { border-color: var(--gold); color: var(--gold-2); }
.category-manager form { display: flex; gap: 7px; align-items: center; }
.category-manager input { width: 150px; height: 35px; margin: 0; }
.category-manager button { height: 35px; white-space: nowrap; }
.category-context-menu { position: fixed; z-index: 80; min-width: 160px; padding: 5px; border: 1px solid #4b3440; border-radius: 8px; background: #171119; box-shadow: 0 12px 35px #000b; }
.category-context-menu button { width: 100%; border: 0; border-radius: 6px; padding: 9px 11px; text-align: left; background: transparent; color: var(--danger); font-size: 11px; font-weight: 750; }
.category-context-menu button:hover { background: #321821; }
.reminder-list-heading { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .9px; padding: 5px 4px 9px; }
.business-reminder-list { min-height: 120px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.business-reminder { display: grid; grid-template-columns: 34px 1fr 120px 115px 34px; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); background: #0c1017; }
.business-reminder:last-child { border-bottom: 0; }
.business-reminder.overdue { background: #1b1015; }
.business-reminder button { border: 0; background: transparent; }
.business-reminder .complete-reminder { color: var(--green); font-size: 18px; }
.business-reminder .delete-reminder { color: var(--danger); font-size: 15px; }
.business-reminder strong, .business-reminder small { display: block; }
.business-reminder strong { color: var(--text); font-size: 12px; }
.business-reminder small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.business-reminder time { color: var(--gold-2); font-size: 10px; font-weight: 750; }
.business-reminder em { color: #b9c0cf; font-size: 9px; font-style: normal; text-transform: uppercase; }
.business-reminder.completed { opacity: .5; }
.business-reminder.completed strong { text-decoration: line-through; }
.reminders-empty { color: var(--muted); text-align: center; padding: 35px; font-size: 11px; }
.pipeline-mode { overflow-x: auto; overflow-y: hidden; padding: 17px; }
.pipeline-board { display: flex; gap: 12px; height: 100%; min-width: max-content; }
.pipeline-column { width: 260px; min-width: 260px; height: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 11px; background: #0d1118; overflow: hidden; }
.pipeline-column > header { position: static; padding: 12px 13px; display: flex; align-items: center; justify-content: space-between; background: #161b25; border-bottom: 1px solid var(--line); }
.pipeline-column > header span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.pipeline-column > header b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: #242b39; color: var(--gold); font-size: 10px; }
.pipeline-column > div { overflow-y: auto; padding: 9px; }
.pipeline-card { border: 1px solid #2a3040; border-radius: 9px; background: #141923; padding: 11px; margin-bottom: 8px; cursor: pointer; }
.pipeline-card:hover { border-color: #6e5b30; }
.pipeline-card > div { display: flex; justify-content: space-between; }
.pipeline-creator-open { color: var(--text); font-weight: 800; }
.pipeline-card > div b { color: var(--gold); }
.pipeline-card small { color: var(--muted); font-size: 9px; }
.pipeline-card p { min-height: 29px; color: #c3c8d4; font-size: 10px; line-height: 1.4; }
.pipeline-card label { color: var(--muted); font-size: 9px; }
.pipeline-card select { margin-top: 4px; padding: 6px; font-size: 10px; }
.empty-column { color: var(--muted); font-size: 10px; text-align: center; padding: 18px 0; }
.tasks-mode { overflow-y: auto; padding: 25px 35px; }
.tasks-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.tasks-heading h2 { margin: 0 0 3px; }
.tasks-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.global-task-list { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.global-task { display: grid; grid-template-columns: 24px 170px 1fr 110px 90px; gap: 10px; align-items: center; min-height: 51px; padding: 8px 13px; border-bottom: 1px solid var(--line); background: #10141c; }
.global-task:hover { background: #151a24; }
.global-task input { width: 16px; height: 16px; margin: 0; }
.global-task button { text-align: left; border: 0; background: transparent; color: var(--gold-2); font-weight: 750; font-size: 11px; }
.global-task span { font-size: 11px; }
.global-task em, .global-task small { color: var(--muted); font-style: normal; font-size: 10px; }
.global-task.overdue em { color: var(--danger); font-weight: 750; }
.global-task.completed { opacity: .48; }
.global-task.completed span { text-decoration: line-through; }
.task-empty { padding: 35px; text-align: center; color: var(--muted); font-size: 11px; }
.onboarding-checklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.monthly-performance { display: grid; gap: 10px; }
.monthly-report { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #0c1017; }
.monthly-report summary { min-height: 49px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 15px; padding: 0 15px; cursor: pointer; list-style: none; }
.monthly-report summary::-webkit-details-marker { display: none; }
.monthly-report summary span { color: var(--gold-2); font-size: 13px; font-weight: 850; }
.monthly-report summary small { color: var(--muted); font-size: 9px; }
.monthly-report summary b { color: #b9c0ce; font-size: 9px; text-transform: uppercase; }
.monthly-report[open] summary { border-bottom: 1px solid var(--line); background: #131823; }
.monthly-report-grid { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); }
.monthly-report-grid div { min-width: 0; padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.monthly-report-grid span, .monthly-report-grid strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monthly-report-grid span { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.monthly-report-grid strong { margin-top: 5px; color: #e0e3eb; font-size: 11px; }
.onboarding-checklist label { display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #0c1017; cursor: pointer; }
.onboarding-checklist input, .creator-task input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: var(--gold); }
.onboarding-checklist span { color: #c4cad6; font-size: 10px; }
.crm-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 25px; }
.composer { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.composer textarea { margin: 0; }
.timeline-composer { grid-template-columns: 1fr 1.35fr; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #0c1017; }
.timeline-composer label { min-width: 0; }
.timeline-composer input, .timeline-composer select, .timeline-composer textarea { margin-top: 6px; }
.timeline-composer textarea { min-height: 64px; }
.timeline-composer button { grid-column: 1 / -1; justify-self: end; }
.timeline-list { margin-top: 15px; max-height: 360px; overflow-y: auto; }
.timeline-list article { position: relative; margin-left: 8px; padding: 0 0 17px 18px; border-left: 1px solid #3c4454; }
.timeline-list article::before { content: ""; position: absolute; left: -4px; top: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.timeline-list time { color: var(--muted); font-size: 9px; }
.timeline-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.timeline-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; margin-left: auto; }
.timeline-actions button { padding: 3px 6px; border: 1px solid #394151; border-radius: 6px; background: #151a24; color: var(--gold-2); font-size: 8px; }
.timeline-actions button.danger-link { border-color: #5e3039; color: var(--danger); }
.change-badge { padding: 3px 7px; border: 1px solid #454b59; border-radius: 10px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.change-badge.changed { border-color: #557e60; background: #142419; color: var(--green); }
.timeline-list h4 { margin: 9px 0 2px; color: var(--gold-2); font-size: 9px; text-transform: uppercase; letter-spacing: .6px; }
.timeline-list p { color: #d5d8e1; font-size: 11px; line-height: 1.5; margin: 0; white-space: pre-wrap; }
.task-composer { display: grid; grid-template-columns: 1fr 135px auto; gap: 7px; align-items: end; }
.task-composer input { margin: 0; }
.creator-task-list { margin-top: 15px; }
.creator-task { display: flex; gap: 9px; align-items: flex-start; padding: 10px; border-bottom: 1px solid var(--line); }
.creator-task span { color: #d1d5df; font-size: 11px; }
.creator-task small { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; }
.creator-task.completed { opacity: .5; }
.creator-task.completed span { text-decoration: line-through; }
.workflow-empty { color: var(--muted); font-size: 10px; padding: 10px 0; }
.outreach-edit-modal { width: min(720px, calc(100vw - 40px)); }
.outreach-edit-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.outreach-edit-form label { min-width: 0; }
.outreach-edit-form input, .outreach-edit-form select, .outreach-edit-form textarea { margin-top: 6px; }
.outreach-edit-form label:nth-of-type(3), .outreach-edit-form label:nth-of-type(4) { grid-column: 1 / -1; }
.outreach-edit-form .modal-actions { grid-column: 1 / -1; }

/* Creator Operations v3 */
.dashboard-alerts { margin: 0 35px 10px; border: 1px solid var(--line); border-radius: 10px; background: #0d1118; overflow: hidden; }
.dashboard-alerts-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 7px 11px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .6px; }
.dashboard-alerts-head b { color: var(--gold-2); }
.dashboard-alert-list { display: grid; grid-template-columns: repeat(6, minmax(105px, 1fr)); }
.dashboard-alert { min-width: 0; display: grid; grid-template-columns: auto 1fr; gap: 1px 7px; padding: 8px 10px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); text-align: left; }
.dashboard-alert:last-child { border-right: 0; }
.dashboard-alert b { grid-row: span 2; align-self: center; color: #6e7689; font-size: 17px; }
.dashboard-alert span { overflow: hidden; color: #aeb5c4; font-size: 9px; font-weight: 750; white-space: nowrap; text-overflow: ellipsis; }
.dashboard-alert small { color: #6f778a; font-size: 8px; }
.dashboard-alert.has-alert { background: #1a1610; }
.dashboard-alert.has-alert b, .dashboard-alert.has-alert small { color: var(--gold); }
.dashboard-alerts.all-clear { opacity: .7; }

.column-visibility-bar { min-height: 48px; height: auto; flex: 0 0 auto; flex-wrap: wrap; padding-top: 7px; padding-bottom: 7px; }
.saved-view-control { margin-right: auto; display: flex; align-items: center; gap: 6px; }
.saved-view-control label, .freeze-control { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.saved-view-control select, .freeze-control select { width: auto; height: 31px; margin: 0; padding: 5px 27px 5px 8px; font-size: 10px; }
.saved-view-control .ghost-button, .column-visibility-bar > .ghost-button { height: 31px; padding: 5px 9px; font-size: 9px; }
.icon-button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 7px; background: #171b25; color: var(--muted); }
.freeze-control { display: flex; align-items: center; gap: 5px; }
.column-visibility-menu { width: min(620px, calc(100vw - 390px)); max-height: min(650px, calc(100vh - 235px)); }
.column-visibility-head > div:last-child { display: flex; gap: 8px; }
.column-preset-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.column-preset-list button { border: 1px solid #3b4353; border-radius: 7px; padding: 8px; background: #171c26; color: #c6ccda; font-size: 9px; font-weight: 750; }
.column-preset-list button:hover { border-color: var(--gold); color: var(--gold-2); }
.column-visibility-options { grid-template-columns: 1fr 1fr; gap: 9px; }
.column-visibility-options fieldset { min-width: 0; margin: 0; padding: 7px; border: 1px solid var(--line); border-radius: 8px; }
.column-visibility-options legend { padding: 0 5px; color: var(--gold-2); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.column-visibility-options legend small { color: var(--muted); }
.filter-chips { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 6px; padding: 7px 35px; border-bottom: 1px solid var(--line); background: #0c1017; }
.filter-chip { border: 1px solid #435067; border-radius: 13px; padding: 5px 8px; background: #171e2a; color: #c9d3e7; font-size: 9px; }
.filter-chip.hidden-source { border-color: #786332; color: var(--gold-2); }
.bulk-toolbar { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px 35px; border-bottom: 1px solid #655226; background: #1c180f; }
.bulk-toolbar strong { margin-right: auto; color: var(--gold-2); font-size: 11px; }
.bulk-toolbar button { padding: 7px 10px; font-size: 9px; }
.bulk-form { display: grid; gap: 12px; margin-top: 16px; }
.bulk-warning { margin: 0; padding: 11px; border: 1px solid #713442; border-radius: 8px; background: #251218; color: #ffabb6; font-size: 11px; line-height: 1.5; }

#creator-grid th[data-col-key="__select"], #creator-grid td[data-col-key="__select"] { width: 44px; min-width: 44px; max-width: 44px; padding: 7px; text-align: center; }
#creator-grid [data-col-key="__select"] input { width: 17px; height: 17px; margin: 0; accent-color: var(--gold); }
#creator-grid .frozen-col { position: sticky; z-index: 5; box-shadow: 2px 0 5px #0005; }
#creator-grid thead .frozen-col { z-index: 8; }
#creator-grid .column-searches .frozen-col { z-index: 7; }
#creator-grid td.frozen-col { background: #11151c; }
.inline-grid-select.is-saving { opacity: .8; cursor: progress; }
.inline-grid-select.trained-no, .inline-grid-select.milestone-no { color: #aeb4c2; }

.pipeline-mode { padding: 0; overflow: hidden; }
.pipeline-heading { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 17px; border-bottom: 1px solid var(--line); }
.pipeline-heading h2 { margin: 0 0 3px; font-size: 15px; }
.pipeline-heading p, .pipeline-heading > span { margin: 0; color: var(--muted); font-size: 9px; }
.pipeline-board { flex: 1 1 0; min-height: 0; overflow-x: auto; padding: 14px; }
.pipeline-reasons { margin: 7px 0; padding-left: 17px; color: #ffb280; font-size: 9px; line-height: 1.45; }
.task-view-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

.profile-summary-panel { padding-bottom: 20px; }
.profile-summary { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 8px; }
.profile-summary-item { min-width: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: #0b0f16; }
.profile-summary-item span, .profile-summary-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-summary-item span { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.profile-summary-item strong { margin-top: 5px; color: #dfe3ec; font-size: 11px; }
.profile-summary-item.success { border-color: #315b45; }
.profile-summary-item.success strong { color: var(--green); }
.profile-summary-item.danger { border-color: #6a303b; }
.profile-summary-item.danger strong { color: var(--danger); }
.field-help { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; font-weight: 500; line-height: 1.35; }
.quit-details { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 13px; border: 1px solid #67303a; border-radius: 9px; background: #1b1015; }
.quit-details > strong { grid-column: 1 / -1; color: var(--danger); font-size: 11px; }
.field-warning { grid-column: 1 / -1; margin: 0; color: #ffadba; font-size: 10px; line-height: 1.45; }
.rating-rubric { margin-top: 18px; border: 1px solid var(--line); border-radius: 9px; background: #0c1017; }
.rating-rubric > summary { padding: 11px 13px; color: var(--gold-2); cursor: pointer; font-size: 10px; font-weight: 800; }
.rating-rubric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.rating-rubric-grid > div { display: flex; gap: 10px; padding: 11px; background: #0d1118; }
.rating-rubric-grid > div > b { flex: 0 0 24px; color: var(--gold); font-size: 17px; }
.rating-rubric-grid strong, .rating-rubric-grid small { display: block; }
.rating-rubric-grid strong { color: #dce0e9; font-size: 10px; }
.rating-rubric-grid small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.rating-history { padding: 12px; }
.rating-history h3 { margin: 0 0 8px; font-size: 11px; }
.rating-history article { display: grid; grid-template-columns: 100px 1fr auto; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 9px; }
.rating-history article small { color: var(--muted); }
.alias-management { margin-top: 14px; border: 1px solid var(--line); border-radius: 9px; background: #0c1017; overflow: hidden; }
.alias-management-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 12px 13px; border-bottom: 1px solid var(--line); }
.alias-management-head h3, .alias-management-head p { margin: 0; }
.alias-management-head h3 { color: var(--gold-2); font-size: 11px; }
.alias-management-head p { margin-top: 3px; color: var(--muted); font-size: 9px; }
#alias-management-status { max-width: 380px; color: var(--muted); font-size: 9px; text-align: right; line-height: 1.4; }
.creator-alias-list { display: grid; }
.creator-alias { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(190px, 1.3fr) minmax(150px, .8fr) auto; align-items: center; gap: 13px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.creator-alias span { min-width: 0; }
.creator-alias small, .creator-alias strong, .creator-alias em, .creator-alias b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-alias small { color: var(--muted); font-size: 8px; }
.creator-alias strong { margin-top: 3px; color: #dce1ec; font-size: 10px; }
.creator-alias em { margin-top: 3px; color: #b7bfce; font-size: 9px; font-style: normal; }
.creator-alias b { color: var(--green); font-size: 9px; }
.creator-alias.needs-verification b { color: var(--danger); }
.creator-alias button { border: 0; background: transparent; color: var(--danger); font-size: 9px; }
.alias-composer { display: grid; grid-template-columns: 150px minmax(150px, .8fr) minmax(220px, 1.3fr) auto; align-items: end; gap: 10px; padding: 12px 13px; background: #0a0e15; }
.alias-composer input, .alias-composer select { height: 35px; margin-top: 5px; padding: 7px 9px; font-size: 10px; }
.alias-verified-check { grid-column: 1 / -2; display: flex; align-items: center; gap: 8px; color: #c3cad7; }
.alias-verified-check input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: var(--gold); }
.alias-composer button { min-height: 35px; }

.performance-insights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 13px; }
.performance-insights > div { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #0b0f16; }
.performance-insights span, .performance-insights strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.performance-insights span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.performance-insights strong { margin-top: 5px; color: #dce0e9; font-size: 10px; }
.performance-insights.major-decline > div:nth-child(2) { border-color: #743442; background: #1b1015; }
.performance-insights.major-decline > div:nth-child(2) strong { color: var(--danger); }
.metric-change-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; padding-top: 4px; }
.metric-change-grid > div { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: #090d13; }
.metric-change-grid > div.improvement strong { color: var(--green); }
.metric-change-grid > div.decline strong { color: var(--danger); }
.metric-change-grid small { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.personal-best-grid { grid-column: 1 / -1; min-width: 0; padding-top: 5px; }
.personal-best-grid h3 { margin: 0 0 7px; color: var(--gold-2); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.personal-best-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.personal-best-items article { min-width: 0; padding: 9px; border: 1px solid #3d4d43; border-radius: 7px; background: #0b1511; }
.personal-best-items span, .personal-best-items strong, .personal-best-items small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.personal-best-items span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.personal-best-items strong { margin-top: 4px; color: var(--green); font-size: 11px; }
.personal-best-items small { margin-top: 3px; color: #889a90; font-size: 8px; }
.creator-goals { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 9px; background: #0b0f16; overflow: hidden; }
.creator-goals-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 11px 13px; border-bottom: 1px solid var(--line); background: #111620; }
.creator-goals-head h3, .creator-goals-head p { margin: 0; }
.creator-goals-head h3 { color: var(--gold-2); font-size: 11px; }
.creator-goals-head p { margin-top: 3px; color: var(--muted); font-size: 8px; }
#creator-goals-status { max-width: 390px; color: var(--muted); font-size: 9px; text-align: right; }
.creator-goal-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.creator-goal { min-width: 0; padding: 12px; background: #0c1017; }
.creator-goal > header { position: static; display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 0; border: 0; background: transparent; }
.creator-goal > header b, .creator-goal > header small { display: block; }
.creator-goal > header b { color: #e0e4ec; font-size: 11px; }
.creator-goal > header small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.creator-goal > header em { padding: 3px 6px; border: 1px solid #3b4353; border-radius: 8px; color: #bec5d3; font-size: 8px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.creator-goal.status-achieved > header em { border-color: #315b45; color: var(--green); }
.creator-goal.status-paused > header em { border-color: #674a82; color: #d0a7ff; }
.creator-goal.status-cancelled > header em { border-color: #6a303b; color: var(--danger); }
.goal-progress-copy { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 6px; margin-top: 12px; }
.goal-progress-copy strong { color: var(--gold-2); font-size: 14px; }
.goal-progress-copy span { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.goal-progress-copy b { color: #cbd2df; font-size: 9px; }
.goal-progress-track { appearance: none; width: 100%; height: 7px; margin-top: 7px; overflow: hidden; border: 0; border-radius: 4px; background: #252b37; }
.goal-progress-track::-webkit-progress-bar { background: #252b37; }
.goal-progress-track::-webkit-progress-value { border-radius: 4px; background: linear-gradient(90deg, #977629, var(--gold)); }
.goal-progress-track:indeterminate { background: repeating-linear-gradient(90deg, #252b37 0 12px, #323948 12px 24px); }
.creator-goal footer { display: grid; gap: 4px; margin-top: 10px; color: var(--muted); font-size: 8px; }
.creator-goal footer > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-goal footer > div { display: flex; justify-content: flex-end; gap: 5px; }
.creator-goal footer button { padding: 3px 5px; border: 0; background: transparent; color: var(--gold-2); font-size: 8px; }
.creator-goal footer button.danger-link { color: var(--danger); }
.goal-composer { display: grid; grid-template-columns: minmax(170px, 1.2fr) minmax(125px, .8fr) minmax(115px, .6fr) 125px 125px 110px; align-items: end; gap: 9px; padding: 12px 13px; border-top: 1px solid var(--line); background: #090d13; }
.goal-composer input, .goal-composer select { height: 35px; margin-top: 5px; padding: 7px 9px; font-size: 9px; }
.goal-composer label small { display: block; min-height: 11px; margin-top: 4px; color: var(--muted); font-size: 7px; font-weight: 500; line-height: 1.3; }
.goal-notes-field { grid-column: 1 / -2; }
.goal-composer-actions { display: flex; justify-content: flex-end; gap: 6px; }
.goal-composer-actions button { min-height: 35px; padding: 8px 11px; font-size: 9px; white-space: nowrap; }
.performance-chart-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.performance-chart-head select { width: 180px; }
.performance-chart-head p { margin: 0 0 9px; color: var(--muted); font-size: 9px; }
.performance-chart { height: 190px; margin: 10px 0 15px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #0a0e15; }
.performance-svg { display: block; width: max(100%, 600px); height: 100%; overflow: visible; }
.chart-axis { stroke: #303747; stroke-width: 1; }
.chart-bar { fill: var(--gold); }
.chart-value, .chart-label { fill: var(--muted); font-family: Inter, "Segoe UI", sans-serif; font-size: 8px; text-anchor: middle; }
.chart-value { fill: #d7dce7; }
.bar-chart { height: 100%; display: flex; align-items: end; gap: 7px; overflow-x: auto; }
.bar-point { flex: 1 0 52px; height: 100%; display: grid; grid-template-rows: 16px 1fr 18px; align-items: end; text-align: center; }
.bar-point i { display: block; align-self: end; min-height: 3px; border-radius: 5px 5px 1px 1px; background: linear-gradient(var(--gold-2), #9b772b); }
.bar-value, .bar-point small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.monthly-provenance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 15px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #0a0e15; color: var(--muted); font-size: 8px; }
.monthly-provenance b { color: #c7ccda; }
.monthly-provenance code { color: #aab4ca; overflow-wrap: anywhere; }
.revision-history { border-top: 1px solid var(--line); }
.revision-history > summary { display: block; min-height: 0; padding: 10px 14px; color: var(--gold-2); font-size: 9px; }
.revision-history article { padding: 11px 14px; border-top: 1px solid var(--line); }
.revision-history article header { position: static; padding: 0; border: 0; background: transparent; }
.revision-history article p, .revision-history article small { color: var(--muted); font-size: 9px; }
.revision-history ul { margin: 7px 0 0; padding-left: 17px; color: #bdc4d2; font-size: 9px; }

.timeline-composer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.timeline-list footer { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 7px; color: var(--muted); font-size: 8px; }
.task-composer { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #0c1017; }
.task-composer input, .task-composer select { margin-top: 6px; }
.task-composer .task-notes-field { grid-column: 1 / -1; }
.task-composer button { justify-self: end; }
.creator-task { display: grid; grid-template-columns: 20px 1fr auto auto; align-items: start; }
.creator-task > span b, .creator-task > span small, .creator-task > span em { display: block; }
.creator-task > span em { margin-top: 4px; color: var(--muted); font-size: 8px; font-style: normal; }
.creator-task > span details { margin-top: 6px; color: var(--muted); font-size: 8px; }
.creator-task > span details summary { cursor: pointer; }
.creator-task > button { border: 0; background: transparent; color: var(--gold-2); font-size: 9px; }
.creator-task > button.danger-link { color: var(--danger); }
.priority-urgent { border-left: 3px solid var(--danger); }
.priority-high { border-left: 3px solid #ff9d62; }
.global-task span small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }

.reminders-modal { width: min(1120px, calc(100vw - 45px)); }
.reminder-form { grid-template-columns: repeat(4, minmax(110px, 1fr)); }
.reminder-form .reminder-notes { grid-column: span 3; }
.reminder-form .primary { justify-self: end; }
.reminder-form label small { color: var(--muted); font-size: 8px; }
.reminder-category-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 9px; }
.reminder-category-chip > button { width: 23px; height: 23px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.reminder-category-chip > button:hover { background: #2b2518; color: var(--gold); }
.category-undo { display: flex; align-items: center; justify-content: space-between; padding: 8px 11px; border: 1px solid #5a4b2a; border-radius: 8px; margin-bottom: 10px; background: #1b170f; color: var(--gold-2); font-size: 10px; }
.category-undo button { border: 0; background: transparent; color: var(--gold); font-weight: 800; }
.business-reminder { grid-template-columns: 34px minmax(210px, 1fr) 105px 100px minmax(150px, auto); }
.business-reminder > div > em { display: block; margin-top: 4px; }
.business-reminder .reminder-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.business-reminder .reminder-actions button { padding: 5px; color: #c1c7d4; font-size: 9px; }
.business-reminder .reminder-actions .delete-reminder { color: var(--danger); }
.reminder-creator-link { padding: 0; border: 0; background: transparent; color: var(--gold-2); font-size: inherit; font-weight: 750; text-decoration: underline; text-decoration-color: #f4c85a66; text-underline-offset: 2px; }
.reminder-snooze-control { min-width: 85px; }
.reminder-snooze-control select, .reminder-snooze-date { height: 28px; margin: 0; padding: 4px 23px 4px 6px; border-radius: 6px; font-size: 8px; }
.reminder-snooze-date { width: 116px; padding-right: 5px; }
.business-reminder > details { grid-column: 2 / -1; }
.business-reminder > details summary { color: var(--muted); cursor: pointer; font-size: 8px; }
.recovery-section + .recovery-section { margin-top: 22px; }
.recovery-section h3 { margin: 0 0 9px; color: var(--gold-2); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.sync-center-modal { width: min(1180px, calc(100vw - 45px)); max-height: calc(100vh - 50px); overflow-y: auto; background: #10141c; border: 1px solid #3b4250; border-radius: 15px; padding: 24px; box-shadow: 0 30px 100px #000d; }
.sync-center-head { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.sync-center-head h2, .sync-center-head p:last-child { margin: 0; }
.sync-center-head h2 { margin-bottom: 5px; font-size: 24px; }
.sync-center-head p:last-child { max-width: 680px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.sync-center-head-actions { display: flex; gap: 7px; }
.sync-center-error { min-height: 18px; margin: 8px 0; color: var(--danger); font-size: 10px; }
.sync-source-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sync-source-card { border: 1px solid var(--line); border-radius: 10px; background: #0b0f16; overflow: hidden; }
.sync-source-card.success { border-color: #315b45; }
.sync-source-card.danger { border-color: #6a303b; }
.sync-source-card header, .sync-receipt header, .sync-review-item header { position: static; padding: 11px 12px; border-bottom: 1px solid var(--line); background: #121722; display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.sync-source-card header b, .sync-source-card header small, .sync-receipt header b, .sync-receipt header small, .sync-review-item header b, .sync-review-item header small { display: block; }
.sync-source-card header b, .sync-receipt header b, .sync-review-item header b { color: #e0e4ec; font-size: 11px; }
.sync-source-card header small, .sync-receipt header small, .sync-review-item header small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.sync-source-card header em, .sync-receipt header em, .sync-review-item header em { color: var(--green); font-size: 8px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.sync-source-card.danger header em, .sync-review-item header em { color: var(--danger); }
.sync-source-card dl, .sync-receipt dl, .sync-review-item dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 14px; margin: 0; padding: 11px 12px; }
.sync-source-card dt, .sync-receipt dt, .sync-review-item dt { color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.sync-source-card dd, .sync-receipt dd, .sync-review-item dd { min-width: 0; margin: 3px 0 0; overflow: hidden; color: #c7cdda; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.sync-source-card p { margin: 0; padding: 0 12px 11px; color: #b8c0cf; font-size: 9px; }
.sync-center-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 14px; margin-top: 15px; }
.sync-center-grid > section { min-width: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #0b0f16; }
.sync-section-title { display: flex; justify-content: space-between; gap: 12px; padding: 12px 13px; border-bottom: 1px solid var(--line); background: #111620; }
.sync-section-title h3, .sync-section-title p { margin: 0; }
.sync-section-title h3 { color: var(--gold-2); font-size: 11px; }
.sync-section-title p { margin-top: 3px; color: var(--muted); font-size: 8px; }
.sync-section-title > span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 8px; background: #252c39; color: var(--gold); font-size: 9px; font-weight: 800; }
.sync-receipt-list, .sync-review-list { max-height: 440px; overflow-y: auto; }
.sync-receipt, .sync-review-item { border-bottom: 1px solid var(--line); background: #0c1017; }
.sync-receipt:last-child, .sync-review-item:last-child { border-bottom: 0; }
.sync-receipt.rolled-back { opacity: .7; }
.sync-receipt dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sync-receipt dl > div:nth-child(4), .sync-receipt dl > div:nth-child(5) { grid-column: 1 / -1; }
.sync-receipt code { color: #9eabc3; font-size: 8px; overflow-wrap: anywhere; white-space: normal; }
.sync-receipt-actions { display: flex; justify-content: flex-end; padding: 0 12px 11px; }
.sync-receipt-actions button { padding: 6px 9px; border: 1px solid #5c3039; border-radius: 7px; background: #1b1015; color: var(--danger); font-size: 8px; font-weight: 750; }
.sync-receipt-blocked { margin: 0; padding: 0 12px 9px; color: #d5a5ad; font-size: 8px; line-height: 1.4; }
.sync-receipt-evidence { margin: 0; padding: 0 12px 11px; color: var(--green); font-size: 8px; font-weight: 800; text-align: right; text-transform: uppercase; }
.sync-review-issues { display: grid; gap: 5px; margin: 0; padding: 0 24px 10px 30px; color: #e0ba80; font-size: 8px; line-height: 1.4; }
.sync-review-issues li.conflict { color: #ff9cab; }
.sync-review-resolution { display: grid; grid-template-columns: 130px 1fr; gap: 8px; padding: 0 12px 10px; }
.sync-review-resolution input, .sync-review-resolution textarea { margin-top: 5px; padding: 7px 9px; font-size: 9px; }
.sync-review-resolution input { height: 34px; }
.sync-review-note { margin: 0; padding: 0 12px 9px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.sync-review-actions { display: flex; justify-content: flex-end; gap: 6px; padding: 0 12px 11px; }
.sync-review-actions button { padding: 7px 10px; font-size: 8px; }
.sync-warning-section { grid-column: 1 / -1; }
.sync-warning-item { border-left: 3px solid #a57c2e; }
.sync-warning-item header em { color: #f0b75a; }
.sync-warning-list { max-height: 330px; }
.sync-empty { margin: 0; padding: 24px 14px; color: var(--muted); font-size: 10px; text-align: center; }
.sync-empty.success { color: var(--green); }
.sync-rollback-confirmation { margin-top: 14px; padding: 16px; border: 1px solid #743442; border-radius: 10px; background: #211117; }
.sync-rollback-confirmation h3 { margin: 0 0 6px; color: var(--danger); font-size: 15px; }
.sync-rollback-confirmation > p:not(.eyebrow) { margin: 0 0 12px; color: #d5afb6; font-size: 10px; line-height: 1.5; }
.sync-rollback-confirmation label { color: #efc7ce; }
.sync-rollback-confirmation label strong { color: #fff; font-family: Consolas, monospace; }
.sync-rollback-confirmation input { border-color: #743442; font-family: Consolas, monospace; letter-spacing: .03em; }
.report-correction { margin: 14px 0; padding: 14px; border: 1px solid #3c4658; border-radius: 11px; background: #0c1119; }
.report-correction-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 11px; }
.report-correction-head h3, .report-correction-head p { margin: 0; }
.report-correction-head h3 { color: var(--gold-2); font-size: 12px; }
.report-correction-head p, .report-correction-help { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.report-correction-head > span { max-width: 300px; color: #aeb8ca; font-size: 8px; text-align: right; }
.report-correction-grid { display: grid; grid-template-columns: 150px minmax(150px, 1fr) 150px minmax(180px, 1fr); gap: 9px; align-items: end; }
.report-correction-grid select, .report-correction-grid input, .report-correction-grid textarea { margin-top: 5px; }
.report-correction-reason { grid-column: 1 / -2; }
.report-correction-actions { display: flex; justify-content: flex-end; }
.report-correction-actions button { min-height: 38px; }
.report-correction-help { margin-bottom: 0; }
@media (max-width: 1250px) {
  .database-heading { align-items: flex-start; }
  .view-actions { flex-wrap: wrap; justify-content: flex-end; }
  .onboarding-checklist { grid-template-columns: repeat(2, 1fr); }
  .crm-split { grid-template-columns: 1fr; }
  .sync-center-grid { grid-template-columns: 1fr; }
  .alias-composer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alias-verified-check { grid-column: 1 / 2; }
  .goal-composer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .goal-notes-field { grid-column: 1 / -2; }
  .personal-best-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-correction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-correction-reason { grid-column: 1 / 2; }
}
.lock-screen { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; overflow: auto; padding: 24px 16px; background: radial-gradient(ellipse at 50% 25%, #242017 0, #10131a 45%, #090b10 85%); }
.lock-card { width: min(360px,100%); border: 1px solid #393327; border-radius: 20px; padding: 28px 30px 22px; background: #10141c; box-shadow: 0 24px 80px #0007; text-align: center; }
.login-logo { display: block; width: 92px; height: 92px; object-fit: contain; margin: 0 auto 12px; }
.lock-card .eyebrow { color: #c9b77e; font-size: 10px; font-weight: 600; letter-spacing: 2.2px; margin: 0 0 18px; }
.login-pin-label { display: block; text-align: left; font-size: 12px; font-weight: 600; color: #c8ced9; margin: 22px 0 8px; }
.brand-mark { color: var(--gold); font-size: 40px; margin-bottom: 14px; }
.lock-card h1 { margin: 0 0 8px; font-size: 26px; font-weight: 650; letter-spacing: -.5px; }
.lock-card > p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.lock-card form input { width: 100%; height: 44px; text-align: center; letter-spacing: 3px; font-size: 17px; margin-bottom: 12px; border-radius: 10px; background: #0b0e14; border: 1px solid #343c4b; }
.lock-card form input::placeholder { font-size: 13px; letter-spacing: 0; color: #747e90; }
.lock-card form .primary { min-height: 44px; font-size: 13px; border-radius: 10px; background: linear-gradient(115deg,#f4d987,#dfbb61); box-shadow: 0 4px 16px #0003; }
.lock-card form .primary:hover { background: #f6dc90; }
.lock-card .security-note { font-size: 10px; margin: 10px 0 0; padding-top: 16px; border-top: 1px solid #252a34; color: #7f889a; }
.lock-card #lock-error { margin: 10px 0 0; font-size: 12px; }
.error { color: var(--danger) !important; min-height: 19px; }
#toast { position: fixed; right: 28px; bottom: 28px; z-index: 90; max-width: min(460px, calc(100vw - 56px)); background: #20261f; border: 1px solid #3b6649; color: #a8edc2; padding: 12px 18px; border-radius: 9px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; box-shadow: 0 14px 45px #0008; }
#toast.toast-error { background: #29151b; border-color: #743442; color: #ff9cab; }
#toast.toast-info { background: #171e2b; border-color: #3f506e; color: #b9cdf5; }
#toast.show { opacity: 1; transform: none; }
@media (max-width: 1150px) {
  .app { grid-template-columns: 300px 1fr; }
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .questions { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .database-restore-summary { grid-template-columns: 1fr; }
  .import-change { grid-template-columns: 1fr; }
  .import-change-arrow { display: none; }
  .import-policy { justify-self: start; }
  .sync-source-cards { grid-template-columns: 1fr; }
  .creator-alias { grid-template-columns: 1fr; }
  .alias-composer { grid-template-columns: 1fr; }
  .alias-verified-check { grid-column: 1; }
  .sync-review-resolution { grid-template-columns: 1fr; }
  .creator-goal-list, .goal-composer { grid-template-columns: 1fr; }
  .goal-notes-field { grid-column: 1; }
  .outreach-edit-form, .personal-best-items { grid-template-columns: 1fr; }
  .outreach-edit-form label:nth-of-type(3), .outreach-edit-form label:nth-of-type(4) { grid-column: 1; }
  .report-correction-grid { grid-template-columns: 1fr; }
  .report-correction-reason { grid-column: 1; }
}
.brand { flex-wrap: wrap; }
#open-incentives { margin-left: auto; padding: 9px 11px; font: inherit; font-size: 12px; font-weight: 600; color: var(--gold); background: #242016; border: 1px solid #655432; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .15s, border-color .15s; }
#open-incentives:hover { background: #342b19; border-color: var(--gold); }
.brand .sidebar-logo { width: 54px; height: 60px; object-fit: contain; flex-shrink: 0; }
.brand { gap: 10px; margin: 0 0 22px; }
.brand strong { font-size: 19px; }
.brand small { font-size: 9px; letter-spacing: 1.4px; }
#new-creator.sidebar-action, #import-creators.sidebar-action { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 11px 14px; border-radius: 11px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
#new-creator.sidebar-action { background: linear-gradient(120deg,#f5db89,#dfb958); color: #211a0b; border: 1px solid #ebcb72; box-shadow: 0 3px 10px #0003; }
#new-creator.sidebar-action:hover { background: #f5db89; box-shadow: 0 3px 14px #d8ae4826; }
#import-creators.sidebar-action { background: #171c25; color: #dce2ed; border: 1px solid #343e4e; margin-top: 8px; }
#import-creators.sidebar-action:hover { background: #202735; border-color: #7b6a43; }
.sidebar-action > span { font-size: 19px; line-height: 1; font-weight: 400; }
#open-incentives:focus-visible, .sidebar-action:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.incentives-dialog { color: #e9edf3; background: #10131b; border: 1px solid #655731; border-radius: 18px; width: min(1100px, 94vw); max-height: 90vh; overflow: auto; padding: 28px; }
.incentives-dialog::backdrop { background: #000b; }
.incentives-dialog { width: min(1450px, 95vw); }
.incentive-chart { margin: 24px 0; padding: 24px; border: 1px solid #30313a; border-radius: 20px; background: #16161d; }
.incentive-chart svg { width: 100%; height: 260px; min-height: 0; max-height: 260px; display: block; margin: 0 auto; }
.incentive-chart .grid-line { stroke: #45454d; stroke-dasharray: 4 5; }
.incentive-chart .benchmark-line { stroke: #e9cc70; stroke-dasharray: 6 5; stroke-width: 2; }
.incentive-chart .chart-label { fill: #a4a4ae; font-size: 14px; }
.incentive-chart .benchmark-label { fill: #f5d87a; font-size: 16px; font-weight: bold; }
.incentive-chart .actual-bar { fill: #70dedf; cursor: crosshair; }
.incentive-chart .forecast-bar { fill: #474e50; cursor: crosshair; }
.incentive-chart rect:hover, .incentive-chart rect:focus { fill: #f4d87d; stroke: #fff; stroke-width: 2; outline: none; }
.incentive-chart .chart-hidden { visibility: hidden; }
.incentive-chart .selected-bar { fill: #edc766; stroke: #ffffff; stroke-width: 2; }
.incentives-dialog { padding: 18px; font-size: 14px; }
.incentives-dialog h1 { font-size: 24px; margin: 0; }
.incentives-dialog h2 { font-size: 18px; margin: 0 0 12px; }
.incentives-dialog p { font-size: 13px; margin: 8px 0; line-height: 1.45; }
.incentives-dialog .incentive-chart { padding: 14px; margin: 12px 0; border-radius: 12px; }
.incentives-dialog .incentive-comparison-row { padding: 6px 0; gap: 10px; font-size: 13px; grid-template-columns: minmax(100px,1fr) 1.6fr minmax(75px,auto); }
.incentives-dialog .incentive-comparison-row progress { height: 10px; }
.incentive-split-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.incentive-overview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: start; margin: 12px 0; }
.incentives-dialog .incentive-overview-grid .incentive-chart { margin: 0; padding: 12px; min-width: 0; }
.incentives-dialog .incentive-overview-grid h2 { font-size: 16px; margin-bottom: 8px; }
.incentives-dialog .incentive-overview-grid .incentive-comparison-row { grid-template-columns: minmax(0,1.3fr) minmax(40px,1fr) auto; font-size: 12px; padding: 5px 0; gap: 8px; }
.incentive-overview-grid .incentive-comparison-row span { overflow-wrap: anywhere; }
@media(max-width: 850px) { .incentive-overview-grid { grid-template-columns: 1fr; } }
.incentives-dialog .incentive-split-grid th, .incentives-dialog .incentive-split-grid td { padding: 5px 8px; font-size: 13px; }
.incentives-dialog .incentive-split-grid small { display: block; margin-top: 8px; font-size: 11px; color: #a4a4ae; }
.incentives-dialog .incentives-cards section { padding: 12px; }
@media(max-width: 850px) { .incentive-split-grid { grid-template-columns: 1fr; } }
.incentive-comparison-row { display: grid; grid-template-columns: minmax(130px,1fr) 2fr minmax(90px,auto); align-items: center; gap: 16px; padding: 10px; border-radius: 8px; }
.incentive-comparison-row:hover, .incentive-comparison-row:focus { background: #30323e; outline: 1px solid #70dedf; }
.incentive-chart input[type=range] { display: block; width: 100%; accent-color: #70dedf; }
.incentive-chart .incentive-comparison-row progress { accent-color: #70dedf; }
.incentive-chart-tooltip { background: #34353d; color: #fff; border-radius: 6px; padding: 7px 10px; min-height: 0; font-size: 12px; line-height: 1.35; border-left: 3px solid #70dedf; }
.incentives-dialog p { line-height: 1.65; color: #bfc7d7; }
.incentives-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.incentives-head button { margin-left: auto; }
.incentives-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 12px; }
.incentives-cards section { background: #1c2130; padding: 18px; border-radius: 12px; }
.incentives-cards h2 { color: #f1d177; }
.incentives-dialog table { width: 100%; border-collapse: collapse; }
.incentives-dialog th, .incentives-dialog td { padding: 10px; text-align: left; border-bottom: 1px solid #343b4b; white-space: normal; }
.incentives-dialog progress { width: 100%; height: 24px; accent-color: #eaca76; }
.incentives-form { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; }
.incentives-form label { display: flex; flex-direction: column; gap: 5px; }
.incentives-dialog details { margin-top: 20px; padding: 14px; border: 1px solid #343b4b; border-radius: 8px; }

/* Black-and-gold command workspace. Keep existing forms and table interactions. */
.app { grid-template-columns: 260px minmax(0,1fr); }
aside { padding: 22px 16px 14px; background: #0b0b0b; }
.brand { gap: 8px; margin-bottom: 16px; }
.brand .sidebar-logo { width: 46px; height: 50px; }
.brand strong { font-size: 20px; }
#open-incentives { width: 100%; justify-content: space-between; margin-top: 6px; }
.command-nav { display: grid; gap: 4px; margin: 18px 0 4px; }
.command-nav button { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #bdbdbd; text-align: left; font-size: 16px; }
.command-nav button span { font-size: 13px; }
.command-nav button:hover,.command-nav button.active { background: #201d15; border-color: #51452a; color: #f0d28a; }
.search { background: #101010; border-color: #303030; margin: 12px 0; }
.creator-card { padding: 8px; grid-template-columns: 30px 1fr; }
.creator-card:hover { background: #1b1b1b; }
.sidebar-footer { border-top: 1px solid #292929; }
main { background: radial-gradient(ellipse at 85% 0,#211c102e,transparent 45%),#080808; }
.database-heading { padding: 22px 26px 16px; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.database-heading h1 { font-size: 28px; font-weight: 600; letter-spacing: -.7px; }
.database-heading .eyebrow { font-size: 9px; letter-spacing: 2px; }
.view-actions { flex-wrap: wrap; gap: 7px; }
.view-actions button,.view-actions select { font-size: 11px; }
.crm-stats { padding: 16px 26px 12px; gap: 10px; grid-template-columns: repeat(6,minmax(0,1fr)); }
.stat-card { border: 1px solid #2c2c2c; border-radius: 11px; background: linear-gradient(140deg,#191919,#101010); padding: 14px; box-shadow: 0 6px 16px #0002; }
.stat-card b { color: #f2dfac; font-size: 25px; font-weight: 600; }
.stat-card span { color: #aaa; font-size: 10px; letter-spacing: .5px; }
.command-performance { display: grid; grid-template-columns: 1.65fr 1fr; gap: 14px; margin: 0 26px 14px; flex-shrink: 0; }
.command-performance:empty { display: none; }
.command-performance > div { background: linear-gradient(130deg,#171717,#0e0e0e); border: 1px solid #303030; border-radius: 12px; padding: 16px 18px; min-width: 0; }
.command-performance h2 { margin: 0 0 10px; text-transform: uppercase; font-size: 10px; letter-spacing: 1.4px; color: #d0d0d0; }
.command-performance svg { width: 100%; height: 85px; display: block; }
.command-performance small { font-size: 10px; color: #999; }
.command-forecast strong { font-size: 30px; font-weight: 600; color: #ebc86d; }
.command-forecast p { font-size: 11px; line-height: 1.5; color: #a9a9a9; margin: 6px 0; }
.command-forecast button { padding: 5px 9px; font-size: 10px; color: #e9c568; }
.dashboard-alerts { margin-left: 26px; margin-right: 26px; border-color: #303030; background: #111; }
.quick-views { padding-left: 26px; padding-right: 26px; }
.view-chip,.ghost-button,.icon-button,.mode-switch,.text-size-control { background: #171717; border-color: #333; color: #c9c9c9; }
.view-chip.active,.mode-button.active { background: #2b2517; color: #f0d28a; border-color: #6a552c; }
.column-visibility-bar { background: #101010; border-color: #292929; }
#creator-grid th { background: #171717; border-color: #2c2c2c; }
#creator-grid td { background: #101010; border-color: #262626; }
#creator-grid tr:hover td { background: #1b1913; }
#creator-grid input,#creator-grid select { background: #121212; border-color: #363636; }
.incentives-dialog,.lock-card { background: #111; }
.incentive-chart,.incentives-cards section { background: #171717; border-color: #333; }
.lock-screen { background: radial-gradient(ellipse at 50% 25%,#272219 0,#111 45%,#080808 85%); }
@media(max-height:850px) { .command-performance svg { height: 55px; } .command-performance > div { padding: 10px 14px; } .database-heading { padding-top: 14px; } .command-nav { grid-template-columns: 1fr 1fr; gap: 2px; } .command-nav button { padding: 7px; gap: 6px; } }
@media(max-width:1100px) { .app { grid-template-columns: 225px minmax(0,1fr); } .crm-stats { grid-template-columns: repeat(3,minmax(0,1fr)); } .command-performance { grid-template-columns: 1fr 1fr; } }
@media(max-height:650px) { .database-view { overflow-y: auto; } .workspace-mode { min-height: 300px; } .command-performance { display: none; } }

/* Structural command-center overview. */
.app { grid-template-columns: 210px minmax(0,1fr); }
aside { padding: 24px 12px 16px; }
aside > .list-heading,aside > .creator-list { display: none; }
.sidebar-footer { margin-top: auto; display: grid; gap: 7px; padding-top: 16px; }
.brand { padding: 0 4px; }
.brand strong { font-size: 19px; }
.brand small { font-size: 8px; letter-spacing: .8px; }
.brand .sidebar-logo { width: 40px; }
.command-nav { grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
.command-nav button { min-height: 44px; padding: 10px 14px; gap: 14px; }
.command-nav button span { font-size: 14px; }
.database-heading { padding: 24px 0 18px; margin: 0 24px; border: 0; align-items: center; }
.database-heading .eyebrow { display: none; }
.command-top-actions { display: flex; gap: 10px; align-items: center; }
.command-top-actions .search { width: 235px; height: 40px; margin: 0; }
.command-top-actions button { white-space: nowrap; height: 40px; font-size: 12px; padding: 8px 15px; }
.view-actions { width: 100%; }
.crm-stats { grid-template-columns: repeat(4,minmax(0,1fr)); padding: 0 24px 18px; }
.stat-card { min-height: 98px; display: flex; flex-direction: column-reverse; justify-content: center; gap: 10px; padding: 18px; border-radius: 9px; }
.stat-card b { color: #f3f3f3; font-size: 29px; }
.stat-card span { font-size: 10px; letter-spacing: 1px; }
.command-performance { margin: 0; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.command-performance > div { padding: 22px; border-radius: 9px; min-height: 210px; }
.command-performance svg { height: 125px; }
.command-performance h2 { font-size: 11px; margin-bottom: 18px; }
.command-forecast { position: relative; overflow: hidden; background: url('stardawn-logo.png') right 18px center / 140px auto no-repeat,linear-gradient(130deg,#171717,#0e0e0e) !important; }
.command-forecast strong { font-size: 38px; }
.command-forecast p { max-width: 65%; font-size: 12px; }
.command-forecast button { margin-top: 8px; }
.command-cash-split { margin-top: 14px; padding-top: 10px; border-top: 1px solid #383126; position: relative; background: #111e; }
.command-cash-split small { display: block; color: #c5b78f; font-size: 10px; line-height: 1.8; }
.command-roster { display: none; min-width: 0; background: #101010; border: 1px solid #303030; border-radius: 9px; overflow: hidden; }
.command-roster-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px; border-bottom: 1px solid #292929; }
.command-roster h2 { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; margin: 0; }
.command-roster button { font-size: 11px; }
.command-roster-scroll { overflow: auto; }
.command-roster table { width: 100%; border-collapse: collapse; font-size: 12px; }
.command-roster th { text-align: left; color: #999; font-size: 9px; text-transform: uppercase; letter-spacing: .6px; padding: 12px; border-bottom: 1px solid #292929; }
.command-roster td { padding: 16px 12px; border-bottom: 1px solid #252525; color: #c8c8c8; white-space: nowrap; }
.command-creator-link { border: 0; background: none; color: #f1d187; padding: 0; font-weight: 600; }
.command-roster tr:hover td { background: #1b1812; }
#command-roster-note { color: #888; padding: 12px 16px; font-size: 10px; margin: 0; }
.database-view:not(.command-overview) .command-performance { display: none; }
.command-overview { display: grid; grid-template-columns: minmax(0,1fr) 270px; grid-template-rows: auto auto auto minmax(320px,1fr); grid-template-areas: 'heading heading' 'stats stats' 'performance performance' 'roster alerts'; gap: 0 16px; padding: 0 24px 24px; overflow-y: auto; }
.command-overview .database-heading { grid-area: heading; margin: 0; }
.command-overview .view-actions,.command-overview .quick-views,.command-overview .workspace-mode { display: none; }
.command-overview .crm-stats { grid-area: stats; padding: 0 0 18px; }
.command-overview .command-performance { grid-area: performance; display: grid; margin-bottom: 18px; }
.command-overview .command-roster { grid-area: roster; display: block; align-self: start; }
.command-overview .dashboard-alerts { grid-area: alerts; margin: 0; border-radius: 9px; align-self: start; }
.command-overview .dashboard-alerts-head { padding: 16px; gap: 8px; }
.command-overview .dashboard-alert-list { display: grid; grid-template-columns: 1fr; }
.command-overview .dashboard-alert { min-height: 66px; border: 0; border-top: 1px solid #292929; background: #111; padding: 12px 16px; }
.command-overview .dashboard-alert:hover { background: #231e13; }
.backstage-bonus-panel { position: relative; }
.backstage-bonus-tooltip { position: absolute; z-index: 20; box-sizing: border-box; width: 540px; max-width: calc(100% - 16px); padding: 18px 20px; border-radius: 9px; background: #424346; color: #d0d0d2; box-shadow: 0 8px 24px #0003; pointer-events: none; font-size: 15px; line-height: 1.4; }
.backstage-bonus-tooltip[hidden] { display: none; }
.backstage-bonus-tooltip::after { content: ''; position: absolute; top: 100%; left: var(--tip-arrow,50%); transform: translateX(-50%); border: 9px solid transparent; border-top-color: #424346; border-bottom: 0; }
.backstage-tooltip-total { display: block; color: #f5f5f6; font-size: 21px; font-weight: 750; }
.backstage-tooltip-date { margin-top: 5px; padding-bottom: 15px; border-bottom: 1px solid #ffffff16; }
.backstage-tooltip-heading { display: flex; justify-content: space-between; color: #b9b9bc; margin: 12px 0 10px; }
.backstage-tooltip-row { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; gap: 10px; align-items: start; margin-top: 9px; }
.backstage-tooltip-row b { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.backstage-tooltip-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; }
@media(max-width:1250px) { .command-top-actions .search { width: 180px; } .command-overview { grid-template-columns: minmax(0,1fr) 210px; } .command-forecast { background-size: 95px auto !important; } }
@media(max-width:950px) { .app { grid-template-columns: 175px minmax(0,1fr); } .command-overview { grid-template-columns: minmax(0,1fr); grid-template-areas:'heading' 'stats' 'performance' 'roster' 'alerts'; grid-template-rows: auto; } .command-overview .dashboard-alerts { margin-top: 16px; } .command-performance { grid-template-columns: 1fr; } .command-overview .crm-stats { grid-template-columns: repeat(2,minmax(0,1fr)); } }
:root .membership-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
:root .membership-grid article { background: #101010; border: 1px solid #303030; border-radius: 14px; padding: 20px; min-width: 0; }
:root .membership-grid h3 { margin: 0 0 16px; color: #e8cb76; }
:root .membership-grid dl { margin: 0; }
:root .membership-grid dl > div { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 1.3fr); gap: 16px; padding: 9px 0; border-bottom: 1px solid #232323; }
:root .membership-grid dt { color: #aaa; }
:root .membership-grid dd { margin: 0; overflow-wrap: anywhere; text-align: right; color: #eee; }
@media (max-width: 850px) { :root .membership-grid { grid-template-columns: 1fr; } }
