* { box-sizing: border-box; margin: 0; }
html, body { min-height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; max-width: 100%; }
button, .button { cursor: pointer; }
button, .button, input, select, textarea { border: 1px solid var(--line); border-radius: var(--r-btn); }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--panel); color: var(--ink); padding: 8px 14px; }
button:hover, .button:hover { border-color: var(--line2); background: var(--row-hover); }
button:disabled { cursor: wait; opacity: .6; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
input, select, textarea { background: var(--panel); color: var(--ink); padding: 8px 10px; }
textarea { width: 100%; min-height: 180px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.7 var(--mono); }
h1 { font-size: 26px; line-height: 1.3; font-weight: 600; }
h2 { font-size: 15px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
strong { font-family: var(--num); }
ul { padding-left: 19px; }
li { padding: 6px 0; }
.muted, .pending { color: var(--ui-mut); font-size: 13px; }
.pending { margin-top: 6px; }
.portal { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; width: 232px; height: 100vh; display: flex; flex-direction: column; padding: 20px 12px 14px; background: var(--panel); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; height: 30px; flex: none; font-weight: 600; font-size: 15px; }
/* 侧栏品牌块（11/08 晚，老板更正）：仍是一行「WMIX 工作台」，「工作台」的字号与位置不动，只把 WMIX 字标放大到和「工作台」一样高。
   字标只缩放原图 site/brand/wmix-logo.png（1000×1067，透明边很大，字形墨迹在 x 172–830、y 485–582，即 658×97）：
   图按「墨迹 1px = --mark/97」缩放，负边距只是把透明边让出去（.brand-mark 裁掉），字形本身不动、不拉伸。
   --mark = 「工作台」字形墨迹高度 0.938em；字标底边压在「工作台」字形底边上（字形底在基线下 0.107em），等高所以顶边也齐。
   两个数是 PingFang SC Semibold 实测（PIL 读系统字体、浏览器复核：15px 时墨迹 14.07px，基线下 1.6px）。
   间距、左边照改前量的：字标右边到「工作台」3.2px（改前也是 3.2px），字标左边与搜索框左边齐（改前 12.3px，现在 12px）。 */
.brand-mark { --mark: .938em; display: inline-block; height: var(--mark); overflow: hidden; vertical-align: -.107em; margin: 0 3.2px 0 -8px; }
.brand-mark img { display: block; width: auto; max-width: none; height: calc(var(--mark) * 1067 / 97); margin: calc(var(--mark) * -485 / 97) calc(var(--mark) * -170 / 97) 0 calc(var(--mark) * -172 / 97); }
.find { display: flex; align-items: center; gap: 8px; margin: 16px 0 14px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-btn); color: var(--ui-mut); font-size: 13px; flex: none; }
.find kbd, .ask kbd { margin-left: auto; font: 13px var(--sans); }
.sidebar nav { display: flex; flex-direction: column; gap: 0; overflow-y: auto; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--r-btn); color: var(--nav-muted); flex: none; }
.sidebar nav a:hover { background: var(--row-hover); }
.sidebar nav a.on { background: var(--nav-background); color: var(--ink); font-weight: 600; }
.sidebar nav a[draggable="true"] { cursor: grab; }
.sidebar nav a.is-dragging { opacity: .45; }
.sidebar nav.is-saving a[data-path] { cursor: progress; }  /* 保存顺序期间不可拖（site/nav.js 上锁） */
.nav-status { display: block; min-height: 0; padding: 0 10px; font-size: 13px; color: var(--ui-mut); }
.nav-status:empty { display: none; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.me { position: relative; margin-top: auto; border-top: 1px solid var(--line); padding: 12px 8px 0; display: flex; gap: 10px; align-items: center; }
.me > i { width: 32px; height: 32px; border-radius: var(--r-round); background: var(--ink); color: var(--panel); display: grid; place-items: center; font-style: normal; font-size: 13px; flex: none; }
.identity { min-width: 0; }
.me b { display: block; font-size: 13px; font-weight: 600; }
.me span { font-size: 13px; color: var(--ui-mut); }
#logout { margin-left: auto; flex: none; padding: 7px; border: 0; color: var(--ui-mut); background: var(--clear); }
#logout-status { position: absolute; bottom: 60px; right: 0; max-width: 208px; background: var(--panel); color: var(--ui-red); font-size: 13px; }
.main-content { margin-left: 232px; flex: 1; min-width: 0; }
.hero { position: relative; padding: 52px 48px 44px; border-bottom: 1px solid var(--line); background: var(--portal-hero); }
.hero small { color: var(--ui-mut); font-size: 13px; }
.hero h1 { font-size: 40px; line-height: 1.2; font-weight: 700; letter-spacing: .5px; margin: 6px 0 20px; max-width: calc(100% - 180px); }
.hero .ask { width: 400px; max-width: calc(100% - 180px); height: 40px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--portal-search-radius); display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--ui-mut); font-size: 13px; }
.hero img { position: absolute; right: 64px; top: 50%; transform: translateY(-50%); height: 120px; width: auto; opacity: .92; }
.wrap { padding: 28px 48px 48px; max-width: 1208px; }
.head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; }
.head h2 { font-size: 15px; font-weight: 600; }
.head span { font-size: 13px; color: var(--ui-mut); }
.head a { margin-left: auto; font-size: 13px; color: var(--ui-mut); flex: none; }
section { margin-bottom: 28px; }
.card { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-tile); }
.kpis, .metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 18px 20px; }
.kpi label { font-size: 13px; color: var(--ui-mut); }
.kpi b { display: block; font: 600 32px/1.25 var(--num); margin: 6px 0 2px; }
.kpi span { font-size: 13px; color: var(--ui-mut); }
.kpi-sub { display: block; font-size: 13px; color: var(--ui-mut); margin-bottom: 2px; }  /* 首页 V3：净成交卡里的「总成交 ¥…」 */
/* 首页 V3.1：卡内「比前日」一行（涨绿跌红，电脑版 / 手机版同一条）；7 日小折线只在电脑版出 */
.kpi-change { display: block; font-size: 13px; color: var(--ui-mut); margin-bottom: 2px; }
.kpi-change.up { color: var(--good); }
.kpi-change.down { color: var(--ui-red); }
.spark { display: block; width: 100%; height: 28px; margin: 6px 0 6px; color: var(--acc); overflow: visible; }
.spark polyline { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.apps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.app { padding: 16px; display: block; transition: border-color .15s; }
a.app:hover { border-color: var(--line2); }
.ic { width: 34px; height: 34px; border-radius: var(--portal-icon-radius); display: grid; place-items: center; margin-bottom: 12px; flex: none; }
.ic svg { width: 18px; height: 18px; }
.ic-blue { background: var(--acc-soft); color: var(--bili); }
.ic-amber { background: var(--ui-amber-soft); color: var(--ui-amber); }
.ic-green { background: var(--good-soft); color: var(--good); }
.ic-purple { background: var(--pill); color: var(--dy); }
.ic-rose { background: var(--ui-red-soft); color: var(--xhs); }
.ic-neutral { background: var(--pill); color: var(--ui-mut); }
.app b { display: block; font-weight: 600; font-size: 13px; }
.app span { font-size: 13px; color: var(--ui-mut); }
.row { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.dot { width: 7px; height: 7px; border-radius: var(--r-round); flex: none; }
.dot-stock { background: var(--ui-red); }
.dot-ads, .dot-data { background: var(--ui-amber-dot); }
.dot-other { background: var(--ui-faint); }
.row b { font-weight: 600; font-size: 13px; }
.row p { font-size: 13px; color: var(--ui-mut); margin-left: 2px; }
.row em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--ui-mut); flex: none; }
.empty-state { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; }
.empty-state i { width: 38px; height: 38px; border-radius: var(--r-round); background: var(--tile); color: var(--ui-mut); display: grid; place-items: center; margin-bottom: 14px; }
.empty-state b { font-size: 13px; font-weight: 500; }
.empty-state span { font-size: 13px; color: var(--ui-mut); margin-top: 5px; }
/* 首页 V2（11/08 夜，只改 admin 电脑版「今天」）：手机（≤767px）只显示 .today-phone = 改前整页，见下方媒体查询 */
.today-phone { display: none; }
.hero-line { padding: 16px 48px; }
.hero-line small { font-size: 13px; }
.hero-line img { pointer-events: none; }
.trio-block .head form { display: flex; align-items: center; gap: 6px; margin: 0 0 0 8px; font-size: 13px; color: var(--ui-mut); }
.trio-block .head form input, .trio-block .head form button { height: 26px; font-size: 13px; }
.trio .kpi { padding: 20px 22px; }
.trio .kpi b { font-size: 40px; }
.lamps { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 2px 0; padding: 0; list-style: none; font-size: 13px; color: var(--ui-mut); }
.lamp { display: flex; align-items: center; gap: 6px; }
.lamp em { font-style: normal; font-size: 13px; color: var(--ui-mut); }
.lamp-ok .dot { background: var(--good); }
.lamp-part .dot { background: linear-gradient(90deg, var(--ui-amber-dot) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--ui-amber-dot); }  /* 半实心 = 部分，和「缺」的实心红一眼分开 */
.lamp-miss .dot { background: var(--ui-red); }
/* 首页 V3.1：七平台一行小卡（替代到齐灯，只在电脑版 ≥768px；≤767px 整块 .today-desktop 不显示，手机版维持原样）；灯色沿用上面三条 */
.pstrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.pcard { display: block; height: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); color: var(--ink); text-decoration: none; }
a.pcard:hover { background: var(--row-hover); }
.pcard-name { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ui-mut); }
.pcard-name em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--ui-mut); }
.pcard b { display: block; margin: 4px 0 2px; font: 600 17px/1.3 var(--num); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .kpi-change { margin: 0; font-size: 13px; }
/* 首页 V3.1：净成交构成条（小卡行下面，只电脑版）——段色用 tokens.css 已有平台色，不新造色；段上不写字 */
.mix { margin: 12px 2px 0; }
.mix-bar { display: flex; height: 8px; border-radius: var(--r-bar); overflow: hidden; background: var(--track); }
.mix-bar i { display: block; height: 100%; }
.mix-legend { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 6px 0 0; font-size: 13px; color: var(--ui-mut); }
.mix-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 2px; vertical-align: -0.5px; }
/* 段色类名按 PLATFORMS 序号：1 小红书 · 2 抖音 · 3 天猫 · 4 京东 · 5 微信 · 6 B站 · 7 淘宝 */
.mix-1 { background: var(--xhs); }
.mix-2 { background: var(--dy); }
.mix-3 { background: var(--tm); }
.mix-4 { background: var(--jd); }
.mix-5 { background: var(--wx); }
.mix-6 { background: var(--bili); }
.mix-7 { background: var(--tb); }
.desk-tag { flex: none; padding: 1px 8px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1.6; background: var(--pill); color: var(--ui-mut); }
.desk-tag-ads { background: var(--ui-amber-soft); color: var(--ui-amber); }
.desk-tag-supply { background: color-mix(in srgb, var(--dy) 12%, var(--panel)); color: var(--dy); }  /* 和投流台的橙分开 */
.desk-tag-home { background: var(--acc-soft); color: var(--acc); }
.desk-tag-finance { background: var(--good-soft); color: var(--good); }
.todo-merged .row p { color: var(--ink); }
.todo-merged a.row:hover { background: var(--row-hover); }
/* 首页 V3（11/09 晚，只改 admin 电脑版）：待我处理三层小标题、第一层（登录）红点、待核对灰显在卡底 */
.todo-layer { margin: 0; padding: 12px 20px 4px; font-size: 13px; font-weight: 500; color: var(--ui-mut); }
.todo-layer ~ .todo-layer { border-top: 1px solid var(--line); margin-top: 4px; }
.todo-layer + .row, .todo-layer + .pending + .row { border-top: 0; }
.dot-login { background: var(--ui-red); }
.desk-tag-login { background: var(--ui-red-soft); color: var(--ui-red); }
.today-desktop .todo-layer + .pending { margin: 0; padding: 2px 20px 8px; }
.today-desktop .todo-pending { margin: 0; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--ui-mut); }
/* 首页 V3：断货 / 要订块——表格紧凑、与投流台表同字号（全局 table 13px），底部超库存一行小字 */
.stock-block th, .stock-block td { padding: 9px 20px; }
.stock-block .pending, .stock-empty { margin: 0; padding: 14px 20px; }
.stock-empty { font-size: 13px; color: var(--ui-mut); }
.stock-over { margin: 0; padding: 10px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ui-mut); }
.empty-apps { padding: 24px; color: var(--ui-mut); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { font-weight: 500; color: var(--ui-mut); font-size: 13px; text-align: right; padding: 12px 20px; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
td { padding: 11px 20px; text-align: right; border-top: 1px solid var(--line); font-family: var(--num); }
td:first-child { font-family: var(--sans); }
tr:first-child td { border-top: 0; }
.bar { display: inline-block; height: 6px; border-radius: var(--r-bar); background: var(--ink); vertical-align: middle; margin-right: 8px; opacity: .82; }
.page-wrap { padding: 32px 36px 48px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-actions { display: flex; gap: 10px; align-items: flex-start; }
.publish-prompt { position: relative; }
.publish-prompt summary { font-size: 13px; list-style: none; white-space: nowrap; }
.publish-prompt summary::-webkit-details-marker { display: none; }
.publish-prompt[open] pre { position: absolute; right: 0; top: 44px; z-index: 5; width: 400px; max-width: 80vw; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--panel); box-shadow: var(--shadow-pop); }
.apps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.app-detail { padding: 18px; display: flex; flex-direction: column; }
.app-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.app-heading .ic { margin: 0; }
.app-identity { min-width: 0; }
.app-identity h3 { font-size: 14px; }
.app-address { display: block; color: var(--ui-mut); font-size: 13px; margin-top: 2px; word-break: break-all; }
.app-description { color: var(--ui-mut); font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.app-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; font-size: 13px; color: var(--ui-mut); }
.app-scope { color: var(--ui-mut); text-align: right; }
.compact-apps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.compact-app { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 13px; font-weight: 600; }
.compact-app .ic { margin: 0; }
.app-arrow { margin-left: auto; color: var(--ui-mut); }
.page-wrap > .card { padding: 22px; }
.page-wrap > .card p { margin-top: 8px; }
.page-wrap > .card + .card { margin-top: 20px; }
.page-wrap > .card h2 { margin-bottom: 14px; }
.metrics > .card { padding: 20px; }
.metrics strong { font-size: 32px; }
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.panels > .card { padding: 20px; }
.panels h2 { margin-bottom: 14px; }
.platform-metrics { margin-top: 12px; color: var(--ui-mut); font-size: 13px; }
#new-user { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
#new-user h3 { width: 100%; }
#new-user label { display: flex; flex-direction: column; gap: 5px; }
#agent-result { display: block; word-break: break-all; }
output { font-size: 13px; margin-left: 6px; }
.page-wrap li button { margin-left: 8px; }
.home-prompt { margin: -36px 48px 32px; color: var(--ui-mut); font-size: 13px; }
.home-prompt summary { cursor: pointer; }
.home-prompt p { padding: 12px 0; }
.custom-home { padding: 28px 36px 48px; }
iframe.homepage { width: 100%; border: 0; min-height: calc(100vh - 120px); display: block; background: var(--panel); }
.custom-home + .home-prompt { margin-top: -20px; }
.mock-note { color: var(--ui-mut); font-size: 13px; }
.main-content > .mock-note { display: block; margin: 0 36px 20px; }
.icp { margin: 0 36px 20px; color: var(--ui-mut); font-size: 13px; }
.icp a { color: inherit; }
.login-page > .icp { position: fixed; bottom: 16px; left: 0; right: 0; margin: 0; text-align: center; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 360px; max-width: 100%; padding: 40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.login-logo { height: 160px; width: auto; margin: -38px 0 -34px; }
.login-card h1 { font-size: 24px; }
.login-card p { font-size: 13px; color: var(--ui-mut); margin-top: 10px; }
.login-button { width: 100%; background: var(--ink); color: var(--panel); border-color: var(--ink); margin: 28px 0 16px; }
.login-button:hover { background: var(--nav-hover); color: var(--panel); }
.login-card .muted { font-size: 13px; }
@media (max-width: 767px) {
  .today-desktop { display: none; }
  .today-phone { display: block; }
  .home-page { display: block; }
  .home-page .sidebar { position: sticky; inset: auto; top: 0; width: 100%; height: 58px; padding: 0 16px; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .home-page .sidebar .brand { padding-left: 0; flex: none; }
  .home-page .sidebar .find, .home-page .sidebar nav { display: none; }
  .home-page .me { margin: 0 0 0 auto; padding: 0; border: 0; gap: 8px; }
  .home-page .me > i { width: 28px; height: 28px; }
  .home-page .me .identity span { display: none; }
  .home-page .identity { max-width: 72px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .home-page #logout-status { bottom: auto; top: 42px; }
  .home-page .main-content { margin-left: 0; }
  .hero { padding: 28px 20px; }
  .hero h1 { font-size: 28px; max-width: 100%; }
  .hero img { display: none; }
  .hero .ask { width: 100%; max-width: 100%; }
  .wrap { padding: 24px 16px 48px; }
  .head { flex-wrap: wrap; gap: 6px 10px; }
  .head span { flex-basis: auto; }
  .home-page .kpis { grid-template-columns: minmax(0, 1fr); }
  .home-page .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .kpi { padding: 16px 18px; }
  .home-page .row { padding: 14px; gap: 10px; }
  .home-page table { font-size: 13px; }
  .home-page th, .home-page td { padding: 10px 8px; white-space: nowrap; }
  .home-page .bar { max-width: 48px; }
  .home-prompt { margin-left: 16px; margin-right: 16px; }
  .custom-home { padding: 16px 16px 48px; }
  .tab-page .main-content { min-width: 960px; }
}

/* P1（11/15）：平静的灰色提示（红只给等拍板 / 亏），OKR 页说「下面是旧周期的目标」用 */
.note-bar { margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; background: var(--ui-soft); color: var(--ui-mut); border: 1px solid var(--ui-line); }
.alert-bar { margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; background: var(--ui-red-soft); color: var(--ui-red); border: 1px solid var(--ui-red-soft); font-weight: 600; }
.desk-head { margin: 0; }
.desk-head .desk-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.desk-head .desk-asof { display: block; margin-bottom: 16px; font-size: 13px; color: var(--ui-mut); }
.desk-section { margin-top: 24px; }
.desk-section > .card { padding: 18px 20px; }
.desk-pending { padding: 18px 20px; color: var(--ui-mut); font-size: 13px; }
/* 修 3：可收起的分区（<details class="desk-fold">，默认关闭） */
.desk-fold > summary { list-style: none; cursor: pointer; }
.desk-fold > summary::-webkit-details-marker { display: none; }
.desk-fold:not([open]) > summary { margin-bottom: 0; }
.desk-tri { flex: none; align-self: center; width: 0; height: 0; border-left: 6px solid var(--muted); border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .15s; }
.desk-fold[open] .desk-tri { transform: rotate(90deg); }
/* M2b 段 4：业务台分区 */
.desk-date { margin-bottom: 8px; }
.entry-pending span { color: var(--ui-mut); }
.ads-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 12px 4px 0; font-size: 13px; color: var(--ui-mut); }
.ads-total b { font: 600 18px/1.3 var(--num); color: var(--ink); }
.ads-total span { color: var(--ui-mut); }
tr.subtotal td { color: var(--ui-mut); border-top: 1px solid var(--line); }
td.pending { color: var(--ui-mut); }
/* 资料页 V2：产品线 → SKU 卡片（电脑 1440 为主，一行 4 张） */
.docs-head a, .docs-line-head a { color: var(--acc); }
.docs-note, .docs-sync-failed { margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; font-size: 13px; border: 1px solid var(--line); background: var(--panel); color: var(--ui-mut); }
.docs-sync-failed { background: var(--ui-amber-soft); color: var(--ui-amber); border-color: var(--ui-amber-soft); font-weight: 600; }
.page-wrap > .docs-line h2 { margin: 0; }
.docs-line-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.docs-line-head a { font-size: 13px; }
.docs-line-head a:first-of-type { margin-left: auto; }
.sku-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sku-card { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--panel); }
.sku-cover { display: block; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: var(--pill); }
.sku-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sku-cover-empty { display: grid; place-items: center; color: var(--ui-mut); font-size: 13px; }
.sku-card h3 { font-size: 14px; line-height: 1.4; }
.sku-card h3 a { color: var(--ink); }
.sku-folders { display: flex; flex-wrap: wrap; gap: 6px; }
.sku-folder { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid var(--line); border-radius: var(--r-btn); font-size: 13px; color: var(--ink); background: var(--panel); }
.sku-folder small { color: var(--ui-mut); font-size: 13px; }
a.sku-folder:hover { border-color: var(--line2); background: var(--row-hover); }
.sku-folder.is-missing { color: var(--ui-mut); background: var(--pill); border-style: dashed; }
.sku-docs, .sku-more ul { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.sku-docs li, .sku-more li { padding: 2px 0; }
.sku-more summary { cursor: pointer; font-size: 13px; color: var(--ui-mut); }
.sku-card.is-line-common { border-style: dashed; }
.sku-tag { align-self: flex-start; margin-top: -6px; padding: 1px 6px; border-radius: var(--r-btn); font-size: 13px; color: var(--ui-mut); background: var(--pill); }
.sku-ratios { margin: -4px 0 0; font-size: 13px; }
/* 资料页 V3（11/08）：标签行 +「全部」折叠块 / 单线视图 + 产品状态小标签 */
.docs-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.docs-tab { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font-size: 13px; text-decoration: none; user-select: none; }
.docs-tab:hover { border-color: var(--line2); background: var(--row-hover); }
.docs-tab.is-on { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.docs-tab-n { color: var(--ui-mut); font-size: 13px; }
.docs-tab.is-on .docs-tab-n { color: var(--line2); }
.docs-tabs[data-admin="1"] .docs-tab[draggable="true"] { cursor: grab; }
.docs-tab.is-dragging { opacity: .35; }
.docs-admin-status { display: block; margin: 0 0 14px; font-size: 13px; }
.docs-tabs + .docs-view { margin-top: 14px; }
.docs-view > .card { padding: 0; }
.docs-view > .card + .card { margin-top: 12px; }
.docs-view > section.card { padding: 22px; }
.docs-view > section.card h2 { margin-bottom: 14px; }
.docs-view > .docs-line h2 { margin: 0; }
.docs-fold > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 20px; cursor: pointer; }
.docs-fold > summary::-webkit-details-marker { display: none; }
.docs-fold > summary h2 { margin: 0; font-size: 16px; }
.docs-fold > summary .muted { font-size: 13px; }
.docs-fold > .sku-grid, .docs-fold > p { margin: 0; padding: 0 20px 20px; }
.docs-tri { width: 0; height: 0; border-left: 6px solid var(--muted); border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .15s; }
.docs-fold[open] .docs-tri { transform: rotate(90deg); }
.docs-status-sum { display: inline-flex; gap: 6px; margin-left: auto; }
.docs-line-head .docs-status-sum { margin-left: 0; }
.sku-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sku-badge { display: inline-block; padding: 1px 7px; border: 1px solid transparent; border-radius: 999px; font: inherit; font-size: 13px; line-height: 1.6; white-space: nowrap; background: var(--pill); color: var(--ui-mut); }
button.sku-badge { cursor: pointer; }
.sku-badge.is-pre { border-color: var(--line); }
.sku-badge.is-stop { background: var(--ui-red-soft); color: var(--ui-red); }
.sku-badge.is-season { background: var(--ui-amber-soft); color: var(--ui-amber); }
.sku-badge.is-add { background: var(--panel); border-color: var(--line); color: var(--ui-mut); visibility: hidden; }
.sku-card:hover .sku-badge.is-add, .sku-badge.is-add:focus-visible { visibility: visible; }
.sku-card.is-off { opacity: .62; }
.docs-status-menu { position: absolute; z-index: 20; display: flex; flex-direction: column; min-width: 120px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow-pop); }
.docs-status-menu[hidden] { display: none; }
.docs-status-menu button { padding: 6px 10px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.docs-status-menu button:hover, .docs-status-menu button.is-current { background: var(--acc-soft); }
/* 段 1 数据页样板（11/14）：台名下方二级导航（只给管理员）；选中数据页时框占满导航以下的可视高度、左右不留页边距，页面只留框内一层滚动 */
.desk-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: -8px 0 8px; border-bottom: 1px solid var(--line); }
.desk-tabs a { padding: 8px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--ui-mut); font-size: 14px; }
.desk-tabs a:hover { color: var(--ink); }
.desk-tabs a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.desk-overview[hidden], .desk-frame[hidden] { display: none; }
.main-content:has(> .desk-page.is-embed) { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.desk-page.is-embed { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 32px 0 0; }
.desk-page.is-embed > .desk-head, .desk-page.is-embed > .desk-tabs { margin-left: 36px; margin-right: 36px; }
.desk-page.is-embed > .desk-tabs { margin-bottom: 0; }
.desk-page.is-embed > .desk-frame { flex: 1; min-height: 0; }
.desk-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.desk-frame-note { margin: 20px 36px; padding: 18px 20px; color: var(--ui-mut); font-size: 13px; }
.desk-frame-note a { color: var(--ink); text-decoration: underline; }
/* 新品台（11/14，方案 A）：今日一行 + 每品一张卡 */
.launch-today { padding: 14px 20px; display: grid; gap: 6px; font-size: 14px; }
.launch-today p span { display: inline-block; min-width: 56px; margin-right: 8px; color: var(--ui-mut); font-size: 13px; }
.launch-calm { color: var(--ui-mut); font-size: 13px; }
.launch-cards { display: grid; gap: 14px; }
.launch-card { position: relative; padding: 16px 20px; }
/* 11/15 折叠：卡和卡里每段是 <details class="launch-fold">，三角沿用 .desk-tri */
.launch-fold > summary { list-style: none; cursor: pointer; }
.launch-fold > summary::-webkit-details-marker { display: none; }
.launch-fold[open] > summary .desk-tri { transform: rotate(90deg); }
.launch-fold > summary header .desk-tri { margin-right: -2px; }
.launch-group > summary { display: flex; align-items: center; gap: 6px; }
.launch-group > summary h3 { margin-bottom: 0; }
.launch-group[open] > summary { margin-bottom: 4px; }
.launch-card > .launch-plan { position: absolute; top: 14px; right: 20px; }
.launch-has-plan > .launch-card-fold > summary header { padding-right: 76px; }
.launch-card header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.launch-card header b { font-size: 16px; font-weight: 600; }
.launch-card header span { font-size: 13px; color: var(--ui-mut); }
.launch-verdict { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 99px; background: var(--tile); color: var(--ui-mut); }
.launch-verdict.launch-red { background: var(--ui-red-soft); color: var(--ui-red); }
.launch-verdict.launch-amber { background: var(--ui-amber-soft); color: var(--ui-amber); }
.launch-decided { margin-top: 6px; font-size: 13px; color: var(--ui-mut); }
.launch-entry-row { margin: 0 0 10px; }
.launch-entry, .launch-plan { font-size: 13px; color: var(--acc); text-decoration: none; padding: 2px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); }
.launch-entry:hover, .launch-plan:hover { border-color: var(--acc); }
.launch-task span .launch-moved { color: var(--ink); }
.launch-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.launch-mod { font-style: normal; font-size: 13px; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink); }
.launch-mod.launch-red { background: var(--ui-red-soft); border-color: var(--ui-red-soft); color: var(--ui-red); font-weight: 600; }
.launch-mod.launch-amber { background: var(--ui-amber-soft); border-color: var(--ui-amber); color: var(--ui-amber); font-weight: 600; }
.launch-mod.launch-done { color: var(--ui-mut); }
.launch-mod.launch-off { color: var(--ui-mut); text-decoration: line-through; }
.launch-group { margin-top: 12px; }
.launch-group h3 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.launch-group-red h3 { color: var(--ui-red); }
.launch-group-amber h3 { color: var(--ui-amber); }
.launch-group-me h3 { color: var(--acc); }
.launch-group ul, .launch-rest ul { list-style: none; padding: 0; margin: 0; }
.launch-task { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 6px 8px; border-radius: 6px; font-size: 13px; }
.launch-task span { color: var(--ui-mut); font-size: 13px; }
.launch-task.launch-me { background: var(--acc-soft); }
.launch-warn { color: var(--ui-amber); font-style: normal; font-weight: 600; }
.launch-rest { margin-top: 10px; font-size: 13px; color: var(--ui-mut); }
.launch-rest summary, .launch-launched > summary { cursor: pointer; }
.launch-launched { margin-top: 6px; font-size: 13px; color: var(--ui-mut); }
.launch-launched .launch-card { margin-top: 10px; }
.launch-foot { margin-top: 10px; font-size: 13px; color: var(--ui-mut); }
.launch-empty { min-height: 120px; }
/* 新品台顶部（11/15 规格五）：三个大数字、排期日历、卡头进度、已收档。颜色走 tokens.css 的 --launch-N。 */
.launch-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.launch-tile { padding: 14px 18px; }
.launch-tile b { display: block; font: 600 30px/1.1 var(--num); color: var(--ink); }
.launch-tile span { font-size: 13px; color: var(--ui-mut); }
.launch-tile em { font-style: normal; font-size: 13px; color: var(--ui-mut); margin-left: 6px; }
.launch-tile-red b { color: var(--ui-red); }
.launch-tile-amber b { color: var(--ui-amber); }
.launch-cal { padding: 12px 14px; scroll-margin-top: 12px; }
.launch-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* 日历头（11/15 晚老板「日期的方式可以更好」）：左边大月份 + 今天，右边三段按钮；下面一条 1–12 月的月份条 */
.launch-cal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.launch-cal-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.launch-cal-title h3 { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.launch-cal-title h3 b { font: 700 26px/1.1 var(--sans); color: var(--ink); }
.launch-cal-title h3 span { font-size: 15px; font-weight: 500; color: var(--ui-mut); }
.launch-cal-today-text { font-size: 13px; color: var(--ui-mut); }
.launch-cal-pager { display: inline-flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; }
.launch-cal-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 32px; padding: 0 12px; font-size: 14px; color: var(--ink); background: var(--panel); }
.launch-cal-btn + .launch-cal-btn { border-left: 1px solid var(--line2); }
a.launch-cal-btn:hover, a.launch-cal-m:hover, a.launch-cal-yr:hover { background: var(--row-hover); }
a.launch-cal-btn:active, a.launch-cal-m:active, a.launch-cal-yr:active { background: var(--line); }
.launch-cal-btn.is-off, .launch-cal-m.is-off, .launch-cal-yr.is-off { color: var(--ui-mut); opacity: .45; cursor: default; }
.launch-cal-strip { display: flex; align-items: center; gap: 4px; margin: 10px 0 10px; overflow-x: auto; }
.launch-cal-years { display: inline-flex; align-items: center; gap: 2px; margin-right: 8px; font-size: 13px; color: var(--ui-mut); white-space: nowrap; }
.launch-cal-yr { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 28px; border-radius: 6px; }
.launch-cal-m { position: relative; flex: 1 0 44px; display: inline-flex; align-items: center; justify-content: center; height: 28px; border-radius: 6px; font-size: 13px; color: var(--ink); background: var(--tile); }
.launch-cal-m.is-shown { background: var(--acc); color: var(--launch-on-acc); font-weight: 600; }
.launch-cal-m.is-today::after { content: ""; position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--acc); }
.launch-cal-m.is-shown.is-today::after { background: var(--launch-on-acc); }
.launch-cal-legend { margin-top: 8px; font-size: 13px; color: var(--ui-mut); }
.launch-cal-legend p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 4px 0 0; }
.launch-cal-table td.other { opacity: .45; }
.launch-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; background: var(--launch-c); }
.launch-swatch.is-plan { background: transparent; border: 1px dashed var(--launch-c); }
.launch-cal-table { width: 100%; min-width: 760px; table-layout: fixed; border-collapse: collapse; }
.launch-cal-table th { font-size: 13px; font-weight: 500; color: var(--ui-mut); text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); }
/* 周末两列叠一层极淡的底色（叠在过去 / 今天的底色上面，不顶掉它们；所以过去 / 今天只许写 background-color，写 background 简写会把这层清掉） */
.launch-cal-table th.we, .launch-cal-table td.we { background-image: linear-gradient(var(--launch-weekend), var(--launch-weekend)); }
.launch-cal-table td { vertical-align: top; height: 64px; padding: 4px 5px; border: 1px solid var(--line); }
.launch-cal-table tr.launch-cal-quiet td { height: 30px; }
.launch-cal-table td.past { background-color: var(--launch-past); }
.launch-cal-table td.today { background-color: var(--launch-today); }
.launch-cal-day { text-align: left; font: 13px/20px var(--num); color: var(--ui-mut); margin-bottom: 2px; }
.launch-cal-dot { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 10px; background: var(--acc); color: var(--launch-on-acc); font-weight: 700; }
/* 格子 td 继承了全站表格的右对齐和数字字体（base.css td 规则），小条一律靠左、用正文字体；日期数字不动 */
.launch-chip { text-align: left; font-family: var(--sans); font-size: 13px; line-height: 1.5; border-radius: 4px; padding: 0 5px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--launch-c); background: var(--launch-c-soft); color: var(--ink); }
.launch-chip span { color: var(--ui-mut); }
.launch-chip.is-done, .launch-chip.is-decided { color: var(--ui-mut); background: var(--tile); }
.launch-chip.is-decide { color: var(--ui-red); background: var(--ui-red-soft); font-weight: 600; }
.launch-chip.is-late, .launch-chip.is-blocked { color: var(--ui-amber); background: var(--ui-amber-soft); font-weight: 600; }
.launch-chip.is-plan { border: 1px dashed var(--launch-c); border-left-width: 3px; background: transparent; color: var(--ui-mut); }
.launch-chip.is-launch { background: var(--launch-c); color: var(--panel-solid); font-weight: 700; border-left-width: 0; }
/* 已收档的条：统一灰色调，左边色条留品色好对图例；开卖条也不再实心 */
.launch-chip.is-archived { color: var(--ui-mut); background: var(--tile); font-weight: 400; border-left: 3px solid var(--launch-c); }
.launch-c1 { --launch-c: var(--launch-1); --launch-c-soft: var(--launch-1-soft); }
.launch-c2 { --launch-c: var(--launch-2); --launch-c-soft: var(--launch-2-soft); }
.launch-c3 { --launch-c: var(--launch-3); --launch-c-soft: var(--launch-3-soft); }
.launch-c4 { --launch-c: var(--launch-4); --launch-c-soft: var(--launch-4-soft); }
.launch-c5 { --launch-c: var(--launch-5); --launch-c-soft: var(--launch-5-soft); }
.launch-c6 { --launch-c: var(--launch-6); --launch-c-soft: var(--launch-6-soft); }
.launch-progress { display: inline-flex; align-items: center; gap: 6px; }
.launch-progress-bar { display: inline-block; width: 72px; height: 5px; border-radius: 3px; background: var(--track); overflow: hidden; }
.launch-progress-bar i { display: block; height: 5px; background: var(--good); }
.launch-card header .launch-ready { color: var(--good); font-weight: 600; }
.launch-archive { margin-top: 14px; font-size: 13px; color: var(--ui-mut); }
.launch-archive > summary { cursor: pointer; }
.launch-archive ul { list-style: none; padding: 6px 0 0; margin: 0; display: grid; gap: 4px; }
.launch-archive b { color: var(--ink); margin-right: 8px; }
@media (max-width: 760px) { .launch-tiles { grid-template-columns: 1fr; } }

@media (max-width: 767px) {
  .report-picker .xn-pk {
    position: fixed; inset: auto 8px 8px; max-height: 82vh; overflow-y: auto;
    flex-direction: column; z-index: 50;
  }
  .report-picker .xn-pk-short { display: flex; flex-direction: row; flex-wrap: wrap; }
  .report-picker .xn-pk-cal { padding: 8px; }
  .report-picker .xn-pk-months { gap: 6px; }
  .report-picker .xn-pm { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .report-picker .xn-pd { padding: 0; font-size: 12px; }
}
