/* 회의록 (mt-) - 목록 · 쓰기 · 보기 · 인쇄.  색은 토큰만, 다크는 html[data-theme="dark"] 로만 덮는다. */
.mt-page { padding-bottom: 56px; }
.mt-ico { flex: none; vertical-align: -2px; }

/* 참석자 색 (privat.css 의 .desk-cal .is-c-* 와 같은 값) */
.mt-page .is-c-blue { --kind: #3b82f6; }
.mt-page .is-c-indigo { --kind: #6366f1; }
.mt-page .is-c-violet { --kind: #8b5cf6; }
.mt-page .is-c-pink { --kind: #ec4899; }
.mt-page .is-c-rose { --kind: #ef4444; }
.mt-page .is-c-amber { --kind: #f59e0b; }
.mt-page .is-c-lime { --kind: #65a30d; }
.mt-page .is-c-emerald { --kind: #10b981; }
.mt-page .is-c-cyan { --kind: #06b6d4; }
.mt-page .is-c-gray { --kind: #6b7280; }
html[data-theme="dark"] .mt-page .is-c-lime { --kind: #a3e635; }
html[data-theme="dark"] .mt-page .is-c-gray { --kind: #9ca3af; }

/* ---- 머리 · 요약 ------------------------------------------------------------ */
.mt-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mt-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; }
.mt-stat { display: grid; gap: 6px; min-width: 0; padding: 16px 18px; border: 1px solid var(--brand-border); border-radius: 14px; background: var(--brand-surface); }
.mt-stat-label { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-text-secondary); font-size: 13px; font-weight: 600; }
.mt-stat-label .mt-ico { color: var(--text-accent, var(--brand-accent)); }
.mt-stat-value { color: var(--brand-text-primary); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mt-stat-value small { margin-left: 4px; color: var(--brand-text-muted); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.mt-stat-hint { color: var(--brand-text-muted); font-size: 12px; line-height: 1.45; }
.mt-stat.is-alert { border-color: color-mix(in srgb, var(--brand-danger) 35%, var(--brand-border)); background: color-mix(in srgb, var(--brand-danger) 5%, var(--brand-surface)); }
.mt-stat.is-alert .mt-stat-label, .mt-stat.is-alert .mt-stat-label .mt-ico, .mt-stat.is-alert .mt-stat-value { color: var(--brand-danger); }

.mt-upcoming { margin: 0 0 18px; padding: 14px 16px 6px; border: 1px solid var(--brand-border); border-radius: 14px; background: var(--brand-surface); }
.mt-upcoming h2 { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.mt-upcoming ul { display: grid; margin: 0; padding: 0; list-style: none; }
.mt-upcoming li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--brand-border); }
.mt-upcoming li:first-child { border-top: 0; }
.mt-upcoming a { display: grid; gap: 2px; min-width: 0; color: inherit; text-decoration: none; }
.mt-upcoming a:hover { text-decoration: none; }
.mt-upcoming a:hover .mt-upcoming-task { color: var(--text-accent, var(--brand-accent)); }
.mt-upcoming-task, .mt-upcoming-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-upcoming-task { font-size: 14px; font-weight: 600; }
.mt-upcoming-meta { color: var(--brand-text-muted); font-size: 12px; }
.mt-upcoming-meta b { color: var(--brand-text-secondary); font-weight: 600; }

/* ---- 검색 · 필터 ------------------------------------------------------------ */
.mt-toolbar { display: grid; gap: 10px; margin: 0 0 18px; }
.mt-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mt-search { position: relative; display: flex; flex: 1 1 260px; align-items: center; max-width: 420px; }
.mt-search .mt-ico { position: absolute; left: 12px; color: var(--brand-text-muted); pointer-events: none; }
.mt-search input, .mt-filter select { height: 38px; border: 1px solid var(--brand-border); border-radius: var(--radius-md); background: var(--brand-surface); color: var(--brand-text-primary); font: inherit; font-size: 14px; }
/* site-components.css 의 공용 입력 칸 규칙(:not 다섯 겹)이 더 세서 왼쪽 여백만 못 박는다. */
.mt-filter .mt-search input[type="search"] { width: 100%; padding-left: 36px !important; }
.mt-filter select { max-width: 100%; padding: 0 12px; }
.mt-search input:focus, .mt-filter select:focus { border-color: var(--brand-accent); outline: 0; box-shadow: var(--focus-ring); }
.mt-reset { color: var(--brand-text-muted); font-size: 13px; }
.mt-people { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 12px; border: 1px solid var(--brand-border); border-radius: 999px; background: var(--brand-surface); color: var(--brand-text-secondary); font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color var(--transition-fast), background-color var(--transition-fast); }
.mt-chip .mt-avatar { margin-left: -6px; }
.mt-chip:hover { border-color: var(--brand-border-strong); color: var(--brand-text-primary); text-decoration: none; }
.mt-chip.is-active { border-color: var(--brand-accent); background: var(--mydesk-accent); color: var(--text-accent, var(--brand-accent)); }
html[data-theme="dark"] .mt-chip.is-active { background: color-mix(in srgb, var(--brand-accent) 16%, var(--brand-surface)); }

/* ---- 아바타 ------------------------------------------------------------------ */
.mt-avatars { display: inline-flex; align-items: center; min-width: 0; }
.mt-avatar { --kind: #6b7280; display: inline-grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--kind) 16%, var(--brand-surface)); color: color-mix(in srgb, var(--kind) 78%, var(--brand-text-primary)); font-size: 12px; font-weight: 700; line-height: 1; box-shadow: 0 0 0 2px var(--brand-surface); }
.mt-avatars .mt-avatar + .mt-avatar { margin-left: -7px; }
.mt-avatar.is-more { background: var(--brand-surface-muted); color: var(--brand-text-secondary); font-size: 11px; }
.mt-avatar.is-xs { width: 20px; height: 20px; font-size: 10px; box-shadow: none; }
html[data-theme="dark"] .mt-avatar { background: color-mix(in srgb, var(--kind) 28%, var(--brand-surface)); color: color-mix(in srgb, var(--kind) 45%, #ffffff); }
html[data-theme="dark"] .mt-avatar.is-more { background: var(--brand-surface-muted); color: var(--brand-text-secondary); }

/* ---- 달별 목록 · 카드 ---------------------------------------------------------- */
.mt-count { margin: 0 0 10px; color: var(--brand-text-muted); font-size: var(--text-xs); }
.mt-month { margin: 0 0 24px; }
.mt-month-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.mt-month-title span { color: var(--brand-text-muted); font-size: 12px; font-weight: 600; }
.mt-month-title::after { content: ""; flex: 1; height: 1px; background: var(--brand-border); }
.mt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 12px; }
.mt-card { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; min-width: 0; padding: 16px; border: 1px solid var(--brand-border); border-radius: 14px; background: var(--brand-surface); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.mt-card:hover { border-color: var(--brand-border-strong); box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.25); }
.mt-card:focus-within { border-color: var(--brand-accent); }
.mt-card.is-today { border-color: color-mix(in srgb, var(--brand-accent) 45%, var(--brand-border)); }
.mt-card-date { display: grid; align-self: start; justify-items: center; align-content: center; gap: 3px; width: 52px; height: 58px; border-radius: 12px; background: var(--brand-surface-muted); color: var(--brand-text-primary); }
.mt-card-date b { font-size: 21px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.mt-card-date span { color: var(--brand-text-muted); font-size: 12px; font-weight: 600; }
.mt-card.is-today .mt-card-date { background: var(--mydesk-accent); color: var(--text-accent, var(--brand-accent)); }
.mt-card.is-today .mt-card-date span { color: var(--text-accent, var(--brand-accent)); }
html[data-theme="dark"] .mt-card.is-today .mt-card-date { background: color-mix(in srgb, var(--brand-accent) 18%, var(--brand-surface)); }
.mt-card-main { display: grid; align-content: start; gap: 9px; min-width: 0; }
.mt-card-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; word-break: keep-all; }
.mt-card-title a { color: inherit; text-decoration: none; }
/* 카드 어디를 눌러도 보기로 간다(태그 링크만 위에 올린다). */
.mt-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.mt-card:hover .mt-card-title a { color: var(--text-accent, var(--brand-accent)); }
.mt-card-title a:focus-visible { outline: none; }
.mt-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; color: var(--brand-text-muted); font-size: 12.5px; }
.mt-card-meta span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.mt-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; }
.mt-card-counts { display: inline-flex; flex-wrap: wrap; gap: 10px; color: var(--brand-text-secondary); font-size: 12px; font-weight: 600; }
.mt-card-counts span { display: inline-flex; align-items: center; gap: 4px; }
.mt-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-card .mt-tags { position: relative; z-index: 1; }
.mt-tags a { color: var(--text-accent, var(--brand-accent)); font-size: 12px; font-weight: 600; text-decoration: none; }
.mt-tags a:hover { text-decoration: underline; }

/* 진행 막대 */
.mt-progress { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--brand-text-secondary); font-size: 12px; }
.mt-progress-label { flex: none; font-weight: 600; }
.mt-progress-bar { position: relative; flex: 1; min-width: 60px; height: 6px; overflow: hidden; border-radius: 999px; background: var(--brand-surface-muted); }
.mt-progress-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--brand-accent); transition: width 0.3s ease; }
.mt-progress-num { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.mt-progress.is-complete .mt-progress-bar i { background: #16a34a; }
.mt-progress.is-complete .mt-progress-num { color: #15803d; }
html[data-theme="dark"] .mt-progress.is-complete .mt-progress-bar i { background: #22c55e; }
html[data-theme="dark"] .mt-progress.is-complete .mt-progress-num { color: #4ade80; }
.mt-progress.is-inline { flex: 0 1 180px; }

/* 기한 뱃지 (label-badges) */
.mt-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid var(--brand-border); border-radius: 999px; background: var(--brand-bg); color: var(--brand-text-secondary); font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mt-badge > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-accent); }
.mt-badge.is-today { color: var(--brand-text-primary); }
.mt-badge.is-today > i { background: #f59e0b; }
.mt-badge.is-overdue { border-color: color-mix(in srgb, var(--brand-danger) 32%, var(--brand-border)); color: var(--brand-danger); }
.mt-badge.is-overdue > i { background: var(--brand-danger); }
.mt-badge.is-done { color: var(--brand-text-muted); }
.mt-badge.is-done > i { background: var(--brand-text-muted); }

.mt-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 8px; }
.mt-pager a { min-width: 34px; padding: 6px 10px; border-radius: 999px; color: var(--brand-text-secondary); text-align: center; text-decoration: none; }
.mt-pager a.is-active { background: var(--mydesk-accent); color: var(--text-accent, var(--brand-accent)); font-weight: 700; }
.mt-empty { display: grid; justify-items: center; gap: 4px; padding: 56px 20px; border: 1px dashed var(--brand-border-strong); border-radius: 14px; text-align: center; }
.mt-empty-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 14px; background: var(--mydesk-accent); color: var(--text-accent, var(--brand-accent)); }
html[data-theme="dark"] .mt-empty-icon { background: color-mix(in srgb, var(--brand-accent) 16%, var(--brand-surface)); }
.mt-empty h2 { margin: 0; font-size: var(--text-xl); }
.mt-empty p { margin: 0 0 14px; color: var(--brand-text-muted); }

/* ---- 쓰기 폼 ------------------------------------------------------------------ */
.mt-crumbs { margin: 8px 0 16px; color: var(--brand-text-muted); font-size: 13px; overflow-wrap: anywhere; }
.mt-crumbs a { color: var(--brand-text-secondary); }
.mt-continue { display: flex; align-items: center; gap: 14px; max-width: 960px; margin: 0 0 14px; padding: 14px 16px; border: 1px dashed var(--brand-border-strong); border-radius: 14px; background: var(--brand-surface); }
.mt-continue.is-on { border-style: solid; border-color: color-mix(in srgb, var(--brand-accent) 40%, var(--brand-border)); background: color-mix(in srgb, var(--brand-accent) 6%, var(--brand-surface)); }
.mt-continue-icon { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--mydesk-accent); color: var(--text-accent, var(--brand-accent)); }
html[data-theme="dark"] .mt-continue-icon { background: color-mix(in srgb, var(--brand-accent) 18%, var(--brand-surface)); }
.mt-continue > div { flex: 1; min-width: 0; }
.mt-continue strong { font-size: 14px; overflow-wrap: anywhere; }
.mt-continue p { margin: 2px 0 0; color: var(--brand-text-muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.mt-continue-option { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; color: var(--brand-text-secondary); font-size: 13px; font-weight: 600; line-height: 1.5; cursor: pointer; }
.mt-continue-option .mt-check { flex: none; margin-top: 1px; }
.mt-continue-option .mt-check input { width: 18px; height: 18px; border-radius: 5px; }
.mt-continue-option em { display: block; color: var(--brand-text-muted); font-size: 12px; font-style: normal; font-weight: 500; }

.mt-form { display: grid; gap: 14px; max-width: 960px; }
.mt-form-section { display: grid; gap: 14px; min-width: 0; padding: 20px 22px; border: 1px solid var(--brand-border); border-radius: 14px; background: var(--brand-surface); }
.mt-form-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 700; }
.mt-form-heading .mt-ico, .mt-block-title .mt-ico { color: var(--text-accent, var(--brand-accent)); }
.mt-form-heading em, .mt-label em { color: var(--brand-text-muted); font-size: 12px; font-style: normal; font-weight: 500; }
.mt-form-heading-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.mt-field { display: grid; gap: 6px; min-width: 0; margin: 0; }
.mt-field[hidden] { display: none; }
.mt-label { color: var(--brand-text-primary); font-size: 13px; font-weight: 600; }
.mt-field-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 12px; }
.mt-form input[type="text"], .mt-form input[type="time"], .mt-form input[type="date"], .mt-form textarea {
  box-sizing: border-box; width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--brand-border); border-radius: var(--radius-md); background: var(--brand-surface); color: var(--brand-text-primary); font: inherit; font-size: 14px;
}
.mt-form textarea { padding: 10px 12px; line-height: 1.6; resize: vertical; }
.mt-form input:focus, .mt-form textarea:focus { border-color: var(--brand-accent); outline: 0; box-shadow: var(--focus-ring); }
.mt-help { color: var(--brand-text-muted); font-size: 12px; line-height: 1.5; }
.mydesk-pill.mt-small-pill { padding: 6px 12px; font-size: 13px; }
.mt-add { justify-self: start; }
.mt-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 4px 0; }

/* 참석자 칩 */
.mt-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 42px; padding: 5px 8px; border: 1px solid var(--brand-border); border-radius: var(--radius-md); background: var(--brand-surface); cursor: text; box-sizing: border-box; }
.mt-chips:focus-within { border-color: var(--brand-accent); box-shadow: var(--focus-ring); }
.mt-chip-list { display: contents; margin: 0; padding: 0; list-style: none; }
.mt-chip-item { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 3px 3px 4px; border: 1px solid var(--brand-border); border-radius: 999px; background: var(--brand-bg); color: var(--brand-text-primary); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.mt-chip-remove { display: inline-grid; flex: none; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--brand-text-muted); cursor: pointer; }
.mt-chip-remove:hover { background: color-mix(in srgb, var(--brand-danger) 12%, var(--brand-surface)); color: var(--brand-danger); }
.mt-chip-remove:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 1px; }
.mt-chip-remove svg, .mt-icon-btn svg, .mt-add svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* site-components.css 의 input:not(…)×5 (0,5,1) 를 이기도록 같은 :not 을 붙여 (0,8,1) 로 올린다. */
.mt-form .mt-chips input.mt-chips-entry:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]) { flex: 1 1 120px; width: auto; min-width: 120px; min-height: 30px; height: 30px; padding: 0 4px; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; }

/* 결정 사항 줄 */
.mt-decision-edit { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: mt-decision; }
.mt-decision-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 32px; align-items: center; gap: 8px; counter-increment: mt-decision; }
.mt-decision-row::before, .mt-decision-num { content: counter(mt-decision); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--mydesk-accent); color: var(--text-accent, var(--brand-accent)); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .mt-decision-row::before, html[data-theme="dark"] .mt-decision-num { background: color-mix(in srgb, var(--brand-accent) 18%, var(--brand-surface)); }
.mt-icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--brand-text-muted); cursor: pointer; }
.mt-icon-btn:hover { background: color-mix(in srgb, var(--brand-danger) 10%, var(--brand-surface)); color: var(--brand-danger); }
.mt-icon-btn:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 1px; }
.mt-icon-btn svg { width: 16px; height: 16px; }

/* 후속 조치 표 */
.mt-action-wrap { min-width: 0; }
.mt-action-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.mt-action-table th { padding: 0 6px 6px; color: var(--brand-text-muted); font-size: 12px; font-weight: 600; text-align: left; }
.mt-action-table td { padding: 4px 6px; vertical-align: top; }
.mt-action-table .mt-col-done { width: 44px; text-align: center; }
.mt-action-table td.mt-col-done { padding-top: 13px; }
.mt-action-table .mt-col-who { width: 22%; }
.mt-action-table .mt-col-due { width: 180px; }
.mt-action-table .mt-col-del { width: 40px; }
.mt-action-table td.mt-col-del { padding-top: 8px; }
.mt-carried-tag { display: inline-block; margin-top: 5px; padding: 1px 8px; border-radius: 999px; background: var(--mydesk-accent); color: var(--text-accent, var(--brand-accent)); font-size: 11px; font-weight: 700; }
html[data-theme="dark"] .mt-carried-tag { background: color-mix(in srgb, var(--brand-accent) 18%, var(--brand-surface)); }

/* 체크 칸 */
.mt-check { position: relative; display: inline-grid; place-items: center; cursor: pointer; }
.mt-check input { -webkit-appearance: none; appearance: none; display: grid; place-items: center; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--brand-border-strong); border-radius: 6px; background: var(--brand-surface); cursor: pointer; transition: background-color var(--transition-fast), border-color var(--transition-fast); }
.mt-check.is-lg input { width: 22px; height: 22px; }
.mt-check input:hover { border-color: var(--brand-accent); }
.mt-check input:checked { border-color: var(--brand-accent); background: var(--brand-accent); }
/* 체크 표시는 site-components.css 의 공용 ::before 를 쓰고 크기만 키운다. */
.mt-check input::before { width: 10px; height: 5px; margin-top: -2px; }
html[data-theme="dark"] .mt-check input { color: var(--brand-on-accent, #fff); }
.mt-check input:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.mt-check input:disabled { cursor: progress; opacity: 0.6; }

/* ---- 보기 --------------------------------------------------------------------- */
.mt-sheet { display: grid; gap: 16px; }
.mt-overview { display: flex; justify-content: space-between; gap: 20px; padding: 22px 24px; border: 1px solid var(--brand-border); border-top: 4px solid var(--brand-accent); border-radius: 16px; background: var(--brand-surface); }
.mt-overview-main { min-width: 0; }
.mt-overview-title { margin: 2px 0 14px; font-size: 26px; line-height: 1.3; overflow-wrap: anywhere; word-break: keep-all; }
.mt-facts { display: grid; gap: 9px; margin: 0; }
.mt-facts > div { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: start; gap: 10px; font-size: 14px; }
.mt-facts dt { display: inline-flex; align-items: center; gap: 6px; padding-top: 1px; color: var(--brand-text-muted); font-size: 13px; font-weight: 600; }
.mt-facts dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.mt-facts .is-people dt { padding-top: 4px; }
.mt-people-list { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0; padding: 0; list-style: none; }
.mt-people-list li { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.mt-people-list .mt-avatar { width: 26px; height: 26px; box-shadow: none; }
.mt-overview-stats { display: grid; flex: none; align-content: start; gap: 8px; min-width: 150px; }
.mt-overview-stats span { display: flex; align-items: baseline; gap: 4px; padding: 10px 14px; border-radius: 12px; background: var(--brand-surface-muted); color: var(--brand-text-muted); font-size: 12px; font-weight: 600; }
.mt-overview-stats b { margin-right: 2px; color: var(--brand-text-primary); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mt-overview-stats em { font-style: normal; }
.mt-overview-stats b i { margin: 0 3px; color: var(--brand-text-muted); font-size: 14px; font-style: normal; font-weight: 600; }
.mt-toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mt-toolbar-actions form { margin: 0; }
.mt-toolbar-gap { flex: 1; }

.mt-view-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); align-items: start; gap: 16px; }
.mt-view-main, .mt-view-side { display: grid; gap: 16px; min-width: 0; }
.mt-block { display: grid; gap: 12px; min-width: 0; padding: 20px 22px; border: 1px solid var(--brand-border); border-radius: 14px; background: var(--brand-surface); }
.mt-block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; }
.mt-block-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 700; }
.mt-block-count { padding: 1px 8px; border-radius: 999px; background: var(--brand-surface-muted); color: var(--brand-text-secondary); font-size: 12px; font-weight: 700; }
.mt-agenda { color: var(--brand-text-primary); font-size: 14px; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.mt-notes { font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.mt-notes > :first-child { margin-top: 0; }
.mt-notes img { max-width: 100%; height: auto; border-radius: 8px; }
.mt-muted { margin: 0; color: var(--brand-text-muted); font-size: 14px; }

/* 결정 사항 - 강조 카드 */
.mt-decisions { border-color: color-mix(in srgb, var(--brand-accent) 32%, var(--brand-border)); background: linear-gradient(180deg, color-mix(in srgb, var(--brand-accent) 7%, var(--brand-surface)), var(--brand-surface) 70%); }
.mt-decision-view { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mt-decision-view li { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: start; gap: 10px; padding: 10px 12px; border: 1px solid var(--brand-border); border-radius: 10px; background: var(--brand-surface); font-size: 14px; font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
.mt-decision-view .mt-decision-num { content: none; }

/* 후속 조치 체크리스트 */
.mt-checklist { display: grid; margin: 0; padding: 0; list-style: none; }
.mt-check-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 12px 0; border-top: 1px solid var(--brand-border); scroll-margin-top: 120px; }
.mt-check-item:first-child { border-top: 0; padding-top: 4px; }
.mt-check-item:target { animation: mt-flash 1.6s ease; }
@keyframes mt-flash { 0%, 40% { background: color-mix(in srgb, var(--brand-accent) 12%, transparent); } }
.mt-toggle { display: grid; margin: 0; padding-top: 1px; }
.mt-check-body { display: grid; gap: 6px; min-width: 0; }
.mt-check-task { font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.mt-check-item.is-done .mt-check-task { color: var(--brand-text-muted); text-decoration: line-through; }
.mt-check-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mt-who { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 10px 2px 3px; border: 1px solid var(--brand-border); border-radius: 999px; background: var(--brand-bg); color: var(--brand-text-secondary); font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.mt-who.is-mine { border-color: color-mix(in srgb, var(--brand-accent) 40%, var(--brand-border)); color: var(--text-accent, var(--brand-accent)); }
.mt-check-side { align-self: center; }
.mt-check-side form { margin: 0; }
.mt-check-item.is-done .mt-send-one { display: none; }
.mt-link-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid var(--brand-border); border-radius: 999px; background: var(--brand-surface); color: var(--brand-text-secondary); font: inherit; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: border-color var(--transition-fast), color var(--transition-fast); }
.mt-link-btn:hover { border-color: var(--brand-accent); color: var(--text-accent, var(--brand-accent)); }
.mt-sent { display: inline-flex; align-items: center; gap: 5px; color: #15803d; font-size: 12px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.mt-sent:hover { text-decoration: underline; }
html[data-theme="dark"] .mt-sent { color: #4ade80; }
.mt-send-all { margin: 2px 0 0; }
.mt-files .att-panel { margin-top: 0; }
.mt-stamp { margin: 0; color: var(--brand-text-muted); font-size: 12px; text-align: right; }

/* ---- 좁은 화면 ---------------------------------------------------------------- */
@media (max-width: 1000px) {
  .mt-view-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .mt-stats { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .mt-stat { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 12px 14px; gap: 2px 12px; }
  .mt-stat-value { grid-column: 2; grid-row: 1 / span 2; font-size: 24px; }
  .mt-field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-field-row > :first-child, .mt-field-row > :last-child { grid-column: 1 / -1; }
  .mt-overview { flex-direction: column; padding: 18px; }
  .mt-overview-title { font-size: 22px; }
  .mt-overview-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; }
  .mt-overview-stats span { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 10px; }
  .mt-toolbar-gap { display: none; }
}
@media (max-width: 640px) {
  .mt-search { flex-basis: 100%; max-width: none; }
  .mt-form-section, .mt-block { padding: 16px; }
  .mt-card { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .mt-card-date { width: 44px; height: 50px; }
  .mt-card-date b { font-size: 18px; }
  .mt-continue { flex-wrap: wrap; align-items: flex-start; }
  /* 글 칸이 아이콘 옆 한 줄을 다 쓰고, 단추는 아래 줄로 내려간다(아이콘 36 + 간격 14). */
  .mt-continue > div { flex: 1 1 calc(100% - 50px); }
  .mt-continue .mydesk-pill { margin-left: 50px; }
  /* 조치 표 → 카드 */
  .mt-action-table, .mt-action-table tbody, .mt-action-table tr, .mt-action-table td { display: block; width: auto; }
  .mt-action-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mt-action-table tbody { display: grid; gap: 8px; }
  .mt-action-row { display: grid !important; grid-template-columns: 28px minmax(0, 1fr) 32px; grid-template-areas: "done task del" ". who who" ". due due"; gap: 6px 8px; padding: 10px; border: 1px solid var(--brand-border); border-radius: 12px; background: var(--brand-bg); }
  .mt-action-table td { padding: 0 !important; }
  .mt-action-table td.mt-col-done { grid-area: done; width: auto; padding-top: 10px !important; text-align: left; }
  .mt-action-table td.mt-col-task { grid-area: task; }
  .mt-action-table td.mt-col-who { grid-area: who; width: auto; }
  .mt-action-table td.mt-col-due { grid-area: due; width: auto; }
  .mt-action-table td.mt-col-del { grid-area: del; width: auto; padding-top: 4px !important; }
  .mt-check-item { grid-template-columns: 28px minmax(0, 1fr); }
  .mt-check-side { grid-column: 2; justify-self: start; }
  .mt-form-actions .mydesk-pill { flex: 1; }
  .mt-stamp { text-align: left; }
}

/* ---- 인쇄: 메뉴 · 단추를 빼고 회의록만 ------------------------------------------------
   종이는 흰색이므로 다크 모드에서 인쇄해도 라이트 토큰으로 바꿔 찍는다(값은 privat.css 의
   html[data-theme="light"] 와 같다).  --ui-* 가 html 에서 brand 토큰을 읽으므로 html 에도
   다시 정의한다(:has 를 모르는 브라우저는 body 쪽만 적용된다). */
@media print {
  html[data-theme="dark"]:has(body.mt-body), html[data-theme="dark"] body.mt-body {
    color-scheme: light;
    --brand-bg: #fafafa;
    --brand-surface: #ffffff;
    --brand-surface-elevated: #ffffff;
    --brand-surface-muted: #f5f5f5;
    --brand-text-primary: #171717;
    --brand-text-secondary: #525252;
    --brand-text-muted: #737373;
    --brand-border: #e5e5e5;
    --brand-border-strong: #d4d4d4;
    --brand-accent: var(--mydesk-primary);
    --brand-accent-hover: var(--mydesk-primary-hover);
    --brand-highlight: var(--mydesk-primary);
    --brand-danger: var(--mydesk-destructive);
    --ui-background: var(--brand-bg);
    --ui-foreground: var(--brand-text-primary);
    --ui-card: var(--brand-surface);
    --ui-muted: var(--brand-surface-muted);
    --ui-muted-foreground: var(--brand-text-muted);
    --ui-border: var(--brand-border);
    --ui-border-strong: var(--brand-border-strong);
    --ui-primary: var(--brand-accent);
    --ui-primary-foreground: #ffffff;
    --ui-accent-foreground: var(--brand-text-primary);
  }
  /* 다크 전용으로 덮은 색도 라이트 값으로 되돌린다. */
  html[data-theme="dark"] body.mt-body .is-c-lime { --kind: #65a30d; }
  html[data-theme="dark"] body.mt-body .is-c-gray { --kind: #6b7280; }
  html[data-theme="dark"] body.mt-body .mt-avatar { background: color-mix(in srgb, var(--kind) 16%, var(--brand-surface)); color: color-mix(in srgb, var(--kind) 78%, var(--brand-text-primary)); }
  html[data-theme="dark"] body.mt-body .mt-avatar.is-more { background: var(--brand-surface-muted); color: var(--brand-text-secondary); }
  html[data-theme="dark"] body.mt-body .mt-decision-num { background: var(--mydesk-accent); }
  html[data-theme="dark"] body.mt-body .mt-progress.is-complete .mt-progress-bar i { background: #16a34a; }
  html[data-theme="dark"] body.mt-body .mt-progress.is-complete .mt-progress-num { color: #15803d; }
  html[data-theme="dark"] body.mt-body .mt-check input { color: #ffffff; }
  .mt-body .mydesk-nav-wrap, .mt-body .desk-settings, .mt-body .scroll-edge-button, .mt-body .toast-stack,
  .mt-body .skip-link, .mt-body .mt-crumbs, .mt-body .mt-no-print, .mt-body .att-upload, .mt-body .att-row-actions,
  .mt-body .mt-toggle noscript, .mt-body .topbar-hover-subnav { display: none !important; }
  html, html[data-theme] body.mt-body { background: #ffffff !important; color: #000000 !important; }
  .mt-page { max-width: none; margin: 0; padding: 0; }
  .mt-sheet { gap: 12px; }
  .mt-view-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mt-overview, .mt-block, .mt-files .att-panel { border-color: #cccccc; background: #ffffff !important; box-shadow: none; break-inside: avoid; }
  .mt-overview { border-top-color: #333333; }
  .mt-decisions { background: #ffffff !important; }
  .mt-overview-stats span, .mt-decision-view li { background: #ffffff; border: 1px solid #dddddd; }
  .mt-check input, .mt-avatar, .mt-decision-num, .mt-badge > i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .mt-files .att-panel:has(.att-list.is-existing[hidden]) { display: none; }
  .mt-stamp { text-align: left; }
  a { color: inherit !important; text-decoration: none !important; }
}

/* 회의록 쓰기 · 고치기 - 폼 폭(960px)으로 가운데 정렬(경로 · 이어 쓰기 안내도 같은 줄에) */
.mt-editing .mt-form,
.mt-editing .mt-continue,
.mt-editing .mt-crumbs { width: 100%; max-width: 960px; margin-left: auto; margin-right: auto; }
