/* ===== Apple-Inspired Design System v6 ===== */
:root {
    --bg: #F5F5F7;
    --surface: rgba(255,255,255,0.72);
    --surface-solid: #FFFFFF;
    --text: #1D1D1F;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --text-tertiary: #AEAEB2;
    --border: rgba(0,0,0,0.06);
    --accent: #007AFF;
    --blue: #007AFF;
    --blue-light: #5AC8FA;
    --green: #34C759;
    --orange: #FF9500;
    --red: #FF3B30;
    --purple: #AF52DE;
    --indigo: #5856D6;
    --pink: #FF2D55;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow: 0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
    --blur: blur(20px) saturate(180%);
    --transition: 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    height: 100vh;
}
.app { display: flex; flex-direction: column; height: 100vh; }

/* ===== 顶栏 ===== */
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 24px;
    background: var(--surface); backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--border);
    z-index: 100; flex-shrink: 0;
}
.topbar-left { display: flex; align-items: center; gap: 24px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.brand {
    display: flex; align-items: center; gap: 10px;
}
.brand-logo {
    width: 32px; height: 32px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand-logo:hover {
    transform: rotate(-8deg) scale(1.12);
}
.logo {
    font-size: 18px; font-weight: 700;
    letter-spacing: -0.3px;
    position: relative;
    cursor: default;
    display: inline-block;
    white-space: nowrap;
    user-select: none;
}
.logo-text {
    transition: clip-path 0.45s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.35s ease;
    display: inline-block;
}
/* 主文字「统筹小助手」：纯黑沉稳 */
.logo-primary {
    clip-path: inset(0 0 0 0);
    color: #1D1D1F;
}
/* "牛马"默认被擦到看不见（从右侧开始遮挡至全部隐藏） */
.logo-secret {
    position: absolute; left: 0; top: 0;
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    background: linear-gradient(135deg, #FF6B6B, #FFB84C, #FF2D55);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* hover时：主文字从右向左擦除消失 */
.logo:hover .logo-primary {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
}
/* hover时：牛马从左向右擦除出现 */
.logo:hover .logo-secret {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    transition-delay: 0.1s;
}
.nav-pills { display: flex; background: rgba(0,0,0,0.04); border-radius: 10px; padding: 3px; }
.pill {
    padding: 6px 16px; border: none; background: none; border-radius: 8px;
    font-size: 13px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: var(--transition);
}
.pill:hover { color: var(--text); }
.pill.active { background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow-sm); }
.today-info { display: flex; align-items: center; gap: 12px; }
.today-date { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.team-pulse { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--green); font-weight: 500; }
.pulse-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }
.icon-btn {
    width: 34px; height: 34px; border: none; background: rgba(0,0,0,0.04);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-secondary); transition: var(--transition);
}
.icon-btn:hover { background: rgba(0,0,0,0.08); color: var(--text); }
.btn-today {
    padding: 5px 12px; border: 1px solid rgba(0,122,255,0.3); background: rgba(0,122,255,0.06);
    color: var(--blue); font-size: 12px; font-weight: 600; border-radius: 14px; cursor: pointer; transition: var(--transition);
}
.btn-today:hover { background: rgba(0,122,255,0.12); border-color: var(--blue); }

/* 实时时钟 */
.live-clock {
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    font-size: 14px; font-weight: 600;
    color: var(--text);
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(0,122,255,0.06), rgba(175,82,222,0.06));
    border-radius: 10px;
    letter-spacing: 0.5px;
    min-width: 88px; text-align: center;
    border: 1px solid rgba(0,122,255,0.12);
}

/* ===== 主内容 ===== */
.main-content { flex: 1; overflow: hidden; position: relative; }
.view { display: none; height: 100%; flex-direction: column; }
.view.active { display: flex; }

/* ===== 日视图布局 ===== */
.day-layout { display: flex; height: 100%; gap: 0; }
.day-timeline-panel { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.day-dashboard {
    width: 280px; flex-shrink: 0; overflow-y: auto; padding: 16px;
    border-left: 1px solid var(--border); background: rgba(0,0,0,0.01);
    display: flex; flex-direction: column; gap: 12px;
}
.dashboard-card {
    background: var(--surface-solid); border-radius: var(--radius-lg);
    padding: 16px; box-shadow: var(--shadow-sm);
}
.dashboard-card h3 { font-size: 13px; font-weight: 700; color: var(--text-secondary); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.3px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-item { text-align: center; }
.stat-val {
    display: block; font-size: 22px; font-weight: 700;
    background: linear-gradient(135deg, #9F9DC8, #A89BC2);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-lbl { font-size: 11px; color: var(--text-tertiary); font-weight: 500; }
.demand-list { display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; }
.demand-mini {
    padding: 8px 10px; background: rgba(0,0,0,0.02); border-radius: var(--radius-sm);
    font-size: 12px; cursor: pointer; transition: var(--transition); border-left: 3px solid var(--orange);
}
.demand-mini:hover { background: rgba(0,122,255,0.04); }
.demand-mini.high { border-left-color: var(--red); }
.demand-mini.medium { border-left-color: var(--orange); }
.demand-mini.low { border-left-color: var(--green); }
.demand-mini-name { font-weight: 500; margin-bottom: 2px; }
.demand-mini-meta { font-size: 11px; color: var(--text-tertiary); }
.demand-list-empty { font-size: 12px; color: var(--text-tertiary); text-align: center; padding: 12px; }

/* ===== 日历条 ===== */
.date-strip-wrapper {
    padding: 12px 20px; flex-shrink: 0;
}
.date-strip {
    flex: 1; min-width: 0;
}
.date-strip-stage {
    position: relative;
    background: var(--surface-solid);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 10px 6px;
    overflow: hidden;
}
.date-strip-indicator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 62px;
    height: 82px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(0,122,255,0.14), rgba(0,122,255,0.07));
    box-shadow: inset 0 0 0 1px rgba(0,122,255,0.24), 0 8px 18px rgba(0,122,255,0.08);
    pointer-events: none;
    z-index: 3;
    transition: background 0.2s ease, box-shadow 0.2s ease, width 0.18s ease, height 0.18s ease, top 0.18s ease;
}
.date-strip-indicator::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--surface-solid);
    box-shadow: 0 0 0 2px rgba(0,122,255,0.26), 0 4px 10px rgba(0,122,255,0.14);
}
.date-strip-indicator::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 4px;
    bottom: 4px;
    width: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(0,122,255,0.32);
}
.date-strip-indicator.is-today {
    background: linear-gradient(180deg, rgba(0,122,255,0.18), rgba(0,122,255,0.09));
    box-shadow: inset 0 0 0 1px rgba(0,122,255,0.28), 0 8px 18px rgba(0,122,255,0.1);
}
.date-strip-viewport {
    overflow: hidden;
    overflow-y: hidden;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}
.date-strip-viewport::-webkit-scrollbar { display: none; }
.date-strip-viewport.dragging { cursor: grabbing; }
.date-strip-track {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    width: max-content;
    min-width: 100%;
    padding-bottom: 6px;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.date-strip-viewport.dragging .date-strip-track {
    transition: none;
}
.date-cell {
    appearance: none;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    width: 62px;
    min-width: 62px;
    padding: 6px 4px 4px;
    border-radius: 14px;
    cursor: pointer;
    user-select: none;
    position: relative;
    color: var(--text);
    opacity: 0.5;
    transform: scale(0.88);
    transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease;
}
.date-cell:hover { background: rgba(0,0,0,0.035); }
.date-cell[data-distance="0"] { opacity: 1; transform: scale(1); }
.date-cell[data-distance="1"] { opacity: 0.84; transform: scale(0.96); }
.date-cell[data-distance="2"] { opacity: 0.7; transform: scale(0.92); }
.date-cell[data-distance="3"] { opacity: 0.58; transform: scale(0.89); }
.date-cell .month-label,
.date-cell .month-spacer {
    min-height: 16px;
    font-size: 10px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.date-cell .month-label {
    color: var(--blue);
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(0,122,255,0.08);
}
.date-cell .month-spacer { opacity: 0; }
.date-cell .day-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    line-height: 1.1;
}
.date-cell .day-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    transition: var(--transition);
}
.date-cell .holiday-tag,
.date-cell .holiday-spacer {
    min-height: 14px;
    font-size: 9px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.date-cell .holiday-tag {
    padding: 1px 4px;
    background: rgba(255,59,48,0.12);
    color: var(--red);
    border-radius: 999px;
    font-weight: 700;
}
.date-cell .holiday-spacer { opacity: 0; }
.date-cell.is-weekend .day-name,
.date-cell.is-weekend .day-num { color: #8D8D92; }
.date-cell.is-holiday .day-num,
.date-cell.is-holiday .day-name { color: var(--red); }
.date-cell.selected .day-num {
    color: var(--blue);
    transform: scale(1.03);
}
.date-cell.is-today:not(.selected) .day-num {
    box-shadow: inset 0 0 0 2px rgba(0,122,255,0.2);
    color: var(--blue);
}

/* ===== 下拉月历 ===== */
.calendar-dropdown {
    position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%) translateY(-8px);
    opacity: 0; z-index: 200; background: var(--surface-solid); border-radius: var(--radius-xl);
    box-shadow: 0 24px 80px rgba(0,0,0,0.15), 0 8px 24px rgba(0,0,0,0.08);
    padding: 20px 24px 16px; width: 320px; transition: opacity 0.25s ease, transform 0.25s ease; pointer-events: none;
}
.calendar-dropdown.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.calendar-dropdown.closing { opacity: 0; transform: translateX(-50%) translateY(-8px); pointer-events: none; }
.cal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-year-month { font-size: 16px; font-weight: 700; color: var(--text); }
.cal-top-right { display: flex; align-items: center; gap: 6px; }
.cal-arrow {
    width: 28px; height: 28px; border: none; background: rgba(0,0,0,0.04); border-radius: 8px;
    font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: var(--transition);
}
.cal-arrow:hover { background: rgba(0,0,0,0.08); color: var(--text); }
.cal-today-btn {
    padding: 4px 10px; border: 1px solid var(--border); background: var(--surface-solid);
    border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: var(--transition);
}
.cal-today-btn:hover { border-color: var(--blue); color: var(--blue); }
.cal-weekdays {
    display: grid; grid-template-columns: repeat(7,1fr); text-align: center;
    font-size: 11px; color: var(--text-tertiary); font-weight: 600; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.cal-weekdays .weekend { color: var(--red); opacity: 0.7; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.cal-day {
    position: relative; width: 100%; aspect-ratio: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; border-radius: 8px; font-size: 13px; font-weight: 500;
    cursor: pointer; transition: background 0.15s; color: var(--text);
}
.cal-day em { font-style: normal; }
.cal-day:hover:not(.other) { background: rgba(0,122,255,0.06); }
.cal-day.other { color: var(--text-tertiary); opacity: 0.4; cursor: default; }
.cal-day.today { border: 2px solid var(--blue); font-weight: 700; }
.cal-day.today em { color: var(--blue); }
.cal-day.selected:not(.today) { background: var(--blue); color: white; }
.cal-day.selected:not(.today) em { color: white; }
.cal-day.weekend:not(.selected):not(.today) em { color: var(--red); }
.cal-day.holiday:not(.selected):not(.today) { background: rgba(255,59,48,0.06); }
.cal-hol-tag {
    position: absolute; top: 1px; right: 1px; font-size: 7px; padding: 1px 2px;
    background: rgba(255,59,48,0.15); color: var(--red); border-radius: 2px; font-weight: 700; line-height: 1;
}

/* ===== 成员筛选栏 ===== */
.member-filter-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 20px 8px; flex-shrink: 0; border-bottom: 1px solid var(--border);
}
.mf-search-wrap {
    position: relative; display: flex; align-items: center; flex: 1; max-width: 200px;
}
.mf-search-icon {
    position: absolute; left: 8px; color: var(--text-tertiary); pointer-events: none;
}
.mf-search {
    width: 100%; padding: 5px 26px 5px 26px; border: 1px solid var(--border);
    border-radius: 20px; font-size: 12px; background: var(--surface-solid);
    color: var(--text); outline: none; transition: var(--transition);
}
.mf-search:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,122,255,0.1); }
.mf-search::placeholder { color: var(--text-tertiary); }
.mf-clear {
    position: absolute; right: 8px; background: none; border: none; cursor: pointer;
    font-size: 14px; color: var(--text-tertiary); line-height: 1; padding: 0;
    display: none;
}
.mf-clear.visible { display: block; }
.mf-pill {
    padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 500;
    border: 1px solid var(--border); background: var(--surface-solid);
    color: var(--text-secondary); cursor: pointer; transition: var(--transition);
    white-space: nowrap;
}
.mf-pill:hover { background: rgba(0,0,0,0.04); }
.mf-pill.active {
    background: var(--blue); border-color: var(--blue); color: #fff;
}

/* ===== 时间轴 ===== */
.timeline-container {
    flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; padding: 0 20px 20px;
}
.timeline-container::-webkit-scrollbar { width: 6px; }
.timeline-container::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 3px; }
.time-ruler {
    display: flex; padding-left: 130px; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; background: var(--bg); z-index: 10; flex-shrink: 0;
}
.ruler-tick {
    flex: 1; min-width: 0; text-align: left; font-size: 10px; color: var(--text-tertiary);
    font-weight: 500; padding: 6px 0 4px 2px; border-left: 1px solid var(--border);
}
.ruler-tick:first-child { border-left: none; }
.ruler-tick.hour { color: var(--text-secondary); }
.timeline-body { position: relative; }
.now-line {
    position: absolute; top: 0; bottom: 0;
    width: 2px; background: var(--red); z-index: 8;
    pointer-events: none; display: none;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.5);
}
.now-line::before {
    content: ''; position: absolute; top: 0; left: -5px;
    width: 12px; height: 12px; background: var(--red); border-radius: 50%;
    box-shadow: 0 2px 6px rgba(255,59,48,0.5);
}
.person-row {
    display: flex; align-items: stretch; min-height: 52px;
    border-bottom: 1px solid var(--border); transition: background var(--transition);
}
.person-row:hover { background: rgba(0,122,255,0.02); }
/* 全天休息/请假：整行深灰不可选 */
.person-row.off-duty .person-timeline {
    background: repeating-linear-gradient(45deg, rgba(0,0,0,0.04), rgba(0,0,0,0.04) 6px, rgba(0,0,0,0.06) 6px, rgba(0,0,0,0.06) 12px);
    cursor: not-allowed;
    pointer-events: none;
}
.person-row.off-duty .person-avatar { filter: grayscale(1); opacity: 0.5; }
.person-row.off-duty .person-name { color: var(--text-tertiary); text-decoration: line-through; text-decoration-color: rgba(0,0,0,0.2); }
.person-row.off-duty .person-role { color: var(--text-tertiary); }
.person-row.unassigned-row .person-label { background: rgba(255,149,0,0.08); }
.person-row.unassigned-row .person-avatar { cursor: default; }
/* 部分不在岗（半天/自定义休息段） */
.person-row.partial-off .person-avatar { box-shadow: inset 0 0 0 2px var(--orange); }
/* 单 slot 灰化（不在岗时段）：斜纹 + 禁止点击 */
.time-slot.slot-off {
    background: repeating-linear-gradient(45deg, rgba(0,0,0,0.05), rgba(0,0,0,0.05) 4px, rgba(0,0,0,0.08) 4px, rgba(0,0,0,0.08) 8px);
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}
.time-slot.slot-off::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.3);
    pointer-events: none;
}

.person-label {
    width: 130px; min-width: 130px; display: flex; align-items: center;
    gap: 8px; padding: 6px 10px; flex-shrink: 0;
}
.person-avatar {
    width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 14px; font-weight: 700; color: white; flex-shrink: 0;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    transition: transform 0.15s, box-shadow 0.15s, filter 0.2s, opacity 0.2s;
    position: relative;
    user-select: none;
}
.person-avatar:hover { transform: scale(1.08); box-shadow: 0 2px 8px rgba(0,0,0,0.18); }
.person-avatar:active { transform: scale(0.95); }
/* 状态徽章 */
.avatar-badge {
    position: absolute; right: -2px; bottom: -2px;
    width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid var(--surface-solid);
    font-size: 8px; font-weight: 700; color: white;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.avatar-badge.on { background: var(--green); }
.avatar-badge.halfAm { background: linear-gradient(90deg, var(--orange) 50%, transparent 50%); border-color: var(--surface-solid); }
.avatar-badge.halfPm, .avatar-badge.half { background: linear-gradient(90deg, transparent 50%, var(--orange) 50%); border-color: var(--surface-solid); }
.avatar-badge.leave { background: var(--purple); }
.avatar-badge.off { background: var(--text-tertiary); }
.person-name { font-size: 12px; font-weight: 500; white-space: nowrap; }
.person-role { font-size: 10px; color: var(--text-tertiary); }
.person-status-dot { display: none; } /* 用badge替代 */
.person-timeline { flex: 1; position: relative; display: flex; cursor: crosshair; }
.time-slot {
    flex: 1; min-width: 0; border-left: 1px solid rgba(0,0,0,0.03); transition: background 0.1s;
}
.time-slot.hour-start { border-left-color: var(--border); }
.time-slot:hover { background: rgba(0,122,255,0.04); }

/* 任务块 */
.time-block {
    position: absolute; top: 4px; bottom: 4px; border-radius: 8px; padding: 4px 10px;
    font-size: 13px; font-weight: 600; color: white; display: flex; align-items: center;
    cursor: grab; z-index: 5; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0,0,0,0.18);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); transition: box-shadow 0.15s;
}
.time-block:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.25); }
.time-block:active { cursor: grabbing; box-shadow: 0 6px 20px rgba(0,0,0,0.3); z-index: 20; }
.time-block .block-text { overflow: hidden; text-overflow: ellipsis; flex: 1; pointer-events: none; }
.block-handle {
    position: absolute; top: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 10;
    border-radius: 4px; transition: background 0.15s;
}
.block-handle.left { left: 0; }
.block-handle.right { right: 0; }
.block-handle:hover { background: rgba(255,255,255,0.4); }
.block-handle::after {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 2px; height: 14px; background: rgba(255,255,255,0.6); border-radius: 1px;
}
.drag-preview {
    position: absolute; top: 4px; bottom: 4px; background: rgba(0,122,255,0.2);
    border: 2px dashed var(--blue); border-radius: 8px; z-index: 4; pointer-events: none;
}

/* ===== 周视图 ===== */
.week-nav { display: flex; align-items: center; gap: 12px; padding: 14px 24px; flex-shrink: 0; }
.nav-btn {
    width: 32px; height: 32px; border: none; background: rgba(0,0,0,0.04); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    color: var(--text-secondary); transition: var(--transition);
}
.nav-btn:hover { background: rgba(0,0,0,0.08); color: var(--text); }
.week-display { font-size: 15px; font-weight: 600; }
.week-cards-container {
    flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px; padding: 0 24px 24px; overflow-y: auto; align-content: start;
}
.week-day-card {
    background: var(--surface-solid); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; overflow: hidden; min-height: 320px;
}
.week-day-card.is-today { box-shadow: 0 0 0 2px var(--blue), var(--shadow); }
.week-day-card-header {
    padding: 10px 14px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(0,0,0,0.01);
}
.week-day-card-header .wday-title { font-size: 13px; font-weight: 700; }
.week-day-card-header .wday-date { font-size: 11px; color: var(--text-tertiary); }
.week-day-card-header .wday-count {
    font-size: 11px; padding: 2px 8px; border-radius: 10px; background: rgba(0,122,255,0.08); color: var(--blue); font-weight: 600;
}
.week-day-card-body { flex: 1; overflow-y: auto; padding: 8px; }
.week-person-row { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 6px; margin-bottom: 2px; }
.week-person-row:hover { background: rgba(0,0,0,0.02); }
.week-person-row.off { opacity: 0.35; }
.week-person-row.partial .week-person-name { color: var(--orange); }
.week-person-name { font-size: 11px; font-weight: 500; width: 44px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week-person-ratio {
    flex-shrink: 0;
    width: 20px; height: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 6px;
    font-size: 11px; font-weight: 700;
    background: rgba(0,122,255,0.08); color: var(--blue);
}
.week-person-ratio.ratio-1 { background: rgba(52,199,89,0.12); color: var(--green); }
.week-person-ratio.ratio-0_75 { background: rgba(255,204,0,0.15); color: #B8860B; }
.week-person-ratio.ratio-0_5 { background: rgba(255,149,0,0.15); color: var(--orange); }
.week-person-ratio.ratio-0_25 { background: rgba(255,59,48,0.12); color: var(--red); }
.week-person-ratio.ratio-0 { background: rgba(0,0,0,0.06); color: var(--text-tertiary); }
.week-person-blocks { flex: 1; display: flex; gap: 2px; min-height: 20px; position: relative; }
.week-rest-bg {
    position: absolute; top: 0; bottom: 0;
    background: repeating-linear-gradient(45deg, rgba(0,0,0,0.04), rgba(0,0,0,0.04) 3px, rgba(0,0,0,0.08) 3px, rgba(0,0,0,0.08) 6px);
    border-radius: 3px; z-index: 1; pointer-events: none;
}
.week-block {
    height: 20px; border-radius: 4px; font-size: 10px; color: white; font-weight: 600;
    padding: 0 4px; display: flex; align-items: center; overflow: hidden; white-space: nowrap;
    position: absolute; top: 0; cursor: pointer; z-index: 2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.week-block:hover { filter: brightness(1.1); }
.week-time-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
}
.week-time-slot { flex: 1; border-right: 1px solid rgba(0,0,0,0.04); }
.week-time-slot:last-child { border-right: none; }

/* ===== 需求池 ===== */
.demands-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; flex-shrink: 0; }
.demands-header h2 { font-size: 18px; font-weight: 700; }
.demands-columns { flex: 1; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; padding: 0 24px 24px; overflow-y: auto; }
.demand-column { background: rgba(0,0,0,0.02); border-radius: var(--radius-lg); padding: 12px; display: flex; flex-direction: column; }
.column-header { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 4px 8px 12px; color: var(--text-secondary); }
.column-dot { width: 8px; height: 8px; border-radius: 50%; }
.column-dot.pending { background: var(--orange); }
.column-dot.progress { background: var(--blue); }
.column-dot.done { background: var(--green); }
.column-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.demand-card {
    background: var(--surface-solid); border-radius: var(--radius); padding: 12px 14px;
    box-shadow: var(--shadow-sm); cursor: pointer; transition: transform var(--transition), box-shadow var(--transition);
}
.demand-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.demand-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.demand-card-name { font-size: 13px; font-weight: 500; min-width: 0; flex: 1; }
.demand-card-link {
    width: 22px; height: 22px; border: none; background: rgba(0,0,0,0.05);
    border-radius: 50%; color: var(--text-secondary); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; flex-shrink: 0; transition: var(--transition);
}
.demand-card-link:hover { background: rgba(0,122,255,0.1); color: var(--blue); }
.demand-card-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-tertiary); flex-wrap: wrap; }
.demand-card-priority { width: 6px; height: 6px; border-radius: 50%; }
.demand-card-priority.high { background: var(--red); }
.demand-card-priority.medium { background: var(--orange); }
.demand-card-priority.low { background: var(--green); }

/* ===== 模态框 ===== */
.modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); backdrop-filter: blur(4px);
    z-index: 1000; align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-card {
    background: var(--surface-solid); border-radius: var(--radius-xl); width: 90%; max-width: 460px;
    max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: modalIn 0.25s ease-out;
}
.modal-card.modal-lg { max-width: 600px; }
.modal-card.modal-intro { max-width: 420px; }
@keyframes modalIn { from{opacity:0;transform:scale(0.95) translateY(10px)} to{opacity:1;transform:scale(1) translateY(0)} }
.modal-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 0; }
.modal-top h3 { font-size: 17px; font-weight: 600; }
.modal-x {
    width: 28px; height: 28px; border: none; background: rgba(0,0,0,0.06); border-radius: 50%;
    font-size: 16px; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal-x:hover { background: rgba(0,0,0,0.1); }
form { padding: 16px 24px 24px; }
.field { margin-bottom: 14px; }
/* 需求名称联想下拉 */
.demand-name-suggest {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 9999;
    background: white; border: 1px solid rgba(0,0,0,0.1); border-radius: var(--radius-sm);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1); max-height: 200px; overflow-y: auto; margin-top: 2px;
}
.demand-name-suggest .suggest-item {
    padding: 9px 12px; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.05); transition: background 0.12s;
}
.demand-name-suggest .suggest-item:last-child { border-bottom: none; }
.demand-name-suggest .suggest-item:hover { background: rgba(0,0,0,0.04); }
.demand-name-suggest .suggest-item .suggest-name { flex: 1; color: var(--text); }
.demand-name-suggest .suggest-item .suggest-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.demand-name-suggest .suggest-item .suggest-status { font-size: 11px; color: var(--text-secondary); white-space: nowrap; }
.demand-name-suggest .suggest-exact { background: rgba(255,200,50,0.12); }
.demand-name-suggest .suggest-exact:hover { background: rgba(255,200,50,0.2); }
.field label { display: block; font-size: 11px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 9px 12px; border: 1px solid rgba(0,0,0,0.1); border-radius: var(--radius-sm);
    font-size: 13px; font-family: var(--font); background: rgba(0,0,0,0.02); transition: var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: white; box-shadow: 0 0 0 3px rgba(0,122,255,0.1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.color-options { display: flex; gap: 8px; padding: 4px 0; }
.color-opt { cursor: pointer; }
.color-opt input { display: none; }
.color-opt span { display: block; width: 26px; height: 26px; border-radius: 50%; border: 3px solid transparent; transition: var(--transition); }
.color-opt input:checked + span { border-color: var(--text); transform: scale(1.1); }
.assignee-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.assignee-chip {
    padding: 4px 10px; border-radius: 16px; font-size: 12px; font-weight: 500;
    border: 1px solid var(--border); cursor: pointer; transition: var(--transition); user-select: none;
}
.assignee-chip:hover { border-color: var(--blue); }
.assignee-chip.selected { background: var(--blue); color: white; border-color: var(--blue); }
.assignee-chip.disabled {
    opacity: 0.45; cursor: not-allowed; pointer-events: none;
    background: rgba(0,0,0,0.03); color: var(--text-tertiary);
}
.modal-actions { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); margin-top: 8px; }
.spacer { flex: 1; }
.btn-primary {
    padding: 8px 20px; border: none; background: var(--blue); color: white;
    border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; cursor: pointer; transition: var(--transition);
}
.btn-primary:hover { background: #0066DD; }
.btn-ghost {
    padding: 6px 12px; border: none; background: none; font-size: 13px; font-weight: 500;
    color: var(--blue); cursor: pointer; border-radius: 6px; transition: var(--transition);
}
.btn-ghost:hover { background: rgba(0,122,255,0.08); }
.btn-delete { color: var(--red) !important; }
.btn-delete:hover { background: rgba(255,59,48,0.08) !important; }

/* 排班弹窗 */
.att-status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.att-opt { cursor: pointer; }
.att-opt input { display: none; }
.att-opt-card {
    display: flex; flex-direction: column; gap: 2px;
    padding: 10px 12px; border: 2px solid var(--border); border-radius: 10px;
    transition: all 0.2s; background: rgba(0,0,0,0.01);
}
.att-opt:hover .att-opt-card { border-color: var(--blue); background: rgba(0,122,255,0.04); }
.att-opt input:checked + .att-opt-card {
    border-color: var(--blue); background: rgba(0,122,255,0.08);
    box-shadow: 0 0 0 3px rgba(0,122,255,0.1);
}
.att-opt-icon { font-size: 18px; }
.att-opt-name { font-size: 13px; font-weight: 600; color: var(--text); }
.att-opt-desc { font-size: 11px; color: var(--text-tertiary); }
.rest-ranges-wrap { margin-bottom: 8px; }
.rest-range-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 12px; background: rgba(255,149,0,0.08); border-radius: 8px;
    margin-bottom: 4px; font-size: 13px; color: var(--orange); font-weight: 500;
}
.rest-range-row .remove-btn {
    width: 22px; height: 22px; border: none; background: none; color: var(--red);
    font-size: 16px; cursor: pointer; border-radius: 4px;
}
.rest-range-row .remove-btn:hover { background: rgba(255,59,48,0.1); }
.rest-range-add {
    display: flex; align-items: center; gap: 8px; padding: 8px;
    background: rgba(0,0,0,0.02); border-radius: 8px;
}
.rest-range-add select {
    padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px;
    font-size: 12px; background: white; flex: 1;
}

/* 时间轴上的休息段标记 */
.rest-block {
    position: absolute; top: 4px; bottom: 4px;
    background: repeating-linear-gradient(45deg, rgba(0,0,0,0.06), rgba(0,0,0,0.06) 4px, rgba(0,0,0,0.1) 4px, rgba(0,0,0,0.1) 8px);
    border-radius: 6px; z-index: 3; pointer-events: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: var(--text-tertiary); font-weight: 600;
}

/* 设置面板 */
.settings-body { padding: 12px 20px 20px; }

/* ===== 设置：折叠卡片 ===== */
.settings-section {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.settings-section[open] {
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border-color: rgba(0,122,255,0.2);
}
.settings-section summary {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 16px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background .15s ease;
}
.settings-section summary::-webkit-details-marker { display: none; }
.settings-section summary:hover { background: rgba(0,122,255,0.03); }
.settings-section .sec-icon {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(0,122,255,.08), rgba(175,82,222,.08));
    border-radius: 8px;
    font-size: 15px;
    flex-shrink: 0;
}
.settings-section .sec-title {
    flex: 1;
    font-size: 14px; font-weight: 600; color: #1D1D1F;
}
.settings-section .sec-meta {
    font-size: 11px; color: #86868B; font-weight: 500;
    padding: 3px 8px; border-radius: 10px;
    background: rgba(0,0,0,0.04);
}
.settings-section .sec-meta-ok { color: #34C759; background: rgba(52,199,89,0.1); }
.settings-section .sec-meta-warn { color: #FF9500; background: rgba(255,149,0,0.1); }
.settings-section .sec-chevron {
    color: #AEAEB2;
    transition: transform .25s ease;
    flex-shrink: 0;
}
.settings-section[open] .sec-chevron { transform: rotate(180deg); color: #007AFF; }
.settings-section .sec-body {
    padding: 4px 16px 16px;
    border-top: 1px solid rgba(0,0,0,0.04);
    animation: sec-slide-down .25s ease;
}
@keyframes sec-slide-down {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 人员管理（原样式微调） */
.member-edit-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.member-edit-row:last-child { border-bottom: none; }
.member-edit-row input { flex: 1; padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }
.member-edit-row .remove-btn { width: 28px; height: 28px; border: none; background: none; color: var(--red); font-size: 18px; cursor: pointer; border-radius: 6px; }
.member-edit-row .remove-btn:hover { background: rgba(255,59,48,0.08); }

/* 保存路径卡 */
.path-status {
    background: linear-gradient(135deg, rgba(0,122,255,.04), rgba(175,82,222,.04));
    border-radius: 10px; padding: 12px 14px; margin: 10px 0;
}
.path-status-label {
    font-size: 11px; color: #86868B; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}
.path-status-val {
    font-size: 13px; color: #1D1D1F; font-weight: 500;
    word-break: break-all; line-height: 1.5;
}
.path-ok { color: #34C759; font-weight: 700; margin-right: 4px; }
.path-warn { color: #FF9500; font-weight: 700; margin-right: 4px; }
.path-desc {
    font-size: 12px; color: #1D1D1F; line-height: 1.7;
    padding: 0 4px; margin-bottom: 12px;
}
.path-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.path-actions .btn-primary,
.path-actions .btn-ghost {
    padding: 8px 14px; font-size: 13px; border-radius: 8px;
}
.btn-ghost.btn-danger { color: #FF3B30; border-color: rgba(255,59,48,0.2); }
.btn-ghost.btn-danger:hover { background: rgba(255,59,48,0.06); border-color: #FF3B30; }
.intro-modal-body {
    padding: 8px 24px 24px; display: flex; flex-direction: column; gap: 18px;
}
.intro-modal-body p {
    font-size: 14px; line-height: 1.8; color: var(--text-secondary);
}
.intro-modal-body .btn-primary {
    align-self: flex-end;
}

/* 数据管理卡 */
.data-stats {
    background: #F5F5F7;
    border-radius: 10px; padding: 4px 14px; margin: 10px 0;
}
.data-stat-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 13px;
}
.data-stat-row:last-child { border-bottom: none; }
.data-stat-row span { color: #86868B; }
.data-stat-row b { color: #1D1D1F; font-weight: 600; }

/* 设置输入框 */
.settings-input {
    width: 100%; box-sizing: border-box; padding: 7px 10px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 13px; background: var(--surface-solid); color: var(--text); outline: none;
    transition: var(--transition);
}
.settings-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,122,255,0.1); }

/* 存储用量条 */
.storage-bar-wrap { margin: 6px 0 2px; }
.storage-bar-label {
    display: flex; justify-content: space-between;
    font-size: 11px; color: var(--text-secondary); margin-bottom: 5px;
}
.storage-bar-bg {
    height: 6px; background: rgba(0,0,0,0.06); border-radius: 3px; overflow: hidden;
}
.storage-bar-fill {
    height: 100%; border-radius: 3px;
    background: var(--green); transition: width 0.3s ease;
}
.storage-bar-fill.warn { background: var(--orange); }
.storage-bar-fill.danger { background: var(--red); }

/* 关于卡 */
.about-body {
    font-size: 13px; padding-top: 12px;
}

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
    .day-dashboard { width: 240px; padding: 12px; }
    .week-cards-container { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@media (max-width: 900px) {
    .day-layout { flex-direction: column; }
    .day-dashboard { width: 100%; flex-direction: row; flex-wrap: wrap; border-left: none; border-top: 1px solid var(--border); max-height: 180px; overflow-y: auto; }
    .dashboard-card { flex: 1; min-width: 200px; }
    .demands-columns { grid-template-columns: 1fr; }
    .topbar { padding: 8px 12px; }
    .topbar-left { gap: 12px; }
    .today-date { display: none; }
}
@media (max-width: 600px) {
    .nav-pills { gap: 0; }
    .pill { padding: 5px 10px; font-size: 12px; }
    .day-dashboard { display: none; }
    .person-label { width: 80px; min-width: 80px; }
    .time-ruler { padding-left: 80px; }
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }

/* ===== 欢迎卡片（首次引导）===== */
.ts-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 20, 30, 0.45);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity .32s cubic-bezier(.22,.61,.36,1);
}
.ts-overlay.show { opacity: 1; pointer-events: auto; }

.welcome-card {
    background: #fff;
    border-radius: 22px;
    padding: 32px 30px 26px;
    max-width: 460px; width: calc(100% - 40px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.04);
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    text-align: center;
    transform: scale(.82) translateY(14px);
    opacity: 0;
    transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease;
}
.ts-overlay.show .welcome-card {
    opacity: 1;
    transform: scale(1) translateY(0);
    animation: welcome-wiggle 1.2s .45s cubic-bezier(.36,.07,.19,.97) both;
}

/* 开屏可爱小晃动（像 logo hover 那样） */
@keyframes welcome-wiggle {
    0%   { transform: scale(1) rotate(0deg); }
    15%  { transform: scale(1.015) rotate(-1.2deg); }
    30%  { transform: scale(1.02)  rotate(1.4deg); }
    45%  { transform: scale(1.01)  rotate(-0.9deg); }
    60%  { transform: scale(1.005) rotate(0.6deg); }
    75%  { transform: scale(1)     rotate(-0.3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.welcome-img {
    width: 110px; height: 110px;
    object-fit: contain;
    margin: 0 auto 14px;
    display: block;
    border-radius: 18px;
    filter: drop-shadow(0 6px 16px rgba(0, 122, 255, 0.18));
    animation: welcome-float 3.2s ease-in-out infinite;
}
@keyframes welcome-float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50%      { transform: translateY(-4px) rotate(1deg); }
}

.welcome-title {
    margin: 0 0 6px; font-size: 22px; font-weight: 700;
    background: linear-gradient(135deg, #007AFF, #AF52DE);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.welcome-sub { color: #86868B; margin: 0 0 20px; font-size: 14px; line-height: 1.6; }

.welcome-tip {
    text-align: left;
    background: linear-gradient(135deg, rgba(0,122,255,.06), rgba(175,82,222,.06));
    border-radius: 12px;
    padding: 14px 16px; margin-bottom: 14px;
    font-size: 13px; line-height: 1.8; color: #1D1D1F;
}
.welcome-tip.warn {
    background: linear-gradient(135deg, rgba(255,149,0,.08), rgba(255,59,48,.06));
    color: #1D1D1F;
}
.welcome-tip-h { font-weight: 600; margin-bottom: 6px; color: #007AFF; font-size: 13px; }
.welcome-tip b { color: #AF52DE; font-weight: 600; }

.welcome-hint {
    text-align: left;
    font-size: 12px; color: #86868B; line-height: 1.85;
    margin-bottom: 22px; padding: 0 4px;
}
.welcome-hint-h { color: #34C759; font-weight: 600; margin-bottom: 4px; font-size: 12px; }
.warn-text { color: #FF9500; }

.welcome-actions {
    display: flex; gap: 10px;
}
.welcome-btn-ghost, .welcome-btn-primary {
    padding: 13px 18px; border-radius: 12px; font-size: 14px; cursor: pointer;
    font-family: inherit; font-weight: 600; transition: all .2s ease;
}
.welcome-btn-ghost {
    flex: 1; border: 1px solid #D2D2D7; background: #fff; color: #1D1D1F; font-weight: 500;
}
.welcome-btn-ghost:hover { background: #F5F5F7; border-color: #AEAEB2; }
.welcome-btn-primary {
    flex: 2; border: none;
    background: linear-gradient(135deg, #007AFF, #AF52DE);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 122, 255, .32);
}
.welcome-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, .42);
}
.welcome-btn-primary:active { transform: translateY(0); }

/* ===== 开机自检卡片（右上角）===== */
.ts-health-card {
    position: fixed;
    top: 70px; right: 16px;
    width: 360px; max-width: calc(100vw - 32px);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 149, 0, 0.18);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(255, 149, 0, 0.14), 0 2px 8px rgba(0,0,0,0.06);
    z-index: 9998;
    overflow: hidden;
    transform: translateX(calc(100% + 24px));
    opacity: 0;
    transition: transform .42s cubic-bezier(.22,.61,.36,1), opacity .3s, width .3s ease, height .3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.ts-health-card.show { transform: translateX(0); opacity: 1; }

.ts-health-card .health-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; cursor: pointer;
    background: linear-gradient(135deg, rgba(255,149,0,.1), rgba(255,59,48,.06));
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.ts-health-card .health-title {
    font-size: 13px; font-weight: 600; color: #1D1D1F;
}
.ts-health-card .health-x {
    width: 22px; height: 22px; border-radius: 50%;
    border: none; background: rgba(0,0,0,0.06); color: #86868B;
    cursor: pointer; font-size: 16px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.ts-health-card .health-x:hover { background: rgba(255,59,48,0.14); color: #FF3B30; }

.ts-health-card .health-body {
    padding: 8px 4px 10px;
    max-height: 60vh; overflow-y: auto;
}
.ts-health-card .health-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 12px; border-radius: 10px;
    margin: 4px 8px; transition: background .2s;
}
.ts-health-card .health-item:hover { background: rgba(0,0,0,0.02); }
.ts-health-card .health-icon {
    font-size: 18px; flex-shrink: 0;
    width: 28px; height: 28px; border-radius: 8px;
    background: rgba(255,149,0,.1);
    display: flex; align-items: center; justify-content: center;
}
.ts-health-card .health-info { flex: 1; min-width: 0; }
.ts-health-card .health-item-title {
    font-size: 13px; font-weight: 600; color: #1D1D1F; margin-bottom: 3px;
}
.ts-health-card .health-item-desc {
    font-size: 11px; color: #86868B; line-height: 1.55;
}
.ts-health-card .health-action {
    flex-shrink: 0; align-self: center;
    padding: 6px 11px; border-radius: 8px;
    border: none; background: linear-gradient(135deg, #007AFF, #AF52DE);
    color: #fff; font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all .2s;
    box-shadow: 0 2px 6px rgba(0,122,255,.22);
}
.ts-health-card .health-action:hover:not(:disabled) { transform: translateY(-1px); }
.ts-health-card .health-action.done {
    background: #34C759; cursor: default; box-shadow: none;
}
.ts-health-card .health-action:disabled { opacity: .85; }

/* 8 秒后收缩为"小徽章" */
.ts-health-card.collapsed {
    width: 54px; height: 54px;
    border-radius: 50%;
    cursor: pointer;
}
.ts-health-card.collapsed .health-top {
    padding: 0; height: 100%; width: 100%;
    border-bottom: none;
    justify-content: center;
}
.ts-health-card.collapsed .health-title::before {
    content: '⚠️'; font-size: 22px;
}
.ts-health-card.collapsed .health-title { font-size: 0; }
.ts-health-card.collapsed .health-x { display: none; }
.ts-health-card.collapsed .health-body { display: none; }
.ts-health-card.collapsed {
    animation: health-pulse 2s ease-in-out infinite;
}
@keyframes health-pulse {
    0%, 100% { box-shadow: 0 12px 40px rgba(255, 149, 0, 0.14), 0 0 0 0 rgba(255,149,0,.35); }
    50%      { box-shadow: 0 12px 40px rgba(255, 149, 0, 0.14), 0 0 0 8px rgba(255,149,0,0); }
}

/* ===== 关闭前备份提醒横幅（右下角）===== */
.ts-stale-toast {
    position: fixed;
    bottom: 20px; right: 20px;
    width: 360px; max-width: calc(100vw - 32px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(0, 122, 255, 0.18);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    z-index: 9997;
    padding: 14px 14px 12px 16px;
    display: flex; gap: 12px; align-items: flex-start;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    transform: translateX(calc(100% + 40px));
    opacity: 0;
    transition: transform .42s cubic-bezier(.22,.61,.36,1), opacity .3s;
}
.ts-stale-toast.show { transform: translateX(0); opacity: 1; }

.stale-toast-icon {
    width: 32px; height: 32px; flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0,122,255,.12), rgba(175,82,222,.1));
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    animation: stale-bob 2.4s ease-in-out infinite;
}
@keyframes stale-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-2px); }
}

.stale-toast-body { flex: 1; min-width: 0; }
.stale-toast-title {
    font-size: 13px; font-weight: 600; color: #1D1D1F; margin-bottom: 3px;
}
.stale-toast-desc {
    font-size: 12px; color: #86868B; line-height: 1.55; margin-bottom: 10px;
}
.stale-toast-actions { display: flex; gap: 8px; }
.stale-btn-ghost, .stale-btn-primary {
    padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600;
    cursor: pointer; border: none; transition: all .2s;
    font-family: inherit;
}
.stale-btn-ghost {
    background: rgba(0,0,0,0.05); color: #1D1D1F;
}
.stale-btn-ghost:hover { background: rgba(0,0,0,0.08); }
.stale-btn-primary {
    background: linear-gradient(135deg, #007AFF, #AF52DE);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,122,255,.28);
}
.stale-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,122,255,.38); }

.stale-toast-x {
    position: absolute;
    top: 8px; right: 8px;
    width: 20px; height: 20px;
    border: none; background: transparent;
    color: #AEAEB2; font-size: 16px; line-height: 1;
    cursor: pointer; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.stale-toast-x:hover { background: rgba(0,0,0,0.06); color: #1D1D1F; }

/* ===== v7 mini-toast（子任务全完成提示）===== */
.ts-mini-toast {
    position: fixed;
    bottom: 24px; left: 50%; transform: translateX(-50%) translateY(16px);
    background: rgba(30,30,30,0.88);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s, transform .3s;
    z-index: 9999;
    backdrop-filter: blur(8px);
    white-space: nowrap;
}
.ts-mini-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== v7 需求卡片颜色条 ===== */
.demand-card { position: relative; overflow: hidden; }
.demand-card-color {
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px;
    border-radius: 2px 0 0 2px;
}
.demand-card-progress { color: #A8C0B0; }
.dl-overdue { color: #E0A4A4 !important; font-weight: 600; }
.dl-urgent  { color: #D4B896 !important; font-weight: 600; }
.dl-soon    { color: #B8C5A0 !important; }

/* ===== v7 今日概览双模式切换 ===== */
.dashboard-card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
}
.dashboard-card-header h3 { margin-bottom: 0; }
.overview-mode-toggle {
    display: flex; gap: 2px;
    background: rgba(0,0,0,0.06); border-radius: 8px; padding: 2px;
}
.mode-btn {
    padding: 3px 10px; font-size: 11px; font-weight: 500;
    border: none; background: transparent; color: var(--text-secondary);
    border-radius: 6px; cursor: pointer; transition: all .15s;
}
.mode-btn.active {
    background: var(--surface-solid); color: var(--text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ===== v7 需求池类型筛选器 ===== */
.demands-filter {
    display: flex; gap: 6px; padding: 0 0 12px 0; flex-wrap: wrap;
}
.project-filter-wrap {
    display: flex; align-items: center; gap: 8px; margin: -4px 0 12px;
}
.project-filter-wrap label {
    font-size: 12px; font-weight: 600; color: var(--text-secondary); white-space: nowrap;
}
.project-filter-wrap select {
    min-width: 180px; max-width: 260px;
    padding: 6px 10px; border: 1.5px solid var(--border);
    border-radius: 10px; background: var(--surface-solid);
    color: var(--text); font-size: 12px; outline: none;
}
.project-filter-wrap select:focus { border-color: #9F9DC8; }
.filter-btn {
    padding: 5px 14px; font-size: 12px; font-weight: 500;
    border: 1.5px solid var(--border); background: var(--surface-solid);
    color: var(--text-secondary); border-radius: 20px; cursor: pointer;
    transition: all .15s;
}
.filter-btn.active {
    border-color: #9F9DC8; color: #9F9DC8; background: rgba(159,157,200,0.1);
}
.demands-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }

/* 需求池5列 - 收窄列宽 */
.demands-columns { grid-template-columns: repeat(5, 1fr); gap: 12px; }
.column-dot.blocked { background: #D4B896; }
.column-dot.canceled { background: #AEAEB2; }

/* ===== v7 时间轴 hover 气泡 ===== */
.timeline-hover-line {
    position: absolute; bottom: 0;
    width: 1px;
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(155, 110, 95, 0.45) 0px,
        rgba(155, 110, 95, 0.45) 4px,
        transparent 4px,
        transparent 9px
    );
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.75) 10%, rgba(0,0,0,0.75) 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.75) 10%, rgba(0,0,0,0.75) 90%, transparent 100%);
    transform: translateX(-50%);
    pointer-events: none; z-index: 50;
    display: none;
}
.timeline-hover-bubble {
    position: absolute; top: 4px;
    background: rgba(42, 36, 32, 0.68);
    color: #fff; border-radius: 8px;
    padding: 5px 10px; font-size: 12px; line-height: 1.5;
    pointer-events: none; z-index: 100;
    display: none; white-space: nowrap;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.bubble-time { font-weight: 600; font-size: 12px; color: rgba(255,255,255,0.95); }
.bubble-info { color: rgba(255,255,255,0.6); font-size: 11px; margin-top: 1px; }

/* 截止时间：日期 + 时:分 select 并排 */
.deadline-inputs { display: flex; gap: 8px; align-items: center; }
.deadline-inputs input[type="date"] { flex: 1 1 0; min-width: 0; }
.deadline-time-selects { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.deadline-time-selects select {
    width: 54px; padding: 6px 4px; border: 1px solid var(--border);
    border-radius: 8px; background: var(--bg); font-size: 14px;
    text-align: center; cursor: pointer; appearance: none; -webkit-appearance: none;
}
.deadline-time-selects select:focus { outline: none; border-color: var(--accent); }
.time-colon { font-size: 15px; font-weight: 600; color: var(--text-secondary); padding: 0 1px; }

/* ===== v7 ambient 后台任务卡片 ===== */
.ambient-card {
    display: inline-block; margin-top: 2px;
    padding: 1px 7px; border-radius: 8px;
    background: rgba(159,157,200,0.18); color: #9F9DC8;
    font-size: 11px; font-weight: 500; cursor: pointer;
    white-space: nowrap;
}
.ambient-card:hover { background: rgba(159,157,200,0.3); }

/* ===== v7 需求/子任务 统一弹窗 Tab ===== */
.modal-demand { max-width: 600px; max-height: 90vh; overflow-y: auto; }
.demand-tabs {
    display: flex; gap: 0; border-bottom: 1.5px solid var(--border);
    margin: -4px -28px 16px; padding: 0 28px;
}
.demand-tab {
    padding: 8px 18px; font-size: 13px; font-weight: 500;
    background: transparent; border: none; border-bottom: 2.5px solid transparent;
    color: var(--text-secondary); cursor: pointer; margin-bottom: -1.5px;
    transition: all .15s;
}
.demand-tab:hover { color: var(--text); }
.demand-tab.active { color: #7B7AAA; border-bottom-color: #9F9DC8; }
.tab-panel { animation: fadeIn .15s ease; }
.type-selector { display: flex; gap: 6px; flex-wrap: wrap; }
.type-btn {
    padding: 6px 14px; font-size: 12px; font-weight: 500;
    border: 1.5px solid var(--border); background: var(--surface-solid);
    color: var(--text-secondary); border-radius: 20px; cursor: pointer;
    transition: all .15s;
}
.type-btn.active { border-color: #9F9DC8; color: #9F9DC8; background: rgba(159,157,200,0.12); }
.type-fields {
    background: rgba(0,0,0,0.025); border-radius: 10px;
    padding: 12px 14px; margin: 4px 0;
    border: 1px solid var(--border);
}
.type-fields-title { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; }
.weekday-selector { display: flex; gap: 4px; }
.wday-btn {
    width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--border);
    background: var(--surface-solid); color: var(--text-secondary);
    font-size: 12px; font-weight: 500; cursor: pointer; transition: all .15s;
}
.wday-btn.active { background: #9F9DC8; color: #fff; border-color: #9F9DC8; }
.monthly-day-row { display: flex; align-items: center; gap: 8px; max-width: 180px; }
.monthly-day-row select { min-width: 96px; }
.monthly-day-suffix { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.required { color: #E0A4A4; }
.field-sm { flex: 0 0 auto; min-width: 100px; }

/* ===== 需求颜色选择器 ===== */
.demand-color-row { display: flex; gap: 5px; flex-wrap: wrap; }
.demand-color-swatch {
    width: 20px; height: 20px; border-radius: 50%; cursor: pointer;
    border: 2px solid transparent; transition: all .15s;
}
.demand-color-swatch.active { border-color: var(--text); transform: scale(1.15); }

/* ===== 子任务区 ===== */
.subtasks-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0 6px; border-top: 1px solid var(--border); margin-top: 8px;
}
.subtasks-title { font-size: 13px; font-weight: 600; color: var(--text); }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 8px; }
.subtasks-empty { font-size: 12px; color: var(--text-tertiary); padding: 8px 0; }
.subtask-row {
    display: flex; flex-direction: column;
    padding: 7px 8px; border-radius: 8px; margin-bottom: 4px;
    background: rgba(0,0,0,0.025); border: 1px solid var(--border);
    gap: 8px;
}
.subtask-main { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.subtask-left { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.subtask-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
/* 时段 chips 行 */
.st-slots-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
    margin-top: 5px; padding-left: 2px;
}
.st-time-chip {
    display: inline-flex; align-items: center; gap: 3px;
    background: rgba(159,157,200,0.13); border: 1px solid rgba(159,157,200,0.3);
    border-radius: 12px; padding: 2px 8px 2px 9px; font-size: 11px; color: var(--text-secondary);
}
.chip-date { color: var(--text-tertiary); margin-right: 2px; }
.chip-range { font-weight: 500; color: #7B7AAA; }
.chip-del {
    cursor: pointer; color: var(--text-tertiary); font-size: 13px; line-height: 1;
    margin-left: 2px; opacity: 0.6; transition: opacity .15s;
}
.chip-del:hover { opacity: 1; color: #E0A4A4; }
.st-add-slot-btn {
    border: 1px dashed var(--border); background: transparent; color: var(--text-tertiary);
    border-radius: 10px; padding: 2px 9px; font-size: 11px; cursor: pointer;
    transition: all .15s;
}
.st-add-slot-btn:hover { border-color: #9F9DC8; color: #9F9DC8; background: rgba(159,157,200,0.08); }
/* 添加时段内联表单 */
.st-slot-form {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    margin-top: 6px; padding: 7px 8px; border-radius: 8px;
    background: rgba(0,0,0,0.03); border: 1px solid var(--border);
}
.st-slot-form input[type="date"] { font-size: 12px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); }
.st-slot-form select { font-size: 12px; padding: 4px 4px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); }
.st-slot-confirm, .st-slot-cancel {
    width: 24px; height: 24px; border: none; border-radius: 6px; cursor: pointer;
    font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.st-slot-confirm { background: rgba(159,157,200,0.2); color: #7B7AAA; }
.st-slot-confirm:hover { background: rgba(159,157,200,0.4); }
.st-slot-cancel { background: transparent; color: var(--text-tertiary); }
.st-slot-cancel:hover { background: rgba(224,164,164,0.15); color: #E0A4A4; }
.subtask-status-sel {
    font-size: 11px; border: none; background: transparent; color: var(--text-secondary);
    cursor: pointer; padding: 2px 4px; border-radius: 4px;
    max-width: 68px;
}
.subtask-name-inp {
    flex: 1; font-size: 13px; border: none; background: transparent;
    color: var(--text); outline: none; padding: 2px 4px; border-radius: 4px; min-width: 0;
}
.subtask-name-inp:focus { background: rgba(0,0,0,0.04); }
.subtask-assign-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 3px 8px; border-radius: 8px; border: 1.5px solid var(--border);
    background: var(--surface-solid); cursor: pointer; font-size: 12px;
    color: var(--text); transition: border-color .15s;
}
.subtask-assign-btn:hover { border-color: #9F9DC8; }
.subtask-avatar {
    width: 18px; height: 18px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; color: #fff; font-weight: 600;
}
.subtask-opname { font-size: 12px; }
.subtask-assign-placeholder { color: var(--text-secondary); font-size: 12px; }
.subtask-time { font-size: 11px; color: var(--text-secondary); }
.subtask-del-btn {
    width: 20px; height: 20px; border: none; background: transparent;
    color: var(--text-tertiary); cursor: pointer; border-radius: 4px; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.subtask-del-btn:hover { background: rgba(224,164,164,0.2); color: #E0A4A4; }

/* ===== A/B 分支弹窗 ===== */
.modal-ab { max-width: 340px; }
.ab-body { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 0; }
.ab-time-hint { font-size: 12px; color: var(--text-secondary); padding: 4px 0 2px; }
.ab-btn {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-radius: 12px;
    border: 1.5px solid var(--border); background: var(--surface-solid);
    cursor: pointer; text-align: left; transition: all .15s;
}
.ab-btn:hover { border-color: #9F9DC8; background: rgba(159,157,200,0.06); }
.ab-icon { font-size: 20px; flex-shrink: 0; }
.ab-btn-title { font-size: 13px; font-weight: 600; color: var(--text); }
.ab-btn-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ===== 需求选择器 / 人员选择器弹窗 ===== */
.modal-picker { max-width: 380px; }
.picker-body { padding: 4px 0; }
.picker-search {
    width: 100%; padding: 8px 12px; font-size: 13px;
    border: 1.5px solid var(--border); border-radius: 10px;
    background: var(--surface-solid); color: var(--text);
    outline: none; margin-bottom: 8px;
}
.picker-search:focus { border-color: #9F9DC8; }
.picker-list { max-height: 300px; overflow-y: auto; }
.picker-item {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 10px; border-radius: 8px; cursor: pointer;
    transition: background .12s;
}
.picker-item:hover { background: rgba(0,0,0,0.04); }
.picker-item-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.picker-item-name { font-size: 13px; flex: 1; }
.picker-item-meta { font-size: 11px; color: var(--text-secondary); }
.picker-empty { font-size: 12px; color: var(--text-tertiary); padding: 12px; text-align: center; }

/* ===== 人员选择器（工时环）===== */
.member-picker-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 10px; cursor: pointer;
    transition: background .12s; border: 1.5px solid transparent;
}
.member-picker-row:hover { background: rgba(0,0,0,0.04); }
.member-picker-row.selected { border-color: #9F9DC8; background: rgba(159,157,200,0.08); }
.workload-ring { flex-shrink: 0; }
.mp-avatar {
    width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: #fff; font-weight: 600; flex-shrink: 0;
}
.mp-name { font-size: 13px; flex: 1; }
.mp-wl { font-size: 12px; font-weight: 600; }
.member-picker-row.mp-off { cursor: not-allowed; opacity: 0.45; pointer-events: none; }
.mp-divider { font-size: 11px; color: var(--text-tertiary); padding: 6px 10px 2px; margin-top: 4px; border-top: 1px solid var(--border); }

/* ===== 仪表盘视图 ===== */
.dashboard-view-content { padding: 24px; max-width: 700px; }
.dashboard-view-card { background: var(--surface-solid); border-radius: var(--radius-lg); padding: 20px 24px; box-shadow: var(--shadow-sm); }
.dash-notes-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 48px; }

/* ===== 随心记卡片 ===== */
.notes-sidebar-card { max-height: 320px; display: flex; flex-direction: column; }
#sidebarNotesList { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 6px; padding-bottom: 2px; }
.notes-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; min-height: 28px; }
.notes-card-header h3 { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 0; text-transform: none; letter-spacing: 0; }
.notes-add-btn { width: 26px; height: 26px; border-radius: 50%; border: none; background: var(--accent); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notes-add-btn:hover { opacity: 0.85; }

/* ===== 随心记条目 ===== */
.note-item { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; position: relative; transition: background 0.15s; }
.note-item:hover { background: var(--surface-hover, #F2F2F7); }
.note-item.done { opacity: 0.45; }
.note-ring { flex-shrink: 0; margin-top: 1px; }
.note-body { flex: 1; min-width: 0; }
.note-content { font-size: 13px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-item.done .note-content { text-decoration: line-through; color: var(--text-tertiary); }
.note-memo { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-ddl-label { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
.note-actions { display: none; gap: 4px; flex-shrink: 0; align-self: center; }
.note-item:hover .note-actions { display: flex; }
.note-action-btn { width: 24px; height: 24px; border-radius: 50%; border: none; font-size: 12px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; line-height: 1; }
.note-action-btn.done-btn { background: rgba(52,199,89,0.12); color: #34C759; }
.note-action-btn.done-btn:hover { background: #34C759; color: #fff; transform: scale(1.1); }
.note-action-btn.del-btn { background: rgba(0,0,0,0.05); color: #AEAEB2; }
.note-action-btn.del-btn:hover { background: #FF3B30; color: #fff; transform: scale(1.1); }
.notes-empty { font-size: 12px; color: var(--text-tertiary); text-align: center; padding: 12px 0; }

/* ===== DDL 输入类型切换 ===== */
.note-ddl-toggle { display: flex; gap: 6px; }
.note-ddl-type { padding: 5px 14px; border-radius: 20px; border: 1px solid var(--border); background: transparent; font-size: 12px; cursor: pointer; color: var(--text-secondary); transition: all 0.15s; white-space: nowrap; }
.note-ddl-type.active { background: var(--accent); color: #fff; border-color: var(--accent); }
/* 两区域始终展示，inactive时视觉变灰 */
.note-ddl-section { transition: opacity 0.15s; }
.note-ddl-section.inactive { opacity: 0.35; pointer-events: none; }

/* ===== 倒计时滑块 ===== */
/* 滑块元素撑高22px保证拇指点击区域，track视觉效果由background实现 */
.note-ddl-slider { width: 100%; -webkit-appearance: none; appearance: none; height: 22px; border-radius: 2px; background: transparent; outline: none; cursor: pointer; display: block; padding: 9px 0; box-sizing: border-box; }
.note-ddl-slider::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--accent) var(--slider-pct, 25%), #E5E5EA var(--slider-pct, 25%)); }
.note-ddl-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 1px 4px rgba(0,122,255,0.4); cursor: pointer; transition: transform 0.1s; }
.note-ddl-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.note-ddl-slider::-moz-range-track { height: 4px; border-radius: 2px; background: #E5E5EA; }
.note-ddl-slider::-moz-range-progress { height: 4px; background: var(--accent); }
.note-ddl-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: none; cursor: pointer; }
/* 滑块下方：刻度（左）+ 标签（右）同一排 */
.note-slider-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 5px; }
.note-slider-ticks-row { display: flex; gap: 0; flex: 1; justify-content: space-between; }
.note-slider-ticks-row span { font-size: 10px; color: var(--text-tertiary); }
.note-slider-label { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; margin-left: 10px; }

