/* 统一时间规划（时间规划 + 执行日历合并）：暖色工作台、岗位色彩语义、密集但不堆叠卡片。
   颜色规则（全模块唯一一套，禁止在组件里另起炉灶）：
   1. 岗位阶段色 = [data-role] 上的 --sh-role（主色/文字）+ --sh-role-bg（浅底）+ --sh-role-line（边线），
      仅用于标识「哪个岗位的任务」：脚本蓝灰、账号运营青灰、视频拍摄品红、视频剪辑紫、发布分发青绿、
      投放金黄、项目周期砖红、其他中性灰。
   2. 任务状态色 = --sh-status-* 四个语义变量，仅用于状态文字与完成态降透明，不与岗位色混用：
      进行中 = --sh-status-running，已完成 = --sh-status-done，已暂停 = --sh-status-paused，未开始 = --sh-status-upcoming。
   3. 强调/危险/成功交互色沿用 --sh-accent / --sh-danger，不再新增色板。 */
:root {
  --sh-bg: #f5f0ee;
  --sh-surface: #fffdfb;
  --sh-soft: #f9f5f2;
  --sh-text: #24202b;
  --sh-muted: #81767b;
  --sh-faint: #9b9093;
  --sh-line: #e4dbd7;
  --sh-line-strong: #d1c4bf;
  --sh-accent: #e8685e;
  --sh-accent-soft: #fbe9e5;
  --sh-danger: #a33e3a;
  --sh-status-running: #39705e;
  --sh-status-done: #9b9093;
  --sh-status-paused: #a33e3a;
  --sh-status-upcoming: #81767b;
}
html.dark {
  --sh-bg: #111011;
  --sh-surface: #1a1819;
  --sh-soft: #211e1f;
  --sh-text: #f0e9e6;
  --sh-muted: #b1a5a2;
  --sh-faint: #8e8280;
  --sh-line: #373031;
  --sh-line-strong: #4b4141;
  --sh-accent-soft: #3b2525;
  --sh-danger: #ef9690;
  --sh-status-running: #9acbb8;
  --sh-status-done: #8e8280;
  --sh-status-paused: #ef9690;
  --sh-status-upcoming: #b1a5a2;
}
/* 合并后隐藏侧边栏旧入口「执行日历」（#/calendar 由 hub 内重定向到 #/today），与灵感采集入口同一处理模式。 */
a[href="#/calendar"] { display: none !important; }
body.schedule-hub-active .layout-content > .creator-calendar-page,
body.schedule-hub-active .layout-content > .creator-timeline-page,
body.schedule-hub-active .layout-content > .timeline-page { display: none !important; }
#schedule-hub {
  min-width: 0;
  min-height: calc(100dvh - 100px);
  padding: 22px 24px 48px;
  color: var(--sh-text);
  background: transparent;
  font-family: MiSans, "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
#schedule-hub[hidden] { display: none !important; }
#schedule-hub *, .sh-dialog *, .sh-drag-ghost *, .sh-toast { box-sizing: border-box; }
:where(#schedule-hub button, #schedule-hub input, #schedule-hub select, .sh-dialog button, .sh-dialog input, .sh-dialog select, .sh-dialog textarea) { font: inherit; }
:where(#schedule-hub button, .sh-dialog button) { color: inherit; }
#schedule-hub button:focus-visible, #schedule-hub input:focus-visible, #schedule-hub select:focus-visible,
.sh-dialog button:focus-visible, .sh-dialog input:focus-visible, .sh-dialog select:focus-visible, .sh-dialog textarea:focus-visible { outline: 2px solid var(--sh-accent); outline-offset: 2px; }
.sh-icon { display: block; flex: 0 0 auto; width: 18px; height: 18px; }
.sh-eyebrow { display: block; color: var(--sh-faint); font-size: 11px; line-height: 1.3; font-weight: 650; letter-spacing: .13em; }
.sh-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.sh-heading h1 { margin: 5px 0 0; font-size: 30px; line-height: 1.25; font-weight: 650; letter-spacing: -.025em; }
.sh-heading p { margin: 7px 0 0; color: var(--sh-muted); font-size: 14px; }
.sh-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--sh-line-strong); border-radius: 6px; background: var(--sh-surface); color: var(--sh-text); cursor: pointer; white-space: nowrap; font-size: 14px; transition: background-color .16s, border-color .16s, color .16s; }
.sh-button:hover { border-color: var(--sh-faint); background: var(--sh-soft); }
.sh-button:active { transform: translateY(1px); }
.sh-button:disabled { opacity: .55; cursor: wait; }
.sh-button .sh-icon { width: 16px; height: 16px; }
.sh-button-primary { border-color: var(--sh-accent); background: var(--sh-accent); color: #fffdfb !important; }
.sh-button-primary:hover { border-color: #d95c53; background: #d95c53; }
.sh-button-danger { border-color: var(--sh-danger); background: var(--sh-danger); color: #fffdfb !important; }
.sh-button-delete { color: var(--sh-danger); }
.sh-icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 40px; height: 40px; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--sh-muted); cursor: pointer; transition: color .15s, background-color .15s, border-color .15s; }
.sh-icon-button:hover { color: var(--sh-text); background: var(--sh-soft); border-color: var(--sh-line); }
.sh-toolbar { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--sh-line-strong); border-bottom: 1px solid var(--sh-line); }
.sh-search { display: flex; align-items: center; gap: 8px; min-width: 210px; max-width: 400px; flex: 1; color: var(--sh-muted); }
.sh-search input { width: 100%; min-width: 0; min-height: 40px; padding: 7px 0; border: 0; border-bottom: 1px solid transparent; outline: 0; background: transparent; color: var(--sh-text); font-size: 14px; }
.sh-search input::placeholder { color: var(--sh-faint); }
.sh-search:focus-within { color: var(--sh-accent); }
.sh-search:focus-within input { border-bottom-color: var(--sh-accent); }
.sh-select { display: flex; align-items: center; gap: 7px; color: var(--sh-muted); white-space: nowrap; font-size: 13px; }
.sh-select select { min-width: 112px; max-width: 190px; min-height: 40px; padding: 6px 30px 6px 10px; border: 1px solid var(--sh-line); border-radius: 6px; outline: 0; background: var(--sh-surface); color: var(--sh-text); font-size: 13px; }
.sh-select select:focus { border-color: var(--sh-accent); }
.sh-subbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0 12px; }
.sh-date-nav { display: flex; align-items: center; gap: 4px; }
.sh-date-nav strong { margin-left: 12px; font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sh-today { min-height: 40px; padding: 6px 10px; border: 0; background: transparent; color: var(--sh-muted); cursor: pointer; font-size: 13px; }
.sh-today:hover { color: var(--sh-accent); }
.sh-view-switch { display: inline-flex; padding: 3px; border: 1px solid var(--sh-line); border-radius: 7px; background: var(--sh-surface); }
.sh-view-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; padding: 5px 11px; border: 0; border-radius: 4px; background: transparent; color: var(--sh-muted); cursor: pointer; font-size: 13px; transition: color .15s, background-color .15s; }
.sh-view-switch button:hover { color: var(--sh-text); background: var(--sh-soft); }
.sh-view-switch button.is-active { background: var(--sh-accent-soft); color: var(--sh-accent); font-weight: 650; }
.sh-view-switch .sh-icon { width: 15px; height: 15px; }
.sh-overview { display: flex; align-items: center; gap: 22px; min-height: 58px; padding: 8px 0 14px; }
.sh-overview > div:not(.sh-legend) { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.sh-overview > div > span { color: var(--sh-faint); font-size: 12px; }
.sh-overview > div > strong { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sh-overview > div > strong small { margin-left: 3px; color: var(--sh-faint); font-size: 11px; font-weight: 500; }
.sh-legend { display: flex; align-items: center; justify-content: flex-end; gap: 8px 13px; flex: 1; flex-wrap: wrap; }
.sh-legend span, .sh-role-label, .sh-timeline-sticky > span { display: inline-flex; align-items: center; gap: 5px; color: var(--sh-muted); white-space: nowrap; font-size: 11px; }
.sh-legend i, .sh-role-label i, .sh-timeline-sticky > span i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
/* 岗位阶段色：脚本 / 账号运营 / 视频拍摄剪辑（拍摄+剪辑）/ 发布分发 / 投放 / 项目周期 / 其他 */
[data-role="script"] { --sh-role: #536f87; --sh-role-bg: #e2edf3; --sh-role-line: #abc1cf; }
[data-role="accounts"] { --sh-role: #626d73; --sh-role-bg: #e9edee; --sh-role-line: #c0c9cc; }
[data-role="shoot"] { --sh-role: #8a4f73; --sh-role-bg: #f1e2eb; --sh-role-line: #d0adc2; }
[data-role="edit"] { --sh-role: #675480; --sh-role-bg: #eae3f1; --sh-role-line: #bdacc9; }
[data-role="publish"] { --sh-role: #39705e; --sh-role-bg: #e0ede7; --sh-role-line: #a5c5b7; }
[data-role="ads"] { --sh-role: #806529; --sh-role-bg: #f2e9ca; --sh-role-line: #ceba7e; }
[data-role="milestone"] { --sh-role: #9a554c; --sh-role-bg: #f5e5e1; --sh-role-line: #d6aaa2; }
[data-role="other"] { --sh-role: #71676d; --sh-role-bg: #eee9e7; --sh-role-line: #cec3bf; }
html.dark [data-role] { --sh-role-bg: #292526; --sh-role-line: #514748; }
html.dark [data-role="script"] { --sh-role: #a7c6d9; }
html.dark [data-role="accounts"] { --sh-role: #bdc8cd; }
html.dark [data-role="shoot"] { --sh-role: #dfa8c7; }
html.dark [data-role="edit"] { --sh-role: #c6b1da; }
html.dark [data-role="publish"] { --sh-role: #9acbb8; }
html.dark [data-role="ads"] { --sh-role: #dbc180; }
html.dark [data-role="milestone"] { --sh-role: #e5aaa0; }
.sh-legend [data-role], .sh-role-label, .sh-timeline-sticky > span { color: var(--sh-role); }
.sh-timeline-group { margin-left: 4px; }
.sh-view { min-width: 0; border-top: 1px solid var(--sh-line-strong); }
.sh-footer { display: flex; justify-content: space-between; gap: 16px; padding-top: 13px; color: var(--sh-faint); font-size: 11px; }
.sh-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 280px; padding: 36px 20px; text-align: center; }
.sh-empty strong { font-size: 17px; }
.sh-empty p { margin: 8px 0 20px; color: var(--sh-muted); font-size: 14px; }
.sh-loading { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 300px; flex-wrap: wrap; }
.sh-loading span { width: 4px; height: 24px; background: var(--sh-line-strong); }
.sh-loading span:nth-child(2) { height: 36px; background: var(--sh-accent); }
.sh-loading p { flex-basis: 100%; margin: 3px 0 0; color: var(--sh-muted); text-align: center; font-size: 13px; }

/* 列表 */
.sh-list-head, .sh-list-row { display: grid; grid-template-columns: 110px minmax(230px, 1.7fr) 105px 90px minmax(130px, .8fr) 75px 42px; gap: 12px; align-items: center; }
.sh-list-head { min-height: 40px; padding: 0 8px; border-bottom: 1px solid var(--sh-line); color: var(--sh-faint); font-size: 11px; }
.sh-list-row { min-height: 78px; padding: 10px 8px; border-bottom: 1px solid var(--sh-line); transition: background-color .15s; }
.sh-list-row:hover { background: color-mix(in srgb, var(--sh-surface) 60%, transparent); }
.sh-list-row time strong { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.sh-list-row time span { display: block; margin-top: 3px; color: var(--sh-faint); font-size: 10px; }
.sh-list-main { min-width: 0; padding: 6px 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.sh-list-main strong, .sh-list-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-list-main strong { font-size: 14px; font-weight: 650; }
.sh-list-main span { margin-top: 4px; color: var(--sh-muted); font-size: 11px; }
.sh-list-main:hover strong { color: var(--sh-accent); }
.sh-owner { overflow: hidden; color: var(--sh-muted); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.sh-progress > span { display: flex; justify-content: space-between; gap: 6px; font-size: 10px; }
.sh-progress > span b { font-weight: 550; }
.sh-progress > span em { color: var(--sh-faint); font-style: normal; }
.sh-progress > i { display: block; height: 3px; margin-top: 7px; overflow: hidden; background: var(--sh-line); }
.sh-progress > i > b { display: block; height: 100%; background: var(--sh-role); }
.sh-status { color: var(--sh-status-upcoming); white-space: nowrap; font-size: 12px; }
.sh-status[data-status="running"] { color: var(--sh-status-running); }
.sh-status[data-status="done"] { color: var(--sh-status-done); }
.sh-status[data-status="paused"] { color: var(--sh-status-paused); }

/* 周与月 */
.sh-calendar-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--sh-line-strong) transparent; }
.sh-week-grid, .sh-month-grid { min-width: 760px; }
.sh-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--sh-line); border-bottom: 0; background: var(--sh-soft); }
.sh-weekdays span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; border-right: 1px solid var(--sh-line); color: var(--sh-muted); font-size: 11px; }
.sh-weekdays span:last-child { border-right: 0; }
.sh-weekdays small { color: var(--sh-faint); font-size: 10px; }
.sh-week-days, .sh-month-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--sh-line); }
.sh-day-cell { position: relative; min-width: 0; min-height: 138px; padding: 7px; border-right: 1px solid var(--sh-line); border-bottom: 1px solid var(--sh-line); background: var(--sh-surface); transition: background-color .15s, box-shadow .15s; }
.sh-day-cell.is-week { min-height: 410px; }
.sh-day-cell.is-muted { background: color-mix(in srgb, var(--sh-soft) 72%, transparent); }
.sh-day-cell.is-muted > header, .sh-day-cell.is-muted > .sh-day-tasks { opacity: .8; }
.sh-day-cell.is-today { box-shadow: inset 0 0 0 1px var(--sh-accent); }
.sh-day-cell.is-drop-target, .sh-timeline-drop.is-drop-target { z-index: 2; background: var(--sh-accent-soft); box-shadow: inset 0 0 0 2px var(--sh-accent); }
.sh-day-cell > header { display: flex; align-items: center; justify-content: space-between; min-height: 30px; margin-bottom: 5px; }
.sh-day-cell > header > div { display: flex; align-items: baseline; gap: 5px; }
.sh-day-cell > header strong { font-size: 17px; line-height: 1; font-weight: 650; font-variant-numeric: tabular-nums; }
.sh-day-cell.is-today > header strong { color: var(--sh-accent); }
.sh-day-cell > header span { color: var(--sh-faint); font-size: 9px; }
.sh-day-add { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--sh-faint); cursor: pointer; opacity: 0; transition: opacity .15s, background-color .15s, color .15s; }
.sh-day-cell:hover .sh-day-add, .sh-day-add:focus-visible { opacity: 1; }
.sh-day-add:hover { background: var(--sh-soft); color: var(--sh-accent); }
.sh-day-add .sh-icon { width: 14px; height: 14px; }
.sh-day-tasks { display: grid; gap: 4px; }
.sh-task { position: relative; display: grid; gap: 1px; width: 100%; min-width: 0; min-height: 45px; padding: 5px 7px; border: 1px solid var(--sh-role-line); border-radius: 5px; background: var(--sh-role-bg); color: var(--sh-role); text-align: left; cursor: grab; transition: opacity .15s, box-shadow .15s; touch-action: pan-y; }
.sh-task:hover { box-shadow: 0 2px 7px color-mix(in srgb, var(--sh-role) 16%, transparent); }
.sh-task:active { cursor: grabbing; }
.sh-task > span, .sh-task > strong, .sh-task > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-task > span { font-size: 9px; opacity: .86; }
.sh-task > strong { color: var(--sh-role); font-size: 11px; font-weight: 650; }
.sh-task > small { font-size: 9px; }
.sh-task.is-continued { border-style: dashed; }
.sh-task[data-status="done"] { opacity: .66; }
.sh-task.is-dragging, .sh-timeline-bar.is-dragging { opacity: .2; }
.sh-day-more { width: 100%; min-height: 28px; margin-top: 4px; padding: 3px; border: 0; background: transparent; color: var(--sh-muted); cursor: pointer; font-size: 10px; }
.sh-day-more:hover { color: var(--sh-accent); }

/* 时间轴 */
.sh-timeline-scroll { max-width: 100%; overflow: auto; border-bottom: 1px solid var(--sh-line); scrollbar-width: thin; scrollbar-color: var(--sh-line-strong) transparent; }
.sh-timeline-canvas { position: relative; min-height: 240px; }
.sh-timeline-header { position: sticky; top: 0; z-index: 5; display: flex; min-height: 50px; border-bottom: 1px solid var(--sh-line-strong); background: var(--sh-soft); }
.sh-timeline-sticky { position: sticky; left: 0; z-index: 4; flex: 0 0 var(--sh-left-width); width: var(--sh-left-width); min-width: 0; padding: 10px 12px; border-right: 1px solid var(--sh-line-strong); background: var(--sh-surface); }
.sh-timeline-header .sh-timeline-sticky { display: flex; align-items: center; background: var(--sh-soft); color: var(--sh-faint); font-size: 10px; letter-spacing: .06em; }
.sh-timeline-days { display: grid; grid-template-columns: repeat(42, var(--sh-day-width)); flex: 1; }
.sh-timeline-days > span { display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--sh-line); color: var(--sh-muted); }
.sh-timeline-days > span.is-weekend { background: color-mix(in srgb, var(--sh-line) 20%, transparent); }
.sh-timeline-days > span.is-today { color: var(--sh-accent); box-shadow: inset 0 -2px var(--sh-accent); }
.sh-timeline-days b { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sh-timeline-days small { min-height: 12px; color: var(--sh-faint); font-size: 9px; }
.sh-timeline-group > header { position: sticky; left: 0; z-index: 3; display: flex; align-items: center; gap: 8px; width: 100vw; max-width: 100%; min-height: 36px; padding: 7px 12px; border-bottom: 1px solid var(--sh-line); background: var(--sh-soft); }
.sh-timeline-group > header strong { font-size: 12px; font-weight: 650; }
.sh-timeline-group > header span { color: var(--sh-faint); font-size: 10px; }
.sh-timeline-row { display: flex; min-height: 62px; }
.sh-timeline-row .sh-timeline-sticky { display: grid; align-content: center; gap: 3px; padding-top: 7px; padding-bottom: 7px; }
.sh-timeline-sticky > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 550; }
.sh-timeline-track { position: relative; display: grid; grid-template-columns: repeat(42, var(--sh-day-width)); flex: 1; border-bottom: 1px solid var(--sh-line); }
.sh-timeline-drop { display: block; width: var(--sh-day-width); height: 100%; border-right: 1px solid var(--sh-line); }
.sh-timeline-bar { position: absolute; top: 10px; bottom: 10px; z-index: 2; display: grid; align-content: center; gap: 1px; min-width: 20px; padding: 4px 8px; overflow: hidden; border: 1px solid var(--sh-role-line); border-radius: 5px; background: var(--sh-role-bg); color: var(--sh-role); text-align: left; cursor: grab; transition: opacity .15s, box-shadow .15s; touch-action: pan-y; }
.sh-timeline-bar:hover { z-index: 3; box-shadow: 0 3px 10px color-mix(in srgb, var(--sh-role) 18%, transparent); }
.sh-timeline-bar span, .sh-timeline-bar small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-timeline-bar span { font-size: 11px; font-weight: 650; }
.sh-timeline-bar small { font-size: 9px; }
.sh-timeline-bar[data-status="done"] { opacity: .68; }
.sh-timeline-hint { margin: 10px 0 0; color: var(--sh-faint); font-size: 11px; }
.sh-unscheduled { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--sh-line-strong); }
.sh-unscheduled > header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.sh-unscheduled h2 { margin: 0; font-size: 16px; }
.sh-unscheduled > header span { color: var(--sh-faint); font-size: 11px; }
.sh-unscheduled > button { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto; gap: 12px; width: 100%; min-height: 52px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--sh-line); background: transparent; text-align: left; cursor: pointer; }
.sh-unscheduled > button span { color: var(--sh-muted); }
.sh-unscheduled > button em { color: var(--sh-accent); font-size: 11px; font-style: normal; }

/* 编辑弹窗、拖动与反馈 */
.sh-dialog { width: min(700px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 0; overflow: hidden; border: 1px solid var(--sh-line-strong); border-radius: 9px; background: var(--sh-surface); color: var(--sh-text); box-shadow: 0 22px 80px rgba(36, 32, 43, .22); font-family: MiSans, "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
.sh-dialog::backdrop { background: rgba(30, 24, 26, .48); }
.sh-dialog-shell { display: flex; flex-direction: column; max-height: calc(100dvh - 42px); }
.sh-dialog-shell > header, .sh-dialog-shell > footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: 0 0 auto; padding: 17px 22px; border-bottom: 1px solid var(--sh-line); }
.sh-dialog-shell > header h2 { margin: 4px 0 0; font-size: 22px; line-height: 1.25; }
.sh-dialog-body { padding: 20px 22px; overflow-y: auto; }
.sh-dialog-shell > footer { border-top: 1px solid var(--sh-line); border-bottom: 0; }
.sh-dialog-shell > footer > div { display: flex; gap: 8px; }
.sh-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.sh-form-grid > label { display: flex; flex-direction: column; gap: 5px; color: var(--sh-muted); font-size: 12px; }
.sh-form-grid > label.is-wide { grid-column: 1 / -1; }
.sh-form-grid input, .sh-form-grid select, .sh-form-grid textarea { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--sh-line); border-radius: 5px; outline: 0; background: var(--sh-surface); color: var(--sh-text); font-size: 14px; }
.sh-form-grid textarea { resize: vertical; }
.sh-form-grid input:focus, .sh-form-grid select:focus, .sh-form-grid textarea:focus { border-color: var(--sh-accent); }
.sh-form-grid small { color: var(--sh-faint); font-size: 10px; }
.sh-form-error { margin: 14px 0 0; padding: 9px 11px; background: var(--sh-accent-soft); color: var(--sh-danger); font-size: 12px; }
.sh-delete-confirm { margin-top: 16px; padding: 13px; border: 1px solid color-mix(in srgb, var(--sh-danger) 40%, var(--sh-line)); background: var(--sh-accent-soft); }
.sh-delete-confirm p { margin: 0 0 11px; color: var(--sh-danger); font-size: 13px; }
.sh-delete-confirm > div { display: flex; justify-content: flex-end; gap: 8px; }
.sh-delete-confirm[hidden], .sh-form-error[hidden] { display: none; }
.sh-drag-ghost { position: fixed !important; left: 0; top: 0; z-index: 1200; margin: 0; opacity: .96; pointer-events: none; box-shadow: 0 16px 40px rgba(36, 32, 43, .2); transition: none !important; cursor: grabbing; }
body.sh-dragging-active, body.sh-dragging-active * { cursor: grabbing !important; user-select: none !important; }
.sh-toast { position: fixed; z-index: 1100; left: 50%; bottom: 28px; max-width: min(560px, calc(100vw - 32px)); padding: 11px 17px; transform: translate(-50%, 12px); border: 1px solid var(--sh-line-strong); border-radius: 6px; background: var(--sh-text); color: var(--sh-surface); opacity: 0; pointer-events: none; font-family: MiSans, "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 13px; transition: opacity .16s, transform .16s; }
.sh-toast.is-success, .sh-toast.is-error { transform: translate(-50%, 0); opacity: 1; }
.sh-toast.is-error { border-color: #9e3e38; background: #9e3e38; color: #fffdfb; }

@media (max-width: 1180px) {
  .sh-toolbar { flex-wrap: wrap; }
  .sh-search { flex-basis: 100%; max-width: none; }
  .sh-refresh { margin-left: auto; }
  .sh-overview { flex-wrap: wrap; gap: 10px 20px; }
  .sh-legend { flex-basis: 100%; justify-content: flex-start; }
  .sh-list-head, .sh-list-row { grid-template-columns: 100px minmax(200px, 1.5fr) 90px 80px minmax(110px, .7fr) 70px 40px; gap: 9px; }
}
@media (max-width: 860px) {
  #schedule-hub { padding: 18px 16px 42px; }
  .sh-list-head { display: none; }
  .sh-list-row { grid-template-columns: 90px minmax(0, 1fr) 42px; gap: 8px 12px; padding: 14px 4px; }
  .sh-list-row time { grid-row: 1 / 3; }
  .sh-list-main { grid-column: 2; }
  .sh-list-row > .sh-icon-button { grid-column: 3; grid-row: 1 / 3; }
  .sh-role-label { grid-column: 2; }
  .sh-owner { grid-column: 2; }
  .sh-progress { grid-column: 2; }
  .sh-status { grid-column: 1; grid-row: 3; }
}
@media (max-width: 640px) {
  #schedule-hub { padding: 56px max(12px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); font-size: 16px; }
  .sh-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .sh-heading h1 { font-size: 27px; }
  .sh-heading > .sh-button { width: 100%; min-height: 44px; }
  .sh-toolbar { gap: 8px; }
  .sh-select { flex: 1 1 135px; align-items: flex-start; flex-direction: column; gap: 3px; }
  .sh-select select { width: 100%; max-width: none; min-height: 44px; }
  .sh-refresh { width: 44px; height: 44px; margin-top: 19px; }
  .sh-subbar { align-items: flex-start; flex-direction: column; }
  .sh-date-nav { width: 100%; }
  .sh-date-nav strong { margin-left: auto; font-size: 15px; }
  .sh-date-nav .sh-icon-button, .sh-today { min-width: 44px; min-height: 44px; }
  .sh-view-switch { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
  .sh-view-switch button { min-height: 44px; padding: 5px 4px; }
  .sh-overview { gap: 8px 16px; }
  .sh-legend { gap: 7px 11px; }
  .sh-timeline-group { flex: 0 0 120px; }
  .sh-day-add { width: 34px; height: 34px; opacity: .65; }
  .sh-footer { flex-direction: column; gap: 4px; }
  .sh-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .sh-dialog-shell { max-height: calc(100dvh - 26px); }
  .sh-dialog-shell > header, .sh-dialog-shell > footer { padding: 14px; }
  .sh-dialog-body { padding: 16px 14px; }
  .sh-form-grid { grid-template-columns: 1fr; }
  .sh-form-grid > label.is-wide { grid-column: auto; }
  .sh-form-grid input, .sh-form-grid select { min-height: 44px; }
  .sh-dialog-shell > footer { align-items: stretch; flex-direction: column-reverse; }
  .sh-dialog-shell > footer > div { justify-content: flex-end; }
  .sh-dialog-shell > footer .sh-button { min-height: 44px; }
  .sh-unscheduled > button { grid-template-columns: 1fr auto; }
  .sh-unscheduled > button span { grid-column: 1; }
  .sh-unscheduled > button em { grid-column: 2; grid-row: 1 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  #schedule-hub *, .sh-dialog *, .sh-toast, .sh-drag-ghost { transition: none !important; }
}
