:root {
  --ink: #18233a;
  --nav: #17223a;
  --paper: #f4f3ef;
  --card: #fffefd;
  --line: #e7e4dd;
  --muted: #87909f;
  --orange: #f36c3d;
  --teal: #2b9f93;
  --red: #d9534f;
  --gold: #c8943a;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); color: var(--ink); font: 14px/1.5 Arial, "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }

.authPage { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 1.05fr) minmax(420px, .95fr); background: var(--nav); }
.authBrand { color: #fff; padding: 9vh 8vw; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(circle at 20% 15%, rgba(243,108,61,.24), transparent 38%), var(--nav); }
.brandLockup { display: flex; align-items: center; gap: 14px; }
.brandMark { width: 46px; height: 46px; border-radius: 14px; background: var(--orange); display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding-bottom: 11px; box-shadow: 0 14px 30px rgba(243,108,61,.3); }
.brandMark i { display: block; width: 5px; border-radius: 4px; background: #fff; }
.brandMark i:nth-child(1) { height: 13px; }.brandMark i:nth-child(2) { height: 24px; }.brandMark i:nth-child(3) { height: 18px; }
.brandLockup strong { display: block; font-size: 21px; }.brandLockup span { color: #9ca8ba; font-size: 12px; letter-spacing: 2px; }
.authCopy h1 { max-width: 560px; margin: 0 0 18px; font-size: clamp(34px, 4vw, 58px); line-height: 1.12; letter-spacing: -2px; }
.authCopy p { max-width: 520px; margin: 0; color: #b7c0ce; font-size: 15px; line-height: 1.9; }
.authFacts { display: flex; gap: 22px; color: #95a1b3; font-size: 12px; }.authFacts span::before { content: "✓"; color: #54c1ac; margin-right: 6px; }
.authPanel { margin: 30px; border-radius: 24px; background: #fff; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 36px; }
.authCard { width: min(430px, 100%); }
.authCard .eyebrow { color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.authCard h2 { margin: 9px 0 7px; font-size: 28px; }.authCard > p { margin: 0 0 25px; color: var(--muted); }
.field { display: grid; gap: 7px; margin-bottom: 15px; }.field > span { font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #dcd9d2; border-radius: 10px; background: #fff; padding: 11px 12px; color: var(--ink); outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43,159,147,.12); }
.fieldHint { color: #9ba2ad; font-size: 11px; }
.primary { border: 0; border-radius: 10px; background: var(--orange); color: #fff; padding: 11px 18px; font-weight: 700; box-shadow: 0 8px 20px rgba(243,108,61,.2); }
.secondary { border: 1px solid #dcd9d2; border-radius: 10px; background: #fff; color: var(--ink); padding: 10px 15px; }
.dangerButton { border: 1px solid #f0c7c4; border-radius: 8px; background: #fff5f4; color: var(--red); padding: 7px 10px; }
.fullButton { width: 100%; margin-top: 6px; }
.formError { border-radius: 9px; background: #fff0ef; color: #bd4d48; padding: 9px 11px; margin: 0 0 14px; font-size: 12px; }

.shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 232px; z-index: 5; background: var(--nav); color: #fff; padding: 25px 17px 20px; display: flex; flex-direction: column; }
.sidebarBrand { display: flex; align-items: center; gap: 11px; padding: 0 9px 23px; border-bottom: 1px solid rgba(255,255,255,.09); }.sidebarBrand .brandMark { width: 36px; height: 36px; border-radius: 11px; padding-bottom: 9px; }.sidebarBrand .brandMark i { width: 4px; }.sidebarBrand .brandMark i:nth-child(1) { height: 10px; }.sidebarBrand .brandMark i:nth-child(2) { height: 18px; }.sidebarBrand .brandMark i:nth-child(3) { height: 14px; }
.sidebarBrand strong { display: block; font-size: 16px; }.sidebarBrand small { display: block; color: #8591a4; font-size: 10px; letter-spacing: 1px; }
.nav { padding-top: 18px; flex: 1; }.navLabel { margin: 16px 11px 7px; color: #6e7b91; font-size: 9px; letter-spacing: 2px; }
.navButton { width: 100%; min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: #aab4c4; display: flex; align-items: center; gap: 11px; padding: 0 11px; text-align: left; }
.navButton:hover { background: rgba(255,255,255,.06); color: #fff; }.navButton.active { color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 3px 0 var(--orange); }
.navIcon { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; font-size: 10px; }.navButton.active .navIcon { border-color: var(--orange); background: var(--orange); }
.userCard { border-top: 1px solid rgba(255,255,255,.09); padding: 18px 4px 0; display: flex; align-items: center; gap: 9px; }.avatar { width: 34px; height: 34px; border-radius: 50%; background: #d5a763; display: grid; place-items: center; }.userCard strong { display: block; font-size: 12px; }.userCard small { display: block; color: #8290a3; font-size: 9px; }.userCard button { margin-left: auto; border: 0; background: transparent; color: #98a4b5; }
.workspace { min-height: 100vh; margin-left: 232px; width: calc(100% - 232px); max-width: 1660px; padding: 28px 32px 40px; display: flex; flex-direction: column; }
#page { flex: 1; }
.legalFooter { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; padding: 18px 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.legalFooter a { color: inherit; text-decoration: none; }
.legalFooter a:hover { color: var(--teal); }
.authPanel .legalFooter { align-self: end; justify-self: stretch; width: 100%; margin-top: 24px; color: #9aa2ad; }
.topbar { margin-bottom: 23px; display: flex; justify-content: space-between; align-items: center; }.eyebrow { margin: 0 0 4px; color: #969eaa; font-size: 11px; }.topbar h1 { margin: 0; font-size: 25px; }.topActions { display: flex; gap: 9px; }.topActions button { min-height: 38px; }

.metricGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 13px; }.metric { min-height: 126px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }.metric.dark { background: var(--nav); color: #fff; border-color: var(--nav); }.metricLabel { display: flex; justify-content: space-between; font-size: 12px; }.metricLabel small { color: #9ca5b2; }.metricValue { margin: 17px 0 8px; font-size: 25px; font-weight: 800; }.metricFoot { color: var(--teal); font-size: 10px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .85fr); gap: 13px; margin-top: 13px; }.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 19px; }.panelHeader { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 15px; }.panelHeader h2 { margin: 0 0 4px; font-size: 15px; }.panelHeader p { margin: 0; color: var(--muted); font-size: 11px; }
.empty { padding: 50px 20px; color: var(--muted); text-align: center; }.empty strong { display: block; margin-bottom: 5px; color: var(--ink); }
.quickList { display: grid; gap: 8px; }.quickItem { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #efede8; }.quickItem:first-child { border-top: 0; }.dateTile { width: 38px; height: 38px; border-radius: 10px; background: #fff0e9; color: var(--orange); display: grid; place-items: center; font-weight: 800; }.quickItem strong, .quickItem span { display: block; }.quickItem span { color: var(--muted); font-size: 10px; }.money { font-weight: 800; }
.stageBars { display: grid; gap: 13px; }.stageRow div:first-child { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 6px; }.bar { height: 7px; background: #eceae5; border-radius: 5px; overflow: hidden; }.bar i { display: block; height: 100%; min-width: 6%; border-radius: 5px; background: var(--teal); }
.bar i.w10 { width: 10%; }.bar i.w20 { width: 20%; }.bar i.w30 { width: 30%; }.bar i.w40 { width: 40%; }.bar i.w50 { width: 50%; }.bar i.w60 { width: 60%; }.bar i.w70 { width: 70%; }.bar i.w80 { width: 80%; }.bar i.w90 { width: 90%; }.bar i.w100 { width: 100%; }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }.search { min-width: 280px; flex: 1; max-width: 440px; border: 1px solid #dddad3; background: #fff; border-radius: 10px; padding: 10px 12px; }.toolbar .count { margin-left: auto; color: var(--muted); font-size: 12px; }
.creatorGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }.creatorCard { border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 15px; }.creatorCard.creatorAlertCard { border-color: #efc7c2; box-shadow: inset 3px 0 #d95d55; }.creatorTop { display: flex; align-items: center; gap: 10px; }.creatorAvatar { width: 39px; height: 39px; border-radius: 50%; display: grid; place-items: center; background: #f4dac8; color: #986348; font-weight: 800; }.creatorTop h3 { margin: 0; font-size: 13px; }.creatorTop p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }.activeBadge { margin-left: auto; color: var(--teal); background: #e8f5f2; border-radius: 9px; padding: 3px 7px; font-size: 9px; white-space: nowrap; }.activeBadge.alertBadge { color: #b34943; background: #fff0ee; }.creatorControls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; color: var(--muted); font-size: 10px; }.gradeSelect { width: 72px; border: 1px solid #d8d5ce; border-radius: 8px; background: #fff; padding: 6px 8px; font-size: 10px; font-weight: 800; }.gradeSelect.grade-S { color: #c65342; border-color: #edb5ab; background: #fff3f0; }.gradeSelect.grade-A { color: #9a6a1d; border-color: #ead4a7; background: #fff9e9; }.gradeSelect.grade-B { color: #467d75; border-color: #bcdad5; background: #f1faf8; }.accountGroup { margin-top: 12px; border: 1px solid #ebe8e1; border-radius: 10px; background: #faf9f6; padding: 10px; }.accountGroupHeader { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }.accountGroupHeader span { margin-left: auto; }.accountGroupHeader small { color: var(--teal); }.quoteGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }.quoteGrid > div { display: flex; align-items: center; justify-content: space-between; gap: 7px; border-radius: 7px; background: #fff; padding: 6px 7px; font-size: 9px; }.quoteGrid span { color: var(--muted); }.quoteGrid strong { font-size: 10px; }.verifiedQuote { color: var(--ink); }.pendingQuote { color: var(--orange); }.creatorDealMeta { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #efede8; font-size: 10px; }.creatorDealMeta span { color: var(--muted); }.creatorDealMeta strong { text-align: right; }.tags { margin: 11px 0 0; color: #89919e; font-size: 10px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.privateNote { margin: 11px 0 0; border: 1px solid #ead9b5; border-radius: 9px; background: #fffaf0; padding: 9px 10px; color: #765f32; font-size: 10px; }
.privateNote strong, .privateNote span { display: block; }
.privateNote strong { margin-bottom: 3px; color: #a17624; font-size: 9px; }
.privateNote span, .noteHint { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; }
.noteHint { color: #9a722b !important; }
.platform { display: inline-flex; border-radius: 8px; padding: 3px 6px; color: #d35a65; background: #f8e7e9; font-size: 9px; }.platform.xiaohongshu { color: #d34a42; background: #fde9e7; }.platform.douyin { color: #fff; background: #292929; }

.statsPanel { margin-top: 13px; }.statsToolbar select { border: 1px solid #dddad3; border-radius: 10px; background: #fff; padding: 10px 12px; color: var(--ink); }.tableWrap { overflow: auto; }.dataTable { min-width: 980px; }.creatorStatsTable { min-width: 1120px; }.clientTable { min-width: 1240px; }.tableRow { display: grid; align-items: center; gap: 10px; min-height: 55px; padding: 8px 7px; border-top: 1px solid #efede9; font-size: 11px; }.tableHead { min-height: 35px; border-top: 0; background: #f7f6f2; color: #89919d; font-size: 10px; }.dealCols { grid-template-columns: minmax(170px,1.3fr) 105px 75px 90px 90px 95px 80px 110px; }.clientCols { grid-template-columns: minmax(140px,1fr) 75px 90px 125px 90px minmax(130px,1fr) 175px 145px; }.creatorStatsCols { grid-template-columns: minmax(140px,1.2fr) 75px 90px 90px 150px 110px 90px 115px; }.memberCols { grid-template-columns: minmax(150px,1fr) 100px 100px 90px 90px 150px; }.auditCols { grid-template-columns: 120px 120px 120px 1fr 145px; }.alertRow { background: #fff8f6; }.cellMain strong, .cellMain span { display: block; }.cellMain span { color: var(--muted); font-size: 9px; margin-top: 3px; }.visitAlertText { color: var(--red) !important; font-weight: 700; }.visitOkText { color: var(--teal) !important; }.visitHistory { margin: 0; color: var(--muted); }.status { display: inline-flex; width: fit-content; border-radius: 9px; padding: 4px 7px; background: #edf4f8; color: #497895; font-size: 9px; }.status.outline { background: #f1eef8; color: #76619c; }.status.script { background: #fff3dc; color: #aa7621; }.status.draft { background: #e6f4f1; color: var(--teal); }.status.publish, .status.done { background: #e9f5ea; color: #4c8a54; }.status.creatorAlert { color: #b34943; background: #fff0ee; }.linkButton { width: fit-content; border: 0; background: transparent; color: var(--teal); padding: 6px 0; font-size: 10px; font-weight: 700; }.dangerLink { width: fit-content; border: 0; background: transparent; color: var(--red); padding: 6px 0; font-size: 10px; font-weight: 700; }.dangerLink:disabled { color: #b8b3ac; cursor: not-allowed; }
.rowActions { display: flex; align-items: center; gap: 6px; }.rowActions button { border: 1px solid #dedbd4; border-radius: 7px; background: #fff; padding: 6px 8px; font-size: 9px; }.rowActions .linkButton { border-color: #bddbd6; color: var(--teal); }.rowActions .dangerLink { border-color: #efc8c4; color: var(--red); }.rowActions .dangerLink:disabled { border-color: #dfdcd6; color: #b8b3ac; background: #f5f4f1; }

.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 11px; overflow: auto; }.kanbanColumn { min-height: 440px; border-radius: 13px; background: #ebe9e4; padding: 11px; }.kanbanHeader { display: flex; align-items: center; gap: 7px; padding: 5px 3px 11px; }.kanbanHeader b { margin-left: auto; background: #fff; border-radius: 8px; padding: 2px 7px; }.task { border-radius: 11px; background: #fff; padding: 12px; margin-bottom: 9px; box-shadow: 0 3px 12px rgba(22,34,55,.05); }.task h3 { margin: 9px 0 3px; font-size: 12px; }.task p { margin: 0 0 12px; color: var(--muted); font-size: 10px; }.taskMeta { display: flex; justify-content: space-between; color: #87909d; font-size: 9px; }.task button { width: 100%; margin-top: 11px; border: 0; border-radius: 8px; background: #eef4f3; color: var(--teal); padding: 7px; font-size: 10px; }

.settingsGrid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(320px,.75fr); gap: 13px; }.createMember { padding: 17px; border: 1px solid #eeeae4; border-radius: 12px; background: #faf9f6; }.formGrid { display: grid; gap: 12px; }.formGrid.two { grid-template-columns: 1fr 1fr; }.formGrid.three { grid-template-columns: repeat(3,1fr); }.formGrid .field { margin: 0; }.full { grid-column: 1 / -1; }.permissionNote { border-radius: 11px; background: #eef6f4; color: #537b75; padding: 12px; font-size: 11px; }

.modalBackdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(12,19,32,.58); backdrop-filter: blur(3px); }.modal { width: min(620px,100%); max-height: 92vh; overflow: auto; border-radius: 16px; background: #fff; box-shadow: 0 25px 80px rgba(8,15,27,.3); }.modal.wide { width: min(1080px,100%); }.modalHeader { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #ece9e3; background: #fff; }.modalHeader h2 { margin: 0 0 3px; font-size: 16px; }.modalHeader p { margin: 0; color: var(--muted); font-size: 10px; }.close { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f1f0ed; color: #747e8c; }.modalBody { padding: 19px 20px; }.modalActions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid #ece9e3; background: #fff; }
.dealItems { display: grid; gap: 10px; margin-top: 15px; }.dealItem { position: relative; display: grid; grid-template-columns: 1.2fr .8fr 1fr .8fr .8fr .8fr; gap: 8px; padding: 12px; border-radius: 11px; background: #f7f6f2; }.dealItem .field { margin: 0; }.removeItem { position: absolute; right: -5px; top: -6px; width: 23px; height: 23px; border: 0; border-radius: 50%; background: var(--red); color: #fff; }
#toast-root { position: fixed; right: 24px; bottom: 24px; z-index: 60; }.toast { border-radius: 10px; background: var(--nav); color: #fff; padding: 11px 15px; box-shadow: 0 14px 34px rgba(9,16,29,.24); }

@media (max-width: 1100px) {
  .metricGrid { grid-template-columns: repeat(2,1fr); }.creatorGrid { grid-template-columns: repeat(2,1fr); }.grid2, .settingsGrid { grid-template-columns: 1fr; }.kanban { grid-template-columns: repeat(4, 260px); }.dealItem { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 760px) {
  .authPage { grid-template-columns: 1fr; }.authBrand { display: none; }.authPanel { margin: 0; border-radius: 0; min-height: 100vh; padding: 24px; }
  .sidebar { width: 168px; padding: 20px 10px; }.sidebarBrand small, .navLabel, .userCard small { display: none; }.sidebarBrand { padding: 0 6px 20px; }.navButton { padding: 0 8px; }.workspace { margin-left: 168px; width: calc(100% - 168px); padding: 20px 13px; }.metricGrid, .creatorGrid { grid-template-columns: 1fr; }.topbar { align-items: flex-start; gap: 12px; }.topActions { flex-wrap: wrap; justify-content: flex-end; }.formGrid.two, .formGrid.three, .dealItem { grid-template-columns: 1fr; }.toolbar { flex-wrap: wrap; }.search { min-width: 100%; }
}
