/* 아리 — 일정(Calendar) · 클린 화이트 글래스
   상단바=메인 메뉴 · 좌측 사이드바=서브 메뉴(미니 달력 + 캘린더 목록) · 주/월/일 뷰 */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --bg-top: #f6efe7; --bg-mid: #eef0f1; --bg-bot: #e9ebed;
  --card: #ffffff; --card-2: #f4f5f6; --card-3: #eef0f1;
  --ink: #211f1c; --ink-2: #514d47; --muted: #8d8a85; --faint: #b6b3ad;
  --line: rgba(33, 31, 28, 0.07); --line-2: rgba(33, 31, 28, 0.13);
  --fill: #29241f; --fill-soft: #36302a; --on-fill: #f4efe6;
  --blue: #4f72e0; --coral: #df7256; --green: #4e9b66; --violet: #8b6fd4; --amber: #e0a23c;
  --radius: 22px; --radius-sm: 14px;
  --shadow: 0 10px 30px -14px rgba(30, 26, 22, 0.22), 0 2px 6px -2px rgba(30, 26, 22, 0.06);
  --shadow-sm: 0 4px 14px -8px rgba(30, 26, 22, 0.18);
  --glass: rgba(255, 255, 255, 0.4); --glass-2: rgba(255, 255, 255, 0.26);
  --glass-brd: rgba(255, 255, 255, 0.7); --blur: blur(26px) saturate(190%);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  --font-disp: "Onest", "Pretendard", system-ui, sans-serif;
  --font-ui: "Pretendard", "Onest", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
}
[data-theme="dark"] {
  --bg-top: #201d1a; --bg-mid: #1a1816; --bg-bot: #161413;
  --card: #2c2925; --card-2: #353029; --card-3: #3b352d;
  --ink: #f3eee6; --ink-2: #c3bdb4; --muted: #948e85; --faint: #6f6a62;
  --line: rgba(244, 239, 230, 0.09); --line-2: rgba(244, 239, 230, 0.16);
  --fill: #f4efe6; --fill-soft: #e7e0d4; --on-fill: #211f1c;
  --shadow: 0 14px 36px -16px rgba(0, 0, 0, 0.7), 0 2px 8px -3px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 6px 16px -10px rgba(0, 0, 0, 0.6);
  --glass: rgba(48, 43, 38, 0.4); --glass-2: rgba(70, 63, 55, 0.28);
  --glass-brd: rgba(255, 255, 255, 0.1); --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body {
  font-family: var(--font-ui); color: var(--ink);
  background: linear-gradient(178deg, var(--bg-top) 0%, var(--bg-mid) 20%, var(--bg-bot) 100%);
  background-attachment: fixed; min-height: 100vh;
  -webkit-font-smoothing: antialiased; letter-spacing: -0.011em; word-break: keep-all;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.ic { width: 1em; height: 1em; flex-shrink: 0; display: block; }
.tpage { max-width: 1620px; margin: 0 auto; padding: 0 26px 26px; }

/* ====================== 상단바 (공유) ====================== */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 24px; height: 70px; margin: 0 -26px; padding: 0 30px; -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--fill); color: var(--coral); display: grid; place-items: center; position: relative; }
.brand-mark .ic { width: 21px; height: 21px; }
.brand-mark::after { content: ""; position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); border: 2px solid var(--bg-top); }
.brand-tag { line-height: 1.15; }
.brand-tag b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.brand-tag span { font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.mainnav { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a { text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 9px 16px; border-radius: 999px; white-space: nowrap; transition: background 0.16s, color 0.16s, box-shadow 0.16s; }
.mainnav a .ic { width: 16px; height: 16px; color: var(--muted); transition: color 0.16s; }
.mainnav a:hover { color: var(--ink); }
.mainnav a:hover .ic { color: var(--ink-2); }
.mainnav a.active { background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); border: 1px solid var(--glass-brd); }
.mainnav a.active .ic { color: var(--ink); }
.mainnav a .badge { font-size: 11px; font-weight: 700; background: var(--coral); color: #fff; border-radius: 999px; padding: 0 6px; min-width: 18px; text-align: center; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.t-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-brd); box-shadow: var(--shadow-sm); position: relative; transition: transform 0.12s, color 0.16s; }
.t-btn .ic { width: 18px; height: 18px; }
.t-btn:hover { color: var(--ink); transform: translateY(-1px); }
.t-btn.dot::after { content: ""; position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); border: 2px solid var(--card); }
.t-ava { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--coral), var(--violet)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; box-shadow: var(--shadow-sm); cursor: pointer; }

/* ====================== 본문 ====================== */
.twork { display: flex; gap: 18px; align-items: flex-start; padding-top: 12px; }

/* -------- 사이드바 -------- */
.subnav { width: 256px; flex-shrink: 0; position: sticky; top: 86px; max-height: calc(100vh - 104px); background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-brd); border-radius: var(--radius); box-shadow: var(--shadow), var(--glass-hi); padding: 16px 14px 14px; display: flex; flex-direction: column; }
.sn-title { font-family: var(--font-disp); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; padding: 0 4px 14px; }
.sn-new { display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; width: 100%; padding: 11px; border-radius: 13px; font-size: 13.5px; font-weight: 700; background: var(--fill); color: var(--on-fill); box-shadow: var(--shadow-sm); margin-bottom: 16px; transition: transform 0.12s; }
.sn-new .ic { width: 16px; height: 16px; }
.sn-new:hover { transform: translateY(-1px); }

/* 미니 달력 */
.minical { margin-bottom: 4px; }
.mc-head { display: flex; align-items: center; gap: 6px; padding: 0 4px 10px; }
.mc-title { font-size: 13.5px; font-weight: 700; }
.mc-nav { margin-left: auto; display: flex; gap: 2px; }
.mc-nav button { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); transition: background 0.13s, color 0.13s; }
.mc-nav button .ic { width: 15px; height: 15px; }
.mc-nav button:hover { background: var(--glass-2); color: var(--ink); }
.mc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.mc-wd { font-size: 10px; font-weight: 700; color: var(--faint); text-align: center; padding-bottom: 5px; }
.mc-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; position: relative; transition: background 0.12s, color 0.12s; }
.mc-day.out { color: var(--faint); }
.mc-day:hover { background: var(--glass-2); }
.mc-day.today { background: var(--coral); color: #fff; font-weight: 700; }
.mc-day.sel { box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 700; color: var(--ink); }
.mc-day.today.sel { color: #fff; box-shadow: inset 0 0 0 1.5px var(--coral); }
.mc-day .evdot { position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
.mc-day.today .evdot { background: rgba(255,255,255,0.85); }

.sn-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 16px 4px 9px; }
.cal-list { display: flex; flex-direction: column; gap: 1px; overflow-y: auto; scrollbar-width: thin; }
.cal-toggle { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px; border-radius: 10px; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; transition: background 0.12s; }
.cal-toggle:hover { background: var(--glass-2); }
.cal-toggle .cbx { width: 17px; height: 17px; border-radius: 5px; flex-shrink: 0; display: grid; place-items: center; color: #fff; transition: opacity 0.12s; }
.cal-toggle .cbx .ic { width: 12px; height: 12px; }
.cal-toggle.off .cbx { opacity: 0.25; }
.cal-toggle.off { color: var(--muted); }
.cal-toggle > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cal-toggle .ct-n { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; flex-shrink: 0; }

.sn-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.sn-foot .av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--coral), var(--violet)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.sn-foot .txt { min-width: 0; flex: 1; }
.sn-foot .txt b { font-size: 13px; font-weight: 600; display: block; }
.sn-foot .txt span { font-size: 11.5px; color: var(--muted); }

/* -------- 메인 -------- */
.cmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chead { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.ch-title { font-family: var(--font-disp); font-size: clamp(23px, 2.5vw, 31px); font-weight: 700; letter-spacing: -0.03em; margin: 0; white-space: nowrap; }
.ch-arrow { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: var(--glass); border: 1px solid var(--glass-brd); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow-sm); transition: color 0.13s; }
.ch-arrow .ic { width: 18px; height: 18px; }
.ch-arrow:hover { color: var(--ink); }
.ch-today { padding: 9px 15px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--glass); border: 1px solid var(--glass-brd); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow-sm); white-space: nowrap; transition: color 0.13s; }
.ch-today:hover { color: var(--ink); }
.ch-spacer { flex: 1; }
.view-seg { display: flex; gap: 2px; padding: 4px; background: var(--glass); border: 1px solid var(--glass-brd); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-radius: 13px; box-shadow: var(--shadow-sm); }
.view-seg button { padding: 8px 16px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background 0.14s, color 0.14s; }
.view-seg button:hover { color: var(--ink); }
.view-seg button.on { background: var(--fill); color: var(--on-fill); }

.cpanel { background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-brd); border-radius: var(--radius); box-shadow: var(--shadow), var(--glass-hi); overflow: hidden; }

/* 이벤트 색 토큰: --evc(테두리/점), --evbg(배경), --evtx(글자) */
.tint-blue   { --evc: var(--blue);   --evbg: color-mix(in oklab, var(--blue) 15%, var(--card));   --evtx: color-mix(in oklab, var(--blue) 72%, var(--ink)); }
.tint-amber  { --evc: var(--amber);  --evbg: color-mix(in oklab, var(--amber) 17%, var(--card));  --evtx: color-mix(in oklab, var(--amber) 70%, var(--ink)); }
.tint-violet { --evc: var(--violet); --evbg: color-mix(in oklab, var(--violet) 15%, var(--card)); --evtx: color-mix(in oklab, var(--violet) 72%, var(--ink)); }
.tint-green  { --evc: var(--green);  --evbg: color-mix(in oklab, var(--green) 15%, var(--card));  --evtx: color-mix(in oklab, var(--green) 72%, var(--ink)); }
.tint-coral  { --evc: var(--coral);  --evbg: color-mix(in oklab, var(--coral) 16%, var(--card));  --evtx: color-mix(in oklab, var(--coral) 72%, var(--ink)); }

/* ====================== 주 뷰 ====================== */
.wk-head { display: grid; grid-template-columns: 56px repeat(7, 1fr); border-bottom: 1px solid var(--line); }
.wk-corner { border-right: 1px solid var(--line); }
.wk-dh { text-align: center; padding: 11px 4px; border-right: 1px solid var(--line); }
.wk-dh:last-child { border-right: none; }
.wk-dh .wd { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.wk-dh .dn { font-family: var(--font-disp); font-size: 19px; font-weight: 700; margin-top: 3px; width: 34px; height: 34px; line-height: 34px; border-radius: 50%; display: inline-block; }
.wk-dh.today .wd { color: var(--coral); }
.wk-dh.today .dn { background: var(--coral); color: #fff; }
.wk-dh.wknd .wd, .wk-dh.wknd .dn { color: var(--faint); }
.wk-dh.today.wknd .dn { color: #fff; }
.wk-body { display: grid; grid-template-columns: 56px repeat(7, 1fr); max-height: calc(100vh - 252px); overflow-y: auto; scrollbar-width: thin; }
.wk-body::-webkit-scrollbar { width: 8px; }
.wk-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.wk-times { border-right: 1px solid var(--line); overflow: visible; }
.wk-thour { height: 52px; position: relative; }
.wk-thour > span { position: absolute; top: -7px; left: 2px; right: 7px; text-align: right; font-size: 10px; color: var(--faint); font-family: var(--font-mono); white-space: nowrap; }
.wk-thour > span span { position: static; }
.wk-col { border-right: 1px solid var(--line); position: relative; }
.wk-col:last-child { border-right: none; }
.wk-col.wknd { background: color-mix(in oklab, var(--ink) 2.5%, transparent); }
.wk-hr { height: 52px; border-bottom: 1px solid var(--line); }
.wk-now { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid var(--coral); z-index: 4; pointer-events: none; }
.wk-now::before { content: ""; position: absolute; left: -3px; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.ev { position: absolute; left: 3px; right: 3px; border-radius: 9px; padding: 5px 8px; font-size: 11.5px; overflow: hidden; cursor: pointer; z-index: 3; border-left: 3px solid var(--evc); background: var(--evbg); color: var(--evtx); transition: transform 0.1s, box-shadow 0.12s; }
.ev:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -5px rgba(30,26,22,0.4); z-index: 6; }
.ev .et { font-weight: 700; line-height: 1.22; letter-spacing: -0.01em; }
.ev .etm { font-size: 10px; opacity: 0.82; margin-top: 1px; font-variant-numeric: tabular-nums; }
.ev.soon { box-shadow: 0 0 0 1.5px var(--evc); }
.ev.short { padding: 3px 8px; }
.ev.short .etm { display: inline; margin: 0 0 0 5px; }
.ev.short .et { display: inline; }

/* ====================== 월 뷰 ====================== */
.mo-head { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line); }
.mo-wd { text-align: center; padding: 10px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.mo-wd.wknd { color: var(--faint); }
.mo-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: minmax(108px, 1fr); }
.mo-cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 7px 7px 6px; min-width: 0; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.mo-cell:nth-child(7n) { border-right: none; }
.mo-cell.out { background: color-mix(in oklab, var(--ink) 2%, transparent); }
.mo-dn { font-size: 12.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.mo-cell.out .mo-dn { color: var(--faint); }
.mo-cell.today .mo-dn { background: var(--coral); color: #fff; }
.mo-ev { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: var(--ink-2); padding: 2px 6px; border-radius: 6px; background: var(--evbg); cursor: pointer; min-width: 0; }
.mo-ev .pdot { width: 6px; height: 6px; border-radius: 50%; background: var(--evc); flex-shrink: 0; }
.mo-ev .mt { font-variant-numeric: tabular-nums; color: var(--muted); flex-shrink: 0; font-size: 10px; }
.mo-ev .mn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-more { font-size: 10.5px; color: var(--muted); padding: 1px 6px; cursor: pointer; }
.mo-more:hover { color: var(--ink); }

/* ====================== 일 뷰 ====================== */
.day-wrap { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }
.day-grid { display: grid; grid-template-columns: 56px 1fr; max-height: calc(100vh - 252px); overflow-y: auto; scrollbar-width: thin; }
.day-grid::-webkit-scrollbar { width: 8px; }
.day-grid::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.day-col { position: relative; }
.agenda { padding: 20px; }
.ag-head { margin-bottom: 16px; }
.ag-title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.ag-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.ag-item { display: flex; gap: 13px; padding: 13px 0; border-top: 1px solid var(--line); cursor: pointer; }
.ag-item:first-of-type { border-top: none; }
.ag-time { width: 46px; flex-shrink: 0; font-size: 12.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: 1px; }
.ag-time small { display: block; font-size: 11px; color: var(--faint); font-weight: 500; }
.ag-body { flex: 1; min-width: 0; position: relative; padding-left: 14px; }
.ag-body::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; border-radius: 3px; background: var(--evc); }
.ag-t { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.ag-m { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ag-m > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ag-m .ic { width: 13px; height: 13px; }
.ag-note { font-size: 12px; color: var(--ink-2); margin-top: 7px; background: var(--glass-2); border: 1px solid var(--glass-brd); border-radius: 9px; padding: 8px 10px; line-height: 1.4; }
.ag-soon { font-size: 10px; font-weight: 700; color: #fff; background: var(--coral); padding: 1px 7px; border-radius: 999px; }
.ag-people { display: flex; align-items: center; margin-top: 8px; }
.ag-people .pp { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; border: 2px solid var(--card); margin-left: -7px; background: var(--violet); }
.ag-people .pp:first-child { margin-left: 0; }
.ag-people .pl { font-size: 11.5px; color: var(--muted); margin-left: 9px; }
.ag-empty { font-size: 13px; color: var(--faint); text-align: center; padding: 30px 10px; }

/* AI 한 줄 브리핑 */
.ai-strip { display: flex; align-items: flex-start; gap: 11px; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-brd); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 13px 15px; margin-bottom: 16px; }
.ai-strip .ai-ic { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; background: color-mix(in oklab, var(--coral) 16%, transparent); color: var(--coral); }
.ai-strip .ai-ic .ic { width: 16px; height: 16px; }
.ai-strip p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.ai-strip p b { color: var(--ink); font-weight: 700; border-bottom: 2px solid color-mix(in oklab, var(--coral) 55%, transparent); }

/* 상세 팝오버 */
.dp-backdrop { position: fixed; inset: 0; z-index: 60; }
.epop { position: fixed; z-index: 61; width: 300px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(26,22,18,0.45); padding: 18px; animation: pop 0.16s ease; }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.epop-bar { height: 4px; border-radius: 99px; background: var(--evc); margin-bottom: 13px; }
.epop-title { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 12px; }
.epop-row { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); padding: 5px 0; }
.epop-row .ic { width: 15px; height: 15px; color: var(--muted); flex-shrink: 0; }
.epop-cat { display: inline-flex; align-items: center; gap: 6px; }
.epop-cat .pdot { width: 8px; height: 8px; border-radius: 50%; background: var(--evc); }
.epop-note { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; margin-top: 10px; padding-top: 11px; border-top: 1px solid var(--line); }
.epop-acts { display: flex; gap: 8px; margin-top: 14px; }
.epop-acts button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border-radius: 10px; font-size: 13px; font-weight: 600; transition: background 0.13s; }
.epop-acts .ic { width: 15px; height: 15px; }
.epop-acts .edit { background: var(--card-2); color: var(--ink); }
.epop-acts .edit:hover { background: var(--card-3); }
.epop-acts .del { background: color-mix(in oklab, var(--coral) 12%, transparent); color: var(--coral); flex: 0 0 auto; padding: 9px 13px; }

/* ====================== 집중 블록 (Focus of the Day) ====================== */
.ch-focus {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--ink-2); background: var(--glass); border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm); transition: color 0.13s, background 0.13s;
}
.ch-focus .ic { width: 15px; height: 15px; color: var(--muted); transition: color 0.13s; }
.ch-focus:hover { color: var(--ink); }
.ch-focus.on { background: var(--violet); color: #fff; border-color: transparent; }
.ch-focus.on .ic { color: #fff; }

.fblock {
  position: absolute; left: 3px; right: 3px; z-index: 2;
  border-radius: 9px; padding: 5px 8px; overflow: hidden;
  border: 1.5px dashed color-mix(in oklab, var(--violet) 52%, transparent);
  background: color-mix(in oklab, var(--violet) 9%, var(--card));
  color: color-mix(in oklab, var(--violet) 72%, var(--ink));
}
.fblock.deep {
  border-color: color-mix(in oklab, var(--coral) 54%, transparent);
  background: color-mix(in oklab, var(--coral) 10%, var(--card));
  color: color-mix(in oklab, var(--coral) 72%, var(--ink));
}
.fblock .fb-k { display: flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.02em; opacity: 0.92; }
.fblock .fb-k .ic { width: 11px; height: 11px; }
.fblock .fbt { font-size: 11.5px; font-weight: 700; line-height: 1.2; margin-top: 2px; letter-spacing: -0.01em; }
.fblock.short .fbt { display: inline; margin: 0 0 0 5px; }
.fblock.short .fb-k { display: inline-flex; }

/* 일 뷰 사이드 (집중 카드 + 어젠다) */
.day-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.focus-card { padding: 18px; }
.fc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fc-ic { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; background: var(--violet); color: #fff; }
.fc-ic .ic { width: 16px; height: 16px; }
.fc-h b { display: block; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.fc-h span { font-size: 11.5px; color: var(--muted); }
.fc-note { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin: 0 0 8px; }
.fc-item { display: flex; gap: 11px; padding: 10px 0; border-top: 1px solid var(--line); }
.fci-time { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); width: 42px; flex-shrink: 0; padding-top: 1px; }
.fci-body { flex: 1; min-width: 0; }
.fci-tag { font-size: 9.5px; font-weight: 700; letter-spacing: 0.02em; padding: 2px 8px; border-radius: 999px; color: var(--ink-2); background: var(--card-2); }
.fci-tag.deep { color: #fff; background: var(--coral); }
.fci-title { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; margin-top: 6px; line-height: 1.3; }
.fc-item.deep .fci-title { font-weight: 700; }

/* 어젠다 액션 아이템 */
.ag-actions { margin-top: 9px; padding: 10px 12px; background: var(--glass-2); border: 1px solid var(--glass-brd); border-radius: 9px; }
.aga-head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--violet); margin-bottom: 7px; }
.aga-head .ic { width: 12px; height: 12px; }
.aga-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.aga-check { width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; flex-shrink: 0; }
.aga-check .ic { width: 10px; height: 10px; }
.aga-text { flex: 1; min-width: 0; font-size: 12px; font-weight: 500; line-height: 1.3; }
.aga-who { font-size: 10.5px; color: var(--muted); flex-shrink: 0; }

/* 팝오버 액션 아이템 */
.epop-actions { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.epa-head { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--violet); margin-bottom: 9px; }
.epa-head .ic { width: 13px; height: 13px; }
.epa-head .n { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--card-2); border-radius: 999px; padding: 1px 7px; }
.epa-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.epa-check { width: 17px; height: 17px; border-radius: 5px; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; flex-shrink: 0; }
.epa-check .ic { width: 11px; height: 11px; }
.epa-text { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 500; line-height: 1.3; }
.epa-who { font-size: 10.5px; color: var(--muted); flex-shrink: 0; }
.epa-add { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 10px; padding: 9px; border-radius: 10px; font-size: 12.5px; font-weight: 700; background: var(--violet); color: #fff; transition: filter 0.13s; }
.epa-add .ic { width: 14px; height: 14px; }
.epa-add:hover { filter: brightness(1.08); }

.entered .twork > * { animation: rise 0.45s cubic-bezier(0.2,0.7,0.2,1) both; }
.entered .cmain { animation-delay: 0.05s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ====================== 회의 도우미 드로어 ====================== */
.mdrawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 65;
  width: min(440px, 94vw); display: flex; flex-direction: column;
  background: var(--card); border-left: 1px solid var(--line);
  box-shadow: -28px 0 70px -30px rgba(26, 22, 18, 0.4);
  animation: md-in 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes md-in { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }

.md-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 14px; }
.md-ic {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  background: color-mix(in oklab, var(--evc) 16%, transparent); color: var(--evc);
}
.md-ic .ic { width: 19px; height: 19px; }
.md-ht { flex: 1; min-width: 0; line-height: 1.3; }
.md-k { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--evc); margin-bottom: 2px; }
.md-ht b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.md-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.md-x { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.md-x:hover { background: var(--card-2); color: var(--ink); }
.md-x .ic { width: 16px; height: 16px; }

.md-bar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 0 20px 14px; border-bottom: 1px solid var(--line); }
.md-phase { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.md-phase .ic { width: 12px; height: 12px; }
.md-phase.done { background: color-mix(in oklab, var(--green) 15%, transparent); color: var(--green); }
.md-phase.up { background: color-mix(in oklab, var(--blue) 13%, transparent); color: var(--blue); }
.md-phase.live { background: color-mix(in oklab, var(--coral) 14%, transparent); color: var(--coral); }
.md-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); animation: md-pulse 1.4s ease infinite; }
@media (prefers-reduced-motion: reduce) { .md-pulse { animation: none; } }
@keyframes md-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--coral) 45%, transparent); } 55% { box-shadow: 0 0 0 5px transparent; } }
.md-meta { font-size: 11.5px; color: var(--muted); }

.md-body { flex: 1; overflow-y: auto; padding: 6px 20px 24px; }
.md-sec { padding: 15px 0 4px; border-bottom: 1px solid var(--line); }
.md-sec:last-child { border-bottom: none; }
.md-sh { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; margin-bottom: 9px; }
.md-sh .ic { width: 14px; height: 14px; color: var(--evc); }
.md-hint { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); }

.md-note { margin: 0 0 10px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.md-points { margin: 0 0 10px; padding-left: 19px; display: flex; flex-direction: column; gap: 6px; }
.md-points li { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.md-points li::marker { font-weight: 700; color: var(--evc); }
.md-sum { margin: 0 0 10px; padding-left: 17px; display: flex; flex-direction: column; gap: 6px; }
.md-sum li { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.md-sum li::marker { color: var(--evc); }

.md-chk { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12.5px; font-weight: 500; margin-bottom: 2px; }
.md-cbx { width: 17px; height: 17px; border-radius: 5px; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; flex-shrink: 0; }
.md-cbx .ic { width: 11px; height: 11px; }
.md-chk.done .md-cbx { background: var(--green); border-color: var(--green); color: #fff; }
.md-chk.done { color: var(--muted); }
.md-who { margin-left: auto; font-size: 11px; color: var(--muted); flex-shrink: 0; }
.md-tag { font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px; flex-shrink: 0; }
.md-tag.warn { background: color-mix(in oklab, var(--coral) 15%, transparent); color: var(--coral); }
.md-chk .md-tag.warn { margin-left: 6px; }

.md-insight { margin: 0 0 8px; padding: 9px 12px; border-radius: 10px; background: var(--card-2); font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.md-insight b { color: var(--ink); }
.md-docs { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 0 4px; }
.md-doc { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); cursor: pointer; }
.md-doc:hover { border-color: var(--evc); color: var(--evc); }
.md-doc .ic { width: 13px; height: 13px; }

.md-sig { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 12.5px; }
.md-sig-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.md-sig-k { font-weight: 700; flex-shrink: 0; min-width: 58px; }
.md-sig-v { color: var(--ink-2); }

.md-decision { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; padding: 8px 11px; border-radius: 10px; margin-bottom: 8px; background: color-mix(in oklab, var(--green) 10%, transparent); color: color-mix(in oklab, var(--green) 70%, var(--ink)); }
.md-decision .ic { width: 13px; height: 13px; color: var(--green); flex-shrink: 0; }

.md-act { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.md-act:last-of-type { border-bottom: none; }
.md-act-check { width: 17px; height: 17px; border-radius: 5px; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; flex-shrink: 0; }
.md-act-check .ic { width: 11px; height: 11px; }
.md-act.added .md-act-check { background: var(--violet); border-color: var(--violet); color: #fff; }
.md-act-text { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 500; line-height: 1.35; }
.md-act-who { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.md-act-add { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); flex-shrink: 0; transition: all 0.13s; }
.md-act-add .ic { width: 11px; height: 11px; }
.md-act-add:hover { border-color: var(--violet); color: var(--violet); }
.md-act-done { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--green); flex-shrink: 0; }
.md-act-done .ic { width: 11px; height: 11px; }
.md-addall { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin: 10px 0 8px; padding: 10px; border-radius: 11px; font-size: 12.5px; font-weight: 700; background: var(--fill); color: var(--on-fill); transition: filter 0.13s; }
.md-addall .ic { width: 14px; height: 14px; }
.md-addall:hover { filter: brightness(1.15); }
.md-allok { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 10px 0 8px; padding: 9px; border-radius: 11px; font-size: 12px; font-weight: 700; background: color-mix(in oklab, var(--green) 11%, transparent); color: var(--green); }
.md-allok .ic { width: 13px; height: 13px; }

/* 회의 도우미 진입점 (어젠다·팝오버) */
.meet-open { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 9px; padding: 8px; border-radius: 10px; font-size: 12px; font-weight: 700; border: 1px solid color-mix(in oklab, var(--evc) 38%, transparent); color: var(--evtx); background: color-mix(in oklab, var(--evc) 7%, transparent); transition: all 0.13s; }
.meet-open .ic { width: 13px; height: 13px; }
.meet-open:hover { background: color-mix(in oklab, var(--evc) 14%, transparent); }

@media (max-width: 1080px) { .subnav { display: none; } .day-wrap { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .tpage { padding: 0 14px 22px; }
  .topbar { margin: 0 -14px; padding: 0 16px; gap: 14px; }
  .mainnav { display: none; }
  .ch-spacer { display: none; }
  .view-seg { order: 5; width: 100%; justify-content: center; margin-top: 8px; }
  .chead { flex-wrap: wrap; }
}
