/* 首页、我的清单（今天）、等你定（L7，app/f_desk.py；内容总图 B6 版面、B7 颜色）。只管 .wrap.desk 里面，不碰别的页。
   满宽（左右 20px，手机 16px）；正文 15px，表格 14px，结论 17px，最小 13px；黑色只给字：底色、边框、标签、按钮都不用黑。
   行的类名照 B6（.acts > .act-row、.act-pick、.act-bar）：壳线的 components.css 有了同名的，这里的只在 .desk 里盖一层，不影响别的页。 */

.wrap.desk { max-width: none; margin: 0; font-size: var(--fs-base, 15px); line-height: 1.55; }      /* 左右留白照壳线的 --gutter（20px，手机 16px） */
.desk .desk-page { display: block; }

/* ① 页头：页名、一句结论、右边数据到哪天 */
.desk .pg-blk { background: none; border: 0; padding: 0; margin: 4px 0 14px; box-shadow: none; }
.desk .pg-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: end; margin: 6px 0 14px; }
.desk .pg-blk .pg-head { margin: 0; }
.desk .pg-head h1 { margin: 0; font-size: var(--fs-h1, 22px); font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.desk .pg-head h1 em { font-style: normal; color: var(--pop); font-family: var(--num); font-size: inherit; margin: 0 2px; vertical-align: 0; letter-spacing: 0; }
.desk .pg-head .say { grid-column: 1 / 2; margin: 0; font-size: var(--fs-say, 17px); font-weight: 600; color: var(--ink); line-height: 1.55; overflow-wrap: anywhere; }
.desk .pg-head .say em { font-style: normal; color: var(--pop); font-family: var(--num); }
.desk .pg-head .say a { color: var(--pop-ink); }
.desk .pg-tools { grid-column: 2 / 3; grid-row: 1 / 3; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.desk .pg-tools .asof, .desk .pg-tools .asof a { font-size: 13px; color: var(--mute); text-decoration: none; white-space: nowrap; }
.desk .pg-tools .asof a:hover { text-decoration: underline; }
.desk form.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0; }
.desk form.filters label { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--mute); }
.desk select.filter-select { height: 32px; font-size: 14px; border: 1px solid var(--line-strong, var(--line)); border-radius: 8px; padding: 0 8px; background: #fff; color: var(--ink); font-family: inherit; }

/* 块：白底、细边、圆角 10、块间 16 */
.desk section.blk { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 0 0 16px; }
.desk section.blk.pg-blk { background: none; border: 0; padding: 0; }
.desk section.blk.desk-plats { padding: 8px 12px; }
.desk .blk-h { display: flex; gap: 6px 14px; align-items: baseline; flex-wrap: wrap; }
.desk .blk-h h3 { margin: 0; font-size: 16px; font-weight: 600; }
.desk .blk-say { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.desk .blk-who { margin: 2px 0 8px; font-size: 13px; color: var(--mute); }
.desk .blk-who b { font-weight: 600; color: var(--mute); }
.desk .blk-none, .desk .nothing { margin: 6px 0; padding: 0; font-size: 14px; color: var(--mute); }
.desk .fine { font-size: 13px; color: var(--mute); line-height: 1.6; margin: 8px 0 0; }
.desk .note { font-size: 14px; }
.desk details.how { margin: 4px 0 16px; font-size: 13px; color: var(--mute); }
.desk details.how > summary { cursor: pointer; font-size: 14px; color: var(--mute); }
.desk details.how p { margin: 6px 0; line-height: 1.7; }

/* 平台条（等你定 INBOX.2）：页签的样子，选中＝浅橙底橙线 */
.desk .hub-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.desk .hub-tabs a { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; font-size: 15px; color: var(--ink); text-decoration: none; border-radius: 8px; border-bottom: 2px solid transparent; }
.desk .hub-tabs a:hover, .desk .hub-tabs a.on { background: var(--pop-soft); color: var(--pop-ink); border-bottom-color: var(--pop); }
.desk .hub-tabs small { font-size: 13px; color: var(--mute); }

/* 分组小标题 */
.desk .act-grp { display: flex; gap: 10px; align-items: baseline; margin: 14px 0 4px; padding: 0 0 6px; border-bottom: 2px solid var(--pop-line); font-size: 16px; font-weight: 600; }
.desk .act-grp:first-of-type { margin-top: 4px; }
.desk .act-grp small { font-size: 13px; font-weight: 400; color: var(--mute); }

/* ② 要做的事：一行一网格 —— 勾｜来源·店｜事＋为什么｜怎么做｜复核｜截止｜按钮 */
.desk .acts { display: block; }
/* 列宽和壳线同一个 --act-cols（components.css）：每一行、折起来的行、表头列宽一样（11/17：以前最后一列 auto，行和行之间「怎么做」跳 147px） */
.desk .act-row, .desk .acts-head { display: grid; grid-template-columns: var(--act-cols, 28px 140px minmax(0, 1.3fr) minmax(0, 1fr) 180px 72px 216px); gap: 4px 12px; align-items: start; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.desk .acts-head { padding: 0 12px 6px; font-size: 13px; color: var(--mute); font-weight: 600; }
.desk .act-row:last-child { border-bottom: 0; }
.desk .act-row:hover { background: #fcfbfa; }
.desk .act-row.is-done { color: var(--mute); }
.desk .act-row.is-later .act-what > b { font-weight: 500; }
.desk .act-pick { padding-top: 3px; }
.desk .act-pick input { width: 18px; height: 18px; accent-color: var(--pop); cursor: pointer; }
.desk .act-src { font-size: 13px; color: var(--mute); line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.desk .act-src .pf { display: inline-block; background: var(--gray-soft); color: var(--ink); border-radius: 5px; padding: 0 7px; margin: 0 6px 2px 0; font-size: 13px; font-weight: 600; line-height: 20px; }
.desk .act-src .act-shop { color: var(--ink); margin-right: 4px; }
.desk .act-src small { display: block; font-size: 13px; color: var(--weak); }
.desk .act-what { min-width: 0; overflow-wrap: anywhere; }
.desk .act-what > b { font-size: 15px; font-weight: 600; line-height: 1.45; }
.desk .act-why { margin: 2px 0 0; font-size: 13px; color: var(--mute); line-height: 1.55; }
.desk .act-how, .desk .act-check, .desk .act-due { font-size: 13px; color: var(--mute); line-height: 1.55; min-width: 0; overflow-wrap: anywhere; }
.desk .act-check span { display: inline-block; font-size: 12px; color: var(--weak); background: var(--gray-soft); border-radius: 4px; padding: 0 5px; margin-right: 5px; }
.desk .act-due { white-space: nowrap; color: var(--ink); }
.desk .act-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: flex-start; max-width: 300px; }
.desk .act-btns form { margin: 0; }
.desk .act-ev { font-size: 13px; color: var(--pop-ink); text-decoration: none; align-self: center; white-space: nowrap; }
.desk .act-ev:hover { text-decoration: underline; }
.desk details.act-in { position: relative; }
.desk details.act-in > summary { list-style: none; }
.desk details.act-in > summary::-webkit-details-marker { display: none; }
.desk details.act-in[open] { flex-basis: 100%; }
.desk details.act-in > form { display: flex; gap: 6px; margin-top: 6px; }
.desk details.act-in .in { flex: 1 1 auto; min-width: 140px; }
.desk details.act-sub { margin-top: 4px; font-size: 13px; color: var(--mute); }
.desk details.act-sub > summary { cursor: pointer; color: var(--pop-ink); }
.desk details.act-sub ol { margin: 4px 0 0; padding-left: 20px; }
.desk .act-words { display: grid; gap: 4px; margin-top: 6px; }
.desk .act-word { display: flex; gap: 8px; justify-content: space-between; align-items: center; padding: 4px 0; border-top: 1px solid var(--gray-soft); font-size: 14px; }
.desk .act-word small { color: var(--weak); font-size: 13px; margin-left: 6px; }
.desk .act-word form { display: flex; gap: 6px; margin: 0; }
.desk .act-grey { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px dashed var(--line); color: var(--mute); font-size: 14px; }
.desk .act-grey > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.desk .act-grey form { margin: 0; }
.desk .act-all { margin: 8px 12px 0; font-size: 14px; }
.desk .act-all a { color: var(--pop-ink); font-weight: 600; }

/* 折起来的：「点开看 N 条」15px 橙字浅橙底，一眼看得到（逐条清单第 3 条） */
.desk details.desk-more { margin: 8px 0 0; }
.desk details.desk-more > summary.more { display: inline-flex; gap: 10px; align-items: baseline; cursor: pointer; list-style: none; padding: 7px 14px; border-radius: 8px; background: var(--pop-soft); color: var(--pop-ink); font-size: 15px; font-weight: 600; }
.desk details.desk-more > summary.more::-webkit-details-marker { display: none; }
.desk details.desk-more > summary.more::after { content: none; }
.desk details.desk-more > summary.more small { font-size: 13px; font-weight: 400; color: var(--pop-ink); }
.desk details.desk-more[open] > summary.more { margin-bottom: 6px; }

/* 按钮（B7）：主按钮品牌橙；次按钮白底细边；轻按钮浅橙；不做、做不了白底红字 */
.desk .btn { display: inline-block; font-size: 14px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-strong, var(--line)); background: #fff; color: var(--ink); line-height: 1.35; white-space: nowrap; cursor: pointer; font-family: inherit; text-decoration: none; }
.desk .btn:hover { border-color: var(--pop-line); }
.desk .btn.go { background: var(--pop); border-color: var(--pop); color: #fff; }
.desk .btn.go:hover { filter: brightness(.96); }
.desk .btn.soft { background: var(--pop-soft); border-color: var(--pop-soft); color: var(--pop-ink); }
.desk .btn.warn { background: #fff; color: var(--red); border-color: var(--red-line, var(--red-soft)); }
.desk .btn.ghost { border-color: transparent; background: none; color: var(--mute); }
.desk .in { font-size: 14px; padding: 6px 9px; border: 1px solid var(--line-strong, var(--line)); border-radius: 8px; font-family: inherit; background: #fff; color: var(--ink); }
.desk .t { display: inline-block; font-size: 13px; font-weight: 500; border-radius: 4px; padding: 0 6px; line-height: 20px; vertical-align: 1px; }

/* 多选的操作条：勾了才出，粘在底下 */
.desk .act-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px -16px -14px; padding: 10px 16px; background: #fff; border-top: 2px solid var(--pop); border-radius: 0 0 10px 10px; box-shadow: 0 -6px 16px rgba(20, 20, 20, .06); }
.desk .act-bar[hidden] { display: none; }
.desk .act-bar .act-n { font-size: 15px; font-weight: 600; margin-right: 4px; }
.desk .act-bar .act-n b { color: var(--pop); font-family: var(--num); }
.desk .act-bar .in { flex: 1 1 200px; min-width: 160px; }
.desk .act-bar .act-to { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--mute); }
.desk .act-bar .btn.is-off { display: none; }

/* ③ 依据表 */
.desk .tbl { font-size: var(--fs-table, 14px); }
.desk .tbl th { font-size: 13px; }
.desk .tbl td, .desk .tbl th { padding: 7px 10px; }
.desk .tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.desk .desk-data { margin: 0; font-size: 15px; }
.desk .desk-data a { color: var(--pop-ink); }

/* 清单顶上、底下的几块（别的模块的小卡）：去掉卡片自己的外框，嵌在块里 */
.desk .desk-top .ft2-top { margin: 0; padding: 0; }
.desk .desk-top .ft2-k { font-size: 13px; }
.desk .desk-top .ft2-v { font-size: 15px; }
.desk .desk-foot > .card, .desk .desk-top > .card, .desk .desk-goal > .card { box-shadow: none; }
.desk .desk-daily h4 { margin: 12px 0 6px; font-size: 16px; font-weight: 600; display: flex; gap: 10px; align-items: baseline; }
.desk .desk-daily h4 small { font-size: 13px; font-weight: 400; color: var(--mute); }
.desk .desk-daily .dr-l { margin: 0 0 8px; padding-left: 20px; font-size: 14px; line-height: 1.7; }
.desk .desk-daily textarea.in { width: 100%; box-sizing: border-box; }
.desk .desk-daily .act-btns { justify-content: flex-start; margin-top: 6px; max-width: none; }

/* 窄屏：行竖排，按钮能按（最小高 36） */
@media (max-width: 1100px) {
  .desk .acts-head { display: none; }
  .desk .act-row { grid-template-columns: 28px 120px minmax(0, 1fr) minmax(0, 1fr) 200px; }
  .desk .act-check, .desk .act-due { grid-column: 3 / 5; }
}
@media (max-width: 760px) {
  .desk .pg-head { grid-template-columns: minmax(0, 1fr); }
  .desk .pg-tools { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .desk .act-row { grid-template-columns: 28px minmax(0, 1fr); padding: 10px 4px; }
  .desk .act-src, .desk .act-what, .desk .act-how, .desk .act-check, .desk .act-due, .desk .act-btns { grid-column: 2 / 3; }
  .desk .act-btns { justify-content: flex-start; max-width: none; }
  .desk .btn { min-height: 36px; }
  .desk .act-bar { margin: 10px -12px -14px; padding: 10px 12px; }
}

/* HOME.3 各处一句（11/17 复查）：「区」一列不折行（以前 1440 宽也是「店铺/体检」两行）；结论里引的数照 B6 橙字不斜体（<em> 原来是黑色斜体） */
.desk-briefs td:first-child, .desk-briefs th:first-child { white-space: nowrap; }
.desk-briefs td em { font-style: normal; color: var(--pop); font-weight: 600; }

/* ===== 11/17 视觉一遍（等你定＝决定卡；我的清单＝按急不急的色线、件数小牌、操作条；「昨天你的店」＝KPI 小格） ===== */
/* 等你定：一个平台一组，小标题＋件数小牌，下面决定卡 2 栏（主栏宽 3 栏、手机 1 栏，照壳线 .dgrid） */
.desk .dk-grp { align-items: center; border-bottom: 0; margin: 18px 0 10px; padding: 0; }
.desk .dk-grp:first-of-type { margin-top: 6px; }
.desk .dk-grp > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.desk .dk-grp > span:first-child::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pop); }
.desk .dk-week .dk-grp > span:first-child::before { background: var(--amber); }
.desk .dk-today .dk-grp .dgroup-n { background: var(--red-soft); color: var(--red); }
.desk .dk-week .dk-grp .dgroup-n { background: var(--amber-soft); color: var(--amber); }
.desk .dk-grid { margin: 0 0 4px; }
.desk .dk-card { font-size: 14px; }
.desk .dk-card .dcard-h { flex-wrap: nowrap; }
.desk .dk-card .dk-pick { flex: none; width: 17px; height: 17px; margin: 0 2px 0 0; accent-color: var(--pop); cursor: pointer; }
.desk .dk-card:has(.dk-pick:checked) { background: var(--pop-soft); border-color: var(--pop-line); }
.desk .dk-card .dcard-q { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.desk .dk-card .dcard-rec b { font-size: 15px; }
.desk .dk-card .dcard-note { margin: 0; font-size: 13px; color: var(--mute); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk .dk-card .dcard-f { margin-top: auto; }
.desk .dk-card .act-btns { max-width: none; justify-content: flex-start; }
.desk .dk-card .act-btns .btn { padding: 5px 11px; font-size: 13.5px; }
.desk .dk-card details.act-in[open] { flex-basis: 100%; }
.desk .dk-card details.act-sub { margin: 0; }
.desk .dk-card.is-done { opacity: .6; }
.desk .dk-today .act-bar, .desk .dk-week .act-bar { margin-top: 14px; }
/* 右栏：按平台（原 INBOX-2）一行一个平台，右边「今天 N」橙、「这周 M」灰 */
.rcol .rc-note { margin: 0 0 6px; font-size: 13px; color: var(--mute); line-height: 1.5; }
.rcol .rc-note b { font-weight: 600; }
.rcol .dk-plats .dk-pn { display: inline-flex; gap: 8px; align-items: baseline; margin-left: auto; }
.rcol .dk-plats .dk-pn b { color: var(--pop-ink); font-weight: 700; font-family: var(--num); font-size: 13.5px; }
.rcol .dk-plats .dk-pn small { color: var(--mute); font-size: 12.5px; }
.rcol .dk-plats a { display: flex; align-items: center; gap: 8px; }

/* 我的清单：分组小标题＝件数小牌；行左边 3px 色线（壳线 st-open 琥珀、st-redo/过期 红、st-wait 橙），操作条带橙顶线 */
.desk .desk-todo .act-grp { align-items: center; }
.desk .act-grp .dgroup-n { font-size: 13px; }
.desk .desk-todo .act-grp > small .dgroup-n { margin-right: 6px; }
.desk .act-row.st-open { box-shadow: inset 3px 0 0 var(--amber); }
.desk .act-row.st-redo, .desk .act-row.is-late { box-shadow: inset 3px 0 0 var(--red); }
.desk .act-row.st-done, .desk .act-row.st-skip { box-shadow: inset 3px 0 0 var(--line); }
.desk .act-row.is-later { box-shadow: inset 3px 0 0 var(--line-strong, var(--line)); }
.desk .act-row:has(.act-pick input:checked) { background: var(--pop-soft); }
.desk .act-bar { border-radius: 10px; margin-left: 0; margin-right: 0; border: 1px solid var(--pop-line); border-top: 2px solid var(--pop); }

/* 「昨天你的店」：一个店一格（店名、大数、比上周同日、推广花和占比），格子自己排几列；原来那一句整句放在格子的悬停提示里 */
.ft2-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; flex: 1 1 auto; min-width: 0; }
.ft2-kpi { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); min-width: 0; }
.ft2-kpi .k-l { font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft2-kpi .k-v { font-family: var(--num); font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.ft2-kpi .k-v.k-na { font-size: 15px; font-weight: 600; color: var(--mute); font-family: inherit; }
.ft2-kpi .k-d { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 12.5px; color: var(--mute); }
.ft2-kpi .k-c { font-weight: 600; border-radius: 999px; padding: 0 7px; line-height: 19px; background: var(--gray-soft); color: var(--ink); }
.ft2-kpi .k-c.up { background: var(--green-soft, #e6f4ea); color: var(--green, #1e7b3a); }
.ft2-kpi .k-c.down { background: var(--red-soft); color: var(--red); }
.ft2-row.ft2-shoprow { align-items: flex-start; }
@media (max-width: 640px) { .ft2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ft2-kpi .k-v { font-size: 19px; } }
