/* 只放这个原型自己的布局；颜色、字号、间距一律用 tokens.css 的 --ls-* 变量，组件优先用 components.css */
:root { --side-w: 248px; --top-h: 64px; --tab-h: 64px; --act-h: 76px; --side-bg: var(--ls-stone-900); --side-fg: #F3F1EC; --side-muted: #A9A39A; }
body { font-family: var(--ls-font-sans); }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.25; }
a { color: var(--ls-bronze); }
button { font-family: inherit; }
[hidden] { display: none !important; }
.i { font-size: 19px; line-height: 1; flex: none; display: inline-block; vertical-align: -0.15em; }
.i-sm { font-size: 16px; }
.ls-tag .i { font-size: 14px; }
/* 预留滚动条的位置：内容变长出现滚动条时，整个界面不会突然往左跳 */
html { scrollbar-gutter: stable; }
.bellpanel__list, .side, .overlay { scrollbar-gutter: stable; }
.muted { color: var(--ls-stone-600); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── 外框 ── */
.app { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--side-bg); color: var(--side-fg); display: flex; flex-direction: column; padding: 24px 12px 16px; gap: 4px; }
.side__logo { display: block; width: 188px; margin: 4px 12px 28px; }
.side__logo img { width: 100%; height: auto; display: block; }
.side__group { font-size: var(--ls-text-xs); color: var(--side-muted); margin: 20px 12px 6px; }
.nav { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--ls-radius-sm); color: var(--side-muted); text-decoration: none; font-size: var(--ls-text-sm); font-weight: 500; transition: background var(--ls-dur-fast), color var(--ls-dur-fast); }
.nav:hover { background: var(--ls-stone-800); color: var(--side-fg); }
.nav[aria-current="page"] { background: var(--ls-stone-800); color: var(--side-fg); }
.nav[aria-current="page"] .i { color: var(--ls-champagne); }
.nav__count { margin-left: auto; font-family: var(--ls-font-mono); font-size: var(--ls-text-xs); color: var(--ls-champagne); }
.nav--locked { opacity: .45; cursor: not-allowed; }
.nav--locked:hover { background: none; color: var(--side-muted); }
.nav--locked .lock { margin-left: auto; width: 14px; height: 14px; }
.side__mewrap { margin-top: auto; position: relative; padding-top: 12px; border-top: 1px solid var(--ls-stone-800); }
.side__me { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 56px; border: 0; background: none; color: var(--side-fg); text-align: left; cursor: pointer; border-radius: var(--ls-radius-sm); font: inherit; }
.side__me:hover, .side__me[aria-expanded="true"] { background: var(--ls-stone-800); }
.side__me:focus-visible { outline: 2px solid var(--ls-tally); outline-offset: 2px; }
.side__me .grow { flex: 1; min-width: 0; }
.side__me strong { display: block; font-size: var(--ls-text-sm); font-weight: 600; }
.side__me .grow > span { font-size: var(--ls-text-xs); color: var(--side-muted); }
.side__me > .i { color: var(--side-muted); }
.umenu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: var(--ls-stone-800); border: 1px solid var(--ls-stone-700); border-radius: var(--ls-radius-md); box-shadow: var(--ls-shadow-2); padding: 6px; z-index: 5; animation: rise var(--ls-dur) var(--ls-ease); }
.umenu__label { font-size: var(--ls-text-xs); color: var(--side-muted); padding: 6px 10px 4px; }
.umenu__item { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border: 0; background: none; color: var(--side-fg); text-align: left; border-radius: var(--ls-radius-sm); cursor: pointer; text-decoration: none; font: inherit; }
.umenu__item:hover { background: var(--ls-stone-700); }
.umenu__item:focus-visible { outline: 2px solid var(--ls-tally); outline-offset: -2px; }
.umenu__item .grow { flex: 1; min-width: 0; }
.umenu__item strong { display: block; font-size: var(--ls-text-sm); font-weight: 600; }
.umenu__item .grow > span { font-size: var(--ls-text-xs); color: var(--side-muted); }
.umenu__item[aria-checked="true"] > .i { color: var(--ls-champagne); }
.umenu__sep { height: 1px; background: var(--ls-stone-700); margin: 6px 4px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 32px; background: color-mix(in srgb, var(--ls-paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ls-stone-200); }
.crumb { display: flex; align-items: center; gap: 8px; font-size: var(--ls-text-sm); color: var(--ls-stone-600); min-width: 0; }
.crumb a { color: var(--ls-stone-600); text-decoration: none; }
.crumb a:hover { color: var(--ls-bronze); }
.crumb strong { color: var(--ls-ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.search { position: relative; width: 260px; margin-right: 8px; }
.search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ls-stone-400); }
.search .ls-input { padding-left: 38px; min-height: 40px; font-size: var(--ls-text-sm); background: var(--ls-stone-50); }
.iconbtn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--ls-ink); border-radius: var(--ls-radius-sm); cursor: pointer; text-decoration: none; }
.iconbtn:hover { background: var(--ls-stone-200); }
.iconbtn:focus-visible { outline: 2px solid var(--ls-tally); outline-offset: 2px; }
.badge { position: absolute; top: 6px; right: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ls-ink); color: var(--ls-paper); font: 500 11px/18px var(--ls-font-mono); text-align: center; }
/* 页面宽度：内容整体置中，宽屏 / 带鱼屏不会全挤在左边。
   一般页面最宽 1600；看板和日历（full）铺满可用宽度；通知和设置（narrow）最宽 960 */
.page { padding: 32px; width: 100%; max-width: 1840px; margin-inline: auto; }
.page--full { max-width: 2560px; }
.page--narrow { max-width: 960px; }
.top { padding-inline: max(32px, calc((100% - 1840px) / 2 + 32px)); }
.homegrid { display: block; }
@media (min-width: 1500px) {
  .homegrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 32%); gap: 40px; align-items: start; }
  .homegrid__side .cards-m { display: none; }
  .homegrid__side .rows { display: block; border-top: 1px solid var(--ls-stone-200); }
  .vgrid { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (min-width: 2200px) {
  .page:not(.page--narrow) { padding-inline: 48px; }
  .stats .stat b { font-size: var(--ls-text-2xl); }
}
.board .col { flex: 1 0 240px; }
.drive { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ls-text-sm); color: var(--ls-stone-600); }
.ls-input--sm { min-height: 36px; font-size: var(--ls-text-sm); width: auto; min-width: 160px; padding: 0 8px; }

/* 铃铛下拉栏 */
.bellwrap { position: relative; }
.bellpanel { position: absolute; right: 0; top: calc(100% + 8px); width: 400px; background: var(--ls-paper); border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-md); box-shadow: var(--ls-shadow-2); z-index: 50; animation: rise var(--ls-dur) var(--ls-ease); overflow: hidden; }
.bellpanel__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--ls-stone-200); font-size: var(--ls-text-sm); }
.bellpanel__head .ls-btn { margin-left: auto; }
.bellpanel__list { max-height: 420px; overflow-y: auto; }
.bellpanel .nrow { padding: 12px 16px; grid-template-columns: 32px 1fr auto; gap: 12px; }
.bellpanel .nrow .nic { width: 32px; height: 32px; }
.bellpanel__all { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-top: 1px solid var(--ls-stone-200); font-size: var(--ls-text-sm); font-weight: 600; color: var(--ls-ink); text-decoration: none; }
.bellpanel__all:hover { background: var(--ls-stone-100); color: var(--ls-bronze); }

/* 设置 */
.setcard { border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-md); background: var(--ls-stone-50); padding: 0 20px; }
.setrow { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; align-items: center; min-height: 60px; padding: 10px 0; border-bottom: 1px solid var(--ls-stone-200); font-size: var(--ls-text-sm); }
.setrow:last-child { border-bottom: 0; }
.setrow__l { color: var(--ls-stone-600); font-weight: 600; }
.setrow__r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.setrow__r .ls-input { max-width: 360px; }
.setcard .pref:last-child { border-bottom: 0; }
.setfoot { display: flex; gap: 8px; margin-top: 16px; align-items: center; flex-wrap: wrap; }
img.av { object-fit: cover; display: block; }

/* ── 页头 ── */
.phead { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.phead h1 { font-size: var(--ls-text-2xl); letter-spacing: -.01em; }
.phead__meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: var(--ls-text-sm); color: var(--ls-stone-600); }
.phead__meta span { display: inline-flex; align-items: center; gap: 6px; }
.phead__actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.kicker { font-size: var(--ls-text-xs); color: var(--ls-bronze); margin-bottom: 6px; }

/* ── 区块 ── */
.sec { margin-top: 32px; }
.sec__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sec__head h2 { font-size: var(--ls-text-lg); }
.sec__head .ls-btn--ghost { margin-left: auto; }
.count { font-family: var(--ls-font-mono); font-size: var(--ls-text-sm); color: var(--ls-stone-600); }

/* 统计条 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-md); background: var(--ls-stone-50); }
.stat { padding: 18px 20px; border-left: 1px solid var(--ls-stone-200); text-decoration: none; color: inherit; display: block; transition: background var(--ls-dur-fast); }
.stat:first-child { border-left: 0; }
.stat:hover { background: var(--ls-stone-100); }
.stat b { display: block; font: 500 var(--ls-text-xl)/1.1 var(--ls-font-mono); font-variant-numeric: tabular-nums; }
.stat span { font-size: var(--ls-text-sm); color: var(--ls-stone-600); }

/* 今天拍摄 */
.shootrow { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--ls-stone-900); color: var(--side-fg); border-radius: var(--ls-radius-md); text-decoration: none; }
.shootrow .ls-tag--live { background: transparent; border: 1px solid var(--ls-stone-700); color: var(--side-fg); }
.shootrow strong { font-size: var(--ls-text-md); font-weight: 600; }
.shootrow .sub { font-size: var(--ls-text-sm); color: var(--side-muted); }
.shootrow .go { margin-left: auto; color: var(--ls-champagne); }

/* 表格补充 */
.ls-table td a.rowlink { color: var(--ls-ink); text-decoration: none; font-weight: 600; }
.ls-table td a.rowlink:hover { color: var(--ls-bronze); }
.ls-table tbody tr { cursor: pointer; }
.ls-table .sub { display: block; font-size: var(--ls-text-xs); color: var(--ls-stone-600); font-weight: 400; }
.ls-table td.nowrap, .nowrap, .ls-table th { white-space: nowrap; }

/* 标签补充：剪辑中（古铜）、已交付（勾） */
.tag-bronze { background: color-mix(in srgb, var(--ls-bronze) 14%, transparent); color: var(--ls-bronze-deep); }
.tag-done { background: var(--ls-stone-200); color: var(--ls-stone-700); }
[data-theme="dark"] .tag-done { color: var(--ls-stone-400); }
.ls-tag .i { width: 13px; height: 13px; stroke-width: 2.2; }

/* 头像 */
.av { width: 28px; height: 28px; border-radius: 50%; background: var(--ls-bronze); color: var(--ls-paper); font: 600 11px/28px var(--ls-font-sans); text-align: center; flex: none; letter-spacing: .02em; }
.av--lg { width: 36px; height: 36px; line-height: 36px; font-size: 13px; }
.side .av { background: var(--ls-champagne); color: var(--ls-stone-900); }
.avs { display: inline-flex; }
.avs .av { box-shadow: 0 0 0 2px var(--ls-paper); }
.avs .av + .av { margin-left: -6px; }

/* 项目卡 */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.ls-card { display: block; text-decoration: none; color: inherit; }
.ls-card__thumb { display: flex; align-items: flex-end; padding: 14px 16px; }
.ls-card__thumb .ls-caps { font-size: 11px; color: #C9BFAE; }
.ls-card__body h3 { font-size: var(--ls-text-lg); }
.ls-card__body .client { font-size: var(--ls-text-sm); color: var(--ls-stone-600); margin-top: 2px; }
.progress { height: 4px; background: var(--ls-stone-200); margin: 14px 0 10px; position: relative; }
.progress i { position: absolute; inset: 0 auto 0 0; background: var(--ls-bronze); }
.cardfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--ls-text-sm); color: var(--ls-stone-600); }

/* 视图切换 */
.seg { display: inline-flex; border: 1px solid var(--ls-stone-300); border-radius: var(--ls-radius-sm); padding: 2px; gap: 2px; }
.seg button { border: 0; background: none; min-height: 38px; padding: 0 14px; font: 600 var(--ls-text-sm) var(--ls-font-sans); color: var(--ls-stone-600); border-radius: var(--ls-radius-sm); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ls-ink); color: var(--ls-paper); }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar select.ls-input { width: auto; min-width: 200px; min-height: 40px; font-size: var(--ls-text-sm); }

/* 看板 */
.board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.col { flex: 0 0 260px; background: var(--ls-stone-50); border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-md); }
.col__head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: var(--ls-text-sm); font-weight: 600; border-bottom: 1px solid var(--ls-stone-200); }
.col__head .count { margin-left: auto; font-size: var(--ls-text-xs); }
.col__body { padding: 8px; display: grid; gap: 8px; min-height: 64px; }
.vcard { display: block; text-decoration: none; color: inherit; background: var(--ls-paper); border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-sm); padding: 12px; transition: border-color var(--ls-dur-fast), transform var(--ls-dur) var(--ls-ease); }
.vcard:hover { border-color: var(--ls-bronze); transform: translateY(-1px); }
.vcard strong { display: block; font-size: var(--ls-text-sm); font-weight: 600; line-height: 1.4; }
.vcard .proj { font-size: var(--ls-text-xs); color: var(--ls-stone-600); margin-top: 2px; }
.vcard__foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: var(--ls-text-xs); color: var(--ls-stone-600); }
.vcard__foot .ls-num { margin-left: auto; }
.late { color: var(--ls-danger); display: inline-flex; align-items: center; gap: 4px; }
.cmt { display: inline-flex; align-items: center; gap: 4px; }

/* 日历 */
.cal { border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-md); overflow: hidden; }
.cal__head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--ls-stone-200); background: var(--ls-stone-50); }
.cal__head h2 { font-size: var(--ls-text-lg); font-family: var(--ls-font-mono); font-weight: 500; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__dow { padding: 8px 10px; font-size: var(--ls-text-xs); color: var(--ls-stone-600); border-bottom: 1px solid var(--ls-stone-200); font-weight: 600; }
.cal__cell { min-height: 112px; padding: 6px; border-right: 1px solid var(--ls-stone-200); border-bottom: 1px solid var(--ls-stone-200); display: flex; flex-direction: column; gap: 4px; }
.cal__cell:nth-child(7n) { border-right: 0; }
.cal__cell .d { font: 500 var(--ls-text-xs) var(--ls-font-mono); color: var(--ls-stone-600); padding: 2px 4px; }
.cal__cell.out .d { color: var(--ls-stone-400); }
.cal__cell.today .d { background: var(--ls-ink); color: var(--ls-paper); align-self: flex-start; border-radius: var(--ls-radius-sm); }
.ev { display: block; font-size: var(--ls-text-xs); padding: 4px 6px; border-radius: var(--ls-radius-sm); background: var(--ls-stone-200); color: var(--ls-ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev:hover { background: var(--ls-stone-300); }
.ev--shoot { background: var(--ls-ink); color: var(--ls-paper); }
.agenda { display: none; }

/* 影片详情 */
.vgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.pipe { display: flex; border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-md); overflow-x: auto; background: var(--ls-stone-50); }
.pipe__step { flex: 1 0 auto; min-width: 88px; padding: 12px 10px; font-size: var(--ls-text-xs); color: var(--ls-stone-400); border-right: 1px solid var(--ls-stone-200); position: relative; font-weight: 600; text-align: center; }
.pipe__step:last-child { border-right: 0; }
.pipe__step.done { color: var(--ls-stone-600); }
.pipe__step.cur { color: var(--ls-paper); background: var(--ls-ink); }
.pipe__step .n { display: block; font: 500 10px var(--ls-font-mono); margin-bottom: 2px; opacity: .7; }
.review { border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-md); overflow: hidden; }
.review__frame { aspect-ratio: 2.39 / 1; background: linear-gradient(150deg, #8E7F6B, #2A2622); position: relative; display: grid; place-items: center; color: #F3F1EC; }
.review__frame .play { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid rgba(243, 241, 236, .7); display: grid; place-items: center; background: rgba(27, 25, 22, .25); }
.review__frame .tc { position: absolute; left: 14px; bottom: 12px; font: 500 var(--ls-text-xs) var(--ls-font-mono); color: #C9BFAE; }
.review__frame .ver { position: absolute; right: 14px; top: 12px; font: 500 var(--ls-text-xs) var(--ls-font-mono); color: #C9BFAE; }
.vrow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--ls-stone-200); font-size: var(--ls-text-sm); }
.vrow .ver { font: 500 var(--ls-text-sm) var(--ls-font-mono); width: 32px; }
.vrow .grow { flex: 1; min-width: 0; }
.vrow .ls-btn { margin-left: auto; }
.meta { border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-md); background: var(--ls-stone-50); }
.meta dl { margin: 0; }
.meta__row { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--ls-stone-200); font-size: var(--ls-text-sm); align-items: center; }
.meta__row:last-child { border-bottom: 0; }
.meta__row dt { color: var(--ls-stone-600); }
.meta__row dd { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ls-stone-200); align-items: center; font-size: var(--ls-text-sm); }
.feed li:last-child { border-bottom: 0; }
.feed time { font: 400 var(--ls-text-xs) var(--ls-font-mono); color: var(--ls-stone-600); white-space: nowrap; }

/* 人员切换条 */
.people { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.people .chip { padding: 0 12px 0 6px; gap: 8px; }
.people .chip .av { width: 26px; height: 26px; line-height: 26px; font-size: 10px; }
.people .chip[aria-pressed="true"] .av { background: var(--ls-paper); color: var(--ls-ink); }

/* 制作进度拖动条 */
.stagebox { border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-md); background: var(--ls-stone-50); padding: 16px 28px 14px; margin-bottom: 24px; }
.stagebox__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--ls-text-sm); margin: 0 -12px 18px; }
.stage { position: relative; padding: 12px 0 0; cursor: pointer; touch-action: none; user-select: none; outline: none; }
.stage__rail { position: relative; height: 4px; background: var(--ls-stone-200); border-radius: 2px; }
.stage__fill { position: absolute; inset: 0 auto 0 0; background: var(--ls-ink); border-radius: 2px; transition: width var(--ls-dur) var(--ls-ease); }
.stage__dot { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ls-paper); border: 1.5px solid var(--ls-stone-300); transition: background var(--ls-dur-fast), border-color var(--ls-dur-fast); }
.stage__dot.draft { border-radius: 1px; transform: rotate(45deg); }
.stage__dot.on { background: var(--ls-ink); border-color: var(--ls-ink); }
.stage__thumb { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--ls-paper); border: 2px solid var(--ls-ink); box-shadow: var(--ls-shadow-1); transition: left var(--ls-dur) var(--ls-ease), transform var(--ls-dur-fast); }
.stage:hover .stage__thumb { transform: scale(1.08); }
.stage.dragging .stage__thumb, .stage.dragging .stage__fill { transition: none; }
.stage.dragging .stage__thumb { transform: scale(1.15); cursor: grabbing; }
.stage:focus-visible .stage__thumb { outline: 2px solid var(--ls-tally); outline-offset: 3px; }
.stage__labels { position: relative; height: 36px; margin-top: 14px; }
.stage__label { position: absolute; top: 0; transform: translateX(-50%); font-size: var(--ls-text-xs); color: var(--ls-stone-400); white-space: nowrap; font-weight: 500; transition: color var(--ls-dur-fast); }
.stage__label.first { transform: none; margin-left: -6px; }
.stage__label.last { transform: translateX(-100%); margin-left: 6px; }
.stage__label.done { color: var(--ls-stone-600); }
.stage__label.cur { color: var(--ls-ink); font-weight: 700; }
.stage__label .short { display: none; }

/* 组织架构 */
.org { border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-md); }
.org__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 12px 16px 12px calc(16px + var(--d) * 32px); border-bottom: 1px solid var(--ls-stone-200); position: relative; min-height: 64px; }
.org__row:last-child { border-bottom: 0; }
.org__row[style*="--d:1"]::before, .org__row[style*="--d:2"]::before, .org__row[style*="--d:3"]::before { content: ""; position: absolute; left: calc(16px + (var(--d) - 1) * 32px + 17px); top: 0; height: 50%; width: 14px; border-left: 1px solid var(--ls-stone-300); border-bottom: 1px solid var(--ls-stone-300); }
.org__load { display: flex; gap: 16px; font-size: var(--ls-text-sm); color: var(--ls-stone-600); align-items: center; }
.org__load b { color: var(--ls-ink); font-weight: 500; margin-right: 2px; }
.org__load .late b { color: var(--ls-danger); }
.sysrow td { color: var(--ls-stone-600); }
.empty { display: flex; align-items: center; gap: 10px; padding: 20px 16px; border: 1px dashed var(--ls-stone-300); border-radius: var(--ls-radius-md); color: var(--ls-stone-600); font-size: var(--ls-text-sm); }
.mbtn { width: 100%; border-left: 0; border-right: 0; border-top: 0; background: none; font: inherit; cursor: pointer; text-align: left; }
.mbtn[aria-pressed="true"] > .i { color: var(--ls-bronze); }

/* ── v004 新增 ── */
.offline { position: sticky; top: 0; z-index: 80; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; background: var(--ls-stone-900); color: #F3F1EC; font-size: var(--ls-text-sm); }
.offline .ls-btn--ghost { color: var(--ls-champagne); }
.stat--warn b { color: var(--ls-danger); }
.tag-hold { background: var(--ls-stone-200); color: var(--ls-stone-700); }
.is-hold { opacity: .55; }
tr.is-hold td { color: var(--ls-stone-600); }
.ls-card--closed .ls-card__thumb { filter: grayscale(1); opacity: .7; }
.ls-card__thumb { justify-content: space-between; }
.av--ghost { background: transparent !important; color: var(--ls-stone-600) !important; border: 1.5px dashed var(--ls-stone-400); line-height: 25px; }
.av--lg.av--ghost { line-height: 33px; }
.av--sys { background: var(--ls-stone-200) !important; color: var(--ls-stone-700) !important; display: inline-grid; place-items: center; }
.rows--always { display: block !important; border-top: 1px solid var(--ls-stone-200); }
.meetrow { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--ls-stone-200); }
.meetrow .grow { flex: 1; min-width: 0; }
.meetrow strong { display: block; font-weight: 600; font-size: var(--ls-text-sm); }
.meetrow .sub { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ls-text-xs); color: var(--ls-stone-600); margin-top: 2px; }
.meetrow__t { font-size: var(--ls-text-sm); min-width: 48px; color: var(--ls-ink); line-height: 1.3; }
.mlistbox { border-top: 1px solid var(--ls-stone-200); }
.homegrid__side .shootrow { margin-bottom: 8px; }
.empty .i { font-size: 22px; color: var(--ls-stone-400); }

/* 日历 */
.caltools { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.caltools .people { margin-bottom: 16px; }
.legend { margin-left: auto; display: flex; gap: 14px; font-size: var(--ls-text-xs); color: var(--ls-stone-600); }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.ev { display: flex; align-items: center; gap: 4px; }
.ev .i { font-size: 13px; flex: none; }
.ev--shoot { background: var(--ls-ink); color: var(--ls-paper); }
.ev--meet { background: color-mix(in srgb, var(--ls-bronze) 16%, transparent); color: var(--ls-bronze-deep); }
.ev--due { background: transparent; border: 1px dashed var(--ls-stone-300); color: var(--ls-stone-700); }
.evwho { display: inline-flex; flex: none; }
.evav { width: 18px; height: 18px; border-radius: 50%; background: var(--ls-champagne); color: var(--ls-stone-900); font: 600 9px/18px var(--ls-font-sans); text-align: center; box-shadow: 0 0 0 1.5px var(--ls-paper); }
.ev--shoot .evav { box-shadow: 0 0 0 1.5px var(--ls-ink); }
.evav + .evav { margin-left: -5px; }
.lanes { border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-md); overflow: hidden; }
.lanes__head, .lanes__row { display: grid; grid-template-columns: 200px repeat(var(--n), minmax(0, 1fr)); }
.lanes__head { background: var(--ls-stone-50); border-bottom: 1px solid var(--ls-stone-200); }
.lanes__corner { display: flex; align-items: center; gap: 2px; padding: 4px 8px; font-size: var(--ls-text-xs); }
.lanes__day { padding: 10px; border-left: 1px solid var(--ls-stone-200); font-size: var(--ls-text-xs); color: var(--ls-stone-600); display: flex; gap: 6px; align-items: baseline; }
.lanes__day b { font-size: var(--ls-text-md); color: var(--ls-ink); font-weight: 500; }
.lanes__day.today b { background: var(--ls-ink); color: var(--ls-paper); padding: 0 6px; border-radius: var(--ls-radius-sm); }
.lanes__row { border-bottom: 1px solid var(--ls-stone-200); min-height: 96px; }
.lanes__row:last-child { border-bottom: 0; }
.lanes__who { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--ls-stone-50); font-size: var(--ls-text-sm); }
.lanes__cell { border-left: 1px solid var(--ls-stone-200); padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.lanes__cell.today { background: color-mix(in srgb, var(--ls-champagne) 14%, transparent); }
.agwho { display: inline-flex; }
.agwho .av + .av { margin-left: -8px; box-shadow: 0 0 0 2px var(--ls-paper); }
.agic { width: 36px; height: 36px; border-radius: 50%; background: var(--ls-stone-200); display: grid; place-items: center; flex: none; }

/* 播放器 + Drive 留言 */
.review__frame .play { cursor: pointer; color: #F3F1EC; transition: transform var(--ls-dur-fast), background var(--ls-dur-fast); }
.review__frame .play:hover { transform: scale(1.06); background: rgba(27, 25, 22, .45); }
.review__frame .play .i { font-size: 22px; }
.review__frame.is-playing { background: #0E0D0B; }
.embed { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: #A9A39A; font-size: var(--ls-text-xs); }
.embed .i { font-size: 36px; color: #C9BFAE; }
.embed__bar { position: absolute; left: 16px; right: 16px; bottom: 16px; height: 3px; background: rgba(243, 241, 236, .2); }
.embed__bar i { display: block; height: 100%; width: 0; background: #F3F1EC; animation: playbar 58s linear forwards; }
@keyframes playbar { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .embed__bar i { animation: none; width: 30%; } }
.embed__close { position: absolute; top: 8px; right: 8px; color: #F3F1EC; }
.embed__close:hover { background: rgba(243, 241, 236, .12); }
.clist { border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-md); }
.crow { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-bottom: 1px solid var(--ls-stone-200); }
.crow:last-child { border-bottom: 0; }
.crow .grow { flex: 1; min-width: 0; }
.crow strong { font-size: var(--ls-text-sm); font-weight: 600; }
.crow p { margin: 2px 0 4px; font-size: var(--ls-text-sm); }
.crow .sub { font-size: var(--ls-text-xs); color: var(--ls-stone-600); }
.crow__ver { font-size: var(--ls-text-xs); color: var(--ls-bronze); border: 1px solid var(--ls-stone-300); border-radius: var(--ls-radius-sm); padding: 2px 6px; margin-top: 2px; }
.crow.is-done { opacity: .6; }
.side-stack { display: grid; gap: 16px; align-content: start; }
.meta__title { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 4px; font-size: var(--ls-text-xs); font-weight: 600; color: var(--ls-stone-600); }
.meta__title a { color: var(--ls-stone-600); }
.meta__dec { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 8px 16px; font-size: var(--ls-text-sm); border-top: 1px solid var(--ls-stone-200); }
.meta__dec:last-child { padding-bottom: 12px; }
.stagebox.is-hold { opacity: .7; }
.stage--off { cursor: not-allowed; }
.stage--off .stage__thumb { border-color: var(--ls-stone-400); }
.stage--off .stage__fill, .stage--off .stage__dot.on { background: var(--ls-stone-400); border-color: var(--ls-stone-400); }

/* 看板拖放 */
.vcard[draggable="true"] { cursor: grab; }
.vcard.dragging { opacity: .4; }
.col.over { border-color: var(--ls-bronze); background: color-mix(in srgb, var(--ls-champagne) 18%, var(--ls-stone-50)); }

/* 上传进度框（右下角，换页不中断） */
.tray { position: fixed; right: 24px; bottom: 24px; z-index: 65; width: 340px; background: var(--ls-paper); border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-md); box-shadow: var(--ls-shadow-2); padding: 12px 14px; }
.tray__head { display: flex; align-items: center; gap: 8px; font-size: var(--ls-text-sm); }
.tray__head strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray__head .iconbtn { width: 32px; height: 32px; margin: -6px -8px -6px 0; }
.tray__file { font-size: var(--ls-text-xs); color: var(--ls-stone-600); margin-top: 4px; }
.tray .bar { margin-top: 8px; }
.tray .bar i { transition: width 300ms linear; }
.tray__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: var(--ls-text-xs); min-height: 32px; }
.tray__state { display: inline-flex; align-items: center; gap: 6px; color: var(--ls-stone-600); }
.tray--quota .tray__state, .tray--auth .tray__state { color: var(--ls-danger); }
.tray--done .tray__state { color: var(--ls-success); }
.tray--paused .bar i { background: var(--ls-stone-400); }
.toast__undo { margin-left: 8px; border: 0; background: none; color: var(--ls-champagne); font: 600 var(--ls-text-sm) var(--ls-font-sans); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; min-height: 32px; padding: 0 6px; border-radius: var(--ls-radius-sm); }
.toast__undo:hover { background: rgba(243, 241, 236, .12); }

/* 弹层表单 */
.dialog--wide { max-width: 680px; }
.picks { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pick { min-height: 40px; gap: 8px; font-size: var(--ls-text-sm); }
.pick .av { width: 24px; height: 24px; line-height: 24px; font-size: 10px; }
.dlgline { margin: 0 0 16px; font-size: var(--ls-text-sm); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hostline { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--ls-text-sm); color: var(--ls-stone-600); }
.handrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ls-stone-200); font-size: var(--ls-text-sm); }
.handrow .grow { flex: 1; min-width: 0; }
.handrow strong { display: block; font-weight: 600; }
.handrow .sub { display: inline-flex; gap: 6px; align-items: center; font-size: var(--ls-text-xs); color: var(--ls-stone-600); }
.bigsearch { position: relative; max-width: 720px; }
.bigsearch .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ls-stone-400); font-size: 20px; }
.bigsearch .ls-input { padding-left: 44px; min-height: 52px; font-size: var(--ls-text-md); }

/* 拍板记录 */
.dwhat { font-weight: 600; color: var(--ls-ink); }
tr.overturned .dwhat { text-decoration: line-through; color: var(--ls-stone-400); font-weight: 400; }
.evi { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ls-text-sm); color: var(--ls-bronze); text-decoration: none; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evi:hover { text-decoration: underline; }
.evi--none { color: var(--ls-stone-400); }
.replaced { font-size: var(--ls-text-xs); color: var(--ls-stone-600); display: inline-flex; gap: 4px; align-items: center; margin-top: 2px; }
.dlist { display: none; }

/* 文件 */
.flist { border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-md); }
.frow { display: flex; align-items: center; gap: 12px; padding: 0 16px; min-height: 52px; border-bottom: 1px solid var(--ls-stone-200); font-size: var(--ls-text-sm); text-decoration: none; color: var(--ls-ink); }
.frow:last-child { border-bottom: 0; }
.frow:hover { background: var(--ls-stone-100); }
.frow .i { color: var(--ls-bronze); }
.frow .ls-num { margin-left: auto; color: var(--ls-stone-600); font-size: var(--ls-text-xs); }

/* 通知 */
.nlist { border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-md); }
.nrow { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--ls-stone-200); text-decoration: none; color: var(--ls-ink); font-size: var(--ls-text-sm); position: relative; }
.nrow:last-child { border-bottom: 0; }
.nrow:hover { background: var(--ls-stone-100); }
.nrow .nic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ls-stone-200); color: var(--ls-ink); }
.nrow.unread { background: var(--ls-stone-50); }
.nrow.unread .ntext { font-weight: 600; }
.nrow.unread::before { content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--ls-bronze); }
.nrow time { font: 400 var(--ls-text-xs) var(--ls-font-mono); color: var(--ls-stone-600); }
.ngroup { font-size: var(--ls-text-xs); color: var(--ls-stone-600); margin: 20px 0 8px; font-weight: 600; }
.prefs { display: grid; gap: 24px; max-width: 720px; }
.pref { display: grid; grid-template-columns: 1fr 72px 72px; align-items: center; gap: 8px; border-bottom: 1px solid var(--ls-stone-200); min-height: 52px; font-size: var(--ls-text-sm); }
.pref--head { font-size: var(--ls-text-xs); color: var(--ls-stone-600); font-weight: 600; min-height: 36px; }
.pref--head span:not(:first-child), .pref .ls-check { justify-self: center; }
.pref .name { display: inline-flex; align-items: center; gap: 10px; }
.pref.locked { color: var(--ls-stone-400); }
.pref.locked .ls-check { cursor: not-allowed; opacity: .5; }

/* 成员 */
.sync { display: inline-flex; align-items: center; gap: 8px; font-size: var(--ls-text-sm); color: var(--ls-stone-600); }
.sync .ok { color: var(--ls-success); }
.who { display: flex; align-items: center; gap: 10px; }
.who strong { display: block; font-weight: 600; }
.who div > span { font-size: var(--ls-text-xs); color: var(--ls-stone-600); font-family: var(--ls-font-mono); }
.mlist { display: none; }

/* 弹层 */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(27, 25, 22, .48); display: flex; flex-direction: column; overflow-y: auto; padding: 24px 16px; animation: fade var(--ls-dur) var(--ls-ease); }
.dialog { margin: auto; width: 100%; max-width: 560px; background: var(--ls-paper); border-radius: var(--ls-radius-md); box-shadow: var(--ls-shadow-2); animation: rise var(--ls-dur) var(--ls-ease); }
.dialog__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--ls-stone-200); }
.dialog__head h2 { font-size: var(--ls-text-lg); }
.dialog__head .iconbtn { margin-left: auto; margin-right: -10px; }
.dialog__body { padding: 20px; }
.dialog__foot { display: flex; gap: 8px; justify-content: flex-end; padding: 16px 20px; border-top: 1px solid var(--ls-stone-200); }
.drop { border: 1.5px dashed var(--ls-stone-300); border-radius: var(--ls-radius-md); padding: 28px 16px; display: grid; place-items: center; gap: 10px; text-align: center; background: var(--ls-stone-50); cursor: pointer; transition: border-color var(--ls-dur-fast); }
.drop:hover { border-color: var(--ls-bronze); }
.drop .i { font-size: 30px; color: var(--ls-bronze); }
.drop strong { font-size: var(--ls-text-md); }
.drop span { font-size: var(--ls-text-xs); color: var(--ls-stone-600); }
.file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-sm); font-size: var(--ls-text-sm); }
.file .grow { flex: 1; min-width: 0; }
.file .grow strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bar { height: 4px; background: var(--ls-stone-200); margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--ls-bronze); transition: width 300ms linear; }
.uopts { margin-top: 16px; display: grid; }
.uopts .ls-input { margin: 0 0 6px 30px; width: calc(100% - 30px); }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.formgrid .span2 { grid-column: span 2; }
.done-state { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 12px 0 4px; }
.done-state .tick { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ls-success) 14%, transparent); color: var(--ls-success); }
.done-state ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; font-size: var(--ls-text-sm); color: var(--ls-stone-600); }
.done-state li { display: flex; align-items: center; gap: 8px; justify-content: center; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; background: var(--ls-stone-900); color: #F3F1EC; padding: 12px 18px; border-radius: var(--ls-radius-sm); font-size: var(--ls-text-sm); display: flex; gap: 10px; align-items: center; box-shadow: var(--ls-shadow-2); animation: rise var(--ls-dur) var(--ls-ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.toast { animation-name: toastin; }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 8px); } }

/* 登录 */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login__brand { background: var(--ls-stone-900); color: #F3F1EC; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; }
.login__brand img { width: 220px; height: auto; display: block; }
.login__frame { position: absolute; left: 48px; right: 48px; top: 50%; aspect-ratio: 2.39 / 1; transform: translateY(-50%); border: 1px solid var(--ls-stone-700); }
.login__frame::before, .login__frame::after { content: ""; position: absolute; width: 18px; height: 18px; border-color: var(--ls-champagne); border-style: solid; }
.login__frame::before { left: -1px; top: -1px; border-width: 1.5px 0 0 1.5px; }
.login__frame::after { right: -1px; bottom: -1px; border-width: 0 1.5px 1.5px 0; }
.login__tc { font: 500 var(--ls-text-xs) var(--ls-font-mono); color: var(--ls-stone-500); position: relative; display: flex; justify-content: space-between; }
.login__form { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 6vw, 88px); max-width: 560px; }
.login__form h1 { font-size: var(--ls-text-2xl); margin-bottom: 8px; }
.login__form .sub { color: var(--ls-stone-600); margin: 0 0 32px; }
.gbtn { width: 100%; justify-content: center; min-height: 52px; font-size: var(--ls-text-md); }
.gbtn svg { width: 20px; height: 20px; }
.login .ls-alert { margin-bottom: 20px; }
.login__foot { margin-top: 40px; font-size: var(--ls-text-xs); color: var(--ls-stone-600); display: flex; gap: 16px; }
.login__demo { margin-top: 12px; }

/* 手机专用件：电脑上隐藏 */
.mtop, .mtab, .mact, .rows, .mview { display: none; }

/* ───────── 手机版（< 900px）：单独设计，不是压窄 ───────── */
@media (max-width: 899px) {
  .app { grid-template-columns: 1fr; }
  .side, .top { display: none; }
  .page { padding: 16px 16px calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); }
  .page.has-act { padding-bottom: calc(var(--tab-h) + var(--act-h) + 24px + env(safe-area-inset-bottom)); }
  .mtop { display: flex; position: sticky; top: 0; z-index: 30; height: 56px; align-items: center; gap: 8px; padding: 0 8px 0 16px; background: var(--ls-paper); border-bottom: 1px solid var(--ls-stone-200); }
  .mtop img { height: 28px; width: auto; display: block; }
  .mtop .back { margin-left: -12px; }
  .mtop__title { font-size: var(--ls-text-md); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mtop__right { margin-left: auto; display: flex; }
  .mtab { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--ls-stone-900); }
  .mtab a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #A9A39A; text-decoration: none; font-size: 11px; font-weight: 500; position: relative; }
  .mtab a[aria-current="page"] { color: #F3F1EC; }
  .mtab a[aria-current="page"] .i { color: var(--ls-champagne); }
  .mtab .badge { top: 6px; right: calc(50% - 22px); background: var(--ls-champagne); color: var(--ls-stone-900); }
  .mact { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); z-index: 35; padding: 12px 16px; background: color-mix(in srgb, var(--ls-paper) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--ls-stone-200); }
  .mact .ls-btn { flex: 1; justify-content: center; }
  .phead { margin-bottom: 16px; }
  .phead h1 { font-size: var(--ls-text-xl); }
  .phead__actions { display: none; }
  .sec { margin-top: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 14px 16px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--ls-stone-200); }
  .shootrow { padding: 14px 16px; gap: 12px; flex-wrap: wrap; }
  .hide-m { display: none !important; }
  .ls-table-wrap.cards-m { display: none; }
  .rows { display: block; border-top: 1px solid var(--ls-stone-200); }
  .pgrid { grid-template-columns: 1fr; gap: 16px; }
  .board { display: none; }
  .cal { display: none; }
  .agenda, .mview { display: block; }
  .vgrid { grid-template-columns: 1fr; gap: 20px; }
  .pipe-wrap { display: none; }
  .dtable { display: none; }
  .dlist, .mlist { display: block; }
  .mtable { display: none; }
  .search { display: none; }
  .formgrid { grid-template-columns: 1fr; }
  .formgrid .span2 { grid-column: auto; }
  .overlay { padding: 0; }
  .dialog { margin: auto 0 0; max-width: none; border-radius: var(--ls-radius-md) var(--ls-radius-md) 0 0; }
  .dialog__foot .ls-btn { flex: 1; justify-content: center; white-space: nowrap; padding: 0 12px; }
  .login { grid-template-columns: 1fr; }
  .login__brand { padding: 24px 16px; min-height: 0; }
  .login__brand img { width: 168px; }
  .login__frame, .login__tc { display: none; }
  .login__form { padding: 32px 16px 40px; justify-content: flex-start; }
  .toast { bottom: calc(var(--tab-h) + 16px); }
  .tray { left: 12px; right: 12px; width: auto; bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom)); }
  .has-act ~ .tray, body:has(.mact) .tray { bottom: calc(var(--tab-h) + var(--act-h) + 12px + env(safe-area-inset-bottom)); }
  .caltools { display: block; }
  .meetrow .ls-btn { padding: 0 10px; }
  .side-stack { gap: 12px; }
  .setcard { padding: 0 16px; }
  .setrow { grid-template-columns: 1fr; gap: 6px; padding: 12px 0; }
  .setrow__r .ls-input { max-width: none; }
  .setfoot .ls-btn { flex: 1; justify-content: center; }
  .people { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 16px; padding: 0 16px 2px; }
  .people::-webkit-scrollbar { display: none; }
  .people .chip { flex: none; }
  .stagebox { padding: 14px 20px 10px; margin-bottom: 20px; }
  .stagebox__head { margin: 0 -8px 16px; }
  .stage__label .full { display: none; }
  .stage__label .short { display: inline; }
  .stage__label { font-size: 11px; }
  .org__row { grid-template-columns: minmax(0, 1fr) auto; padding-left: calc(16px + var(--d) * 20px); gap: 8px 12px; }
  .org__row::before { left: calc(16px + (var(--d) - 1) * 20px + 17px) !important; width: 8px !important; }
  .org__load { grid-column: 1; gap: 12px; font-size: var(--ls-text-xs); padding-left: 46px; }
  .org__row > .ls-btn, .org__row > span:last-child { grid-column: 2; grid-row: 1 / span 2; }
}
.mrow { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ls-stone-200); text-decoration: none; color: var(--ls-ink); min-height: 64px; }
.mrow .grow { flex: 1; min-width: 0; }
.mrow strong { display: block; font-size: var(--ls-text-md); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .sub { display: block; font-size: var(--ls-text-xs); color: var(--ls-stone-600); margin-top: 2px; }
.mrow .end { display: grid; justify-items: end; gap: 6px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 0 16px 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--ls-stone-300); border-radius: var(--ls-radius-sm); background: none; font: 600 var(--ls-text-sm) var(--ls-font-sans); color: var(--ls-stone-600); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ls-ink); color: var(--ls-paper); border-color: var(--ls-ink); }
.chip .ls-num { font-size: var(--ls-text-xs); opacity: .8; }
.agenda__day { font: 500 var(--ls-text-xs) var(--ls-font-mono); color: var(--ls-stone-600); padding: 16px 0 6px; border-bottom: 1px solid var(--ls-stone-200); }
.agenda__day.today { color: var(--ls-ink); }
.mstatus { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-md); background: var(--ls-stone-50); }
.mstatus .sub { font-size: var(--ls-text-xs); color: var(--ls-stone-600); display: block; margin-bottom: 4px; }
@media (min-width: 900px) { .mstatus { display: none; } }

/* ═════════ v005 ═════════
   动画交给 GSAP（app.js），这里把 v004 的 CSS 关键帧关掉；
   长文本 / 多数据的处理；弹层横版；手机便当盒 */
.umenu, .bellpanel, .overlay, .dialog { animation: none; }

/* ── 长文本工具 ── */
.ell { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
span.ell, a.ell { display: inline-block; max-width: 100%; vertical-align: bottom; }
.clamp2, .clamp3, .clamp5 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; white-space: normal; }
.clamp2 { -webkit-line-clamp: 2; } .clamp3 { -webkit-line-clamp: 3; } .clamp5 { -webkit-line-clamp: 5; }
.wrap { overflow-wrap: anywhere; min-width: 0; }
h1, h2, h3, .dwhat, .crow p, .ntext, .feed__t, .meta__dec span, .meta__note, .toast__t, .dlgline { overflow-wrap: anywhere; }
.struck { text-decoration: line-through; color: var(--ls-stone-400); font-weight: 400 !important; }
/* 网格里的 1fr 改成 minmax(0,1fr)，长内容不会把整列撑破 */
.feed li { grid-template-columns: 28px minmax(0, 1fr) auto; }
.nrow { grid-template-columns: 36px minmax(0, 1fr) auto; }
.bellpanel .nrow { grid-template-columns: 32px minmax(0, 1fr) auto; }
.meta__row { grid-template-columns: 88px minmax(0, 1fr); }
.meta__row dd { min-width: 0; }
.meta__dec { grid-template-columns: 44px minmax(0, 1fr); }
.setrow { grid-template-columns: 140px minmax(0, 1fr); }
.setrow__r { min-width: 0; overflow-wrap: anywhere; }
.formgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ls-field .ls-input { max-width: 100%; min-width: 0; }
.who { min-width: 0; } .who > div { min-width: 0; }
.shootrow .grow { flex: 1; min-width: 0; }
.meetrow .sub { flex-wrap: wrap; }
.homegrid__main, .homegrid__side, .vgrid > *, .cgrid > * { min-width: 0; }
/* 表格：标题列可以两行，其他长字段省略 */
.tcell-title { min-width: 200px; max-width: 440px; }
.tcell-what { min-width: 260px; max-width: 560px; }
.tcell-mid { max-width: 200px; }
.replaced { display: flex; max-width: 100%; } .replaced .ell { min-width: 0; }
.evi .ell { min-width: 0; max-width: 180px; }
/* 顶栏：面包屑可以缩，搜索框不挤掉它 */
.crumb { flex: 1 1 0; }
.crumb a { flex: 0 1 auto; min-width: 3ch; max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb strong { flex: 0 1 auto; min-width: 0; }
.top__right { flex: none; }
@media (max-width: 1180px) { .search { width: 200px; } }
/* 页头：标题区可缩，按钮另起一行 */
.phead > div:first-child, .phead__main { min-width: 0; flex: 1 1 420px; }
.phead__meta { min-width: 0; }
.metalink { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; min-width: 0; max-width: 420px; }
.metalink:hover { color: var(--ls-bronze); }
.metaaddr { min-width: 0; max-width: 560px; }
.kicker { display: flex; align-items: center; gap: 6px; min-width: 0; }
.kicker a { color: var(--ls-bronze); text-decoration: none; max-width: 40ch; }
.kicker a:hover { text-decoration: underline; }
.kicker__sep { color: var(--ls-stone-400); }
/* 上传框、提示条 */
.tray__file { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray__state { min-width: 0; }
.toast { left: 16px; right: 16px; margin: 0 auto; width: max-content; max-width: calc(100vw - 32px); transform: none; animation: none; }
/* 进度条标签：格子名太长就省略 */
.stage__label .full { display: inline-block; max-width: 11ch; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }

/* ── 多数据 ── */
.av--more { background: var(--ls-stone-200) !important; color: var(--ls-stone-700) !important; font-family: var(--ls-font-mono); font-weight: 500; letter-spacing: 0; }
.evav--more { background: var(--ls-stone-300); font-family: var(--ls-font-mono); }
.morebtn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; margin-top: 8px; border: 1px dashed var(--ls-stone-300); border-radius: var(--ls-radius-md); background: none; color: var(--ls-stone-600); font: 600 var(--ls-text-sm) var(--ls-font-sans); cursor: pointer; transition: color var(--ls-dur-fast), border-color var(--ls-dur-fast); }
.morebtn:hover { color: var(--ls-bronze); border-color: var(--ls-bronze); }
/* 日历：一格最多 3 条，其余「+N 项」 */
.cal__cell { min-width: 0; }
.ev { display: flex; min-width: 0; }
.evt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev--more { border: 0; background: none; color: var(--ls-stone-600); font: 600 var(--ls-text-xs) var(--ls-font-sans); cursor: pointer; text-align: left; }
.ev--more:hover { color: var(--ls-bronze); background: var(--ls-stone-100); }
.lanes-wrap { overflow-x: auto; border-radius: var(--ls-radius-md); }
.lanes { min-width: 900px; }
.lanes__head, .lanes__row { grid-template-columns: minmax(120px, 180px) repeat(var(--n), minmax(0, 1fr)); }
.lanes__cell, .lanes__who { min-width: 0; }
/* 看板：每列自己滚，列头留在上面 */
.board .col { min-width: 0; display: flex; flex-direction: column; max-height: calc(100vh - 230px); }
.col__head { flex: none; }
.col__head .ell { min-width: 0; }
.col__body { overflow-y: auto; flex: 1; align-content: start; }
.col__none { color: var(--ls-stone-400); font-size: var(--ls-text-xs); padding: 6px; }
.vcard .proj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 人员切换条、选人列表 */
.chip__t { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picks--scroll { max-height: 200px; overflow-y: auto; padding: 4px 10px; border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-sm); }
.pick { min-width: 0; max-width: 100%; }
.pick .ell { max-width: 300px; }
.pickfilter { margin-bottom: 8px; max-width: 240px; }
.umenu__scroll { max-height: min(320px, calc(100vh - 380px)); overflow-y: auto; }
/* 组织树：任意层数都有连接线 */
.org__row:not([style*="--d:0"])::before { content: ""; position: absolute; left: calc(16px + (var(--d) - 1) * 32px + 17px); top: 0; height: 50%; width: 14px; border-left: 1px solid var(--ls-stone-300); border-bottom: 1px solid var(--ls-stone-300); }
/* 留言：已处理的收起 */
.crow--toggle { width: 100%; border: 0; background: var(--ls-stone-50); font: 600 var(--ls-text-sm) var(--ls-font-sans); color: var(--ls-stone-600); cursor: pointer; align-items: center; justify-content: center; gap: 6px; padding: 10px; }
.crow--toggle:hover { color: var(--ls-bronze); }
.crow--none { align-items: center; gap: 8px; font-size: var(--ls-text-sm); }
.mrow--top { align-items: flex-start; }
.mrow strong.clamp2, .mrow strong.clamp3 { white-space: normal; }
.bellpanel__empty { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 96px; color: var(--ls-stone-600); font-size: var(--ls-text-sm); }
/* 列表行 */
.frow__t { flex: 0 1 auto; min-width: 0; }
.frow__s { flex: 1 1 0; min-width: 0; font-size: var(--ls-text-xs); }
.frow .ls-num, .frow .ls-tag { flex: none; }
.plist { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.pitem { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.guests { gap: 6px; }
.gchip { padding: 2px 8px; background: var(--ls-stone-200); border-radius: var(--ls-radius-sm); font-size: var(--ls-text-xs); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.handhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.handlist { max-height: 320px; overflow-y: auto; }
.mrow__ctl { margin-top: 8px; }
.ls-input--block { width: 100%; min-width: 0; }

/* ── 客户 ── */
.filterbox { position: relative; width: min(420px, 100%); }
.filterbox .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ls-stone-400); }
.filterbox .ls-input { padding-left: 38px; min-height: 40px; font-size: var(--ls-text-sm); }
.cgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.sec--first { margin-top: 0; }
.cav { width: 36px; height: 36px; border-radius: var(--ls-radius-md); background: var(--ls-stone-200); color: var(--ls-stone-700); display: grid; place-items: center; flex: none; }
.contact { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--ls-stone-200); }
.contact--none { font-size: var(--ls-text-sm); }
.contact__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.contact__main strong { font-weight: 600; font-size: var(--ls-text-sm); }
.contact__main .sub { font-size: var(--ls-text-xs); color: var(--ls-stone-600); margin-bottom: 4px; }
.contact__line { display: flex; align-items: center; gap: 6px; font-size: var(--ls-text-sm); color: var(--ls-ink); text-decoration: none; min-width: 0; min-height: 28px; }
.contact__line:hover { color: var(--ls-bronze); }
.contact__acts { display: flex; align-self: flex-start; margin-right: -8px; }
.contact__acts .iconbtn { width: 36px; height: 36px; color: var(--ls-stone-600); }
.meta__title { min-height: 36px; gap: 8px; }
.meta__title .ls-btn { margin: -6px -8px -6px 0; }
.meta__note { padding: 4px 16px 14px; font-size: var(--ls-text-sm); }
@media (min-width: 900px) and (max-width: 1280px) { .cgrid { grid-template-columns: minmax(0, 1fr) 300px; } }

/* ── 弹层：横版 ── */
.overlay { padding: 24px; }
.dialog { display: flex; flex-direction: column; max-height: calc(100dvh - 48px); max-width: 880px; }
.dialog--sm { max-width: 680px; } .dialog--md { max-width: 880px; } .dialog--lg { max-width: 1080px; }
.dialog__head, .dialog__foot { flex: none; }
.dialog__head h2 { min-width: 0; flex: 1; }
.dialog__foot { background: var(--ls-paper); border-radius: 0 0 var(--ls-radius-md) var(--ls-radius-md); flex-wrap: wrap; }
.dialog__foot .ls-btn--ghost:first-child { margin-right: auto; }
.dialog__body { overflow-y: auto; min-height: 0; padding: 24px; }
.dialog__body--split { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); padding: 0; }
.dialog--lg .dialog__body--split { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); }
.dialog__aside { background: var(--ls-stone-50); border-right: 1px solid var(--ls-stone-200); padding: 24px; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: var(--ls-text-sm); }
.dialog__aside .ls-field { margin-bottom: 16px; }
.dialog__main { padding: 24px; min-width: 0; }
.aside__k { font-size: var(--ls-text-xs); color: var(--ls-stone-600); font-weight: 600; margin-bottom: 2px; }
.aside__big { font: 500 var(--ls-text-2xl)/1.1 var(--ls-font-mono); }
.fromto { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.formgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.formgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.formgrid .span3 { grid-column: 1 / -1; }
@media (min-width: 900px) and (max-width: 1100px) { .formgrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.drop--tall { width: 100%; flex: 1; min-height: 240px; }
.drop--done { border-style: solid; border-color: var(--ls-bronze); }
.uopts { margin-top: 4px; }
.uopts .ls-check { min-width: 0; }

/* ── 便当盒（手机主力；电脑上只有「更多」页会用到） ── */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bt { position: relative; background: var(--ls-paper); border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-md); padding: 14px 16px; min-width: 0; color: var(--ls-ink); text-decoration: none; display: flex; flex-direction: column; gap: 6px; font: inherit; text-align: left; }
a.bt, button.bt { cursor: pointer; transition: border-color var(--ls-dur-fast), transform var(--ls-dur-fast); }
a.bt:active, button.bt:active { transform: scale(.98); }
.bt--2 { grid-column: span 2; }
.bt__head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; min-width: 0; }
.bt__k { font-size: var(--ls-text-xs); font-weight: 600; color: var(--ls-stone-600); }
.bt__more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: var(--ls-text-xs); font-weight: 600; color: var(--ls-bronze); text-decoration: none; min-height: 32px; }
.bt__none { font-size: var(--ls-text-sm); padding: 6px 0; }
.bt--dark { background: var(--ls-stone-900); border-color: var(--ls-stone-900); color: #F3F1EC; }
.bt--dark .bt__k { color: var(--ls-champagne); }
.bt-today__date { margin-left: auto; font-size: var(--ls-text-xs); color: #A9A39A; }
.tline { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0; border: 0; border-top: 1px solid var(--ls-stone-800); background: none; color: inherit; text-decoration: none; font: inherit; text-align: left; width: 100%; cursor: pointer; min-width: 0; }
.tline__t { font-size: var(--ls-text-sm); color: var(--ls-champagne); min-width: 44px; }
.tline .i { color: #A9A39A; }
.tline__x { flex: 1; font-size: var(--ls-text-sm); font-weight: 600; }
.tline--none { color: #A9A39A; font-size: var(--ls-text-sm); cursor: default; }
.bt-stat, .bt-mini { min-height: 96px; justify-content: space-between; }
.bt-stat b { font: 500 34px/1 var(--ls-font-mono); font-variant-numeric: tabular-nums; }
.bt-stat span, .bt-mini span { font-size: var(--ls-text-xs); color: var(--ls-stone-600); }
.bt-stat.is-warn b { color: var(--ls-danger); }
.bt-next strong { font-size: var(--ls-text-md); font-weight: 600; line-height: 1.35; }
.bt-next .sub, .brow .sub { font-size: var(--ls-text-xs); color: var(--ls-stone-600); }
.bt-next__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.bt-next__d { font-size: var(--ls-text-sm); font-weight: 500; }
.brow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border: 0; border-top: 1px solid var(--ls-stone-200); text-decoration: none; color: inherit; min-width: 0; background: none; width: 100%; font: inherit; text-align: left; cursor: pointer; }
.brow .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.brow strong { font-size: var(--ls-text-sm); font-weight: 600; }
.brow__end { display: grid; justify-items: end; gap: 4px; flex: none; }
.brow.mbtn[aria-pressed="true"] > .i { color: var(--ls-bronze); }
.bt-mini > .i { font-size: 22px; color: var(--ls-bronze); }
.bt-mini b { font: 500 26px/1 var(--ls-font-mono); }
.bt-action { background: var(--ls-ink); color: var(--ls-paper); border-color: var(--ls-ink); }
.bt-action > .i { color: var(--ls-champagne); }
.bt-action span { color: var(--ls-paper); font-size: var(--ls-text-sm); font-weight: 600; }
.bt-nav { min-height: 104px; justify-content: space-between; }
.bt-nav > .i { font-size: 24px; color: var(--ls-bronze); }
.bt-nav__l { font-weight: 600; font-size: var(--ls-text-md); }
.bt-nav b { position: absolute; top: 14px; right: 16px; font: 500 22px/1 var(--ls-font-mono); }
.bt-nav--row { flex-direction: row; align-items: center; justify-content: flex-start; min-height: 56px; gap: 12px; }
.bt-nav--row .bt-nav__l { flex: 1; }
a.bt:hover, button.bt:hover { border-color: var(--ls-stone-300); }
.bt-action:hover, .bt--dark:hover { border-color: var(--ls-ink); }
/* 手机月历 */
.mcal__head { display: flex; align-items: center; gap: 2px; margin: -6px -8px 4px; }
.mcal__head strong { font-size: var(--ls-text-md); font-weight: 500; padding: 0 4px; }
.mcal__head .ls-btn { margin-left: auto; }
.mcal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.mcal__dow { text-align: center; font-size: 11px; color: var(--ls-stone-600); padding: 4px 0; font-weight: 600; }
.mcal__day { min-height: 44px; border: 0; background: none; border-radius: var(--ls-radius-md); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: var(--ls-text-sm); color: var(--ls-ink); cursor: pointer; padding: 4px 0; transition: background var(--ls-dur-fast); }
.mcal__day.out { color: var(--ls-stone-400); }
.mcal__day.today .ls-num { color: var(--ls-bronze); font-weight: 700; }
.mcal__day.sel { background: var(--ls-ink); color: var(--ls-paper); }
.mcal__day.sel.today .ls-num { color: var(--ls-champagne); }
.mcal__dots { display: flex; gap: 3px; height: 5px; }
.dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; flex: none; }
.dot--shoot { background: var(--ls-ink); }
.dot--meet { background: var(--ls-bronze); }
.dot--due { border: 1px solid var(--ls-stone-600); }
.mcal__day.sel .dot--shoot { background: var(--ls-paper); }
.mcal__day.sel .dot--due { border-color: var(--ls-paper); }
.mcal__day.sel .dot--meet { background: var(--ls-champagne); }
.legend--m { margin: 10px 0 0; justify-content: center; }
.legend--m span { gap: 6px; }
.rows--plain { display: block; border: 0 !important; padding: 0 !important; }
.rows--plain .mrow { min-height: 56px; padding: 10px 0; }
.rows--plain .mrow:last-child { border-bottom: 0; }
.rows--plain .agenda__day { padding: 12px 0 4px; }
.agic--shoot { background: var(--ls-ink); color: var(--ls-paper); }
.agic--meet { background: color-mix(in srgb, var(--ls-bronze) 16%, transparent); color: var(--ls-bronze-deep); }
.agic--due { background: transparent; border: 1px dashed var(--ls-stone-400); }

@media (min-width: 900px) {
  .mo { display: none !important; }
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 960px; }
}

/* ───────── v005 手机版 ───────── */
@media (max-width: 899px) {
  body { background: var(--ls-stone-100); }
  .mtop { background: color-mix(in srgb, var(--ls-stone-100) 92%, transparent); backdrop-filter: blur(8px); border-bottom-color: var(--ls-stone-200); }
  .dk { display: none; }
  .mo { display: grid; }
  .phead { margin-bottom: 14px; }
  .people { margin-bottom: 12px; }
  /* 一般列表都变成一块块的卡片 */
  .rows, .dlist, .mlist, .mlistbox, .feed { background: var(--ls-paper); border: 1px solid var(--ls-stone-200) !important; border-radius: var(--ls-radius-md); padding: 0 14px; }
  .rows .mrow:last-child, .dlist .mrow:last-child, .mlist .mrow:last-child, .mlistbox .meetrow:last-child { border-bottom: 0; }
  .nlist, .flist, .org, .setcard, .clist, .meta, .review, .empty, .ls-table-wrap, .morebtn, .stagebox { background: var(--ls-paper); }
  .chip:not([aria-pressed="true"]) { background: var(--ls-paper); }
  .seg { background: var(--ls-paper); }
  .sec { margin-top: 20px; }
  .sec__head { margin-bottom: 10px; }
  /* 影片详情：拆成便当盒 */
  .vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vgrid__main, .vgrid .side-stack { display: contents; }
  .vgrid .review { grid-column: span 2; order: 1; }
  .vgrid .meta--shoot { grid-column: span 2; order: 2; }
  .vgrid .meta--spec { grid-column: span 2; order: 3; }
  .vgrid .meta--spec dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vgrid .meta--spec .meta__row { grid-template-columns: 1fr; gap: 4px; border-bottom: 0; border-top: 1px solid var(--ls-stone-200); align-content: start; }
  .vgrid .meta--spec .meta__row:nth-child(odd) { border-right: 1px solid var(--ls-stone-200); }
  .vgrid .meta--spec dd { font-size: var(--ls-text-md); font-weight: 500; }
  .vgrid .meta--people { grid-column: span 2; order: 4; }
  .vgrid > .vgrid__main > .sec { grid-column: span 2; order: 5; margin: 0; background: var(--ls-paper); border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-md); padding: 14px 16px; }
  .vgrid .meta--dec { grid-column: span 2; order: 6; }
  .vgrid > .vgrid__main > .sec--feed { order: 7; }
  .vgrid .sec .clist, .vgrid .sec .feed { border: 0 !important; padding: 0; border-radius: 0; }
  .vgrid .sec .crow { padding: 12px 0; }
  .vgrid .sec .crow--toggle { padding: 10px; }
  .vgrid .sec .morebtn { margin-top: 4px; }
  .stagebox { border-radius: var(--ls-radius-md); }
  .kicker { flex-wrap: wrap; }
  /* 客户详情 */
  .cgrid { grid-template-columns: 1fr; gap: 0; }
  .cgrid .side-stack { order: -1; margin-bottom: 4px; }
  .metaaddr, .metalink { max-width: 100%; }
  /* 弹层：手机仍是底部弹出，横版的左栏移到上面 */
  .overlay { padding: 0; }
  .dialog { max-height: 92dvh; }
  .dialog__body { padding: 16px; }
  .dialog__body--split { grid-template-columns: 1fr !important; padding: 0; }
  .dialog__aside { border-right: 0; border-bottom: 1px solid var(--ls-stone-200); padding: 16px; }
  .dialog__main { padding: 16px; }
  .formgrid--3, .formgrid--4 { grid-template-columns: 1fr; }
  .formgrid .span2, .formgrid .span3 { grid-column: auto; }
  .drop--tall { min-height: 120px; }
  .dialog__foot .ls-btn--ghost:first-child { margin-right: 0; }
  .toast { bottom: calc(var(--tab-h) + 16px); }
  .mrow .end { flex: none; }
  .org__row:not([style*="--d:0"])::before { left: calc(16px + (var(--d) - 1) * 20px + 17px); width: 8px; }
  .org__row { padding-left: calc(16px + min(var(--d), 3) * 20px); }
}

/* ═════════ v006 ═════════ */
/* 表单错误：不撑高同一行的其他栏位，提示固定出现在输入框正下方的留白里 */
.formgrid { align-items: start; }
.dialog .ls-field { position: relative; margin-bottom: 24px; }
.dialog .ls-field > .ls-error { position: absolute; left: 0; right: 0; top: calc(100% + 5px); font-size: var(--ls-text-xs); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dialog .ls-field > .ls-error .i { font-size: 14px; }
.ls-input[aria-invalid="true"] { border-color: var(--ls-danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ls-danger) 12%, transparent); }

/* 手机日历「接下来」：按天分组，左边日期、右边当天的事 */
.agrp { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 10px; padding: 10px 0; border-top: 1px solid var(--ls-stone-200); }
.agrp:first-child { border-top: 0; padding-top: 2px; }
.agrp__d { display: grid; align-content: start; gap: 2px; padding-top: 6px; font-family: var(--ls-font-mono); }
.agrp__d b { font-size: var(--ls-text-md); font-weight: 500; color: var(--ls-ink); line-height: 1; }
.agrp__d span { font-size: 11px; color: var(--ls-stone-600); }
.agrp__list { display: grid; gap: 4px; min-width: 0; }
.agrp__list .mrow { min-height: 0; padding: 6px 0; border-bottom: 0; gap: 10px; }
.agrp__list .agic { width: 32px; height: 32px; }

/* 登录页：左栏放大 logo */
.login__brand { justify-content: center; align-items: center; }
.login__brand .login__logo { width: clamp(260px, 30vw, 560px); height: auto; display: block; }
@media (max-width: 899px) { .login__brand { align-items: flex-start; } .login__brand .login__logo { width: 168px; } }
.bt .rows--plain { border: 0 !important; padding: 0 !important; background: none; }

/* ── v006：身份 ── */
.tag-sales { background: color-mix(in srgb, var(--ls-champagne) 32%, transparent); color: var(--ls-stone-800); }
.pend { display: inline-flex; align-items: center; gap: 4px; color: var(--ls-bronze-deep); }
.ls-table.perm td, .ls-table.perm th { white-space: normal; vertical-align: middle; }
.ls-table.perm tbody tr { cursor: default; }
.ls-table.perm th .sub { display: block; font-weight: 400; color: var(--ls-stone-600); }
.ls-table.perm td:first-child { font-weight: 600; min-width: 200px; }
.ls-table.perm td:not(:first-child), .ls-table.perm th:not(:first-child) { width: 22%; }
.ok { color: var(--ls-success); }
.mrow__ctl { display: grid; gap: 8px; }

/* ── v006：Drive 文件夹 ── */
.dpath { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; font-size: var(--ls-text-sm); min-width: 0; }
.dpath__s { color: var(--ls-stone-600); max-width: 24ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dpath__s.cur { color: var(--ls-ink); font-weight: 600; }
.dpath__sep { font-style: normal; color: var(--ls-stone-400); }
.dpathbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-md); background: var(--ls-stone-50); }
.dpathbar > .i { color: var(--ls-bronze); }
.dtree { padding: 4px 16px 8px; }
.dtree__path { padding: 4px 0 8px; border-bottom: 1px solid var(--ls-stone-200); margin-bottom: 4px; }
.dtree__path .dpath { font-size: var(--ls-text-xs); }
.dtree__row { display: flex; align-items: center; gap: 8px; min-height: 34px; font-size: var(--ls-text-sm); color: var(--ls-ink); text-decoration: none; min-width: 0; }
.dtree__row .i { color: var(--ls-bronze); }
.dtree__row--in { padding-left: 22px; }
.dtree__row .muted:last-child, .dtree__row .ls-num.muted { margin-left: auto; flex: none; font-size: var(--ls-text-xs); }
a.dtree__row:hover { color: var(--ls-bronze); }
.meta__acts { padding: 4px 16px 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.empty--row { flex-wrap: wrap; }
.empty--row .grow { flex: 1; min-width: 160px; }
/* 预览：将要建立的文件夹 */
.fprev { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-md); background: var(--ls-paper); display: grid; gap: 2px; }
.fprev--off { display: flex; align-items: center; gap: 8px; color: var(--ls-stone-600); font-size: var(--ls-text-sm); }
.fprev__row { display: flex; align-items: center; gap: 6px; min-height: 26px; padding-left: calc(var(--l, 0) * 14px); font-size: var(--ls-text-xs); min-width: 0; color: var(--ls-stone-600); }
.fprev__row .i { color: var(--ls-stone-400); }
.fprev__row--new { color: var(--ls-ink); font-weight: 600; }
.fprev__row--new .i { color: var(--ls-bronze); }
.fprev__row .muted { font-weight: 400; }
/* 选位置 */
.ftree { border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-md); max-height: 360px; overflow-y: auto; }
.ftree__row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px 0 calc(14px + var(--l, 0) * 18px); border-bottom: 1px solid var(--ls-stone-200); cursor: pointer; font-size: var(--ls-text-sm); min-width: 0; }
.ftree__row:last-child { border-bottom: 0; }
.ftree__row:hover { background: var(--ls-stone-50); }
.ftree__row:has(input:checked) { background: color-mix(in srgb, var(--ls-champagne) 16%, transparent); }
.ftree__row .i { color: var(--ls-bronze); }
.ftree__row > .ell { flex: 0 1 auto; font-weight: 600; }
.ftree__p { flex: 1 1 0; font-size: var(--ls-text-xs); text-align: right; }
.ftree__row input { accent-color: var(--ls-ink); }
@media (max-width: 899px) { .ftree__p { display: none; } .dpath__s { max-width: 16ch; } }
.fprev__row > span { white-space: nowrap; }

/* ═════════ v007：统一的时间筛选 / 排序 ═════════ */
.tpill-wrap { position: relative; display: inline-flex; align-items: center; }
.tpill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--ls-stone-300); border-radius: var(--ls-radius-sm); background: var(--ls-paper); color: var(--ls-ink); font: 600 var(--ls-text-sm) var(--ls-font-sans); cursor: pointer; transition: border-color var(--ls-dur-fast), background var(--ls-dur-fast); }
.tpill:hover { border-color: var(--ls-stone-400); }
.tpill .i { color: var(--ls-stone-600); }
.tpill.on { background: var(--ls-ink); border-color: var(--ls-ink); color: var(--ls-paper); padding-right: 40px; }
.tpill.on .i { color: var(--ls-champagne); }
.tpill__x { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--ls-paper); cursor: pointer; border-radius: var(--ls-radius-sm); }
.tpill__x:hover { background: rgba(243, 241, 236, .14); }
.tpop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 200px; background: var(--ls-paper); border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-md); box-shadow: var(--ls-shadow-2); padding: 6px; }
.tpop__k { font-size: var(--ls-text-xs); color: var(--ls-stone-600); font-weight: 600; padding: 6px 10px 4px; }
.tpop__i { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 10px; border: 0; background: none; border-radius: var(--ls-radius-sm); font: 500 var(--ls-text-sm) var(--ls-font-sans); color: var(--ls-ink); cursor: pointer; text-align: left; }
.tpop__i:hover { background: var(--ls-stone-100); }
.tpop__i[aria-checked="true"] { font-weight: 700; }
.tpop__i .i { color: var(--ls-bronze); }
.seg--sm button { min-height: 34px; padding: 0 12px; }
.toolbar__end { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.toolbar__end::before { content: "排序"; font-size: var(--ls-text-xs); color: var(--ls-stone-600); font-weight: 600; }
.monthnav { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--ls-stone-300); border-radius: var(--ls-radius-sm); padding: 0 2px; }
.monthnav strong { font-weight: 500; min-width: 72px; text-align: center; }
.monthnav .iconbtn { width: 36px; height: 36px; }
.monthnav .iconbtn:disabled { opacity: .35; cursor: default; }
.shotmark { display: inline-flex; align-items: center; gap: 4px; color: var(--ls-stone-600); }
.vcard__foot .shotmark { margin-left: auto; }
/* 手机：列表上面的筛选小药丸，可以单独 × 掉 */
.fchips { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 10px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 32px; padding: 0 8px 0 12px; border: 0; border-radius: 16px; background: var(--ls-ink); color: var(--ls-paper); font: 600 var(--ls-text-xs) var(--ls-font-sans); cursor: pointer; }
.fchip .ell { max-width: 22ch; }
.fchip .i { color: var(--ls-champagne); }
.chips--wrap { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
@media (max-width: 899px) {
  .tpop { left: auto; right: 0; }
  .toolbar .tpill-wrap { order: 5; }
}

/* ═════════ v008：节目（季 / 集） ═════════ */
.epc { display: inline-block; margin-right: 6px; padding: 0 5px; border: 1px solid var(--ls-stone-300); border-radius: var(--ls-radius-sm); font-size: 11px; font-weight: 500; line-height: 18px; color: var(--ls-bronze-deep); vertical-align: 2px; }
.epc--lg { font-size: var(--ls-text-sm); line-height: 26px; padding: 0 8px; vertical-align: 6px; margin-right: 10px; }
.season { border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-md); margin-bottom: 12px; overflow: hidden; background: var(--ls-paper); }
.season__head { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border: 0; background: var(--ls-stone-50); cursor: pointer; font: inherit; text-align: left; color: var(--ls-ink); }
.season__head strong { font-size: var(--ls-text-md); font-weight: 600; }
.season__head .muted { font-size: var(--ls-text-sm); }
.season__head .ls-tag { margin-left: auto; }
.season__head:hover { background: var(--ls-stone-100); }
.season:not(.is-shut) .season__head { border-bottom: 1px solid var(--ls-stone-200); }
.season .ls-table-wrap { border: 0; border-radius: 0; }
.season .empty { border: 0; border-radius: 0; }
.season .rows { border: 0 !important; border-radius: 0; padding: 0 14px; }
.epno { font-size: var(--ls-text-xs); color: var(--ls-bronze-deep); min-width: 36px; }
.tag-share { background: color-mix(in srgb, var(--ls-bronze) 14%, transparent); color: var(--ls-bronze-deep); }
.ngroup--row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ngroup--row > span:first-child { font-family: var(--ls-font-mono); font-size: var(--ls-text-sm); color: var(--ls-ink); }
.ngroup--row .ls-btn { margin-left: auto; }
.frow--ep { gap: 10px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.frow--ep .frow__t { min-width: 44px; }
.epdir { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid var(--ls-stone-200); border-radius: var(--ls-radius-sm); font-size: var(--ls-text-xs); color: var(--ls-ink); text-decoration: none; flex: none; }
.epdir:hover { border-color: var(--ls-bronze); color: var(--ls-bronze); }
.epdir .ls-num { color: var(--ls-stone-600); }
.toolbar__end--plain::before { content: none; }
.serow:empty { display: none; }
.serow .formgrid { margin: 0; }
@media (max-width: 899px) { .frow--ep .frow__s { flex-basis: 100%; order: 3; } }

/* v008 补丁：表单里的切换框（类型、状态）只占自己需要的宽度，不被栏位拉满 */
.ls-field > .seg { justify-self: start; }

/* ═════════ v009 ═════════ */
/* 所有文字按钮都有边框：ghost 按钮补上细边框（hover 加深），深色区块里用浅色边框 */
.ls-btn--ghost { border-color: var(--ls-stone-300); padding: 0 12px; }
.ls-btn--ghost:hover { border-color: var(--ls-stone-400); }
.ls-dark .ls-btn--ghost, .offline .ls-btn--ghost { border-color: var(--ls-stone-700); }
.ls-btn--ghost:disabled { border-color: var(--ls-stone-200); }
.toast__undo { border: 1px solid rgba(243, 241, 236, .3); }
.bellpanel__head .ls-btn, .meta__title .ls-btn { margin-top: 0; margin-bottom: 0; }
/* 分页条 */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.pager__info { font-size: var(--ls-text-sm); color: var(--ls-stone-600); }
.pager__btns { display: flex; align-items: center; gap: 4px; }
.pgbtn { min-width: 36px; height: 36px; padding: 0 8px; display: inline-grid; place-items: center; border: 1px solid var(--ls-stone-300); border-radius: var(--ls-radius-sm); background: var(--ls-paper); color: var(--ls-ink); font: 500 var(--ls-text-sm) var(--ls-font-mono); cursor: pointer; transition: border-color var(--ls-dur-fast), background var(--ls-dur-fast); }
.pgbtn:hover:not(:disabled) { border-color: var(--ls-bronze); color: var(--ls-bronze); }
.pgbtn.on { background: var(--ls-ink); border-color: var(--ls-ink); color: var(--ls-paper); }
.pgbtn:disabled { opacity: .4; cursor: default; }
.pager__gap { min-width: 20px; text-align: center; color: var(--ls-stone-400); }
.pager__mid { display: none; font-size: var(--ls-text-sm); padding: 0 8px; }
/* 节目季标题列：左边收起 / 展开，右边 Client 标签和分享按钮 */
.season__bar { display: flex; align-items: center; gap: 10px; padding-right: 12px; background: var(--ls-stone-50); }
.season__bar .season__head { flex: 1; min-width: 0; background: none; }
.season__bar .season__head .ls-tag { margin-left: 0; }
.season:not(.is-shut) .season__bar { border-bottom: 1px solid var(--ls-stone-200); }
.season:not(.is-shut) .season__head { border-bottom: 0; }
.season__bar:hover { background: var(--ls-stone-100); }
@media (max-width: 899px) {
  .pager { justify-content: center; }
  .pager__info { width: 100%; text-align: center; }
  .pgbtn:not(.pgbtn--nav), .pager__gap { display: none; }
  .pager__mid { display: inline; }
  .pgbtn--nav { min-width: 44px; height: 44px; }
  .season__bar { flex-wrap: wrap; padding: 0 12px 10px 0; }
  .season__bar .season__head { flex-basis: 100%; }
  .season__bar .ls-tag { margin-left: 16px; }
}

/* ═════ v010 ═════ */
/* 状态颜色：进度用古铜由浅到深，身份 / 暂停 / 作废 / 已交付各有自己的样子（全部用 CIS 已有 token） */
.ls-tag.tag-pre { background: transparent; box-shadow: inset 0 0 0 1px var(--ls-stone-300); color: var(--ls-stone-700); }
.ls-tag.tag-toedit { background: var(--ls-stone-200); color: var(--ls-ink); }
.ls-tag.tag-d1 { background: color-mix(in srgb, var(--ls-bronze) 14%, transparent); color: var(--ls-bronze-deep); }
.ls-tag.tag-d2 { background: color-mix(in srgb, var(--ls-bronze) 30%, transparent); color: var(--ls-bronze-deep); }
.ls-tag.tag-d3 { background: var(--ls-bronze); color: var(--ls-paper); }
.ls-tag.tag-delivered { background: var(--ls-ink); color: var(--ls-paper); }
.ls-tag.tag-void { background: transparent; box-shadow: inset 0 0 0 1px var(--ls-stone-300); color: var(--ls-stone-600); text-decoration: line-through; }
.ls-tag.tag-admin { background: var(--ls-bronze); color: var(--ls-paper); }
.ls-tag.tag-sales { background: var(--ls-champagne); color: var(--ls-ink); }

/* 统计条：深底 + 香槟数字（全页唯一的深色重点块之一） */
.stats { background: var(--ls-stone-900); border-color: var(--ls-stone-900); color: var(--side-fg); }
.stat { border-left-color: var(--ls-stone-700); }
.stat:hover { background: var(--ls-stone-800); }
.stat b { color: var(--ls-champagne); }
.stat span { color: var(--side-muted); }

/* 进度条：填色和已过的点用古铜，未来格的字够深 */
.stage__fill, .stage__dot.on { background: var(--ls-bronze); border-color: var(--ls-bronze); }
.stage__thumb { border-color: var(--ls-bronze); }
.stage__label { color: var(--ls-stone-600); }
.stage__label.done { color: var(--ls-ink); }
.stage__label.cur { color: var(--ls-bronze-deep); }

/* 表头有底色，行好扫读 */
.ls-table thead th { background: var(--ls-stone-200); color: var(--ls-stone-700); }

/* 未读通知：左边古铜竖条 + 淡古铜底（颜色代表未读） */
.nrow.unread { background: color-mix(in srgb, var(--ls-bronze) 7%, var(--ls-paper)); box-shadow: inset 3px 0 0 var(--ls-bronze); }
.nrow.unread::before { display: none; }
.nrow.unread .nic { background: var(--ls-bronze); color: var(--ls-paper); }

/* 对比度：stone-400 只留给占位 / 禁用，有意义的字改 stone-600；不用整块 opacity 降淡 */
.pipe__step, .cal__cell.out .d, .col__none, .evi--none, .mcal__day.out, tr.overturned .dwhat, .struck { color: var(--ls-stone-600); }
.is-hold, .crow.is-done, .stagebox.is-hold { opacity: 1; }
.is-hold { color: var(--ls-stone-600); }
.crow.is-done p, .crow.is-done strong { color: var(--ls-stone-600); }
.stagebox.is-hold .stage__fill, .stagebox.is-hold .stage__dot.on { background: var(--ls-stone-500); border-color: var(--ls-stone-500); }
.stagebox.is-hold .stage__thumb { border-color: var(--ls-stone-500); }

/* 弹层最后一个栏位不留错误提示的空位 */
.dialog .ls-field:last-child { margin-bottom: 8px; }

@media (max-width: 899px) {
  /* 手机不预留滚动条位置（原本让底栏和弹层右边露出一条缝） */
  html, .overlay, .side, .bellpanel__list { scrollbar-gutter: auto; }
  /* 三层：底 stone-200 / 卡片 paper / 重点深色 */
  body { background: var(--ls-stone-200); }
  /* 吸底按钮那页底部预留刚好 */
  :root { --act-h: 69px; }
  .page { padding-bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); }
  .page.has-act { padding-bottom: calc(var(--tab-h) + var(--act-h) + 16px + env(safe-area-inset-bottom)); }
  /* 弹层：真正贴底的底部弹出，上面留一点看得到页面 */
  .overlay { justify-content: flex-end; padding: 0; }
  .dialog { margin: auto 0 0; max-width: none; max-height: calc(100dvh - 40px); border-radius: var(--ls-radius-md) var(--ls-radius-md) 0 0; }
  .dialog__foot { border-radius: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); flex-wrap: nowrap; }
  .dialog__foot .ls-btn { flex: 1; justify-content: center; }
  .dialog__foot .ls-btn--ghost:first-child { flex: none; }
  /* toast 不盖住吸底按钮 */
  .toast { bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); }
  body:has(.mact) .toast { bottom: calc(var(--tab-h) + var(--act-h) + 12px + env(safe-area-inset-bottom)); }
}

/* ═════ v011 ═════ */
/* 今天拍摄不用录制红（红色留给别处） */
.shootrow .tag-shoot { background: transparent; border: 1px solid var(--ls-stone-700); color: var(--ls-champagne); }
/* 拍板行的编辑 / 作废 */
.dacts { display: inline-flex; gap: 2px; margin-left: 4px; }
.dlist .end { flex-wrap: wrap; justify-content: flex-end; }
td .iconbtn + .iconbtn { margin-left: 2px; }
/* 成员名单的总盘角色下拉 */
.mrow__ctl select[data-act="setDrive"] { margin-top: 6px; }
/* 版本列：手机上「撤下」只留图标，文字不折行 */
.review .vrow .ls-btn, .review .vrow strong { white-space: nowrap; }
@media (max-width: 899px) {
  .vpull__t { display: none; }
  .vpull { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 899px) { .review .vrow { gap: 8px; } .review .vrow .grow { min-width: 0; } }

/* ═════ v012 ═════ */
/* 文字超框的根源：CIS 的 .ls-num 全局 nowrap，加了 .wrap 也不会折行 */
.ls-num.wrap, .wrap { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.meta__row > *, .setrow__r > *, .contact__line, .hostline { min-width: 0; }
.contact__line { white-space: normal; overflow-wrap: anywhere; }
.embed .ls-num { white-space: normal; overflow-wrap: anywhere; text-align: center; padding: 0 12px; }
.hostline { flex-wrap: wrap; }
/* 「下拉 + 其他…」 */
.selother__x { margin-top: 8px; }
/* 设置 → 选项列表 */
.listgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.listcard { padding-top: 4px; }
.listcard__head { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--ls-stone-200); }
.listrow { display: flex; align-items: center; gap: 10px; grid-template-columns: none; min-height: 56px; }
.listrow .ls-input { flex: 1; min-width: 0; }
@media (max-width: 899px) { .listgrid { grid-template-columns: 1fr; } }
/* 设置行里的等宽字（域名、同步时间、备份路径）都可以折行 */
.setrow__r { flex-wrap: wrap; }
.setrow__r .ls-num { white-space: normal; overflow-wrap: anywhere; }
/* 上传框：按钮不折行，状态文字让位省略 */
.tray .ls-btn { white-space: nowrap; flex: none; }
.tray__foot { gap: 6px; }
.tray__state { min-width: 0; flex: 1; overflow: hidden; }
