/* The 大厅 (2026-11-24, Elzat 「按这个做」 on the 最佳组合 canvas): a greeting with one sentence, 「公司现在」 as widgets - one
 * per room, a medium one for the person's main rooms, small ones for a glance - and 最近动态 (workspace.js wsDrawLobby).
 * After Apple's widgets: content, not icons; room colour only on the small round picture; numbers large, words plain;
 * amber where someone should look, red only for what is broken. Colours are the console's tokens (style.css,
 * workspace.css), so light and dark follow the page. */
/* 2026-11-24 (Elzat 「页面缩放感觉有点奇怪」): the console's own scale - title 26 px like every page head, the sentence 15 px,
 * 12 px corners like the panels, numbers that do not shout; 4 columns down to 900 px wide (it jumped to 2 at 1100 px, so a
 * laptop at 125 % got full-width widgets) */
.lb2 { --lb2-gap: var(--s-3); --lb2-r: var(--r-md); max-width: 1200px; margin: 0 auto; }
.lb2-num, .lb2-tab td, .lb2-foot b { font-variant-numeric: tabular-nums; }

/* the greeting and the one sentence */
.lb2-hi { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin: 4px 0 16px; }
.lb2-hi-t { flex: 1 1 520px; min-width: 0; }
.lb2-hi h1 { margin: 0; font-size: var(--t-xl); line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.lb2-say { margin: 4px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.lb2-say a { color: var(--accent); font-weight: 600; }
.lb2-red { font-style: normal; color: var(--bad); font-weight: 600; }
.lb2-hi-r { display: flex; align-items: center; gap: 14px; }
.lb2-upd { color: var(--text-3); font-size: 13px; }
.lb2 .lb-look { margin: 0 0 12px; }

/* 提醒事项 (2026-11-24: below 公司现在, above 最近动态, at his word) */
.lb2-mine { margin-top: 22px; }
.lb2-mine[hidden] { display: none; }
/* 智能辅助 in one line (assist.js compact) */
.lb2-ai { margin: 0 0 14px; }
.lb2-ai:empty, .lb2-ai[hidden] { display: none; }
.as-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 16px; border-radius: 12px; background: var(--surface); color: var(--text-2); font-size: 14px; }
.as-line > span:not(.as-dot) { flex: 1 1 320px; min-width: 0; }
.as-line b { color: var(--text); }
.as-line .as-go { padding: 8px 14px; font-size: 14px; }
.as-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.as-dot.blue { background: var(--accent); } .as-dot.amber { background: var(--warn); } .as-dot.red { background: var(--bad); }

/* what waits, as rows (three things or more) */
.lb2-wait { margin: 0; padding: 4px 18px; border-radius: var(--lb2-r); background: var(--surface); box-shadow: var(--e-1); }
.lb2-rows { list-style: none; margin: 0; padding: 0; }
.lb2-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.lb2-row + .lb2-row { border-top: 1px solid var(--border); }
.lb2-row-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); }
.lb2-row-ic.wh { background: var(--wh-soft); color: var(--wh); } .lb2-row-ic.shop { background: var(--shop-soft); color: var(--shop); }
.lb2-row-ic.office { background: var(--office-soft); color: var(--office); } .lb2-row-ic.studio { background: var(--studio-soft); color: var(--studio); }
.lb2-row-ic.adm { background: var(--adm-soft); color: var(--adm); }
.lb2-row.amber .lb2-row-ic { background: var(--warn-soft); color: var(--warn); }
.lb2-row.red .lb2-row-ic { background: var(--bad-soft); color: var(--bad); }
.lb2-row-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lb2-row-t b { font-size: 14px; font-weight: 600; }
.lb2-row-t small { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb2-row.red .lb2-row-t b { color: var(--bad); }
.lb2-more { display: block; margin: 6px auto 10px; padding: 6px 14px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }

/* 公司现在: the widgets - 4 columns; a medium one takes 2, the warehouse person's own warehouse the whole row */
.lb2-h { margin: var(--s-2) 2px var(--s-3); font-size: var(--t-lg); font-weight: 700; letter-spacing: -0.01em; }
.lb2-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--lb2-gap); }
.lb2-wg { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: var(--lb2-r); background: var(--surface); box-shadow: var(--e-1); }
.lb2-s { grid-column: span 1; } .lb2-m { grid-column: span 2; } .lb2-l { grid-column: 1 / -1; }
/* depth and motion (design tokens, 2026-11-24): a widget arrives softly and lifts a little under the pointer */
.lb2-wg:not(.lb2-skel) { transition: transform var(--d) var(--ease), box-shadow var(--d) var(--ease); }
.lb2-wg.lb2-arrive { animation: lb2-in var(--d-slow) var(--ease) both; }
.lb2-wg.lb2-arrive:nth-child(2) { animation-delay: 40ms; } .lb2-wg.lb2-arrive:nth-child(3) { animation-delay: 80ms; }
.lb2-wg.lb2-arrive:nth-child(n+4) { animation-delay: 120ms; }
.lb2-wg:not(.lb2-skel):hover { transform: translateY(-2px); box-shadow: var(--e-2); }
@keyframes lb2-in { from { opacity: 0; transform: translateY(6px); } }
.lb2-wh { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; min-height: 28px; }
.lb2-wh b { font-size: 15px; font-weight: 700; }
a.lb2-wh:hover b { text-decoration: underline; }
a.lb2-wh:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.lb2-sub { color: var(--text-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lb2-chev { margin-left: auto; color: var(--text-3); font-size: 18px; line-height: 1; }
.lb2-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); }
.lb2-ic.wh { background: var(--wh-soft); color: var(--wh); } .lb2-ic.shop { background: var(--shop-soft); color: var(--shop); }
.lb2-ic.office { background: var(--office-soft); color: var(--office); } .lb2-ic.studio { background: var(--studio-soft); color: var(--studio); }
.lb2-ic.adm { background: var(--adm-soft); color: var(--adm); }
.lb2-num { font-size: var(--t-2xl); line-height: 1.05; font-weight: 650; letter-spacing: -0.01em; color: var(--text); }
.lb2-s .lb2-num { font-size: var(--t-xl); }
.lb2-cap { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.lb2-cap.amber, .lb2-line.amber, .lb2-line.amber .lb2-num { color: var(--warn); }
.lb2-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lb2-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; font-weight: 600; }
.lb2-line .lb-sys-light { align-self: center; }
.lb2-calm { margin: 0; font-size: 16px; font-weight: 600; color: var(--text); }
.lb2-none { grid-column: 1 / -1; padding: 20px; color: var(--text-3); font-weight: 500; font-size: 15px; }
.lb2-note { margin: 0; color: var(--text-3); font-size: 13px; line-height: 1.5; }
.lb2-note.red { color: var(--bad); }

/* 销售: today's number, the 7 days, then one row of cancellations and returns */
.lb2-split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; }
.lb2-split .lb2-cap { margin-top: 6px; }
.lb2-bars { flex: 0 1 220px; position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; align-items: end; height: 78px; padding-bottom: 20px; }  /* 56 px of bars + the label below */
.lb2-bars span { border-radius: 4px; background: var(--shop-soft); }
.lb2-bars span.on { background: var(--shop); }
.lb2-bars small { position: absolute; right: 0; bottom: 0; color: var(--text-3); font-size: 12px; line-height: 1; }
.lb2-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: auto; padding-top: 10px; font-size: 13.5px; border-top: 1px solid var(--border); color: var(--text-2); }
.lb2-foot b { font-size: 16px; font-weight: 650; color: var(--text); margin-right: 2px; }
.lb2-foot .amber, .lb2-foot .amber b { color: var(--warn); }
.lb2-foot .red { color: var(--bad); font-weight: 600; }
.lb2-foot a { margin-left: auto; padding: 4px 12px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: var(--t-sm); text-decoration: none; transition: background var(--d-fast) var(--ease); }
.lb2-foot a:hover { background: var(--accent); color: var(--on-accent); }
.lb2-mut { color: var(--text-3); font-size: 13px; }

/* 仓库: a small table; the warehouse person's own: three big numbers and the ways in */
.lb2-tab { width: 100%; border-collapse: collapse; }
.lb2-tab th, .lb2-tab td { padding: 7px 0; text-align: right; }
.lb2-tab thead th { padding-top: 0; color: var(--text-3); font-size: 13px; font-weight: 500; }
.lb2-tab th:first-child { text-align: left; }
.lb2-tab tbody tr { border-top: 1px solid var(--border); }
.lb2-tab tbody th { font-weight: 600; font-size: 14px; }
.lb2-tab td { font-size: 18px; font-weight: 650; }
.lb2-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lb2-trio > div { padding: 14px 16px; border-radius: 10px; background: var(--surface-2); }
.lb2-trio .lb2-cap { margin-top: 8px; }
.lb2-trio-n { grid-column: 1 / -1; font-size: 15px; }
.lb2-acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* 团队: faces, the online ones with a green dot */
.lb2-faces { display: flex; flex-wrap: wrap; gap: 6px; }
.lb2-face { position: relative; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); font-weight: 700; font-size: 14px; }
.lb2-face.on { background: var(--wh-soft); color: var(--wh); }
.lb2-face.on::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); border: 2px solid var(--surface); }
.lb2-say-s { font-weight: 600; }

/* while the numbers come: the widgets' own shape, breathing */
.lb2-skel { min-height: 130px; }
.lb2-skel span { display: block; height: 12px; border-radius: 6px; background: var(--surface-2); }
.lb2-skel span:first-child { width: 40%; height: 18px; } .lb2-skel span:nth-child(2) { width: 30%; height: 34px; } .lb2-skel span:nth-child(3) { width: 70%; }
.lb2-skel { animation: lb2-breathe 1.4s ease-in-out infinite; }
@keyframes lb2-breathe { 50% { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .lb2-skel { animation: none; } }

/* 最近动态 and 团队 */
.lb2-card { margin-top: var(--lb2-gap); padding: 16px 18px; border-radius: var(--lb2-r); background: var(--surface); box-shadow: var(--e-1); }
.lb2-card-h, .lb2-recent h2 { margin: 0; font-size: 15px; font-weight: 700; }
.lb2-recent-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.lb2-seg { display: flex; padding: 3px; border-radius: 10px; background: var(--surface-2); }
.lb2-seg button { border: 0; padding: 6px 14px; border-radius: 8px; background: transparent; font: inherit; font-size: 14px; color: var(--text-2); cursor: pointer; }
.lb2-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgb(20 24 34 / .12); }
.lb2-appr-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 8px; }
.lb2 .lb-appr { margin: 0; }
.lb2 .ap-kinds, .lb2 .ap-list { padding-left: 0; padding-right: 0; }
.lb2 .ap-kinds { padding-bottom: 0; }
.lb2 #today-feed { max-height: 360px; overflow: auto; }

/* 调整大厅 */
.lb2-tune { width: min(420px, calc(100vw - 32px)); padding: 22px 24px; border: 0; border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.lb2-tune::backdrop { background: var(--scrim); }
.lb2-tune h2 { margin: 0 0 4px; font-size: 18px; }
.lb2-tune-list { list-style: none; margin: 14px 0; padding: 0; }
.lb2-tune-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.lb2-tune-list label { display: flex; align-items: center; gap: 10px; font-weight: 600; min-height: 32px; }
.lb2-tune-list span { display: flex; gap: 6px; }
.lb2-tune-bar { display: flex; justify-content: space-between; gap: 10px; }

/* narrower: two columns, a medium widget the whole row; a phone: the small ones two by two */
@media (max-width: 900px) {
  .lb2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb2-m, .lb2-l { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .lb2-hi h1 { font-size: 24px; }
  .lb2-say { font-size: 15px; }
  .lb2-hi-r { width: 100%; justify-content: space-between; }
  .lb2-grid { gap: 12px; }
  .lb2-wg { padding: 14px; gap: 8px; }
  .lb2-num { font-size: 28px; }
  .lb2-s .lb2-num { font-size: 26px; }
  .lb2-trio { grid-template-columns: 1fr; }
  .lb2-foot a { margin-left: 0; }
}
