#screen-calendar .s-cal-modes-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
  position: static;
  overflow: visible;
  margin-bottom: var(--space-2) !important;
}
#screen-calendar .s-cal-quick-action-bar { display: flex; align-items: center; gap: var(--space-1-5); flex-wrap: wrap; }
#screen-calendar {
  --calendar-mode-color: var(--ink-soft);
  --calendar-mode-selected-background: var(--sage);
  --calendar-mode-selected-color: var(--chip-ink);
  --calendar-legacy-mode-color: var(--s-ink-soft);
  --calendar-legacy-selected-background: var(--brand);
}
#screen-calendar .s-cal-mode-btn { background: transparent; color: var(--calendar-legacy-mode-color); }
#screen-calendar .s-cal-mode-btn.active { background: var(--calendar-legacy-selected-background); color: var(--calendar-mode-selected-color); }
#screen-calendar .s-month-header,
#screen-calendar .s-week-header,
#screen-calendar .s-timeline-header { margin-bottom: var(--space-2); }
#calMoreOptions { position: relative; }
#calMoreOptions > summary { cursor: pointer; color: var(--ink); }
#calMoreOptions[open] { flex-basis: 100%; }
#calMoreOptions .screen-head { margin: var(--space-2) 0; }

#screen-calendar > .screen-head { margin: 0; min-height: 0; }
#screen-calendar > .screen-head .s-title { font-size: var(--text-lg); }
#screen-calendar .screen-head-l { flex-wrap: wrap; }
#screen-calendar #calGcalMiniBadgeSlot { flex: none; }
#screen-calendar #calViewToggle { display: flex; width: 100%; margin: 0; padding: 0; border: 0; }
#screen-calendar #calViewToggle .s-cal-mode-btn { flex: 1 1 0; min-width: 0; min-height: var(--touch-min); border: 0; border-radius: var(--radius-control); cursor: pointer; }
#screen-calendar .s-month-header, #screen-calendar .s-week-header, #screen-calendar .s-timeline-header { margin-bottom: 0; }
#screen-calendar :is(.s-month-header, .s-week-header, .s-timeline-header) :is(.s-cal-arrow, .s-cal-today-badge, .btn-primary) { min-width: var(--touch-min); min-height: var(--touch-min); box-sizing: border-box; }
#screen-calendar .s-cal-today-badge { display: inline-flex; align-items: center; justify-content: center; }
#screen-calendar .s-month-cal-card { padding: 0; }
#screen-calendar .s-month-days-header { margin-bottom: 0 !important; line-height: 1; }
#screen-calendar[data-cal-mode="month"] #calDayDetail #calAddManualBtn,
#screen-calendar[data-cal-mode="month"] #calDayDetail #calEmptyAddBtn,
#screen-calendar[data-cal-mode="week"] #calDayDetail #calAddManualBtn,
#screen-calendar[data-cal-mode="week"] #calDayDetail #calEmptyAddBtn,
#screen-calendar[data-cal-mode="timeline"] #calDayDetail #calAddManualBtn,
#screen-calendar[data-cal-mode="timeline"] #calDayDetail #calEmptyAddBtn {
  display: none;
}

.s-cal-day-items-list .cal-row-month { cursor:pointer; margin-bottom:6px; padding:8px 10px; border-radius:10px; background:rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.05); }
.cal-row-month .cal-row-month-title { font-size:0.85rem; }
.cal-row-month .cal-row-month-meta { font-size:0.7rem; color:var(--s-ink-faint, #64748B); }
.cal-row-month .cal-row-month-kind { font-size:0.68rem; }
.s-week-day-detail .cal-row-week { --cal-row-completed: #10b981; display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:10px; background:var(--surface-2, rgba(255,255,255,0.04)); border:1px solid var(--rule); margin-bottom:8px; cursor:pointer; }
.cal-row-week .cal-row-week-check { background:none; border:none; padding:4px; cursor:pointer; color:var(--ink-sub); }
.cal-row-week.done .cal-row-week-check { color:var(--cal-row-completed); }
.cal-row-week .cal-row-week-content { flex:1; min-width:0; }
.cal-row-week .cal-row-week-title { font-weight:600; font-size:0.875rem; color:var(--ink); }
.cal-row-week.done .cal-row-week-title { text-decoration:line-through; opacity:0.6; }
.cal-row-week .cal-row-week-meta { font-size:0.75rem; color:var(--ink-soft); }
.cal-row-week .cal-row-week-detail { font-size:0.75rem; color:var(--brand); font-weight:600; }
.s-timeline-track .cal-row-time { display:flex; align-items:center; gap:10px; padding:4px 0; }
.cal-row-time .cal-row-time-label { font-size:0.75rem; font-weight:700; color:var(--ink-soft); min-width:38px; text-align:center; }
.cal-row-time .cal-row-time-block { flex:1; display:flex; align-items:center; justify-content:space-between; padding:8px 12px; border-radius:10px; cursor:pointer; }
.cal-row-time .cal-row-time-title { font-size:0.875rem; font-weight:600; }
.cal-row-time.done .cal-row-time-title { text-decoration:line-through; opacity:0.6; }
.cal-row-time .cal-row-time-badge { border:none; cursor:pointer; background:transparent; padding:4px 8px; border-radius:6px; }
body:is(.font-large, .font-xlarge) :is(.screen, #homeDetailSheet) :is(.cal-row-week, .cal-row-time, .cal-row-time-block) {
  min-width: 0;
  flex-wrap: wrap;
}
@media (max-width: 320px) {
  :is(.screen, #homeDetailSheet) :is(.cal-row-week, .cal-row-time, .cal-row-time-block) {
    min-width: 0;
    flex-wrap: wrap;
  }
}

/* ============ 구글 캘린더 연동 배지 & 아이콘 (C398) ============ */
.cal-gcal-badge { cursor:pointer; background:var(--surface-2); border:1px solid var(--rule); padding:var(--space-0-5) var(--space-2); min-height:22px; border-radius:var(--radius-20); display:inline-flex; align-items:center; gap:5px; font-size:var(--text-xs); font-weight:var(--weight-semibold); }
.cal-gcal-badge .cal-gcal-icon { flex:0 0 13px; display:inline-block; vertical-align:middle; }
.cal-gcal-badge .g-blue { fill:#4285F4; }
.cal-gcal-badge .g-green { fill:#34A853; }
.cal-gcal-badge .g-yellow { fill:#FBBC05; }
.cal-gcal-badge .g-red { fill:#EA4335; }
.cal-gcal-badge .txt-amber { color:var(--amber); }
.cal-gcal-badge .txt-ink { color:var(--ink); }
.cal-gcal-badge .txt-ink-soft { color:var(--ink-soft); }
.cal-gcal-badge .icon-wrap-opacity { opacity:.6; display:inline-flex; align-items:center; }

/* ============ 타임라인 시간표 (C398) ============ */
.timetable-card { position:relative; overflow:hidden; padding:var(--space-2-5) var(--space-3); margin-bottom:var(--space-3-5); border-radius:var(--radius-control); background:var(--card); border:1px solid var(--border); }
.timetable-header-row { position:relative; z-index:var(--z-content); display:flex; align-items:center; justify-content:space-between; margin-bottom:var(--space-1-5); padding-bottom:var(--space-1-5); border-bottom:1px solid var(--rule); }
.timetable-header-left { display:flex; align-items:center; gap:var(--space-2); }
.timetable-header-title { font-weight:var(--weight-bold); font-size:var(--text-md); color:var(--ink); }
.timetable-grid { position:relative; z-index:var(--z-content); max-height:360px; overflow-y:auto; }
.timetable-chip { background:var(--card); border:1px solid var(--brand); border-left:3px solid var(--brand); border-radius:var(--radius-xs); padding:var(--space-1) var(--space-2); margin-bottom:3px; font-size:var(--text-sm); display:flex; align-items:center; justify-content:space-between; gap:var(--space-1-5); }
.timetable-chip.done-chip { border-color:var(--primary, #10b981); border-left-color:var(--primary, #10b981); }
.timetable-chip-left { display:flex; align-items:center; gap:var(--space-1-5); overflow:hidden; flex:1; min-width:0; }
.timetable-chip-time { font-size:.6875rem; flex-shrink:0; }
.timetable-slot { display:flex; border-bottom:1px solid var(--border-subtle, rgba(0,0,0,.06)); min-height:38px; cursor:pointer; }
.slot-time { width:48px; padding:var(--space-1) var(--space-1-5); font-size:var(--text-xs); font-weight:var(--weight-bold); color:var(--ink-faint); border-right:1px solid var(--border-subtle, rgba(0,0,0,.06)); display:flex; align-items:flex-start; justify-content:flex-end; }
.slot-content { flex:1; padding:var(--space-0-5) var(--space-2); display:flex; flex-direction:column; justify-content:center; }
.slot-empty { color:var(--ink-faint); font-size:.71875rem; opacity:0.4; }
.sched-goal-badge { font-size:.72rem; padding:1px 6px; }
.sched-check-btn { cursor:pointer; width:18px; height:18px; font-size:.65rem; }
.sched-title-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:var(--weight-semibold); color:var(--ink); }
.cal-day-bg-btn { font-size:var(--text-xs); padding:var(--space-0-5) var(--space-2); border-radius:var(--radius-xs); display:inline-flex; align-items:center; gap:var(--space-1); }

/* ============ 일자 셀 다중 배경 (C398) ============ */
.cal-cell-bg-multi { position:absolute; inset:0; display:flex; flex-direction:column; pointer-events:none; overflow:hidden; border-radius:6px; }
.cal-cell-bg-multi > div { flex:1; background-size:cover; background-position:center; opacity:0.5; }
.cal-cell-bg-multi > div:last-child { border-top:1px solid rgba(255,255,255,0.2); }

/* ============ 일자 상세 (day-detail) (C398) ============ */
.cal-detail-title-row { margin-bottom:12px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; }
.cal-detail-title-left { display:flex; align-items:center; gap:8px; white-space:nowrap; }
.cal-detail-icon, .cal-detail-title-icon { font-size:1.2rem; }
.cal-detail-title, .cal-detail-title-text { margin:0; font-size:1.05rem; font-weight:800; color:var(--ink); white-space:nowrap; }
.cal-detail-title-dday { background:var(--red-soft); color:var(--brand-strong); font-weight:700; white-space:nowrap; }
.cal-detail-actions, .cal-detail-title-actions { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.cal-detail-btn-bg { font-size:.78rem; padding:3px 8px; border-radius:6px; display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
.cal-detail-btn-hub { font-size:.78rem; padding:3px 8px; color:var(--ink); border-color:var(--rule); white-space:nowrap; }
.cal-detail-btn-add { font-size:.78rem; padding:3px 9px; font-weight:700; white-space:nowrap; }
.cal-detail-list { display:flex; flex-direction:column; gap:6px; }
.cal-detail-time, .cal-detail-time-badge, .hub-event-time { background:var(--surface-2); color:var(--ink); margin-left:4px; }
.sched-notify-badge { font-size:.72rem; padding:1px 6px; border-radius:6px; background:var(--green-soft, rgba(16,185,129,0.12)); color:var(--primary, #10b981); font-weight:700; display:inline-flex; align-items:center; gap:2px; white-space:nowrap; }
.cal-detail-rec-chip, .cal-detail-rec-link { cursor:pointer; background:var(--surface-2); color:var(--ink); border:1px solid var(--rule); font-size:.8125rem; padding:2px 6px; margin-left:4px; }
.cal-detail-row { padding:10px 12px; border-radius:14px; background:var(--card); border:1px solid var(--rule); margin-bottom:0; }
.cal-detail-row.is-clickable { cursor:pointer; }
.cal-detail-main, .cal-detail-row-main { align-items:flex-start; gap:8px; }
.cal-detail-content { flex:1; min-width:0; }
.cal-detail-check { cursor:pointer; flex:0 0 auto; margin-top:2px; width:22px; height:22px; border-radius:7px; }
.cal-detail-row-title, .cal-detail-item-title { font-size:.9rem; font-weight:700; }
.cal-detail-sub, .cal-detail-item-meta { font-size:.78rem; margin-top:2px; }
.cal-detail-edit-btn, .cal-detail-item-edit-btn { font-size:.8125rem; padding:2px 4px; margin-right:2px; }
.cal-detail-empty { padding:20px 10px; text-align:center; }
.cal-detail-empty-icon { font-size:2rem; margin-bottom:6px; }
.cal-detail-empty-p { margin:0 0 10px; font-size:.875rem; color:var(--ink-soft); }
.cal-detail-empty-btn { font-size:.8125rem; padding:4px 10px; }
.cal-detail-att-wrap { margin-top:4px; }
.cal-detail-title-wrap { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }

/* ============ 일자 관리 허브 (day-edit-hub) (C398) ============ */
.hub-events-container, .hub-event-list { display:flex; flex-direction:column; gap:8px; max-height:260px; overflow-y:auto; margin-bottom:14px; }
.hub-event-row, .hub-event-item { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 10px; background:var(--card2); border-radius:10px; border:1px solid var(--rule); }
.hub-event-left { display:flex; align-items:flex-start; gap:8px; flex:1; min-width:0; }
.hub-event-check { cursor:pointer; flex:0 0 auto; }
.hub-event-body { flex:1; min-width:0; }
.hub-event-title-wrap, .hub-event-header { font-weight:700; font-size:.875rem; color:var(--ink); display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.hub-event-sub, .hub-event-meta { font-size:.8125rem; margin-top:2px; }
.hub-event-actions { display:flex; gap:14px; align-items:center; }
.hub-btn-del { color:var(--brand-strong); font-size:1rem; padding:4px 6px; }
.hub-btn-att { font-size:.875rem; padding:4px 6px; }
.hub-btn-gcal { font-size:.8125rem; padding:3px 7px; text-decoration:none; border-color:var(--rule); }
.hub-btn-rec { font-size:.8125rem; padding:2px 6px; color:var(--ink); border-color:var(--rule); }
.hub-btn-edit { font-size:.875rem; padding:4px 6px; }
.hub-photo-card { margin-bottom:12px; padding:10px; background:var(--surface-2); border-radius:10px; border:1px solid var(--rule); display:flex; gap:10px; align-items:center; }
.hub-photo-thumb { width:56px; height:56px; border-radius:8px; background-size:cover; background-position:center; flex:0 0 56px; border:1px solid var(--rule); }
.hub-photo-body { flex:1; min-width:0; }
.hub-photo-title { font-size:.75rem; font-weight:700; color:var(--ink-soft); display:flex; align-items:center; gap:4px; }
.hub-photo-text { font-size:.84rem; font-weight:600; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }
.hub-photo-feedback { font-size:.72rem; color:var(--sage); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hub-header-row { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
.hub-header-title { margin:0; }
.hub-header-dday { font-weight:700; font-size:.8125rem; }
.hub-desc { font-size:.8125rem; margin:0 0 12px; }
.hub-bg-wrap { margin-bottom:10px; }
.hub-btn-bg { width:100%; padding:8px 0; font-size:.84rem; display:flex; align-items:center; justify-content:center; gap:6px; background:var(--surface-2); color:var(--ink); border:1px solid var(--rule); border-radius:8px; }
.hub-action-row { display:flex; gap:6px; margin-bottom:12px; }
.hub-btn-add { flex:1; padding:8px 0; font-size:.875rem; display:flex; align-items:center; justify-content:center; gap:6px; }
.hub-btn-pro { flex:1; padding:8px 0; font-size:.875rem; display:flex; align-items:center; justify-content:center; gap:6px; color:var(--ink); border-color:var(--rule); }
.hub-empty-state { padding:18px 10px; margin-bottom:14px; }
.hub-empty-p { margin:4px 0 0; font-size:.875rem; }

/* ============ 배경사진 선택기 (day-bg-picker) (C398) ============ */
.cal-bg-preview-layer { display:flex; flex-direction:column; pointer-events:none; }
.cal-bg-preview-layer.single { background-size:cover; background-position:center; }
.cal-bg-split-half { flex:1; background-size:cover; background-position:center; opacity:0.5; }
.cal-bg-split-half:last-child { border-top:1px solid rgba(255,255,255,0.4); }
.cal-bg-header-row { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.cal-bg-back-btn { cursor:pointer; margin:0; font-size:.875rem; color:var(--ink); font-weight:700; }
.cal-bg-title { margin:0; font-size:1.1rem; color:var(--ink); }
.cal-bg-title-margin { margin:0 0 8px; font-size:1.1rem; color:var(--ink); }
.cal-bg-desc { font-size:.8125rem; margin:0 0 12px; line-height:1.4; }
.cal-bg-status-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.cal-bg-count-badge { font-size:.75rem; font-weight:700; color:var(--brand); }
.cal-bg-box-day { font-size:1.1rem; font-weight:700; color:var(--ink); margin-bottom:4px; }
.cal-bg-box-tag { display:inline-block; background:var(--surface-2); color:var(--ink); padding:2px 8px; border-radius:6px; font-size:.75rem; font-weight:600; margin-bottom:4px; border:1px solid var(--rule); }
.cal-bg-box-hint { font-size:.75rem; color:var(--ink-soft); }
.cal-bg-btn-row { display:flex; gap:8px; margin-bottom:14px; }
.cal-bg-btn-trigger { flex:1; padding:8px 0; display:flex; align-items:center; justify-content:center; gap:6px; font-size:.875rem; }
.cal-bg-btn-delete { padding:8px 12px; color:var(--brand-strong); border-color:var(--rule); font-size:.8125rem; }
.cal-bg-modal-actions { display:flex; gap:8px; }
.cal-bg-btn-cancel, .cal-bg-btn-save { flex:1; }

/* ============ 수동 일정 편집 모달 (manual-edit-modal) (C398) ============ */
.cal-edit-header-row { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.cal-edit-back-btn { cursor:pointer; margin:0; font-size:.875rem; color:var(--ink); font-weight:700; }
.cal-edit-date-faint { font-size:.8125rem; }
.cal-edit-select-w100 { width:100%; }
.cal-edit-subtask-field { margin-top:8px; }
.cal-edit-subtask-label { display:flex; align-items:center; justify-content:space-between; }
.cal-edit-subtask-hint { font-size:0.75rem; color:var(--brand); font-weight:600; }
.cal-edit-toggle-row { margin-top:10px; }
.cal-edit-toggle-row-lg { margin-top:12px; }
.cal-edit-notify-field { margin-top:6px; }
.cal-edit-custom-wrap { display:flex; align-items:center; gap:6px; margin-top:6px; }
.cal-edit-custom-wrap[hidden] { display:none; }
.cal-edit-custom-inp { flex:1; }
.cal-edit-custom-suffix { font-size:0.875rem; color:var(--ink); font-weight:600; white-space:nowrap; }
.cal-edit-modal-actions { margin-top:16px; gap:8px; }
.cal-edit-save-btn { flex:1; background:var(--primary, #10b981) !important; color:#fff !important; font-weight:700; box-shadow:0 2px 8px rgba(16,185,129,0.3); }

/* ============ 성소 캘린더 (sanctuary-calendar-views & engine) (C398) ============ */
.s-cal-empty-cell { opacity:0.2; pointer-events:none; }
.s-cal-bg-layer { position:absolute; inset:0; opacity:0.38; border-radius:10px; pointer-events:none; }
.s-cal-dot { display:inline-block; width:5px; height:5px; border-radius:50%; margin:0 1px; background:var(--brand, #6366f1); }
.s-cal-dot.done { background:var(--primary, #10b981); }
.s-cal-more-dots { font-size:0.55rem; opacity:0.7; margin-left:1px; }
.s-cal-dots-row { position:relative; z-index:1; display:flex; align-items:center; justify-content:center; gap:1px; margin-top:2px; }
.s-cal-day-cell { position:relative; }
.s-day-num { position:relative; z-index:1; }
.s-cal-day-items-list { margin-top:10px; padding-top:10px; border-top:1px solid rgba(255,255,255,0.06); }
.s-cal-empty-day-items { margin-top:10px; padding:12px; text-align:center; font-size:0.78rem; color:var(--s-ink-soft); border-top:1px solid rgba(255,255,255,0.06); }
.s-cal-selected-bar { margin-top:12px; padding-top:10px; }
.s-cal-actions-bar { display:flex; gap:5px; flex-wrap:wrap; }
.s-cal-btn-action { padding:3px 7px; font-size:0.72rem; }
.s-cal-btn-add-action { padding:3px 9px; font-size:0.72rem; }
.s-timeline-empty { text-align:center; padding:36px 14px; color:var(--ink-sub); font-size:0.875rem; }
.s-timeline-header-wrap { flex-wrap:wrap; gap:8px; }
.s-timeline-header-left { display:flex; align-items:center; gap:6px; }
.s-timeline-arrow-btn { padding:6px 10px; min-height:36px; min-width:36px; }
.s-timeline-title-text { margin:0; white-space:nowrap; font-size:0.95rem; }
.s-timeline-today-badge { cursor:pointer; }
.s-timeline-bottom-actions { margin-top:14px; display:flex; justify-content:space-between; align-items:center; gap:8px; }
.s-cal-btn-lockscreen { display:inline-flex; align-items:center; gap:4px; padding:5px 9px; font-size:0.74rem; font-weight:600; border-radius:8px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); color:var(--ink); cursor:pointer; white-space:nowrap; word-break:keep-all; }
.s-cal-btn-add-schedule { padding:5px 10px; font-size:0.75rem; font-weight:700; border-radius:8px; background:var(--brand,#10B981); color:var(--chip-ink); border:none; cursor:pointer; white-space:nowrap; }
.s-week-summary-empty { font-size:0.8125rem; color:var(--ink-soft); opacity:0.6; }
.s-week-ev-row { display:flex; align-items:center; gap:6px; font-size:0.8125rem; margin-bottom:2px; }
.s-week-ev-dot { font-size:0.65rem; color:var(--brand); }
.s-week-ev-dot.done { color:var(--primary, #10b981); }
.s-week-ev-time { color:var(--ink-soft); font-size:0.75rem; min-width:32px; }
.s-week-ev-title { font-weight:600; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.s-week-ev-title.done { text-decoration:line-through; opacity:0.6; }
.s-week-ev-more { font-size:0.7rem; color:var(--brand); font-weight:600; }
.s-week-ev-wrap { flex:1; min-width:0; }
.s-week-count-chip { font-size:0.75rem; padding:2px 8px; border-radius:6px; background:var(--surface-2, rgba(255,255,255,0.06)); color:var(--ink-soft); font-weight:600; }
.s-week-title-text { font-size:0.95rem; }
.s-week-day-detail { margin-top:14px; padding-top:12px; border-top:1px solid var(--rule, rgba(255,255,255,0.08)); }
.s-week-detail-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.s-week-detail-title { margin:0; font-size:0.9rem; color:var(--ink-soft); }
.s-week-detail-empty { text-align:center; padding:18px 0; color:var(--ink-soft); font-size:0.85rem; }

/* ============ 잠금화면 허브 모달 (lockscreen-hub) (C398) ============ */
.ls-hub-container { max-height:85vh; overflow-y:auto; padding-bottom:16px; }
.ls-hub-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.ls-hub-title { margin:0; font-size:1.15rem; font-weight:800; color:var(--ink); display:flex; align-items:center; gap:6px; }
.ls-hub-close { border:none; background:transparent; font-size:1.25rem; cursor:pointer; color:var(--ink-soft); padding:4px 8px; }
.ls-hub-desc { margin:0 0 14px; font-size:.84rem; color:var(--ink-soft); line-height:1.45; }
.ls-hub-card { background:var(--surface-2); border-radius:14px; padding:14px; border:1px solid var(--border-color); margin-bottom:14px; }
.ls-hub-card-title { font-size:.875rem; font-weight:800; color:var(--ink); margin-bottom:4px; display:flex; align-items:center; gap:6px; }
.ls-hub-card-desc { font-size:.78rem; color:var(--ink-soft); line-height:1.45; margin-bottom:10px; }
.ls-hub-dl-btn { font-size:.9rem; font-weight:700; padding:12px; border-radius:12px; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; }
.ls-seg-bar { display:flex; background:var(--surface-2); padding:4px; border-radius:12px; gap:4px; margin-bottom:16px; }
.ls-tab-btn { flex:1; border:none; background:transparent; color:var(--ink-soft); padding:8px 4px; font-size:.78rem; font-weight:600; border-radius:8px; cursor:pointer; transition:all .15s ease; }
.ls-tab-btn[class~="active"] { background:var(--bg-card); color:var(--ink); font-weight:700; box-shadow:0 1px 3px rgba(0,0,0,0.08); }
.ls-phone-mockup { background:linear-gradient(180deg, #090d16 0%, #172033 100%); border-radius:28px; padding:16px 12px 14px; border:3px solid #334155; margin:0 auto 16px; box-shadow:0 12px 30px rgba(0,0,0,0.3); position:relative; max-width:280px; font-family:-apple-system,BlinkMacSystemFont,sans-serif; }
.ls-phone-notch { width:68px; height:12px; background:#000000; border-radius:999px; margin:0 auto 10px; box-shadow:inset 0 1px 2px rgba(255,255,255,0.1); }
.ls-phone-status { display:flex; align-items:center; justify-content:space-between; padding:0 6px; margin-bottom:10px; font-size:.7rem; color:#94a3b8; font-weight:600; }
.ls-phone-clock-area { text-align:center; margin-bottom:12px; }
.ls-phone-clock-time { font-size:2rem; font-weight:800; color:#f8fafc; letter-spacing:-1px; line-height:1; }
.ls-phone-clock-date { font-size:.72rem; font-weight:600; color:#cbd5e1; margin-top:4px; }
.ls-card-mockup { background:rgba(30, 41, 59, 0.9); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border:1px solid rgba(255,255,255,0.14); border-radius:18px; padding:12px 10px; color:#f8fafc; box-shadow:0 8px 24px rgba(0,0,0,0.35); }
.ls-card-mockup-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; font-size:.68rem; color:#94a3b8; }
.ls-card-mockup-title { display:flex; align-items:center; gap:4px; font-weight:700; color:#f8fafc; }
.ls-card-mockup-badge { font-size:.65rem; color:#38bdf8; font-weight:700; }
.ls-sim-section { margin-bottom:8px; }
.ls-sim-dday-badge { font-size:0.65rem; padding:1px 6px; border-radius:6px; font-weight:700; }
.ls-sim-sched-row { display:flex; align-items:center; gap:6px; font-size:0.72rem; margin-bottom:3px; }
.ls-sim-sched-title { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ls-sim-sched-time { font-size:0.68rem; color:#94a3b8; margin-left:auto; white-space:nowrap; }
.ls-sim-opt-card { background:var(--surface-2); border-radius:12px; padding:10px 12px; border:1px solid var(--border-color); margin-bottom:10px; }
.ls-sim-opt-header { font-size:.8125rem; font-weight:700; color:var(--ink); margin-bottom:8px; display:flex; align-items:center; gap:6px; }
.ls-sim-opt-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.ls-sim-opt-label { display:flex; align-items:center; gap:6px; font-size:.78rem; color:var(--ink); cursor:pointer; }
.ls-sim-opt-save-btn { width:100%; padding:10px; font-size:.84rem; font-weight:700; border-radius:10px; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:6px; }
.ls-widget-card { background:var(--surface-2); border-radius:14px; padding:14px; border:1px solid var(--border-color); margin-bottom:14px; }
.ls-widget-title { font-size:.875rem; font-weight:800; color:var(--ink); margin-bottom:4px; display:flex; align-items:center; gap:6px; }
.ls-widget-desc { font-size:.78rem; color:var(--ink-soft); line-height:1.45; margin-bottom:12px; }
.ls-widget-step-box { background:var(--bg-card); border-radius:10px; padding:10px 12px; border:1px solid var(--border-color); margin-bottom:10px; font-size:.78rem; line-height:1.5; color:var(--ink); }
.ls-widget-url-box { display:flex; gap:6px; margin-bottom:12px; }
.ls-widget-url-inp { flex:1; font-size:.78rem; padding:8px 10px; border-radius:8px; border:1px solid var(--border-color); background:var(--surface-2); color:var(--ink); }
.ls-widget-copy-btn { font-size:.78rem; font-weight:700; padding:8px 14px; border-radius:8px; cursor:pointer; white-space:nowrap; }
.ls-widget-guide-title { font-size:.8125rem; font-weight:700; color:var(--ink); margin-bottom:6px; }
.ls-widget-ol { margin:0 0 10px; padding-left:18px; font-size:.76rem; color:var(--ink-soft); line-height:1.6; }

.hub-btn-close { width:100%; }

.cal-bg-preview-layer.show-split { display:flex; flex-direction:column; }
.cal-bg-preview-layer.hidden { display:none; }

/* ============ 잠금화면 상세 컴포넌트 클래스 (C398) ============ */
.ls-sim-days-header { display:grid; grid-template-columns:repeat(7,1fr); text-align:center; font-size:.6rem; font-weight:700; margin-bottom:4px; }
.ls-sim-days-header .txt-red { color:#f87171; }
.ls-sim-days-header .txt-blue { color:#60a5fa; }
.ls-sim-cells-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; text-align:center; }
.ls-sim-cell { padding:2px 0; font-size:.62rem; border-radius:6px; position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#94a3b8; }
.ls-sim-cell.sunday { color:#f87171; }
.ls-sim-cell.saturday { color:#60a5fa; }
.ls-sim-cell.today { background:#0284c7; color:#ffffff; font-weight:800; box-shadow:0 0 8px rgba(56,189,248,0.5); }
.ls-sim-cell-empty { padding:2px 0; font-size:.62rem; opacity:0; }
.ls-sim-dot { display:block; width:3px; height:3px; border-radius:50%; margin-top:1px; }
.ls-sim-dot[class~="active"] { background:#38bdf8; }
.ls-sim-dot.today-dot { background:#ffffff; }
.ls-sim-month-box { background:rgba(15,23,42,0.65); border:1px solid rgba(255,255,255,0.08); border-radius:12px; padding:8px; margin-bottom:8px; }
.ls-sim-month-title-row { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; padding:0 2px; }
.ls-sim-month-title { font-size:.68rem; font-weight:700; color:#f8fafc; }
.ls-sim-today-badge { font-size:.6rem; color:#38bdf8; font-weight:600; }
.ls-sim-goal-box { margin-bottom:8px; background:rgba(15,23,42,0.6); border:1px solid rgba(255,255,255,0.08); border-radius:10px; padding:6px 8px; }
.ls-sim-goal-header { display:flex; align-items:center; justify-content:space-between; font-size:.68rem; font-weight:700; color:#38bdf8; margin-bottom:4px; }
.ls-sim-progress-track { height:5px; border-radius:999px; background:rgba(255,255,255,0.12); overflow:hidden; }
.ls-sim-progress-bar { height:100%; border-radius:999px; background:linear-gradient(90deg, #38bdf8, #22c55e); transition:width .3s ease; }
.ls-sim-sched-box { background:rgba(15,23,42,0.6); border:1px solid rgba(255,255,255,0.08); border-radius:10px; padding:6px 8px; margin-bottom:8px; }
.ls-sim-sched-header { font-size:.65rem; font-weight:700; color:#94a3b8; margin-bottom:3px; display:flex; align-items:center; justify-content:space-between; }
.ls-sim-sched-max { font-size:.6rem; color:#38bdf8; }
.ls-sim-sched-line { font-size:.68rem; color:#f1f5f9; line-height:1.45; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:block; max-width:100%; margin-bottom:2px; }
.ls-sim-sched-empty { font-size:.66rem; color:#94a3b8; font-style:italic; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:block; max-width:100%; }
.ls-sim-chip { border-radius:6px; padding:2px 6px; font-size:.62rem; font-weight:700; }
.ls-sim-chip.streak { background:rgba(249,115,22,0.2); color:#fdba74; border:1px solid rgba(249,115,22,0.4); }
.ls-sim-chip.dday { background:rgba(168,85,247,0.2); color:#d8b4fe; border:1px solid rgba(168,85,247,0.4); }
.ls-live-badge { text-align:center; margin-bottom:12px; font-size:.78rem; font-weight:700; padding:6px 12px; border-radius:999px; width:100%; box-sizing:border-box; background:var(--surface-2); color:var(--ink-soft); border:1px solid var(--border-color); }
.ls-live-badge[class~="active"] { background:rgba(34, 197, 94, 0.12); color:#16a34a; border:1px solid rgba(34, 197, 94, 0.3); }
.ls-sim-quick-btn { flex:1; text-align:center; background:rgba(255,255,255,0.12); border-radius:8px; padding:5px; font-size:.68rem; font-weight:700; color:#ffffff; }
.ls-sim-slider { margin-top:8px; background:rgba(255,255,255,0.09); border:1px solid rgba(255,255,255,0.18); border-radius:999px; padding:3px 6px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; user-select:none; transition:all .2s ease; }
.ls-sim-slider-knob { width:24px; height:24px; border-radius:50%; background:#38bdf8; display:flex; align-items:center; justify-content:center; color:#0f172a; font-weight:900; font-size:.7rem; box-shadow:0 2px 6px rgba(0,0,0,0.3); transition:transform .3s ease; }
.ls-sim-slider-knob.slide-right { transform:translateX(180px); }
.ls-sim-slider-text { font-size:.62rem; color:#cbd5e1; font-weight:700; letter-spacing:0.5px; padding-right:6px; }
.ls-phone-home-indicator { width:90px; height:4px; background:rgba(255,255,255,0.35); border-radius:2px; margin:18px auto 0; }
.ls-btn-takeover { font-size:.9rem; font-weight:700; padding:12px; border-radius:12px; margin-bottom:8px; cursor:pointer; }
.ls-btn-refresh { font-size:.8125rem; font-weight:600; padding:9px; border-radius:10px; border:1px solid var(--border-color); margin-bottom:16px; cursor:pointer; }
.ls-opt-card { background:var(--bg-card); border:1px solid var(--border-color); border-radius:14px; padding:14px; margin-bottom:14px; }
.ls-opt-title { font-size:.84rem; font-weight:800; color:var(--ink); margin-bottom:10px; display:flex; align-items:center; gap:6px; }
.ls-opt-list { display:flex; flex-direction:column; gap:10px; font-size:.8125rem; color:var(--ink); }
.ls-opt-row { display:flex; align-items:center; gap:8px; cursor:pointer; }
.ls-opt-chk { accent-color:var(--primary); width:16px; height:16px; }
.ls-opt-tip { margin-top:10px; font-size:.75rem; color:var(--ink-soft); line-height:1.4; }
.ls-info-box { background:var(--bg-card); border:1px solid var(--border-color); border-radius:14px; padding:14px; font-size:.8125rem; color:var(--ink-soft); line-height:1.55; }
.ls-info-title { font-weight:800; color:var(--ink); margin-bottom:6px; }
.ls-btn-apk-wrap { margin:6px 0 8px; }
.ls-btn-apk { border:1px solid #38bdf8; color:#38bdf8; border-radius:8px; padding:5px 10px; font-size:.75rem; font-weight:700; cursor:pointer; }
.ls-apk-guide-box { background:var(--card2); border:1px solid var(--rule); border-radius:12px; padding:14px; font-size:.875rem; line-height:1.6; color:var(--ink); margin-bottom:14px; }
.ls-apk-btn-close { padding:12px; font-weight:700; border-radius:12px; }
.ls-webcal-label { display:block; font-size:.8125rem; font-weight:700; color:var(--ink); margin-bottom:6px; }
.ls-webcal-wrap { display:flex; gap:6px; }
.ls-webcal-inp { flex:1; padding:8px 10px; font-size:.8125rem; border-radius:10px; border:1px solid var(--border-color); background:var(--bg-card); color:var(--ink); }
.ls-webcal-btn-copy { border-radius:10px; padding:8px 14px; font-weight:700; cursor:pointer; }
.ls-btn-dl-ics { font-size:.8125rem; font-weight:600; padding:8px; border-radius:10px; border:1px solid var(--border-color); margin-bottom:14px; cursor:pointer; }
.ls-widget-devices-wrap { display:flex; gap:6px; margin-bottom:10px; }
.ls-widget-device-btn { flex:1; padding:6px; font-size:.78rem; font-weight:600; border-radius:8px; border:1px solid var(--border-color); background:transparent; cursor:pointer; }
.ls-widget-device-btn[class~="active"] { font-weight:700; background:var(--surface-2); }
.ls-widget-guide-text { font-size:.8125rem; color:var(--ink-soft); line-height:1.6; }

.ls-apk-modal-wrap { padding:16px 8px; text-align:left; }
.ls-apk-modal-title { margin:0 0 10px; font-size:1.15rem; font-weight:800; color:var(--ink); }
.ls-apk-p { margin:0 0 8px; }
.ls-apk-p-last { margin:0; }

/* ============ 잠금화면 메타 & 빠른 체크인 & 모닝 알림 (C398) ============ */
.ls-sim-meta-wrap { display:flex; gap:4px; margin-bottom:10px; flex-wrap:wrap; }
.ls-sim-meta-wrap[hidden] { display:none; }
.ls-sim-quick-row { display:flex; gap:6px; }
.ls-digest-card { background:var(--surface-2); border-radius:14px; padding:14px; border:1px solid var(--border-color); margin-bottom:14px; }
.ls-digest-card-title { font-size:.84rem; font-weight:800; color:var(--ink); margin-bottom:4px; }
.ls-digest-card-desc { font-size:.78rem; color:var(--ink-soft); line-height:1.45; }
.ls-digest-field { margin-bottom:16px; }
.ls-digest-label { display:block; font-size:.8125rem; font-weight:700; color:var(--ink); margin-bottom:6px; }
.ls-digest-select { width:100%; padding:10px; border-radius:10px; border:1px solid var(--border-color); background:var(--bg-card); color:var(--ink); font-size:.875rem; font-weight:600; }
.ls-digest-btn { padding:10px; border-radius:10px; font-size:.84rem; font-weight:700; opacity:0.6; cursor:not-allowed; }
