/* TODOmate 3.0 / Shared Days. Mobile calendar, not a desktop dashboard. */
.schedule-app[data-schedule-tab=upcoming] #view-app { padding-bottom:calc(158px + env(safe-area-inset-bottom)); }
.schedule-app[data-schedule-tab=upcoming] .pocket-summary,
.schedule-app[data-schedule-tab=upcoming] #quick-composer,
.schedule-app[data-schedule-tab=upcoming] .pocket-scope-slot,
.schedule-app[data-schedule-tab=upcoming] #calendar-main,
.schedule-app[data-schedule-tab=upcoming] #upcoming-chips,
.schedule-app[data-schedule-tab=upcoming] #upcoming-list,
.schedule-app[data-schedule-tab=upcoming] #pocket-home-controls { display:none!important; }
.schedule-app[data-schedule-tab=upcoming] .pocket-header { height:calc(56px + env(safe-area-inset-top)); border-bottom:1px solid var(--line); background:var(--surface); }
.schedule-app .pocket-header-actions { display:flex; align-items:center; gap:2px; }
.schedule-app .pocket-brand strong { font-size:var(--fs-lg); letter-spacing:-.65px; }
.schedule-app[data-schedule-tab=upcoming] .dashboard { padding:0; }
.schedule-root { padding:0 18px; }
.schedule-root [hidden],.schedule-fab[hidden],.schedule-search-toggle[hidden],.schedule-editor [hidden] { display:none!important; }
.schedule-kicker { display:flex; justify-content:space-between; align-items:center; margin-top:11px; min-height:23px; }
.schedule-kicker>span { color:var(--text-3); font-size:var(--fs-xs); font-weight:var(--fw-bold); letter-spacing:1.2px; }
#schedule-status { border:0; background:none; color:var(--text-2); padding:4px 0 4px 10px; min-height:28px; font-size:var(--fs-xs); }
#schedule-status::before { content:''; display:inline-block; width:5px; height:5px; border-radius:50%; background:var(--accent); margin-right:5px; vertical-align:middle; }
#schedule-status.is-error { color:var(--danger); }
.month-toolbar { display:flex; align-items:center; justify-content:space-between; gap:6px; margin:0 0 7px; min-height:47px; }
.month-title { padding:0; border:0; background:none; color:var(--text); font-size:var(--fs-2xl); font-weight:var(--fw-bold); letter-spacing:-1px; line-height:1.3; text-align:left; min-height:44px; }
.month-title::after { content:'⌄'; font-size:var(--fs-lg); margin-left:8px; color:var(--text-3); font-weight:var(--fw-regular); vertical-align:middle; }
.month-actions { display:flex; align-items:center; gap:0; }
.month-actions button { width:36px; height:44px; border:0; background:none; padding:0; display:grid; place-items:center; color:var(--text-2); }
.month-actions #schedule-today { width:auto; min-width:43px; font-size:var(--fs-xs); font-weight:var(--fw-bold); }
.calendar-viewbar { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.calendar-modes { display:flex; padding:3px; background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r-md); }
.calendar-modes button { min-width:36px; min-height:34px; padding:3px 10px; color:var(--text-2); border:0; background:none; font-size:var(--fs-xs); border-radius:var(--r-sm); }
.calendar-modes button[aria-pressed=true] { background:var(--surface); box-shadow:0 1px 4px #14392b0d; color:var(--accent); font-weight:var(--fw-bold); }
.calendar-layers { display:flex; align-items:center; gap:5px; }
.calendar-layers button { display:flex; gap:4px; align-items:center; padding:0 9px; min-height:40px; font-size:var(--fs-xs); font-weight:var(--fw-bold); border:1px solid var(--line); border-radius:var(--r-md); background:transparent; color:var(--text-3); }
.calendar-layers button[aria-pressed=true] { color:var(--accent); background:var(--accent-weak); border-color:transparent; }
.calendar-layers .layer-private[aria-pressed=true] { color:var(--cal-private); background:var(--cal-private-bg); }
.schedule-search { display:flex; margin-top:9px; border:1px solid var(--line); border-radius:var(--r-md); background:var(--surface); padding:0 8px; }
.schedule-search input { min-width:0; flex:1; min-height:44px; font-size:var(--fs-lg); background:transparent; border:0; color:var(--text); outline:none; }
.schedule-search input::placeholder { font-size:var(--fs-xs); }
.schedule-search button { width:36px; min-height:44px; background:none; border:0; color:var(--text-2); }
.schedule-owners { display:flex; align-items:center; gap:8px; padding:7px 0 4px; }
.owner-filter { display:flex; align-items:center; gap:5px; border:0; min-height:35px; background:none; padding:0 8px; border-radius:var(--r-sm); font-size:var(--fs-xs); color:var(--text-2); }
.owner-filter[aria-pressed=true] { background:var(--surface); color:var(--text); box-shadow:inset 0 0 0 1px var(--line); font-weight:var(--fw-bold); }
.owner-filter span { max-width:80px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.owner-filter i { width:6px; height:6px; border-radius:var(--r-xs); background:var(--tone); }
.owner-filter.tone-all i { display:none; }
.tone-together { --tone:var(--cal-together); --tone-bg:var(--cal-together-bg); }
.tone-me { --tone:var(--cal-me); --tone-bg:var(--cal-me-bg); }
.tone-partner { --tone:var(--cal-partner); --tone-bg:var(--cal-partner-bg); }
.tone-private { --tone:var(--cal-private); --tone-bg:var(--cal-private-bg); }
.schedule-weekdays { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); text-align:center; font-size:var(--fs-xs); color:var(--text-3); padding:5px 0 7px; border-bottom:1px solid var(--line); }
.schedule-app .weekday-0 { color:var(--sun); }.schedule-app .weekday-6 { color:var(--sat); }
/* 공휴일은 요일과 상관없이 일요일과 같은 색 — 선택·오늘 표시는 더 구체적인 규칙이 이긴다 */
.schedule-app .cell-date.holiday { color:var(--sun); }
.schedule-app .day-holiday { color:var(--sun); }
.schedule-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:0; }
.schedule-cell { display:flex; align-items:center; flex-direction:column; border:0; border-bottom:1px solid var(--line); padding:3px 2px 3px; min-width:0; min-height:68px; height:68px; background:none; color:var(--text); border-radius:0; overflow:hidden; }
/* 앞뒤 달 날짜도 누르면 그 날로 가는 버튼이다. 40% 로 흐리면 대비가 1.6~3.0 이라 읽기 어려워, 흐림 대신 2단계 글자색으로 구분한다(주말·공휴일 색도 이 색으로 덮인다). */
.schedule-cell.outside .cell-date { color:var(--text-2); }
.schedule-cell.outside .cell-label { opacity:.55; }
.schedule-cell.selected { background:var(--surface); border-radius:var(--r-sm); box-shadow:inset 0 0 0 1.5px var(--accent); border-bottom-color:transparent; }
.cell-date { display:flex; align-items:center; justify-content:center; height:23px; width:24px; min-height:23px; border-radius:var(--r-sm); font-size:var(--fs-xs); font-weight:var(--fw-bold); margin-bottom:2px; }
.schedule-cell.today .cell-date { color:var(--on-accent); background:var(--accent); font-weight:var(--fw-bold); }
.cell-label { display:block; width:100%; text-align:left; padding:1px 3px; height:15px; min-height:15px; line-height:13px; border-radius:var(--r-xs); margin-bottom:2px; font-size:var(--fs-xs); letter-spacing:-.2px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:var(--tone); background:var(--tone-bg); font-weight:var(--fw-bold); }
.cell-label.task { color:var(--text-2); background:transparent; padding-left:1px; font-weight:var(--fw-regular); }
.cell-more { display:block; width:100%; font-size:var(--fs-xs); line-height:10px; color:var(--text-3); text-align:right; padding-right:2px; }
.schedule-grid.week-mode .schedule-cell { height:92px; }
.schedule-legend { display:flex; align-items:center; gap:12px; padding:8px 0 9px; font-size:var(--fs-xs); color:var(--text-3); border-bottom:1px solid var(--line); }
#schedule-private-note { margin-left:auto; font-size:var(--fs-xs); }
.day-agenda { padding:0 0 7px; }
.day-agenda-head { display:flex; align-items:center; justify-content:space-between; padding:13px 0 10px; gap:10px; }
.day-agenda-head h2 { font-size:var(--fs-lg); font-weight:var(--fw-bold); letter-spacing:-.65px; margin:0; }
.day-agenda-head p { font-size:var(--fs-xs); color:var(--text-3); margin:3px 0 0; }
.day-add { display:flex; align-items:center; gap:3px; padding:0 7px; min-height:40px; color:var(--accent); background:none; border:0; font-size:var(--fs-xs); font-weight:var(--fw-bold); }
.schedule-event { display:flex; width:100%; gap:12px; align-items:center; text-align:left; border:1px solid var(--line); border-left:3px solid var(--tone); background:var(--surface); border-radius:var(--r-md); padding:11px 12px; margin-bottom:7px; min-height:67px; color:var(--text); }
.event-time { flex:none; width:43px; display:flex; flex-direction:column; gap:3px; text-align:left; color:var(--tone); }
.event-time strong { font-size:var(--fs-sm); font-weight:var(--fw-bold); line-height:1.2; }
.event-time small { font-size:var(--fs-xs); color:var(--text-3); line-height:1.3; }
.event-main { flex:1; min-width:0; }
.event-main>strong { font-size:var(--fs-sm); font-weight:var(--fw-bold); display:block; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; letter-spacing:-.4px; }
.event-meta { display:flex; align-items:center; gap:5px; color:var(--text-3); font-size:var(--fs-xs); padding-top:5px; white-space:nowrap; }
.event-owner { flex:none; background:var(--tone-bg); color:var(--tone); padding:1px 5px; border-radius:var(--r-xs); font-size:var(--fs-xs); }
.event-location { overflow:hidden; text-overflow:ellipsis; min-width:0; }
.event-prep { flex:none; font-size:var(--fs-xs); }
.schedule-event>svg { flex:none; color:var(--text-3); }
.agenda-section-label { margin:15px 0 6px; color:var(--text-2); font-size:var(--fs-xs); font-weight:var(--fw-bold); }
.schedule-task { display:flex; align-items:center; gap:10px; padding:3px 0; border-bottom:1px solid var(--line); }
.schedule-check { display:grid; place-items:center; flex:none; width:38px; height:44px; border:0; color:var(--accent); background:none; position:relative; }
.schedule-check:before { content:''; position:absolute; width:21px; height:21px; border:1.5px solid var(--line-strong); border-radius:var(--r-sm); }
.schedule-check[aria-checked=true]:before { border-color:var(--accent); background:var(--accent-weak); }
.schedule-check svg { z-index:1; }
.schedule-task-body { border:0; background:none; color:var(--text); padding:9px 0; flex:1; min-width:0; text-align:left; }
.schedule-task-body strong { display:block; font-size:var(--fs-sm); font-weight:var(--fw-bold); letter-spacing:-.25px; word-break:keep-all; overflow-wrap:anywhere; }
.schedule-task-body small { display:block; color:var(--text-3); font-size:var(--fs-xs); margin-top:3px; line-height:1.5; }
.schedule-task.is-complete .schedule-task-body strong { text-decoration:line-through; color:var(--text-3); }
.schedule-completed { margin:10px 0; }.schedule-completed summary { font-size:var(--fs-xs); color:var(--text-2); min-height:40px; padding:10px 0; cursor:pointer; }
.schedule-empty { padding:21px 10px 23px; display:flex; align-items:center; flex-direction:column; text-align:center; gap:7px; color:var(--text-3); }
.schedule-empty svg { color:var(--accent); margin-bottom:2px; }.schedule-empty strong { font-size:var(--fs-sm); font-weight:var(--fw-bold); color:var(--text-2); }.schedule-empty p { font-size:var(--fs-xs); line-height:1.6; margin:0; }
.schedule-inbox-button { display:flex; align-items:center; width:100%; padding:12px 11px; gap:9px; min-height:46px; border:1px dashed var(--line-strong); background:none; color:var(--text-2); border-radius:var(--r-md); font-size:var(--fs-xs); margin-top:12px; }
.schedule-inbox-button span { flex:1; text-align:left; }
.schedule-footnote { font-size:var(--fs-xs); color:var(--text-3); line-height:1.7; margin-top:18px; text-align:center; }
.schedule-list-period { padding-top:11px; color:var(--text-2); font-size:var(--fs-xs); }
.schedule-fab { position:fixed; z-index:89; right:max(18px,calc((100vw - var(--phone-width))/2 + 18px)); bottom:calc(var(--phone-nav-h) + 14px + env(safe-area-inset-bottom)); display:flex; align-items:center; justify-content:center; gap:7px; height:52px; padding:0 18px; border:0; border-radius:var(--r-lg); color:var(--on-accent); background:var(--accent); box-shadow:0 6px 18px #163f3230; font-size:var(--fs-sm); font-weight:var(--fw-bold); }
.schedule-app .mobile-nav { border-top:1px solid var(--line); }
.schedule-app[data-schedule-tab=upcoming] #toast-root { bottom:calc(var(--phone-nav-h) + 76px + env(safe-area-inset-bottom)); }
.schedule-app .schedule-error { font-size:var(--fs-xs); line-height:1.6; color:var(--danger); padding:10px 12px; background:var(--surface); border-radius:var(--r-sm); }
.schedule-field { display:flex; flex-direction:column; gap:6px; margin-bottom:14px; min-width:0; color:var(--text-2); font-size:var(--fs-xs); }
.schedule-field .field { width:100%; min-width:0; max-width:100%; }
.schedule-duo { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.schedule-app .schedule-title-field .field { font-size:var(--fs-lg); font-weight:var(--fw-bold); padding:13px 12px; }
.schedule-toggle { display:flex; justify-content:space-between; align-items:center; min-height:44px; margin:-4px 0 11px; color:var(--text); font-size:var(--fs-sm); }
.schedule-toggle input { accent-color:var(--accent); width:21px; height:21px; }
.scope-privacy { color:var(--accent); font-size:var(--fs-xs); line-height:1.5; padding-top:7px; }.scope-privacy.private { color:var(--cal-private); }
.schedule-editor .editor-kind { margin:0 0 17px; }
.schedule-task-undated { display:flex; align-items:center; gap:7px; min-height:40px; font-size:var(--fs-xs); margin-top:-8px; margin-bottom:10px; }
.schedule-editor-extras,.event-discussion { border-top:1px solid var(--line); margin:16px 0 4px; padding-top:6px; }
.schedule-editor-extras summary,.event-discussion summary { cursor:pointer; min-height:44px; padding:11px 0; font-size:var(--fs-sm); font-weight:var(--fw-bold); color:var(--text-2); }
.schedule-editor-extras textarea { margin-bottom:10px; }.schedule-editor .repeat-note { margin:-5px 0 12px; font-size:var(--fs-xs); }
.schedule-conflict { border:1px solid #c99a5560; background:#ba84290d; color:var(--text-2); border-radius:var(--r-sm); padding:10px 12px; margin:12px 0; font-size:var(--fs-xs); line-height:1.7; }
.linked-context { padding:10px; background:var(--accent-weak); color:var(--accent); border-radius:var(--r-sm); font-size:var(--fs-xs); }
.schedule-detail .detail-owner { display:inline-flex; padding:5px 9px; border-radius:var(--r-sm); background:var(--tone-bg); color:var(--tone); font-size:var(--fs-xs); margin-bottom:16px; }
.detail-date { font-size:var(--fs-lg); font-weight:var(--fw-bold); letter-spacing:-.6px; }.detail-time { font-size:var(--fs-sm); margin:5px 0 14px; color:var(--text-2); }
.detail-location { display:flex; align-items:center; gap:7px; color:var(--text-2); font-size:var(--fs-sm); margin-bottom:12px; }
.detail-notes { white-space:pre-wrap; overflow-wrap:anywhere; font-size:var(--fs-sm); line-height:1.8; background:var(--surface-2); padding:13px 15px; border-radius:var(--r-md); margin:12px 0 22px; }
.event-link-add { border:1px dashed var(--line-strong); background:none; color:var(--accent); font-size:var(--fs-xs); display:flex; align-items:center; justify-content:center; width:100%; min-height:44px; gap:6px; border-radius:var(--r-sm); margin:8px 0; }
.event-comment { border-bottom:1px solid var(--line); padding:9px 0; font-size:var(--fs-xs); }.event-comment strong { color:var(--accent); font-size:var(--fs-xs); }.event-comment p { white-space:pre-wrap; overflow-wrap:anywhere; margin:4px 0; }.event-comment .text-button { min-height:35px; }
.event-comment-form { display:flex; align-items:end; gap:8px; margin-top:13px; }.event-comment-form .schedule-field { flex:1; margin:0; }.event-comment-form .btn-secondary { flex:none; min-height:48px; padding-inline:13px; }
.schedule-menu-action { display:block; width:100%; min-height:52px; background:none; color:var(--text); border:0; border-bottom:1px solid var(--line); text-align:left; padding:13px 4px; font-size:var(--fs-sm); }
.schedule-menu-action.danger { color:var(--danger); }
.schedule-connection-row { font-size:var(--fs-sm); border-bottom:1px solid var(--line); padding:12px 0; }
@media(max-width:359px){.schedule-root{padding-inline:12px}.month-title{font-size:var(--fs-2xl)}.calendar-modes button{min-width:31px;padding:3px 8px}.calendar-layers button{padding:0 7px;gap:3px;font-size:var(--fs-xs)}.calendar-viewbar{gap:6px}.schedule-cell{padding-inline:1px;height:65px;min-height:65px}.cell-label{font-size:var(--fs-xs);padding-inline:2px}.schedule-legend{gap:7px}.event-meta{font-size:var(--fs-xs)}.schedule-duo .field{padding-inline:8px;font-size:var(--fs-sm)!important}.month-actions button{width:32px}.month-actions #schedule-today{min-width:37px}}
@media (prefers-reduced-motion:reduce){.schedule-app *{scroll-behavior:auto!important;transition:none!important}}

/* Calendar density: preserve readable rows, never float a button over an appointment. */
.schedule-app[data-schedule-tab=upcoming] #view-app {padding-bottom:calc(86px + env(safe-area-inset-bottom));}
.schedule-app[data-schedule-tab=upcoming] .pocket-header {height:calc(54px + env(safe-area-inset-top));}
.schedule-kicker {margin-top:5px; min-height:19px;}
#schedule-status {min-height:25px;}
.month-toolbar {min-height:44px; margin-bottom:5px;}
.schedule-owners {padding:4px 0 2px;}
.owner-filter {min-height:34px;}
.schedule-weekdays {padding-top:4px;padding-bottom:6px;}
.schedule-cell {position:relative;height:60px;min-height:60px;padding-top:2px;padding-bottom:3px;}
.cell-date {height:22px;min-height:22px;font-size:var(--fs-xs);margin-bottom:2px;}
.cell-label {height:14px;min-height:14px;line-height:12px;margin-bottom:2px;}
.cell-more {position:absolute;top:7px;right:1px;width:auto;font-size:var(--fs-xs);padding:0;}
.schedule-grid.week-mode .schedule-cell {height:77px;}
.schedule-legend {padding:7px 0;}
.schedule-fab {position:static;width:40px;height:40px;padding:0;min-width:40px;border-radius:var(--r-md);box-shadow:none;}
.schedule-search-toggle {border:0!important; background:none!important;}
.schedule-app[data-schedule-tab=upcoming] #toast-root {bottom:calc(var(--phone-nav-h) + 12px + env(safe-area-inset-bottom));}
@media(max-width:359px){.schedule-cell{height:60px;min-height:60px}.schedule-app .pocket-header-actions{gap:0}.schedule-fab{width:38px;height:38px;min-width:38px}.month-title{font-size:var(--fs-2xl)}.cell-more{font-size:var(--fs-xs);right:0}}
/* 모든 날짜 검색 결과(schedule.js appendSearch). 날짜 머리는 그 날로 가는 단추라 누를 수 있는 높이로 둔다. */
.schedule-search-section { padding-top:var(--s4); color:var(--text-2); font-size:var(--fs-xs); font-weight:var(--fw-bold); }
.search-day-head { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:44px; padding:0 var(--s1); border:0; border-radius:var(--r-sm); background:transparent; color:var(--text); font-size:var(--fs-sm); font-weight:var(--fw-bold); text-align:left; }
.search-day-head svg { color:var(--text-3); }
/* 직접 만든 × 가 있어 브라우저 기본 지우기 단추까지 뜨면 × 가 두 개로 보인다. */
#schedule-query::-webkit-search-cancel-button, #pocket-search::-webkit-search-cancel-button { -webkit-appearance:none; appearance:none; display:none; }
